gdb/testsuite: modernize configure.ac
[binutils-gdb.git] / gdb / ChangeLog
1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure.ac: Modernize.
4 * configure: Re-generate.
5
6 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
9 * configure: Re-generate.
10 * configure.ac: Remove AM_PROG_CC_STDC.
11
12 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
15 AC_CANONICAL_SYSTEM.
16 * configure: Re-generate.
17
18 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
19
20 * infrun.h (displaced_debug_printf): New macro. Replace
21 displaced debug prints throughout to use it.
22 (displaced_debug_printf_1): New declaration.
23 (displaced_step_dump_bytes): Return string, remove ui_file
24 parameter, update all callers.
25 * infrun.c (displaced_debug_printf_1): New function.
26 (displaced_step_dump_bytes): Return string, remove ui_file
27 parameter
28
29 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
32
33 2020-10-30 Tom Tromey <tromey@adacore.com>
34
35 * Makefile.in (stamp-init): Depend on config.status.
36
37 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
40
41 2020-10-30 Pedro Alves <pedro@palves.net>
42
43 * thread.c (lookup_selected_frame): Move ...
44 * frame.c (lookup_selected_frame): ... here.
45
46 2020-10-30 Pedro Alves <pedro@palves.net>
47
48 * blockframe.c (block_innermost_frame): Use get_selected_frame.
49 * frame.c
50 (scoped_restore_selected_frame::scoped_restore_selected_frame):
51 Use save_selected_frame. Save language as well.
52 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
53 Use restore_selected_frame, and restore language as well.
54 (selected_frame_id, selected_frame_level): New.
55 (selected_frame): Update comments.
56 (save_selected_frame, restore_selected_frame): New.
57 (get_selected_frame): Use lookup_selected_frame.
58 (get_selected_frame_if_set): Delete.
59 (select_frame): Record selected_frame_level and selected_frame_id.
60 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
61 fields.
62 (get_selected_frame): Make 'message' parameter optional.
63 (get_selected_frame_if_set): Delete declaration.
64 (select_frame): Update comments.
65 (save_selected_frame, restore_selected_frame)
66 (lookup_selected_frame): Declare.
67 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
68 * infrun.c (struct infcall_control_state) <selected_frame_level>:
69 New field.
70 (save_infcall_control_state): Use save_selected_frame.
71 (restore_selected_frame): Delete.
72 (restore_infcall_control_state): Use restore_selected_frame.
73 * stack.c (select_frame_command_core, frame_command_core): Use
74 get_selected_frame.
75 * thread.c (restore_selected_frame): Rename to ...
76 (lookup_selected_frame): ... this and make extern. Select the
77 current frame if the frame level is -1.
78 (scoped_restore_current_thread::restore): Also restore the
79 language.
80 (scoped_restore_current_thread::~scoped_restore_current_thread):
81 Don't try/catch.
82 (scoped_restore_current_thread::scoped_restore_current_thread):
83 Save the language as well. Use save_selected_frame.
84
85 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
88 documentation.
89 * gdbarch.h: Re-generate.
90
91 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
94 parameter.
95 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
96 Likewise.
97 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
98 Likewise.
99 * arch-utils.c (default_displaced_step_hw_singlestep):
100 Likewise.
101 * arch-utils.h (default_displaced_step_hw_singlestep):
102 Likewise.
103 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
104 Likewise.
105 * s390-tdep.c (s390_displaced_step_hw_singlestep):
106 Likewise.
107 * gdbarch.c: Re-generate.
108 * gdbarch.h: Re-generate.
109 * infrun.c (resume_1): Adjust.
110
111 2020-10-29 Tom Tromey <tom@tromey.com>
112
113 * progspace.c (program_space::~program_space): Don't call
114 exec_close.
115
116 2020-10-29 Tom Tromey <tom@tromey.com>
117
118 * exec.c (exec_target::close): Don't change current program
119 space.
120
121 2020-10-29 Tom Tromey <tom@tromey.com>
122
123 * symfile.c (add_symbol_file_command): Update.
124 * exec.c (program_space::add_target_sections): Rename.
125 * symfile-mem.c (symbol_file_add_from_memory): Update.
126 * progspace.h (struct program_space) <add_target_sections>:
127 Declare new overload.
128 * exec.h (add_target_sections_of_objfile): Don't declare.
129
130 2020-10-29 Tom Tromey <tom@tromey.com>
131
132 * solib.c (solib_map_sections): Update.
133 * exec.c (program_space::add_target_sections): Now a method.
134 (exec_file_attach): Update.
135 * exec.h (add_target_sections): Don't declare.
136 * progspace.h (struct program_space) <add_target_sections>:
137 Declare.
138
139 2020-10-29 Tom Tromey <tom@tromey.com>
140
141 * progspace.h (struct program_space) <remove_target_sections>:
142 Declare.
143 * exec.c (program_space::remove_target_sections): Now a method.
144 * exec.h (remove_target_sections): Don't declare.
145
146 2020-10-29 Tom Tromey <tom@tromey.com>
147
148 * inferior.c (delete_inferior): Update.
149 * progspace.c (program_space::empty): Rename from
150 program_space_empty_p. Return bool.
151 * progspace.h (struct program_space) <empty>: New method.
152 (program_space_empty_p): Don't declare.
153
154 2020-10-29 Tom Tromey <tom@tromey.com>
155
156 * progspace.c (program_space::~program_space): Don't call
157 clear_program_space_solib_cache.
158 (program_space::clear_solib_cache): Rename from
159 clear_solib_cache.
160 * solib.c (handle_solib_event): Update.
161 * progspace.h (struct program_space) <clear_solib_cache>: New
162 method.
163 (clear_program_space_solib_cache): Don't declare.
164
165 2020-10-29 Tom Tromey <tom@tromey.com>
166
167 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
168 * target.c (info_target_command): Update.
169 * symfile.c (syms_from_objfile_1, finish_new_objfile)
170 (symbol_file_clear, reread_symbols): Update.
171 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
172 * stabsread.c (scan_file_globals): Update.
173 * solib.c (update_solib_list): Update.
174 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
175 (svr4_fetch_objfile_link_map, enable_break)
176 (svr4_relocate_main_executable)
177 (svr4_iterate_over_objfiles_in_search_order): Update.
178 * solib-frv.c (lm_base, enable_break)
179 (frv_relocate_main_executable): Update.
180 (main_got, frv_fdpic_find_canonical_descriptor): Update.
181 (frv_fetch_objfile_link_map): Update.
182 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
183 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
184 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
185 * remote.c (remote_target::get_offsets): Update.
186 (remote_target::start_remote)
187 (extended_remote_target::post_attach): Update.
188 * objfiles.c (entry_point_address_query): Update.
189 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
190 * minsyms.c (get_symbol_leading_char): Update.
191 * frame.c (inside_main_func): Update.
192 * progspace.h (symfile_objfile): Remove macro.
193
194 2020-10-29 Tom Tromey <tom@tromey.com>
195
196 * exec.c (exec_file_attach): Update.
197 * progspace.c (program_space::exec_close): Update.
198 * progspace.h (struct program_space) <ebfd>: Now a
199 gdb_bfd_ref_ptr.
200 <set_exec_bfd>: Change argument type.
201 <exec_bfd>: Update.
202
203 2020-10-29 Tom Tromey <tom@tromey.com>
204
205 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
206 * symfile.c (reread_symbols): Update.
207 * symfile-mem.c (add_symbol_file_from_memory_command)
208 (add_vsyscall_page): Update.
209 * source-cache.c (source_cache::get_plain_source_lines): Update.
210 * solib-svr4.c (find_program_interpreter, elf_locate_base)
211 (svr4_current_sos_direct, svr4_exec_displacement)
212 (svr4_relocate_main_executable): Update.
213 (svr4_iterate_over_objfiles_in_search_order): Update.
214 * solib-frv.c (enable_break2, enable_break): Update.
215 * solib-dsbt.c (lm_base, enable_break): Update.
216 * solib-darwin.c (find_program_interpreter)
217 (darwin_solib_create_inferior_hook): Update.
218 * sol-thread.c (rw_common, ps_pdmodel): Update.
219 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
220 * remote.c (compare_sections_command)
221 (remote_target::trace_set_readonly_regions): Update.
222 * remote-sim.c (get_sim_inferior_data)
223 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
224 (gdbsim_target_open, gdbsim_target::files_info): Update.
225 * exec.h (exec_bfd): Remove macro.
226 * progspace.c (initialize_progspace): Update.
227 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
228 Update.
229 * nto-procfs.c (nto_procfs_target::post_attach)
230 (nto_procfs_target::create_inferior): Update.
231 * maint.c (maintenance_info_sections): Update.
232 * linux-thread-db.c (thread_db_target::get_thread_local_address):
233 Update.
234 * infcmd.c (post_create_inferior): Update.
235 * gcore.c (default_gcore_arch, default_gcore_target): Update.
236 (objfile_find_memory_regions): Update.
237 * exec.c (validate_exec_file, exec_file_attach)
238 (exec_read_partial_read_only, print_section_info): Update.
239 * corelow.c (core_target_open): Update.
240 * corefile.c (reopen_exec_file, validate_files): Update.
241 * arm-tdep.c (gdb_print_insn_arm): Update.
242 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
243 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
244 methods.
245
246 2020-10-29 Tom Tromey <tom@tromey.com>
247
248 * progspace.h (current_target_sections): Remove macro.
249 * solib-svr4.c (scan_dyntag): Update.
250 * solib-dsbt.c (scan_dyntag): Update.
251 * exec.c (exec_target::close): Update.
252 (add_target_sections, add_target_sections_of_objfile)
253 (remove_target_sections, exec_target::get_section_table)
254 (exec_target::files_info, set_section_command)
255 (exec_set_section_address, exec_target::has_memory)
256 (exec_target::has_memory): Update.
257
258 2020-10-29 Tom Tromey <tom@tromey.com>
259
260 * source-cache.c (source_cache::get_plain_source_lines): Use
261 current_program_space.
262 * corefile.c (reopen_exec_file): Use current_program_space.
263 * exec.c (exec_file_attach): Use current_program_space.
264 * exec.h (exec_bfd_mtime): Remove.
265
266 2020-10-29 Tom Tromey <tom@tromey.com>
267
268 * gcore.c (default_gcore_mach): Remove.
269 (create_gcore_bfd): Update.
270
271 2020-10-29 Tom Tromey <tom@tromey.com>
272
273 * progspace.c (program_space::exec_close): New method, from
274 exec_close in exec.c.
275 * exec.c (exec_close): Move to progspace.c.
276 (exec_target::close, exec_file_attach): Update.
277 * progspace.h (struct program_space) <exec_close>: Declare
278 method.
279
280 2020-10-29 Tom Tromey <tom@tromey.com>
281
282 * progspace.h (struct program_space) <exec_filename>: Rename from
283 pspace_exec_filename. Now a unique_xmalloc_ptr.
284 * inferior.c (print_selected_inferior): Update.
285 (print_inferior): Update.
286 * mi/mi-main.c (print_one_inferior): Update.
287 * exec.h (exec_filename): Remove macro.
288 * corefile.c (get_exec_file): Update.
289 * exec.c (exec_close): Update.
290 (exec_file_attach): Update.
291 * progspace.c (clone_program_space): Update.
292 (print_program_space): Update.
293
294 2020-10-29 Tom Tromey <tom@tromey.com>
295
296 * target-section.h (struct target_section): Add constructor.
297 * exec.c (build_section_table, add_target_sections_of_objfile):
298 Update.
299 * corelow.c (core_target::build_file_mappings): Update.
300
301 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
302
303 PR gdb/19318
304 * inferior.c (detach_inferior_command): Restore the current thread.
305 (kill_inferior_command): Ditto.
306
307 2020-10-28 Tom de Vries <tdevries@suse.de>
308
309 PR symtab/26772
310 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
311 map, check it in the "best match" loop.
312
313 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * m32c-tdep.c: Remove unused includes.
316
317 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
318
319 * xtensa-tdep.c: Remove includes.
320
321 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
322
323 * breakpoint.c (struct condition_command_opts): New struct.
324 (condition_command_option_defs): New static global.
325 (make_condition_command_options_def_group): New function.
326 (condition_completer): Update to consider the '-force' flag.
327 (condition_command): Use gdb::option for the '-force' flag.
328
329 2020-10-27 Tom de Vries <tdevries@suse.de>
330
331 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
332 symbols in section check.
333
334 2020-10-27 Tom de Vries <tdevries@suse.de>
335
336 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
337
338 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339
340 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
341 * breakpoint.c: Update the help text of the 'condition' and 'break'
342 commands.
343 (set_breakpoint_condition): Take a new bool parameter
344 to control whether condition definition should be forced even when
345 the condition expression is invalid in all of the current locations.
346 (condition_command): Update the call to 'set_breakpoint_condition'.
347 (find_condition_and_thread): Take the "-force-condition" flag into
348 account.
349 * linespec.c (linespec_keywords): Add "-force-condition" as an
350 element.
351 (FORCE_KEYWORD_INDEX): New #define.
352 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
353 as a keyword.
354 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
355 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
356 * python/py-breakpoint.c (bppy_set_condition): Ditto.
357 * NEWS: Mention the changes to the 'break' and 'condition' commands.
358
359 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
362 * breakpoint.c (set_breakpoint_location_condition): New function.
363 (set_breakpoint_condition): Disable a breakpoint location if parsing
364 the condition string gives an error.
365 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
366 (build_target_condition_list): Ditto.
367 (build_target_command_list): Ditto.
368 (build_bpstat_chain): Ditto.
369 (print_one_breakpoint_location): Ditto.
370 (print_one_breakpoint): Ditto.
371 (breakpoint_1): Ditto.
372 (bp_location::bp_location): Ditto.
373 (locations_are_equal): Ditto.
374 (update_breakpoint_locations): Ditto.
375 (enable_disable_bp_num_loc): Ditto.
376 (init_breakpoint_sal): Use set_breakpoint_location_condition.
377 (find_condition_and_thread_for_sals): New static function.
378 (create_breakpoint): Call find_condition_and_thread_for_sals.
379 (location_to_sals): Call find_condition_and_thread_for_sals instead
380 of find_condition_and_thread.
381
382 2020-10-26 Tom de Vries <tdevries@suse.de>
383
384 * dwarf2/read.c (process_full_comp_unit): Call
385 dwarf2_find_base_address.
386
387 2020-10-26 Tom Tromey <tromey@adacore.com>
388
389 * gdbtypes.c (create_range_type): Revert previous patch. Add
390 comment.
391
392 2020-10-26 Pedro Alves <pedro@palves.net>
393
394 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
395 (my_waitpid): Use gdb::handle_eintr.
396
397 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
398
399 * acinclude.m4: Update ptrace.m4 path.
400 * ptrace.m4: Moved to gdbsupport.
401
402 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
405 instead of target_gdbarch.
406
407 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * jit.c (jit_reader_load_command): Pass current inferior.
410 (jit_inferior_init): Change parameter type to inferior, use it.
411 (jit_inferior_created): Remove.
412 (jit_inferior_created_hook): Pass inferior parameter down.
413 (_initialize_jit): Use jit_inferior_created_hook instead of
414 jit_inferior_created.
415 * jit.h (jit_inferior_created_hook): Add inferior parameter.
416 * infrun.c (follow_exec): Pass inferior to
417 jit_inferior_created_hook.
418
419 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
420
421 * linux-thread-db.c (check_pid_namespace_match): Add inferior
422 parameter and use it.
423 (thread_db_inferior_created): Pass inferior argument.
424
425 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
426
427 * aix-thread.c (aix_thread_inferior_created): Add inferior
428 parameter.
429 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
430 * dummy-frame.c (cleanup_dummy_frames): Likewise.
431 * jit.c (jit_inferior_created): Likewise.
432 * linux-thread-db.c (thread_db_inferior_created): Likewise.
433 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
434 * observable.h (inferior_created): Likewise.
435 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
436 * symfile-mem.c (add_vsyscall_page): Likewise.
437 * infcmd.c (post_create_inferior): Pass inferior argument.
438
439 2020-10-24 Joel Brobecker <brobecker@adacore.com>
440
441 GDB 10.1 released.
442
443 2020-10-23 Joel Brobecker <brobecker@adacore.com>
444
445 * ada-typeprint.c (ada_print_type): Remove superfluous second call
446 to ada_check_typedef.
447
448 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * f-exp.y (f_parse): Rename to...
451 (f_language::parser): ...this.
452 * f-lang.c (f_get_encoding): Rename to...
453 (f_language::get_encoding): ...this.
454 (f_op_print_tab): Rename to...
455 (f_language::op_print_tab): ...this.
456 (exp_descriptor_f): Rename to...
457 (f_language::exp_descriptor_tab): ...this.
458 (class f_language): Moved to f-lang.h.
459 (f_language::language_arch_info): New function, moved out of class
460 declaration.
461 (f_language::search_name_hash): Likewise.
462 (f_language::lookup_symbol_nonlocal): Likewise.
463 (f_language::get_symbol_name_matcher_inner): Likewise.
464 * f-lang.h: Add 'valprint.h' include.
465 (class f_language): Moved here from f-lang.c.
466 * f-typeprint.c (f_type_print_args): Delete commented out
467 declaration.
468 (f_print_typedef): Rename to...
469 (f_language::print_typedef): ...this.
470 (f_print_type): Rename to...
471 (f_language::print_type): ...this.
472 (f_type_print_varspec_prefix): Delete declaration and rename to...
473 (f_language::f_type_print_varspec_prefix): ...this.
474 (f_type_print_varspec_suffix): Delete declaration and rename to...
475 (f_language::f_type_print_varspec_suffix): ...this.
476 (f_type_print_base): Delete declaration and rename to...
477 (f_language::f_type_print_base): ...this.
478 * f-valprint.c (f_value_print_inner): Rename to...
479 (f_language::value_print_inner): ...this.
480 * parse.c: Delete 'f-lang.h' include.
481
482 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
483
484 * language.h (language_defn::print_type): Add variable names in
485 declaration, and update header comment.
486
487 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * ada-lang.c (ada_language::demangle): Rename to...
490 (ada_language::demangle_symbol): ...this.
491 * c-lang.c (cplus_language::demangle): Rename to...
492 (cplus_language::demangle_symbol): ...this.
493 * d-lang.c (d_language::demangle): Rename to...
494 (d_language::demangle_symbol): ...this.
495 * f-lang.c (f_language::demangle): Rename to...
496 (f_language::demangle_symbol): ...this.
497 * go-lang.c (go_language::demangle): Rename to...
498 (go_language::demangle_symbol): ...this.
499 * language.c (language_demangle): Update call to demangle_symbol.
500 (auto_or_unknown_language::demangle): Rename to...
501 (auto_or_unknown_language::demangle_symbol): ...this.
502 * language.h (language_defn::demangle): Rename to...
503 (language_defn::demangle_symbol): ...this.
504 * objc-lang.c (objc_language::demangle): Rename to...
505 (objc_language::demangle_symbol): ...this.
506 * rust-lang.c (rust_language::demangle): Rename to...
507 (rust_language::demangle_symbol): ...this.
508
509 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
512 (iterate_over_file_blocks): Replace use of macro with the macros
513 definition.
514
515 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
518 * valprint.c (maybe_print_array_index): Replace use of macro with
519 the macros definition.
520
521 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * ada-lang.c (ada_language::print_array_index): Call value_print
524 directly.
525 * language.c (language_defn::print_array_index): Likewise.
526 * language.h (LA_VALUE_PRINT): Delete.
527 * valprint.c (value_print): Call value_print on the
528 current_language directly.
529
530 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * language.h (LA_PRINT_TYPEDEF): Delete.
533 * typeprint.c (typedef_print): Call print_typedef directly on the
534 current_language object.
535
536 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * m2-exp.y (m2_parse): Rename to...
539 (m2_language::parser): ...this. Update function signature.
540 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
541 (m2_op_print): Rename to...
542 (m2_language::op_print_tab): ...this, and make const.
543 (exp_descriptor_modula2): Rename to...
544 (m2_language::exp_descriptor_modula2): ...this.
545 (class m2_language): Move to m2-lang.h.
546 (m2_language::language_arch_info): New function, moved out of
547 class declaration.
548 (m2_language::printchar): New function, body from m2_printchar.
549 (m2_language::printstr): New function, moved out of class
550 declaration.
551 (m2_language::emitchar): Likewise.
552 * m2-lang.h (m2_parse): Delete declaration.
553 (m2_print_typedef): Delete declaration.
554 (m2_value_print_inner): Delete declaration.
555 (class m2_language): Class declaration moved from m2-lang.c,
556 larger functions are left in m2-lang.c.
557 * m2-typeprint.c (m2_print_typedef): Rename to...
558 (m2_language::print_typedef): ...this, and update function
559 signature.
560 * m2-valprint.c (m2_value_print_inner): Rename to...
561 (m2_language::value_print_inner): ...this, replace use of
562 LA_PRINT_STRING with a direct call to printstr member function,
563 and update recursive call.
564
565 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
566
567 * language.c (default_is_string_type_p): Delete, implementation
568 moved into auto_or_unknown_language::is_string_type_p.
569 (unk_op_print_tab): Moved into
570 auto_or_unknown_language::opcode_print_table.
571 (unknown_language_arch_info): Delete, implementation moved into
572 auto_or_unknown_language::language_arch_info.
573 (class auto_or_unknown_language): New class, member functions
574 copied from unknown_language class, with some updates.
575 (class unknown_language): Most member functions moved into
576 auto_or_unknown_language class. Inherit from
577 auto_or_unknown_language class.
578 (class auto_language): Inherit from auto_or_unknown_language.
579 Delete most member functions.
580
581 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
582
583 * stabsread.c (read_member_functions): Remove gdb_assert.
584
585 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
586
587 * gdbtypes.c (init_complex_type): Check target type name.
588
589 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * target-debug.h (target_debug_print_struct_target_ops_p):
592 Remove.
593 (target_debug_print_async_callback_ftype_p): Remove.
594 (target_debug_print_struct_trace_state_variable_p): Remove.
595 (target_debug_print_struct_traceframe_info_p): Remove.
596 (target_debug_print_VEC__btrace_block_s__pp): Remove.
597 (target_debug_print_enum_btrace_format): Remove.
598 (target_debug_print_enum_info_proc_what): Remove.
599 (target_debug_print_thread_info_pp): Remove.
600
601 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
602
603 * target.h (struct target_ops) <make_corefile_notes>:
604 Change return type to unique pointer.
605 * target.c (dummy_make_corefile_notes): Likewise.
606 * exec.c (struct exec_target) <make_corefile_notes>:
607 Likewise.
608 (exec_target::make_corefile_notes): Likewise.
609 * procfs.c (class procfs_target) <make_corefile_notes>:
610 Likewise.
611 (procfs_do_thread_registers): Adjust to unique pointer.
612 (struct procfs_corefile_thread_data): Add constructor.
613 <note_data>: Change type to unique pointer.
614 (procfs_corefile_thread_callback): Adjust to unique pointer.
615 (procfs_target::make_corefile_notes): Change return type to
616 unique pointer.
617 * target-delegates.c: Re-generate.
618 * gcore.c (write_gcore_file_1): Adjust.
619 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
620 New.
621
622 2020-10-22 Tom de Vries <tdevries@suse.de>
623
624 * block.c (find_block_in_blockvector): Make sure the returned block
625 contains pc.
626
627 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
628
629 PR gdb/26693
630 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
631 parameter.
632 (load_cu): Pass existing CU.
633 (process_imported_unit_die): Likewise.
634 (follow_die_offset): Likewise.
635
636 2020-10-22 Luis Machado <luis.machado@linaro.org>
637
638 * corelow.c (core_target::xfer_partial): Also check for an empty
639 m_core_unavailable_mappings vector.
640
641 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
642
643 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
644 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
645 * f-exp.y (arglist): Allow for a series of subranges.
646 (subrange): Add cases for subranges with strides.
647 * f-lang.c (value_f90_subarray): Catch use of array strides and
648 throw an error.
649 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
650
651 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * expprint.c (print_subexp_standard): Change enum range_type to
654 range_flag and rename variables to match.
655 (dump_subexp_body_standard): Likewise.
656 * expression.h (enum range_type): Rename to...
657 (enum range_flag): ...this.
658 (range_types): Rename to...
659 (range_flags): ...this.
660 * f-lang.c (value_f90_subarray): Change enum range_type to
661 range_flag and rename variables to match.
662 * parse.c (operator_length_standard): Likewise.
663 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
664 range_type to range_flag.
665 * rust-lang.c (rust_evaluate_funcall): Likewise.
666 (rust_range): Likewise.
667 (rust_compute_range): Likewise.
668 (rust_subscript): Likewise.
669
670 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
671
672 * expprint.c (print_subexp_standard): Update to reflect changes to
673 enum range_type.
674 (dump_subexp_body_standard): Likewise.
675 * expression.h (enum range_type): Convert to a bit field enum, and
676 make the enum unsigned.
677 * f-exp.y (subrange): Update to reflect changes to enum
678 range_type.
679 * f-lang.c (value_f90_subarray): Likewise.
680 * parse.c (operator_length_standard): Likewise.
681 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
682 * rust-lang.c (rust_range): Likewise.
683 (rust_compute_range): Likewise.
684 (rust_subscript): Likewise.
685
686 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
687
688 * infrun.c (displaced_step_in_progress_thread): Fix comment.
689 (displaced_step_in_progress): Fix comment.
690
691 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
692
693 * gdbarch.sh (make_corefile_notes): Return unique pointer.
694 * gdbarch.c: Re-generate.
695 * gdbarch.h: Re-generate.
696 * gcore.c (write_gcore_file_1): Adjust.
697 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
698 constructor.
699 <note_data>: Change type to unique pointer.
700 <abort_iteration>: Change type to bool.
701 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
702 (fbsd_collect_thread_registers): Return void, adjust.
703 (struct fbsd_corefile_thread_data): Add construtor.
704 <note_data>: Change type to unique pointer.
705 (fbsd_corefile_thread): Adjust.
706 (fbsd_make_corefile_notes): Return unique pointer, adjust.
707 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
708 to unique pointer, adjust.
709 (struct linux_collect_regset_section_cb_data): Add constructor.
710 <note_data>: Change type to unique pointer.
711 <abort_iteration>: Change type to bool.
712 (linux_collect_thread_registers): Return void, adjust.
713 (struct linux_corefile_thread_data): Add constructor.
714 <note_data>: Change type to unique pointer.
715 (linux_corefile_thread): Adjust.
716 (linux_make_corefile_notes): Return unique pointer, adjust.
717
718 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
721 * gdbarch.c: Re-generate.
722 * gdbarch.h: Re-generate.
723 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
724 bool.
725 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
726 Likewise.
727 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
728 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
729 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
730 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
731
732 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
733
734 * gdbarch.sh: Make generated predicates return bool.
735 * gdbarch.c: Re-generate.
736 * gdbarch.h: Re-generate.
737
738 2020-10-20 Tom Tromey <tom@tromey.com>
739
740 * varobj-iter.h (struct varobj_item): Remove typedef.
741
742 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * infrun.c (currently_stepping): Change int to bool
745 (maybe_software_singlestep): Likewise.
746 (show_stop_on_solib_events): Likewise.
747 (stepping_past_nonsteppable_watchpoint): Likewise.
748 (displaced_step_in_progress_any_inferior): Likewise.
749 (displaced_step_in_progress_thread): Likewise.
750 (keep_going_stepped_thread): Likewise.
751 (thread_still_needs_step_over): Likewise.
752 (start_step_over): Likewise.
753 (do_target_resume): Likewise.
754 (resume_1): Likewise.
755 (clear_proceed_status): Likewise.
756 (thread_still_needs_step_over_bp): Likewise.
757 (proceed): Likewise.
758 (switch_back_to_stepped_thread): Likewise.
759 (adjust_pc_after_break): Likewise.
760 (stepped_in_from): Likewise.
761 (handle_stop_requested): Likewise.
762 (handle_syscall_event): Likewise.
763 (handle_no_resumed): Likewise.
764 (handle_inferior_event): Likewise.
765 (finish_step_over): Likewise.
766 (handle_signal_stop): Likewise.
767 (process_event_stop_test): Likewise.
768
769 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * infrun.c (get_displaced_stepping_state): Fix comment.
772
773 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
774
775 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
776
777 2020-10-19 Tom Tromey <tromey@adacore.com>
778
779 PR tui/26719
780 * tui/tui-winsource.h (struct tui_source_window_base)
781 <refresh_window>: Rename from refresh_pad.
782 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
783 Rename from refresh_pad.
784 (tui_source_window_base::show_source_content)
785 (tui_source_window_base::do_scroll_horizontal): Update.
786
787 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
788
789 * thread.c (_initialize_thread): Fine-tune the help text of
790 'info threads'.
791
792 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
793
794 * frame.c: Remove the unused 'uinteger_option_def' type alias.
795
796 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
797
798 * breakpoint.c (handle_jit_event): Add an argument, change how
799 `jit_event_handler` is called.
800
801 2020-10-17 Tom Tromey <tom@tromey.com>
802
803 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
804 (scan_xcoff_symtab): Update.
805 * psymtab.h (class psymtab_storage) <global_psymbols,
806 static_psymbols, current_global_psymbols,
807 current_static_psymbols>: Remove.
808 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
809 (match_partial_symbol, lookup_partial_symbol): Update.
810 (print_partial_symbols): Change parameters.
811 (dump_psymtab, recursively_search_psymtabs)
812 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
813 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
814 (concat): Remove.
815 (end_psymtab_common): Simplify.
816 (append_psymbol_to_list): Change parameters.
817 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
818 (init_psymbol_list): Simplify.
819 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
820 * psympriv.h (struct partial_symtab) <empty>: New method.
821 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
822 Remove.
823 <global_psymbols, static_psymbols>: New members.
824 <add_psymbol>: New methods.
825 (add_psymbol_to_list): Don't declare.
826 (psymbol_placement): Move earlier.
827 * mdebugread.c (parse_partial_symbols): Update.
828 (handle_psymbol_enumerators): Change parameters.
829 (mdebug_expand_psymtab): Update.
830 * dwarf2/read.c (process_psymtab_comp_unit_reader)
831 (add_partial_symbol): Update.
832 * dwarf2/index-write.c (write_psymbols): Change parameters.
833 (write_one_signatured_type): Update.
834 (recursively_count_psymbols): Update.
835 (recursively_write_psymbols): Update.
836 (class debug_names) <recursively_write_psymbols>: Update.
837 <write_psymbols>: Change parameters.
838 <write_one_signatured_type>: Update.
839 * dbxread.c (read_dbx_symtab): Update.
840 (dbx_end_psymtab): Use partial_symtab::empty.
841 * ctfread.c (struct ctf_context) <pst>: New member.
842 (create_partial_symtab): Set it.
843 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
844 (scan_partial_symbols): Use the psymtab's context. Update.
845
846 2020-10-17 Tom Tromey <tom@tromey.com>
847
848 * valprint.c (generic_value_print): Remove comment.
849 * m2-valprint.c (m2_value_print_inner): Remove comment.
850 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
851 type.
852
853 2020-10-17 Tom de Vries <tdevries@suse.de>
854
855 PR symtab/26317
856 * source.c (select_source_symtab): Handling sal.symtab == NULL for
857 symbol main.
858
859 2020-10-14 Tom de Vries <tdevries@suse.de>
860
861 PR gdb/26733
862 * solib.c (solib_contains_address_p): Handle
863 'solib->sections == nullptr'.
864
865 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
866
867 PR gdb/26642
868 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
869 target can't do async.
870 * target.c (target_wait): Assert that we don't pass
871 TARGET_WNOHANG to a target that can't async.
872
873 2020-10-13 Kamil Rytarowski <n54@gmx.com>
874
875 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
876 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
877 * alpha-bsd-nat.c: Adjust include.
878 * alpha-bsd-tdep.h: Adjust comment.
879 * alpha-nbsd-tdep.c: Rename to ...
880 * alpha-netbsd-tdep.c: ... this, adjust include.
881 * amd64-nbsd-nat.c: Rename to ...
882 * amd64-netbsd-nat.c: ... this, adjust include.
883 * amd64-nbsd-tdep.c: Rename to ...
884 * amd64-netbsd-tdep.c: ... this, adjust include.
885 * amd64-tdep.h: Adjust include.
886 * arm-nbsd-nat.c: Rename to ...
887 * arm-netbsd-nat.c: ... this, adjust include.
888 * arm-nbsd-tdep.c: Rename to ...
889 * arm-netbsd-tdep.c: ... this, adjust include.
890 * arm-nbsd-tdep.h: Rename to ...
891 * arm-netbsd-tdep.h: ... this, adjust include.
892 * configure.nat: Adjust file lists.
893 * configure.tgt: Likewise.
894 * hppa-nbsd-nat.c: Rename to ...
895 * hppa-netbsd-nat.c: ... this, adjust include.
896 * hppa-nbsd-tdep.c: Rename to ...
897 * hppa-netbsd-tdep.c: ... this, adjust include.
898 * i386-nbsd-nat.c: Rename to ...
899 * i386-netbsd-nat.c: ... this, adjust include.
900 * i386-nbsd-tdep.c: Rename to ...
901 * i386-netbsd-tdep.c: ... this, adjust include.
902 * m68k-bsd-nat.c: Adjust include.
903 * mips-nbsd-nat.c: Rename to ...
904 * mips-netbsd-nat.c: ... this, adjust include.
905 * mips-nbsd-tdep.c: Rename to ...
906 * mips-netbsd-tdep.c: ... this, adjust include.
907 * mips-nbsd-tdep.h: Rename to ...
908 * mips-netbsd-tdep.h: ... this.
909 * nbsd-nat.c: Rename to ...
910 * netbsd-nat.c: ... this, adjust include.
911 * nbsd-nat.h: Rename to ...
912 * netbsd-nat.h: ... this, adjust include.
913 * nbsd-tdep.c: Rename to ...
914 * netbsd-tdep.c: ... this, adjust include.
915 * nbsd-tdep.h: Rename to ...
916 * netbsd-tdep.h: ... this.
917 * ppc-nbsd-nat.c: Rename to ...
918 * ppc-netbsd-nat.c: ... this, adjust include.
919 * ppc-nbsd-tdep.c: Rename to ...
920 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
921 * ppc-nbsd-tdep.h: Rename to ...
922 * ppc-netbsd-tdep.h: ... this.
923 * sh-nbsd-nat.c: Rename to ...
924 * sh-netbsd-nat.c: ... this, adjust include.
925 * sh-nbsd-tdep.c: Rename to ...
926 * sh-netbsd-tdep.c: ... this, adjust include.
927 * sparc-nbsd-nat.c: Rename to ...
928 * sparc-netbsd-nat.c: ... this.
929 * sparc-nbsd-tdep.c: Rename to ...
930 * sparc-netbsd-tdep.c: ... this, adjust include.
931 * sparc64-nbsd-nat.c: Rename to ...
932 * sparc64-netbsd-nat.c: ... this.
933 * sparc64-nbsd-tdep.c: Rename to ...
934 * sparc64-netbsd-tdep.c: ... this, adjust include.
935 * sparc64-tdep.h: Adjust comment.
936 * vax-bsd-nat.c: Adjust include.
937 * vax-nbsd-tdep.c: Rename to ...
938 * vax-netbsd-tdep.c: ... this, adjust include.
939
940 2020-10-12 Tom Tromey <tom@tromey.com>
941
942 * target.h (struct target_ops) <get_section_table>: Update.
943 (target_get_section_table): Update.
944 * target.c (target_get_section_table, target_section_by_addr)
945 (memory_xfer_partial_1): Update.
946 * target-section.h (target_section_table): Now an alias.
947 * target-delegates.c: Rebuild.
948 * target-debug.h (target_debug_print_target_section_table_p):
949 Rename from target_debug_print_struct_target_section_table_p.
950 * symfile.c (build_section_addr_info_from_section_table): Update.
951 * solib.c (solib_map_sections, solib_contains_address_p): Update.
952 * solib-svr4.c (scan_dyntag): Update.
953 * solib-dsbt.c (scan_dyntag): Update.
954 * remote.c (remote_target::remote_xfer_live_readonly_partial):
955 Update.
956 * record-full.c (record_full_core_target::xfer_partial): Update.
957 * progspace.h (struct program_space) <target_sections>: Update.
958 * exec.h (print_section_info): Update.
959 * exec.c (exec_target::close, build_section_table)
960 (add_target_sections, add_target_sections_of_objfile)
961 (remove_target_sections, exec_on_vfork)
962 (section_table_available_memory)
963 (section_table_xfer_memory_partial)
964 (exec_target::get_section_table, exec_target::xfer_partial)
965 (print_section_info, set_section_command)
966 (exec_set_section_address, exec_target::has_memory): Update.
967 * corelow.c (core_target::build_file_mappings)
968 (core_target::xfer_partial, core_target::info_proc_mappings)
969 (core_target::info_proc_mappings): Update.
970 * bfd-target.c (class target_bfd): Update
971
972 2020-10-12 Tom Tromey <tom@tromey.com>
973
974 * progspace.c (program_space::~program_space): Don't call
975 clear_section_table.
976 * exec.h (clear_section_table): Don't declare.
977 * exec.c (exec_target::close): Update.
978 (clear_section_table): Remove.
979
980 2020-10-12 Tom Tromey <tom@tromey.com>
981
982 * exec.c (add_target_sections_of_objfile): Simplify.
983
984 2020-10-12 Tom Tromey <tom@tromey.com>
985
986 * solib.c (solib_map_sections): Update.
987 * record-full.c (record_full_core_open_1): Update.
988 * exec.h (build_section_table): Return a target_section_table.
989 * exec.c (exec_file_attach): Update.
990 (build_section_table): Return a target_section_table.
991 * corelow.c (core_target::core_target): Update.
992 * bfd-target.c (target_bfd::target_bfd): Update.
993
994 2020-10-12 Tom Tromey <tom@tromey.com>
995
996 * target.c (target_section_by_addr, memory_xfer_partial_1):
997 Update.
998 * target-section.h (struct target_section_table): Use
999 std::vector.
1000 * symfile.h (build_section_addr_info_from_section_table): Take a
1001 target_section_table.
1002 * symfile.c (build_section_addr_info_from_section_table): Take a
1003 target_section_table.
1004 * solist.h (struct so_list) <sections>: Change type.
1005 <sections_end>: Remove.
1006 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1007 (solib_contains_address_p): Update.
1008 * solib-svr4.c (scan_dyntag): Update.
1009 * solib-dsbt.c (scan_dyntag): Update.
1010 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1011 Update.
1012 * record-full.c (record_full_core_start, record_full_core_end):
1013 Remove.
1014 (record_full_core_sections): New global.
1015 (record_full_core_open_1, record_full_core_target::xfer_partial):
1016 Update.
1017 * exec.h (build_section_table, section_table_xfer_memory_partial)
1018 (add_target_sections): Take a target_section_table.
1019 * exec.c (exec_file_attach, clear_section_table): Update.
1020 (resize_section_table): Remove.
1021 (build_section_table, add_target_sections): Take a
1022 target_section_table.
1023 (add_target_sections_of_objfile, remove_target_sections)
1024 (exec_on_vfork): Update.
1025 (section_table_available_memory): Take a target_section_table.
1026 (section_table_read_available_memory): Update.
1027 (section_table_xfer_memory_partial): Take a target_section_table.
1028 (print_section_info, set_section_command)
1029 (exec_set_section_address, exec_target::has_memory): Update.
1030 * corelow.c (class core_target) <m_core_section_table,
1031 m_core_file_mappings>: Remove braces.
1032 <~core_target>: Remove.
1033 (core_target::core_target): Update.
1034 (core_target::~core_target): Remove.
1035 (core_target::build_file_mappings)
1036 (core_target::xfer_memory_via_mappings)
1037 (core_target::xfer_partial, core_target::info_proc_mappings):
1038 Update.
1039 * bfd-target.c (target_bfd::xfer_partial): Update.
1040 (target_bfd::target_bfd): Update.
1041 (target_bfd::~target_bfd): Remove.
1042
1043 2020-10-12 Tom Tromey <tom@tromey.com>
1044
1045 * target.h (struct target_section, struct target_section_table):
1046 Move to target-section.h.
1047 * target-section.h: New file.
1048
1049 2020-10-12 Pedro Alves <pedro@palves.net>
1050
1051 PR exp/26602
1052 * valops.c (struct struct_field_searcher): New.
1053 (update_search_result): Rename to ...
1054 (struct_field_searcher::update_result): ... this. Simplify
1055 prototype. Record all found fields.
1056 (do_search_struct_field): Rename to ...
1057 (struct_field_searcher::search): ... this. Simplify prototype.
1058 Maintain stack of visited baseclass path. Call update_result for
1059 fields too. Keep searching fields in baseclasses instead of
1060 stopping at the first found field.
1061 (search_struct_field): Use struct_field_searcher. When looking
1062 for fields, report ambiguous access attempts.
1063
1064 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * frame.c (inside_main_func): Check full symbols as well as
1067 minimal symbols.
1068
1069 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1070
1071 * ada-lang.c (advance_wild_match): Rewrite the function's
1072 description. Change the type of target0, t0 and t1 to char.
1073
1074 2020-10-09 Tom Tromey <tromey@adacore.com>
1075
1076 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1077
1078 2020-10-09 Tom Tromey <tromey@adacore.com>
1079
1080 * ada-lang.h (ada_encode): Return std::string.
1081 * ada-lang.c (ada_encode_1): Return std::string.
1082 (ada_encode): Likewise.
1083 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1084 Update.
1085 * ada-exp.y (block_lookup, write_var_or_type): Update.
1086
1087 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1088
1089 PR exp/26714
1090 * printcmd.c (print_formatted): Handle void results as
1091 unformatted prints.
1092
1093 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * arch/aarch32.c (aarch32_create_target_description): Release the
1096 target_desc_up as late as possible.
1097 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1098 * arch/amd64.c (amd64_create_target_description): Likewise.
1099 * arch/arc.c (arc_create_target_description): Return a
1100 target_desc_up, don't release it.
1101 * arch/arc.h (arc_create_target_description): Update declaration.
1102 (arc_lookup_target_description): Move target_desc_up into the
1103 cache, and return a borrowed pointer.
1104 * arch/arm.c (arm_create_target_description): Release the
1105 target_desc_up as late as possible.
1106 * arch/i386.c (i386_create_target_description): Likewise.
1107 * arch/riscv.h (riscv_create_target_description): Update
1108 declaration to match definition.
1109 * arch/tic6x.c (tic6x_create_target_description): Release the
1110 target_desc_up as late as possible.
1111
1112 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1115 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1116
1117 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1118
1119 * source.c (directory_command): Notify observers that "directories"
1120 parameter has changed.
1121
1122 2020-10-08 Tom Tromey <tom@tromey.com>
1123
1124 * cli/cli-cmds.c (print_disassembly): Style function name and
1125 addresses. Add _() wrappers.
1126
1127 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1128
1129 * NEWS: Mention ARC support in GDBserver.
1130
1131 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * arch/aarch32.c (aarch32_create_target_description): Release
1134 unique_ptr returned from allocate_target_description.
1135 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1136 * arch/amd64.c (amd64_create_target_description): Likewise.
1137 * arch/arc.c (arc_create_target_description): Likewise.
1138 * arch/arm.c (arm_create_target_description): Likewise.
1139 * arch/i386.c (i386_create_target_description): Likewise.
1140 * arch/riscv.c (riscv_create_target_description): Update return
1141 type. Handle allocate_target_description returning a unique_ptr.
1142 (riscv_lookup_target_description): Update to handle unique_ptr.
1143 * arch/tic6x.c (tic6x_create_target_description): Release
1144 unique_ptr returned from allocate_target_description.
1145 * features/microblaze-with-stack-protect.c: Regenerate.
1146 * features/microblaze.c: Regenerate.
1147 * features/mips-dsp-linux.c: Regenerate.
1148 * features/mips-linux.c: Regenerate.
1149 * features/mips64-dsp-linux.c: Regenerate.
1150 * features/mips64-linux.c: Regenerate.
1151 * features/nds32.c: Regenerate.
1152 * features/nios2.c: Regenerate.
1153 * features/or1k.c: Regenerate.
1154 * features/rs6000/powerpc-32.c: Regenerate.
1155 * features/rs6000/powerpc-32l.c: Regenerate.
1156 * features/rs6000/powerpc-403.c: Regenerate.
1157 * features/rs6000/powerpc-403gc.c: Regenerate.
1158 * features/rs6000/powerpc-405.c: Regenerate.
1159 * features/rs6000/powerpc-505.c: Regenerate.
1160 * features/rs6000/powerpc-601.c: Regenerate.
1161 * features/rs6000/powerpc-602.c: Regenerate.
1162 * features/rs6000/powerpc-603.c: Regenerate.
1163 * features/rs6000/powerpc-604.c: Regenerate.
1164 * features/rs6000/powerpc-64.c: Regenerate.
1165 * features/rs6000/powerpc-64l.c: Regenerate.
1166 * features/rs6000/powerpc-7400.c: Regenerate.
1167 * features/rs6000/powerpc-750.c: Regenerate.
1168 * features/rs6000/powerpc-860.c: Regenerate.
1169 * features/rs6000/powerpc-altivec32.c: Regenerate.
1170 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1171 * features/rs6000/powerpc-altivec64.c: Regenerate.
1172 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1173 * features/rs6000/powerpc-e500.c: Regenerate.
1174 * features/rs6000/powerpc-e500l.c: Regenerate.
1175 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1176 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1177 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1178 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1179 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1180 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1181 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1182 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1183 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1184 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1185 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1186 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1187 * features/rs6000/powerpc-vsx32.c: Regenerate.
1188 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1189 * features/rs6000/powerpc-vsx64.c: Regenerate.
1190 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1191 * features/rs6000/rs6000.c: Regenerate.
1192 * features/rx.c: Regenerate.
1193 * features/s390-gs-linux64.c: Regenerate.
1194 * features/s390-linux32.c: Regenerate.
1195 * features/s390-linux32v1.c: Regenerate.
1196 * features/s390-linux32v2.c: Regenerate.
1197 * features/s390-linux64.c: Regenerate.
1198 * features/s390-linux64v1.c: Regenerate.
1199 * features/s390-linux64v2.c: Regenerate.
1200 * features/s390-te-linux64.c: Regenerate.
1201 * features/s390-tevx-linux64.c: Regenerate.
1202 * features/s390-vx-linux64.c: Regenerate.
1203 * features/s390x-gs-linux64.c: Regenerate.
1204 * features/s390x-linux64.c: Regenerate.
1205 * features/s390x-linux64v1.c: Regenerate.
1206 * features/s390x-linux64v2.c: Regenerate.
1207 * features/s390x-te-linux64.c: Regenerate.
1208 * features/s390x-tevx-linux64.c: Regenerate.
1209 * features/s390x-vx-linux64.c: Regenerate.
1210 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1211 from allocate_target_description.
1212 * target-descriptions.c (allocate_target_description): Update
1213 return type.
1214 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1215 allocate_target_description.
1216
1217 2020-10-07 Tom Tromey <tromey@adacore.com>
1218
1219 * unittests/search-memory-selftests.c: New file.
1220 * Makefile.in (SELFTESTS_SRCS): Add
1221 unittests/search-memory-selftests.c.
1222
1223 2020-10-07 Tom Tromey <tromey@adacore.com>
1224
1225 PR gdb/16930:
1226 * findcmd.c (_initialize_mem_search): Mention that the range is
1227 inclusive.
1228
1229 2020-10-07 Tom Tromey <tromey@adacore.com>
1230
1231 * target.h (simple_search_memory): Don't declare.
1232 * target.c (simple_search_memory): Move to gdbsupport.
1233 (default_search_memory): Update.
1234 * remote.c (remote_target::search_memory): Update.
1235
1236 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * Makefile.in (COMPILE): Add CXXFLAGS.
1239 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1240 (check-headers): Add CXXFLAGS.
1241
1242 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1243
1244 * arc-linux-tdep.h: New file.
1245 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1246 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1247 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1248 arc_linux_gregset, arc_linux_v2_regset,
1249 arc_linux_iterate_over_regset_sections,
1250 arc_linux_core_read_description): Implement.
1251 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1252 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1253 (arc_gdbarch_features_create): Add.
1254 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1255
1256 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1257
1258 * arch/arc.h: Rename "arc_gdbarch_features" to
1259 "arc_arch_features".
1260 * arc-tdep.h: Likewise.
1261 * arc-tdep.c: Likewise.
1262
1263 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1264
1265 * infcmd.c (attach_command): Remove the redundant call to
1266 `clear_proceed_status`.
1267
1268 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1269
1270 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1271
1272 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1273
1274 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1275 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1276 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1277
1278 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1281 (_initialize_break_catch_sig): Don't allocate array.
1282
1283 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1284
1285 * symtab.c (find_pc_line): Return unmapped addresses when the
1286 requested address is also unmapped.
1287
1288 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1289
1290 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1291 tui/tui-out.h.
1292
1293 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1294
1295 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1296 type::is_vector instead of TYPE_VECTOR.
1297
1298 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 * auto-load.c (auto_load_objfile_script_1): Don't use
1301 debugfile_holder as temporary variable when stripping drive
1302 letter.
1303
1304 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1305
1306 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1307 Add TYPE_CODE_COMPLEX.
1308 (amd64_windows_return_value): Fix types returned via XMM0.
1309
1310 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1311
1312 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1313 AArch64/ARM maintainers.
1314
1315 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * NEWS: Mention set/show debug event-loop.
1318
1319 2020-10-02 Tom Tromey <tromey@adacore.com>
1320
1321 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1322 REG_EXTENDED.
1323
1324 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1325
1326 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1327 * procfs.c (procfs_inferior_created): Remove.
1328 (_initialize_procfs): Don't register procfs_inferior_created.
1329
1330 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * async-event.c (invoke_async_signal_handlers): Add debug
1333 print.
1334 (check_async_event_handlers): Likewise.
1335 * event-top.c (show_debug_event_loop): New function.
1336 (_initialize_event_top): Register "set debug event-loop"
1337 setting.
1338
1339 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1342 * debug.h: Remove.
1343 * infrun.c: Include gdbsupport/common-debug.h.
1344 * linux-nat.c: Likewise.
1345
1346 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1347
1348 * async-event.h (create_async_signal_handler): Add name
1349 parameter.
1350 (create_async_event_handler): Likewise.
1351 * async-event.c (struct async_signal_handler) <name>: New field.
1352 (struct async_event_handler) <name>: New field.
1353 (create_async_signal_handler): Assign name.
1354 (create_async_event_handler): Assign name.
1355 * event-top.c (async_init_signals): Pass name when creating
1356 handler.
1357 * infrun.c (_initialize_infrun): Likewise.
1358 * record-btrace.c (record_btrace_push_target): Likewise.
1359 * record-full.c (record_full_open): Likewise.
1360 * remote-notif.c (remote_notif_state_allocate): Likewise.
1361 * remote.c (remote_target::open_1): Likewise.
1362 * tui/tui-win.c (tui_initialize_win): Likewise.
1363
1364 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1365
1366 * async-event.c (initialize_async_signal_handlers): Pass name to
1367 add_file_handler
1368 * event-top.c (ui_register_input_event_handler): Likewise.
1369 * linux-nat.c (linux_nat_target::async): Likewise.
1370 * run-on-main-thread.c (_initialize_run_on_main_thread):
1371 Likewise
1372 * ser-base.c (reschedule): Likewise.
1373 (ser_base_async): Likewise.
1374 * tui/tui-io.c: Likewise.
1375 * top.h (struct ui) <num>: New field.
1376 * top.c (highest_ui_num): New variable.
1377 (ui::ui): Initialize num.
1378
1379 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * observable.h <inferior_created>: Remove parameters. Update all
1382 listeners.
1383 * inferior.h (post_create_inferior): Remove target parameter.
1384 Update all callers.
1385
1386 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1387
1388 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1389 and DW_MACRO_undef_strx.
1390 (dwarf_decode_macros): Likewise
1391 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1392 which is the value of DW_AT_str_offsets_base.
1393 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1394 str_offsets_base.
1395
1396 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1397
1398 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1399
1400 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1401
1402 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1403 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1404
1405 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1406
1407 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1408
1409 2020-09-30 Tom de Vries <tdevries@suse.de>
1410
1411 PR symtab/26683
1412 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1413
1414 2020-09-30 Tom Tromey <tromey@adacore.com>
1415
1416 * dwarf2/read.c (handle_variant): Use constant_value.
1417
1418 2020-09-29 Tom Tromey <tom@tromey.com>
1419
1420 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1421 (read_file_scope, dwarf2_get_pc_bounds)
1422 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1423 (read_structure_type, handle_struct_member_die)
1424 (read_enumeration_type, read_array_type, read_set_type)
1425 (read_tag_pointer_type, read_tag_reference_type)
1426 (read_subroutine_type, read_base_type, read_subrange_type)
1427 (read_full_die_1, partial_die_info::read)
1428 (partial_die_info::read, by, new_symbol)
1429 (dwarf2_const_value_data, dwarf2_const_value_attr)
1430 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1431 (prepare_one_comp_unit): Update.
1432 * dwarf2/attribute.h (DW_UNSND): Remove.
1433
1434 2020-09-29 Tom Tromey <tom@tromey.com>
1435
1436 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1437 (read_subroutine_type, partial_die_info::read)
1438 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1439 (dwarf2_add_member_fn): Update.
1440 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1441 * dwarf2/attribute.c (attribute::as_boolean): New method.
1442
1443 2020-09-29 Tom Tromey <tom@tromey.com>
1444
1445 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1446 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1447 method.
1448 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1449
1450 2020-09-29 Tom Tromey <tom@tromey.com>
1451
1452 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1453 the attribute's form.
1454
1455 2020-09-29 Tom Tromey <tom@tromey.com>
1456
1457 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1458 (dwarf2_add_member_fn): Update.
1459 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1460 * dwarf2/attribute.c (attribute::defaulted): New method, from
1461 is_valid_DW_AT_defaulted.
1462
1463 2020-09-29 Tom Tromey <tom@tromey.com>
1464
1465 * dwarf2/read.c (dw2_get_file_names_reader)
1466 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1467 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1468 (dwarf2_symbol_mark_computed): Use as_unsigned.
1469 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1470 method.
1471 <form_is_section_offset>: Update comment.
1472
1473 2020-09-29 Tom Tromey <tom@tromey.com>
1474
1475 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1476 dwarf2_default_access_attribute. Look up attribute.
1477 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1478 Update.
1479
1480 2020-09-29 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2/read.c (skip_one_die): Update.
1483 (read_full_die_1): Change how reprocessing is done.
1484 (partial_die_info::read): Update.
1485 (read_attribute_value): Remove need_reprocess parameter.
1486 (read_attribute): Likewise.
1487 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1488 New method.
1489
1490 2020-09-29 Tom Tromey <tom@tromey.com>
1491
1492 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1493 (dwarf2_const_value_attr, dump_die_shallow)
1494 (dwarf2_fetch_constant_bytes): Update.
1495 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1496 comment.
1497 <set_address>: New method.
1498 (DW_ADDR): Remove.
1499 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1500 (attribute::as_string, attribute::as_address): Add assert.
1501
1502 2020-09-29 Tom Tromey <tom@tromey.com>
1503
1504 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1505 (read_attribute_reprocess, read_attribute_value): Update.
1506 (read_attribute): Clear requires_reprocessing.
1507 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1508 form_requires_reprocessing>: New methods.
1509 <string_init>: Clear requires_reprocessing.
1510 <set_unsigned_reprocess>: New method.
1511 <name>: Shrink by one bit.
1512 <requires_reprocessing>: New member.
1513 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1514 method.
1515
1516 2020-09-29 Tom Tromey <tom@tromey.com>
1517
1518 * dwarf2/read.c (read_attribute_value): Update.
1519 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1520 set_unsigned>: New methods.
1521 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1522
1523 2020-09-29 Tom Tromey <tom@tromey.com>
1524
1525 * dwarf2/read.c (get_alignment, read_array_order)
1526 (read_attribute_value, dwarf2_const_value_attr)
1527 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1528 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1529 New methods.
1530 (DW_SND): Remove.
1531
1532 2020-09-29 Tom Tromey <tom@tromey.com>
1533
1534 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1535 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1536 Update.
1537 * dwarf2/attribute.h (struct attribute) <as_signature,
1538 set_signature>: New methods.
1539 (DW_SIGNATURE): Remove.
1540
1541 2020-09-29 Tom Tromey <tom@tromey.com>
1542
1543 * dwarf2/read.c (read_call_site_scope)
1544 (handle_data_member_location, dwarf2_add_member_fn)
1545 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1546 (partial_die_info::read, read_attribute_value)
1547 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1548 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1549 (dwarf2_symbol_mark_computed): Update.
1550 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1551 methods.
1552 (DW_BLOCK): Remove.
1553 * dwarf2/attribute.c (attribute::form_is_block): Add
1554 DW_FORM_data16.
1555
1556 2020-09-29 Tom Tromey <tom@tromey.com>
1557
1558 * dwarf2/read.c (read_cutu_die_from_dwo)
1559 (read_attribute_reprocess, read_attribute_value, read_attribute)
1560 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1561 (dwarf2_fetch_constant_bytes): Update.
1562 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1563 <set_string_noncanonical, set_string_canonical>: New methods.
1564 <string_is_canonical>: Update comment.
1565 <canonical_string_p>: Add assert.
1566 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1567 * dwarf2/attribute.c (attribute::form_is_string): New method.
1568 (attribute::string): Use it.
1569
1570 2020-09-29 Tom Tromey <tom@tromey.com>
1571
1572 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1573 (dump_die_shallow): Use canonical_string_p.
1574 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1575 method.
1576
1577 2020-09-29 Tom Tromey <tom@tromey.com>
1578
1579 * dwarf2/read.c (partial_die_info::read)
1580 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1581 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1582 attribute::as_string.
1583
1584 2020-09-29 Tom Tromey <tom@tromey.com>
1585
1586 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1587 DW_ADDR.
1588 (attribute::string): Don't use DW_STRING.
1589 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1590 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1591
1592 2020-09-29 Tom Tromey <tom@tromey.com>
1593
1594 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1595 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1596 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1597 * dwarf2/attribute.h (struct attribute): Rename methods.
1598 * dwarf2/attribute.c (attribute::as_address): Rename from
1599 value_as_address.
1600 (attribute::as_string): Rename from value_as_string.
1601
1602 2020-09-29 Tom Tromey <tom@tromey.com>
1603
1604 * dwarf2/read.c (partial_die_info::read) <case
1605 DW_AT_linkage_name>: Use value_as_string.
1606 (dwarf2_string_attr): Use value_as_string.
1607 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1608 method.
1609 * dwarf2/attribute.c (attribute::value_as_string): New method.
1610
1611 2020-09-29 Pedro Alves <pedro@palves.net>
1612
1613 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1614 defined before using '#pragma GCC diagnostic' instead of checking
1615 __clang__.
1616
1617 2020-09-28 Tom Tromey <tom@tromey.com>
1618
1619 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1620 (handle_signal_stop): Update.
1621 * procfs.c (procfs_target::insert_watchpoint): Update.
1622 * target.h (target_have_steppable_watchpoint): Now a function.
1623
1624 2020-09-28 Tom Tromey <tom@tromey.com>
1625
1626 * infrun.c (set_schedlock_func): Update.
1627 * target.h (target_can_lock_scheduler): Now a function.
1628
1629 2020-09-28 Tom Tromey <tom@tromey.com>
1630
1631 * inferior.h (class inferior) <has_execution>: Update.
1632 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1633 * valops.c (find_function_in_inferior)
1634 (value_allocate_space_in_inferior): Update.
1635 * top.c (kill_or_detach): Update.
1636 * target.c (target_preopen, set_target_permissions): Update.
1637 (target_has_execution_current): Remove.
1638 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1639 Update.
1640 * solib.c (update_solib_list, reload_shared_libraries): Update.
1641 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1642 * solib-dsbt.c (enable_break): Update.
1643 * score-tdep.c (score7_fetch_inst): Update.
1644 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1645 Update.
1646 * remote.c (remote_target::start_remote)
1647 (remote_target::remote_check_symbols, remote_target::open_1)
1648 (remote_target::remote_detach_1, remote_target::verify_memory)
1649 (remote_target::xfer_partial, remote_target::read_description)
1650 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1651 * record-full.c (record_full_open_1): Update.
1652 * record-btrace.c (record_btrace_target_open): Update.
1653 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1654 (value_nsstring): Update.
1655 * linux-thread-db.c (add_thread_db_info)
1656 (thread_db_find_new_threads_silently, check_thread_db_callback)
1657 (try_thread_db_load_1, record_thread): Update.
1658 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1659 Update.
1660 * linux-fork.c (checkpoint_command): Update.
1661 * infrun.c (set_non_stop, set_observer_mode)
1662 (check_multi_target_resumption, for_each_just_stopped_thread)
1663 (maybe_remove_breakpoints, normal_stop)
1664 (class infcall_suspend_state): Update.
1665 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1666 (info_program_command, attach_command): Update.
1667 * infcall.c (call_function_by_hand_dummy): Update.
1668 * inf-loop.c (inferior_event_handler): Update.
1669 * gcore.c (gcore_command, derive_heap_segment): Update.
1670 * exec.c (exec_file_command): Update.
1671 * eval.c (evaluate_subexp): Update.
1672 * compile/compile.c (compile_to_object): Update.
1673 * cli/cli-dump.c (restore_command): Update.
1674 * breakpoint.c (update_watchpoint)
1675 (update_inserted_breakpoint_locations)
1676 (insert_breakpoint_locations, get_bpstat_thread): Update.
1677 * target.h (target_has_execution): Remove macro.
1678 (target_has_execution_current): Don't declare.
1679 (target_has_execution): Rename from target_has_execution_1. Add
1680 argument default.
1681
1682 2020-09-28 Tom Tromey <tom@tromey.com>
1683
1684 * mi/mi-main.c (exec_reverse_continue)
1685 (mi_cmd_list_target_features): Update.
1686 * infrun.c (set_exec_direction_func): Update.
1687 * target.c (default_execution_direction): Update.
1688 * reverse.c (exec_reverse_once): Update.
1689 * target.h (target_can_execute_reverse): Now a function.
1690
1691 2020-09-28 Tom Tromey <tom@tromey.com>
1692
1693 * tui/tui-regs.c (tui_get_register)
1694 (tui_data_window::show_registers): Update.
1695 * thread.c (scoped_restore_current_thread::restore)
1696 (scoped_restore_current_thread::scoped_restore_current_thread):
1697 Update.
1698 * regcache-dump.c (regcache_print): Update.
1699 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1700 Update.
1701 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1702 * mep-tdep.c (current_me_module, current_options): Update.
1703 * linux-thread-db.c (thread_db_load): Update.
1704 * infcmd.c (registers_info, info_vector_command)
1705 (info_float_command): Update.
1706 * ia64-tdep.c (ia64_frame_prev_register)
1707 (ia64_sigtramp_frame_prev_register): Update.
1708 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1709 * gcore.c (derive_stack_segment): Update.
1710 * frame.c (get_current_frame, has_stack_frames): Update.
1711 * findvar.c (language_defn::read_var_value): Update.
1712 * arm-tdep.c (arm_pc_is_thumb): Update.
1713 * target.c (target_has_registers): Rename from
1714 target_has_registers_1.
1715 * target.h (target_has_registers): Remove macro.
1716 (target_has_registers): Rename from target_has_registers_1.
1717
1718 2020-09-28 Tom Tromey <tom@tromey.com>
1719
1720 * windows-tdep.c (tlb_make_value): Update.
1721 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1722 * thread.c (scoped_restore_current_thread::restore)
1723 (scoped_restore_current_thread::scoped_restore_current_thread)
1724 (thread_command): Update.
1725 * stack.c (backtrace_command_1, frame_apply_level_command)
1726 (frame_apply_all_command, frame_apply_command): Update.
1727 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1728 Update.
1729 * gcore.c (derive_stack_segment): Update.
1730 * frame.c (get_current_frame, has_stack_frames): Update.
1731 * auxv.c (info_auxv_command): Update.
1732 * ada-tasks.c (ada_build_task_list): Update.
1733 * target.c (target_has_stack): Rename from target_has_stack_1.
1734 * target.h (target_has_stack): Remove macro.
1735 (target_has_stack): Rename from target_has_stack_1.
1736
1737 2020-09-28 Tom Tromey <tom@tromey.com>
1738
1739 * target.c (target_has_memory): Rename from target_has_memory_1.
1740 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1741 * thread.c (scoped_restore_current_thread::restore)
1742 (scoped_restore_current_thread::scoped_restore_current_thread):
1743 Update.
1744 * frame.c (get_current_frame, has_stack_frames): Update.
1745 * target.h (target_has_memory): Remove macro.
1746 (target_has_memory): Rename from target_has_memory_1.
1747
1748 2020-09-28 Tom Tromey <tom@tromey.com>
1749
1750 * target.c (target_has_all_memory_1): Remove.
1751 * target.h (target_has_all_memory): Remove define.
1752 (target_has_all_memory_1): Don't declare.
1753
1754 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * ser-base.c: Adjust comments formatting.
1757
1758 2020-09-27 Tom Tromey <tom@tromey.com>
1759
1760 PR tui/25342:
1761 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1762
1763 2020-09-27 Tom Tromey <tom@tromey.com>
1764
1765 PR tui/25342:
1766 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1767
1768 2020-09-27 Tom Tromey <tom@tromey.com>
1769
1770 * unittests/tui-selftests.c: Update.
1771 * tui/tui-winsource.h (struct tui_source_window_base)
1772 <extra_margin, show_line_number, refresh_pad>: New methods.
1773 <m_max_length, m_pad>: New members.
1774 (tui_copy_source_line): Update.
1775 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1776 first_col, line_width, ndigits parameters. Add length.
1777 (tui_source_window_base::show_source_line): Write to pad. Line
1778 number now 0-based.
1779 (tui_source_window_base::refresh_pad): New method.
1780 (tui_source_window_base::show_source_content): Write to pad. Call
1781 refresh_pad.
1782 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1783 not refill.
1784 (tui_source_window_base::update_exec_info): Call
1785 show_line_number.
1786 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1787 method.
1788 <m_digits>: New member.
1789 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1790 and m_max_length.
1791 (tui_source_window::show_line_number): New method.
1792 * tui/tui-io.h (tui_puts): Fix comment.
1793 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1794 m_max_length.
1795
1796 2020-09-27 Tom Tromey <tom@tromey.com>
1797
1798 * tui/tui-winsource.c
1799 (tui_source_window_base::set_is_exec_point_at): Don't call
1800 show_source_line.
1801
1802 2020-09-27 Tom Tromey <tom@tromey.com>
1803
1804 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1805 method.
1806 <erase>: Update.
1807 <cursor_x, cursor_y>: Remove.
1808 <m_inner_window>: New member.
1809 (tui_py_window::rerender): Create inner window.
1810 (tui_py_window::output): Write to inner window.
1811
1812 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1813
1814 PR python/26586
1815 * cli/cli-script.c (execute_control_commands): don't set
1816 instream to nullptr here as this breaks the from_tty argument
1817 to gdb.execute in Python.
1818 (execute_user_command): set instream to nullptr here instead.
1819
1820 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1821
1822 * infrun.h (infrun_debug_printf): Fix formatting.
1823 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1824
1825 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1826
1827 * compile/compile-object-load.h (struct munmap_list): Add
1828 explicitly-defined move constructor.
1829
1830 2020-09-24 Tom Tromey <tromey@adacore.com>
1831
1832 PR tui/26638:
1833 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1834 method.
1835 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1836 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1837 (tui_prev_win): Rewrite.
1838
1839 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1840
1841 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1842 in WOW64 processes as SIGINT.
1843 * nat/windows-nat.h: Make wow64_process a shared variable.
1844 * windows-nat.c: Remove static wow64_process variable.
1845
1846 2020-09-23 Tom Tromey <tom@tromey.com>
1847
1848 PR symtab/25470:
1849 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1850 offset and bit size.
1851 * printcmd.c (print_scalar_formatted): Handle zero-length
1852 integer.
1853 (print_scalar_formatted): Use bit_size_differs_p.
1854 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1855 constant.
1856 (union type_specific): <int_stuff>: New member.
1857 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1858 methods.
1859 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1860 TYPE_SPECIFIC_FIELD.
1861 (recursive_dump_type, copy_type_recursive): Update.
1862 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1863 DW_AT_data_bit_offset.
1864
1865 2020-09-23 Tom Tromey <tom@tromey.com>
1866
1867 * utils.h (class gdb_argv): Add move operators.
1868 <append>: New methods.
1869 * compile/compile.c (build_argc_argv): Remove.
1870 (compile_args_argc): Remove.
1871 (compile_args_argv): Change type.
1872 (set_compile_args): Simplify.
1873 (append_args): Remove.
1874 (filter_args): Remove argcp parameter.
1875 (get_args): Return gdb_argv. Simplify.
1876 (compile_to_object): Update.
1877
1878 2020-09-23 Tom Tromey <tom@tromey.com>
1879
1880 * compile/compile-object-run.c (do_module_cleanup)
1881 <~do_module_cleanup> :Remove.
1882 (do_module_cleanup): Update.
1883 * compile/compile-object-load.h (struct munmap_list): Add move
1884 assignment operator.
1885 <source_file>: Now a std::string.
1886 <munmap_list>: Rename. No longer a pointer.
1887 * compile/compile-object-load.c (struct setup_sections_data): Add
1888 constructor.
1889 <setup_one_section>: Declare.
1890 <munmap_list>: Move earlier.
1891 <m_bfd>: New member.
1892 <m_last_size, m_last_section_first, m_last_prot,
1893 m_last_max_alignment>: Rename, add initializers where needed.
1894 (setup_sections_data::setup_one_section): Rename from
1895 setup_sections. Update.
1896 (compile_object_load): Update. Don't use bfd_map_over_sections.
1897
1898 2020-09-23 Tom Tromey <tom@tromey.com>
1899
1900 * compile/compile-object-run.c (struct do_module_cleanup): Add
1901 parameters to constructor. Update destructor.
1902 <source_file, scope, scope_data, out_value_type, out_value_addr,
1903 munmap_list_head, objfile_name_string>: Remove.
1904 <module>: New member.
1905 (do_module_cleanup): Update.
1906 (compile_object_run): Update.
1907
1908 2020-09-23 Tom Tromey <tom@tromey.com>
1909
1910 * compile/compile.c (eval_compile_command): Update.
1911 * compile/compile-object-run.h (compile_object_run): Take a
1912 compile_module_up.
1913 * compile/compile-object-run.c (compile_object_run): Take a
1914 compile_module_up.
1915 * compile/compile-object-load.h (struct compile_module): Add
1916 constructor, destructor.
1917 (compile_module_up): New typedef.
1918 (compile_object_load): Return compile_object_up.
1919 * compile/compile-object-load.c (compile_object_load): Return
1920 compile_module_up.
1921
1922 2020-09-23 Tom Tromey <tom@tromey.com>
1923
1924 * compile/compile-object-run.c (struct do_module_cleanup): Add
1925 constructor, destructor.
1926 <objfile_name_string>: Don't use struct hack.
1927 (do_module_cleanup): Use delete.
1928 (compile_object_run): Use new.
1929
1930 2020-09-23 Tom Tromey <tom@tromey.com>
1931
1932 * compile/compile-cplus-types.c
1933 (compile_cplus_convert_struct_or_union): Use std::vector.
1934 (compile_cplus_convert_func): Likewise.
1935 * compile/compile-c-types.c (convert_func): Use std::vector.
1936
1937 2020-09-21 Tom Tromey <tromey@adacore.com>
1938
1939 * sparc-tdep.c (sparc32_skip_prologue): Use
1940 skip_prologue_using_sal.
1941
1942 2020-09-19 Tom Tromey <tom@tromey.com>
1943
1944 * symfile.c (add_section_size_callback): Remove.
1945 (load_one_section): Rename from load_section_callback. Change
1946 parameters.
1947 (generic_load): Use foreach.
1948
1949 2020-09-19 Tom Tromey <tom@tromey.com>
1950
1951 * exec.c (add_to_section_table): Remove.
1952 (build_section_table): Use foreach.
1953
1954 2020-09-19 Tom Tromey <tom@tromey.com>
1955
1956 * elfread.c (elf_locate_sections): Change parameters.
1957 (elf_symfile_read): Use foreach.
1958
1959 2020-09-19 Tom Tromey <tom@tromey.com>
1960
1961 * cli/cli-dump.c (struct callback_data): Remove.
1962 (restore_one_section): Rename from restore_section_callback.
1963 Change parameters.
1964 (restore_binary_file): Change parameters.
1965 (restore_command): Use foreach.
1966
1967 2020-09-19 Tom Tromey <tom@tromey.com>
1968
1969 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1970 (gcore_copy_callback): Likewise.
1971 (gcore_memory_sections): Use foreach.
1972
1973 2020-09-19 Tom Tromey <tom@tromey.com>
1974
1975 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1976 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1977 parameters.
1978 (generic_elf_osabi_sniffer): Use foreach.
1979 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1980 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1981
1982 2020-09-19 Tom Tromey <tom@tromey.com>
1983
1984 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1985 (dwarf2_get_dwz_file): Use foreach.
1986 (dwarf2_locate_dwo_sections): Change parameters.
1987 (open_and_init_dwo_file): Use foreach.
1988 (dwarf2_locate_common_dwp_sections): Change parameters.
1989 (open_and_init_dwp_file): Use foreach.
1990
1991 2020-09-19 Tom Tromey <tom@tromey.com>
1992
1993 * symfile.h: (find_lowest_section): Don't declare.
1994 * symfile.c (find_lowest_section): Now static. Change
1995 parameters.
1996 (struct place_section_arg): Remove.
1997 (place_section): Change parameters.
1998 (addr_info_make_relative): Use foreach.
1999 (symfile_dummy_outputs): Remove.
2000 (default_symfile_relocate): Use foreach.
2001
2002 2020-09-19 Tom Tromey <tom@tromey.com>
2003
2004 * objfiles.c (add_to_objfile_sections): Rename from
2005 add_to_objfile_sections_full.
2006 (add_to_objfile_sections): Remove.
2007 (build_objfile_section_table): Use foreach.
2008
2009 2020-09-19 Tom Tromey <tom@tromey.com>
2010
2011 * stap-probe.c (get_stap_base_address_1): Remove.
2012 (get_stap_base_address): Use foreach.
2013
2014 2020-09-19 Tom Tromey <tom@tromey.com>
2015
2016 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2017 parameters.
2018 (gdb_bfd_close_or_warn): Use foreach.
2019
2020 2020-09-19 Tom Tromey <tom@tromey.com>
2021
2022 * corelow.c (add_to_thread_list): Change parameters.
2023 (core_target_open): Use foreach.
2024
2025 2020-09-19 Tom Tromey <tom@tromey.com>
2026
2027 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2028 existing function.
2029
2030 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2033 for arrays.
2034
2035 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * eval.c: Remove 'f-lang.h' include.
2038 (value_f90_subarray): Moved to f-lang.c.
2039 (eval_call): Renamed to...
2040 (evaluate_subexp_do_call): ...this, is no longer static, header
2041 comment moved into header file.
2042 (evaluate_funcall): Update call to eval_call.
2043 (skip_undetermined_arglist): Moved to f-lang.c.
2044 (fortran_value_subarray): Likewise.
2045 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2046 moved to evaluate_subexp_f.
2047 (calc_f77_array_dims): Moved to f-lang.c
2048 * expprint.c (print_subexp_funcall): New function.
2049 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2050 moved to print_subexp_f, OP_FUNCALL uses new function.
2051 (dump_subexp_body_funcall): New function.
2052 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2053 moved to dump_subexp_f, OP_FUNCALL uses new function.
2054 * expression.h (evaluate_subexp_do_call): Declare.
2055 * f-lang.c (value_f90_subarray): Moved from eval.c.
2056 (skip_undetermined_arglist): Likewise.
2057 (calc_f77_array_dims): Likewise.
2058 (fortran_value_subarray): Likewise.
2059 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2060 (operator_length_f): Likewise.
2061 (print_subexp_f): Likewise.
2062 (dump_subexp_body_f): Likewise.
2063 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2064 declaration of this operation to here.
2065 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2066 support moved to operator_length_f.
2067 * parser-defs.h (dump_subexp_body_funcall): Declare.
2068 (print_subexp_funcall): Declare.
2069 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2070 fortran-operator.def.
2071
2072 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * eval.c (fortran_value_subarray): New function, content is taken
2075 from...
2076 (evaluate_subexp_standard): ...here, in two places. Now arrays
2077 and strings both call the new function.
2078 (calc_f77_array_dims): Add header comment, handle strings.
2079
2080 2020-09-18 Victor Collod <vcollod@nvidia.com>
2081
2082 PR gdb/26635
2083 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2084 (i386_analyze_prologue): Call i386_skip_endbr.
2085
2086 2020-09-18 Tom Tromey <tromey@adacore.com>
2087
2088 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2089 (windows_nat_target::wait): Update.
2090 * target/wait.h (enum target_wait_flag): New. Use
2091 DEF_ENUM_FLAGS_TYPE.
2092 * target/target.h (target_wait): Change type of options.
2093 * target.h (target_options_to_string, default_target_wait):
2094 Update.
2095 (struct target_ops) <wait>: Change type of options.
2096 * target.c (target_wait, default_target_wait, do_option): Change
2097 type of "options".
2098 (target_options_to_string): Likewise.
2099 * target-delegates.c: Rebuild.
2100 * target-debug.h (target_debug_print_target_wait_flags): Rename
2101 from target_debug_print_options.
2102 * sol-thread.c (class sol_thread_target) <wait>: Update.
2103 (sol_thread_target::wait): Update.
2104 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2105 (rs6000_nat_target::wait): Update.
2106 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2107 Update.
2108 (remote_target::wait_ns, remote_target::wait_as): Change type of
2109 "options".
2110 (remote_target::wait): Update.
2111 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2112 (gdbsim_target::wait): Update.
2113 * record-full.c (class record_full_base_target) <wait>: Update.
2114 (record_full_wait_1): Change type of "options".
2115 (record_full_base_target::wait): Update.
2116 * record-btrace.c (class record_btrace_target) <wait>: Update.
2117 (record_btrace_target::wait): Update.
2118 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2119 Update.
2120 (ravenscar_thread_target::wait): Update.
2121 * procfs.c (class procfs_target) <wait>: Update.
2122 (procfs_target::wait): Update.
2123 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2124 * obsd-nat.c (obsd_nat_target::wait): Update.
2125 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2126 (nto_procfs_target::wait): Update.
2127 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2128 * nbsd-nat.c (nbsd_wait): Change type of "options".
2129 (nbsd_nat_target::wait): Update.
2130 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2131 (thread_db_target::wait): Update.
2132 * linux-nat.h (class linux_nat_target) <wait>: Update.
2133 * linux-nat.c (linux_nat_target::wait): Update.
2134 (linux_nat_wait_1): Update.
2135 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2136 "options".
2137 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2138 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2139 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2140 (go32_nat_target::wait): Update.
2141 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2142 * gnu-nat.c (gnu_nat_target::wait): Update.
2143 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2144 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2145 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2146 * darwin-nat.c (darwin_nat_target::wait): Update.
2147 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2148 (bsd_uthread_target::wait): Update.
2149 * aix-thread.c (class aix_thread_target) <wait>: Update.
2150 (aix_thread_target::wait): Update.
2151
2152 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 * compile/compile-object-run.c (create_copied_type_recursive): New
2155 function.
2156 (compile_object_run): Use new function.
2157
2158 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2159
2160 * NEWS: Mention x86_64 Cygwin core file support.
2161
2162 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2163
2164 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2165 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2166
2167 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2168
2169 * windows-tdep.h: Add prototypes.
2170 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2171 (i386_windows_core_pid_to_str): Move and rename ...
2172 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2173 (windows_core_pid_to_str): ... and here.
2174 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2175
2176 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2177 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2178 (amd64_windows_init_abi_common): ... and register.
2179
2180 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2181
2182 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2183 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2184
2185 2020-09-18 Pedro Alves <pedro@palves.net>
2186
2187 PR gdb/26631
2188 * thread.c (thread_find_command): Switch inferior before calling
2189 target methods.
2190
2191 2020-09-17 Tom Tromey <tromey@adacore.com>
2192
2193 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2194 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2195 (tdesc_arch_data_up): New typedef.
2196 (tdesc_use_registers, tdesc_data_alloc): Update.
2197 (tdesc_data_cleanup): Don't declare.
2198 * target-descriptions.c (tdesc_data_alloc): Return a
2199 tdesc_arch_data_up.
2200 (tdesc_arch_data_deleter::operator()): Rename from
2201 tdesc_data_cleanup. Change argument type.
2202 (tdesc_use_registers): Change early_data to an rvalue reference.
2203 (tdesc_use_registers): Don't use delete.
2204 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2205 * s390-tdep.c (s390_gdbarch_init): Update.
2206 * rx-tdep.c (rx_gdbarch_init): Update.
2207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2208 * riscv-tdep.c (riscv_gdbarch_init): Update.
2209 * or1k-tdep.c (or1k_gdbarch_init): Update.
2210 * nios2-tdep.c (nios2_gdbarch_init): Update.
2211 * nds32-tdep.c (nds32_gdbarch_init): Update.
2212 * mips-tdep.c (mips_gdbarch_init): Update.
2213 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2214 * m68k-tdep.c (m68k_gdbarch_init): Update.
2215 * i386-tdep.c (i386_gdbarch_init): Update.
2216 * arm-tdep.c (arm_gdbarch_init): Update.
2217 * arc-tdep.c (arc_tdesc_init): Update.
2218 (arc_gdbarch_init): Update.
2219 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2220
2221 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2222
2223 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2224 for WOW64 processes.
2225
2226 2020-09-17 Tom Tromey <tom@tromey.com>
2227
2228 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2229
2230 2020-09-17 Tom Tromey <tom@tromey.com>
2231
2232 * value.c (preserve_values): Update.
2233 * python/py-type.c (save_objfile_types): Update.
2234 * guile/scm-type.c (save_objfile_types): Update.
2235 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2236 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2237 * compile/compile-object-run.c (compile_object_run): Update.
2238
2239 2020-09-17 Tom Tromey <tom@tromey.com>
2240
2241 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2242 Remove.
2243 <m_table>: Now htab_up.
2244 * typeprint.c (typedef_hash_table::recursively_update)
2245 (typedef_hash_table::add_template_parameters)
2246 (typedef_hash_table::typedef_hash_table): Update.
2247 (typedef_hash_table::~typedef_hash_table): Remove.
2248 (typedef_hash_table::typedef_hash_table)
2249 (typedef_hash_table::find_global_typedef)
2250 (typedef_hash_table::find_typedef): Update.
2251
2252 2020-09-17 Tom Tromey <tom@tromey.com>
2253
2254 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2255
2256 2020-09-17 Tom Tromey <tom@tromey.com>
2257
2258 * linespec.c (class decode_compound_collector)
2259 <~decode_compound_collector>: Remove.
2260 <m_unique_syms>: Now htab_up.
2261 (decode_compound_collector::operator ()): Update.
2262 (class symtab_collector) <~symtab_collector>: Remove.
2263 <m_symtab_table>: Now htab_up.
2264 (symtab_collector::operator ()): Update.
2265
2266 2020-09-17 Tom Tromey <tom@tromey.com>
2267
2268 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2269 (filename_seen_cache::clear): Update.
2270 (~filename_seen_cache): Remove.
2271 (filename_seen_cache::seen): Update.
2272 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2273 htab_up.
2274 <~filename_seen_cache>: Remove.
2275 <traverse>: Update.
2276
2277 2020-09-17 Tom Tromey <tom@tromey.com>
2278
2279 * completer.c (completion_tracker::discard_completions)
2280 (completion_tracker::~completion_tracker)
2281 (completion_tracker::maybe_add_completion)
2282 (completion_tracker::remove_completion)
2283 (completion_tracker::recompute_lowest_common_denominator)
2284 (completion_tracker::build_completion_result): Update.
2285 * completer.h (class completion_tracker) <have_completions>:
2286 Update.
2287 <m_entries_hash>: Now htab_up.
2288
2289 2020-09-17 Tom Tromey <tom@tromey.com>
2290
2291 * breakpoint.c (ambiguous_names_p): Use htab_up.
2292
2293 2020-09-17 Tom Tromey <tom@tromey.com>
2294
2295 * auto-load.c (struct auto_load_pspace_info)
2296 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2297 <loaded_script_files, loaded_script_texts>: Change type to
2298 htab_up.
2299 (~auto_load_pspace_info) Remove.
2300 (init_loaded_scripts_info, maybe_add_script_file)
2301 (maybe_add_script_text, auto_load_info_scripts): Update.
2302
2303 2020-09-17 Tom Tromey <tromey@adacore.com>
2304
2305 * c-exp.y (name_obstack): Now static.
2306
2307 2020-09-17 Chungyi Chi <demonic@csie.io>
2308
2309 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2310
2311 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2312
2313 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2314 (add_solib_catchpoint): Likewise.
2315 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2316 to bool.
2317 (add_solib_catchpoint): Change int parameter/variable to bool.
2318 (catch_load_or_unload): Likewise.
2319 (init_catchpoint): Likewise.
2320 (create_fork_vfork_event_catchpoint): Likewise.
2321 (catch_fork_command_1): Likewise.
2322 (catch_exec_command_1): Likewise.
2323
2324 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2327 Change instance_flags to m_instance_flags.
2328
2329 2020-09-16 Tom Tromey <tromey@adacore.com>
2330
2331 PR gdb/26598:
2332 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2333
2334 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2335
2336 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2337 PL_FLAG_EXEC.
2338 (fbsd_nat_target::insert_exec_catchpoint)
2339 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2340 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2341 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2342
2343 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2344
2345 * configure.ac: Remove check for kinfo_getvmmap().
2346 * configure, config.in: Regenerate.
2347 * fbsd-nat.c (fbsd_read_mapping): Remove
2348 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2349 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2350 kinfo_get_vmmap() are always present.
2351
2352 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2353
2354 * fbsd-nat.c: Always include support for
2355 TARGET_OBJECT_SIGNAL_INFO.
2356
2357 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2358
2359 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2360 sysctl and remove procfs fallback.
2361
2362 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2363
2364 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2365 * fbsd-nat.h: Likewise.
2366
2367 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2368
2369 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2370 argument.
2371
2372 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * ada-lang.c (ada_language_data): Delete.
2375 (ada_language): Remove references to ada_language_data.
2376 * c-lang.c (c_language_data): Delete.
2377 (c_language): Remove references to c_language_data.
2378 (cplus_language_data): Delete.
2379 (cplus_language): Remove references to cplus_language_data.
2380 (asm_language_data): Delete.
2381 (asm_language): Remove references to asm_language_data.
2382 (minimal_language_data): Delete.
2383 (minimal_language): Remove references to minimal_language_data.
2384 * d-lang.c (d_language_data): Delete.
2385 (d_language): Remove references to d_language_data.
2386 * f-lang.c (f_language_data): Delete.
2387 (f_language): Remove references to f_language_data.
2388 * go-lang.c (go_language_data): Delete.
2389 (go_language): Remove references to go_language_data.
2390 * language.c (unknown_language_data): Delete.
2391 (unknown_language): Remove references to unknown_language_data.
2392 (auto_language_data): Delete.
2393 (auto_language): Remove references to auto_language_data.
2394 * language.h (language_data): Delete struct.
2395 (language_defn): No longer inherit from language_data.
2396 * m2-lang.c (m2_language_data): Delete.
2397 (m2_language): Remove references to m2_language_data.
2398 * objc-lang.c (objc_language_data): Delete.
2399 (objc_language): Remove references to objc_language_data.
2400 * opencl-lang.c (opencl_language_data): Delete.
2401 (opencl_language): Remove references to opencl_language_data.
2402 * p-lang.c (pascal_language_data): Delete.
2403 (pascal_language): Remove references to pascal_language_data.
2404 * rust-lang.c (rust_language_data): Delete.
2405 (rust_language): Remove references to rust_language_data.
2406
2407 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2410 initializer.
2411 (ada_language::opcode_print_table): New member function.
2412 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2413 (c_language::opcode_print_table): New member function.
2414 (cplus_language_data): Remove la_op_print_tab initializer.
2415 (cplus_language::opcode_print_table): New member function.
2416 (asm_language_data): Remove la_op_print_tab initializer.
2417 (asm_language::opcode_print_table): New member function.
2418 (minimal_language_data): Remove la_op_print_tab initializer.
2419 (minimal_language::opcode_print_table): New member function.
2420 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2421 (d_language::opcode_print_table): New member function.
2422 * expprint.c (print_subexp_standard): Update call to
2423 opcode_print_table.
2424 (op_string): Likewise.
2425 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2426 (f_language::opcode_print_table): New member function.
2427 * go-lang.c (go_language_data): Remove la_op_print_tab
2428 initializer.
2429 (go_language::opcode_print_table): New member function.
2430 * language.c (unknown_language_data): Remove la_op_print_tab
2431 initializer.
2432 (unknown_language::opcode_print_table): New member function.
2433 (auto_language_data): Remove la_op_print_tab initializer.
2434 (auto_language::opcode_print_table): New member function.
2435 * language.h (language_data): Remove la_op_print_tab field.
2436 (language_defn::opcode_print_table): Declare new member function.
2437 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2438 initializer.
2439 (m2_language::opcode_print_table): New member function.
2440 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2441 initializer.
2442 (objc_language::opcode_print_table): New member function.
2443 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2444 initializer.
2445 (opencl_language::opcode_print_table): New member function.
2446 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2447 initializer.
2448 (pascal_language::opcode_print_table): New member function.
2449 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2450 initializer.
2451 (rust_language::opcode_print_table): New member function.
2452
2453 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2456 (ada_language::expression_ops): New member function.
2457 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2458 (c_language::expression_ops): New member function.
2459 (cplus_language_data): Remove la_exp_desc initializer.
2460 (cplus_language::expression_ops): New member function.
2461 (asm_language_data): Remove la_exp_desc initializer.
2462 (asm_language::expression_ops): New member function.
2463 (minimal_language_data): Remove la_exp_desc initializer.
2464 (minimal_language::expression_ops): New member function.
2465 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2466 (d_language::expression_ops): New member function.
2467 * eval.c (evaluate_subexp): Update call to expression_ops.
2468 * expprint.c (print_subexp): Likewise.
2469 (op_name): Likewise.
2470 (dump_subexp_body): Likewise.
2471 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2472 (f_language::expression_ops): New member function.
2473 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2474 (go_language::expression_ops): New member function.
2475 * language.c (language_defn::expression_ops): New function.
2476 (unknown_language_data): Remove la_exp_desc initializer.
2477 (auto_language_data): Likewise.
2478 * language.h (language_data): Remove la_exp_desc field.
2479 (language_defn::expression_ops): Declare new member function.
2480 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2481 (m2_language::expression_ops): New member function.
2482 * objc-lang.c (objc_language_data): Remove la_exp_desc
2483 initializer.
2484 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2485 initializer.
2486 (opencl_language::expression_ops): New member function.
2487 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2488 * parse.c (operator_length): Update call to expression_ops.
2489 (exp_iterate): Likewise.
2490 * rust-lang.c (rust_language_data): Remove la_exp_desc
2491 initializer.
2492 (ruse_language::expression_ops): New member function.
2493
2494 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2495
2496 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2497 initializer.
2498 (ada_language::varobj_ops): New member function.
2499 * c-lang.c (c_language_data): Remove la_varobj_ops
2500 initializer.
2501 (cplus_language_data): Likewise.
2502 (cplus_language::varobj_ops): New member function.
2503 (asm_language_data): Remove la_varobj_ops initializer.
2504 (minimal_language_data): Likewise.
2505 * d-lang.c (d_language_data): Likewise.
2506 * f-lang.c (f_language_data): Likewise.
2507 * go-lang.c (go_language_data): Likewise.
2508 * language.c (language_defn::varobj_ops): New function.
2509 (unknown_language_data): Remove la_varobj_ops
2510 initializer.
2511 (auto_language_data): Likewise.
2512 * language.h (language_data): Remove la_varobj_ops field.
2513 (language_defn::varobj_ops): Declare new member function.
2514 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2515 * objc-lang.c (objc_language_data): Likewise.
2516 * opencl-lang.c (opencl_language_data): Likewise.
2517 * p-lang.c (pascal_language_data): Likewise.
2518 * rust-lang.c (rust_language_data): Likewise.
2519 * varobj.c (varobj_create): Update call to varobj_ops.
2520 * varobj.h (default_varobj_ops): Delete define.
2521
2522 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2525 initializer.
2526 * c-lang.c (c_language_data): Likewise.
2527 (c_language::macro_expansion): New member function.
2528 (cplus_language_data): Likewise.
2529 (cplus_language::macro_expansion): New member function.
2530 (asm_language_data): Likewise.
2531 (asm_language::macro_expansion): New member function.
2532 (minimal_language_data): Likewise.
2533 (minimal_language::macro_expansion): New member function.
2534 * d-lang.c (d_language_data): Remove la_macro_expansion
2535 initializer.
2536 * f-lang.c (f_language_data): Likewise.
2537 * go-lang.c (go_language_data): Likewise.
2538 * language.c (unknown_language_data): Likewise.
2539 (auto_language_data): Likewise.
2540 * language.h (language_data): Remove la_macro_expansion field.
2541 (language_defn::macro_expansion): New member function.
2542 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2543 initializer.
2544 * objc-lang.c (objc_language_data): Likewise.
2545 (objc_language::macro_expansion): New member function.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 (opencl_language::macro_expansion): New member function.
2548 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2549 initializer.
2550 * rust-lang.c (rust_language_data): Likewise.
2551 * symtab.c (default_collect_symbol_completion_matches_break_on):
2552 Update call to macro_expansion.
2553
2554 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * ada-lang.c (ada_language_data): Remove la_array_ordering
2557 initializer.
2558 * c-lang.c (c_language_data): Likewise.
2559 (cplus_language_data): Likewise.
2560 (asm_language_data): Likewise.
2561 (minimal_language_data): Likewise.
2562 * d-lang.c (d_language_data): Likewise.
2563 * dwarf2/read.c (read_array_order): Update for call to
2564 array_ordering.
2565 * f-lang.c (f_language_data): Remove la_array_ordering
2566 initializer.
2567 (f_language::array_ordering): New member function.
2568 * go-lang.c (go_language_data): Remove la_array_ordering
2569 initializer.
2570 * language.c (unknown_language_data): Likewise.
2571 (auto_language_data): Likewise.
2572 * language.h (language_data): Delete la_array_ordering field.
2573 (language_defn::array_ordering): New member function.
2574 * m2-lang.c (m2_language_data): Remove la_array_ordering
2575 initializer.
2576 * objc-lang.c (objc_language_data): Likewise.
2577 * opencl-lang.c (opencl_language_data): Likewise.
2578 * p-lang.c (pascal_language_data): Likewise.
2579 * rust-lang.c (rust_language_data): Likewise.
2580
2581 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2584 initializer.
2585 * c-lang.c (c_language_data): Likewise.
2586 (cplus_language_data): Likewise.
2587 (asm_language_data): Likewise.
2588 (minimal_language_data): Likewise.
2589 * d-lang.c (d_language_data): Likewise.
2590 * f-lang.c (f_language_data): Likewise.
2591 (f_language::case_sensitivity): New member function.
2592 * go-lang.c (go_language_data): Remove la_case_sensitivity
2593 initializer.
2594 * language.c (enum case_mode): Moved here from language.h.
2595 (case_mode): Make static.
2596 (show_case_command): Update for case_sensitivity being a method.
2597 (set_case_command): Likewise.
2598 (set_range_case): Likewise.
2599 (unknown_language_data): Remove la_case_sensitivity initializer.
2600 (auto_language_data): Likewise.
2601 * language.h (case_mode): Delete, move enum declaration to
2602 language.c.
2603 (language_data): Delete la_case_sensitivity field.
2604 (language_defn::case_sensitivity): New member function.
2605 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2606 initializer.
2607 * objc-lang.c (objc_language_data): Likewise.
2608 * opencl-lang.c (opencl_language_data): Likewise.
2609 * p-lang.c (pascal_language_data): Likewise.
2610 * rust-lang.c (rust_language_data): Likewise.
2611
2612 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_language_data): Remove la_range_check
2615 initializer.
2616 * c-lang.c (c_language_data): Likewise.
2617 (cplus_language_data): Likewise.
2618 (asm_language_data): Likewise.
2619 (minimal_language_data): Likewise.
2620 * d-lang.c (d_language_data): Likewise.
2621 * f-lang.c (f_language_data): Likewise.
2622 (f_language::range_checking_on_by_default): New member function.
2623 * go-lang.c (go_language_data): Remove la_range_check initializer.
2624 * language.c (enum range_mode): Moved here from language.h.
2625 (range_mode): Made static.
2626 (show_range_command): Update to use
2627 range_checking_on_by_default.
2628 (set_range_command): Likewise.
2629 (set_range_case): Likewise.
2630 (unknown_language_data): Remove la_range_check initializer.
2631 (auto_language_data): Likewise.
2632 * language.h (range_mode): Delete. Enum definition moved to
2633 language.c.
2634 (language_data): Remove la_range_check field.
2635 (language_defn::range_checking_on_by_default): New member
2636 function.
2637 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2638 (m2_language::range_checking_on_by_default): New member function.
2639 * objc-lang.c (objc_language_data): Remove la_range_check
2640 initializer.
2641 * opencl-lang.c (opencl_language_data): Likewise.
2642 * p-lang.c (pascal_language_data): Likewise.
2643 (pascal_language::range_checking_on_by_default): New member
2644 function.
2645 * rust-lang.c (rust_language_data): Remove la_range_check
2646 initializer.
2647 (rust_language::range_checking_on_by_default): New member
2648 function.
2649
2650 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * dwarf2/read.c (dwarf2_physname): Remove special case for
2653 language_go.
2654 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2655 member function.
2656
2657 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-lang.c (ada_language_data): Remove
2660 la_store_sym_names_in_linkage_form_p initializer.
2661 (ada_language::store_sym_names_in_linkage_form_p): New member
2662 function.
2663 * c-lang.c (c_language_data): Remove
2664 la_store_sym_names_in_linkage_form_p initializer.
2665 (c_language::store_sym_names_in_linkage_form_p): New member
2666 function.
2667 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2668 initializer.
2669 (asm_language_data): Likewise.
2670 (asm_language::store_sym_names_in_linkage_form_p): New member
2671 function.
2672 (minimal_language_data): Remove
2673 la_store_sym_names_in_linkage_form_p initializer.
2674 (minimal_language::store_sym_names_in_linkage_form_p): New member
2675 function.
2676 * d-lang.c (d_language_data): Remove
2677 la_store_sym_names_in_linkage_form_p initializer.
2678 * dwarf2/read.c (dwarf2_physname): Update call to
2679 store_sym_names_in_linkage_form_p.
2680 * f-lang.c (f_language_data): Remove
2681 la_store_sym_names_in_linkage_form_p initializer.
2682 * go-lang.c (go_language_data): Remove
2683 la_store_sym_names_in_linkage_form_p initializer.
2684 * language.c (unknown_language_data): Remove
2685 la_store_sym_names_in_linkage_form_p initializer.
2686 (unknown_language::store_sym_names_in_linkage_form_p): New member
2687 function.
2688 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2689 initializer.
2690 (auto_language::store_sym_names_in_linkage_form_p): New member
2691 function.
2692 * language.h (language_data): Remove
2693 la_store_sym_names_in_linkage_form_p member variable.
2694 (language_defn::store_sym_names_in_linkage_form_p): New member
2695 function.
2696 * m2-lang.c (m2_language_data): Remove
2697 la_store_sym_names_in_linkage_form_p initializer.
2698 * objc-lang.c (objc_language_data): Likewise.
2699 * opencl-lang.c (opencl_language_data): Likewise.
2700 * p-lang.c (pascal_language_data): Likewise.
2701 * rust-lang.c (rust_language_data): Likewise.
2702
2703 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * ada-lang.c (ada_language_data): Remove string_lower_bound
2706 initializer.
2707 * c-lang.c (c_language_data): Likewise.
2708 (cplus_language_data): Likewise.
2709 (asm_language_data): Likewise.
2710 (minimal_language_data): Likewise.
2711 * d-lang.c (d_language_data): Likewise.
2712 * f-lang.c (f_language_data): Likewise.
2713 * go-lang.c (go_language_data): Likewise.
2714 * language.c (unknown_language_data): Likewise.
2715 (auto_language_data): Likewise.
2716 * language.h (language_data): Remove string_lower_bound field.
2717 (language_defn::string_lower_bound): New member function.
2718 * m2-lang.c (m2_language_data): Remove string_lower_bound
2719 initializer.
2720 (m2_language::string_lower_bound): New member function.
2721 * objc-lang.c (objc_language_data): Remove string_lower_bound
2722 initializer.
2723 * opencl-lang.c (opencl_language_data): Likewise.
2724 * p-lang.c (pascal_language_data): Likewise.
2725 * rust-lang.c (rust_language_data): Likewise.
2726 * valops.c (value_cstring): Update call to string_lower_bound.
2727 (value_string): Likewise.
2728 * value.c (allocate_repeated_value): Likewise.
2729
2730 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * valops.c (value_repeat): Fix incorrect argument name in comment.
2733
2734 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * ada-lang.c (ada_language_data): Remove c_style_arrays
2737 initializer.
2738 (ada_language::c_style_arrays_p): New member fuction.
2739 * c-lang.c (c_language_data): Remove c_style_arrays
2740 initializer.
2741 (cplus_language_data): Likewise.
2742 (asm_language_data): Likewise.
2743 (minimal_language_data): Likewise.
2744 * d-lang.c (d_language_data): Likewise.
2745 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2746 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2747 (f_language::c_style_arrays_p): New member function.
2748 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2749 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2750 * language.c (unknown_language_data): Remove c_style_arrays
2751 initializer.
2752 (auto_language_data): Likewise.
2753 * language.h (language_data): Remove c_style_arrays field.
2754 (language_defn::c_style_arrays_p): New member function.
2755 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2756 (m2_language::c_style_arrays_p): New member function.
2757 * objc-lang.c (objc_language_data): Remove c_style_arrays
2758 initializer.
2759 * opencl-lang.c (opencl_language_data): Likewise.
2760 * p-lang.c (pascal_language_data): Likewise.
2761 * rust-lang.c (rust_language_data): Likewise.
2762 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2763 and update local variable to a bool.
2764 * valops.c (value_cast): Update call to c_style_arrays_p.
2765 (value_array): Likewise.
2766 * value.c (coerce_array): Likewise.
2767
2768 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * ada-lang.c (ada_language_data): Remove la_language initializer.
2771 * c-lang.c (c_language_data): Likewise.
2772 (cplus_language_data): Likewise.
2773 (asm_language_data): Likewise.
2774 (minimal_language_data): Likewise.
2775 * d-lang.c (d_language_data): Likewise.
2776 * f-lang.c (f_language_data): Likewise.
2777 * go-lang.c (go_language_data): Likewise.
2778 * language.c (unknown_language_data): Likewise.
2779 (auto_language_data): Likewise.
2780 * language.h (language_data): Remove la_language field.
2781 (language_defn::language_defn): Initialise la_language field.
2782 (language_defn::la_language): New member variable.
2783 * m2-lang.c (m2_language_data): Remove la_language field.
2784 * objc-lang.c (objc_language_data): Likewise.
2785 * opencl-lang.c (opencl_language_data): Likewise.
2786 * p-lang.c (pascal_language_data): Likewise.
2787 * rust-lang.c (rust_language_data): Likewise.
2788
2789 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_extensions): Delete, moved into
2792 ada_language::filename_extensions.
2793 (ada_language_data): Remove la_filename_extensions initializer.
2794 (ada_language::filename_extensions): New member function.
2795 * c-lang.c (c_extensions): Delete, moved into
2796 c_language::filename_extensions.
2797 (c_language_data): Remove la_filename_extensions initializer.
2798 (c_language::filename_extensions): New member function.
2799 (cplus_extensions): Delete, moved into
2800 cplus_language::filename_extensions.
2801 (cplus_language_data): Remove la_filename_extensions initializer.
2802 (cplus_language::filename_extensions): New member function.
2803 (asm_extensions): Delete, moved into
2804 asm_language::filename_extensions.
2805 (asm_language_data): Remove la_filename_extensions initializer.
2806 (asm_language::filename_extensions): New member function.
2807 (minimal_language_data): Remove la_filename_extensions
2808 initializer.
2809 * d-lang.c (d_extensions): Delete, moved into
2810 d_language::filename_extensions.
2811 (d_language_data): Remove la_filename_extensions initializer.
2812 (d_language::filename_extensions): New member function.
2813 * f-lang.c (f_extensions): Delete, moved into
2814 f_language::filename_extensions.
2815 (f_language_data): Remove la_filename_extensions initializer.
2816 (f_language::filename_extensions): New member function.
2817 * go-lang.c (go_language_data): Remove la_filename_extensions
2818 initializer.
2819 * language.c (add_set_language_command): Update now that
2820 filename_extensions returns a vector.
2821 (unknown_language_data): Remove la_filename_extensions
2822 initializer.
2823 (auto_language_data): Likewise.
2824 * language.h (language_data): Remove la_filename_extensions field.
2825 (language_defn::filename_extensions): New member function.
2826 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2827 initializer.
2828 * objc-lang.c (objc_extensions): Delete, moved into
2829 objc_language::filename_extensions.
2830 (objc_language_data): Remove la_filename_extensions initializer.
2831 (objc_language::filename_extensions): New member function.
2832 * opencl-lang.c (opencl_language_data): Remove
2833 la_filename_extensions initializer.
2834 * p-lang.c (pascal_extensions): Delete, moved into
2835 pascal_language::filename_extensions.
2836 (pascal_language_data): Remove la_filename_extensions initializer.
2837 (pascal_language::filename_extensions): New member function.
2838 * rust-lang.c (rust_extensions): Delete, moved into
2839 rust_language::filename_extensions.
2840 (rust_language_data): Remove la_filename_extensions initializer.
2841 (rust_language::filename_extensions): New member function.
2842 * symfile.c (add_filename_language): Add new assert.
2843
2844 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2845
2846 * ada-lang.c (ada_language_data): Remove la_name and
2847 la_natural_name initializers.
2848 (ada_language::name): New member function.
2849 (ada_language::natural_name): New member function.
2850 * c-lang.c (c_language_data): Remove la_name and
2851 la_natural_name initializers.
2852 (c_language::name): New member function.
2853 (c_language::natural_name): New member function.
2854 (cplus_language_data): Remove la_name and
2855 la_natural_name initializers.
2856 (cplus_language::name): New member function.
2857 (cplus_language::natural_name): New member function.
2858 (asm_language_data): Remove la_name and
2859 la_natural_name initializers.
2860 (asm_language::name): New member function.
2861 (asm_language::natural_name): New member function.
2862 (minimal_language_data): Remove la_name and
2863 la_natural_name initializers.
2864 (minimal_language::name): New member function.
2865 (minimal_language::natural_name): New member function.
2866 * compile/compile.c (compile_to_object): Update call to
2867 lanugage_defn::name.
2868 * d-lang.c (d_language_data): Remove la_name and
2869 la_natural_name initializers.
2870 (d_language::name): New member function.
2871 (d_language::natural_name): New member function.
2872 * expprint.c (print_subexp_standard): Update call to
2873 language_defn::name.
2874 (dump_raw_expression): Likewise
2875 (dump_prefix_expression): Likewise.
2876 * f-lang.c (f_language_data): Remove la_name and
2877 la_natural_name initializers.
2878 (f_language::name): New member function.
2879 (f_language::natural_name): New member function.
2880 * go-lang.c (go_language_data): Remove la_name and
2881 la_natural_name initializers.
2882 (go_language::name): New member function.
2883 (go_language::natural_name): New member function.
2884 * language.c (show_language_command): Update call to
2885 language_defn::name.
2886 (set_language_command): Likewise.
2887 (language_enum): Likewise.
2888 (language_str): Likewise.
2889 (add_set_language_command): Likewise, use
2890 language_defn::natural_name in the doc string.
2891 (unknown_language_data): Remove la_name and
2892 la_natural_name initializers.
2893 (unknown_language::name): New member function.
2894 (unknown_language::natural_name): New member function.
2895 (auto_language_data): Remove la_name and
2896 la_natural_name initializers.
2897 (auto_language::name): New member function.
2898 (auto_language::natural_name): New member function.
2899 (language_lookup_primitive_type_as_symbol): Update call to
2900 language_defn::name.
2901 * language.h (language_data): Remove la_name and la_natural_name
2902 member variables.
2903 (language_defn::name): New member function.
2904 (language_defn::natural_name): New member function.
2905 * m2-lang.c (m2_language_data): Remove la_name and
2906 la_natural_name initializers.
2907 (m2_language::name): New member function.
2908 (m2_language::natural_name): New member function.
2909 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2910 language_defn::natural_name.
2911 * objc-lang.c (objc_language_data): Remove la_name and
2912 la_natural_name initializers.
2913 (objc_language::name): New member function.
2914 (objc_language::natural_name): New member function.
2915 * opencl-lang.c (opencl_language_data): Remove la_name and
2916 la_natural_name initializers.
2917 (opencl_language::name): New member function.
2918 (opencl_language::natural_name): New member function.
2919 * p-lang.c (pascal_language_data): Remove la_name and
2920 la_natural_name initializers.
2921 (pascal_language::name): New member function.
2922 (pascal_language::natural_name): New member function.
2923 * rust-lang.c (rust_language_data): Remove la_name and
2924 la_natural_name initializers.
2925 (rust_language::name): New member function.
2926 (rust_language::natural_name): New member function.
2927 * symtab.c (lookup_language_this): Update call to
2928 language_defn::name.
2929
2930 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * ada-lang.c (ada_language_data): Remove la_name_of_this
2933 initializer.
2934 * ax-gdb.c (gen_expr): Update call to name_of_this.
2935 * c-exp.y (classify_name): Likewise.
2936 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2937 (cplus_language_data): Likewise.
2938 (cplus_language::name_of_this): New member function.
2939 (asm_language_data): Remove la_name_of_this initializer.
2940 (minimal_language_data): Likewise.
2941 * d-lang.c (d_language_data): Likewise.
2942 (d_language::name_of_this): New member function.
2943 * expprint.c (print_subexp_standard): Update call to name_of_this.
2944 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2945 * go-lang.c (go_language_data): Likewise.
2946 * language.c (unknown_language_data): Likewise.
2947 (unknown_language::name_of_this): New member function.
2948 (auto_language_data): Remove la_name_of_this initializer.
2949 (auto_language::name_of_this): New member function.
2950 * language.h (language_data): Delete la_name_of_this member
2951 variable.
2952 (language_defn::name_of_this): New member function.
2953 * m2-lang.c (m2_language_data): Remove la_name_of_this
2954 initializer.
2955 * objc-lang.c (objc_language_data): Likewise.
2956 (objc_language::name_of_this): New member function.
2957 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2958 initializer.
2959 * p-lang.c (pascal_language_data): Likewise.
2960 (pascal_language::name_of_this): New member function.
2961 * rust-lang.c (rust_language_data): Remove la_name_of_this
2962 initializer.
2963 * symtab.c (lookup_language_this): Update call to name_of_this.
2964 (lookup_symbol_aux): Likewise.
2965 * valops.c (value_of_this): Likewise.
2966
2967 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2968
2969 * ada-lang.c (ada_language_data): Remove
2970 la_struct_too_deep_ellipsis initializer.
2971 (ada_language::struct_too_deep_ellipsis): New member function.
2972 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2973 initializer.
2974 (cplus_language_data): Likewise.
2975 (asm_language_data): Likewise.
2976 (minimal_language_data): Likewise.
2977 * cp-valprint.c (cp_print_value): Update call to
2978 struct_too_deep_ellipsis.
2979 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2980 initializer.
2981 * f-lang.c (f_language_data): Likewise.
2982 (f_language::struct_too_deep_ellipsis): New member function.
2983 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2984 initializer.
2985 * language.c (unknown_language_data): Likewise.
2986 (auto_language_data): Likewise.
2987 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2988 member variable.
2989 (language_defn::struct_too_deep_ellipsis): New member function.
2990 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2991 initializer.Q
2992 * objc-lang.c (objc_language_data): Likewise.
2993 * opencl-lang.c (opencl_language_data): Likewise.
2994 * p-lang.c (pascal_language_data): Likewise.
2995 * rust-lang.c (rust_language_data): Likewise.
2996 * valprint.c (val_print_check_max_depth): Update call to
2997 struct_too_deep_ellipsis.
2998
2999 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3000
3001 * MAINTAINERS (Write After Approval): Add myself.
3002
3003 2020-09-15 Tom Tromey <tom@tromey.com>
3004
3005 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3006 Remove.
3007
3008 2020-09-15 Tom Tromey <tom@tromey.com>
3009
3010 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3011 and TYPE_CODE_METHODPTR cases.
3012 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3013 (c_value_print_inner): Update.
3014 * valprint.c (generic_value_print_memberptr): New function, from
3015 c_value_print_memberptr.
3016 (generic_value_print): Use it. Call cplus_print_method_ptr.
3017
3018 2020-09-15 Tom Tromey <tromey@adacore.com>
3019
3020 * python/python-internal.h (PyInt_FromLong): Remove define.
3021 * python/py-value.c (convert_value_from_python): Use
3022 gdb_py_object_from_longest.
3023 * python/py-type.c (typy_get_code): Use
3024 gdb_py_object_from_longest.
3025 * python/py-symtab.c (salpy_get_line): Use
3026 gdb_py_object_from_longest.
3027 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3028 gdb_py_object_from_longest.
3029 * python/py-record.c (recpy_gap_reason_code): Use
3030 gdb_py_object_from_longest.
3031 * python/py-record-btrace.c (recpy_bt_insn_size)
3032 (recpy_bt_func_level, btpy_list_count): Use
3033 gdb_py_object_from_longest.
3034 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3035 gdb_py_object_from_longest. Fix error handling.
3036 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3037 gdb_py_object_from_longest.
3038 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3039 gdb_py_object_from_longest.
3040 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3041 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3042 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3043
3044 2020-09-15 Tom Tromey <tromey@adacore.com>
3045
3046 * python/python.c (gdbpy_parameter_value): Use
3047 gdb_py_object_from_ulongest.
3048
3049 2020-09-15 Tom Tromey <tromey@adacore.com>
3050
3051 * python/py-infevents.c (create_register_changed_event_object):
3052 Use gdb_py_object_from_longest.
3053 * python/py-exitedevent.c (create_exited_event_object): Use
3054 gdb_py_object_from_longest.
3055
3056 2020-09-15 Tom Tromey <tromey@adacore.com>
3057
3058 * python/python.c (gdbpy_parameter_value): Use
3059 gdb_py_object_from_longest.
3060 * python/py-type.c (convert_field, typy_range): Use
3061 gdb_py_object_from_longest.
3062 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3063 gdb_py_object_from_longest.
3064 * python/py-lazy-string.c (stpy_get_length): Use
3065 gdb_py_object_from_longest.
3066 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3067 gdb_py_object_from_longest.
3068 * python/py-infevents.c (create_memory_changed_event_object): Use
3069 gdb_py_object_from_longest.
3070 * python/py-inferior.c (infpy_get_num): Use
3071 gdb_py_object_from_longest.
3072 (infpy_get_pid): Likewise.
3073
3074 2020-09-15 Tom Tromey <tromey@adacore.com>
3075
3076 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3077 defines.
3078 * python/py-value.c (valpy_long): Use
3079 gdb_py_object_from_ulongest.
3080 * python/py-symtab.c (salpy_get_pc): Use
3081 gdb_py_object_from_ulongest.
3082 (salpy_get_last): Likewise.
3083 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3084 gdb_py_object_from_ulongest.
3085 * python/py-lazy-string.c (stpy_get_address): Use
3086 gdb_py_object_from_ulongest.
3087 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3088 * python/py-arch.c (archpy_disassemble): Use
3089 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3090 error handling.
3091
3092 2020-09-15 Tom Tromey <tromey@adacore.com>
3093
3094 * python/python-internal.h (gdb_py_long_from_longest): Remove
3095 defines.
3096 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3097 * python/py-type.c (convert_field, typy_get_sizeof): Use
3098 gdb_py_object_from_longest.
3099 * python/py-record-btrace.c (btpy_list_index): Use
3100 gdb_py_object_from_longest.
3101
3102 2020-09-15 Tom Tromey <tromey@adacore.com>
3103
3104 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3105 * python/py-record.c (recpy_element_number): Use
3106 gdb_py_object_from_longest.
3107 (recpy_gap_number): Likewise.
3108
3109 2020-09-15 Tom Tromey <tromey@adacore.com>
3110
3111 * top.c (ui::ui): Update.
3112 (highest_ui_num): Remove.
3113 * top.h (struct ui) <num>: Remove.
3114
3115 2020-09-15 Tom Tromey <tromey@adacore.com>
3116
3117 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3118 * ui-style.c (ansi_regex_text): Now array.
3119 * rust-exp.y (number_regex_text): Now array.
3120 * linespec.c (linespec_quote_characters): Now array.
3121 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3122 Now arrays.
3123
3124 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * debuginfod-support.c (debuginfod_client_deleter): New.
3127 (debuginfod_client_up): New.
3128 (debuginfod_init): Return debuginfod_client_up.
3129 (debuginfod_source_query): Adjust.
3130 (debuginfod_debuginfo_query): Adjust.
3131
3132 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * debuginfod-support.c (debuginfod_source_query): Use
3135 make_unique_xstrdup.
3136
3137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3138
3139 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3140 with `type::instance_flags`.
3141
3142 2020-09-14 Michael Mullin <masmullin@gmail.com>
3143
3144 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3145 Remove baton parameter.
3146
3147 2020-09-14 Pedro Alves <pedro@palves.net>
3148
3149 * Makefile.in (SELFTESTS_SRCS): Add
3150 unittests/enum-flags-selftests.c.
3151 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3152 btrace_function_flags instead of enum btrace_function_flag.
3153 * compile/compile-c-types.c (convert_qualified): Use
3154 enum_flags::raw.
3155 * compile/compile-cplus-symbols.c (convert_one_symbol)
3156 (convert_symbol_bmsym):
3157 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3158 (compile_cplus_convert_struct_or_union_methods)
3159 (compile_cplus_instance::convert_qualified_base):
3160 * go-exp.y (parse_string_or_char): Add cast to int.
3161 * unittests/enum-flags-selftests.c: New file.
3162 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3163 type to btrace_thread_flags from btrace_thread_flag.
3164 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3165 local's type to btrace_thread_flags from btrace_thread_flag. Add
3166 cast in DEBUG call.
3167
3168 2020-09-14 Pedro Alves <pedro@palves.net>
3169
3170 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3171 * gdbtypes.c (address_space_name_to_int): Rename to ...
3172 (address_space_name_to_type_instance_flags): ... this.
3173 (address_space_int_to_name): Rename to ...
3174 (address_space_type_instance_flags_to_name): ... this.
3175 * gdbtypes.h (address_space_name_to_int): Rename to ...
3176 (address_space_name_to_type_instance_flags): ... this.
3177 (address_space_int_to_name): Rename to ...
3178 (address_space_type_instance_flags_to_name): ... this.
3179 * type-stack.c (type_stack::insert): Adjust to rename.
3180 * type-stack.h (type_stack::insert): Likewise.
3181
3182 2020-09-14 Pedro Alves <pedro@palves.net>
3183 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * avr-tdep.c (avr_address_class_type_flags): Return
3186 type_instance_flags.
3187 (avr_address_class_type_flags_to_name): Take a
3188 type_instance_flags.
3189 (avr_address_class_name_to_type_flags): Return bool and take a
3190 type_instance_flags.
3191 * d-lang.c (build_d_types): Use type::set_instance_flags.
3192 * ft32-tdep.c (ft32_address_class_type_flags): Return
3193 type_instance_flags.
3194 (ft32_address_class_type_flags_to_name): Take a
3195 type_instance_flags.
3196 (ft32_address_class_name_to_type_flags): Return bool and take a
3197 type_instance_flags.
3198 (ft32_gdbarch_init): Use type::set_instance_flags.
3199 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3200 * gdbarch.h, gdbarch.c: Regenerate.
3201 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3202 (address_class_name_to_type_flags): Use type_instance_flags and
3203 bool.
3204 * gdbtypes.c (address_space_name_to_int)
3205 (address_space_int_to_name, make_qualified_type): Use
3206 type_instance_flags.
3207 (make_qualified_type): Use type_instance_flags and
3208 type::set_instance_flags.
3209 (make_type_with_address_space, make_cv_type, make_vector_type)
3210 (check_typedef): Use type_instance_flags.
3211 (recursive_dump_type): Cast type_instance_flags to unsigned for
3212 printing.
3213 (copy_type_recursive): Use type::set_instance_flags.
3214 (gdbtypes_post_init): Use type::set_instance_flags.
3215 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3216 <m_instance_flags>: ... this.
3217 <instance_flags, set_instance_flags>: New methods.
3218 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3219 (SET_TYPE_INSTANCE_FLAGS): New.
3220 (address_space_name_to_int, address_space_int_to_name)
3221 (make_type_with_address_space): Pass flags using
3222 type_instance_flags instead of int.
3223 * stabsread.c (cleanup_undefined_types_noname): Use
3224 type::set_instance_flags.
3225 * s390-tdep.c (s390_address_class_type_flags): Return
3226 type_instance_flags.
3227 (s390_address_class_type_flags_to_name): Take a
3228 type_instance_flags.
3229 (s390_address_class_name_to_type_flags): Return bool and take a
3230 type_instance_flags.
3231 * type-stack.c (type_stack::follow_types): Use
3232 type_instance_flags.
3233 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3234
3235 2020-09-14 Tom Tromey <tromey@adacore.com>
3236
3237 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3238 * x86-tdep.c (x86_is_thunk_register_name)
3239 (x86_in_indirect_branch_thunk): Update.
3240 * sparc64-tdep.c (sparc64_fpu_register_names)
3241 (sparc64_cp0_register_names, sparc64_register_names)
3242 (sparc64_pseudo_register_names): Now const.
3243 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3244 cp0_registers_num>: Now const.
3245 * sparc-tdep.c (sparc_core_register_names)
3246 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3247 (sparc32_pseudo_register_names): Now const.
3248 (validate_tdesc_registers): Update.
3249 * rust-lang.c (rust_extensions): Now const.
3250 * p-lang.c (p_extensions): Now const.
3251 * objc-lang.c (objc_extensions): Now const.
3252 * nto-tdep.c (nto_thread_state_str): Now const.
3253 * moxie-tdep.c (moxie_register_names): Now const.
3254 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3255 Now const.
3256 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3257 (mips_linux_reg_names): Now const.
3258 (mips_gdbarch_init): Update.
3259 * microblaze-tdep.c (microblaze_register_names): Now const.
3260 * m68k-tdep.c (m68k_register_names): Now const.
3261 * m32r-tdep.c (m32r_register_names): Now const.
3262 * ia64-tdep.c (ia64_register_names): Now const.
3263 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3264 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3265 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3266 ymm_avx512_register_names, pkeys_register_names>: Now const.
3267 * i386-tdep.c (i386_register_names, i386_zmm_names)
3268 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3269 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3270 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3271 * f-lang.c (f_extensions): Now const.
3272 * d-lang.c (d_extensions): Now const.
3273 * csky-tdep.c (csky_register_names): Now const.
3274 * charset.c (default_charset_names, charset_enum): Now const.
3275 (_initialize_charset): Update.
3276 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3277 const.
3278 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3279 (bsd_uthread_solib_loaded): Update.
3280 (bsd_uthread_state): Now const.
3281 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3282 (amd64_ymm_avx512_names, amd64_ymmh_names)
3283 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3284 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3285 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3286 (amd64_dword_names): Now const.
3287 * agent.c (can_use_agent_enum): Now const.
3288 * ada-tasks.c (task_states, long_task_states): Now const.
3289 * ada-lang.c (known_runtime_file_name_patterns)
3290 (known_auxiliary_function_name_patterns, attribute_names)
3291 (standard_exc, ada_extensions): Now const.
3292
3293 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * bcache.h (struct bcache) <bcache>: Remove constructor.
3296 <m_hash_function, m_compare_function>: Remove.
3297 <~bcache>: Make virtual.
3298 <compare>: Remove static method, introduce virtual method.
3299 <default_hash>: Remove.
3300 <hash>: New virtual method.
3301 * bcache.c (bcache::expand_hash_table): Update.
3302 (bcache::insert): Update.
3303 (bcache::hash): New.
3304 (bcache::compare): Update comment and parameter names.
3305 * gdbtypes.c (types_deeply_equal): Update.
3306 * psymtab.h (struct psymbol_bcache): New struct.
3307 (class psymtab_storage) <psymtab_storage>: Make default.
3308 <psymbol_cache>: Change type to psymbol_bcache.
3309 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3310 (psymbol_hash): Change to...
3311 (psymbol_bcache::hash): ... this.
3312 (psymbol_compare): Change to...
3313 (psymbol_bcache::compare): ... this.
3314
3315 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3316
3317 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3318 checking for initial lwp.
3319
3320 2020-09-14 Tom Tromey <tromey@adacore.com>
3321
3322 * m68k-tdep.c (m68k_extract_return_value): Use
3323 pointer_result_regnum.
3324 (m68k_store_return_value): Likewise.
3325 (m68k_reg_struct_return_p): Handle vectors and arrays.
3326 (m68k_return_value): Handle arrays.
3327 (m68k_svr4_return_value): Fix single-element aggregate handling.
3328 Handle long double. Adjust for embedded ABI.
3329 (m68k_svr4_init_abi): Set pointer_result_regnum.
3330 (m68k_embedded_init_abi): New function.
3331 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3332 (m68k_osabi_sniffer): New function.
3333 (_initialize_m68k_tdep): Register osabi sniffer.
3334 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3335 member.
3336
3337 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3340 with gdb::unique_xmalloc_ptr<char>.
3341
3342 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3343
3344 * xml-support.h (xml_fetch_another): Change type to be a
3345 function_view.
3346 (xml_process_xincludes): Remove baton parameter.
3347 (xml_fetch_content_from_file): Change baton parameter to
3348 dirname.
3349 * xml-support.c (struct xinclude_parsing_data)
3350 <xinclude_parsing_data>: Remove baton parameter.
3351 <fetcher_baton>: Remove.
3352 (xinclude_start_include): Adjust.
3353 (xml_process_xincludes): Adjust.
3354 (xml_fetch_content_from_file): Replace baton parameter with
3355 dirname.
3356 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3357 (xml_init_syscalls_info): Use a lambda.
3358 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3359 (file_read_description_xml): Use a lambda.
3360 (fetch_available_features_from_target): Change baton parameter
3361 to target_ops.
3362 (target_read_description_xml): Use a lambda.
3363 (target_fetch_description_xml): Use a lambda.
3364 (string_read_description_xml): Update.
3365
3366 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3367
3368 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3369 uses with type::endianity_is_not_default.
3370
3371 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3372
3373 * gdbtypes.h (struct type) <endianity_is_not_default,
3374 set_endianity_is_not_default>: New methods.
3375 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3376 type::endianity_is_not_default, change all write call sites to
3377 use type::set_endianity_is_not_default.
3378
3379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3382 uses with type::is_fixed_instance.
3383
3384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (struct type) <is_fixed_instance,
3387 set_is_fixed_instance>: New methods.
3388 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3389 write call sites to use type::set_is_fixed_instance.
3390
3391 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3394 uses with type::is_gnu_ifunc.
3395
3396 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3399 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3400 use type::set_is_gnu_ifunc.
3401
3402 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3405 uses with type::stub_is_supported.
3406
3407 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3410 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3411 use type::set_stub_is_supported.
3412
3413 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3416 uses with type::is_vector.
3417
3418 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3421 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3422 use type::set_is_vector.
3423
3424 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3427 uses with type::has_varargs.
3428
3429 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3432 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3433 use type::set_has_varargs.
3434
3435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3438 uses with type::is_prototyped.
3439
3440 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3443 New methods.
3444 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3445 call sites to use type::set_is_prototyped.
3446
3447 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3450 uses with type::target_is_stub.
3451
3452 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3453
3454 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3455 New methods.
3456 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3457 sites to use type::set_target_is_stub.
3458
3459 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * gdbtypes.h (TYPE_STUB): Remove, replace all
3462 uses with type::is_stub.
3463
3464 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3467 (TYPE_STUB): Use type::is_stub, change all write call sites to
3468 use type::set_is_stub.
3469
3470 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3473 type::has_no_signedness.
3474
3475 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * gdbtypes.h (struct type) <has_no_signedness,
3478 set_has_no_signedness>: New methods.
3479 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3480 call sites to use type::set_has_no_signedness.
3481
3482 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3483
3484 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3485 type::is_unsigned.
3486
3487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3490 methods.
3491 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3492 sites to use type::set_is_unsigned.
3493
3494 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3495 Adam Renquinha <arenquinha@cimeq.qc.ca>
3496
3497 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3498 pointer and stack frame offset when unwinding.
3499
3500 2020-09-13 Pedro Alves <pedro@palves.net>
3501
3502 * NEWS: Document "-break-insert --qualified".
3503 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3504
3505 2020-09-13 Pedro Alves <pedro@palves.net>
3506
3507 * linespec.c (classify_mtype, compare_msyms): Delete.
3508 (search_minsyms_for_name): Remove classification logic. Instead
3509 filter out trampoline symbols if we also found an external
3510 function of the same name.
3511
3512 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3513
3514 * NEWS: Create a new section for the next release branch.
3515 Rename the section of the current branch, now that it has
3516 been cut.
3517
3518 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3519
3520 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3521 * version.in: Bump version to 11.0.50.DATE-git.
3522
3523 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3524
3525 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3526
3527 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3528 Felix Willgerodt <Felix.Willgerodt@intel.com>
3529
3530 * gdbarch.sh: Added bfloat16 type.
3531 * gdbarch.c: Regenerated.
3532 * gdbarch.h: Regenerated.
3533 * gdbtypes.c (floatformats_bfloat16): New struct.
3534 (gdbtypes_post_init): Add builtin_bfloat16.
3535 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3536 (floatformats_bfloat16): New struct.
3537 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3538 (i386_ymm_type): Add field "v16_bfloat16"
3539 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3540 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3541 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3542 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3543 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3544 * features/i386/64bit-avx512.c: Regenerated.
3545 * features/i386/64bit-sse.xml: Add bfloat16 type.
3546 * features/i386/64bit-sse.c: Regenerated.
3547
3548 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3549
3550 * i386-tdep.c (i386_zmm_type): Fix field names.
3551 (i386_ymm_type): Fix field names.
3552
3553 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3554
3555 * breakpoint.c: Fix typo in the help message of the
3556 "set breakpoint condition-evaluation" command.
3557
3558 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3559
3560 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3561 * (nbsd_nat_target::pid_to_exec_file)
3562 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3563 (nbsd_nat_target::post_startup_inferior)
3564 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3565 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3566 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3567 * (nbsd_thread_lister): Remove.
3568
3569 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3570
3571 * fork-inferior.c (startup_inferior): Avoid double free.
3572
3573 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3574
3575 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3576 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3577
3578 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3579
3580 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3581 * netbsd-nat.c: Include <sys/ptrace.h>.
3582 * (netbsd_nat::enable_proc_events): Add.
3583
3584 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3585
3586 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3587 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3588 (netbsd_nat::for_each_thread): Add.
3589 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3590 "gdbsupport/common-debug.h".
3591 * (netbsd_nat::netbsd_thread_lister)
3592 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3593 (netbsd_nat::for_each_thread): Add.
3594
3595 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3596
3597 * netbsd-nat.h: Include <unistd.h>.
3598 * (netbsd_nat::pid_to_exec_file): Add.
3599 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3600 * (netbsd_nat::pid_to_exec_file) Add.
3601
3602 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3603
3604 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3605
3606 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3607
3608 * netbsd-nat.h: New file.
3609 * netbsd-nat.c: Likewise.
3610
3611 2020-09-09 Tom Tromey <tromey@adacore.com>
3612
3613 * ada-lang.c (remove_extra_symbols): Do not increment when
3614 removing an element
3615
3616 2020-09-08 Tom Tromey <tromey@adacore.com>
3617
3618 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3619
3620 2020-09-08 Tom Tromey <tromey@adacore.com>
3621
3622 PR win32/25302:
3623 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3624 (gdb_bfd_init_data): New function.
3625 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3626
3627 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3628
3629 * infrun.c (fetch_inferior_event): Use
3630 `switch_to_target_no_thread` to switch the target.
3631
3632 2020-09-06 Tom Tromey <tom@tromey.com>
3633
3634 * symfile.h (dwarf2_free_objfile): Don't declare.
3635
3636 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3637
3638 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3639 to match 16 byte real/complex type generated by Flang compiler.
3640
3641 2020-09-03 Tom de Vries <tdevries@suse.de>
3642
3643 PR breakpoint/26546
3644 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3645 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3646
3647 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3648
3649 * maint.c (index_digits): New function.
3650 (struct maint_print_section_data): Remove.
3651 (print_bfd_section_info): Remove print_data parameter, add arg
3652 and index_digits.
3653 (print_objfile_section_info): Likewise.
3654 (print_bfd_section_info_maybe_relocated): Likewise (plus
3655 objfile).
3656 (maintenance_info_sections): Adjust calls.
3657
3658 2020-09-02 Tom Tromey <tromey@adacore.com>
3659
3660 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3661 for null pointers.
3662 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3663
3664 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3665
3666 * bcache.h (struct bcache) <insert>: Change type of `added` to
3667 pointer to bool.
3668 * bcache.c (bcache::insert): Likewise.
3669 * gdbtypes.c (check_types_worklist): Adjust.
3670 * psymtab.c (add_psymbol_to_bcache): Adjust.
3671
3672 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3673
3674 * corelow.c (unordered_set): Include.
3675 (class core_target): Add field 'm_core_unavailable_mappings'.
3676 (core_target::build_file_mappings): Print only one warning
3677 per inaccessible file. Add unavailable/broken mappings
3678 to m_core_unavailable_mappings.
3679 (core_target::xfer_partial): Call...
3680 (core_target::xfer_memory_via_mappings): New method.
3681
3682 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3683
3684 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3685 type to bool.
3686
3687 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3688
3689 * dwarf2/read.c (struct field_info): Fix indentation.
3690
3691 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3694 ordering in comment.
3695 * frame.c (frame_id_eq): Fix indentation.
3696
3697 2020-08-31 Scott Linder <scott@scottlinder.com>
3698 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3701 inline frame ids in outer frame.
3702
3703 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3706 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3707 (outer_frame_id): Use FID_STACK_OUTER instead of
3708 FID_STACK_INVALID.
3709 (frame_id_p): Don't check for outer_frame_id.
3710
3711 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3714 regnum/frame in value. Call allocate_value_lazy.
3715 * frame.c (frame_unwind_register_value): Use
3716 val_print_not_saved.
3717
3718 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3721
3722 2020-08-29 Pedro Alves <pedro@palves.net>
3723
3724 * progspace.c (print_program_space): Use all_inferiors. Switch to
3725 the inferior before calling target_pid_to_str.
3726
3727 2020-08-28 Tom Tromey <tom@tromey.com>
3728
3729 * xcoffread.c (xcoff_end_psymtab): Update comment.
3730 * dbxread.c (dbx_end_psymtab): Update comment.
3731
3732 2020-08-28 Tom de Vries <tdevries@suse.de>
3733
3734 PR breakpoint/26544
3735 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3736 event_location.
3737 (create_breakpoint): Same.
3738 (base_breakpoint_decode_location): Same.
3739 (bkpt_create_sals_from_location): Same.
3740 (bkpt_decode_location): Same.
3741 (bkpt_probe_create_sals_from_location): Same.
3742 (bkpt_probe_decode_location): Same.
3743 (tracepoint_create_sals_from_location): Same.
3744 (tracepoint_decode_location): Same.
3745 (tracepoint_probe_decode_location): Same.
3746 (strace_marker_create_sals_from_location): Same.
3747 (strace_marker_decode_location): Same.
3748 (create_sals_from_location_default): Same.
3749 (decode_location_default): Same.
3750 * breakpoint.h (struct breakpoint_ops): Same.
3751 (create_breakpoint): Same.
3752 * linespec.h (decode_line_full): Same.
3753 * linespec.c (decode_line_full): Same. Throw error if
3754 result.size () == 0.
3755
3756 2020-08-27 Pedro Alves <pedro@palves.net>
3757
3758 PR gdb/26524
3759 * breakpoint.c (until_break_fsm) <location_breakpoint,
3760 caller_breakpoint>: Delete fields.
3761 <breakpoints>: New field.
3762 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3763 two individual breakpoints.
3764 (until_break_fsm::should_stop): Loop over breakpoints in the
3765 breakpoint vector.
3766 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3767 vector.
3768 (until_break_command): Handle location expanding into multiple
3769 sals.
3770
3771 2020-08-27 Pedro Alves <pedro@palves.net>
3772
3773 PR gdb/26523
3774 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3775 bp_until breakpoints user-specified locations. Update intro
3776 comment.
3777
3778 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3781 gdb_bfd_sections): New.
3782 * maint.c (print_bfd_section_info): Change param type to
3783 maint_print_section_data.
3784 (print_objfile_section_info): Likewise.
3785 (print_bfd_section_info_maybe_relocated): Likewise.
3786 (maintenance_info_sections): Use gdb_bfd_sections.
3787
3788 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3789
3790 * MAINTAINERS: Add ARC target and maintainer.
3791
3792 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3793
3794 * configure.tgt: ARC support for GNU/Linux.
3795 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3796 * arc-linux-tdep.c: New file.
3797 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3798 * arc-tdep.c (arc_write_pc): Use it.
3799
3800 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3801
3802 * arc-tdep.c (arc_check_for_hardware_loop): New.
3803 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3804
3805 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3806
3807 * arc-tdep.h: Include "gdbarch.h".
3808
3809 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3810
3811 * arch/arc.h
3812 (arc_gdbarch_features): New class to stir the selection of target XML.
3813 (arc_create_target_description): Use FEATURES to choose XML target.
3814 (arc_lookup_target_description): Use arc_create_target_description
3815 to create _new_ target descriptions or return the already created
3816 ones if the FEATURES is the same.
3817 * arch/arc.c: Implementation of prototypes described above.
3818 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3819 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3820 * arc-tdep.c (*_feature_name): Make feature names consistent.
3821 (arc_register_feature): A new struct to hold information about
3822 registers of a particular target/feature.
3823 (arc_check_tdesc_feature): Check if XML provides registers in
3824 compliance with ARC_REGISTER_FEATURE structs.
3825 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3826 (determine_*_reg_feature_set): Which feature name to look for.
3827 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3828 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3829 to expected ISA enums to be used in arc_gdbarch_features structs.
3830 * features/Makefile (FEATURE_XMLFILES): Add new files.
3831 * gdb/features/arc/v1-aux.c: New file.
3832 * gdb/features/arc/v1-aux.xml: Likewise.
3833 * gdb/features/arc/v1-core.c: Likewise.
3834 * gdb/features/arc/v1-core.xml: Likewise.
3835 * gdb/features/arc/v2-aux.c: Likewise.
3836 * gdb/features/arc/v2-aux.xml: Likewise.
3837 * gdb/features/arc/v2-core.c: Likewise.
3838 * gdb/features/arc/v2-core.xml: Likewise.
3839 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3840
3841 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3842 Andrew Burgess <andrew.burgess@embecosm.com>
3843
3844 PR m2/26372
3845 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3846 an assert. Remove single element array indexing pattern as the
3847 MULTI_SUBSCRIPT support will handle this case too.
3848
3849 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * value.h (valprint_check_validity): Move declaration from
3852 here...
3853 * valprint.h (valprint_check_validity): ... to here.
3854
3855 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * debug.h: New file.
3858 * debug.c (debug_prefixed_vprintf): New function.
3859 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3860 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3861
3862 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3863
3864 * infrun.h (infrun_debug_printf_1): New function declaration.
3865 (infrun_debug_printf): New macro.
3866 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3867 throughout.
3868 (infrun_debug_printf): New function.
3869 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3870 (handle_jit_event): Likewise.
3871
3872 2020-08-21 Mark Wielaard <mark@klomp.org>
3873
3874 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3875
3876 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * frame.c (enum class frame_id_status): New.
3879 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3880 (fprintf_frame): Update.
3881 (compute_frame_id): Set frame id status to "computing" on entry.
3882 Set it back to "not_computed" on failure and to "computed" on
3883 success.
3884 (get_frame_id): Assert the frame id is not being computed.
3885 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3886 (create_new_frame): Likewise.
3887 (frame_cleanup_after_sniffer): Update assert.
3888
3889 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * regcache.c (pid_ptid_regcache_map): New type.
3892 (target_ptid_regcache_map): Remove.
3893 (target_pid_ptid_regcache_map): New type.
3894 (regcaches): Change type to target_pid_ptid_regcache_map.
3895 (get_thread_arch_aspace_regcache): Update.
3896 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3897 case.
3898 (regcaches_size): Update.
3899 (regcache_count): Update.
3900 (registers_changed_ptid_target_pid_test): New.
3901 (_initialize_regcache): Register new test.
3902
3903 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * regcache.c (regcache_count): New.
3906 (struct regcache_test_data): New.
3907 (regcache_test_data_up): New.
3908 (populate_regcaches_for_test): New.
3909 (regcaches_test): Remove.
3910 (get_thread_arch_aspace_regcache_test): New.
3911 (registers_changed_ptid_all_test): New.
3912 (registers_changed_ptid_target_test): New.
3913 (registers_changed_ptid_target_ptid_test): New.
3914 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3915 (_initialize_regcache): Register new tests.
3916
3917 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3920 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3921 gdbarch and aspace parameter. Use current inferior's aspace.
3922 Validate regcache's arch value.
3923 (regcaches_test): Update.
3924
3925 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * regcache.c (regcaches_test): Call registers_changed.
3928
3929 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3930
3931 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3932
3933 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3934
3935 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3936 to find the end of prologue for flang compiled binaries.
3937 * arm-tdep.c (arm_skip_prologue): Likewise.
3938 * i386-tdep.c (i386_skip_prologue): Likewise.
3939 * producer.c (producer_is_llvm): New function.
3940 (producer_parsing_tests): Added new tests for clang/flang.
3941 * producer.h (producer_is_llvm): New declaration.
3942
3943 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * linux-nat.c (linux_nat_debug_printf): New function.
3946 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3947
3948 2020-08-18 Aaron Merey <amerey@redhat.com>
3949
3950 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3951 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3952 (CLIBS): Add DEBUGINFOD_LIBS.
3953
3954 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3955
3956 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3957 'gdbarch_num_regs'.
3958
3959 2020-08-17 Tom Tromey <tromey@adacore.com>
3960
3961 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3962 ada_get_decoded_value returns NULL.
3963
3964 2020-08-17 Tom Tromey <tromey@adacore.com>
3965
3966 * python/py-inferior.c (infpy_search_memory): Use
3967 gdb_py_object_from_ulongest.
3968 * python/py-infevents.c (create_inferior_call_event_object)
3969 (create_memory_changed_event_object): Use
3970 gdb_py_object_from_ulongest.
3971 * python/py-linetable.c (ltpy_entry_get_pc): Use
3972 gdb_py_object_from_ulongest.
3973
3974 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3975
3976 * loc.c (class symbol_needs_eval_context): Fix indentation.
3977
3978 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3979
3980 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3981 bool.
3982
3983 2020-08-17 Tom de Vries <tdevries@suse.de>
3984
3985 PR gdb/26393
3986 * gdbtypes.c (dump_dynamic_prop): New function.
3987 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3988
3989 2020-08-15 Tom de Vries <tdevries@suse.de>
3990
3991 PR backtrace/26390
3992 * stack.c (print_frame_args): Temporarily set the selected
3993 frame to FRAME while printing the frame's arguments.
3994
3995 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3996
3997 PR breakpoints/26385
3998 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3999 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4000
4001 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4002
4003 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4004 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4005 and >= to check return value instead of == -1 and != -1.
4006
4007 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4008
4009 * utils.h (class gdb_argv) <as_array_view>: New method.
4010 * utils.c (gdb_argv_as_array_view_test): New.
4011 (_initialize_utils): Register selftest.
4012 * maint.c (maintenance_selftest): Use the new method.
4013
4014 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4015
4016 * target.h (supports_dumpcore, dumpcore): New
4017 function declarations.
4018 * target.c (supports_dumpcore, dumpcore): New
4019 functions.
4020 * target-delegates.c: Rebuild.
4021 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4022 and target_dumpcore ().
4023
4024 2020-08-13 Aaron Merey <amerey@redhat.com>
4025
4026 * debuginfod-support.c: Replace global variables with user_data.
4027
4028 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4029
4030 * maint.c (maintenance_selftest): Split args and pass array_view
4031 to run_tests.
4032
4033 2020-08-12 Luis Machado <luis.machado@linaro.org>
4034
4035 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4036 type's length.
4037 Use %s and pulongest to print the length.
4038
4039 2020-08-12 Pedro Alves <palves@redhat.com>
4040
4041 * NEWS: Move "Multi-target debugging support" item to the
4042 "Changes since GDB 9" section.
4043
4044 2020-08-12 Pedro Alves <palves@redhat.com>
4045
4046 PR gdb/26336
4047 * progspace.c (program_space::remove_objfile): Invalidate the
4048 frame cache.
4049
4050 2020-08-11 Tom de Vries <tdevries@suse.de>
4051
4052 * MAINTAINERS: Mark ms1 as deleted.
4053
4054 2020-08-10 Luis Machado <luis.machado@linaro.org>
4055
4056 PR gdb/26310
4057
4058 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4059 act accordingly.
4060 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4061 movz/str/stur/stp skipping behavior.
4062
4063 2020-08-10 Luis Machado <luis.machado@linaro.org>
4064
4065 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4066 struct user_sve_header instead of struct sve_context.
4067
4068 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4069
4070 * read.h (dwarf2_fetch_die_loc_sect_off,
4071 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4072 `void *` parameter with function_view.
4073 * read.c (dwarf2_fetch_die_loc_sect_off,
4074 dwarf2_fetch_die_loc_cu_off): Likewise.
4075 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4076 (per_cu_dwarf_call): Adjust.
4077 (get_frame_address_in_block_wrapper): Remove.
4078 (indirect_synthetic_pointer): Adjust.
4079 (get_ax_pc): Remove.
4080 (dwarf2_compile_expr_to_ax): Adjust.
4081
4082 2020-08-08 Tom de Vries <tdevries@suse.de>
4083
4084 PR build/26344
4085 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4086 constructor.
4087 * regcache.c (get_thread_arch_aspace_regcache): Same.
4088
4089 2020-08-07 Tom Tromey <tromey@adacore.com>
4090
4091 * ravenscar-thread.c
4092 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4093 New method.
4094 (ravenscar_thread_target::wait): Check
4095 runtime_initialized.
4096 (ravenscar_thread_target::prepare_to_store)
4097 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4098 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4099 (ravenscar_thread_target::stopped_by_watchpoint)
4100 (ravenscar_thread_target::stopped_data_address)
4101 (ravenscar_thread_target::core_of_thread): Use
4102 scoped_restore_current_thread and
4103 set_base_thread_from_ravenscar_task.
4104
4105 2020-08-07 Tom Tromey <tromey@adacore.com>
4106
4107 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4108
4109 2020-08-07 Tom Tromey <tromey@adacore.com>
4110
4111 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4112 update_inferior_ptid before update_thread_list.
4113 (temporarily_change_regcache_ptid): New class.
4114 (ravenscar_thread_target::fetch_registers)
4115 (ravenscar_thread_target::store_registers)
4116 (ravenscar_thread_target::prepare_to_store): Use base thread when
4117 forwarding operation.
4118
4119 2020-08-07 Tom Tromey <tromey@adacore.com>
4120
4121 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4122 "is_pid" case.
4123
4124 2020-08-07 Tom Tromey <tromey@adacore.com>
4125
4126 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4127 New methods.
4128 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4129 first.
4130 (ravenscar_thread_target::add_thread): Rename from
4131 ravenscar_add_thread.
4132 (ravenscar_thread_target::update_thread_list): Use a lambda.
4133 (ravenscar_thread_target::xfer_partial): New method.
4134
4135 2020-08-07 Tom Tromey <tromey@adacore.com>
4136
4137 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4138 gdb::function_view.
4139 (iterate_over_live_ada_tasks): Change type of argument.
4140 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4141 of argument.
4142
4143 2020-08-07 Tom Tromey <tromey@adacore.com>
4144
4145 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4146 Remove.
4147 (ravenscar_thread_target::extra_thread_info): Remove.
4148 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4149 defer to target beneath for non-Ravenscar threads.
4150
4151 2020-08-07 Tom Tromey <tromey@adacore.com>
4152
4153 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4154 get_base_thread_from_ravenscar_task>: Now methods.
4155 <m_cpu_map>: New member.
4156 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4157 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4158 (ravenscar_thread_target::task_is_currently_active): Update.
4159 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4160 Now a method.
4161 (ravenscar_thread_target::add_active_thread): Put initial thread
4162 into the m_cpu_map.
4163
4164 2020-08-07 Tom Tromey <tromey@adacore.com>
4165
4166 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4167 event_ptid.
4168
4169 2020-08-07 Tom Tromey <tromey@adacore.com>
4170
4171 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4172 runtime_initialized.
4173
4174 2020-08-07 Tom Tromey <tromey@adacore.com>
4175
4176 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4177 add_active_thread.
4178 (ravenscar_thread_target::add_active_thread): Now public.
4179 (ravenscar_inferior_created): Call add_active_thread after pushing
4180 the target.
4181
4182 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4183
4184 * regcache.c (ptid_regcache_map): New type.
4185 (target_ptid_regcache_map): New type.
4186 (regcaches): Change type to target_ptid_regcache_map.
4187 (get_thread_arch_aspace_regcache): Update to regcaches' new
4188 type.
4189 (regcache_thread_ptid_changed): Likewise.
4190 (registers_changed_ptid): Likewise.
4191 (regcaches_size): Likewise.
4192 (regcaches_test): Update.
4193 (regcache_thread_ptid_changed): Update.
4194 * regcache.h (regcache_up): New type.
4195 * gdbsupport/ptid.h (hash_ptid): New struct.
4196
4197 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4198
4199 * observable.h (thread_ptid_changed): Add parameter
4200 `process_stratum_target *`.
4201 * infrun.c (infrun_thread_ptid_changed): Add parameter
4202 `process_stratum_target *` and use it.
4203 (selftests): New namespace.
4204 (infrun_thread_ptid_changed): New function.
4205 (_initialize_infrun): Register selftest.
4206 * regcache.c (regcache_thread_ptid_changed): Add parameter
4207 `process_stratum_target *` and use it.
4208 (regcache_thread_ptid_changed): New function.
4209 (_initialize_regcache): Register selftest.
4210 * thread.c (thread_change_ptid): Pass target to
4211 thread_ptid_changed observable.
4212
4213 2020-08-06 Caroline Tice <cmtice@google.com>
4214
4215 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4216 (struct dwp_sections): Update field comments. Add loclists and
4217 rnglists fields.
4218 (struct virtual_v2_dwo_sections): Rename struct to
4219 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4220 size & offset fields for loclists and rnglists.
4221 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4222 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4223 skipping dummy type units.
4224 (create_dwp_hash_table): Update the large comment above the function to
4225 discuss Version 5 DWP files as well, with references. Update all the
4226 version checks in the function to check for version 5 as well. Add new
4227 section at the end to create dwp hash table for version 5.
4228 (create_dwp_v2_section): Rename function to
4229 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4230 Add V5 to error message text.
4231 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4232 into calls to create_dwp_v2_or_v5_section.
4233 (create_dwo_unit_in_dwp_v5): New function.
4234 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4235 check for version2; add else clause to handle version 5.
4236 (open_and_init_dwo_file): Add code to check dwarf version & only call
4237 create_debug_types_hash_table (with sections.types) if version is not 5;
4238 else call create_debug_type_hash_table, with sections.info.
4239 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4240 version 5.
4241 (dwarf2_locate_v5_dwp_sections): New function.
4242 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4243 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4244
4245 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4246
4247 * regcache.h (class regcache): Remove friend
4248 registers_changed_ptid.
4249 <regcache_thread_ptid_changed>: Remove.
4250 <regcaches>: Remove.
4251 * regcache.c (regcache::regcaches): Rename to...
4252 (regcaches): ... this. Make static.
4253 (get_thread_arch_aspace_regcache): Update.
4254 (regcache::regcache_thread_ptid_changed): Rename to...
4255 (regcache_thread_ptid_changed): ... this. Update.
4256 (class regcache_access): Remove.
4257 (regcaches_test): Update.
4258 (_initialize_regcache): Update.
4259 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4260 <forward_list>.
4261
4262 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * regcache.h (class regcache) <current_regcache>: Rename to...
4265 <regcaches>: ... this. Move doc here.
4266 * regcache.c (regcache::current_regcache) Rename to...
4267 (regcache::regcaches): ... this. Move doc to header.
4268 (get_thread_arch_aspace_regcache): Update.
4269 (regcache::regcache_thread_ptid_changed): Update.
4270 (registers_changed_ptid): Update.
4271 (class regcache_access) <current_regcache_size>: Rename to...
4272 <regcaches_size>: ... this.
4273 (current_regcache_test): Rename to...
4274 (regcaches_test): ... this.
4275 (_initialize_regcache): Update.
4276
4277 2020-08-06 Victor Collod <vcollod@nvidia.com>
4278
4279 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4280
4281 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4282
4283 * corelow.c (core_target::build_file_mappings): Don't output
4284 null pathname in warning.
4285
4286 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4287
4288 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4289 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4290 gdb.dwarf2/dw2-single-line-discriminators.exp,
4291 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4292
4293 2020-08-05 Tom Tromey <tromey@adacore.com>
4294
4295 PR rust/26197:
4296 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4297 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4298 Fix off-by-one and type size errors in ordinary case.
4299
4300 2020-08-05 Tom de Vries <tdevries@suse.de>
4301
4302 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4303 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4304
4305 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4306
4307 * frame.h (frame_id_p): Return bool.
4308 (frame_id_artificial_p): Return bool.
4309 (frame_id_eq): Return bool.
4310 (has_stack_frames): Return bool.
4311 (get_selected_frame): Fix typo in comment.
4312 (get_frame_pc_if_available): Return bool.
4313 (get_frame_address_in_block_if_available): Return bool.
4314 (get_frame_func_if_available): Return bool.
4315 (read_frame_register_unsigned): Return bool.
4316 (get_frame_register_bytes): Return bool.
4317 (safe_frame_unwind_memory): Return bool.
4318 (deprecated_frame_register_read): Return bool.
4319 (frame_unwinder_is): Return bool.
4320 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4321 bool.
4322 <this_id::p>: Likewise.
4323 <prev_p>: Likewise.
4324 (frame_stash_add): Return bool.
4325 (get_frame_id): Use bool.
4326 (frame_id_build_special) Use bool.
4327 (frame_id_build_unavailable_stack): Use bool.
4328 (frame_id_build): Use bool.
4329 (frame_id_p): Return bool, use true/false instead of 1/0.
4330 (frame_id_artificial_p): Likewise.
4331 (frame_id_eq): Likewise.
4332 (frame_id_inner): Likewise.
4333 (get_frame_func_if_available): Likewise.
4334 (read_frame_register_unsigned): Likewise.
4335 (deprecated_frame_register_read): Likewise.
4336 (get_frame_register_bytes): Likewise.
4337 (has_stack_frames): Likewise.
4338 (inside_main_func): Likewise.
4339 (inside_entry_func): Likewise.
4340 (get_frame_pc_if_available): Likewise.
4341 (get_frame_address_in_block_if_available): Likewise.
4342 (frame_unwinder_is): Likewise.
4343 (safe_frame_unwind_memory): Likewise.
4344 (frame_unwind_arch): Likewise.
4345
4346 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4347
4348 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4349 type to cached_copy_status.
4350 (fprintf_frame): Adjust.
4351 (get_frame_func_if_available): Adjust.
4352 (frame_cleanup_after_sniffer): Adjust.
4353
4354 2020-08-04 Mark Wielaard <mark@klomp.org>
4355
4356 * MAINTAINERS (Write After Approval): Update email address.
4357
4358 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4359
4360 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4361 dynamic_prop::const_val.
4362
4363 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4366 dynamic_prop::kind.
4367
4368 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4369
4370 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4371
4372 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4373
4374 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4375
4376 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4377 Jose E. Marchesi <jose.marchesi@oracle.com>
4378
4379 * configure.tgt: Add entry for bpf-*-*.
4380 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4381 (ALLDEPFILES): Add bpf-tdep.c.
4382 * bpf-tdep.c: New file.
4383 * MAINTAINERS: Add bpf target and maintainer.
4384 * NEWS: Mention the support for the new target.
4385
4386 2020-08-04 Tom de Vries <tdevries@suse.de>
4387
4388 PR symtab/23270
4389 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4390 Error.
4391
4392 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4393
4394 * syscalls/freebsd.xml: Regenerate.
4395
4396 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4397
4398 * syscalls/update-freebsd.sh: Fix usage and year range.
4399
4400 2020-08-03 Tom de Vries <tdevries@suse.de>
4401
4402 PR symtab/26333
4403 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4404 DW_LNE_lo_user/DW_LNE_hi_user range.
4405
4406 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4407
4408 PR ada/26318
4409 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4410 kind.
4411
4412 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4413
4414 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4415
4416 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4417
4418 * breakpoint.c (set_breakpoint_condition): Update the condition
4419 expressions after checking that the input condition string parses
4420 successfully and does not contain junk at the end.
4421
4422 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4423
4424 * breakpoint.c (set_breakpoint_condition): Update the
4425 condition string after parsing the new condition successfully.
4426
4427 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4428
4429 * proc-api.c (_STRUCTURED_PROC): Don't define.
4430 * proc-events.c: Likewise.
4431 * proc-flags.c: Likewise.
4432 * proc-why.c: Likewise.
4433 * procfs.c: Likewise.
4434
4435 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4436 * configure, config.in: Regenerate.
4437
4438 2020-07-30 Tom de Vries <tdevries@suse.de>
4439
4440 PR build/26320
4441 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4442 m_red/m_green/m_blue in a union.
4443
4444 2020-07-29 Tom de Vries <tdevries@suse.de>
4445
4446 PR tdep/26280
4447 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4448
4449 2020-07-28 Tom Tromey <tromey@adacore.com>
4450
4451 PR symtab/26270:
4452 * symtab.h (find_pc_partial_function_sym): Declare.
4453 * cli/cli-cmds.c (disassemble_command): Use
4454 find_pc_partial_function_sym. Check asm_demangle.
4455 * blockframe.c (cache_pc_function_sym): New global.
4456 (cache_pc_function_name): Remove.
4457 (clear_pc_function_cache): Update.
4458 (find_pc_partial_function_sym): New function, from
4459 find_pc_partial_function.
4460 (find_pc_partial_function): Rewrite using
4461 find_pc_partial_function_sym.
4462
4463 2020-07-28 Tom Tromey <tromey@adacore.com>
4464
4465 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4466 help. Add usage.
4467
4468 2020-07-28 Tom Tromey <tromey@adacore.com>
4469
4470 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4471 <DW_OP_GNU_variable_value>: Cast to address type.
4472
4473 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4474
4475 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4476 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4477 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4478 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4479 (nbsd_get_siginfo_type): New.
4480 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4481 (_initialize_nbsd_tdep): New.
4482
4483 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4484
4485 PR binutils/26301
4486 * configure: Regenerated.
4487
4488 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4489
4490 PR binutils/26301
4491 * configure: Regenerated.
4492
4493 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 * python/py-frame.c: Remove 'user-regs.h' include.
4496 (frapy_read_register): Rewrite to make use of
4497 gdbpy_parse_register_id.
4498 * python/py-registers.c (gdbpy_parse_register_id): New function,
4499 moved here from python/py-unwind.c. Updated the return type, and
4500 also accepts register descriptor objects.
4501 * python/py-unwind.c: Remove 'user-regs.h' include.
4502 (pyuw_parse_register_id): Moved to python/py-registers.c.
4503 (unwind_infopy_add_saved_register): Update to use
4504 gdbpy_parse_register_id.
4505 (pending_framepy_read_register): Likewise.
4506 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4507
4508 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4509
4510 * python/py-registers.c: Add 'user-regs.h' include.
4511 (register_descriptor_iter_find): New function.
4512 (register_descriptor_iterator_object_methods): New static global
4513 methods array.
4514 (register_descriptor_iterator_object_type): Add pointer to methods
4515 array.
4516
4517 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4518
4519 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4520 for all architectures on FreeBSD 11.3 and later.
4521
4522 2020-07-27 Tom Tromey <tromey@adacore.com>
4523
4524 * gcore.h (load_corefile): Don't declare.
4525
4526 2020-07-27 Tom de Vries <tdevries@suse.de>
4527
4528 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4529 * config.in: Regenerate.
4530 * configure: Regenerate.
4531
4532 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4533
4534 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4535 ws2tcpip.h. When checking whether socklen_t type is defined, use
4536 ws2tcpip.h if it is available and sys/socket.h isn't.
4537 * configure: Regenerate.
4538 * config.in: Regenerate.
4539
4540 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4541
4542 PR fortran/23051
4543 PR fortran/26139
4544 * valops.c (value_ind): Pass address to
4545 readjust_indirect_value_type.
4546 * value.c (readjust_indirect_value_type): Make parameter
4547 non-const, and add extra address parameter. Resolve original type
4548 before using it.
4549 * value.h (readjust_indirect_value_type): Update function
4550 signature and comment.
4551
4552 2020-07-25 Tom de Vries <tdevries@suse.de>
4553
4554 PR symtab/26243
4555 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4556 entries.
4557
4558 2020-07-24 Aaron Merey <amerey@redhat.com>
4559
4560 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4561 * configure: Rebuild.
4562
4563 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4564
4565 PR corefiles/26294
4566 * corelow.c (_initialize_corelow): Add period to help text
4567 for "maintenance print core-file-backed-mappings".
4568
4569 2020-07-23 Pedro Alves <pedro@palves.net>
4570
4571 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4572 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4573 meanwhile.
4574 * frame.c (frame_cache_generation, get_frame_cache_generation):
4575 New.
4576 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4577 (get_prev_frame_if_no_cycle): On exception, don't touch
4578 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4579 * frame.h (get_frame_cache_generation): Declare.
4580
4581 2020-07-23 Tom de Vries <tdevries@suse.de>
4582
4583 PR tui/26282
4584 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4585 New default constructor.
4586
4587 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4588
4589 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4590 exclude non-statement entries.
4591
4592 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4593
4594 * NEWS (New commands): Mention new command
4595 "maintenance print core-file-backed-mappings".
4596
4597 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4598
4599 * corelow.c (gdbcmd.h): Include.
4600 (core_target::info_proc_mappings): New method.
4601 (get_current_core_target): New function.
4602 (maintenance_print_core_file_backed_mappings): New function.
4603 (_initialize_corelow): Add core-file-backed-mappings to
4604 "maint print" commands.
4605
4606 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4607
4608 * linux-tdep.c (dump_note_entry_p): New function.
4609 (linux_dump_mapping_p_ftype): New typedef.
4610 (linux_find_memory_regions_full): Add new parameter,
4611 should_dump_mapping_p.
4612 (linux_find_memory_regions): Adjust call to
4613 linux_find_memory_regions_full.
4614 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4615 call to linux_find_memory_regions_full.
4616
4617 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4618
4619 * corelow.c (solist.h, unordered_map): Include.
4620 (class core_target): Add field m_core_file_mappings and
4621 method build_file_mappings.
4622 (core_target::core_target): Call build_file_mappings.
4623 (core_target::~core_target): Free memory associated with
4624 m_core_file_mappings.
4625 (core_target::build_file_mappings): New method.
4626 (core_target::xfer_partial): Use m_core_file_mappings
4627 for memory transfers.
4628 * linux-tdep.c (linux_read_core_file_mappings): New
4629 function.
4630 (linux_core_info_proc_mappings): Rewrite to use
4631 linux_read_core_file_mappings.
4632 (linux_init_abi): Register linux_read_core_file_mappings.
4633
4634 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4635
4636 * arch-utils.c (default_read_core_file_mappings): New function.
4637 * arch-utils.c (default_read_core_file_mappings): Declare.
4638 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4639 * gdbarch.h, gdbarch.c: Regenerate.
4640
4641 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4642
4643 PR corefiles/25631
4644 * corelow.c (core_target:xfer_partial): Revise
4645 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4646 case after first checking the stratum beneath the core
4647 target.
4648 (has_all_memory): Return true.
4649 * target.c (raw_memory_xfer_partial): Revise comment
4650 regarding use of has_all_memory.
4651
4652 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4653
4654 * exec.h (section_table_xfer_memory): Revise declaration,
4655 replacing section name parameter with an optional callback
4656 predicate.
4657 * exec.c (section_table_xfer_memory): Likewise.
4658 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4659 of section_table_xfer_memory.
4660
4661 2020-07-22 Tom Tromey <tromey@adacore.com>
4662
4663 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4664 lookup_symbol_search_name.
4665
4666 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4669 redundant local variable.
4670 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4671 reference, not pointer, update code accordingly.
4672
4673 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4674 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4675
4676 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4677 * jit.c (jit_breakpoint_re_set_internal): Use the
4678 `skip_jit_symbol_lookup` field.
4679
4680 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4681 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4682
4683 * jit.c (jit_read_descriptor): Define the descriptor address once,
4684 use twice.
4685 (jit_breakpoint_deleted): Move the declaration of the loop variable
4686 `iter` into the loop header.
4687 (jit_breakpoint_re_set_internal): Move the declaration of the local
4688 variable `objf_data` to the first point of definition.
4689 (jit_event_handler): Move the declaration of local variables
4690 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4691 Rename `objf` to `jited`.
4692
4693 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4694
4695 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4696 Remove.
4697 * jit.c (get_jiter_objfile_data): Update.
4698
4699 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4700 Simon Marchi <simon.marchi@polymtl.ca>
4701
4702 * jit.c (struct jit_program_space_data): Remove.
4703 (jit_program_space_key): Remove.
4704 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4705 stuff.
4706 (get_jit_program_space_data): Remove.
4707 (jit_breakpoint_deleted): Iterate on all of the program space's
4708 objfiles.
4709 (jit_inferior_init): Likewise.
4710 (jit_breakpoint_re_set_internal): Likewise. Also change return
4711 type to void.
4712 (jit_breakpoint_re_set): Pass current_program_space to
4713 jit_breakpoint_re_set_internal.
4714
4715 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4716
4717 * jit.h (struct jiter_objfile_data) <cached_code_address,
4718 jit_breakpoint>: Move to here from ...
4719 * jit.c (jit_program_space_data): ... here.
4720 (jiter_objfile_data::~jiter_objfile_data): Update.
4721 (jit_breakpoint_deleted): Update.
4722 (jit_breakpoint_re_set_internal): Update.
4723
4724 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4727 checks.
4728 (jit_read_descriptor): Remove NULL check.
4729 (jit_event_handler): Add an assertion.
4730
4731 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4732
4733 * jit.h (struct jit_objfile_data): Split into...
4734 (struct jiter_objfile_data): ... this ...
4735 (struct jited_objfile_data): ... and this.
4736 * objfiles.h (struct objfile) <jit_data>: Remove.
4737 <jiter_data, jited_data>: New fields.
4738 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4739 (jiter_objfile_data::~jiter_objfile_data): ... this.
4740 (get_jit_objfile_data): Rename to ...
4741 (get_jiter_objfile_data): ... this.
4742 (add_objfile_entry): Update.
4743 (jit_read_descriptor): Use get_jiter_objfile_data.
4744 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4745 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4746 (jit_inferior_exit_hook): Use objfile's jited_data field.
4747
4748 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * jit.h: Forward-declare `struct minimal_symbol`.
4751 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4752 constructor, destructor, and an objfile* field.
4753 * jit.c (jit_objfile_data): Remove.
4754 (struct jit_objfile_data): Migrate from here to jit.h.
4755 (jit_objfile_data::~jit_objfile_data): New destructor
4756 implementation with code moved from free_objfile_data.
4757 (free_objfile_data): Delete.
4758 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4759 (jit_find_objf_with_entry_addr): Ditto.
4760 (jit_inferior_exit_hook): Ditto.
4761 (_initialize_jit): Remove the call to
4762 register_objfile_data_with_cleanup.
4763 * objfiles.h (struct objfile) <jit_data>: New field.
4764
4765 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4766
4767 * jit.h: Forward-declare `struct objfile`.
4768 (jit_event_handler): Add a second parameter, the JITer objfile.
4769 * jit.c (jit_read_descriptor): Change the signature to take the
4770 JITer objfile as an argument instead of the jit_program_space_data.
4771 (jit_inferior_init): Update the call to jit_read_descriptor.
4772 (jit_event_handler): Use the new JITer objfile argument when calling
4773 jit_read_descriptor.
4774 * breakpoint.c (handle_jit_event): Update the call to
4775 jit_event_handler to pass the JITer objfile.
4776
4777 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4778
4779 * gdbarch.c: Regenerate.
4780 * gdbarch.h: Regenerate.
4781 * gdbarch.sh (handle_segmentation_fault): Remove method.
4782 * infrun.c (handle_segmentation_fault): Remove.
4783 (print_signal_received_reason): Remove call to
4784 handle_segmentation_fault.
4785
4786 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4787
4788 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4789 Rename to sparc64_linux_report_signal_info and add siggnal
4790 argument.
4791 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4792 instead of sparc64_linux_handle_segmentation_fault.
4793
4794 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4795
4796 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4797 i386_linux_report_signal_info instead of
4798 i386_linux_handle_segmentation_fault.
4799 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4800 to i386_linux_report_signal_info and add siggnal argument.
4801 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4802 of i386_linux_handle_segmentation_fault.
4803 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4804 to i386_linux_report_signal_info and add siggnal argument.
4805
4806 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4807
4808 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4809 hook if present.
4810
4811 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4812
4813 * gdbarch.c: Regenerate.
4814 * gdbarch.h: Regenerate.
4815 * gdbarch.sh (report_signal_info): New method.
4816 * infrun.c (print_signal_received_reason): Invoke gdbarch
4817 report_signal_info hook if present.
4818
4819 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * python/py-registers.c : Add 'unordered_map' include.
4822 (gdbpy_new_reggroup): Renamed to...
4823 (gdbpy_get_reggroup): ...this. Update to only create register
4824 group descriptors when needed.
4825 (gdbpy_reggroup_iter_next): Update.
4826
4827 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4828
4829 * python/py-registers.c (gdbpy_register_object_data): New static
4830 global.
4831 (gdbpy_register_object_data_init): New function.
4832 (gdbpy_new_register_descriptor): Renamed to...
4833 (gdbpy_get_register_descriptor): ...this, and update to reuse
4834 existing register descriptors where possible.
4835 (gdbpy_register_descriptor_iter_next): Update.
4836 (gdbpy_initialize_registers): Register new gdbarch data.
4837
4838 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4839
4840 * linux-nat.c (stopped_pids): Make static.
4841
4842 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4843
4844 PR ada/26235
4845 * gdbtypes.c (ada_discrete_type_low_bound,
4846 ada_discrete_type_high_bound): Handle undefined bounds.
4847
4848 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4849
4850 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4851 declaration.
4852 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4853 function.
4854
4855 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4856
4857 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4858 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4859 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4860 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4861 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4862 method.
4863
4864 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4865
4866 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4867 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4868 which are deprecated in Guile 3.0.
4869 * configure.ac (try_guile_versions): Add "guile-3.0".
4870 * configure (try_guile_versions): Regenerate.
4871 * NEWS: Update entry.
4872
4873 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4874 Doug Evans <dje@google.com>
4875
4876 PR gdb/21104
4877 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4878 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4879 USING_GUILE_BEFORE_2_2.
4880 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4881 Change type to 'scm_t_port_type *'.
4882 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4883 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4884 parameter and honor it. Update callers.
4885 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4886 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4887 functions.
4888 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4889 USING_GUILE_BEFORE_2_2.
4890 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4891 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4892 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4893 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4894 and 'SCM_PORT_TYPE'.
4895 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4896 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4897 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4898 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4899 [!USING_GUILE_BEFORE_2_2]: New functions.
4900 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4901 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4902 'gdbscm_memory_port_read'.
4903 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4904 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4905 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4906 function.
4907 (ioscm_init_memory_port): Remove.
4908 (ioscm_init_memory_port_stream): New function
4909 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4910 function.
4911 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4912 Return scm_from_uint (0).
4913 (gdbscm_set_memory_port_read_buffer_size_x)
4914 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4915 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4916 Return scm_from_uint (0).
4917 (gdbscm_set_memory_port_write_buffer_size_x)
4918 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4919 * configure.ac (try_guile_versions): Add "guile-2.2".
4920 * configure: Regenerate.
4921 * NEWS: Add entry.
4922
4923 2020-07-18 Tom Tromey <tom@tromey.com>
4924
4925 * linux-nat.c (linux_multi_process): Remove.
4926 (linux_nat_target::supports_multi_process): Return true.
4927
4928 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4931 (riscv_lookup_target_description): Return pointer out of
4932 unique_ptr.
4933 * target-descriptions.c (allocate_target_description): Add
4934 comment.
4935 (target_desc_deleter::operator()): Likewise.
4936 * target-descriptions.h (struct target_desc_deleter): Moved to
4937 gdbsupport/tdesc.h.
4938 (target_desc_up): Likewise.
4939
4940 2020-07-17 Tom Tromey <tromey@adacore.com>
4941
4942 * linux-nat.c (linux_nat_target::supports_non_stop)
4943 (linux_nat_target::always_non_stop_p): Use "true".
4944 (linux_nat_target::supports_disable_randomization): Use "true" and
4945 "false".
4946
4947 2020-07-16 Caroline Tice <cmtice@google.com>
4948
4949 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4950 (RNGLIST_HEADER_SIZE64): New constant definition.
4951 (struct dwop_section_names): Add rnglists_dwo.
4952 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4953 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4954 (struct dwo_sections): Add rnglists field.
4955 (read_attribut_reprocess): Add tag parameter.
4956 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4957 (cu_debug_rnglists_section): New function (decl & definition).
4958 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4959 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4960 die whose range is being checked; get rnglist section from
4961 cu_debug_rnglists_section, to get from either objfile or dwo file as
4962 appropriate. Add cases for DW_RLE_base_addressx,
4963 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4964 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4965 test inside if-condition and updating complaint message.
4966 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4967 dwarf2_rnglists_process.
4968 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4969 dwarf2_ranges_process.
4970 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4971 need_ranges_base and update comment appropriately. Also pass die tag
4972 to dwarf2_ranges_read.
4973 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4974 need_ranges_base and update comment appropriately. Also pass die tag
4975 to dwarf2_ranges_process.
4976 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4977 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4978 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4979 need_ranges_base and update comment appropriately. Also pass die tag
4980 to read_attribute_reprocess and dwarf2_ranges_read.
4981 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4982 and update function comment appropriately.
4983 (read_loclist_index): Call read_loclists_rnglists_header instead of
4984 read_loclist_header.
4985 (read_rnglist_index): New function.
4986 (read_attribute_reprocess): Add tag parameter. Add code for
4987 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4988 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4989
4990 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4993 being resolved.
4994
4995 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4996
4997 * arch-utils.c (show_architecture): Update formatting of messages.
4998
4999 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * gdbtypes.h (struct type) <bounds>: Handle array and string
5002 types.
5003 * ada-lang.c (assign_aggregate): Use type::bounds on
5004 array/string type.
5005 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5006 * c-varobj.c (c_number_of_children): Likewise.
5007 (c_describe_child): Likewise.
5008 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5009 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5010 (f_type_print_base): Likewise.
5011 * f-valprint.c (f77_array_offset_tbl): Likewise.
5012 (f77_get_upperbound): Likewise.
5013 (f77_print_array_1): Likewise.
5014 * guile/scm-type.c (gdbscm_type_range): Likewise.
5015 * m2-typeprint.c (m2_array): Likewise.
5016 (m2_is_long_set_of_type): Likewise.
5017 * m2-valprint.c (get_long_set_bounds): Likewise.
5018 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5019 * python/py-type.c (typy_range): Likewise.
5020 * rust-lang.c (rust_internal_print_type): Likewise.
5021 * type-stack.c (type_stack::follow_types): Likewise.
5022 * valarith.c (value_subscripted_rvalue): Likewise.
5023 * valops.c (value_cast): Likewise.
5024
5025 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5028 callers to use the equivalent accessor methods.
5029
5030 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5033 (struct type) <bit_stride>: New method.
5034 (TYPE_BIT_STRIDE): Remove.
5035 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5036
5037 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5040 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5041 callers to use the equivalent accessor methods instead.
5042
5043 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5046 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5047 callers to use the equivalent accessor methods instead.
5048
5049 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5052 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5053 to use dynamic_prop::kind.
5054
5055 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5058 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5059 to get the bound property's kind and check against
5060 PROP_UNDEFINED.
5061
5062 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5065 all callers to use type::range_bounds followed by
5066 dynamic_prop::{low,high}.
5067
5068 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5071 const_val, set_const_val, baton, set_locexpr, set_loclist,
5072 set_addr_offset, variant_parts, set_variant_parts,
5073 original_type, set_original_type>: New methods.
5074 <kind>: Rename to...
5075 <m_kind>: ... this. Update all users to use the new methods
5076 instead.
5077 <data>: Rename to...
5078 <m_data>: ... this. Update all users to use the new methods
5079 instead.
5080
5081 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * gdbtypes.c (get_discrete_bounds): Return failure if
5084 the range type's bounds are not both defined and constant
5085 values.
5086 (get_array_bounds): Update comment. Remove undefined bound check.
5087
5088 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5091 the type::bounds method directly.
5092
5093 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5096 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5097 are used to set the range type's bounds to use set_bounds.
5098
5099 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5100
5101 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5102
5103 2020-07-10 Pedro Alves <pedro@palves.net>
5104
5105 * gdbthread.h (inferior_ref): Define.
5106 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5107 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5108 * thread.c
5109 (scoped_restore_current_thread::restore):
5110 Adjust to gdb::ref_ptr.
5111 (scoped_restore_current_thread::~scoped_restore_current_thread):
5112 Remove manual decref handling.
5113 (scoped_restore_current_thread::scoped_restore_current_thread):
5114 Adjust to use
5115 inferior_ref::new_reference/thread_info_ref::new_reference.
5116 Incref the thread before calling get_frame_id instead of after.
5117 Let TARGET_CLOSE_ERROR propagate.
5118
5119 2020-07-10 Pedro Alves <pedro@palves.net>
5120
5121 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5122 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5123 NOT_AVAILABLE_ERROR.
5124 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5125 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5126
5127 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5128 Pedro Alves <pedro@palves.net>
5129
5130 PR gdb/26199
5131 * infrun.c (threads_are_resumed_pending_p): Delete.
5132 (do_target_wait): Remove threads_are_executing and
5133 threads_are_resumed_pending_p checks from the inferior_matches
5134 lambda. Update comments.
5135
5136 2020-07-10 Pedro Alves <pedro@palves.net>
5137
5138 PR gdb/26199
5139 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5140 executing threads.
5141
5142 2020-07-10 Pedro Alves <pedro@palves.net>
5143
5144 PR gdb/26199
5145 * infrun.c (handle_no_resumed): Handle multiple targets.
5146
5147 2020-07-10 Pedro Alves <pedro@palves.net>
5148
5149 PR gdb/26199
5150 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5151 target_is_async_p.
5152
5153 2020-07-10 Pedro Alves <pedro@palves.net>
5154
5155 PR gdb/26199
5156 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5157 threads, not all threads.
5158
5159 2020-07-10 Pedro Alves <pedro@palves.net>
5160
5161 PR gdb/26199
5162 * remote.c (remote_target::open_1): Pass remote target pointer as
5163 data to create_async_event_handler.
5164 (remote_async_inferior_event_handler): Mark async event handler
5165 before returning if the remote target still has either pending
5166 events or unacknowledged notifications.
5167
5168 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5169
5170 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5171 declaration.
5172 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5173 function.
5174
5175 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5176
5177 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5178 inferior_ptid.
5179
5180 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5181
5182 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5183 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5184 AT_FREEBSD_PS_STRINGS.
5185
5186 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5187
5188 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5189 of debugfile path on Windows.
5190
5191 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5192
5193 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5194 argument to 'data'.
5195
5196 2020-07-08 Tom Tromey <tromey@adacore.com>
5197
5198 * ada-lang.c (ada_exception_message_1): Use read_memory.
5199
5200 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 PR python/22748
5203 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5204 special handling for inline frames.
5205 * findvar.c (value_of_register_lazy): Skip inline frames when
5206 creating lazy register values.
5207 * frame.c (frame_id_computed_p): Delete definition.
5208 * frame.h (frame_id_computed_p): Delete declaration.
5209
5210 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * NEWS: Mention additions to Python API.
5213 * python/py-arch.c (archpy_register_groups): New function.
5214 (arch_object_methods): Add 'register_groups' method.
5215 * python/py-registers.c (reggroup_iterator_object): New struct.
5216 (reggroup_object): New struct.
5217 (gdbpy_new_reggroup): New function.
5218 (gdbpy_reggroup_to_string): New function.
5219 (gdbpy_reggroup_name): New function.
5220 (gdbpy_reggroup_iter): New function.
5221 (gdbpy_reggroup_iter_next): New function.
5222 (gdbpy_new_reggroup_iterator): New function
5223 (gdbpy_initialize_registers): Register new types.
5224 (reggroup_iterator_object_type): Define new Python type.
5225 (gdbpy_reggroup_getset): New static global.
5226 (reggroup_object_type): Define new Python type.
5227 * python/python-internal.h
5228
5229 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5230
5231 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5232 * python/py-arch.c (archpy_registers): New function.
5233 (arch_object_methods): Add 'registers' method.
5234 * python/py-registers.c: New file.
5235 * python/python-internal.h
5236 (gdbpy_new_register_descriptor_iterator): Declare.
5237 (gdbpy_initialize_registers): Declare.
5238 * python/python.c (do_start_initialization): Call
5239 gdbpy_initialize_registers.
5240 * NEWS: Mention additions to the Python API.
5241
5242 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * NEWS: Mention new Python API method.
5245 * python/py-unwind.c (pending_framepy_architecture): New function.
5246 (pending_frame_object_methods): Add architecture method.
5247
5248 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * gdbarch.c: Regenerate.
5251 * gdbarch.h: Regenerate.
5252 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5253 (gdbarch_data): Use internal_error for the case where
5254 deprecated_set_gdbarch_data was originally needed.
5255 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5256 and use passed in obstack.
5257 (libunwind_frame_set_descr): Should no longer get back NULL from
5258 gdbarch_data.
5259 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5260 type.
5261 * user-regs.c (user_regs_init): Update parameters, and use passed
5262 in obstack.
5263 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5264 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5265
5266 2020-07-06 Tom de Vries <tdevries@suse.de>
5267
5268 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5269 End-Of-Sequence in lte_is_less_than.
5270 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5271 "gdb: Don't reorder line table entries too much when sorting".
5272
5273 2020-07-06 Tom de Vries <tdevries@suse.de>
5274
5275 PR tui/26205
5276 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5277
5278 2020-07-05 Tom de Vries <tdevries@suse.de>
5279
5280 PR build/26187
5281 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5282 std::uncaught_exceptions instead of deprecated
5283 std::uncaught_exception.
5284
5285 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5286
5287 * macroexp.h (macro_stringify): Return
5288 gdb::unique_xmalloc_ptr<char>.
5289 * macroexp.c (macro_stringify): Likewise.
5290 * macrotab.c (fixup_definition): Update.
5291
5292 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5293
5294 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5295 (lex_one_token): Update.
5296 * macroexp.c (struct macro_buffer) <release>: Return
5297 gdb::unique_xmalloc_ptr<char>.
5298 (macro_stringify): Update.
5299 (macro_expand): Update.
5300 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5301 * macroexp.h (macro_expand_next): Likewise.
5302
5303 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5304
5305 * macroexp.h (macro_lookup_ftype): Remove.
5306 (macro_expand, macro_expand_once, macro_expand_next): Remove
5307 lookup function parameters, add scope parameter.
5308 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5309 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5310 * macroscope.h (standard_macro_lookup): Change parameter type
5311 to macro_scope.
5312 * macroscope.c (standard_macro_lookup): Likewise.
5313 * c-exp.y (lex_one_token): Update.
5314 * macrocmd.c (macro_expand_command): Likewise.
5315 (macro_expand_once_command): Likewise.
5316
5317 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5318
5319 * inf-loop.c (inferior_event_handler): Remove client_data param.
5320 * inf-loop.h (inferior_event_handler): Likewise.
5321 * infcmd.c (step_1): Adjust.
5322 * infrun.c (proceed): Adjust.
5323 (fetch_inferior_event): Remove client_data param.
5324 (infrun_async_inferior_event_handler): Adjust.
5325 * infrun.h (fetch_inferior_event): Remove `void *` param.
5326 * linux-nat.c (handle_target_event): Adjust.
5327 * record-btrace.c (record_btrace_handle_async_inferior_event):
5328 Adjust.
5329 * record-full.c (record_full_async_inferior_event_handler):
5330 Adjust.
5331 * remote.c (remote_async_inferior_event_handler): Adjust.
5332
5333 2020-07-01 Tom Tromey <tom@tromey.com>
5334
5335 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5336 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5337
5338 2020-07-01 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5341 tui_gen_win_info.
5342 (tui_win_info::make_window): Merge with
5343 tui_gen_win_info::make_window.
5344 (tui_win_info::make_visible): Move from tui_gen_win_info.
5345 * tui/tui-win.c (tui_win_info::max_width): Move from
5346 tui_gen_win_info.
5347 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5348 type.
5349 <window_factory>: Likewise.
5350 * tui/tui-layout.c (tui_win_info::resize): Move from
5351 tui_gen_win_info.
5352 (make_standard_window): Change return type.
5353 (get_locator_window, tui_get_window_by_name): Likewise.
5354 (tui_layout_window::apply): Remove a cast.
5355 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5356 (struct tui_win_info): Merge with tui_gen_win_info.
5357 (struct tui_gen_win_info): Remove.
5358
5359 2020-07-01 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-stack.h (struct tui_locator_window): Derive from
5362 tui_win_info.
5363 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5364 <can_box>: New method.
5365
5366 2020-07-01 Tom Tromey <tom@tromey.com>
5367
5368 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5369
5370 2020-07-01 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-regs.c (tui_data_window::display_registers_from)
5373 (tui_data_window::display_registers_from)
5374 (tui_data_window::first_data_item_displayed)
5375 (tui_data_window::delete_data_content_windows): Update.
5376 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5377 Remove.
5378 (tui_data_window::check_register_values): Update.
5379 (tui_data_item_window::rerender): Add parameters. Update.
5380 (tui_data_item_window::refresh_window): Remove.
5381 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5382 virtual.
5383 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5384 tui_gen_win_info.
5385 <refresh_window, max_height, min_height>: Remove.
5386 <rerender>: Add parameters.
5387 <x, y, visible>: New members.
5388 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5389 <m_item_width>: New member.
5390
5391 2020-07-01 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-regs.c (tui_data_window::show_register_group)
5394 (tui_data_window::check_register_values): Update.
5395 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5396 from item_no.
5397
5398 2020-07-01 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5401 useless "if".
5402
5403 2020-07-01 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5406 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5407
5408 2020-07-01 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5411 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5412 (struct tui_line_or_address): Move from tui-data.h.
5413 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5414 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5415 (tui_cmd_window, tui_source_window_base, tui_source_window)
5416 (tui_disasm_window): Don't declare.
5417 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5418 to tui-winsource.h.
5419 (SINGLE_KEY): Move to tui-stack.c.
5420
5421 2020-07-01 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5424 std::string.
5425 * tui/tui-regs.c (class tab_expansion_file): New.
5426 (tab_expansion_file::write): New method.
5427 (tui_register_format): Change return type. Use
5428 tab_expansion_file.
5429 (tui_get_register, tui_data_window::display_registers_from)
5430 (tui_data_item_window::rerender): Update.
5431 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5432 * tui/tui-io.c (tui_expand_tabs): Remove.
5433
5434 2020-07-01 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5437
5438 2020-07-01 Fangrui Song <maskray@google.com>
5439
5440 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5441
5442 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5443
5444 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5445 forms for DW_AT_associated and DW_AT_allocated attributes,
5446 which is already checked in function attr_to_dynamic_prop.
5447
5448 2020-06-30 Tom Tromey <tromey@adacore.com>
5449
5450 * dwarf2/read.c (quirk_rust_enum): Correctly call
5451 alloc_rust_variant for default-less enum.
5452
5453 2020-06-30 Tom Tromey <tromey@adacore.com>
5454
5455 PR build/26183:
5456 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5457 gdb::to_string.
5458
5459 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5460
5461 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5462 * gdbarch.h: Re-generate.
5463
5464 2020-06-28 Tom Tromey <tom@tromey.com>
5465
5466 * command.h (cmd_types): Remove.
5467 (cmd_type): Don't declare.
5468 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5469 typedef.
5470 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5471 * cli/cli-decode.c (cmd_type): Remove.
5472
5473 2020-06-27 Pedro Alves <palves@redhat.com>
5474
5475 * fork-child.c (prefork_hook): Adjust.
5476 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5477 Delete.
5478 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5479 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5480 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5481 Remove declarations.
5482 (struct inferior) <set_tty, tty>: New methods.
5483 (struct inferior) <terminal>: Rename to ...
5484 (struct inferior) <m_terminal>: ... this and make private.
5485 * main.c (captured_main_1): Adjust.
5486 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5487 (mi_cmd_inferior_tty_show): Adjust.
5488 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5489 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5490
5491 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5492
5493 * configure.ac: Add --enable-libctf: handle --disable-static
5494 properly.
5495 * acinclude.m4: sinclude ../config/enable.m4.
5496 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5497 (LIBCTF): Substitute in.
5498 (CTF_DEPS): New, likewise.
5499 (CLIBS): libctf needs symbols from libbfd: move earlier.
5500 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5501 flags.
5502 * ctfread.c: Surround in ENABLE_LIBCTF.
5503 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5504 * configure: Regenerate.
5505 * config.in: Likewise.
5506
5507 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5510
5511 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5512
5513 * inferior.h (struct inferior) <terminal>: Change type to
5514 gdb::unique_xmalloc_ptr<char>.
5515 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5516 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5517 field, adjust to unique pointer.
5518 (get_inferior_io_terminal): Adjust to unique pointer.
5519
5520 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5521
5522 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5523 registers, not just the known core set of registers.
5524
5525 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5528 fflags, frm, and fcsr registers.
5529 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5530 restore groups.
5531 (riscv_tdesc_unknown_reg): New function.
5532 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5533 tdesc_use_registers.
5534 * riscv-tdep.h (struct gdbarch_tdep): Add
5535 unknown_csrs_first_regnum, unknown_csrs_count,
5536 duplicate_fflags_regnum, duplicate_frm_regnum, and
5537 duplicate_fcsr_regnum fields.
5538
5539 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5542 callback, use the callback (when not null) to help number unknown
5543 registers.
5544 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5545 (tdesc_use_registers): Add extra parameter to declaration.
5546
5547 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5550 in the file.
5551 (class riscv_pending_register_alias): Likewise.
5552 (riscv_register_feature::register_info): Change 'required_p' field
5553 to 'required', and change its type. Add 'check' member function.
5554 (riscv_register_feature::register_info::check): Define new member
5555 function.
5556 (riscv_xreg_feature): Change initialisation of 'required' field.
5557 (riscv_freg_feature): Likewise.
5558 (riscv_virtual_feature): Likewise.
5559 (riscv_csr_feature): Likewise.
5560 (riscv_check_tdesc_feature): Take extra parameter, the csr
5561 tdesc_feature, rewrite the function to use the new
5562 riscv_register_feature::register_info::check function.
5563 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5564
5565 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5566
5567 * features/Makefile: Remove all references to the deleted files
5568 below.
5569 * features/riscv/32bit-csr.c: Deleted.
5570 * features/riscv/32bit-csr.xml: Deleted.
5571 * features/riscv/64bit-csr.c: Deleted.
5572 * features/riscv/64bit-csr.xml: Deleted.
5573 * features/riscv/rebuild-csr-xml.sh: Deleted.
5574
5575 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5576
5577 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5578 whitespace error for declaration of names member variable.
5579 (struct riscv_register_feature): Add new prefer_first_name member
5580 variable, and fix whitespace error in declaration of registers.
5581 (riscv_xreg_feature): Initialize prefer_first_name field.
5582 (riscv_freg_feature): Likewise.
5583 (riscv_virtual_feature): Likewise.
5584 (riscv_csr_feature): Likewise.
5585 (riscv_register_name): Expand on comments. Remove register name
5586 modifications for CSR and virtual registers.
5587
5588 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5591 errors.
5592
5593 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5594
5595 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5596 riscv-opc.h.
5597 (class riscv_pending_register_alias): New class.
5598 (riscv_check_tdesc_feature): Take vector of pending aliases and
5599 populate it as appropriate.
5600 (riscv_setup_register_aliases): Delete.
5601 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5602 to riscv_check_tdesc_feature in all cases. Use the vector to
5603 create the register aliases.
5604
5605 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5606
5607 * sol2-tdep.c (sol2_static_transform_name): Remove.
5608 (sol2_init_abi): Don't register it.
5609 * gdbarch.sh (static_transform_name): Remove.
5610 * gdbarch.c, gdbarch.h: Regenerate.
5611
5612 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5613 gdbarch_static_transform_name.
5614 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5615 * stabsread.c (define_symbol) <'X'>: Remove.
5616 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5617 handling.
5618 <'V'>: Likewise.
5619 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5620 <'S'>: Remove call to gdbarch_static_transform_name.
5621
5622 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5623
5624 * procfs.c (procfs_pre_trace): New function.
5625 (procfs_target::create_inferior): Pass it to fork_inferior.
5626
5627 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5628
5629 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5630 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5631 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5632 sol2-tdep.o, sparc-sol2-tdep.o.
5633 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5634 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5635 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5636 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5637
5638 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5639
5640 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5641 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5642 Call sol2_init_abi.
5643 Remove calls to set_gdbarch_skip_solib_resolver,
5644 set_gdbarch_core_pid_to_str.
5645 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5646 (i386_sol2_static_transform_name): Remove.
5647 (i386_sol2_init_abi): Call sol2_init_abi.
5648 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5649 set_gdbarch_static_transform_name,
5650 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5651 Use sol2_sigtramp_p.
5652 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5653 (sol2_sigtramp_p): New function.
5654 (sol2_static_transform_name): New function.
5655 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5656 (sol2_init_abi): New function.
5657 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5658 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5659 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5660 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5661 (sparc_sol2_static_transform_name): Remove.
5662 (sparc32_sol2_init_abi): Call sol2_init_abi.
5663 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5664 set_gdbarch_static_transform_name,
5665 set_gdbarch_skip_solib_resolver,
5666 set_gdbarch_core_pid_to_str.
5667 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5668 (sparc_sol2_static_transform_name): Remove
5669 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5670 call sol2_sigtramp_p.
5671 (sparc64_sol2_init_abi): Call sol2_init_abi.
5672 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5673 set_gdbarch_static_transform_name,
5674 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5675
5676 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5677
5678 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5679 * exec.c (validate_exec_file): If from_tty, set both
5680 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5681 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5682 and from_tty, unconditionally ask a confirmation.
5683
5684 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5685
5686 * target-descriptions.c (tdesc_architecture_name): Protect against
5687 NULL pointer dereference.
5688 (maint_print_xml_tdesc_cmd): New function.
5689 (_initialize_target_descriptions): Register new 'maint print
5690 xml-tdesc' command and give it the filename completer.
5691 * NEWS: Mention new 'maint print xml-tdesc' command.
5692
5693 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * target-descriptions.c (class tdesc_compatible_info): New class.
5696 (struct target_desc): Change type of compatible vector.
5697 (tdesc_compatible_p): Update for change in type of
5698 target_desc::compatible.
5699 (tdesc_compatible_info_list): New function.
5700 (tdesc_compatible_info_arch_name): New function.
5701 (tdesc_add_compatible): Update for change in type of
5702 target_desc::compatible.
5703 (print_c_tdesc::visit_pre): Likewise.
5704
5705 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5706
5707 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5708 whitespace to underscore.
5709 (maint_print_c_tdesc_cmd): Use fake filename for target
5710 descriptions that came from the target.
5711 (_initialize_target_descriptions): Add filename command completion
5712 for 'maint print c-tdesc'.
5713
5714 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5715
5716 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5717 lines.
5718
5719 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5720
5721 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5722 lines.
5723 (dwarf2_find_location_expression): Likewise.
5724 (call_site_parameter_matches): Likewise.
5725 (dwarf2_compile_expr_to_ax): Likewise.
5726 (disassemble_dwarf_expression): Likewise.
5727 (loclist_describe_location): Likewise.
5728
5729 2020-06-23 Pedro Alves <palves@redhat.com>
5730
5731 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5732 progspace-and-thread.h. Include scoped-mock-context.h instead.
5733 (register_to_value_test): Use scoped_mock_context.
5734 * regcache.c: Include "scoped-mock-context.h".
5735 (cooked_read_test): Don't error out if a target is already pushed.
5736 Use scoped_mock_context. Adjust.
5737 * scoped-mock-context.h: New file.
5738
5739 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5742 initializer.
5743 (ada_language::is_string_type_p): New member function.
5744 * c-lang.c (c_language_data): Delete la_is_string_type_p
5745 initializer.
5746 (cplus_language_data): Likewise.
5747 (asm_language_data): Likewise.
5748 (minimal_language_data): Likewise.
5749 * d-lang.c (d_language_data): Likewise.
5750 * f-lang.c (f_is_string_type_p): Delete function, implementation
5751 moved to f_language::is_string_type_p.
5752 (f_language_data): Delete la_is_string_type_p initializer.
5753 (f_language::is_string_type_p): New member function,
5754 implementation from f_is_string_type_p.
5755 * go-lang.c (go_is_string_type_p): Delete function, implementation
5756 moved to go_language::is_string_type_p.
5757 (go_language_data): Delete la_is_string_type_p initializer.
5758 (go_language::is_string_type_p): New member function,
5759 implementation from go_is_string_type_p.
5760 * language.c (language_defn::is_string_type_p): Define new member
5761 function.
5762 (default_is_string_type_p): Make static, add comment copied from
5763 header file.
5764 (unknown_language_data): Delete la_is_string_type_p initializer.
5765 (unknown_language::is_string_type_p): New member function.
5766 (auto_language_data): Delete la_is_string_type_p initializer.
5767 (auto_language::is_string_type_p): New member function.
5768 * language.h (language_data): Delete la_is_string_type_p field.
5769 (language_defn::is_string_type_p): Declare new function.
5770 (default_is_string_type_p): Delete desclaration, move comment to
5771 definition.
5772 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5773 moved to m2_language::is_string_type_p.
5774 (m2_language_data): Delete la_is_string_type_p initializer.
5775 (m2_language::is_string_type_p): New member function,
5776 implementation from m2_is_string_type_p.
5777 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5778 initializer.
5779 * opencl-lang.c (opencl_language_data): Likewise.
5780 * p-lang.c (pascal_is_string_type_p): Delete function,
5781 implementation moved to pascal_language::is_string_type_p.
5782 (pascal_language_data): Delete la_is_string_type_p initializer.
5783 (pascal_language::is_string_type_p): New member function,
5784 implementation from pascal_is_string_type_p.
5785 * rust-lang.c (rust_is_string_type_p): Delete function,
5786 implementation moved to rust_language::is_string_type_p.
5787 (rust_language_data): Delete la_is_string_type_p initializer.
5788 (rust_language::is_string_type_p): New member function,
5789 implementation from rust_is_string_type_p.
5790 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5791 is_string_type_p.
5792
5793 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5794
5795 * ada-lang.c (ada_language_data): Delete la_print_typedef
5796 initializer.
5797 (ada_language::print_typedef): New member function.
5798 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5799 (cplus_language_data): Likewise.
5800 (asm_language_data): Likewise.
5801 (minimal_language_data): Likewise.
5802 * d-lang.c (d_language_data): Likewise.
5803 * f-lang.c (f_language_data): Likewise.
5804 (f_language::print_typedef): New member function.
5805 * go-lang.c (go_language_data): Delete la_print_typedef
5806 initializer.
5807 * language.c (language_defn::print_typedef): Define member
5808 function.
5809 (unknown_language_data): Delete la_print_typedef initializer.
5810 (unknown_language::print_typedef): New member function.
5811 (auto_language_data): Delete la_print_typedef initializer.
5812 (auto_language::print_typedef): New member function.
5813 * language.h (language_data): Delete la_print_typedef field.
5814 (language_defn::print_typedef): Declare new member function.
5815 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5816 (default_print_typedef): Delete declaration.
5817 * m2-lang.c (m2_language_data): Delete la_print_typedef
5818 initializer.
5819 (m2_language::print_typedef): New member function.
5820 * objc-lang.c (objc_language_data): Delete la_print_typedef
5821 initializer.
5822 * opencl-lang.c (opencl_language_data): Likewise.
5823 * p-lang.c (pascal_language_data): Likewise.
5824 (pascal_language::print_typedef): New member function.
5825 * rust-lang.c (rust_print_typedef): Delete function,
5826 implementation moved to rust_language::print_typedef.
5827 (rust_language): Delete la_print_typedef initializer.
5828 (rust_language::print_typedef): New member function,
5829 implementation from rust_print_typedef.
5830 * typeprint.c (default_print_typedef): Delete.
5831
5832 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5833
5834 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5835 (ada_language::printstr): New member function.
5836 * c-lang.c (c_language_data): Delete la_printstr initializer.
5837 (cplus_language_data): Likewise.
5838 (asm_language_data): Likewise.
5839 (minimal_language_data): Likewise.
5840 * d-lang.c (d_language_data): Likewise.
5841 * f-lang.c (f_printstr): Rename to f_language::printstr.
5842 (f_language_data): Delete la_printstr initializer.
5843 (f_language::printstr): New member function, implementation from
5844 f_printstr.
5845 * go-lang.c (go_language_data): Delete la_printstr initializer.
5846 * language.c (language_defn::printstr): Define new member
5847 function.
5848 (unk_lang_printstr): Delete.
5849 (unknown_language_data): Delete la_printstr initializer.
5850 (unknown_language::printstr): New member function.
5851 (auto_language_data): Delete la_printstr initializer.
5852 (auto_language::printstr): New member function.
5853 * language.h (language_data): Delete la_printstr field.
5854 (language_defn::printstr): Declare new member function.
5855 (LA_PRINT_STRING): Update call to printstr.
5856 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5857 (m2_language_data): Delete la_printstr initializer.
5858 (m2_language::printstr): New member function, implementation from
5859 m2_printstr.
5860 * objc-lang.c (objc_language_data): Delete la_printstr
5861 initializer.
5862 * opencl-lang.c (opencl_language_data): Likewise.
5863 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5864 (pascal_language_data): Delete la_printstr initializer.
5865 (pascal_language::printstr): New member function, implementation
5866 from pascal_printstr.
5867 * p-lang.h (pascal_printstr): Delete declaration.
5868 * rust-lang.c (rust_printstr): Update header comment.
5869 (rust_language_data): Delete la_printstr initializer.
5870 (rust_language::printstr): New member function.
5871
5872 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5873
5874 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5875 (ada_language::printchar): New member function.
5876 * c-lang.c (c_language_data): Delete la_printchar initializer.
5877 (cplus_language_data): Likewise.
5878 (asm_language_data): Likewise.
5879 (minimal_language_data): Likewise.
5880 * d-lang.c (d_language_data): Likewise.
5881 * f-lang.c (f_printchar): Rename to f_language::printchar.
5882 (f_language_data): Delete la_printchar initializer.
5883 (f_language::printchar): New member function, implementation from
5884 f_printchar.
5885 * go-lang.c (go_language_data): Delete la_printchar initializer.
5886 * language.c (unk_lang_printchar): Delete.
5887 (language_defn::printchar): Define new member function.
5888 (unknown_language_data): Delete la_printchar initializer.
5889 (unknown_language::printchar): New member function.
5890 (auto_language_data): Delete la_printchar initializer.
5891 (auto_language::printchar): New member function.
5892 * language.h (language_data): Delete la_printchar field.
5893 (language_defn::printchar): Declare new member function.
5894 (LA_PRINT_CHAR): Update call to printchar.
5895 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5896 (m2_language::printchar): New member function.
5897 * objc-lang.c (objc_language_data): Delete la_printchar
5898 initializer.
5899 * opencl-lang.c (opencl_language_data): Likewise.
5900 * p-lang.c (pascal_language_data): Delete la_printchar
5901 initializer.
5902 (pascal_language::printchar): New member function.
5903 * rust-lang.c (rust_printchar): Rename to
5904 rust_language::printchar.
5905 (rust_language_data): Delete la_printchar initializer.
5906 (rust_language::printchar): New member function, implementation
5907 from rust_printchar.
5908
5909 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5910
5911 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5912 (ada_language_data): Delete la_emitchar initializer.
5913 (ada_language::emitchar): New member function, implementation from
5914 emit_char.
5915 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5916 (cplus_language_data): Likewise.
5917 (asm_language_data): Likewise.
5918 (minimal_language_data): Likewise.
5919 * d-lang.c (d_language_data): Likewise.
5920 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5921 (f_language_data): Delete la_emitchar initializer.
5922 (f_language::emitchar): New member function, implementation from
5923 f_emit_char.
5924 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5925 * language.c (unk_lang_emit_char): Delete.
5926 (language_defn::emitchar): New member function definition.
5927 (unknown_language_data): Delete la_emitchar initializer.
5928 (unknown_language::emitchar): New member function.
5929 (auto_language_data): Delete la_emitchar initializer.
5930 (auto_language::emitchar): New member function.
5931 * language.h (language_data): Delete la_emitchar field.
5932 (language_defn::emitchar): New member field declaration.
5933 (LA_EMIT_CHAR): Update call to emitchar.
5934 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5935 (m2_language_data): Delete la_emitchar initializer.
5936 (m2_language::emitchar): New member function, implementation from
5937 m2_emit_char.
5938 * objc-lang.c (objc_language_data): Delete la_emitchar
5939 initializer.
5940 * opencl-lang.c (opencl_language_data): Likewise.
5941 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5942 (pascal_language_data): Delete la_emitchar initializer.
5943 (pascal_language::emitchar): New member function, implementation
5944 from pascal_emit_char.
5945 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5946 (rust_language_data): Delete la_emitchar initializer.
5947 (rust_language::emitchar): New member function, implementation
5948 from rust_emitchar.
5949
5950 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5951
5952 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5953 (ada_language_data): Delete la_post_parser initializer.
5954 (ada_language::post_parser): New member function.
5955 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5956 (cplus_language_data): Likewise.
5957 (asm_language_data): Likewise.
5958 (minimal_language_data): Likewise.
5959 * d-lang.c (d_language_data): Likewise.
5960 * f-lang.c (f_language_data): Likewise.
5961 * go-lang.c (go_language_data): Likewise.
5962 * language.c (unknown_language_data): Likewise.
5963 (auto_language_data): Likewise.
5964 * language.h (language_data): Delete la_post_parser field.
5965 (language_defn::post_parser): New member function.
5966 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5967 * objc-lang.c (objc_language_data): Likewise.
5968 * opencl-lang.c (opencl_language_data): Likewise.
5969 * p-lang.c (pascal_language_data): Likewise.
5970 * parse.c (parse_exp_in_context): Update call to post_parser.
5971 (null_post_parser): Delete definition.
5972 * parser-defs.h (null_post_parser): Delete declaration.
5973 * rust-lang.c (rust_language_data): Delete la_post_parser
5974 initializer.
5975
5976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5977
5978 * ada-lang.c (parse): Rename to ada_language::parser.
5979 (ada_language_data): Delete la_parser initializer.
5980 (ada_language::parser): New member function, implementation from
5981 parse.
5982 * c-lang.c (c_language_data): Delete la_parser initializer.
5983 (cplus_language_data): Likewise.
5984 (asm_language_data): Likewise.
5985 (minimal_language_data): Likewise.
5986 * d-lang.c (d_language_data): Likewise.
5987 (d_language::parser): New member function.
5988 * f-lang.c (f_language_data): Delete la_parser initializer.
5989 (f_language::parser): New member function.
5990 * go-lang.c (go_language_data): Delete la_parser initializer.
5991 (go_language::parser): New member function.
5992 * language.c (unk_lang_parser): Delete.
5993 (language_defn::parser): Define new member function.
5994 (unknown_language_data): Delete la_parser initializer.
5995 (unknown_language::parser): New member function.
5996 (auto_language_data): Delete la_parser initializer.
5997 (auto_language::parser): New member function.
5998 * language.h (language_data): Delete la_parser field.
5999 (language_defn::parser): Declare new member function.
6000 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6001 (m2_language::parser): New member function.
6002 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6003 * opencl-lang.c (opencl_language_data): Likewise.
6004 * p-lang.c (pascal_language_data): Likewise.
6005 (pascal_language::parser): New member function.
6006 * parse.c (parse_exp_in_context): Update call to parser.
6007 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6008 (rust_language::parser): New member function.
6009
6010 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6011
6012 * top.c (print_gdb_configuration): Print --with-python-libdir
6013 configuration value.
6014
6015 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6016
6017 * NEWS: Mention change to the alias command.
6018
6019 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6020
6021 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6022 (alias_command_completer)
6023 (make_alias_options_def_group): New functions.
6024 (alias_opts, alias_option_defs): New struct and array.
6025 (alias_usage_error): Update usage.
6026 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6027 Use option framework.
6028 (_initialize_cli_cmds): Update alias command help.
6029 Update aliases command help.
6030 (show_user):
6031 Add NULL for new default_args lookup_cmd argument.
6032 (valid_command_p): Rename to validate_aliased_command.
6033 Add NULL for new default_args lookup_cmd argument. Verify that the
6034 aliased_command has no default args.
6035 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6036 (lookup_cmd_1, lookup_cmd): New argument default_args.
6037 (add_alias_cmd):
6038 Add NULL for new default_args lookup_cmd argument.
6039 (print_help_for_command): Show default args under the layout
6040 alias some_alias = some_aliased_cmd some_alias_default_arg.
6041 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6042 xfree default_args in destructor.
6043 * cli/cli-script.c (process_next_line, do_define_command):
6044 Add NULL for new default_args lookup_cmd argument.
6045 * command.h: Declare new default_args argument in lookup_cmd
6046 and lookup_cmd_1.
6047 * completer.c (complete_line_internal_1):
6048 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6049 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6050 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6051 Likewise.
6052 * infcmd.c (_initialize_infcmd): Likewise.
6053 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6054 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6055 * python/py-param.c (add_setshow_generic): Likewise.
6056 * remote.c (_initialize_remote): Likewise.
6057 * top.c (execute_command): Prepend default_args if command has some.
6058 (set_verbose):
6059 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6060 * tracepoint.c (validate_actionline, encode_actions_1):
6061 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6062
6063 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6064
6065 * jit.c (jit_read_descriptor): Use bool as the return type.
6066 (jit_breakpoint_re_set_internal): Use bool as the return type.
6067 Invert the return value logic; return true if the jit breakpoint
6068 has been successfully initialized.
6069 (jit_inferior_init): Update the call to
6070 jit_breakpoint_re_set_internal.
6071
6072 2020-06-22 Pedro Alves <palves@redhat.com>
6073
6074 PR gdb/25939
6075 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6076 Use the current inferior instead. Don't return
6077 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6078 wait again.
6079 * sol-thread.c (sol_thread_target::wait): Don't reference
6080 inferior_ptid.
6081 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6082 (sol_update_thread_list_callback): Use the current inferior's pid
6083 instead of inferior_ptid.
6084
6085 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6086
6087 * procfs.c: Cleanup many comments.
6088
6089 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6090 (AFTER_WATCHFLAG): Replace by value.
6091
6092 (MAIN_PROC_NAME_FORMAT): Inline ...
6093 (create_procinfo): ... here.
6094
6095 (procfs_debug_inferior): Remove SYS_exec handling.
6096 (syscall_is_exec): Likewise.
6097 (procfs_set_exec_trap): Likewise.
6098
6099 (syscall_is_lwp_exit): Inline in callers.
6100 (syscall_is_exit): Likewise.
6101 (syscall_is_exec): Likewise.
6102 (syscall_is_lwp_create): Likewise.
6103
6104 (invalidate_cache): Remove #if 0 code.
6105
6106 (make_signal_thread_runnable): Remove.
6107 (procfs_target::resume): Remove #if 0 code.
6108
6109 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6110
6111 PR gdb/25939
6112 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6113 call ...
6114 (procfs_target::create_inferior): ... here.
6115
6116 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6117
6118 * exec.c (validate_exec_file): Ensure the build-id is up to
6119 date by calling reopen_exec_file (that checks file timestamp
6120 to decide to re-read the file).
6121
6122 2020-06-18 Pedro Alves <palves@redhat.com>
6123
6124 PR gdb/25412
6125 * gdbthread.h (delete_thread, delete_thread_silent)
6126 (find_thread_ptid): Update comments.
6127 * thread.c (current_thread_): New global.
6128 (is_current_thread): Move higher, and reimplement.
6129 (inferior_thread): Reimplement.
6130 (set_thread_exited): Use bool. Add assertions.
6131 (add_thread_silent): Simplify thread-reuse handling by always
6132 calling delete_thread.
6133 (delete_thread): Remove intro comment.
6134 (find_thread_ptid): Skip exited threads.
6135 (switch_to_thread_no_regs): Write to current_thread_.
6136 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6137 INFERIOR_PTID. Clear current_thread_.
6138
6139 2020-06-18 Pedro Alves <palves@redhat.com>
6140
6141 * aix-thread.c (pd_update): Use switch_to_thread.
6142
6143 2020-06-18 Pedro Alves <palves@redhat.com>
6144
6145 * ravenscar-thread.c (ravenscar_thread_target): Update.
6146 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6147 (ravenscar_thread_target::add_active_thread): ... this. Don't
6148 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6149 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6150
6151 2020-06-18 Pedro Alves <palves@redhat.com>
6152
6153 * nat/windows-nat.c (current_windows_thread): Remove.
6154 * nat/windows-nat.h (current_windows_thread): Remove.
6155 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6156 Adjust.
6157 (display_selectors): Adjust to fetch the current
6158 windows_thread_info based on inferior_ptid.
6159 (fake_create_process): No longer write to current_windows_thread.
6160 (windows_nat_target::get_windows_debug_event):
6161 Don't set inferior_ptid or current_windows_thread.
6162 (windows_nat_target::wait): Adjust to not rely on
6163 current_windows_thread.
6164 (do_initial_windows_stuff): Now a method of windows_nat_target.
6165 Switch to the last_ptid thread.
6166 (windows_nat_target::attach): Adjust.
6167 (windows_nat_target::detach): Use switch_to_no_thread instead of
6168 writing to inferior_ptid directly.
6169 (windows_nat_target::create_inferior): Adjust.
6170
6171 2020-06-18 Pedro Alves <palves@redhat.com>
6172
6173 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6174
6175 2020-06-18 Pedro Alves <palves@redhat.com>
6176
6177 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6178 after creating it, instead of writing to inferior_ptid. Don't
6179 write to inferior_ptid.
6180
6181 2020-06-18 Pedro Alves <palves@redhat.com>
6182
6183 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6184
6185 2020-06-18 Pedro Alves <palves@redhat.com>
6186
6187 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6188 it, instead of writing to inferior_ptid.
6189
6190 2020-06-18 Pedro Alves <palves@redhat.com>
6191
6192 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6193 to inferior_ptid.
6194
6195 2020-06-18 Pedro Alves <palves@redhat.com>
6196
6197 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6198 instead of writing to inferior_ptid directly.
6199
6200 2020-06-18 Pedro Alves <palves@redhat.com>
6201
6202 * corelow.c (core_target::close): Use switch_to_no_thread instead
6203 of writing to inferior_ptid directly.
6204 (add_to_thread_list, core_target_open): Use switch_to_thread
6205 instead of writing to inferior_ptid directly.
6206
6207 2020-06-18 Pedro Alves <palves@redhat.com>
6208
6209 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6210 inferior_ptid.
6211 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6212 inferior_ptid.
6213 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6214 inferior_ptid directly.
6215 (darwin_nat_target::init_thread_list): Switch to thread, instead
6216 of writing to inferior_ptid.
6217 (darwin_nat_target::attach): Don't write to inferior_ptid.
6218 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6219
6220 2020-06-18 Pedro Alves <palves@redhat.com>
6221
6222 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6223 thread.
6224 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6225 Instead use switch_to_thread.
6226 (gnu_nat_target::detach): Use switch_to_no_thread
6227 instead of writing to inferior_ptid directly. Used passed-in
6228 inferior instead of looking up the inferior by pid.
6229
6230 2020-06-18 Pedro Alves <palves@redhat.com>
6231
6232 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6233 inferior_ptid.
6234
6235 2020-06-18 Pedro Alves <palves@redhat.com>
6236
6237 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6238 inferior_ptid.
6239 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6240 thread.
6241 (nto_procfs_target::detach): Avoid referencing
6242 inferior_ptid. Use switch_to_no_thread instead of writing to
6243 inferior_ptid directly.
6244 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6245 instead of writing to inferior_ptid directly.
6246 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6247 to thread.
6248
6249 2020-06-18 Pedro Alves <palves@redhat.com>
6250
6251 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6252 after creating it, instead of writing to inferior_ptid.
6253 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6254 to inferior_ptid directly.
6255 (gdbsim_target::wait): Don't write to inferior_ptid.
6256
6257 2020-06-18 Pedro Alves <palves@redhat.com>
6258
6259 * remote.c (remote_target::remote_notice_new_inferior): Use
6260 switch_to_thread instead of writing to inferior_ptid directly.
6261 (remote_target::add_current_inferior_and_thread): Use
6262 switch_to_no_thread instead of writing to inferior_ptid directly.
6263 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6264 and switch_to_thread instead of using set_current_inferior or
6265 writing to inferior_ptid directly.
6266
6267 2020-06-18 Pedro Alves <palves@redhat.com>
6268
6269 * tracectf.c (ctf_target_open): Switch to added thread instead of
6270 writing to inferior_ptid directly.
6271 (ctf_target::close): Use switch_to_no_thread instead of writing to
6272 inferior_ptid directly.
6273
6274 2020-06-18 Pedro Alves <palves@redhat.com>
6275
6276 * tracefile-tfile.c (tfile_target_open): Don't write to
6277 inferior_ptid directly, instead switch to added thread.
6278 (tfile_target::close): Use switch_to_no_thread instead of writing
6279 to inferior_ptid directly.
6280
6281 2020-06-18 Pedro Alves <palves@redhat.com>
6282
6283 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6284 (procfs_target::detach): Use switch_to_no_thread
6285 instead of writing to inferior_ptid directly.
6286 (do_attach): Change return type to void. Switch to the added
6287 thread.
6288 (procfs_target::create_inferior): Switch to the added thread.
6289 (procfs_do_thread_registers): Don't write to inferior_ptid.
6290
6291 2020-06-18 Pedro Alves <palves@redhat.com>
6292
6293 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6294 of writing to inferior_ptid.
6295 (scoped_restore_exited_inferior): Delete.
6296 (handle_vfork_child_exec_or_exit): Simplify using
6297 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6298 instead of writing to inferior_ptid.
6299 (THREAD_STOPPED_BY): Delete.
6300 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6301 (thread_stopped_by_hw_breakpoint): Delete.
6302 (save_waitstatus): Use
6303 scoped_restore_current_thread+switch_to_thread, and call
6304 target_stopped_by_watchpoint instead of
6305 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6306 instead of thread_stopped_by_sw_breakpoint, and
6307 target_stopped_by_hw_breakpoint instead of
6308 thread_stopped_by_hw_breakpoint.
6309 (handle_inferior_event)
6310 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6311 inferior_ptid directly, nor
6312 set_current_inferior/set_current_program_space. Use
6313 switch_to_thread / switch_to_inferior_no_thread instead.
6314
6315 2020-06-18 Pedro Alves <palves@redhat.com>
6316
6317 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6318 instead of writing to inferior_ptid.
6319
6320 2020-06-18 Pedro Alves <palves@redhat.com>
6321
6322 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6323 added thread.
6324 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6325 to the added thread.
6326 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6327 instead of writing to inferior_ptid.
6328
6329 2020-06-18 Pedro Alves <palves@redhat.com>
6330
6331 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6332 (register_to_value_test): Mock a program_space too. Heap-allocate
6333 the address space. Don't write to inferior_ptid. Use
6334 switch_to_thread instead.
6335
6336 2020-06-18 Pedro Alves <palves@redhat.com>
6337
6338 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6339 Delete.
6340 (find_signalled_thread()): New, factored out from
6341 linux_make_corefile_notes and adjusted to handle exited threads.
6342 (linux_make_corefile_notes): Adjust to use the new
6343 find_signalled_thread.
6344
6345 2020-06-18 Pedro Alves <palves@redhat.com>
6346
6347 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6348 of saving/restoring inferior_ptid.
6349
6350 2020-06-17 Tom Tromey <tom@tromey.com>
6351
6352 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6353 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6354 declare.
6355 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6356
6357 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6360 of partial symtabs.
6361
6362 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * regformats/reg-arm.dat: Remove.
6365 * regformats/reg-bfin.dat: Remove.
6366 * regformats/reg-cris.dat: Remove.
6367 * regformats/reg-crisv32.dat: Remove.
6368 * regformats/reg-m32r.dat: Remove.
6369 * regformats/reg-tilegx.dat: Remove.
6370 * regformats/reg-tilegx32.dat: Remove.
6371
6372 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * features/Makefile (WHICH): Remove arm files.
6375 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6376 * regformats/arm/arm-with-neon.dat: Remove.
6377 * regformats/arm/arm-with-vfpv2.dat: Remove.
6378 * regformats/arm/arm-with-vfpv3.dat: Remove.
6379
6380 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * features/Makefile (XMLTOC): Remove rx.xml.
6383
6384 2020-06-17 Pedro Alves <palves@redhat.com>
6385
6386 * gdbthread.h (thread_control_state) <trap_expected> Update
6387 comments.
6388
6389 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6392 ada_language::lookup_symbol_nonlocal.
6393 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6394 (ada_language::lookup_symbol_nonlocal): New member function,
6395 implementation from ada_lookup_symbol_nonlocal.
6396 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6397 initializer.
6398 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6399 initializer.
6400 (cplus_language::lookup_symbol_nonlocal): New member function.
6401 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6402 (minimal_language_data) Likewise.
6403 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6404 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6405 initializer.
6406 (d_language::lookup_symbol_nonlocal): New member function.
6407 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6408 initializer.
6409 (f_language::lookup_symbol_nonlocal): New member function.
6410 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6411 initializer.
6412 * language.c (unknown_language_data): Likewise.
6413 (auto_language_data): Likewise.
6414 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6415 field.
6416 (language_defn::lookup_symbol_nonlocal): New member function.
6417 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6418 initializer.
6419 * objc-lang.c (objc_language_data): Likewise.
6420 * opencl-lang.c (opencl_language_data): Likewise.
6421 * p-lang.c (pascal_language_data): Likewise.
6422 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6423 rust_language::lookup_symbol_nonlocal.
6424 (rust_language_data): Delete la_lookup_symbol_nonlocal
6425 initializer.
6426 (rust_language::lookup_symbol_nonlocal): New member function,
6427 implementation from rust_lookup_symbol_nonlocal.
6428 * symtab.c (lookup_symbol_aux): Update call to
6429 lookup_symbol_nonlocal.
6430 (basic_lookup_symbol_nonlocal): Rename to...
6431 (language_defn::lookup_symbol_nonlocal): ...this, and update
6432 header comment. Remove language_defn parameter, and replace with
6433 uses of `this'.
6434 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6435
6436 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6439 initializer.
6440 (ada_language::value_print_inner): New member function.
6441 * c-lang.c (c_language_data): Delete la_value_print_inner
6442 initializer.
6443 (cplus_language_data): Likewise.
6444 (asm_language_data): Likewise.
6445 (minimal_language_data): Likewise.
6446 * d-lang.c (d_language_data): Likewise.
6447 (d_language::value_print_inner): New member function.
6448 * f-lang.c (f_language_data): Delete la_value_print_inner
6449 initializer.
6450 (f_language::value_print_inner): New member function.
6451 * f-lang.h (f_value_print_innner): Rename to...
6452 (f_value_print_inner): ...this (note spelling of 'inner').
6453 * f-valprint.c (f_value_print_innner): Rename to...
6454 (f_value_print_inner): ...this (note spelling of 'inner').
6455 * go-lang.c (go_language_data): Delete la_value_print_inner
6456 initializer.
6457 (go_language::value_print_inner): New member function.
6458 * language.c (language_defn::value_print_inner): Define new member
6459 function.
6460 (unk_lang_value_print_inner): Delete.
6461 (unknown_language_data): Delete la_value_print_inner initializer.
6462 (unknown_language::value_print_inner): New member function.
6463 (auto_language_data): Delete la_value_print_inner initializer.
6464 (auto_language::value_print_inner): New member function.
6465 * language.h (language_data): Delete la_value_print_inner field.
6466 (language_defn::value_print_inner): Delcare new member function.
6467 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6468 initializer.
6469 (m2_language::value_print_inner): New member function.
6470 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6471 initializer.
6472 * opencl-lang.c (opencl_language_data): Likewise.
6473 * p-lang.c (pascal_language_data): Likewise.
6474 (pascal_language::value_print_inner): New member function.
6475 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6476 initializer.
6477 (rust_language::value_print_inner): New member function.
6478 * valprint.c (do_val_print): Update call to value_print_inner.
6479
6480 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6481
6482 * ada-lang.c (ada_language_data): Delete la_value_print
6483 initializer.
6484 (ada_language::value_print): New member function.
6485 * c-lang.c (c_language_data): Delete la_value_print initializer.
6486 (cplus_language_data): Likewise.
6487 (asm_language_data): Likewise.
6488 (minimal_language_data): Likewise.
6489 * d-lang.c (d_language_data): Likewise.
6490 * f-lang.c (f_language_data): Likewise.
6491 * go-lang.c (go_language_data): Likewise.
6492 * language.c (unk_lang_value_print): Delete.
6493 (language_defn::value_print): Define new member function.
6494 (unknown_language_data): Delete la_value_print initializer.
6495 (unknown_language::value_print): New member function.
6496 (auto_language_data): Delete la_value_print initializer.
6497 (auto_language::value_print): New member function.
6498 * language.h (language_data): Delete la_value_print field.
6499 (language_defn::value_print): Declare new member function.
6500 (LA_VALUE_PRINT): Update call to value_print.
6501 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6502 * objc-lang.c (objc_language_data): Likewise.
6503 * opencl-lang.c (opencl_language_data): Likewise.
6504 * p-lang.c (pascal_language_data): Likewise.
6505 (pascal_language::value_print): New member function.
6506 * rust-lang.c (rust_language_data): Delete la_value_print
6507 initializer.
6508
6509 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * ada-lang.c (ada_watch_location_expression): Rename to
6512 ada_language::watch_location_expression.
6513 (ada_language_data): Delete la_watch_location_expression
6514 initializer.
6515 (ada_language::watch_location_expression): New member function,
6516 implementation from ada_watch_location_expression.
6517 * breakpoint.c (watch_command_1): Update call to
6518 watch_location_expression.
6519 * c-lang.c (c_watch_location_expression): Rename to
6520 language_defn::watch_location_expression.
6521 (c_language_data): Delete la_watch_location_expression
6522 initializer.
6523 (cplus_language_data): Likewise.
6524 (asm_language_data): Likewise.
6525 (minimal_language_data): Likewise.
6526 * c-lang.h (c_watch_location_expression): Delete declaration.
6527 * d-lang.c (d_language_data): Delete la_watch_location_expression
6528 initializer.
6529 * f-lang.c (f_language_data): Likewise.
6530 * go-lang.c (go_language_data): Likewise.
6531 * language.c (language_defn::watch_location_expression): Member
6532 function implementation from c_watch_location_expression.
6533 (unknown_language_data): Delete la_watch_location_expression
6534 initializer.
6535 (auto_language_data): Likewise.
6536 * language.h (language_data): Delete la_watch_location_expression
6537 field.
6538 (language_defn::watch_location_expression): Declare new member
6539 function.
6540 * m2-lang.c (m2_language_data): Delete
6541 la_watch_location_expression initializer.
6542 * objc-lang.c (objc_language_data): Likewise.
6543 * opencl-lang.c (opencl_language_data): Likewise.
6544 * p-lang.c (pascal_language_data): Likewise.
6545 * rust-lang.c (rust_watch_location_expression): Rename to
6546 rust_language::watch_location_expression.
6547 (rust_language_data): Delete la_watch_location_expression
6548 initializer.
6549 (rust_language::watch_location_expression): New member function,
6550 implementation from rust_watch_location_expression.
6551
6552 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6553
6554 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6555 ada_language::collect_symbol_completion_matches.
6556 (ada_language_data): Delete la_collect_symbol_completion_matches
6557 initializer.
6558 (ada_language::collect_symbol_completion_matches): New member
6559 function, implementation from
6560 ada_collect_symbol_completion_matches.
6561 * c-lang.c (c_language_data): Delete
6562 la_collect_symbol_completion_matches initializer.
6563 (cplus_language_data): Likewise.
6564 (asm_language_data): Likewise.
6565 (minimal_language_data): Likewise.
6566 * d-lang.c (d_language_data): Likewise.
6567 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6568 f_language::collect_symbol_completion_matches.
6569 (f_language_data): Delete la_collect_symbol_completion_matches
6570 initializer.
6571 (f_language::collect_symbol_completion_matches) New member
6572 function, implementation from f_collect_symbol_completion_matches.
6573 * go-lang.c (go_language_data): Delete
6574 la_collect_symbol_completion_matches initializer.
6575 * language.c (unknown_language_data): Likewise.
6576 (auto_language_data): Likewise.
6577 * language.h (language_data): Delete
6578 la_collect_symbol_completion_matches field.
6579 (language_defn::collect_symbol_completion_matches): New member
6580 function.
6581 * m2-lang.c (m2_language_data): Delete
6582 la_collect_symbol_completion_matches initializer.
6583 * objc-lang.c (objc_language_data): Likewise.
6584 * opencl-lang.c (opencl_language_data): Likewise.
6585 * p-lang.c (pascal_language_data): Likewise.
6586 * rust-lang.c (rust_language_data): Likewise.
6587 * symtab.c (default_collect_symbol_completion_matches): Delete.
6588 (collect_symbol_completion_matches): Update call to
6589 collect_symbol_completion_matches.
6590 (collect_symbol_completion_matches_type): Likewise.
6591 * symtab.h (default_collect_symbol_completion_matches): Delete
6592 declaration.
6593
6594 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6595
6596 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6597 (ada_language_data): Delete la_word_break_characters initializer.
6598 (ada_language::word_break_characters): New member function.
6599 * c-lang.c (c_language_data): Delete la_word_break_characters
6600 initializer.
6601 (cplus_language_data): Likewise.
6602 (asm_language_data): Likewise.
6603 (minimal_language_data): Likewise.
6604 * completer.c: Update global comment.
6605 (advance_to_expression_complete_word_point): Update call to
6606 word_break_characters.
6607 (complete_files_symbols): Likewise.
6608 (complete_line_internal_1): Likewise.
6609 (default_completer_handle_brkchars): Likewise.
6610 (skip_quoted_chars): Likewise.
6611 * d-lang.c (d_language_data): Delete la_word_break_characters
6612 initializer.
6613 * f-lang.c (f_word_break_characters): Delete.
6614 (f_language_data): Delete la_word_break_characters initializer.
6615 (f_language::word_break_characters): New member function.
6616 * go-lang.c (go_language_data): Delete la_word_break_characters
6617 initializer.
6618 * language.c (unknown_language_data): Likewise.
6619 (auto_language_data): Likewise.
6620 * language.h (default_word_break_characters): Move declaration to
6621 earlier in the file.
6622 (language_data): Delete la_word_break_characters field.
6623 (language_defn::word_break_characters): New member function.
6624 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6625 initializer.
6626 * objc-lang.c (objc_language_data): Likewise.
6627 * opencl-lang.c (opencl_language_data): Likewise.
6628 * p-lang.c (pascal_language_data): Likewise.
6629 * rust-lang.c (rust_language_data): Likewise.
6630
6631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6632
6633 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6634 (ada_language_data): Delete la_get_symbol_name_matcher
6635 initializer.
6636 (language_defn::get_symbol_name_matcher_inner): New member
6637 function.
6638 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6639 initializer.
6640 (cplus_language_data): Likewise.
6641 (cplus_language::get_symbol_name_matcher_inner): New member
6642 function.
6643 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6644 (minimal_language_data): Likewise.
6645 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6646 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6647 initializer.
6648 * dictionary.c (iter_match_first_hashed): Update call to
6649 get_symbol_name_matcher.
6650 (iter_match_next_hashed): Likewise.
6651 (iter_match_next_linear): Likewise.
6652 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6653 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6654 initializer.
6655 (f_language::get_symbol_name_matcher_inner): New member function.
6656 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6657 initializer.
6658 * language.c (default_symbol_name_matcher): Update header comment,
6659 make static.
6660 (language_defn::get_symbol_name_matcher): New definition.
6661 (language_defn::get_symbol_name_matcher_inner): Likewise.
6662 (get_symbol_name_matcher): Delete.
6663 (unknown_language_data): Delete la_get_symbol_name_matcher
6664 initializer.
6665 (auto_language_data): Likewise.
6666 * language.h (language_data): Delete la_get_symbol_name_matcher
6667 field.
6668 (language_defn::get_symbol_name_matcher): New member function.
6669 (language_defn::get_symbol_name_matcher_inner): Likewise.
6670 (default_symbol_name_matcher): Delete declaration.
6671 * linespec.c (find_methods): Update call to
6672 get_symbol_name_matcher.
6673 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6674 initializer.
6675 * minsyms.c (lookup_minimal_symbol): Update call to
6676 get_symbol_name_matcher.
6677 (iterate_over_minimal_symbols): Likewise.
6678 * objc-lang.c (objc_language_data): Delete
6679 la_get_symbol_name_matcher initializer.
6680 * opencl-lang.c (opencl_language_data): Likewise.
6681 * p-lang.c (pascal_language_data): Likewise.
6682 * psymtab.c (psymbol_name_matches): Update call to
6683 get_symbol_name_matcher.
6684 * rust-lang.c (rust_language_data): Delete
6685 la_get_symbol_name_matcher initializer.
6686 * symtab.c (symbol_matches_search_name): Update call to
6687 get_symbol_name_matcher.
6688 (compare_symbol_name): Likewise.
6689
6690 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6691
6692 * ada-lang.c (ada_language_data): Delete la_compute_program
6693 initializer.
6694 * c-lang.c (c_language_data): Likewise.
6695 (c_language::compute_program): New member function.
6696 (cplus_language_data): Delete la_compute_program initializer.
6697 (cplus_language::compute_program): New member function.
6698 (asm_language_data): Delete la_compute_program initializer.
6699 (minimal_language_data): Likewise.
6700 * c-lang.h (c_compute_program): Update comment.
6701 (cplus_compute_program): Likewise.
6702 * compile/compile-c-support.c (c_compute_program): Likewise.
6703 (cplus_compute_program): Likewise.
6704 * compile/compile.c (compile_to_object): Update call to
6705 la_compute_program.
6706 * d-lang.c (d_language_data): Delete la_compute_program
6707 initializer.
6708 * f-lang.c (f_language_data): Likewise.
6709 * go-lang.c (go_language_data): Likewise.
6710 * language.c (unknown_language_data): Likewise.
6711 (auto_language_data): Likewise.
6712 * language.h (language_data): Delete la_compute_program field.
6713 (language_defn::compute_program): New member function.
6714 * m2-lang.c (m2_language_data): Delete la_compute_program
6715 initializer.
6716 * objc-lang.c (objc_language_data): Likewise.
6717 * opencl-lang.c (opencl_language_data): Likewise.
6718 * p-lang.c (pascal_language_data): Likewise.
6719 * rust-lang.c (rust_language_data): Likewise.
6720
6721 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6722
6723 * ada-lang.c (ada_language_data) Delete
6724 la_class_name_from_physname initializer.
6725 * c-lang.c (c_language_data): Likewise.
6726 (cplus_language_data): Likewise.
6727 (cplus_language::class_name_from_physname): New member function.
6728 (asm_language_data): Delete la_class_name_from_physname
6729 initializer.
6730 (minimal_language_data): Likewise.
6731 * d-lang.c (d_language_data): Likewise.
6732 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6733 method on language_defn class.
6734 (guess_full_die_structure_name): Likewise.
6735 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6736 initializer.
6737 * go-lang.c (go_language_data): Likewise.
6738 * language.c (language_class_name_from_physname): Delete.
6739 (unk_lang_class_name): Delete.
6740 (unknown_language_data): Delete la_class_name_from_physname
6741 initializer.
6742 (auto_language_data): Likewise.
6743 * language.h (language_data): Delete la_class_name_from_physname
6744 field.
6745 (language_defn::class_name_from_physname): New function.
6746 (language_class_name_from_physname): Delete declaration.
6747 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6748 initializer.
6749 * objc-lang.c (objc_language_data): Likewise.
6750 * opencl-lang.c (opencl_language_data): Likewise.
6751 * p-lang.c (pascal_language_data): Likewise.
6752 * rust-lang.c (rust_language_data): Likewise.
6753
6754 2020-06-16 Tom Tromey <tom@tromey.com>
6755
6756 * tui/tui-data.h (STATUS_NAME): New macro.
6757 * tui/tui-layout.c (tui_remove_some_windows)
6758 (initialize_known_windows, tui_register_window)
6759 (tui_layout_split::remove_windows, initialize_layouts)
6760 (tui_new_layout_command): Don't use hard-coded window names.
6761
6762 2020-06-16 Tom Tromey <tom@tromey.com>
6763
6764 PR tui/25348:
6765 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6766 tui_initialize_readline. Only run once. Call rl_initialize.
6767 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6768 tui_initialize_readline.
6769 * tui/tui-io.c (tui_setup_io): Call
6770 tui_ensure_readline_initialized.
6771 * tui/tui-interp.c (tui_interp::init): Update.
6772
6773 2020-06-16 Tom Tromey <tom@tromey.com>
6774
6775 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6776 Also preserve the status window.
6777
6778 2020-06-16 Tom Tromey <tom@tromey.com>
6779
6780 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6781 where m_window==nullptr.
6782
6783 2020-06-15 Tom Tromey <tromey@adacore.com>
6784
6785 * windows-nat.c (windows_nat::handle_output_debug_string):
6786 Update.
6787 (windows_nat::handle_ms_vc_exception): Update.
6788 * target.h (target_read_string): Change API.
6789 * target.c (target_read_string): Change API.
6790 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6791 Update.
6792 * solib-frv.c (frv_current_sos): Update.
6793 * solib-dsbt.c (dsbt_current_sos): Update.
6794 * solib-darwin.c (darwin_current_sos): Update.
6795 * linux-thread-db.c (inferior_has_bug): Update.
6796 * expprint.c (print_subexp_standard): Update.
6797 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6798 (ada_exception_message_1): Update.
6799
6800 2020-06-15 Tom Tromey <tromey@adacore.com>
6801
6802 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6803
6804 2020-06-15 Tom Tromey <tromey@adacore.com>
6805
6806 * valprint.c (read_string): Update comment.
6807 * target.c (MIN): Remove.
6808 (target_read_string): Rewrite.
6809
6810 2020-06-15 Tom Tromey <tromey@adacore.com>
6811
6812 * corefile.c (read_memory_string): Remove.
6813 * ada-valprint.c (ada_value_print_ptr): Update.
6814 * ada-lang.h (ada_tag_name): Change return type.
6815 * ada-lang.c (type_from_tag): Update.
6816 (ada_tag_name_from_tsd): Change return type. Use
6817 target_read_string.
6818 (ada_tag_name): Likewise.
6819 * gdbcore.h (read_memory_string): Don't declare.
6820
6821 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6822
6823 * symtab.c (rbreak_command): Ignore Windows drive colon.
6824
6825 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6826
6827 * NEWS: Mention removed GDBserver host support.
6828
6829 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6830
6831 * features/riscv/rebuild-csr-xml.sh: Updated.
6832
6833 2020-06-11 Tom Tromey <tom@tromey.com>
6834
6835 PR gdb/18318:
6836 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6837
6838 2020-06-09 Jonny Grant <jg@jguk.org>
6839 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 * main.c (captured_main_1): Don't print new line after help.
6842 (print_gdb_help): add mailing list and IRC channel information
6843 to --help. Add new lines between items in the footer. Remove
6844 quotes around bug url.
6845
6846 2020-06-11 Keith Seitz <keiths@redhat.com>
6847
6848 PR gdb/21356
6849 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6850 Resolve typedefs for type length calculations.
6851
6852 2020-06-10 Tom de Vries <tdevries@suse.de>
6853
6854 PR ada/24713
6855 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6856 (write_psymbols): Enable .gdb_index for ada.
6857 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6858 ada.
6859
6860 2020-06-10 Tom de Vries <tdevries@suse.de>
6861
6862 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6863 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6864 namei" instead of "const char *name" argument.
6865 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6866 dw2_symtab_iter_init.
6867
6868 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6871 to use type::field and field::type instead.
6872
6873 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6874
6875 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6876 to use field::type instead.
6877
6878 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6879
6880 * gdbtypes.h (struct field) <type, set_type>: New methods.
6881 Rename `type` field to...
6882 <m_type>: ... this. Change references throughout to use type or
6883 set_type methods.
6884 (FIELD_TYPE): Use field::type. Change call sites that modify
6885 the field's type to use field::set_type instead.
6886
6887 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6890 to use type::index_type instead.
6891
6892 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6895 methods.
6896 (TYPE_INDEX_TYPE): Use type::index_type.
6897 * gdbtypes.c (create_array_type_with_stride): Likewise.
6898
6899 2020-06-07 Tom Tromey <tom@tromey.com>
6900
6901 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6902 parameter.
6903 (generic_value_print): Update.
6904
6905 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6906
6907 Revert commit 982a38f60b0.
6908 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6909
6910 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6913 avoid use after free.
6914
6915 2020-06-05 Tom de Vries <tdevries@suse.de>
6916
6917 * NEWS: Fix typos.
6918
6919 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6922 the per_bfd object.
6923 (dwarf2_read_debug_names): Likewise.
6924 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6925 object when re-using a per_bfd object with an index.
6926
6927 2020-06-03 Tom de Vries <tdevries@suse.de>
6928
6929 PR symtab/26046
6930 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6931 children for C++.
6932 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6933 DW_TAG_subprogram.
6934
6935 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6936
6937 * ada-lang.c (ada_language_data): Delete skip_trampoline
6938 initializer.
6939 * c-lang.c (c_language_data): Likewise.
6940 (cplus_language_data): Likewise.
6941 (cplus_language::skip_trampoline): New member function.
6942 (asm_language_data): Delete skip_trampoline initializer.
6943 (minimal_language_data): Likewise.
6944 * d-lang.c (d_language_data): Likewise.
6945 * f-lang.c (f_language_data): Likewise.
6946 * go-lang.c (go_language_data): Likewise.
6947 * language.c (unk_lang_trampoline): Delete function.
6948 (skip_language_trampoline): Update.
6949 (unknown_language_data): Delete skip_trampoline initializer.
6950 (auto_language_data): Likewise.
6951 * language.h (language_data): Delete skip_trampoline field.
6952 (language_defn::skip_trampoline): New function.
6953 * m2-lang.c (m2_language_data): Delete skip_trampoline
6954 initializer.
6955 * objc-lang.c (objc_skip_trampoline): Delete function, move
6956 implementation to objc_language::skip_trampoline.
6957 (objc_language_data): Delete skip_trampoline initializer.
6958 (objc_language::skip_trampoline): New member function with
6959 implementation from objc_skip_trampoline.
6960 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6961 initializer.
6962 * p-lang.c (pascal_language_data): Likewise.
6963 * rust-lang.c (rust_language_data): Likewise.
6964
6965 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6968 (ada_language::demangle): New member function.
6969 * c-lang.c (c_language_data): Delete la_demangle initializer.
6970 (cplus_language_data): Delete la_demangle initializer.
6971 (cplus_language::demangle): New member function.
6972 (asm_language_data): Delete la_demangle initializer.
6973 (minimal_language_data): Delete la_demangle initializer.
6974 * d-lang.c (d_language_data): Delete la_demangle initializer.
6975 (d_language::demangle): New member function.
6976 * f-lang.c (f_language_data): Delete la_demangle initializer.
6977 (f_language::demangle): New member function.
6978 * go-lang.c (go_language_data): Delete la_demangle initializer.
6979 (go_language::demangle): New member function.
6980 * language.c (language_demangle): Update.
6981 (unk_lang_demangle): Delete.
6982 (unknown_language_data): Delete la_demangle initializer.
6983 (unknown_language::demangle): New member function.
6984 (auto_language_data): Delete la_demangle initializer.
6985 (auto_language::demangle): New member function.
6986 * language.h (language_data): Delete la_demangle field.
6987 (language_defn::demangle): New function.
6988 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6989 * objc-lang.c (objc_language_data): Delete la_demangle
6990 initializer.
6991 (objc_language::demangle): New member function.
6992 * opencl-lang.c (opencl_language_data): Delete la_demangle
6993 initializer.
6994 * p-lang.c (pascal_language_data): Likewise.
6995 * rust-lang.c (rust_language_data): Likewise.
6996 (rust_language::demangle): New member function.
6997
6998 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6999
7000 * ada-lang.c (ada_language_data): Delete la_print_type
7001 initializer.
7002 (ada_language::print_type): New member function.
7003 * c-lang.c (c_language_data): Delete la_print_type initializer.
7004 (c_language::print_type): New member function.
7005 (cplus_language_data): Delete la_print_type initializer.
7006 (cplus_language::print_type): New member function.
7007 (asm_language_data): Delete la_print_type initializer.
7008 (asm_language::print_type): New member function.
7009 (minimal_language_data): Delete la_print_type initializer.
7010 (minimal_language::print_type): New member function.
7011 * d-lang.c (d_language_data): Delete la_print_type initializer.
7012 (d_language::print_type): New member function.
7013 * f-lang.c (f_language_data): Delete la_print_type initializer.
7014 (f_language::print_type): New member function.
7015 * go-lang.c (go_language_data): Delete la_print_type initializer.
7016 (go_language::print_type): New member function.
7017 * language.c (unk_lang_print_type): Delete.
7018 (unknown_language_data): Delete la_print_type initializer.
7019 (unknown_language::print_type): New member function.
7020 (auto_language_data): Delete la_print_type initializer.
7021 (auto_language::print_type): New member function.
7022 * language.h (language_data): Delete la_print_type field.
7023 (language_defn::print_type): New function.
7024 (LA_PRINT_TYPE): Update.
7025 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7026 (m2_language::print_type): New member function.
7027 * objc-lang.c (objc_language_data): Delete la_print_type
7028 initializer.
7029 (objc_language::print_type): New member function.
7030 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7031 to opencl_language::print_type.
7032 (opencl_language_data): Delete la_print_type initializer.
7033 (opencl_language::print_type): New member function, implementation
7034 from opencl_print_type.
7035 * p-lang.c (pascal_language_data): Delete la_print_type
7036 initializer.
7037 (pascal_language::print_type): New member function.
7038 * rust-lang.c (rust_print_type): Delete, implementation moved to
7039 rust_language::print_type.
7040 (rust_language_data): Delete la_print_type initializer.
7041 (rust_language::print_type): New member function, implementation
7042 from rust_print_type.
7043
7044 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7045
7046 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7047 implementation moves to...
7048 (ada_language::sniff_from_mangled_name): ...here. Update return
7049 type.
7050 (ada_language_data): Delete la_sniff_from_mangled_name
7051 initializer.
7052 * c-lang.c (c_language_data): Likewise.
7053 (cplus_language_data): Likewise.
7054 (cplus_language::sniff_from_mangled_name): New member function,
7055 implementation taken from gdb_sniff_from_mangled_name.
7056 (asm_language_data): Delete la_sniff_from_mangled_name
7057 initializer.
7058 (minimal_language_data): Likewise.
7059 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7060 implementation moves to cplus_language::sniff_from_mangled_name.
7061 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7062 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7063 moves to...
7064 (d_language::sniff_from_mangled_name): ...here.
7065 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7066 * f-lang.c (f_language_data): Likewise.
7067 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7068 moves to...
7069 (go_language::sniff_from_mangled_name): ...here.
7070 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7071 * language.c (language_sniff_from_mangled_name): Delete.
7072 (unknown_language_data): Delete la_sniff_from_mangled_name
7073 initializer.
7074 (auto_language_data): Likewise.
7075 * language.h (language_data): Delete la_sniff_from_mangled_name
7076 field.
7077 (language_defn::sniff_from_mangled_name): New function.
7078 (language_sniff_from_mangled_name): Delete declaration.
7079 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7080 field.
7081 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7082 implementation moves to...
7083 (objc_language::sniff_from_mangled_name): ...here.
7084 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7085 * opencl-lang.c (opencl_language_data): Likewise.
7086 * p-lang.c (pascal_language_data): Likewise.
7087 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7088 implementation moves to...
7089 (rust_language::sniff_from_mangled_name): ...here.
7090 (rust_language_data): Delete la_sniff_from_mangled_name
7091 initializer.
7092 * symtab.c (symbol_find_demangled_name): Call
7093 sniff_from_mangled_name member function.
7094
7095 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7098 initializer.
7099 * c-lang.c (c_language_data): Likewise.
7100 (cplus_language_data): Likewise.
7101 (cplus_language::search_name_hash): New member function.
7102 (asm_language_data): Delete la_search_name_hash initializer.
7103 (minimal_language_data): Likewise.
7104 * d-lang.c (d_language_data): Likewise.
7105 * dictionary.c (default_search_name_hash): Rename to...
7106 (language_defn::search_name_hash): ...this.
7107 * f-lang.c (f_language_data): Likewise.
7108 (f_language::search_name_hash): New member function.
7109 * go-lang.c (go_language_data): Delete la_search_name_hash
7110 initializer.
7111 * language.c (unknown_language_data): Likewise.
7112 (auto_language_data): Likewise.
7113 * language.h (struct language_data): Delete la_search_name_hash
7114 field.
7115 (language_defn::search_name_hash): Declare new member function.
7116 (default_search_name_hash): Delete declaration.
7117 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7118 initializer.
7119 * objc-lang.c (objc_language_data): Likewise.
7120 * opencl-lang.c (opencl_language_data): Likewise.
7121 * p-lang.c (pascal_language_data): Likewise.
7122 * rust-lang.c (rust_language_data): Likewise.
7123 * symtab.c (search_name_hash): Update call.
7124
7125 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7128 initializer.
7129 * c-lang.c (class compile_instance): Declare.
7130 (c_language_data): Delete la_get_compile_instance initializer.
7131 (c_language::get_compile_instance): New member function.
7132 (cplus_language_data): Delete la_get_compile_instance initializer.
7133 (cplus_language::get_compile_instance): New member function.
7134 (asm_language_data): Delete la_get_compile_instance initializer.
7135 (minimal_language_data): Likewise.
7136 * c-lang.h (c_get_compile_context): Update comment.
7137 (cplus_get_compile_context): Update comment.
7138 * compile/compile.c (compile_to_object): Update calls, don't rely
7139 on function pointer being NULL.
7140 * d-lang.c (d_language_data): Delete la_get_compile_instance
7141 initializer.
7142 * f-lang.c (f_language_data): Likewise.
7143 * go-lang.c (go_language_data): Likewise.
7144 * language.c (unknown_language_data): Likewise.
7145 (auto_language_data): Likewise.
7146 * language.h (language_data): Delete la_get_compile_instance field.
7147 (language_defn::get_compile_instance): New member function.
7148 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7149 initializer.
7150 * objc-lang.c (objc_language_data): Likewise.
7151 * opencl-lang.c (opencl_language_data): Likewise.
7152 * p-lang.c (pascal_language_data): Likewise.
7153 * rust-lang.c (rust_language_data): Likewise.
7154
7155 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * ada-lang.c (ada_add_all_symbols): Update comment.
7158 (ada_iterate_over_symbols): Delete, move implementation to...
7159 (ada_language::iterate_over_symbols): ...here, a new member
7160 function, rewrite to use range based for loop.
7161 (ada_language_data): Delete la_iterate_over_symbols initializer.
7162 * c-lang.c (c_language_data): Likewise.
7163 (cplus_language_data): Likewise.
7164 (asm_language_data): Likewise.
7165 (minimal_language_data): Likewise.
7166 * d-lang.c (d_language_data): Likewise.
7167 * f-lang.c (f_language_data): Likewise.
7168 * go-lang.c (go_language_data): Likewise.
7169 * language.c (unknown_language_data): Likewise.
7170 (auto_language_data): Likewise.
7171 * language.h (language_data): Delete la_iterate_over_symbols field.
7172 (language_defn::iterate_over_symbols): New member function.
7173 (LA_ITERATE_OVER_SYMBOLS): Update.
7174 * linespec.c (iterate_over_all_matching_symtabs): Update.
7175 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7176 initializer.
7177 * objc-lang.c (objc_language_data): Likewise.
7178 * opencl-lang.c (opencl_language_data): Likewise.
7179 * p-lang.c (pascal_language_data): Likewise.
7180 * rust-lang.c (rust_language_data): Likewise.
7181
7182 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * ada-lang.c (ada_language_data): Delete
7185 la_lookup_transparent_type initializer.
7186 * c-lang.c (c_language_data): Likewise.
7187 (cplus_language_data): Likewise.
7188 (cplus_language::lookup_transparent_type): New member function.
7189 (asm_language_data): Delete la_lookup_transparent_type
7190 initializer.
7191 (minimal_language_data): Likewise.
7192 * d-lang.c (d_language_data): Likewise.
7193 * f-lang.c (f_language_data): Likewise.
7194 * go-lang.c (go_language_data): Likewise.
7195 * language.c (unknown_language_data): Likewise.
7196 (auto_language_data): Likewise.
7197 * language.h (struct language_data): Delete
7198 la_lookup_transparent_type field.
7199 (language_defn::lookup_transparent_type): New member function.
7200 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7201 initializer.
7202 * objc-lang.c (objc_language_data): Likewise.
7203 * opencl-lang.c (opencl_language_data): Likewise.
7204 * p-lang.c (pascal_language_data): Likewise.
7205 * rust-lang.c (rust_language_data): Likewise.
7206 * symtab.c (symbol_matches_domain): Update call.
7207
7208 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 * ada-lang.c (ada_language_arch_info): Delete function, move
7211 implementation to...
7212 (ada_language::language_arch_info): ...here, a new member
7213 function.
7214 (ada_language_data): Delete la_language_arch_info.
7215 * c-lang.c (c_language_data): Likewise.
7216 (c_language::language_arch_info): New member function.
7217 (cplus_language_arch_info): Delete function, move
7218 implementation to...
7219 (cplus_language::language_arch_info): ...here, a new member
7220 function.
7221 (cplus_language_data): Delete la_language_arch_info.
7222 (asm_language_data): Likewise.
7223 (asm_language::language_arch_info): New member function.
7224 (minimal_language_data): Delete la_language_arch_info.
7225 (minimal_language::language_arch_info): New member function.
7226 * d-lang.c (d_language_arch_info): Delete function, move
7227 implementation to...
7228 (d_language::language_arch_info): ...here, a new member
7229 function.
7230 (d_language_data): Delete la_language_arch_info.
7231 * f-lang.c (f_language_arch_info): Delete function, move
7232 implementation to...
7233 (f_language::language_arch_info): ...here, a new member
7234 function.
7235 (f_language_data): Delete la_language_arch_info.
7236 * go-lang.c (go_language_arch_info): Delete function, move
7237 implementation to...
7238 (go_language::language_arch_info): ...here, a new member
7239 function.
7240 (go_language_data): Delete la_language_arch_info.
7241 * language.c (unknown_language_data): Likewise.
7242 (unknown_language::language_arch_info): New member function.
7243 (auto_language_data): Delete la_language_arch_info.
7244 (auto_language::language_arch_info): New member function.
7245 (language_gdbarch_post_init): Update call to
7246 la_language_arch_info.
7247 * language.h (language_data): Delete la_language_arch_info
7248 function pointer.
7249 (language_defn::language_arch_info): New function.
7250 * m2-lang.c (m2_language_arch_info): Delete function, move
7251 implementation to...
7252 (m2_language::language_arch_info): ...here, a new member
7253 function.
7254 (m2_language_data): Delete la_language_arch_info.
7255 * objc-lang.c (objc_language_arch_info): Delete function, move
7256 implementation to...
7257 (objc_language::language_arch_info): ...here, a new member
7258 function.
7259 (objc_language_data): Delete la_language_arch_info.
7260 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7261 implementation to...
7262 (opencl_language::language_arch_info): ...here, a new member
7263 function.
7264 (opencl_language_data): Delete la_language_arch_info.
7265 * p-lang.c (pascal_language_arch_info): Delete function, move
7266 implementation to...
7267 (pascal_language::language_arch_info): ...here, a new member
7268 function.
7269 (pascal_language_data): Delete la_language_arch_info.
7270 * rust-lang.c (rust_language_arch_info): Delete function, move
7271 implementation to...
7272 (rust_language::language_arch_info): ...here, a new member
7273 function.
7274 (rust_language_data): Delete la_language_arch_info.
7275
7276 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7279 initializer.
7280 * c-lang.c (c_language_data): Likewise.
7281 (cplus_language_data): Likewise.
7282 (cplus_language::pass_by_reference_info): New method.
7283 (asm_language_data): Delete la_pass_by_reference initializer.
7284 (minimal_language_data): Likewise.
7285 * cp-abi.c (cp_pass_by_reference): Remove use of
7286 default_pass_by_reference.
7287 * d-lang.c (d_language_data): Likewise.
7288 * f-lang.c (f_language_data): Likewise.
7289 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7290 default_pass_by_reference.
7291 * go-lang.c (go_language_data): Likewise.
7292 * language.c (language_pass_by_reference): Update.
7293 (default_pass_by_reference): Delete.
7294 (unknown_language_data): Delete la_pass_by_reference
7295 initializer.
7296 (auto_language_data): Likewise.
7297 * language.h (struct language_data): Delete la_pass_by_reference
7298 field.
7299 (language_defn::pass_by_reference_info): New member function.
7300 (default_pass_by_reference): Delete declaration.
7301 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7302 initializer.
7303 * objc-lang.c (objc_language_data): Likewise.
7304 * opencl-lang.c (opencl_language_data): Likewise.
7305 * p-lang.c (pascal_language_data): Likewise.
7306 * rust-lang.c (rust_language_data): Likewise.
7307
7308 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7309
7310 * ada-lang.c (ada_read_var_value): Delete function, move
7311 implementation to...
7312 (ada_language::read_var_value): ...here.
7313 (ada_language_data): Delete la_read_var_value initializer.
7314 * c-lang.c (c_language_data): Likewise.
7315 (cplus_language_data): Likewise.
7316 (minimal_language_data): Likewise.
7317 * d-lang.c (d_language_data): Likewise.
7318 * f-lang.c (f_language_data): Likewise.
7319 * findvar.c (default_read_var_value): Rename to...
7320 (language_defn::read_var_value): ...this.
7321 * findvar.c (read_var_value): Update header comment, and change to
7322 call member function instead of function pointer.
7323 * go-lang.c (go_language_data): Likewise.
7324 * language.c (unknown_language_data): Delete la_read_var_value
7325 initializer.
7326 (auto_language_data): Likewise.
7327 * language.h (struct language_data): Delete la_read_var_value
7328 field.
7329 (language_defn::read_var_value): New member function.
7330 (default_read_var_value): Delete declaration.
7331 * m2-lang.c (m2_language_data): Delete la_read_var_value
7332 initializer.
7333 * objc-lang.c (objc_language_data): Likewise.
7334 * opencl-lang.c (opencl_language_data): Likewise.
7335 * p-lang.c (pascal_language_data): Likewise.
7336 * rust-lang.c (rust_language_data): Likewise.
7337 * value.h (default_read_var_value): Delete declaration.
7338
7339 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7340
7341 * ada-lang.c (ada_print_array_index): Delete function, move
7342 implementation to...
7343 (ada_language::print_array_index): ...here.
7344 (ada_language_data): Delete la_print_array_index initializer.
7345 * c-lang.c (c_language_data): Likewise.
7346 (cplus_language_data): Likewise.
7347 (minimal_language_data): Likewise.
7348 * d-lang.c (d_language_data): Likewise.
7349 * f-lang.c (f_language_data): Likewise.
7350 * go-lang.c (go_language_data): Likewise.
7351 * language.c (default_print_array_index): Delete function, move
7352 implementation to...
7353 (language_defn::print_array_index): ...here.
7354 (unknown_language_data): Delete la_print_array_index initializer.
7355 (auto_language_data): Likewise.
7356 * language.h (struct language_data): Delete la_print_array_index
7357 field.
7358 (language_defn::print_array_index): New member function.
7359 (LA_PRINT_ARRAY_INDEX): Update.
7360 (default_print_array_index): Delete declaration.
7361 * m2-lang.c (m2_language_data): Delete la_print_array_index
7362 initializer.
7363 * objc-lang.c (objc_language_data): Likewise.
7364 * opencl-lang.c (opencl_language_data): Likewise.
7365 * p-lang.c (pascal_language_data): Likewise.
7366 * rust-lang.c (rust_language_data): Likewise.
7367
7368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * gdb/ada-lang.c (ada_language_defn): Convert to...
7371 (ada_language_data): ...this.
7372 (class ada_language): New class.
7373 (ada_language_defn): New static global.
7374 * gdb/c-lang.c (c_language_defn): Convert to...
7375 (c_language_data): ...this.
7376 (class c_language): New class.
7377 (c_language_defn): New static global.
7378 (cplus_language_defn): Convert to...
7379 (cplus_language_data): ...this.
7380 (class cplus_language): New class.
7381 (cplus_language_defn): New static global.
7382 (asm_language_defn): Convert to...
7383 (asm_language_data): ...this.
7384 (class asm_language): New class.
7385 (asm_language_defn): New static global.
7386 (minimal_language_defn): Convert to...
7387 (minimal_language_data): ...this.
7388 (class minimal_language): New class.
7389 (minimal_language_defn): New static global.
7390 * gdb/d-lang.c (d_language_defn): Convert to...
7391 (d_language_data): ...this.
7392 (class d_language): New class.
7393 (d_language_defn): New static global.
7394 * gdb/f-lang.c (f_language_defn): Convert to...
7395 (f_language_data): ...this.
7396 (class f_language): New class.
7397 (f_language_defn): New static global.
7398 * gdb/go-lang.c (go_language_defn): Convert to...
7399 (go_language_data): ...this.
7400 (class go_language): New class.
7401 (go_language_defn): New static global.
7402 * gdb/language.c (unknown_language_defn): Remove declaration.
7403 (current_language): Initialize to nullptr, real initialization is
7404 moved to _initialize_language.
7405 (languages): Delete global.
7406 (language_defn::languages): Define.
7407 (set_language_command): Use language_defn::languages.
7408 (set_language): Likewise.
7409 (range_error): Likewise.
7410 (language_enum): Likewise.
7411 (language_def): Likewise.
7412 (add_set_language_command): Use language_def::languages for the
7413 language list, and language_def to lookup language pointers.
7414 (skip_language_trampoline): Use language_defn::languages.
7415 (unknown_language_defn): Convert to...
7416 (unknown_language_data): ...this.
7417 (class unknown_language): New class.
7418 (unknown_language_defn): New static global.
7419 (auto_language_defn): Convert to...
7420 (auto_language_data): ...this.
7421 (class auto_language): New class.
7422 (auto_language_defn): New static global.
7423 (language_gdbarch_post_init): Use language_defn::languages.
7424 (_initialize_language): Initialize current_language.
7425 * gdb/language.h (struct language_defn): Rename to...
7426 (struct language_data): ...this.
7427 (struct language_defn): New.
7428 (auto_language_defn): Delete.
7429 (unknown_language_defn): Delete.
7430 (minimal_language_defn): Delete.
7431 (ada_language_defn): Delete.
7432 (asm_language_defn): Delete.
7433 (c_language_defn): Delete.
7434 (cplus_language_defn): Delete.
7435 (d_language_defn): Delete.
7436 (f_language_defn): Delete.
7437 (go_language_defn): Delete.
7438 (m2_language_defn): Delete.
7439 (objc_language_defn): Delete.
7440 (opencl_language_defn): Delete.
7441 (pascal_language_defn): Delete.
7442 (rust_language_defn): Delete.
7443 * gdb/m2-lang.c (m2_language_defn): Convert to...
7444 (m2_language_data): ...this.
7445 (class m2_language): New class.
7446 (m2_language_defn): New static global.
7447 * gdb/objc-lang.c (objc_language_defn): Convert to...
7448 (objc_language_data): ...this.
7449 (class objc_language): New class.
7450 (objc_language_defn): New static global.
7451 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7452 (opencl_language_data): ...this.
7453 (class opencl_language): New class.
7454 (opencl_language_defn): New static global.
7455 * gdb/p-lang.c (pascal_language_defn): Convert to...
7456 (pascal_language_data): ...this.
7457 (class pascal_language): New class.
7458 (pascal_language_defn): New static global.
7459 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7460 language pointer, update comment format.
7461 * gdb/rust-lang.c (rust_language_defn): Convert to...
7462 (rust_language_data): ...this.
7463 (class rust_language): New class.
7464 (rust_language_defn): New static global.
7465
7466 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7467
7468 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7469 member variable.
7470 <m_stmt_at_address>: New member variable.
7471 (lnp_state_machine::record_line): Don't record some lines, update
7472 tracking of is_stmt at the same address.
7473 (lnp_state_machine::lnp_state_machine): Initialise new member
7474 variables.
7475
7476 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7477
7478 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7479 "-include gnu-nat-mig.h".
7480 * gnu-nat-mig.h: New file.
7481 * gnu-nat.c: Include "gnu-nat-mig.h".
7482 (exc_server, msg_reply_server, notify_server,
7483 process_reply_server): Remove declarations.
7484
7485 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7486
7487 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7488 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7489 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7490 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7491 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7492 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7493 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7494 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7495 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7496 to gnu_nat_target class.
7497 * gnu-nat.c: Likewise.
7498 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7499 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7500 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7501 object.
7502 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7503 instead of `gnu_target'.
7504
7505 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7506
7507 * i386-gnu-tdep.c: Include "gdbcore.h"
7508 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7509 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7510 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7511 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7512 i386_gnu_sigcontext_addr): New functions
7513 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7514 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7515 tdep.
7516
7517 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7518
7519 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7520 before fork_inferior call. Avoid calling it if target_is_pushed returns
7521 true.
7522
7523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7524
7525 * gnu-nat.h (gnu_target): New variable declaration.
7526 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7527 gnu_target.
7528 * gnu-nat.c (gnu_target): New variable.
7529 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7530 add_thread_silent, and add_thread calls.
7531 (gnu_nat_target::create_inferior): Pass gnu_target to
7532 add_thread_silent, thread_change_ptid call.
7533 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7534 call.
7535
7536 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7537
7538 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7539 (gnu_nat_target::find_memory_regions): Remove unused
7540 `old_address' variable.
7541
7542 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7543
7544 * gnu-nat.c: Include "gdbarch.h".
7545
7546 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7547
7548 * reply_mig_hack.awk (Error return): Cast function through
7549 void *, to bypass compiler function call check.
7550
7551 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7552
7553 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7554 $(srcdir)/reply_mig_hack.awk.
7555
7556 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7557
7558 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7559
7560 2020-05-30 Jonny Grant <jg@jguk.org>
7561
7562 * configure.ac (ACX_BUGURL): change bug URL to https.
7563
7564 2020-05-30 Pedro Alves <palves@redhat.com>
7565
7566 * cp-support.c (replace_typedefs_template): New.
7567 (replace_typedefs_qualified_name): Handle
7568 DEMANGLE_COMPONENT_TEMPLATE.
7569
7570 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7573 dwarf2/index-cache.h, dwarf2/index-write.c,
7574 dwarf2/index-write.h, dwarf2/line-header.c,
7575 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7576 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7577 variables and fields from `dwarf2_per_objfile` to just
7578 `per_objfile` throughout.
7579
7580 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7581
7582 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7583 <push_dwarf_reg_entry_value>: Add comment.
7584
7585 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7586 Keith Seitz <keiths@redhat.com>
7587
7588 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7589 instead of PyEval_ReleaseLock.
7590 (class gdbpy_gil): Move to earlier in file.
7591 (finalize_python): Set gdb_python_initialized.
7592 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7593 when not initialized.
7594
7595 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7598 <push_dwarf_reg_entry_value>: Remove assert. Override
7599 per_objfile with caller_per_objfile.
7600
7601 2020-05-28 Tom de Vries <tdevries@suse.de>
7602
7603 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7604 PR gold/15646 workaround to symbol kind "type".
7605
7606 2020-05-27 Tom Tromey <tromey@adacore.com>
7607
7608 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7609
7610 2020-05-27 Tom Tromey <tromey@adacore.com>
7611
7612 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7613 Use htab_find_with_hash.
7614 <add_abbrev>: Remove "abbrev_number" parameter.
7615 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7616 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7617 (hash_abbrev): Add comment.
7618 (abbrev_table::lookup_abbrev): Move to header file.
7619 (abbrev_table::read): Update.
7620
7621 2020-05-27 Tom Tromey <tromey@adacore.com>
7622
7623 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7624 method.
7625 <canonical_name>: New member.
7626 <raw_name>: Rename from "name".
7627 (partial_die_info): Initialize canonical_name.
7628 (scan_partial_symbols): Check raw_name.
7629 (partial_die_parent_scope, partial_die_full_name)
7630 (add_partial_symbol, add_partial_subprogram)
7631 (add_partial_enumeration, load_partial_dies): Use "name" method.
7632 (partial_die_info::name): New method.
7633 (partial_die_info::read, guess_partial_die_structure_name)
7634 (partial_die_info::fixup): Update.
7635
7636 2020-05-27 Tom Tromey <tromey@adacore.com>
7637
7638 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7639 <get_ref_die_offset>: Inline.
7640 <get_ref_die_offset_complaint>: New method.
7641 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7642 (attribute::get_ref_die_offset_complaint): Rename from
7643 get_ref_die_offset. Just issue complaint.
7644
7645 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7646
7647 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7648
7649 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7650
7651 * exec.c (exec_file_attach): Use errno value of first openp failure.
7652
7653 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7654
7655 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7656 Don't close thread handle.
7657
7658 2020-05-27 Tom Tromey <tom@tromey.com>
7659 Simon Marchi <simon.marchi@efficios.com>
7660
7661 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7662 shared_ptr.
7663 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7664 member.
7665 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7666 dwarf2_per_bfd_objfile_data_key>: New globals.
7667 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7668 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7669 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7670 shared.
7671 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7672 short-circuit when sharing.
7673 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7674 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7675
7676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7679 to...
7680 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7681 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7682
7683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7684
7685 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7686 build_name_components, find_name_components_bounds>:
7687 Add per_objfile parameter.
7688 (struct mapped_index) <symbol_name_at>: Likewise.
7689 (struct mapped_debug_names): Remove constructor.
7690 <dwarf2_per_objfile>: Remove field.
7691 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7692 (mapped_index_base::find_name_components_bounds,
7693 mapped_index_base::build_name_components,
7694 dw2_expand_symtabs_matching_symbol): Likewise.
7695 (class mock_mapped_index) <symbol_name_at>: Likewise.
7696 (check_match): Likewise.
7697 (check_find_bounds_finds): Likewise.
7698 (test_mapped_index_find_name_component_bounds): Update.
7699 (CHECK_MATCH): Update.
7700 (dw2_expand_symtabs_matching): Update.
7701 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7702 per_objfile parameter.
7703 <find_vec_in_debug_names>: Likewise.
7704 <m_per_objfile>: New field.
7705 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7706 parameter.
7707 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7708 (dw2_debug_names_iterator::next): Update.
7709 (dw2_debug_names_lookup_symbol): Update.
7710 (dw2_debug_names_expand_symtabs_for_function): Update.
7711 (dw2_debug_names_map_matching_symbols): Update.
7712 (dw2_debug_names_expand_symtabs_matching): Update.
7713 (dwarf2_read_debug_names): Update.
7714
7715 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7718 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7719 move to dwarf2_per_objfile.
7720 <read_in_chain>: Remove.
7721 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7722 remove_all_cus, age_comp_units>: New methods.
7723 <m_dwarf2_cus>: New member.
7724 (struct dwarf2_per_cu_data) <cu>: Remove.
7725 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7726 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7727 moved to methods of dwarf2_per_objfile.
7728 (dwarf2_clear_marks): Remove.
7729 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7730 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7731 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7732 (dwarf2_per_objfile::remove_all_cus): New.
7733 (class free_cached_comp_units) <~free_cached_comp_units>:
7734 Update.
7735 (load_cu): Update.
7736 (dw2_do_instantiate_symtab): Adjust.
7737 (fill_in_sig_entry_from_dwo_entry): Adjust.
7738 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7739 (cutu_reader::cutu_reader): Likewise.
7740 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7741 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7742 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7743 and dwarf2_per_objfile::age_comp_units.
7744 (load_partial_comp_unit): Update.
7745 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7746 (process_queue): Likewise.
7747 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7748 backlink.
7749 (dwarf2_read_addr_index): Likewise.
7750 (follow_die_offset): Likewise.
7751 (dwarf2_fetch_die_loc_sect_off): Likewise.
7752 (dwarf2_fetch_constant_bytes): Likewise.
7753 (dwarf2_fetch_die_type_sect_off): Likewise.
7754 (follow_die_sig_1): Likewise.
7755 (load_full_type_unit): Likewise.
7756 (read_signatured_type): Likewise.
7757 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7758 (dwarf2_cu::~dwarf2_cu): Remove.
7759 (dwarf2_per_objfile::get_cu): New.
7760 (dwarf2_per_objfile::set_cu): New.
7761 (age_cached_comp_units): Rename to...
7762 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7763 to std::unordered_map.
7764 (free_one_cached_comp_unit): Rename to...
7765 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7766 to std::unordered_map.
7767 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7768 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7769 a dwarf2_per_objfile in data.
7770 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7771 (dwarf2_clear_marks): Remove.
7772
7773 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7776 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7777 (init_tu_and_read_dwo_dies): Likewise.
7778 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7779 (cutu_reader::cutu_reader): Likewise.
7780 (load_partial_comp_unit): Likewise.
7781 (process_psymtab_comp_unit): Update.
7782 (build_type_psymtabs_1): Update.
7783 (process_skeletonless_type_unit): Update.
7784 (load_full_comp_unit): Update.
7785 (find_partial_die): Update.
7786 (dwarf2_read_addr_index): Update.
7787 (read_signatured_type): Update.
7788
7789 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7790
7791 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7792 m_header_read_in>: New fields.
7793 <get_header>: New method.
7794 * dwarf2/read.c (per_cu_header_read_in): Remove.
7795 (dwarf2_per_cu_data::get_header): New.
7796 (dwarf2_per_cu_data::addr_size): Update.
7797 (dwarf2_per_cu_data::offset_size): Update.
7798 (dwarf2_per_cu_data::ref_addr_size): Update.
7799
7800 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7801
7802 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7803 (dw2_do_instantiate_symtab): Update.
7804 (queue_and_load_all_dwo_tus): Change parameter from
7805 dwarf2_per_cu_data to dwarf2_cu.
7806 (dwarf2_fetch_die_loc_sect_off): Update.
7807 (dwarf2_fetch_constant_bytes): Update.
7808 (dwarf2_fetch_die_type_sect_off): Update.
7809
7810 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7811
7812 * dwarf2/read.c (process_full_comp_unit,
7813 process_full_type_unit): Remove per_cu, per_objfile paramters.
7814 Add dwarf2_cu parameter.
7815 (process_queue): Update.
7816
7817 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7818
7819 * dwarf2/read.c (create_cu_from_index_list): Replace
7820 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7821 (create_cus_from_index_list): Likewise.
7822 (create_cus_from_index): Likewise.
7823 (create_signatured_type_table_from_index): Likewise.
7824 (create_cus_from_debug_names_list): Likewise.
7825 (create_cus_from_debug_names): Likewise.
7826 (dwarf2_read_gdb_index): Update.
7827 (dwarf2_read_debug_names): Update.
7828
7829 2020-05-27 Tom Tromey <tom@tromey.com>
7830 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * dwarf2/read.h (struct dwarf2_per_objfile)
7833 <get_type_for_signatured_type, set_type_for_signatured_type>:
7834 New methods.
7835 <m_type_map>: New member.
7836 (struct signatured_type) <type>: Remove.
7837 * dwarf2/read.c
7838 (dwarf2_per_objfile::get_type_for_signatured_type,
7839 dwarf2_per_objfile::set_type_for_signatured_type): New.
7840 (get_signatured_type): Use new methods.
7841
7842 2020-05-27 Tom Tromey <tom@tromey.com>
7843 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7846 (struct dwarf2_per_objfile) <type_units>: New member.
7847 <get_type_unit_group_unshareable>: New method.
7848 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7849 num_symtabs, symtabs>: Remove; move to
7850 type_unit_group_unshareable.
7851 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7852 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7853 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7854
7855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7856
7857 * dwarf2/read.h (struct dwarf2_per_cu_data):
7858 <dwarf2_per_objfile>: Remove.
7859 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7860 dwarf2_per_objfile.
7861 (create_signatured_type_table_from_index): Likewise.
7862 (create_signatured_type_table_from_debug_names): Likewise.
7863 (create_debug_type_hash_table): Likewise.
7864 (fill_in_sig_entry_from_dwo_entry): Likewise.
7865 (create_type_unit_group): Likewise.
7866 (read_comp_units_from_section): Likewise.
7867 (create_cus_hash_table): Likewise.
7868
7869 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7870
7871 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7872 dwarf2_per_cu_data::dwarf2_per_objfile.
7873 (compute_compunit_symtab_includes): Likewise.
7874 (dwarf2_cu::start_symtab): Likewise.
7875
7876 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7877
7878 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7879 parameter.
7880 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7881 (read_namespace_alias): Update.
7882 (lookup_die_type): Update.
7883 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7884 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7885 Update.
7886 (disassemble_dwarf_expression): Update.
7887
7888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7889
7890 * dwarf2/read.h (struct dwarf2_queue_item): Add
7891 dwarf2_per_objfile parameter, assign new parameter.
7892 <per_objfile>: New field.
7893 * dwarf2/read.c (free_one_cached_comp_unit): Add
7894 dwarf2_per_objfile parameter.
7895 (queue_comp_unit): Likewise.
7896 (dw2_do_instantiate_symtab): Update.
7897 (process_psymtab_comp_unit): Update.
7898 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7899 (process_imported_unit_die): Update.
7900 (queue_and_load_dwo_tu): Update.
7901 (follow_die_offset): Update.
7902 (follow_die_sig_1): Update.
7903
7904 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7907 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7908 (read_call_site_scope): Assign per_objfile.
7909 (dwarf2_per_cu_data::objfile): Remove.
7910 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7911 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7912 dwarf2_per_objfile parameter.
7913 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7914 dwarf2_per_objfile parameter.
7915 (dwarf_expr_reg_to_entry_parameter): Add output
7916 dwarf2_per_objfile parameter.
7917 (locexpr_get_frame_base): Update.
7918 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7919 <push_dwarf_reg_entry_value>: Update.
7920 <call_site_to_target_addr>: Update.
7921 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7922 parameter.
7923 (value_of_dwarf_reg_entry): Update.
7924 (rw_pieced_value): Update.
7925 (indirect_synthetic_pointer): Update.
7926 (dwarf2_evaluate_property): Update.
7927 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7928 parameter.
7929 (locexpr_read_variable): Update.
7930 (locexpr_get_symbol_read_needs): Update.
7931 (loclist_read_variable): Update.
7932
7933 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7934
7935 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7936 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7937 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7938 parameter.
7939 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7940 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7941 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7942 parameter.
7943 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7944 sect_variable_value): Add dwarf2_per_objfile parameter.
7945 (class dwarf_evaluate_loc_desc) <dwarf_call,
7946 dwarf_variable_value>: Update.
7947 (fetch_const_value_from_synthetic_pointer): Add
7948 dwarf2_per_objfile parameter.
7949 (fetch_const_value_from_synthetic_pointer): Update.
7950 (coerced_pieced_ref): Update.
7951 (class symbol_needs_eval_context) <dwarf_call,
7952 dwarf_variable_value>: Update.
7953 (dwarf2_compile_expr_to_ax): Update.
7954
7955 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7956
7957 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7958 parameter.
7959 (dwarf2_evaluate_loc_desc_full): Update.
7960
7961 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7962
7963 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7964 parameter.
7965 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7966 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7967 dwarf2_per_objfile parameter.
7968 (decode_debug_loc_dwo_addresses): Likewise.
7969 (dwarf2_find_location_expression): Update.
7970 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7971 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7972 parameter.
7973 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7974 parameter.
7975 (locexpr_describe_location_1): Likewise.
7976 (locexpr_describe_location): Update.
7977
7978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7981 Remove.
7982 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7983 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7984 (dwarf2_compile_property_to_c): Update.
7985 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7986 use text offset from objfile.
7987 (locexpr_tracepoint_var_ref): Update.
7988 (locexpr_generate_c_location): Update.
7989 (loclist_describe_location): Update.
7990 (loclist_tracepoint_var_ref): Update.
7991 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7992 dwarf2_per_objfile parameter.
7993 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7994 use text offset from objfile.
7995 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7996
7997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7998
7999 * dwarf2/expr.h (struct dwarf_expr_context)
8000 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8001 <offset>: Remove.
8002 <per_objfile>: New member.
8003 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8004 dwarf2_per_objfile parameter. Don't set offset, set
8005 per_objfile.
8006 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8007 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8008 a dwarf2_per_objfile object instead of an offset.
8009 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8010 constructor.
8011 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8012 to dwarf2_expr_executor constructor. Don't set offset.
8013 (dwarf2_fetch_cfa_info): Update.
8014 (struct dwarf2_frame_cache) <text_offset>: Remove.
8015 <per_objfile>: New field.
8016 (dwarf2_frame_cache): Update.
8017 (dwarf2_frame_prev_register): Update.
8018 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8019 <dwarf_evaluate_loc_desc>: Add constructor.
8020 (dwarf2_evaluate_loc_desc_full): Update.
8021 (dwarf2_locexpr_baton_eval): Update.
8022 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8023 Add constructor.
8024 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8025
8026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8029 addr_sized_int_type>: Move to dwarf2_cu.
8030 <int_type>: Move to dwarf2_per_objfile.
8031 (struct dwarf2_per_objfile) <int_type>: Move here.
8032 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8033 addr_sized_int_type>: Move here.
8034 (read_func_scope): Update.
8035 (read_array_type): Update.
8036 (read_tag_string_type): Update.
8037 (attr_to_dynamic_prop): Update.
8038 (dwarf2_per_cu_data::int_type): Rename to...
8039 (dwarf2_per_objfile::int_type): ... this.
8040 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8041 (dwarf2_cu::addr_sized_int_type): ... this.
8042 (read_subrange_type): Update.
8043 (dwarf2_per_cu_data::addr_type): Rename to...
8044 (dwarf2_cu::addr_type): ... this.
8045 (set_die_type): Update.
8046
8047 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8050 data through per_cu->cu.
8051
8052 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8053
8054 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8055 dwarf2_per_cu_data parameter fo dwarf2_cu.
8056 (lookup_dwo_type_unit): Likewise.
8057 (read_cutu_die_from_dwo): Likewise.
8058 (lookup_dwo_unit): Likewise.
8059 (open_and_init_dwo_file): Likewise.
8060 (lookup_dwo_cutu): Likewise.
8061 (lookup_dwo_comp_unit): Likewise.
8062 (lookup_dwo_type_unit): Likewise.
8063 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8064 (cutu_reader::cutu_reader): Update.
8065
8066 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8067
8068 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8069 parameter.
8070 (process_full_type_unit): Likewise.
8071 (process_queue): Update.
8072
8073 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * dwarf2/read.c (recursively_compute_inclusions): Add
8076 dwarf2_per_objfile parameter.
8077 (compute_compunit_symtab_includes): Likewise.
8078 (process_cu_includes): Update.
8079
8080 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8081
8082 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8083 parameter.
8084 (create_type_unit_group): Update.
8085 (process_psymtab_comp_unit_reader): Update.
8086 (build_type_psymtabs_reader): Update.
8087
8088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8091 object through m_this_cu->cu.
8092
8093 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8094
8095 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8096 the info parameter.
8097 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8098
8099 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8100
8101 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8102 per_objfile parameter.
8103 (load_full_type_unit): Add per_objfile parameter.
8104 (read_signatured_type): Likewise.
8105 (load_full_comp_unit): Likewise.
8106 (load_cu): Likewise.
8107 (dw2_do_instantiate_symtab): Likewise.
8108 (dw2_get_file_names): Likewise.
8109 (dw2_map_symtabs_matching_filename): Update.
8110 (dw_expand_symtabs_matching_file_matcher): Update.
8111 (dw2_map_symbol_filenames): Update.
8112 (process_psymtab_comp_unit): Add per_objfile parameter.
8113 (build_type_psymtabs_1): Update.
8114 (process_skeletonless_type_unit): Update.
8115 (dwarf2_build_psymtabs_hard): Update.
8116 (load_partial_comp_unit): Add per_objfile parameter.
8117 (scan_partial_symbols): Update.
8118 (load_full_comp_unit): Add per_objfile parameter.
8119 (process_imported_unit_die): Update.
8120 (create_cus_hash_table): Update.
8121 (find_partial_die): Update.
8122 (dwarf2_read_addr_index): Update.
8123 (follow_die_offset): Update.
8124 (dwarf2_fetch_die_loc_sect_off): Update.
8125 (dwarf2_fetch_constant_bytes): Update.
8126 (dwarf2_fetch_die_type_sect_off): Update.
8127 (follow_die_sig_1): Update.
8128 (load_full_type_unit): Add per_objfile parameter.
8129 (read_signatured_type): Likewise.
8130
8131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8134 of objfile_name.
8135
8136 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8137
8138 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8139 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8140 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8141 field.
8142 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8143 (create_cus_from_index): Update.
8144 (dwarf2_read_gdb_index): Update.
8145 (create_cus_from_debug_names): Update.
8146 (dwarf2_read_debug_names): Update.
8147 (get_abbrev_section_for_cu): Update.
8148 (create_all_comp_units): Update.
8149 (read_attribute_value): Update.
8150 (get_debug_line_section): Update.
8151 * dwarf2/index-cache.c (index_cache::store): Update.
8152 * dwarf2/index-write.c (save_gdb_index_command): Update.
8153 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8154
8155 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8156
8157 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8158 member.
8159 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8160 dwarf2_per_cu_data::per_bfd.
8161 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8162 (create_type_unit_group): Likewise.
8163 (queue_comp_unit): Remove reference to
8164 per_cu->dwarf2_per_objfile.
8165 (maybe_queue_comp_unit): Likewise.
8166 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8167 (create_cus_hash_table): Assign new field.
8168
8169 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8170
8171 * dwarf2/read.c: Replace
8172 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8173 dwarf2_cu->per_objfile throughout.
8174
8175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8178 parameter, don't use per_cu->dwarf2_per_objfile.
8179 (dw2_instantiate_symtab): Likewise.
8180 (dw2_find_last_source_symtab): Update.
8181 (dw2_map_expand_apply): Update.
8182 (dw2_lookup_symbol): Update.
8183 (dw2_expand_symtabs_for_function): Update.
8184 (dw2_expand_all_symtabs): Update.
8185 (dw2_expand_symtabs_with_fullname): Update.
8186 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8187 don't use per_cu->dwarf2_per_objfile.
8188 (dw2_expand_marked_cus): Update.
8189 (dw2_find_pc_sect_compunit_symtab): Update.
8190 (dw2_debug_names_lookup_symbol): Update.
8191 (dw2_debug_names_expand_symtabs_for_function): Update.
8192 (dw2_debug_names_map_matching_symbols): Update.
8193 (dwarf2_psymtab::expand_psymtab): Update.
8194
8195 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8198 <per_objfile>: New member.
8199 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8200 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8201 call to dwarf2_cu.
8202 (cutu_reader::cutu_reader): Update.
8203 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8204
8205 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8206
8207 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8208 struct dwarf2_per_objfile.
8209 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8210 dwarf2_per_bfd.
8211 * dwarf2/read.c (set_die_type): Update.
8212 (get_die_type_at_offset): Update.
8213
8214 2020-05-27 Tom Tromey <tom@tromey.com>
8215 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8218 method.
8219 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8220 get_symtab, set_symtab>: New methods.
8221 <m_symtabs>: New field.
8222 (struct dwarf2_psymtab): Derive from partial_symtab.
8223 <readin_p, get_compunit_symtab>: Declare methods.
8224 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8225 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8226 New methods.
8227 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8228 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8229 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8230 (dw2_symtab_iter_next, dw2_print_stats)
8231 (dw2_expand_symtabs_with_fullname)
8232 (dw2_expand_symtabs_matching_one)
8233 (dw_expand_symtabs_matching_file_matcher)
8234 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8235 (dw2_debug_names_iterator::next)
8236 (dw2_debug_names_map_matching_symbols)
8237 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8238 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8239 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8240 New methods.
8241 (get_compunit_symtab, process_full_comp_unit)
8242 (process_full_type_unit): Update.
8243 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8244
8245 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8246
8247 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8248 then introduce a new dwarf2_per_objfile type.
8249 <read_line_string>: Move to the new dwarf2_per_objfile type.
8250 <objfile>: Likewise.
8251 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8252 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8253 dwarf2_per_objfile->per_bfd.
8254 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8255 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8256 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8257 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8258 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8259 (dwarf2_per_objfile::locate_sections): Rename to...
8260 (dwarf2_per_bfd::locate_sections): ... this.
8261 (dwarf2_per_objfile::get_cutu): Rename to...
8262 (dwarf2_per_bfd::get_cutu): ... this.
8263 (dwarf2_per_objfile::get_cu): Rename to...
8264 (dwarf2_per_bfd::get_cu): ... this.
8265 (dwarf2_per_objfile::get_tu): Rename to...
8266 (dwarf2_per_bfd::get_tu): ... this.
8267 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8268 (dwarf2_per_bfd::allocate_per_cu): ... this.
8269 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8270 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8271 (get_gdb_index_contents_ftype): Change parameter from
8272 dwarf2_per_objfile to dwarf2_per_bfd.
8273 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8274 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8275
8276 2020-05-27 Tom Tromey <tom@tromey.com>
8277 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8280 (allocate_piece_closure): Set "per_objfile" member.
8281 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8282 (locexpr_describe_location, loclist_describe_location): Use new
8283 member.
8284 * dwarf2/read.c (read_call_site_scope)
8285 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8286 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8287 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8288 handle_data_member_location): Set per_objfile member.
8289 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8290 member.
8291 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8292
8293 2020-05-27 Tom Tromey <tom@tromey.com>
8294
8295 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8296 allocate_signatured_type>: Declare new methods.
8297 <m_num_psymtabs>: New member.
8298 (struct dwarf2_per_cu_data) <index>: New member.
8299 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8300 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8301 (create_cu_from_index_list): Use allocate_per_cu.
8302 (create_signatured_type_table_from_index)
8303 (create_signatured_type_table_from_debug_names)
8304 (create_debug_type_hash_table, add_type_unit)
8305 (read_comp_units_from_section): Use allocate_signatured_type.
8306
8307 2020-05-27 Tom Tromey <tom@tromey.com>
8308
8309 * psymtab.c (partial_map_expand_apply)
8310 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8311 (psym_lookup_global_symbol_language)
8312 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8313 (psym_print_stats, psym_expand_symtabs_for_function)
8314 (psym_map_symbol_filenames, psym_map_matching_symbols)
8315 (psym_expand_symtabs_matching)
8316 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8317 (maintenance_check_psymtabs): Update.
8318 * psympriv.h (struct partial_symtab) <readin_p,
8319 get_compunit_symtab>: Add objfile parameter.
8320 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8321 Likewise.
8322 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8323 get_compunit_symtab>: Likewise.
8324 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8325
8326 2020-05-27 Tom Tromey <tom@tromey.com>
8327
8328 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8329 member.
8330 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8331 (create_cu_from_index_list)
8332 (create_signatured_type_table_from_index)
8333 (create_signatured_type_table_from_debug_names)
8334 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8335 (dwarf2_create_include_psymtab)
8336 (create_debug_type_hash_table, add_type_unit)
8337 (create_type_unit_group, read_comp_units_from_section)
8338 (dwarf2_compute_name, create_cus_hash_table)
8339 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8340 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8341 obstack.
8342 (dw2_get_real_path): Likewise. Change argument to
8343 dwarf2_per_objfile.
8344
8345 2020-05-27 Luis Machado <luis.machado@linaro.org>
8346
8347 PR tdep/26000
8348 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8349 for ldrd (immediate).
8350
8351 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8352
8353 * command.h: Add comment giving the name of class_tui.
8354 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8355 create the fake command for the help for class_tui.
8356
8357 2020-05-26 Tom Tromey <tromey@adacore.com>
8358
8359 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8360 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8361 (val_atr): New function.
8362 (value_val_atr): Use it.
8363 * ada-valprint.c (print_optional_low_bound): Change low bound
8364 handling for enums.
8365 (val_print_packed_array_elements): Don't call discrete_position.
8366 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8367 discrete_position for enum types.
8368 * language.c (default_print_array_index): Change type.
8369 * language.h (struct language_defn) <la_print_array_index>: Add
8370 index_type parameter, change type of index_value.
8371 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8372 (default_print_array_index): Update.
8373 * valprint.c (maybe_print_array_index): Don't call
8374 value_from_longest. Update.
8375 (value_print_array_elements): Don't call discrete_position.
8376
8377 2020-05-26 Tom Tromey <tromey@adacore.com>
8378
8379 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8380 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8381
8382 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8383
8384 PR gdb/13519
8385 * avr-tdep.c (avr_integer_to_address): Return data or code
8386 address accordingly to the second 'type' argument of the
8387 function.
8388
8389 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8390
8391 * infcmd.c, inferior.h: (construct_inferior_arguments):
8392 Moved function from here to gdbsupport/common-inferior.{h,cc}
8393
8394 2020-05-23 Tom Tromey <tom@tromey.com>
8395
8396 Revert commit eca1f90c:
8397 * NEWS: Remove entry for completion styling.
8398 * completer.c (_rl_completion_prefix_display_length): Move
8399 declaration later.
8400 (gdb_fnprint): Revert.
8401 (gdb_display_match_list_1): Likewise.
8402 * cli/cli-style.c (completion_prefix_style)
8403 (completion_difference_style, completion_suffix_style): Remove.
8404 (_initialize_cli_style): Revert.
8405 * cli/cli-style.h (completion_prefix_style)
8406 (completion_difference_style, completion_suffix_style): Don't
8407 declare.
8408
8409 2020-05-24 Pedro Alves <palves@redhat.com>
8410
8411 * symtab.c (completion_list_add_name): Return boolean indication
8412 of whether the symbol matched.
8413 (completion_list_add_symbol): Don't try to remove C++ aliases if
8414 the symbol didn't match in the first place.
8415 * symtab.h (completion_list_add_name): Return bool.
8416
8417 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8418
8419 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8420 type::field.
8421
8422 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8423
8424 GDB 9.2 released.
8425
8426 2020-05-23 Tom Tromey <tom@tromey.com>
8427
8428 * NEWS: Add entry for completion styling.
8429 * completer.c (_rl_completion_prefix_display_length): Move
8430 declaration earlier.
8431 (gdb_fnprint): Use completion_style.
8432 (gdb_display_match_list_1): Likewise.
8433 * cli/cli-style.c (completion_prefix_style)
8434 (completion_difference_style, completion_suffix_style): New
8435 globals.
8436 (_initialize_cli_style): Register new globals.
8437 * cli/cli-style.h (completion_prefix_style)
8438 (completion_difference_style, completion_suffix_style): Declare.
8439
8440 2020-05-23 Pedro Alves <palves@redhat.com>
8441
8442 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8443 (parse_escape): Use ISDIGIT instead of isdigit.
8444 (puts_debug): Use gdb_isprint instead of isprint.
8445 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8446 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8447 ISSPACE instead of isspace.
8448 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8449 instead of isspace.
8450 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8451 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8452 instead of isxdigit and ISDIGIT instead of isdigit.
8453
8454 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8455
8456 * gdbtypes.h (struct type) <field>: New method.
8457 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8458 or type::field.
8459
8460 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8461
8462 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8463 (TYPE_FIELDS): Use type::fields. Change all call sites that
8464 modify the propery to use type::set_fields instead.
8465
8466 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8467
8468 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8469 type::num_fields instead.
8470
8471 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8474 methods.
8475 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8476 that modify the number of fields to use type::set_num_fields
8477 instead.
8478
8479 2020-05-22 Tom Tromey <tromey@adacore.com>
8480
8481 * compile/compile-object-load.h (munmap_list_free): Don't
8482 declare.
8483
8484 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * annotate.c (annotate_source_line): Update return type, add call
8487 to update current symtab and line.
8488 * annotate.h (annotate_source_line): Update return type, and
8489 extend header comment.
8490 * source.c (info_line_command): Check annotation_level before
8491 calling annotate_source_line.
8492 * stack.c (print_frame_info): If calling annotate_source_line
8493 returns true, then don't print any other source line information.
8494
8495 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8496
8497 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8498
8499 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8500
8501 * coffread.c (patch_type): Remove NULL check before xfree.
8502 * corefile.c (set_gnutarget): Likewise.
8503 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8504 * exec.c (build_section_table): Likewise.
8505 * remote.c (remote_target::pass_signals): Likewise.
8506 * utils.c (n_spaces): Likewise.
8507 * cli/cli-script.c (document_command): Likewise.
8508 * i386-windows-tdep.c (core_process_module_section): Likewise.
8509 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8510
8511 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * symfile.c (reread_symbols): Clear objfile's section_offsets
8514 vector and section indices, re-compute them by calling
8515 sym_offsets.
8516
8517 2020-05-20 Tom Tromey <tromey@adacore.com>
8518
8519 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8520 (desc_one_bound, desc_index_type): Compute field name.
8521
8522 2020-05-20 Tom de Vries <tdevries@suse.de>
8523
8524 PR symtab/25833
8525 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8526
8527 2020-05-20 Alan Modra <amodra@gmail.com>
8528
8529 PR 25993
8530 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8531 bfd_set_filename.
8532 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8533 passed to bfd_set_filename.
8534 * symfile-mem.c (add_vsyscall_page): Likewise for string
8535 passed to symbol_file_add_from_memory.
8536 (symbol_file_add_from_memory): Make name param a const char* and
8537 don't strdup.
8538
8539 2020-05-20 Alan Modra <amodra@gmail.com>
8540
8541 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8542 rather than accessing bfd->filename directly.
8543 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8544 and use bfd_section_name.
8545 * dwarf2/frame.c (decode_frame_entry): Likewise.
8546 * exec.c (exec_set_section_address): Likewise.
8547 * solib-aix.c (solib_aix_bfd_open): Likewise.
8548 * stap-probe.c (get_stap_base_address): Likewise.
8549 * symfile.c (reread_symbols): Likewise.
8550
8551 2020-05-19 Tom Tromey <tromey@adacore.com>
8552
8553 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8554
8555 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8558
8559 2020-05-19 Pedro Alves <palves@redhat.com>
8560
8561 * NEWS (set exec-file-mismatch): Adjust entry.
8562 * exec.c: Include "build-id.h".
8563 (validate_exec_file): Try to match build IDs instead of filenames.
8564 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8565 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8566 and pass down 'warn_if_slow'.
8567 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8568 gdb_bfd_open_closure to pass it down.
8569 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8570
8571 2020-05-19 Pedro Alves <palves@redhat.com>
8572
8573 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8574 * target.c (target_fileio_open_1): Rename to target_fileio_open
8575 and make extern. Use bool.
8576 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8577 (target_fileio_read_alloc_1): Adjust.
8578 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8579 (target_fileio_open_warn_if_slow): Delete declaration.
8580
8581 2020-05-19 Pedro Alves <palves@redhat.com>
8582
8583 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8584 Adjust all callers.
8585
8586 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8587
8588 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8589 whether disp is negative.
8590
8591 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * symfile.h (struct symfile_segment_data)
8594 <~symfile_segment_data>: Remove.
8595 <segment_info>: Change to std::vector.
8596 * symfile.c (default_symfile_segments): Update.
8597 * elfread.c (elf_symfile_segments): Update.
8598
8599 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8600
8601 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8602 <segments>: New.
8603 <segment_bases, segment_sizes>: Remove.
8604 * symfile.c (default_symfile_segments): Update.
8605 * elfread.c (elf_symfile_segments): Update.
8606 * remote.c (remote_target::get_offsets): Update.
8607 * solib-target.c (solib_target_relocate_section_addresses):
8608 Update.
8609
8610 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * symfile.h (struct symfile_segment_data): Initialize fields.
8613 <~symfile_segment_data>: Add.
8614 (symfile_segment_data_up): New.
8615 (struct sym_fns) <sym_segments>: Return a
8616 symfile_segment_data_up.
8617 (default_symfile_segments): Return a symfile_segment_data_up.
8618 (free_symfile_segment_data): Remove.
8619 (get_symfile_segment_data): Return a symfile_segment_data_up.
8620 * symfile.c (default_symfile_segments): Likewise.
8621 (get_symfile_segment_data): Likewise.
8622 (free_symfile_segment_data): Remove.
8623 (symfile_find_segment_sections): Update.
8624 * elfread.c (elf_symfile_segments): Return a
8625 symfile_segment_data_up.
8626 * remote.c (remote_target::get_offsets): Update.
8627 * solib-target.c (solib_target_relocate_section_addresses):
8628 Update.
8629 * symfile-debug.c (debug_sym_segments): Return a
8630 symfile_segment_data_up.
8631
8632 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8633
8634 PR build/25981
8635 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8636 Hardcode register numbers.
8637
8638 PR build/25981
8639 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8640 procfs_find_LDT_entry): Remove.
8641 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8642 procfs_find_LDT_entry): Remove.
8643 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8644 Remove.
8645
8646 2020-05-17 Pedro Alves <palves@redhat.com>
8647 Andrew Burgess <andrew.burgess@embecosm.com>
8648 Keno Fischer <keno@juliacomputing.com>
8649
8650 PR gdb/25741
8651 * breakpoint.c (build_target_condition_list): Update comments.
8652 (build_target_command_list): Update comments and skip matching
8653 locations.
8654 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8655 a separate function. Simplify "set breakpoint auto-hw off"
8656 handling.
8657 (insert_breakpoints): Update comment.
8658 (tracepoint_locations_match): New parameter. For breakpoints,
8659 compare location types too, if the caller wants to.
8660 (handle_automatic_hardware_breakpoints): New functions.
8661 (bp_location_is_less_than): Also sort by location type and
8662 hardware breakpoint length.
8663 (update_global_location_list): Handle "set breakpoint auto-hw on"
8664 here.
8665 (update_breakpoint_locations): Ask breakpoint_locations_match to
8666 ignore location types.
8667
8668 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8671 type::name instead.
8672
8673 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8674
8675 * gdbtypes.h (struct type) <name, set_name>: New methods.
8676 (TYPE_CODE): Use type::name. Change all call sites used to set
8677 the name to use type::set_name instead.
8678
8679 2020-05-16 Tom Tromey <tom@tromey.com>
8680
8681 * top.c (quit_force): Update.
8682 * infrun.c (handle_no_resumed): Update.
8683 * top.h (all_uis): New function.
8684 (ALL_UIS): Remove.
8685
8686 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8689
8690 2020-05-16 Pedro Alves <palves@redhat.com>
8691
8692 * ia64-linux-nat.c
8693 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8694 Declare method.
8695 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8696
8697 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8700 (sparc64_adi_info): Likewise.
8701
8702 2020-05-15 Tom Tromey <tom@tromey.com>
8703
8704 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8705 block_objfile.
8706 (lookup_objfile_from_block): Remove.
8707 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8708 (lookup_global_symbol): Use block_objfile.
8709 * symtab.h (lookup_objfile_from_block): Don't declare.
8710 * printcmd.c (clear_dangling_display_expressions): Use
8711 block_objfile.
8712 * parse.c (operator_check_standard): Use block_objfile.
8713
8714 2020-05-15 Tom Tromey <tom@tromey.com>
8715
8716 * language.c (language_alloc_type_symbol): Set
8717 SYMBOL_SECTION.
8718 * symtab.c (initialize_objfile_symbol): Remove.
8719 (allocate_symbol): Remove.
8720 (allocate_template_symbol): Remove.
8721 * dwarf2/read.c (fixup_go_packaging): Use "new".
8722 (new_symbol): Use "new".
8723 (read_variable): Don't call initialize_objfile_symbol. Use
8724 "new".
8725 (read_func_scope): Use "new".
8726 * xcoffread.c (process_xcoff_symbol): Don't call
8727 initialize_objfile_symbol.
8728 (SYMBOL_DUP): Remove.
8729 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8730 "new".
8731 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8732 (allocate_template_symbol): Don't declare.
8733 (struct symbol): Add copy constructor. Change defaults.
8734 * jit.c (finalize_symtab): Use "new".
8735 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8736 Use "new".
8737 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8738 (common_block_end): Use "new".
8739 * mdebugread.c (parse_symbol): Use "new".
8740 (new_symbol): Likewise.
8741
8742 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8743
8744 * NEWS: Mention changes to help and apropos.
8745
8746 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8747
8748 * command.h (enum command_class): Improve comments, document
8749 that class_alias is for user-defined aliases, give the class
8750 name for each class, remove unused class_xdb.
8751 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8752 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8753 by a precise class.
8754 * infcmd.c (_initialize_infcmd): Likewise.
8755 * reverse.c (_initialize_reverse): Likewise.
8756 * stack.c (_initialize_stack): Likewise.
8757 * symfile.c (_initialize_symfile): Likewise.
8758 * tracepoint.c (_initialize_tracepoint): Likewise.
8759
8760 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8761
8762 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8763 when their aliased command is traversed.
8764 (help_cmd): Add fput_command_names_styled call to
8765 output command name and aliases when command has an alias.
8766
8767 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8768
8769 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8770 * cli/cli-decode.c (help_cmd_list): Declare as static,
8771 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8772 a command together with the command.
8773 (fput_command_name_styled, fput_command_names_styled): New functions.
8774 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8775 fput_command_name_styled.
8776 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8777 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8778
8779 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8780
8781 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8782 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8783 * command.h (cmd_show_list): Likewise.
8784 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8785 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8786
8787 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8788
8789 * unittests/command-def-selftests.c (traverse_command_structure):
8790 Verify all commands of a list have the same prefix command and
8791 that only the top cmdlist commands have a null prefix.
8792
8793 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8794
8795 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8796 as prefix, not one of its aliases.
8797 (set_cmd_prefix): Remove.
8798 (do_add_cmd): Centralize the setting of the prefix of a command, when
8799 command is defined after its full chain of prefix commands.
8800 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8801 (add_setshow_cmd_full): Likewise.
8802 (update_prefix_field_of_prefixed_commands): New function.
8803 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8804 update_prefix_field_of_prefixed_commands.
8805 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8806 addresses of remote_set_cmdlist and remote_show_cmdlist given
8807 as argument, not the address of an argument.
8808 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8809 * gdb/remote.c (_initialize_remote): Likewise.
8810
8811 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8812
8813 * cli/cli-cmds.c (alias_command): Check for an existing alias
8814 using lookup_cmd_composition, as valid_command_p is too strict
8815 and forbids aliases that are the prefix of an existing alias
8816 or command.
8817 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8818 command is properly recognised as a valid command.
8819
8820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821
8822 * unittests/help-doc-selftests.c: Rename to
8823 unittests/command-def-selftests.c
8824 * unittests/command-def-selftests.c (help_doc_tests): Update some
8825 comments.
8826 (command_structure_tests, traverse_command_structure): New namespace
8827 and function.
8828 (command_structure_invariants_tests): New function.
8829 (_initialize_command_def_selftests) Renamed from
8830 _initialize_help_doc_selftests, register command_structure_invariants
8831 selftest.
8832
8833 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8834
8835 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8836 an alias of 'show'.
8837
8838 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8839
8840 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8841 ada_is_fixed_point_type. Update all callers.
8842 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8843 all callers.
8844 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8845 Update all callers.
8846 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8847 print_fixed_point_type. Update all callers.
8848 * ada-valprint.c (ada_value_print_num): Replace call to
8849 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8850
8851 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8852
8853 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8854 processors.
8855 (cpu_supports_bts): Add CV_AMD case.
8856
8857 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8858 Simon Marchi <simon.marchi@efficios.com>
8859
8860 * infrun.c (stop_all_threads): Collect multiple wait events at
8861 each pass.
8862
8863 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8864
8865 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8866 type::code instead.
8867
8868 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8869
8870 * gdbtypes.h (struct type) <code, set_code>: New methods.
8871 (TYPE_CODE): Use type::code. Change all call sites used to set
8872 the code to use type::set_code instead.
8873
8874 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8875 Tom de Vries <tdevries@suse.de>
8876 Pedro Alves <palves@redhat.com>
8877
8878 PR threads/25478
8879 * infrun.c (stop_all_threads): Do NOT ignore
8880 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8881 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8882 received.
8883 (handle_no_resumed): Remove code handling a live inferior with no
8884 threads.
8885 * remote.c (has_single_non_exited_thread): New.
8886 (remote_target::update_thread_list): Do not delete a thread if is
8887 the last thread of the process.
8888 * thread.c (thread_select): Call delete_exited_threads instead of
8889 prune_threads.
8890
8891 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8892
8893 * infrun.c (stop_all_threads): Enable/disable thread events of all
8894 targets. Move a debug message denoting the end of the function
8895 into the SCOPED_EXIT block.
8896
8897 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8898
8899 * process-stratum-target.h: Include <set>.
8900 (all_non_exited_process_targets, switch_to_target_no_thread): New
8901 function declarations.
8902 * process-stratum-target.c (all_non_exited_process_targets)
8903 (switch_to_target_no_thread): New function implementations.
8904
8905 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8906
8907 * infrun.c (handle_inferior_event): Extract out a piece of code
8908 into...
8909 (mark_non_executing_threads): ...this new function.
8910
8911 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8912
8913 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8914 use.
8915
8916 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8917
8918 * regcache.c (regcache_read_pc_protected): New function
8919 implementation that returns 0 if the PC cannot read via
8920 'regcache_read_pc'.
8921 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8922 instead of 'regcache_read_pc'.
8923 (keep_going_pass_signal): Ditto.
8924
8925 2020-05-13 Tom Tromey <tromey@adacore.com>
8926
8927 * ada-lang.c (align_value): Remove.
8928 (ada_template_to_fixed_record_type_1): Use align_up.
8929
8930 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8931
8932 * async-event.c: Update the copyright year.
8933 * async-event.h: Update the copyright year.
8934
8935 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * objfiles.h (is_addr_in_objfile,
8938 shared_objfile_contains_address_p): Return bool.
8939 * objfile.c (is_addr_in_objfile,
8940 shared_objfile_contains_address_p): Return bool.
8941
8942 2020-05-11 Tom Tromey <tromey@adacore.com>
8943
8944 * cli/cli-cmds.c (info_command): Restore.
8945 (_initialize_cli_cmds): Use add_prefix_command for "info".
8946 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8947
8948 2020-05-11 Tom Tromey <tromey@adacore.com>
8949
8950 * ada-lang.c (ada_value_primitive_field): Now public.
8951 * ada-lang.h (ada_value_primitive_field): Declare.
8952 * ada-valprint.c (print_field_values): Use
8953 ada_value_primitive_field for wrapper fields.
8954
8955 2020-05-11 Tom de Vries <tdevries@suse.de>
8956
8957 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8958 MODULE_DOMAIN.
8959
8960 2020-05-11 Tom de Vries <tdevries@suse.de>
8961
8962 PR symtab/25941
8963 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8964 with length 0, if not gdb-produced.
8965 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8966
8967 2020-05-09 Tom de Vries <tdevries@suse.de>
8968
8969 PR gdb/25955
8970 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8971 calculation.
8972
8973 2020-05-09 Tom Tromey <tom@tromey.com>
8974
8975 * top.c (server_command): Now bool.
8976 * top.h (server_command): Now bool.
8977
8978 2020-05-08 Tom Tromey <tromey@adacore.com>
8979
8980 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8981 already being processed.
8982
8983 2020-05-08 Tom Tromey <tom@tromey.com>
8984
8985 * printcmd.c (struct display) <next>: Remove.
8986 <display>: New constructor.
8987 <exp_string>: Now a std::string.
8988 <enabled_p>: Now a bool.
8989 (display_number): Move definition earlier.
8990 (displays): Rename from display_chain. Now a std::vector.
8991 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8992 (display_command): Update.
8993 (do_one_display, disable_display)
8994 (enable_disable_display_command, do_enable_disable_display):
8995 Update.
8996 (free_display): Remove.
8997 (clear_displays): Rewrite.
8998 (delete_display): Update.
8999 (map_display_numbers): Use function_view. Remove "data"
9000 parameter. Update.
9001 (do_delete_display): Remove.
9002 (undisplay_command): Update.
9003 (do_one_display, do_displays, disable_display)
9004 (info_display_command): Update.
9005 (do_enable_disable_display): Remove.
9006 (enable_disable_display_command)
9007 (clear_dangling_display_expressions): Update.
9008
9009 2020-05-08 Tom Tromey <tom@tromey.com>
9010
9011 * symtab.c (set_symbol_cache_size)
9012 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9013 (maintenance_print_symbol_cache_statistics): Update.
9014 * symmisc.c (print_symbol_bcache_statistics)
9015 (print_objfile_statistics, maintenance_print_objfiles)
9016 (maintenance_info_symtabs, maintenance_check_symtabs)
9017 (maintenance_expand_symtabs, maintenance_info_line_tables):
9018 Update.
9019 * symfile-debug.c (set_debug_symfile): Update.
9020 * source.c (forget_cached_source_info): Update.
9021 * python/python.c (gdbpy_progspaces): Update.
9022 * psymtab.c (maintenance_info_psymtabs): Update.
9023 * probe.c (parse_probes): Update.
9024 * linespec.c (iterate_over_all_matching_symtabs)
9025 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9026 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9027 * exec.c (exec_target::close): Update.
9028 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9029 * breakpoint.c (print_one_breakpoint_location)
9030 (create_longjmp_master_breakpoint)
9031 (create_std_terminate_master_breakpoint): Update.
9032 * progspace.c (program_spaces): Now a std::vector.
9033 (maybe_new_address_space): Update.
9034 (add_program_space): Remove.
9035 (program_space::program_space): Update.
9036 (remove_program_space): Update.
9037 (number_of_program_spaces): Remove.
9038 (print_program_space, update_address_spaces): Update.
9039 * progspace.h (program_spaces): Change type.
9040 (ALL_PSPACES): Remove.
9041 (number_of_program_spaces): Don't declare.
9042 (struct program_space) <next>: Remove.
9043
9044 2020-05-08 Tom Tromey <tom@tromey.com>
9045
9046 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9047 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9048 (enable_break): Update.
9049 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9050 (frv_fdpic_find_canonical_descriptor): Update.
9051 (frv_fetch_objfile_link_map): Update.
9052 * progspace.c (program_space::free_all_objfiles): Update.
9053 (program_space::solibs): New method.
9054 * progspace.h (struct program_space) <solibs>: New method.
9055 * solist.h (master_so_list): Don't declare.
9056 (ALL_SO_LIBS): Remove.
9057 * solib.h (so_list_head): Remove.
9058 (update_solib_list): Update comment.
9059 * solib.c (master_so_list): Remove.
9060 (solib_used, update_solib_list, solib_add)
9061 (info_sharedlibrary_command, clear_solib)
9062 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9063
9064 2020-05-08 Tom Tromey <tom@tromey.com>
9065
9066 * extension.c (extension_languages): Now a std::array.
9067 (ALL_EXTENSION_LANGUAGES): Remove.
9068 (get_ext_lang_defn, get_ext_lang_of_file)
9069 (eval_ext_lang_from_control_command): Update.
9070 (finish_ext_lang_initialization)
9071 (auto_load_ext_lang_scripts_for_objfile)
9072 (ext_lang_type_printers::ext_lang_type_printers)
9073 (apply_ext_lang_type_printers)
9074 (ext_lang_type_printers::~ext_lang_type_printers)
9075 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9076 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9077 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9078 (get_matching_xmethod_workers, ext_lang_colorize)
9079 (ext_lang_before_prompt): Update.
9080 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9081
9082 2020-05-08 Tom Tromey <tom@tromey.com>
9083
9084 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9085 overload.
9086 <swap_string, m_string>: Remove.
9087 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9088 Update.
9089 * stabsread.c (define_symbol, read_type): Update.
9090 * linespec.c (find_linespec_symbols): Update.
9091 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9092 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9093 * dbxread.c (read_dbx_symtab): Update.
9094 * cp-support.h (cp_canonicalize_string_full)
9095 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9096 Return unique_xmalloc_ptr.
9097 * cp-support.c (inspect_type): Update.
9098 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9099 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9100 Likewise.
9101 * c-typeprint.c (print_name_maybe_canonical): Update.
9102 * break-catch-throw.c (check_status_exception_catchpoint):
9103 Update.
9104
9105 2020-05-08 Tom de Vries <tdevries@suse.de>
9106
9107 * infrun.c (follow_fork): Copy current_line and current_symtab to
9108 child thread.
9109
9110 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * async-event.c (struct async_signal_handler, struct
9113 async_event_handler): Reformat, remove typedef.
9114
9115 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9118 access thistype->main_type->dyn_prop_list directly.
9119
9120 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9123 (remove_dyn_prop): Remove. Update all users to use
9124 type::remove_dyn_prop.
9125 * gdbtypes.c (remove_dyn_prop): Rename to...
9126 (type::remove_dyn_prop): ... this.
9127
9128 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9129
9130 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9131 (add_dyn_prop): Remove. Update all users to use
9132 type::add_dyn_prop.
9133 * gdbtypes.c (add_dyn_prop): Rename to...
9134 (type::add_dyn_prop): ... this.
9135
9136 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9139 (get_dyn_prop): Remove. Update all users to use
9140 type::dyn_prop.
9141 * gdbtypes.c (get_dyn_prop): Rename to...
9142 (type::dyn_prop): ... this.
9143
9144 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9145
9146 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9147
9148 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9149
9150 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9151 instruction, skip it if it's there.
9152
9153 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9156
9157 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9160 * gdbtypes.c (recursive_dump_type): Remove use of
9161 TYPE_INCOMPLETE.
9162
9163 2020-05-03 Tom Tromey <tom@tromey.com>
9164
9165 * breakpoint.c (catch_command, tcatch_command): Remove.
9166 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9167 add_show_prefix_cmd.
9168 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9169 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9170 Remove.
9171 (add_internal_problem_command): Use add_basic_prefix_cmd,
9172 add_show_prefix_cmd.
9173 * mips-tdep.c (set_mipsfpu_command): Remove.
9174 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9175 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9176 (_initialize_index_cache): Use add_basic_prefix_cmd.
9177 * memattr.c (dummy_cmd): Remove.
9178 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9179 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9180 (_initialize_tui_win): Use add_basic_prefix_cmd,
9181 add_show_prefix_cmd.
9182 * cli/cli-logging.c (set_logging_command): Remove.
9183 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9184 add_show_prefix_cmd.
9185 (show_logging_command): Remove.
9186 * target.c (target_command): Remove.
9187 (add_target): Use add_basic_prefix_cmd.
9188
9189 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9190
9191 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9192
9193 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9194
9195 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9196 info_command.
9197
9198 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9199
9200 * nbsd-nat.c (nbsd_enable_proc_events)
9201 (nbsd_nat_target::post_startup_inferior): Add.
9202 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9203 (nbsd_nat_target::update_thread_list): Rewrite.
9204 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9205 "PTRACE_LWP_CREATE".
9206 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9207
9208 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9209
9210 * stack.c (_initialize_stack): Remove duplicated creation
9211 of "frame" command and "f" alias.
9212
9213 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9214
9215 PR gdb/18706
9216 * gdbtypes.c (check_typedef): Calculate size of array of
9217 stubbed type.
9218
9219 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9220
9221 PR gdb/15559
9222 * i386-tdep.c (i386_push_dummy_call): Call
9223 i386_thiscall_push_dummy_call.
9224 (i386_thiscall_push_dummy_call): New function.
9225 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9226 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9227 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9228
9229 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * gdbarch.sh (do_read): Add shellcheck disable directive for
9232 warning SC2162.
9233
9234 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9237 "referenced but not assigned" warning.
9238
9239 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * gdbarch.sh: Remove code that sets fallbackdefault.
9242
9243 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbarch.sh: Use shell operators && and || instead of
9246 -a and -o.
9247
9248 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * gdbarch.sh: Use $(...) instead of `...`.
9251
9252 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * gdbarch.sh: Use double quotes around variables.
9255
9256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * gdbarch.sh: Use %s with printf, instead of variables in the
9259 format string.
9260
9261 2020-04-29 Tom Tromey <tromey@adacore.com>
9262
9263 PR ada/25875:
9264 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9265 type fields here.
9266 (read_enumeration_type): Call
9267 update_enumeration_type_from_children later. Update comments.
9268 (process_enumeration_scope): Don't create type fields.
9269
9270 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9271
9272 * nbsd-tdep.c: Include "xml-syscall.h".
9273 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9274
9275 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9276
9277 * nbsd-nat.c: Include "sys/wait.h".
9278 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9279 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9280 (nbsd_nat_target::remove_exec_catchpoint)
9281 (nbsd_nat_target::set_syscall_catchpoint): Add.
9282 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9283 (nbsd_nat_target::insert_exec_catchpoint)
9284 (nbsd_nat_target::remove_exec_catchpoint)
9285 (nbsd_nat_target::set_syscall_catchpoint): Add.
9286 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9287 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9288 `nbsd_get_syscall_number'.
9289
9290 2020-04-29 Tom Tromey <tom@tromey.com>
9291
9292 * stack.c (print_block_frame_labels): Remove.
9293
9294 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9295
9296 PR gdb/17320
9297 * ada-valprint.c (val_print_packed_array_elements): Move array
9298 end bracket to new line.
9299 (ada_val_print_string): Remove extra spaces before first array
9300 element.
9301 * c-valprint.c (c_value_print_array): Likewise.
9302 * m2-valprint.c (m2_print_array_contents): Likewise.
9303 (m2_value_print_inner): Likewise.
9304 * p-valprint.c (pascal_value_print_inner): Likewise.
9305 * valprint.c (generic_val_print_array): Likewise.
9306 (value_print_array_elements): Move first array element and array
9307 end bracket to new line.
9308
9309 2020-04-29 Tom de Vries <tdevries@suse.de>
9310
9311 PR symtab/25889
9312 * linespec.c (find_method): Fix ix calculation.
9313
9314 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9315
9316 * syscalls/update-netbsd.sh: New file.
9317 * syscalls/netbsd.xml: Regenerate.
9318 * data-directory/Makefile.in: Register `netbsd.xml' in
9319 `SYSCALLS_FILES'.
9320
9321 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * syscalls/update-freebsd.sh: Add double quotes.
9324
9325 2020-04-28 Tom Tromey <tom@tromey.com>
9326
9327 * NEWS: Update.
9328 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9329 (cmdpy_init): Allow class_tui.
9330
9331 2020-04-28 Mark Williams <mark@myosotissp.com>
9332
9333 PR gdb/24480
9334 * dwarf2read.c: Add missing assingments to list_in_scope when
9335 start_symtab was already called.
9336
9337 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9338
9339 PR gdb/25881
9340 * dwarf2/read.c (offset_map_type): Use
9341 gdb:hash_enum<sect_offset> as hash function.
9342
9343 2020-04-28 Tom de Vries <tdevries@suse.de>
9344
9345 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9346 with DW_AT_signature.
9347
9348 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * configure.ac: Remove check for fs_base/gs_base in
9351 user_regs_struct.
9352 * configure: Re-generate.
9353 * config.in: Re-generate.
9354 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9355 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9356 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9357
9358 2020-04-27 Luis Machado <luis.machado@linaro.org>
9359
9360 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9361 problematic inline frame unwinding situation.
9362 * frame.c (frame_id_computed_p): New function.
9363 * frame.h (frame_id_computed_p): New prototype.
9364
9365 2020-04-26 Tom Tromey <tom@tromey.com>
9366
9367 * command.h (enum command_class) <class_pseudo>: Remove.
9368
9369 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9370
9371 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9372 and whitespace.
9373
9374 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9375
9376 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9377 `PT_GET_PROCESS_STATE' block.
9378
9379 2020-04-24 Tom Tromey <tom@tromey.com>
9380
9381 * symtab.h (symbol_get_demangled_name): Don't declare.
9382 * symtab.c (symbol_get_demangled_name): Remove.
9383 (general_symbol_info::natural_name)
9384 (general_symbol_info::demangled_name): Update.
9385
9386 2020-04-24 Tom Tromey <tom@tromey.com>
9387
9388 PR rust/25025:
9389 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9390
9391 2020-04-24 Tom Tromey <tom@tromey.com>
9392
9393 PR symtab/12707:
9394 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9395 exists.
9396 (new_symbol): Likewise.
9397 * compile/compile-object-load.c (get_out_value_type): Use
9398 symbol_matches_search_name.
9399
9400 2020-04-24 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2/read.c (add_partial_symbol): Do not call
9403 compute_and_set_names.
9404
9405 2020-04-24 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9408 overload.
9409
9410 2020-04-24 Tom Tromey <tom@tromey.com>
9411
9412 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9413 (add_psymbol_to_list): New overload. Make old overload call new
9414 one.
9415 * psympriv.h (add_psymbol_to_list): New overload.
9416
9417 2020-04-24 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2/read.c (partial_die_info::read) <case
9420 DW_AT_linkage_name>: Use value_as_string.
9421 (dwarf2_string_attr): Use value_as_string.
9422 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9423 method.
9424 * dwarf2/attribute.c (attribute::value_as_string): New method.
9425
9426 2020-04-24 Tom Tromey <tom@tromey.com>
9427
9428 * symtab.c (general_symbol_info::natural_name)
9429 (general_symbol_info::demangled_name): Check for language_rust.
9430
9431 2020-04-24 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9434 (dwarf2_physname): ... from here.
9435 (partial_die_info::read): Add Rust "{" hack.
9436
9437 2020-04-24 Tom Tromey <tom@tromey.com>
9438
9439 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9440 method.
9441 (symbol_set_demangled_name): Don't declare.
9442 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9443 symbol_set_demangled_name.
9444 (general_symbol_info::set_language)
9445 (general_symbol_info::compute_and_set_names): Update.
9446 * minsyms.c (minimal_symbol_reader::install): Update.
9447 * dwarf2/read.c (new_symbol): Update.
9448
9449 2020-04-24 Tom Tromey <tromey@adacore.com>
9450
9451 PR python/23662:
9452 * python/py-type.c (convert_field): Handle
9453 FIELD_LOC_KIND_DWARF_BLOCK.
9454 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9455 (typy_get_dynamic): Nw function.
9456 (type_object_getset): Add "dynamic".
9457 * NEWS: Add entry.
9458
9459 2020-04-24 Tom Tromey <tromey@adacore.com>
9460
9461 * ada-typeprint.c (print_choices, print_variant_part)
9462 (print_record_field_types_dynamic): New functions.
9463 (print_record_field_types): Use print_record_field_types_dynamic.
9464
9465 2020-04-24 Tom Tromey <tromey@adacore.com>
9466
9467 * dwarf2/read.c (handle_data_member_location): New overload.
9468 (dwarf2_add_field): Use it.
9469 (decode_locdesc): Add "computed" parameter. Update comment.
9470 * gdbtypes.c (is_dynamic_type_internal): Also look for
9471 FIELD_LOC_KIND_DWARF_BLOCK.
9472 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9473 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9474 virtual base classes.
9475 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9476 FIELD_LOC_KIND_DWARF_BLOCK.
9477
9478 2020-04-24 Tom Tromey <tromey@adacore.com>
9479
9480 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9481 * gdbtypes.c (is_dynamic_type_internal): Check
9482 TYPE_HAS_DYNAMIC_LENGTH.
9483 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9484 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9485 New macros.
9486 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9487 constant.
9488
9489 2020-04-24 Tom Tromey <tromey@adacore.com>
9490
9491 * dwarf2/read.c (struct variant_field): Rewrite.
9492 (struct variant_part_builder): New.
9493 (struct nextfield): Remove "variant" field. Add "offset".
9494 (struct field_info): Add "current_variant_part" and
9495 "variant_parts".
9496 (alloc_discriminant_info): Remove.
9497 (alloc_rust_variant): New function.
9498 (quirk_rust_enum): Update.
9499 (dwarf2_add_field): Set "offset" member. Don't handle
9500 DW_TAG_variant_part.
9501 (offset_map_type): New typedef.
9502 (convert_variant_range, create_one_variant)
9503 (create_one_variant_part, create_variant_parts)
9504 (add_variant_property): New functions.
9505 (dwarf2_attach_fields_to_type): Call add_variant_property.
9506 (read_structure_type): Don't handle DW_TAG_variant_part.
9507 (handle_variant_part, handle_variant): New functions.
9508 (handle_struct_member_die): Use them.
9509 (process_structure_scope): Don't handle variant parts.
9510 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9511 (struct discriminant_info): Remove.
9512 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9513 (struct main_type) <flag_discriminated_union>: Remove.
9514 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9515 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9516 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9517 Update.
9518 * valops.c (value_union_variant): Remove.
9519 * value.h (value_union_variant): Don't declare.
9520
9521 2020-04-24 Tom Tromey <tromey@adacore.com>
9522
9523 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9524 (ada_value_primitive_packed_val): Update.
9525 * ada-valprint.c (ada_value_print_1): Update.
9526 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9527 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9528 just an address. Use evaluate_for_locexpr_baton.
9529 (dwarf2_evaluate_property): Update.
9530 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9531 array_view.
9532 * findvar.c (default_read_var_value): Update.
9533 * gdbtypes.c (compute_variant_fields_inner)
9534 (resolve_dynamic_type_internal): Update.
9535 (resolve_dynamic_type): Change type of valaddr parameter.
9536 * gdbtypes.h (resolve_dynamic_type): Update.
9537 * valarith.c (value_subscripted_rvalue): Update.
9538 * value.c (value_from_contents_and_address): Update.
9539
9540 2020-04-24 Tom Tromey <tromey@adacore.com>
9541
9542 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9543 "push_initial_value" parameter.
9544 (dwarf2_evaluate_property): Likewise.
9545 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9546
9547 2020-04-24 Tom Tromey <tromey@adacore.com>
9548
9549 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9550 (variant::matches, compute_variant_fields_recurse)
9551 (compute_variant_fields_inner, compute_variant_fields): New
9552 functions.
9553 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9554 Use resolved_type after type is made.
9555 (operator==): Add new cases.
9556 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9557 (struct discriminant_range, struct variant, struct variant_part):
9558 New.
9559 (union dynamic_prop_data) <variant_parts, original_type>: New
9560 members.
9561 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9562 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9563 constants.
9564 * value.c (unpack_bits_as_long): Now public.
9565 * value.h (unpack_bits_as_long): Declare.
9566
9567 2020-04-24 Tom Tromey <tromey@adacore.com>
9568
9569 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9570 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9571
9572 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9573
9574 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9575
9576 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9577
9578 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9579 (remove_fork_catchpoint, post_startup_inferior)
9580 (post_attach): Move...
9581 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9582 (remove_fork_catchpoint, post_startup_inferior)
9583 (post_attach): ...here.
9584 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9585 (remove_fork_catchpoint, post_startup_inferior)
9586 (post_attach): Move...
9587 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9588 (remove_fork_catchpoint, post_startup_inferior)
9589 (post_attach): ...here.
9590
9591 2020-04-24 Tom Tromey <tromey@adacore.com>
9592
9593 * nat/windows-nat.h (struct windows_thread_info)
9594 <pc_adjusted>: New member.
9595 * windows-nat.c (windows_fetch_one_register): Check
9596 pc_adjusted.
9597 (windows_nat_target::get_windows_debug_event)
9598 (windows_nat_target::wait): Set pc_adjusted.
9599
9600 2020-04-24 Tom de Vries <tdevries@suse.de>
9601
9602 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9603 Run gdb-add-index inside temp dir.
9604
9605 2020-04-23 Tom Tromey <tromey@adacore.com>
9606
9607 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9608 in loop.
9609
9610 2020-04-23 Luis Machado <luis.machado@linaro.org>
9611
9612 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9613 get_frame_register instead of gdbarch_unwind_pc.
9614
9615 2020-04-23 Tom de Vries <tdevries@suse.de>
9616
9617 * symtab.c (lookup_global_symbol): Prefer def over decl.
9618
9619 2020-04-23 Tom de Vries <tdevries@suse.de>
9620
9621 PR symtab/25807
9622 * block.c (best_symbol, better_symbol): Promote to external.
9623 * block.h (best_symbol, better_symbol): Declare.
9624 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9625 decl.
9626
9627 2020-04-23 Tom Tromey <tromey@adacore.com>
9628
9629 PR ada/25837:
9630 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9631 "const char *", not a "const std::string &".
9632 <name_and_matcher::operator==>: Update.
9633 * unittests/lookup_name_info-selftests.c: Change type of
9634 "result".
9635
9636 2020-04-23 Tom Tromey <tom@tromey.com>
9637
9638 * inferior.h (iterate_over_inferiors): Don't declare.
9639 * inferior.c (iterate_over_inferiors): Remove.
9640 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9641 Remove.
9642 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9643 use iterate_over_inferiors.
9644 (darwin_resume_inferior_it)
9645 (struct resume_inferior_threads_param)
9646 (darwin_resume_inferior_threads_it): Remove.
9647 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9648
9649 2020-04-23 Tom de Vries <tdevries@suse.de>
9650
9651 * blockframe.c (find_pc_partial_function): Use
9652 find_pc_sect_compunit_symtab rather than
9653 objfile->sf->qf->find_pc_sect_compunit_symtab.
9654
9655 2020-04-22 Tom de Vries <tdevries@suse.de>
9656
9657 PR symtab/25764
9658 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9659 in psymtabs.
9660
9661 2020-04-22 Tom de Vries <tdevries@suse.de>
9662
9663 PR symtab/25801
9664 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9665 symtabs.
9666
9667 2020-04-22 Tom de Vries <tdevries@suse.de>
9668
9669 PR symtab/25700
9670 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9671 CU if already created.
9672
9673 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9674
9675 * infrun.c (displaced_step_fixup): Switch to the event_thread
9676 before calling displaced_step_restore, not after.
9677
9678 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9679
9680 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9681 its inferior is not recorded by us.
9682 (record_btrace_target_open): Replace call to
9683 all_non_exited_threads () with call to current_inferior
9684 ()->non_exited_threads ().
9685 (record_btrace_target::stop_recording): Likewise.
9686 (record_btrace_target::close): Likewise.
9687 (record_btrace_target::wait): Likewise.
9688 (record_btrace_target::record_stop_replaying): Likewise.
9689
9690 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9691
9692 * btrace.c (btrace_enable): Throw an error on double enables and
9693 when enabling recording fails.
9694 (btrace_disable): Throw an error if the thread is not recorded.
9695
9696 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9697
9698 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9699 request if we do not have a thread_info.
9700
9701 2020-04-21 Tom de Vries <tdevries@suse.de>
9702
9703 PR gdb/25471
9704 * thread.c
9705 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9706 exception in get_frame_id.
9707
9708 2020-04-20 Tom Tromey <tromey@adacore.com>
9709
9710 * python/python.c (struct gdbpy_event): Mark move constructor as
9711 noexcept.
9712 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9713 constructor as noexcept.
9714 * completer.h (struct completion_result): Mark move constructor as
9715 noexcept.
9716 * completer.c (completion_result::completion_result): Use
9717 initialization style. Don't call reset_match_list.
9718
9719 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9720
9721 * MAINTAINERS (Write After Approval): Add myself.
9722
9723 2020-04-18 Tom Tromey <tom@tromey.com>
9724
9725 * windows-tdep.c (init_w32_command_list)
9726 (w32_prefix_command_valid): Restore.
9727 (_initialize_windows_tdep): Call init_w32_command_list.
9728
9729 2020-04-18 Tom Tromey <tom@tromey.com>
9730
9731 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9732 * value.c (value_fn_field): Update.
9733 * valops.c (find_function_in_inferior)
9734 (value_allocate_space_in_inferior): Update.
9735 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9736 Update.
9737 * tui/tui-source.c (tui_source_window::set_contents): Update.
9738 * symtab.c (lookup_global_or_static_symbol)
9739 (find_function_start_sal_1, skip_prologue_sal)
9740 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9741 * symmisc.c (dump_msymbols, dump_symtab_1)
9742 (maintenance_print_one_line_table): Update.
9743 * symfile.c (init_entry_point_info, section_is_mapped)
9744 (list_overlays_command, simple_read_overlay_table)
9745 (simple_overlay_update_1): Update.
9746 * stap-probe.c (handle_stap_probe): Update.
9747 * stabsread.c (dbx_init_float_type, define_symbol)
9748 (read_one_struct_field, read_enum_type, read_range_type): Update.
9749 * source.c (info_line_command): Update.
9750 * python/python.c (gdbpy_source_objfile_script)
9751 (gdbpy_execute_objfile_script): Update.
9752 * python/py-type.c (save_objfile_types): Update.
9753 * python/py-objfile.c (py_free_objfile): Update.
9754 * python/py-inferior.c (python_new_objfile): Update.
9755 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9756 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9757 (maintenance_check_psymtabs): Update.
9758 * printcmd.c (info_address_command): Update.
9759 * objfiles.h (struct objfile) <arch>: New method, from
9760 get_objfile_arch.
9761 (get_objfile_arch): Don't declare.
9762 * objfiles.c (get_objfile_arch): Remove.
9763 (filter_overlapping_sections): Update.
9764 * minsyms.c (msymbol_is_function): Update.
9765 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9766 (output_nondebug_symbol): Update.
9767 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9768 (mdebug_expand_psymtab): Update.
9769 * machoread.c (macho_add_oso_symfile): Update.
9770 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9771 Update.
9772 * linux-fork.c (checkpoint_command): Update.
9773 * linespec.c (convert_linespec_to_sals): Update.
9774 * jit.c (finalize_symtab): Update.
9775 * infrun.c (insert_exception_resume_from_probe): Update.
9776 * ia64-tdep.c (ia64_find_unwind_table): Update.
9777 * hppa-tdep.c (internalize_unwinds): Update.
9778 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9779 Update.
9780 * gcore.c (call_target_sbrk): Update.
9781 * elfread.c (record_minimal_symbol, elf_symtab_read)
9782 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9783 (elf_gnu_ifunc_resolve_by_got): Update.
9784 * dwarf2/read.c (create_addrmap_from_index)
9785 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9786 (read_debug_names_from_section)
9787 (process_psymtab_comp_unit_reader, add_partial_symbol)
9788 (add_partial_subprogram, process_full_comp_unit)
9789 (read_file_scope, read_func_scope, read_lexical_block_scope)
9790 (read_call_site_scope, dwarf2_ranges_read)
9791 (dwarf2_record_block_ranges, dwarf2_add_field)
9792 (mark_common_block_symbol_computed, read_tag_pointer_type)
9793 (read_tag_string_type, dwarf2_init_float_type)
9794 (dwarf2_init_complex_target_type, read_base_type)
9795 (partial_die_info::read, partial_die_info::read)
9796 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9797 (dwarf2_fetch_die_loc_sect_off): Update.
9798 * dwarf2/loc.c (dwarf2_find_location_expression)
9799 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9800 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9801 (dwarf2_loc_desc_get_symbol_read_needs)
9802 (locexpr_describe_location_piece, locexpr_describe_location_1)
9803 (loclist_describe_location): Update.
9804 * dwarf2/index-write.c (write_debug_names): Update.
9805 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9806 * dtrace-probe.c (dtrace_process_dof): Update.
9807 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9808 (process_one_symbol): Update.
9809 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9810 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9811 (coff_read_enum_type): Update.
9812 * cli/cli-cmds.c (edit_command, list_command): Update.
9813 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9814 * breakpoint.c (create_overlay_event_breakpoint)
9815 (create_longjmp_master_breakpoint)
9816 (create_std_terminate_master_breakpoint)
9817 (create_exception_master_breakpoint, get_sal_arch): Update.
9818 * block.c (block_gdbarch): Update.
9819 * annotate.c (annotate_source_line): Update.
9820
9821 2020-04-17 Tom Tromey <tromey@adacore.com>
9822
9823 * auto-load.c (show_auto_load_cmd): Remove.
9824 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9825 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9826 (maintenance_print_arc_command): Remove.
9827 * tui/tui-win.c (tui_command): Remove.
9828 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9829 * tui/tui-layout.c (tui_layout_command): Remove.
9830 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9831 * python/python.c (user_set_python, user_show_python): Remove.
9832 (_initialize_python): Use add_basic_prefix_cmd,
9833 add_show_prefix_cmd.
9834 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9835 (install_gdb_commands): Use add_basic_prefix_cmd,
9836 add_show_prefix_cmd.
9837 (info_guile_command): Remove.
9838 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9839 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9840 add_show_prefix_cmd.
9841 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9842 Remove do_set and do_show parameters.
9843 * cli/cli-style.c (set_style, show_style): Remove.
9844 (_initialize_cli_style): Use add_basic_prefix_cmd,
9845 add_show_prefix_cmd.
9846 (cli_style_option::add_setshow_commands): Remove do_set and
9847 do_show parameters.
9848 (cli_style_option::add_setshow_commands): Use
9849 add_basic_prefix_cmd, add_show_prefix_cmd.
9850 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9851 (set_style_name): Remove.
9852 * cli/cli-dump.c (dump_command, append_command): Remove.
9853 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9854 (tekhex_dump_command, binary_dump_command)
9855 (binary_append_command): Remove.
9856 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9857 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9858 (init_w32_command_list): Remove; move into ...
9859 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9860 * valprint.c (set_print, show_print, set_print_raw)
9861 (show_print_raw): Remove.
9862 (_initialize_valprint): Use add_basic_prefix_cmd,
9863 add_show_prefix_cmd.
9864 * typeprint.c (set_print_type, show_print_type): Remove.
9865 (_initialize_typeprint): Use add_basic_prefix_cmd,
9866 add_show_prefix_cmd.
9867 * record.c (set_record_command, show_record_command): Remove.
9868 (_initialize_record): Use add_basic_prefix_cmd,
9869 add_show_prefix_cmd.
9870 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9871 add_show_prefix_cmd.
9872 (info_command, show_command, set_debug, show_debug): Remove.
9873 * top.h (set_history, show_history): Don't declare.
9874 * top.c (set_history, show_history): Remove.
9875 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9876 (unset_tdesc_cmd): Remove.
9877 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * symtab.c (info_module_command): Remove.
9880 (_initialize_symtab): Use add_basic_prefix_cmd.
9881 * symfile.c (overlay_command): Remove.
9882 (_initialize_symfile): Use add_basic_prefix_cmd.
9883 * sparc64-tdep.c (info_adi_command): Remove.
9884 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9885 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9886 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9887 add_show_prefix_cmd.
9888 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9889 (_initialize_serial): Use add_basic_prefix_cmd,
9890 add_show_prefix_cmd.
9891 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9892 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9893 add_show_prefix_cmd.
9894 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9895 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9896 add_show_prefix_cmd.
9897 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9898 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9899 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9900 add_show_prefix_cmd.
9901 * remote.c (remote_command, set_remote_cmd): Remove.
9902 (_initialize_remote): Use add_basic_prefix_cmd.
9903 * record-full.c (set_record_full_command)
9904 (show_record_full_command): Remove.
9905 (_initialize_record_full): Use add_basic_prefix_cmd,
9906 add_show_prefix_cmd.
9907 * record-btrace.c (cmd_set_record_btrace)
9908 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9909 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9910 (cmd_show_record_btrace_pt): Remove.
9911 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9912 add_show_prefix_cmd.
9913 * ravenscar-thread.c (set_ravenscar_command)
9914 (show_ravenscar_command): Remove.
9915 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9916 add_show_prefix_cmd.
9917 * mips-tdep.c (show_mips_command, set_mips_command)
9918 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9919 add_show_prefix_cmd.
9920 * maint.c (maintenance_command, maintenance_info_command)
9921 (maintenance_check_command, maintenance_print_command)
9922 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9923 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9924 add_show_prefix_cmd.
9925 (show_per_command_cmd): Remove.
9926 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9927 Remove.
9928 (maintenance_show_test_settings_cmd): Remove.
9929 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9930 add_show_prefix_cmd.
9931 * maint-test-options.c (maintenance_test_options_command):
9932 Remove.
9933 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9934 * macrocmd.c (macro_command): Remove
9935 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9936 * language.c (set_check, show_check): Remove.
9937 (_initialize_language): Use add_basic_prefix_cmd,
9938 add_show_prefix_cmd.
9939 * infcmd.c (unset_command): Remove.
9940 (_initialize_infcmd): Use add_basic_prefix_cmd.
9941 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9942 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9943 add_show_prefix_cmd.
9944 * go32-nat.c (go32_info_dos_command): Remove.
9945 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9946 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9947 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9948 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9949 (_initialize_frame): Use add_basic_prefix_cmd,
9950 add_show_prefix_cmd.
9951 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9952 (_initialize_dcache): Use add_basic_prefix_cmd,
9953 add_show_prefix_cmd.
9954 * cp-support.c (maint_cplus_command): Remove.
9955 (_initialize_cp_support): Use add_basic_prefix_cmd.
9956 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9957 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9958 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9959 add_basic_prefix_cmd, add_show_prefix_cmd.
9960 * breakpoint.c (save_command): Remove.
9961 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9962 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9963 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9964 add_show_prefix_cmd.
9965 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9966 (set_ada_command, show_ada_command): Remove.
9967 (_initialize_ada_language): Use add_basic_prefix_cmd,
9968 add_show_prefix_cmd.
9969 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9970
9971 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9972
9973 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9974 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9975
9976 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9977
9978 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9979 warning messages.
9980
9981 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9982
9983 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9984 import table is not at beginning of .idata section.
9985
9986 2020-04-16 Pedro Alves <palves@redhat.com>
9987
9988 * inferior.c (delete_inferior): Use delete operator directly
9989 instead of delete_program_space.
9990 * progspace.c (add_program_space): New, factored out from
9991 program_space::program_space.
9992 (remove_program_space): New, factored out from
9993 delete_program_space.
9994 (program_space::program_space): Remove intro comment. Rewrite.
9995 (program_space::~program_space): Remove intro comment. Call
9996 remove_program_space.
9997 (delete_program_space): Delete.
9998 * progspace.h (program_space::program_space): Make explicit. Move
9999 intro comment here, adjusted.
10000 (program_space::~program_space): Move intro comment here,
10001 adjusted.
10002 (delete_program_space): Remove.
10003
10004 2020-04-16 Tom Tromey <tromey@adacore.com>
10005
10006 * windows-nat.c (windows_nat::handle_access_violation): New
10007 function.
10008 * nat/windows-nat.h (handle_access_violation): Declare.
10009 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10010 windows-nat.c. Call handle_access_violation.
10011
10012 2020-04-16 Tom de Vries <tdevries@suse.de>
10013
10014 PR symtab/25791
10015 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10016 CUs without psymtab.
10017
10018 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10019
10020 * python/python.c (do_start_initialization): Don't call
10021 PyEval_InitThreads for Python 3.9 and beyond.
10022
10023 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10024
10025 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10026 thread functions.
10027 (obsd_nat_target::wait): Likewise.
10028
10029 2020-04-15 Tom Tromey <tromey@adacore.com>
10030
10031 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10032 (DEBUG_EXCEPT): Use debug_printf.
10033
10034 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10035
10036 * completer.c (class completion_tracker::completion_hash_entry)
10037 <hash_name>: New member function.
10038 (completion_tracker::discard_completions): New callback to hash a
10039 completion_hash_entry, pass this to htab_create_alloc.
10040
10041 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10042
10043 * windows-nat.c (windows_make_so): Warn rather than stopping with
10044 an error if realpath() fails.
10045
10046 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10047
10048 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10049 (nbsd_nat_target::info_proc): Add do_status.
10050
10051 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10052 Tom de Vries <tdevries@suse.de>
10053
10054 PR symtab/25718
10055 * psympriv.h (struct partial_symtab::read_symtab)
10056 (struct partial_symtab::expand_psymtab)
10057 (struct partial_symtab::read_dependencies): Update comments.
10058 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10059 read_symtab for includer.
10060 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10061 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10062 (struct dwarf2_include_psymtab::m_readin): Remove.
10063 (struct dwarf2_include_psymtab::includer): New member function.
10064 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10065
10066 2020-04-14 Tom de Vries <tdevries@suse.de>
10067
10068 PR symtab/25720
10069 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10070 with NULL symbol_matcher and lookup_name.
10071 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10072 and lookup_name.
10073 * dwarf2/read.c (dw2_expand_symtabs_matching)
10074 (dw2_debug_names_expand_symtabs_matching): Same.
10075 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10076 Make lookup_name a pointer. Update comment.
10077 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10078 lookup_name being a pointer.
10079 * symfile.c (expand_symtabs_matching): Same.
10080 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10081 * linespec.c (iterate_over_all_matching_symtabs): Same.
10082
10083 2020-04-13 Tom Tromey <tom@tromey.com>
10084
10085 * run-on-main-thread.c: Update include.
10086 * unittests/main-thread-selftests.c: Update include.
10087 * tui/tui-win.c: Update include.
10088 * tui/tui-io.c: Update include.
10089 * tui/tui-interp.c: Update include.
10090 * tui/tui-hooks.c: Update include.
10091 * top.h: Update include.
10092 * top.c: Update include.
10093 * ser-base.c: Update include.
10094 * remote.c: Update include.
10095 * remote-notif.c: Update include.
10096 * remote-fileio.c: Update include.
10097 * record-full.c: Update include.
10098 * record-btrace.c: Update include.
10099 * python/python.c: Update include.
10100 * posix-hdep.c: Update include.
10101 * mingw-hdep.c: Update include.
10102 * mi/mi-main.c: Update include.
10103 * mi/mi-interp.c: Update include.
10104 * main.c: Update include.
10105 * linux-nat.c: Update include.
10106 * interps.c: Update include.
10107 * infrun.c: Update include.
10108 * inf-loop.c: Update include.
10109 * event-top.c: Update include.
10110 * event-loop.c: Move to ../gdbsupport/.
10111 * event-loop.h: Move to ../gdbsupport/.
10112 * async-event.h: Update include.
10113 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10114
10115 2020-04-13 Tom Tromey <tom@tromey.com>
10116
10117 * tui/tui-win.c: Include async-event.h.
10118 * remote.c: Include async-event.h.
10119 * remote-notif.c: Include async-event.h.
10120 * record-full.c: Include async-event.h.
10121 * record-btrace.c: Include async-event.h.
10122 * infrun.c: Include async-event.h.
10123 * event-top.c: Include async-event.h.
10124 * event-loop.h: Move some declarations to async-event.h.
10125 * event-loop.c: Don't include ser-event.h or top.h. Move some
10126 code to async-event.c.
10127 * async-event.h: New file.
10128 * async-event.c: New file.
10129 * Makefile.in (COMMON_SFILES): Add async-event.c.
10130 (HFILES_NO_SRCDIR): Add async-event.h.
10131
10132 2020-04-13 Tom Tromey <tom@tromey.com>
10133
10134 * utils.c (flush_streams): New function.
10135 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10136
10137 2020-04-13 Tom Tromey <tom@tromey.com>
10138
10139 * event-loop.c (handle_file_event): Use warning, not
10140 printf_unfiltered.
10141
10142 2020-04-13 Tom Tromey <tom@tromey.com>
10143
10144 * event-loop.c: Include <chrono>.
10145
10146 2020-04-13 Tom Tromey <tom@tromey.com>
10147
10148 * gdb_select.h: Move to ../gdbsupport/.
10149 * event-loop.c: Update include path.
10150 * top.c: Update include path.
10151 * ser-base.c: Update include path.
10152 * ui-file.c: Update include path.
10153 * ser-tcp.c: Update include path.
10154 * guile/scm-ports.c: Update include path.
10155 * posix-hdep.c: Update include path.
10156 * ser-unix.c: Update include path.
10157 * gdb_usleep.c: Update include path.
10158 * mingw-hdep.c: Update include path.
10159 * inflow.c: Update include path.
10160 * infrun.c: Update include path.
10161 * event-top.c: Update include path.
10162
10163 2020-04-13 Tom Tromey <tom@tromey.com>
10164
10165 * configure: Rebuild.
10166 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10167
10168 2020-04-13 Tom Tromey <tom@tromey.com>
10169
10170 * event-loop.h (start_event_loop): Don't declare.
10171 * event-loop.c (start_event_loop): Move...
10172 * main.c (start_event_loop): ...here. Now static.
10173
10174 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10175
10176 * MAINTAINERS: Update my email address.
10177
10178 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10179
10180 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10181 IP_ALL.
10182
10183 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10184
10185 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10186 (nbsd_nat_target::info_proc): Add do_cmdline.
10187
10188 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10189
10190 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10191 (nbsd_nat_target::info_proc): Add do_cwd.
10192
10193 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10194
10195 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10196
10197 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10198
10199 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10200 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10201 (nbsd_nat_target::info_proc): New functions.
10202 * nbsd-nat.c (kinfo_get_vmmap): New function.
10203 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10204 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10205 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10206 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10207 functions.
10208 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10209 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10210 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10211 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10212 (KINFO_VME_FLAG_GROWS_DOWN): New.
10213
10214 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10215
10216 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10217 bit shift.
10218
10219 2020-04-10 Tom Tromey <tromey@adacore.com>
10220
10221 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10222
10223 2020-04-10 Tom Tromey <tromey@adacore.com>
10224
10225 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10226 separate debug files.
10227
10228 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10229
10230 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10231 Move to...
10232 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10233 ... here.
10234 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10235 Check for STATUS_WX86_BREAKPOINT.
10236 (windows_nat_target::wait): Same.
10237
10238 2020-04-10 Tom de Vries <tdevries@suse.de>
10239
10240 PR cli/25808
10241 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10242
10243 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10244
10245 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10246 (Write After Approval): Remove Tom de Vries.
10247
10248 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10249
10250 revert partially:
10251 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10252
10253 * buildsym.c (record_line): Fix undefined behavior and preserve
10254 lines at eof.
10255
10256 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10257
10258 * auxv.h (svr4_auxv_parse): New.
10259 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10260 and generic_auxv_parse.
10261 (svr4_auxv_parse): Add.
10262 * obsd-tdep.c: Include "auxv.h".
10263 (obsd_auxv_parse): Remove.
10264 (obsd_init_abi): Remove comment.
10265 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10266 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10267 * nbsd-tdep.c: Include "auxv.h".
10268 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10269
10270 2020-04-08 Tom Tromey <tromey@adacore.com>
10271
10272 * nat/windows-nat.h (last_wait_event): Don't declare.
10273 (wait_for_debug_event): Update comment.
10274 * nat/windows-nat.c (last_wait_event): Now static.
10275
10276 2020-04-08 Tom Tromey <tromey@adacore.com>
10277
10278 * windows-nat.c (wait_for_debug_event): Move to
10279 nat/windows-nat.c.
10280 * nat/windows-nat.h (wait_for_debug_event): Declare.
10281 * nat/windows-nat.c (wait_for_debug_event): Move from
10282 windows-nat.c. No longer static.
10283
10284 2020-04-08 Tom Tromey <tromey@adacore.com>
10285
10286 * windows-nat.c (get_windows_debug_event): Use
10287 fetch_pending_stop.
10288 * nat/windows-nat.h (fetch_pending_stop): Declare.
10289 * nat/windows-nat.c (fetch_pending_stop): New function.
10290
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10292
10293 * windows-nat.c (windows_continue): Use matching_pending_stop and
10294 continue_last_debug_event.
10295 * nat/windows-nat.h (matching_pending_stop)
10296 (continue_last_debug_event): Declare.
10297 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10298 (matching_pending_stop, continue_last_debug_event): New
10299 functions.
10300
10301 2020-04-08 Tom Tromey <tromey@adacore.com>
10302
10303 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10304 (handle_exception_result): Move to nat/windows-nat.h.
10305 (DEBUG_EXCEPTION_SIMPLE): Remove.
10306 (windows_nat::handle_ms_vc_exception): New function.
10307 (handle_exception): Move to nat/windows-nat.c.
10308 (get_windows_debug_event): Update.
10309 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10310 nat/windows-nat.c.
10311 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10312 (handle_exception_result): Move from windows-nat.c.
10313 (handle_exception): Declare.
10314 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10315 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10316 windows-nat.c.
10317
10318 2020-04-08 Tom Tromey <tromey@adacore.com>
10319
10320 * windows-nat.c (exception_count, event_count): Remove.
10321 (handle_exception, get_windows_debug_event)
10322 (do_initial_windows_stuff): Update.
10323
10324 2020-04-08 Tom Tromey <tromey@adacore.com>
10325
10326 * windows-nat.c (windows_nat::handle_load_dll)
10327 (windows_nat::handle_unload_dll): Rename. No longer static.
10328 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10329 Declare.
10330
10331 2020-04-08 Tom Tromey <tromey@adacore.com>
10332
10333 * complaints.h (stop_whining): Declare at top-level.
10334 (complaint): Don't declare stop_whining.
10335
10336 2020-04-08 Tom Tromey <tromey@adacore.com>
10337
10338 * windows-nat.c (windows_nat::handle_output_debug_string):
10339 Rename. No longer static.
10340 * nat/windows-nat.h (handle_output_debug_string): Declare.
10341
10342 2020-04-08 Tom Tromey <tromey@adacore.com>
10343
10344 * windows-nat.c (current_process_handle, current_process_id)
10345 (main_thread_id, last_sig, current_event, last_wait_event)
10346 (current_windows_thread, desired_stop_thread_id, pending_stops)
10347 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10348 (display_selectors, fake_create_process)
10349 (get_windows_debug_event): Update.
10350 * nat/windows-nat.h (current_process_handle, current_process_id)
10351 (main_thread_id, last_sig, current_event, last_wait_event)
10352 (current_windows_thread, desired_stop_thread_id, pending_stops)
10353 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10354 * nat/windows-nat.c (current_process_handle, current_process_id)
10355 (main_thread_id, last_sig, current_event, last_wait_event)
10356 (current_windows_thread, desired_stop_thread_id, pending_stops)
10357 (siginfo_er): New globals. Move from windows-nat.c.
10358
10359 2020-04-08 Tom Tromey <tromey@adacore.com>
10360
10361 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10362 (handle_load_dll): Update.
10363 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10364
10365 2020-04-08 Tom Tromey <tromey@adacore.com>
10366
10367 * windows-nat.c (enum thread_disposition_type): Move to
10368 nat/windows-nat.h.
10369 (windows_nat::thread_rec): Rename from thread_rec. No longer
10370 static.
10371 (windows_add_thread, windows_nat_target::fetch_registers)
10372 (windows_nat_target::store_registers, handle_exception)
10373 (windows_nat_target::resume, get_windows_debug_event)
10374 (windows_nat_target::get_tib_address)
10375 (windows_nat_target::thread_name)
10376 (windows_nat_target::thread_alive): Update.
10377 * nat/windows-nat.h (enum thread_disposition_type): Move from
10378 windows-nat.c.
10379 (thread_rec): Declare.
10380
10381 2020-04-08 Tom Tromey <tromey@adacore.com>
10382
10383 * windows-nat.c: Add "using namespace".
10384 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10385 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10386
10387 2020-04-08 Tom Tromey <tromey@adacore.com>
10388
10389 * nat/windows-nat.h (struct windows_thread_info): Declare
10390 destructor.
10391 * nat/windows-nat.c (~windows_thread_info): New.
10392
10393 2020-04-08 Tom Tromey <tromey@adacore.com>
10394
10395 PR gdb/22992
10396 * windows-nat.c (current_event): Update comment.
10397 (last_wait_event, desired_stop_thread_id): New globals.
10398 (struct pending_stop): New.
10399 (pending_stops): New global.
10400 (windows_nat_target) <stopped_by_sw_breakpoint>
10401 <supports_stopped_by_sw_breakpoint>: New methods.
10402 (windows_fetch_one_register): Add assertions. Adjust PC.
10403 (windows_continue): Handle pending stops. Suspend other threads
10404 when stepping. Use last_wait_event
10405 (wait_for_debug_event): New function.
10406 (get_windows_debug_event): Use wait_for_debug_event. Handle
10407 pending stops. Queue spurious stops.
10408 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10409 (windows_nat_target::kill): Use wait_for_debug_event.
10410 * nat/windows-nat.h (struct windows_thread_info)
10411 <stopped_at_software_breakpoint>: New field.
10412 * nat/windows-nat.c (windows_thread_info::resume): Clear
10413 stopped_at_software_breakpoint.
10414
10415 2020-04-08 Tom Tromey <tromey@adacore.com>
10416
10417 * windows-nat.c (enum thread_disposition_type): New.
10418 (thread_rec): Replace "get_context" parameter with "disposition";
10419 change type.
10420 (windows_add_thread, windows_nat_target::fetch_registers)
10421 (windows_nat_target::store_registers, handle_exception)
10422 (windows_nat_target::resume, get_windows_debug_event)
10423 (windows_nat_target::get_tib_address)
10424 (windows_nat_target::thread_name)
10425 (windows_nat_target::thread_alive): Update.
10426
10427 2020-04-08 Tom Tromey <tromey@adacore.com>
10428
10429 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10430 (windows_continue): Use windows_continue::resume.
10431 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10432 resume>: Declare new methods.
10433 * nat/windows-nat.c: New file.
10434 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10435
10436 2020-04-08 Tom Tromey <tromey@adacore.com>
10437
10438 * windows-nat.c (windows_add_thread, windows_delete_thread)
10439 (windows_nat_target::fetch_registers)
10440 (windows_nat_target::store_registers, fake_create_process)
10441 (windows_nat_target::resume, windows_nat_target::resume)
10442 (get_windows_debug_event, windows_nat_target::wait)
10443 (windows_nat_target::pid_to_str)
10444 (windows_nat_target::get_tib_address)
10445 (windows_nat_target::get_ada_task_ptid)
10446 (windows_nat_target::thread_name)
10447 (windows_nat_target::thread_alive): Use lwp, not tid.
10448
10449 2020-04-08 Tom Tromey <tromey@adacore.com>
10450
10451 * windows-nat.c (handle_exception)
10452 (windows_nat_target::thread_name): Update.
10453 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10454 <name>: Now unique_xmalloc_ptr.
10455
10456 2020-04-08 Tom Tromey <tromey@adacore.com>
10457
10458 * windows-nat.c (thread_rec)
10459 (windows_nat_target::fetch_registers): Update.
10460 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10461 Update comment.
10462 <debug_registers_changed, reload_context>: Now bool.
10463
10464 2020-04-08 Tom Tromey <tromey@adacore.com>
10465
10466 * windows-nat.c (windows_add_thread): Use new.
10467 (windows_init_thread_list, windows_delete_thread): Use delete.
10468 (get_windows_debug_event): Update.
10469 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10470 destructor, and initializers.
10471
10472 2020-04-08 Tom Tromey <tromey@adacore.com>
10473
10474 * windows-nat.c (struct windows_thread_info): Remove.
10475 * nat/windows-nat.h: New file.
10476
10477 2020-04-08 Tom Tromey <tromey@adacore.com>
10478
10479 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10480 (thread_rec, windows_add_thread, windows_delete_thread)
10481 (windows_continue): Update.
10482
10483 2020-04-08 Tom Tromey <tromey@adacore.com>
10484
10485 * windows-nat.c (struct windows_thread_info): Remove typedef.
10486 (thread_head): Remove.
10487 (thread_list): New global.
10488 (thread_rec, windows_add_thread, windows_init_thread_list)
10489 (windows_delete_thread, windows_continue): Update.
10490
10491 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10492
10493 * windows-tdep.h (windows_init_abi): Add comment.
10494 (cygwin_init_abi): New declaration.
10495 * windows-tdep.c: Split signal enumeration in two, one for
10496 Windows and one for Cygwin.
10497 (windows_gdb_signal_to_target): Only deal with signal of the
10498 Windows OS ABI.
10499 (cygwin_gdb_signal_to_target): New function.
10500 (windows_init_abi): Rename to windows_init_abi_common, don't set
10501 gdb_signal_to_target gdbarch method. Add new new function with
10502 this name.
10503 (cygwin_init_abi): New function.
10504 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10505 comment. Don't call windows_init_abi.
10506 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10507 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10508 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10509 i386_windows_init_abi_common, don't call windows_init_abi. Add
10510 a new function of this name.
10511 (i386_cygwin_init_abi): New function.
10512 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10513 OS ABI Cygwin.
10514
10515 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10516
10517 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10518 parameter.c.
10519 (dwarf2_read_gdb_index): Update.
10520
10521 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10522
10523 * nbsd-tdep.c: Include "objfiles.h".
10524 (nbsd_skip_solib_resolver): New.
10525 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10526
10527 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10528
10529 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10530 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10531 with DW_LLE_base_addressx are being emitted in DWARFv5.
10532 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10533 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10534 unsigned integer.
10535
10536 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10537
10538 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10539 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10540 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10541 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10542 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10543 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10544 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10545
10546
10547 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10548
10549 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10550 (read_loclist_index): New function definition.
10551 (lookup_loclist_base): New function definition.
10552 (read_loclist_header): New function definition.
10553 (dwarf2_cu): Add loclist_base and loclist_header field.
10554 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10555 (read_full_die_1): Read the value of DW_AT_loclists_base.
10556 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10557 (read_attribute_value): Handle DW_FORM_loclistx.
10558 (skip_one_die): Handle DW_FORM_loclistx.
10559 (loclist_header): New structure declaration.
10560 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10561
10562 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10563
10564 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10565 constructor. Remove `addr` parameter from other constructor and
10566 add `per_cu` parameter.
10567 * dwarf2/read.c (create_partial_symtab): Update.
10568
10569 2020-04-07 Tom de Vries <tdevries@suse.de>
10570
10571 PR symtab/25796
10572 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10573 (partial_die_info::fixup): Inherit has_const_value.
10574
10575 2020-04-07 Tom de Vries <tdevries@suse.de>
10576
10577 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10578 symbols without address.
10579
10580 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10581
10582 * nbsd-nat.h (struct thread_info): Add forward declaration.
10583 (nbsd_nat_target::thread_alive): Add.
10584 (nbsd_nat_target::thread_name): Likewise.
10585 (nbsd_nat_target::update_thread_list): Likewise.
10586 (update_thread_list::post_attach): Likewise.
10587 (post_attach::pid_to_str): Likewise.
10588 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10589 (nbsd_thread_lister): Add.
10590 (nbsd_nat_target::thread_alive): Likewise.
10591 (nbsd_nat_target::thread_name): Likewise.
10592 (nbsd_add_threads): Likewise.
10593 (update_thread_list::post_attach): Likewise.
10594 (nbsd_nat_target::update_thread_list): Likewise.
10595 (post_attach::pid_to_str): Likewise.
10596
10597 2020-04-06 Tom Tromey <tromey@adacore.com>
10598
10599 * ada-valprint.c (print_variant_part): Extract the variant field.
10600 (print_field_values): Use the field as the outer value when
10601 recursing.
10602
10603 2020-04-06 Tom Tromey <tromey@adacore.com>
10604
10605 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10606 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10607 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10608 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10609 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10610
10611 2020-04-06 Tom Tromey <tromey@adacore.com>
10612
10613 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10614 TYPE_CODE_ERROR.
10615
10616 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10617
10618 * nbsd-tdep.c: Include "gdbarch.h".
10619 Define enum with NetBSD signal numbers.
10620 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10621 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10622 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10623 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10624 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10625 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10626 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10627 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10628 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10629 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10630 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10631 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10632
10633 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10634
10635 PR gdb/25325
10636 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10637
10638 2020-04-03 Tom Tromey <tromey@adacore.com>
10639
10640 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10641 Read constant block.
10642
10643 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10644
10645 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10646 (gdb_bfd_get_full_section_contents): New declaration.
10647 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10648 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10649 gdb_bfd_get_full_section_contents.
10650
10651 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10652
10653 * exec.c (build_section_table): Replace internal_error with
10654 gdb_assert.
10655 (section_table_xfer_memory_partial): Likewise.
10656 * mdebugread.c (parse_partial_symbols): Likewise.
10657 * psymtab.c (lookup_partial_symbol): Likewise.
10658 * utils.c (wrap_here): Likewise.
10659
10660 2020-04-02 Tom Tromey <tromey@adacore.com>
10661
10662 * f-lang.c (build_fortran_types): Use arch_type to initialize
10663 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10664
10665 2020-04-02 Tom Tromey <tromey@adacore.com>
10666
10667 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10668 of attributes.
10669
10670 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10671 Bernd Edlinger <bernd.edlinger@hotmail.de>
10672 Tom Tromey <tromey@adacore.com>
10673
10674 * buildsym.c (buildsym_compunit::record_line): Remove
10675 deduplication code.
10676
10677 2020-04-02 Tom de Vries <tdevries@suse.de>
10678
10679 PR ada/24671
10680 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10681
10682 2020-04-02 Tom de Vries <tdevries@suse.de>
10683
10684 * dwarf2/read.c (dwarf2_gdb_index_functions,
10685 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10686 NULL.
10687 * psymtab.c (psym_lookup_global_symbol_language): New function.
10688 (psym_functions): Init psym_lookup_global_symbol_language with
10689 psym_lookup_global_symbol_language.
10690 * symfile-debug.c (debug_sym_quick_functions): Init
10691 lookup_global_symbol_language with NULL.
10692 * symfile.c (set_initial_language): Remove fixme comment.
10693 * symfile.h (struct quick_symbol_functions): Add
10694 lookup_global_symbol_language.
10695 * symtab.c (find_quick_global_symbol_language): New function.
10696 (find_main_name): Use find_quick_global_symbol_language.
10697
10698 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10699
10700 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10701
10702 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10703
10704 * buildsym.c (record_line): Fix undefined behavior and preserve
10705 lines at eof.
10706
10707 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10708
10709 * buildsym.c (record_line): Fix the resizing condition.
10710
10711 2020-04-01 Tom Tromey <tom@tromey.com>
10712
10713 * value.h (value_literal_complex): Add comment.
10714 * valops.c (value_literal_complex): Refer to value.h.
10715
10716 2020-04-01 Tom Tromey <tom@tromey.com>
10717
10718 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10719 (scalar_type): New rule, from typebase.
10720 (typebase): Use scalar_type. Recognize complex types.
10721 (field_name): Handle FLOAT_KEYWORD.
10722 (ident_tokens): Add _Complex and __complex__.
10723
10724 2020-04-01 Tom Tromey <tom@tromey.com>
10725
10726 PR exp/25299:
10727 * valarith.c (promotion_type, complex_binop): New functions.
10728 (scalar_binop): Handle complex numbers. Use promotion_type.
10729 (value_pos, value_neg, value_complement): Handle complex numbers.
10730
10731 2020-04-01 Tom Tromey <tom@tromey.com>
10732
10733 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10734 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10735 (parse_number): Handle complex numbers.
10736
10737 2020-04-01 Tom Tromey <tom@tromey.com>
10738
10739 * c-valprint.c (c_decorations): Change complex suffix to "i".
10740
10741 2020-04-01 Tom Tromey <tom@tromey.com>
10742
10743 * valprint.c (generic_value_print_complex): Use accessors.
10744 * value.h (value_real_part, value_imaginary_part): Declare.
10745 * valops.c (value_real_part, value_imaginary_part): New
10746 functions.
10747 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10748
10749 2020-04-01 Tom Tromey <tom@tromey.com>
10750
10751 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10752 (read_range_type): Update.
10753 * mdebugread.c (basic_type): Update.
10754 * go-lang.c (build_go_types): Use init_complex_type.
10755 * gdbtypes.h (struct main_type) <complex_type>: New member.
10756 (init_complex_type): Update.
10757 (arch_complex_type): Don't declare.
10758 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10759 Make name if none given. Use alloc_type_copy. Look for cached
10760 complex type.
10761 (arch_complex_type): Remove.
10762 (gdbtypes_post_init): Use init_complex_type.
10763 * f-lang.c (build_fortran_types): Use init_complex_type.
10764 * dwarf2/read.c (read_base_type): Update.
10765 * d-lang.c (build_d_types): Use init_complex_type.
10766 * ctfread.c (read_base_type): Update.
10767
10768 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10769
10770 * infrun.c (stop_all_threads): Update assertion, plus when
10771 stopping threads, take into account that we might be trying
10772 to stop an all-stop target.
10773 (stop_waiting): Call 'stop_all_threads' if there exists a
10774 non-stop target.
10775
10776 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10777
10778 * target.h (exists_non_stop_target): New function declaration.
10779 * target.c (exists_non_stop_target): New function.
10780
10781 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10782
10783 PR gdb/24789
10784 * eval.c (is_integral_or_integral_reference): New function.
10785 (evaluate_subexp_standard): Allow integer references in
10786 pointer arithmetic.
10787
10788 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10789
10790 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10791 check for no ptid in the stop reply when the target is non-stop.
10792
10793 2020-04-01 Tom Tromey <tromey@adacore.com>
10794
10795 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10796 "name" parameter to rvalue reference. Initialize m_name_holder.
10797 <lookup_name_info>: New overloads.
10798 <name>: Return gdb::string_view.
10799 <c_str>: New method.
10800 <make_ignore_params>: Update.
10801 <search_name_hash>: Update.
10802 <language_lookup_name>: Return const char *.
10803 <m_name>: Change type.
10804 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10805 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10806 (lookup_name_info::match_any): Update.
10807 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10808 Update.
10809 * minsyms.c (linkage_name_str): Update.
10810 * language.c (default_symbol_name_matcher): Update.
10811 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10812 Update.
10813 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10814 (ada_lookup_name_info::ada_lookup_name_info): Update.
10815 (literal_symbol_name_matcher): Update.
10816
10817 2020-04-01 Tom Tromey <tromey@adacore.com>
10818
10819 * psymtab.c (psymtab_search_name): Remove function.
10820 (psym_lookup_symbol): Create search name and lookup name here.
10821 (lookup_partial_symbol): Remove "name" parameter; add
10822 lookup_name.
10823 (psym_expand_symtabs_for_function): Update.
10824
10825 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10826
10827 PR tui/25597:
10828 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10829
10830 2020-03-31 Tom Tromey <tromey@adacore.com>
10831
10832 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10833 memcpy.
10834
10835 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10836
10837 * features/riscv/32bit-csr.xml: Regenerated.
10838 * features/riscv/64bit-csr.xml: Regenerated.
10839
10840 2020-03-30 Tom Tromey <tromey@adacore.com>
10841
10842 * ada-valprint.c (print_variant_part): Update.
10843 * ada-lang.h (ada_which_variant_applies): Update.
10844 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10845 outer_valaddr parameters; replace with "outer" value parameter.
10846 (to_fixed_variant_branch_type): Update.
10847
10848 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10849
10850 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10851 <list>. Remove inclusion of observable.h.
10852 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10853 (struct arch_lwp_info): New struct.
10854 (class ppc_linux_dreg_interface): New class.
10855 (struct ppc_linux_process_info): New struct.
10856 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10857 <low_new_clone, low_forget_process, low_prepare_to_resume>
10858 <copy_thread_dreg_state, mark_thread_stale>
10859 <mark_debug_registers_changed, register_hw_breakpoint>
10860 <clear_hw_breakpoint, register_wp, clear_wp>
10861 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10862 <num_memory_accesses, get_trigger_type>
10863 <create_watchpoint_request, hwdebug_point_cmp>
10864 <init_arch_lwp_info, get_arch_lwp_info>
10865 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10866 methods.
10867 <struct ptid_hash>: New inner struct.
10868 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10869 members.
10870 (saved_dabr_value, hwdebug_info, max_slots_number)
10871 (struct hw_break_tuple, struct thread_points, ppc_threads)
10872 (have_ptrace_hwdebug_interface)
10873 (hwdebug_find_thread_points_by_tid)
10874 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10875 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10876 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10877 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10878 use m_dreg_interface.
10879 (hwdebug_point_cmp): Change to...
10880 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10881 reference arguments instead of pointers.
10882 (ppc_linux_nat_target::ranged_break_num_registers): Use
10883 m_dreg_interface.
10884 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10885 m_dreg_interface. Call register_hw_breakpoint.
10886 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10887 m_dreg_interface. Call clear_hw_breakpoint.
10888 (get_trigger_type): Change to...
10889 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10890 comment.
10891 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10892 use m_dreg_interface. Call register_hw_breakpoint.
10893 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10894 use m_dreg_interface. Call clear_hw_breakpoint.
10895 (can_use_watchpoint_cond_accel): Change to...
10896 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10897 method. Update comment, use m_dreg_interface and
10898 m_process_info.
10899 (calculate_dvc): Change to...
10900 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10901 m_dreg_interface.
10902 (num_memory_accesses): Change to...
10903 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10904 (check_condition): Change to...
10905 (ppc_linux_nat_target::check_condition): ...this method.
10906 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10907 comment, use m_dreg_interface.
10908 (create_watchpoint_request): Change to...
10909 (ppc_linux_nat_target::create_watchpoint_request): ...this
10910 method. Use m_dreg_interface.
10911 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10912 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10913 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10914 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10915 (ppc_linux_nat_target::low_forget_process)
10916 (ppc_linux_nat_target::low_new_fork)
10917 (ppc_linux_nat_target::low_new_clone)
10918 (ppc_linux_nat_target::low_delete_thread)
10919 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10920 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10921 only call mark_thread_stale.
10922 (ppc_linux_thread_exit): Remove.
10923 (ppc_linux_nat_target::stopped_data_address): Change to...
10924 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10925 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10926 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10927 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10928 comment. Call low_stopped_data_address.
10929 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10930 m_dreg_interface.
10931 (ppc_linux_nat_target::masked_watch_num_registers): Use
10932 m_dreg_interface.
10933 (ppc_linux_nat_target::copy_thread_dreg_state)
10934 (ppc_linux_nat_target::mark_thread_stale)
10935 (ppc_linux_nat_target::mark_debug_registers_changed)
10936 (ppc_linux_nat_target::register_hw_breakpoint)
10937 (ppc_linux_nat_target::clear_hw_breakpoint)
10938 (ppc_linux_nat_target::register_wp)
10939 (ppc_linux_nat_target::clear_wp)
10940 (ppc_linux_nat_target::init_arch_lwp_info)
10941 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10942 (_initialize_ppc_linux_nat): Remove observer callback.
10943
10944 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10945
10946 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10947 (ppc_linux_nat_target::auxv_parse)
10948 (ppc_linux_nat_target::read_description)
10949 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10950 Move up.
10951
10952 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10953
10954 * linux-nat.h (low_new_clone): New method.
10955 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10956
10957 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10958
10959 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10960 (dbx_expand_psymtab): ... this.
10961 (start_psymtab): Update.
10962 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10963 (mdebug_expand_psymtab): ... this.
10964 (parse_partial_symbols): Update.
10965 (new_psymtab): Update.
10966 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10967 (xcoff_expand_psymtab): ... this.
10968 (xcoff_start_psymtab): Update.
10969
10970 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10971
10972 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10973 <expand_dependencies>: ... this.
10974 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10975 (partial_symtab::expand_dependencies): ... this.
10976 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10977 Update.
10978 (dwarf2_psymtab::expand_psymtab): Update.
10979 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10980 * mdebugread.c (psymtab_to_symtab_1): Update.
10981 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10982
10983 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10984
10985 * psympriv.h (discard_psymtab): Remove.
10986 * dbxread.c (dbx_end_psymtab): Update.
10987 * xcoffread.c (xcoff_end_psymtab): Update.
10988
10989 2020-03-28 Tom Tromey <tom@tromey.com>
10990
10991 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10992 comment.
10993
10994 2020-03-28 Tom Tromey <tom@tromey.com>
10995
10996 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10997
10998 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10999
11000 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11001
11002 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11003
11004 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11005
11006 2020-03-26 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11009 (mark_common_block_symbol_computed, read_tag_string_type)
11010 (attr_to_dynamic_prop, read_subrange_type): Update.
11011 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11012 to be methods on struct attribute.
11013 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11014 (read_call_site_scope, partial_die_info::read)
11015 (partial_die_info::read, lookup_die_type, follow_die_ref):
11016 Update.
11017 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11018 from dwarf2_get_ref_die_offset.
11019 (attribute::constant_value): New method, from
11020 dwarf2_get_attr_constant_value.
11021 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11022 Declare method.
11023 <constant_value>: New method.
11024
11025 2020-03-26 Tom Tromey <tom@tromey.com>
11026
11027 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11028 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11029 (dwarf_type_encoding_name): Move to stringify.c.
11030 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11031 * dwarf2/stringify.c: New file.
11032 * dwarf2/stringify.h: New file.
11033
11034 2020-03-26 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11037 Rewrite.
11038
11039 2020-03-26 Tom Tromey <tom@tromey.com>
11040
11041 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11042 methods.
11043 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11044 (lookup_ranges_base): Likewise.
11045 (read_cutu_die_from_dwo, read_full_die_1): Update.
11046
11047 2020-03-26 Tom Tromey <tom@tromey.com>
11048
11049 * dwarf2/read.c (read_import_statement, read_file_scope)
11050 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11051 (read_lexical_block_scope, read_call_site_scope)
11052 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11053 (handle_struct_member_die, process_structure_scope)
11054 (update_enumeration_type_from_children)
11055 (process_enumeration_scope, read_array_type, read_common_block)
11056 (read_namespace, read_module, read_subroutine_type): Update.
11057 (sibling_die): Remove.
11058
11059 2020-03-26 Tom Tromey <tom@tromey.com>
11060
11061 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11062 (build_type_psymtabs_reader, read_structure_type)
11063 (read_enumeration_type, read_full_die_1): Update.
11064 (dwarf2_attr_no_follow): Move to die.h.
11065 * dwarf2/die.h (struct die_info) <attr>: New method.
11066
11067 2020-03-26 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11070 <base_address>: Now an optional.
11071 (dwarf2_find_base_address, dwarf2_rnglists_process)
11072 (dwarf2_ranges_process, fill_in_loclist_baton)
11073 (dwarf2_symbol_mark_computed): Update.
11074
11075 2020-03-26 Tom Tromey <tom@tromey.com>
11076
11077 * dwarf2/read.c (struct die_info): Move to die.h.
11078 * dwarf2/die.h: New file.
11079
11080 2020-03-26 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11083 * dwarf2/read.c
11084 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11085 Move to line-header.c.
11086 (read_checked_initial_length_and_offset, read_formatted_entries):
11087 Likewise.
11088 (dwarf_decode_line_header): Split into two.
11089 * dwarf2/line-header.c
11090 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11091 Move from read.c.
11092 (read_checked_initial_length_and_offset, read_formatted_entries):
11093 Likewise.
11094 (dwarf_decode_line_header): New function, split from read.c.
11095
11096 2020-03-26 Tom Tromey <tom@tromey.com>
11097
11098 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11099 Declare method.
11100 * dwarf2/read.c (read_attribute_value): Update.
11101 (dwarf2_per_objfile::read_line_string): Rename from
11102 read_indirect_line_string.
11103 (read_formatted_entries): Update.
11104
11105 2020-03-26 Tom Tromey <tom@tromey.com>
11106
11107 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11108 variable.
11109
11110 2020-03-26 Tom Tromey <tom@tromey.com>
11111
11112 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11113 const.
11114 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11115 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11116 parameter const.
11117
11118 2020-03-26 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11121 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11122 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11123 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11124
11125 2020-03-26 Tom Tromey <tom@tromey.com>
11126
11127 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11128 file_names_size, file_full_name, file_file_name>: Use const.
11129 <file_name_at, file_names>: Add const overload.
11130 * dwarf2/line-header.c (line_header::file_file_name)
11131 (line_header::file_full_name): Update.
11132
11133 2020-03-26 Tom Tromey <tom@tromey.com>
11134
11135 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11136 (macro_start_file, consume_improper_spaces)
11137 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11138 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11139 (dwarf_decode_macros): Move to macro.c.
11140 * dwarf2/macro.c: New file.
11141 * dwarf2/macro.h: New file.
11142 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11143
11144 2020-03-26 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11147 method.
11148 * dwarf2/section.c: New method. From
11149 read_indirect_string_at_offset_from.
11150 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11151 (read_indirect_string_at_offset_from): Move to section.c.
11152 (read_indirect_string_at_offset): Rewrite.
11153 (read_indirect_line_string_at_offset): Remove.
11154 (read_indirect_string, read_indirect_line_string)
11155 (dwarf_decode_macro_bytes): Update.
11156
11157 2020-03-26 Tom Tromey <tom@tromey.com>
11158
11159 * dwarf2/section.h (struct dwarf2_section_info)
11160 <overload_complaint>: Declare.
11161 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11162 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11163 Rename from dwarf2_section_buffer_overflow_complaint.
11164 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11165 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11166
11167 2020-03-26 Tom Tromey <tom@tromey.com>
11168
11169 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11170 Declare.
11171 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11172 Move from read.c.
11173 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11174 to section.c.
11175
11176 2020-03-26 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11179
11180 2020-03-26 Tom Tromey <tom@tromey.com>
11181
11182 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11183 "builder".
11184 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11185 parameter.
11186 (dwarf_decode_macros): Update.
11187
11188 2020-03-26 Tom Tromey <tom@tromey.com>
11189
11190 * dwarf2/read.c (read_attribute_value): Update.
11191 (read_indirect_string_from_dwz): Move to dwz.c; change into
11192 method.
11193 (dwarf_decode_macro_bytes): Update.
11194 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11195 * dwarf2/dwz.c: New file.
11196 * Makefile.in (COMMON_SFILES): Add dwz.c.
11197
11198 2020-03-26 Tom Tromey <tom@tromey.com>
11199
11200 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11201 * dwarf2/read.c: Add include.
11202 * dwarf2/index-write.c: Add include.
11203 * dwarf2/index-cache.c: Add include.
11204 * dwarf2/dwz.h: New file.
11205
11206 2020-03-25 Tom Tromey <tom@tromey.com>
11207
11208 * compile/compile-object-load.c (get_out_value_type): Mention
11209 correct symbol name in error message.
11210
11211 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11212
11213 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11214
11215 2020-03-25 Tom de Vries <tdevries@suse.de>
11216
11217 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11218 * symmisc.c (dump_symtab_1): Print user and includes fields.
11219 (maintenance_info_symtabs): Same.
11220
11221 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11222
11223 PR gdb/25534
11224 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11225 (riscv_regcache_cooked_write): New function.
11226 (riscv_push_dummy_call): Use new function.
11227 (riscv_return_value): Likewise.
11228
11229 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11230
11231 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11232 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11233 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11234 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11235 * infrun.c (follow_fork): Likewise.
11236 (follow_fork_inferior): Likewise.
11237 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11238 * linux-nat.h (class linux_nat_target): Likewise.
11239 * remote.c (class remote_target) <follow_fork>: Likewise.
11240 (remote_target::follow_fork): Likewise.
11241 * target-delegates.c: Re-generate.
11242 * target.c (default_follow_fork): Likewise.
11243 (target_follow_fork): Likewise.
11244 * target.h (struct target_ops) <follow_fork>: Likewise.
11245 (target_follow_fork): Likewise.
11246
11247 2020-03-24 Tom de Vries <tdevries@suse.de>
11248
11249 * psymtab.c (maintenance_info_psymtabs): Print user field.
11250
11251 2020-03-20 Tom Tromey <tromey@adacore.com>
11252
11253 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11254 const.
11255 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11256 const.
11257
11258 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11259
11260 * ptrace.m4: Don't check for ptrace declaration.
11261 * config.in: Re-generate.
11262 * configure: Re-generate.
11263 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11264 not defined.
11265
11266 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11267
11268 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11269 `PTRACE_TYPE_RET'.
11270 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11271 * sparc-nat.c (gdb_ptrace): Likewise.
11272 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11273
11274 2020-03-20 Tom Tromey <tromey@adacore.com>
11275
11276 * c-exp.y (lex_one_token): Fix assert.
11277
11278 2020-03-20 Tom Tromey <tromey@adacore.com>
11279
11280 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11281 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11282 strncpy call.
11283
11284 2020-03-20 Tom Tromey <tromey@adacore.com>
11285
11286 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11287
11288 2020-03-20 Tom Tromey <tromey@adacore.com>
11289
11290 * ada-valprint.c (print_variant_part): Remove parameters; switch
11291 to value-based API.
11292 (print_field_values): Likewise.
11293 (ada_val_print_struct_union): Likewise.
11294 (ada_value_print_1): Update.
11295
11296 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11297
11298 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11299 nbsd_nat_target instead of inf_ptrace_target.
11300 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11301 nbsd_nat_target.
11302
11303 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11304
11305 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11306 it to the ptrace call.
11307 * (store_registers): Likewise.
11308
11309 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11310
11311 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11312 it to the ptrace call.
11313 * (store_registers): Likewise.
11314
11315 2020-03-19 Luis Machado <luis.machado@linaro.org>
11316
11317 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11318 valid, fetch vg value from ptrace.
11319
11320 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11321 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11322 * inf-ptrace.c: Likewise.
11323 * (gdb_ptrace): Add.
11324 * (inf_ptrace_target::resume): Update.
11325 * (inf_ptrace_target::xfer_partial): Likewise.
11326 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11327 * (inf_ptrace_peek_poke): Update.
11328
11329 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11330
11331 * x86-bsd-nat.c (gdb_ptrace): New.
11332 * (x86bsd_dr_set): Add new argument `ptid'.
11333 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11334 x86bsd_dr_set_addr): Update.
11335
11336 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11337
11338 * remote.c (remote_target::process_stop_reply): Handle events for
11339 all threads differently.
11340
11341 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11342
11343 * completer.c (completion_tracker::remove_completion): Define new
11344 function.
11345 * completer.h (completion_tracker::remove_completion): Declare new
11346 function.
11347 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11348 when adding a C++ function symbol.
11349
11350 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11351
11352 * completer.c (completion_tracker::completion_hash_entry): Define
11353 new class.
11354 (advance_to_filename_complete_word_point): Call
11355 recompute_lowest_common_denominator.
11356 (completion_tracker::completion_tracker): Call discard_completions
11357 to setup the hash table.
11358 (completion_tracker::discard_completions): Allow for being called
11359 from the constructor, pass new equal function, and element deleter
11360 when constructing the hash table. Initialise new class member
11361 variables.
11362 (completion_tracker::maybe_add_completion): Remove use of
11363 m_entries_vec, and store more information into m_entries_hash.
11364 (completion_tracker::recompute_lcd_visitor): New function, most
11365 content taken from...
11366 (completion_tracker::recompute_lowest_common_denominator):
11367 ...here, this now just visits each item in the hash calling the
11368 above visitor.
11369 (completion_tracker::build_completion_result): Remove use of
11370 m_entries_vec, call recompute_lowest_common_denominator.
11371 * completer.h (completion_tracker::have_completions): Remove use
11372 of m_entries_vec.
11373 (completion_tracker::completion_hash_entry): Declare new class.
11374 (completion_tracker::recompute_lowest_common_denominator): Change
11375 function signature.
11376 (completion_tracker::recompute_lcd_visitor): Declare new function.
11377 (completion_tracker::m_entries_vec): Delete.
11378 (completion_tracker::m_entries_hash): Initialize to NULL.
11379 (completion_tracker::m_lowest_common_denominator_valid): New
11380 member variable.
11381 (completion_tracker::m_lowest_common_denominator_max_length): New
11382 member variable.
11383
11384 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11385
11386 * regformats/regdef.h: Put reg in gdb namespace.
11387
11388 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11389
11390 * i386-bsd-nat.c (gdb_ptrace): New.
11391 * (i386bsd_fetch_inferior_registers,
11392 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11393 * (i386bsd_fetch_inferior_registers,
11394 i386bsd_store_inferior_registers) Use gdb_ptrace.
11395
11396 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11397
11398 * amd64-bsd-nat.c (gdb_ptrace): New.
11399 * (amd64bsd_fetch_inferior_registers,
11400 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11401 * (amd64bsd_fetch_inferior_registers,
11402 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11403
11404 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11405
11406 * user-regs.c (user_reg::read): Rename to...
11407 (user_reg::xread): ...this.
11408 * (append_user_reg): Rename argument `read' to `xread'.
11409 * (user_reg_add_builtin): Likewise.
11410 * (user_reg_add): Likewise.
11411 * (value_of_user_reg): Likewise.
11412
11413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11414
11415 * sparc-nat.c (gdb_ptrace): New.
11416 * sparc-nat.c (sparc_fetch_inferior_registers)
11417 (sparc_store_inferior_registers) Remove obsolete comment.
11418 * sparc-nat.c (sparc_fetch_inferior_registers)
11419 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11420 * sparc-nat.c (sparc_fetch_inferior_registers)
11421 (sparc_store_inferior_registers) Use gdb_ptrace.
11422
11423 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11424
11425 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11426 it to the ptrace call.
11427 * sh-nbsd-nat.c (store_registers): Likewise.
11428
11429 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11430
11431 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11432 nbsd_nat_target instead of inf_ptrace_target.
11433 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11434 nbsd_nat_target.
11435
11436 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11437
11438 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11439
11440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11441
11442 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11443 <sys/sysctl.h>.
11444 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11445
11446 2020-03-17 Tom de Vries <tdevries@suse.de>
11447
11448 PR gdb/23710
11449 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11450 fields.
11451 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11452 fields.
11453 (process_imported_unit_die): Skip import of c++ CUs.
11454
11455 2020-03-16 Tom Tromey <tom@tromey.com>
11456
11457 * p-valprint.c (pascal_object_print_value): Initialize
11458 base_value.
11459
11460 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11461 Shahab Vahedi <shahab@synopsys.com>
11462
11463 * Makefile.in: Add arch/arc.o
11464 * configure.tgt: Likewise.
11465 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11466 (_initialize_arc_tdep): Don't initialize old target descriptions.
11467 (arc_read_description): New function to cache target descriptions.
11468 * arc-tdep.h (arc_read_description): Add proto type.
11469 * arch/arc.c: New file.
11470 * arch/arc.h: Likewise.
11471 * features/Makefile: Replace old target descriptions with new.
11472 * features/arc-arcompact.c: Remove.
11473 * features/arc-arcompact.xml: Likewise.
11474 * features/arc-v2.c: Likewise
11475 * features/arc-v2.xml: Likewise
11476 * features/arc/aux-arcompact.xml: New file.
11477 * features/arc/aux-v2.xml: Likewise.
11478 * features/arc/core-arcompact.xml: Likewise.
11479 * features/arc/core-v2.xml: Likewise.
11480 * features/arc/aux-arcompact.c: Generate.
11481 * features/arc/aux-v2.c: Likewise.
11482 * features/arc/core-arcompact.c: Likewise.
11483 * features/arc/core-v2.c: Likewise.
11484 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11485
11486 2020-03-16 Tom Tromey <tromey@adacore.com>
11487
11488 PR gdb/25663:
11489 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11490 putting value into bcache.
11491
11492 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11493
11494 PR gdb/21500
11495 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11496 to...
11497 (amd64_windows_init_abi_common): ... this. Don't set size of
11498 long type.
11499 (amd64_windows_init_abi): New function.
11500 (amd64_cygwin_init_abi): New function.
11501 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11502 the Cygwin OS ABI.
11503 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11504 comment.
11505
11506 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11507
11508 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11509 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11510 (pe_import_directory_entry): New struct type.
11511 (is_linked_with_cygwin_dll): New function.
11512 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11513 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11514 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11515
11516 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11517
11518 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11519 i386_cygwin_core_osabi_sniffer.
11520
11521 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11522
11523 * i386-cygwin-tdep.c: Rename to...
11524 * i386-windows-tdep.c: ... this.
11525 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11526 i386-windows-tdep.c.
11527 * configure.tgt: Likewise.
11528
11529 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11530
11531 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11532 * osabi.c (gdb_osabi_names): Add "Windows".
11533 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11534 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11535 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11536 i386_cygwin_osabi_sniffer.
11537 (_initialize_i386_cygwin_tdep): Register OS ABI
11538 GDB_OSABI_WINDOWS for i386.
11539 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11540 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11541 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11542 for x86-64.
11543 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11544 when the target matches '*-*-mingw*'.
11545
11546 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11547
11548 * defs.h (enum gdb_osabi): Move to...
11549 * osabi.h (enum gdb_osabi): ... here.
11550 * gdbarch.sh: Include osabi.h in gdbarch.h.
11551 * gdbarch.h: Re-generate.
11552
11553 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11556 function.
11557 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11558
11559 2020-03-14 Tom Tromey <tom@tromey.com>
11560
11561 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11562 for C++.
11563 (c_type_print_modifier): Likewise. Add "language" parameter.
11564 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11565 (c_type_print_base_1): Update.
11566 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11567 constants.
11568 * type-stack.c (type_stack::insert): Handle tp_atomic and
11569 tp_restrict.
11570 (type_stack::follow_type_instance_flags): Likewise.
11571 (type_stack::follow_types): Likewise. Merge type-following code.
11572 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11573 (space_identifier, cv_with_space_id)
11574 (const_or_volatile_or_space_identifier_noopt)
11575 (const_or_volatile_or_space_identifier): Remove.
11576 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11577 rules.
11578 (ptr_operator, typebase): Update.
11579 (enum token_flag) <FLAG_C>: New constant.
11580 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11581 "_Atomic".
11582 (lex_one_token): Handle FLAG_C.
11583
11584 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11585
11586 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11587 it to the ptrace call.
11588 * m68k-bsd-nat.c (store_registers): Likewise.
11589
11590 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11591
11592 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11593 gdb_byte *.
11594 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11595 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11596 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11597
11598 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11599
11600 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11601 nbsd_nat_target instead of inf_ptrace_target.
11602 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11603 nbsd_nat_target.
11604
11605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11606
11607 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11608 register_t.
11609
11610 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11611
11612 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11613 it to the ptrace call.
11614 * alpha-bsd-nat.c (store_registers): Likewise.
11615
11616 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11617
11618 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11619 includes.
11620 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11621 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11622 fill_fpregset): Likewise.
11623
11624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11625
11626 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11627 nbsd_nat_target instead of inf_ptrace_target.
11628 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11629 nbsd_nat_target.
11630
11631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11632
11633 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11634 register_t.
11635
11636 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11637
11638 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11639 it to the ptrace call.
11640 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11641 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11642 * arm-nbsd-nat.c (store_register): Likewise.
11643 * arm-nbsd-nat.c (store_regs): Likewise.
11644 * arm-nbsd-nat.c (store_fp_register): Likewise.
11645 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11646
11647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11648
11649 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11650 nbsd_nat_target instead of inf_ptrace_target.
11651 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11652 nbsd_nat_target.
11653
11654 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11655
11656 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11657 it to the ptrace call.
11658 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11659
11660 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11661
11662 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11663 it to the ptrace call.
11664 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11665
11666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11667
11668 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11669 gdb_byte *.
11670 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11671
11672 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11673
11674 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11675 instead of inf_ptrace_target.
11676 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11677 nbsd_nat_target.
11678
11679 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11680
11681 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11682 register_t.
11683
11684 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11685
11686 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11687 register_t.
11688
11689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11690
11691 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11692 register_t.
11693
11694 2020-03-13 Tom Tromey <tom@tromey.com>
11695
11696 * value.h (val_print): Don't declare.
11697 * valprint.h (val_print_array_elements)
11698 (val_print_scalar_formatted, generic_val_print): Don't declare.
11699 * valprint.c (generic_val_print_array): Take a struct value.
11700 (generic_val_print_ptr, generic_val_print_memberptr)
11701 (generic_val_print_bool, generic_val_print_int)
11702 (generic_val_print_char, generic_val_print_complex)
11703 (generic_val_print): Remove.
11704 (generic_value_print): Update.
11705 (do_val_print): Remove unused parameters. Don't call
11706 la_val_print.
11707 (val_print): Remove.
11708 (common_val_print): Update. Don't call value_check_printable.
11709 (val_print_scalar_formatted, val_print_array_elements): Remove.
11710 * rust-lang.c (rust_val_print): Remove.
11711 (rust_language_defn): Update.
11712 * p-valprint.c (pascal_val_print): Remove.
11713 (pascal_value_print_inner): Update.
11714 (pascal_object_print_val_fields, pascal_object_print_val):
11715 Remove.
11716 (pascal_object_print_static_field): Update.
11717 * p-lang.h (pascal_val_print): Don't declare.
11718 * p-lang.c (pascal_language_defn): Update.
11719 * opencl-lang.c (opencl_language_defn): Update.
11720 * objc-lang.c (objc_language_defn): Update.
11721 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11722 * m2-lang.h (m2_val_print): Don't declare.
11723 * m2-lang.c (m2_language_defn): Update.
11724 * language.h (struct language_defn) <la_val_print>: Remove.
11725 * language.c (unk_lang_value_print_inner): Rename. Change
11726 argument types.
11727 (unknown_language_defn, auto_language_defn): Update.
11728 * go-valprint.c (go_val_print): Remove.
11729 * go-lang.h (go_val_print): Don't declare.
11730 * go-lang.c (go_language_defn): Update.
11731 * f-valprint.c (f_val_print): Remove.
11732 * f-lang.h (f_value_print): Don't declare.
11733 * f-lang.c (f_language_defn): Update.
11734 * d-valprint.c (d_val_print): Remove.
11735 * d-lang.h (d_value_print): Don't declare.
11736 * d-lang.c (d_language_defn): Update.
11737 * cp-valprint.c (cp_print_value_fields)
11738 (cp_print_value_fields_rtti, cp_print_value): Remove.
11739 (cp_print_static_field): Update.
11740 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11741 (c_val_print_struct, c_val_print_union, c_val_print_int)
11742 (c_val_print_memberptr, c_val_print): Remove.
11743 * c-lang.h (c_val_print_array, cp_print_value_fields)
11744 (cp_print_value_fields_rtti): Don't declare.
11745 * c-lang.c (c_language_defn, cplus_language_defn)
11746 (asm_language_defn, minimal_language_defn): Update.
11747 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11748 (ada_val_print_enum): Take a struct value.
11749 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11750 (ada_val_print): Remove.
11751 (ada_value_print_1): Update.
11752 (printable_val_type): Remove.
11753 * ada-lang.h (ada_val_print): Don't declare.
11754 * ada-lang.c (ada_language_defn): Update.
11755
11756 2020-03-13 Tom Tromey <tom@tromey.com>
11757
11758 * valprint.c (do_val_print): Update.
11759 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11760 a struct value.
11761 (value_to_value_object_no_release): Declare.
11762 * python/py-value.c (value_to_value_object_no_release): New
11763 function.
11764 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11765 struct value.
11766 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11767 function.
11768 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11769 a struct value.
11770 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11771 Declare.
11772 (gdbscm_apply_val_pretty_printer): Take a struct value.
11773 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11774 value.
11775 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11776 value.
11777 * extension-priv.h (struct extension_language_ops)
11778 <apply_val_pretty_printer>: Take a struct value.
11779 * cp-valprint.c (cp_print_value): Create a struct value.
11780 (cp_print_value): Update.
11781
11782 2020-03-13 Tom Tromey <tom@tromey.com>
11783
11784 * ada-valprint.c (print_field_values): Call common_val_print.
11785
11786 2020-03-13 Tom Tromey <tom@tromey.com>
11787
11788 * ada-valprint.c (val_print_packed_array_elements): Remove
11789 bitoffset and val parameters. Call common_val_print.
11790 (ada_val_print_string): Remove offset, address, and original_value
11791 parameters.
11792 (ada_val_print_array): Update.
11793 (ada_value_print_array): New function.
11794 (ada_value_print_1): Call it.
11795
11796 2020-03-13 Tom Tromey <tom@tromey.com>
11797
11798 * ada-valprint.c (ada_value_print): Use common_val_print.
11799
11800 2020-03-13 Tom Tromey <tom@tromey.com>
11801
11802 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11803
11804 2020-03-13 Tom Tromey <tom@tromey.com>
11805
11806 * ada-valprint.c (ada_value_print_num): New function.
11807 (ada_value_print_1): Use it.
11808
11809 2020-03-13 Tom Tromey <tom@tromey.com>
11810
11811 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11812
11813 2020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * ada-valprint.c (ada_value_print_ptr): New function.
11816 (ada_value_print_1): Use it.
11817
11818 2020-03-13 Tom Tromey <tom@tromey.com>
11819
11820 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11821 call common_val_print.
11822 (ada_val_print_1): Update.
11823 (ada_value_print_1): New function.
11824 (ada_value_print_inner): Rewrite.
11825
11826 2020-03-13 Tom Tromey <tom@tromey.com>
11827
11828 * cp-valprint.c (cp_print_value_fields): Update.
11829 (cp_print_value): New function.
11830
11831 2020-03-13 Tom Tromey <tom@tromey.com>
11832
11833 * m2-valprint.c (m2_value_print_inner): Use
11834 cp_print_value_fields.
11835 * cp-valprint.c (cp_print_value_fields): New function.
11836 * c-valprint.c (c_value_print_struct): New function.
11837 (c_value_print_inner): Use c_value_print_struct.
11838 * c-lang.h (cp_print_value_fields): Declare.
11839
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * c-valprint.c (c_value_print_array): New function.
11843 (c_value_print_inner): Use it.
11844
11845 2020-03-13 Tom Tromey <tom@tromey.com>
11846
11847 * c-valprint.c (c_value_print_memberptr): New function.
11848 (c_value_print_inner): Use it.
11849
11850 2020-03-13 Tom Tromey <tom@tromey.com>
11851
11852 * c-valprint.c (c_value_print_int): New function.
11853 (c_value_print_inner): Use it.
11854
11855 2020-03-13 Tom Tromey <tom@tromey.com>
11856
11857 * c-valprint.c (c_value_print_ptr): New function.
11858 (c_value_print_inner): Use it.
11859
11860 2020-03-13 Tom Tromey <tom@tromey.com>
11861
11862 * c-valprint.c (c_value_print_inner): Rewrite.
11863
11864 2020-03-13 Tom Tromey <tom@tromey.com>
11865
11866 * valprint.c (generic_value_print_complex): New function.
11867 (generic_value_print): Use it.
11868
11869 2020-03-13 Tom Tromey <tom@tromey.com>
11870
11871 * valprint.c (generic_val_print_float): Don't call
11872 val_print_scalar_formatted.
11873 (generic_val_print, generic_value_print): Update.
11874
11875 2020-03-13 Tom Tromey <tom@tromey.com>
11876
11877 * valprint.c (generic_value_print_char): New function
11878 (generic_value_print): Use it.
11879
11880 2020-03-13 Tom Tromey <tom@tromey.com>
11881
11882 * valprint.c (generic_value_print_int): New function.
11883 (generic_value_print): Use it.
11884
11885 2020-03-13 Tom Tromey <tom@tromey.com>
11886
11887 * valprint.c (generic_value_print_bool): New function.
11888 (generic_value_print): Use it.
11889
11890 2020-03-13 Tom Tromey <tom@tromey.com>
11891
11892 * valprint.c (generic_val_print_func): Simplify.
11893 (generic_val_print, generic_value_print): Update.
11894
11895 2020-03-13 Tom Tromey <tom@tromey.com>
11896
11897 * valprint.c (generic_val_print_flags): Remove.
11898 (generic_val_print, generic_value_print): Update.
11899 (val_print_type_code_flags): Add original_value parameter.
11900
11901 2020-03-13 Tom Tromey <tom@tromey.com>
11902
11903 * valprint.c (generic_val_print): Update.
11904 (generic_value_print): Update.
11905 * valprint.c (generic_val_print_enum): Don't call
11906 val_print_scalar_formatted.
11907
11908 2020-03-13 Tom Tromey <tom@tromey.com>
11909
11910 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11911 * valprint.c (generic_value_print_ptr): New function.
11912
11913 2020-03-13 Tom Tromey <tom@tromey.com>
11914
11915 * valprint.c (generic_value_print): Rewrite.
11916
11917 2020-03-13 Tom Tromey <tom@tromey.com>
11918
11919 * p-valprint.c (pascal_object_print_value_fields)
11920 (pascal_object_print_value): New functions.
11921
11922 2020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * p-valprint.c (pascal_value_print_inner): Rewrite.
11925
11926 2020-03-13 Tom Tromey <tom@tromey.com>
11927
11928 * f-valprint.c (f_value_print_innner): Rewrite.
11929
11930 2020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * m2-valprint.c (m2_print_unbounded_array): New overload.
11933 (m2_print_unbounded_array): Update.
11934 (m2_print_array_contents): Take a struct value.
11935 (m2_value_print_inner): Rewrite.
11936
11937 2020-03-13 Tom Tromey <tom@tromey.com>
11938
11939 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11940 (d_value_print_inner): New function.
11941 * d-lang.h (d_value_print_inner): Declare.
11942 * d-lang.c (d_language_defn): Use d_value_print_inner.
11943
11944 2020-03-13 Tom Tromey <tom@tromey.com>
11945
11946 * go-valprint.c (go_value_print_inner): New function.
11947 * go-lang.h (go_value_print_inner): Declare.
11948 * go-lang.c (go_language_defn): Use go_value_print_inner.
11949
11950 2020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11953 API.
11954 (rust_val_print): Rewrite.
11955 (rust_value_print_inner): New function, from rust_val_print.
11956 (rust_language_defn): Use rust_value_print_inner.
11957
11958 2020-03-13 Tom Tromey <tom@tromey.com>
11959
11960 * ada-valprint.c (ada_value_print_inner): New function.
11961 * ada-lang.h (ada_value_print_inner): Declare.
11962 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11963
11964 2020-03-13 Tom Tromey <tom@tromey.com>
11965
11966 * f-valprint.c (f_value_print_innner): New function.
11967 * f-lang.h (f_value_print_innner): Declare.
11968 * f-lang.c (f_language_defn): Use f_value_print_innner.
11969
11970 2020-03-13 Tom Tromey <tom@tromey.com>
11971
11972 * p-valprint.c (pascal_value_print_inner): New function.
11973 * p-lang.h (pascal_value_print_inner): Declare.
11974 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11975
11976 2020-03-13 Tom Tromey <tom@tromey.com>
11977
11978 * m2-valprint.c (m2_value_print_inner): New function.
11979 * m2-lang.h (m2_value_print_inner): Declare.
11980 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11981
11982 2020-03-13 Tom Tromey <tom@tromey.com>
11983
11984 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11985 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11986 * c-valprint.c (c_value_print_inner): New function.
11987 * c-lang.h (c_value_print_inner): Declare.
11988 * c-lang.c (c_language_defn, cplus_language_defn)
11989 (asm_language_defn, minimal_language_defn): Use
11990 c_value_print_inner.
11991
11992 2020-03-13 Tom Tromey <tom@tromey.com>
11993
11994 * p-valprint.c (pascal_object_print_value_fields): Now static.
11995 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11996
11997 2020-03-13 Tom Tromey <tom@tromey.com>
11998
11999 * c-valprint.c (c_val_print_array): Simplify.
12000
12001 2020-03-13 Tom Tromey <tom@tromey.com>
12002
12003 * valprint.c (value_print_array_elements): New function.
12004 * valprint.h (value_print_array_elements): Declare.
12005
12006 2020-03-13 Tom Tromey <tom@tromey.com>
12007
12008 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12009 * mips-tdep.c (mips_print_register): Use
12010 value_print_scalar_formatted.
12011
12012 2020-03-13 Tom Tromey <tom@tromey.com>
12013
12014 * valprint.h (value_print_scalar_formatted): Declare.
12015 * valprint.c (value_print_scalar_formatted): New function.
12016
12017 2020-03-13 Tom Tromey <tom@tromey.com>
12018
12019 * valprint.h (generic_value_print): Declare.
12020 * valprint.c (generic_value_print): New function.
12021
12022 2020-03-13 Tom Tromey <tom@tromey.com>
12023
12024 * valprint.c (do_val_print): Call la_value_print_inner, if
12025 available.
12026 * rust-lang.c (rust_language_defn): Update.
12027 * p-lang.c (pascal_language_defn): Update.
12028 * opencl-lang.c (opencl_language_defn): Update.
12029 * objc-lang.c (objc_language_defn): Update.
12030 * m2-lang.c (m2_language_defn): Update.
12031 * language.h (struct language_defn) <la_value_print_inner>: New
12032 member.
12033 * language.c (unknown_language_defn, auto_language_defn): Update.
12034 * go-lang.c (go_language_defn): Update.
12035 * f-lang.c (f_language_defn): Update.
12036 * d-lang.c (d_language_defn): Update.
12037 * c-lang.c (c_language_defn, cplus_language_defn)
12038 (asm_language_defn, minimal_language_defn): Update.
12039 * ada-lang.c (ada_language_defn): Update.
12040
12041 2020-03-13 Tom Tromey <tom@tromey.com>
12042
12043 * c-valprint.c (c_value_print): Use common_val_print.
12044
12045 2020-03-13 Tom Tromey <tom@tromey.com>
12046
12047 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12048
12049 2020-03-13 Tom Tromey <tom@tromey.com>
12050
12051 * f-valprint.c (f77_print_array_1, f_val_print): Use
12052 common_val_print.
12053
12054 2020-03-13 Tom Tromey <tom@tromey.com>
12055
12056 * riscv-tdep.c (riscv_print_one_register_info): Use
12057 common_val_print.
12058
12059 2020-03-13 Tom Tromey <tom@tromey.com>
12060
12061 * mi/mi-main.c (output_register): Use common_val_print.
12062
12063 2020-03-13 Tom Tromey <tom@tromey.com>
12064
12065 * infcmd.c (default_print_one_register_info): Use
12066 common_val_print.
12067
12068 2020-03-13 Tom Tromey <tom@tromey.com>
12069
12070 * valprint.h (common_val_print_checked): Declare.
12071 * valprint.c (common_val_print_checked): New function.
12072 * stack.c (print_frame_arg): Use common_val_print_checked.
12073
12074 2020-03-13 Tom Tromey <tom@tromey.com>
12075
12076 * valprint.c (do_val_print): New function, from val_print.
12077 (val_print): Use do_val_print.
12078 (common_val_print): Use do_val_print.
12079
12080 2020-03-13 Tom Tromey <tom@tromey.com>
12081
12082 * valprint.c (value_print): Use scoped_value_mark.
12083
12084 2020-03-13 Tom de Vries <tdevries@suse.de>
12085
12086 PR symtab/25646
12087 * psymtab.c (partial_symtab::partial_symtab): Don't set
12088 globals_offset and statics_offset. Push element onto
12089 current_global_psymbols and current_static_psymbols stacks.
12090 (concat): New function.
12091 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12092 element from current_global_psymbols and current_static_psymbols
12093 stacks. Concat popped elements to global_psymbols and
12094 static_symbols.
12095 (add_psymbol_to_list): Use current_global_psymbols and
12096 current_static_psymbols stacks.
12097 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12098 current_static_psymbols fields.
12099
12100 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12101
12102 * corelow.c (sniff_core_bfd): Remove.
12103 (class core_target) <m_core_vec>: Remove.
12104 (core_target::core_target): Update.
12105 (core_file_fns): Remove.
12106 (deprecated_add_core_fns): Remove.
12107 (default_core_sniffer): Remove.
12108 (sniff_core_bfd): Remove.
12109 (default_check_format): Remove.
12110 (gdb_check_format): Remove.
12111 (core_target_open): Update.
12112 (core_target::get_core_register_section): Update.
12113 (get_core_registers_cb): Update.
12114 (core_target::fetch_registers): Update.
12115 * gdbcore.h (struct core_fns): Remove.
12116 (deprecated_add_core_fns): Remove.
12117 (default_core_sniffer): Remove.
12118 (default_check_format): Remove.
12119
12120 2020-03-12 Tom Tromey <tom@tromey.com>
12121
12122 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12123 CORE_ADDR.
12124 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12125
12126 2020-03-12 Tom Tromey <tom@tromey.com>
12127
12128 * remote.c (remote_target::download_tracepoint)
12129 (remote_target::enable_tracepoint)
12130 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12131 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12132 sprintf_vma.
12133
12134 2020-03-12 Tom Tromey <tom@tromey.com>
12135
12136 * symfile-mem.c: Update CORE_ADDR size assert.
12137
12138 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12139
12140 * selftest.m4: Move to gdbsupport/.
12141 * acinclude.m4: Update path to selftest.m4.
12142
12143 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12144
12145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12146 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12147 gdbarch-selfselftests.c and selftest-arch.c.
12148 (SUBDIR_UNITTESTS_OBS): Rename to...
12149 (SELFTESTS_OBS): ... this.
12150 (COMMON_SFILES): Remove disasm-selftests.c and
12151 gdbarch-selftests.c.
12152 * configure.ac: Don't add selftest-arch.{c,o} to
12153 CONFIG_{SRCS,OBS}.
12154 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12155 preprocessor conditions.
12156
12157 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12158
12159 * configure.ac: Don't source bfd/development.sh.
12160 * selftest.m4: Modify comment.
12161 * configure: Re-generate.
12162
12163 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12164
12165 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12166 not "true" or "false".
12167 * configure: Re-generate.
12168
12169 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12170
12171 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12172 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12173 renamed to arm_nbsd_supply_gregset.
12174 (fetch_register): Update to call arm_nbsd_supply_gregset.
12175 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12176 (arm_netbsd_nat_target::fetch_registers): Update.
12177 (fetch_elfcore_registers): Removed.
12178 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12179 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12180 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12181 not require NetBSD system headers.
12182 (arm_nbsd_regset): New struct.
12183 (arm_nbsd_iterate_over_regset_sections): New function.
12184 (arm_netbsd_init_abi_common): Updated to call
12185 set_gdbarch_iterate_over_regset_sections.
12186 * arm-nbsd-tdep.h: New file.
12187
12188 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12189
12190 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12191 recursion.
12192
12193 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12194
12195 * configure: Re-generate.
12196
12197 2020-03-11 Tom Tromey <tromey@adacore.com>
12198
12199 * ada-typeprint.c (print_choices): Fix comment.
12200
12201 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12202
12203 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12204 previous item in the list, when the list has no items.
12205
12206 2020-03-11 Tom de Vries <tdevries@suse.de>
12207
12208 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12209 PROP_LOCLIST handling code.
12210
12211 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * buildsym-legacy.c (record_line): Pass extra parameter to
12214 record_line.
12215 * buildsym.c (buildsym_compunit::record_line): Take an extra
12216 parameter, reduce duplication in the line table, and record the
12217 is_stmt flag in the line table.
12218 * buildsym.h (buildsym_compunit::record_line): Add extra
12219 parameter.
12220 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12221 non-statement lines.
12222 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12223 this to the symtab builder.
12224 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12225 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12226 through to dwarf_record_line_1.
12227 * infrun.c (process_event_stop_test): When stepping, don't stop at
12228 a non-statement instruction, and only refresh the step info when
12229 we land in the middle of a line's range. Also add an extra
12230 comment.
12231 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12232 field.
12233 * record-btrace.c (btrace_find_line_range): Only record lines
12234 marked as is-statement.
12235 * stack.c (frame_show_address): Show the frame address if we are
12236 in a non-statement sal.
12237 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12238 (maintenance_print_one_line_table): Print a header for the is_stmt
12239 column, and include is_stmt information in the output.
12240 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12241 preference to non-statements.
12242 (find_pcs_for_symtab_line): Prefer is-statement entries.
12243 (find_line_common): Likewise.
12244 * symtab.h (struct linetable_entry): Add is_stmt field.
12245 (struct symtab_and_line): Likewise.
12246 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12247 arranging the line table.
12248
12249 2020-03-07 Tom de Vries <tdevries@suse.de>
12250
12251 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12252 DIE.
12253
12254 2020-03-07 Tom Tromey <tom@tromey.com>
12255
12256 * valops.c (value_literal_complex): Remove obsolete comment.
12257 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12258 comment.
12259
12260 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12261
12262 * infrun.h: Forward-declare thread_info.
12263 (set_step_info): Add thread_info parameter, add doc.
12264 * infrun.c (set_step_info): Add thread_info parameter, move doc
12265 to header.
12266 * infrun.c (process_event_stop_test): Pass thread to
12267 set_step_info call.
12268 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12269 set_step_info.
12270 (prepare_one_step): Add thread_info parameter, pass it to
12271 set_step_frame and prepare_one_step (recursive) call.
12272 (step_1): Pass thread to prepare_one_step call.
12273 (step_command_fsm::should_stop): Pass thread to
12274 prepare_one_step.
12275 (until_next_fsm): Pass thread to set_step_frame call.
12276 (finish_command): Pass thread to set_step_info call.
12277
12278 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12279
12280 * windows-tdep.c (windows_solib_create_inferior_hook):
12281 Check if inferior is running.
12282
12283 2020-03-06 Tom de Vries <tdevries@suse.de>
12284
12285 * NEWS: Fix "the the".
12286 * ctfread.c: Same.
12287
12288 2020-03-06 Tom de Vries <tdevries@suse.de>
12289
12290 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12291
12292 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12293
12294 * .dir-locals.el: Add a comment referencing the other copies of
12295 this file.
12296
12297 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12298
12299 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12300 psargs.
12301
12302 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12303
12304 * .gitattributes: New file.
12305
12306 2020-03-04 Tom Tromey <tom@tromey.com>
12307
12308 * symmisc.c (print_symbol_bcache_statistics)
12309 (print_objfile_statistics): Update.
12310 * symfile.c (allocate_symtab): Use intern.
12311 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12312 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12313 macro_cache>: Remove.
12314 <string_cache>: New member.
12315 (struct objfile) <intern>: New methods.
12316 * elfread.c (elf_symtab_read): Use intern.
12317 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12318 (dwarf2_compute_name, dwarf2_physname)
12319 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12320 names.
12321 (guess_partial_die_structure_name): Update.
12322 (partial_die_info::fixup): Intern name.
12323 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12324 name.
12325 (dwarf2_name): Intern name. Update.
12326 * buildsym.c (buildsym_compunit::get_macro_table): Use
12327 string_cache.
12328
12329 2020-03-04 Tom Tromey <tom@tromey.com>
12330
12331 * jit.c (bfd_open_from_target_memory): Make "target" const.
12332 * corefile.c (gnutarget): Now const.
12333 * gdbcore.h (gnutarget): Now const.
12334
12335 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12336
12337 * NEWS: Mention support for WOW64 processes.
12338 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12339 (amd64_windows_segment_register_p): Remove static.
12340 (_initialize_amd64_windows_nat): Update.
12341 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12342 * i386-windows-nat.c (context_offset): Update.
12343 (i386_mappings): Rename and remove static.
12344 (i386_windows_segment_register_p): Remove static.
12345 (_initialize_i386_windows_nat): Update.
12346 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12347 (STATUS_WX86_SINGLE_STEP): New macro.
12348 (EnumProcessModulesEx): New macro.
12349 (Wow64SuspendThread): New macro.
12350 (Wow64GetThreadContext): New macro.
12351 (Wow64SetThreadContext): New macro.
12352 (Wow64GetThreadSelectorEntry): New macro.
12353 (windows_set_context_register_offsets): Add static.
12354 (windows_set_segment_register_p): Likewise.
12355 (windows_add_thread): Adapt for WOW64 processes.
12356 (windows_fetch_one_register): Likewise.
12357 (windows_nat_target::fetch_registers): Likewise.
12358 (windows_store_one_register): Likewise.
12359 (display_selector): Likewise.
12360 (display_selectors): Likewise.
12361 (handle_exception): Likewise.
12362 (windows_continue): Likewise.
12363 (windows_nat_target::resume): Likewise.
12364 (windows_add_all_dlls): Likewise.
12365 (do_initial_windows_stuff): Likewise.
12366 (windows_nat_target::attach): Likewise.
12367 (windows_get_exec_module_filename): Likewise.
12368 (windows_nat_target::create_inferior): Likewise.
12369 (windows_xfer_siginfo): Likewise.
12370 (_initialize_loadable): Initialize Wow64SuspendThread,
12371 Wow64GetThreadContext, Wow64SetThreadContext,
12372 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12373 * windows-nat.h (windows_set_context_register_offsets):
12374 Remove declaration.
12375 (windows_set_segment_register_p): Likewise.
12376 (i386_windows_segment_register_p): Add declaration.
12377 (amd64_windows_segment_register_p): Likewise.
12378
12379 2020-03-04 Luis Machado <luis.machado@linaro.org>
12380
12381 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12382 in "info registers" for AArch64/ARM.
12383
12384 The change caused "info registers" to not print GPR's.
12385
12386 gdb/ChangeLog:
12387
12388 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12389
12390 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12391 when reg->group is empty and reggroup is not.
12392
12393 2020-03-03 Tom Tromey <tromey@adacore.com>
12394
12395 * dwarf2/frame.c (struct dwarf2_frame_cache)
12396 <checked_tailcall_bottom, entry_cfa_sp_offset,
12397 entry_cfa_sp_offset_p>: Remove members.
12398 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12399 (dwarf2_frame_prev_register): Don't call
12400 dwarf2_tailcall_sniffer_first.
12401 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12402 * frame-unwind.c (add_unwinder): New fuction.
12403 (frame_unwind_init): Use it. Add tailcall unwinder.
12404
12405 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12406 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12407
12408 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12409 value should be printed as true.
12410
12411 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12412
12413 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12414 (windows_init_abi): Set and use windows_so_ops.
12415
12416 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12417
12418 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12419 when verifying if dealing with a convenience variable.
12420
12421 2020-03-03 Luis Machado <luis.machado@linaro.org>
12422
12423 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12424
12425 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * infrun.c (gdbarch_supports_displaced_stepping): New.
12428 (use_displaced_stepping): Break up conditions in smaller pieces.
12429 Use gdbarch_supports_displaced_stepping.
12430 (displaced_step_prepare_throw): Use
12431 gdbarch_supports_displaced_stepping.
12432
12433 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12434
12435 * NEWS: Mention new behaviour of the history filename.
12436 * top.c (write_history_p): Add comment.
12437 (show_write_history_p): Add header comment, give a different
12438 message when history writing is on, but the history filename is
12439 empty.
12440 (history_filename): Add comment.
12441 (history_filename_empty): New function.
12442 (show_history_filename): Add header comment, give a different
12443 message when the filename is empty.
12444 (init_history): Compare history_filename against nullptr, and only
12445 read history if the filename is not empty.
12446 (set_history_filename): Add header comment, and only make
12447 non-empty filenames absolute.
12448 (init_main): Make the filename argument to 'set history filename'
12449 optional.
12450
12451 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12452
12453 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12454 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12455 (fetch_fp_register): Update.
12456 (fetch_fp_regs): Update.
12457 (store_fp_register): Update.
12458 (store_fp_regs): Update.
12459 (arm_netbsd_nat_target::read_description): New function.
12460 (fetch_elfcore_registers): Update.
12461
12462 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12463
12464 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12465 general_thread if the stop reply is missing a thread-id.
12466 (remote_target::process_stop_reply): Use the first non-exited
12467 thread if the target didn't pass a thread-id.
12468 * infrun.c (do_target_wait): Move call to
12469 switch_to_inferior_no_thread to ....
12470 (do_target_wait_1): ... here.
12471
12472 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12473
12474 * debuginfod-support.c: Include defs.h first.
12475
12476 2020-02-28 Tom de Vries <tdevries@suse.de>
12477
12478 * symfile.c (set_initial_language): Use default language for lookup.
12479
12480 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12481
12482 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12483 reader variable, pass `this` to read_cutu_die_from_dwo.
12484
12485 2020-02-27 Aaron Merey <amerey@redhat.com>
12486
12487 * source.c (open_source_file): Check for nullptr when computing
12488 srcpath.
12489
12490 2020-02-27 Tom Tromey <tromey@adacore.com>
12491
12492 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12493 member.
12494 (dwarf2_add_field): Don't update nfields.
12495 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12496
12497 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12498
12499 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12500 abs.
12501
12502 2020-02-26 Tom Tromey <tom@tromey.com>
12503
12504 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12505 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12506 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12507 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12508 per_cu_data.
12509
12510 2020-02-26 Tom Tromey <tom@tromey.com>
12511
12512 * dwarf2/index-write.c (psym_index_map): Change type.
12513 (add_address_entry_worker, write_one_signatured_type)
12514 (recursively_count_psymbols, recursively_write_psymbols)
12515 (class debug_names, psyms_seen_size, write_gdbindex)
12516 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12517
12518 2020-02-26 Aaron Merey <amerey@redhat.com>
12519
12520 * Makefile.in: Handle optional debuginfod support.
12521 * NEWS: Update.
12522 * README: Add --with-debuginfod summary.
12523 * config.in: Regenerate.
12524 * configure: Regenerate.
12525 * configure.ac: Handle optional debuginfod support.
12526 * debuginfod-support.c: debuginfod helper functions.
12527 * debuginfod-support.h: Ditto.
12528 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12529 summary.
12530 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12531 when a dwz file cannot be found.
12532 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12533 debuginfo file cannot be found.
12534 * source.c (open_source_file): Query debuginfod servers when a
12535 source file cannot be found.
12536 * top.c (print_gdb_configuration): Include
12537 --{with,without}-debuginfod in the output.
12538
12539 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12540
12541 * thread.c (thr_try_catch_cmd): Print thread name.
12542
12543 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12544
12545 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12546 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12547 dwarf2_fetch_die_type_sect_off): Move to...
12548 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12549 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12550 dwarf2_fetch_die_type_sect_off): ... here.
12551 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12552 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12553 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12554
12555 2020-02-26 Tom de Vries <tdevries@suse.de>
12556
12557 PR gdb/25603
12558 * symfile.c (set_initial_language): Exit-early if
12559 language_mode == language_mode_manual.
12560
12561 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12562
12563 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12564 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12565 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12566
12567 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12568
12569 * gdbtypes.c (create_array_type_with_stride): Handle negative
12570 array strides.
12571 * valarith.c (value_subscripted_rvalue): Likewise.
12572
12573 2020-02-25 Luis Machado <luis.machado@linaro.org>
12574
12575 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12576
12577 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12578
12579 * loc.h (dwarf2_get_die_type): Move to...
12580 * read.h (dwarf2_get_die_type): ... here.
12581 * read.c (dwarf2_get_die_type): Move doc to header.
12582
12583 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12584
12585 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12586 'gnulib/Makefile.in' to the list.
12587
12588 2020-02-24 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12591 Remove.
12592 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12593 XOBNEWVEC.
12594
12595 2020-02-24 Tom Tromey <tom@tromey.com>
12596
12597 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12598 New method.
12599 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12600 (dw2_do_instantiate_symtab, dw2_get_file_names)
12601 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12602
12603 2020-02-24 Tom Tromey <tom@tromey.com>
12604
12605 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12606 make_scoped_restore.
12607 (dwarf2_psymtab::read_symtab): Don't clear
12608 reading_partial_symbols.
12609
12610 2020-02-24 Tom de Vries <tdevries@suse.de>
12611
12612 PR gdb/25592
12613 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12614
12615 2020-02-24 Tom de Vries <tdevries@suse.de>
12616
12617 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12618 commands layout next/prev/regs.
12619
12620 2020-02-22 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12623 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12624
12625 2020-02-22 Tom Tromey <tom@tromey.com>
12626
12627 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12628
12629 2020-02-22 Tom Tromey <tom@tromey.com>
12630
12631 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12632 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12633 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12634 * tui/tui.c (_initialize_tui): Add usage text.
12635
12636 2020-02-22 Tom Tromey <tom@tromey.com>
12637
12638 * tui/tui-win.c (tui_set_focus_command)
12639 (tui_set_win_height_command): Use error_no_arg.
12640 (_initialize_tui_win): Update help text.
12641 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12642
12643 2020-02-22 Tom Tromey <tom@tromey.com>
12644
12645 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12646 * tui/tui-disasm.h (struct tui_disasm_window)
12647 <display_start_addr>: Declare.
12648 * tui/tui-source.h (struct tui_source_window)
12649 <display_start_addr>: Declare.
12650 * tui/tui-winsource.h (struct tui_source_window_base)
12651 <show_source_line, display_start_addr>: New methods.
12652 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12653 Rename and move to protected section.
12654 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12655 (tui_source_window_base::do_erase_source_content): Update.
12656 (tui_source_window_base::show_source_line): Now a method.
12657 (tui_source_window_base::show_source_content)
12658 (tui_source_window_base::tui_source_window_base)
12659 (tui_source_window_base::rerender)
12660 (tui_source_window_base::refill)
12661 (tui_source_window_base::do_scroll_horizontal)
12662 (tui_source_window_base::set_is_exec_point_at)
12663 (tui_source_window_base::update_breakpoint_info)
12664 (tui_source_window_base::update_exec_info): Update.
12665 * tui/tui-source.c (tui_source_window::set_contents)
12666 (tui_source_window::showing_source_p)
12667 (tui_source_window::do_scroll_vertical)
12668 (tui_source_window::location_matches_p)
12669 (tui_source_window::line_is_displayed): Update.
12670 (tui_source_window::display_start_addr): New method.
12671 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12672 (tui_disasm_window::do_scroll_vertical)
12673 (tui_disasm_window::location_matches_p): Update.
12674 (tui_disasm_window::display_start_addr): New method.
12675
12676 2020-02-22 Tom Tromey <tom@tromey.com>
12677
12678 * NEWS: Add entry for gdb.register_window_type.
12679 * tui/tui-layout.h (window_factory): New typedef.
12680 (tui_register_window): Declare.
12681 * tui/tui-layout.c (saved_tui_windows): New global.
12682 (tui_apply_current_layout): Use it.
12683 (tui_register_window): New function.
12684 * python/python.c (do_start_initialization): Call
12685 gdbpy_initialize_tui.
12686 (python_GdbMethods): Add "register_window_type" function.
12687 * python/python-internal.h (gdbpy_register_tui_window)
12688 (gdbpy_initialize_tui): Declare.
12689 * python/py-tui.c: New file.
12690 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12691
12692 2020-02-22 Tom Tromey <tom@tromey.com>
12693
12694 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12695
12696 2020-02-22 Tom Tromey <tom@tromey.com>
12697
12698 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12699 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12700 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12701 (tui_set_win_focus_to): Move from tui-win.c.
12702
12703 2020-02-22 Tom Tromey <tom@tromey.com>
12704
12705 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12706 functions.
12707 (known_window_types): New global.
12708 (tui_get_window_by_name): Reimplement.
12709 (initialize_known_windows): New function.
12710 (validate_window_name): Rewrite.
12711 (_initialize_tui_layout): Call initialize_known_windows.
12712
12713 2020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12716 Remove constants.
12717 * tui/tui-winsource.h (struct tui_source_window_base)
12718 <tui_source_window_base>: Remove parameter.
12719 * tui/tui-winsource.c
12720 (tui_source_window_base::tui_source_window_base): Remove
12721 parameter.
12722 (tui_source_window_base::refill): Update.
12723 * tui/tui-stack.h (struct tui_locator_window)
12724 <tui_locator_window>: Update.
12725 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12726 Default the constructor.
12727 * tui/tui-regs.h (struct tui_data_item_window)
12728 <tui_data_item_window>: Default the constructor.
12729 (struct tui_data_window) <tui_data_window>: Likewise.
12730 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12731 Default the constructor.
12732 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12733 Default the constructor.
12734 <type>: Remove.
12735 (struct tui_win_info) <tui_win_info>: Default the constructor.
12736 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12737 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12738 Default the constructor.
12739
12740 2020-02-22 Tom Tromey <tom@tromey.com>
12741
12742 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12743 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12744 * tui/tui-win.c (tui_resize_all): Don't call
12745 tui_delete_invisible_windows.
12746 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12747 done.
12748 (tui_set_layout): Update.
12749 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12750 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12751 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12752
12753 2020-02-22 Tom Tromey <tom@tromey.com>
12754
12755 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12756 correctly.
12757
12758 2020-02-22 Tom Tromey <tom@tromey.com>
12759
12760 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12761
12762 2020-02-22 Tom Tromey <tom@tromey.com>
12763
12764 * tui/tui-winsource.h (struct tui_source_window_iterator)
12765 <inner_iterator>: New etytypedef.
12766 <tui_source_window_iterator>: Take "end" parameter.
12767 <tui_source_window_iterator>: Take iterator.
12768 <operator*, advance>: Update.
12769 <m_iter>: Change type.
12770 <m_end>: New field.
12771 (struct tui_source_windows) <begin, end>: Update.
12772 * tui/tui-layout.c (tui_windows): New global.
12773 (tui_apply_current_layout): Clear tui_windows.
12774 (tui_layout_window::apply): Update tui_windows.
12775 * tui/tui-data.h (tui_windows): Declare.
12776 (all_tui_windows): Now inline function.
12777 (class tui_window_iterator, struct all_tui_windows): Remove.
12778
12779 2020-02-22 Tom Tromey <tom@tromey.com>
12780
12781 PR tui/17850:
12782 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12783 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12784 "height" argument.
12785 (class tui_layout_window) <get_sizes>: Likewise.
12786 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12787 argument.
12788 <get_sizes>: Add "height" argument.
12789 <m_vertical>: New field.
12790 * tui/tui-layout.c (tui_layout_split::clone): Update.
12791 (tui_layout_split::get_sizes): Add "height" argument.
12792 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12793 (tui_new_layout_command): Parse "-horizontal".
12794 (_initialize_tui_layout): Update help string.
12795 (tui_layout_split::specification): Add "-horizontal" when needed.
12796 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12797 argument.
12798 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12799 New methods.
12800
12801 2020-02-22 Tom Tromey <tom@tromey.com>
12802
12803 * tui/tui-layout.h (enum tui_adjust_result): New.
12804 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12805 (class tui_layout_window) <adjust_size>: Return
12806 tui_adjust_result. Rewrite.
12807 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12808 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12809
12810 2020-02-22 Tom Tromey <tom@tromey.com>
12811
12812 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12813 parameter and return types.
12814 (class tui_layout_base) <specification>: Add "depth".
12815 (class tui_layout_window) <specification>: Add "depth".
12816 (class tui_layout_split) <specification>: Add "depth".
12817 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12818 and return types.
12819 (tui_new_layout_command): Parse sub-layouts.
12820 (_initialize_tui_layout): Update help string.
12821 (tui_layout_window::specification): Add "depth".
12822 (add_layout_command): Update.
12823
12824 2020-02-22 Tom Tromey <tom@tromey.com>
12825
12826 * NEWS: Add "tui new-layout" item.
12827 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12828 Add new-layout command to help text.
12829 (validate_window_name): New function.
12830 (tui_new_layout_command): New function.
12831 (_initialize_tui_layout): Register "new-layout".
12832 (tui_layout_window::specification): New method.
12833 (tui_layout_window::specification): New method.
12834 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12835 method.
12836 (class tui_layout_window) <specification>: New method.
12837 (class tui_layout_split) <specification>: New method.
12838
12839 2020-02-22 Tom Tromey <tom@tromey.com>
12840
12841 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12842 * tui/tui-win.c (window_name_completer): Update comment.
12843 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12844 Declare method.
12845 (class tui_layout_window) <replace_window>: Likewise.
12846 (class tui_layout_split) <replace_window>: Likewise.
12847 (tui_set_layout): Don't declare.
12848 (tui_set_initial_layout): Declare function.
12849 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12850 (asm_regs_layout): New globals.
12851 (tui_current_layout, show_layout): Remove.
12852 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12853 (find_layout, tui_apply_layout): New function.
12854 (layout_completer): Remove.
12855 (tui_next_layout): Reimplement.
12856 (tui_next_layout_command): New function.
12857 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12858 (tui_regs_layout): Reimplement.
12859 (tui_regs_layout_command): New function.
12860 (extract_display_start_addr): Rewrite.
12861 (next_layout, prev_layout): Remove.
12862 (tui_layout_window::replace_window): New method.
12863 (tui_layout_split::replace_window): New method.
12864 (destroy_layout): New function.
12865 (layout_list): New global.
12866 (add_layout_command): New function.
12867 (initialize_layouts): Update.
12868 (tui_layout_command): New function.
12869 (_initialize_tui_layout): Install "layout" commands.
12870 * tui/tui-data.h (enum tui_layout_type): Remove.
12871 (tui_current_layout): Don't declare.
12872
12873 2020-02-22 Tom Tromey <tom@tromey.com>
12874
12875 * tui/tui-regs.c (tui_reg_layout): Remove.
12876 (tui_reg_command): Use tui_regs_layout.
12877 * tui/tui-layout.h (tui_reg_command): Declare.
12878 * tui/tui-layout.c (tui_reg_command): New function.
12879
12880 2020-02-22 Tom Tromey <tom@tromey.com>
12881
12882 * tui/tui.c (tui_rl_delete_other_windows): Call
12883 tui_remove_some_windows.
12884 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12885 Declare method.
12886 (class tui_layout_window) <remove_windows>: New method.
12887 (class tui_layout_split) <remove_windows>: Declare.
12888 (tui_remove_some_windows): Declare.
12889 * tui/tui-layout.c (tui_remove_some_windows): New function.
12890 (tui_layout_split::remove_windows): New method.
12891
12892 2020-02-22 Tom Tromey <tom@tromey.com>
12893
12894 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12895 * tui/tui-layout.h (tui_next_layout): Declare.
12896 * tui/tui-layout.c (tui_next_layout): New function.
12897
12898 2020-02-22 Tom Tromey <tom@tromey.com>
12899
12900 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12901 correct coordinates.
12902
12903 2020-02-22 Tom Tromey <tom@tromey.com>
12904
12905 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12906 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12907 DATA_WIN case.
12908
12909 2020-02-22 Tom Tromey <tom@tromey.com>
12910
12911 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12912 TUI_DISASM_WIN, not tui_win_list.
12913
12914 2020-02-22 Tom Tromey <tom@tromey.com>
12915
12916 * valprint.c (generic_val_print_enum_1)
12917 (val_print_type_code_flags): Style member names.
12918 * rust-lang.c (val_print_struct, rust_print_enum)
12919 (rust_print_struct_def, rust_internal_print_type): Style member
12920 names.
12921 * p-valprint.c (pascal_object_print_value_fields): Style member
12922 names. Only call fprintf_symbol_filtered for static members.
12923 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12924 * f-valprint.c (f_val_print): Style member names.
12925 * f-typeprint.c (f_type_print_base): Style member names.
12926 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12927 call fprintf_symbol_filtered for static members.
12928 (cp_print_class_member): Style member names.
12929 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12930 member names.
12931 * ada-valprint.c (ada_print_scalar): Style enum names.
12932 (ada_val_print_enum): Likewise.
12933 * ada-typeprint.c (print_enum_type): Style enum names.
12934
12935 2020-02-21 Tom Tromey <tom@tromey.com>
12936
12937 * psympriv.h (struct partial_symtab): Update comment.
12938
12939 2020-02-21 Tom Tromey <tromey@adacore.com>
12940
12941 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12942 type is CORE_ADDR.
12943
12944 2020-02-21 Tom de Vries <tdevries@suse.de>
12945
12946 PR gdb/25534
12947 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12948 if dependencies[i]->user != NULL.
12949
12950 2020-02-21 Ali Tamur <tamur@google.com>
12951
12952 * dwarf2/read.c (dwarf2_name): Add null check.
12953
12954 2020-02-20 Tom Tromey <tom@tromey.com>
12955
12956 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12957 ">=", in binary search.
12958 (dwarf2_find_containing_comp_unit): New overload.
12959 (run_test): New self-test.
12960 (_initialize_dwarf2_read): Register new test.
12961
12962 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12963
12964 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12965 * riscv-tdep.h: Likewise.
12966 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12967 rv32-only CSR.
12968 * features/riscv/64bit-csr.xml: Regenerated.
12969
12970 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12971 Tom Tromey <tom@tromey.com>
12972
12973 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12974 of 'fputc_unfiltered'.
12975 (putchar_unfiltered): Call 'fputc_unfiltered'.
12976 (fputc_unfiltered): Call 'fputs_unfiltered'.
12977
12978 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12979
12980 * config.in: Regenerate.
12981 * configure: Regenerate.
12982 * configure.ac: Add --with-python-libdir option.
12983 * main.c: Use WITH_PYTHON_LIBDIR.
12984
12985 2020-02-19 Tom Tromey <tom@tromey.com>
12986
12987 * symtab.c (general_symbol_info::compute_and_set_names): Use
12988 obstack_strndup. Simplify call to symbol_set_demangled_name.
12989
12990 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12991
12992 * dwarf2/read.c (allocate_signatured_type_table,
12993 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12994 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12995 Remove objfile parameter, update all callers.
12996
12997 2020-02-19 Doug Evans <dje@google.com>
12998
12999 PR rust/25535
13000 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13001 rust_enum_variant calculation.
13002
13003 2020-02-19 Tom Tromey <tromey@adacore.com>
13004
13005 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13006
13007 2020-02-19 Tom Tromey <tromey@adacore.com>
13008
13009 * ada-lang.c (cache_symbol): Use obstack_strdup.
13010
13011 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13012
13013 * configure: Regenerate.
13014
13015 2020-02-19 Tom Tromey <tromey@adacore.com>
13016
13017 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13018 NULL check.
13019
13020 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13021
13022 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13023
13024 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13025
13026 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13027 if GDBSERVER is not defined.
13028 (riscv_tdesc_cache): Likewise, also store const target_desc.
13029 (STATIC_IN_GDB): Define.
13030 (riscv_create_target_description): Update declaration with
13031 STATIC_IN_GDB.
13032 (riscv_lookup_target_description): New function, only define if
13033 GDBSERVER is not defined.
13034 * arch/riscv.h (riscv_create_target_description): Declare only
13035 when GDBSERVER is defined.
13036 (riscv_lookup_target_description): New declaration when GDBSERVER
13037 is not defined.
13038 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13039 (riscv_linux_read_features): ...this, and return
13040 riscv_gdbarch_features instead of target_desc.
13041 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13042 (riscv_linux_read_description): Rename to...
13043 (riscv_linux_read_features): ...this.
13044 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13045 Update to use riscv_gdbarch_features and
13046 riscv_lookup_target_description.
13047 * riscv-tdep.c (riscv_find_default_target_description): Use
13048 riscv_lookup_target_description instead of
13049 riscv_create_target_description.
13050
13051 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13052
13053 * valprint.c (generic_val_print_enum_1): When printing a flag
13054 enum with value 0 and there is no enumerator with value 0, print
13055 just "0" instead of "(unknown: 0x0)".
13056
13057 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13058
13059 * valprint.c (generic_val_print_enum_1): Print unknown part of
13060 flag enum in hex.
13061
13062 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13063
13064 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13065 flag enums to contain duplicate enumerators.
13066 * valprint.c (generic_val_print_enum_1): Update comment.
13067
13068 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13069
13070 * dwarf2/read.c: Include "count-one-bits.h".
13071 (update_enumeration_type_from_children): If an enumerator has
13072 multiple bits set, don't treat the enumeration as a "flag enum".
13073 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13074 of flag enums have 0 or 1 bit set.
13075
13076 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13077
13078 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13079 conversion.
13080 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13081 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13082 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13083 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13084 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13085
13086 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13087
13088 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13089
13090 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13091
13092 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13093 displaced_step_closure_up.
13094 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13095 (struct displaced_step_closure_up):
13096 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13097 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13098 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13099 Likewise.
13100 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13101 * gdbarch.c, gdbarch.h: Re-generate.
13102 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13103 displaced_step_closure_up.
13104 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13105 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13106 * infrun.h (displaced_step_closure_up): New type alias.
13107 (struct displaced_step_inferior_state) <step_closure>: Change
13108 type to displaced_step_closure_up.
13109 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13110 displaced_step_closure_up.
13111 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13112
13113 2020-02-14 Tom Tromey <tom@tromey.com>
13114
13115 * minidebug.c (gnu_debug_key): New global.
13116 (find_separate_debug_file_in_section): Use it.
13117
13118 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13119
13120 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13121 std::unique_ptr.
13122 * gdbarch.c: Re-generate.
13123 * gdbarch.h: Re-generate.
13124 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13125 change.
13126 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13127 type to std::unique_ptr.
13128 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13129 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13130 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13131 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13132 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13133 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13134 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13135 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13136 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13137
13138 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13139
13140 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13141 std::unique_ptr.
13142 (displaced_step_clear): Rename to...
13143 (displaced_step_reset): ... this. Just call displaced->reset ().
13144 (displaced_step_clear_cleanup): Rename to...
13145 (displaced_step_reset_cleanup): ... this.
13146 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13147 (displaced_step_fixup): Likewise.
13148 (resume_1): Likewise.
13149 (handle_inferior_event): Restore child's memory before calling
13150 displaced_step_fixup on the parent.
13151 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13152 to std::unique_ptr.
13153 <step_closure>: Change type to std::unique_ptr.
13154
13155 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13156
13157 * arm-tdep.c: Include count-one-bits.h.
13158 (cleanup_block_store_pc): Use count_one_bits.
13159 (cleanup_block_load_pc): Use count_one_bits.
13160 (arm_copy_block_xfer): Use count_one_bits.
13161 (thumb2_copy_block_xfer): Use count_one_bits.
13162 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13163 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13164 (thumb_get_next_pcs_raw): Use count_one_bits.
13165 (arm_get_next_pcs_raw): Use count_one_bits_l.
13166 * arch/arm.c (bitcount): Remove.
13167 * arch/arm.h (bitcount): Remove.
13168
13169 2020-02-14 Tom Tromey <tromey@adacore.com>
13170
13171 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13172 Update.
13173 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13174 * dwarf2/loc.c (call_site_find_chain_1): Return
13175 unique_xmalloc_ptr.
13176 (call_site_find_chain): Likewise.
13177
13178 2020-02-14 Richard Biener <rguenther@suse.de>
13179
13180 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13181 on expression with division operators.
13182
13183 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13184
13185 * MAINTAINERS (Write After Approval): Adding myself.
13186
13187 2020-02-12 Tom Tromey <tom@tromey.com>
13188
13189 * event-loop.c (event_data, gdb_event, event_handler_func):
13190 Remove.
13191
13192 2020-02-12 Tom Tromey <tom@tromey.com>
13193
13194 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13195 (dwarf2_frame_objfile_data): Add comment.
13196 (find_comp_unit, set_comp_unit): New functions.
13197 (dwarf2_frame_find_fde): Use find_comp_unit.
13198 (dwarf2_build_frame_info): Use set_comp_unit.
13199
13200 2020-02-12 Tom Tromey <tom@tromey.com>
13201
13202 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13203 (comp_unit): Don't initialize objfile.
13204 (execute_cfa_program): Add text_offset parameter.
13205 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13206 (dwarf2_frame_cache): Update.
13207 (dwarf2_build_frame_info): Don't set "objfile" member.
13208
13209 2020-02-12 Tom Tromey <tom@tromey.com>
13210
13211 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13212 (decode_frame_entry): Likewise.
13213 (dwarf2_build_frame_info): Update.
13214
13215 2020-02-12 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13218 (decode_frame_entry_1): Use the comp_unit obstack.
13219
13220 2020-02-12 Tom Tromey <tom@tromey.com>
13221
13222 * dwarf2/frame.c (struct comp_unit): Add initializers and
13223 constructor.
13224 (dwarf2_frame_objfile_data): Store a comp_unit.
13225 (dwarf2_frame_find_fde): Update.
13226 (dwarf2_build_frame_info): Use "new".
13227
13228 2020-02-12 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13231 (dwarf2_fde_table): Typedef for std::vector.
13232 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13233 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13234 (decode_frame_entry): Update.
13235 (dwarf2_build_frame_info): Use "new".
13236
13237 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13238
13239 * arm-tdep.c (arm_gdbarch_init): Update.
13240 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13241 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13242 have_neon, is_m>: Change to bool.
13243
13244 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13245
13246 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13247
13248 2020-02-12 Tom Tromey <tom@tromey.com>
13249
13250 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13251
13252 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13253
13254 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13255 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13256
13257 2020-02-11 Tom Tromey <tom@tromey.com>
13258
13259 * psymtab.h: Update comment.
13260
13261 2020-02-11 Tom Tromey <tom@tromey.com>
13262
13263 * gdb_obstack.h (struct auto_obstack): Use
13264 DISABLE_COPY_AND_ASSIGN.
13265
13266 2020-02-11 Tom Tromey <tom@tromey.com>
13267
13268 * dwarf2/frame.h (struct objfile): Don't forward declare.
13269
13270 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13271
13272 * cris-tdep.c (cris_supply_gregset): Change signature to match
13273 what struct regset expects.
13274 (cris_regset): New struct.
13275 (fetch_core_registers): Remove.
13276 (cris_iterate_over_regset_sections): New function.
13277 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13278 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13279
13280 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13281
13282 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13283 registers.
13284
13285 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13286
13287 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13288
13289 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13290
13291 * configure: Re-generate.
13292
13293 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13294
13295 * configure: Re-generate.
13296
13297 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13298
13299 * acinclude: Update warning.m4 path.
13300 * warning.m4: Move to gdbsupport.
13301
13302 2020-02-11 Tom Tromey <tromey@adacore.com>
13303
13304 * remote.c (remote_console_output): Update.
13305 * printcmd.c (printf_command): Update.
13306 * event-loop.c (gdb_wait_for_event): Update.
13307 * linux-nat.c (sigchld_handler): Update.
13308 * remote-sim.c (gdb_os_write_stdout): Update.
13309 (gdb_os_flush_stdout): Update.
13310 (gdb_os_flush_stderr): Update.
13311 (gdb_os_write_stderr): Update.
13312 * exceptions.c (print_exception): Update.
13313 * remote-fileio.c (remote_fileio_func_read): Update.
13314 (remote_fileio_func_write): Update.
13315 * tui/tui.c (tui_enable): Update.
13316 * tui/tui-interp.c (tui_interp::init): Update.
13317 * utils.c (init_page_info): Update.
13318 (putchar_unfiltered, fputc_unfiltered): Update.
13319 (gdb_flush): Update.
13320 (emit_style_escape): Update.
13321 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13322 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13323 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13324 (stderr_file::write): Update.
13325 (stderr_file::puts): Update.
13326 * ui-file.h (ui_file_isatty, ui_file_write)
13327 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13328 (ui_file_puts): Don't declare.
13329
13330 2020-02-10 Tom de Vries <tdevries@suse.de>
13331
13332 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13333 sentinel to char *.
13334
13335 2020-02-09 Tom de Vries <tdevries@suse.de>
13336
13337 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13338 filename if it matches "<artificial>".
13339
13340 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13341
13342 * windows-tdep.c (struct enum_value_name): New struct.
13343 (create_enum): New function.
13344 (windows_get_siginfo_type): Create and use enum types.
13345
13346 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13347
13348 * NEWS: Mention $_siginfo support for Windows.
13349 * windows-nat.c (handle_exception): Set siginfo_er.
13350 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13351 (windows_xfer_siginfo): New function.
13352 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13353 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13354 (init_windows_gdbarch_data): New function.
13355 (get_windows_gdbarch_data): New function.
13356 (windows_get_siginfo_type): New function.
13357 (windows_init_abi): Register windows_get_siginfo_type.
13358 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13359
13360 2020-02-08 Tom Tromey <tom@tromey.com>
13361
13362 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13363 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13364 <keep>: Declare method.
13365 <m_keep>: Remove member.
13366 <~cutu_reader>: Remove.
13367 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13368 (cutu_reader::cutu_reader): Update.
13369 (cutu_reader::keep): Rename from ~cutu_reader.
13370 (process_psymtab_comp_unit, build_type_psymtabs_1)
13371 (process_skeletonless_type_unit, load_partial_comp_unit)
13372 (load_full_comp_unit, dwarf2_read_addr_index)
13373 (read_signatured_type): Update.
13374
13375 2020-02-08 Tom Tromey <tom@tromey.com>
13376
13377 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13378 "want_partial_unit" parameter.
13379 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13380 Inline check for DW_TAG_partial_unit.
13381 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13382
13383 2020-02-08 Tom Tromey <tom@tromey.com>
13384
13385 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13386 read.c.
13387 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13388 read.c.
13389
13390 2020-02-08 Tom Tromey <tom@tromey.com>
13391
13392 * dwarf2/read.c (read_address): Move to comp-unit.c.
13393 (dwarf2_rnglists_process, dwarf2_ranges_process)
13394 (read_attribute_value, dwarf_decode_lines_1)
13395 (var_decode_location, decode_locdesc): Update.
13396 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13397 read.c. Remove "cu" parameter.
13398 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13399 method.
13400
13401 2020-02-08 Tom Tromey <tom@tromey.com>
13402
13403 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13404 (read_indirect_line_string): Update.
13405 * dwarf2/comp-unit.c (read_offset): Remove.
13406 (read_comp_unit_head): Update.
13407 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13408 method.
13409 (read_offset): Don't declare.
13410
13411 2020-02-08 Tom Tromey <tom@tromey.com>
13412
13413 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13414 * dwarf2/read.c (struct comp_unit_head): Move to
13415 dwarf2/comp-unit.h.
13416 (enum class rcuh_kind): Move to comp-unit.h.
13417 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13418 (read_comp_unit_head, error_check_comp_unit_head)
13419 (read_and_check_comp_unit_head): Move to comp-unit.c.
13420 (read_offset, dwarf_unit_type_name): Likewise.
13421 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13422 (cutu_reader::cutu_reader, read_call_site_scope)
13423 (find_partial_die, follow_die_offset): Update.
13424 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13425
13426 2020-02-08 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2/read.c (read_offset_1): Move to leb.c.
13429 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13430 (dwarf_decode_macro_bytes): Update.
13431 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13432 * dwarf2/leb.h (read_offset): Declare.
13433
13434 2020-02-08 Tom Tromey <tom@tromey.com>
13435
13436 * dwarf2/read.c (dwarf2_section_size): Remove.
13437 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13438 Update.
13439 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13440
13441 2020-02-08 Tom Tromey <tom@tromey.com>
13442
13443 * dwarf2/read.c (read_initial_length): Move to leb.c.
13444 * dwarf2/leb.h (read_initial_length): Declare.
13445 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13446 handle_nonstd parameter.
13447 * dwarf2/frame.c (read_initial_length): Remove.
13448 (decode_frame_entry_1): Update.
13449
13450 2020-02-08 Tom Tromey <tom@tromey.com>
13451
13452 * dwarf2/loc.c (dwarf2_find_location_expression)
13453 (dwarf_evaluate_loc_desc::get_tls_address)
13454 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13455 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13456 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13457 (dwarf2_compile_property_to_c)
13458 (dwarf2_loc_desc_get_symbol_read_needs)
13459 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13460 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13461 (loclist_describe_location, loclist_tracepoint_var_ref)
13462 (loclist_generate_c_location): Update.
13463 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13464 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13465 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13466 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13467 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13468 (dwarf2_per_cu_data::addr_size)
13469 (dwarf2_per_cu_data::ref_addr_size)
13470 (dwarf2_per_cu_data::text_offset)
13471 (dwarf2_per_cu_data::addr_type): Now methods.
13472 (per_cu_header_read_in): Make per_cu "const".
13473 (dwarf2_version): Remove.
13474 (dwarf2_per_cu_data::int_type): Now a method.
13475 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13476 (set_die_type, read_array_type, read_subrange_index_type)
13477 (read_tag_string_type, read_subrange_type): Update.
13478 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13479 offset_size, ref_addr_size, text_offset, addr_type, version,
13480 objfile, int_type, addr_sized_int_type>: Declare methods.
13481
13482 2020-02-08 Tom Tromey <tom@tromey.com>
13483
13484 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13485 Move earlier.
13486
13487 2020-02-08 Tom Tromey <tom@tromey.com>
13488
13489 * dwarf2/read.h (dwarf_line_debug): Declare.
13490 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13491 * dwarf2/read.c: Move line_header code to new files.
13492 (dwarf_line_debug): No longer static.
13493 * dwarf2/line-header.c: New file.
13494 * dwarf2/line-header.h: New file.
13495
13496 2020-02-08 Tom Tromey <tom@tromey.com>
13497
13498 * dwarf2/read.c (struct line_header) <file_full_name,
13499 file_file_name>: Return unique_xmalloc_ptr.
13500 (line_header::file_file_name): Update.
13501 (line_header::file_full_name): Update.
13502 (dw2_get_file_names_reader): Update.
13503 (macro_start_file): Update.
13504
13505 2020-02-08 Tom Tromey <tom@tromey.com>
13506
13507 * dwarf2/read.c (struct line_header) <file_full_name,
13508 file_file_name>: Declare methods.
13509 (dw2_get_file_names_reader): Update.
13510 (file_file_name): Now a method.
13511 (file_full_name): Likewise.
13512 (macro_start_file): Update.
13513
13514 2020-02-08 Tom Tromey <tom@tromey.com>
13515
13516 * dwarf2/read.c (dwarf_always_disassemble)
13517 (show_dwarf_always_disassemble): Move to loc.c.
13518 (_initialize_dwarf2_read): Move "always-disassemble" registration
13519 to loc.c.
13520 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13521 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13522 static.
13523 (show_dwarf_always_disassemble): Move from read.c.
13524 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13525
13526 2020-02-08 Tom Tromey <tom@tromey.com>
13527
13528 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13529 (create_quick_file_names_table): Return htab_up.
13530 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13531 Update.
13532 * dwarf2/read.h (struct dwarf2_per_objfile)
13533 <quick_file_names_table>: Now htab_up.
13534
13535 2020-02-08 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13538
13539 2020-02-08 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13542 Rewrite.
13543 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13544 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13545 (abbrev_table::abbrev_table): No longer inline.
13546 (ABBREV_HASH_SIZE): Remove.
13547 (abbrev_table::m_abbrevs): Now an htab_up.
13548
13549 2020-02-08 Tom Tromey <tom@tromey.com>
13550
13551 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13552 (cutu_reader): Update.
13553 (build_type_psymtabs_1): Update.
13554 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13555 (abbrev_table::alloc_abbrev): Update.
13556 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13557 (abbrev_table::read): New static method, renamed from
13558 abbrev_table_read_table.
13559 (abbrev_table::alloc_abbrev)
13560 (abbrev_table::add_abbrev): Now private.
13561 (abbrev_table::abbrev_table): Now private.
13562 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13563
13564 2020-02-08 Tom Tromey <tom@tromey.com>
13565
13566 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13567 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13568 htab_up.
13569
13570 2020-02-08 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13573 htab_up.
13574 (lookup_dwo_unit_in_dwp): Update.
13575 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13576 on obstack.
13577
13578 2020-02-08 Tom Tromey <tom@tromey.com>
13579
13580 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13581 obstack.
13582
13583 2020-02-08 Tom Tromey <tom@tromey.com>
13584
13585 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13586 line_header_hash.
13587 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13588 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13589 Change type to htab_up.
13590
13591 2020-02-08 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13594 htab_up. Don't allocate on obstack.
13595 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13596 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13597 Change type to htab_up.
13598
13599 2020-02-08 Tom Tromey <tom@tromey.com>
13600
13601 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13602 Change type to htab_up.
13603 * dwarf2/read.c (create_signatured_type_table_from_index)
13604 (create_signatured_type_table_from_debug_names)
13605 (create_all_type_units, add_type_unit)
13606 (lookup_dwo_signatured_type, lookup_signatured_type)
13607 (process_skeletonless_type_unit): Update.
13608 (create_debug_type_hash_table, create_debug_types_hash_table):
13609 Change type of types_htab.
13610 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13611 htab_up. Don't allocate on obstack.
13612 (create_cus_hash_table): Change type of cus_htab parameter.
13613 (struct dwo_file) <cus, tus>: Now htab_up.
13614 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13615 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13616 (queue_and_load_all_dwo_tus): Update.
13617 * dwarf2/index-write.c (write_gdbindex): Update.
13618 (write_debug_names): Update.
13619
13620 2020-02-08 Tom Tromey <tom@tromey.com>
13621
13622 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13623 dwarf2/read.c. Remove "next" member. Add constructor ntad
13624 destructor.
13625 (struct dwarf2_per_objfile) <queue>: New member.
13626 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13627 dwarf2/read.h.
13628 (dwarf2_queue, dwarf2_queue_tail): Remove.
13629 (class dwarf2_queue_guard): Add parameter to constructor. Use
13630 DISABLE_COPY_AND_ASSIGN.
13631 <m_per_objfile>: New member.
13632 <~dwarf2_queue_guard>: Rewrite.
13633 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13634 Update.
13635 (~dwarf2_queue_item): New.
13636
13637 2020-02-08 Tom Tromey <tom@tromey.com>
13638
13639 * dwarf2/read.c (struct die_info) <has_children>: New member.
13640 (dw2_get_file_names_reader): Remove has_children.
13641 (dw2_get_file_names): Update.
13642 (read_cutu_die_from_dwo): Remove has_children.
13643 (cutu_reader::init_tu_and_read_dwo_dies)
13644 (cutu_reader::cutu_reader): Update.
13645 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13646 Remove has_children.
13647 (build_type_psymtabs_1, process_skeletonless_type_unit)
13648 (load_partial_comp_unit, load_full_comp_unit): Update.
13649 (create_dwo_cu_reader): Remove has_children.
13650 (create_cus_hash_table, read_die_and_children): Update.
13651 (read_full_die_1,read_full_die): Remove has_children.
13652 (read_signatured_type): Update.
13653 (class cutu_reader) <has_children>: Remove.
13654
13655 2020-02-08 Tom Tromey <tom@tromey.com>
13656
13657 * dwarf2/expr.c: Rename from dwarf2expr.c.
13658 * dwarf2/expr.h: Rename from dwarf2expr.h.
13659 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13660 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13661 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13662 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13663 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13664 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13665 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13666 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13667 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13668 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13669 * dwarf2/loc.c: Rename from dwarf2loc.c.
13670 * dwarf2/loc.h: Rename from dwarf2loc.h.
13671 * dwarf2/read.c: Rename from dwarf2read.c.
13672 * dwarf2/read.h: Rename from dwarf2read.h.
13673 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13674 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13675 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13676 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13677 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13678 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13679 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13680 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13681 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13682 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13683 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13684 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13685 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13686 Update.
13687 * Makefile.in (COMMON_SFILES): Update.
13688 (HFILES_NO_SRCDIR): Update.
13689
13690 2020-02-08 Tom Tromey <tom@tromey.com>
13691
13692 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13693 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13694
13695 2020-02-08 Tom Tromey <tom@tromey.com>
13696
13697 * dwarf2read.h (struct die_info): Don't declare.
13698
13699 2020-02-08 Tom Tromey <tom@tromey.com>
13700
13701 * dwarf2read.h (die_info_ptr): Remove typedef.
13702
13703 2020-02-08 Tom Tromey <tom@tromey.com>
13704
13705 * dwarf2read.c (read_call_site_scope)
13706 (handle_data_member_location, dwarf2_add_member_fn)
13707 (mark_common_block_symbol_computed, read_common_block)
13708 (attr_to_dynamic_prop, partial_die_info::read)
13709 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13710 (dwarf2_symbol_mark_computed, set_die_type): Update.
13711 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13712 method.
13713 (attr_form_is_block): Don't declare.
13714 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13715
13716 2020-02-08 Tom Tromey <tom@tromey.com>
13717
13718 * dwarf2read.c (dwarf2_find_base_address, )
13719 (read_call_site_scope, rust_containing_type)
13720 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13721 (handle_data_member_location, dwarf2_add_member_fn)
13722 (get_alignment, read_structure_type, process_structure_scope)
13723 (mark_common_block_symbol_computed, read_common_block)
13724 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13725 (partial_die_info::read, read_attribute_value, new_symbol)
13726 (lookup_die_type, dwarf2_get_ref_die_offset)
13727 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13728 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13729 (dwarf2_symbol_mark_computed): Update.
13730 * dwarf2/attribute.h (struct attribute) <value_as_address,
13731 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13732 methods.
13733 (value_as_address, attr_form_is_section_offset)
13734 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13735 * dwarf2/attribute.c (attribute::value_as_address)
13736 (attribute::form_is_section_offset, attribute::form_is_constant)
13737 (attribute::form_is_ref): Now methods.
13738
13739 2020-02-08 Tom Tromey <tom@tromey.com>
13740
13741 * dwarf2read.c (struct attribute, DW_STRING)
13742 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13743 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13744 (attr_form_is_block, attr_form_is_section_offset)
13745 (attr_form_is_constant, attr_form_is_ref): Move.
13746 * dwarf2/attribute.h: New file.
13747 * dwarf2/attribute.c: New file, from dwarf2read.c.
13748 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13749
13750 2020-02-08 Tom Tromey <tom@tromey.com>
13751
13752 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13753 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13754 Move.
13755 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13756 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13757 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13758 abbrev.c.
13759 * dwarf2/abbrev.h: New file.
13760 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13761 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13762
13763 2020-02-08 Tom Tromey <tom@tromey.com>
13764
13765 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13766 (dwarf2_section_size, dwarf2_get_section_info)
13767 (create_signatured_type_table_from_debug_names)
13768 (create_addrmap_from_aranges, read_debug_names_from_section)
13769 (get_gdb_index_contents_from_section, read_comp_unit_head)
13770 (error_check_comp_unit_head, read_abbrev_offset)
13771 (create_debug_type_hash_table, init_cu_die_reader)
13772 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13773 (read_comp_units_from_section, create_cus_hash_table)
13774 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13775 (create_dwp_v2_section, dwarf2_rnglists_process)
13776 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13777 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13778 (read_indirect_string_from_dwz, read_addr_index_1)
13779 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13780 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13781 (fill_in_loclist_baton): Update.
13782 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13783 get_containing_section, get_bfd_owner, get_bfd_section,
13784 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13785 (dwarf2_read_section, get_section_name, get_section_file_name)
13786 (get_containing_section, get_section_bfd_owner)
13787 (get_section_bfd_section, get_section_name, get_section_file_name)
13788 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13789 declare.
13790 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13791 (dwarf2_section_info::get_bfd_owner)
13792 (dwarf2_section_info::get_bfd_section)
13793 (dwarf2_section_info::get_name)
13794 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13795 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13796 (dwarf2_section_info::read): Now methods.
13797 * dwarf-index-write.c (class debug_names): Update.
13798
13799 2020-02-08 Tom Tromey <tom@tromey.com>
13800
13801 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13802 Move to dwarf2/section.h.
13803 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13804 (get_section_bfd_section, get_section_name)
13805 (get_section_file_name, get_section_id, get_section_flags)
13806 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13807 dwarf2/section.c.
13808 * dwarf2/section.h: New file.
13809 * dwarf2/section.c: New file, from dwarf2read.c.
13810 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13811
13812 2020-02-08 Tom Tromey <tom@tromey.com>
13813
13814 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13815 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13816 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13817 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13818 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13819 * dwarf2/leb.h: New file, from dwarf2read.c.
13820 * dwarf2/leb.c: New file, from dwarf2read.c.
13821 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13822 Remove.
13823 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13824 (COMMON_SFILES): Add dwarf2/leb.c.
13825
13826 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13827
13828 GDB 9.1 released.
13829
13830 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13831
13832 PR gdb/25190:
13833 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13834 * gdb/remote.c (remote_console_output): Update.
13835 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13836 (ui_file_puts): ...this.
13837 * gdb/ui-file.h (ui_file_puts): Add declaration.
13838 * gdb/utils.c (emit_style_escape): Update.
13839 (flush_wrap_buffer): Update.
13840 (fputs_maybe_filtered): Update.
13841 (fputs_unfiltered): Add function.
13842
13843 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13844
13845 * gdb/event-loop.c (gdb_wait_for_event): Update.
13846 * gdb/printcmd.c (printf_command): Update.
13847 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13848 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13849 (gdb_os_flush_stderr): Update.
13850 * gdb/remote.c (remote_console_output): Update.
13851 * gdb/ui-file.c (gdb_flush): Rename to...
13852 (ui_file_flush): ...this.
13853 (stderr_file::write): Update.
13854 (stderr_file::puts): Update.
13855 * gdb/ui-file.h (gdb_flush): Rename to...
13856 (ui_file_flush): ...this.
13857 * gdb/utils.c (gdb_flush): Add function.
13858 * gdb/utils.h (gdb_flush): Add declaration.
13859
13860 2020-02-07 Tom Tromey <tromey@adacore.com>
13861
13862 PR breakpoints/24915:
13863 * source.c (find_and_open_source): Do not check basenames_may_differ.
13864
13865 2020-02-07 Tom Tromey <tom@tromey.com>
13866
13867 * README: Update gdbserver documentation.
13868 * gdbserver: Move to top level.
13869 * configure.tgt (build_gdbserver): Remove.
13870 * configure.ac: Remove --enable-gdbserver.
13871 * configure: Rebuild.
13872 * Makefile.in (distclean): Don't mention gdbserver.
13873
13874 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13875
13876 * source-cache.c (source_cache::ensure): Surround
13877 get_plain_source_lines with a try/catch.
13878 (source_cache::get_line_charpos): Get rid of try/catch
13879 and only check for the return value of "ensure".
13880 * tui/tui-source.c (tui_source_window::set_contents):
13881 Simplify "nlines" calculation.
13882
13883 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13884
13885 * MAINTAINERS (Write After Approval): Add myself.
13886
13887 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13888
13889 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13890 function call.
13891
13892 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13893
13894 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13895
13896 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13897
13898 * nat/riscv-linux-tdesc.h: New file.
13899 * nat/riscv-linux-tdesc.c: New file, taking code from...
13900 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13901 ... here.
13902 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13903 NATDEPFILES.
13904
13905 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13906
13907 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13908 we don't set the fake simulator ptid to the null_ptid.
13909
13910 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13911
13912 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13913 * gdbthread.h (class thread_info) <resumed>: Likewise.
13914 * infrun.c (resume_1): Likewise.
13915 (proceed): Likewise.
13916 (infrun_thread_stop_requested): Likewise.
13917 (stop_all_threads): Likewise.
13918 (handle_inferior_event): Likewise.
13919 (restart_threads): Likewise.
13920 (finish_step_over): Likewise.
13921 (keep_going_stepped_thread): Likewise.
13922 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13923 (linux_handle_extended_wait): Likewise.
13924 * record-btrace.c (get_thread_current_frame_id): Likewise.
13925 * record-full.c (record_full_wait_1): Likewise.
13926 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13927 * target.c (target_resume): Likewise.
13928 * thread.c (set_running_thread): Likewise.
13929
13930 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13931
13932 * f-valprint.c (f77_print_array_1): Changed datatype of index
13933 variable to LONGEST from int to enable it to contain bound
13934 values correctly.
13935
13936 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13937
13938 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13939 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13940 offsets according to FLEN determined.
13941 (riscv_linux_nat_target::read_description): Determine FLEN
13942 dynamically.
13943 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13944 according to FLEN determined.
13945 (riscv_linux_nat_target::store_registers): Likewise.
13946
13947 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13948
13949 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13950 when reg->group is empty and reggroup is not.
13951
13952 2020-01-31 Tom Tromey <tromey@adacore.com>
13953
13954 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13955 Call beneath target's mourn_inferior after unpushing.
13956
13957 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13958
13959 PR tui/9765
13960 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13961 have enough lines to fill the screen, still return the lowest
13962 address we found.
13963
13964 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13965
13966 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13967 '-', '<', and '>' commands.
13968
13969 2020-01-29 Pedro Alves <palves@redhat.com>
13970 Sergio Durigan Junior <sergiodj@redhat.com>
13971
13972 * infcmd.c (construct_inferior_arguments): Assert that
13973 'argc' is greater than 0.
13974
13975 2020-01-29 Luis Machado <luis.machado@linaro.org>
13976
13977 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13978 (BRK_INSN_MASK): Define to 0xd4200000.
13979 (aarch64_program_breakpoint_here_p): New function.
13980 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13981 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13982 breakpoint.c.
13983 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13984 breakpoint.h
13985 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13986 call gdbarch_program_breakpoint_here_p.
13987 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13988 default_program_breakpoint_here_p, changed return type to bool and
13989 simplified.
13990 * breakpoint.h (program_breakpoint_here): Moved prototype to
13991 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13992 return type to bool.
13993 * gdbarch.c: Regenerate.
13994 * gdbarch.h: Regenerate.
13995 * gdbarch.sh (program_breakpoint_here_p): New method.
13996 * infrun.c (handle_signal_stop): Call
13997 gdbarch_program_breakpoint_here_p.
13998
13999 2020-01-26 Tom Tromey <tom@tromey.com>
14000
14001 * ctfread.c (struct ctf_fp_info): Reindent.
14002 (_initialize_ctfread): Remove.
14003
14004 2020-01-26 Tom Tromey <tom@tromey.com>
14005
14006 * psymtab.c (partial_map_expand_apply)
14007 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14008 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14009 (psym_print_stats, psym_expand_symtabs_for_function)
14010 (psym_map_symbol_filenames, psym_map_matching_symbols)
14011 (psym_expand_symtabs_matching)
14012 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14013 (maintenance_check_psymtabs): Use new methods.
14014 * psympriv.h (struct partial_symtab) <readin_p,
14015 get_compunit_symtab>: New methods.
14016 <readin, compunit_symtab>: Remove members.
14017 (struct standard_psymtab): New.
14018 (struct legacy_psymtab): Derive from standard_psymtab.
14019 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14020 standard_psymtab.
14021 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14022
14023 2020-01-26 Tom Tromey <tom@tromey.com>
14024
14025 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14026 read_dependencies. Add assert.
14027 * psymtab.c (partial_symtab::read_dependencies): New method.
14028 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14029 method.
14030 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14031 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14032 read_dependencies.
14033 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14034 Add assert.
14035
14036 2020-01-26 Tom Tromey <tom@tromey.com>
14037
14038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14039 Call expand_psymtab.
14040 (xcoff_read_symtab): Call expand_psymtab.
14041 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14042 legacy_expand_psymtab.
14043 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14044 method.
14045 (struct legacy_psymtab) <expand_psymtab>: Implement.
14046 <legacy_expand_psymtab>: New member.
14047 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14048 (parse_partial_symbols): Set legacy_expand_psymtab.
14049 (psymtab_to_symtab_1): Change argument order. Call
14050 expand_psymtab.
14051 (new_psymtab): Set legacy_expand_psymtab.
14052 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14053 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14054 expand_psymtab.
14055 (dwarf2_psymtab::expand_psymtab): Rename from
14056 psymtab_to_symtab_1. Call expand_psymtab.
14057 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14058 (dbx_end_psymtab): Likewise.
14059 (dbx_psymtab_to_symtab_1): Change argument order. Call
14060 expand_psymtab.
14061 (dbx_read_symtab): Call expand_psymtab.
14062 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14063 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14064 (ctf_psymtab::read_symtab): Call expand_psymtab.
14065
14066 2020-01-26 Tom Tromey <tom@tromey.com>
14067
14068 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14069 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14070 messages.
14071 * mdebugread.c (mdebug_read_symtab): Remove prints.
14072 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14073 assert.
14074 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14075
14076 2020-01-26 Tom Tromey <tom@tromey.com>
14077
14078 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14079 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14080 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14081 legacy_symtab.
14082 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14083 * psymtab.c (psymtab_to_symtab): Call method.
14084 (dump_psymtab): Update.
14085 * psympriv.h (struct partial_symtab): Add virtual destructor.
14086 <read_symtab>: New method.
14087 (struct legacy_symtab): New.
14088 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14089 (struct pst_map) <pst>: Now a legacy_psymtab.
14090 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14091 (new_psymtab): Use legacy_psymtab.
14092 * dwarf2read.h (struct dwarf2_psymtab): New.
14093 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14094 * dwarf2read.c (dwarf2_create_include_psymtab)
14095 (dwarf2_build_include_psymtabs, create_type_unit_group)
14096 (create_partial_symtab, process_psymtab_comp_unit_reader)
14097 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14098 (set_partial_user): Use dwarf2_psymtab.
14099 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14100 (psymtab_to_symtab_1, process_full_comp_unit)
14101 (process_full_type_unit, dwarf2_ranges_read)
14102 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14103 (dwarf_decode_lines): Use dwarf2_psymtab.
14104 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14105 (add_address_entry_worker, write_one_signatured_type)
14106 (recursively_count_psymbols, recursively_write_psymbols)
14107 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14108 (write_debug_names): Likewise.
14109 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14110 <pst>: Now a legacy_psymtab.
14111 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14112 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14113 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14114 * ctfread.c (struct ctf_psymtab): New.
14115 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14116 ctf_psymtab.
14117 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14118 (create_partial_symtab): Return a ctf_psymtab.
14119 (scan_partial_symbols): Update.
14120
14121 2020-01-26 Tom Tromey <tom@tromey.com>
14122
14123 * xcoffread.c (xcoff_start_psymtab): Use new.
14124 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14125 renamed from start_psymtab_common.
14126 * psympriv.h (struct partial_symtab): Add new constructor.
14127 (start_psymtab_common): Don't declare.
14128 * mdebugread.c (parse_partial_symbols): Use new.
14129 * dwarf2read.c (create_partial_symtab): Use new.
14130 * dbxread.c (start_psymtab): Use new.
14131 * ctfread.c (create_partial_symtab): Use new.
14132
14133 2020-01-26 Tom Tromey <tom@tromey.com>
14134
14135 * xcoffread.c (xcoff_end_psymtab): Use new.
14136 * psymtab.c (start_psymtab_common): Use new.
14137 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14138 Update.
14139 * psympriv.h (struct partial_symtab): Add parameters to
14140 constructor. Don't inline.
14141 (allocate_psymtab): Don't declare.
14142 * mdebugread.c (new_psymtab): Use new.
14143 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14144 * dbxread.c (dbx_end_psymtab): Use new.
14145
14146 2020-01-26 Tom Tromey <tom@tromey.com>
14147
14148 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14149 allocate_psymtab. Update documentation.
14150 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14151 allocate_psymtab. Do not use new.
14152 (allocate_psymtab): Use new. Update.
14153
14154 2020-01-26 Tom Tromey <tom@tromey.com>
14155
14156 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14157 * psymtab.c (psym_print_stats): Update.
14158 * psympriv.h (struct partial_symtab) <readin,
14159 psymtabs_addrmap_supported, anonymous>: Now bool.
14160 * mdebugread.c (psymtab_to_symtab_1): Update.
14161 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14162 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14163 (process_full_comp_unit, process_full_type_unit): Update.
14164 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14165 * ctfread.c (psymtab_to_symtab): Update.
14166
14167 2020-01-26 Tom Tromey <tom@tromey.com>
14168
14169 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14170 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14171 * psymtab.c (psymtab_storage): Delete psymtabs.
14172 (psymtab_storage::allocate_psymtab): Use new.
14173 (psymtab_storage::discard_psymtab): Use delete.
14174 * psympriv.h (struct partial_symtab): Add constructor and
14175 initializers.
14176
14177 2020-01-26 Tom Tromey <tom@tromey.com>
14178
14179 * machoread.c: Do not include psympriv.h.
14180
14181 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14182
14183 * NEWS: Mention the new option and the set/show commands.
14184
14185 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14186
14187 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14188 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14189 (validate_exec_file): New variables, enums, functions.
14190 (exec_file_locate_attach, print_section_info): Style the filenames.
14191 (_initialize_exec): Install show_exec_file_mismatch_command and
14192 set_exec_file_mismatch_command.
14193 * gdbcore.h (validate_exec_file): Declare.
14194 * infcmd.c (attach_command): Call validate_exec_file.
14195 * remote.c ( remote_target::remote_add_inferior): Likewise.
14196
14197 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14198
14199 * frame.c (find_frame_sal): Move call to get_next_frame into more
14200 inner scope.
14201 * inline-frame.c (inilne_state) <inline_state>: Update argument
14202 types.
14203 (inilne_state) <skipped_symbol>: Rename to...
14204 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14205 (skip_inline_frames): Build vector of skipped symbols and use this
14206 to reate the inline_state.
14207 (inline_skipped_symbol): Add a comment and some assertions, fetch
14208 skipped symbol from the list.
14209
14210 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14211
14212 * buildsym.c (lte_is_less_than): Delete.
14213 (buildsym_compunit::end_symtab_with_blockvector): Create local
14214 lambda function to sort line table entries, and use
14215 std::stable_sort instead of std::sort.
14216 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14217 markers when looking for a previous line.
14218
14219 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14220
14221 * dwarf2read.c (lnp_state_machine::record_line): Include
14222 end_sequence parameter in debug print out. Record the line if we
14223 are at an end_sequence marker even if it's not the start of a
14224 statement.
14225 * symmisc.c (maintenance_print_one_line_table): Print end of
14226 sequence markers with 'END' not '0'.
14227
14228 2020-01-24 Pedro Alves <palves@redhat.com>
14229
14230 PR gdb/25410
14231 * thread.c (scoped_restore_current_thread::restore): Use
14232 switch_to_inferior_no_thread.
14233 * exec.c: Include "progspace-and-thread.h".
14234 (add_target_sections, remove_target_sections):
14235 scoped_restore_current_pspace_and_thread instead of
14236 scoped_restore_current_thread.
14237 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14238 and aspace to the inferior before calling clone_program_space.
14239 Remove stale comment.
14240
14241 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14242
14243 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14244 (arm_netbsd_nat_target::fetch_registers): ...this.
14245 (arm_nbsd_nat_target::store_registers): Rename to...
14246 (arm_netbsd_nat_target::store_registers): ...this.
14247
14248 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14249
14250 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14251 register_t.
14252
14253 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14254
14255 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14256 Update comment.
14257 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14258 Likewise.
14259 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14260 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14261 the correct replacement (iterate_over_regset_sections).
14262 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14263 Update comment.
14264
14265 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14266
14267 PR gdb/23718
14268 * gdb/python/python.c (execute_gdb_command): Call
14269 async_enable_stdin in catch block.
14270
14271 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14272
14273 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14274 SWITCH_THRU_ALL_UIS.
14275
14276 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14277
14278 PR tui/9765
14279 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14280 comment, add extra parameter, and update to store previous symbol
14281 when appropriate.
14282 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14283 add extra parameter.
14284 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14285 remove unneeded parameter, add try/catch around gdb_print_insn,
14286 rewrite to add items to asm_lines vector.
14287 (tui_find_backward_disassembly_start_address): New function.
14288 (tui_find_disassembly_address): Updated throughout.
14289 (tui_disasm_window::set_contents): Update for changes to
14290 tui_disassemble.
14291 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14292 number of lines to scroll.
14293
14294 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14295
14296 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14297 (SECT_OFF_DATA): Likewise.
14298 (SECT_OFF_RODATA): Likewise.
14299 (SECT_OFF_TEXT): Likewise.
14300 (SECT_OFF_BSS): Likewise.
14301 (struct objfile) <text_section_offset, data_section_offset>: New
14302 methods.
14303 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14304 objfile::text_section_offset.
14305 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14306 * coffread.c (coff_symtab_read): Likewise.
14307 (enter_linenos): Likewise.
14308 (process_coff_symbol): Likewise.
14309 * ctfread.c (get_objfile_text_range): Likewise.
14310 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14311 Use objfile::data_section_offset.
14312 * dwarf2-frame.c (execute_cfa_program): Use
14313 objfile::text_section_offset.
14314 (dwarf2_frame_find_fde): Likewise.
14315 * dwarf2read.c (create_addrmap_from_index): Likewise.
14316 (create_addrmap_from_aranges): Likewise.
14317 (dw2_find_pc_sect_compunit_symtab): Likewise.
14318 (process_psymtab_comp_unit_reader): Likewise.
14319 (add_partial_symbol): Likewise.
14320 (add_partial_subprogram): Likewise.
14321 (process_full_comp_unit): Likewise.
14322 (read_file_scope): Likewise.
14323 (read_func_scope): Likewise.
14324 (read_lexical_block_scope): Likewise.
14325 (read_call_site_scope): Likewise.
14326 (dwarf2_rnglists_process): Likewise.
14327 (dwarf2_ranges_process): Likewise.
14328 (dwarf2_ranges_read): Likewise.
14329 (dwarf_decode_lines_1): Likewise.
14330 (new_symbol): Likewise.
14331 (dwarf2_fetch_die_loc_sect_off): Likewise.
14332 (dwarf2_per_cu_text_offset): Likewise.
14333 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14334 * hppa-tdep.c (read_unwind_info): Likewise.
14335 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14336 * psympriv.h (struct partial_symtab): Likewise.
14337 * psymtab.c (find_pc_sect_psymtab): Likewise.
14338 * solib-svr4.c (enable_break): Likewise.
14339 * stap-probe.c (relocate_address): Use
14340 objfile::data_section_offset.
14341 * xcoffread.c (enter_line_range): Use
14342 objfile::text_section_offset.
14343 (read_xcoff_symtab): Likewise.
14344
14345 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14346
14347 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14348 declaration to narrower scopes.
14349
14350 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14351
14352 * darwin-nat.h (struct darwin_exception_msg, enum
14353 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14354 Move up.
14355 (class darwin_nat_target) <wait_1, check_new_threads,
14356 decode_exception_message, decode_message, stop_inferior,
14357 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14358 * darwin-nat.c (darwin_check_new_threads): Rename to...
14359 (darwin_nat_target::check_new_threads): ... this.
14360 (darwin_suspend_inferior_it): Remove.
14361 (darwin_decode_exception_message): Rename to...
14362 (darwin_nat_target::decode_exception_message): ... this.
14363 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14364 (darwin_decode_message): Rename to...
14365 (darwin_nat_target::decode_message): ... this.
14366 (cancel_breakpoint): Rename to...
14367 (darwin_nat_target::cancel_breakpoint): ... this.
14368 (darwin_wait): Rename to...
14369 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14370 instead of iterate_over_inferiors.
14371 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14372 (darwin_stop_inferior): Rename to...
14373 (darwin_nat_target::stop_inferior): ... this.
14374 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14375 (darwin_init_thread_list): Rename to...
14376 (darwin_nat_target::init_thread_list): ... this.
14377 (darwin_ptrace_him): Rename to...
14378 (darwin_nat_target::ptrace_him): ... this.
14379 (darwin_nat_target::create_inferior): Pass lambda function to
14380 fork_inferior.
14381 (darwin_nat_target::detach): Call stop_inferior instead of
14382 darwin_stop_inferior.
14383 * fork-inferior.h (fork_inferior): Change init_trace_fun
14384 parameter to gdb::function_view.
14385 * fork-inferior.c (fork_inferior): Likewise.
14386
14387 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14388
14389 * i386-cygwin-tdep.c (core_process_module_section): Update.
14390 * windows-nat.c (struct lm_info_windows): Add text_offset.
14391 (windows_xfer_shared_libraries): Update.
14392 * windows-tdep.c (windows_xfer_shared_library):
14393 Add text_offset_cached argument.
14394 * windows-tdep.h (windows_xfer_shared_library): Update.
14395
14396 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14397
14398 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14399
14400 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14401
14402 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14403 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14404 replace with range-based for.
14405 (gdbsim_interrupt_inferior): Remove.
14406 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14407 with a range-based for. Inline code from
14408 gdbsim_interrupt_inferior.
14409
14410 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14411
14412 * infrun.c (proceed): Fix indentation.
14413
14414 2020-01-21 Tom Tromey <tromey@adacore.com>
14415
14416 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14417 * python/python.c (python_extension_ops): Update.
14418 (gdbpy_colorize): New function.
14419 * python/lib/gdb/__init__.py (colorize): New function.
14420 * extension.h (ext_lang_colorize): Declare.
14421 * extension.c (ext_lang_colorize): New function.
14422 * extension-priv.h (struct extension_language_ops) <colorize>: New
14423 member.
14424 * cli/cli-style.c (_initialize_cli_style): Update help text.
14425
14426 2020-01-21 Luis Machado <luis.machado@linaro.org>
14427
14428 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14429 <cond>: Change type to bool.
14430 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14431 (aarch64_displaced_step_cb): Likewise.
14432 (aarch64_displaced_step_tb): Likewise.
14433
14434 2020-01-21 Luis Machado <luis.machado@linaro.org>
14435
14436 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14437 output.
14438
14439 2020-01-21 Luis Machado <luis.machado@linaro.org>
14440
14441 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14442 <pc_adjust>: Adjust the documentation.
14443 (aarch64_displaced_step_fixup): Check if PC really moved before
14444 adjusting it.
14445
14446 2020-01-19 Tom Tromey <tom@tromey.com>
14447
14448 * disasm.c (~gdb_disassembler): New destructor.
14449 (gdb_buffered_insn_length): Call disassemble_free_target.
14450 * disasm.h (class gdb_disassembler): Declare destructor. Use
14451 DISABLE_COPY_AND_ASSIGN.
14452
14453 2020-01-19 Tom Tromey <tom@tromey.com>
14454
14455 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14456 (die_reader_func_ftype): Remove.
14457 (cutu_reader): New class.
14458 (dw2_get_file_names_reader): Remove "data" parameter.
14459 (dw2_get_file_names): Use cutu_reader.
14460 (create_debug_type_hash_table): Update.
14461 (read_cutu_die_from_dwo): Update comment.
14462 (lookup_dwo_unit): Add dwo_name parameter.
14463 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14464 die_reader_func_ftype and data parameters.
14465 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14466 Remove die_reader_func_ftype and data parameters.
14467 (~cutu_reader): New; from init_cutu_and_read_dies.
14468 (cutu_reader::cutu_reader): Rename from
14469 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14470 and data parameters.
14471 (init_cutu_and_read_dies_simple): Remove.
14472 (struct process_psymtab_comp_unit_data): Remove.
14473 (process_psymtab_comp_unit_reader): Remove data parameter; add
14474 want_partial_unit and pretend_language parameters.
14475 (process_psymtab_comp_unit): Use cutu_reader.
14476 (build_type_psymtabs_reader): Remove data parameter.
14477 (build_type_psymtabs_1): Use cutu_reader.
14478 (process_skeletonless_type_unit): Likewise.
14479 (load_partial_comp_unit_reader): Remove.
14480 (load_partial_comp_unit): Use cutu_reader.
14481 (load_full_comp_unit_reader): Remove.
14482 (load_full_comp_unit): Use cutu_reader.
14483 (struct create_dwo_cu_data): Remove.
14484 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14485 dwo_unit parameters.
14486 (create_cus_hash_table): Use cutu_reader.
14487 (struct dwarf2_read_addr_index_data): Remove.
14488 (dwarf2_read_addr_index_reader): Remove.
14489 (dwarf2_read_addr_index): Use cutu_reader.
14490 (read_signatured_type_reader): Remove.
14491 (read_signatured_type): Use cutu_reader.
14492
14493 2020-01-19 Tom Tromey <tom@tromey.com>
14494
14495 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14496 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14497 (tui_wrefresh): Declare.
14498 * tui/tui-wingeneral.c (suppress_output): New global.
14499 (tui_suppress_output, ~tui_suppress_output): New constructor and
14500 destructor.
14501 (tui_wrefresh): New function.
14502 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14503 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14504 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14505 method.
14506 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14507 tui_wrefresh.
14508 (tui_data_window::no_refresh): New method.
14509 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14510 (tui_reg_command): Use tui_suppress_output
14511 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14512 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14513 method.
14514 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14515
14516 2020-01-19 Tom Tromey <tom@tromey.com>
14517
14518 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14519 Handle case where symtab is null.
14520
14521 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14522
14523 * linux-fork.c (one_fork_p): Simplify.
14524
14525 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14526
14527 * top.c (struct qt_args): Remove.
14528 (kill_or_detach): Change return type to void, replace `void *`
14529 parameter with a proper one.
14530 (print_inferior_quit_action): Likewise.
14531 (quit_confirm): Use range-based for loop to iterate over inferiors.
14532 (quit_force): Likewise.
14533
14534 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14535
14536 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14537 `void *` parameter with proper parameters.
14538 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14539 (print_one_inferior): Change return type to void, replace `void *`
14540 parameter with proper parameters.
14541 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14542 inferiors.
14543 (get_other_inferior): Remove.
14544 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14545 inferiors.
14546
14547 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14548
14549 * mi/mi-interp.c (report_initial_inferior): Remove.
14550 (mi_interp::init): Use range-based for to iterate over inferiors.
14551
14552 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * python/py-inferior.c (build_inferior_list): Remove.
14555 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14556
14557 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14558
14559 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14560 (btrace_stitch_trace): Likewise.
14561 * charset.c (intermediate_encoding): Likewise (vaild).
14562 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14563 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14564 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14565
14566 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14567
14568 * windows-tdep.c (windows_get_tlb_type):
14569 Add rtl_user_process_parameters type.
14570
14571 2020-01-16 Pedro Alves <palves@redhat.com>
14572 Norbert Lange <nolange79@gmail.com>
14573
14574 PR build/24805
14575 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14576 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14577 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14578 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14579 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14580 (ps_plog): Redeclare exported functions with default visibility.
14581
14582 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14583
14584 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14585 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14586
14587 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14588
14589 * infcmd.c (post_create_inferior): Use get_thread_regcache
14590 instead of get_current_regcache.
14591
14592 2020-01-14 Tom Tromey <tom@tromey.com>
14593
14594 PR symtab/12535:
14595 * python/python.c (gdbpy_decode_line): Treat empty string the same
14596 as no argument.
14597
14598 2020-01-14 Tom Tromey <tom@tromey.com>
14599
14600 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14601
14602 2020-01-14 Tom Tromey <tom@tromey.com>
14603
14604 * nat/linux-btrace.c: Don't include <config.h>.
14605 * nat/linux-ptrace.c: Don't include <config.h>.
14606 * nat/x86-linux-dregs.c: Don't include <config.h>.
14607
14608 2020-01-14 Tom Tromey <tom@tromey.com>
14609
14610 * configure: Rebuild.
14611 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14612
14613 2020-01-14 Tom Tromey <tom@tromey.com>
14614
14615 * nat/x86-linux-dregs.c: Include configh.h.
14616 * nat/linux-ptrace.c: Include configh.h.
14617 * nat/linux-btrace.c: Include configh.h.
14618 * defs.h: Include config.h, bfd.h.
14619 * configure.ac: Don't source common.host.
14620 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14621 * configure: Rebuild.
14622 * acinclude.m4: Update path.
14623 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14624 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14625 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14626 (CLIBS): Add LIBSUPPORT.
14627 (CDEPS): Likewise.
14628 (COMMON_SFILES): Remove gdbsupport files.
14629 (HFILES_NO_SRCDIR): Likewise.
14630 (stamp-version): Update path to create-version.sh.
14631 (ALLDEPFILES): Remove gdbsupport files.
14632
14633 2020-01-14 Tom Tromey <tom@tromey.com>
14634
14635 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14636 USE_WIN32API when needed.
14637 * configure.ac (USE_WIN32API): Don't define.
14638 (WIN32LIBS): Use WIN32APILIBS.
14639 * configure: Rebuild.
14640
14641 2020-01-14 Tom Tromey <tom@tromey.com>
14642
14643 * configure: Rebuild.
14644 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14645
14646 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14647
14648 * skip.c (skip_function_command): Make skip w/o arguments use the
14649 name of the inlined function if pc is inside any inlined function.
14650
14651 2020-01-14 Luis Machado <luis.machado@linaro.org>
14652
14653 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14654 * infrun.c (resume_1): Likewise.
14655 (handle_inferior_event): Remove stale comment.
14656 * linux-nat.c (linux_nat_target::resume): Update comments.
14657 (save_stop_reason): Likewise.
14658 (linux_nat_filter_event): Likewise.
14659 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14660
14661 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14662
14663 * elfread.c (record_minimal_symbol): Set section index to 0 for
14664 non-allocatable sections.
14665
14666
14667 2020-01-13 Ali Tamur <tamur@google.com>
14668
14669 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14670 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14671 to gdb::optional. Update comments.
14672 (dwo_file): Update comments.
14673 (read_attribute): Update API to take an additional out parameter,
14674 need_reprocess. This is used to mark attributes that need other
14675 attributes (e.g. str_offsets_base) for correct computation which may not
14676 have been read yet.
14677 (read_attribute_reprocess): New function declaration.
14678 (read_addr_index): Likewise.
14679 (read_dwo_str_index): Likewise.
14680 (read_stub_str_index): Likewise.
14681 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14682 (lookup_addr_base): New function definition.
14683 (lookup_ranges_base): Likewise.
14684 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14685 lookup_ranges_base.
14686 (init_cutu_and_read_dies): Update comments.
14687 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14688 unit. This is used to inherit parent's str_offsets_base and addr_base.
14689 Update comments.
14690 (init_cutu_and_read_dies_simple): Reflect API changes.
14691 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14692 (create_cus_hash_table): Change API to take parent compile unit.
14693 Reflect API changes.
14694 (open_and_init_dwo_file): Reflect API changes.
14695 (dwarf2_get_pc_bounds): Update comments.
14696 (dwarf2_record_block_ranges): Likewise.
14697 (read_full_die_1): Change implementation to reprocess attributes that
14698 need str_offsets_base and addr_base.
14699 (partial_die_info::read): Likewise.
14700 (read_attribute_reprocess): New function definition.
14701 (read_attribute_value): Change API to take an additional out parameter,
14702 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14703 when a non-dwo compile unit has index based attributes.
14704 (read_attribute): Reflect API changes.
14705 (read_addr_index_1): Reflect API changes. Update comments.
14706 (dwarf2_read_addr_index_data): Reflect API changes.
14707 (dwarf2_read_addr_index): Likewise.
14708 (read_str_index): Change API and implementation. This becomes a helper
14709 to be used by the new string index related methods. Update error
14710 message and comments.
14711 (read_dwo_str_index): New function definition.
14712 (read_stub_str_index): Likewise.
14713 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14714 * symfile.h (dwarf2_debug_sections): Likewise.
14715 * xcoffread.c (dwarf2_debug_sections): Likewise.
14716
14717 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14718
14719 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14720 core_reg_sect type to gdb_byte *.
14721 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14722 * cris-tdep.c (fetch_core_registers): Likewise.
14723 * corelow.c (core_target::get_core_register_section): Change
14724 type of `contents` to gdb::byte_vector.
14725
14726 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14727
14728 * tui/tui-wingeneral.c (box_win): Position the title in the center
14729 of the border.
14730
14731 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14732
14733 * corelow.c (core_target::get_core_register_section): Use
14734 std::vector instead of alloca.
14735
14736 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14737
14738 * warning.m4: Add -Wmissing-declarations to build_warnings.
14739 * configure: Re-generate.
14740
14741 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14742
14743 * python/python.c (init__gdb_module): Add declaration.
14744
14745 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14746
14747 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14748 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14749 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14750 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14751 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14752 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14753 * ada-exp.y (_initialize_ada_exp): Add declaration.
14754 * ada-lang.c (_initialize_ada_language): Add declaration.
14755 * ada-tasks.c (_initialize_tasks): Add declaration.
14756 * agent.c (_initialize_agent): Add declaration.
14757 * aix-thread.c (_initialize_aix_thread): Add declaration.
14758 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14759 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14760 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14761 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14762 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14763 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14764 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14765 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14766 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14767 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14768 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14769 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14770 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14771 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14772 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14773 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14774 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14775 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14776 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14777 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14778 * annotate.c (_initialize_annotate): Add declaration.
14779 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14780 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14781 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14782 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14783 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14784 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14785 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14786 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14787 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14788 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14789 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14790 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14791 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14792 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14793 * auto-load.c (_initialize_auto_load): Add declaration.
14794 * auxv.c (_initialize_auxv): Add declaration.
14795 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14796 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14797 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14798 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14799 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14800 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14801 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14802 * breakpoint.c (_initialize_breakpoint): Add declaration.
14803 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14804 * btrace.c (_initialize_btrace): Add declaration.
14805 * charset.c (_initialize_charset): Add declaration.
14806 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14807 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14808 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14809 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14810 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14811 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14812 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14813 * coffread.c (_initialize_coffread): Add declaration.
14814 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14815 * compile/compile.c (_initialize_compile): Add declaration.
14816 * complaints.c (_initialize_complaints): Add declaration.
14817 * completer.c (_initialize_completer): Add declaration.
14818 * copying.c (_initialize_copying): Add declaration.
14819 * corefile.c (_initialize_core): Add declaration.
14820 * corelow.c (_initialize_corelow): Add declaration.
14821 * cp-abi.c (_initialize_cp_abi): Add declaration.
14822 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14823 * cp-support.c (_initialize_cp_support): Add declaration.
14824 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14825 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14826 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14827 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14828 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14829 * ctfread.c (_initialize_ctfread): Add declaration.
14830 * d-lang.c (_initialize_d_language): Add declaration.
14831 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14832 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14833 * dbxread.c (_initialize_dbxread): Add declaration.
14834 * dcache.c (_initialize_dcache): Add declaration.
14835 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14836 * disasm.c (_initialize_disasm): Add declaration.
14837 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14838 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14839 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14840 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14841 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14842 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14843 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14844 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14845 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14846 * elfread.c (_initialize_elfread): Add declaration.
14847 * exec.c (_initialize_exec): Add declaration.
14848 * extension.c (_initialize_extension): Add declaration.
14849 * f-lang.c (_initialize_f_language): Add declaration.
14850 * f-valprint.c (_initialize_f_valprint): Add declaration.
14851 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14852 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14853 * filesystem.c (_initialize_filesystem): Add declaration.
14854 * findcmd.c (_initialize_mem_search): Add declaration.
14855 * findvar.c (_initialize_findvar): Add declaration.
14856 * fork-child.c (_initialize_fork_child): Add declaration.
14857 * frame-base.c (_initialize_frame_base): Add declaration.
14858 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14859 * frame.c (_initialize_frame): Add declaration.
14860 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14861 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14862 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14863 * gcore.c (_initialize_gcore): Add declaration.
14864 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14865 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14866 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14867 * gdbarch.c (_initialize_gdbarch): Add declaration.
14868 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14869 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14870 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14871 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14872 * go-lang.c (_initialize_go_language): Add declaration.
14873 * go32-nat.c (_initialize_go32_nat): Add declaration.
14874 * guile/guile.c (_initialize_guile): Add declaration.
14875 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14876 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14877 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14878 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14879 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14880 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14881 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14882 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14883 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14884 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14885 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14886 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14887 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14888 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14889 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14890 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14891 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14892 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14893 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14894 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14895 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14896 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14897 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14898 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14899 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14900 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14901 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14902 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14903 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14904 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14905 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14906 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14907 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14908 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14909 * infcall.c (_initialize_infcall): Add declaration.
14910 * infcmd.c (_initialize_infcmd): Add declaration.
14911 * inflow.c (_initialize_inflow): Add declaration.
14912 * infrun.c (_initialize_infrun): Add declaration.
14913 * interps.c (_initialize_interpreter): Add declaration.
14914 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14915 * jit.c (_initialize_jit): Add declaration.
14916 * language.c (_initialize_language): Add declaration.
14917 * linux-fork.c (_initialize_linux_fork): Add declaration.
14918 * linux-nat.c (_initialize_linux_nat): Add declaration.
14919 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14920 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14921 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14922 * m2-lang.c (_initialize_m2_language): Add declaration.
14923 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14924 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14925 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14926 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14927 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14928 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14929 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14930 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14931 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14932 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14933 * machoread.c (_initialize_machoread): Add declaration.
14934 * macrocmd.c (_initialize_macrocmd): Add declaration.
14935 * macroscope.c (_initialize_macroscope): Add declaration.
14936 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14937 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14938 * maint.c (_initialize_maint_cmds): Add declaration.
14939 * mdebugread.c (_initialize_mdebugread): Add declaration.
14940 * memattr.c (_initialize_mem): Add declaration.
14941 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14942 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14943 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14944 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14945 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14946 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14947 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14948 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14949 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14950 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14951 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14952 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14953 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14954 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14955 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14956 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14957 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14958 * mipsread.c (_initialize_mipsread): Add declaration.
14959 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14960 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14961 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14962 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14963 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14964 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14965 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14966 * nto-procfs.c (_initialize_procfs): Add declaration.
14967 * objc-lang.c (_initialize_objc_language): Add declaration.
14968 * observable.c (_initialize_observer): Add declaration.
14969 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14970 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14971 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14972 * osabi.c (_initialize_gdb_osabi): Add declaration.
14973 * osdata.c (_initialize_osdata): Add declaration.
14974 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14975 * parse.c (_initialize_parse): Add declaration.
14976 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14977 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14978 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14979 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14980 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14981 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14982 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14983 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14984 * printcmd.c (_initialize_printcmd): Add declaration.
14985 * probe.c (_initialize_probe): Add declaration.
14986 * proc-api.c (_initialize_proc_api): Add declaration.
14987 * proc-events.c (_initialize_proc_events): Add declaration.
14988 * proc-service.c (_initialize_proc_service): Add declaration.
14989 * procfs.c (_initialize_procfs): Add declaration.
14990 * producer.c (_initialize_producer): Add declaration.
14991 * psymtab.c (_initialize_psymtab): Add declaration.
14992 * python/python.c (_initialize_python): Add declaration.
14993 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14994 * record-btrace.c (_initialize_record_btrace): Add declaration.
14995 * record-full.c (_initialize_record_full): Add declaration.
14996 * record.c (_initialize_record): Add declaration.
14997 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14998 * regcache.c (_initialize_regcache): Add declaration.
14999 * reggroups.c (_initialize_reggroup): Add declaration.
15000 * remote-notif.c (_initialize_notif): Add declaration.
15001 * remote-sim.c (_initialize_remote_sim): Add declaration.
15002 * remote.c (_initialize_remote): Add declaration.
15003 * reverse.c (_initialize_reverse): Add declaration.
15004 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15005 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15006 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15007 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15008 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15009 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15010 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15011 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15012 Add declaration.
15013 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15014 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15015 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15016 * rust-exp.y (_initialize_rust_exp): Add declaration.
15017 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15018 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15019 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15020 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15021 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15022 * score-tdep.c (_initialize_score_tdep): Add declaration.
15023 * ser-go32.c (_initialize_ser_dos): Add declaration.
15024 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15025 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15026 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15027 * ser-uds.c (_initialize_ser_socket): Add declaration.
15028 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15029 * serial.c (_initialize_serial): Add declaration.
15030 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15031 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15032 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15033 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15034 * skip.c (_initialize_step_skip): Add declaration.
15035 * sol-thread.c (_initialize_sol_thread): Add declaration.
15036 * solib-aix.c (_initialize_solib_aix): Add declaration.
15037 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15038 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15039 * solib-frv.c (_initialize_frv_solib): Add declaration.
15040 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15041 * solib-target.c (_initialize_solib_target): Add declaration.
15042 * solib.c (_initialize_solib): Add declaration.
15043 * source-cache.c (_initialize_source_cache): Add declaration.
15044 * source.c (_initialize_source): Add declaration.
15045 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15046 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15047 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15048 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15049 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15050 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15051 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15052 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15053 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15054 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15055 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15056 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15057 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15058 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15059 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15060 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15061 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15062 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15063 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15064 * stabsread.c (_initialize_stabsread): Add declaration.
15065 * stack.c (_initialize_stack): Add declaration.
15066 * stap-probe.c (_initialize_stap_probe): Add declaration.
15067 * std-regs.c (_initialize_frame_reg): Add declaration.
15068 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15069 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15070 * symfile.c (_initialize_symfile): Add declaration.
15071 * symmisc.c (_initialize_symmisc): Add declaration.
15072 * symtab.c (_initialize_symtab): Add declaration.
15073 * target.c (_initialize_target): Add declaration.
15074 * target-connection.c (_initialize_target_connection): Add
15075 declaration.
15076 * target-dcache.c (_initialize_target_dcache): Add declaration.
15077 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15078 * thread.c (_initialize_thread): Add declaration.
15079 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15080 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15081 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15082 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15083 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15084 * tracectf.c (_initialize_ctf): Add declaration.
15085 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15086 * tracefile.c (_initialize_tracefile): Add declaration.
15087 * tracepoint.c (_initialize_tracepoint): Add declaration.
15088 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15089 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15090 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15091 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15092 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15093 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15094 * tui/tui.c (_initialize_tui): Add declaration.
15095 * typeprint.c (_initialize_typeprint): Add declaration.
15096 * ui-style.c (_initialize_ui_style): Add declaration.
15097 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15098 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15099 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15100 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15101 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15102 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15103 * unittests/filtered_iterator-selftests.c
15104 (_initialize_filtered_iterator_selftests): Add declaration.
15105 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15106 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15107 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15108 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15109 * unittests/main-thread-selftests.c
15110 (_initialize_main_thread_selftests): Add declaration.
15111 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15112 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15113 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15114 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15115 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15116 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15117 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15118 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15119 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15120 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15121 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15122 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15123 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15124 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15125 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15126 declaration.
15127 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15128 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15129 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15130 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15131 * user-regs.c (_initialize_user_regs): Add declaration.
15132 * utils.c (_initialize_utils): Add declaration.
15133 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15134 * valops.c (_initialize_valops): Add declaration.
15135 * valprint.c (_initialize_valprint): Add declaration.
15136 * value.c (_initialize_values): Add declaration.
15137 * varobj.c (_initialize_varobj): Add declaration.
15138 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15139 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15140 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15141 * windows-nat.c (_initialize_windows_nat): Add declaration.
15142 (_initialize_check_for_gdb_ini): Add declaration.
15143 (_initialize_loadable): Add declaration.
15144 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15145 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15146 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15147 * xcoffread.c (_initialize_xcoffread): Add declaration.
15148 * xml-support.c (_initialize_xml_support): Add declaration.
15149 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15150 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15151 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15152 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15153
15154 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15155
15156 * regformats/regdat.sh: Generate declaration for init function.
15157
15158 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15159
15160 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15161 up.
15162 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15163 close_one_inferior>: New methods.
15164 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15165 pass down target to find_inferior_pid.
15166 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15167 Pass down target to find_inferior_ptid.
15168 (gdbsim_target::create_inferior): Pass down target to
15169 add_thread_silent.
15170 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15171 target down to find_inferior_ptid and switch_to_thread.
15172 (gdbsim_target::close): Update to call close_one_inferior.
15173 (struct resume_data): Remove.
15174 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15175 directly, rather than through a void pointer.
15176 (gdbsim_target::resume): Update to call resume_one_inferior.
15177
15178 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15179
15180 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15181
15182 2020-01-12 Pedro Alves <palves@redhat.com>
15183
15184 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15185 directly for the current inferior instead of
15186 discard_all_inferiors.
15187 (discard_all_inferiors): Delete.
15188
15189 2020-01-11 Tom Tromey <tom@tromey.com>
15190
15191 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15192 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15193 deprecated_safe_get_selected_frame.
15194
15195 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15196
15197 * inferior.c (print_inferior): Switch inferior before printing it.
15198
15199 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15200 Pedro Alves <palves@redhat.com>
15201
15202 * progspace-and-thread.c (switch_to_program_space_and_thread):
15203 Assert there's an inferior for PSPACE. Use
15204 switch_to_inferior_no_thread to switch the inferior too.
15205 * progspace.c (program_space::~program_space): Call
15206 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15207 (program_space::free_all_objfiles): Don't call clear_symtab_users
15208 here.
15209 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15210
15211 2020-01-10 Pedro Alves <palves@redhat.com>
15212
15213 * NEWS: Mention multi-target debugging, "info connections", and
15214 "add-inferior -no-connection".
15215
15216 2020-01-10 Pedro Alves <palves@redhat.com>
15217
15218 * infrun.c: Include "target-connection.h".
15219 (check_multi_target_resumption): New.
15220 (proceed): Call it.
15221 * target-connection.c (make_target_connection_string): Make
15222 extern.
15223 * target-connection.h (make_target_connection_string): Declare.
15224
15225 2020-01-10 Pedro Alves <palves@redhat.com>
15226
15227 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15228 * inferior.c (uiout_field_connection): New function.
15229 (print_inferior): Add new "connection-id" column.
15230 (add_inferior_command): Show connection number/string of added
15231 inferior.
15232 * process-stratum-target.h
15233 (process_stratum_target::connection_string): New virtual method.
15234 (process_stratum_target::connection_number): New field.
15235 * remote.c (remote_target::connection_string): New override.
15236 * target-connection.c: New file.
15237 * target-connection.h: New file.
15238 * target.c (decref_target): Remove process_stratum targets from
15239 the connection list.
15240 (target_stack::push): Add process_stratum targets to the
15241 connection list.
15242
15243 2020-01-10 Pedro Alves <palves@redhat.com>
15244
15245 Revert:
15246 2016-04-12 Pedro Alves <palves@redhat.com>
15247 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15248 Remove references to name.
15249 * serial.h (struct serial) <name>: Delete.
15250
15251 2020-01-10 Pedro Alves <palves@redhat.com>
15252
15253 * gdbarch-selftests.c (register_to_value_test): Remove "target
15254 already pushed" check.
15255
15256 2020-01-10 Pedro Alves <palves@redhat.com>
15257 John Baldwin <jhb@FreeBSD.org>
15258
15259 * aarch64-linux-nat.c
15260 (aarch64_linux_nat_target::thread_architecture): Adjust.
15261 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15262 (task_command_1): Likewise.
15263 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15264 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15265 (aix_thread_target::store_registers)
15266 (aix_thread_target::thread_alive): Adjust.
15267 * amd64-fbsd-tdep.c: Include "inferior.h".
15268 (amd64fbsd_get_thread_local_address): Pass down target.
15269 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15270 thread's gdbarch instead of target_gdbarch.
15271 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15272 get_last_target_status.
15273 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15274 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15275 inferiors.
15276 (update_inserted_breakpoint_locations): Skip if inferiors with no
15277 execution.
15278 (update_global_location_list): When handling moribund locations,
15279 find representative inferior for location's pspace, and use thread
15280 count of its process_stratum target.
15281 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15282 * bsd-uthread.c (bsd_uthread_target::wait): Use
15283 as_process_stratum_target and adjust thread_change_ptid and
15284 add_thread calls.
15285 (bsd_uthread_target::update_thread_list): Use
15286 as_process_stratum_target and adjust find_thread_ptid,
15287 thread_change_ptid and add_thread calls.
15288 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15289 find_thread_ptid call.
15290 * corelow.c (add_to_thread_list): Adjust add_thread call.
15291 (core_target_open): Adjust add_thread_silent and thread_count
15292 calls.
15293 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15294 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15295 * event-top.c (async_disconnect): Pop targets from all inferiors.
15296 * exec.c (add_target_sections): Push exec target on all inferiors
15297 sharing the program space.
15298 (remove_target_sections): Remove the exec target from all
15299 inferiors sharing the program space.
15300 (exec_on_vfork): New.
15301 * exec.h (exec_on_vfork): Declare.
15302 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15303 Pass it down.
15304 (fbsd_nat_target::update_thread_list): Adjust.
15305 (fbsd_nat_target::resume): Adjust.
15306 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15307 down.
15308 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15309 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15310 get_thread_arch_regcache call.
15311 * fork-child.c (gdb_startup_inferior): Pass target down to
15312 startup_inferior and set_executing.
15313 * gdbthread.h (struct process_stratum_target): Forward declare.
15314 (add_thread, add_thread_silent, add_thread_with_info)
15315 (in_thread_list): Add process_stratum_target parameter.
15316 (find_thread_ptid(inferior*, ptid_t)): New overload.
15317 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15318 parameter.
15319 (all_threads()): Delete overload.
15320 (all_threads, all_non_exited_threads): Add process_stratum_target
15321 parameter.
15322 (all_threads_safe): Use brace initialization.
15323 (thread_count): Add process_stratum_target parameter.
15324 (set_resumed, set_running, set_stop_requested, set_executing)
15325 (threads_are_executing, finish_thread_state): Add
15326 process_stratum_target parameter.
15327 (switch_to_thread): Use is_current_thread.
15328 * i386-fbsd-tdep.c: Include "inferior.h".
15329 (i386fbsd_get_thread_local_address): Pass down target.
15330 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15331 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15332 have_inferiors check.
15333 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15334 (inf_ptrace_target::attach): Adjust.
15335 * infcall.c (run_inferior_call): Adjust.
15336 * infcmd.c (run_command_1): Pass target to
15337 scoped_finish_thread_state.
15338 (proceed_thread_callback): Skip inferiors with no execution.
15339 (continue_command): Rename 'all_threads' local to avoid hiding
15340 'all_threads' function. Adjust get_last_target_status call.
15341 (prepare_one_step): Adjust set_running call.
15342 (signal_command): Use user_visible_resume_target. Compare thread
15343 pointers instead of inferior_ptid.
15344 (info_program_command): Adjust to pass down target.
15345 (attach_command): Mark target's 'thread_executing' flag.
15346 (stop_current_target_threads_ns): New, factored out from ...
15347 (interrupt_target_1): ... this. Switch inferior before making
15348 target calls.
15349 * inferior-iter.h
15350 (struct all_inferiors_iterator, struct all_inferiors_range)
15351 (struct all_inferiors_safe_range)
15352 (struct all_non_exited_inferiors_range): Filter on
15353 process_stratum_target too. Remove explicit.
15354 * inferior.c (inferior::inferior): Push dummy target on target
15355 stack.
15356 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15357 Add process_stratum_target parameter, and pass it down.
15358 (have_live_inferiors): Adjust.
15359 (switch_to_inferior_and_push_target): New.
15360 (add_inferior_command, clone_inferior_command): Handle
15361 "-no-connection" parameter. Use
15362 switch_to_inferior_and_push_target.
15363 (_initialize_inferior): Mention "-no-connection" option in
15364 the help of "add-inferior" and "clone-inferior" commands.
15365 * inferior.h: Include "process-stratum-target.h".
15366 (interrupt_target_1): Use bool.
15367 (struct inferior) <push_target, unpush_target, target_is_pushed,
15368 find_target_beneath, top_target, process_target, target_at,
15369 m_stack>: New.
15370 (discard_all_inferiors): Delete.
15371 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15372 (all_inferiors, all_non_exited_inferiors): Add
15373 process_stratum_target parameter.
15374 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15375 (target_last_proc_target): New global.
15376 (follow_fork_inferior): Push target on new inferior. Pass target
15377 to add_thread_silent. Call exec_on_vfork. Handle target's
15378 reference count.
15379 (follow_fork): Adjust get_last_target_status call. Also consider
15380 target.
15381 (follow_exec): Push target on new inferior.
15382 (struct execution_control_state) <target>: New field.
15383 (user_visible_resume_target): New.
15384 (do_target_resume): Call target_async.
15385 (resume_1): Set target's threads_executing flag. Consider resume
15386 target.
15387 (commit_resume_all_targets): New.
15388 (proceed): Also consider resume target. Skip threads of inferiors
15389 with no execution. Commit resumtion in all targets.
15390 (start_remote): Pass current inferior to wait_for_inferior.
15391 (infrun_thread_stop_requested): Consider target as well. Pass
15392 thread_info pointer to clear_inline_frame_state instead of ptid.
15393 (infrun_thread_thread_exit): Consider target as well.
15394 (random_pending_event_thread): New inferior parameter. Use it.
15395 (do_target_wait): Rename to ...
15396 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15397 down.
15398 (threads_are_resumed_pending_p, do_target_wait): New.
15399 (prepare_for_detach): Adjust calls.
15400 (wait_for_inferior): New inferior parameter. Handle it. Use
15401 do_target_wait_1 instead of do_target_wait.
15402 (fetch_inferior_event): Adjust. Switch to representative
15403 inferior. Pass target down.
15404 (set_last_target_status): Add process_stratum_target parameter.
15405 Save target in global.
15406 (get_last_target_status): Add process_stratum_target parameter and
15407 handle it.
15408 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15409 (context_switch): Check inferior_ptid == null_ptid before calling
15410 inferior_thread().
15411 (get_inferior_stop_soon): Pass down target.
15412 (wait_one): Rename to ...
15413 (poll_one_curr_target): ... this.
15414 (struct wait_one_event): New.
15415 (wait_one): New.
15416 (stop_all_threads): Adjust.
15417 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15418 event's target.
15419 (switch_back_to_stepped_thread): Also consider target.
15420 (print_stop_event): Update.
15421 (normal_stop): Update. Also consider the resume target.
15422 * infrun.h (wait_for_inferior): Remove declaration.
15423 (user_visible_resume_target): New declaration.
15424 (get_last_target_status, set_last_target_status): New
15425 process_stratum_target parameter.
15426 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15427 process_stratum_target parameter, and use it.
15428 (clear_inline_frame_state (thread_info*)): New.
15429 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15430 process_stratum_target parameter.
15431 (clear_inline_frame_state (thread_info*)): Declare.
15432 * linux-fork.c (delete_checkpoint_command): Pass target down to
15433 find_thread_ptid.
15434 (checkpoint_command): Adjust.
15435 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15436 instead of just tweaking inferior_ptid.
15437 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15438 (exit_lwp): Pass target down to find_thread_ptid.
15439 (attach_proc_task_lwp_callback): Pass target down to
15440 add_thread/set_running/set_executing.
15441 (linux_nat_target::attach): Pass target down to
15442 thread_change_ptid.
15443 (get_detach_signal): Pass target down to find_thread_ptid.
15444 Consider last target status's target.
15445 (linux_resume_one_lwp_throw, resume_lwp)
15446 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15447 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15448 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15449 (linux_nat_target::async_wait_fd): New.
15450 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15451 target down.
15452 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15453 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15454 * linux-thread-db.c (struct thread_db_info::process_target): New
15455 field.
15456 (add_thread_db_info): Save target.
15457 (get_thread_db_info): New process_stratum_target parameter. Also
15458 match target.
15459 (delete_thread_db_info): New process_stratum_target parameter.
15460 Also match target.
15461 (thread_from_lwp): Adjust to pass down target.
15462 (thread_db_notice_clone): Pass down target.
15463 (check_thread_db_callback): Pass down target.
15464 (try_thread_db_load_1): Always push the thread_db target.
15465 (try_thread_db_load, record_thread): Pass target down.
15466 (thread_db_target::detach): Pass target down. Always unpush the
15467 thread_db target.
15468 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15469 target down. Always unpush the thread_db target.
15470 (find_new_threads_callback, thread_db_find_new_threads_2)
15471 (thread_db_target::update_thread_list): Pass target down.
15472 (thread_db_target::pid_to_str): Pass current inferior down.
15473 (thread_db_target::get_thread_local_address): Pass target down.
15474 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15475 target down.
15476 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15477 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15478 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15479 (procfs_init_inferior): Rename to ...
15480 (procfs_target::procfs_init_inferior): ... this and adjust.
15481 (procfs_target::create_inferior, procfs_notice_thread)
15482 (procfs_do_thread_registers): Adjust.
15483 * ppc-fbsd-tdep.c: Include "inferior.h".
15484 (ppcfbsd_get_thread_local_address): Pass down target.
15485 * proc-service.c (ps_xfer_memory): Switch current inferior and
15486 program space as well.
15487 (get_ps_regcache): Pass target down.
15488 * process-stratum-target.c
15489 (process_stratum_target::thread_address_space)
15490 (process_stratum_target::thread_architecture): Pass target down.
15491 * process-stratum-target.h
15492 (process_stratum_target::threads_executing): New field.
15493 (as_process_stratum_target): New.
15494 * ravenscar-thread.c
15495 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15496 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15497 down.
15498 * record-btrace.c (record_btrace_target::info_record): Adjust.
15499 (record_btrace_target::record_method)
15500 (record_btrace_target::record_is_replaying)
15501 (record_btrace_target::fetch_registers)
15502 (get_thread_current_frame_id, record_btrace_target::resume)
15503 (record_btrace_target::wait, record_btrace_target::stop): Pass
15504 target down.
15505 * record-full.c (record_full_wait_1): Switch to event thread.
15506 Pass target down.
15507 * regcache.c (regcache::regcache)
15508 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15509 process_stratum_target parameter and handle it.
15510 (current_thread_target): New global.
15511 (get_thread_regcache): Add process_stratum_target parameter and
15512 handle it. Switch inferior before calling target method.
15513 (get_thread_regcache): Pass target down.
15514 (get_thread_regcache_for_ptid): Pass target down.
15515 (registers_changed_ptid): Add process_stratum_target parameter and
15516 handle it.
15517 (registers_changed_thread, registers_changed): Pass target down.
15518 (test_get_thread_arch_aspace_regcache): New.
15519 (current_regcache_test): Define a couple local test_target_ops
15520 instances and use them for testing.
15521 (readwrite_regcache): Pass process_stratum_target parameter.
15522 (cooked_read_test, cooked_write_test): Pass mock_target down.
15523 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15524 (get_thread_arch_aspace_regcache): Add process_stratum_target
15525 parameter.
15526 (regcache::target): New method.
15527 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15528 (regcache::registers_changed_ptid): Add process_stratum_target
15529 parameter.
15530 (regcache::m_target): New field.
15531 (registers_changed_ptid): Add process_stratum_target parameter.
15532 * remote.c (remote_state::supports_vCont_probed): New field.
15533 (remote_target::async_wait_fd): New method.
15534 (remote_unpush_and_throw): Add remote_target parameter.
15535 (get_current_remote_target): Adjust.
15536 (remote_target::remote_add_inferior): Push target.
15537 (remote_target::remote_add_thread)
15538 (remote_target::remote_notice_new_inferior)
15539 (get_remote_thread_info): Pass target down.
15540 (remote_target::update_thread_list): Skip threads of inferiors
15541 bound to other targets. (remote_target::close): Don't discard
15542 inferiors. (remote_target::add_current_inferior_and_thread)
15543 (remote_target::process_initial_stop_replies)
15544 (remote_target::start_remote)
15545 (remote_target::remote_serial_quit_handler): Pass down target.
15546 (remote_target::remote_unpush_target): New remote_target
15547 parameter. Unpush the target from all inferiors.
15548 (remote_target::remote_unpush_and_throw): New remote_target
15549 parameter. Pass it down.
15550 (remote_target::open_1): Check whether the current inferior has
15551 execution instead of checking whether any inferior is live. Pass
15552 target down.
15553 (remote_target::remote_detach_1): Pass down target. Use
15554 remote_unpush_target.
15555 (extended_remote_target::attach): Pass down target.
15556 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15557 (remote_target::append_resumption): Pass down target.
15558 (remote_target::append_pending_thread_resumptions)
15559 (remote_target::remote_resume_with_hc, remote_target::resume)
15560 (remote_target::commit_resume): Pass down target.
15561 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15562 (remote_target::interrupt_query)
15563 (remote_target::remove_new_fork_children)
15564 (remote_target::check_pending_events_prevent_wildcard_vcont)
15565 (remote_target::remote_parse_stop_reply)
15566 (remote_target::process_stop_reply): Pass down target.
15567 (first_remote_resumed_thread): New remote_target parameter. Pass
15568 it down.
15569 (remote_target::wait_as): Pass down target.
15570 (unpush_and_perror): New remote_target parameter. Pass it down.
15571 (remote_target::readchar, remote_target::remote_serial_write)
15572 (remote_target::getpkt_or_notif_sane_1)
15573 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15574 down target.
15575 (remote_target::mourn_inferior): Pass down target. Use
15576 remote_unpush_target.
15577 (remote_target::core_of_thread)
15578 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15579 (remote_target::pid_to_exec_file)
15580 (remote_target::thread_handle_to_thread_info): Pass down target.
15581 (remote_target::async_wait_fd): New.
15582 * riscv-fbsd-tdep.c: Include "inferior.h".
15583 (riscv_fbsd_get_thread_local_address): Pass down target.
15584 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15585 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15586 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15587 Adjust.
15588 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15589 * solib-svr4.c (enable_break): Pass down target.
15590 * spu-multiarch.c (parse_spufs_run): Pass down target.
15591 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15592 * target-delegates.c: Regenerate.
15593 * target.c (g_target_stack): Delete.
15594 (current_top_target): Return the current inferior's top target.
15595 (target_has_execution_1): Refer to the passed-in inferior's top
15596 target.
15597 (target_supports_terminal_ours): Check whether the initial
15598 inferior was already created.
15599 (decref_target): New.
15600 (target_stack::push): Incref/decref the target.
15601 (push_target, push_target, unpush_target): Adjust.
15602 (target_stack::unpush): Defref target.
15603 (target_is_pushed): Return bool. Adjust to refer to the current
15604 inferior's target stack.
15605 (dispose_inferior): Delete, and inline parts ...
15606 (target_preopen): ... here. Only dispose of the current inferior.
15607 (target_detach): Hold strong target reference while detaching.
15608 Pass target down.
15609 (target_thread_name): Add assertion.
15610 (target_resume): Pass down target.
15611 (target_ops::beneath, find_target_at): Adjust to refer to the
15612 current inferior's target stack.
15613 (get_dummy_target): New.
15614 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15615 has a thread running.
15616 (initialize_targets): Rename to ...
15617 (_initialize_target): ... this.
15618 * target.h: Include "gdbsupport/refcounted-object.h".
15619 (struct target_ops): Inherit refcounted_object.
15620 (target_ops::shortname, target_ops::longname): Make const.
15621 (target_ops::async_wait_fd): New method.
15622 (decref_target): Declare.
15623 (struct target_ops_ref_policy): New.
15624 (target_ops_ref): New typedef.
15625 (get_dummy_target): Declare function.
15626 (target_is_pushed): Return bool.
15627 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15628 (all_matching_threads_iterator::all_matching_threads_iterator):
15629 Handle filter target.
15630 * thread-iter.h (struct all_matching_threads_iterator, struct
15631 all_matching_threads_range, class all_non_exited_threads_range):
15632 Filter by target too. Remove explicit.
15633 * thread.c (threads_executing): Delete.
15634 (inferior_thread): Pass down current inferior.
15635 (clear_thread_inferior_resources): Pass down thread pointer
15636 instead of ptid_t.
15637 (add_thread_silent, add_thread_with_info, add_thread): Add
15638 process_stratum_target parameter. Use it for thread and inferior
15639 searches.
15640 (is_current_thread): New.
15641 (thread_info::deletable): Use it.
15642 (find_thread_ptid, thread_count, in_thread_list)
15643 (thread_change_ptid, set_resumed, set_running): New
15644 process_stratum_target parameter. Pass it down.
15645 (set_executing): New process_stratum_target parameter. Pass it
15646 down. Adjust reference to 'threads_executing'.
15647 (threads_are_executing): New process_stratum_target parameter.
15648 Adjust reference to 'threads_executing'.
15649 (set_stop_requested, finish_thread_state): New
15650 process_stratum_target parameter. Pass it down.
15651 (switch_to_thread): Also match inferior.
15652 (switch_to_thread): New process_stratum_target parameter. Pass it
15653 down.
15654 (update_threads_executing): Reimplement.
15655 * top.c (quit_force): Pop targets from all inferior.
15656 (gdb_init): Don't call initialize_targets.
15657 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15658 Declare.
15659 (windows_add_thread, windows_delete_thread): Adjust.
15660 (get_windows_debug_event): Rename to ...
15661 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15662 * tracefile-tfile.c (tfile_target_open): Pass down target.
15663 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15664 Forward declare.
15665 (switch_to_thread): Add process_stratum_target parameter.
15666 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15667 parameter. Use it.
15668 (mi_on_resume): Pass target down.
15669 * nat/fork-inferior.c (startup_inferior): Add
15670 process_stratum_target parameter. Pass it down.
15671 * nat/fork-inferior.h (startup_inferior): Add
15672 process_stratum_target parameter.
15673 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15674
15675 2020-01-10 Pedro Alves <palves@redhat.com>
15676
15677 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15678 directly. Instead find the first thread in the thread list and
15679 use switch_to_thread.
15680
15681 2020-01-10 Pedro Alves <palves@redhat.com>
15682
15683 * remote.c (remote_target::remote_add_inferior): Don't bind a
15684 process to the current inferior if the current inferior is already
15685 bound to a process.
15686
15687 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15688 Pedro Alves <palves@redhat.com>
15689
15690 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15691 If no process is specified, return null_ptid instead of
15692 inferior_ptid.
15693 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15694 TARGET_WAITKIND_SIGNALLED with no pid.
15695
15696 2020-01-10 Pedro Alves <palves@redhat.com>
15697
15698 * remote.c (first_remote_resumed_thread): New.
15699 (remote_target::wait_as): Use it as default event_ptid instead of
15700 inferior_ptid.
15701
15702 2020-01-10 Pedro Alves <palves@redhat.com>
15703
15704 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15705
15706 2020-01-10 Pedro Alves <palves@redhat.com>
15707
15708 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15709 not -1.
15710
15711 2020-01-10 Pedro Alves <palves@redhat.com>
15712
15713 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15714 ptid to get_last_target_status.
15715 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15716 ptid to get_last_target_status.
15717 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15718 get_last_target_status.
15719 (info_program_command): Don't pass a target_waitstatus to
15720 get_last_target_status.
15721 * infrun.c (init_wait_for_inferior): Use
15722 nullify_last_target_wait_ptid.
15723 (get_last_target_status): Handle nullptr arguments.
15724 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15725 (print_stop_event): Don't pass a ptid to get_last_target_status.
15726 (normal_stop): Don't pass a ptid to get_last_target_status.
15727 * infrun.h (get_last_target_status, set_last_target_status): Move
15728 comments here and update.
15729 (nullify_last_target_wait_ptid): Declare.
15730 * linux-fork.c (fork_load_infrun_state): Remove local extern
15731 declaration of nullify_last_target_wait_ptid.
15732 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15733 to get_last_target_status.
15734
15735 2020-01-10 Pedro Alves <palves@redhat.com>
15736
15737 * gdbthread.h (scoped_restore_current_thread)
15738 <dont_restore, restore, m_dont_restore>: Declare.
15739 * thread.c (thread_alive): Add assertion. Return bool.
15740 (switch_to_thread_if_alive): New.
15741 (prune_threads): Switch inferior/thread.
15742 (print_thread_info_1): Switch thread before calling target methods.
15743 (scoped_restore_current_thread::restore): New, factored out from
15744 ...
15745 (scoped_restore_current_thread::~scoped_restore_current_thread):
15746 ... this.
15747 (scoped_restore_current_thread::scoped_restore_current_thread):
15748 Add assertion.
15749 (thread_apply_all_command, thread_select): Use
15750 switch_to_thread_if_alive.
15751 * infrun.c (proceed, restart_threads, handle_signal_stop)
15752 (switch_back_to_stepped_thread): Switch current thread before
15753 calling target methods.
15754
15755 2020-01-10 Pedro Alves <palves@redhat.com>
15756
15757 * inferior.c (switch_to_inferior_no_thread): New function,
15758 factored out from ...
15759 (inferior_command): ... here.
15760 * inferior.h (switch_to_inferior_no_thread): Declare.
15761 * mi/mi-main.c (run_one_inferior): Use
15762 switch_to_inferior_no_thread.
15763
15764 2020-01-10 Pedro Alves <palves@redhat.com>
15765
15766 * infcmd.c (kill_command): Remove dead code.
15767
15768 2020-01-10 Pedro Alves <palves@redhat.com>
15769
15770 * remote.c (remote_target::mourn_inferior): No longer check
15771 whether the target is running.
15772
15773 2020-01-10 Pedro Alves <palves@redhat.com>
15774
15775 * corelow.c (core_target::has_execution): Change parameter type to
15776 inferior pointer.
15777 * inferior.c (number_of_live_inferiors): Use
15778 inferior::has_execution instead of target_has_execution_1.
15779 * inferior.h (inferior::has_execution): New.
15780 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15781 inferior::has_execution instead of target_has_execution_1.
15782 * process-stratum-target.c
15783 (process_stratum_target::has_execution): Change parameter type to
15784 inferior pointer. Check the inferior's PID instead of
15785 inferior_ptid.
15786 * process-stratum-target.h
15787 (process_stratum_target::has_execution): Change parameter type to
15788 inferior pointer.
15789 * record-full.c (record_full_core_target::has_execution): Change
15790 parameter type to inferior pointer.
15791 * target.c (target_has_execution_1): Change parameter type to
15792 inferior pointer.
15793 (target_has_execution_current): Adjust.
15794 * target.h (target_ops::has_execution): Change parameter type to
15795 inferior pointer.
15796 (target_has_execution_1): Change parameter type to inferior
15797 pointer. Change return type to bool.
15798 * tracefile.h (tracefile_target::has_execution): Change parameter
15799 type to inferior pointer.
15800
15801 2020-01-10 Pedro Alves <palves@redhat.com>
15802
15803 * exceptions.c (print_flush): Remove current_top_target() check.
15804
15805 2020-01-10 Pedro Alves <palves@redhat.com>
15806
15807 * remote.c (show_remote_exec_file): Show the current inferior's
15808 exec-file instead of the command variable's value.
15809
15810 2020-01-10 Pedro Alves <palves@redhat.com>
15811
15812 * record-full.c (record_full_resume_ptid): New global.
15813 (record_full_target::resume): Set it.
15814 (record_full_wait_1): Use record_full_resume_ptid instead of
15815 inferior_ptid.
15816
15817 2020-01-10 Pedro Alves <palves@redhat.com>
15818
15819 * gdbthread.h (scoped_restore_current_thread)
15820 <dont_restore, restore, m_dont_restore>: Declare.
15821 * thread.c (thread_alive): Add assertion. Return bool.
15822 (switch_to_thread_if_alive): New.
15823 (prune_threads): Switch inferior/thread.
15824 (print_thread_info_1): Switch thread before calling target methods.
15825 (scoped_restore_current_thread::restore): New, factored out from
15826 ...
15827 (scoped_restore_current_thread::~scoped_restore_current_thread):
15828 ... this.
15829 (scoped_restore_current_thread::scoped_restore_current_thread):
15830 Add assertion.
15831 (thread_apply_all_command, thread_select): Use
15832 switch_to_thread_if_alive.
15833
15834 2020-01-10 George Barrett <bob@bob131.so>
15835
15836 * stap-probe.c (stap_modify_semaphore): Don't check for null
15837 semaphores.
15838 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15839 for null semaphores.
15840
15841 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15842
15843 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15844 all source windows, and maintain horizontal scroll status while
15845 doing so.
15846
15847 2020-01-09 Tom Tromey <tom@tromey.com>
15848
15849 PR tui/18932:
15850 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15851 update_source_window, not print_source_lines.
15852
15853 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15854
15855 * tui/tui.c (tui_enable): Register tui hooks after calling
15856 tui_display_main.
15857
15858 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15859
15860 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15861
15862 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15863
15864 * thread.c (print_thread_info_1): Fix indentation.
15865
15866 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15867
15868 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15869 unique_xmalloc_ptr outside the if to always free the demangled name.
15870
15871 2020-01-08 Tom Tromey <tromey@adacore.com>
15872
15873 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15874 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15875 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15876 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15877 Remove.
15878 (section_offsets): New typedef.
15879 * symtab.c (fixup_section, get_msymbol_address): Update.
15880 * symmisc.c (dump_msymbols): Update.
15881 * symfile.h (relative_addr_info_to_section_offsets)
15882 (symfile_map_offsets_to_segments): Update.
15883 * symfile.c (build_section_addr_info_from_objfile)
15884 (init_objfile_sect_indices): Update.
15885 (struct place_section_arg): Change type of "offsets".
15886 (place_section): Update.
15887 (relative_addr_info_to_section_offsets): Change type of
15888 "section_offsets". Remove "num_sections" parameter.
15889 (default_symfile_offsets, syms_from_objfile_1)
15890 (set_objfile_default_section_offset): Update.
15891 (reread_symbols): No need to preserve section offsets by hand.
15892 (symfile_map_offsets_to_segments): Change type of "offsets".
15893 * stap-probe.c (relocate_address): Update.
15894 * stabsread.h (process_one_symbol): Update.
15895 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15896 (solib_target_relocate_section_addresses): Update.
15897 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15898 Update.
15899 * solib-frv.c (frv_relocate_main_executable): Update.
15900 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15901 * solib-aix.c (solib_aix_get_section_offsets): Change return
15902 type.
15903 (solib_aix_solib_create_inferior_hook): Update.
15904 * remote.c (remote_target::get_offsets): Update.
15905 * psymtab.c (find_pc_sect_psymtab): Update.
15906 * psympriv.h (struct partial_symbol) <address, text_low,
15907 text_high>: Update.
15908 * objfiles.h (obj_section_offset): Update.
15909 (struct objfile) <section_offsets>: Change type.
15910 <num_sections>: Remove.
15911 (objfile_relocate): Update.
15912 * objfiles.c (entry_point_address_query): Update
15913 (relocate_one_symbol): Change type of "section_offsets".
15914 (objfile_relocate1, objfile_relocate1): Change type of
15915 "new_offsets".
15916 (objfile_rebase1): Update.
15917 * mipsread.c (mipscoff_symfile_read): Update.
15918 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15919 parameter.
15920 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15921 (parse_external, psymtab_to_symtab_1): Update.
15922 * machoread.c (macho_symfile_offsets): Update.
15923 * ia64-tdep.c (ia64_find_unwind_table): Update.
15924 * hppa-tdep.c (read_unwind_info): Update.
15925 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15926 * dwarf2read.c (create_addrmap_from_index)
15927 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15928 (process_psymtab_comp_unit_reader, add_partial_symbol)
15929 (add_partial_subprogram, process_full_comp_unit)
15930 (read_file_scope, read_func_scope, read_lexical_block_scope)
15931 (read_call_site_scope, dwarf2_rnglists_process)
15932 (dwarf2_ranges_process, dwarf2_ranges_read)
15933 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15934 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15935 Update.
15936 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15937 Update.
15938 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15939 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15940 (process_one_symbol): Change type of "section_offsets".
15941 * ctfread.c (get_objfile_text_range): Update.
15942 * coffread.c (coff_symtab_read, enter_linenos)
15943 (process_coff_symbol): Update.
15944 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15945 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15946
15947 2020-01-08 Tom Tromey <tromey@adacore.com>
15948
15949 * dwarf2read.c (parse_macro_definition): Use std::string.
15950 (parse_macro_definition): Likewise.
15951
15952 2020-01-08 Tom Tromey <tromey@adacore.com>
15953
15954 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15955 (ATTR_ALLOC_CHUNK): Remove.
15956
15957 2020-01-08 Tom Tromey <tromey@adacore.com>
15958
15959 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15960
15961 2020-01-08 Tom Tromey <tromey@adacore.com>
15962
15963 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15964 (dwarf2_compute_name, open_dwo_file): Likewise.
15965 (process_enumeration_scope): Use std::vector.
15966 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15967 (partial_die_info::fixup, dwarf2_start_subfile)
15968 (guess_full_die_structure_name, dwarf2_name): Likewise.
15969 (determine_prefix): Update.
15970 (guess_full_die_structure_name): Make return type const.
15971 (partial_die_full_name): Return unique_xmalloc_ptr.
15972 (DW_FIELD_ALLOC_CHUNK): Remove.
15973
15974 2020-01-07 Tom Tromey <tromey@adacore.com>
15975
15976 PR build/24937:
15977 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15978
15979 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15980
15981 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15982
15983 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15984
15985 * stack.c (print_frame_info): Move disassemble_next_line code
15986 inside source_print block.
15987
15988 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15989
15990 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15991 gdb/signals.h, as we are now using native signal symbols.
15992
15993 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15994
15995 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15996 overflow by an early check of content vs threshold.
15997 * tui/tui-source.c (tui_source_window::line_is_displayed):
15998 Likewise.
15999
16000 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16001
16002 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16003
16004 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16005
16006 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16007 export table if no section contains it's RVA.
16008
16009 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16010
16011 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16012
16013 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16014
16015 * source.c (print_source_lines_base): Set last_line_listed.
16016
16017 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16018
16019 * tui/tui-disasm.c: Remove trailing spaces.
16020
16021 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16022 Pedro Alves <palves@redhat.com>
16023
16024 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16025 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16026 (windows_gdb_signal_to_target): New function, uses the above
16027 enumeration to convert GDB internal signal codes to equivalent
16028 Windows codes.
16029 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16030 * windows-nat.c: Include "gdb_wait.h".
16031 (get_windows_debug_event): Extract the fatal exception from the
16032 exit status and convert to the equivalent Posix signal number.
16033 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16034 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16035 * gdbsupport/gdb_wait.c: New file, implements
16036 windows_status_to_termsig.
16037 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16038 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16039
16040 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16041
16042 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16043 show_layout.
16044
16045 2020-01-05 Luis Machado <luis.machado@linaro.org>
16046
16047 * aarch64-linux-nat.c
16048 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16049 and bfd_mach_aarch64.
16050
16051 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16052
16053 * ui-file.c (stdio_file::can_emit_style_escape)
16054 (tee_file::can_emit_style_escape): Ensure style is used also on
16055 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16056 to gdb_stdout.
16057 * main.c (set_gdb_data_directory): Use file style to output the
16058 warning that the given pathname is not a directory.
16059 * top.c (show_history_filename, gdb_safe_append_history)
16060 (show_gdb_datadir): Use file style.
16061
16062 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16063
16064 * solib-target.c (struct lm_info_target):
16065 Change offsets to be a unique_xmalloc_ptr.
16066 (solib_target_relocate_section_addresses): Update.
16067
16068 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16069
16070 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16071
16072 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16073
16074 * MAINTAINERS (Write After Approval): Add myself.
16075
16076 2020-01-02 Luis Machado <luis.machado@linaro.org>
16077
16078 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16079 Cell BE architecture.
16080 * target.h (struct target_ops) <thread_architecture>: Likewise.
16081
16082 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16083
16084 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16085
16086 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16087
16088 * MAINTAINERS (Write After Approval): Add myself.
16089
16090 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16091
16092 * gdbarch.sh: Update copyright year range of generated files.
16093
16094 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16095
16096 Update copyright year range in all GDB files.
16097
16098 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16099
16100 * copyright.py: Convert to Python 3.
16101
16102 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16103
16104 * copyright.py: Adapt after move of gnulib directory from gdb
16105 directory to toplevel directory.
16106
16107 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16108
16109 * copyright.py (main): Exit if run from the wrong directory.
16110
16111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16112
16113 * top.c (print_gdb_version): Change copyright year to 2020.
16114
16115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16116
16117 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16118
16119 For older changes see ChangeLog-2019.
16120 \f
16121 Local Variables:
16122 mode: change-log
16123 left-margin: 8
16124 fill-column: 74
16125 version-control: never
16126 coding: utf-8
16127 End: