ada-lang.c: fix line too long in cast_from_gnat_encoded_fixed_point_type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
4 line too long.
5
6 2020-11-01 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
9 cast_from_fixed. Update all callers.
10 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
11 Update all callers.
12 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
13 Update all callers.
14 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
15 ada_scaling_factor.
16 * ada-typeprint.c: Replace call to ada_scaling_factor by call
17 to print_gnat_encoded_fixed_point_type.
18 * ada-valprint.c: Likewise.
19
20 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
23 (debug_prefixed_printf): Add check of debug_displaced flag.
24 * linux-nat.c (linux_nat_debug_printf): Add check of
25 debug_linux_nat flag.
26
27 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * infrun.c (infrun_debug_printf_1): Remove.
30 (displaced_debug_printf_1): Remove.
31 (stop_all_threads): Use debug_prefixed_printf.
32 * infrun.h (infrun_debug_printf_1): Remove.
33 (infrun_debug_printf): Use debug_prefixed_printf.
34 (displaced_debug_printf_1): Remove.
35 (displaced_debug_printf): Use debug_prefixed_printf.
36 * linux-nat.c (linux_nat_debug_printf_1): Remove.
37 (linux_nat_debug_printf): Use debug_prefixed_printf.
38
39 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * configure: Re-generate.
42 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
43 AC_LANG_PROGRAM.
44
45 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * configure: Re-generate.
48
49 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * configure: Re-generate.
52
53 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * configure: Re-generate.
56
57 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
58
59 * configure: Re-generate.
60
61 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * acinclude.m4: Modernize.
64 * configure: Re-generate.
65
66 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
67
68 * configure.ac: Modernize.
69 * configure: Re-generate.
70
71 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
74 * configure: Re-generate.
75 * configure.ac: Remove AM_PROG_CC_STDC.
76
77 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
80 AC_CANONICAL_SYSTEM.
81 * configure: Re-generate.
82
83 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
84
85 * infrun.h (displaced_debug_printf): New macro. Replace
86 displaced debug prints throughout to use it.
87 (displaced_debug_printf_1): New declaration.
88 (displaced_step_dump_bytes): Return string, remove ui_file
89 parameter, update all callers.
90 * infrun.c (displaced_debug_printf_1): New function.
91 (displaced_step_dump_bytes): Return string, remove ui_file
92 parameter
93
94 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
97
98 2020-10-30 Tom Tromey <tromey@adacore.com>
99
100 * Makefile.in (stamp-init): Depend on config.status.
101
102 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103
104 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
105
106 2020-10-30 Pedro Alves <pedro@palves.net>
107
108 * thread.c (lookup_selected_frame): Move ...
109 * frame.c (lookup_selected_frame): ... here.
110
111 2020-10-30 Pedro Alves <pedro@palves.net>
112
113 * blockframe.c (block_innermost_frame): Use get_selected_frame.
114 * frame.c
115 (scoped_restore_selected_frame::scoped_restore_selected_frame):
116 Use save_selected_frame. Save language as well.
117 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
118 Use restore_selected_frame, and restore language as well.
119 (selected_frame_id, selected_frame_level): New.
120 (selected_frame): Update comments.
121 (save_selected_frame, restore_selected_frame): New.
122 (get_selected_frame): Use lookup_selected_frame.
123 (get_selected_frame_if_set): Delete.
124 (select_frame): Record selected_frame_level and selected_frame_id.
125 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
126 fields.
127 (get_selected_frame): Make 'message' parameter optional.
128 (get_selected_frame_if_set): Delete declaration.
129 (select_frame): Update comments.
130 (save_selected_frame, restore_selected_frame)
131 (lookup_selected_frame): Declare.
132 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
133 * infrun.c (struct infcall_control_state) <selected_frame_level>:
134 New field.
135 (save_infcall_control_state): Use save_selected_frame.
136 (restore_selected_frame): Delete.
137 (restore_infcall_control_state): Use restore_selected_frame.
138 * stack.c (select_frame_command_core, frame_command_core): Use
139 get_selected_frame.
140 * thread.c (restore_selected_frame): Rename to ...
141 (lookup_selected_frame): ... this and make extern. Select the
142 current frame if the frame level is -1.
143 (scoped_restore_current_thread::restore): Also restore the
144 language.
145 (scoped_restore_current_thread::~scoped_restore_current_thread):
146 Don't try/catch.
147 (scoped_restore_current_thread::scoped_restore_current_thread):
148 Save the language as well. Use save_selected_frame.
149
150 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
153 documentation.
154 * gdbarch.h: Re-generate.
155
156 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
159 parameter.
160 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
161 Likewise.
162 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
163 Likewise.
164 * arch-utils.c (default_displaced_step_hw_singlestep):
165 Likewise.
166 * arch-utils.h (default_displaced_step_hw_singlestep):
167 Likewise.
168 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
169 Likewise.
170 * s390-tdep.c (s390_displaced_step_hw_singlestep):
171 Likewise.
172 * gdbarch.c: Re-generate.
173 * gdbarch.h: Re-generate.
174 * infrun.c (resume_1): Adjust.
175
176 2020-10-29 Tom Tromey <tom@tromey.com>
177
178 * progspace.c (program_space::~program_space): Don't call
179 exec_close.
180
181 2020-10-29 Tom Tromey <tom@tromey.com>
182
183 * exec.c (exec_target::close): Don't change current program
184 space.
185
186 2020-10-29 Tom Tromey <tom@tromey.com>
187
188 * symfile.c (add_symbol_file_command): Update.
189 * exec.c (program_space::add_target_sections): Rename.
190 * symfile-mem.c (symbol_file_add_from_memory): Update.
191 * progspace.h (struct program_space) <add_target_sections>:
192 Declare new overload.
193 * exec.h (add_target_sections_of_objfile): Don't declare.
194
195 2020-10-29 Tom Tromey <tom@tromey.com>
196
197 * solib.c (solib_map_sections): Update.
198 * exec.c (program_space::add_target_sections): Now a method.
199 (exec_file_attach): Update.
200 * exec.h (add_target_sections): Don't declare.
201 * progspace.h (struct program_space) <add_target_sections>:
202 Declare.
203
204 2020-10-29 Tom Tromey <tom@tromey.com>
205
206 * progspace.h (struct program_space) <remove_target_sections>:
207 Declare.
208 * exec.c (program_space::remove_target_sections): Now a method.
209 * exec.h (remove_target_sections): Don't declare.
210
211 2020-10-29 Tom Tromey <tom@tromey.com>
212
213 * inferior.c (delete_inferior): Update.
214 * progspace.c (program_space::empty): Rename from
215 program_space_empty_p. Return bool.
216 * progspace.h (struct program_space) <empty>: New method.
217 (program_space_empty_p): Don't declare.
218
219 2020-10-29 Tom Tromey <tom@tromey.com>
220
221 * progspace.c (program_space::~program_space): Don't call
222 clear_program_space_solib_cache.
223 (program_space::clear_solib_cache): Rename from
224 clear_solib_cache.
225 * solib.c (handle_solib_event): Update.
226 * progspace.h (struct program_space) <clear_solib_cache>: New
227 method.
228 (clear_program_space_solib_cache): Don't declare.
229
230 2020-10-29 Tom Tromey <tom@tromey.com>
231
232 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
233 * target.c (info_target_command): Update.
234 * symfile.c (syms_from_objfile_1, finish_new_objfile)
235 (symbol_file_clear, reread_symbols): Update.
236 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
237 * stabsread.c (scan_file_globals): Update.
238 * solib.c (update_solib_list): Update.
239 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
240 (svr4_fetch_objfile_link_map, enable_break)
241 (svr4_relocate_main_executable)
242 (svr4_iterate_over_objfiles_in_search_order): Update.
243 * solib-frv.c (lm_base, enable_break)
244 (frv_relocate_main_executable): Update.
245 (main_got, frv_fdpic_find_canonical_descriptor): Update.
246 (frv_fetch_objfile_link_map): Update.
247 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
248 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
249 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
250 * remote.c (remote_target::get_offsets): Update.
251 (remote_target::start_remote)
252 (extended_remote_target::post_attach): Update.
253 * objfiles.c (entry_point_address_query): Update.
254 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
255 * minsyms.c (get_symbol_leading_char): Update.
256 * frame.c (inside_main_func): Update.
257 * progspace.h (symfile_objfile): Remove macro.
258
259 2020-10-29 Tom Tromey <tom@tromey.com>
260
261 * exec.c (exec_file_attach): Update.
262 * progspace.c (program_space::exec_close): Update.
263 * progspace.h (struct program_space) <ebfd>: Now a
264 gdb_bfd_ref_ptr.
265 <set_exec_bfd>: Change argument type.
266 <exec_bfd>: Update.
267
268 2020-10-29 Tom Tromey <tom@tromey.com>
269
270 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
271 * symfile.c (reread_symbols): Update.
272 * symfile-mem.c (add_symbol_file_from_memory_command)
273 (add_vsyscall_page): Update.
274 * source-cache.c (source_cache::get_plain_source_lines): Update.
275 * solib-svr4.c (find_program_interpreter, elf_locate_base)
276 (svr4_current_sos_direct, svr4_exec_displacement)
277 (svr4_relocate_main_executable): Update.
278 (svr4_iterate_over_objfiles_in_search_order): Update.
279 * solib-frv.c (enable_break2, enable_break): Update.
280 * solib-dsbt.c (lm_base, enable_break): Update.
281 * solib-darwin.c (find_program_interpreter)
282 (darwin_solib_create_inferior_hook): Update.
283 * sol-thread.c (rw_common, ps_pdmodel): Update.
284 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
285 * remote.c (compare_sections_command)
286 (remote_target::trace_set_readonly_regions): Update.
287 * remote-sim.c (get_sim_inferior_data)
288 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
289 (gdbsim_target_open, gdbsim_target::files_info): Update.
290 * exec.h (exec_bfd): Remove macro.
291 * progspace.c (initialize_progspace): Update.
292 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
293 Update.
294 * nto-procfs.c (nto_procfs_target::post_attach)
295 (nto_procfs_target::create_inferior): Update.
296 * maint.c (maintenance_info_sections): Update.
297 * linux-thread-db.c (thread_db_target::get_thread_local_address):
298 Update.
299 * infcmd.c (post_create_inferior): Update.
300 * gcore.c (default_gcore_arch, default_gcore_target): Update.
301 (objfile_find_memory_regions): Update.
302 * exec.c (validate_exec_file, exec_file_attach)
303 (exec_read_partial_read_only, print_section_info): Update.
304 * corelow.c (core_target_open): Update.
305 * corefile.c (reopen_exec_file, validate_files): Update.
306 * arm-tdep.c (gdb_print_insn_arm): Update.
307 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
308 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
309 methods.
310
311 2020-10-29 Tom Tromey <tom@tromey.com>
312
313 * progspace.h (current_target_sections): Remove macro.
314 * solib-svr4.c (scan_dyntag): Update.
315 * solib-dsbt.c (scan_dyntag): Update.
316 * exec.c (exec_target::close): Update.
317 (add_target_sections, add_target_sections_of_objfile)
318 (remove_target_sections, exec_target::get_section_table)
319 (exec_target::files_info, set_section_command)
320 (exec_set_section_address, exec_target::has_memory)
321 (exec_target::has_memory): Update.
322
323 2020-10-29 Tom Tromey <tom@tromey.com>
324
325 * source-cache.c (source_cache::get_plain_source_lines): Use
326 current_program_space.
327 * corefile.c (reopen_exec_file): Use current_program_space.
328 * exec.c (exec_file_attach): Use current_program_space.
329 * exec.h (exec_bfd_mtime): Remove.
330
331 2020-10-29 Tom Tromey <tom@tromey.com>
332
333 * gcore.c (default_gcore_mach): Remove.
334 (create_gcore_bfd): Update.
335
336 2020-10-29 Tom Tromey <tom@tromey.com>
337
338 * progspace.c (program_space::exec_close): New method, from
339 exec_close in exec.c.
340 * exec.c (exec_close): Move to progspace.c.
341 (exec_target::close, exec_file_attach): Update.
342 * progspace.h (struct program_space) <exec_close>: Declare
343 method.
344
345 2020-10-29 Tom Tromey <tom@tromey.com>
346
347 * progspace.h (struct program_space) <exec_filename>: Rename from
348 pspace_exec_filename. Now a unique_xmalloc_ptr.
349 * inferior.c (print_selected_inferior): Update.
350 (print_inferior): Update.
351 * mi/mi-main.c (print_one_inferior): Update.
352 * exec.h (exec_filename): Remove macro.
353 * corefile.c (get_exec_file): Update.
354 * exec.c (exec_close): Update.
355 (exec_file_attach): Update.
356 * progspace.c (clone_program_space): Update.
357 (print_program_space): Update.
358
359 2020-10-29 Tom Tromey <tom@tromey.com>
360
361 * target-section.h (struct target_section): Add constructor.
362 * exec.c (build_section_table, add_target_sections_of_objfile):
363 Update.
364 * corelow.c (core_target::build_file_mappings): Update.
365
366 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367
368 PR gdb/19318
369 * inferior.c (detach_inferior_command): Restore the current thread.
370 (kill_inferior_command): Ditto.
371
372 2020-10-28 Tom de Vries <tdevries@suse.de>
373
374 PR symtab/26772
375 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
376 map, check it in the "best match" loop.
377
378 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * m32c-tdep.c: Remove unused includes.
381
382 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
383
384 * xtensa-tdep.c: Remove includes.
385
386 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * breakpoint.c (struct condition_command_opts): New struct.
389 (condition_command_option_defs): New static global.
390 (make_condition_command_options_def_group): New function.
391 (condition_completer): Update to consider the '-force' flag.
392 (condition_command): Use gdb::option for the '-force' flag.
393
394 2020-10-27 Tom de Vries <tdevries@suse.de>
395
396 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
397 symbols in section check.
398
399 2020-10-27 Tom de Vries <tdevries@suse.de>
400
401 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
402
403 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
404
405 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
406 * breakpoint.c: Update the help text of the 'condition' and 'break'
407 commands.
408 (set_breakpoint_condition): Take a new bool parameter
409 to control whether condition definition should be forced even when
410 the condition expression is invalid in all of the current locations.
411 (condition_command): Update the call to 'set_breakpoint_condition'.
412 (find_condition_and_thread): Take the "-force-condition" flag into
413 account.
414 * linespec.c (linespec_keywords): Add "-force-condition" as an
415 element.
416 (FORCE_KEYWORD_INDEX): New #define.
417 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
418 as a keyword.
419 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
420 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
421 * python/py-breakpoint.c (bppy_set_condition): Ditto.
422 * NEWS: Mention the changes to the 'break' and 'condition' commands.
423
424 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
425
426 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
427 * breakpoint.c (set_breakpoint_location_condition): New function.
428 (set_breakpoint_condition): Disable a breakpoint location if parsing
429 the condition string gives an error.
430 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
431 (build_target_condition_list): Ditto.
432 (build_target_command_list): Ditto.
433 (build_bpstat_chain): Ditto.
434 (print_one_breakpoint_location): Ditto.
435 (print_one_breakpoint): Ditto.
436 (breakpoint_1): Ditto.
437 (bp_location::bp_location): Ditto.
438 (locations_are_equal): Ditto.
439 (update_breakpoint_locations): Ditto.
440 (enable_disable_bp_num_loc): Ditto.
441 (init_breakpoint_sal): Use set_breakpoint_location_condition.
442 (find_condition_and_thread_for_sals): New static function.
443 (create_breakpoint): Call find_condition_and_thread_for_sals.
444 (location_to_sals): Call find_condition_and_thread_for_sals instead
445 of find_condition_and_thread.
446
447 2020-10-26 Tom de Vries <tdevries@suse.de>
448
449 * dwarf2/read.c (process_full_comp_unit): Call
450 dwarf2_find_base_address.
451
452 2020-10-26 Tom Tromey <tromey@adacore.com>
453
454 * gdbtypes.c (create_range_type): Revert previous patch. Add
455 comment.
456
457 2020-10-26 Pedro Alves <pedro@palves.net>
458
459 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
460 (my_waitpid): Use gdb::handle_eintr.
461
462 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * acinclude.m4: Update ptrace.m4 path.
465 * ptrace.m4: Moved to gdbsupport.
466
467 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
470 instead of target_gdbarch.
471
472 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * jit.c (jit_reader_load_command): Pass current inferior.
475 (jit_inferior_init): Change parameter type to inferior, use it.
476 (jit_inferior_created): Remove.
477 (jit_inferior_created_hook): Pass inferior parameter down.
478 (_initialize_jit): Use jit_inferior_created_hook instead of
479 jit_inferior_created.
480 * jit.h (jit_inferior_created_hook): Add inferior parameter.
481 * infrun.c (follow_exec): Pass inferior to
482 jit_inferior_created_hook.
483
484 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
485
486 * linux-thread-db.c (check_pid_namespace_match): Add inferior
487 parameter and use it.
488 (thread_db_inferior_created): Pass inferior argument.
489
490 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
491
492 * aix-thread.c (aix_thread_inferior_created): Add inferior
493 parameter.
494 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
495 * dummy-frame.c (cleanup_dummy_frames): Likewise.
496 * jit.c (jit_inferior_created): Likewise.
497 * linux-thread-db.c (thread_db_inferior_created): Likewise.
498 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
499 * observable.h (inferior_created): Likewise.
500 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
501 * symfile-mem.c (add_vsyscall_page): Likewise.
502 * infcmd.c (post_create_inferior): Pass inferior argument.
503
504 2020-10-24 Joel Brobecker <brobecker@adacore.com>
505
506 GDB 10.1 released.
507
508 2020-10-23 Joel Brobecker <brobecker@adacore.com>
509
510 * ada-typeprint.c (ada_print_type): Remove superfluous second call
511 to ada_check_typedef.
512
513 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * f-exp.y (f_parse): Rename to...
516 (f_language::parser): ...this.
517 * f-lang.c (f_get_encoding): Rename to...
518 (f_language::get_encoding): ...this.
519 (f_op_print_tab): Rename to...
520 (f_language::op_print_tab): ...this.
521 (exp_descriptor_f): Rename to...
522 (f_language::exp_descriptor_tab): ...this.
523 (class f_language): Moved to f-lang.h.
524 (f_language::language_arch_info): New function, moved out of class
525 declaration.
526 (f_language::search_name_hash): Likewise.
527 (f_language::lookup_symbol_nonlocal): Likewise.
528 (f_language::get_symbol_name_matcher_inner): Likewise.
529 * f-lang.h: Add 'valprint.h' include.
530 (class f_language): Moved here from f-lang.c.
531 * f-typeprint.c (f_type_print_args): Delete commented out
532 declaration.
533 (f_print_typedef): Rename to...
534 (f_language::print_typedef): ...this.
535 (f_print_type): Rename to...
536 (f_language::print_type): ...this.
537 (f_type_print_varspec_prefix): Delete declaration and rename to...
538 (f_language::f_type_print_varspec_prefix): ...this.
539 (f_type_print_varspec_suffix): Delete declaration and rename to...
540 (f_language::f_type_print_varspec_suffix): ...this.
541 (f_type_print_base): Delete declaration and rename to...
542 (f_language::f_type_print_base): ...this.
543 * f-valprint.c (f_value_print_inner): Rename to...
544 (f_language::value_print_inner): ...this.
545 * parse.c: Delete 'f-lang.h' include.
546
547 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * language.h (language_defn::print_type): Add variable names in
550 declaration, and update header comment.
551
552 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * ada-lang.c (ada_language::demangle): Rename to...
555 (ada_language::demangle_symbol): ...this.
556 * c-lang.c (cplus_language::demangle): Rename to...
557 (cplus_language::demangle_symbol): ...this.
558 * d-lang.c (d_language::demangle): Rename to...
559 (d_language::demangle_symbol): ...this.
560 * f-lang.c (f_language::demangle): Rename to...
561 (f_language::demangle_symbol): ...this.
562 * go-lang.c (go_language::demangle): Rename to...
563 (go_language::demangle_symbol): ...this.
564 * language.c (language_demangle): Update call to demangle_symbol.
565 (auto_or_unknown_language::demangle): Rename to...
566 (auto_or_unknown_language::demangle_symbol): ...this.
567 * language.h (language_defn::demangle): Rename to...
568 (language_defn::demangle_symbol): ...this.
569 * objc-lang.c (objc_language::demangle): Rename to...
570 (objc_language::demangle_symbol): ...this.
571 * rust-lang.c (rust_language::demangle): Rename to...
572 (rust_language::demangle_symbol): ...this.
573
574 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
577 (iterate_over_file_blocks): Replace use of macro with the macros
578 definition.
579
580 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
581
582 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
583 * valprint.c (maybe_print_array_index): Replace use of macro with
584 the macros definition.
585
586 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * ada-lang.c (ada_language::print_array_index): Call value_print
589 directly.
590 * language.c (language_defn::print_array_index): Likewise.
591 * language.h (LA_VALUE_PRINT): Delete.
592 * valprint.c (value_print): Call value_print on the
593 current_language directly.
594
595 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * language.h (LA_PRINT_TYPEDEF): Delete.
598 * typeprint.c (typedef_print): Call print_typedef directly on the
599 current_language object.
600
601 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * m2-exp.y (m2_parse): Rename to...
604 (m2_language::parser): ...this. Update function signature.
605 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
606 (m2_op_print): Rename to...
607 (m2_language::op_print_tab): ...this, and make const.
608 (exp_descriptor_modula2): Rename to...
609 (m2_language::exp_descriptor_modula2): ...this.
610 (class m2_language): Move to m2-lang.h.
611 (m2_language::language_arch_info): New function, moved out of
612 class declaration.
613 (m2_language::printchar): New function, body from m2_printchar.
614 (m2_language::printstr): New function, moved out of class
615 declaration.
616 (m2_language::emitchar): Likewise.
617 * m2-lang.h (m2_parse): Delete declaration.
618 (m2_print_typedef): Delete declaration.
619 (m2_value_print_inner): Delete declaration.
620 (class m2_language): Class declaration moved from m2-lang.c,
621 larger functions are left in m2-lang.c.
622 * m2-typeprint.c (m2_print_typedef): Rename to...
623 (m2_language::print_typedef): ...this, and update function
624 signature.
625 * m2-valprint.c (m2_value_print_inner): Rename to...
626 (m2_language::value_print_inner): ...this, replace use of
627 LA_PRINT_STRING with a direct call to printstr member function,
628 and update recursive call.
629
630 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
631
632 * language.c (default_is_string_type_p): Delete, implementation
633 moved into auto_or_unknown_language::is_string_type_p.
634 (unk_op_print_tab): Moved into
635 auto_or_unknown_language::opcode_print_table.
636 (unknown_language_arch_info): Delete, implementation moved into
637 auto_or_unknown_language::language_arch_info.
638 (class auto_or_unknown_language): New class, member functions
639 copied from unknown_language class, with some updates.
640 (class unknown_language): Most member functions moved into
641 auto_or_unknown_language class. Inherit from
642 auto_or_unknown_language class.
643 (class auto_language): Inherit from auto_or_unknown_language.
644 Delete most member functions.
645
646 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
647
648 * stabsread.c (read_member_functions): Remove gdb_assert.
649
650 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
651
652 * gdbtypes.c (init_complex_type): Check target type name.
653
654 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
655
656 * target-debug.h (target_debug_print_struct_target_ops_p):
657 Remove.
658 (target_debug_print_async_callback_ftype_p): Remove.
659 (target_debug_print_struct_trace_state_variable_p): Remove.
660 (target_debug_print_struct_traceframe_info_p): Remove.
661 (target_debug_print_VEC__btrace_block_s__pp): Remove.
662 (target_debug_print_enum_btrace_format): Remove.
663 (target_debug_print_enum_info_proc_what): Remove.
664 (target_debug_print_thread_info_pp): Remove.
665
666 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
667
668 * target.h (struct target_ops) <make_corefile_notes>:
669 Change return type to unique pointer.
670 * target.c (dummy_make_corefile_notes): Likewise.
671 * exec.c (struct exec_target) <make_corefile_notes>:
672 Likewise.
673 (exec_target::make_corefile_notes): Likewise.
674 * procfs.c (class procfs_target) <make_corefile_notes>:
675 Likewise.
676 (procfs_do_thread_registers): Adjust to unique pointer.
677 (struct procfs_corefile_thread_data): Add constructor.
678 <note_data>: Change type to unique pointer.
679 (procfs_corefile_thread_callback): Adjust to unique pointer.
680 (procfs_target::make_corefile_notes): Change return type to
681 unique pointer.
682 * target-delegates.c: Re-generate.
683 * gcore.c (write_gcore_file_1): Adjust.
684 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
685 New.
686
687 2020-10-22 Tom de Vries <tdevries@suse.de>
688
689 * block.c (find_block_in_blockvector): Make sure the returned block
690 contains pc.
691
692 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
693
694 PR gdb/26693
695 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
696 parameter.
697 (load_cu): Pass existing CU.
698 (process_imported_unit_die): Likewise.
699 (follow_die_offset): Likewise.
700
701 2020-10-22 Luis Machado <luis.machado@linaro.org>
702
703 * corelow.c (core_target::xfer_partial): Also check for an empty
704 m_core_unavailable_mappings vector.
705
706 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
709 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
710 * f-exp.y (arglist): Allow for a series of subranges.
711 (subrange): Add cases for subranges with strides.
712 * f-lang.c (value_f90_subarray): Catch use of array strides and
713 throw an error.
714 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
715
716 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * expprint.c (print_subexp_standard): Change enum range_type to
719 range_flag and rename variables to match.
720 (dump_subexp_body_standard): Likewise.
721 * expression.h (enum range_type): Rename to...
722 (enum range_flag): ...this.
723 (range_types): Rename to...
724 (range_flags): ...this.
725 * f-lang.c (value_f90_subarray): Change enum range_type to
726 range_flag and rename variables to match.
727 * parse.c (operator_length_standard): Likewise.
728 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
729 range_type to range_flag.
730 * rust-lang.c (rust_evaluate_funcall): Likewise.
731 (rust_range): Likewise.
732 (rust_compute_range): Likewise.
733 (rust_subscript): Likewise.
734
735 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * expprint.c (print_subexp_standard): Update to reflect changes to
738 enum range_type.
739 (dump_subexp_body_standard): Likewise.
740 * expression.h (enum range_type): Convert to a bit field enum, and
741 make the enum unsigned.
742 * f-exp.y (subrange): Update to reflect changes to enum
743 range_type.
744 * f-lang.c (value_f90_subarray): Likewise.
745 * parse.c (operator_length_standard): Likewise.
746 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
747 * rust-lang.c (rust_range): Likewise.
748 (rust_compute_range): Likewise.
749 (rust_subscript): Likewise.
750
751 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
752
753 * infrun.c (displaced_step_in_progress_thread): Fix comment.
754 (displaced_step_in_progress): Fix comment.
755
756 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
757
758 * gdbarch.sh (make_corefile_notes): Return unique pointer.
759 * gdbarch.c: Re-generate.
760 * gdbarch.h: Re-generate.
761 * gcore.c (write_gcore_file_1): Adjust.
762 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
763 constructor.
764 <note_data>: Change type to unique pointer.
765 <abort_iteration>: Change type to bool.
766 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
767 (fbsd_collect_thread_registers): Return void, adjust.
768 (struct fbsd_corefile_thread_data): Add construtor.
769 <note_data>: Change type to unique pointer.
770 (fbsd_corefile_thread): Adjust.
771 (fbsd_make_corefile_notes): Return unique pointer, adjust.
772 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
773 to unique pointer, adjust.
774 (struct linux_collect_regset_section_cb_data): Add constructor.
775 <note_data>: Change type to unique pointer.
776 <abort_iteration>: Change type to bool.
777 (linux_collect_thread_registers): Return void, adjust.
778 (struct linux_corefile_thread_data): Add constructor.
779 <note_data>: Change type to unique pointer.
780 (linux_corefile_thread): Adjust.
781 (linux_make_corefile_notes): Return unique pointer, adjust.
782
783 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
786 * gdbarch.c: Re-generate.
787 * gdbarch.h: Re-generate.
788 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
789 bool.
790 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
791 Likewise.
792 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
793 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
794 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
795 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
796
797 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * gdbarch.sh: Make generated predicates return bool.
800 * gdbarch.c: Re-generate.
801 * gdbarch.h: Re-generate.
802
803 2020-10-20 Tom Tromey <tom@tromey.com>
804
805 * varobj-iter.h (struct varobj_item): Remove typedef.
806
807 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * infrun.c (currently_stepping): Change int to bool
810 (maybe_software_singlestep): Likewise.
811 (show_stop_on_solib_events): Likewise.
812 (stepping_past_nonsteppable_watchpoint): Likewise.
813 (displaced_step_in_progress_any_inferior): Likewise.
814 (displaced_step_in_progress_thread): Likewise.
815 (keep_going_stepped_thread): Likewise.
816 (thread_still_needs_step_over): Likewise.
817 (start_step_over): Likewise.
818 (do_target_resume): Likewise.
819 (resume_1): Likewise.
820 (clear_proceed_status): Likewise.
821 (thread_still_needs_step_over_bp): Likewise.
822 (proceed): Likewise.
823 (switch_back_to_stepped_thread): Likewise.
824 (adjust_pc_after_break): Likewise.
825 (stepped_in_from): Likewise.
826 (handle_stop_requested): Likewise.
827 (handle_syscall_event): Likewise.
828 (handle_no_resumed): Likewise.
829 (handle_inferior_event): Likewise.
830 (finish_step_over): Likewise.
831 (handle_signal_stop): Likewise.
832 (process_event_stop_test): Likewise.
833
834 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * infrun.c (get_displaced_stepping_state): Fix comment.
837
838 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
839
840 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
841
842 2020-10-19 Tom Tromey <tromey@adacore.com>
843
844 PR tui/26719
845 * tui/tui-winsource.h (struct tui_source_window_base)
846 <refresh_window>: Rename from refresh_pad.
847 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
848 Rename from refresh_pad.
849 (tui_source_window_base::show_source_content)
850 (tui_source_window_base::do_scroll_horizontal): Update.
851
852 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
853
854 * thread.c (_initialize_thread): Fine-tune the help text of
855 'info threads'.
856
857 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
858
859 * frame.c: Remove the unused 'uinteger_option_def' type alias.
860
861 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
862
863 * breakpoint.c (handle_jit_event): Add an argument, change how
864 `jit_event_handler` is called.
865
866 2020-10-17 Tom Tromey <tom@tromey.com>
867
868 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
869 (scan_xcoff_symtab): Update.
870 * psymtab.h (class psymtab_storage) <global_psymbols,
871 static_psymbols, current_global_psymbols,
872 current_static_psymbols>: Remove.
873 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
874 (match_partial_symbol, lookup_partial_symbol): Update.
875 (print_partial_symbols): Change parameters.
876 (dump_psymtab, recursively_search_psymtabs)
877 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
878 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
879 (concat): Remove.
880 (end_psymtab_common): Simplify.
881 (append_psymbol_to_list): Change parameters.
882 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
883 (init_psymbol_list): Simplify.
884 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
885 * psympriv.h (struct partial_symtab) <empty>: New method.
886 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
887 Remove.
888 <global_psymbols, static_psymbols>: New members.
889 <add_psymbol>: New methods.
890 (add_psymbol_to_list): Don't declare.
891 (psymbol_placement): Move earlier.
892 * mdebugread.c (parse_partial_symbols): Update.
893 (handle_psymbol_enumerators): Change parameters.
894 (mdebug_expand_psymtab): Update.
895 * dwarf2/read.c (process_psymtab_comp_unit_reader)
896 (add_partial_symbol): Update.
897 * dwarf2/index-write.c (write_psymbols): Change parameters.
898 (write_one_signatured_type): Update.
899 (recursively_count_psymbols): Update.
900 (recursively_write_psymbols): Update.
901 (class debug_names) <recursively_write_psymbols>: Update.
902 <write_psymbols>: Change parameters.
903 <write_one_signatured_type>: Update.
904 * dbxread.c (read_dbx_symtab): Update.
905 (dbx_end_psymtab): Use partial_symtab::empty.
906 * ctfread.c (struct ctf_context) <pst>: New member.
907 (create_partial_symtab): Set it.
908 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
909 (scan_partial_symbols): Use the psymtab's context. Update.
910
911 2020-10-17 Tom Tromey <tom@tromey.com>
912
913 * valprint.c (generic_value_print): Remove comment.
914 * m2-valprint.c (m2_value_print_inner): Remove comment.
915 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
916 type.
917
918 2020-10-17 Tom de Vries <tdevries@suse.de>
919
920 PR symtab/26317
921 * source.c (select_source_symtab): Handling sal.symtab == NULL for
922 symbol main.
923
924 2020-10-14 Tom de Vries <tdevries@suse.de>
925
926 PR gdb/26733
927 * solib.c (solib_contains_address_p): Handle
928 'solib->sections == nullptr'.
929
930 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
931
932 PR gdb/26642
933 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
934 target can't do async.
935 * target.c (target_wait): Assert that we don't pass
936 TARGET_WNOHANG to a target that can't async.
937
938 2020-10-13 Kamil Rytarowski <n54@gmx.com>
939
940 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
941 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
942 * alpha-bsd-nat.c: Adjust include.
943 * alpha-bsd-tdep.h: Adjust comment.
944 * alpha-nbsd-tdep.c: Rename to ...
945 * alpha-netbsd-tdep.c: ... this, adjust include.
946 * amd64-nbsd-nat.c: Rename to ...
947 * amd64-netbsd-nat.c: ... this, adjust include.
948 * amd64-nbsd-tdep.c: Rename to ...
949 * amd64-netbsd-tdep.c: ... this, adjust include.
950 * amd64-tdep.h: Adjust include.
951 * arm-nbsd-nat.c: Rename to ...
952 * arm-netbsd-nat.c: ... this, adjust include.
953 * arm-nbsd-tdep.c: Rename to ...
954 * arm-netbsd-tdep.c: ... this, adjust include.
955 * arm-nbsd-tdep.h: Rename to ...
956 * arm-netbsd-tdep.h: ... this, adjust include.
957 * configure.nat: Adjust file lists.
958 * configure.tgt: Likewise.
959 * hppa-nbsd-nat.c: Rename to ...
960 * hppa-netbsd-nat.c: ... this, adjust include.
961 * hppa-nbsd-tdep.c: Rename to ...
962 * hppa-netbsd-tdep.c: ... this, adjust include.
963 * i386-nbsd-nat.c: Rename to ...
964 * i386-netbsd-nat.c: ... this, adjust include.
965 * i386-nbsd-tdep.c: Rename to ...
966 * i386-netbsd-tdep.c: ... this, adjust include.
967 * m68k-bsd-nat.c: Adjust include.
968 * mips-nbsd-nat.c: Rename to ...
969 * mips-netbsd-nat.c: ... this, adjust include.
970 * mips-nbsd-tdep.c: Rename to ...
971 * mips-netbsd-tdep.c: ... this, adjust include.
972 * mips-nbsd-tdep.h: Rename to ...
973 * mips-netbsd-tdep.h: ... this.
974 * nbsd-nat.c: Rename to ...
975 * netbsd-nat.c: ... this, adjust include.
976 * nbsd-nat.h: Rename to ...
977 * netbsd-nat.h: ... this, adjust include.
978 * nbsd-tdep.c: Rename to ...
979 * netbsd-tdep.c: ... this, adjust include.
980 * nbsd-tdep.h: Rename to ...
981 * netbsd-tdep.h: ... this.
982 * ppc-nbsd-nat.c: Rename to ...
983 * ppc-netbsd-nat.c: ... this, adjust include.
984 * ppc-nbsd-tdep.c: Rename to ...
985 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
986 * ppc-nbsd-tdep.h: Rename to ...
987 * ppc-netbsd-tdep.h: ... this.
988 * sh-nbsd-nat.c: Rename to ...
989 * sh-netbsd-nat.c: ... this, adjust include.
990 * sh-nbsd-tdep.c: Rename to ...
991 * sh-netbsd-tdep.c: ... this, adjust include.
992 * sparc-nbsd-nat.c: Rename to ...
993 * sparc-netbsd-nat.c: ... this.
994 * sparc-nbsd-tdep.c: Rename to ...
995 * sparc-netbsd-tdep.c: ... this, adjust include.
996 * sparc64-nbsd-nat.c: Rename to ...
997 * sparc64-netbsd-nat.c: ... this.
998 * sparc64-nbsd-tdep.c: Rename to ...
999 * sparc64-netbsd-tdep.c: ... this, adjust include.
1000 * sparc64-tdep.h: Adjust comment.
1001 * vax-bsd-nat.c: Adjust include.
1002 * vax-nbsd-tdep.c: Rename to ...
1003 * vax-netbsd-tdep.c: ... this, adjust include.
1004
1005 2020-10-12 Tom Tromey <tom@tromey.com>
1006
1007 * target.h (struct target_ops) <get_section_table>: Update.
1008 (target_get_section_table): Update.
1009 * target.c (target_get_section_table, target_section_by_addr)
1010 (memory_xfer_partial_1): Update.
1011 * target-section.h (target_section_table): Now an alias.
1012 * target-delegates.c: Rebuild.
1013 * target-debug.h (target_debug_print_target_section_table_p):
1014 Rename from target_debug_print_struct_target_section_table_p.
1015 * symfile.c (build_section_addr_info_from_section_table): Update.
1016 * solib.c (solib_map_sections, solib_contains_address_p): Update.
1017 * solib-svr4.c (scan_dyntag): Update.
1018 * solib-dsbt.c (scan_dyntag): Update.
1019 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1020 Update.
1021 * record-full.c (record_full_core_target::xfer_partial): Update.
1022 * progspace.h (struct program_space) <target_sections>: Update.
1023 * exec.h (print_section_info): Update.
1024 * exec.c (exec_target::close, build_section_table)
1025 (add_target_sections, add_target_sections_of_objfile)
1026 (remove_target_sections, exec_on_vfork)
1027 (section_table_available_memory)
1028 (section_table_xfer_memory_partial)
1029 (exec_target::get_section_table, exec_target::xfer_partial)
1030 (print_section_info, set_section_command)
1031 (exec_set_section_address, exec_target::has_memory): Update.
1032 * corelow.c (core_target::build_file_mappings)
1033 (core_target::xfer_partial, core_target::info_proc_mappings)
1034 (core_target::info_proc_mappings): Update.
1035 * bfd-target.c (class target_bfd): Update
1036
1037 2020-10-12 Tom Tromey <tom@tromey.com>
1038
1039 * progspace.c (program_space::~program_space): Don't call
1040 clear_section_table.
1041 * exec.h (clear_section_table): Don't declare.
1042 * exec.c (exec_target::close): Update.
1043 (clear_section_table): Remove.
1044
1045 2020-10-12 Tom Tromey <tom@tromey.com>
1046
1047 * exec.c (add_target_sections_of_objfile): Simplify.
1048
1049 2020-10-12 Tom Tromey <tom@tromey.com>
1050
1051 * solib.c (solib_map_sections): Update.
1052 * record-full.c (record_full_core_open_1): Update.
1053 * exec.h (build_section_table): Return a target_section_table.
1054 * exec.c (exec_file_attach): Update.
1055 (build_section_table): Return a target_section_table.
1056 * corelow.c (core_target::core_target): Update.
1057 * bfd-target.c (target_bfd::target_bfd): Update.
1058
1059 2020-10-12 Tom Tromey <tom@tromey.com>
1060
1061 * target.c (target_section_by_addr, memory_xfer_partial_1):
1062 Update.
1063 * target-section.h (struct target_section_table): Use
1064 std::vector.
1065 * symfile.h (build_section_addr_info_from_section_table): Take a
1066 target_section_table.
1067 * symfile.c (build_section_addr_info_from_section_table): Take a
1068 target_section_table.
1069 * solist.h (struct so_list) <sections>: Change type.
1070 <sections_end>: Remove.
1071 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1072 (solib_contains_address_p): Update.
1073 * solib-svr4.c (scan_dyntag): Update.
1074 * solib-dsbt.c (scan_dyntag): Update.
1075 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1076 Update.
1077 * record-full.c (record_full_core_start, record_full_core_end):
1078 Remove.
1079 (record_full_core_sections): New global.
1080 (record_full_core_open_1, record_full_core_target::xfer_partial):
1081 Update.
1082 * exec.h (build_section_table, section_table_xfer_memory_partial)
1083 (add_target_sections): Take a target_section_table.
1084 * exec.c (exec_file_attach, clear_section_table): Update.
1085 (resize_section_table): Remove.
1086 (build_section_table, add_target_sections): Take a
1087 target_section_table.
1088 (add_target_sections_of_objfile, remove_target_sections)
1089 (exec_on_vfork): Update.
1090 (section_table_available_memory): Take a target_section_table.
1091 (section_table_read_available_memory): Update.
1092 (section_table_xfer_memory_partial): Take a target_section_table.
1093 (print_section_info, set_section_command)
1094 (exec_set_section_address, exec_target::has_memory): Update.
1095 * corelow.c (class core_target) <m_core_section_table,
1096 m_core_file_mappings>: Remove braces.
1097 <~core_target>: Remove.
1098 (core_target::core_target): Update.
1099 (core_target::~core_target): Remove.
1100 (core_target::build_file_mappings)
1101 (core_target::xfer_memory_via_mappings)
1102 (core_target::xfer_partial, core_target::info_proc_mappings):
1103 Update.
1104 * bfd-target.c (target_bfd::xfer_partial): Update.
1105 (target_bfd::target_bfd): Update.
1106 (target_bfd::~target_bfd): Remove.
1107
1108 2020-10-12 Tom Tromey <tom@tromey.com>
1109
1110 * target.h (struct target_section, struct target_section_table):
1111 Move to target-section.h.
1112 * target-section.h: New file.
1113
1114 2020-10-12 Pedro Alves <pedro@palves.net>
1115
1116 PR exp/26602
1117 * valops.c (struct struct_field_searcher): New.
1118 (update_search_result): Rename to ...
1119 (struct_field_searcher::update_result): ... this. Simplify
1120 prototype. Record all found fields.
1121 (do_search_struct_field): Rename to ...
1122 (struct_field_searcher::search): ... this. Simplify prototype.
1123 Maintain stack of visited baseclass path. Call update_result for
1124 fields too. Keep searching fields in baseclasses instead of
1125 stopping at the first found field.
1126 (search_struct_field): Use struct_field_searcher. When looking
1127 for fields, report ambiguous access attempts.
1128
1129 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * frame.c (inside_main_func): Check full symbols as well as
1132 minimal symbols.
1133
1134 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1135
1136 * ada-lang.c (advance_wild_match): Rewrite the function's
1137 description. Change the type of target0, t0 and t1 to char.
1138
1139 2020-10-09 Tom Tromey <tromey@adacore.com>
1140
1141 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1142
1143 2020-10-09 Tom Tromey <tromey@adacore.com>
1144
1145 * ada-lang.h (ada_encode): Return std::string.
1146 * ada-lang.c (ada_encode_1): Return std::string.
1147 (ada_encode): Likewise.
1148 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1149 Update.
1150 * ada-exp.y (block_lookup, write_var_or_type): Update.
1151
1152 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1153
1154 PR exp/26714
1155 * printcmd.c (print_formatted): Handle void results as
1156 unformatted prints.
1157
1158 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * arch/aarch32.c (aarch32_create_target_description): Release the
1161 target_desc_up as late as possible.
1162 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1163 * arch/amd64.c (amd64_create_target_description): Likewise.
1164 * arch/arc.c (arc_create_target_description): Return a
1165 target_desc_up, don't release it.
1166 * arch/arc.h (arc_create_target_description): Update declaration.
1167 (arc_lookup_target_description): Move target_desc_up into the
1168 cache, and return a borrowed pointer.
1169 * arch/arm.c (arm_create_target_description): Release the
1170 target_desc_up as late as possible.
1171 * arch/i386.c (i386_create_target_description): Likewise.
1172 * arch/riscv.h (riscv_create_target_description): Update
1173 declaration to match definition.
1174 * arch/tic6x.c (tic6x_create_target_description): Release the
1175 target_desc_up as late as possible.
1176
1177 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1180 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1181
1182 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1183
1184 * source.c (directory_command): Notify observers that "directories"
1185 parameter has changed.
1186
1187 2020-10-08 Tom Tromey <tom@tromey.com>
1188
1189 * cli/cli-cmds.c (print_disassembly): Style function name and
1190 addresses. Add _() wrappers.
1191
1192 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1193
1194 * NEWS: Mention ARC support in GDBserver.
1195
1196 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1197
1198 * arch/aarch32.c (aarch32_create_target_description): Release
1199 unique_ptr returned from allocate_target_description.
1200 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1201 * arch/amd64.c (amd64_create_target_description): Likewise.
1202 * arch/arc.c (arc_create_target_description): Likewise.
1203 * arch/arm.c (arm_create_target_description): Likewise.
1204 * arch/i386.c (i386_create_target_description): Likewise.
1205 * arch/riscv.c (riscv_create_target_description): Update return
1206 type. Handle allocate_target_description returning a unique_ptr.
1207 (riscv_lookup_target_description): Update to handle unique_ptr.
1208 * arch/tic6x.c (tic6x_create_target_description): Release
1209 unique_ptr returned from allocate_target_description.
1210 * features/microblaze-with-stack-protect.c: Regenerate.
1211 * features/microblaze.c: Regenerate.
1212 * features/mips-dsp-linux.c: Regenerate.
1213 * features/mips-linux.c: Regenerate.
1214 * features/mips64-dsp-linux.c: Regenerate.
1215 * features/mips64-linux.c: Regenerate.
1216 * features/nds32.c: Regenerate.
1217 * features/nios2.c: Regenerate.
1218 * features/or1k.c: Regenerate.
1219 * features/rs6000/powerpc-32.c: Regenerate.
1220 * features/rs6000/powerpc-32l.c: Regenerate.
1221 * features/rs6000/powerpc-403.c: Regenerate.
1222 * features/rs6000/powerpc-403gc.c: Regenerate.
1223 * features/rs6000/powerpc-405.c: Regenerate.
1224 * features/rs6000/powerpc-505.c: Regenerate.
1225 * features/rs6000/powerpc-601.c: Regenerate.
1226 * features/rs6000/powerpc-602.c: Regenerate.
1227 * features/rs6000/powerpc-603.c: Regenerate.
1228 * features/rs6000/powerpc-604.c: Regenerate.
1229 * features/rs6000/powerpc-64.c: Regenerate.
1230 * features/rs6000/powerpc-64l.c: Regenerate.
1231 * features/rs6000/powerpc-7400.c: Regenerate.
1232 * features/rs6000/powerpc-750.c: Regenerate.
1233 * features/rs6000/powerpc-860.c: Regenerate.
1234 * features/rs6000/powerpc-altivec32.c: Regenerate.
1235 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1236 * features/rs6000/powerpc-altivec64.c: Regenerate.
1237 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1238 * features/rs6000/powerpc-e500.c: Regenerate.
1239 * features/rs6000/powerpc-e500l.c: Regenerate.
1240 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1241 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1242 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1243 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1244 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1245 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1246 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1247 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1248 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1249 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1250 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1251 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1252 * features/rs6000/powerpc-vsx32.c: Regenerate.
1253 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1254 * features/rs6000/powerpc-vsx64.c: Regenerate.
1255 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1256 * features/rs6000/rs6000.c: Regenerate.
1257 * features/rx.c: Regenerate.
1258 * features/s390-gs-linux64.c: Regenerate.
1259 * features/s390-linux32.c: Regenerate.
1260 * features/s390-linux32v1.c: Regenerate.
1261 * features/s390-linux32v2.c: Regenerate.
1262 * features/s390-linux64.c: Regenerate.
1263 * features/s390-linux64v1.c: Regenerate.
1264 * features/s390-linux64v2.c: Regenerate.
1265 * features/s390-te-linux64.c: Regenerate.
1266 * features/s390-tevx-linux64.c: Regenerate.
1267 * features/s390-vx-linux64.c: Regenerate.
1268 * features/s390x-gs-linux64.c: Regenerate.
1269 * features/s390x-linux64.c: Regenerate.
1270 * features/s390x-linux64v1.c: Regenerate.
1271 * features/s390x-linux64v2.c: Regenerate.
1272 * features/s390x-te-linux64.c: Regenerate.
1273 * features/s390x-tevx-linux64.c: Regenerate.
1274 * features/s390x-vx-linux64.c: Regenerate.
1275 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1276 from allocate_target_description.
1277 * target-descriptions.c (allocate_target_description): Update
1278 return type.
1279 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1280 allocate_target_description.
1281
1282 2020-10-07 Tom Tromey <tromey@adacore.com>
1283
1284 * unittests/search-memory-selftests.c: New file.
1285 * Makefile.in (SELFTESTS_SRCS): Add
1286 unittests/search-memory-selftests.c.
1287
1288 2020-10-07 Tom Tromey <tromey@adacore.com>
1289
1290 PR gdb/16930:
1291 * findcmd.c (_initialize_mem_search): Mention that the range is
1292 inclusive.
1293
1294 2020-10-07 Tom Tromey <tromey@adacore.com>
1295
1296 * target.h (simple_search_memory): Don't declare.
1297 * target.c (simple_search_memory): Move to gdbsupport.
1298 (default_search_memory): Update.
1299 * remote.c (remote_target::search_memory): Update.
1300
1301 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * Makefile.in (COMPILE): Add CXXFLAGS.
1304 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1305 (check-headers): Add CXXFLAGS.
1306
1307 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1308
1309 * arc-linux-tdep.h: New file.
1310 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1311 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1312 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1313 arc_linux_gregset, arc_linux_v2_regset,
1314 arc_linux_iterate_over_regset_sections,
1315 arc_linux_core_read_description): Implement.
1316 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1317 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1318 (arc_gdbarch_features_create): Add.
1319 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1320
1321 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1322
1323 * arch/arc.h: Rename "arc_gdbarch_features" to
1324 "arc_arch_features".
1325 * arc-tdep.h: Likewise.
1326 * arc-tdep.c: Likewise.
1327
1328 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1329
1330 * infcmd.c (attach_command): Remove the redundant call to
1331 `clear_proceed_status`.
1332
1333 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1334
1335 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1336
1337 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1338
1339 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1340 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1341 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1342
1343 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1346 (_initialize_break_catch_sig): Don't allocate array.
1347
1348 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * symtab.c (find_pc_line): Return unmapped addresses when the
1351 requested address is also unmapped.
1352
1353 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1354
1355 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1356 tui/tui-out.h.
1357
1358 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1361 type::is_vector instead of TYPE_VECTOR.
1362
1363 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * auto-load.c (auto_load_objfile_script_1): Don't use
1366 debugfile_holder as temporary variable when stripping drive
1367 letter.
1368
1369 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1370
1371 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1372 Add TYPE_CODE_COMPLEX.
1373 (amd64_windows_return_value): Fix types returned via XMM0.
1374
1375 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1376
1377 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1378 AArch64/ARM maintainers.
1379
1380 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * NEWS: Mention set/show debug event-loop.
1383
1384 2020-10-02 Tom Tromey <tromey@adacore.com>
1385
1386 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1387 REG_EXTENDED.
1388
1389 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1392 * procfs.c (procfs_inferior_created): Remove.
1393 (_initialize_procfs): Don't register procfs_inferior_created.
1394
1395 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1396
1397 * async-event.c (invoke_async_signal_handlers): Add debug
1398 print.
1399 (check_async_event_handlers): Likewise.
1400 * event-top.c (show_debug_event_loop): New function.
1401 (_initialize_event_top): Register "set debug event-loop"
1402 setting.
1403
1404 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1407 * debug.h: Remove.
1408 * infrun.c: Include gdbsupport/common-debug.h.
1409 * linux-nat.c: Likewise.
1410
1411 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1412
1413 * async-event.h (create_async_signal_handler): Add name
1414 parameter.
1415 (create_async_event_handler): Likewise.
1416 * async-event.c (struct async_signal_handler) <name>: New field.
1417 (struct async_event_handler) <name>: New field.
1418 (create_async_signal_handler): Assign name.
1419 (create_async_event_handler): Assign name.
1420 * event-top.c (async_init_signals): Pass name when creating
1421 handler.
1422 * infrun.c (_initialize_infrun): Likewise.
1423 * record-btrace.c (record_btrace_push_target): Likewise.
1424 * record-full.c (record_full_open): Likewise.
1425 * remote-notif.c (remote_notif_state_allocate): Likewise.
1426 * remote.c (remote_target::open_1): Likewise.
1427 * tui/tui-win.c (tui_initialize_win): Likewise.
1428
1429 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * async-event.c (initialize_async_signal_handlers): Pass name to
1432 add_file_handler
1433 * event-top.c (ui_register_input_event_handler): Likewise.
1434 * linux-nat.c (linux_nat_target::async): Likewise.
1435 * run-on-main-thread.c (_initialize_run_on_main_thread):
1436 Likewise
1437 * ser-base.c (reschedule): Likewise.
1438 (ser_base_async): Likewise.
1439 * tui/tui-io.c: Likewise.
1440 * top.h (struct ui) <num>: New field.
1441 * top.c (highest_ui_num): New variable.
1442 (ui::ui): Initialize num.
1443
1444 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1445
1446 * observable.h <inferior_created>: Remove parameters. Update all
1447 listeners.
1448 * inferior.h (post_create_inferior): Remove target parameter.
1449 Update all callers.
1450
1451 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1452
1453 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1454 and DW_MACRO_undef_strx.
1455 (dwarf_decode_macros): Likewise
1456 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1457 which is the value of DW_AT_str_offsets_base.
1458 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1459 str_offsets_base.
1460
1461 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1462
1463 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1464
1465 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1466
1467 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1468 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1469
1470 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1471
1472 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1473
1474 2020-09-30 Tom de Vries <tdevries@suse.de>
1475
1476 PR symtab/26683
1477 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1478
1479 2020-09-30 Tom Tromey <tromey@adacore.com>
1480
1481 * dwarf2/read.c (handle_variant): Use constant_value.
1482
1483 2020-09-29 Tom Tromey <tom@tromey.com>
1484
1485 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1486 (read_file_scope, dwarf2_get_pc_bounds)
1487 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1488 (read_structure_type, handle_struct_member_die)
1489 (read_enumeration_type, read_array_type, read_set_type)
1490 (read_tag_pointer_type, read_tag_reference_type)
1491 (read_subroutine_type, read_base_type, read_subrange_type)
1492 (read_full_die_1, partial_die_info::read)
1493 (partial_die_info::read, by, new_symbol)
1494 (dwarf2_const_value_data, dwarf2_const_value_attr)
1495 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1496 (prepare_one_comp_unit): Update.
1497 * dwarf2/attribute.h (DW_UNSND): Remove.
1498
1499 2020-09-29 Tom Tromey <tom@tromey.com>
1500
1501 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1502 (read_subroutine_type, partial_die_info::read)
1503 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1504 (dwarf2_add_member_fn): Update.
1505 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1506 * dwarf2/attribute.c (attribute::as_boolean): New method.
1507
1508 2020-09-29 Tom Tromey <tom@tromey.com>
1509
1510 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1511 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1512 method.
1513 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1514
1515 2020-09-29 Tom Tromey <tom@tromey.com>
1516
1517 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1518 the attribute's form.
1519
1520 2020-09-29 Tom Tromey <tom@tromey.com>
1521
1522 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1523 (dwarf2_add_member_fn): Update.
1524 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1525 * dwarf2/attribute.c (attribute::defaulted): New method, from
1526 is_valid_DW_AT_defaulted.
1527
1528 2020-09-29 Tom Tromey <tom@tromey.com>
1529
1530 * dwarf2/read.c (dw2_get_file_names_reader)
1531 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1532 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1533 (dwarf2_symbol_mark_computed): Use as_unsigned.
1534 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1535 method.
1536 <form_is_section_offset>: Update comment.
1537
1538 2020-09-29 Tom Tromey <tom@tromey.com>
1539
1540 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1541 dwarf2_default_access_attribute. Look up attribute.
1542 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1543 Update.
1544
1545 2020-09-29 Tom Tromey <tom@tromey.com>
1546
1547 * dwarf2/read.c (skip_one_die): Update.
1548 (read_full_die_1): Change how reprocessing is done.
1549 (partial_die_info::read): Update.
1550 (read_attribute_value): Remove need_reprocess parameter.
1551 (read_attribute): Likewise.
1552 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1553 New method.
1554
1555 2020-09-29 Tom Tromey <tom@tromey.com>
1556
1557 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1558 (dwarf2_const_value_attr, dump_die_shallow)
1559 (dwarf2_fetch_constant_bytes): Update.
1560 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1561 comment.
1562 <set_address>: New method.
1563 (DW_ADDR): Remove.
1564 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1565 (attribute::as_string, attribute::as_address): Add assert.
1566
1567 2020-09-29 Tom Tromey <tom@tromey.com>
1568
1569 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1570 (read_attribute_reprocess, read_attribute_value): Update.
1571 (read_attribute): Clear requires_reprocessing.
1572 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1573 form_requires_reprocessing>: New methods.
1574 <string_init>: Clear requires_reprocessing.
1575 <set_unsigned_reprocess>: New method.
1576 <name>: Shrink by one bit.
1577 <requires_reprocessing>: New member.
1578 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1579 method.
1580
1581 2020-09-29 Tom Tromey <tom@tromey.com>
1582
1583 * dwarf2/read.c (read_attribute_value): Update.
1584 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1585 set_unsigned>: New methods.
1586 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1587
1588 2020-09-29 Tom Tromey <tom@tromey.com>
1589
1590 * dwarf2/read.c (get_alignment, read_array_order)
1591 (read_attribute_value, dwarf2_const_value_attr)
1592 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1593 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1594 New methods.
1595 (DW_SND): Remove.
1596
1597 2020-09-29 Tom Tromey <tom@tromey.com>
1598
1599 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1600 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1601 Update.
1602 * dwarf2/attribute.h (struct attribute) <as_signature,
1603 set_signature>: New methods.
1604 (DW_SIGNATURE): Remove.
1605
1606 2020-09-29 Tom Tromey <tom@tromey.com>
1607
1608 * dwarf2/read.c (read_call_site_scope)
1609 (handle_data_member_location, dwarf2_add_member_fn)
1610 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1611 (partial_die_info::read, read_attribute_value)
1612 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1613 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1614 (dwarf2_symbol_mark_computed): Update.
1615 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1616 methods.
1617 (DW_BLOCK): Remove.
1618 * dwarf2/attribute.c (attribute::form_is_block): Add
1619 DW_FORM_data16.
1620
1621 2020-09-29 Tom Tromey <tom@tromey.com>
1622
1623 * dwarf2/read.c (read_cutu_die_from_dwo)
1624 (read_attribute_reprocess, read_attribute_value, read_attribute)
1625 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1626 (dwarf2_fetch_constant_bytes): Update.
1627 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1628 <set_string_noncanonical, set_string_canonical>: New methods.
1629 <string_is_canonical>: Update comment.
1630 <canonical_string_p>: Add assert.
1631 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1632 * dwarf2/attribute.c (attribute::form_is_string): New method.
1633 (attribute::string): Use it.
1634
1635 2020-09-29 Tom Tromey <tom@tromey.com>
1636
1637 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1638 (dump_die_shallow): Use canonical_string_p.
1639 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1640 method.
1641
1642 2020-09-29 Tom Tromey <tom@tromey.com>
1643
1644 * dwarf2/read.c (partial_die_info::read)
1645 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1646 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1647 attribute::as_string.
1648
1649 2020-09-29 Tom Tromey <tom@tromey.com>
1650
1651 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1652 DW_ADDR.
1653 (attribute::string): Don't use DW_STRING.
1654 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1655 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1656
1657 2020-09-29 Tom Tromey <tom@tromey.com>
1658
1659 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1660 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1661 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1662 * dwarf2/attribute.h (struct attribute): Rename methods.
1663 * dwarf2/attribute.c (attribute::as_address): Rename from
1664 value_as_address.
1665 (attribute::as_string): Rename from value_as_string.
1666
1667 2020-09-29 Tom Tromey <tom@tromey.com>
1668
1669 * dwarf2/read.c (partial_die_info::read) <case
1670 DW_AT_linkage_name>: Use value_as_string.
1671 (dwarf2_string_attr): Use value_as_string.
1672 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1673 method.
1674 * dwarf2/attribute.c (attribute::value_as_string): New method.
1675
1676 2020-09-29 Pedro Alves <pedro@palves.net>
1677
1678 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1679 defined before using '#pragma GCC diagnostic' instead of checking
1680 __clang__.
1681
1682 2020-09-28 Tom Tromey <tom@tromey.com>
1683
1684 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1685 (handle_signal_stop): Update.
1686 * procfs.c (procfs_target::insert_watchpoint): Update.
1687 * target.h (target_have_steppable_watchpoint): Now a function.
1688
1689 2020-09-28 Tom Tromey <tom@tromey.com>
1690
1691 * infrun.c (set_schedlock_func): Update.
1692 * target.h (target_can_lock_scheduler): Now a function.
1693
1694 2020-09-28 Tom Tromey <tom@tromey.com>
1695
1696 * inferior.h (class inferior) <has_execution>: Update.
1697 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1698 * valops.c (find_function_in_inferior)
1699 (value_allocate_space_in_inferior): Update.
1700 * top.c (kill_or_detach): Update.
1701 * target.c (target_preopen, set_target_permissions): Update.
1702 (target_has_execution_current): Remove.
1703 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1704 Update.
1705 * solib.c (update_solib_list, reload_shared_libraries): Update.
1706 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1707 * solib-dsbt.c (enable_break): Update.
1708 * score-tdep.c (score7_fetch_inst): Update.
1709 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1710 Update.
1711 * remote.c (remote_target::start_remote)
1712 (remote_target::remote_check_symbols, remote_target::open_1)
1713 (remote_target::remote_detach_1, remote_target::verify_memory)
1714 (remote_target::xfer_partial, remote_target::read_description)
1715 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1716 * record-full.c (record_full_open_1): Update.
1717 * record-btrace.c (record_btrace_target_open): Update.
1718 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1719 (value_nsstring): Update.
1720 * linux-thread-db.c (add_thread_db_info)
1721 (thread_db_find_new_threads_silently, check_thread_db_callback)
1722 (try_thread_db_load_1, record_thread): Update.
1723 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1724 Update.
1725 * linux-fork.c (checkpoint_command): Update.
1726 * infrun.c (set_non_stop, set_observer_mode)
1727 (check_multi_target_resumption, for_each_just_stopped_thread)
1728 (maybe_remove_breakpoints, normal_stop)
1729 (class infcall_suspend_state): Update.
1730 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1731 (info_program_command, attach_command): Update.
1732 * infcall.c (call_function_by_hand_dummy): Update.
1733 * inf-loop.c (inferior_event_handler): Update.
1734 * gcore.c (gcore_command, derive_heap_segment): Update.
1735 * exec.c (exec_file_command): Update.
1736 * eval.c (evaluate_subexp): Update.
1737 * compile/compile.c (compile_to_object): Update.
1738 * cli/cli-dump.c (restore_command): Update.
1739 * breakpoint.c (update_watchpoint)
1740 (update_inserted_breakpoint_locations)
1741 (insert_breakpoint_locations, get_bpstat_thread): Update.
1742 * target.h (target_has_execution): Remove macro.
1743 (target_has_execution_current): Don't declare.
1744 (target_has_execution): Rename from target_has_execution_1. Add
1745 argument default.
1746
1747 2020-09-28 Tom Tromey <tom@tromey.com>
1748
1749 * mi/mi-main.c (exec_reverse_continue)
1750 (mi_cmd_list_target_features): Update.
1751 * infrun.c (set_exec_direction_func): Update.
1752 * target.c (default_execution_direction): Update.
1753 * reverse.c (exec_reverse_once): Update.
1754 * target.h (target_can_execute_reverse): Now a function.
1755
1756 2020-09-28 Tom Tromey <tom@tromey.com>
1757
1758 * tui/tui-regs.c (tui_get_register)
1759 (tui_data_window::show_registers): Update.
1760 * thread.c (scoped_restore_current_thread::restore)
1761 (scoped_restore_current_thread::scoped_restore_current_thread):
1762 Update.
1763 * regcache-dump.c (regcache_print): Update.
1764 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1765 Update.
1766 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1767 * mep-tdep.c (current_me_module, current_options): Update.
1768 * linux-thread-db.c (thread_db_load): Update.
1769 * infcmd.c (registers_info, info_vector_command)
1770 (info_float_command): Update.
1771 * ia64-tdep.c (ia64_frame_prev_register)
1772 (ia64_sigtramp_frame_prev_register): Update.
1773 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1774 * gcore.c (derive_stack_segment): Update.
1775 * frame.c (get_current_frame, has_stack_frames): Update.
1776 * findvar.c (language_defn::read_var_value): Update.
1777 * arm-tdep.c (arm_pc_is_thumb): Update.
1778 * target.c (target_has_registers): Rename from
1779 target_has_registers_1.
1780 * target.h (target_has_registers): Remove macro.
1781 (target_has_registers): Rename from target_has_registers_1.
1782
1783 2020-09-28 Tom Tromey <tom@tromey.com>
1784
1785 * windows-tdep.c (tlb_make_value): Update.
1786 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1787 * thread.c (scoped_restore_current_thread::restore)
1788 (scoped_restore_current_thread::scoped_restore_current_thread)
1789 (thread_command): Update.
1790 * stack.c (backtrace_command_1, frame_apply_level_command)
1791 (frame_apply_all_command, frame_apply_command): Update.
1792 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1793 Update.
1794 * gcore.c (derive_stack_segment): Update.
1795 * frame.c (get_current_frame, has_stack_frames): Update.
1796 * auxv.c (info_auxv_command): Update.
1797 * ada-tasks.c (ada_build_task_list): Update.
1798 * target.c (target_has_stack): Rename from target_has_stack_1.
1799 * target.h (target_has_stack): Remove macro.
1800 (target_has_stack): Rename from target_has_stack_1.
1801
1802 2020-09-28 Tom Tromey <tom@tromey.com>
1803
1804 * target.c (target_has_memory): Rename from target_has_memory_1.
1805 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1806 * thread.c (scoped_restore_current_thread::restore)
1807 (scoped_restore_current_thread::scoped_restore_current_thread):
1808 Update.
1809 * frame.c (get_current_frame, has_stack_frames): Update.
1810 * target.h (target_has_memory): Remove macro.
1811 (target_has_memory): Rename from target_has_memory_1.
1812
1813 2020-09-28 Tom Tromey <tom@tromey.com>
1814
1815 * target.c (target_has_all_memory_1): Remove.
1816 * target.h (target_has_all_memory): Remove define.
1817 (target_has_all_memory_1): Don't declare.
1818
1819 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * ser-base.c: Adjust comments formatting.
1822
1823 2020-09-27 Tom Tromey <tom@tromey.com>
1824
1825 PR tui/25342:
1826 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1827
1828 2020-09-27 Tom Tromey <tom@tromey.com>
1829
1830 PR tui/25342:
1831 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1832
1833 2020-09-27 Tom Tromey <tom@tromey.com>
1834
1835 * unittests/tui-selftests.c: Update.
1836 * tui/tui-winsource.h (struct tui_source_window_base)
1837 <extra_margin, show_line_number, refresh_pad>: New methods.
1838 <m_max_length, m_pad>: New members.
1839 (tui_copy_source_line): Update.
1840 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1841 first_col, line_width, ndigits parameters. Add length.
1842 (tui_source_window_base::show_source_line): Write to pad. Line
1843 number now 0-based.
1844 (tui_source_window_base::refresh_pad): New method.
1845 (tui_source_window_base::show_source_content): Write to pad. Call
1846 refresh_pad.
1847 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1848 not refill.
1849 (tui_source_window_base::update_exec_info): Call
1850 show_line_number.
1851 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1852 method.
1853 <m_digits>: New member.
1854 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1855 and m_max_length.
1856 (tui_source_window::show_line_number): New method.
1857 * tui/tui-io.h (tui_puts): Fix comment.
1858 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1859 m_max_length.
1860
1861 2020-09-27 Tom Tromey <tom@tromey.com>
1862
1863 * tui/tui-winsource.c
1864 (tui_source_window_base::set_is_exec_point_at): Don't call
1865 show_source_line.
1866
1867 2020-09-27 Tom Tromey <tom@tromey.com>
1868
1869 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1870 method.
1871 <erase>: Update.
1872 <cursor_x, cursor_y>: Remove.
1873 <m_inner_window>: New member.
1874 (tui_py_window::rerender): Create inner window.
1875 (tui_py_window::output): Write to inner window.
1876
1877 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1878
1879 PR python/26586
1880 * cli/cli-script.c (execute_control_commands): don't set
1881 instream to nullptr here as this breaks the from_tty argument
1882 to gdb.execute in Python.
1883 (execute_user_command): set instream to nullptr here instead.
1884
1885 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * infrun.h (infrun_debug_printf): Fix formatting.
1888 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1889
1890 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1891
1892 * compile/compile-object-load.h (struct munmap_list): Add
1893 explicitly-defined move constructor.
1894
1895 2020-09-24 Tom Tromey <tromey@adacore.com>
1896
1897 PR tui/26638:
1898 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1899 method.
1900 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1901 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1902 (tui_prev_win): Rewrite.
1903
1904 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1905
1906 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1907 in WOW64 processes as SIGINT.
1908 * nat/windows-nat.h: Make wow64_process a shared variable.
1909 * windows-nat.c: Remove static wow64_process variable.
1910
1911 2020-09-23 Tom Tromey <tom@tromey.com>
1912
1913 PR symtab/25470:
1914 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1915 offset and bit size.
1916 * printcmd.c (print_scalar_formatted): Handle zero-length
1917 integer.
1918 (print_scalar_formatted): Use bit_size_differs_p.
1919 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1920 constant.
1921 (union type_specific): <int_stuff>: New member.
1922 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1923 methods.
1924 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1925 TYPE_SPECIFIC_FIELD.
1926 (recursive_dump_type, copy_type_recursive): Update.
1927 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1928 DW_AT_data_bit_offset.
1929
1930 2020-09-23 Tom Tromey <tom@tromey.com>
1931
1932 * utils.h (class gdb_argv): Add move operators.
1933 <append>: New methods.
1934 * compile/compile.c (build_argc_argv): Remove.
1935 (compile_args_argc): Remove.
1936 (compile_args_argv): Change type.
1937 (set_compile_args): Simplify.
1938 (append_args): Remove.
1939 (filter_args): Remove argcp parameter.
1940 (get_args): Return gdb_argv. Simplify.
1941 (compile_to_object): Update.
1942
1943 2020-09-23 Tom Tromey <tom@tromey.com>
1944
1945 * compile/compile-object-run.c (do_module_cleanup)
1946 <~do_module_cleanup> :Remove.
1947 (do_module_cleanup): Update.
1948 * compile/compile-object-load.h (struct munmap_list): Add move
1949 assignment operator.
1950 <source_file>: Now a std::string.
1951 <munmap_list>: Rename. No longer a pointer.
1952 * compile/compile-object-load.c (struct setup_sections_data): Add
1953 constructor.
1954 <setup_one_section>: Declare.
1955 <munmap_list>: Move earlier.
1956 <m_bfd>: New member.
1957 <m_last_size, m_last_section_first, m_last_prot,
1958 m_last_max_alignment>: Rename, add initializers where needed.
1959 (setup_sections_data::setup_one_section): Rename from
1960 setup_sections. Update.
1961 (compile_object_load): Update. Don't use bfd_map_over_sections.
1962
1963 2020-09-23 Tom Tromey <tom@tromey.com>
1964
1965 * compile/compile-object-run.c (struct do_module_cleanup): Add
1966 parameters to constructor. Update destructor.
1967 <source_file, scope, scope_data, out_value_type, out_value_addr,
1968 munmap_list_head, objfile_name_string>: Remove.
1969 <module>: New member.
1970 (do_module_cleanup): Update.
1971 (compile_object_run): Update.
1972
1973 2020-09-23 Tom Tromey <tom@tromey.com>
1974
1975 * compile/compile.c (eval_compile_command): Update.
1976 * compile/compile-object-run.h (compile_object_run): Take a
1977 compile_module_up.
1978 * compile/compile-object-run.c (compile_object_run): Take a
1979 compile_module_up.
1980 * compile/compile-object-load.h (struct compile_module): Add
1981 constructor, destructor.
1982 (compile_module_up): New typedef.
1983 (compile_object_load): Return compile_object_up.
1984 * compile/compile-object-load.c (compile_object_load): Return
1985 compile_module_up.
1986
1987 2020-09-23 Tom Tromey <tom@tromey.com>
1988
1989 * compile/compile-object-run.c (struct do_module_cleanup): Add
1990 constructor, destructor.
1991 <objfile_name_string>: Don't use struct hack.
1992 (do_module_cleanup): Use delete.
1993 (compile_object_run): Use new.
1994
1995 2020-09-23 Tom Tromey <tom@tromey.com>
1996
1997 * compile/compile-cplus-types.c
1998 (compile_cplus_convert_struct_or_union): Use std::vector.
1999 (compile_cplus_convert_func): Likewise.
2000 * compile/compile-c-types.c (convert_func): Use std::vector.
2001
2002 2020-09-21 Tom Tromey <tromey@adacore.com>
2003
2004 * sparc-tdep.c (sparc32_skip_prologue): Use
2005 skip_prologue_using_sal.
2006
2007 2020-09-19 Tom Tromey <tom@tromey.com>
2008
2009 * symfile.c (add_section_size_callback): Remove.
2010 (load_one_section): Rename from load_section_callback. Change
2011 parameters.
2012 (generic_load): Use foreach.
2013
2014 2020-09-19 Tom Tromey <tom@tromey.com>
2015
2016 * exec.c (add_to_section_table): Remove.
2017 (build_section_table): Use foreach.
2018
2019 2020-09-19 Tom Tromey <tom@tromey.com>
2020
2021 * elfread.c (elf_locate_sections): Change parameters.
2022 (elf_symfile_read): Use foreach.
2023
2024 2020-09-19 Tom Tromey <tom@tromey.com>
2025
2026 * cli/cli-dump.c (struct callback_data): Remove.
2027 (restore_one_section): Rename from restore_section_callback.
2028 Change parameters.
2029 (restore_binary_file): Change parameters.
2030 (restore_command): Use foreach.
2031
2032 2020-09-19 Tom Tromey <tom@tromey.com>
2033
2034 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
2035 (gcore_copy_callback): Likewise.
2036 (gcore_memory_sections): Use foreach.
2037
2038 2020-09-19 Tom Tromey <tom@tromey.com>
2039
2040 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2041 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2042 parameters.
2043 (generic_elf_osabi_sniffer): Use foreach.
2044 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2045 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2046
2047 2020-09-19 Tom Tromey <tom@tromey.com>
2048
2049 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2050 (dwarf2_get_dwz_file): Use foreach.
2051 (dwarf2_locate_dwo_sections): Change parameters.
2052 (open_and_init_dwo_file): Use foreach.
2053 (dwarf2_locate_common_dwp_sections): Change parameters.
2054 (open_and_init_dwp_file): Use foreach.
2055
2056 2020-09-19 Tom Tromey <tom@tromey.com>
2057
2058 * symfile.h: (find_lowest_section): Don't declare.
2059 * symfile.c (find_lowest_section): Now static. Change
2060 parameters.
2061 (struct place_section_arg): Remove.
2062 (place_section): Change parameters.
2063 (addr_info_make_relative): Use foreach.
2064 (symfile_dummy_outputs): Remove.
2065 (default_symfile_relocate): Use foreach.
2066
2067 2020-09-19 Tom Tromey <tom@tromey.com>
2068
2069 * objfiles.c (add_to_objfile_sections): Rename from
2070 add_to_objfile_sections_full.
2071 (add_to_objfile_sections): Remove.
2072 (build_objfile_section_table): Use foreach.
2073
2074 2020-09-19 Tom Tromey <tom@tromey.com>
2075
2076 * stap-probe.c (get_stap_base_address_1): Remove.
2077 (get_stap_base_address): Use foreach.
2078
2079 2020-09-19 Tom Tromey <tom@tromey.com>
2080
2081 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2082 parameters.
2083 (gdb_bfd_close_or_warn): Use foreach.
2084
2085 2020-09-19 Tom Tromey <tom@tromey.com>
2086
2087 * corelow.c (add_to_thread_list): Change parameters.
2088 (core_target_open): Use foreach.
2089
2090 2020-09-19 Tom Tromey <tom@tromey.com>
2091
2092 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2093 existing function.
2094
2095 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2096
2097 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2098 for arrays.
2099
2100 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * eval.c: Remove 'f-lang.h' include.
2103 (value_f90_subarray): Moved to f-lang.c.
2104 (eval_call): Renamed to...
2105 (evaluate_subexp_do_call): ...this, is no longer static, header
2106 comment moved into header file.
2107 (evaluate_funcall): Update call to eval_call.
2108 (skip_undetermined_arglist): Moved to f-lang.c.
2109 (fortran_value_subarray): Likewise.
2110 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2111 moved to evaluate_subexp_f.
2112 (calc_f77_array_dims): Moved to f-lang.c
2113 * expprint.c (print_subexp_funcall): New function.
2114 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2115 moved to print_subexp_f, OP_FUNCALL uses new function.
2116 (dump_subexp_body_funcall): New function.
2117 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2118 moved to dump_subexp_f, OP_FUNCALL uses new function.
2119 * expression.h (evaluate_subexp_do_call): Declare.
2120 * f-lang.c (value_f90_subarray): Moved from eval.c.
2121 (skip_undetermined_arglist): Likewise.
2122 (calc_f77_array_dims): Likewise.
2123 (fortran_value_subarray): Likewise.
2124 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2125 (operator_length_f): Likewise.
2126 (print_subexp_f): Likewise.
2127 (dump_subexp_body_f): Likewise.
2128 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2129 declaration of this operation to here.
2130 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2131 support moved to operator_length_f.
2132 * parser-defs.h (dump_subexp_body_funcall): Declare.
2133 (print_subexp_funcall): Declare.
2134 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2135 fortran-operator.def.
2136
2137 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * eval.c (fortran_value_subarray): New function, content is taken
2140 from...
2141 (evaluate_subexp_standard): ...here, in two places. Now arrays
2142 and strings both call the new function.
2143 (calc_f77_array_dims): Add header comment, handle strings.
2144
2145 2020-09-18 Victor Collod <vcollod@nvidia.com>
2146
2147 PR gdb/26635
2148 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2149 (i386_analyze_prologue): Call i386_skip_endbr.
2150
2151 2020-09-18 Tom Tromey <tromey@adacore.com>
2152
2153 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2154 (windows_nat_target::wait): Update.
2155 * target/wait.h (enum target_wait_flag): New. Use
2156 DEF_ENUM_FLAGS_TYPE.
2157 * target/target.h (target_wait): Change type of options.
2158 * target.h (target_options_to_string, default_target_wait):
2159 Update.
2160 (struct target_ops) <wait>: Change type of options.
2161 * target.c (target_wait, default_target_wait, do_option): Change
2162 type of "options".
2163 (target_options_to_string): Likewise.
2164 * target-delegates.c: Rebuild.
2165 * target-debug.h (target_debug_print_target_wait_flags): Rename
2166 from target_debug_print_options.
2167 * sol-thread.c (class sol_thread_target) <wait>: Update.
2168 (sol_thread_target::wait): Update.
2169 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2170 (rs6000_nat_target::wait): Update.
2171 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2172 Update.
2173 (remote_target::wait_ns, remote_target::wait_as): Change type of
2174 "options".
2175 (remote_target::wait): Update.
2176 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2177 (gdbsim_target::wait): Update.
2178 * record-full.c (class record_full_base_target) <wait>: Update.
2179 (record_full_wait_1): Change type of "options".
2180 (record_full_base_target::wait): Update.
2181 * record-btrace.c (class record_btrace_target) <wait>: Update.
2182 (record_btrace_target::wait): Update.
2183 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2184 Update.
2185 (ravenscar_thread_target::wait): Update.
2186 * procfs.c (class procfs_target) <wait>: Update.
2187 (procfs_target::wait): Update.
2188 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2189 * obsd-nat.c (obsd_nat_target::wait): Update.
2190 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2191 (nto_procfs_target::wait): Update.
2192 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2193 * nbsd-nat.c (nbsd_wait): Change type of "options".
2194 (nbsd_nat_target::wait): Update.
2195 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2196 (thread_db_target::wait): Update.
2197 * linux-nat.h (class linux_nat_target) <wait>: Update.
2198 * linux-nat.c (linux_nat_target::wait): Update.
2199 (linux_nat_wait_1): Update.
2200 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2201 "options".
2202 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2203 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2204 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2205 (go32_nat_target::wait): Update.
2206 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2207 * gnu-nat.c (gnu_nat_target::wait): Update.
2208 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2209 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2210 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2211 * darwin-nat.c (darwin_nat_target::wait): Update.
2212 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2213 (bsd_uthread_target::wait): Update.
2214 * aix-thread.c (class aix_thread_target) <wait>: Update.
2215 (aix_thread_target::wait): Update.
2216
2217 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * compile/compile-object-run.c (create_copied_type_recursive): New
2220 function.
2221 (compile_object_run): Use new function.
2222
2223 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2224
2225 * NEWS: Mention x86_64 Cygwin core file support.
2226
2227 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2228
2229 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2230 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2231
2232 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2233
2234 * windows-tdep.h: Add prototypes.
2235 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2236 (i386_windows_core_pid_to_str): Move and rename ...
2237 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2238 (windows_core_pid_to_str): ... and here.
2239 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2240
2241 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2242 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2243 (amd64_windows_init_abi_common): ... and register.
2244
2245 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2246
2247 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2248 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2249
2250 2020-09-18 Pedro Alves <pedro@palves.net>
2251
2252 PR gdb/26631
2253 * thread.c (thread_find_command): Switch inferior before calling
2254 target methods.
2255
2256 2020-09-17 Tom Tromey <tromey@adacore.com>
2257
2258 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2259 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2260 (tdesc_arch_data_up): New typedef.
2261 (tdesc_use_registers, tdesc_data_alloc): Update.
2262 (tdesc_data_cleanup): Don't declare.
2263 * target-descriptions.c (tdesc_data_alloc): Return a
2264 tdesc_arch_data_up.
2265 (tdesc_arch_data_deleter::operator()): Rename from
2266 tdesc_data_cleanup. Change argument type.
2267 (tdesc_use_registers): Change early_data to an rvalue reference.
2268 (tdesc_use_registers): Don't use delete.
2269 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2270 * s390-tdep.c (s390_gdbarch_init): Update.
2271 * rx-tdep.c (rx_gdbarch_init): Update.
2272 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2273 * riscv-tdep.c (riscv_gdbarch_init): Update.
2274 * or1k-tdep.c (or1k_gdbarch_init): Update.
2275 * nios2-tdep.c (nios2_gdbarch_init): Update.
2276 * nds32-tdep.c (nds32_gdbarch_init): Update.
2277 * mips-tdep.c (mips_gdbarch_init): Update.
2278 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2279 * m68k-tdep.c (m68k_gdbarch_init): Update.
2280 * i386-tdep.c (i386_gdbarch_init): Update.
2281 * arm-tdep.c (arm_gdbarch_init): Update.
2282 * arc-tdep.c (arc_tdesc_init): Update.
2283 (arc_gdbarch_init): Update.
2284 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2285
2286 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2287
2288 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2289 for WOW64 processes.
2290
2291 2020-09-17 Tom Tromey <tom@tromey.com>
2292
2293 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2294
2295 2020-09-17 Tom Tromey <tom@tromey.com>
2296
2297 * value.c (preserve_values): Update.
2298 * python/py-type.c (save_objfile_types): Update.
2299 * guile/scm-type.c (save_objfile_types): Update.
2300 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2301 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2302 * compile/compile-object-run.c (compile_object_run): Update.
2303
2304 2020-09-17 Tom Tromey <tom@tromey.com>
2305
2306 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2307 Remove.
2308 <m_table>: Now htab_up.
2309 * typeprint.c (typedef_hash_table::recursively_update)
2310 (typedef_hash_table::add_template_parameters)
2311 (typedef_hash_table::typedef_hash_table): Update.
2312 (typedef_hash_table::~typedef_hash_table): Remove.
2313 (typedef_hash_table::typedef_hash_table)
2314 (typedef_hash_table::find_global_typedef)
2315 (typedef_hash_table::find_typedef): Update.
2316
2317 2020-09-17 Tom Tromey <tom@tromey.com>
2318
2319 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2320
2321 2020-09-17 Tom Tromey <tom@tromey.com>
2322
2323 * linespec.c (class decode_compound_collector)
2324 <~decode_compound_collector>: Remove.
2325 <m_unique_syms>: Now htab_up.
2326 (decode_compound_collector::operator ()): Update.
2327 (class symtab_collector) <~symtab_collector>: Remove.
2328 <m_symtab_table>: Now htab_up.
2329 (symtab_collector::operator ()): Update.
2330
2331 2020-09-17 Tom Tromey <tom@tromey.com>
2332
2333 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2334 (filename_seen_cache::clear): Update.
2335 (~filename_seen_cache): Remove.
2336 (filename_seen_cache::seen): Update.
2337 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2338 htab_up.
2339 <~filename_seen_cache>: Remove.
2340 <traverse>: Update.
2341
2342 2020-09-17 Tom Tromey <tom@tromey.com>
2343
2344 * completer.c (completion_tracker::discard_completions)
2345 (completion_tracker::~completion_tracker)
2346 (completion_tracker::maybe_add_completion)
2347 (completion_tracker::remove_completion)
2348 (completion_tracker::recompute_lowest_common_denominator)
2349 (completion_tracker::build_completion_result): Update.
2350 * completer.h (class completion_tracker) <have_completions>:
2351 Update.
2352 <m_entries_hash>: Now htab_up.
2353
2354 2020-09-17 Tom Tromey <tom@tromey.com>
2355
2356 * breakpoint.c (ambiguous_names_p): Use htab_up.
2357
2358 2020-09-17 Tom Tromey <tom@tromey.com>
2359
2360 * auto-load.c (struct auto_load_pspace_info)
2361 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2362 <loaded_script_files, loaded_script_texts>: Change type to
2363 htab_up.
2364 (~auto_load_pspace_info) Remove.
2365 (init_loaded_scripts_info, maybe_add_script_file)
2366 (maybe_add_script_text, auto_load_info_scripts): Update.
2367
2368 2020-09-17 Tom Tromey <tromey@adacore.com>
2369
2370 * c-exp.y (name_obstack): Now static.
2371
2372 2020-09-17 Chungyi Chi <demonic@csie.io>
2373
2374 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2375
2376 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2379 (add_solib_catchpoint): Likewise.
2380 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2381 to bool.
2382 (add_solib_catchpoint): Change int parameter/variable to bool.
2383 (catch_load_or_unload): Likewise.
2384 (init_catchpoint): Likewise.
2385 (create_fork_vfork_event_catchpoint): Likewise.
2386 (catch_fork_command_1): Likewise.
2387 (catch_exec_command_1): Likewise.
2388
2389 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2390
2391 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2392 Change instance_flags to m_instance_flags.
2393
2394 2020-09-16 Tom Tromey <tromey@adacore.com>
2395
2396 PR gdb/26598:
2397 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2398
2399 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2400
2401 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2402 PL_FLAG_EXEC.
2403 (fbsd_nat_target::insert_exec_catchpoint)
2404 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2405 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2406 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2407
2408 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2409
2410 * configure.ac: Remove check for kinfo_getvmmap().
2411 * configure, config.in: Regenerate.
2412 * fbsd-nat.c (fbsd_read_mapping): Remove
2413 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2414 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2415 kinfo_get_vmmap() are always present.
2416
2417 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2418
2419 * fbsd-nat.c: Always include support for
2420 TARGET_OBJECT_SIGNAL_INFO.
2421
2422 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2423
2424 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2425 sysctl and remove procfs fallback.
2426
2427 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2428
2429 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2430 * fbsd-nat.h: Likewise.
2431
2432 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2433
2434 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2435 argument.
2436
2437 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * ada-lang.c (ada_language_data): Delete.
2440 (ada_language): Remove references to ada_language_data.
2441 * c-lang.c (c_language_data): Delete.
2442 (c_language): Remove references to c_language_data.
2443 (cplus_language_data): Delete.
2444 (cplus_language): Remove references to cplus_language_data.
2445 (asm_language_data): Delete.
2446 (asm_language): Remove references to asm_language_data.
2447 (minimal_language_data): Delete.
2448 (minimal_language): Remove references to minimal_language_data.
2449 * d-lang.c (d_language_data): Delete.
2450 (d_language): Remove references to d_language_data.
2451 * f-lang.c (f_language_data): Delete.
2452 (f_language): Remove references to f_language_data.
2453 * go-lang.c (go_language_data): Delete.
2454 (go_language): Remove references to go_language_data.
2455 * language.c (unknown_language_data): Delete.
2456 (unknown_language): Remove references to unknown_language_data.
2457 (auto_language_data): Delete.
2458 (auto_language): Remove references to auto_language_data.
2459 * language.h (language_data): Delete struct.
2460 (language_defn): No longer inherit from language_data.
2461 * m2-lang.c (m2_language_data): Delete.
2462 (m2_language): Remove references to m2_language_data.
2463 * objc-lang.c (objc_language_data): Delete.
2464 (objc_language): Remove references to objc_language_data.
2465 * opencl-lang.c (opencl_language_data): Delete.
2466 (opencl_language): Remove references to opencl_language_data.
2467 * p-lang.c (pascal_language_data): Delete.
2468 (pascal_language): Remove references to pascal_language_data.
2469 * rust-lang.c (rust_language_data): Delete.
2470 (rust_language): Remove references to rust_language_data.
2471
2472 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2473
2474 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2475 initializer.
2476 (ada_language::opcode_print_table): New member function.
2477 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2478 (c_language::opcode_print_table): New member function.
2479 (cplus_language_data): Remove la_op_print_tab initializer.
2480 (cplus_language::opcode_print_table): New member function.
2481 (asm_language_data): Remove la_op_print_tab initializer.
2482 (asm_language::opcode_print_table): New member function.
2483 (minimal_language_data): Remove la_op_print_tab initializer.
2484 (minimal_language::opcode_print_table): New member function.
2485 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2486 (d_language::opcode_print_table): New member function.
2487 * expprint.c (print_subexp_standard): Update call to
2488 opcode_print_table.
2489 (op_string): Likewise.
2490 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2491 (f_language::opcode_print_table): New member function.
2492 * go-lang.c (go_language_data): Remove la_op_print_tab
2493 initializer.
2494 (go_language::opcode_print_table): New member function.
2495 * language.c (unknown_language_data): Remove la_op_print_tab
2496 initializer.
2497 (unknown_language::opcode_print_table): New member function.
2498 (auto_language_data): Remove la_op_print_tab initializer.
2499 (auto_language::opcode_print_table): New member function.
2500 * language.h (language_data): Remove la_op_print_tab field.
2501 (language_defn::opcode_print_table): Declare new member function.
2502 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2503 initializer.
2504 (m2_language::opcode_print_table): New member function.
2505 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2506 initializer.
2507 (objc_language::opcode_print_table): New member function.
2508 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2509 initializer.
2510 (opencl_language::opcode_print_table): New member function.
2511 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2512 initializer.
2513 (pascal_language::opcode_print_table): New member function.
2514 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2515 initializer.
2516 (rust_language::opcode_print_table): New member function.
2517
2518 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2521 (ada_language::expression_ops): New member function.
2522 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2523 (c_language::expression_ops): New member function.
2524 (cplus_language_data): Remove la_exp_desc initializer.
2525 (cplus_language::expression_ops): New member function.
2526 (asm_language_data): Remove la_exp_desc initializer.
2527 (asm_language::expression_ops): New member function.
2528 (minimal_language_data): Remove la_exp_desc initializer.
2529 (minimal_language::expression_ops): New member function.
2530 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2531 (d_language::expression_ops): New member function.
2532 * eval.c (evaluate_subexp): Update call to expression_ops.
2533 * expprint.c (print_subexp): Likewise.
2534 (op_name): Likewise.
2535 (dump_subexp_body): Likewise.
2536 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2537 (f_language::expression_ops): New member function.
2538 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2539 (go_language::expression_ops): New member function.
2540 * language.c (language_defn::expression_ops): New function.
2541 (unknown_language_data): Remove la_exp_desc initializer.
2542 (auto_language_data): Likewise.
2543 * language.h (language_data): Remove la_exp_desc field.
2544 (language_defn::expression_ops): Declare new member function.
2545 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2546 (m2_language::expression_ops): New member function.
2547 * objc-lang.c (objc_language_data): Remove la_exp_desc
2548 initializer.
2549 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2550 initializer.
2551 (opencl_language::expression_ops): New member function.
2552 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2553 * parse.c (operator_length): Update call to expression_ops.
2554 (exp_iterate): Likewise.
2555 * rust-lang.c (rust_language_data): Remove la_exp_desc
2556 initializer.
2557 (ruse_language::expression_ops): New member function.
2558
2559 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2562 initializer.
2563 (ada_language::varobj_ops): New member function.
2564 * c-lang.c (c_language_data): Remove la_varobj_ops
2565 initializer.
2566 (cplus_language_data): Likewise.
2567 (cplus_language::varobj_ops): New member function.
2568 (asm_language_data): Remove la_varobj_ops initializer.
2569 (minimal_language_data): Likewise.
2570 * d-lang.c (d_language_data): Likewise.
2571 * f-lang.c (f_language_data): Likewise.
2572 * go-lang.c (go_language_data): Likewise.
2573 * language.c (language_defn::varobj_ops): New function.
2574 (unknown_language_data): Remove la_varobj_ops
2575 initializer.
2576 (auto_language_data): Likewise.
2577 * language.h (language_data): Remove la_varobj_ops field.
2578 (language_defn::varobj_ops): Declare new member function.
2579 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2580 * objc-lang.c (objc_language_data): Likewise.
2581 * opencl-lang.c (opencl_language_data): Likewise.
2582 * p-lang.c (pascal_language_data): Likewise.
2583 * rust-lang.c (rust_language_data): Likewise.
2584 * varobj.c (varobj_create): Update call to varobj_ops.
2585 * varobj.h (default_varobj_ops): Delete define.
2586
2587 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2590 initializer.
2591 * c-lang.c (c_language_data): Likewise.
2592 (c_language::macro_expansion): New member function.
2593 (cplus_language_data): Likewise.
2594 (cplus_language::macro_expansion): New member function.
2595 (asm_language_data): Likewise.
2596 (asm_language::macro_expansion): New member function.
2597 (minimal_language_data): Likewise.
2598 (minimal_language::macro_expansion): New member function.
2599 * d-lang.c (d_language_data): Remove la_macro_expansion
2600 initializer.
2601 * f-lang.c (f_language_data): Likewise.
2602 * go-lang.c (go_language_data): Likewise.
2603 * language.c (unknown_language_data): Likewise.
2604 (auto_language_data): Likewise.
2605 * language.h (language_data): Remove la_macro_expansion field.
2606 (language_defn::macro_expansion): New member function.
2607 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2608 initializer.
2609 * objc-lang.c (objc_language_data): Likewise.
2610 (objc_language::macro_expansion): New member function.
2611 * opencl-lang.c (opencl_language_data): Likewise.
2612 (opencl_language::macro_expansion): New member function.
2613 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2614 initializer.
2615 * rust-lang.c (rust_language_data): Likewise.
2616 * symtab.c (default_collect_symbol_completion_matches_break_on):
2617 Update call to macro_expansion.
2618
2619 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * ada-lang.c (ada_language_data): Remove la_array_ordering
2622 initializer.
2623 * c-lang.c (c_language_data): Likewise.
2624 (cplus_language_data): Likewise.
2625 (asm_language_data): Likewise.
2626 (minimal_language_data): Likewise.
2627 * d-lang.c (d_language_data): Likewise.
2628 * dwarf2/read.c (read_array_order): Update for call to
2629 array_ordering.
2630 * f-lang.c (f_language_data): Remove la_array_ordering
2631 initializer.
2632 (f_language::array_ordering): New member function.
2633 * go-lang.c (go_language_data): Remove la_array_ordering
2634 initializer.
2635 * language.c (unknown_language_data): Likewise.
2636 (auto_language_data): Likewise.
2637 * language.h (language_data): Delete la_array_ordering field.
2638 (language_defn::array_ordering): New member function.
2639 * m2-lang.c (m2_language_data): Remove la_array_ordering
2640 initializer.
2641 * objc-lang.c (objc_language_data): Likewise.
2642 * opencl-lang.c (opencl_language_data): Likewise.
2643 * p-lang.c (pascal_language_data): Likewise.
2644 * rust-lang.c (rust_language_data): Likewise.
2645
2646 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2649 initializer.
2650 * c-lang.c (c_language_data): Likewise.
2651 (cplus_language_data): Likewise.
2652 (asm_language_data): Likewise.
2653 (minimal_language_data): Likewise.
2654 * d-lang.c (d_language_data): Likewise.
2655 * f-lang.c (f_language_data): Likewise.
2656 (f_language::case_sensitivity): New member function.
2657 * go-lang.c (go_language_data): Remove la_case_sensitivity
2658 initializer.
2659 * language.c (enum case_mode): Moved here from language.h.
2660 (case_mode): Make static.
2661 (show_case_command): Update for case_sensitivity being a method.
2662 (set_case_command): Likewise.
2663 (set_range_case): Likewise.
2664 (unknown_language_data): Remove la_case_sensitivity initializer.
2665 (auto_language_data): Likewise.
2666 * language.h (case_mode): Delete, move enum declaration to
2667 language.c.
2668 (language_data): Delete la_case_sensitivity field.
2669 (language_defn::case_sensitivity): New member function.
2670 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2671 initializer.
2672 * objc-lang.c (objc_language_data): Likewise.
2673 * opencl-lang.c (opencl_language_data): Likewise.
2674 * p-lang.c (pascal_language_data): Likewise.
2675 * rust-lang.c (rust_language_data): Likewise.
2676
2677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * ada-lang.c (ada_language_data): Remove la_range_check
2680 initializer.
2681 * c-lang.c (c_language_data): Likewise.
2682 (cplus_language_data): Likewise.
2683 (asm_language_data): Likewise.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_language_data): Likewise.
2687 (f_language::range_checking_on_by_default): New member function.
2688 * go-lang.c (go_language_data): Remove la_range_check initializer.
2689 * language.c (enum range_mode): Moved here from language.h.
2690 (range_mode): Made static.
2691 (show_range_command): Update to use
2692 range_checking_on_by_default.
2693 (set_range_command): Likewise.
2694 (set_range_case): Likewise.
2695 (unknown_language_data): Remove la_range_check initializer.
2696 (auto_language_data): Likewise.
2697 * language.h (range_mode): Delete. Enum definition moved to
2698 language.c.
2699 (language_data): Remove la_range_check field.
2700 (language_defn::range_checking_on_by_default): New member
2701 function.
2702 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2703 (m2_language::range_checking_on_by_default): New member function.
2704 * objc-lang.c (objc_language_data): Remove la_range_check
2705 initializer.
2706 * opencl-lang.c (opencl_language_data): Likewise.
2707 * p-lang.c (pascal_language_data): Likewise.
2708 (pascal_language::range_checking_on_by_default): New member
2709 function.
2710 * rust-lang.c (rust_language_data): Remove la_range_check
2711 initializer.
2712 (rust_language::range_checking_on_by_default): New member
2713 function.
2714
2715 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * dwarf2/read.c (dwarf2_physname): Remove special case for
2718 language_go.
2719 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2720 member function.
2721
2722 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * ada-lang.c (ada_language_data): Remove
2725 la_store_sym_names_in_linkage_form_p initializer.
2726 (ada_language::store_sym_names_in_linkage_form_p): New member
2727 function.
2728 * c-lang.c (c_language_data): Remove
2729 la_store_sym_names_in_linkage_form_p initializer.
2730 (c_language::store_sym_names_in_linkage_form_p): New member
2731 function.
2732 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2733 initializer.
2734 (asm_language_data): Likewise.
2735 (asm_language::store_sym_names_in_linkage_form_p): New member
2736 function.
2737 (minimal_language_data): Remove
2738 la_store_sym_names_in_linkage_form_p initializer.
2739 (minimal_language::store_sym_names_in_linkage_form_p): New member
2740 function.
2741 * d-lang.c (d_language_data): Remove
2742 la_store_sym_names_in_linkage_form_p initializer.
2743 * dwarf2/read.c (dwarf2_physname): Update call to
2744 store_sym_names_in_linkage_form_p.
2745 * f-lang.c (f_language_data): Remove
2746 la_store_sym_names_in_linkage_form_p initializer.
2747 * go-lang.c (go_language_data): Remove
2748 la_store_sym_names_in_linkage_form_p initializer.
2749 * language.c (unknown_language_data): Remove
2750 la_store_sym_names_in_linkage_form_p initializer.
2751 (unknown_language::store_sym_names_in_linkage_form_p): New member
2752 function.
2753 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2754 initializer.
2755 (auto_language::store_sym_names_in_linkage_form_p): New member
2756 function.
2757 * language.h (language_data): Remove
2758 la_store_sym_names_in_linkage_form_p member variable.
2759 (language_defn::store_sym_names_in_linkage_form_p): New member
2760 function.
2761 * m2-lang.c (m2_language_data): Remove
2762 la_store_sym_names_in_linkage_form_p initializer.
2763 * objc-lang.c (objc_language_data): Likewise.
2764 * opencl-lang.c (opencl_language_data): Likewise.
2765 * p-lang.c (pascal_language_data): Likewise.
2766 * rust-lang.c (rust_language_data): Likewise.
2767
2768 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * ada-lang.c (ada_language_data): Remove string_lower_bound
2771 initializer.
2772 * c-lang.c (c_language_data): Likewise.
2773 (cplus_language_data): Likewise.
2774 (asm_language_data): Likewise.
2775 (minimal_language_data): Likewise.
2776 * d-lang.c (d_language_data): Likewise.
2777 * f-lang.c (f_language_data): Likewise.
2778 * go-lang.c (go_language_data): Likewise.
2779 * language.c (unknown_language_data): Likewise.
2780 (auto_language_data): Likewise.
2781 * language.h (language_data): Remove string_lower_bound field.
2782 (language_defn::string_lower_bound): New member function.
2783 * m2-lang.c (m2_language_data): Remove string_lower_bound
2784 initializer.
2785 (m2_language::string_lower_bound): New member function.
2786 * objc-lang.c (objc_language_data): Remove string_lower_bound
2787 initializer.
2788 * opencl-lang.c (opencl_language_data): Likewise.
2789 * p-lang.c (pascal_language_data): Likewise.
2790 * rust-lang.c (rust_language_data): Likewise.
2791 * valops.c (value_cstring): Update call to string_lower_bound.
2792 (value_string): Likewise.
2793 * value.c (allocate_repeated_value): Likewise.
2794
2795 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * valops.c (value_repeat): Fix incorrect argument name in comment.
2798
2799 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * ada-lang.c (ada_language_data): Remove c_style_arrays
2802 initializer.
2803 (ada_language::c_style_arrays_p): New member fuction.
2804 * c-lang.c (c_language_data): Remove c_style_arrays
2805 initializer.
2806 (cplus_language_data): Likewise.
2807 (asm_language_data): Likewise.
2808 (minimal_language_data): Likewise.
2809 * d-lang.c (d_language_data): Likewise.
2810 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2811 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2812 (f_language::c_style_arrays_p): New member function.
2813 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2814 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2815 * language.c (unknown_language_data): Remove c_style_arrays
2816 initializer.
2817 (auto_language_data): Likewise.
2818 * language.h (language_data): Remove c_style_arrays field.
2819 (language_defn::c_style_arrays_p): New member function.
2820 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2821 (m2_language::c_style_arrays_p): New member function.
2822 * objc-lang.c (objc_language_data): Remove c_style_arrays
2823 initializer.
2824 * opencl-lang.c (opencl_language_data): Likewise.
2825 * p-lang.c (pascal_language_data): Likewise.
2826 * rust-lang.c (rust_language_data): Likewise.
2827 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2828 and update local variable to a bool.
2829 * valops.c (value_cast): Update call to c_style_arrays_p.
2830 (value_array): Likewise.
2831 * value.c (coerce_array): Likewise.
2832
2833 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * ada-lang.c (ada_language_data): Remove la_language initializer.
2836 * c-lang.c (c_language_data): Likewise.
2837 (cplus_language_data): Likewise.
2838 (asm_language_data): Likewise.
2839 (minimal_language_data): Likewise.
2840 * d-lang.c (d_language_data): Likewise.
2841 * f-lang.c (f_language_data): Likewise.
2842 * go-lang.c (go_language_data): Likewise.
2843 * language.c (unknown_language_data): Likewise.
2844 (auto_language_data): Likewise.
2845 * language.h (language_data): Remove la_language field.
2846 (language_defn::language_defn): Initialise la_language field.
2847 (language_defn::la_language): New member variable.
2848 * m2-lang.c (m2_language_data): Remove la_language field.
2849 * objc-lang.c (objc_language_data): Likewise.
2850 * opencl-lang.c (opencl_language_data): Likewise.
2851 * p-lang.c (pascal_language_data): Likewise.
2852 * rust-lang.c (rust_language_data): Likewise.
2853
2854 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * ada-lang.c (ada_extensions): Delete, moved into
2857 ada_language::filename_extensions.
2858 (ada_language_data): Remove la_filename_extensions initializer.
2859 (ada_language::filename_extensions): New member function.
2860 * c-lang.c (c_extensions): Delete, moved into
2861 c_language::filename_extensions.
2862 (c_language_data): Remove la_filename_extensions initializer.
2863 (c_language::filename_extensions): New member function.
2864 (cplus_extensions): Delete, moved into
2865 cplus_language::filename_extensions.
2866 (cplus_language_data): Remove la_filename_extensions initializer.
2867 (cplus_language::filename_extensions): New member function.
2868 (asm_extensions): Delete, moved into
2869 asm_language::filename_extensions.
2870 (asm_language_data): Remove la_filename_extensions initializer.
2871 (asm_language::filename_extensions): New member function.
2872 (minimal_language_data): Remove la_filename_extensions
2873 initializer.
2874 * d-lang.c (d_extensions): Delete, moved into
2875 d_language::filename_extensions.
2876 (d_language_data): Remove la_filename_extensions initializer.
2877 (d_language::filename_extensions): New member function.
2878 * f-lang.c (f_extensions): Delete, moved into
2879 f_language::filename_extensions.
2880 (f_language_data): Remove la_filename_extensions initializer.
2881 (f_language::filename_extensions): New member function.
2882 * go-lang.c (go_language_data): Remove la_filename_extensions
2883 initializer.
2884 * language.c (add_set_language_command): Update now that
2885 filename_extensions returns a vector.
2886 (unknown_language_data): Remove la_filename_extensions
2887 initializer.
2888 (auto_language_data): Likewise.
2889 * language.h (language_data): Remove la_filename_extensions field.
2890 (language_defn::filename_extensions): New member function.
2891 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2892 initializer.
2893 * objc-lang.c (objc_extensions): Delete, moved into
2894 objc_language::filename_extensions.
2895 (objc_language_data): Remove la_filename_extensions initializer.
2896 (objc_language::filename_extensions): New member function.
2897 * opencl-lang.c (opencl_language_data): Remove
2898 la_filename_extensions initializer.
2899 * p-lang.c (pascal_extensions): Delete, moved into
2900 pascal_language::filename_extensions.
2901 (pascal_language_data): Remove la_filename_extensions initializer.
2902 (pascal_language::filename_extensions): New member function.
2903 * rust-lang.c (rust_extensions): Delete, moved into
2904 rust_language::filename_extensions.
2905 (rust_language_data): Remove la_filename_extensions initializer.
2906 (rust_language::filename_extensions): New member function.
2907 * symfile.c (add_filename_language): Add new assert.
2908
2909 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * ada-lang.c (ada_language_data): Remove la_name and
2912 la_natural_name initializers.
2913 (ada_language::name): New member function.
2914 (ada_language::natural_name): New member function.
2915 * c-lang.c (c_language_data): Remove la_name and
2916 la_natural_name initializers.
2917 (c_language::name): New member function.
2918 (c_language::natural_name): New member function.
2919 (cplus_language_data): Remove la_name and
2920 la_natural_name initializers.
2921 (cplus_language::name): New member function.
2922 (cplus_language::natural_name): New member function.
2923 (asm_language_data): Remove la_name and
2924 la_natural_name initializers.
2925 (asm_language::name): New member function.
2926 (asm_language::natural_name): New member function.
2927 (minimal_language_data): Remove la_name and
2928 la_natural_name initializers.
2929 (minimal_language::name): New member function.
2930 (minimal_language::natural_name): New member function.
2931 * compile/compile.c (compile_to_object): Update call to
2932 lanugage_defn::name.
2933 * d-lang.c (d_language_data): Remove la_name and
2934 la_natural_name initializers.
2935 (d_language::name): New member function.
2936 (d_language::natural_name): New member function.
2937 * expprint.c (print_subexp_standard): Update call to
2938 language_defn::name.
2939 (dump_raw_expression): Likewise
2940 (dump_prefix_expression): Likewise.
2941 * f-lang.c (f_language_data): Remove la_name and
2942 la_natural_name initializers.
2943 (f_language::name): New member function.
2944 (f_language::natural_name): New member function.
2945 * go-lang.c (go_language_data): Remove la_name and
2946 la_natural_name initializers.
2947 (go_language::name): New member function.
2948 (go_language::natural_name): New member function.
2949 * language.c (show_language_command): Update call to
2950 language_defn::name.
2951 (set_language_command): Likewise.
2952 (language_enum): Likewise.
2953 (language_str): Likewise.
2954 (add_set_language_command): Likewise, use
2955 language_defn::natural_name in the doc string.
2956 (unknown_language_data): Remove la_name and
2957 la_natural_name initializers.
2958 (unknown_language::name): New member function.
2959 (unknown_language::natural_name): New member function.
2960 (auto_language_data): Remove la_name and
2961 la_natural_name initializers.
2962 (auto_language::name): New member function.
2963 (auto_language::natural_name): New member function.
2964 (language_lookup_primitive_type_as_symbol): Update call to
2965 language_defn::name.
2966 * language.h (language_data): Remove la_name and la_natural_name
2967 member variables.
2968 (language_defn::name): New member function.
2969 (language_defn::natural_name): New member function.
2970 * m2-lang.c (m2_language_data): Remove la_name and
2971 la_natural_name initializers.
2972 (m2_language::name): New member function.
2973 (m2_language::natural_name): New member function.
2974 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2975 language_defn::natural_name.
2976 * objc-lang.c (objc_language_data): Remove la_name and
2977 la_natural_name initializers.
2978 (objc_language::name): New member function.
2979 (objc_language::natural_name): New member function.
2980 * opencl-lang.c (opencl_language_data): Remove la_name and
2981 la_natural_name initializers.
2982 (opencl_language::name): New member function.
2983 (opencl_language::natural_name): New member function.
2984 * p-lang.c (pascal_language_data): Remove la_name and
2985 la_natural_name initializers.
2986 (pascal_language::name): New member function.
2987 (pascal_language::natural_name): New member function.
2988 * rust-lang.c (rust_language_data): Remove la_name and
2989 la_natural_name initializers.
2990 (rust_language::name): New member function.
2991 (rust_language::natural_name): New member function.
2992 * symtab.c (lookup_language_this): Update call to
2993 language_defn::name.
2994
2995 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2996
2997 * ada-lang.c (ada_language_data): Remove la_name_of_this
2998 initializer.
2999 * ax-gdb.c (gen_expr): Update call to name_of_this.
3000 * c-exp.y (classify_name): Likewise.
3001 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
3002 (cplus_language_data): Likewise.
3003 (cplus_language::name_of_this): New member function.
3004 (asm_language_data): Remove la_name_of_this initializer.
3005 (minimal_language_data): Likewise.
3006 * d-lang.c (d_language_data): Likewise.
3007 (d_language::name_of_this): New member function.
3008 * expprint.c (print_subexp_standard): Update call to name_of_this.
3009 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
3010 * go-lang.c (go_language_data): Likewise.
3011 * language.c (unknown_language_data): Likewise.
3012 (unknown_language::name_of_this): New member function.
3013 (auto_language_data): Remove la_name_of_this initializer.
3014 (auto_language::name_of_this): New member function.
3015 * language.h (language_data): Delete la_name_of_this member
3016 variable.
3017 (language_defn::name_of_this): New member function.
3018 * m2-lang.c (m2_language_data): Remove la_name_of_this
3019 initializer.
3020 * objc-lang.c (objc_language_data): Likewise.
3021 (objc_language::name_of_this): New member function.
3022 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
3023 initializer.
3024 * p-lang.c (pascal_language_data): Likewise.
3025 (pascal_language::name_of_this): New member function.
3026 * rust-lang.c (rust_language_data): Remove la_name_of_this
3027 initializer.
3028 * symtab.c (lookup_language_this): Update call to name_of_this.
3029 (lookup_symbol_aux): Likewise.
3030 * valops.c (value_of_this): Likewise.
3031
3032 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * ada-lang.c (ada_language_data): Remove
3035 la_struct_too_deep_ellipsis initializer.
3036 (ada_language::struct_too_deep_ellipsis): New member function.
3037 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3038 initializer.
3039 (cplus_language_data): Likewise.
3040 (asm_language_data): Likewise.
3041 (minimal_language_data): Likewise.
3042 * cp-valprint.c (cp_print_value): Update call to
3043 struct_too_deep_ellipsis.
3044 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3045 initializer.
3046 * f-lang.c (f_language_data): Likewise.
3047 (f_language::struct_too_deep_ellipsis): New member function.
3048 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3049 initializer.
3050 * language.c (unknown_language_data): Likewise.
3051 (auto_language_data): Likewise.
3052 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3053 member variable.
3054 (language_defn::struct_too_deep_ellipsis): New member function.
3055 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3056 initializer.Q
3057 * objc-lang.c (objc_language_data): Likewise.
3058 * opencl-lang.c (opencl_language_data): Likewise.
3059 * p-lang.c (pascal_language_data): Likewise.
3060 * rust-lang.c (rust_language_data): Likewise.
3061 * valprint.c (val_print_check_max_depth): Update call to
3062 struct_too_deep_ellipsis.
3063
3064 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3065
3066 * MAINTAINERS (Write After Approval): Add myself.
3067
3068 2020-09-15 Tom Tromey <tom@tromey.com>
3069
3070 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3071 Remove.
3072
3073 2020-09-15 Tom Tromey <tom@tromey.com>
3074
3075 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3076 and TYPE_CODE_METHODPTR cases.
3077 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3078 (c_value_print_inner): Update.
3079 * valprint.c (generic_value_print_memberptr): New function, from
3080 c_value_print_memberptr.
3081 (generic_value_print): Use it. Call cplus_print_method_ptr.
3082
3083 2020-09-15 Tom Tromey <tromey@adacore.com>
3084
3085 * python/python-internal.h (PyInt_FromLong): Remove define.
3086 * python/py-value.c (convert_value_from_python): Use
3087 gdb_py_object_from_longest.
3088 * python/py-type.c (typy_get_code): Use
3089 gdb_py_object_from_longest.
3090 * python/py-symtab.c (salpy_get_line): Use
3091 gdb_py_object_from_longest.
3092 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3093 gdb_py_object_from_longest.
3094 * python/py-record.c (recpy_gap_reason_code): Use
3095 gdb_py_object_from_longest.
3096 * python/py-record-btrace.c (recpy_bt_insn_size)
3097 (recpy_bt_func_level, btpy_list_count): Use
3098 gdb_py_object_from_longest.
3099 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3100 gdb_py_object_from_longest. Fix error handling.
3101 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3102 gdb_py_object_from_longest.
3103 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3104 gdb_py_object_from_longest.
3105 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3106 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3107 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3108
3109 2020-09-15 Tom Tromey <tromey@adacore.com>
3110
3111 * python/python.c (gdbpy_parameter_value): Use
3112 gdb_py_object_from_ulongest.
3113
3114 2020-09-15 Tom Tromey <tromey@adacore.com>
3115
3116 * python/py-infevents.c (create_register_changed_event_object):
3117 Use gdb_py_object_from_longest.
3118 * python/py-exitedevent.c (create_exited_event_object): Use
3119 gdb_py_object_from_longest.
3120
3121 2020-09-15 Tom Tromey <tromey@adacore.com>
3122
3123 * python/python.c (gdbpy_parameter_value): Use
3124 gdb_py_object_from_longest.
3125 * python/py-type.c (convert_field, typy_range): Use
3126 gdb_py_object_from_longest.
3127 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3128 gdb_py_object_from_longest.
3129 * python/py-lazy-string.c (stpy_get_length): Use
3130 gdb_py_object_from_longest.
3131 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3132 gdb_py_object_from_longest.
3133 * python/py-infevents.c (create_memory_changed_event_object): Use
3134 gdb_py_object_from_longest.
3135 * python/py-inferior.c (infpy_get_num): Use
3136 gdb_py_object_from_longest.
3137 (infpy_get_pid): Likewise.
3138
3139 2020-09-15 Tom Tromey <tromey@adacore.com>
3140
3141 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3142 defines.
3143 * python/py-value.c (valpy_long): Use
3144 gdb_py_object_from_ulongest.
3145 * python/py-symtab.c (salpy_get_pc): Use
3146 gdb_py_object_from_ulongest.
3147 (salpy_get_last): Likewise.
3148 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3149 gdb_py_object_from_ulongest.
3150 * python/py-lazy-string.c (stpy_get_address): Use
3151 gdb_py_object_from_ulongest.
3152 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3153 * python/py-arch.c (archpy_disassemble): Use
3154 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3155 error handling.
3156
3157 2020-09-15 Tom Tromey <tromey@adacore.com>
3158
3159 * python/python-internal.h (gdb_py_long_from_longest): Remove
3160 defines.
3161 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3162 * python/py-type.c (convert_field, typy_get_sizeof): Use
3163 gdb_py_object_from_longest.
3164 * python/py-record-btrace.c (btpy_list_index): Use
3165 gdb_py_object_from_longest.
3166
3167 2020-09-15 Tom Tromey <tromey@adacore.com>
3168
3169 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3170 * python/py-record.c (recpy_element_number): Use
3171 gdb_py_object_from_longest.
3172 (recpy_gap_number): Likewise.
3173
3174 2020-09-15 Tom Tromey <tromey@adacore.com>
3175
3176 * top.c (ui::ui): Update.
3177 (highest_ui_num): Remove.
3178 * top.h (struct ui) <num>: Remove.
3179
3180 2020-09-15 Tom Tromey <tromey@adacore.com>
3181
3182 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3183 * ui-style.c (ansi_regex_text): Now array.
3184 * rust-exp.y (number_regex_text): Now array.
3185 * linespec.c (linespec_quote_characters): Now array.
3186 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3187 Now arrays.
3188
3189 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * debuginfod-support.c (debuginfod_client_deleter): New.
3192 (debuginfod_client_up): New.
3193 (debuginfod_init): Return debuginfod_client_up.
3194 (debuginfod_source_query): Adjust.
3195 (debuginfod_debuginfo_query): Adjust.
3196
3197 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3198
3199 * debuginfod-support.c (debuginfod_source_query): Use
3200 make_unique_xstrdup.
3201
3202 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3203
3204 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3205 with `type::instance_flags`.
3206
3207 2020-09-14 Michael Mullin <masmullin@gmail.com>
3208
3209 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3210 Remove baton parameter.
3211
3212 2020-09-14 Pedro Alves <pedro@palves.net>
3213
3214 * Makefile.in (SELFTESTS_SRCS): Add
3215 unittests/enum-flags-selftests.c.
3216 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3217 btrace_function_flags instead of enum btrace_function_flag.
3218 * compile/compile-c-types.c (convert_qualified): Use
3219 enum_flags::raw.
3220 * compile/compile-cplus-symbols.c (convert_one_symbol)
3221 (convert_symbol_bmsym):
3222 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3223 (compile_cplus_convert_struct_or_union_methods)
3224 (compile_cplus_instance::convert_qualified_base):
3225 * go-exp.y (parse_string_or_char): Add cast to int.
3226 * unittests/enum-flags-selftests.c: New file.
3227 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3228 type to btrace_thread_flags from btrace_thread_flag.
3229 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3230 local's type to btrace_thread_flags from btrace_thread_flag. Add
3231 cast in DEBUG call.
3232
3233 2020-09-14 Pedro Alves <pedro@palves.net>
3234
3235 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3236 * gdbtypes.c (address_space_name_to_int): Rename to ...
3237 (address_space_name_to_type_instance_flags): ... this.
3238 (address_space_int_to_name): Rename to ...
3239 (address_space_type_instance_flags_to_name): ... this.
3240 * gdbtypes.h (address_space_name_to_int): Rename to ...
3241 (address_space_name_to_type_instance_flags): ... this.
3242 (address_space_int_to_name): Rename to ...
3243 (address_space_type_instance_flags_to_name): ... this.
3244 * type-stack.c (type_stack::insert): Adjust to rename.
3245 * type-stack.h (type_stack::insert): Likewise.
3246
3247 2020-09-14 Pedro Alves <pedro@palves.net>
3248 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * avr-tdep.c (avr_address_class_type_flags): Return
3251 type_instance_flags.
3252 (avr_address_class_type_flags_to_name): Take a
3253 type_instance_flags.
3254 (avr_address_class_name_to_type_flags): Return bool and take a
3255 type_instance_flags.
3256 * d-lang.c (build_d_types): Use type::set_instance_flags.
3257 * ft32-tdep.c (ft32_address_class_type_flags): Return
3258 type_instance_flags.
3259 (ft32_address_class_type_flags_to_name): Take a
3260 type_instance_flags.
3261 (ft32_address_class_name_to_type_flags): Return bool and take a
3262 type_instance_flags.
3263 (ft32_gdbarch_init): Use type::set_instance_flags.
3264 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3265 * gdbarch.h, gdbarch.c: Regenerate.
3266 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3267 (address_class_name_to_type_flags): Use type_instance_flags and
3268 bool.
3269 * gdbtypes.c (address_space_name_to_int)
3270 (address_space_int_to_name, make_qualified_type): Use
3271 type_instance_flags.
3272 (make_qualified_type): Use type_instance_flags and
3273 type::set_instance_flags.
3274 (make_type_with_address_space, make_cv_type, make_vector_type)
3275 (check_typedef): Use type_instance_flags.
3276 (recursive_dump_type): Cast type_instance_flags to unsigned for
3277 printing.
3278 (copy_type_recursive): Use type::set_instance_flags.
3279 (gdbtypes_post_init): Use type::set_instance_flags.
3280 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3281 <m_instance_flags>: ... this.
3282 <instance_flags, set_instance_flags>: New methods.
3283 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3284 (SET_TYPE_INSTANCE_FLAGS): New.
3285 (address_space_name_to_int, address_space_int_to_name)
3286 (make_type_with_address_space): Pass flags using
3287 type_instance_flags instead of int.
3288 * stabsread.c (cleanup_undefined_types_noname): Use
3289 type::set_instance_flags.
3290 * s390-tdep.c (s390_address_class_type_flags): Return
3291 type_instance_flags.
3292 (s390_address_class_type_flags_to_name): Take a
3293 type_instance_flags.
3294 (s390_address_class_name_to_type_flags): Return bool and take a
3295 type_instance_flags.
3296 * type-stack.c (type_stack::follow_types): Use
3297 type_instance_flags.
3298 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3299
3300 2020-09-14 Tom Tromey <tromey@adacore.com>
3301
3302 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3303 * x86-tdep.c (x86_is_thunk_register_name)
3304 (x86_in_indirect_branch_thunk): Update.
3305 * sparc64-tdep.c (sparc64_fpu_register_names)
3306 (sparc64_cp0_register_names, sparc64_register_names)
3307 (sparc64_pseudo_register_names): Now const.
3308 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3309 cp0_registers_num>: Now const.
3310 * sparc-tdep.c (sparc_core_register_names)
3311 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3312 (sparc32_pseudo_register_names): Now const.
3313 (validate_tdesc_registers): Update.
3314 * rust-lang.c (rust_extensions): Now const.
3315 * p-lang.c (p_extensions): Now const.
3316 * objc-lang.c (objc_extensions): Now const.
3317 * nto-tdep.c (nto_thread_state_str): Now const.
3318 * moxie-tdep.c (moxie_register_names): Now const.
3319 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3320 Now const.
3321 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3322 (mips_linux_reg_names): Now const.
3323 (mips_gdbarch_init): Update.
3324 * microblaze-tdep.c (microblaze_register_names): Now const.
3325 * m68k-tdep.c (m68k_register_names): Now const.
3326 * m32r-tdep.c (m32r_register_names): Now const.
3327 * ia64-tdep.c (ia64_register_names): Now const.
3328 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3329 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3330 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3331 ymm_avx512_register_names, pkeys_register_names>: Now const.
3332 * i386-tdep.c (i386_register_names, i386_zmm_names)
3333 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3334 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3335 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3336 * f-lang.c (f_extensions): Now const.
3337 * d-lang.c (d_extensions): Now const.
3338 * csky-tdep.c (csky_register_names): Now const.
3339 * charset.c (default_charset_names, charset_enum): Now const.
3340 (_initialize_charset): Update.
3341 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3342 const.
3343 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3344 (bsd_uthread_solib_loaded): Update.
3345 (bsd_uthread_state): Now const.
3346 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3347 (amd64_ymm_avx512_names, amd64_ymmh_names)
3348 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3349 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3350 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3351 (amd64_dword_names): Now const.
3352 * agent.c (can_use_agent_enum): Now const.
3353 * ada-tasks.c (task_states, long_task_states): Now const.
3354 * ada-lang.c (known_runtime_file_name_patterns)
3355 (known_auxiliary_function_name_patterns, attribute_names)
3356 (standard_exc, ada_extensions): Now const.
3357
3358 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3359
3360 * bcache.h (struct bcache) <bcache>: Remove constructor.
3361 <m_hash_function, m_compare_function>: Remove.
3362 <~bcache>: Make virtual.
3363 <compare>: Remove static method, introduce virtual method.
3364 <default_hash>: Remove.
3365 <hash>: New virtual method.
3366 * bcache.c (bcache::expand_hash_table): Update.
3367 (bcache::insert): Update.
3368 (bcache::hash): New.
3369 (bcache::compare): Update comment and parameter names.
3370 * gdbtypes.c (types_deeply_equal): Update.
3371 * psymtab.h (struct psymbol_bcache): New struct.
3372 (class psymtab_storage) <psymtab_storage>: Make default.
3373 <psymbol_cache>: Change type to psymbol_bcache.
3374 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3375 (psymbol_hash): Change to...
3376 (psymbol_bcache::hash): ... this.
3377 (psymbol_compare): Change to...
3378 (psymbol_bcache::compare): ... this.
3379
3380 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3381
3382 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3383 checking for initial lwp.
3384
3385 2020-09-14 Tom Tromey <tromey@adacore.com>
3386
3387 * m68k-tdep.c (m68k_extract_return_value): Use
3388 pointer_result_regnum.
3389 (m68k_store_return_value): Likewise.
3390 (m68k_reg_struct_return_p): Handle vectors and arrays.
3391 (m68k_return_value): Handle arrays.
3392 (m68k_svr4_return_value): Fix single-element aggregate handling.
3393 Handle long double. Adjust for embedded ABI.
3394 (m68k_svr4_init_abi): Set pointer_result_regnum.
3395 (m68k_embedded_init_abi): New function.
3396 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3397 (m68k_osabi_sniffer): New function.
3398 (_initialize_m68k_tdep): Register osabi sniffer.
3399 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3400 member.
3401
3402 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3403
3404 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3405 with gdb::unique_xmalloc_ptr<char>.
3406
3407 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3408
3409 * xml-support.h (xml_fetch_another): Change type to be a
3410 function_view.
3411 (xml_process_xincludes): Remove baton parameter.
3412 (xml_fetch_content_from_file): Change baton parameter to
3413 dirname.
3414 * xml-support.c (struct xinclude_parsing_data)
3415 <xinclude_parsing_data>: Remove baton parameter.
3416 <fetcher_baton>: Remove.
3417 (xinclude_start_include): Adjust.
3418 (xml_process_xincludes): Adjust.
3419 (xml_fetch_content_from_file): Replace baton parameter with
3420 dirname.
3421 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3422 (xml_init_syscalls_info): Use a lambda.
3423 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3424 (file_read_description_xml): Use a lambda.
3425 (fetch_available_features_from_target): Change baton parameter
3426 to target_ops.
3427 (target_read_description_xml): Use a lambda.
3428 (target_fetch_description_xml): Use a lambda.
3429 (string_read_description_xml): Update.
3430
3431 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3434 uses with type::endianity_is_not_default.
3435
3436 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * gdbtypes.h (struct type) <endianity_is_not_default,
3439 set_endianity_is_not_default>: New methods.
3440 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3441 type::endianity_is_not_default, change all write call sites to
3442 use type::set_endianity_is_not_default.
3443
3444 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3447 uses with type::is_fixed_instance.
3448
3449 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3450
3451 * gdbtypes.h (struct type) <is_fixed_instance,
3452 set_is_fixed_instance>: New methods.
3453 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3454 write call sites to use type::set_is_fixed_instance.
3455
3456 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3459 uses with type::is_gnu_ifunc.
3460
3461 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3464 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3465 use type::set_is_gnu_ifunc.
3466
3467 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3470 uses with type::stub_is_supported.
3471
3472 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3475 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3476 use type::set_stub_is_supported.
3477
3478 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3481 uses with type::is_vector.
3482
3483 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3486 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3487 use type::set_is_vector.
3488
3489 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3492 uses with type::has_varargs.
3493
3494 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3497 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3498 use type::set_has_varargs.
3499
3500 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3503 uses with type::is_prototyped.
3504
3505 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3508 New methods.
3509 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3510 call sites to use type::set_is_prototyped.
3511
3512 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3515 uses with type::target_is_stub.
3516
3517 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3520 New methods.
3521 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3522 sites to use type::set_target_is_stub.
3523
3524 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * gdbtypes.h (TYPE_STUB): Remove, replace all
3527 uses with type::is_stub.
3528
3529 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3532 (TYPE_STUB): Use type::is_stub, change all write call sites to
3533 use type::set_is_stub.
3534
3535 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3538 type::has_no_signedness.
3539
3540 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * gdbtypes.h (struct type) <has_no_signedness,
3543 set_has_no_signedness>: New methods.
3544 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3545 call sites to use type::set_has_no_signedness.
3546
3547 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3550 type::is_unsigned.
3551
3552 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3555 methods.
3556 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3557 sites to use type::set_is_unsigned.
3558
3559 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3560 Adam Renquinha <arenquinha@cimeq.qc.ca>
3561
3562 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3563 pointer and stack frame offset when unwinding.
3564
3565 2020-09-13 Pedro Alves <pedro@palves.net>
3566
3567 * NEWS: Document "-break-insert --qualified".
3568 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3569
3570 2020-09-13 Pedro Alves <pedro@palves.net>
3571
3572 * linespec.c (classify_mtype, compare_msyms): Delete.
3573 (search_minsyms_for_name): Remove classification logic. Instead
3574 filter out trampoline symbols if we also found an external
3575 function of the same name.
3576
3577 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3578
3579 * NEWS: Create a new section for the next release branch.
3580 Rename the section of the current branch, now that it has
3581 been cut.
3582
3583 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3584
3585 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3586 * version.in: Bump version to 11.0.50.DATE-git.
3587
3588 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3589
3590 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3591
3592 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3593 Felix Willgerodt <Felix.Willgerodt@intel.com>
3594
3595 * gdbarch.sh: Added bfloat16 type.
3596 * gdbarch.c: Regenerated.
3597 * gdbarch.h: Regenerated.
3598 * gdbtypes.c (floatformats_bfloat16): New struct.
3599 (gdbtypes_post_init): Add builtin_bfloat16.
3600 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3601 (floatformats_bfloat16): New struct.
3602 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3603 (i386_ymm_type): Add field "v16_bfloat16"
3604 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3605 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3606 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3607 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3608 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3609 * features/i386/64bit-avx512.c: Regenerated.
3610 * features/i386/64bit-sse.xml: Add bfloat16 type.
3611 * features/i386/64bit-sse.c: Regenerated.
3612
3613 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3614
3615 * i386-tdep.c (i386_zmm_type): Fix field names.
3616 (i386_ymm_type): Fix field names.
3617
3618 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3619
3620 * breakpoint.c: Fix typo in the help message of the
3621 "set breakpoint condition-evaluation" command.
3622
3623 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3624
3625 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3626 * (nbsd_nat_target::pid_to_exec_file)
3627 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3628 (nbsd_nat_target::post_startup_inferior)
3629 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3630 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3631 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3632 * (nbsd_thread_lister): Remove.
3633
3634 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3635
3636 * fork-inferior.c (startup_inferior): Avoid double free.
3637
3638 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3639
3640 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3641 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3642
3643 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3644
3645 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3646 * netbsd-nat.c: Include <sys/ptrace.h>.
3647 * (netbsd_nat::enable_proc_events): Add.
3648
3649 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3650
3651 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3652 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3653 (netbsd_nat::for_each_thread): Add.
3654 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3655 "gdbsupport/common-debug.h".
3656 * (netbsd_nat::netbsd_thread_lister)
3657 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3658 (netbsd_nat::for_each_thread): Add.
3659
3660 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3661
3662 * netbsd-nat.h: Include <unistd.h>.
3663 * (netbsd_nat::pid_to_exec_file): Add.
3664 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3665 * (netbsd_nat::pid_to_exec_file) Add.
3666
3667 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3668
3669 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3670
3671 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3672
3673 * netbsd-nat.h: New file.
3674 * netbsd-nat.c: Likewise.
3675
3676 2020-09-09 Tom Tromey <tromey@adacore.com>
3677
3678 * ada-lang.c (remove_extra_symbols): Do not increment when
3679 removing an element
3680
3681 2020-09-08 Tom Tromey <tromey@adacore.com>
3682
3683 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3684
3685 2020-09-08 Tom Tromey <tromey@adacore.com>
3686
3687 PR win32/25302:
3688 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3689 (gdb_bfd_init_data): New function.
3690 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3691
3692 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3693
3694 * infrun.c (fetch_inferior_event): Use
3695 `switch_to_target_no_thread` to switch the target.
3696
3697 2020-09-06 Tom Tromey <tom@tromey.com>
3698
3699 * symfile.h (dwarf2_free_objfile): Don't declare.
3700
3701 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3702
3703 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3704 to match 16 byte real/complex type generated by Flang compiler.
3705
3706 2020-09-03 Tom de Vries <tdevries@suse.de>
3707
3708 PR breakpoint/26546
3709 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3710 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3711
3712 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * maint.c (index_digits): New function.
3715 (struct maint_print_section_data): Remove.
3716 (print_bfd_section_info): Remove print_data parameter, add arg
3717 and index_digits.
3718 (print_objfile_section_info): Likewise.
3719 (print_bfd_section_info_maybe_relocated): Likewise (plus
3720 objfile).
3721 (maintenance_info_sections): Adjust calls.
3722
3723 2020-09-02 Tom Tromey <tromey@adacore.com>
3724
3725 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3726 for null pointers.
3727 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3728
3729 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * bcache.h (struct bcache) <insert>: Change type of `added` to
3732 pointer to bool.
3733 * bcache.c (bcache::insert): Likewise.
3734 * gdbtypes.c (check_types_worklist): Adjust.
3735 * psymtab.c (add_psymbol_to_bcache): Adjust.
3736
3737 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3738
3739 * corelow.c (unordered_set): Include.
3740 (class core_target): Add field 'm_core_unavailable_mappings'.
3741 (core_target::build_file_mappings): Print only one warning
3742 per inaccessible file. Add unavailable/broken mappings
3743 to m_core_unavailable_mappings.
3744 (core_target::xfer_partial): Call...
3745 (core_target::xfer_memory_via_mappings): New method.
3746
3747 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3748
3749 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3750 type to bool.
3751
3752 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3753
3754 * dwarf2/read.c (struct field_info): Fix indentation.
3755
3756 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3759 ordering in comment.
3760 * frame.c (frame_id_eq): Fix indentation.
3761
3762 2020-08-31 Scott Linder <scott@scottlinder.com>
3763 Simon Marchi <simon.marchi@efficios.com>
3764
3765 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3766 inline frame ids in outer frame.
3767
3768 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3769
3770 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3771 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3772 (outer_frame_id): Use FID_STACK_OUTER instead of
3773 FID_STACK_INVALID.
3774 (frame_id_p): Don't check for outer_frame_id.
3775
3776 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3779 regnum/frame in value. Call allocate_value_lazy.
3780 * frame.c (frame_unwind_register_value): Use
3781 val_print_not_saved.
3782
3783 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3786
3787 2020-08-29 Pedro Alves <pedro@palves.net>
3788
3789 * progspace.c (print_program_space): Use all_inferiors. Switch to
3790 the inferior before calling target_pid_to_str.
3791
3792 2020-08-28 Tom Tromey <tom@tromey.com>
3793
3794 * xcoffread.c (xcoff_end_psymtab): Update comment.
3795 * dbxread.c (dbx_end_psymtab): Update comment.
3796
3797 2020-08-28 Tom de Vries <tdevries@suse.de>
3798
3799 PR breakpoint/26544
3800 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3801 event_location.
3802 (create_breakpoint): Same.
3803 (base_breakpoint_decode_location): Same.
3804 (bkpt_create_sals_from_location): Same.
3805 (bkpt_decode_location): Same.
3806 (bkpt_probe_create_sals_from_location): Same.
3807 (bkpt_probe_decode_location): Same.
3808 (tracepoint_create_sals_from_location): Same.
3809 (tracepoint_decode_location): Same.
3810 (tracepoint_probe_decode_location): Same.
3811 (strace_marker_create_sals_from_location): Same.
3812 (strace_marker_decode_location): Same.
3813 (create_sals_from_location_default): Same.
3814 (decode_location_default): Same.
3815 * breakpoint.h (struct breakpoint_ops): Same.
3816 (create_breakpoint): Same.
3817 * linespec.h (decode_line_full): Same.
3818 * linespec.c (decode_line_full): Same. Throw error if
3819 result.size () == 0.
3820
3821 2020-08-27 Pedro Alves <pedro@palves.net>
3822
3823 PR gdb/26524
3824 * breakpoint.c (until_break_fsm) <location_breakpoint,
3825 caller_breakpoint>: Delete fields.
3826 <breakpoints>: New field.
3827 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3828 two individual breakpoints.
3829 (until_break_fsm::should_stop): Loop over breakpoints in the
3830 breakpoint vector.
3831 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3832 vector.
3833 (until_break_command): Handle location expanding into multiple
3834 sals.
3835
3836 2020-08-27 Pedro Alves <pedro@palves.net>
3837
3838 PR gdb/26523
3839 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3840 bp_until breakpoints user-specified locations. Update intro
3841 comment.
3842
3843 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3846 gdb_bfd_sections): New.
3847 * maint.c (print_bfd_section_info): Change param type to
3848 maint_print_section_data.
3849 (print_objfile_section_info): Likewise.
3850 (print_bfd_section_info_maybe_relocated): Likewise.
3851 (maintenance_info_sections): Use gdb_bfd_sections.
3852
3853 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3854
3855 * MAINTAINERS: Add ARC target and maintainer.
3856
3857 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3858
3859 * configure.tgt: ARC support for GNU/Linux.
3860 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3861 * arc-linux-tdep.c: New file.
3862 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3863 * arc-tdep.c (arc_write_pc): Use it.
3864
3865 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3866
3867 * arc-tdep.c (arc_check_for_hardware_loop): New.
3868 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3869
3870 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3871
3872 * arc-tdep.h: Include "gdbarch.h".
3873
3874 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3875
3876 * arch/arc.h
3877 (arc_gdbarch_features): New class to stir the selection of target XML.
3878 (arc_create_target_description): Use FEATURES to choose XML target.
3879 (arc_lookup_target_description): Use arc_create_target_description
3880 to create _new_ target descriptions or return the already created
3881 ones if the FEATURES is the same.
3882 * arch/arc.c: Implementation of prototypes described above.
3883 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3884 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3885 * arc-tdep.c (*_feature_name): Make feature names consistent.
3886 (arc_register_feature): A new struct to hold information about
3887 registers of a particular target/feature.
3888 (arc_check_tdesc_feature): Check if XML provides registers in
3889 compliance with ARC_REGISTER_FEATURE structs.
3890 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3891 (determine_*_reg_feature_set): Which feature name to look for.
3892 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3893 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3894 to expected ISA enums to be used in arc_gdbarch_features structs.
3895 * features/Makefile (FEATURE_XMLFILES): Add new files.
3896 * gdb/features/arc/v1-aux.c: New file.
3897 * gdb/features/arc/v1-aux.xml: Likewise.
3898 * gdb/features/arc/v1-core.c: Likewise.
3899 * gdb/features/arc/v1-core.xml: Likewise.
3900 * gdb/features/arc/v2-aux.c: Likewise.
3901 * gdb/features/arc/v2-aux.xml: Likewise.
3902 * gdb/features/arc/v2-core.c: Likewise.
3903 * gdb/features/arc/v2-core.xml: Likewise.
3904 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3905
3906 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3907 Andrew Burgess <andrew.burgess@embecosm.com>
3908
3909 PR m2/26372
3910 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3911 an assert. Remove single element array indexing pattern as the
3912 MULTI_SUBSCRIPT support will handle this case too.
3913
3914 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3915
3916 * value.h (valprint_check_validity): Move declaration from
3917 here...
3918 * valprint.h (valprint_check_validity): ... to here.
3919
3920 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * debug.h: New file.
3923 * debug.c (debug_prefixed_vprintf): New function.
3924 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3925 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3926
3927 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * infrun.h (infrun_debug_printf_1): New function declaration.
3930 (infrun_debug_printf): New macro.
3931 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3932 throughout.
3933 (infrun_debug_printf): New function.
3934 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3935 (handle_jit_event): Likewise.
3936
3937 2020-08-21 Mark Wielaard <mark@klomp.org>
3938
3939 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3940
3941 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3942
3943 * frame.c (enum class frame_id_status): New.
3944 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3945 (fprintf_frame): Update.
3946 (compute_frame_id): Set frame id status to "computing" on entry.
3947 Set it back to "not_computed" on failure and to "computed" on
3948 success.
3949 (get_frame_id): Assert the frame id is not being computed.
3950 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3951 (create_new_frame): Likewise.
3952 (frame_cleanup_after_sniffer): Update assert.
3953
3954 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3955
3956 * regcache.c (pid_ptid_regcache_map): New type.
3957 (target_ptid_regcache_map): Remove.
3958 (target_pid_ptid_regcache_map): New type.
3959 (regcaches): Change type to target_pid_ptid_regcache_map.
3960 (get_thread_arch_aspace_regcache): Update.
3961 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3962 case.
3963 (regcaches_size): Update.
3964 (regcache_count): Update.
3965 (registers_changed_ptid_target_pid_test): New.
3966 (_initialize_regcache): Register new test.
3967
3968 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 * regcache.c (regcache_count): New.
3971 (struct regcache_test_data): New.
3972 (regcache_test_data_up): New.
3973 (populate_regcaches_for_test): New.
3974 (regcaches_test): Remove.
3975 (get_thread_arch_aspace_regcache_test): New.
3976 (registers_changed_ptid_all_test): New.
3977 (registers_changed_ptid_target_test): New.
3978 (registers_changed_ptid_target_ptid_test): New.
3979 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3980 (_initialize_regcache): Register new tests.
3981
3982 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3985 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3986 gdbarch and aspace parameter. Use current inferior's aspace.
3987 Validate regcache's arch value.
3988 (regcaches_test): Update.
3989
3990 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3991
3992 * regcache.c (regcaches_test): Call registers_changed.
3993
3994 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3995
3996 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3997
3998 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3999
4000 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
4001 to find the end of prologue for flang compiled binaries.
4002 * arm-tdep.c (arm_skip_prologue): Likewise.
4003 * i386-tdep.c (i386_skip_prologue): Likewise.
4004 * producer.c (producer_is_llvm): New function.
4005 (producer_parsing_tests): Added new tests for clang/flang.
4006 * producer.h (producer_is_llvm): New declaration.
4007
4008 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * linux-nat.c (linux_nat_debug_printf): New function.
4011 (linux_nat_debug_printf_1): New macro. Use throughout the file.
4012
4013 2020-08-18 Aaron Merey <amerey@redhat.com>
4014
4015 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
4016 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
4017 (CLIBS): Add DEBUGINFOD_LIBS.
4018
4019 2020-08-17 Sergei Trofimovich <siarheit@google.com>
4020
4021 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
4022 'gdbarch_num_regs'.
4023
4024 2020-08-17 Tom Tromey <tromey@adacore.com>
4025
4026 * ada-varobj.c (ada_varobj_decode_var): Handle case where
4027 ada_get_decoded_value returns NULL.
4028
4029 2020-08-17 Tom Tromey <tromey@adacore.com>
4030
4031 * python/py-inferior.c (infpy_search_memory): Use
4032 gdb_py_object_from_ulongest.
4033 * python/py-infevents.c (create_inferior_call_event_object)
4034 (create_memory_changed_event_object): Use
4035 gdb_py_object_from_ulongest.
4036 * python/py-linetable.c (ltpy_entry_get_pc): Use
4037 gdb_py_object_from_ulongest.
4038
4039 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4040
4041 * loc.c (class symbol_needs_eval_context): Fix indentation.
4042
4043 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4044
4045 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4046 bool.
4047
4048 2020-08-17 Tom de Vries <tdevries@suse.de>
4049
4050 PR gdb/26393
4051 * gdbtypes.c (dump_dynamic_prop): New function.
4052 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4053
4054 2020-08-15 Tom de Vries <tdevries@suse.de>
4055
4056 PR backtrace/26390
4057 * stack.c (print_frame_args): Temporarily set the selected
4058 frame to FRAME while printing the frame's arguments.
4059
4060 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4061
4062 PR breakpoints/26385
4063 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4064 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4065
4066 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4067
4068 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4069 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4070 and >= to check return value instead of == -1 and != -1.
4071
4072 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * utils.h (class gdb_argv) <as_array_view>: New method.
4075 * utils.c (gdb_argv_as_array_view_test): New.
4076 (_initialize_utils): Register selftest.
4077 * maint.c (maintenance_selftest): Use the new method.
4078
4079 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4080
4081 * target.h (supports_dumpcore, dumpcore): New
4082 function declarations.
4083 * target.c (supports_dumpcore, dumpcore): New
4084 functions.
4085 * target-delegates.c: Rebuild.
4086 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4087 and target_dumpcore ().
4088
4089 2020-08-13 Aaron Merey <amerey@redhat.com>
4090
4091 * debuginfod-support.c: Replace global variables with user_data.
4092
4093 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * maint.c (maintenance_selftest): Split args and pass array_view
4096 to run_tests.
4097
4098 2020-08-12 Luis Machado <luis.machado@linaro.org>
4099
4100 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4101 type's length.
4102 Use %s and pulongest to print the length.
4103
4104 2020-08-12 Pedro Alves <palves@redhat.com>
4105
4106 * NEWS: Move "Multi-target debugging support" item to the
4107 "Changes since GDB 9" section.
4108
4109 2020-08-12 Pedro Alves <palves@redhat.com>
4110
4111 PR gdb/26336
4112 * progspace.c (program_space::remove_objfile): Invalidate the
4113 frame cache.
4114
4115 2020-08-11 Tom de Vries <tdevries@suse.de>
4116
4117 * MAINTAINERS: Mark ms1 as deleted.
4118
4119 2020-08-10 Luis Machado <luis.machado@linaro.org>
4120
4121 PR gdb/26310
4122
4123 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4124 act accordingly.
4125 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4126 movz/str/stur/stp skipping behavior.
4127
4128 2020-08-10 Luis Machado <luis.machado@linaro.org>
4129
4130 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4131 struct user_sve_header instead of struct sve_context.
4132
4133 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4134
4135 * read.h (dwarf2_fetch_die_loc_sect_off,
4136 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4137 `void *` parameter with function_view.
4138 * read.c (dwarf2_fetch_die_loc_sect_off,
4139 dwarf2_fetch_die_loc_cu_off): Likewise.
4140 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4141 (per_cu_dwarf_call): Adjust.
4142 (get_frame_address_in_block_wrapper): Remove.
4143 (indirect_synthetic_pointer): Adjust.
4144 (get_ax_pc): Remove.
4145 (dwarf2_compile_expr_to_ax): Adjust.
4146
4147 2020-08-08 Tom de Vries <tdevries@suse.de>
4148
4149 PR build/26344
4150 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4151 constructor.
4152 * regcache.c (get_thread_arch_aspace_regcache): Same.
4153
4154 2020-08-07 Tom Tromey <tromey@adacore.com>
4155
4156 * ravenscar-thread.c
4157 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4158 New method.
4159 (ravenscar_thread_target::wait): Check
4160 runtime_initialized.
4161 (ravenscar_thread_target::prepare_to_store)
4162 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4163 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4164 (ravenscar_thread_target::stopped_by_watchpoint)
4165 (ravenscar_thread_target::stopped_data_address)
4166 (ravenscar_thread_target::core_of_thread): Use
4167 scoped_restore_current_thread and
4168 set_base_thread_from_ravenscar_task.
4169
4170 2020-08-07 Tom Tromey <tromey@adacore.com>
4171
4172 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4173
4174 2020-08-07 Tom Tromey <tromey@adacore.com>
4175
4176 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4177 update_inferior_ptid before update_thread_list.
4178 (temporarily_change_regcache_ptid): New class.
4179 (ravenscar_thread_target::fetch_registers)
4180 (ravenscar_thread_target::store_registers)
4181 (ravenscar_thread_target::prepare_to_store): Use base thread when
4182 forwarding operation.
4183
4184 2020-08-07 Tom Tromey <tromey@adacore.com>
4185
4186 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4187 "is_pid" case.
4188
4189 2020-08-07 Tom Tromey <tromey@adacore.com>
4190
4191 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4192 New methods.
4193 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4194 first.
4195 (ravenscar_thread_target::add_thread): Rename from
4196 ravenscar_add_thread.
4197 (ravenscar_thread_target::update_thread_list): Use a lambda.
4198 (ravenscar_thread_target::xfer_partial): New method.
4199
4200 2020-08-07 Tom Tromey <tromey@adacore.com>
4201
4202 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4203 gdb::function_view.
4204 (iterate_over_live_ada_tasks): Change type of argument.
4205 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4206 of argument.
4207
4208 2020-08-07 Tom Tromey <tromey@adacore.com>
4209
4210 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4211 Remove.
4212 (ravenscar_thread_target::extra_thread_info): Remove.
4213 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4214 defer to target beneath for non-Ravenscar threads.
4215
4216 2020-08-07 Tom Tromey <tromey@adacore.com>
4217
4218 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4219 get_base_thread_from_ravenscar_task>: Now methods.
4220 <m_cpu_map>: New member.
4221 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4222 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4223 (ravenscar_thread_target::task_is_currently_active): Update.
4224 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4225 Now a method.
4226 (ravenscar_thread_target::add_active_thread): Put initial thread
4227 into the m_cpu_map.
4228
4229 2020-08-07 Tom Tromey <tromey@adacore.com>
4230
4231 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4232 event_ptid.
4233
4234 2020-08-07 Tom Tromey <tromey@adacore.com>
4235
4236 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4237 runtime_initialized.
4238
4239 2020-08-07 Tom Tromey <tromey@adacore.com>
4240
4241 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4242 add_active_thread.
4243 (ravenscar_thread_target::add_active_thread): Now public.
4244 (ravenscar_inferior_created): Call add_active_thread after pushing
4245 the target.
4246
4247 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4248
4249 * regcache.c (ptid_regcache_map): New type.
4250 (target_ptid_regcache_map): New type.
4251 (regcaches): Change type to target_ptid_regcache_map.
4252 (get_thread_arch_aspace_regcache): Update to regcaches' new
4253 type.
4254 (regcache_thread_ptid_changed): Likewise.
4255 (registers_changed_ptid): Likewise.
4256 (regcaches_size): Likewise.
4257 (regcaches_test): Update.
4258 (regcache_thread_ptid_changed): Update.
4259 * regcache.h (regcache_up): New type.
4260 * gdbsupport/ptid.h (hash_ptid): New struct.
4261
4262 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * observable.h (thread_ptid_changed): Add parameter
4265 `process_stratum_target *`.
4266 * infrun.c (infrun_thread_ptid_changed): Add parameter
4267 `process_stratum_target *` and use it.
4268 (selftests): New namespace.
4269 (infrun_thread_ptid_changed): New function.
4270 (_initialize_infrun): Register selftest.
4271 * regcache.c (regcache_thread_ptid_changed): Add parameter
4272 `process_stratum_target *` and use it.
4273 (regcache_thread_ptid_changed): New function.
4274 (_initialize_regcache): Register selftest.
4275 * thread.c (thread_change_ptid): Pass target to
4276 thread_ptid_changed observable.
4277
4278 2020-08-06 Caroline Tice <cmtice@google.com>
4279
4280 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4281 (struct dwp_sections): Update field comments. Add loclists and
4282 rnglists fields.
4283 (struct virtual_v2_dwo_sections): Rename struct to
4284 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4285 size & offset fields for loclists and rnglists.
4286 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4287 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4288 skipping dummy type units.
4289 (create_dwp_hash_table): Update the large comment above the function to
4290 discuss Version 5 DWP files as well, with references. Update all the
4291 version checks in the function to check for version 5 as well. Add new
4292 section at the end to create dwp hash table for version 5.
4293 (create_dwp_v2_section): Rename function to
4294 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4295 Add V5 to error message text.
4296 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4297 into calls to create_dwp_v2_or_v5_section.
4298 (create_dwo_unit_in_dwp_v5): New function.
4299 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4300 check for version2; add else clause to handle version 5.
4301 (open_and_init_dwo_file): Add code to check dwarf version & only call
4302 create_debug_types_hash_table (with sections.types) if version is not 5;
4303 else call create_debug_type_hash_table, with sections.info.
4304 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4305 version 5.
4306 (dwarf2_locate_v5_dwp_sections): New function.
4307 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4308 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4309
4310 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * regcache.h (class regcache): Remove friend
4313 registers_changed_ptid.
4314 <regcache_thread_ptid_changed>: Remove.
4315 <regcaches>: Remove.
4316 * regcache.c (regcache::regcaches): Rename to...
4317 (regcaches): ... this. Make static.
4318 (get_thread_arch_aspace_regcache): Update.
4319 (regcache::regcache_thread_ptid_changed): Rename to...
4320 (regcache_thread_ptid_changed): ... this. Update.
4321 (class regcache_access): Remove.
4322 (regcaches_test): Update.
4323 (_initialize_regcache): Update.
4324 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4325 <forward_list>.
4326
4327 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * regcache.h (class regcache) <current_regcache>: Rename to...
4330 <regcaches>: ... this. Move doc here.
4331 * regcache.c (regcache::current_regcache) Rename to...
4332 (regcache::regcaches): ... this. Move doc to header.
4333 (get_thread_arch_aspace_regcache): Update.
4334 (regcache::regcache_thread_ptid_changed): Update.
4335 (registers_changed_ptid): Update.
4336 (class regcache_access) <current_regcache_size>: Rename to...
4337 <regcaches_size>: ... this.
4338 (current_regcache_test): Rename to...
4339 (regcaches_test): ... this.
4340 (_initialize_regcache): Update.
4341
4342 2020-08-06 Victor Collod <vcollod@nvidia.com>
4343
4344 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4345
4346 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4347
4348 * corelow.c (core_target::build_file_mappings): Don't output
4349 null pathname in warning.
4350
4351 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4352
4353 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4354 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4355 gdb.dwarf2/dw2-single-line-discriminators.exp,
4356 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4357
4358 2020-08-05 Tom Tromey <tromey@adacore.com>
4359
4360 PR rust/26197:
4361 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4362 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4363 Fix off-by-one and type size errors in ordinary case.
4364
4365 2020-08-05 Tom de Vries <tdevries@suse.de>
4366
4367 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4368 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4369
4370 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4371
4372 * frame.h (frame_id_p): Return bool.
4373 (frame_id_artificial_p): Return bool.
4374 (frame_id_eq): Return bool.
4375 (has_stack_frames): Return bool.
4376 (get_selected_frame): Fix typo in comment.
4377 (get_frame_pc_if_available): Return bool.
4378 (get_frame_address_in_block_if_available): Return bool.
4379 (get_frame_func_if_available): Return bool.
4380 (read_frame_register_unsigned): Return bool.
4381 (get_frame_register_bytes): Return bool.
4382 (safe_frame_unwind_memory): Return bool.
4383 (deprecated_frame_register_read): Return bool.
4384 (frame_unwinder_is): Return bool.
4385 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4386 bool.
4387 <this_id::p>: Likewise.
4388 <prev_p>: Likewise.
4389 (frame_stash_add): Return bool.
4390 (get_frame_id): Use bool.
4391 (frame_id_build_special) Use bool.
4392 (frame_id_build_unavailable_stack): Use bool.
4393 (frame_id_build): Use bool.
4394 (frame_id_p): Return bool, use true/false instead of 1/0.
4395 (frame_id_artificial_p): Likewise.
4396 (frame_id_eq): Likewise.
4397 (frame_id_inner): Likewise.
4398 (get_frame_func_if_available): Likewise.
4399 (read_frame_register_unsigned): Likewise.
4400 (deprecated_frame_register_read): Likewise.
4401 (get_frame_register_bytes): Likewise.
4402 (has_stack_frames): Likewise.
4403 (inside_main_func): Likewise.
4404 (inside_entry_func): Likewise.
4405 (get_frame_pc_if_available): Likewise.
4406 (get_frame_address_in_block_if_available): Likewise.
4407 (frame_unwinder_is): Likewise.
4408 (safe_frame_unwind_memory): Likewise.
4409 (frame_unwind_arch): Likewise.
4410
4411 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4414 type to cached_copy_status.
4415 (fprintf_frame): Adjust.
4416 (get_frame_func_if_available): Adjust.
4417 (frame_cleanup_after_sniffer): Adjust.
4418
4419 2020-08-04 Mark Wielaard <mark@klomp.org>
4420
4421 * MAINTAINERS (Write After Approval): Update email address.
4422
4423 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4426 dynamic_prop::const_val.
4427
4428 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4429
4430 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4431 dynamic_prop::kind.
4432
4433 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4436
4437 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4438
4439 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4440
4441 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4442 Jose E. Marchesi <jose.marchesi@oracle.com>
4443
4444 * configure.tgt: Add entry for bpf-*-*.
4445 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4446 (ALLDEPFILES): Add bpf-tdep.c.
4447 * bpf-tdep.c: New file.
4448 * MAINTAINERS: Add bpf target and maintainer.
4449 * NEWS: Mention the support for the new target.
4450
4451 2020-08-04 Tom de Vries <tdevries@suse.de>
4452
4453 PR symtab/23270
4454 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4455 Error.
4456
4457 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4458
4459 * syscalls/freebsd.xml: Regenerate.
4460
4461 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4462
4463 * syscalls/update-freebsd.sh: Fix usage and year range.
4464
4465 2020-08-03 Tom de Vries <tdevries@suse.de>
4466
4467 PR symtab/26333
4468 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4469 DW_LNE_lo_user/DW_LNE_hi_user range.
4470
4471 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4472
4473 PR ada/26318
4474 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4475 kind.
4476
4477 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4478
4479 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4480
4481 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4482
4483 * breakpoint.c (set_breakpoint_condition): Update the condition
4484 expressions after checking that the input condition string parses
4485 successfully and does not contain junk at the end.
4486
4487 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4488
4489 * breakpoint.c (set_breakpoint_condition): Update the
4490 condition string after parsing the new condition successfully.
4491
4492 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4493
4494 * proc-api.c (_STRUCTURED_PROC): Don't define.
4495 * proc-events.c: Likewise.
4496 * proc-flags.c: Likewise.
4497 * proc-why.c: Likewise.
4498 * procfs.c: Likewise.
4499
4500 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4501 * configure, config.in: Regenerate.
4502
4503 2020-07-30 Tom de Vries <tdevries@suse.de>
4504
4505 PR build/26320
4506 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4507 m_red/m_green/m_blue in a union.
4508
4509 2020-07-29 Tom de Vries <tdevries@suse.de>
4510
4511 PR tdep/26280
4512 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4513
4514 2020-07-28 Tom Tromey <tromey@adacore.com>
4515
4516 PR symtab/26270:
4517 * symtab.h (find_pc_partial_function_sym): Declare.
4518 * cli/cli-cmds.c (disassemble_command): Use
4519 find_pc_partial_function_sym. Check asm_demangle.
4520 * blockframe.c (cache_pc_function_sym): New global.
4521 (cache_pc_function_name): Remove.
4522 (clear_pc_function_cache): Update.
4523 (find_pc_partial_function_sym): New function, from
4524 find_pc_partial_function.
4525 (find_pc_partial_function): Rewrite using
4526 find_pc_partial_function_sym.
4527
4528 2020-07-28 Tom Tromey <tromey@adacore.com>
4529
4530 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4531 help. Add usage.
4532
4533 2020-07-28 Tom Tromey <tromey@adacore.com>
4534
4535 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4536 <DW_OP_GNU_variable_value>: Cast to address type.
4537
4538 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4539
4540 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4541 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4542 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4543 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4544 (nbsd_get_siginfo_type): New.
4545 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4546 (_initialize_nbsd_tdep): New.
4547
4548 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4549
4550 PR binutils/26301
4551 * configure: Regenerated.
4552
4553 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4554
4555 PR binutils/26301
4556 * configure: Regenerated.
4557
4558 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4559
4560 * python/py-frame.c: Remove 'user-regs.h' include.
4561 (frapy_read_register): Rewrite to make use of
4562 gdbpy_parse_register_id.
4563 * python/py-registers.c (gdbpy_parse_register_id): New function,
4564 moved here from python/py-unwind.c. Updated the return type, and
4565 also accepts register descriptor objects.
4566 * python/py-unwind.c: Remove 'user-regs.h' include.
4567 (pyuw_parse_register_id): Moved to python/py-registers.c.
4568 (unwind_infopy_add_saved_register): Update to use
4569 gdbpy_parse_register_id.
4570 (pending_framepy_read_register): Likewise.
4571 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4572
4573 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 * python/py-registers.c: Add 'user-regs.h' include.
4576 (register_descriptor_iter_find): New function.
4577 (register_descriptor_iterator_object_methods): New static global
4578 methods array.
4579 (register_descriptor_iterator_object_type): Add pointer to methods
4580 array.
4581
4582 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4583
4584 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4585 for all architectures on FreeBSD 11.3 and later.
4586
4587 2020-07-27 Tom Tromey <tromey@adacore.com>
4588
4589 * gcore.h (load_corefile): Don't declare.
4590
4591 2020-07-27 Tom de Vries <tdevries@suse.de>
4592
4593 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4594 * config.in: Regenerate.
4595 * configure: Regenerate.
4596
4597 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4598
4599 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4600 ws2tcpip.h. When checking whether socklen_t type is defined, use
4601 ws2tcpip.h if it is available and sys/socket.h isn't.
4602 * configure: Regenerate.
4603 * config.in: Regenerate.
4604
4605 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4606
4607 PR fortran/23051
4608 PR fortran/26139
4609 * valops.c (value_ind): Pass address to
4610 readjust_indirect_value_type.
4611 * value.c (readjust_indirect_value_type): Make parameter
4612 non-const, and add extra address parameter. Resolve original type
4613 before using it.
4614 * value.h (readjust_indirect_value_type): Update function
4615 signature and comment.
4616
4617 2020-07-25 Tom de Vries <tdevries@suse.de>
4618
4619 PR symtab/26243
4620 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4621 entries.
4622
4623 2020-07-24 Aaron Merey <amerey@redhat.com>
4624
4625 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4626 * configure: Rebuild.
4627
4628 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4629
4630 PR corefiles/26294
4631 * corelow.c (_initialize_corelow): Add period to help text
4632 for "maintenance print core-file-backed-mappings".
4633
4634 2020-07-23 Pedro Alves <pedro@palves.net>
4635
4636 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4637 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4638 meanwhile.
4639 * frame.c (frame_cache_generation, get_frame_cache_generation):
4640 New.
4641 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4642 (get_prev_frame_if_no_cycle): On exception, don't touch
4643 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4644 * frame.h (get_frame_cache_generation): Declare.
4645
4646 2020-07-23 Tom de Vries <tdevries@suse.de>
4647
4648 PR tui/26282
4649 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4650 New default constructor.
4651
4652 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4653
4654 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4655 exclude non-statement entries.
4656
4657 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4658
4659 * NEWS (New commands): Mention new command
4660 "maintenance print core-file-backed-mappings".
4661
4662 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4663
4664 * corelow.c (gdbcmd.h): Include.
4665 (core_target::info_proc_mappings): New method.
4666 (get_current_core_target): New function.
4667 (maintenance_print_core_file_backed_mappings): New function.
4668 (_initialize_corelow): Add core-file-backed-mappings to
4669 "maint print" commands.
4670
4671 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4672
4673 * linux-tdep.c (dump_note_entry_p): New function.
4674 (linux_dump_mapping_p_ftype): New typedef.
4675 (linux_find_memory_regions_full): Add new parameter,
4676 should_dump_mapping_p.
4677 (linux_find_memory_regions): Adjust call to
4678 linux_find_memory_regions_full.
4679 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4680 call to linux_find_memory_regions_full.
4681
4682 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4683
4684 * corelow.c (solist.h, unordered_map): Include.
4685 (class core_target): Add field m_core_file_mappings and
4686 method build_file_mappings.
4687 (core_target::core_target): Call build_file_mappings.
4688 (core_target::~core_target): Free memory associated with
4689 m_core_file_mappings.
4690 (core_target::build_file_mappings): New method.
4691 (core_target::xfer_partial): Use m_core_file_mappings
4692 for memory transfers.
4693 * linux-tdep.c (linux_read_core_file_mappings): New
4694 function.
4695 (linux_core_info_proc_mappings): Rewrite to use
4696 linux_read_core_file_mappings.
4697 (linux_init_abi): Register linux_read_core_file_mappings.
4698
4699 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4700
4701 * arch-utils.c (default_read_core_file_mappings): New function.
4702 * arch-utils.c (default_read_core_file_mappings): Declare.
4703 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4704 * gdbarch.h, gdbarch.c: Regenerate.
4705
4706 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4707
4708 PR corefiles/25631
4709 * corelow.c (core_target:xfer_partial): Revise
4710 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4711 case after first checking the stratum beneath the core
4712 target.
4713 (has_all_memory): Return true.
4714 * target.c (raw_memory_xfer_partial): Revise comment
4715 regarding use of has_all_memory.
4716
4717 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4718
4719 * exec.h (section_table_xfer_memory): Revise declaration,
4720 replacing section name parameter with an optional callback
4721 predicate.
4722 * exec.c (section_table_xfer_memory): Likewise.
4723 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4724 of section_table_xfer_memory.
4725
4726 2020-07-22 Tom Tromey <tromey@adacore.com>
4727
4728 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4729 lookup_symbol_search_name.
4730
4731 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4734 redundant local variable.
4735 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4736 reference, not pointer, update code accordingly.
4737
4738 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4739 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4740
4741 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4742 * jit.c (jit_breakpoint_re_set_internal): Use the
4743 `skip_jit_symbol_lookup` field.
4744
4745 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4746 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4747
4748 * jit.c (jit_read_descriptor): Define the descriptor address once,
4749 use twice.
4750 (jit_breakpoint_deleted): Move the declaration of the loop variable
4751 `iter` into the loop header.
4752 (jit_breakpoint_re_set_internal): Move the declaration of the local
4753 variable `objf_data` to the first point of definition.
4754 (jit_event_handler): Move the declaration of local variables
4755 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4756 Rename `objf` to `jited`.
4757
4758 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4761 Remove.
4762 * jit.c (get_jiter_objfile_data): Update.
4763
4764 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4765 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * jit.c (struct jit_program_space_data): Remove.
4768 (jit_program_space_key): Remove.
4769 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4770 stuff.
4771 (get_jit_program_space_data): Remove.
4772 (jit_breakpoint_deleted): Iterate on all of the program space's
4773 objfiles.
4774 (jit_inferior_init): Likewise.
4775 (jit_breakpoint_re_set_internal): Likewise. Also change return
4776 type to void.
4777 (jit_breakpoint_re_set): Pass current_program_space to
4778 jit_breakpoint_re_set_internal.
4779
4780 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * jit.h (struct jiter_objfile_data) <cached_code_address,
4783 jit_breakpoint>: Move to here from ...
4784 * jit.c (jit_program_space_data): ... here.
4785 (jiter_objfile_data::~jiter_objfile_data): Update.
4786 (jit_breakpoint_deleted): Update.
4787 (jit_breakpoint_re_set_internal): Update.
4788
4789 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4790
4791 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4792 checks.
4793 (jit_read_descriptor): Remove NULL check.
4794 (jit_event_handler): Add an assertion.
4795
4796 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * jit.h (struct jit_objfile_data): Split into...
4799 (struct jiter_objfile_data): ... this ...
4800 (struct jited_objfile_data): ... and this.
4801 * objfiles.h (struct objfile) <jit_data>: Remove.
4802 <jiter_data, jited_data>: New fields.
4803 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4804 (jiter_objfile_data::~jiter_objfile_data): ... this.
4805 (get_jit_objfile_data): Rename to ...
4806 (get_jiter_objfile_data): ... this.
4807 (add_objfile_entry): Update.
4808 (jit_read_descriptor): Use get_jiter_objfile_data.
4809 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4810 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4811 (jit_inferior_exit_hook): Use objfile's jited_data field.
4812
4813 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4814
4815 * jit.h: Forward-declare `struct minimal_symbol`.
4816 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4817 constructor, destructor, and an objfile* field.
4818 * jit.c (jit_objfile_data): Remove.
4819 (struct jit_objfile_data): Migrate from here to jit.h.
4820 (jit_objfile_data::~jit_objfile_data): New destructor
4821 implementation with code moved from free_objfile_data.
4822 (free_objfile_data): Delete.
4823 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4824 (jit_find_objf_with_entry_addr): Ditto.
4825 (jit_inferior_exit_hook): Ditto.
4826 (_initialize_jit): Remove the call to
4827 register_objfile_data_with_cleanup.
4828 * objfiles.h (struct objfile) <jit_data>: New field.
4829
4830 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4831
4832 * jit.h: Forward-declare `struct objfile`.
4833 (jit_event_handler): Add a second parameter, the JITer objfile.
4834 * jit.c (jit_read_descriptor): Change the signature to take the
4835 JITer objfile as an argument instead of the jit_program_space_data.
4836 (jit_inferior_init): Update the call to jit_read_descriptor.
4837 (jit_event_handler): Use the new JITer objfile argument when calling
4838 jit_read_descriptor.
4839 * breakpoint.c (handle_jit_event): Update the call to
4840 jit_event_handler to pass the JITer objfile.
4841
4842 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4843
4844 * gdbarch.c: Regenerate.
4845 * gdbarch.h: Regenerate.
4846 * gdbarch.sh (handle_segmentation_fault): Remove method.
4847 * infrun.c (handle_segmentation_fault): Remove.
4848 (print_signal_received_reason): Remove call to
4849 handle_segmentation_fault.
4850
4851 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4852
4853 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4854 Rename to sparc64_linux_report_signal_info and add siggnal
4855 argument.
4856 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4857 instead of sparc64_linux_handle_segmentation_fault.
4858
4859 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4860
4861 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4862 i386_linux_report_signal_info instead of
4863 i386_linux_handle_segmentation_fault.
4864 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4865 to i386_linux_report_signal_info and add siggnal argument.
4866 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4867 of i386_linux_handle_segmentation_fault.
4868 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4869 to i386_linux_report_signal_info and add siggnal argument.
4870
4871 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4872
4873 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4874 hook if present.
4875
4876 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4877
4878 * gdbarch.c: Regenerate.
4879 * gdbarch.h: Regenerate.
4880 * gdbarch.sh (report_signal_info): New method.
4881 * infrun.c (print_signal_received_reason): Invoke gdbarch
4882 report_signal_info hook if present.
4883
4884 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4885
4886 * python/py-registers.c : Add 'unordered_map' include.
4887 (gdbpy_new_reggroup): Renamed to...
4888 (gdbpy_get_reggroup): ...this. Update to only create register
4889 group descriptors when needed.
4890 (gdbpy_reggroup_iter_next): Update.
4891
4892 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 * python/py-registers.c (gdbpy_register_object_data): New static
4895 global.
4896 (gdbpy_register_object_data_init): New function.
4897 (gdbpy_new_register_descriptor): Renamed to...
4898 (gdbpy_get_register_descriptor): ...this, and update to reuse
4899 existing register descriptors where possible.
4900 (gdbpy_register_descriptor_iter_next): Update.
4901 (gdbpy_initialize_registers): Register new gdbarch data.
4902
4903 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * linux-nat.c (stopped_pids): Make static.
4906
4907 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4908
4909 PR ada/26235
4910 * gdbtypes.c (ada_discrete_type_low_bound,
4911 ada_discrete_type_high_bound): Handle undefined bounds.
4912
4913 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4914
4915 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4916 declaration.
4917 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4918 function.
4919
4920 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4921
4922 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4923 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4924 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4925 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4926 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4927 method.
4928
4929 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4930
4931 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4932 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4933 which are deprecated in Guile 3.0.
4934 * configure.ac (try_guile_versions): Add "guile-3.0".
4935 * configure (try_guile_versions): Regenerate.
4936 * NEWS: Update entry.
4937
4938 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4939 Doug Evans <dje@google.com>
4940
4941 PR gdb/21104
4942 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4943 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4944 USING_GUILE_BEFORE_2_2.
4945 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4946 Change type to 'scm_t_port_type *'.
4947 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4948 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4949 parameter and honor it. Update callers.
4950 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4951 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4952 functions.
4953 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4954 USING_GUILE_BEFORE_2_2.
4955 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4956 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4957 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4958 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4959 and 'SCM_PORT_TYPE'.
4960 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4961 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4962 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4963 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4964 [!USING_GUILE_BEFORE_2_2]: New functions.
4965 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4966 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4967 'gdbscm_memory_port_read'.
4968 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4969 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4970 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4971 function.
4972 (ioscm_init_memory_port): Remove.
4973 (ioscm_init_memory_port_stream): New function
4974 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4975 function.
4976 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4977 Return scm_from_uint (0).
4978 (gdbscm_set_memory_port_read_buffer_size_x)
4979 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4980 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4981 Return scm_from_uint (0).
4982 (gdbscm_set_memory_port_write_buffer_size_x)
4983 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4984 * configure.ac (try_guile_versions): Add "guile-2.2".
4985 * configure: Regenerate.
4986 * NEWS: Add entry.
4987
4988 2020-07-18 Tom Tromey <tom@tromey.com>
4989
4990 * linux-nat.c (linux_multi_process): Remove.
4991 (linux_nat_target::supports_multi_process): Return true.
4992
4993 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4994
4995 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4996 (riscv_lookup_target_description): Return pointer out of
4997 unique_ptr.
4998 * target-descriptions.c (allocate_target_description): Add
4999 comment.
5000 (target_desc_deleter::operator()): Likewise.
5001 * target-descriptions.h (struct target_desc_deleter): Moved to
5002 gdbsupport/tdesc.h.
5003 (target_desc_up): Likewise.
5004
5005 2020-07-17 Tom Tromey <tromey@adacore.com>
5006
5007 * linux-nat.c (linux_nat_target::supports_non_stop)
5008 (linux_nat_target::always_non_stop_p): Use "true".
5009 (linux_nat_target::supports_disable_randomization): Use "true" and
5010 "false".
5011
5012 2020-07-16 Caroline Tice <cmtice@google.com>
5013
5014 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
5015 (RNGLIST_HEADER_SIZE64): New constant definition.
5016 (struct dwop_section_names): Add rnglists_dwo.
5017 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
5018 (struct loclist_header): Rename to 'loclists_rnglists_header'.
5019 (struct dwo_sections): Add rnglists field.
5020 (read_attribut_reprocess): Add tag parameter.
5021 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
5022 (cu_debug_rnglists_section): New function (decl & definition).
5023 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
5024 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
5025 die whose range is being checked; get rnglist section from
5026 cu_debug_rnglists_section, to get from either objfile or dwo file as
5027 appropriate. Add cases for DW_RLE_base_addressx,
5028 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
5029 the base address to DW_RLE_offset_pairs (not to all ranges), moving
5030 test inside if-condition and updating complaint message.
5031 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
5032 dwarf2_rnglists_process.
5033 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
5034 dwarf2_ranges_process.
5035 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
5036 need_ranges_base and update comment appropriately. Also pass die tag
5037 to dwarf2_ranges_read.
5038 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5039 need_ranges_base and update comment appropriately. Also pass die tag
5040 to dwarf2_ranges_process.
5041 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5042 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5043 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5044 need_ranges_base and update comment appropriately. Also pass die tag
5045 to read_attribute_reprocess and dwarf2_ranges_read.
5046 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5047 and update function comment appropriately.
5048 (read_loclist_index): Call read_loclists_rnglists_header instead of
5049 read_loclist_header.
5050 (read_rnglist_index): New function.
5051 (read_attribute_reprocess): Add tag parameter. Add code for
5052 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5053 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5054
5055 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5058 being resolved.
5059
5060 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * arch-utils.c (show_architecture): Update formatting of messages.
5063
5064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (struct type) <bounds>: Handle array and string
5067 types.
5068 * ada-lang.c (assign_aggregate): Use type::bounds on
5069 array/string type.
5070 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5071 * c-varobj.c (c_number_of_children): Likewise.
5072 (c_describe_child): Likewise.
5073 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5074 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5075 (f_type_print_base): Likewise.
5076 * f-valprint.c (f77_array_offset_tbl): Likewise.
5077 (f77_get_upperbound): Likewise.
5078 (f77_print_array_1): Likewise.
5079 * guile/scm-type.c (gdbscm_type_range): Likewise.
5080 * m2-typeprint.c (m2_array): Likewise.
5081 (m2_is_long_set_of_type): Likewise.
5082 * m2-valprint.c (get_long_set_bounds): Likewise.
5083 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5084 * python/py-type.c (typy_range): Likewise.
5085 * rust-lang.c (rust_internal_print_type): Likewise.
5086 * type-stack.c (type_stack::follow_types): Likewise.
5087 * valarith.c (value_subscripted_rvalue): Likewise.
5088 * valops.c (value_cast): Likewise.
5089
5090 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5091
5092 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5093 callers to use the equivalent accessor methods.
5094
5095 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5098 (struct type) <bit_stride>: New method.
5099 (TYPE_BIT_STRIDE): Remove.
5100 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5101
5102 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5105 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5106 callers to use the equivalent accessor methods instead.
5107
5108 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5111 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5112 callers to use the equivalent accessor methods instead.
5113
5114 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5117 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5118 to use dynamic_prop::kind.
5119
5120 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5123 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5124 to get the bound property's kind and check against
5125 PROP_UNDEFINED.
5126
5127 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5130 all callers to use type::range_bounds followed by
5131 dynamic_prop::{low,high}.
5132
5133 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5136 const_val, set_const_val, baton, set_locexpr, set_loclist,
5137 set_addr_offset, variant_parts, set_variant_parts,
5138 original_type, set_original_type>: New methods.
5139 <kind>: Rename to...
5140 <m_kind>: ... this. Update all users to use the new methods
5141 instead.
5142 <data>: Rename to...
5143 <m_data>: ... this. Update all users to use the new methods
5144 instead.
5145
5146 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * gdbtypes.c (get_discrete_bounds): Return failure if
5149 the range type's bounds are not both defined and constant
5150 values.
5151 (get_array_bounds): Update comment. Remove undefined bound check.
5152
5153 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5156 the type::bounds method directly.
5157
5158 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5161 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5162 are used to set the range type's bounds to use set_bounds.
5163
5164 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5165
5166 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5167
5168 2020-07-10 Pedro Alves <pedro@palves.net>
5169
5170 * gdbthread.h (inferior_ref): Define.
5171 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5172 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5173 * thread.c
5174 (scoped_restore_current_thread::restore):
5175 Adjust to gdb::ref_ptr.
5176 (scoped_restore_current_thread::~scoped_restore_current_thread):
5177 Remove manual decref handling.
5178 (scoped_restore_current_thread::scoped_restore_current_thread):
5179 Adjust to use
5180 inferior_ref::new_reference/thread_info_ref::new_reference.
5181 Incref the thread before calling get_frame_id instead of after.
5182 Let TARGET_CLOSE_ERROR propagate.
5183
5184 2020-07-10 Pedro Alves <pedro@palves.net>
5185
5186 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5187 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5188 NOT_AVAILABLE_ERROR.
5189 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5190 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5191
5192 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5193 Pedro Alves <pedro@palves.net>
5194
5195 PR gdb/26199
5196 * infrun.c (threads_are_resumed_pending_p): Delete.
5197 (do_target_wait): Remove threads_are_executing and
5198 threads_are_resumed_pending_p checks from the inferior_matches
5199 lambda. Update comments.
5200
5201 2020-07-10 Pedro Alves <pedro@palves.net>
5202
5203 PR gdb/26199
5204 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5205 executing threads.
5206
5207 2020-07-10 Pedro Alves <pedro@palves.net>
5208
5209 PR gdb/26199
5210 * infrun.c (handle_no_resumed): Handle multiple targets.
5211
5212 2020-07-10 Pedro Alves <pedro@palves.net>
5213
5214 PR gdb/26199
5215 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5216 target_is_async_p.
5217
5218 2020-07-10 Pedro Alves <pedro@palves.net>
5219
5220 PR gdb/26199
5221 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5222 threads, not all threads.
5223
5224 2020-07-10 Pedro Alves <pedro@palves.net>
5225
5226 PR gdb/26199
5227 * remote.c (remote_target::open_1): Pass remote target pointer as
5228 data to create_async_event_handler.
5229 (remote_async_inferior_event_handler): Mark async event handler
5230 before returning if the remote target still has either pending
5231 events or unacknowledged notifications.
5232
5233 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5234
5235 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5236 declaration.
5237 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5238 function.
5239
5240 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5241
5242 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5243 inferior_ptid.
5244
5245 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5246
5247 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5248 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5249 AT_FREEBSD_PS_STRINGS.
5250
5251 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5252
5253 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5254 of debugfile path on Windows.
5255
5256 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5257
5258 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5259 argument to 'data'.
5260
5261 2020-07-08 Tom Tromey <tromey@adacore.com>
5262
5263 * ada-lang.c (ada_exception_message_1): Use read_memory.
5264
5265 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 PR python/22748
5268 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5269 special handling for inline frames.
5270 * findvar.c (value_of_register_lazy): Skip inline frames when
5271 creating lazy register values.
5272 * frame.c (frame_id_computed_p): Delete definition.
5273 * frame.h (frame_id_computed_p): Delete declaration.
5274
5275 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * NEWS: Mention additions to Python API.
5278 * python/py-arch.c (archpy_register_groups): New function.
5279 (arch_object_methods): Add 'register_groups' method.
5280 * python/py-registers.c (reggroup_iterator_object): New struct.
5281 (reggroup_object): New struct.
5282 (gdbpy_new_reggroup): New function.
5283 (gdbpy_reggroup_to_string): New function.
5284 (gdbpy_reggroup_name): New function.
5285 (gdbpy_reggroup_iter): New function.
5286 (gdbpy_reggroup_iter_next): New function.
5287 (gdbpy_new_reggroup_iterator): New function
5288 (gdbpy_initialize_registers): Register new types.
5289 (reggroup_iterator_object_type): Define new Python type.
5290 (gdbpy_reggroup_getset): New static global.
5291 (reggroup_object_type): Define new Python type.
5292 * python/python-internal.h
5293
5294 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5295
5296 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5297 * python/py-arch.c (archpy_registers): New function.
5298 (arch_object_methods): Add 'registers' method.
5299 * python/py-registers.c: New file.
5300 * python/python-internal.h
5301 (gdbpy_new_register_descriptor_iterator): Declare.
5302 (gdbpy_initialize_registers): Declare.
5303 * python/python.c (do_start_initialization): Call
5304 gdbpy_initialize_registers.
5305 * NEWS: Mention additions to the Python API.
5306
5307 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5308
5309 * NEWS: Mention new Python API method.
5310 * python/py-unwind.c (pending_framepy_architecture): New function.
5311 (pending_frame_object_methods): Add architecture method.
5312
5313 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5314
5315 * gdbarch.c: Regenerate.
5316 * gdbarch.h: Regenerate.
5317 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5318 (gdbarch_data): Use internal_error for the case where
5319 deprecated_set_gdbarch_data was originally needed.
5320 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5321 and use passed in obstack.
5322 (libunwind_frame_set_descr): Should no longer get back NULL from
5323 gdbarch_data.
5324 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5325 type.
5326 * user-regs.c (user_regs_init): Update parameters, and use passed
5327 in obstack.
5328 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5329 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5330
5331 2020-07-06 Tom de Vries <tdevries@suse.de>
5332
5333 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5334 End-Of-Sequence in lte_is_less_than.
5335 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5336 "gdb: Don't reorder line table entries too much when sorting".
5337
5338 2020-07-06 Tom de Vries <tdevries@suse.de>
5339
5340 PR tui/26205
5341 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5342
5343 2020-07-05 Tom de Vries <tdevries@suse.de>
5344
5345 PR build/26187
5346 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5347 std::uncaught_exceptions instead of deprecated
5348 std::uncaught_exception.
5349
5350 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5351
5352 * macroexp.h (macro_stringify): Return
5353 gdb::unique_xmalloc_ptr<char>.
5354 * macroexp.c (macro_stringify): Likewise.
5355 * macrotab.c (fixup_definition): Update.
5356
5357 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5358
5359 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5360 (lex_one_token): Update.
5361 * macroexp.c (struct macro_buffer) <release>: Return
5362 gdb::unique_xmalloc_ptr<char>.
5363 (macro_stringify): Update.
5364 (macro_expand): Update.
5365 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5366 * macroexp.h (macro_expand_next): Likewise.
5367
5368 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * macroexp.h (macro_lookup_ftype): Remove.
5371 (macro_expand, macro_expand_once, macro_expand_next): Remove
5372 lookup function parameters, add scope parameter.
5373 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5374 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5375 * macroscope.h (standard_macro_lookup): Change parameter type
5376 to macro_scope.
5377 * macroscope.c (standard_macro_lookup): Likewise.
5378 * c-exp.y (lex_one_token): Update.
5379 * macrocmd.c (macro_expand_command): Likewise.
5380 (macro_expand_once_command): Likewise.
5381
5382 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5383
5384 * inf-loop.c (inferior_event_handler): Remove client_data param.
5385 * inf-loop.h (inferior_event_handler): Likewise.
5386 * infcmd.c (step_1): Adjust.
5387 * infrun.c (proceed): Adjust.
5388 (fetch_inferior_event): Remove client_data param.
5389 (infrun_async_inferior_event_handler): Adjust.
5390 * infrun.h (fetch_inferior_event): Remove `void *` param.
5391 * linux-nat.c (handle_target_event): Adjust.
5392 * record-btrace.c (record_btrace_handle_async_inferior_event):
5393 Adjust.
5394 * record-full.c (record_full_async_inferior_event_handler):
5395 Adjust.
5396 * remote.c (remote_async_inferior_event_handler): Adjust.
5397
5398 2020-07-01 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5401 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5402
5403 2020-07-01 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5406 tui_gen_win_info.
5407 (tui_win_info::make_window): Merge with
5408 tui_gen_win_info::make_window.
5409 (tui_win_info::make_visible): Move from tui_gen_win_info.
5410 * tui/tui-win.c (tui_win_info::max_width): Move from
5411 tui_gen_win_info.
5412 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5413 type.
5414 <window_factory>: Likewise.
5415 * tui/tui-layout.c (tui_win_info::resize): Move from
5416 tui_gen_win_info.
5417 (make_standard_window): Change return type.
5418 (get_locator_window, tui_get_window_by_name): Likewise.
5419 (tui_layout_window::apply): Remove a cast.
5420 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5421 (struct tui_win_info): Merge with tui_gen_win_info.
5422 (struct tui_gen_win_info): Remove.
5423
5424 2020-07-01 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-stack.h (struct tui_locator_window): Derive from
5427 tui_win_info.
5428 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5429 <can_box>: New method.
5430
5431 2020-07-01 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5434
5435 2020-07-01 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-regs.c (tui_data_window::display_registers_from)
5438 (tui_data_window::display_registers_from)
5439 (tui_data_window::first_data_item_displayed)
5440 (tui_data_window::delete_data_content_windows): Update.
5441 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5442 Remove.
5443 (tui_data_window::check_register_values): Update.
5444 (tui_data_item_window::rerender): Add parameters. Update.
5445 (tui_data_item_window::refresh_window): Remove.
5446 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5447 virtual.
5448 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5449 tui_gen_win_info.
5450 <refresh_window, max_height, min_height>: Remove.
5451 <rerender>: Add parameters.
5452 <x, y, visible>: New members.
5453 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5454 <m_item_width>: New member.
5455
5456 2020-07-01 Tom Tromey <tom@tromey.com>
5457
5458 * tui/tui-regs.c (tui_data_window::show_register_group)
5459 (tui_data_window::check_register_values): Update.
5460 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5461 from item_no.
5462
5463 2020-07-01 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5466 useless "if".
5467
5468 2020-07-01 Tom Tromey <tom@tromey.com>
5469
5470 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5471 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5472
5473 2020-07-01 Tom Tromey <tom@tromey.com>
5474
5475 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5476 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5477 (struct tui_line_or_address): Move from tui-data.h.
5478 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5479 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5480 (tui_cmd_window, tui_source_window_base, tui_source_window)
5481 (tui_disasm_window): Don't declare.
5482 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5483 to tui-winsource.h.
5484 (SINGLE_KEY): Move to tui-stack.c.
5485
5486 2020-07-01 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5489 std::string.
5490 * tui/tui-regs.c (class tab_expansion_file): New.
5491 (tab_expansion_file::write): New method.
5492 (tui_register_format): Change return type. Use
5493 tab_expansion_file.
5494 (tui_get_register, tui_data_window::display_registers_from)
5495 (tui_data_item_window::rerender): Update.
5496 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5497 * tui/tui-io.c (tui_expand_tabs): Remove.
5498
5499 2020-07-01 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5502
5503 2020-07-01 Fangrui Song <maskray@google.com>
5504
5505 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5506
5507 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5508
5509 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5510 forms for DW_AT_associated and DW_AT_allocated attributes,
5511 which is already checked in function attr_to_dynamic_prop.
5512
5513 2020-06-30 Tom Tromey <tromey@adacore.com>
5514
5515 * dwarf2/read.c (quirk_rust_enum): Correctly call
5516 alloc_rust_variant for default-less enum.
5517
5518 2020-06-30 Tom Tromey <tromey@adacore.com>
5519
5520 PR build/26183:
5521 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5522 gdb::to_string.
5523
5524 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5527 * gdbarch.h: Re-generate.
5528
5529 2020-06-28 Tom Tromey <tom@tromey.com>
5530
5531 * command.h (cmd_types): Remove.
5532 (cmd_type): Don't declare.
5533 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5534 typedef.
5535 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5536 * cli/cli-decode.c (cmd_type): Remove.
5537
5538 2020-06-27 Pedro Alves <palves@redhat.com>
5539
5540 * fork-child.c (prefork_hook): Adjust.
5541 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5542 Delete.
5543 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5544 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5545 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5546 Remove declarations.
5547 (struct inferior) <set_tty, tty>: New methods.
5548 (struct inferior) <terminal>: Rename to ...
5549 (struct inferior) <m_terminal>: ... this and make private.
5550 * main.c (captured_main_1): Adjust.
5551 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5552 (mi_cmd_inferior_tty_show): Adjust.
5553 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5554 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5555
5556 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5557
5558 * configure.ac: Add --enable-libctf: handle --disable-static
5559 properly.
5560 * acinclude.m4: sinclude ../config/enable.m4.
5561 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5562 (LIBCTF): Substitute in.
5563 (CTF_DEPS): New, likewise.
5564 (CLIBS): libctf needs symbols from libbfd: move earlier.
5565 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5566 flags.
5567 * ctfread.c: Surround in ENABLE_LIBCTF.
5568 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5569 * configure: Regenerate.
5570 * config.in: Likewise.
5571
5572 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5575
5576 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * inferior.h (struct inferior) <terminal>: Change type to
5579 gdb::unique_xmalloc_ptr<char>.
5580 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5581 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5582 field, adjust to unique pointer.
5583 (get_inferior_io_terminal): Adjust to unique pointer.
5584
5585 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5588 registers, not just the known core set of registers.
5589
5590 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5591
5592 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5593 fflags, frm, and fcsr registers.
5594 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5595 restore groups.
5596 (riscv_tdesc_unknown_reg): New function.
5597 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5598 tdesc_use_registers.
5599 * riscv-tdep.h (struct gdbarch_tdep): Add
5600 unknown_csrs_first_regnum, unknown_csrs_count,
5601 duplicate_fflags_regnum, duplicate_frm_regnum, and
5602 duplicate_fcsr_regnum fields.
5603
5604 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5607 callback, use the callback (when not null) to help number unknown
5608 registers.
5609 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5610 (tdesc_use_registers): Add extra parameter to declaration.
5611
5612 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5613
5614 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5615 in the file.
5616 (class riscv_pending_register_alias): Likewise.
5617 (riscv_register_feature::register_info): Change 'required_p' field
5618 to 'required', and change its type. Add 'check' member function.
5619 (riscv_register_feature::register_info::check): Define new member
5620 function.
5621 (riscv_xreg_feature): Change initialisation of 'required' field.
5622 (riscv_freg_feature): Likewise.
5623 (riscv_virtual_feature): Likewise.
5624 (riscv_csr_feature): Likewise.
5625 (riscv_check_tdesc_feature): Take extra parameter, the csr
5626 tdesc_feature, rewrite the function to use the new
5627 riscv_register_feature::register_info::check function.
5628 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5629
5630 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5631
5632 * features/Makefile: Remove all references to the deleted files
5633 below.
5634 * features/riscv/32bit-csr.c: Deleted.
5635 * features/riscv/32bit-csr.xml: Deleted.
5636 * features/riscv/64bit-csr.c: Deleted.
5637 * features/riscv/64bit-csr.xml: Deleted.
5638 * features/riscv/rebuild-csr-xml.sh: Deleted.
5639
5640 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5641
5642 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5643 whitespace error for declaration of names member variable.
5644 (struct riscv_register_feature): Add new prefer_first_name member
5645 variable, and fix whitespace error in declaration of registers.
5646 (riscv_xreg_feature): Initialize prefer_first_name field.
5647 (riscv_freg_feature): Likewise.
5648 (riscv_virtual_feature): Likewise.
5649 (riscv_csr_feature): Likewise.
5650 (riscv_register_name): Expand on comments. Remove register name
5651 modifications for CSR and virtual registers.
5652
5653 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5656 errors.
5657
5658 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5659
5660 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5661 riscv-opc.h.
5662 (class riscv_pending_register_alias): New class.
5663 (riscv_check_tdesc_feature): Take vector of pending aliases and
5664 populate it as appropriate.
5665 (riscv_setup_register_aliases): Delete.
5666 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5667 to riscv_check_tdesc_feature in all cases. Use the vector to
5668 create the register aliases.
5669
5670 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5671
5672 * sol2-tdep.c (sol2_static_transform_name): Remove.
5673 (sol2_init_abi): Don't register it.
5674 * gdbarch.sh (static_transform_name): Remove.
5675 * gdbarch.c, gdbarch.h: Regenerate.
5676
5677 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5678 gdbarch_static_transform_name.
5679 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5680 * stabsread.c (define_symbol) <'X'>: Remove.
5681 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5682 handling.
5683 <'V'>: Likewise.
5684 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5685 <'S'>: Remove call to gdbarch_static_transform_name.
5686
5687 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5688
5689 * procfs.c (procfs_pre_trace): New function.
5690 (procfs_target::create_inferior): Pass it to fork_inferior.
5691
5692 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5693
5694 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5695 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5696 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5697 sol2-tdep.o, sparc-sol2-tdep.o.
5698 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5699 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5700 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5701 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5702
5703 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5704
5705 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5706 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5707 Call sol2_init_abi.
5708 Remove calls to set_gdbarch_skip_solib_resolver,
5709 set_gdbarch_core_pid_to_str.
5710 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5711 (i386_sol2_static_transform_name): Remove.
5712 (i386_sol2_init_abi): Call sol2_init_abi.
5713 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5714 set_gdbarch_static_transform_name,
5715 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5716 Use sol2_sigtramp_p.
5717 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5718 (sol2_sigtramp_p): New function.
5719 (sol2_static_transform_name): New function.
5720 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5721 (sol2_init_abi): New function.
5722 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5723 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5724 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5725 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5726 (sparc_sol2_static_transform_name): Remove.
5727 (sparc32_sol2_init_abi): Call sol2_init_abi.
5728 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5729 set_gdbarch_static_transform_name,
5730 set_gdbarch_skip_solib_resolver,
5731 set_gdbarch_core_pid_to_str.
5732 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5733 (sparc_sol2_static_transform_name): Remove
5734 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5735 call sol2_sigtramp_p.
5736 (sparc64_sol2_init_abi): Call sol2_init_abi.
5737 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5738 set_gdbarch_static_transform_name,
5739 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5740
5741 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5742
5743 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5744 * exec.c (validate_exec_file): If from_tty, set both
5745 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5746 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5747 and from_tty, unconditionally ask a confirmation.
5748
5749 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * target-descriptions.c (tdesc_architecture_name): Protect against
5752 NULL pointer dereference.
5753 (maint_print_xml_tdesc_cmd): New function.
5754 (_initialize_target_descriptions): Register new 'maint print
5755 xml-tdesc' command and give it the filename completer.
5756 * NEWS: Mention new 'maint print xml-tdesc' command.
5757
5758 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * target-descriptions.c (class tdesc_compatible_info): New class.
5761 (struct target_desc): Change type of compatible vector.
5762 (tdesc_compatible_p): Update for change in type of
5763 target_desc::compatible.
5764 (tdesc_compatible_info_list): New function.
5765 (tdesc_compatible_info_arch_name): New function.
5766 (tdesc_add_compatible): Update for change in type of
5767 target_desc::compatible.
5768 (print_c_tdesc::visit_pre): Likewise.
5769
5770 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5771
5772 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5773 whitespace to underscore.
5774 (maint_print_c_tdesc_cmd): Use fake filename for target
5775 descriptions that came from the target.
5776 (_initialize_target_descriptions): Add filename command completion
5777 for 'maint print c-tdesc'.
5778
5779 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5782 lines.
5783
5784 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5787 lines.
5788 (dwarf2_find_location_expression): Likewise.
5789 (call_site_parameter_matches): Likewise.
5790 (dwarf2_compile_expr_to_ax): Likewise.
5791 (disassemble_dwarf_expression): Likewise.
5792 (loclist_describe_location): Likewise.
5793
5794 2020-06-23 Pedro Alves <palves@redhat.com>
5795
5796 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5797 progspace-and-thread.h. Include scoped-mock-context.h instead.
5798 (register_to_value_test): Use scoped_mock_context.
5799 * regcache.c: Include "scoped-mock-context.h".
5800 (cooked_read_test): Don't error out if a target is already pushed.
5801 Use scoped_mock_context. Adjust.
5802 * scoped-mock-context.h: New file.
5803
5804 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5807 initializer.
5808 (ada_language::is_string_type_p): New member function.
5809 * c-lang.c (c_language_data): Delete la_is_string_type_p
5810 initializer.
5811 (cplus_language_data): Likewise.
5812 (asm_language_data): Likewise.
5813 (minimal_language_data): Likewise.
5814 * d-lang.c (d_language_data): Likewise.
5815 * f-lang.c (f_is_string_type_p): Delete function, implementation
5816 moved to f_language::is_string_type_p.
5817 (f_language_data): Delete la_is_string_type_p initializer.
5818 (f_language::is_string_type_p): New member function,
5819 implementation from f_is_string_type_p.
5820 * go-lang.c (go_is_string_type_p): Delete function, implementation
5821 moved to go_language::is_string_type_p.
5822 (go_language_data): Delete la_is_string_type_p initializer.
5823 (go_language::is_string_type_p): New member function,
5824 implementation from go_is_string_type_p.
5825 * language.c (language_defn::is_string_type_p): Define new member
5826 function.
5827 (default_is_string_type_p): Make static, add comment copied from
5828 header file.
5829 (unknown_language_data): Delete la_is_string_type_p initializer.
5830 (unknown_language::is_string_type_p): New member function.
5831 (auto_language_data): Delete la_is_string_type_p initializer.
5832 (auto_language::is_string_type_p): New member function.
5833 * language.h (language_data): Delete la_is_string_type_p field.
5834 (language_defn::is_string_type_p): Declare new function.
5835 (default_is_string_type_p): Delete desclaration, move comment to
5836 definition.
5837 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5838 moved to m2_language::is_string_type_p.
5839 (m2_language_data): Delete la_is_string_type_p initializer.
5840 (m2_language::is_string_type_p): New member function,
5841 implementation from m2_is_string_type_p.
5842 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5843 initializer.
5844 * opencl-lang.c (opencl_language_data): Likewise.
5845 * p-lang.c (pascal_is_string_type_p): Delete function,
5846 implementation moved to pascal_language::is_string_type_p.
5847 (pascal_language_data): Delete la_is_string_type_p initializer.
5848 (pascal_language::is_string_type_p): New member function,
5849 implementation from pascal_is_string_type_p.
5850 * rust-lang.c (rust_is_string_type_p): Delete function,
5851 implementation moved to rust_language::is_string_type_p.
5852 (rust_language_data): Delete la_is_string_type_p initializer.
5853 (rust_language::is_string_type_p): New member function,
5854 implementation from rust_is_string_type_p.
5855 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5856 is_string_type_p.
5857
5858 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 * ada-lang.c (ada_language_data): Delete la_print_typedef
5861 initializer.
5862 (ada_language::print_typedef): New member function.
5863 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5864 (cplus_language_data): Likewise.
5865 (asm_language_data): Likewise.
5866 (minimal_language_data): Likewise.
5867 * d-lang.c (d_language_data): Likewise.
5868 * f-lang.c (f_language_data): Likewise.
5869 (f_language::print_typedef): New member function.
5870 * go-lang.c (go_language_data): Delete la_print_typedef
5871 initializer.
5872 * language.c (language_defn::print_typedef): Define member
5873 function.
5874 (unknown_language_data): Delete la_print_typedef initializer.
5875 (unknown_language::print_typedef): New member function.
5876 (auto_language_data): Delete la_print_typedef initializer.
5877 (auto_language::print_typedef): New member function.
5878 * language.h (language_data): Delete la_print_typedef field.
5879 (language_defn::print_typedef): Declare new member function.
5880 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5881 (default_print_typedef): Delete declaration.
5882 * m2-lang.c (m2_language_data): Delete la_print_typedef
5883 initializer.
5884 (m2_language::print_typedef): New member function.
5885 * objc-lang.c (objc_language_data): Delete la_print_typedef
5886 initializer.
5887 * opencl-lang.c (opencl_language_data): Likewise.
5888 * p-lang.c (pascal_language_data): Likewise.
5889 (pascal_language::print_typedef): New member function.
5890 * rust-lang.c (rust_print_typedef): Delete function,
5891 implementation moved to rust_language::print_typedef.
5892 (rust_language): Delete la_print_typedef initializer.
5893 (rust_language::print_typedef): New member function,
5894 implementation from rust_print_typedef.
5895 * typeprint.c (default_print_typedef): Delete.
5896
5897 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5898
5899 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5900 (ada_language::printstr): New member function.
5901 * c-lang.c (c_language_data): Delete la_printstr initializer.
5902 (cplus_language_data): Likewise.
5903 (asm_language_data): Likewise.
5904 (minimal_language_data): Likewise.
5905 * d-lang.c (d_language_data): Likewise.
5906 * f-lang.c (f_printstr): Rename to f_language::printstr.
5907 (f_language_data): Delete la_printstr initializer.
5908 (f_language::printstr): New member function, implementation from
5909 f_printstr.
5910 * go-lang.c (go_language_data): Delete la_printstr initializer.
5911 * language.c (language_defn::printstr): Define new member
5912 function.
5913 (unk_lang_printstr): Delete.
5914 (unknown_language_data): Delete la_printstr initializer.
5915 (unknown_language::printstr): New member function.
5916 (auto_language_data): Delete la_printstr initializer.
5917 (auto_language::printstr): New member function.
5918 * language.h (language_data): Delete la_printstr field.
5919 (language_defn::printstr): Declare new member function.
5920 (LA_PRINT_STRING): Update call to printstr.
5921 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5922 (m2_language_data): Delete la_printstr initializer.
5923 (m2_language::printstr): New member function, implementation from
5924 m2_printstr.
5925 * objc-lang.c (objc_language_data): Delete la_printstr
5926 initializer.
5927 * opencl-lang.c (opencl_language_data): Likewise.
5928 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5929 (pascal_language_data): Delete la_printstr initializer.
5930 (pascal_language::printstr): New member function, implementation
5931 from pascal_printstr.
5932 * p-lang.h (pascal_printstr): Delete declaration.
5933 * rust-lang.c (rust_printstr): Update header comment.
5934 (rust_language_data): Delete la_printstr initializer.
5935 (rust_language::printstr): New member function.
5936
5937 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5940 (ada_language::printchar): New member function.
5941 * c-lang.c (c_language_data): Delete la_printchar initializer.
5942 (cplus_language_data): Likewise.
5943 (asm_language_data): Likewise.
5944 (minimal_language_data): Likewise.
5945 * d-lang.c (d_language_data): Likewise.
5946 * f-lang.c (f_printchar): Rename to f_language::printchar.
5947 (f_language_data): Delete la_printchar initializer.
5948 (f_language::printchar): New member function, implementation from
5949 f_printchar.
5950 * go-lang.c (go_language_data): Delete la_printchar initializer.
5951 * language.c (unk_lang_printchar): Delete.
5952 (language_defn::printchar): Define new member function.
5953 (unknown_language_data): Delete la_printchar initializer.
5954 (unknown_language::printchar): New member function.
5955 (auto_language_data): Delete la_printchar initializer.
5956 (auto_language::printchar): New member function.
5957 * language.h (language_data): Delete la_printchar field.
5958 (language_defn::printchar): Declare new member function.
5959 (LA_PRINT_CHAR): Update call to printchar.
5960 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5961 (m2_language::printchar): New member function.
5962 * objc-lang.c (objc_language_data): Delete la_printchar
5963 initializer.
5964 * opencl-lang.c (opencl_language_data): Likewise.
5965 * p-lang.c (pascal_language_data): Delete la_printchar
5966 initializer.
5967 (pascal_language::printchar): New member function.
5968 * rust-lang.c (rust_printchar): Rename to
5969 rust_language::printchar.
5970 (rust_language_data): Delete la_printchar initializer.
5971 (rust_language::printchar): New member function, implementation
5972 from rust_printchar.
5973
5974 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5977 (ada_language_data): Delete la_emitchar initializer.
5978 (ada_language::emitchar): New member function, implementation from
5979 emit_char.
5980 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5981 (cplus_language_data): Likewise.
5982 (asm_language_data): Likewise.
5983 (minimal_language_data): Likewise.
5984 * d-lang.c (d_language_data): Likewise.
5985 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5986 (f_language_data): Delete la_emitchar initializer.
5987 (f_language::emitchar): New member function, implementation from
5988 f_emit_char.
5989 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5990 * language.c (unk_lang_emit_char): Delete.
5991 (language_defn::emitchar): New member function definition.
5992 (unknown_language_data): Delete la_emitchar initializer.
5993 (unknown_language::emitchar): New member function.
5994 (auto_language_data): Delete la_emitchar initializer.
5995 (auto_language::emitchar): New member function.
5996 * language.h (language_data): Delete la_emitchar field.
5997 (language_defn::emitchar): New member field declaration.
5998 (LA_EMIT_CHAR): Update call to emitchar.
5999 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
6000 (m2_language_data): Delete la_emitchar initializer.
6001 (m2_language::emitchar): New member function, implementation from
6002 m2_emit_char.
6003 * objc-lang.c (objc_language_data): Delete la_emitchar
6004 initializer.
6005 * opencl-lang.c (opencl_language_data): Likewise.
6006 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
6007 (pascal_language_data): Delete la_emitchar initializer.
6008 (pascal_language::emitchar): New member function, implementation
6009 from pascal_emit_char.
6010 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
6011 (rust_language_data): Delete la_emitchar initializer.
6012 (rust_language::emitchar): New member function, implementation
6013 from rust_emitchar.
6014
6015 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * ada-lang.c (resolve): Rename to ada_language::post_parser.
6018 (ada_language_data): Delete la_post_parser initializer.
6019 (ada_language::post_parser): New member function.
6020 * c-lang.c (c_language_data): Delete la_post_parser initializer.
6021 (cplus_language_data): Likewise.
6022 (asm_language_data): Likewise.
6023 (minimal_language_data): Likewise.
6024 * d-lang.c (d_language_data): Likewise.
6025 * f-lang.c (f_language_data): Likewise.
6026 * go-lang.c (go_language_data): Likewise.
6027 * language.c (unknown_language_data): Likewise.
6028 (auto_language_data): Likewise.
6029 * language.h (language_data): Delete la_post_parser field.
6030 (language_defn::post_parser): New member function.
6031 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
6032 * objc-lang.c (objc_language_data): Likewise.
6033 * opencl-lang.c (opencl_language_data): Likewise.
6034 * p-lang.c (pascal_language_data): Likewise.
6035 * parse.c (parse_exp_in_context): Update call to post_parser.
6036 (null_post_parser): Delete definition.
6037 * parser-defs.h (null_post_parser): Delete declaration.
6038 * rust-lang.c (rust_language_data): Delete la_post_parser
6039 initializer.
6040
6041 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * ada-lang.c (parse): Rename to ada_language::parser.
6044 (ada_language_data): Delete la_parser initializer.
6045 (ada_language::parser): New member function, implementation from
6046 parse.
6047 * c-lang.c (c_language_data): Delete la_parser initializer.
6048 (cplus_language_data): Likewise.
6049 (asm_language_data): Likewise.
6050 (minimal_language_data): Likewise.
6051 * d-lang.c (d_language_data): Likewise.
6052 (d_language::parser): New member function.
6053 * f-lang.c (f_language_data): Delete la_parser initializer.
6054 (f_language::parser): New member function.
6055 * go-lang.c (go_language_data): Delete la_parser initializer.
6056 (go_language::parser): New member function.
6057 * language.c (unk_lang_parser): Delete.
6058 (language_defn::parser): Define new member function.
6059 (unknown_language_data): Delete la_parser initializer.
6060 (unknown_language::parser): New member function.
6061 (auto_language_data): Delete la_parser initializer.
6062 (auto_language::parser): New member function.
6063 * language.h (language_data): Delete la_parser field.
6064 (language_defn::parser): Declare new member function.
6065 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6066 (m2_language::parser): New member function.
6067 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6068 * opencl-lang.c (opencl_language_data): Likewise.
6069 * p-lang.c (pascal_language_data): Likewise.
6070 (pascal_language::parser): New member function.
6071 * parse.c (parse_exp_in_context): Update call to parser.
6072 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6073 (rust_language::parser): New member function.
6074
6075 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * top.c (print_gdb_configuration): Print --with-python-libdir
6078 configuration value.
6079
6080 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6081
6082 * NEWS: Mention change to the alias command.
6083
6084 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6085
6086 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6087 (alias_command_completer)
6088 (make_alias_options_def_group): New functions.
6089 (alias_opts, alias_option_defs): New struct and array.
6090 (alias_usage_error): Update usage.
6091 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6092 Use option framework.
6093 (_initialize_cli_cmds): Update alias command help.
6094 Update aliases command help.
6095 (show_user):
6096 Add NULL for new default_args lookup_cmd argument.
6097 (valid_command_p): Rename to validate_aliased_command.
6098 Add NULL for new default_args lookup_cmd argument. Verify that the
6099 aliased_command has no default args.
6100 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6101 (lookup_cmd_1, lookup_cmd): New argument default_args.
6102 (add_alias_cmd):
6103 Add NULL for new default_args lookup_cmd argument.
6104 (print_help_for_command): Show default args under the layout
6105 alias some_alias = some_aliased_cmd some_alias_default_arg.
6106 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6107 xfree default_args in destructor.
6108 * cli/cli-script.c (process_next_line, do_define_command):
6109 Add NULL for new default_args lookup_cmd argument.
6110 * command.h: Declare new default_args argument in lookup_cmd
6111 and lookup_cmd_1.
6112 * completer.c (complete_line_internal_1):
6113 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6114 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6115 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6116 Likewise.
6117 * infcmd.c (_initialize_infcmd): Likewise.
6118 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6119 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6120 * python/py-param.c (add_setshow_generic): Likewise.
6121 * remote.c (_initialize_remote): Likewise.
6122 * top.c (execute_command): Prepend default_args if command has some.
6123 (set_verbose):
6124 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6125 * tracepoint.c (validate_actionline, encode_actions_1):
6126 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6127
6128 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6129
6130 * jit.c (jit_read_descriptor): Use bool as the return type.
6131 (jit_breakpoint_re_set_internal): Use bool as the return type.
6132 Invert the return value logic; return true if the jit breakpoint
6133 has been successfully initialized.
6134 (jit_inferior_init): Update the call to
6135 jit_breakpoint_re_set_internal.
6136
6137 2020-06-22 Pedro Alves <palves@redhat.com>
6138
6139 PR gdb/25939
6140 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6141 Use the current inferior instead. Don't return
6142 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6143 wait again.
6144 * sol-thread.c (sol_thread_target::wait): Don't reference
6145 inferior_ptid.
6146 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6147 (sol_update_thread_list_callback): Use the current inferior's pid
6148 instead of inferior_ptid.
6149
6150 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6151
6152 * procfs.c: Cleanup many comments.
6153
6154 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6155 (AFTER_WATCHFLAG): Replace by value.
6156
6157 (MAIN_PROC_NAME_FORMAT): Inline ...
6158 (create_procinfo): ... here.
6159
6160 (procfs_debug_inferior): Remove SYS_exec handling.
6161 (syscall_is_exec): Likewise.
6162 (procfs_set_exec_trap): Likewise.
6163
6164 (syscall_is_lwp_exit): Inline in callers.
6165 (syscall_is_exit): Likewise.
6166 (syscall_is_exec): Likewise.
6167 (syscall_is_lwp_create): Likewise.
6168
6169 (invalidate_cache): Remove #if 0 code.
6170
6171 (make_signal_thread_runnable): Remove.
6172 (procfs_target::resume): Remove #if 0 code.
6173
6174 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6175
6176 PR gdb/25939
6177 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6178 call ...
6179 (procfs_target::create_inferior): ... here.
6180
6181 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6182
6183 * exec.c (validate_exec_file): Ensure the build-id is up to
6184 date by calling reopen_exec_file (that checks file timestamp
6185 to decide to re-read the file).
6186
6187 2020-06-18 Pedro Alves <palves@redhat.com>
6188
6189 PR gdb/25412
6190 * gdbthread.h (delete_thread, delete_thread_silent)
6191 (find_thread_ptid): Update comments.
6192 * thread.c (current_thread_): New global.
6193 (is_current_thread): Move higher, and reimplement.
6194 (inferior_thread): Reimplement.
6195 (set_thread_exited): Use bool. Add assertions.
6196 (add_thread_silent): Simplify thread-reuse handling by always
6197 calling delete_thread.
6198 (delete_thread): Remove intro comment.
6199 (find_thread_ptid): Skip exited threads.
6200 (switch_to_thread_no_regs): Write to current_thread_.
6201 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6202 INFERIOR_PTID. Clear current_thread_.
6203
6204 2020-06-18 Pedro Alves <palves@redhat.com>
6205
6206 * aix-thread.c (pd_update): Use switch_to_thread.
6207
6208 2020-06-18 Pedro Alves <palves@redhat.com>
6209
6210 * ravenscar-thread.c (ravenscar_thread_target): Update.
6211 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6212 (ravenscar_thread_target::add_active_thread): ... this. Don't
6213 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6214 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6215
6216 2020-06-18 Pedro Alves <palves@redhat.com>
6217
6218 * nat/windows-nat.c (current_windows_thread): Remove.
6219 * nat/windows-nat.h (current_windows_thread): Remove.
6220 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6221 Adjust.
6222 (display_selectors): Adjust to fetch the current
6223 windows_thread_info based on inferior_ptid.
6224 (fake_create_process): No longer write to current_windows_thread.
6225 (windows_nat_target::get_windows_debug_event):
6226 Don't set inferior_ptid or current_windows_thread.
6227 (windows_nat_target::wait): Adjust to not rely on
6228 current_windows_thread.
6229 (do_initial_windows_stuff): Now a method of windows_nat_target.
6230 Switch to the last_ptid thread.
6231 (windows_nat_target::attach): Adjust.
6232 (windows_nat_target::detach): Use switch_to_no_thread instead of
6233 writing to inferior_ptid directly.
6234 (windows_nat_target::create_inferior): Adjust.
6235
6236 2020-06-18 Pedro Alves <palves@redhat.com>
6237
6238 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6239
6240 2020-06-18 Pedro Alves <palves@redhat.com>
6241
6242 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6243 after creating it, instead of writing to inferior_ptid. Don't
6244 write to inferior_ptid.
6245
6246 2020-06-18 Pedro Alves <palves@redhat.com>
6247
6248 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6249
6250 2020-06-18 Pedro Alves <palves@redhat.com>
6251
6252 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6253 it, instead of writing to inferior_ptid.
6254
6255 2020-06-18 Pedro Alves <palves@redhat.com>
6256
6257 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6258 to inferior_ptid.
6259
6260 2020-06-18 Pedro Alves <palves@redhat.com>
6261
6262 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6263 instead of writing to inferior_ptid directly.
6264
6265 2020-06-18 Pedro Alves <palves@redhat.com>
6266
6267 * corelow.c (core_target::close): Use switch_to_no_thread instead
6268 of writing to inferior_ptid directly.
6269 (add_to_thread_list, core_target_open): Use switch_to_thread
6270 instead of writing to inferior_ptid directly.
6271
6272 2020-06-18 Pedro Alves <palves@redhat.com>
6273
6274 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6275 inferior_ptid.
6276 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6277 inferior_ptid.
6278 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6279 inferior_ptid directly.
6280 (darwin_nat_target::init_thread_list): Switch to thread, instead
6281 of writing to inferior_ptid.
6282 (darwin_nat_target::attach): Don't write to inferior_ptid.
6283 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6284
6285 2020-06-18 Pedro Alves <palves@redhat.com>
6286
6287 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6288 thread.
6289 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6290 Instead use switch_to_thread.
6291 (gnu_nat_target::detach): Use switch_to_no_thread
6292 instead of writing to inferior_ptid directly. Used passed-in
6293 inferior instead of looking up the inferior by pid.
6294
6295 2020-06-18 Pedro Alves <palves@redhat.com>
6296
6297 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6298 inferior_ptid.
6299
6300 2020-06-18 Pedro Alves <palves@redhat.com>
6301
6302 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6303 inferior_ptid.
6304 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6305 thread.
6306 (nto_procfs_target::detach): Avoid referencing
6307 inferior_ptid. Use switch_to_no_thread instead of writing to
6308 inferior_ptid directly.
6309 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6310 instead of writing to inferior_ptid directly.
6311 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6312 to thread.
6313
6314 2020-06-18 Pedro Alves <palves@redhat.com>
6315
6316 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6317 after creating it, instead of writing to inferior_ptid.
6318 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6319 to inferior_ptid directly.
6320 (gdbsim_target::wait): Don't write to inferior_ptid.
6321
6322 2020-06-18 Pedro Alves <palves@redhat.com>
6323
6324 * remote.c (remote_target::remote_notice_new_inferior): Use
6325 switch_to_thread instead of writing to inferior_ptid directly.
6326 (remote_target::add_current_inferior_and_thread): Use
6327 switch_to_no_thread instead of writing to inferior_ptid directly.
6328 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6329 and switch_to_thread instead of using set_current_inferior or
6330 writing to inferior_ptid directly.
6331
6332 2020-06-18 Pedro Alves <palves@redhat.com>
6333
6334 * tracectf.c (ctf_target_open): Switch to added thread instead of
6335 writing to inferior_ptid directly.
6336 (ctf_target::close): Use switch_to_no_thread instead of writing to
6337 inferior_ptid directly.
6338
6339 2020-06-18 Pedro Alves <palves@redhat.com>
6340
6341 * tracefile-tfile.c (tfile_target_open): Don't write to
6342 inferior_ptid directly, instead switch to added thread.
6343 (tfile_target::close): Use switch_to_no_thread instead of writing
6344 to inferior_ptid directly.
6345
6346 2020-06-18 Pedro Alves <palves@redhat.com>
6347
6348 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6349 (procfs_target::detach): Use switch_to_no_thread
6350 instead of writing to inferior_ptid directly.
6351 (do_attach): Change return type to void. Switch to the added
6352 thread.
6353 (procfs_target::create_inferior): Switch to the added thread.
6354 (procfs_do_thread_registers): Don't write to inferior_ptid.
6355
6356 2020-06-18 Pedro Alves <palves@redhat.com>
6357
6358 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6359 of writing to inferior_ptid.
6360 (scoped_restore_exited_inferior): Delete.
6361 (handle_vfork_child_exec_or_exit): Simplify using
6362 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6363 instead of writing to inferior_ptid.
6364 (THREAD_STOPPED_BY): Delete.
6365 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6366 (thread_stopped_by_hw_breakpoint): Delete.
6367 (save_waitstatus): Use
6368 scoped_restore_current_thread+switch_to_thread, and call
6369 target_stopped_by_watchpoint instead of
6370 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6371 instead of thread_stopped_by_sw_breakpoint, and
6372 target_stopped_by_hw_breakpoint instead of
6373 thread_stopped_by_hw_breakpoint.
6374 (handle_inferior_event)
6375 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6376 inferior_ptid directly, nor
6377 set_current_inferior/set_current_program_space. Use
6378 switch_to_thread / switch_to_inferior_no_thread instead.
6379
6380 2020-06-18 Pedro Alves <palves@redhat.com>
6381
6382 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6383 instead of writing to inferior_ptid.
6384
6385 2020-06-18 Pedro Alves <palves@redhat.com>
6386
6387 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6388 added thread.
6389 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6390 to the added thread.
6391 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6392 instead of writing to inferior_ptid.
6393
6394 2020-06-18 Pedro Alves <palves@redhat.com>
6395
6396 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6397 (register_to_value_test): Mock a program_space too. Heap-allocate
6398 the address space. Don't write to inferior_ptid. Use
6399 switch_to_thread instead.
6400
6401 2020-06-18 Pedro Alves <palves@redhat.com>
6402
6403 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6404 Delete.
6405 (find_signalled_thread()): New, factored out from
6406 linux_make_corefile_notes and adjusted to handle exited threads.
6407 (linux_make_corefile_notes): Adjust to use the new
6408 find_signalled_thread.
6409
6410 2020-06-18 Pedro Alves <palves@redhat.com>
6411
6412 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6413 of saving/restoring inferior_ptid.
6414
6415 2020-06-17 Tom Tromey <tom@tromey.com>
6416
6417 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6418 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6419 declare.
6420 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6421
6422 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6423
6424 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6425 of partial symtabs.
6426
6427 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6428
6429 * regformats/reg-arm.dat: Remove.
6430 * regformats/reg-bfin.dat: Remove.
6431 * regformats/reg-cris.dat: Remove.
6432 * regformats/reg-crisv32.dat: Remove.
6433 * regformats/reg-m32r.dat: Remove.
6434 * regformats/reg-tilegx.dat: Remove.
6435 * regformats/reg-tilegx32.dat: Remove.
6436
6437 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * features/Makefile (WHICH): Remove arm files.
6440 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6441 * regformats/arm/arm-with-neon.dat: Remove.
6442 * regformats/arm/arm-with-vfpv2.dat: Remove.
6443 * regformats/arm/arm-with-vfpv3.dat: Remove.
6444
6445 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6446
6447 * features/Makefile (XMLTOC): Remove rx.xml.
6448
6449 2020-06-17 Pedro Alves <palves@redhat.com>
6450
6451 * gdbthread.h (thread_control_state) <trap_expected> Update
6452 comments.
6453
6454 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6455
6456 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6457 ada_language::lookup_symbol_nonlocal.
6458 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6459 (ada_language::lookup_symbol_nonlocal): New member function,
6460 implementation from ada_lookup_symbol_nonlocal.
6461 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6462 initializer.
6463 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6464 initializer.
6465 (cplus_language::lookup_symbol_nonlocal): New member function.
6466 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6467 (minimal_language_data) Likewise.
6468 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6469 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6470 initializer.
6471 (d_language::lookup_symbol_nonlocal): New member function.
6472 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6473 initializer.
6474 (f_language::lookup_symbol_nonlocal): New member function.
6475 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6476 initializer.
6477 * language.c (unknown_language_data): Likewise.
6478 (auto_language_data): Likewise.
6479 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6480 field.
6481 (language_defn::lookup_symbol_nonlocal): New member function.
6482 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6483 initializer.
6484 * objc-lang.c (objc_language_data): Likewise.
6485 * opencl-lang.c (opencl_language_data): Likewise.
6486 * p-lang.c (pascal_language_data): Likewise.
6487 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6488 rust_language::lookup_symbol_nonlocal.
6489 (rust_language_data): Delete la_lookup_symbol_nonlocal
6490 initializer.
6491 (rust_language::lookup_symbol_nonlocal): New member function,
6492 implementation from rust_lookup_symbol_nonlocal.
6493 * symtab.c (lookup_symbol_aux): Update call to
6494 lookup_symbol_nonlocal.
6495 (basic_lookup_symbol_nonlocal): Rename to...
6496 (language_defn::lookup_symbol_nonlocal): ...this, and update
6497 header comment. Remove language_defn parameter, and replace with
6498 uses of `this'.
6499 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6500
6501 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6502
6503 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6504 initializer.
6505 (ada_language::value_print_inner): New member function.
6506 * c-lang.c (c_language_data): Delete la_value_print_inner
6507 initializer.
6508 (cplus_language_data): Likewise.
6509 (asm_language_data): Likewise.
6510 (minimal_language_data): Likewise.
6511 * d-lang.c (d_language_data): Likewise.
6512 (d_language::value_print_inner): New member function.
6513 * f-lang.c (f_language_data): Delete la_value_print_inner
6514 initializer.
6515 (f_language::value_print_inner): New member function.
6516 * f-lang.h (f_value_print_innner): Rename to...
6517 (f_value_print_inner): ...this (note spelling of 'inner').
6518 * f-valprint.c (f_value_print_innner): Rename to...
6519 (f_value_print_inner): ...this (note spelling of 'inner').
6520 * go-lang.c (go_language_data): Delete la_value_print_inner
6521 initializer.
6522 (go_language::value_print_inner): New member function.
6523 * language.c (language_defn::value_print_inner): Define new member
6524 function.
6525 (unk_lang_value_print_inner): Delete.
6526 (unknown_language_data): Delete la_value_print_inner initializer.
6527 (unknown_language::value_print_inner): New member function.
6528 (auto_language_data): Delete la_value_print_inner initializer.
6529 (auto_language::value_print_inner): New member function.
6530 * language.h (language_data): Delete la_value_print_inner field.
6531 (language_defn::value_print_inner): Delcare new member function.
6532 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6533 initializer.
6534 (m2_language::value_print_inner): New member function.
6535 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6536 initializer.
6537 * opencl-lang.c (opencl_language_data): Likewise.
6538 * p-lang.c (pascal_language_data): Likewise.
6539 (pascal_language::value_print_inner): New member function.
6540 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6541 initializer.
6542 (rust_language::value_print_inner): New member function.
6543 * valprint.c (do_val_print): Update call to value_print_inner.
6544
6545 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6546
6547 * ada-lang.c (ada_language_data): Delete la_value_print
6548 initializer.
6549 (ada_language::value_print): New member function.
6550 * c-lang.c (c_language_data): Delete la_value_print initializer.
6551 (cplus_language_data): Likewise.
6552 (asm_language_data): Likewise.
6553 (minimal_language_data): Likewise.
6554 * d-lang.c (d_language_data): Likewise.
6555 * f-lang.c (f_language_data): Likewise.
6556 * go-lang.c (go_language_data): Likewise.
6557 * language.c (unk_lang_value_print): Delete.
6558 (language_defn::value_print): Define new member function.
6559 (unknown_language_data): Delete la_value_print initializer.
6560 (unknown_language::value_print): New member function.
6561 (auto_language_data): Delete la_value_print initializer.
6562 (auto_language::value_print): New member function.
6563 * language.h (language_data): Delete la_value_print field.
6564 (language_defn::value_print): Declare new member function.
6565 (LA_VALUE_PRINT): Update call to value_print.
6566 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6567 * objc-lang.c (objc_language_data): Likewise.
6568 * opencl-lang.c (opencl_language_data): Likewise.
6569 * p-lang.c (pascal_language_data): Likewise.
6570 (pascal_language::value_print): New member function.
6571 * rust-lang.c (rust_language_data): Delete la_value_print
6572 initializer.
6573
6574 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * ada-lang.c (ada_watch_location_expression): Rename to
6577 ada_language::watch_location_expression.
6578 (ada_language_data): Delete la_watch_location_expression
6579 initializer.
6580 (ada_language::watch_location_expression): New member function,
6581 implementation from ada_watch_location_expression.
6582 * breakpoint.c (watch_command_1): Update call to
6583 watch_location_expression.
6584 * c-lang.c (c_watch_location_expression): Rename to
6585 language_defn::watch_location_expression.
6586 (c_language_data): Delete la_watch_location_expression
6587 initializer.
6588 (cplus_language_data): Likewise.
6589 (asm_language_data): Likewise.
6590 (minimal_language_data): Likewise.
6591 * c-lang.h (c_watch_location_expression): Delete declaration.
6592 * d-lang.c (d_language_data): Delete la_watch_location_expression
6593 initializer.
6594 * f-lang.c (f_language_data): Likewise.
6595 * go-lang.c (go_language_data): Likewise.
6596 * language.c (language_defn::watch_location_expression): Member
6597 function implementation from c_watch_location_expression.
6598 (unknown_language_data): Delete la_watch_location_expression
6599 initializer.
6600 (auto_language_data): Likewise.
6601 * language.h (language_data): Delete la_watch_location_expression
6602 field.
6603 (language_defn::watch_location_expression): Declare new member
6604 function.
6605 * m2-lang.c (m2_language_data): Delete
6606 la_watch_location_expression initializer.
6607 * objc-lang.c (objc_language_data): Likewise.
6608 * opencl-lang.c (opencl_language_data): Likewise.
6609 * p-lang.c (pascal_language_data): Likewise.
6610 * rust-lang.c (rust_watch_location_expression): Rename to
6611 rust_language::watch_location_expression.
6612 (rust_language_data): Delete la_watch_location_expression
6613 initializer.
6614 (rust_language::watch_location_expression): New member function,
6615 implementation from rust_watch_location_expression.
6616
6617 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6620 ada_language::collect_symbol_completion_matches.
6621 (ada_language_data): Delete la_collect_symbol_completion_matches
6622 initializer.
6623 (ada_language::collect_symbol_completion_matches): New member
6624 function, implementation from
6625 ada_collect_symbol_completion_matches.
6626 * c-lang.c (c_language_data): Delete
6627 la_collect_symbol_completion_matches initializer.
6628 (cplus_language_data): Likewise.
6629 (asm_language_data): Likewise.
6630 (minimal_language_data): Likewise.
6631 * d-lang.c (d_language_data): Likewise.
6632 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6633 f_language::collect_symbol_completion_matches.
6634 (f_language_data): Delete la_collect_symbol_completion_matches
6635 initializer.
6636 (f_language::collect_symbol_completion_matches) New member
6637 function, implementation from f_collect_symbol_completion_matches.
6638 * go-lang.c (go_language_data): Delete
6639 la_collect_symbol_completion_matches initializer.
6640 * language.c (unknown_language_data): Likewise.
6641 (auto_language_data): Likewise.
6642 * language.h (language_data): Delete
6643 la_collect_symbol_completion_matches field.
6644 (language_defn::collect_symbol_completion_matches): New member
6645 function.
6646 * m2-lang.c (m2_language_data): Delete
6647 la_collect_symbol_completion_matches initializer.
6648 * objc-lang.c (objc_language_data): Likewise.
6649 * opencl-lang.c (opencl_language_data): Likewise.
6650 * p-lang.c (pascal_language_data): Likewise.
6651 * rust-lang.c (rust_language_data): Likewise.
6652 * symtab.c (default_collect_symbol_completion_matches): Delete.
6653 (collect_symbol_completion_matches): Update call to
6654 collect_symbol_completion_matches.
6655 (collect_symbol_completion_matches_type): Likewise.
6656 * symtab.h (default_collect_symbol_completion_matches): Delete
6657 declaration.
6658
6659 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6660
6661 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6662 (ada_language_data): Delete la_word_break_characters initializer.
6663 (ada_language::word_break_characters): New member function.
6664 * c-lang.c (c_language_data): Delete la_word_break_characters
6665 initializer.
6666 (cplus_language_data): Likewise.
6667 (asm_language_data): Likewise.
6668 (minimal_language_data): Likewise.
6669 * completer.c: Update global comment.
6670 (advance_to_expression_complete_word_point): Update call to
6671 word_break_characters.
6672 (complete_files_symbols): Likewise.
6673 (complete_line_internal_1): Likewise.
6674 (default_completer_handle_brkchars): Likewise.
6675 (skip_quoted_chars): Likewise.
6676 * d-lang.c (d_language_data): Delete la_word_break_characters
6677 initializer.
6678 * f-lang.c (f_word_break_characters): Delete.
6679 (f_language_data): Delete la_word_break_characters initializer.
6680 (f_language::word_break_characters): New member function.
6681 * go-lang.c (go_language_data): Delete la_word_break_characters
6682 initializer.
6683 * language.c (unknown_language_data): Likewise.
6684 (auto_language_data): Likewise.
6685 * language.h (default_word_break_characters): Move declaration to
6686 earlier in the file.
6687 (language_data): Delete la_word_break_characters field.
6688 (language_defn::word_break_characters): New member function.
6689 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6690 initializer.
6691 * objc-lang.c (objc_language_data): Likewise.
6692 * opencl-lang.c (opencl_language_data): Likewise.
6693 * p-lang.c (pascal_language_data): Likewise.
6694 * rust-lang.c (rust_language_data): Likewise.
6695
6696 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6699 (ada_language_data): Delete la_get_symbol_name_matcher
6700 initializer.
6701 (language_defn::get_symbol_name_matcher_inner): New member
6702 function.
6703 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6704 initializer.
6705 (cplus_language_data): Likewise.
6706 (cplus_language::get_symbol_name_matcher_inner): New member
6707 function.
6708 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6709 (minimal_language_data): Likewise.
6710 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6711 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6712 initializer.
6713 * dictionary.c (iter_match_first_hashed): Update call to
6714 get_symbol_name_matcher.
6715 (iter_match_next_hashed): Likewise.
6716 (iter_match_next_linear): Likewise.
6717 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6718 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6719 initializer.
6720 (f_language::get_symbol_name_matcher_inner): New member function.
6721 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6722 initializer.
6723 * language.c (default_symbol_name_matcher): Update header comment,
6724 make static.
6725 (language_defn::get_symbol_name_matcher): New definition.
6726 (language_defn::get_symbol_name_matcher_inner): Likewise.
6727 (get_symbol_name_matcher): Delete.
6728 (unknown_language_data): Delete la_get_symbol_name_matcher
6729 initializer.
6730 (auto_language_data): Likewise.
6731 * language.h (language_data): Delete la_get_symbol_name_matcher
6732 field.
6733 (language_defn::get_symbol_name_matcher): New member function.
6734 (language_defn::get_symbol_name_matcher_inner): Likewise.
6735 (default_symbol_name_matcher): Delete declaration.
6736 * linespec.c (find_methods): Update call to
6737 get_symbol_name_matcher.
6738 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6739 initializer.
6740 * minsyms.c (lookup_minimal_symbol): Update call to
6741 get_symbol_name_matcher.
6742 (iterate_over_minimal_symbols): Likewise.
6743 * objc-lang.c (objc_language_data): Delete
6744 la_get_symbol_name_matcher initializer.
6745 * opencl-lang.c (opencl_language_data): Likewise.
6746 * p-lang.c (pascal_language_data): Likewise.
6747 * psymtab.c (psymbol_name_matches): Update call to
6748 get_symbol_name_matcher.
6749 * rust-lang.c (rust_language_data): Delete
6750 la_get_symbol_name_matcher initializer.
6751 * symtab.c (symbol_matches_search_name): Update call to
6752 get_symbol_name_matcher.
6753 (compare_symbol_name): Likewise.
6754
6755 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * ada-lang.c (ada_language_data): Delete la_compute_program
6758 initializer.
6759 * c-lang.c (c_language_data): Likewise.
6760 (c_language::compute_program): New member function.
6761 (cplus_language_data): Delete la_compute_program initializer.
6762 (cplus_language::compute_program): New member function.
6763 (asm_language_data): Delete la_compute_program initializer.
6764 (minimal_language_data): Likewise.
6765 * c-lang.h (c_compute_program): Update comment.
6766 (cplus_compute_program): Likewise.
6767 * compile/compile-c-support.c (c_compute_program): Likewise.
6768 (cplus_compute_program): Likewise.
6769 * compile/compile.c (compile_to_object): Update call to
6770 la_compute_program.
6771 * d-lang.c (d_language_data): Delete la_compute_program
6772 initializer.
6773 * f-lang.c (f_language_data): Likewise.
6774 * go-lang.c (go_language_data): Likewise.
6775 * language.c (unknown_language_data): Likewise.
6776 (auto_language_data): Likewise.
6777 * language.h (language_data): Delete la_compute_program field.
6778 (language_defn::compute_program): New member function.
6779 * m2-lang.c (m2_language_data): Delete la_compute_program
6780 initializer.
6781 * objc-lang.c (objc_language_data): Likewise.
6782 * opencl-lang.c (opencl_language_data): Likewise.
6783 * p-lang.c (pascal_language_data): Likewise.
6784 * rust-lang.c (rust_language_data): Likewise.
6785
6786 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * ada-lang.c (ada_language_data) Delete
6789 la_class_name_from_physname initializer.
6790 * c-lang.c (c_language_data): Likewise.
6791 (cplus_language_data): Likewise.
6792 (cplus_language::class_name_from_physname): New member function.
6793 (asm_language_data): Delete la_class_name_from_physname
6794 initializer.
6795 (minimal_language_data): Likewise.
6796 * d-lang.c (d_language_data): Likewise.
6797 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6798 method on language_defn class.
6799 (guess_full_die_structure_name): Likewise.
6800 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6801 initializer.
6802 * go-lang.c (go_language_data): Likewise.
6803 * language.c (language_class_name_from_physname): Delete.
6804 (unk_lang_class_name): Delete.
6805 (unknown_language_data): Delete la_class_name_from_physname
6806 initializer.
6807 (auto_language_data): Likewise.
6808 * language.h (language_data): Delete la_class_name_from_physname
6809 field.
6810 (language_defn::class_name_from_physname): New function.
6811 (language_class_name_from_physname): Delete declaration.
6812 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6813 initializer.
6814 * objc-lang.c (objc_language_data): Likewise.
6815 * opencl-lang.c (opencl_language_data): Likewise.
6816 * p-lang.c (pascal_language_data): Likewise.
6817 * rust-lang.c (rust_language_data): Likewise.
6818
6819 2020-06-16 Tom Tromey <tom@tromey.com>
6820
6821 * tui/tui-data.h (STATUS_NAME): New macro.
6822 * tui/tui-layout.c (tui_remove_some_windows)
6823 (initialize_known_windows, tui_register_window)
6824 (tui_layout_split::remove_windows, initialize_layouts)
6825 (tui_new_layout_command): Don't use hard-coded window names.
6826
6827 2020-06-16 Tom Tromey <tom@tromey.com>
6828
6829 PR tui/25348:
6830 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6831 tui_initialize_readline. Only run once. Call rl_initialize.
6832 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6833 tui_initialize_readline.
6834 * tui/tui-io.c (tui_setup_io): Call
6835 tui_ensure_readline_initialized.
6836 * tui/tui-interp.c (tui_interp::init): Update.
6837
6838 2020-06-16 Tom Tromey <tom@tromey.com>
6839
6840 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6841 Also preserve the status window.
6842
6843 2020-06-16 Tom Tromey <tom@tromey.com>
6844
6845 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6846 where m_window==nullptr.
6847
6848 2020-06-15 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (windows_nat::handle_output_debug_string):
6851 Update.
6852 (windows_nat::handle_ms_vc_exception): Update.
6853 * target.h (target_read_string): Change API.
6854 * target.c (target_read_string): Change API.
6855 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6856 Update.
6857 * solib-frv.c (frv_current_sos): Update.
6858 * solib-dsbt.c (dsbt_current_sos): Update.
6859 * solib-darwin.c (darwin_current_sos): Update.
6860 * linux-thread-db.c (inferior_has_bug): Update.
6861 * expprint.c (print_subexp_standard): Update.
6862 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6863 (ada_exception_message_1): Update.
6864
6865 2020-06-15 Tom Tromey <tromey@adacore.com>
6866
6867 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6868
6869 2020-06-15 Tom Tromey <tromey@adacore.com>
6870
6871 * valprint.c (read_string): Update comment.
6872 * target.c (MIN): Remove.
6873 (target_read_string): Rewrite.
6874
6875 2020-06-15 Tom Tromey <tromey@adacore.com>
6876
6877 * corefile.c (read_memory_string): Remove.
6878 * ada-valprint.c (ada_value_print_ptr): Update.
6879 * ada-lang.h (ada_tag_name): Change return type.
6880 * ada-lang.c (type_from_tag): Update.
6881 (ada_tag_name_from_tsd): Change return type. Use
6882 target_read_string.
6883 (ada_tag_name): Likewise.
6884 * gdbcore.h (read_memory_string): Don't declare.
6885
6886 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6887
6888 * symtab.c (rbreak_command): Ignore Windows drive colon.
6889
6890 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * NEWS: Mention removed GDBserver host support.
6893
6894 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6895
6896 * features/riscv/rebuild-csr-xml.sh: Updated.
6897
6898 2020-06-11 Tom Tromey <tom@tromey.com>
6899
6900 PR gdb/18318:
6901 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6902
6903 2020-06-09 Jonny Grant <jg@jguk.org>
6904 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6905
6906 * main.c (captured_main_1): Don't print new line after help.
6907 (print_gdb_help): add mailing list and IRC channel information
6908 to --help. Add new lines between items in the footer. Remove
6909 quotes around bug url.
6910
6911 2020-06-11 Keith Seitz <keiths@redhat.com>
6912
6913 PR gdb/21356
6914 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6915 Resolve typedefs for type length calculations.
6916
6917 2020-06-10 Tom de Vries <tdevries@suse.de>
6918
6919 PR ada/24713
6920 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6921 (write_psymbols): Enable .gdb_index for ada.
6922 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6923 ada.
6924
6925 2020-06-10 Tom de Vries <tdevries@suse.de>
6926
6927 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6928 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6929 namei" instead of "const char *name" argument.
6930 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6931 dw2_symtab_iter_init.
6932
6933 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6936 to use type::field and field::type instead.
6937
6938 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6941 to use field::type instead.
6942
6943 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6944
6945 * gdbtypes.h (struct field) <type, set_type>: New methods.
6946 Rename `type` field to...
6947 <m_type>: ... this. Change references throughout to use type or
6948 set_type methods.
6949 (FIELD_TYPE): Use field::type. Change call sites that modify
6950 the field's type to use field::set_type instead.
6951
6952 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6953
6954 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6955 to use type::index_type instead.
6956
6957 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6960 methods.
6961 (TYPE_INDEX_TYPE): Use type::index_type.
6962 * gdbtypes.c (create_array_type_with_stride): Likewise.
6963
6964 2020-06-07 Tom Tromey <tom@tromey.com>
6965
6966 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6967 parameter.
6968 (generic_value_print): Update.
6969
6970 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 Revert commit 982a38f60b0.
6973 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6974
6975 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6978 avoid use after free.
6979
6980 2020-06-05 Tom de Vries <tdevries@suse.de>
6981
6982 * NEWS: Fix typos.
6983
6984 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6985
6986 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6987 the per_bfd object.
6988 (dwarf2_read_debug_names): Likewise.
6989 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6990 object when re-using a per_bfd object with an index.
6991
6992 2020-06-03 Tom de Vries <tdevries@suse.de>
6993
6994 PR symtab/26046
6995 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6996 children for C++.
6997 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6998 DW_TAG_subprogram.
6999
7000 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7001
7002 * ada-lang.c (ada_language_data): Delete skip_trampoline
7003 initializer.
7004 * c-lang.c (c_language_data): Likewise.
7005 (cplus_language_data): Likewise.
7006 (cplus_language::skip_trampoline): New member function.
7007 (asm_language_data): Delete skip_trampoline initializer.
7008 (minimal_language_data): Likewise.
7009 * d-lang.c (d_language_data): Likewise.
7010 * f-lang.c (f_language_data): Likewise.
7011 * go-lang.c (go_language_data): Likewise.
7012 * language.c (unk_lang_trampoline): Delete function.
7013 (skip_language_trampoline): Update.
7014 (unknown_language_data): Delete skip_trampoline initializer.
7015 (auto_language_data): Likewise.
7016 * language.h (language_data): Delete skip_trampoline field.
7017 (language_defn::skip_trampoline): New function.
7018 * m2-lang.c (m2_language_data): Delete skip_trampoline
7019 initializer.
7020 * objc-lang.c (objc_skip_trampoline): Delete function, move
7021 implementation to objc_language::skip_trampoline.
7022 (objc_language_data): Delete skip_trampoline initializer.
7023 (objc_language::skip_trampoline): New member function with
7024 implementation from objc_skip_trampoline.
7025 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
7026 initializer.
7027 * p-lang.c (pascal_language_data): Likewise.
7028 * rust-lang.c (rust_language_data): Likewise.
7029
7030 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
7033 (ada_language::demangle): New member function.
7034 * c-lang.c (c_language_data): Delete la_demangle initializer.
7035 (cplus_language_data): Delete la_demangle initializer.
7036 (cplus_language::demangle): New member function.
7037 (asm_language_data): Delete la_demangle initializer.
7038 (minimal_language_data): Delete la_demangle initializer.
7039 * d-lang.c (d_language_data): Delete la_demangle initializer.
7040 (d_language::demangle): New member function.
7041 * f-lang.c (f_language_data): Delete la_demangle initializer.
7042 (f_language::demangle): New member function.
7043 * go-lang.c (go_language_data): Delete la_demangle initializer.
7044 (go_language::demangle): New member function.
7045 * language.c (language_demangle): Update.
7046 (unk_lang_demangle): Delete.
7047 (unknown_language_data): Delete la_demangle initializer.
7048 (unknown_language::demangle): New member function.
7049 (auto_language_data): Delete la_demangle initializer.
7050 (auto_language::demangle): New member function.
7051 * language.h (language_data): Delete la_demangle field.
7052 (language_defn::demangle): New function.
7053 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7054 * objc-lang.c (objc_language_data): Delete la_demangle
7055 initializer.
7056 (objc_language::demangle): New member function.
7057 * opencl-lang.c (opencl_language_data): Delete la_demangle
7058 initializer.
7059 * p-lang.c (pascal_language_data): Likewise.
7060 * rust-lang.c (rust_language_data): Likewise.
7061 (rust_language::demangle): New member function.
7062
7063 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7064
7065 * ada-lang.c (ada_language_data): Delete la_print_type
7066 initializer.
7067 (ada_language::print_type): New member function.
7068 * c-lang.c (c_language_data): Delete la_print_type initializer.
7069 (c_language::print_type): New member function.
7070 (cplus_language_data): Delete la_print_type initializer.
7071 (cplus_language::print_type): New member function.
7072 (asm_language_data): Delete la_print_type initializer.
7073 (asm_language::print_type): New member function.
7074 (minimal_language_data): Delete la_print_type initializer.
7075 (minimal_language::print_type): New member function.
7076 * d-lang.c (d_language_data): Delete la_print_type initializer.
7077 (d_language::print_type): New member function.
7078 * f-lang.c (f_language_data): Delete la_print_type initializer.
7079 (f_language::print_type): New member function.
7080 * go-lang.c (go_language_data): Delete la_print_type initializer.
7081 (go_language::print_type): New member function.
7082 * language.c (unk_lang_print_type): Delete.
7083 (unknown_language_data): Delete la_print_type initializer.
7084 (unknown_language::print_type): New member function.
7085 (auto_language_data): Delete la_print_type initializer.
7086 (auto_language::print_type): New member function.
7087 * language.h (language_data): Delete la_print_type field.
7088 (language_defn::print_type): New function.
7089 (LA_PRINT_TYPE): Update.
7090 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7091 (m2_language::print_type): New member function.
7092 * objc-lang.c (objc_language_data): Delete la_print_type
7093 initializer.
7094 (objc_language::print_type): New member function.
7095 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7096 to opencl_language::print_type.
7097 (opencl_language_data): Delete la_print_type initializer.
7098 (opencl_language::print_type): New member function, implementation
7099 from opencl_print_type.
7100 * p-lang.c (pascal_language_data): Delete la_print_type
7101 initializer.
7102 (pascal_language::print_type): New member function.
7103 * rust-lang.c (rust_print_type): Delete, implementation moved to
7104 rust_language::print_type.
7105 (rust_language_data): Delete la_print_type initializer.
7106 (rust_language::print_type): New member function, implementation
7107 from rust_print_type.
7108
7109 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7110
7111 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7112 implementation moves to...
7113 (ada_language::sniff_from_mangled_name): ...here. Update return
7114 type.
7115 (ada_language_data): Delete la_sniff_from_mangled_name
7116 initializer.
7117 * c-lang.c (c_language_data): Likewise.
7118 (cplus_language_data): Likewise.
7119 (cplus_language::sniff_from_mangled_name): New member function,
7120 implementation taken from gdb_sniff_from_mangled_name.
7121 (asm_language_data): Delete la_sniff_from_mangled_name
7122 initializer.
7123 (minimal_language_data): Likewise.
7124 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7125 implementation moves to cplus_language::sniff_from_mangled_name.
7126 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7127 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7128 moves to...
7129 (d_language::sniff_from_mangled_name): ...here.
7130 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7131 * f-lang.c (f_language_data): Likewise.
7132 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7133 moves to...
7134 (go_language::sniff_from_mangled_name): ...here.
7135 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7136 * language.c (language_sniff_from_mangled_name): Delete.
7137 (unknown_language_data): Delete la_sniff_from_mangled_name
7138 initializer.
7139 (auto_language_data): Likewise.
7140 * language.h (language_data): Delete la_sniff_from_mangled_name
7141 field.
7142 (language_defn::sniff_from_mangled_name): New function.
7143 (language_sniff_from_mangled_name): Delete declaration.
7144 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7145 field.
7146 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7147 implementation moves to...
7148 (objc_language::sniff_from_mangled_name): ...here.
7149 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7150 * opencl-lang.c (opencl_language_data): Likewise.
7151 * p-lang.c (pascal_language_data): Likewise.
7152 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7153 implementation moves to...
7154 (rust_language::sniff_from_mangled_name): ...here.
7155 (rust_language_data): Delete la_sniff_from_mangled_name
7156 initializer.
7157 * symtab.c (symbol_find_demangled_name): Call
7158 sniff_from_mangled_name member function.
7159
7160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7163 initializer.
7164 * c-lang.c (c_language_data): Likewise.
7165 (cplus_language_data): Likewise.
7166 (cplus_language::search_name_hash): New member function.
7167 (asm_language_data): Delete la_search_name_hash initializer.
7168 (minimal_language_data): Likewise.
7169 * d-lang.c (d_language_data): Likewise.
7170 * dictionary.c (default_search_name_hash): Rename to...
7171 (language_defn::search_name_hash): ...this.
7172 * f-lang.c (f_language_data): Likewise.
7173 (f_language::search_name_hash): New member function.
7174 * go-lang.c (go_language_data): Delete la_search_name_hash
7175 initializer.
7176 * language.c (unknown_language_data): Likewise.
7177 (auto_language_data): Likewise.
7178 * language.h (struct language_data): Delete la_search_name_hash
7179 field.
7180 (language_defn::search_name_hash): Declare new member function.
7181 (default_search_name_hash): Delete declaration.
7182 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7183 initializer.
7184 * objc-lang.c (objc_language_data): Likewise.
7185 * opencl-lang.c (opencl_language_data): Likewise.
7186 * p-lang.c (pascal_language_data): Likewise.
7187 * rust-lang.c (rust_language_data): Likewise.
7188 * symtab.c (search_name_hash): Update call.
7189
7190 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7191
7192 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7193 initializer.
7194 * c-lang.c (class compile_instance): Declare.
7195 (c_language_data): Delete la_get_compile_instance initializer.
7196 (c_language::get_compile_instance): New member function.
7197 (cplus_language_data): Delete la_get_compile_instance initializer.
7198 (cplus_language::get_compile_instance): New member function.
7199 (asm_language_data): Delete la_get_compile_instance initializer.
7200 (minimal_language_data): Likewise.
7201 * c-lang.h (c_get_compile_context): Update comment.
7202 (cplus_get_compile_context): Update comment.
7203 * compile/compile.c (compile_to_object): Update calls, don't rely
7204 on function pointer being NULL.
7205 * d-lang.c (d_language_data): Delete la_get_compile_instance
7206 initializer.
7207 * f-lang.c (f_language_data): Likewise.
7208 * go-lang.c (go_language_data): Likewise.
7209 * language.c (unknown_language_data): Likewise.
7210 (auto_language_data): Likewise.
7211 * language.h (language_data): Delete la_get_compile_instance field.
7212 (language_defn::get_compile_instance): New member function.
7213 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7214 initializer.
7215 * objc-lang.c (objc_language_data): Likewise.
7216 * opencl-lang.c (opencl_language_data): Likewise.
7217 * p-lang.c (pascal_language_data): Likewise.
7218 * rust-lang.c (rust_language_data): Likewise.
7219
7220 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7221
7222 * ada-lang.c (ada_add_all_symbols): Update comment.
7223 (ada_iterate_over_symbols): Delete, move implementation to...
7224 (ada_language::iterate_over_symbols): ...here, a new member
7225 function, rewrite to use range based for loop.
7226 (ada_language_data): Delete la_iterate_over_symbols initializer.
7227 * c-lang.c (c_language_data): Likewise.
7228 (cplus_language_data): Likewise.
7229 (asm_language_data): Likewise.
7230 (minimal_language_data): Likewise.
7231 * d-lang.c (d_language_data): Likewise.
7232 * f-lang.c (f_language_data): Likewise.
7233 * go-lang.c (go_language_data): Likewise.
7234 * language.c (unknown_language_data): Likewise.
7235 (auto_language_data): Likewise.
7236 * language.h (language_data): Delete la_iterate_over_symbols field.
7237 (language_defn::iterate_over_symbols): New member function.
7238 (LA_ITERATE_OVER_SYMBOLS): Update.
7239 * linespec.c (iterate_over_all_matching_symtabs): Update.
7240 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7241 initializer.
7242 * objc-lang.c (objc_language_data): Likewise.
7243 * opencl-lang.c (opencl_language_data): Likewise.
7244 * p-lang.c (pascal_language_data): Likewise.
7245 * rust-lang.c (rust_language_data): Likewise.
7246
7247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7248
7249 * ada-lang.c (ada_language_data): Delete
7250 la_lookup_transparent_type initializer.
7251 * c-lang.c (c_language_data): Likewise.
7252 (cplus_language_data): Likewise.
7253 (cplus_language::lookup_transparent_type): New member function.
7254 (asm_language_data): Delete la_lookup_transparent_type
7255 initializer.
7256 (minimal_language_data): Likewise.
7257 * d-lang.c (d_language_data): Likewise.
7258 * f-lang.c (f_language_data): Likewise.
7259 * go-lang.c (go_language_data): Likewise.
7260 * language.c (unknown_language_data): Likewise.
7261 (auto_language_data): Likewise.
7262 * language.h (struct language_data): Delete
7263 la_lookup_transparent_type field.
7264 (language_defn::lookup_transparent_type): New member function.
7265 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7266 initializer.
7267 * objc-lang.c (objc_language_data): Likewise.
7268 * opencl-lang.c (opencl_language_data): Likewise.
7269 * p-lang.c (pascal_language_data): Likewise.
7270 * rust-lang.c (rust_language_data): Likewise.
7271 * symtab.c (symbol_matches_domain): Update call.
7272
7273 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * ada-lang.c (ada_language_arch_info): Delete function, move
7276 implementation to...
7277 (ada_language::language_arch_info): ...here, a new member
7278 function.
7279 (ada_language_data): Delete la_language_arch_info.
7280 * c-lang.c (c_language_data): Likewise.
7281 (c_language::language_arch_info): New member function.
7282 (cplus_language_arch_info): Delete function, move
7283 implementation to...
7284 (cplus_language::language_arch_info): ...here, a new member
7285 function.
7286 (cplus_language_data): Delete la_language_arch_info.
7287 (asm_language_data): Likewise.
7288 (asm_language::language_arch_info): New member function.
7289 (minimal_language_data): Delete la_language_arch_info.
7290 (minimal_language::language_arch_info): New member function.
7291 * d-lang.c (d_language_arch_info): Delete function, move
7292 implementation to...
7293 (d_language::language_arch_info): ...here, a new member
7294 function.
7295 (d_language_data): Delete la_language_arch_info.
7296 * f-lang.c (f_language_arch_info): Delete function, move
7297 implementation to...
7298 (f_language::language_arch_info): ...here, a new member
7299 function.
7300 (f_language_data): Delete la_language_arch_info.
7301 * go-lang.c (go_language_arch_info): Delete function, move
7302 implementation to...
7303 (go_language::language_arch_info): ...here, a new member
7304 function.
7305 (go_language_data): Delete la_language_arch_info.
7306 * language.c (unknown_language_data): Likewise.
7307 (unknown_language::language_arch_info): New member function.
7308 (auto_language_data): Delete la_language_arch_info.
7309 (auto_language::language_arch_info): New member function.
7310 (language_gdbarch_post_init): Update call to
7311 la_language_arch_info.
7312 * language.h (language_data): Delete la_language_arch_info
7313 function pointer.
7314 (language_defn::language_arch_info): New function.
7315 * m2-lang.c (m2_language_arch_info): Delete function, move
7316 implementation to...
7317 (m2_language::language_arch_info): ...here, a new member
7318 function.
7319 (m2_language_data): Delete la_language_arch_info.
7320 * objc-lang.c (objc_language_arch_info): Delete function, move
7321 implementation to...
7322 (objc_language::language_arch_info): ...here, a new member
7323 function.
7324 (objc_language_data): Delete la_language_arch_info.
7325 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7326 implementation to...
7327 (opencl_language::language_arch_info): ...here, a new member
7328 function.
7329 (opencl_language_data): Delete la_language_arch_info.
7330 * p-lang.c (pascal_language_arch_info): Delete function, move
7331 implementation to...
7332 (pascal_language::language_arch_info): ...here, a new member
7333 function.
7334 (pascal_language_data): Delete la_language_arch_info.
7335 * rust-lang.c (rust_language_arch_info): Delete function, move
7336 implementation to...
7337 (rust_language::language_arch_info): ...here, a new member
7338 function.
7339 (rust_language_data): Delete la_language_arch_info.
7340
7341 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7344 initializer.
7345 * c-lang.c (c_language_data): Likewise.
7346 (cplus_language_data): Likewise.
7347 (cplus_language::pass_by_reference_info): New method.
7348 (asm_language_data): Delete la_pass_by_reference initializer.
7349 (minimal_language_data): Likewise.
7350 * cp-abi.c (cp_pass_by_reference): Remove use of
7351 default_pass_by_reference.
7352 * d-lang.c (d_language_data): Likewise.
7353 * f-lang.c (f_language_data): Likewise.
7354 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7355 default_pass_by_reference.
7356 * go-lang.c (go_language_data): Likewise.
7357 * language.c (language_pass_by_reference): Update.
7358 (default_pass_by_reference): Delete.
7359 (unknown_language_data): Delete la_pass_by_reference
7360 initializer.
7361 (auto_language_data): Likewise.
7362 * language.h (struct language_data): Delete la_pass_by_reference
7363 field.
7364 (language_defn::pass_by_reference_info): New member function.
7365 (default_pass_by_reference): Delete declaration.
7366 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7367 initializer.
7368 * objc-lang.c (objc_language_data): Likewise.
7369 * opencl-lang.c (opencl_language_data): Likewise.
7370 * p-lang.c (pascal_language_data): Likewise.
7371 * rust-lang.c (rust_language_data): Likewise.
7372
7373 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7374
7375 * ada-lang.c (ada_read_var_value): Delete function, move
7376 implementation to...
7377 (ada_language::read_var_value): ...here.
7378 (ada_language_data): Delete la_read_var_value initializer.
7379 * c-lang.c (c_language_data): Likewise.
7380 (cplus_language_data): Likewise.
7381 (minimal_language_data): Likewise.
7382 * d-lang.c (d_language_data): Likewise.
7383 * f-lang.c (f_language_data): Likewise.
7384 * findvar.c (default_read_var_value): Rename to...
7385 (language_defn::read_var_value): ...this.
7386 * findvar.c (read_var_value): Update header comment, and change to
7387 call member function instead of function pointer.
7388 * go-lang.c (go_language_data): Likewise.
7389 * language.c (unknown_language_data): Delete la_read_var_value
7390 initializer.
7391 (auto_language_data): Likewise.
7392 * language.h (struct language_data): Delete la_read_var_value
7393 field.
7394 (language_defn::read_var_value): New member function.
7395 (default_read_var_value): Delete declaration.
7396 * m2-lang.c (m2_language_data): Delete la_read_var_value
7397 initializer.
7398 * objc-lang.c (objc_language_data): Likewise.
7399 * opencl-lang.c (opencl_language_data): Likewise.
7400 * p-lang.c (pascal_language_data): Likewise.
7401 * rust-lang.c (rust_language_data): Likewise.
7402 * value.h (default_read_var_value): Delete declaration.
7403
7404 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * ada-lang.c (ada_print_array_index): Delete function, move
7407 implementation to...
7408 (ada_language::print_array_index): ...here.
7409 (ada_language_data): Delete la_print_array_index initializer.
7410 * c-lang.c (c_language_data): Likewise.
7411 (cplus_language_data): Likewise.
7412 (minimal_language_data): Likewise.
7413 * d-lang.c (d_language_data): Likewise.
7414 * f-lang.c (f_language_data): Likewise.
7415 * go-lang.c (go_language_data): Likewise.
7416 * language.c (default_print_array_index): Delete function, move
7417 implementation to...
7418 (language_defn::print_array_index): ...here.
7419 (unknown_language_data): Delete la_print_array_index initializer.
7420 (auto_language_data): Likewise.
7421 * language.h (struct language_data): Delete la_print_array_index
7422 field.
7423 (language_defn::print_array_index): New member function.
7424 (LA_PRINT_ARRAY_INDEX): Update.
7425 (default_print_array_index): Delete declaration.
7426 * m2-lang.c (m2_language_data): Delete la_print_array_index
7427 initializer.
7428 * objc-lang.c (objc_language_data): Likewise.
7429 * opencl-lang.c (opencl_language_data): Likewise.
7430 * p-lang.c (pascal_language_data): Likewise.
7431 * rust-lang.c (rust_language_data): Likewise.
7432
7433 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 * gdb/ada-lang.c (ada_language_defn): Convert to...
7436 (ada_language_data): ...this.
7437 (class ada_language): New class.
7438 (ada_language_defn): New static global.
7439 * gdb/c-lang.c (c_language_defn): Convert to...
7440 (c_language_data): ...this.
7441 (class c_language): New class.
7442 (c_language_defn): New static global.
7443 (cplus_language_defn): Convert to...
7444 (cplus_language_data): ...this.
7445 (class cplus_language): New class.
7446 (cplus_language_defn): New static global.
7447 (asm_language_defn): Convert to...
7448 (asm_language_data): ...this.
7449 (class asm_language): New class.
7450 (asm_language_defn): New static global.
7451 (minimal_language_defn): Convert to...
7452 (minimal_language_data): ...this.
7453 (class minimal_language): New class.
7454 (minimal_language_defn): New static global.
7455 * gdb/d-lang.c (d_language_defn): Convert to...
7456 (d_language_data): ...this.
7457 (class d_language): New class.
7458 (d_language_defn): New static global.
7459 * gdb/f-lang.c (f_language_defn): Convert to...
7460 (f_language_data): ...this.
7461 (class f_language): New class.
7462 (f_language_defn): New static global.
7463 * gdb/go-lang.c (go_language_defn): Convert to...
7464 (go_language_data): ...this.
7465 (class go_language): New class.
7466 (go_language_defn): New static global.
7467 * gdb/language.c (unknown_language_defn): Remove declaration.
7468 (current_language): Initialize to nullptr, real initialization is
7469 moved to _initialize_language.
7470 (languages): Delete global.
7471 (language_defn::languages): Define.
7472 (set_language_command): Use language_defn::languages.
7473 (set_language): Likewise.
7474 (range_error): Likewise.
7475 (language_enum): Likewise.
7476 (language_def): Likewise.
7477 (add_set_language_command): Use language_def::languages for the
7478 language list, and language_def to lookup language pointers.
7479 (skip_language_trampoline): Use language_defn::languages.
7480 (unknown_language_defn): Convert to...
7481 (unknown_language_data): ...this.
7482 (class unknown_language): New class.
7483 (unknown_language_defn): New static global.
7484 (auto_language_defn): Convert to...
7485 (auto_language_data): ...this.
7486 (class auto_language): New class.
7487 (auto_language_defn): New static global.
7488 (language_gdbarch_post_init): Use language_defn::languages.
7489 (_initialize_language): Initialize current_language.
7490 * gdb/language.h (struct language_defn): Rename to...
7491 (struct language_data): ...this.
7492 (struct language_defn): New.
7493 (auto_language_defn): Delete.
7494 (unknown_language_defn): Delete.
7495 (minimal_language_defn): Delete.
7496 (ada_language_defn): Delete.
7497 (asm_language_defn): Delete.
7498 (c_language_defn): Delete.
7499 (cplus_language_defn): Delete.
7500 (d_language_defn): Delete.
7501 (f_language_defn): Delete.
7502 (go_language_defn): Delete.
7503 (m2_language_defn): Delete.
7504 (objc_language_defn): Delete.
7505 (opencl_language_defn): Delete.
7506 (pascal_language_defn): Delete.
7507 (rust_language_defn): Delete.
7508 * gdb/m2-lang.c (m2_language_defn): Convert to...
7509 (m2_language_data): ...this.
7510 (class m2_language): New class.
7511 (m2_language_defn): New static global.
7512 * gdb/objc-lang.c (objc_language_defn): Convert to...
7513 (objc_language_data): ...this.
7514 (class objc_language): New class.
7515 (objc_language_defn): New static global.
7516 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7517 (opencl_language_data): ...this.
7518 (class opencl_language): New class.
7519 (opencl_language_defn): New static global.
7520 * gdb/p-lang.c (pascal_language_defn): Convert to...
7521 (pascal_language_data): ...this.
7522 (class pascal_language): New class.
7523 (pascal_language_defn): New static global.
7524 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7525 language pointer, update comment format.
7526 * gdb/rust-lang.c (rust_language_defn): Convert to...
7527 (rust_language_data): ...this.
7528 (class rust_language): New class.
7529 (rust_language_defn): New static global.
7530
7531 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7532
7533 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7534 member variable.
7535 <m_stmt_at_address>: New member variable.
7536 (lnp_state_machine::record_line): Don't record some lines, update
7537 tracking of is_stmt at the same address.
7538 (lnp_state_machine::lnp_state_machine): Initialise new member
7539 variables.
7540
7541 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7542
7543 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7544 "-include gnu-nat-mig.h".
7545 * gnu-nat-mig.h: New file.
7546 * gnu-nat.c: Include "gnu-nat-mig.h".
7547 (exc_server, msg_reply_server, notify_server,
7548 process_reply_server): Remove declarations.
7549
7550 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7551
7552 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7553 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7554 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7555 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7556 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7557 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7558 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7559 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7560 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7561 to gnu_nat_target class.
7562 * gnu-nat.c: Likewise.
7563 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7564 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7565 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7566 object.
7567 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7568 instead of `gnu_target'.
7569
7570 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7571
7572 * i386-gnu-tdep.c: Include "gdbcore.h"
7573 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7574 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7575 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7576 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7577 i386_gnu_sigcontext_addr): New functions
7578 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7579 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7580 tdep.
7581
7582 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7583
7584 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7585 before fork_inferior call. Avoid calling it if target_is_pushed returns
7586 true.
7587
7588 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7589
7590 * gnu-nat.h (gnu_target): New variable declaration.
7591 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7592 gnu_target.
7593 * gnu-nat.c (gnu_target): New variable.
7594 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7595 add_thread_silent, and add_thread calls.
7596 (gnu_nat_target::create_inferior): Pass gnu_target to
7597 add_thread_silent, thread_change_ptid call.
7598 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7599 call.
7600
7601 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7602
7603 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7604 (gnu_nat_target::find_memory_regions): Remove unused
7605 `old_address' variable.
7606
7607 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7608
7609 * gnu-nat.c: Include "gdbarch.h".
7610
7611 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7612
7613 * reply_mig_hack.awk (Error return): Cast function through
7614 void *, to bypass compiler function call check.
7615
7616 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7617
7618 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7619 $(srcdir)/reply_mig_hack.awk.
7620
7621 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7622
7623 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7624
7625 2020-05-30 Jonny Grant <jg@jguk.org>
7626
7627 * configure.ac (ACX_BUGURL): change bug URL to https.
7628
7629 2020-05-30 Pedro Alves <palves@redhat.com>
7630
7631 * cp-support.c (replace_typedefs_template): New.
7632 (replace_typedefs_qualified_name): Handle
7633 DEMANGLE_COMPONENT_TEMPLATE.
7634
7635 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7638 dwarf2/index-cache.h, dwarf2/index-write.c,
7639 dwarf2/index-write.h, dwarf2/line-header.c,
7640 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7641 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7642 variables and fields from `dwarf2_per_objfile` to just
7643 `per_objfile` throughout.
7644
7645 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7646
7647 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7648 <push_dwarf_reg_entry_value>: Add comment.
7649
7650 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7651 Keith Seitz <keiths@redhat.com>
7652
7653 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7654 instead of PyEval_ReleaseLock.
7655 (class gdbpy_gil): Move to earlier in file.
7656 (finalize_python): Set gdb_python_initialized.
7657 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7658 when not initialized.
7659
7660 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7663 <push_dwarf_reg_entry_value>: Remove assert. Override
7664 per_objfile with caller_per_objfile.
7665
7666 2020-05-28 Tom de Vries <tdevries@suse.de>
7667
7668 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7669 PR gold/15646 workaround to symbol kind "type".
7670
7671 2020-05-27 Tom Tromey <tromey@adacore.com>
7672
7673 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7674
7675 2020-05-27 Tom Tromey <tromey@adacore.com>
7676
7677 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7678 Use htab_find_with_hash.
7679 <add_abbrev>: Remove "abbrev_number" parameter.
7680 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7681 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7682 (hash_abbrev): Add comment.
7683 (abbrev_table::lookup_abbrev): Move to header file.
7684 (abbrev_table::read): Update.
7685
7686 2020-05-27 Tom Tromey <tromey@adacore.com>
7687
7688 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7689 method.
7690 <canonical_name>: New member.
7691 <raw_name>: Rename from "name".
7692 (partial_die_info): Initialize canonical_name.
7693 (scan_partial_symbols): Check raw_name.
7694 (partial_die_parent_scope, partial_die_full_name)
7695 (add_partial_symbol, add_partial_subprogram)
7696 (add_partial_enumeration, load_partial_dies): Use "name" method.
7697 (partial_die_info::name): New method.
7698 (partial_die_info::read, guess_partial_die_structure_name)
7699 (partial_die_info::fixup): Update.
7700
7701 2020-05-27 Tom Tromey <tromey@adacore.com>
7702
7703 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7704 <get_ref_die_offset>: Inline.
7705 <get_ref_die_offset_complaint>: New method.
7706 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7707 (attribute::get_ref_die_offset_complaint): Rename from
7708 get_ref_die_offset. Just issue complaint.
7709
7710 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7711
7712 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7713
7714 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7715
7716 * exec.c (exec_file_attach): Use errno value of first openp failure.
7717
7718 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7719
7720 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7721 Don't close thread handle.
7722
7723 2020-05-27 Tom Tromey <tom@tromey.com>
7724 Simon Marchi <simon.marchi@efficios.com>
7725
7726 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7727 shared_ptr.
7728 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7729 member.
7730 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7731 dwarf2_per_bfd_objfile_data_key>: New globals.
7732 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7733 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7734 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7735 shared.
7736 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7737 short-circuit when sharing.
7738 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7739 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7740
7741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7742
7743 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7744 to...
7745 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7746 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7747
7748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7749
7750 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7751 build_name_components, find_name_components_bounds>:
7752 Add per_objfile parameter.
7753 (struct mapped_index) <symbol_name_at>: Likewise.
7754 (struct mapped_debug_names): Remove constructor.
7755 <dwarf2_per_objfile>: Remove field.
7756 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7757 (mapped_index_base::find_name_components_bounds,
7758 mapped_index_base::build_name_components,
7759 dw2_expand_symtabs_matching_symbol): Likewise.
7760 (class mock_mapped_index) <symbol_name_at>: Likewise.
7761 (check_match): Likewise.
7762 (check_find_bounds_finds): Likewise.
7763 (test_mapped_index_find_name_component_bounds): Update.
7764 (CHECK_MATCH): Update.
7765 (dw2_expand_symtabs_matching): Update.
7766 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7767 per_objfile parameter.
7768 <find_vec_in_debug_names>: Likewise.
7769 <m_per_objfile>: New field.
7770 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7771 parameter.
7772 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7773 (dw2_debug_names_iterator::next): Update.
7774 (dw2_debug_names_lookup_symbol): Update.
7775 (dw2_debug_names_expand_symtabs_for_function): Update.
7776 (dw2_debug_names_map_matching_symbols): Update.
7777 (dw2_debug_names_expand_symtabs_matching): Update.
7778 (dwarf2_read_debug_names): Update.
7779
7780 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7783 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7784 move to dwarf2_per_objfile.
7785 <read_in_chain>: Remove.
7786 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7787 remove_all_cus, age_comp_units>: New methods.
7788 <m_dwarf2_cus>: New member.
7789 (struct dwarf2_per_cu_data) <cu>: Remove.
7790 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7791 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7792 moved to methods of dwarf2_per_objfile.
7793 (dwarf2_clear_marks): Remove.
7794 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7795 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7796 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7797 (dwarf2_per_objfile::remove_all_cus): New.
7798 (class free_cached_comp_units) <~free_cached_comp_units>:
7799 Update.
7800 (load_cu): Update.
7801 (dw2_do_instantiate_symtab): Adjust.
7802 (fill_in_sig_entry_from_dwo_entry): Adjust.
7803 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7804 (cutu_reader::cutu_reader): Likewise.
7805 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7806 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7807 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7808 and dwarf2_per_objfile::age_comp_units.
7809 (load_partial_comp_unit): Update.
7810 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7811 (process_queue): Likewise.
7812 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7813 backlink.
7814 (dwarf2_read_addr_index): Likewise.
7815 (follow_die_offset): Likewise.
7816 (dwarf2_fetch_die_loc_sect_off): Likewise.
7817 (dwarf2_fetch_constant_bytes): Likewise.
7818 (dwarf2_fetch_die_type_sect_off): Likewise.
7819 (follow_die_sig_1): Likewise.
7820 (load_full_type_unit): Likewise.
7821 (read_signatured_type): Likewise.
7822 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7823 (dwarf2_cu::~dwarf2_cu): Remove.
7824 (dwarf2_per_objfile::get_cu): New.
7825 (dwarf2_per_objfile::set_cu): New.
7826 (age_cached_comp_units): Rename to...
7827 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7828 to std::unordered_map.
7829 (free_one_cached_comp_unit): Rename to...
7830 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7831 to std::unordered_map.
7832 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7833 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7834 a dwarf2_per_objfile in data.
7835 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7836 (dwarf2_clear_marks): Remove.
7837
7838 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7841 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7842 (init_tu_and_read_dwo_dies): Likewise.
7843 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7844 (cutu_reader::cutu_reader): Likewise.
7845 (load_partial_comp_unit): Likewise.
7846 (process_psymtab_comp_unit): Update.
7847 (build_type_psymtabs_1): Update.
7848 (process_skeletonless_type_unit): Update.
7849 (load_full_comp_unit): Update.
7850 (find_partial_die): Update.
7851 (dwarf2_read_addr_index): Update.
7852 (read_signatured_type): Update.
7853
7854 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7855
7856 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7857 m_header_read_in>: New fields.
7858 <get_header>: New method.
7859 * dwarf2/read.c (per_cu_header_read_in): Remove.
7860 (dwarf2_per_cu_data::get_header): New.
7861 (dwarf2_per_cu_data::addr_size): Update.
7862 (dwarf2_per_cu_data::offset_size): Update.
7863 (dwarf2_per_cu_data::ref_addr_size): Update.
7864
7865 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7866
7867 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7868 (dw2_do_instantiate_symtab): Update.
7869 (queue_and_load_all_dwo_tus): Change parameter from
7870 dwarf2_per_cu_data to dwarf2_cu.
7871 (dwarf2_fetch_die_loc_sect_off): Update.
7872 (dwarf2_fetch_constant_bytes): Update.
7873 (dwarf2_fetch_die_type_sect_off): Update.
7874
7875 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * dwarf2/read.c (process_full_comp_unit,
7878 process_full_type_unit): Remove per_cu, per_objfile paramters.
7879 Add dwarf2_cu parameter.
7880 (process_queue): Update.
7881
7882 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * dwarf2/read.c (create_cu_from_index_list): Replace
7885 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7886 (create_cus_from_index_list): Likewise.
7887 (create_cus_from_index): Likewise.
7888 (create_signatured_type_table_from_index): Likewise.
7889 (create_cus_from_debug_names_list): Likewise.
7890 (create_cus_from_debug_names): Likewise.
7891 (dwarf2_read_gdb_index): Update.
7892 (dwarf2_read_debug_names): Update.
7893
7894 2020-05-27 Tom Tromey <tom@tromey.com>
7895 Simon Marchi <simon.marchi@efficios.com>
7896
7897 * dwarf2/read.h (struct dwarf2_per_objfile)
7898 <get_type_for_signatured_type, set_type_for_signatured_type>:
7899 New methods.
7900 <m_type_map>: New member.
7901 (struct signatured_type) <type>: Remove.
7902 * dwarf2/read.c
7903 (dwarf2_per_objfile::get_type_for_signatured_type,
7904 dwarf2_per_objfile::set_type_for_signatured_type): New.
7905 (get_signatured_type): Use new methods.
7906
7907 2020-05-27 Tom Tromey <tom@tromey.com>
7908 Simon Marchi <simon.marchi@efficios.com>
7909
7910 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7911 (struct dwarf2_per_objfile) <type_units>: New member.
7912 <get_type_unit_group_unshareable>: New method.
7913 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7914 num_symtabs, symtabs>: Remove; move to
7915 type_unit_group_unshareable.
7916 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7917 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7918 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7919
7920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * dwarf2/read.h (struct dwarf2_per_cu_data):
7923 <dwarf2_per_objfile>: Remove.
7924 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7925 dwarf2_per_objfile.
7926 (create_signatured_type_table_from_index): Likewise.
7927 (create_signatured_type_table_from_debug_names): Likewise.
7928 (create_debug_type_hash_table): Likewise.
7929 (fill_in_sig_entry_from_dwo_entry): Likewise.
7930 (create_type_unit_group): Likewise.
7931 (read_comp_units_from_section): Likewise.
7932 (create_cus_hash_table): Likewise.
7933
7934 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7937 dwarf2_per_cu_data::dwarf2_per_objfile.
7938 (compute_compunit_symtab_includes): Likewise.
7939 (dwarf2_cu::start_symtab): Likewise.
7940
7941 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7942
7943 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7944 parameter.
7945 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7946 (read_namespace_alias): Update.
7947 (lookup_die_type): Update.
7948 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7949 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7950 Update.
7951 (disassemble_dwarf_expression): Update.
7952
7953 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7954
7955 * dwarf2/read.h (struct dwarf2_queue_item): Add
7956 dwarf2_per_objfile parameter, assign new parameter.
7957 <per_objfile>: New field.
7958 * dwarf2/read.c (free_one_cached_comp_unit): Add
7959 dwarf2_per_objfile parameter.
7960 (queue_comp_unit): Likewise.
7961 (dw2_do_instantiate_symtab): Update.
7962 (process_psymtab_comp_unit): Update.
7963 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7964 (process_imported_unit_die): Update.
7965 (queue_and_load_dwo_tu): Update.
7966 (follow_die_offset): Update.
7967 (follow_die_sig_1): Update.
7968
7969 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7970
7971 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7972 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7973 (read_call_site_scope): Assign per_objfile.
7974 (dwarf2_per_cu_data::objfile): Remove.
7975 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7976 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7977 dwarf2_per_objfile parameter.
7978 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7979 dwarf2_per_objfile parameter.
7980 (dwarf_expr_reg_to_entry_parameter): Add output
7981 dwarf2_per_objfile parameter.
7982 (locexpr_get_frame_base): Update.
7983 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7984 <push_dwarf_reg_entry_value>: Update.
7985 <call_site_to_target_addr>: Update.
7986 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7987 parameter.
7988 (value_of_dwarf_reg_entry): Update.
7989 (rw_pieced_value): Update.
7990 (indirect_synthetic_pointer): Update.
7991 (dwarf2_evaluate_property): Update.
7992 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7993 parameter.
7994 (locexpr_read_variable): Update.
7995 (locexpr_get_symbol_read_needs): Update.
7996 (loclist_read_variable): Update.
7997
7998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7999
8000 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8001 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8002 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8003 parameter.
8004 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8005 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8006 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
8007 parameter.
8008 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
8009 sect_variable_value): Add dwarf2_per_objfile parameter.
8010 (class dwarf_evaluate_loc_desc) <dwarf_call,
8011 dwarf_variable_value>: Update.
8012 (fetch_const_value_from_synthetic_pointer): Add
8013 dwarf2_per_objfile parameter.
8014 (fetch_const_value_from_synthetic_pointer): Update.
8015 (coerced_pieced_ref): Update.
8016 (class symbol_needs_eval_context) <dwarf_call,
8017 dwarf_variable_value>: Update.
8018 (dwarf2_compile_expr_to_ax): Update.
8019
8020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
8023 parameter.
8024 (dwarf2_evaluate_loc_desc_full): Update.
8025
8026 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
8029 parameter.
8030 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
8031 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
8032 dwarf2_per_objfile parameter.
8033 (decode_debug_loc_dwo_addresses): Likewise.
8034 (dwarf2_find_location_expression): Update.
8035 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
8036 (locexpr_describe_location_piece): Add dwarf2_per_objfile
8037 parameter.
8038 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8039 parameter.
8040 (locexpr_describe_location_1): Likewise.
8041 (locexpr_describe_location): Update.
8042
8043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8046 Remove.
8047 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8048 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8049 (dwarf2_compile_property_to_c): Update.
8050 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8051 use text offset from objfile.
8052 (locexpr_tracepoint_var_ref): Update.
8053 (locexpr_generate_c_location): Update.
8054 (loclist_describe_location): Update.
8055 (loclist_tracepoint_var_ref): Update.
8056 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8057 dwarf2_per_objfile parameter.
8058 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8059 use text offset from objfile.
8060 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8061
8062 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * dwarf2/expr.h (struct dwarf_expr_context)
8065 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8066 <offset>: Remove.
8067 <per_objfile>: New member.
8068 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8069 dwarf2_per_objfile parameter. Don't set offset, set
8070 per_objfile.
8071 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8072 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8073 a dwarf2_per_objfile object instead of an offset.
8074 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8075 constructor.
8076 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8077 to dwarf2_expr_executor constructor. Don't set offset.
8078 (dwarf2_fetch_cfa_info): Update.
8079 (struct dwarf2_frame_cache) <text_offset>: Remove.
8080 <per_objfile>: New field.
8081 (dwarf2_frame_cache): Update.
8082 (dwarf2_frame_prev_register): Update.
8083 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8084 <dwarf_evaluate_loc_desc>: Add constructor.
8085 (dwarf2_evaluate_loc_desc_full): Update.
8086 (dwarf2_locexpr_baton_eval): Update.
8087 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8088 Add constructor.
8089 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8090
8091 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8092
8093 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8094 addr_sized_int_type>: Move to dwarf2_cu.
8095 <int_type>: Move to dwarf2_per_objfile.
8096 (struct dwarf2_per_objfile) <int_type>: Move here.
8097 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8098 addr_sized_int_type>: Move here.
8099 (read_func_scope): Update.
8100 (read_array_type): Update.
8101 (read_tag_string_type): Update.
8102 (attr_to_dynamic_prop): Update.
8103 (dwarf2_per_cu_data::int_type): Rename to...
8104 (dwarf2_per_objfile::int_type): ... this.
8105 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8106 (dwarf2_cu::addr_sized_int_type): ... this.
8107 (read_subrange_type): Update.
8108 (dwarf2_per_cu_data::addr_type): Rename to...
8109 (dwarf2_cu::addr_type): ... this.
8110 (set_die_type): Update.
8111
8112 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8115 data through per_cu->cu.
8116
8117 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8120 dwarf2_per_cu_data parameter fo dwarf2_cu.
8121 (lookup_dwo_type_unit): Likewise.
8122 (read_cutu_die_from_dwo): Likewise.
8123 (lookup_dwo_unit): Likewise.
8124 (open_and_init_dwo_file): Likewise.
8125 (lookup_dwo_cutu): Likewise.
8126 (lookup_dwo_comp_unit): Likewise.
8127 (lookup_dwo_type_unit): Likewise.
8128 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8129 (cutu_reader::cutu_reader): Update.
8130
8131 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8134 parameter.
8135 (process_full_type_unit): Likewise.
8136 (process_queue): Update.
8137
8138 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * dwarf2/read.c (recursively_compute_inclusions): Add
8141 dwarf2_per_objfile parameter.
8142 (compute_compunit_symtab_includes): Likewise.
8143 (process_cu_includes): Update.
8144
8145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8146
8147 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8148 parameter.
8149 (create_type_unit_group): Update.
8150 (process_psymtab_comp_unit_reader): Update.
8151 (build_type_psymtabs_reader): Update.
8152
8153 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8156 object through m_this_cu->cu.
8157
8158 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8159
8160 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8161 the info parameter.
8162 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8163
8164 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8165
8166 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8167 per_objfile parameter.
8168 (load_full_type_unit): Add per_objfile parameter.
8169 (read_signatured_type): Likewise.
8170 (load_full_comp_unit): Likewise.
8171 (load_cu): Likewise.
8172 (dw2_do_instantiate_symtab): Likewise.
8173 (dw2_get_file_names): Likewise.
8174 (dw2_map_symtabs_matching_filename): Update.
8175 (dw_expand_symtabs_matching_file_matcher): Update.
8176 (dw2_map_symbol_filenames): Update.
8177 (process_psymtab_comp_unit): Add per_objfile parameter.
8178 (build_type_psymtabs_1): Update.
8179 (process_skeletonless_type_unit): Update.
8180 (dwarf2_build_psymtabs_hard): Update.
8181 (load_partial_comp_unit): Add per_objfile parameter.
8182 (scan_partial_symbols): Update.
8183 (load_full_comp_unit): Add per_objfile parameter.
8184 (process_imported_unit_die): Update.
8185 (create_cus_hash_table): Update.
8186 (find_partial_die): Update.
8187 (dwarf2_read_addr_index): Update.
8188 (follow_die_offset): Update.
8189 (dwarf2_fetch_die_loc_sect_off): Update.
8190 (dwarf2_fetch_constant_bytes): Update.
8191 (dwarf2_fetch_die_type_sect_off): Update.
8192 (follow_die_sig_1): Update.
8193 (load_full_type_unit): Add per_objfile parameter.
8194 (read_signatured_type): Likewise.
8195
8196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8199 of objfile_name.
8200
8201 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8202
8203 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8204 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8205 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8206 field.
8207 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8208 (create_cus_from_index): Update.
8209 (dwarf2_read_gdb_index): Update.
8210 (create_cus_from_debug_names): Update.
8211 (dwarf2_read_debug_names): Update.
8212 (get_abbrev_section_for_cu): Update.
8213 (create_all_comp_units): Update.
8214 (read_attribute_value): Update.
8215 (get_debug_line_section): Update.
8216 * dwarf2/index-cache.c (index_cache::store): Update.
8217 * dwarf2/index-write.c (save_gdb_index_command): Update.
8218 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8219
8220 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8221
8222 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8223 member.
8224 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8225 dwarf2_per_cu_data::per_bfd.
8226 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8227 (create_type_unit_group): Likewise.
8228 (queue_comp_unit): Remove reference to
8229 per_cu->dwarf2_per_objfile.
8230 (maybe_queue_comp_unit): Likewise.
8231 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8232 (create_cus_hash_table): Assign new field.
8233
8234 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8235
8236 * dwarf2/read.c: Replace
8237 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8238 dwarf2_cu->per_objfile throughout.
8239
8240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8241
8242 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8243 parameter, don't use per_cu->dwarf2_per_objfile.
8244 (dw2_instantiate_symtab): Likewise.
8245 (dw2_find_last_source_symtab): Update.
8246 (dw2_map_expand_apply): Update.
8247 (dw2_lookup_symbol): Update.
8248 (dw2_expand_symtabs_for_function): Update.
8249 (dw2_expand_all_symtabs): Update.
8250 (dw2_expand_symtabs_with_fullname): Update.
8251 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8252 don't use per_cu->dwarf2_per_objfile.
8253 (dw2_expand_marked_cus): Update.
8254 (dw2_find_pc_sect_compunit_symtab): Update.
8255 (dw2_debug_names_lookup_symbol): Update.
8256 (dw2_debug_names_expand_symtabs_for_function): Update.
8257 (dw2_debug_names_map_matching_symbols): Update.
8258 (dwarf2_psymtab::expand_psymtab): Update.
8259
8260 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8261
8262 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8263 <per_objfile>: New member.
8264 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8265 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8266 call to dwarf2_cu.
8267 (cutu_reader::cutu_reader): Update.
8268 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8269
8270 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8271
8272 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8273 struct dwarf2_per_objfile.
8274 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8275 dwarf2_per_bfd.
8276 * dwarf2/read.c (set_die_type): Update.
8277 (get_die_type_at_offset): Update.
8278
8279 2020-05-27 Tom Tromey <tom@tromey.com>
8280 Simon Marchi <simon.marchi@efficios.com>
8281
8282 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8283 method.
8284 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8285 get_symtab, set_symtab>: New methods.
8286 <m_symtabs>: New field.
8287 (struct dwarf2_psymtab): Derive from partial_symtab.
8288 <readin_p, get_compunit_symtab>: Declare methods.
8289 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8290 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8291 New methods.
8292 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8293 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8294 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8295 (dw2_symtab_iter_next, dw2_print_stats)
8296 (dw2_expand_symtabs_with_fullname)
8297 (dw2_expand_symtabs_matching_one)
8298 (dw_expand_symtabs_matching_file_matcher)
8299 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8300 (dw2_debug_names_iterator::next)
8301 (dw2_debug_names_map_matching_symbols)
8302 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8303 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8304 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8305 New methods.
8306 (get_compunit_symtab, process_full_comp_unit)
8307 (process_full_type_unit): Update.
8308 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8309
8310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8311
8312 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8313 then introduce a new dwarf2_per_objfile type.
8314 <read_line_string>: Move to the new dwarf2_per_objfile type.
8315 <objfile>: Likewise.
8316 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8317 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8318 dwarf2_per_objfile->per_bfd.
8319 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8320 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8321 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8322 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8323 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8324 (dwarf2_per_objfile::locate_sections): Rename to...
8325 (dwarf2_per_bfd::locate_sections): ... this.
8326 (dwarf2_per_objfile::get_cutu): Rename to...
8327 (dwarf2_per_bfd::get_cutu): ... this.
8328 (dwarf2_per_objfile::get_cu): Rename to...
8329 (dwarf2_per_bfd::get_cu): ... this.
8330 (dwarf2_per_objfile::get_tu): Rename to...
8331 (dwarf2_per_bfd::get_tu): ... this.
8332 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8333 (dwarf2_per_bfd::allocate_per_cu): ... this.
8334 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8335 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8336 (get_gdb_index_contents_ftype): Change parameter from
8337 dwarf2_per_objfile to dwarf2_per_bfd.
8338 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8339 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8340
8341 2020-05-27 Tom Tromey <tom@tromey.com>
8342 Simon Marchi <simon.marchi@efficios.com>
8343
8344 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8345 (allocate_piece_closure): Set "per_objfile" member.
8346 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8347 (locexpr_describe_location, loclist_describe_location): Use new
8348 member.
8349 * dwarf2/read.c (read_call_site_scope)
8350 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8351 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8352 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8353 handle_data_member_location): Set per_objfile member.
8354 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8355 member.
8356 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8357
8358 2020-05-27 Tom Tromey <tom@tromey.com>
8359
8360 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8361 allocate_signatured_type>: Declare new methods.
8362 <m_num_psymtabs>: New member.
8363 (struct dwarf2_per_cu_data) <index>: New member.
8364 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8365 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8366 (create_cu_from_index_list): Use allocate_per_cu.
8367 (create_signatured_type_table_from_index)
8368 (create_signatured_type_table_from_debug_names)
8369 (create_debug_type_hash_table, add_type_unit)
8370 (read_comp_units_from_section): Use allocate_signatured_type.
8371
8372 2020-05-27 Tom Tromey <tom@tromey.com>
8373
8374 * psymtab.c (partial_map_expand_apply)
8375 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8376 (psym_lookup_global_symbol_language)
8377 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8378 (psym_print_stats, psym_expand_symtabs_for_function)
8379 (psym_map_symbol_filenames, psym_map_matching_symbols)
8380 (psym_expand_symtabs_matching)
8381 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8382 (maintenance_check_psymtabs): Update.
8383 * psympriv.h (struct partial_symtab) <readin_p,
8384 get_compunit_symtab>: Add objfile parameter.
8385 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8386 Likewise.
8387 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8388 get_compunit_symtab>: Likewise.
8389 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8390
8391 2020-05-27 Tom Tromey <tom@tromey.com>
8392
8393 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8394 member.
8395 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8396 (create_cu_from_index_list)
8397 (create_signatured_type_table_from_index)
8398 (create_signatured_type_table_from_debug_names)
8399 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8400 (dwarf2_create_include_psymtab)
8401 (create_debug_type_hash_table, add_type_unit)
8402 (create_type_unit_group, read_comp_units_from_section)
8403 (dwarf2_compute_name, create_cus_hash_table)
8404 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8405 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8406 obstack.
8407 (dw2_get_real_path): Likewise. Change argument to
8408 dwarf2_per_objfile.
8409
8410 2020-05-27 Luis Machado <luis.machado@linaro.org>
8411
8412 PR tdep/26000
8413 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8414 for ldrd (immediate).
8415
8416 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8417
8418 * command.h: Add comment giving the name of class_tui.
8419 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8420 create the fake command for the help for class_tui.
8421
8422 2020-05-26 Tom Tromey <tromey@adacore.com>
8423
8424 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8425 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8426 (val_atr): New function.
8427 (value_val_atr): Use it.
8428 * ada-valprint.c (print_optional_low_bound): Change low bound
8429 handling for enums.
8430 (val_print_packed_array_elements): Don't call discrete_position.
8431 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8432 discrete_position for enum types.
8433 * language.c (default_print_array_index): Change type.
8434 * language.h (struct language_defn) <la_print_array_index>: Add
8435 index_type parameter, change type of index_value.
8436 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8437 (default_print_array_index): Update.
8438 * valprint.c (maybe_print_array_index): Don't call
8439 value_from_longest. Update.
8440 (value_print_array_elements): Don't call discrete_position.
8441
8442 2020-05-26 Tom Tromey <tromey@adacore.com>
8443
8444 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8445 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8446
8447 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8448
8449 PR gdb/13519
8450 * avr-tdep.c (avr_integer_to_address): Return data or code
8451 address accordingly to the second 'type' argument of the
8452 function.
8453
8454 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8455
8456 * infcmd.c, inferior.h: (construct_inferior_arguments):
8457 Moved function from here to gdbsupport/common-inferior.{h,cc}
8458
8459 2020-05-23 Tom Tromey <tom@tromey.com>
8460
8461 Revert commit eca1f90c:
8462 * NEWS: Remove entry for completion styling.
8463 * completer.c (_rl_completion_prefix_display_length): Move
8464 declaration later.
8465 (gdb_fnprint): Revert.
8466 (gdb_display_match_list_1): Likewise.
8467 * cli/cli-style.c (completion_prefix_style)
8468 (completion_difference_style, completion_suffix_style): Remove.
8469 (_initialize_cli_style): Revert.
8470 * cli/cli-style.h (completion_prefix_style)
8471 (completion_difference_style, completion_suffix_style): Don't
8472 declare.
8473
8474 2020-05-24 Pedro Alves <palves@redhat.com>
8475
8476 * symtab.c (completion_list_add_name): Return boolean indication
8477 of whether the symbol matched.
8478 (completion_list_add_symbol): Don't try to remove C++ aliases if
8479 the symbol didn't match in the first place.
8480 * symtab.h (completion_list_add_name): Return bool.
8481
8482 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8483
8484 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8485 type::field.
8486
8487 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8488
8489 GDB 9.2 released.
8490
8491 2020-05-23 Tom Tromey <tom@tromey.com>
8492
8493 * NEWS: Add entry for completion styling.
8494 * completer.c (_rl_completion_prefix_display_length): Move
8495 declaration earlier.
8496 (gdb_fnprint): Use completion_style.
8497 (gdb_display_match_list_1): Likewise.
8498 * cli/cli-style.c (completion_prefix_style)
8499 (completion_difference_style, completion_suffix_style): New
8500 globals.
8501 (_initialize_cli_style): Register new globals.
8502 * cli/cli-style.h (completion_prefix_style)
8503 (completion_difference_style, completion_suffix_style): Declare.
8504
8505 2020-05-23 Pedro Alves <palves@redhat.com>
8506
8507 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8508 (parse_escape): Use ISDIGIT instead of isdigit.
8509 (puts_debug): Use gdb_isprint instead of isprint.
8510 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8511 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8512 ISSPACE instead of isspace.
8513 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8514 instead of isspace.
8515 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8516 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8517 instead of isxdigit and ISDIGIT instead of isdigit.
8518
8519 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8520
8521 * gdbtypes.h (struct type) <field>: New method.
8522 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8523 or type::field.
8524
8525 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8528 (TYPE_FIELDS): Use type::fields. Change all call sites that
8529 modify the propery to use type::set_fields instead.
8530
8531 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8534 type::num_fields instead.
8535
8536 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8539 methods.
8540 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8541 that modify the number of fields to use type::set_num_fields
8542 instead.
8543
8544 2020-05-22 Tom Tromey <tromey@adacore.com>
8545
8546 * compile/compile-object-load.h (munmap_list_free): Don't
8547 declare.
8548
8549 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8550
8551 * annotate.c (annotate_source_line): Update return type, add call
8552 to update current symtab and line.
8553 * annotate.h (annotate_source_line): Update return type, and
8554 extend header comment.
8555 * source.c (info_line_command): Check annotation_level before
8556 calling annotate_source_line.
8557 * stack.c (print_frame_info): If calling annotate_source_line
8558 returns true, then don't print any other source line information.
8559
8560 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8563
8564 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * coffread.c (patch_type): Remove NULL check before xfree.
8567 * corefile.c (set_gnutarget): Likewise.
8568 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8569 * exec.c (build_section_table): Likewise.
8570 * remote.c (remote_target::pass_signals): Likewise.
8571 * utils.c (n_spaces): Likewise.
8572 * cli/cli-script.c (document_command): Likewise.
8573 * i386-windows-tdep.c (core_process_module_section): Likewise.
8574 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8575
8576 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8577
8578 * symfile.c (reread_symbols): Clear objfile's section_offsets
8579 vector and section indices, re-compute them by calling
8580 sym_offsets.
8581
8582 2020-05-20 Tom Tromey <tromey@adacore.com>
8583
8584 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8585 (desc_one_bound, desc_index_type): Compute field name.
8586
8587 2020-05-20 Tom de Vries <tdevries@suse.de>
8588
8589 PR symtab/25833
8590 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8591
8592 2020-05-20 Alan Modra <amodra@gmail.com>
8593
8594 PR 25993
8595 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8596 bfd_set_filename.
8597 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8598 passed to bfd_set_filename.
8599 * symfile-mem.c (add_vsyscall_page): Likewise for string
8600 passed to symbol_file_add_from_memory.
8601 (symbol_file_add_from_memory): Make name param a const char* and
8602 don't strdup.
8603
8604 2020-05-20 Alan Modra <amodra@gmail.com>
8605
8606 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8607 rather than accessing bfd->filename directly.
8608 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8609 and use bfd_section_name.
8610 * dwarf2/frame.c (decode_frame_entry): Likewise.
8611 * exec.c (exec_set_section_address): Likewise.
8612 * solib-aix.c (solib_aix_bfd_open): Likewise.
8613 * stap-probe.c (get_stap_base_address): Likewise.
8614 * symfile.c (reread_symbols): Likewise.
8615
8616 2020-05-19 Tom Tromey <tromey@adacore.com>
8617
8618 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8619
8620 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8621
8622 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8623
8624 2020-05-19 Pedro Alves <palves@redhat.com>
8625
8626 * NEWS (set exec-file-mismatch): Adjust entry.
8627 * exec.c: Include "build-id.h".
8628 (validate_exec_file): Try to match build IDs instead of filenames.
8629 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8630 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8631 and pass down 'warn_if_slow'.
8632 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8633 gdb_bfd_open_closure to pass it down.
8634 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8635
8636 2020-05-19 Pedro Alves <palves@redhat.com>
8637
8638 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8639 * target.c (target_fileio_open_1): Rename to target_fileio_open
8640 and make extern. Use bool.
8641 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8642 (target_fileio_read_alloc_1): Adjust.
8643 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8644 (target_fileio_open_warn_if_slow): Delete declaration.
8645
8646 2020-05-19 Pedro Alves <palves@redhat.com>
8647
8648 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8649 Adjust all callers.
8650
8651 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8652
8653 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8654 whether disp is negative.
8655
8656 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * symfile.h (struct symfile_segment_data)
8659 <~symfile_segment_data>: Remove.
8660 <segment_info>: Change to std::vector.
8661 * symfile.c (default_symfile_segments): Update.
8662 * elfread.c (elf_symfile_segments): Update.
8663
8664 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8667 <segments>: New.
8668 <segment_bases, segment_sizes>: Remove.
8669 * symfile.c (default_symfile_segments): Update.
8670 * elfread.c (elf_symfile_segments): Update.
8671 * remote.c (remote_target::get_offsets): Update.
8672 * solib-target.c (solib_target_relocate_section_addresses):
8673 Update.
8674
8675 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8676
8677 * symfile.h (struct symfile_segment_data): Initialize fields.
8678 <~symfile_segment_data>: Add.
8679 (symfile_segment_data_up): New.
8680 (struct sym_fns) <sym_segments>: Return a
8681 symfile_segment_data_up.
8682 (default_symfile_segments): Return a symfile_segment_data_up.
8683 (free_symfile_segment_data): Remove.
8684 (get_symfile_segment_data): Return a symfile_segment_data_up.
8685 * symfile.c (default_symfile_segments): Likewise.
8686 (get_symfile_segment_data): Likewise.
8687 (free_symfile_segment_data): Remove.
8688 (symfile_find_segment_sections): Update.
8689 * elfread.c (elf_symfile_segments): Return a
8690 symfile_segment_data_up.
8691 * remote.c (remote_target::get_offsets): Update.
8692 * solib-target.c (solib_target_relocate_section_addresses):
8693 Update.
8694 * symfile-debug.c (debug_sym_segments): Return a
8695 symfile_segment_data_up.
8696
8697 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8698
8699 PR build/25981
8700 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8701 Hardcode register numbers.
8702
8703 PR build/25981
8704 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8705 procfs_find_LDT_entry): Remove.
8706 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8707 procfs_find_LDT_entry): Remove.
8708 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8709 Remove.
8710
8711 2020-05-17 Pedro Alves <palves@redhat.com>
8712 Andrew Burgess <andrew.burgess@embecosm.com>
8713 Keno Fischer <keno@juliacomputing.com>
8714
8715 PR gdb/25741
8716 * breakpoint.c (build_target_condition_list): Update comments.
8717 (build_target_command_list): Update comments and skip matching
8718 locations.
8719 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8720 a separate function. Simplify "set breakpoint auto-hw off"
8721 handling.
8722 (insert_breakpoints): Update comment.
8723 (tracepoint_locations_match): New parameter. For breakpoints,
8724 compare location types too, if the caller wants to.
8725 (handle_automatic_hardware_breakpoints): New functions.
8726 (bp_location_is_less_than): Also sort by location type and
8727 hardware breakpoint length.
8728 (update_global_location_list): Handle "set breakpoint auto-hw on"
8729 here.
8730 (update_breakpoint_locations): Ask breakpoint_locations_match to
8731 ignore location types.
8732
8733 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8736 type::name instead.
8737
8738 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * gdbtypes.h (struct type) <name, set_name>: New methods.
8741 (TYPE_CODE): Use type::name. Change all call sites used to set
8742 the name to use type::set_name instead.
8743
8744 2020-05-16 Tom Tromey <tom@tromey.com>
8745
8746 * top.c (quit_force): Update.
8747 * infrun.c (handle_no_resumed): Update.
8748 * top.h (all_uis): New function.
8749 (ALL_UIS): Remove.
8750
8751 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8754
8755 2020-05-16 Pedro Alves <palves@redhat.com>
8756
8757 * ia64-linux-nat.c
8758 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8759 Declare method.
8760 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8761
8762 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8763
8764 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8765 (sparc64_adi_info): Likewise.
8766
8767 2020-05-15 Tom Tromey <tom@tromey.com>
8768
8769 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8770 block_objfile.
8771 (lookup_objfile_from_block): Remove.
8772 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8773 (lookup_global_symbol): Use block_objfile.
8774 * symtab.h (lookup_objfile_from_block): Don't declare.
8775 * printcmd.c (clear_dangling_display_expressions): Use
8776 block_objfile.
8777 * parse.c (operator_check_standard): Use block_objfile.
8778
8779 2020-05-15 Tom Tromey <tom@tromey.com>
8780
8781 * language.c (language_alloc_type_symbol): Set
8782 SYMBOL_SECTION.
8783 * symtab.c (initialize_objfile_symbol): Remove.
8784 (allocate_symbol): Remove.
8785 (allocate_template_symbol): Remove.
8786 * dwarf2/read.c (fixup_go_packaging): Use "new".
8787 (new_symbol): Use "new".
8788 (read_variable): Don't call initialize_objfile_symbol. Use
8789 "new".
8790 (read_func_scope): Use "new".
8791 * xcoffread.c (process_xcoff_symbol): Don't call
8792 initialize_objfile_symbol.
8793 (SYMBOL_DUP): Remove.
8794 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8795 "new".
8796 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8797 (allocate_template_symbol): Don't declare.
8798 (struct symbol): Add copy constructor. Change defaults.
8799 * jit.c (finalize_symtab): Use "new".
8800 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8801 Use "new".
8802 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8803 (common_block_end): Use "new".
8804 * mdebugread.c (parse_symbol): Use "new".
8805 (new_symbol): Likewise.
8806
8807 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8808
8809 * NEWS: Mention changes to help and apropos.
8810
8811 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8812
8813 * command.h (enum command_class): Improve comments, document
8814 that class_alias is for user-defined aliases, give the class
8815 name for each class, remove unused class_xdb.
8816 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8817 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8818 by a precise class.
8819 * infcmd.c (_initialize_infcmd): Likewise.
8820 * reverse.c (_initialize_reverse): Likewise.
8821 * stack.c (_initialize_stack): Likewise.
8822 * symfile.c (_initialize_symfile): Likewise.
8823 * tracepoint.c (_initialize_tracepoint): Likewise.
8824
8825 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8826
8827 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8828 when their aliased command is traversed.
8829 (help_cmd): Add fput_command_names_styled call to
8830 output command name and aliases when command has an alias.
8831
8832 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8833
8834 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8835 * cli/cli-decode.c (help_cmd_list): Declare as static,
8836 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8837 a command together with the command.
8838 (fput_command_name_styled, fput_command_names_styled): New functions.
8839 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8840 fput_command_name_styled.
8841 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8842 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8843
8844 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8845
8846 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8847 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8848 * command.h (cmd_show_list): Likewise.
8849 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8850 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8851
8852 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8853
8854 * unittests/command-def-selftests.c (traverse_command_structure):
8855 Verify all commands of a list have the same prefix command and
8856 that only the top cmdlist commands have a null prefix.
8857
8858 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8859
8860 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8861 as prefix, not one of its aliases.
8862 (set_cmd_prefix): Remove.
8863 (do_add_cmd): Centralize the setting of the prefix of a command, when
8864 command is defined after its full chain of prefix commands.
8865 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8866 (add_setshow_cmd_full): Likewise.
8867 (update_prefix_field_of_prefixed_commands): New function.
8868 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8869 update_prefix_field_of_prefixed_commands.
8870 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8871 addresses of remote_set_cmdlist and remote_show_cmdlist given
8872 as argument, not the address of an argument.
8873 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8874 * gdb/remote.c (_initialize_remote): Likewise.
8875
8876 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8877
8878 * cli/cli-cmds.c (alias_command): Check for an existing alias
8879 using lookup_cmd_composition, as valid_command_p is too strict
8880 and forbids aliases that are the prefix of an existing alias
8881 or command.
8882 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8883 command is properly recognised as a valid command.
8884
8885 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8886
8887 * unittests/help-doc-selftests.c: Rename to
8888 unittests/command-def-selftests.c
8889 * unittests/command-def-selftests.c (help_doc_tests): Update some
8890 comments.
8891 (command_structure_tests, traverse_command_structure): New namespace
8892 and function.
8893 (command_structure_invariants_tests): New function.
8894 (_initialize_command_def_selftests) Renamed from
8895 _initialize_help_doc_selftests, register command_structure_invariants
8896 selftest.
8897
8898 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8899
8900 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8901 an alias of 'show'.
8902
8903 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8904
8905 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8906 ada_is_fixed_point_type. Update all callers.
8907 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8908 all callers.
8909 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8910 Update all callers.
8911 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8912 print_fixed_point_type. Update all callers.
8913 * ada-valprint.c (ada_value_print_num): Replace call to
8914 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8915
8916 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8917
8918 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8919 processors.
8920 (cpu_supports_bts): Add CV_AMD case.
8921
8922 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8923 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * infrun.c (stop_all_threads): Collect multiple wait events at
8926 each pass.
8927
8928 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8931 type::code instead.
8932
8933 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * gdbtypes.h (struct type) <code, set_code>: New methods.
8936 (TYPE_CODE): Use type::code. Change all call sites used to set
8937 the code to use type::set_code instead.
8938
8939 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8940 Tom de Vries <tdevries@suse.de>
8941 Pedro Alves <palves@redhat.com>
8942
8943 PR threads/25478
8944 * infrun.c (stop_all_threads): Do NOT ignore
8945 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8946 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8947 received.
8948 (handle_no_resumed): Remove code handling a live inferior with no
8949 threads.
8950 * remote.c (has_single_non_exited_thread): New.
8951 (remote_target::update_thread_list): Do not delete a thread if is
8952 the last thread of the process.
8953 * thread.c (thread_select): Call delete_exited_threads instead of
8954 prune_threads.
8955
8956 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8957
8958 * infrun.c (stop_all_threads): Enable/disable thread events of all
8959 targets. Move a debug message denoting the end of the function
8960 into the SCOPED_EXIT block.
8961
8962 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8963
8964 * process-stratum-target.h: Include <set>.
8965 (all_non_exited_process_targets, switch_to_target_no_thread): New
8966 function declarations.
8967 * process-stratum-target.c (all_non_exited_process_targets)
8968 (switch_to_target_no_thread): New function implementations.
8969
8970 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8971
8972 * infrun.c (handle_inferior_event): Extract out a piece of code
8973 into...
8974 (mark_non_executing_threads): ...this new function.
8975
8976 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8977
8978 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8979 use.
8980
8981 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8982
8983 * regcache.c (regcache_read_pc_protected): New function
8984 implementation that returns 0 if the PC cannot read via
8985 'regcache_read_pc'.
8986 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8987 instead of 'regcache_read_pc'.
8988 (keep_going_pass_signal): Ditto.
8989
8990 2020-05-13 Tom Tromey <tromey@adacore.com>
8991
8992 * ada-lang.c (align_value): Remove.
8993 (ada_template_to_fixed_record_type_1): Use align_up.
8994
8995 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8996
8997 * async-event.c: Update the copyright year.
8998 * async-event.h: Update the copyright year.
8999
9000 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
9001
9002 * objfiles.h (is_addr_in_objfile,
9003 shared_objfile_contains_address_p): Return bool.
9004 * objfile.c (is_addr_in_objfile,
9005 shared_objfile_contains_address_p): Return bool.
9006
9007 2020-05-11 Tom Tromey <tromey@adacore.com>
9008
9009 * cli/cli-cmds.c (info_command): Restore.
9010 (_initialize_cli_cmds): Use add_prefix_command for "info".
9011 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
9012
9013 2020-05-11 Tom Tromey <tromey@adacore.com>
9014
9015 * ada-lang.c (ada_value_primitive_field): Now public.
9016 * ada-lang.h (ada_value_primitive_field): Declare.
9017 * ada-valprint.c (print_field_values): Use
9018 ada_value_primitive_field for wrapper fields.
9019
9020 2020-05-11 Tom de Vries <tdevries@suse.de>
9021
9022 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
9023 MODULE_DOMAIN.
9024
9025 2020-05-11 Tom de Vries <tdevries@suse.de>
9026
9027 PR symtab/25941
9028 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
9029 with length 0, if not gdb-produced.
9030 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
9031
9032 2020-05-09 Tom de Vries <tdevries@suse.de>
9033
9034 PR gdb/25955
9035 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
9036 calculation.
9037
9038 2020-05-09 Tom Tromey <tom@tromey.com>
9039
9040 * top.c (server_command): Now bool.
9041 * top.h (server_command): Now bool.
9042
9043 2020-05-08 Tom Tromey <tromey@adacore.com>
9044
9045 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9046 already being processed.
9047
9048 2020-05-08 Tom Tromey <tom@tromey.com>
9049
9050 * printcmd.c (struct display) <next>: Remove.
9051 <display>: New constructor.
9052 <exp_string>: Now a std::string.
9053 <enabled_p>: Now a bool.
9054 (display_number): Move definition earlier.
9055 (displays): Rename from display_chain. Now a std::vector.
9056 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9057 (display_command): Update.
9058 (do_one_display, disable_display)
9059 (enable_disable_display_command, do_enable_disable_display):
9060 Update.
9061 (free_display): Remove.
9062 (clear_displays): Rewrite.
9063 (delete_display): Update.
9064 (map_display_numbers): Use function_view. Remove "data"
9065 parameter. Update.
9066 (do_delete_display): Remove.
9067 (undisplay_command): Update.
9068 (do_one_display, do_displays, disable_display)
9069 (info_display_command): Update.
9070 (do_enable_disable_display): Remove.
9071 (enable_disable_display_command)
9072 (clear_dangling_display_expressions): Update.
9073
9074 2020-05-08 Tom Tromey <tom@tromey.com>
9075
9076 * symtab.c (set_symbol_cache_size)
9077 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9078 (maintenance_print_symbol_cache_statistics): Update.
9079 * symmisc.c (print_symbol_bcache_statistics)
9080 (print_objfile_statistics, maintenance_print_objfiles)
9081 (maintenance_info_symtabs, maintenance_check_symtabs)
9082 (maintenance_expand_symtabs, maintenance_info_line_tables):
9083 Update.
9084 * symfile-debug.c (set_debug_symfile): Update.
9085 * source.c (forget_cached_source_info): Update.
9086 * python/python.c (gdbpy_progspaces): Update.
9087 * psymtab.c (maintenance_info_psymtabs): Update.
9088 * probe.c (parse_probes): Update.
9089 * linespec.c (iterate_over_all_matching_symtabs)
9090 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9091 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9092 * exec.c (exec_target::close): Update.
9093 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9094 * breakpoint.c (print_one_breakpoint_location)
9095 (create_longjmp_master_breakpoint)
9096 (create_std_terminate_master_breakpoint): Update.
9097 * progspace.c (program_spaces): Now a std::vector.
9098 (maybe_new_address_space): Update.
9099 (add_program_space): Remove.
9100 (program_space::program_space): Update.
9101 (remove_program_space): Update.
9102 (number_of_program_spaces): Remove.
9103 (print_program_space, update_address_spaces): Update.
9104 * progspace.h (program_spaces): Change type.
9105 (ALL_PSPACES): Remove.
9106 (number_of_program_spaces): Don't declare.
9107 (struct program_space) <next>: Remove.
9108
9109 2020-05-08 Tom Tromey <tom@tromey.com>
9110
9111 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9112 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9113 (enable_break): Update.
9114 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9115 (frv_fdpic_find_canonical_descriptor): Update.
9116 (frv_fetch_objfile_link_map): Update.
9117 * progspace.c (program_space::free_all_objfiles): Update.
9118 (program_space::solibs): New method.
9119 * progspace.h (struct program_space) <solibs>: New method.
9120 * solist.h (master_so_list): Don't declare.
9121 (ALL_SO_LIBS): Remove.
9122 * solib.h (so_list_head): Remove.
9123 (update_solib_list): Update comment.
9124 * solib.c (master_so_list): Remove.
9125 (solib_used, update_solib_list, solib_add)
9126 (info_sharedlibrary_command, clear_solib)
9127 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9128
9129 2020-05-08 Tom Tromey <tom@tromey.com>
9130
9131 * extension.c (extension_languages): Now a std::array.
9132 (ALL_EXTENSION_LANGUAGES): Remove.
9133 (get_ext_lang_defn, get_ext_lang_of_file)
9134 (eval_ext_lang_from_control_command): Update.
9135 (finish_ext_lang_initialization)
9136 (auto_load_ext_lang_scripts_for_objfile)
9137 (ext_lang_type_printers::ext_lang_type_printers)
9138 (apply_ext_lang_type_printers)
9139 (ext_lang_type_printers::~ext_lang_type_printers)
9140 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9141 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9142 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9143 (get_matching_xmethod_workers, ext_lang_colorize)
9144 (ext_lang_before_prompt): Update.
9145 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9146
9147 2020-05-08 Tom Tromey <tom@tromey.com>
9148
9149 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9150 overload.
9151 <swap_string, m_string>: Remove.
9152 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9153 Update.
9154 * stabsread.c (define_symbol, read_type): Update.
9155 * linespec.c (find_linespec_symbols): Update.
9156 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9157 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9158 * dbxread.c (read_dbx_symtab): Update.
9159 * cp-support.h (cp_canonicalize_string_full)
9160 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9161 Return unique_xmalloc_ptr.
9162 * cp-support.c (inspect_type): Update.
9163 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9164 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9165 Likewise.
9166 * c-typeprint.c (print_name_maybe_canonical): Update.
9167 * break-catch-throw.c (check_status_exception_catchpoint):
9168 Update.
9169
9170 2020-05-08 Tom de Vries <tdevries@suse.de>
9171
9172 * infrun.c (follow_fork): Copy current_line and current_symtab to
9173 child thread.
9174
9175 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * async-event.c (struct async_signal_handler, struct
9178 async_event_handler): Reformat, remove typedef.
9179
9180 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9183 access thistype->main_type->dyn_prop_list directly.
9184
9185 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9186
9187 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9188 (remove_dyn_prop): Remove. Update all users to use
9189 type::remove_dyn_prop.
9190 * gdbtypes.c (remove_dyn_prop): Rename to...
9191 (type::remove_dyn_prop): ... this.
9192
9193 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9194
9195 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9196 (add_dyn_prop): Remove. Update all users to use
9197 type::add_dyn_prop.
9198 * gdbtypes.c (add_dyn_prop): Rename to...
9199 (type::add_dyn_prop): ... this.
9200
9201 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9204 (get_dyn_prop): Remove. Update all users to use
9205 type::dyn_prop.
9206 * gdbtypes.c (get_dyn_prop): Rename to...
9207 (type::dyn_prop): ... this.
9208
9209 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9212
9213 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9216 instruction, skip it if it's there.
9217
9218 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9219
9220 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9221
9222 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9225 * gdbtypes.c (recursive_dump_type): Remove use of
9226 TYPE_INCOMPLETE.
9227
9228 2020-05-03 Tom Tromey <tom@tromey.com>
9229
9230 * breakpoint.c (catch_command, tcatch_command): Remove.
9231 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9232 add_show_prefix_cmd.
9233 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9234 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9235 Remove.
9236 (add_internal_problem_command): Use add_basic_prefix_cmd,
9237 add_show_prefix_cmd.
9238 * mips-tdep.c (set_mipsfpu_command): Remove.
9239 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9240 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9241 (_initialize_index_cache): Use add_basic_prefix_cmd.
9242 * memattr.c (dummy_cmd): Remove.
9243 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9244 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9245 (_initialize_tui_win): Use add_basic_prefix_cmd,
9246 add_show_prefix_cmd.
9247 * cli/cli-logging.c (set_logging_command): Remove.
9248 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9249 add_show_prefix_cmd.
9250 (show_logging_command): Remove.
9251 * target.c (target_command): Remove.
9252 (add_target): Use add_basic_prefix_cmd.
9253
9254 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9255
9256 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9257
9258 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9259
9260 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9261 info_command.
9262
9263 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9264
9265 * nbsd-nat.c (nbsd_enable_proc_events)
9266 (nbsd_nat_target::post_startup_inferior): Add.
9267 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9268 (nbsd_nat_target::update_thread_list): Rewrite.
9269 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9270 "PTRACE_LWP_CREATE".
9271 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9272
9273 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9274
9275 * stack.c (_initialize_stack): Remove duplicated creation
9276 of "frame" command and "f" alias.
9277
9278 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9279
9280 PR gdb/18706
9281 * gdbtypes.c (check_typedef): Calculate size of array of
9282 stubbed type.
9283
9284 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9285
9286 PR gdb/15559
9287 * i386-tdep.c (i386_push_dummy_call): Call
9288 i386_thiscall_push_dummy_call.
9289 (i386_thiscall_push_dummy_call): New function.
9290 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9291 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9292 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9293
9294 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * gdbarch.sh (do_read): Add shellcheck disable directive for
9297 warning SC2162.
9298
9299 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9302 "referenced but not assigned" warning.
9303
9304 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9305
9306 * gdbarch.sh: Remove code that sets fallbackdefault.
9307
9308 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9309
9310 * gdbarch.sh: Use shell operators && and || instead of
9311 -a and -o.
9312
9313 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9314
9315 * gdbarch.sh: Use $(...) instead of `...`.
9316
9317 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9318
9319 * gdbarch.sh: Use double quotes around variables.
9320
9321 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * gdbarch.sh: Use %s with printf, instead of variables in the
9324 format string.
9325
9326 2020-04-29 Tom Tromey <tromey@adacore.com>
9327
9328 PR ada/25875:
9329 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9330 type fields here.
9331 (read_enumeration_type): Call
9332 update_enumeration_type_from_children later. Update comments.
9333 (process_enumeration_scope): Don't create type fields.
9334
9335 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9336
9337 * nbsd-tdep.c: Include "xml-syscall.h".
9338 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9339
9340 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9341
9342 * nbsd-nat.c: Include "sys/wait.h".
9343 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9344 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9345 (nbsd_nat_target::remove_exec_catchpoint)
9346 (nbsd_nat_target::set_syscall_catchpoint): Add.
9347 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9348 (nbsd_nat_target::insert_exec_catchpoint)
9349 (nbsd_nat_target::remove_exec_catchpoint)
9350 (nbsd_nat_target::set_syscall_catchpoint): Add.
9351 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9352 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9353 `nbsd_get_syscall_number'.
9354
9355 2020-04-29 Tom Tromey <tom@tromey.com>
9356
9357 * stack.c (print_block_frame_labels): Remove.
9358
9359 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9360
9361 PR gdb/17320
9362 * ada-valprint.c (val_print_packed_array_elements): Move array
9363 end bracket to new line.
9364 (ada_val_print_string): Remove extra spaces before first array
9365 element.
9366 * c-valprint.c (c_value_print_array): Likewise.
9367 * m2-valprint.c (m2_print_array_contents): Likewise.
9368 (m2_value_print_inner): Likewise.
9369 * p-valprint.c (pascal_value_print_inner): Likewise.
9370 * valprint.c (generic_val_print_array): Likewise.
9371 (value_print_array_elements): Move first array element and array
9372 end bracket to new line.
9373
9374 2020-04-29 Tom de Vries <tdevries@suse.de>
9375
9376 PR symtab/25889
9377 * linespec.c (find_method): Fix ix calculation.
9378
9379 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9380
9381 * syscalls/update-netbsd.sh: New file.
9382 * syscalls/netbsd.xml: Regenerate.
9383 * data-directory/Makefile.in: Register `netbsd.xml' in
9384 `SYSCALLS_FILES'.
9385
9386 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9387
9388 * syscalls/update-freebsd.sh: Add double quotes.
9389
9390 2020-04-28 Tom Tromey <tom@tromey.com>
9391
9392 * NEWS: Update.
9393 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9394 (cmdpy_init): Allow class_tui.
9395
9396 2020-04-28 Mark Williams <mark@myosotissp.com>
9397
9398 PR gdb/24480
9399 * dwarf2read.c: Add missing assingments to list_in_scope when
9400 start_symtab was already called.
9401
9402 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9403
9404 PR gdb/25881
9405 * dwarf2/read.c (offset_map_type): Use
9406 gdb:hash_enum<sect_offset> as hash function.
9407
9408 2020-04-28 Tom de Vries <tdevries@suse.de>
9409
9410 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9411 with DW_AT_signature.
9412
9413 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * configure.ac: Remove check for fs_base/gs_base in
9416 user_regs_struct.
9417 * configure: Re-generate.
9418 * config.in: Re-generate.
9419 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9420 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9421 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9422
9423 2020-04-27 Luis Machado <luis.machado@linaro.org>
9424
9425 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9426 problematic inline frame unwinding situation.
9427 * frame.c (frame_id_computed_p): New function.
9428 * frame.h (frame_id_computed_p): New prototype.
9429
9430 2020-04-26 Tom Tromey <tom@tromey.com>
9431
9432 * command.h (enum command_class) <class_pseudo>: Remove.
9433
9434 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9435
9436 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9437 and whitespace.
9438
9439 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9440
9441 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9442 `PT_GET_PROCESS_STATE' block.
9443
9444 2020-04-24 Tom Tromey <tom@tromey.com>
9445
9446 * symtab.h (symbol_get_demangled_name): Don't declare.
9447 * symtab.c (symbol_get_demangled_name): Remove.
9448 (general_symbol_info::natural_name)
9449 (general_symbol_info::demangled_name): Update.
9450
9451 2020-04-24 Tom Tromey <tom@tromey.com>
9452
9453 PR rust/25025:
9454 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9455
9456 2020-04-24 Tom Tromey <tom@tromey.com>
9457
9458 PR symtab/12707:
9459 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9460 exists.
9461 (new_symbol): Likewise.
9462 * compile/compile-object-load.c (get_out_value_type): Use
9463 symbol_matches_search_name.
9464
9465 2020-04-24 Tom Tromey <tom@tromey.com>
9466
9467 * dwarf2/read.c (add_partial_symbol): Do not call
9468 compute_and_set_names.
9469
9470 2020-04-24 Tom Tromey <tom@tromey.com>
9471
9472 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9473 overload.
9474
9475 2020-04-24 Tom Tromey <tom@tromey.com>
9476
9477 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9478 (add_psymbol_to_list): New overload. Make old overload call new
9479 one.
9480 * psympriv.h (add_psymbol_to_list): New overload.
9481
9482 2020-04-24 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/read.c (partial_die_info::read) <case
9485 DW_AT_linkage_name>: Use value_as_string.
9486 (dwarf2_string_attr): Use value_as_string.
9487 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9488 method.
9489 * dwarf2/attribute.c (attribute::value_as_string): New method.
9490
9491 2020-04-24 Tom Tromey <tom@tromey.com>
9492
9493 * symtab.c (general_symbol_info::natural_name)
9494 (general_symbol_info::demangled_name): Check for language_rust.
9495
9496 2020-04-24 Tom Tromey <tom@tromey.com>
9497
9498 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9499 (dwarf2_physname): ... from here.
9500 (partial_die_info::read): Add Rust "{" hack.
9501
9502 2020-04-24 Tom Tromey <tom@tromey.com>
9503
9504 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9505 method.
9506 (symbol_set_demangled_name): Don't declare.
9507 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9508 symbol_set_demangled_name.
9509 (general_symbol_info::set_language)
9510 (general_symbol_info::compute_and_set_names): Update.
9511 * minsyms.c (minimal_symbol_reader::install): Update.
9512 * dwarf2/read.c (new_symbol): Update.
9513
9514 2020-04-24 Tom Tromey <tromey@adacore.com>
9515
9516 PR python/23662:
9517 * python/py-type.c (convert_field): Handle
9518 FIELD_LOC_KIND_DWARF_BLOCK.
9519 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9520 (typy_get_dynamic): Nw function.
9521 (type_object_getset): Add "dynamic".
9522 * NEWS: Add entry.
9523
9524 2020-04-24 Tom Tromey <tromey@adacore.com>
9525
9526 * ada-typeprint.c (print_choices, print_variant_part)
9527 (print_record_field_types_dynamic): New functions.
9528 (print_record_field_types): Use print_record_field_types_dynamic.
9529
9530 2020-04-24 Tom Tromey <tromey@adacore.com>
9531
9532 * dwarf2/read.c (handle_data_member_location): New overload.
9533 (dwarf2_add_field): Use it.
9534 (decode_locdesc): Add "computed" parameter. Update comment.
9535 * gdbtypes.c (is_dynamic_type_internal): Also look for
9536 FIELD_LOC_KIND_DWARF_BLOCK.
9537 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9538 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9539 virtual base classes.
9540 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9541 FIELD_LOC_KIND_DWARF_BLOCK.
9542
9543 2020-04-24 Tom Tromey <tromey@adacore.com>
9544
9545 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9546 * gdbtypes.c (is_dynamic_type_internal): Check
9547 TYPE_HAS_DYNAMIC_LENGTH.
9548 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9549 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9550 New macros.
9551 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9552 constant.
9553
9554 2020-04-24 Tom Tromey <tromey@adacore.com>
9555
9556 * dwarf2/read.c (struct variant_field): Rewrite.
9557 (struct variant_part_builder): New.
9558 (struct nextfield): Remove "variant" field. Add "offset".
9559 (struct field_info): Add "current_variant_part" and
9560 "variant_parts".
9561 (alloc_discriminant_info): Remove.
9562 (alloc_rust_variant): New function.
9563 (quirk_rust_enum): Update.
9564 (dwarf2_add_field): Set "offset" member. Don't handle
9565 DW_TAG_variant_part.
9566 (offset_map_type): New typedef.
9567 (convert_variant_range, create_one_variant)
9568 (create_one_variant_part, create_variant_parts)
9569 (add_variant_property): New functions.
9570 (dwarf2_attach_fields_to_type): Call add_variant_property.
9571 (read_structure_type): Don't handle DW_TAG_variant_part.
9572 (handle_variant_part, handle_variant): New functions.
9573 (handle_struct_member_die): Use them.
9574 (process_structure_scope): Don't handle variant parts.
9575 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9576 (struct discriminant_info): Remove.
9577 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9578 (struct main_type) <flag_discriminated_union>: Remove.
9579 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9580 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9581 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9582 Update.
9583 * valops.c (value_union_variant): Remove.
9584 * value.h (value_union_variant): Don't declare.
9585
9586 2020-04-24 Tom Tromey <tromey@adacore.com>
9587
9588 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9589 (ada_value_primitive_packed_val): Update.
9590 * ada-valprint.c (ada_value_print_1): Update.
9591 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9592 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9593 just an address. Use evaluate_for_locexpr_baton.
9594 (dwarf2_evaluate_property): Update.
9595 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9596 array_view.
9597 * findvar.c (default_read_var_value): Update.
9598 * gdbtypes.c (compute_variant_fields_inner)
9599 (resolve_dynamic_type_internal): Update.
9600 (resolve_dynamic_type): Change type of valaddr parameter.
9601 * gdbtypes.h (resolve_dynamic_type): Update.
9602 * valarith.c (value_subscripted_rvalue): Update.
9603 * value.c (value_from_contents_and_address): Update.
9604
9605 2020-04-24 Tom Tromey <tromey@adacore.com>
9606
9607 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9608 "push_initial_value" parameter.
9609 (dwarf2_evaluate_property): Likewise.
9610 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9611
9612 2020-04-24 Tom Tromey <tromey@adacore.com>
9613
9614 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9615 (variant::matches, compute_variant_fields_recurse)
9616 (compute_variant_fields_inner, compute_variant_fields): New
9617 functions.
9618 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9619 Use resolved_type after type is made.
9620 (operator==): Add new cases.
9621 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9622 (struct discriminant_range, struct variant, struct variant_part):
9623 New.
9624 (union dynamic_prop_data) <variant_parts, original_type>: New
9625 members.
9626 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9627 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9628 constants.
9629 * value.c (unpack_bits_as_long): Now public.
9630 * value.h (unpack_bits_as_long): Declare.
9631
9632 2020-04-24 Tom Tromey <tromey@adacore.com>
9633
9634 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9635 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9636
9637 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9638
9639 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9640
9641 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9642
9643 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9644 (remove_fork_catchpoint, post_startup_inferior)
9645 (post_attach): Move...
9646 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9647 (remove_fork_catchpoint, post_startup_inferior)
9648 (post_attach): ...here.
9649 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9650 (remove_fork_catchpoint, post_startup_inferior)
9651 (post_attach): Move...
9652 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9653 (remove_fork_catchpoint, post_startup_inferior)
9654 (post_attach): ...here.
9655
9656 2020-04-24 Tom Tromey <tromey@adacore.com>
9657
9658 * nat/windows-nat.h (struct windows_thread_info)
9659 <pc_adjusted>: New member.
9660 * windows-nat.c (windows_fetch_one_register): Check
9661 pc_adjusted.
9662 (windows_nat_target::get_windows_debug_event)
9663 (windows_nat_target::wait): Set pc_adjusted.
9664
9665 2020-04-24 Tom de Vries <tdevries@suse.de>
9666
9667 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9668 Run gdb-add-index inside temp dir.
9669
9670 2020-04-23 Tom Tromey <tromey@adacore.com>
9671
9672 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9673 in loop.
9674
9675 2020-04-23 Luis Machado <luis.machado@linaro.org>
9676
9677 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9678 get_frame_register instead of gdbarch_unwind_pc.
9679
9680 2020-04-23 Tom de Vries <tdevries@suse.de>
9681
9682 * symtab.c (lookup_global_symbol): Prefer def over decl.
9683
9684 2020-04-23 Tom de Vries <tdevries@suse.de>
9685
9686 PR symtab/25807
9687 * block.c (best_symbol, better_symbol): Promote to external.
9688 * block.h (best_symbol, better_symbol): Declare.
9689 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9690 decl.
9691
9692 2020-04-23 Tom Tromey <tromey@adacore.com>
9693
9694 PR ada/25837:
9695 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9696 "const char *", not a "const std::string &".
9697 <name_and_matcher::operator==>: Update.
9698 * unittests/lookup_name_info-selftests.c: Change type of
9699 "result".
9700
9701 2020-04-23 Tom Tromey <tom@tromey.com>
9702
9703 * inferior.h (iterate_over_inferiors): Don't declare.
9704 * inferior.c (iterate_over_inferiors): Remove.
9705 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9706 Remove.
9707 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9708 use iterate_over_inferiors.
9709 (darwin_resume_inferior_it)
9710 (struct resume_inferior_threads_param)
9711 (darwin_resume_inferior_threads_it): Remove.
9712 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9713
9714 2020-04-23 Tom de Vries <tdevries@suse.de>
9715
9716 * blockframe.c (find_pc_partial_function): Use
9717 find_pc_sect_compunit_symtab rather than
9718 objfile->sf->qf->find_pc_sect_compunit_symtab.
9719
9720 2020-04-22 Tom de Vries <tdevries@suse.de>
9721
9722 PR symtab/25764
9723 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9724 in psymtabs.
9725
9726 2020-04-22 Tom de Vries <tdevries@suse.de>
9727
9728 PR symtab/25801
9729 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9730 symtabs.
9731
9732 2020-04-22 Tom de Vries <tdevries@suse.de>
9733
9734 PR symtab/25700
9735 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9736 CU if already created.
9737
9738 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9739
9740 * infrun.c (displaced_step_fixup): Switch to the event_thread
9741 before calling displaced_step_restore, not after.
9742
9743 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9744
9745 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9746 its inferior is not recorded by us.
9747 (record_btrace_target_open): Replace call to
9748 all_non_exited_threads () with call to current_inferior
9749 ()->non_exited_threads ().
9750 (record_btrace_target::stop_recording): Likewise.
9751 (record_btrace_target::close): Likewise.
9752 (record_btrace_target::wait): Likewise.
9753 (record_btrace_target::record_stop_replaying): Likewise.
9754
9755 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9756
9757 * btrace.c (btrace_enable): Throw an error on double enables and
9758 when enabling recording fails.
9759 (btrace_disable): Throw an error if the thread is not recorded.
9760
9761 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9762
9763 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9764 request if we do not have a thread_info.
9765
9766 2020-04-21 Tom de Vries <tdevries@suse.de>
9767
9768 PR gdb/25471
9769 * thread.c
9770 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9771 exception in get_frame_id.
9772
9773 2020-04-20 Tom Tromey <tromey@adacore.com>
9774
9775 * python/python.c (struct gdbpy_event): Mark move constructor as
9776 noexcept.
9777 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9778 constructor as noexcept.
9779 * completer.h (struct completion_result): Mark move constructor as
9780 noexcept.
9781 * completer.c (completion_result::completion_result): Use
9782 initialization style. Don't call reset_match_list.
9783
9784 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9785
9786 * MAINTAINERS (Write After Approval): Add myself.
9787
9788 2020-04-18 Tom Tromey <tom@tromey.com>
9789
9790 * windows-tdep.c (init_w32_command_list)
9791 (w32_prefix_command_valid): Restore.
9792 (_initialize_windows_tdep): Call init_w32_command_list.
9793
9794 2020-04-18 Tom Tromey <tom@tromey.com>
9795
9796 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9797 * value.c (value_fn_field): Update.
9798 * valops.c (find_function_in_inferior)
9799 (value_allocate_space_in_inferior): Update.
9800 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9801 Update.
9802 * tui/tui-source.c (tui_source_window::set_contents): Update.
9803 * symtab.c (lookup_global_or_static_symbol)
9804 (find_function_start_sal_1, skip_prologue_sal)
9805 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9806 * symmisc.c (dump_msymbols, dump_symtab_1)
9807 (maintenance_print_one_line_table): Update.
9808 * symfile.c (init_entry_point_info, section_is_mapped)
9809 (list_overlays_command, simple_read_overlay_table)
9810 (simple_overlay_update_1): Update.
9811 * stap-probe.c (handle_stap_probe): Update.
9812 * stabsread.c (dbx_init_float_type, define_symbol)
9813 (read_one_struct_field, read_enum_type, read_range_type): Update.
9814 * source.c (info_line_command): Update.
9815 * python/python.c (gdbpy_source_objfile_script)
9816 (gdbpy_execute_objfile_script): Update.
9817 * python/py-type.c (save_objfile_types): Update.
9818 * python/py-objfile.c (py_free_objfile): Update.
9819 * python/py-inferior.c (python_new_objfile): Update.
9820 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9821 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9822 (maintenance_check_psymtabs): Update.
9823 * printcmd.c (info_address_command): Update.
9824 * objfiles.h (struct objfile) <arch>: New method, from
9825 get_objfile_arch.
9826 (get_objfile_arch): Don't declare.
9827 * objfiles.c (get_objfile_arch): Remove.
9828 (filter_overlapping_sections): Update.
9829 * minsyms.c (msymbol_is_function): Update.
9830 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9831 (output_nondebug_symbol): Update.
9832 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9833 (mdebug_expand_psymtab): Update.
9834 * machoread.c (macho_add_oso_symfile): Update.
9835 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9836 Update.
9837 * linux-fork.c (checkpoint_command): Update.
9838 * linespec.c (convert_linespec_to_sals): Update.
9839 * jit.c (finalize_symtab): Update.
9840 * infrun.c (insert_exception_resume_from_probe): Update.
9841 * ia64-tdep.c (ia64_find_unwind_table): Update.
9842 * hppa-tdep.c (internalize_unwinds): Update.
9843 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9844 Update.
9845 * gcore.c (call_target_sbrk): Update.
9846 * elfread.c (record_minimal_symbol, elf_symtab_read)
9847 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9848 (elf_gnu_ifunc_resolve_by_got): Update.
9849 * dwarf2/read.c (create_addrmap_from_index)
9850 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9851 (read_debug_names_from_section)
9852 (process_psymtab_comp_unit_reader, add_partial_symbol)
9853 (add_partial_subprogram, process_full_comp_unit)
9854 (read_file_scope, read_func_scope, read_lexical_block_scope)
9855 (read_call_site_scope, dwarf2_ranges_read)
9856 (dwarf2_record_block_ranges, dwarf2_add_field)
9857 (mark_common_block_symbol_computed, read_tag_pointer_type)
9858 (read_tag_string_type, dwarf2_init_float_type)
9859 (dwarf2_init_complex_target_type, read_base_type)
9860 (partial_die_info::read, partial_die_info::read)
9861 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9862 (dwarf2_fetch_die_loc_sect_off): Update.
9863 * dwarf2/loc.c (dwarf2_find_location_expression)
9864 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9865 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9866 (dwarf2_loc_desc_get_symbol_read_needs)
9867 (locexpr_describe_location_piece, locexpr_describe_location_1)
9868 (loclist_describe_location): Update.
9869 * dwarf2/index-write.c (write_debug_names): Update.
9870 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9871 * dtrace-probe.c (dtrace_process_dof): Update.
9872 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9873 (process_one_symbol): Update.
9874 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9875 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9876 (coff_read_enum_type): Update.
9877 * cli/cli-cmds.c (edit_command, list_command): Update.
9878 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9879 * breakpoint.c (create_overlay_event_breakpoint)
9880 (create_longjmp_master_breakpoint)
9881 (create_std_terminate_master_breakpoint)
9882 (create_exception_master_breakpoint, get_sal_arch): Update.
9883 * block.c (block_gdbarch): Update.
9884 * annotate.c (annotate_source_line): Update.
9885
9886 2020-04-17 Tom Tromey <tromey@adacore.com>
9887
9888 * auto-load.c (show_auto_load_cmd): Remove.
9889 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9890 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9891 (maintenance_print_arc_command): Remove.
9892 * tui/tui-win.c (tui_command): Remove.
9893 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9894 * tui/tui-layout.c (tui_layout_command): Remove.
9895 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9896 * python/python.c (user_set_python, user_show_python): Remove.
9897 (_initialize_python): Use add_basic_prefix_cmd,
9898 add_show_prefix_cmd.
9899 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9900 (install_gdb_commands): Use add_basic_prefix_cmd,
9901 add_show_prefix_cmd.
9902 (info_guile_command): Remove.
9903 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9904 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9905 add_show_prefix_cmd.
9906 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9907 Remove do_set and do_show parameters.
9908 * cli/cli-style.c (set_style, show_style): Remove.
9909 (_initialize_cli_style): Use add_basic_prefix_cmd,
9910 add_show_prefix_cmd.
9911 (cli_style_option::add_setshow_commands): Remove do_set and
9912 do_show parameters.
9913 (cli_style_option::add_setshow_commands): Use
9914 add_basic_prefix_cmd, add_show_prefix_cmd.
9915 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9916 (set_style_name): Remove.
9917 * cli/cli-dump.c (dump_command, append_command): Remove.
9918 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9919 (tekhex_dump_command, binary_dump_command)
9920 (binary_append_command): Remove.
9921 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9922 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9923 (init_w32_command_list): Remove; move into ...
9924 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9925 * valprint.c (set_print, show_print, set_print_raw)
9926 (show_print_raw): Remove.
9927 (_initialize_valprint): Use add_basic_prefix_cmd,
9928 add_show_prefix_cmd.
9929 * typeprint.c (set_print_type, show_print_type): Remove.
9930 (_initialize_typeprint): Use add_basic_prefix_cmd,
9931 add_show_prefix_cmd.
9932 * record.c (set_record_command, show_record_command): Remove.
9933 (_initialize_record): Use add_basic_prefix_cmd,
9934 add_show_prefix_cmd.
9935 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 (info_command, show_command, set_debug, show_debug): Remove.
9938 * top.h (set_history, show_history): Don't declare.
9939 * top.c (set_history, show_history): Remove.
9940 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9941 (unset_tdesc_cmd): Remove.
9942 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9943 add_show_prefix_cmd.
9944 * symtab.c (info_module_command): Remove.
9945 (_initialize_symtab): Use add_basic_prefix_cmd.
9946 * symfile.c (overlay_command): Remove.
9947 (_initialize_symfile): Use add_basic_prefix_cmd.
9948 * sparc64-tdep.c (info_adi_command): Remove.
9949 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9950 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9951 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9952 add_show_prefix_cmd.
9953 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9954 (_initialize_serial): Use add_basic_prefix_cmd,
9955 add_show_prefix_cmd.
9956 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9957 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9958 add_show_prefix_cmd.
9959 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9960 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9961 add_show_prefix_cmd.
9962 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9963 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9964 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9965 add_show_prefix_cmd.
9966 * remote.c (remote_command, set_remote_cmd): Remove.
9967 (_initialize_remote): Use add_basic_prefix_cmd.
9968 * record-full.c (set_record_full_command)
9969 (show_record_full_command): Remove.
9970 (_initialize_record_full): Use add_basic_prefix_cmd,
9971 add_show_prefix_cmd.
9972 * record-btrace.c (cmd_set_record_btrace)
9973 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9974 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9975 (cmd_show_record_btrace_pt): Remove.
9976 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9977 add_show_prefix_cmd.
9978 * ravenscar-thread.c (set_ravenscar_command)
9979 (show_ravenscar_command): Remove.
9980 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9981 add_show_prefix_cmd.
9982 * mips-tdep.c (show_mips_command, set_mips_command)
9983 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9984 add_show_prefix_cmd.
9985 * maint.c (maintenance_command, maintenance_info_command)
9986 (maintenance_check_command, maintenance_print_command)
9987 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9988 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9989 add_show_prefix_cmd.
9990 (show_per_command_cmd): Remove.
9991 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9992 Remove.
9993 (maintenance_show_test_settings_cmd): Remove.
9994 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9995 add_show_prefix_cmd.
9996 * maint-test-options.c (maintenance_test_options_command):
9997 Remove.
9998 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9999 * macrocmd.c (macro_command): Remove
10000 (_initialize_macrocmd): Use add_basic_prefix_cmd.
10001 * language.c (set_check, show_check): Remove.
10002 (_initialize_language): Use add_basic_prefix_cmd,
10003 add_show_prefix_cmd.
10004 * infcmd.c (unset_command): Remove.
10005 (_initialize_infcmd): Use add_basic_prefix_cmd.
10006 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
10007 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
10008 add_show_prefix_cmd.
10009 * go32-nat.c (go32_info_dos_command): Remove.
10010 (_initialize_go32_nat): Use add_basic_prefix_cmd.
10011 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
10012 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
10013 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
10014 (_initialize_frame): Use add_basic_prefix_cmd,
10015 add_show_prefix_cmd.
10016 * dcache.c (set_dcache_command, show_dcache_command): Remove.
10017 (_initialize_dcache): Use add_basic_prefix_cmd,
10018 add_show_prefix_cmd.
10019 * cp-support.c (maint_cplus_command): Remove.
10020 (_initialize_cp_support): Use add_basic_prefix_cmd.
10021 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
10022 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
10023 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
10024 add_basic_prefix_cmd, add_show_prefix_cmd.
10025 * breakpoint.c (save_command): Remove.
10026 (_initialize_breakpoint): Use add_basic_prefix_cmd.
10027 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
10028 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
10029 add_show_prefix_cmd.
10030 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
10031 (set_ada_command, show_ada_command): Remove.
10032 (_initialize_ada_language): Use add_basic_prefix_cmd,
10033 add_show_prefix_cmd.
10034 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
10035
10036 2020-04-16 Kamil Rytarowski <n54@gmx.com>
10037
10038 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10039 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10040
10041 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10042
10043 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10044 warning messages.
10045
10046 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10047
10048 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10049 import table is not at beginning of .idata section.
10050
10051 2020-04-16 Pedro Alves <palves@redhat.com>
10052
10053 * inferior.c (delete_inferior): Use delete operator directly
10054 instead of delete_program_space.
10055 * progspace.c (add_program_space): New, factored out from
10056 program_space::program_space.
10057 (remove_program_space): New, factored out from
10058 delete_program_space.
10059 (program_space::program_space): Remove intro comment. Rewrite.
10060 (program_space::~program_space): Remove intro comment. Call
10061 remove_program_space.
10062 (delete_program_space): Delete.
10063 * progspace.h (program_space::program_space): Make explicit. Move
10064 intro comment here, adjusted.
10065 (program_space::~program_space): Move intro comment here,
10066 adjusted.
10067 (delete_program_space): Remove.
10068
10069 2020-04-16 Tom Tromey <tromey@adacore.com>
10070
10071 * windows-nat.c (windows_nat::handle_access_violation): New
10072 function.
10073 * nat/windows-nat.h (handle_access_violation): Declare.
10074 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10075 windows-nat.c. Call handle_access_violation.
10076
10077 2020-04-16 Tom de Vries <tdevries@suse.de>
10078
10079 PR symtab/25791
10080 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10081 CUs without psymtab.
10082
10083 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10084
10085 * python/python.c (do_start_initialization): Don't call
10086 PyEval_InitThreads for Python 3.9 and beyond.
10087
10088 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10089
10090 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10091 thread functions.
10092 (obsd_nat_target::wait): Likewise.
10093
10094 2020-04-15 Tom Tromey <tromey@adacore.com>
10095
10096 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10097 (DEBUG_EXCEPT): Use debug_printf.
10098
10099 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10100
10101 * completer.c (class completion_tracker::completion_hash_entry)
10102 <hash_name>: New member function.
10103 (completion_tracker::discard_completions): New callback to hash a
10104 completion_hash_entry, pass this to htab_create_alloc.
10105
10106 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10107
10108 * windows-nat.c (windows_make_so): Warn rather than stopping with
10109 an error if realpath() fails.
10110
10111 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10112
10113 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10114 (nbsd_nat_target::info_proc): Add do_status.
10115
10116 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10117 Tom de Vries <tdevries@suse.de>
10118
10119 PR symtab/25718
10120 * psympriv.h (struct partial_symtab::read_symtab)
10121 (struct partial_symtab::expand_psymtab)
10122 (struct partial_symtab::read_dependencies): Update comments.
10123 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10124 read_symtab for includer.
10125 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10126 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10127 (struct dwarf2_include_psymtab::m_readin): Remove.
10128 (struct dwarf2_include_psymtab::includer): New member function.
10129 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10130
10131 2020-04-14 Tom de Vries <tdevries@suse.de>
10132
10133 PR symtab/25720
10134 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10135 with NULL symbol_matcher and lookup_name.
10136 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10137 and lookup_name.
10138 * dwarf2/read.c (dw2_expand_symtabs_matching)
10139 (dw2_debug_names_expand_symtabs_matching): Same.
10140 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10141 Make lookup_name a pointer. Update comment.
10142 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10143 lookup_name being a pointer.
10144 * symfile.c (expand_symtabs_matching): Same.
10145 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10146 * linespec.c (iterate_over_all_matching_symtabs): Same.
10147
10148 2020-04-13 Tom Tromey <tom@tromey.com>
10149
10150 * run-on-main-thread.c: Update include.
10151 * unittests/main-thread-selftests.c: Update include.
10152 * tui/tui-win.c: Update include.
10153 * tui/tui-io.c: Update include.
10154 * tui/tui-interp.c: Update include.
10155 * tui/tui-hooks.c: Update include.
10156 * top.h: Update include.
10157 * top.c: Update include.
10158 * ser-base.c: Update include.
10159 * remote.c: Update include.
10160 * remote-notif.c: Update include.
10161 * remote-fileio.c: Update include.
10162 * record-full.c: Update include.
10163 * record-btrace.c: Update include.
10164 * python/python.c: Update include.
10165 * posix-hdep.c: Update include.
10166 * mingw-hdep.c: Update include.
10167 * mi/mi-main.c: Update include.
10168 * mi/mi-interp.c: Update include.
10169 * main.c: Update include.
10170 * linux-nat.c: Update include.
10171 * interps.c: Update include.
10172 * infrun.c: Update include.
10173 * inf-loop.c: Update include.
10174 * event-top.c: Update include.
10175 * event-loop.c: Move to ../gdbsupport/.
10176 * event-loop.h: Move to ../gdbsupport/.
10177 * async-event.h: Update include.
10178 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10179
10180 2020-04-13 Tom Tromey <tom@tromey.com>
10181
10182 * tui/tui-win.c: Include async-event.h.
10183 * remote.c: Include async-event.h.
10184 * remote-notif.c: Include async-event.h.
10185 * record-full.c: Include async-event.h.
10186 * record-btrace.c: Include async-event.h.
10187 * infrun.c: Include async-event.h.
10188 * event-top.c: Include async-event.h.
10189 * event-loop.h: Move some declarations to async-event.h.
10190 * event-loop.c: Don't include ser-event.h or top.h. Move some
10191 code to async-event.c.
10192 * async-event.h: New file.
10193 * async-event.c: New file.
10194 * Makefile.in (COMMON_SFILES): Add async-event.c.
10195 (HFILES_NO_SRCDIR): Add async-event.h.
10196
10197 2020-04-13 Tom Tromey <tom@tromey.com>
10198
10199 * utils.c (flush_streams): New function.
10200 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10201
10202 2020-04-13 Tom Tromey <tom@tromey.com>
10203
10204 * event-loop.c (handle_file_event): Use warning, not
10205 printf_unfiltered.
10206
10207 2020-04-13 Tom Tromey <tom@tromey.com>
10208
10209 * event-loop.c: Include <chrono>.
10210
10211 2020-04-13 Tom Tromey <tom@tromey.com>
10212
10213 * gdb_select.h: Move to ../gdbsupport/.
10214 * event-loop.c: Update include path.
10215 * top.c: Update include path.
10216 * ser-base.c: Update include path.
10217 * ui-file.c: Update include path.
10218 * ser-tcp.c: Update include path.
10219 * guile/scm-ports.c: Update include path.
10220 * posix-hdep.c: Update include path.
10221 * ser-unix.c: Update include path.
10222 * gdb_usleep.c: Update include path.
10223 * mingw-hdep.c: Update include path.
10224 * inflow.c: Update include path.
10225 * infrun.c: Update include path.
10226 * event-top.c: Update include path.
10227
10228 2020-04-13 Tom Tromey <tom@tromey.com>
10229
10230 * configure: Rebuild.
10231 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10232
10233 2020-04-13 Tom Tromey <tom@tromey.com>
10234
10235 * event-loop.h (start_event_loop): Don't declare.
10236 * event-loop.c (start_event_loop): Move...
10237 * main.c (start_event_loop): ...here. Now static.
10238
10239 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10240
10241 * MAINTAINERS: Update my email address.
10242
10243 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10244
10245 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10246 IP_ALL.
10247
10248 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10249
10250 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10251 (nbsd_nat_target::info_proc): Add do_cmdline.
10252
10253 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10254
10255 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10256 (nbsd_nat_target::info_proc): Add do_cwd.
10257
10258 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10259
10260 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10261
10262 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10263
10264 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10265 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10266 (nbsd_nat_target::info_proc): New functions.
10267 * nbsd-nat.c (kinfo_get_vmmap): New function.
10268 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10269 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10270 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10271 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10272 functions.
10273 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10274 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10275 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10276 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10277 (KINFO_VME_FLAG_GROWS_DOWN): New.
10278
10279 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10280
10281 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10282 bit shift.
10283
10284 2020-04-10 Tom Tromey <tromey@adacore.com>
10285
10286 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10287
10288 2020-04-10 Tom Tromey <tromey@adacore.com>
10289
10290 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10291 separate debug files.
10292
10293 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10294
10295 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10296 Move to...
10297 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10298 ... here.
10299 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10300 Check for STATUS_WX86_BREAKPOINT.
10301 (windows_nat_target::wait): Same.
10302
10303 2020-04-10 Tom de Vries <tdevries@suse.de>
10304
10305 PR cli/25808
10306 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10307
10308 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10309
10310 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10311 (Write After Approval): Remove Tom de Vries.
10312
10313 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10314
10315 revert partially:
10316 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10317
10318 * buildsym.c (record_line): Fix undefined behavior and preserve
10319 lines at eof.
10320
10321 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10322
10323 * auxv.h (svr4_auxv_parse): New.
10324 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10325 and generic_auxv_parse.
10326 (svr4_auxv_parse): Add.
10327 * obsd-tdep.c: Include "auxv.h".
10328 (obsd_auxv_parse): Remove.
10329 (obsd_init_abi): Remove comment.
10330 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10331 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10332 * nbsd-tdep.c: Include "auxv.h".
10333 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10334
10335 2020-04-08 Tom Tromey <tromey@adacore.com>
10336
10337 * nat/windows-nat.h (last_wait_event): Don't declare.
10338 (wait_for_debug_event): Update comment.
10339 * nat/windows-nat.c (last_wait_event): Now static.
10340
10341 2020-04-08 Tom Tromey <tromey@adacore.com>
10342
10343 * windows-nat.c (wait_for_debug_event): Move to
10344 nat/windows-nat.c.
10345 * nat/windows-nat.h (wait_for_debug_event): Declare.
10346 * nat/windows-nat.c (wait_for_debug_event): Move from
10347 windows-nat.c. No longer static.
10348
10349 2020-04-08 Tom Tromey <tromey@adacore.com>
10350
10351 * windows-nat.c (get_windows_debug_event): Use
10352 fetch_pending_stop.
10353 * nat/windows-nat.h (fetch_pending_stop): Declare.
10354 * nat/windows-nat.c (fetch_pending_stop): New function.
10355
10356 2020-04-08 Tom Tromey <tromey@adacore.com>
10357
10358 * windows-nat.c (windows_continue): Use matching_pending_stop and
10359 continue_last_debug_event.
10360 * nat/windows-nat.h (matching_pending_stop)
10361 (continue_last_debug_event): Declare.
10362 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10363 (matching_pending_stop, continue_last_debug_event): New
10364 functions.
10365
10366 2020-04-08 Tom Tromey <tromey@adacore.com>
10367
10368 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10369 (handle_exception_result): Move to nat/windows-nat.h.
10370 (DEBUG_EXCEPTION_SIMPLE): Remove.
10371 (windows_nat::handle_ms_vc_exception): New function.
10372 (handle_exception): Move to nat/windows-nat.c.
10373 (get_windows_debug_event): Update.
10374 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10375 nat/windows-nat.c.
10376 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10377 (handle_exception_result): Move from windows-nat.c.
10378 (handle_exception): Declare.
10379 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10380 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10381 windows-nat.c.
10382
10383 2020-04-08 Tom Tromey <tromey@adacore.com>
10384
10385 * windows-nat.c (exception_count, event_count): Remove.
10386 (handle_exception, get_windows_debug_event)
10387 (do_initial_windows_stuff): Update.
10388
10389 2020-04-08 Tom Tromey <tromey@adacore.com>
10390
10391 * windows-nat.c (windows_nat::handle_load_dll)
10392 (windows_nat::handle_unload_dll): Rename. No longer static.
10393 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10394 Declare.
10395
10396 2020-04-08 Tom Tromey <tromey@adacore.com>
10397
10398 * complaints.h (stop_whining): Declare at top-level.
10399 (complaint): Don't declare stop_whining.
10400
10401 2020-04-08 Tom Tromey <tromey@adacore.com>
10402
10403 * windows-nat.c (windows_nat::handle_output_debug_string):
10404 Rename. No longer static.
10405 * nat/windows-nat.h (handle_output_debug_string): Declare.
10406
10407 2020-04-08 Tom Tromey <tromey@adacore.com>
10408
10409 * windows-nat.c (current_process_handle, current_process_id)
10410 (main_thread_id, last_sig, current_event, last_wait_event)
10411 (current_windows_thread, desired_stop_thread_id, pending_stops)
10412 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10413 (display_selectors, fake_create_process)
10414 (get_windows_debug_event): Update.
10415 * nat/windows-nat.h (current_process_handle, current_process_id)
10416 (main_thread_id, last_sig, current_event, last_wait_event)
10417 (current_windows_thread, desired_stop_thread_id, pending_stops)
10418 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10419 * nat/windows-nat.c (current_process_handle, current_process_id)
10420 (main_thread_id, last_sig, current_event, last_wait_event)
10421 (current_windows_thread, desired_stop_thread_id, pending_stops)
10422 (siginfo_er): New globals. Move from windows-nat.c.
10423
10424 2020-04-08 Tom Tromey <tromey@adacore.com>
10425
10426 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10427 (handle_load_dll): Update.
10428 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10429
10430 2020-04-08 Tom Tromey <tromey@adacore.com>
10431
10432 * windows-nat.c (enum thread_disposition_type): Move to
10433 nat/windows-nat.h.
10434 (windows_nat::thread_rec): Rename from thread_rec. No longer
10435 static.
10436 (windows_add_thread, windows_nat_target::fetch_registers)
10437 (windows_nat_target::store_registers, handle_exception)
10438 (windows_nat_target::resume, get_windows_debug_event)
10439 (windows_nat_target::get_tib_address)
10440 (windows_nat_target::thread_name)
10441 (windows_nat_target::thread_alive): Update.
10442 * nat/windows-nat.h (enum thread_disposition_type): Move from
10443 windows-nat.c.
10444 (thread_rec): Declare.
10445
10446 2020-04-08 Tom Tromey <tromey@adacore.com>
10447
10448 * windows-nat.c: Add "using namespace".
10449 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10450 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10451
10452 2020-04-08 Tom Tromey <tromey@adacore.com>
10453
10454 * nat/windows-nat.h (struct windows_thread_info): Declare
10455 destructor.
10456 * nat/windows-nat.c (~windows_thread_info): New.
10457
10458 2020-04-08 Tom Tromey <tromey@adacore.com>
10459
10460 PR gdb/22992
10461 * windows-nat.c (current_event): Update comment.
10462 (last_wait_event, desired_stop_thread_id): New globals.
10463 (struct pending_stop): New.
10464 (pending_stops): New global.
10465 (windows_nat_target) <stopped_by_sw_breakpoint>
10466 <supports_stopped_by_sw_breakpoint>: New methods.
10467 (windows_fetch_one_register): Add assertions. Adjust PC.
10468 (windows_continue): Handle pending stops. Suspend other threads
10469 when stepping. Use last_wait_event
10470 (wait_for_debug_event): New function.
10471 (get_windows_debug_event): Use wait_for_debug_event. Handle
10472 pending stops. Queue spurious stops.
10473 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10474 (windows_nat_target::kill): Use wait_for_debug_event.
10475 * nat/windows-nat.h (struct windows_thread_info)
10476 <stopped_at_software_breakpoint>: New field.
10477 * nat/windows-nat.c (windows_thread_info::resume): Clear
10478 stopped_at_software_breakpoint.
10479
10480 2020-04-08 Tom Tromey <tromey@adacore.com>
10481
10482 * windows-nat.c (enum thread_disposition_type): New.
10483 (thread_rec): Replace "get_context" parameter with "disposition";
10484 change type.
10485 (windows_add_thread, windows_nat_target::fetch_registers)
10486 (windows_nat_target::store_registers, handle_exception)
10487 (windows_nat_target::resume, get_windows_debug_event)
10488 (windows_nat_target::get_tib_address)
10489 (windows_nat_target::thread_name)
10490 (windows_nat_target::thread_alive): Update.
10491
10492 2020-04-08 Tom Tromey <tromey@adacore.com>
10493
10494 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10495 (windows_continue): Use windows_continue::resume.
10496 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10497 resume>: Declare new methods.
10498 * nat/windows-nat.c: New file.
10499 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10500
10501 2020-04-08 Tom Tromey <tromey@adacore.com>
10502
10503 * windows-nat.c (windows_add_thread, windows_delete_thread)
10504 (windows_nat_target::fetch_registers)
10505 (windows_nat_target::store_registers, fake_create_process)
10506 (windows_nat_target::resume, windows_nat_target::resume)
10507 (get_windows_debug_event, windows_nat_target::wait)
10508 (windows_nat_target::pid_to_str)
10509 (windows_nat_target::get_tib_address)
10510 (windows_nat_target::get_ada_task_ptid)
10511 (windows_nat_target::thread_name)
10512 (windows_nat_target::thread_alive): Use lwp, not tid.
10513
10514 2020-04-08 Tom Tromey <tromey@adacore.com>
10515
10516 * windows-nat.c (handle_exception)
10517 (windows_nat_target::thread_name): Update.
10518 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10519 <name>: Now unique_xmalloc_ptr.
10520
10521 2020-04-08 Tom Tromey <tromey@adacore.com>
10522
10523 * windows-nat.c (thread_rec)
10524 (windows_nat_target::fetch_registers): Update.
10525 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10526 Update comment.
10527 <debug_registers_changed, reload_context>: Now bool.
10528
10529 2020-04-08 Tom Tromey <tromey@adacore.com>
10530
10531 * windows-nat.c (windows_add_thread): Use new.
10532 (windows_init_thread_list, windows_delete_thread): Use delete.
10533 (get_windows_debug_event): Update.
10534 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10535 destructor, and initializers.
10536
10537 2020-04-08 Tom Tromey <tromey@adacore.com>
10538
10539 * windows-nat.c (struct windows_thread_info): Remove.
10540 * nat/windows-nat.h: New file.
10541
10542 2020-04-08 Tom Tromey <tromey@adacore.com>
10543
10544 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10545 (thread_rec, windows_add_thread, windows_delete_thread)
10546 (windows_continue): Update.
10547
10548 2020-04-08 Tom Tromey <tromey@adacore.com>
10549
10550 * windows-nat.c (struct windows_thread_info): Remove typedef.
10551 (thread_head): Remove.
10552 (thread_list): New global.
10553 (thread_rec, windows_add_thread, windows_init_thread_list)
10554 (windows_delete_thread, windows_continue): Update.
10555
10556 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10557
10558 * windows-tdep.h (windows_init_abi): Add comment.
10559 (cygwin_init_abi): New declaration.
10560 * windows-tdep.c: Split signal enumeration in two, one for
10561 Windows and one for Cygwin.
10562 (windows_gdb_signal_to_target): Only deal with signal of the
10563 Windows OS ABI.
10564 (cygwin_gdb_signal_to_target): New function.
10565 (windows_init_abi): Rename to windows_init_abi_common, don't set
10566 gdb_signal_to_target gdbarch method. Add new new function with
10567 this name.
10568 (cygwin_init_abi): New function.
10569 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10570 comment. Don't call windows_init_abi.
10571 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10572 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10573 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10574 i386_windows_init_abi_common, don't call windows_init_abi. Add
10575 a new function of this name.
10576 (i386_cygwin_init_abi): New function.
10577 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10578 OS ABI Cygwin.
10579
10580 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10581
10582 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10583 parameter.c.
10584 (dwarf2_read_gdb_index): Update.
10585
10586 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10587
10588 * nbsd-tdep.c: Include "objfiles.h".
10589 (nbsd_skip_solib_resolver): New.
10590 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10591
10592 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10593
10594 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10595 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10596 with DW_LLE_base_addressx are being emitted in DWARFv5.
10597 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10598 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10599 unsigned integer.
10600
10601 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10602
10603 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10604 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10605 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10606 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10607 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10608 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10609 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10610
10611
10612 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10613
10614 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10615 (read_loclist_index): New function definition.
10616 (lookup_loclist_base): New function definition.
10617 (read_loclist_header): New function definition.
10618 (dwarf2_cu): Add loclist_base and loclist_header field.
10619 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10620 (read_full_die_1): Read the value of DW_AT_loclists_base.
10621 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10622 (read_attribute_value): Handle DW_FORM_loclistx.
10623 (skip_one_die): Handle DW_FORM_loclistx.
10624 (loclist_header): New structure declaration.
10625 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10626
10627 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10628
10629 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10630 constructor. Remove `addr` parameter from other constructor and
10631 add `per_cu` parameter.
10632 * dwarf2/read.c (create_partial_symtab): Update.
10633
10634 2020-04-07 Tom de Vries <tdevries@suse.de>
10635
10636 PR symtab/25796
10637 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10638 (partial_die_info::fixup): Inherit has_const_value.
10639
10640 2020-04-07 Tom de Vries <tdevries@suse.de>
10641
10642 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10643 symbols without address.
10644
10645 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10646
10647 * nbsd-nat.h (struct thread_info): Add forward declaration.
10648 (nbsd_nat_target::thread_alive): Add.
10649 (nbsd_nat_target::thread_name): Likewise.
10650 (nbsd_nat_target::update_thread_list): Likewise.
10651 (update_thread_list::post_attach): Likewise.
10652 (post_attach::pid_to_str): Likewise.
10653 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10654 (nbsd_thread_lister): Add.
10655 (nbsd_nat_target::thread_alive): Likewise.
10656 (nbsd_nat_target::thread_name): Likewise.
10657 (nbsd_add_threads): Likewise.
10658 (update_thread_list::post_attach): Likewise.
10659 (nbsd_nat_target::update_thread_list): Likewise.
10660 (post_attach::pid_to_str): Likewise.
10661
10662 2020-04-06 Tom Tromey <tromey@adacore.com>
10663
10664 * ada-valprint.c (print_variant_part): Extract the variant field.
10665 (print_field_values): Use the field as the outer value when
10666 recursing.
10667
10668 2020-04-06 Tom Tromey <tromey@adacore.com>
10669
10670 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10671 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10672 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10673 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10674 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10675
10676 2020-04-06 Tom Tromey <tromey@adacore.com>
10677
10678 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10679 TYPE_CODE_ERROR.
10680
10681 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10682
10683 * nbsd-tdep.c: Include "gdbarch.h".
10684 Define enum with NetBSD signal numbers.
10685 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10686 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10687 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10688 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10689 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10690 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10691 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10692 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10693 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10694 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10695 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10696 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10697
10698 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10699
10700 PR gdb/25325
10701 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10702
10703 2020-04-03 Tom Tromey <tromey@adacore.com>
10704
10705 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10706 Read constant block.
10707
10708 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10709
10710 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10711 (gdb_bfd_get_full_section_contents): New declaration.
10712 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10713 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10714 gdb_bfd_get_full_section_contents.
10715
10716 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10717
10718 * exec.c (build_section_table): Replace internal_error with
10719 gdb_assert.
10720 (section_table_xfer_memory_partial): Likewise.
10721 * mdebugread.c (parse_partial_symbols): Likewise.
10722 * psymtab.c (lookup_partial_symbol): Likewise.
10723 * utils.c (wrap_here): Likewise.
10724
10725 2020-04-02 Tom Tromey <tromey@adacore.com>
10726
10727 * f-lang.c (build_fortran_types): Use arch_type to initialize
10728 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10729
10730 2020-04-02 Tom Tromey <tromey@adacore.com>
10731
10732 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10733 of attributes.
10734
10735 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10736 Bernd Edlinger <bernd.edlinger@hotmail.de>
10737 Tom Tromey <tromey@adacore.com>
10738
10739 * buildsym.c (buildsym_compunit::record_line): Remove
10740 deduplication code.
10741
10742 2020-04-02 Tom de Vries <tdevries@suse.de>
10743
10744 PR ada/24671
10745 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10746
10747 2020-04-02 Tom de Vries <tdevries@suse.de>
10748
10749 * dwarf2/read.c (dwarf2_gdb_index_functions,
10750 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10751 NULL.
10752 * psymtab.c (psym_lookup_global_symbol_language): New function.
10753 (psym_functions): Init psym_lookup_global_symbol_language with
10754 psym_lookup_global_symbol_language.
10755 * symfile-debug.c (debug_sym_quick_functions): Init
10756 lookup_global_symbol_language with NULL.
10757 * symfile.c (set_initial_language): Remove fixme comment.
10758 * symfile.h (struct quick_symbol_functions): Add
10759 lookup_global_symbol_language.
10760 * symtab.c (find_quick_global_symbol_language): New function.
10761 (find_main_name): Use find_quick_global_symbol_language.
10762
10763 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10764
10765 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10766
10767 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10768
10769 * buildsym.c (record_line): Fix undefined behavior and preserve
10770 lines at eof.
10771
10772 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10773
10774 * buildsym.c (record_line): Fix the resizing condition.
10775
10776 2020-04-01 Tom Tromey <tom@tromey.com>
10777
10778 * value.h (value_literal_complex): Add comment.
10779 * valops.c (value_literal_complex): Refer to value.h.
10780
10781 2020-04-01 Tom Tromey <tom@tromey.com>
10782
10783 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10784 (scalar_type): New rule, from typebase.
10785 (typebase): Use scalar_type. Recognize complex types.
10786 (field_name): Handle FLOAT_KEYWORD.
10787 (ident_tokens): Add _Complex and __complex__.
10788
10789 2020-04-01 Tom Tromey <tom@tromey.com>
10790
10791 PR exp/25299:
10792 * valarith.c (promotion_type, complex_binop): New functions.
10793 (scalar_binop): Handle complex numbers. Use promotion_type.
10794 (value_pos, value_neg, value_complement): Handle complex numbers.
10795
10796 2020-04-01 Tom Tromey <tom@tromey.com>
10797
10798 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10799 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10800 (parse_number): Handle complex numbers.
10801
10802 2020-04-01 Tom Tromey <tom@tromey.com>
10803
10804 * c-valprint.c (c_decorations): Change complex suffix to "i".
10805
10806 2020-04-01 Tom Tromey <tom@tromey.com>
10807
10808 * valprint.c (generic_value_print_complex): Use accessors.
10809 * value.h (value_real_part, value_imaginary_part): Declare.
10810 * valops.c (value_real_part, value_imaginary_part): New
10811 functions.
10812 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10813
10814 2020-04-01 Tom Tromey <tom@tromey.com>
10815
10816 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10817 (read_range_type): Update.
10818 * mdebugread.c (basic_type): Update.
10819 * go-lang.c (build_go_types): Use init_complex_type.
10820 * gdbtypes.h (struct main_type) <complex_type>: New member.
10821 (init_complex_type): Update.
10822 (arch_complex_type): Don't declare.
10823 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10824 Make name if none given. Use alloc_type_copy. Look for cached
10825 complex type.
10826 (arch_complex_type): Remove.
10827 (gdbtypes_post_init): Use init_complex_type.
10828 * f-lang.c (build_fortran_types): Use init_complex_type.
10829 * dwarf2/read.c (read_base_type): Update.
10830 * d-lang.c (build_d_types): Use init_complex_type.
10831 * ctfread.c (read_base_type): Update.
10832
10833 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10834
10835 * infrun.c (stop_all_threads): Update assertion, plus when
10836 stopping threads, take into account that we might be trying
10837 to stop an all-stop target.
10838 (stop_waiting): Call 'stop_all_threads' if there exists a
10839 non-stop target.
10840
10841 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10842
10843 * target.h (exists_non_stop_target): New function declaration.
10844 * target.c (exists_non_stop_target): New function.
10845
10846 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10847
10848 PR gdb/24789
10849 * eval.c (is_integral_or_integral_reference): New function.
10850 (evaluate_subexp_standard): Allow integer references in
10851 pointer arithmetic.
10852
10853 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10854
10855 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10856 check for no ptid in the stop reply when the target is non-stop.
10857
10858 2020-04-01 Tom Tromey <tromey@adacore.com>
10859
10860 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10861 "name" parameter to rvalue reference. Initialize m_name_holder.
10862 <lookup_name_info>: New overloads.
10863 <name>: Return gdb::string_view.
10864 <c_str>: New method.
10865 <make_ignore_params>: Update.
10866 <search_name_hash>: Update.
10867 <language_lookup_name>: Return const char *.
10868 <m_name>: Change type.
10869 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10870 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10871 (lookup_name_info::match_any): Update.
10872 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10873 Update.
10874 * minsyms.c (linkage_name_str): Update.
10875 * language.c (default_symbol_name_matcher): Update.
10876 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10877 Update.
10878 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10879 (ada_lookup_name_info::ada_lookup_name_info): Update.
10880 (literal_symbol_name_matcher): Update.
10881
10882 2020-04-01 Tom Tromey <tromey@adacore.com>
10883
10884 * psymtab.c (psymtab_search_name): Remove function.
10885 (psym_lookup_symbol): Create search name and lookup name here.
10886 (lookup_partial_symbol): Remove "name" parameter; add
10887 lookup_name.
10888 (psym_expand_symtabs_for_function): Update.
10889
10890 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10891
10892 PR tui/25597:
10893 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10894
10895 2020-03-31 Tom Tromey <tromey@adacore.com>
10896
10897 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10898 memcpy.
10899
10900 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10901
10902 * features/riscv/32bit-csr.xml: Regenerated.
10903 * features/riscv/64bit-csr.xml: Regenerated.
10904
10905 2020-03-30 Tom Tromey <tromey@adacore.com>
10906
10907 * ada-valprint.c (print_variant_part): Update.
10908 * ada-lang.h (ada_which_variant_applies): Update.
10909 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10910 outer_valaddr parameters; replace with "outer" value parameter.
10911 (to_fixed_variant_branch_type): Update.
10912
10913 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10914
10915 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10916 <list>. Remove inclusion of observable.h.
10917 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10918 (struct arch_lwp_info): New struct.
10919 (class ppc_linux_dreg_interface): New class.
10920 (struct ppc_linux_process_info): New struct.
10921 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10922 <low_new_clone, low_forget_process, low_prepare_to_resume>
10923 <copy_thread_dreg_state, mark_thread_stale>
10924 <mark_debug_registers_changed, register_hw_breakpoint>
10925 <clear_hw_breakpoint, register_wp, clear_wp>
10926 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10927 <num_memory_accesses, get_trigger_type>
10928 <create_watchpoint_request, hwdebug_point_cmp>
10929 <init_arch_lwp_info, get_arch_lwp_info>
10930 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10931 methods.
10932 <struct ptid_hash>: New inner struct.
10933 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10934 members.
10935 (saved_dabr_value, hwdebug_info, max_slots_number)
10936 (struct hw_break_tuple, struct thread_points, ppc_threads)
10937 (have_ptrace_hwdebug_interface)
10938 (hwdebug_find_thread_points_by_tid)
10939 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10940 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10941 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10942 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10943 use m_dreg_interface.
10944 (hwdebug_point_cmp): Change to...
10945 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10946 reference arguments instead of pointers.
10947 (ppc_linux_nat_target::ranged_break_num_registers): Use
10948 m_dreg_interface.
10949 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10950 m_dreg_interface. Call register_hw_breakpoint.
10951 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10952 m_dreg_interface. Call clear_hw_breakpoint.
10953 (get_trigger_type): Change to...
10954 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10955 comment.
10956 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10957 use m_dreg_interface. Call register_hw_breakpoint.
10958 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10959 use m_dreg_interface. Call clear_hw_breakpoint.
10960 (can_use_watchpoint_cond_accel): Change to...
10961 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10962 method. Update comment, use m_dreg_interface and
10963 m_process_info.
10964 (calculate_dvc): Change to...
10965 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10966 m_dreg_interface.
10967 (num_memory_accesses): Change to...
10968 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10969 (check_condition): Change to...
10970 (ppc_linux_nat_target::check_condition): ...this method.
10971 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10972 comment, use m_dreg_interface.
10973 (create_watchpoint_request): Change to...
10974 (ppc_linux_nat_target::create_watchpoint_request): ...this
10975 method. Use m_dreg_interface.
10976 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10977 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10978 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10979 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10980 (ppc_linux_nat_target::low_forget_process)
10981 (ppc_linux_nat_target::low_new_fork)
10982 (ppc_linux_nat_target::low_new_clone)
10983 (ppc_linux_nat_target::low_delete_thread)
10984 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10985 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10986 only call mark_thread_stale.
10987 (ppc_linux_thread_exit): Remove.
10988 (ppc_linux_nat_target::stopped_data_address): Change to...
10989 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10990 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10991 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10992 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10993 comment. Call low_stopped_data_address.
10994 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10995 m_dreg_interface.
10996 (ppc_linux_nat_target::masked_watch_num_registers): Use
10997 m_dreg_interface.
10998 (ppc_linux_nat_target::copy_thread_dreg_state)
10999 (ppc_linux_nat_target::mark_thread_stale)
11000 (ppc_linux_nat_target::mark_debug_registers_changed)
11001 (ppc_linux_nat_target::register_hw_breakpoint)
11002 (ppc_linux_nat_target::clear_hw_breakpoint)
11003 (ppc_linux_nat_target::register_wp)
11004 (ppc_linux_nat_target::clear_wp)
11005 (ppc_linux_nat_target::init_arch_lwp_info)
11006 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
11007 (_initialize_ppc_linux_nat): Remove observer callback.
11008
11009 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11010
11011 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
11012 (ppc_linux_nat_target::auxv_parse)
11013 (ppc_linux_nat_target::read_description)
11014 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
11015 Move up.
11016
11017 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
11018
11019 * linux-nat.h (low_new_clone): New method.
11020 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
11021
11022 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11023
11024 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
11025 (dbx_expand_psymtab): ... this.
11026 (start_psymtab): Update.
11027 * mdebugread.c (psymtab_to_symtab_1): Rename to...
11028 (mdebug_expand_psymtab): ... this.
11029 (parse_partial_symbols): Update.
11030 (new_psymtab): Update.
11031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
11032 (xcoff_expand_psymtab): ... this.
11033 (xcoff_start_psymtab): Update.
11034
11035 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11036
11037 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11038 <expand_dependencies>: ... this.
11039 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11040 (partial_symtab::expand_dependencies): ... this.
11041 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11042 Update.
11043 (dwarf2_psymtab::expand_psymtab): Update.
11044 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11045 * mdebugread.c (psymtab_to_symtab_1): Update.
11046 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11047
11048 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11049
11050 * psympriv.h (discard_psymtab): Remove.
11051 * dbxread.c (dbx_end_psymtab): Update.
11052 * xcoffread.c (xcoff_end_psymtab): Update.
11053
11054 2020-03-28 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11057 comment.
11058
11059 2020-03-28 Tom Tromey <tom@tromey.com>
11060
11061 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11062
11063 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11064
11065 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11066
11067 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11068
11069 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11070
11071 2020-03-26 Tom Tromey <tom@tromey.com>
11072
11073 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11074 (mark_common_block_symbol_computed, read_tag_string_type)
11075 (attr_to_dynamic_prop, read_subrange_type): Update.
11076 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11077 to be methods on struct attribute.
11078 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11079 (read_call_site_scope, partial_die_info::read)
11080 (partial_die_info::read, lookup_die_type, follow_die_ref):
11081 Update.
11082 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11083 from dwarf2_get_ref_die_offset.
11084 (attribute::constant_value): New method, from
11085 dwarf2_get_attr_constant_value.
11086 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11087 Declare method.
11088 <constant_value>: New method.
11089
11090 2020-03-26 Tom Tromey <tom@tromey.com>
11091
11092 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11093 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11094 (dwarf_type_encoding_name): Move to stringify.c.
11095 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11096 * dwarf2/stringify.c: New file.
11097 * dwarf2/stringify.h: New file.
11098
11099 2020-03-26 Tom Tromey <tom@tromey.com>
11100
11101 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11102 Rewrite.
11103
11104 2020-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11107 methods.
11108 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11109 (lookup_ranges_base): Likewise.
11110 (read_cutu_die_from_dwo, read_full_die_1): Update.
11111
11112 2020-03-26 Tom Tromey <tom@tromey.com>
11113
11114 * dwarf2/read.c (read_import_statement, read_file_scope)
11115 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11116 (read_lexical_block_scope, read_call_site_scope)
11117 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11118 (handle_struct_member_die, process_structure_scope)
11119 (update_enumeration_type_from_children)
11120 (process_enumeration_scope, read_array_type, read_common_block)
11121 (read_namespace, read_module, read_subroutine_type): Update.
11122 (sibling_die): Remove.
11123
11124 2020-03-26 Tom Tromey <tom@tromey.com>
11125
11126 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11127 (build_type_psymtabs_reader, read_structure_type)
11128 (read_enumeration_type, read_full_die_1): Update.
11129 (dwarf2_attr_no_follow): Move to die.h.
11130 * dwarf2/die.h (struct die_info) <attr>: New method.
11131
11132 2020-03-26 Tom Tromey <tom@tromey.com>
11133
11134 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11135 <base_address>: Now an optional.
11136 (dwarf2_find_base_address, dwarf2_rnglists_process)
11137 (dwarf2_ranges_process, fill_in_loclist_baton)
11138 (dwarf2_symbol_mark_computed): Update.
11139
11140 2020-03-26 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2/read.c (struct die_info): Move to die.h.
11143 * dwarf2/die.h: New file.
11144
11145 2020-03-26 Tom Tromey <tom@tromey.com>
11146
11147 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11148 * dwarf2/read.c
11149 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11150 Move to line-header.c.
11151 (read_checked_initial_length_and_offset, read_formatted_entries):
11152 Likewise.
11153 (dwarf_decode_line_header): Split into two.
11154 * dwarf2/line-header.c
11155 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11156 Move from read.c.
11157 (read_checked_initial_length_and_offset, read_formatted_entries):
11158 Likewise.
11159 (dwarf_decode_line_header): New function, split from read.c.
11160
11161 2020-03-26 Tom Tromey <tom@tromey.com>
11162
11163 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11164 Declare method.
11165 * dwarf2/read.c (read_attribute_value): Update.
11166 (dwarf2_per_objfile::read_line_string): Rename from
11167 read_indirect_line_string.
11168 (read_formatted_entries): Update.
11169
11170 2020-03-26 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11173 variable.
11174
11175 2020-03-26 Tom Tromey <tom@tromey.com>
11176
11177 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11178 const.
11179 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11180 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11181 parameter const.
11182
11183 2020-03-26 Tom Tromey <tom@tromey.com>
11184
11185 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11186 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11187 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11188 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11189
11190 2020-03-26 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11193 file_names_size, file_full_name, file_file_name>: Use const.
11194 <file_name_at, file_names>: Add const overload.
11195 * dwarf2/line-header.c (line_header::file_file_name)
11196 (line_header::file_full_name): Update.
11197
11198 2020-03-26 Tom Tromey <tom@tromey.com>
11199
11200 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11201 (macro_start_file, consume_improper_spaces)
11202 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11203 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11204 (dwarf_decode_macros): Move to macro.c.
11205 * dwarf2/macro.c: New file.
11206 * dwarf2/macro.h: New file.
11207 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11208
11209 2020-03-26 Tom Tromey <tom@tromey.com>
11210
11211 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11212 method.
11213 * dwarf2/section.c: New method. From
11214 read_indirect_string_at_offset_from.
11215 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11216 (read_indirect_string_at_offset_from): Move to section.c.
11217 (read_indirect_string_at_offset): Rewrite.
11218 (read_indirect_line_string_at_offset): Remove.
11219 (read_indirect_string, read_indirect_line_string)
11220 (dwarf_decode_macro_bytes): Update.
11221
11222 2020-03-26 Tom Tromey <tom@tromey.com>
11223
11224 * dwarf2/section.h (struct dwarf2_section_info)
11225 <overload_complaint>: Declare.
11226 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11227 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11228 Rename from dwarf2_section_buffer_overflow_complaint.
11229 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11230 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11231
11232 2020-03-26 Tom Tromey <tom@tromey.com>
11233
11234 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11235 Declare.
11236 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11237 Move from read.c.
11238 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11239 to section.c.
11240
11241 2020-03-26 Tom Tromey <tom@tromey.com>
11242
11243 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11244
11245 2020-03-26 Tom Tromey <tom@tromey.com>
11246
11247 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11248 "builder".
11249 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11250 parameter.
11251 (dwarf_decode_macros): Update.
11252
11253 2020-03-26 Tom Tromey <tom@tromey.com>
11254
11255 * dwarf2/read.c (read_attribute_value): Update.
11256 (read_indirect_string_from_dwz): Move to dwz.c; change into
11257 method.
11258 (dwarf_decode_macro_bytes): Update.
11259 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11260 * dwarf2/dwz.c: New file.
11261 * Makefile.in (COMMON_SFILES): Add dwz.c.
11262
11263 2020-03-26 Tom Tromey <tom@tromey.com>
11264
11265 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11266 * dwarf2/read.c: Add include.
11267 * dwarf2/index-write.c: Add include.
11268 * dwarf2/index-cache.c: Add include.
11269 * dwarf2/dwz.h: New file.
11270
11271 2020-03-25 Tom Tromey <tom@tromey.com>
11272
11273 * compile/compile-object-load.c (get_out_value_type): Mention
11274 correct symbol name in error message.
11275
11276 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11277
11278 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11279
11280 2020-03-25 Tom de Vries <tdevries@suse.de>
11281
11282 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11283 * symmisc.c (dump_symtab_1): Print user and includes fields.
11284 (maintenance_info_symtabs): Same.
11285
11286 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11287
11288 PR gdb/25534
11289 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11290 (riscv_regcache_cooked_write): New function.
11291 (riscv_push_dummy_call): Use new function.
11292 (riscv_return_value): Likewise.
11293
11294 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11295
11296 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11297 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11298 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11299 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11300 * infrun.c (follow_fork): Likewise.
11301 (follow_fork_inferior): Likewise.
11302 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11303 * linux-nat.h (class linux_nat_target): Likewise.
11304 * remote.c (class remote_target) <follow_fork>: Likewise.
11305 (remote_target::follow_fork): Likewise.
11306 * target-delegates.c: Re-generate.
11307 * target.c (default_follow_fork): Likewise.
11308 (target_follow_fork): Likewise.
11309 * target.h (struct target_ops) <follow_fork>: Likewise.
11310 (target_follow_fork): Likewise.
11311
11312 2020-03-24 Tom de Vries <tdevries@suse.de>
11313
11314 * psymtab.c (maintenance_info_psymtabs): Print user field.
11315
11316 2020-03-20 Tom Tromey <tromey@adacore.com>
11317
11318 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11319 const.
11320 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11321 const.
11322
11323 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * ptrace.m4: Don't check for ptrace declaration.
11326 * config.in: Re-generate.
11327 * configure: Re-generate.
11328 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11329 not defined.
11330
11331 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11332
11333 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11334 `PTRACE_TYPE_RET'.
11335 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11336 * sparc-nat.c (gdb_ptrace): Likewise.
11337 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11338
11339 2020-03-20 Tom Tromey <tromey@adacore.com>
11340
11341 * c-exp.y (lex_one_token): Fix assert.
11342
11343 2020-03-20 Tom Tromey <tromey@adacore.com>
11344
11345 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11346 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11347 strncpy call.
11348
11349 2020-03-20 Tom Tromey <tromey@adacore.com>
11350
11351 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11352
11353 2020-03-20 Tom Tromey <tromey@adacore.com>
11354
11355 * ada-valprint.c (print_variant_part): Remove parameters; switch
11356 to value-based API.
11357 (print_field_values): Likewise.
11358 (ada_val_print_struct_union): Likewise.
11359 (ada_value_print_1): Update.
11360
11361 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11362
11363 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11364 nbsd_nat_target instead of inf_ptrace_target.
11365 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11366 nbsd_nat_target.
11367
11368 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11369
11370 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11371 it to the ptrace call.
11372 * (store_registers): Likewise.
11373
11374 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11375
11376 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11377 it to the ptrace call.
11378 * (store_registers): Likewise.
11379
11380 2020-03-19 Luis Machado <luis.machado@linaro.org>
11381
11382 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11383 valid, fetch vg value from ptrace.
11384
11385 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11386 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11387 * inf-ptrace.c: Likewise.
11388 * (gdb_ptrace): Add.
11389 * (inf_ptrace_target::resume): Update.
11390 * (inf_ptrace_target::xfer_partial): Likewise.
11391 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11392 * (inf_ptrace_peek_poke): Update.
11393
11394 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11395
11396 * x86-bsd-nat.c (gdb_ptrace): New.
11397 * (x86bsd_dr_set): Add new argument `ptid'.
11398 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11399 x86bsd_dr_set_addr): Update.
11400
11401 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11402
11403 * remote.c (remote_target::process_stop_reply): Handle events for
11404 all threads differently.
11405
11406 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11407
11408 * completer.c (completion_tracker::remove_completion): Define new
11409 function.
11410 * completer.h (completion_tracker::remove_completion): Declare new
11411 function.
11412 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11413 when adding a C++ function symbol.
11414
11415 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11416
11417 * completer.c (completion_tracker::completion_hash_entry): Define
11418 new class.
11419 (advance_to_filename_complete_word_point): Call
11420 recompute_lowest_common_denominator.
11421 (completion_tracker::completion_tracker): Call discard_completions
11422 to setup the hash table.
11423 (completion_tracker::discard_completions): Allow for being called
11424 from the constructor, pass new equal function, and element deleter
11425 when constructing the hash table. Initialise new class member
11426 variables.
11427 (completion_tracker::maybe_add_completion): Remove use of
11428 m_entries_vec, and store more information into m_entries_hash.
11429 (completion_tracker::recompute_lcd_visitor): New function, most
11430 content taken from...
11431 (completion_tracker::recompute_lowest_common_denominator):
11432 ...here, this now just visits each item in the hash calling the
11433 above visitor.
11434 (completion_tracker::build_completion_result): Remove use of
11435 m_entries_vec, call recompute_lowest_common_denominator.
11436 * completer.h (completion_tracker::have_completions): Remove use
11437 of m_entries_vec.
11438 (completion_tracker::completion_hash_entry): Declare new class.
11439 (completion_tracker::recompute_lowest_common_denominator): Change
11440 function signature.
11441 (completion_tracker::recompute_lcd_visitor): Declare new function.
11442 (completion_tracker::m_entries_vec): Delete.
11443 (completion_tracker::m_entries_hash): Initialize to NULL.
11444 (completion_tracker::m_lowest_common_denominator_valid): New
11445 member variable.
11446 (completion_tracker::m_lowest_common_denominator_max_length): New
11447 member variable.
11448
11449 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11450
11451 * regformats/regdef.h: Put reg in gdb namespace.
11452
11453 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11454
11455 * i386-bsd-nat.c (gdb_ptrace): New.
11456 * (i386bsd_fetch_inferior_registers,
11457 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11458 * (i386bsd_fetch_inferior_registers,
11459 i386bsd_store_inferior_registers) Use gdb_ptrace.
11460
11461 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11462
11463 * amd64-bsd-nat.c (gdb_ptrace): New.
11464 * (amd64bsd_fetch_inferior_registers,
11465 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11466 * (amd64bsd_fetch_inferior_registers,
11467 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11468
11469 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11470
11471 * user-regs.c (user_reg::read): Rename to...
11472 (user_reg::xread): ...this.
11473 * (append_user_reg): Rename argument `read' to `xread'.
11474 * (user_reg_add_builtin): Likewise.
11475 * (user_reg_add): Likewise.
11476 * (value_of_user_reg): Likewise.
11477
11478 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11479
11480 * sparc-nat.c (gdb_ptrace): New.
11481 * sparc-nat.c (sparc_fetch_inferior_registers)
11482 (sparc_store_inferior_registers) Remove obsolete comment.
11483 * sparc-nat.c (sparc_fetch_inferior_registers)
11484 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11485 * sparc-nat.c (sparc_fetch_inferior_registers)
11486 (sparc_store_inferior_registers) Use gdb_ptrace.
11487
11488 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11489
11490 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11491 it to the ptrace call.
11492 * sh-nbsd-nat.c (store_registers): Likewise.
11493
11494 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11495
11496 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11497 nbsd_nat_target instead of inf_ptrace_target.
11498 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11499 nbsd_nat_target.
11500
11501 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11502
11503 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11504
11505 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11506
11507 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11508 <sys/sysctl.h>.
11509 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11510
11511 2020-03-17 Tom de Vries <tdevries@suse.de>
11512
11513 PR gdb/23710
11514 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11515 fields.
11516 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11517 fields.
11518 (process_imported_unit_die): Skip import of c++ CUs.
11519
11520 2020-03-16 Tom Tromey <tom@tromey.com>
11521
11522 * p-valprint.c (pascal_object_print_value): Initialize
11523 base_value.
11524
11525 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11526 Shahab Vahedi <shahab@synopsys.com>
11527
11528 * Makefile.in: Add arch/arc.o
11529 * configure.tgt: Likewise.
11530 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11531 (_initialize_arc_tdep): Don't initialize old target descriptions.
11532 (arc_read_description): New function to cache target descriptions.
11533 * arc-tdep.h (arc_read_description): Add proto type.
11534 * arch/arc.c: New file.
11535 * arch/arc.h: Likewise.
11536 * features/Makefile: Replace old target descriptions with new.
11537 * features/arc-arcompact.c: Remove.
11538 * features/arc-arcompact.xml: Likewise.
11539 * features/arc-v2.c: Likewise
11540 * features/arc-v2.xml: Likewise
11541 * features/arc/aux-arcompact.xml: New file.
11542 * features/arc/aux-v2.xml: Likewise.
11543 * features/arc/core-arcompact.xml: Likewise.
11544 * features/arc/core-v2.xml: Likewise.
11545 * features/arc/aux-arcompact.c: Generate.
11546 * features/arc/aux-v2.c: Likewise.
11547 * features/arc/core-arcompact.c: Likewise.
11548 * features/arc/core-v2.c: Likewise.
11549 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11550
11551 2020-03-16 Tom Tromey <tromey@adacore.com>
11552
11553 PR gdb/25663:
11554 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11555 putting value into bcache.
11556
11557 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11558
11559 PR gdb/21500
11560 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11561 to...
11562 (amd64_windows_init_abi_common): ... this. Don't set size of
11563 long type.
11564 (amd64_windows_init_abi): New function.
11565 (amd64_cygwin_init_abi): New function.
11566 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11567 the Cygwin OS ABI.
11568 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11569 comment.
11570
11571 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11572
11573 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11574 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11575 (pe_import_directory_entry): New struct type.
11576 (is_linked_with_cygwin_dll): New function.
11577 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11578 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11579 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11580
11581 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11582
11583 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11584 i386_cygwin_core_osabi_sniffer.
11585
11586 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11587
11588 * i386-cygwin-tdep.c: Rename to...
11589 * i386-windows-tdep.c: ... this.
11590 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11591 i386-windows-tdep.c.
11592 * configure.tgt: Likewise.
11593
11594 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11595
11596 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11597 * osabi.c (gdb_osabi_names): Add "Windows".
11598 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11599 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11600 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11601 i386_cygwin_osabi_sniffer.
11602 (_initialize_i386_cygwin_tdep): Register OS ABI
11603 GDB_OSABI_WINDOWS for i386.
11604 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11605 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11606 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11607 for x86-64.
11608 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11609 when the target matches '*-*-mingw*'.
11610
11611 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11612
11613 * defs.h (enum gdb_osabi): Move to...
11614 * osabi.h (enum gdb_osabi): ... here.
11615 * gdbarch.sh: Include osabi.h in gdbarch.h.
11616 * gdbarch.h: Re-generate.
11617
11618 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11621 function.
11622 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11623
11624 2020-03-14 Tom Tromey <tom@tromey.com>
11625
11626 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11627 for C++.
11628 (c_type_print_modifier): Likewise. Add "language" parameter.
11629 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11630 (c_type_print_base_1): Update.
11631 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11632 constants.
11633 * type-stack.c (type_stack::insert): Handle tp_atomic and
11634 tp_restrict.
11635 (type_stack::follow_type_instance_flags): Likewise.
11636 (type_stack::follow_types): Likewise. Merge type-following code.
11637 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11638 (space_identifier, cv_with_space_id)
11639 (const_or_volatile_or_space_identifier_noopt)
11640 (const_or_volatile_or_space_identifier): Remove.
11641 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11642 rules.
11643 (ptr_operator, typebase): Update.
11644 (enum token_flag) <FLAG_C>: New constant.
11645 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11646 "_Atomic".
11647 (lex_one_token): Handle FLAG_C.
11648
11649 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11650
11651 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11652 it to the ptrace call.
11653 * m68k-bsd-nat.c (store_registers): Likewise.
11654
11655 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11656
11657 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11658 gdb_byte *.
11659 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11660 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11661 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11662
11663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11664
11665 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11666 nbsd_nat_target instead of inf_ptrace_target.
11667 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11668 nbsd_nat_target.
11669
11670 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11671
11672 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11673 register_t.
11674
11675 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11676
11677 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11678 it to the ptrace call.
11679 * alpha-bsd-nat.c (store_registers): Likewise.
11680
11681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11682
11683 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11684 includes.
11685 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11686 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11687 fill_fpregset): Likewise.
11688
11689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11690
11691 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11692 nbsd_nat_target instead of inf_ptrace_target.
11693 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11694 nbsd_nat_target.
11695
11696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11697
11698 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11699 register_t.
11700
11701 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11702
11703 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11704 it to the ptrace call.
11705 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11706 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11707 * arm-nbsd-nat.c (store_register): Likewise.
11708 * arm-nbsd-nat.c (store_regs): Likewise.
11709 * arm-nbsd-nat.c (store_fp_register): Likewise.
11710 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11711
11712 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11713
11714 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11715 nbsd_nat_target instead of inf_ptrace_target.
11716 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11717 nbsd_nat_target.
11718
11719 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11720
11721 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11722 it to the ptrace call.
11723 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11724
11725 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11726
11727 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11728 it to the ptrace call.
11729 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11730
11731 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11732
11733 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11734 gdb_byte *.
11735 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11736
11737 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11738
11739 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11740 instead of inf_ptrace_target.
11741 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11742 nbsd_nat_target.
11743
11744 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11745
11746 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11747 register_t.
11748
11749 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11750
11751 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11752 register_t.
11753
11754 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11755
11756 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11757 register_t.
11758
11759 2020-03-13 Tom Tromey <tom@tromey.com>
11760
11761 * value.h (val_print): Don't declare.
11762 * valprint.h (val_print_array_elements)
11763 (val_print_scalar_formatted, generic_val_print): Don't declare.
11764 * valprint.c (generic_val_print_array): Take a struct value.
11765 (generic_val_print_ptr, generic_val_print_memberptr)
11766 (generic_val_print_bool, generic_val_print_int)
11767 (generic_val_print_char, generic_val_print_complex)
11768 (generic_val_print): Remove.
11769 (generic_value_print): Update.
11770 (do_val_print): Remove unused parameters. Don't call
11771 la_val_print.
11772 (val_print): Remove.
11773 (common_val_print): Update. Don't call value_check_printable.
11774 (val_print_scalar_formatted, val_print_array_elements): Remove.
11775 * rust-lang.c (rust_val_print): Remove.
11776 (rust_language_defn): Update.
11777 * p-valprint.c (pascal_val_print): Remove.
11778 (pascal_value_print_inner): Update.
11779 (pascal_object_print_val_fields, pascal_object_print_val):
11780 Remove.
11781 (pascal_object_print_static_field): Update.
11782 * p-lang.h (pascal_val_print): Don't declare.
11783 * p-lang.c (pascal_language_defn): Update.
11784 * opencl-lang.c (opencl_language_defn): Update.
11785 * objc-lang.c (objc_language_defn): Update.
11786 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11787 * m2-lang.h (m2_val_print): Don't declare.
11788 * m2-lang.c (m2_language_defn): Update.
11789 * language.h (struct language_defn) <la_val_print>: Remove.
11790 * language.c (unk_lang_value_print_inner): Rename. Change
11791 argument types.
11792 (unknown_language_defn, auto_language_defn): Update.
11793 * go-valprint.c (go_val_print): Remove.
11794 * go-lang.h (go_val_print): Don't declare.
11795 * go-lang.c (go_language_defn): Update.
11796 * f-valprint.c (f_val_print): Remove.
11797 * f-lang.h (f_value_print): Don't declare.
11798 * f-lang.c (f_language_defn): Update.
11799 * d-valprint.c (d_val_print): Remove.
11800 * d-lang.h (d_value_print): Don't declare.
11801 * d-lang.c (d_language_defn): Update.
11802 * cp-valprint.c (cp_print_value_fields)
11803 (cp_print_value_fields_rtti, cp_print_value): Remove.
11804 (cp_print_static_field): Update.
11805 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11806 (c_val_print_struct, c_val_print_union, c_val_print_int)
11807 (c_val_print_memberptr, c_val_print): Remove.
11808 * c-lang.h (c_val_print_array, cp_print_value_fields)
11809 (cp_print_value_fields_rtti): Don't declare.
11810 * c-lang.c (c_language_defn, cplus_language_defn)
11811 (asm_language_defn, minimal_language_defn): Update.
11812 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11813 (ada_val_print_enum): Take a struct value.
11814 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11815 (ada_val_print): Remove.
11816 (ada_value_print_1): Update.
11817 (printable_val_type): Remove.
11818 * ada-lang.h (ada_val_print): Don't declare.
11819 * ada-lang.c (ada_language_defn): Update.
11820
11821 2020-03-13 Tom Tromey <tom@tromey.com>
11822
11823 * valprint.c (do_val_print): Update.
11824 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11825 a struct value.
11826 (value_to_value_object_no_release): Declare.
11827 * python/py-value.c (value_to_value_object_no_release): New
11828 function.
11829 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11830 struct value.
11831 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11832 function.
11833 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11834 a struct value.
11835 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11836 Declare.
11837 (gdbscm_apply_val_pretty_printer): Take a struct value.
11838 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11839 value.
11840 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11841 value.
11842 * extension-priv.h (struct extension_language_ops)
11843 <apply_val_pretty_printer>: Take a struct value.
11844 * cp-valprint.c (cp_print_value): Create a struct value.
11845 (cp_print_value): Update.
11846
11847 2020-03-13 Tom Tromey <tom@tromey.com>
11848
11849 * ada-valprint.c (print_field_values): Call common_val_print.
11850
11851 2020-03-13 Tom Tromey <tom@tromey.com>
11852
11853 * ada-valprint.c (val_print_packed_array_elements): Remove
11854 bitoffset and val parameters. Call common_val_print.
11855 (ada_val_print_string): Remove offset, address, and original_value
11856 parameters.
11857 (ada_val_print_array): Update.
11858 (ada_value_print_array): New function.
11859 (ada_value_print_1): Call it.
11860
11861 2020-03-13 Tom Tromey <tom@tromey.com>
11862
11863 * ada-valprint.c (ada_value_print): Use common_val_print.
11864
11865 2020-03-13 Tom Tromey <tom@tromey.com>
11866
11867 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11868
11869 2020-03-13 Tom Tromey <tom@tromey.com>
11870
11871 * ada-valprint.c (ada_value_print_num): New function.
11872 (ada_value_print_1): Use it.
11873
11874 2020-03-13 Tom Tromey <tom@tromey.com>
11875
11876 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11877
11878 2020-03-13 Tom Tromey <tom@tromey.com>
11879
11880 * ada-valprint.c (ada_value_print_ptr): New function.
11881 (ada_value_print_1): Use it.
11882
11883 2020-03-13 Tom Tromey <tom@tromey.com>
11884
11885 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11886 call common_val_print.
11887 (ada_val_print_1): Update.
11888 (ada_value_print_1): New function.
11889 (ada_value_print_inner): Rewrite.
11890
11891 2020-03-13 Tom Tromey <tom@tromey.com>
11892
11893 * cp-valprint.c (cp_print_value_fields): Update.
11894 (cp_print_value): New function.
11895
11896 2020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * m2-valprint.c (m2_value_print_inner): Use
11899 cp_print_value_fields.
11900 * cp-valprint.c (cp_print_value_fields): New function.
11901 * c-valprint.c (c_value_print_struct): New function.
11902 (c_value_print_inner): Use c_value_print_struct.
11903 * c-lang.h (cp_print_value_fields): Declare.
11904
11905 2020-03-13 Tom Tromey <tom@tromey.com>
11906
11907 * c-valprint.c (c_value_print_array): New function.
11908 (c_value_print_inner): Use it.
11909
11910 2020-03-13 Tom Tromey <tom@tromey.com>
11911
11912 * c-valprint.c (c_value_print_memberptr): New function.
11913 (c_value_print_inner): Use it.
11914
11915 2020-03-13 Tom Tromey <tom@tromey.com>
11916
11917 * c-valprint.c (c_value_print_int): New function.
11918 (c_value_print_inner): Use it.
11919
11920 2020-03-13 Tom Tromey <tom@tromey.com>
11921
11922 * c-valprint.c (c_value_print_ptr): New function.
11923 (c_value_print_inner): Use it.
11924
11925 2020-03-13 Tom Tromey <tom@tromey.com>
11926
11927 * c-valprint.c (c_value_print_inner): Rewrite.
11928
11929 2020-03-13 Tom Tromey <tom@tromey.com>
11930
11931 * valprint.c (generic_value_print_complex): New function.
11932 (generic_value_print): Use it.
11933
11934 2020-03-13 Tom Tromey <tom@tromey.com>
11935
11936 * valprint.c (generic_val_print_float): Don't call
11937 val_print_scalar_formatted.
11938 (generic_val_print, generic_value_print): Update.
11939
11940 2020-03-13 Tom Tromey <tom@tromey.com>
11941
11942 * valprint.c (generic_value_print_char): New function
11943 (generic_value_print): Use it.
11944
11945 2020-03-13 Tom Tromey <tom@tromey.com>
11946
11947 * valprint.c (generic_value_print_int): New function.
11948 (generic_value_print): Use it.
11949
11950 2020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * valprint.c (generic_value_print_bool): New function.
11953 (generic_value_print): Use it.
11954
11955 2020-03-13 Tom Tromey <tom@tromey.com>
11956
11957 * valprint.c (generic_val_print_func): Simplify.
11958 (generic_val_print, generic_value_print): Update.
11959
11960 2020-03-13 Tom Tromey <tom@tromey.com>
11961
11962 * valprint.c (generic_val_print_flags): Remove.
11963 (generic_val_print, generic_value_print): Update.
11964 (val_print_type_code_flags): Add original_value parameter.
11965
11966 2020-03-13 Tom Tromey <tom@tromey.com>
11967
11968 * valprint.c (generic_val_print): Update.
11969 (generic_value_print): Update.
11970 * valprint.c (generic_val_print_enum): Don't call
11971 val_print_scalar_formatted.
11972
11973 2020-03-13 Tom Tromey <tom@tromey.com>
11974
11975 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11976 * valprint.c (generic_value_print_ptr): New function.
11977
11978 2020-03-13 Tom Tromey <tom@tromey.com>
11979
11980 * valprint.c (generic_value_print): Rewrite.
11981
11982 2020-03-13 Tom Tromey <tom@tromey.com>
11983
11984 * p-valprint.c (pascal_object_print_value_fields)
11985 (pascal_object_print_value): New functions.
11986
11987 2020-03-13 Tom Tromey <tom@tromey.com>
11988
11989 * p-valprint.c (pascal_value_print_inner): Rewrite.
11990
11991 2020-03-13 Tom Tromey <tom@tromey.com>
11992
11993 * f-valprint.c (f_value_print_innner): Rewrite.
11994
11995 2020-03-13 Tom Tromey <tom@tromey.com>
11996
11997 * m2-valprint.c (m2_print_unbounded_array): New overload.
11998 (m2_print_unbounded_array): Update.
11999 (m2_print_array_contents): Take a struct value.
12000 (m2_value_print_inner): Rewrite.
12001
12002 2020-03-13 Tom Tromey <tom@tromey.com>
12003
12004 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
12005 (d_value_print_inner): New function.
12006 * d-lang.h (d_value_print_inner): Declare.
12007 * d-lang.c (d_language_defn): Use d_value_print_inner.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * go-valprint.c (go_value_print_inner): New function.
12012 * go-lang.h (go_value_print_inner): Declare.
12013 * go-lang.c (go_language_defn): Use go_value_print_inner.
12014
12015 2020-03-13 Tom Tromey <tom@tromey.com>
12016
12017 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
12018 API.
12019 (rust_val_print): Rewrite.
12020 (rust_value_print_inner): New function, from rust_val_print.
12021 (rust_language_defn): Use rust_value_print_inner.
12022
12023 2020-03-13 Tom Tromey <tom@tromey.com>
12024
12025 * ada-valprint.c (ada_value_print_inner): New function.
12026 * ada-lang.h (ada_value_print_inner): Declare.
12027 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
12028
12029 2020-03-13 Tom Tromey <tom@tromey.com>
12030
12031 * f-valprint.c (f_value_print_innner): New function.
12032 * f-lang.h (f_value_print_innner): Declare.
12033 * f-lang.c (f_language_defn): Use f_value_print_innner.
12034
12035 2020-03-13 Tom Tromey <tom@tromey.com>
12036
12037 * p-valprint.c (pascal_value_print_inner): New function.
12038 * p-lang.h (pascal_value_print_inner): Declare.
12039 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12040
12041 2020-03-13 Tom Tromey <tom@tromey.com>
12042
12043 * m2-valprint.c (m2_value_print_inner): New function.
12044 * m2-lang.h (m2_value_print_inner): Declare.
12045 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12046
12047 2020-03-13 Tom Tromey <tom@tromey.com>
12048
12049 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12050 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12051 * c-valprint.c (c_value_print_inner): New function.
12052 * c-lang.h (c_value_print_inner): Declare.
12053 * c-lang.c (c_language_defn, cplus_language_defn)
12054 (asm_language_defn, minimal_language_defn): Use
12055 c_value_print_inner.
12056
12057 2020-03-13 Tom Tromey <tom@tromey.com>
12058
12059 * p-valprint.c (pascal_object_print_value_fields): Now static.
12060 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12061
12062 2020-03-13 Tom Tromey <tom@tromey.com>
12063
12064 * c-valprint.c (c_val_print_array): Simplify.
12065
12066 2020-03-13 Tom Tromey <tom@tromey.com>
12067
12068 * valprint.c (value_print_array_elements): New function.
12069 * valprint.h (value_print_array_elements): Declare.
12070
12071 2020-03-13 Tom Tromey <tom@tromey.com>
12072
12073 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12074 * mips-tdep.c (mips_print_register): Use
12075 value_print_scalar_formatted.
12076
12077 2020-03-13 Tom Tromey <tom@tromey.com>
12078
12079 * valprint.h (value_print_scalar_formatted): Declare.
12080 * valprint.c (value_print_scalar_formatted): New function.
12081
12082 2020-03-13 Tom Tromey <tom@tromey.com>
12083
12084 * valprint.h (generic_value_print): Declare.
12085 * valprint.c (generic_value_print): New function.
12086
12087 2020-03-13 Tom Tromey <tom@tromey.com>
12088
12089 * valprint.c (do_val_print): Call la_value_print_inner, if
12090 available.
12091 * rust-lang.c (rust_language_defn): Update.
12092 * p-lang.c (pascal_language_defn): Update.
12093 * opencl-lang.c (opencl_language_defn): Update.
12094 * objc-lang.c (objc_language_defn): Update.
12095 * m2-lang.c (m2_language_defn): Update.
12096 * language.h (struct language_defn) <la_value_print_inner>: New
12097 member.
12098 * language.c (unknown_language_defn, auto_language_defn): Update.
12099 * go-lang.c (go_language_defn): Update.
12100 * f-lang.c (f_language_defn): Update.
12101 * d-lang.c (d_language_defn): Update.
12102 * c-lang.c (c_language_defn, cplus_language_defn)
12103 (asm_language_defn, minimal_language_defn): Update.
12104 * ada-lang.c (ada_language_defn): Update.
12105
12106 2020-03-13 Tom Tromey <tom@tromey.com>
12107
12108 * c-valprint.c (c_value_print): Use common_val_print.
12109
12110 2020-03-13 Tom Tromey <tom@tromey.com>
12111
12112 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12113
12114 2020-03-13 Tom Tromey <tom@tromey.com>
12115
12116 * f-valprint.c (f77_print_array_1, f_val_print): Use
12117 common_val_print.
12118
12119 2020-03-13 Tom Tromey <tom@tromey.com>
12120
12121 * riscv-tdep.c (riscv_print_one_register_info): Use
12122 common_val_print.
12123
12124 2020-03-13 Tom Tromey <tom@tromey.com>
12125
12126 * mi/mi-main.c (output_register): Use common_val_print.
12127
12128 2020-03-13 Tom Tromey <tom@tromey.com>
12129
12130 * infcmd.c (default_print_one_register_info): Use
12131 common_val_print.
12132
12133 2020-03-13 Tom Tromey <tom@tromey.com>
12134
12135 * valprint.h (common_val_print_checked): Declare.
12136 * valprint.c (common_val_print_checked): New function.
12137 * stack.c (print_frame_arg): Use common_val_print_checked.
12138
12139 2020-03-13 Tom Tromey <tom@tromey.com>
12140
12141 * valprint.c (do_val_print): New function, from val_print.
12142 (val_print): Use do_val_print.
12143 (common_val_print): Use do_val_print.
12144
12145 2020-03-13 Tom Tromey <tom@tromey.com>
12146
12147 * valprint.c (value_print): Use scoped_value_mark.
12148
12149 2020-03-13 Tom de Vries <tdevries@suse.de>
12150
12151 PR symtab/25646
12152 * psymtab.c (partial_symtab::partial_symtab): Don't set
12153 globals_offset and statics_offset. Push element onto
12154 current_global_psymbols and current_static_psymbols stacks.
12155 (concat): New function.
12156 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12157 element from current_global_psymbols and current_static_psymbols
12158 stacks. Concat popped elements to global_psymbols and
12159 static_symbols.
12160 (add_psymbol_to_list): Use current_global_psymbols and
12161 current_static_psymbols stacks.
12162 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12163 current_static_psymbols fields.
12164
12165 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12166
12167 * corelow.c (sniff_core_bfd): Remove.
12168 (class core_target) <m_core_vec>: Remove.
12169 (core_target::core_target): Update.
12170 (core_file_fns): Remove.
12171 (deprecated_add_core_fns): Remove.
12172 (default_core_sniffer): Remove.
12173 (sniff_core_bfd): Remove.
12174 (default_check_format): Remove.
12175 (gdb_check_format): Remove.
12176 (core_target_open): Update.
12177 (core_target::get_core_register_section): Update.
12178 (get_core_registers_cb): Update.
12179 (core_target::fetch_registers): Update.
12180 * gdbcore.h (struct core_fns): Remove.
12181 (deprecated_add_core_fns): Remove.
12182 (default_core_sniffer): Remove.
12183 (default_check_format): Remove.
12184
12185 2020-03-12 Tom Tromey <tom@tromey.com>
12186
12187 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12188 CORE_ADDR.
12189 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12190
12191 2020-03-12 Tom Tromey <tom@tromey.com>
12192
12193 * remote.c (remote_target::download_tracepoint)
12194 (remote_target::enable_tracepoint)
12195 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12196 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12197 sprintf_vma.
12198
12199 2020-03-12 Tom Tromey <tom@tromey.com>
12200
12201 * symfile-mem.c: Update CORE_ADDR size assert.
12202
12203 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12204
12205 * selftest.m4: Move to gdbsupport/.
12206 * acinclude.m4: Update path to selftest.m4.
12207
12208 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12209
12210 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12211 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12212 gdbarch-selfselftests.c and selftest-arch.c.
12213 (SUBDIR_UNITTESTS_OBS): Rename to...
12214 (SELFTESTS_OBS): ... this.
12215 (COMMON_SFILES): Remove disasm-selftests.c and
12216 gdbarch-selftests.c.
12217 * configure.ac: Don't add selftest-arch.{c,o} to
12218 CONFIG_{SRCS,OBS}.
12219 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12220 preprocessor conditions.
12221
12222 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12223
12224 * configure.ac: Don't source bfd/development.sh.
12225 * selftest.m4: Modify comment.
12226 * configure: Re-generate.
12227
12228 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12229
12230 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12231 not "true" or "false".
12232 * configure: Re-generate.
12233
12234 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12235
12236 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12237 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12238 renamed to arm_nbsd_supply_gregset.
12239 (fetch_register): Update to call arm_nbsd_supply_gregset.
12240 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12241 (arm_netbsd_nat_target::fetch_registers): Update.
12242 (fetch_elfcore_registers): Removed.
12243 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12244 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12245 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12246 not require NetBSD system headers.
12247 (arm_nbsd_regset): New struct.
12248 (arm_nbsd_iterate_over_regset_sections): New function.
12249 (arm_netbsd_init_abi_common): Updated to call
12250 set_gdbarch_iterate_over_regset_sections.
12251 * arm-nbsd-tdep.h: New file.
12252
12253 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12254
12255 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12256 recursion.
12257
12258 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12259
12260 * configure: Re-generate.
12261
12262 2020-03-11 Tom Tromey <tromey@adacore.com>
12263
12264 * ada-typeprint.c (print_choices): Fix comment.
12265
12266 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12267
12268 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12269 previous item in the list, when the list has no items.
12270
12271 2020-03-11 Tom de Vries <tdevries@suse.de>
12272
12273 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12274 PROP_LOCLIST handling code.
12275
12276 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12277
12278 * buildsym-legacy.c (record_line): Pass extra parameter to
12279 record_line.
12280 * buildsym.c (buildsym_compunit::record_line): Take an extra
12281 parameter, reduce duplication in the line table, and record the
12282 is_stmt flag in the line table.
12283 * buildsym.h (buildsym_compunit::record_line): Add extra
12284 parameter.
12285 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12286 non-statement lines.
12287 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12288 this to the symtab builder.
12289 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12290 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12291 through to dwarf_record_line_1.
12292 * infrun.c (process_event_stop_test): When stepping, don't stop at
12293 a non-statement instruction, and only refresh the step info when
12294 we land in the middle of a line's range. Also add an extra
12295 comment.
12296 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12297 field.
12298 * record-btrace.c (btrace_find_line_range): Only record lines
12299 marked as is-statement.
12300 * stack.c (frame_show_address): Show the frame address if we are
12301 in a non-statement sal.
12302 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12303 (maintenance_print_one_line_table): Print a header for the is_stmt
12304 column, and include is_stmt information in the output.
12305 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12306 preference to non-statements.
12307 (find_pcs_for_symtab_line): Prefer is-statement entries.
12308 (find_line_common): Likewise.
12309 * symtab.h (struct linetable_entry): Add is_stmt field.
12310 (struct symtab_and_line): Likewise.
12311 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12312 arranging the line table.
12313
12314 2020-03-07 Tom de Vries <tdevries@suse.de>
12315
12316 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12317 DIE.
12318
12319 2020-03-07 Tom Tromey <tom@tromey.com>
12320
12321 * valops.c (value_literal_complex): Remove obsolete comment.
12322 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12323 comment.
12324
12325 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12326
12327 * infrun.h: Forward-declare thread_info.
12328 (set_step_info): Add thread_info parameter, add doc.
12329 * infrun.c (set_step_info): Add thread_info parameter, move doc
12330 to header.
12331 * infrun.c (process_event_stop_test): Pass thread to
12332 set_step_info call.
12333 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12334 set_step_info.
12335 (prepare_one_step): Add thread_info parameter, pass it to
12336 set_step_frame and prepare_one_step (recursive) call.
12337 (step_1): Pass thread to prepare_one_step call.
12338 (step_command_fsm::should_stop): Pass thread to
12339 prepare_one_step.
12340 (until_next_fsm): Pass thread to set_step_frame call.
12341 (finish_command): Pass thread to set_step_info call.
12342
12343 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12344
12345 * windows-tdep.c (windows_solib_create_inferior_hook):
12346 Check if inferior is running.
12347
12348 2020-03-06 Tom de Vries <tdevries@suse.de>
12349
12350 * NEWS: Fix "the the".
12351 * ctfread.c: Same.
12352
12353 2020-03-06 Tom de Vries <tdevries@suse.de>
12354
12355 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12356
12357 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12358
12359 * .dir-locals.el: Add a comment referencing the other copies of
12360 this file.
12361
12362 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12363
12364 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12365 psargs.
12366
12367 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12368
12369 * .gitattributes: New file.
12370
12371 2020-03-04 Tom Tromey <tom@tromey.com>
12372
12373 * symmisc.c (print_symbol_bcache_statistics)
12374 (print_objfile_statistics): Update.
12375 * symfile.c (allocate_symtab): Use intern.
12376 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12377 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12378 macro_cache>: Remove.
12379 <string_cache>: New member.
12380 (struct objfile) <intern>: New methods.
12381 * elfread.c (elf_symtab_read): Use intern.
12382 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12383 (dwarf2_compute_name, dwarf2_physname)
12384 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12385 names.
12386 (guess_partial_die_structure_name): Update.
12387 (partial_die_info::fixup): Intern name.
12388 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12389 name.
12390 (dwarf2_name): Intern name. Update.
12391 * buildsym.c (buildsym_compunit::get_macro_table): Use
12392 string_cache.
12393
12394 2020-03-04 Tom Tromey <tom@tromey.com>
12395
12396 * jit.c (bfd_open_from_target_memory): Make "target" const.
12397 * corefile.c (gnutarget): Now const.
12398 * gdbcore.h (gnutarget): Now const.
12399
12400 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12401
12402 * NEWS: Mention support for WOW64 processes.
12403 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12404 (amd64_windows_segment_register_p): Remove static.
12405 (_initialize_amd64_windows_nat): Update.
12406 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12407 * i386-windows-nat.c (context_offset): Update.
12408 (i386_mappings): Rename and remove static.
12409 (i386_windows_segment_register_p): Remove static.
12410 (_initialize_i386_windows_nat): Update.
12411 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12412 (STATUS_WX86_SINGLE_STEP): New macro.
12413 (EnumProcessModulesEx): New macro.
12414 (Wow64SuspendThread): New macro.
12415 (Wow64GetThreadContext): New macro.
12416 (Wow64SetThreadContext): New macro.
12417 (Wow64GetThreadSelectorEntry): New macro.
12418 (windows_set_context_register_offsets): Add static.
12419 (windows_set_segment_register_p): Likewise.
12420 (windows_add_thread): Adapt for WOW64 processes.
12421 (windows_fetch_one_register): Likewise.
12422 (windows_nat_target::fetch_registers): Likewise.
12423 (windows_store_one_register): Likewise.
12424 (display_selector): Likewise.
12425 (display_selectors): Likewise.
12426 (handle_exception): Likewise.
12427 (windows_continue): Likewise.
12428 (windows_nat_target::resume): Likewise.
12429 (windows_add_all_dlls): Likewise.
12430 (do_initial_windows_stuff): Likewise.
12431 (windows_nat_target::attach): Likewise.
12432 (windows_get_exec_module_filename): Likewise.
12433 (windows_nat_target::create_inferior): Likewise.
12434 (windows_xfer_siginfo): Likewise.
12435 (_initialize_loadable): Initialize Wow64SuspendThread,
12436 Wow64GetThreadContext, Wow64SetThreadContext,
12437 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12438 * windows-nat.h (windows_set_context_register_offsets):
12439 Remove declaration.
12440 (windows_set_segment_register_p): Likewise.
12441 (i386_windows_segment_register_p): Add declaration.
12442 (amd64_windows_segment_register_p): Likewise.
12443
12444 2020-03-04 Luis Machado <luis.machado@linaro.org>
12445
12446 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12447 in "info registers" for AArch64/ARM.
12448
12449 The change caused "info registers" to not print GPR's.
12450
12451 gdb/ChangeLog:
12452
12453 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12454
12455 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12456 when reg->group is empty and reggroup is not.
12457
12458 2020-03-03 Tom Tromey <tromey@adacore.com>
12459
12460 * dwarf2/frame.c (struct dwarf2_frame_cache)
12461 <checked_tailcall_bottom, entry_cfa_sp_offset,
12462 entry_cfa_sp_offset_p>: Remove members.
12463 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12464 (dwarf2_frame_prev_register): Don't call
12465 dwarf2_tailcall_sniffer_first.
12466 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12467 * frame-unwind.c (add_unwinder): New fuction.
12468 (frame_unwind_init): Use it. Add tailcall unwinder.
12469
12470 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12471 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12472
12473 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12474 value should be printed as true.
12475
12476 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12477
12478 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12479 (windows_init_abi): Set and use windows_so_ops.
12480
12481 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12482
12483 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12484 when verifying if dealing with a convenience variable.
12485
12486 2020-03-03 Luis Machado <luis.machado@linaro.org>
12487
12488 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12489
12490 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12491
12492 * infrun.c (gdbarch_supports_displaced_stepping): New.
12493 (use_displaced_stepping): Break up conditions in smaller pieces.
12494 Use gdbarch_supports_displaced_stepping.
12495 (displaced_step_prepare_throw): Use
12496 gdbarch_supports_displaced_stepping.
12497
12498 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12499
12500 * NEWS: Mention new behaviour of the history filename.
12501 * top.c (write_history_p): Add comment.
12502 (show_write_history_p): Add header comment, give a different
12503 message when history writing is on, but the history filename is
12504 empty.
12505 (history_filename): Add comment.
12506 (history_filename_empty): New function.
12507 (show_history_filename): Add header comment, give a different
12508 message when the filename is empty.
12509 (init_history): Compare history_filename against nullptr, and only
12510 read history if the filename is not empty.
12511 (set_history_filename): Add header comment, and only make
12512 non-empty filenames absolute.
12513 (init_main): Make the filename argument to 'set history filename'
12514 optional.
12515
12516 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12517
12518 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12519 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12520 (fetch_fp_register): Update.
12521 (fetch_fp_regs): Update.
12522 (store_fp_register): Update.
12523 (store_fp_regs): Update.
12524 (arm_netbsd_nat_target::read_description): New function.
12525 (fetch_elfcore_registers): Update.
12526
12527 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12530 general_thread if the stop reply is missing a thread-id.
12531 (remote_target::process_stop_reply): Use the first non-exited
12532 thread if the target didn't pass a thread-id.
12533 * infrun.c (do_target_wait): Move call to
12534 switch_to_inferior_no_thread to ....
12535 (do_target_wait_1): ... here.
12536
12537 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12538
12539 * debuginfod-support.c: Include defs.h first.
12540
12541 2020-02-28 Tom de Vries <tdevries@suse.de>
12542
12543 * symfile.c (set_initial_language): Use default language for lookup.
12544
12545 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12546
12547 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12548 reader variable, pass `this` to read_cutu_die_from_dwo.
12549
12550 2020-02-27 Aaron Merey <amerey@redhat.com>
12551
12552 * source.c (open_source_file): Check for nullptr when computing
12553 srcpath.
12554
12555 2020-02-27 Tom Tromey <tromey@adacore.com>
12556
12557 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12558 member.
12559 (dwarf2_add_field): Don't update nfields.
12560 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12561
12562 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12563
12564 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12565 abs.
12566
12567 2020-02-26 Tom Tromey <tom@tromey.com>
12568
12569 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12570 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12571 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12572 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12573 per_cu_data.
12574
12575 2020-02-26 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2/index-write.c (psym_index_map): Change type.
12578 (add_address_entry_worker, write_one_signatured_type)
12579 (recursively_count_psymbols, recursively_write_psymbols)
12580 (class debug_names, psyms_seen_size, write_gdbindex)
12581 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12582
12583 2020-02-26 Aaron Merey <amerey@redhat.com>
12584
12585 * Makefile.in: Handle optional debuginfod support.
12586 * NEWS: Update.
12587 * README: Add --with-debuginfod summary.
12588 * config.in: Regenerate.
12589 * configure: Regenerate.
12590 * configure.ac: Handle optional debuginfod support.
12591 * debuginfod-support.c: debuginfod helper functions.
12592 * debuginfod-support.h: Ditto.
12593 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12594 summary.
12595 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12596 when a dwz file cannot be found.
12597 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12598 debuginfo file cannot be found.
12599 * source.c (open_source_file): Query debuginfod servers when a
12600 source file cannot be found.
12601 * top.c (print_gdb_configuration): Include
12602 --{with,without}-debuginfod in the output.
12603
12604 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12605
12606 * thread.c (thr_try_catch_cmd): Print thread name.
12607
12608 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12609
12610 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12611 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12612 dwarf2_fetch_die_type_sect_off): Move to...
12613 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12614 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12615 dwarf2_fetch_die_type_sect_off): ... here.
12616 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12618 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12619
12620 2020-02-26 Tom de Vries <tdevries@suse.de>
12621
12622 PR gdb/25603
12623 * symfile.c (set_initial_language): Exit-early if
12624 language_mode == language_mode_manual.
12625
12626 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12627
12628 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12629 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12630 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12631
12632 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12633
12634 * gdbtypes.c (create_array_type_with_stride): Handle negative
12635 array strides.
12636 * valarith.c (value_subscripted_rvalue): Likewise.
12637
12638 2020-02-25 Luis Machado <luis.machado@linaro.org>
12639
12640 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12641
12642 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12643
12644 * loc.h (dwarf2_get_die_type): Move to...
12645 * read.h (dwarf2_get_die_type): ... here.
12646 * read.c (dwarf2_get_die_type): Move doc to header.
12647
12648 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12649
12650 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12651 'gnulib/Makefile.in' to the list.
12652
12653 2020-02-24 Tom Tromey <tom@tromey.com>
12654
12655 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12656 Remove.
12657 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12658 XOBNEWVEC.
12659
12660 2020-02-24 Tom Tromey <tom@tromey.com>
12661
12662 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12663 New method.
12664 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12665 (dw2_do_instantiate_symtab, dw2_get_file_names)
12666 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12667
12668 2020-02-24 Tom Tromey <tom@tromey.com>
12669
12670 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12671 make_scoped_restore.
12672 (dwarf2_psymtab::read_symtab): Don't clear
12673 reading_partial_symbols.
12674
12675 2020-02-24 Tom de Vries <tdevries@suse.de>
12676
12677 PR gdb/25592
12678 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12679
12680 2020-02-24 Tom de Vries <tdevries@suse.de>
12681
12682 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12683 commands layout next/prev/regs.
12684
12685 2020-02-22 Tom Tromey <tom@tromey.com>
12686
12687 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12688 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12689
12690 2020-02-22 Tom Tromey <tom@tromey.com>
12691
12692 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12693
12694 2020-02-22 Tom Tromey <tom@tromey.com>
12695
12696 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12697 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12698 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12699 * tui/tui.c (_initialize_tui): Add usage text.
12700
12701 2020-02-22 Tom Tromey <tom@tromey.com>
12702
12703 * tui/tui-win.c (tui_set_focus_command)
12704 (tui_set_win_height_command): Use error_no_arg.
12705 (_initialize_tui_win): Update help text.
12706 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12707
12708 2020-02-22 Tom Tromey <tom@tromey.com>
12709
12710 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12711 * tui/tui-disasm.h (struct tui_disasm_window)
12712 <display_start_addr>: Declare.
12713 * tui/tui-source.h (struct tui_source_window)
12714 <display_start_addr>: Declare.
12715 * tui/tui-winsource.h (struct tui_source_window_base)
12716 <show_source_line, display_start_addr>: New methods.
12717 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12718 Rename and move to protected section.
12719 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12720 (tui_source_window_base::do_erase_source_content): Update.
12721 (tui_source_window_base::show_source_line): Now a method.
12722 (tui_source_window_base::show_source_content)
12723 (tui_source_window_base::tui_source_window_base)
12724 (tui_source_window_base::rerender)
12725 (tui_source_window_base::refill)
12726 (tui_source_window_base::do_scroll_horizontal)
12727 (tui_source_window_base::set_is_exec_point_at)
12728 (tui_source_window_base::update_breakpoint_info)
12729 (tui_source_window_base::update_exec_info): Update.
12730 * tui/tui-source.c (tui_source_window::set_contents)
12731 (tui_source_window::showing_source_p)
12732 (tui_source_window::do_scroll_vertical)
12733 (tui_source_window::location_matches_p)
12734 (tui_source_window::line_is_displayed): Update.
12735 (tui_source_window::display_start_addr): New method.
12736 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12737 (tui_disasm_window::do_scroll_vertical)
12738 (tui_disasm_window::location_matches_p): Update.
12739 (tui_disasm_window::display_start_addr): New method.
12740
12741 2020-02-22 Tom Tromey <tom@tromey.com>
12742
12743 * NEWS: Add entry for gdb.register_window_type.
12744 * tui/tui-layout.h (window_factory): New typedef.
12745 (tui_register_window): Declare.
12746 * tui/tui-layout.c (saved_tui_windows): New global.
12747 (tui_apply_current_layout): Use it.
12748 (tui_register_window): New function.
12749 * python/python.c (do_start_initialization): Call
12750 gdbpy_initialize_tui.
12751 (python_GdbMethods): Add "register_window_type" function.
12752 * python/python-internal.h (gdbpy_register_tui_window)
12753 (gdbpy_initialize_tui): Declare.
12754 * python/py-tui.c: New file.
12755 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12756
12757 2020-02-22 Tom Tromey <tom@tromey.com>
12758
12759 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12760
12761 2020-02-22 Tom Tromey <tom@tromey.com>
12762
12763 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12764 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12765 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12766 (tui_set_win_focus_to): Move from tui-win.c.
12767
12768 2020-02-22 Tom Tromey <tom@tromey.com>
12769
12770 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12771 functions.
12772 (known_window_types): New global.
12773 (tui_get_window_by_name): Reimplement.
12774 (initialize_known_windows): New function.
12775 (validate_window_name): Rewrite.
12776 (_initialize_tui_layout): Call initialize_known_windows.
12777
12778 2020-02-22 Tom Tromey <tom@tromey.com>
12779
12780 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12781 Remove constants.
12782 * tui/tui-winsource.h (struct tui_source_window_base)
12783 <tui_source_window_base>: Remove parameter.
12784 * tui/tui-winsource.c
12785 (tui_source_window_base::tui_source_window_base): Remove
12786 parameter.
12787 (tui_source_window_base::refill): Update.
12788 * tui/tui-stack.h (struct tui_locator_window)
12789 <tui_locator_window>: Update.
12790 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12791 Default the constructor.
12792 * tui/tui-regs.h (struct tui_data_item_window)
12793 <tui_data_item_window>: Default the constructor.
12794 (struct tui_data_window) <tui_data_window>: Likewise.
12795 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12796 Default the constructor.
12797 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12798 Default the constructor.
12799 <type>: Remove.
12800 (struct tui_win_info) <tui_win_info>: Default the constructor.
12801 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12802 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12803 Default the constructor.
12804
12805 2020-02-22 Tom Tromey <tom@tromey.com>
12806
12807 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12808 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12809 * tui/tui-win.c (tui_resize_all): Don't call
12810 tui_delete_invisible_windows.
12811 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12812 done.
12813 (tui_set_layout): Update.
12814 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12815 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12816 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12817
12818 2020-02-22 Tom Tromey <tom@tromey.com>
12819
12820 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12821 correctly.
12822
12823 2020-02-22 Tom Tromey <tom@tromey.com>
12824
12825 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12826
12827 2020-02-22 Tom Tromey <tom@tromey.com>
12828
12829 * tui/tui-winsource.h (struct tui_source_window_iterator)
12830 <inner_iterator>: New etytypedef.
12831 <tui_source_window_iterator>: Take "end" parameter.
12832 <tui_source_window_iterator>: Take iterator.
12833 <operator*, advance>: Update.
12834 <m_iter>: Change type.
12835 <m_end>: New field.
12836 (struct tui_source_windows) <begin, end>: Update.
12837 * tui/tui-layout.c (tui_windows): New global.
12838 (tui_apply_current_layout): Clear tui_windows.
12839 (tui_layout_window::apply): Update tui_windows.
12840 * tui/tui-data.h (tui_windows): Declare.
12841 (all_tui_windows): Now inline function.
12842 (class tui_window_iterator, struct all_tui_windows): Remove.
12843
12844 2020-02-22 Tom Tromey <tom@tromey.com>
12845
12846 PR tui/17850:
12847 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12848 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12849 "height" argument.
12850 (class tui_layout_window) <get_sizes>: Likewise.
12851 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12852 argument.
12853 <get_sizes>: Add "height" argument.
12854 <m_vertical>: New field.
12855 * tui/tui-layout.c (tui_layout_split::clone): Update.
12856 (tui_layout_split::get_sizes): Add "height" argument.
12857 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12858 (tui_new_layout_command): Parse "-horizontal".
12859 (_initialize_tui_layout): Update help string.
12860 (tui_layout_split::specification): Add "-horizontal" when needed.
12861 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12862 argument.
12863 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12864 New methods.
12865
12866 2020-02-22 Tom Tromey <tom@tromey.com>
12867
12868 * tui/tui-layout.h (enum tui_adjust_result): New.
12869 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12870 (class tui_layout_window) <adjust_size>: Return
12871 tui_adjust_result. Rewrite.
12872 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12873 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12874
12875 2020-02-22 Tom Tromey <tom@tromey.com>
12876
12877 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12878 parameter and return types.
12879 (class tui_layout_base) <specification>: Add "depth".
12880 (class tui_layout_window) <specification>: Add "depth".
12881 (class tui_layout_split) <specification>: Add "depth".
12882 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12883 and return types.
12884 (tui_new_layout_command): Parse sub-layouts.
12885 (_initialize_tui_layout): Update help string.
12886 (tui_layout_window::specification): Add "depth".
12887 (add_layout_command): Update.
12888
12889 2020-02-22 Tom Tromey <tom@tromey.com>
12890
12891 * NEWS: Add "tui new-layout" item.
12892 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12893 Add new-layout command to help text.
12894 (validate_window_name): New function.
12895 (tui_new_layout_command): New function.
12896 (_initialize_tui_layout): Register "new-layout".
12897 (tui_layout_window::specification): New method.
12898 (tui_layout_window::specification): New method.
12899 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12900 method.
12901 (class tui_layout_window) <specification>: New method.
12902 (class tui_layout_split) <specification>: New method.
12903
12904 2020-02-22 Tom Tromey <tom@tromey.com>
12905
12906 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12907 * tui/tui-win.c (window_name_completer): Update comment.
12908 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12909 Declare method.
12910 (class tui_layout_window) <replace_window>: Likewise.
12911 (class tui_layout_split) <replace_window>: Likewise.
12912 (tui_set_layout): Don't declare.
12913 (tui_set_initial_layout): Declare function.
12914 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12915 (asm_regs_layout): New globals.
12916 (tui_current_layout, show_layout): Remove.
12917 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12918 (find_layout, tui_apply_layout): New function.
12919 (layout_completer): Remove.
12920 (tui_next_layout): Reimplement.
12921 (tui_next_layout_command): New function.
12922 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12923 (tui_regs_layout): Reimplement.
12924 (tui_regs_layout_command): New function.
12925 (extract_display_start_addr): Rewrite.
12926 (next_layout, prev_layout): Remove.
12927 (tui_layout_window::replace_window): New method.
12928 (tui_layout_split::replace_window): New method.
12929 (destroy_layout): New function.
12930 (layout_list): New global.
12931 (add_layout_command): New function.
12932 (initialize_layouts): Update.
12933 (tui_layout_command): New function.
12934 (_initialize_tui_layout): Install "layout" commands.
12935 * tui/tui-data.h (enum tui_layout_type): Remove.
12936 (tui_current_layout): Don't declare.
12937
12938 2020-02-22 Tom Tromey <tom@tromey.com>
12939
12940 * tui/tui-regs.c (tui_reg_layout): Remove.
12941 (tui_reg_command): Use tui_regs_layout.
12942 * tui/tui-layout.h (tui_reg_command): Declare.
12943 * tui/tui-layout.c (tui_reg_command): New function.
12944
12945 2020-02-22 Tom Tromey <tom@tromey.com>
12946
12947 * tui/tui.c (tui_rl_delete_other_windows): Call
12948 tui_remove_some_windows.
12949 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12950 Declare method.
12951 (class tui_layout_window) <remove_windows>: New method.
12952 (class tui_layout_split) <remove_windows>: Declare.
12953 (tui_remove_some_windows): Declare.
12954 * tui/tui-layout.c (tui_remove_some_windows): New function.
12955 (tui_layout_split::remove_windows): New method.
12956
12957 2020-02-22 Tom Tromey <tom@tromey.com>
12958
12959 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12960 * tui/tui-layout.h (tui_next_layout): Declare.
12961 * tui/tui-layout.c (tui_next_layout): New function.
12962
12963 2020-02-22 Tom Tromey <tom@tromey.com>
12964
12965 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12966 correct coordinates.
12967
12968 2020-02-22 Tom Tromey <tom@tromey.com>
12969
12970 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12971 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12972 DATA_WIN case.
12973
12974 2020-02-22 Tom Tromey <tom@tromey.com>
12975
12976 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12977 TUI_DISASM_WIN, not tui_win_list.
12978
12979 2020-02-22 Tom Tromey <tom@tromey.com>
12980
12981 * valprint.c (generic_val_print_enum_1)
12982 (val_print_type_code_flags): Style member names.
12983 * rust-lang.c (val_print_struct, rust_print_enum)
12984 (rust_print_struct_def, rust_internal_print_type): Style member
12985 names.
12986 * p-valprint.c (pascal_object_print_value_fields): Style member
12987 names. Only call fprintf_symbol_filtered for static members.
12988 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12989 * f-valprint.c (f_val_print): Style member names.
12990 * f-typeprint.c (f_type_print_base): Style member names.
12991 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12992 call fprintf_symbol_filtered for static members.
12993 (cp_print_class_member): Style member names.
12994 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12995 member names.
12996 * ada-valprint.c (ada_print_scalar): Style enum names.
12997 (ada_val_print_enum): Likewise.
12998 * ada-typeprint.c (print_enum_type): Style enum names.
12999
13000 2020-02-21 Tom Tromey <tom@tromey.com>
13001
13002 * psympriv.h (struct partial_symtab): Update comment.
13003
13004 2020-02-21 Tom Tromey <tromey@adacore.com>
13005
13006 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
13007 type is CORE_ADDR.
13008
13009 2020-02-21 Tom de Vries <tdevries@suse.de>
13010
13011 PR gdb/25534
13012 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
13013 if dependencies[i]->user != NULL.
13014
13015 2020-02-21 Ali Tamur <tamur@google.com>
13016
13017 * dwarf2/read.c (dwarf2_name): Add null check.
13018
13019 2020-02-20 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
13022 ">=", in binary search.
13023 (dwarf2_find_containing_comp_unit): New overload.
13024 (run_test): New self-test.
13025 (_initialize_dwarf2_read): Register new test.
13026
13027 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
13028
13029 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
13030 * riscv-tdep.h: Likewise.
13031 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
13032 rv32-only CSR.
13033 * features/riscv/64bit-csr.xml: Regenerated.
13034
13035 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
13036 Tom Tromey <tom@tromey.com>
13037
13038 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13039 of 'fputc_unfiltered'.
13040 (putchar_unfiltered): Call 'fputc_unfiltered'.
13041 (fputc_unfiltered): Call 'fputs_unfiltered'.
13042
13043 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13044
13045 * config.in: Regenerate.
13046 * configure: Regenerate.
13047 * configure.ac: Add --with-python-libdir option.
13048 * main.c: Use WITH_PYTHON_LIBDIR.
13049
13050 2020-02-19 Tom Tromey <tom@tromey.com>
13051
13052 * symtab.c (general_symbol_info::compute_and_set_names): Use
13053 obstack_strndup. Simplify call to symbol_set_demangled_name.
13054
13055 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13056
13057 * dwarf2/read.c (allocate_signatured_type_table,
13058 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13059 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13060 Remove objfile parameter, update all callers.
13061
13062 2020-02-19 Doug Evans <dje@google.com>
13063
13064 PR rust/25535
13065 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13066 rust_enum_variant calculation.
13067
13068 2020-02-19 Tom Tromey <tromey@adacore.com>
13069
13070 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13071
13072 2020-02-19 Tom Tromey <tromey@adacore.com>
13073
13074 * ada-lang.c (cache_symbol): Use obstack_strdup.
13075
13076 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13077
13078 * configure: Regenerate.
13079
13080 2020-02-19 Tom Tromey <tromey@adacore.com>
13081
13082 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13083 NULL check.
13084
13085 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13086
13087 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13088
13089 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13090
13091 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13092 if GDBSERVER is not defined.
13093 (riscv_tdesc_cache): Likewise, also store const target_desc.
13094 (STATIC_IN_GDB): Define.
13095 (riscv_create_target_description): Update declaration with
13096 STATIC_IN_GDB.
13097 (riscv_lookup_target_description): New function, only define if
13098 GDBSERVER is not defined.
13099 * arch/riscv.h (riscv_create_target_description): Declare only
13100 when GDBSERVER is defined.
13101 (riscv_lookup_target_description): New declaration when GDBSERVER
13102 is not defined.
13103 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13104 (riscv_linux_read_features): ...this, and return
13105 riscv_gdbarch_features instead of target_desc.
13106 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13107 (riscv_linux_read_description): Rename to...
13108 (riscv_linux_read_features): ...this.
13109 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13110 Update to use riscv_gdbarch_features and
13111 riscv_lookup_target_description.
13112 * riscv-tdep.c (riscv_find_default_target_description): Use
13113 riscv_lookup_target_description instead of
13114 riscv_create_target_description.
13115
13116 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13117
13118 * valprint.c (generic_val_print_enum_1): When printing a flag
13119 enum with value 0 and there is no enumerator with value 0, print
13120 just "0" instead of "(unknown: 0x0)".
13121
13122 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13123
13124 * valprint.c (generic_val_print_enum_1): Print unknown part of
13125 flag enum in hex.
13126
13127 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13128
13129 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13130 flag enums to contain duplicate enumerators.
13131 * valprint.c (generic_val_print_enum_1): Update comment.
13132
13133 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13134
13135 * dwarf2/read.c: Include "count-one-bits.h".
13136 (update_enumeration_type_from_children): If an enumerator has
13137 multiple bits set, don't treat the enumeration as a "flag enum".
13138 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13139 of flag enums have 0 or 1 bit set.
13140
13141 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13142
13143 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13144 conversion.
13145 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13146 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13147 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13148 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13149 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13150
13151 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13152
13153 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13154
13155 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13156
13157 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13158 displaced_step_closure_up.
13159 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13160 (struct displaced_step_closure_up):
13161 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13162 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13163 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13164 Likewise.
13165 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13166 * gdbarch.c, gdbarch.h: Re-generate.
13167 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13168 displaced_step_closure_up.
13169 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13170 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13171 * infrun.h (displaced_step_closure_up): New type alias.
13172 (struct displaced_step_inferior_state) <step_closure>: Change
13173 type to displaced_step_closure_up.
13174 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13175 displaced_step_closure_up.
13176 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13177
13178 2020-02-14 Tom Tromey <tom@tromey.com>
13179
13180 * minidebug.c (gnu_debug_key): New global.
13181 (find_separate_debug_file_in_section): Use it.
13182
13183 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13184
13185 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13186 std::unique_ptr.
13187 * gdbarch.c: Re-generate.
13188 * gdbarch.h: Re-generate.
13189 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13190 change.
13191 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13192 type to std::unique_ptr.
13193 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13194 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13195 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13196 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13197 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13198 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13199 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13200 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13201 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13202
13203 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13204
13205 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13206 std::unique_ptr.
13207 (displaced_step_clear): Rename to...
13208 (displaced_step_reset): ... this. Just call displaced->reset ().
13209 (displaced_step_clear_cleanup): Rename to...
13210 (displaced_step_reset_cleanup): ... this.
13211 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13212 (displaced_step_fixup): Likewise.
13213 (resume_1): Likewise.
13214 (handle_inferior_event): Restore child's memory before calling
13215 displaced_step_fixup on the parent.
13216 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13217 to std::unique_ptr.
13218 <step_closure>: Change type to std::unique_ptr.
13219
13220 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13221
13222 * arm-tdep.c: Include count-one-bits.h.
13223 (cleanup_block_store_pc): Use count_one_bits.
13224 (cleanup_block_load_pc): Use count_one_bits.
13225 (arm_copy_block_xfer): Use count_one_bits.
13226 (thumb2_copy_block_xfer): Use count_one_bits.
13227 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13228 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13229 (thumb_get_next_pcs_raw): Use count_one_bits.
13230 (arm_get_next_pcs_raw): Use count_one_bits_l.
13231 * arch/arm.c (bitcount): Remove.
13232 * arch/arm.h (bitcount): Remove.
13233
13234 2020-02-14 Tom Tromey <tromey@adacore.com>
13235
13236 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13237 Update.
13238 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13239 * dwarf2/loc.c (call_site_find_chain_1): Return
13240 unique_xmalloc_ptr.
13241 (call_site_find_chain): Likewise.
13242
13243 2020-02-14 Richard Biener <rguenther@suse.de>
13244
13245 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13246 on expression with division operators.
13247
13248 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13249
13250 * MAINTAINERS (Write After Approval): Adding myself.
13251
13252 2020-02-12 Tom Tromey <tom@tromey.com>
13253
13254 * event-loop.c (event_data, gdb_event, event_handler_func):
13255 Remove.
13256
13257 2020-02-12 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13260 (dwarf2_frame_objfile_data): Add comment.
13261 (find_comp_unit, set_comp_unit): New functions.
13262 (dwarf2_frame_find_fde): Use find_comp_unit.
13263 (dwarf2_build_frame_info): Use set_comp_unit.
13264
13265 2020-02-12 Tom Tromey <tom@tromey.com>
13266
13267 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13268 (comp_unit): Don't initialize objfile.
13269 (execute_cfa_program): Add text_offset parameter.
13270 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13271 (dwarf2_frame_cache): Update.
13272 (dwarf2_build_frame_info): Don't set "objfile" member.
13273
13274 2020-02-12 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13277 (decode_frame_entry): Likewise.
13278 (dwarf2_build_frame_info): Update.
13279
13280 2020-02-12 Tom Tromey <tom@tromey.com>
13281
13282 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13283 (decode_frame_entry_1): Use the comp_unit obstack.
13284
13285 2020-02-12 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/frame.c (struct comp_unit): Add initializers and
13288 constructor.
13289 (dwarf2_frame_objfile_data): Store a comp_unit.
13290 (dwarf2_frame_find_fde): Update.
13291 (dwarf2_build_frame_info): Use "new".
13292
13293 2020-02-12 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13296 (dwarf2_fde_table): Typedef for std::vector.
13297 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13298 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13299 (decode_frame_entry): Update.
13300 (dwarf2_build_frame_info): Use "new".
13301
13302 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13303
13304 * arm-tdep.c (arm_gdbarch_init): Update.
13305 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13306 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13307 have_neon, is_m>: Change to bool.
13308
13309 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13310
13311 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13312
13313 2020-02-12 Tom Tromey <tom@tromey.com>
13314
13315 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13316
13317 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13318
13319 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13320 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13321
13322 2020-02-11 Tom Tromey <tom@tromey.com>
13323
13324 * psymtab.h: Update comment.
13325
13326 2020-02-11 Tom Tromey <tom@tromey.com>
13327
13328 * gdb_obstack.h (struct auto_obstack): Use
13329 DISABLE_COPY_AND_ASSIGN.
13330
13331 2020-02-11 Tom Tromey <tom@tromey.com>
13332
13333 * dwarf2/frame.h (struct objfile): Don't forward declare.
13334
13335 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13336
13337 * cris-tdep.c (cris_supply_gregset): Change signature to match
13338 what struct regset expects.
13339 (cris_regset): New struct.
13340 (fetch_core_registers): Remove.
13341 (cris_iterate_over_regset_sections): New function.
13342 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13343 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13344
13345 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13346
13347 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13348 registers.
13349
13350 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13351
13352 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13353
13354 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13355
13356 * configure: Re-generate.
13357
13358 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13359
13360 * configure: Re-generate.
13361
13362 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13363
13364 * acinclude: Update warning.m4 path.
13365 * warning.m4: Move to gdbsupport.
13366
13367 2020-02-11 Tom Tromey <tromey@adacore.com>
13368
13369 * remote.c (remote_console_output): Update.
13370 * printcmd.c (printf_command): Update.
13371 * event-loop.c (gdb_wait_for_event): Update.
13372 * linux-nat.c (sigchld_handler): Update.
13373 * remote-sim.c (gdb_os_write_stdout): Update.
13374 (gdb_os_flush_stdout): Update.
13375 (gdb_os_flush_stderr): Update.
13376 (gdb_os_write_stderr): Update.
13377 * exceptions.c (print_exception): Update.
13378 * remote-fileio.c (remote_fileio_func_read): Update.
13379 (remote_fileio_func_write): Update.
13380 * tui/tui.c (tui_enable): Update.
13381 * tui/tui-interp.c (tui_interp::init): Update.
13382 * utils.c (init_page_info): Update.
13383 (putchar_unfiltered, fputc_unfiltered): Update.
13384 (gdb_flush): Update.
13385 (emit_style_escape): Update.
13386 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13387 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13388 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13389 (stderr_file::write): Update.
13390 (stderr_file::puts): Update.
13391 * ui-file.h (ui_file_isatty, ui_file_write)
13392 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13393 (ui_file_puts): Don't declare.
13394
13395 2020-02-10 Tom de Vries <tdevries@suse.de>
13396
13397 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13398 sentinel to char *.
13399
13400 2020-02-09 Tom de Vries <tdevries@suse.de>
13401
13402 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13403 filename if it matches "<artificial>".
13404
13405 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13406
13407 * windows-tdep.c (struct enum_value_name): New struct.
13408 (create_enum): New function.
13409 (windows_get_siginfo_type): Create and use enum types.
13410
13411 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13412
13413 * NEWS: Mention $_siginfo support for Windows.
13414 * windows-nat.c (handle_exception): Set siginfo_er.
13415 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13416 (windows_xfer_siginfo): New function.
13417 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13418 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13419 (init_windows_gdbarch_data): New function.
13420 (get_windows_gdbarch_data): New function.
13421 (windows_get_siginfo_type): New function.
13422 (windows_init_abi): Register windows_get_siginfo_type.
13423 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13424
13425 2020-02-08 Tom Tromey <tom@tromey.com>
13426
13427 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13428 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13429 <keep>: Declare method.
13430 <m_keep>: Remove member.
13431 <~cutu_reader>: Remove.
13432 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13433 (cutu_reader::cutu_reader): Update.
13434 (cutu_reader::keep): Rename from ~cutu_reader.
13435 (process_psymtab_comp_unit, build_type_psymtabs_1)
13436 (process_skeletonless_type_unit, load_partial_comp_unit)
13437 (load_full_comp_unit, dwarf2_read_addr_index)
13438 (read_signatured_type): Update.
13439
13440 2020-02-08 Tom Tromey <tom@tromey.com>
13441
13442 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13443 "want_partial_unit" parameter.
13444 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13445 Inline check for DW_TAG_partial_unit.
13446 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13447
13448 2020-02-08 Tom Tromey <tom@tromey.com>
13449
13450 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13451 read.c.
13452 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13453 read.c.
13454
13455 2020-02-08 Tom Tromey <tom@tromey.com>
13456
13457 * dwarf2/read.c (read_address): Move to comp-unit.c.
13458 (dwarf2_rnglists_process, dwarf2_ranges_process)
13459 (read_attribute_value, dwarf_decode_lines_1)
13460 (var_decode_location, decode_locdesc): Update.
13461 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13462 read.c. Remove "cu" parameter.
13463 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13464 method.
13465
13466 2020-02-08 Tom Tromey <tom@tromey.com>
13467
13468 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13469 (read_indirect_line_string): Update.
13470 * dwarf2/comp-unit.c (read_offset): Remove.
13471 (read_comp_unit_head): Update.
13472 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13473 method.
13474 (read_offset): Don't declare.
13475
13476 2020-02-08 Tom Tromey <tom@tromey.com>
13477
13478 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13479 * dwarf2/read.c (struct comp_unit_head): Move to
13480 dwarf2/comp-unit.h.
13481 (enum class rcuh_kind): Move to comp-unit.h.
13482 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13483 (read_comp_unit_head, error_check_comp_unit_head)
13484 (read_and_check_comp_unit_head): Move to comp-unit.c.
13485 (read_offset, dwarf_unit_type_name): Likewise.
13486 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13487 (cutu_reader::cutu_reader, read_call_site_scope)
13488 (find_partial_die, follow_die_offset): Update.
13489 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13490
13491 2020-02-08 Tom Tromey <tom@tromey.com>
13492
13493 * dwarf2/read.c (read_offset_1): Move to leb.c.
13494 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13495 (dwarf_decode_macro_bytes): Update.
13496 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13497 * dwarf2/leb.h (read_offset): Declare.
13498
13499 2020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/read.c (dwarf2_section_size): Remove.
13502 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13503 Update.
13504 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13505
13506 2020-02-08 Tom Tromey <tom@tromey.com>
13507
13508 * dwarf2/read.c (read_initial_length): Move to leb.c.
13509 * dwarf2/leb.h (read_initial_length): Declare.
13510 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13511 handle_nonstd parameter.
13512 * dwarf2/frame.c (read_initial_length): Remove.
13513 (decode_frame_entry_1): Update.
13514
13515 2020-02-08 Tom Tromey <tom@tromey.com>
13516
13517 * dwarf2/loc.c (dwarf2_find_location_expression)
13518 (dwarf_evaluate_loc_desc::get_tls_address)
13519 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13520 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13521 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13522 (dwarf2_compile_property_to_c)
13523 (dwarf2_loc_desc_get_symbol_read_needs)
13524 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13525 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13526 (loclist_describe_location, loclist_tracepoint_var_ref)
13527 (loclist_generate_c_location): Update.
13528 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13529 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13530 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13531 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13532 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13533 (dwarf2_per_cu_data::addr_size)
13534 (dwarf2_per_cu_data::ref_addr_size)
13535 (dwarf2_per_cu_data::text_offset)
13536 (dwarf2_per_cu_data::addr_type): Now methods.
13537 (per_cu_header_read_in): Make per_cu "const".
13538 (dwarf2_version): Remove.
13539 (dwarf2_per_cu_data::int_type): Now a method.
13540 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13541 (set_die_type, read_array_type, read_subrange_index_type)
13542 (read_tag_string_type, read_subrange_type): Update.
13543 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13544 offset_size, ref_addr_size, text_offset, addr_type, version,
13545 objfile, int_type, addr_sized_int_type>: Declare methods.
13546
13547 2020-02-08 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13550 Move earlier.
13551
13552 2020-02-08 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2/read.h (dwarf_line_debug): Declare.
13555 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13556 * dwarf2/read.c: Move line_header code to new files.
13557 (dwarf_line_debug): No longer static.
13558 * dwarf2/line-header.c: New file.
13559 * dwarf2/line-header.h: New file.
13560
13561 2020-02-08 Tom Tromey <tom@tromey.com>
13562
13563 * dwarf2/read.c (struct line_header) <file_full_name,
13564 file_file_name>: Return unique_xmalloc_ptr.
13565 (line_header::file_file_name): Update.
13566 (line_header::file_full_name): Update.
13567 (dw2_get_file_names_reader): Update.
13568 (macro_start_file): Update.
13569
13570 2020-02-08 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2/read.c (struct line_header) <file_full_name,
13573 file_file_name>: Declare methods.
13574 (dw2_get_file_names_reader): Update.
13575 (file_file_name): Now a method.
13576 (file_full_name): Likewise.
13577 (macro_start_file): Update.
13578
13579 2020-02-08 Tom Tromey <tom@tromey.com>
13580
13581 * dwarf2/read.c (dwarf_always_disassemble)
13582 (show_dwarf_always_disassemble): Move to loc.c.
13583 (_initialize_dwarf2_read): Move "always-disassemble" registration
13584 to loc.c.
13585 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13586 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13587 static.
13588 (show_dwarf_always_disassemble): Move from read.c.
13589 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13590
13591 2020-02-08 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13594 (create_quick_file_names_table): Return htab_up.
13595 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13596 Update.
13597 * dwarf2/read.h (struct dwarf2_per_objfile)
13598 <quick_file_names_table>: Now htab_up.
13599
13600 2020-02-08 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13603
13604 2020-02-08 Tom Tromey <tom@tromey.com>
13605
13606 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13607 Rewrite.
13608 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13609 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13610 (abbrev_table::abbrev_table): No longer inline.
13611 (ABBREV_HASH_SIZE): Remove.
13612 (abbrev_table::m_abbrevs): Now an htab_up.
13613
13614 2020-02-08 Tom Tromey <tom@tromey.com>
13615
13616 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13617 (cutu_reader): Update.
13618 (build_type_psymtabs_1): Update.
13619 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13620 (abbrev_table::alloc_abbrev): Update.
13621 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13622 (abbrev_table::read): New static method, renamed from
13623 abbrev_table_read_table.
13624 (abbrev_table::alloc_abbrev)
13625 (abbrev_table::add_abbrev): Now private.
13626 (abbrev_table::abbrev_table): Now private.
13627 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13628
13629 2020-02-08 Tom Tromey <tom@tromey.com>
13630
13631 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13632 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13633 htab_up.
13634
13635 2020-02-08 Tom Tromey <tom@tromey.com>
13636
13637 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13638 htab_up.
13639 (lookup_dwo_unit_in_dwp): Update.
13640 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13641 on obstack.
13642
13643 2020-02-08 Tom Tromey <tom@tromey.com>
13644
13645 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13646 obstack.
13647
13648 2020-02-08 Tom Tromey <tom@tromey.com>
13649
13650 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13651 line_header_hash.
13652 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13653 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13654 Change type to htab_up.
13655
13656 2020-02-08 Tom Tromey <tom@tromey.com>
13657
13658 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13659 htab_up. Don't allocate on obstack.
13660 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13661 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13662 Change type to htab_up.
13663
13664 2020-02-08 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13667 Change type to htab_up.
13668 * dwarf2/read.c (create_signatured_type_table_from_index)
13669 (create_signatured_type_table_from_debug_names)
13670 (create_all_type_units, add_type_unit)
13671 (lookup_dwo_signatured_type, lookup_signatured_type)
13672 (process_skeletonless_type_unit): Update.
13673 (create_debug_type_hash_table, create_debug_types_hash_table):
13674 Change type of types_htab.
13675 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13676 htab_up. Don't allocate on obstack.
13677 (create_cus_hash_table): Change type of cus_htab parameter.
13678 (struct dwo_file) <cus, tus>: Now htab_up.
13679 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13680 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13681 (queue_and_load_all_dwo_tus): Update.
13682 * dwarf2/index-write.c (write_gdbindex): Update.
13683 (write_debug_names): Update.
13684
13685 2020-02-08 Tom Tromey <tom@tromey.com>
13686
13687 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13688 dwarf2/read.c. Remove "next" member. Add constructor ntad
13689 destructor.
13690 (struct dwarf2_per_objfile) <queue>: New member.
13691 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13692 dwarf2/read.h.
13693 (dwarf2_queue, dwarf2_queue_tail): Remove.
13694 (class dwarf2_queue_guard): Add parameter to constructor. Use
13695 DISABLE_COPY_AND_ASSIGN.
13696 <m_per_objfile>: New member.
13697 <~dwarf2_queue_guard>: Rewrite.
13698 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13699 Update.
13700 (~dwarf2_queue_item): New.
13701
13702 2020-02-08 Tom Tromey <tom@tromey.com>
13703
13704 * dwarf2/read.c (struct die_info) <has_children>: New member.
13705 (dw2_get_file_names_reader): Remove has_children.
13706 (dw2_get_file_names): Update.
13707 (read_cutu_die_from_dwo): Remove has_children.
13708 (cutu_reader::init_tu_and_read_dwo_dies)
13709 (cutu_reader::cutu_reader): Update.
13710 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13711 Remove has_children.
13712 (build_type_psymtabs_1, process_skeletonless_type_unit)
13713 (load_partial_comp_unit, load_full_comp_unit): Update.
13714 (create_dwo_cu_reader): Remove has_children.
13715 (create_cus_hash_table, read_die_and_children): Update.
13716 (read_full_die_1,read_full_die): Remove has_children.
13717 (read_signatured_type): Update.
13718 (class cutu_reader) <has_children>: Remove.
13719
13720 2020-02-08 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2/expr.c: Rename from dwarf2expr.c.
13723 * dwarf2/expr.h: Rename from dwarf2expr.h.
13724 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13725 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13726 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13727 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13728 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13729 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13730 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13731 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13732 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13733 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13734 * dwarf2/loc.c: Rename from dwarf2loc.c.
13735 * dwarf2/loc.h: Rename from dwarf2loc.h.
13736 * dwarf2/read.c: Rename from dwarf2read.c.
13737 * dwarf2/read.h: Rename from dwarf2read.h.
13738 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13739 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13740 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13741 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13742 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13743 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13744 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13745 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13746 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13747 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13748 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13749 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13750 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13751 Update.
13752 * Makefile.in (COMMON_SFILES): Update.
13753 (HFILES_NO_SRCDIR): Update.
13754
13755 2020-02-08 Tom Tromey <tom@tromey.com>
13756
13757 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13758 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13759
13760 2020-02-08 Tom Tromey <tom@tromey.com>
13761
13762 * dwarf2read.h (struct die_info): Don't declare.
13763
13764 2020-02-08 Tom Tromey <tom@tromey.com>
13765
13766 * dwarf2read.h (die_info_ptr): Remove typedef.
13767
13768 2020-02-08 Tom Tromey <tom@tromey.com>
13769
13770 * dwarf2read.c (read_call_site_scope)
13771 (handle_data_member_location, dwarf2_add_member_fn)
13772 (mark_common_block_symbol_computed, read_common_block)
13773 (attr_to_dynamic_prop, partial_die_info::read)
13774 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13775 (dwarf2_symbol_mark_computed, set_die_type): Update.
13776 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13777 method.
13778 (attr_form_is_block): Don't declare.
13779 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13780
13781 2020-02-08 Tom Tromey <tom@tromey.com>
13782
13783 * dwarf2read.c (dwarf2_find_base_address, )
13784 (read_call_site_scope, rust_containing_type)
13785 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13786 (handle_data_member_location, dwarf2_add_member_fn)
13787 (get_alignment, read_structure_type, process_structure_scope)
13788 (mark_common_block_symbol_computed, read_common_block)
13789 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13790 (partial_die_info::read, read_attribute_value, new_symbol)
13791 (lookup_die_type, dwarf2_get_ref_die_offset)
13792 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13793 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13794 (dwarf2_symbol_mark_computed): Update.
13795 * dwarf2/attribute.h (struct attribute) <value_as_address,
13796 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13797 methods.
13798 (value_as_address, attr_form_is_section_offset)
13799 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13800 * dwarf2/attribute.c (attribute::value_as_address)
13801 (attribute::form_is_section_offset, attribute::form_is_constant)
13802 (attribute::form_is_ref): Now methods.
13803
13804 2020-02-08 Tom Tromey <tom@tromey.com>
13805
13806 * dwarf2read.c (struct attribute, DW_STRING)
13807 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13808 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13809 (attr_form_is_block, attr_form_is_section_offset)
13810 (attr_form_is_constant, attr_form_is_ref): Move.
13811 * dwarf2/attribute.h: New file.
13812 * dwarf2/attribute.c: New file, from dwarf2read.c.
13813 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13814
13815 2020-02-08 Tom Tromey <tom@tromey.com>
13816
13817 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13818 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13819 Move.
13820 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13821 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13822 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13823 abbrev.c.
13824 * dwarf2/abbrev.h: New file.
13825 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13826 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13827
13828 2020-02-08 Tom Tromey <tom@tromey.com>
13829
13830 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13831 (dwarf2_section_size, dwarf2_get_section_info)
13832 (create_signatured_type_table_from_debug_names)
13833 (create_addrmap_from_aranges, read_debug_names_from_section)
13834 (get_gdb_index_contents_from_section, read_comp_unit_head)
13835 (error_check_comp_unit_head, read_abbrev_offset)
13836 (create_debug_type_hash_table, init_cu_die_reader)
13837 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13838 (read_comp_units_from_section, create_cus_hash_table)
13839 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13840 (create_dwp_v2_section, dwarf2_rnglists_process)
13841 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13842 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13843 (read_indirect_string_from_dwz, read_addr_index_1)
13844 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13845 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13846 (fill_in_loclist_baton): Update.
13847 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13848 get_containing_section, get_bfd_owner, get_bfd_section,
13849 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13850 (dwarf2_read_section, get_section_name, get_section_file_name)
13851 (get_containing_section, get_section_bfd_owner)
13852 (get_section_bfd_section, get_section_name, get_section_file_name)
13853 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13854 declare.
13855 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13856 (dwarf2_section_info::get_bfd_owner)
13857 (dwarf2_section_info::get_bfd_section)
13858 (dwarf2_section_info::get_name)
13859 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13860 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13861 (dwarf2_section_info::read): Now methods.
13862 * dwarf-index-write.c (class debug_names): Update.
13863
13864 2020-02-08 Tom Tromey <tom@tromey.com>
13865
13866 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13867 Move to dwarf2/section.h.
13868 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13869 (get_section_bfd_section, get_section_name)
13870 (get_section_file_name, get_section_id, get_section_flags)
13871 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13872 dwarf2/section.c.
13873 * dwarf2/section.h: New file.
13874 * dwarf2/section.c: New file, from dwarf2read.c.
13875 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13876
13877 2020-02-08 Tom Tromey <tom@tromey.com>
13878
13879 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13880 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13881 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13882 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13883 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13884 * dwarf2/leb.h: New file, from dwarf2read.c.
13885 * dwarf2/leb.c: New file, from dwarf2read.c.
13886 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13887 Remove.
13888 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13889 (COMMON_SFILES): Add dwarf2/leb.c.
13890
13891 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13892
13893 GDB 9.1 released.
13894
13895 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13896
13897 PR gdb/25190:
13898 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13899 * gdb/remote.c (remote_console_output): Update.
13900 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13901 (ui_file_puts): ...this.
13902 * gdb/ui-file.h (ui_file_puts): Add declaration.
13903 * gdb/utils.c (emit_style_escape): Update.
13904 (flush_wrap_buffer): Update.
13905 (fputs_maybe_filtered): Update.
13906 (fputs_unfiltered): Add function.
13907
13908 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13909
13910 * gdb/event-loop.c (gdb_wait_for_event): Update.
13911 * gdb/printcmd.c (printf_command): Update.
13912 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13913 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13914 (gdb_os_flush_stderr): Update.
13915 * gdb/remote.c (remote_console_output): Update.
13916 * gdb/ui-file.c (gdb_flush): Rename to...
13917 (ui_file_flush): ...this.
13918 (stderr_file::write): Update.
13919 (stderr_file::puts): Update.
13920 * gdb/ui-file.h (gdb_flush): Rename to...
13921 (ui_file_flush): ...this.
13922 * gdb/utils.c (gdb_flush): Add function.
13923 * gdb/utils.h (gdb_flush): Add declaration.
13924
13925 2020-02-07 Tom Tromey <tromey@adacore.com>
13926
13927 PR breakpoints/24915:
13928 * source.c (find_and_open_source): Do not check basenames_may_differ.
13929
13930 2020-02-07 Tom Tromey <tom@tromey.com>
13931
13932 * README: Update gdbserver documentation.
13933 * gdbserver: Move to top level.
13934 * configure.tgt (build_gdbserver): Remove.
13935 * configure.ac: Remove --enable-gdbserver.
13936 * configure: Rebuild.
13937 * Makefile.in (distclean): Don't mention gdbserver.
13938
13939 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13940
13941 * source-cache.c (source_cache::ensure): Surround
13942 get_plain_source_lines with a try/catch.
13943 (source_cache::get_line_charpos): Get rid of try/catch
13944 and only check for the return value of "ensure".
13945 * tui/tui-source.c (tui_source_window::set_contents):
13946 Simplify "nlines" calculation.
13947
13948 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13949
13950 * MAINTAINERS (Write After Approval): Add myself.
13951
13952 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13953
13954 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13955 function call.
13956
13957 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13958
13959 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13960
13961 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13962
13963 * nat/riscv-linux-tdesc.h: New file.
13964 * nat/riscv-linux-tdesc.c: New file, taking code from...
13965 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13966 ... here.
13967 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13968 NATDEPFILES.
13969
13970 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13971
13972 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13973 we don't set the fake simulator ptid to the null_ptid.
13974
13975 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13976
13977 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13978 * gdbthread.h (class thread_info) <resumed>: Likewise.
13979 * infrun.c (resume_1): Likewise.
13980 (proceed): Likewise.
13981 (infrun_thread_stop_requested): Likewise.
13982 (stop_all_threads): Likewise.
13983 (handle_inferior_event): Likewise.
13984 (restart_threads): Likewise.
13985 (finish_step_over): Likewise.
13986 (keep_going_stepped_thread): Likewise.
13987 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13988 (linux_handle_extended_wait): Likewise.
13989 * record-btrace.c (get_thread_current_frame_id): Likewise.
13990 * record-full.c (record_full_wait_1): Likewise.
13991 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13992 * target.c (target_resume): Likewise.
13993 * thread.c (set_running_thread): Likewise.
13994
13995 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13996
13997 * f-valprint.c (f77_print_array_1): Changed datatype of index
13998 variable to LONGEST from int to enable it to contain bound
13999 values correctly.
14000
14001 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
14002
14003 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
14004 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
14005 offsets according to FLEN determined.
14006 (riscv_linux_nat_target::read_description): Determine FLEN
14007 dynamically.
14008 (riscv_linux_nat_target::fetch_registers): Size regset buffer
14009 according to FLEN determined.
14010 (riscv_linux_nat_target::store_registers): Likewise.
14011
14012 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14013
14014 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14015 when reg->group is empty and reggroup is not.
14016
14017 2020-01-31 Tom Tromey <tromey@adacore.com>
14018
14019 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
14020 Call beneath target's mourn_inferior after unpushing.
14021
14022 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14023
14024 PR tui/9765
14025 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
14026 have enough lines to fill the screen, still return the lowest
14027 address we found.
14028
14029 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
14030
14031 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
14032 '-', '<', and '>' commands.
14033
14034 2020-01-29 Pedro Alves <palves@redhat.com>
14035 Sergio Durigan Junior <sergiodj@redhat.com>
14036
14037 * infcmd.c (construct_inferior_arguments): Assert that
14038 'argc' is greater than 0.
14039
14040 2020-01-29 Luis Machado <luis.machado@linaro.org>
14041
14042 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14043 (BRK_INSN_MASK): Define to 0xd4200000.
14044 (aarch64_program_breakpoint_here_p): New function.
14045 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14046 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14047 breakpoint.c.
14048 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14049 breakpoint.h
14050 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14051 call gdbarch_program_breakpoint_here_p.
14052 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14053 default_program_breakpoint_here_p, changed return type to bool and
14054 simplified.
14055 * breakpoint.h (program_breakpoint_here): Moved prototype to
14056 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14057 return type to bool.
14058 * gdbarch.c: Regenerate.
14059 * gdbarch.h: Regenerate.
14060 * gdbarch.sh (program_breakpoint_here_p): New method.
14061 * infrun.c (handle_signal_stop): Call
14062 gdbarch_program_breakpoint_here_p.
14063
14064 2020-01-26 Tom Tromey <tom@tromey.com>
14065
14066 * ctfread.c (struct ctf_fp_info): Reindent.
14067 (_initialize_ctfread): Remove.
14068
14069 2020-01-26 Tom Tromey <tom@tromey.com>
14070
14071 * psymtab.c (partial_map_expand_apply)
14072 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14073 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14074 (psym_print_stats, psym_expand_symtabs_for_function)
14075 (psym_map_symbol_filenames, psym_map_matching_symbols)
14076 (psym_expand_symtabs_matching)
14077 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14078 (maintenance_check_psymtabs): Use new methods.
14079 * psympriv.h (struct partial_symtab) <readin_p,
14080 get_compunit_symtab>: New methods.
14081 <readin, compunit_symtab>: Remove members.
14082 (struct standard_psymtab): New.
14083 (struct legacy_psymtab): Derive from standard_psymtab.
14084 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14085 standard_psymtab.
14086 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14087
14088 2020-01-26 Tom Tromey <tom@tromey.com>
14089
14090 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14091 read_dependencies. Add assert.
14092 * psymtab.c (partial_symtab::read_dependencies): New method.
14093 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14094 method.
14095 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14096 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14097 read_dependencies.
14098 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14099 Add assert.
14100
14101 2020-01-26 Tom Tromey <tom@tromey.com>
14102
14103 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14104 Call expand_psymtab.
14105 (xcoff_read_symtab): Call expand_psymtab.
14106 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14107 legacy_expand_psymtab.
14108 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14109 method.
14110 (struct legacy_psymtab) <expand_psymtab>: Implement.
14111 <legacy_expand_psymtab>: New member.
14112 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14113 (parse_partial_symbols): Set legacy_expand_psymtab.
14114 (psymtab_to_symtab_1): Change argument order. Call
14115 expand_psymtab.
14116 (new_psymtab): Set legacy_expand_psymtab.
14117 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14118 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14119 expand_psymtab.
14120 (dwarf2_psymtab::expand_psymtab): Rename from
14121 psymtab_to_symtab_1. Call expand_psymtab.
14122 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14123 (dbx_end_psymtab): Likewise.
14124 (dbx_psymtab_to_symtab_1): Change argument order. Call
14125 expand_psymtab.
14126 (dbx_read_symtab): Call expand_psymtab.
14127 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14128 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14129 (ctf_psymtab::read_symtab): Call expand_psymtab.
14130
14131 2020-01-26 Tom Tromey <tom@tromey.com>
14132
14133 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14134 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14135 messages.
14136 * mdebugread.c (mdebug_read_symtab): Remove prints.
14137 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14138 assert.
14139 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14140
14141 2020-01-26 Tom Tromey <tom@tromey.com>
14142
14143 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14144 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14145 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14146 legacy_symtab.
14147 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14148 * psymtab.c (psymtab_to_symtab): Call method.
14149 (dump_psymtab): Update.
14150 * psympriv.h (struct partial_symtab): Add virtual destructor.
14151 <read_symtab>: New method.
14152 (struct legacy_symtab): New.
14153 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14154 (struct pst_map) <pst>: Now a legacy_psymtab.
14155 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14156 (new_psymtab): Use legacy_psymtab.
14157 * dwarf2read.h (struct dwarf2_psymtab): New.
14158 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14159 * dwarf2read.c (dwarf2_create_include_psymtab)
14160 (dwarf2_build_include_psymtabs, create_type_unit_group)
14161 (create_partial_symtab, process_psymtab_comp_unit_reader)
14162 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14163 (set_partial_user): Use dwarf2_psymtab.
14164 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14165 (psymtab_to_symtab_1, process_full_comp_unit)
14166 (process_full_type_unit, dwarf2_ranges_read)
14167 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14168 (dwarf_decode_lines): Use dwarf2_psymtab.
14169 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14170 (add_address_entry_worker, write_one_signatured_type)
14171 (recursively_count_psymbols, recursively_write_psymbols)
14172 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14173 (write_debug_names): Likewise.
14174 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14175 <pst>: Now a legacy_psymtab.
14176 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14177 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14178 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14179 * ctfread.c (struct ctf_psymtab): New.
14180 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14181 ctf_psymtab.
14182 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14183 (create_partial_symtab): Return a ctf_psymtab.
14184 (scan_partial_symbols): Update.
14185
14186 2020-01-26 Tom Tromey <tom@tromey.com>
14187
14188 * xcoffread.c (xcoff_start_psymtab): Use new.
14189 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14190 renamed from start_psymtab_common.
14191 * psympriv.h (struct partial_symtab): Add new constructor.
14192 (start_psymtab_common): Don't declare.
14193 * mdebugread.c (parse_partial_symbols): Use new.
14194 * dwarf2read.c (create_partial_symtab): Use new.
14195 * dbxread.c (start_psymtab): Use new.
14196 * ctfread.c (create_partial_symtab): Use new.
14197
14198 2020-01-26 Tom Tromey <tom@tromey.com>
14199
14200 * xcoffread.c (xcoff_end_psymtab): Use new.
14201 * psymtab.c (start_psymtab_common): Use new.
14202 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14203 Update.
14204 * psympriv.h (struct partial_symtab): Add parameters to
14205 constructor. Don't inline.
14206 (allocate_psymtab): Don't declare.
14207 * mdebugread.c (new_psymtab): Use new.
14208 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14209 * dbxread.c (dbx_end_psymtab): Use new.
14210
14211 2020-01-26 Tom Tromey <tom@tromey.com>
14212
14213 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14214 allocate_psymtab. Update documentation.
14215 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14216 allocate_psymtab. Do not use new.
14217 (allocate_psymtab): Use new. Update.
14218
14219 2020-01-26 Tom Tromey <tom@tromey.com>
14220
14221 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14222 * psymtab.c (psym_print_stats): Update.
14223 * psympriv.h (struct partial_symtab) <readin,
14224 psymtabs_addrmap_supported, anonymous>: Now bool.
14225 * mdebugread.c (psymtab_to_symtab_1): Update.
14226 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14227 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14228 (process_full_comp_unit, process_full_type_unit): Update.
14229 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14230 * ctfread.c (psymtab_to_symtab): Update.
14231
14232 2020-01-26 Tom Tromey <tom@tromey.com>
14233
14234 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14235 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14236 * psymtab.c (psymtab_storage): Delete psymtabs.
14237 (psymtab_storage::allocate_psymtab): Use new.
14238 (psymtab_storage::discard_psymtab): Use delete.
14239 * psympriv.h (struct partial_symtab): Add constructor and
14240 initializers.
14241
14242 2020-01-26 Tom Tromey <tom@tromey.com>
14243
14244 * machoread.c: Do not include psympriv.h.
14245
14246 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14247
14248 * NEWS: Mention the new option and the set/show commands.
14249
14250 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14251
14252 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14253 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14254 (validate_exec_file): New variables, enums, functions.
14255 (exec_file_locate_attach, print_section_info): Style the filenames.
14256 (_initialize_exec): Install show_exec_file_mismatch_command and
14257 set_exec_file_mismatch_command.
14258 * gdbcore.h (validate_exec_file): Declare.
14259 * infcmd.c (attach_command): Call validate_exec_file.
14260 * remote.c ( remote_target::remote_add_inferior): Likewise.
14261
14262 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14263
14264 * frame.c (find_frame_sal): Move call to get_next_frame into more
14265 inner scope.
14266 * inline-frame.c (inilne_state) <inline_state>: Update argument
14267 types.
14268 (inilne_state) <skipped_symbol>: Rename to...
14269 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14270 (skip_inline_frames): Build vector of skipped symbols and use this
14271 to reate the inline_state.
14272 (inline_skipped_symbol): Add a comment and some assertions, fetch
14273 skipped symbol from the list.
14274
14275 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14276
14277 * buildsym.c (lte_is_less_than): Delete.
14278 (buildsym_compunit::end_symtab_with_blockvector): Create local
14279 lambda function to sort line table entries, and use
14280 std::stable_sort instead of std::sort.
14281 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14282 markers when looking for a previous line.
14283
14284 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * dwarf2read.c (lnp_state_machine::record_line): Include
14287 end_sequence parameter in debug print out. Record the line if we
14288 are at an end_sequence marker even if it's not the start of a
14289 statement.
14290 * symmisc.c (maintenance_print_one_line_table): Print end of
14291 sequence markers with 'END' not '0'.
14292
14293 2020-01-24 Pedro Alves <palves@redhat.com>
14294
14295 PR gdb/25410
14296 * thread.c (scoped_restore_current_thread::restore): Use
14297 switch_to_inferior_no_thread.
14298 * exec.c: Include "progspace-and-thread.h".
14299 (add_target_sections, remove_target_sections):
14300 scoped_restore_current_pspace_and_thread instead of
14301 scoped_restore_current_thread.
14302 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14303 and aspace to the inferior before calling clone_program_space.
14304 Remove stale comment.
14305
14306 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14307
14308 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14309 (arm_netbsd_nat_target::fetch_registers): ...this.
14310 (arm_nbsd_nat_target::store_registers): Rename to...
14311 (arm_netbsd_nat_target::store_registers): ...this.
14312
14313 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14314
14315 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14316 register_t.
14317
14318 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14319
14320 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14321 Update comment.
14322 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14323 Likewise.
14324 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14325 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14326 the correct replacement (iterate_over_regset_sections).
14327 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14328 Update comment.
14329
14330 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14331
14332 PR gdb/23718
14333 * gdb/python/python.c (execute_gdb_command): Call
14334 async_enable_stdin in catch block.
14335
14336 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14337
14338 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14339 SWITCH_THRU_ALL_UIS.
14340
14341 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14342
14343 PR tui/9765
14344 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14345 comment, add extra parameter, and update to store previous symbol
14346 when appropriate.
14347 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14348 add extra parameter.
14349 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14350 remove unneeded parameter, add try/catch around gdb_print_insn,
14351 rewrite to add items to asm_lines vector.
14352 (tui_find_backward_disassembly_start_address): New function.
14353 (tui_find_disassembly_address): Updated throughout.
14354 (tui_disasm_window::set_contents): Update for changes to
14355 tui_disassemble.
14356 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14357 number of lines to scroll.
14358
14359 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14360
14361 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14362 (SECT_OFF_DATA): Likewise.
14363 (SECT_OFF_RODATA): Likewise.
14364 (SECT_OFF_TEXT): Likewise.
14365 (SECT_OFF_BSS): Likewise.
14366 (struct objfile) <text_section_offset, data_section_offset>: New
14367 methods.
14368 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14369 objfile::text_section_offset.
14370 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14371 * coffread.c (coff_symtab_read): Likewise.
14372 (enter_linenos): Likewise.
14373 (process_coff_symbol): Likewise.
14374 * ctfread.c (get_objfile_text_range): Likewise.
14375 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14376 Use objfile::data_section_offset.
14377 * dwarf2-frame.c (execute_cfa_program): Use
14378 objfile::text_section_offset.
14379 (dwarf2_frame_find_fde): Likewise.
14380 * dwarf2read.c (create_addrmap_from_index): Likewise.
14381 (create_addrmap_from_aranges): Likewise.
14382 (dw2_find_pc_sect_compunit_symtab): Likewise.
14383 (process_psymtab_comp_unit_reader): Likewise.
14384 (add_partial_symbol): Likewise.
14385 (add_partial_subprogram): Likewise.
14386 (process_full_comp_unit): Likewise.
14387 (read_file_scope): Likewise.
14388 (read_func_scope): Likewise.
14389 (read_lexical_block_scope): Likewise.
14390 (read_call_site_scope): Likewise.
14391 (dwarf2_rnglists_process): Likewise.
14392 (dwarf2_ranges_process): Likewise.
14393 (dwarf2_ranges_read): Likewise.
14394 (dwarf_decode_lines_1): Likewise.
14395 (new_symbol): Likewise.
14396 (dwarf2_fetch_die_loc_sect_off): Likewise.
14397 (dwarf2_per_cu_text_offset): Likewise.
14398 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14399 * hppa-tdep.c (read_unwind_info): Likewise.
14400 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14401 * psympriv.h (struct partial_symtab): Likewise.
14402 * psymtab.c (find_pc_sect_psymtab): Likewise.
14403 * solib-svr4.c (enable_break): Likewise.
14404 * stap-probe.c (relocate_address): Use
14405 objfile::data_section_offset.
14406 * xcoffread.c (enter_line_range): Use
14407 objfile::text_section_offset.
14408 (read_xcoff_symtab): Likewise.
14409
14410 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14411
14412 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14413 declaration to narrower scopes.
14414
14415 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14416
14417 * darwin-nat.h (struct darwin_exception_msg, enum
14418 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14419 Move up.
14420 (class darwin_nat_target) <wait_1, check_new_threads,
14421 decode_exception_message, decode_message, stop_inferior,
14422 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14423 * darwin-nat.c (darwin_check_new_threads): Rename to...
14424 (darwin_nat_target::check_new_threads): ... this.
14425 (darwin_suspend_inferior_it): Remove.
14426 (darwin_decode_exception_message): Rename to...
14427 (darwin_nat_target::decode_exception_message): ... this.
14428 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14429 (darwin_decode_message): Rename to...
14430 (darwin_nat_target::decode_message): ... this.
14431 (cancel_breakpoint): Rename to...
14432 (darwin_nat_target::cancel_breakpoint): ... this.
14433 (darwin_wait): Rename to...
14434 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14435 instead of iterate_over_inferiors.
14436 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14437 (darwin_stop_inferior): Rename to...
14438 (darwin_nat_target::stop_inferior): ... this.
14439 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14440 (darwin_init_thread_list): Rename to...
14441 (darwin_nat_target::init_thread_list): ... this.
14442 (darwin_ptrace_him): Rename to...
14443 (darwin_nat_target::ptrace_him): ... this.
14444 (darwin_nat_target::create_inferior): Pass lambda function to
14445 fork_inferior.
14446 (darwin_nat_target::detach): Call stop_inferior instead of
14447 darwin_stop_inferior.
14448 * fork-inferior.h (fork_inferior): Change init_trace_fun
14449 parameter to gdb::function_view.
14450 * fork-inferior.c (fork_inferior): Likewise.
14451
14452 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14453
14454 * i386-cygwin-tdep.c (core_process_module_section): Update.
14455 * windows-nat.c (struct lm_info_windows): Add text_offset.
14456 (windows_xfer_shared_libraries): Update.
14457 * windows-tdep.c (windows_xfer_shared_library):
14458 Add text_offset_cached argument.
14459 * windows-tdep.h (windows_xfer_shared_library): Update.
14460
14461 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14462
14463 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14464
14465 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14466
14467 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14468 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14469 replace with range-based for.
14470 (gdbsim_interrupt_inferior): Remove.
14471 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14472 with a range-based for. Inline code from
14473 gdbsim_interrupt_inferior.
14474
14475 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14476
14477 * infrun.c (proceed): Fix indentation.
14478
14479 2020-01-21 Tom Tromey <tromey@adacore.com>
14480
14481 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14482 * python/python.c (python_extension_ops): Update.
14483 (gdbpy_colorize): New function.
14484 * python/lib/gdb/__init__.py (colorize): New function.
14485 * extension.h (ext_lang_colorize): Declare.
14486 * extension.c (ext_lang_colorize): New function.
14487 * extension-priv.h (struct extension_language_ops) <colorize>: New
14488 member.
14489 * cli/cli-style.c (_initialize_cli_style): Update help text.
14490
14491 2020-01-21 Luis Machado <luis.machado@linaro.org>
14492
14493 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14494 <cond>: Change type to bool.
14495 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14496 (aarch64_displaced_step_cb): Likewise.
14497 (aarch64_displaced_step_tb): Likewise.
14498
14499 2020-01-21 Luis Machado <luis.machado@linaro.org>
14500
14501 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14502 output.
14503
14504 2020-01-21 Luis Machado <luis.machado@linaro.org>
14505
14506 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14507 <pc_adjust>: Adjust the documentation.
14508 (aarch64_displaced_step_fixup): Check if PC really moved before
14509 adjusting it.
14510
14511 2020-01-19 Tom Tromey <tom@tromey.com>
14512
14513 * disasm.c (~gdb_disassembler): New destructor.
14514 (gdb_buffered_insn_length): Call disassemble_free_target.
14515 * disasm.h (class gdb_disassembler): Declare destructor. Use
14516 DISABLE_COPY_AND_ASSIGN.
14517
14518 2020-01-19 Tom Tromey <tom@tromey.com>
14519
14520 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14521 (die_reader_func_ftype): Remove.
14522 (cutu_reader): New class.
14523 (dw2_get_file_names_reader): Remove "data" parameter.
14524 (dw2_get_file_names): Use cutu_reader.
14525 (create_debug_type_hash_table): Update.
14526 (read_cutu_die_from_dwo): Update comment.
14527 (lookup_dwo_unit): Add dwo_name parameter.
14528 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14529 die_reader_func_ftype and data parameters.
14530 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14531 Remove die_reader_func_ftype and data parameters.
14532 (~cutu_reader): New; from init_cutu_and_read_dies.
14533 (cutu_reader::cutu_reader): Rename from
14534 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14535 and data parameters.
14536 (init_cutu_and_read_dies_simple): Remove.
14537 (struct process_psymtab_comp_unit_data): Remove.
14538 (process_psymtab_comp_unit_reader): Remove data parameter; add
14539 want_partial_unit and pretend_language parameters.
14540 (process_psymtab_comp_unit): Use cutu_reader.
14541 (build_type_psymtabs_reader): Remove data parameter.
14542 (build_type_psymtabs_1): Use cutu_reader.
14543 (process_skeletonless_type_unit): Likewise.
14544 (load_partial_comp_unit_reader): Remove.
14545 (load_partial_comp_unit): Use cutu_reader.
14546 (load_full_comp_unit_reader): Remove.
14547 (load_full_comp_unit): Use cutu_reader.
14548 (struct create_dwo_cu_data): Remove.
14549 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14550 dwo_unit parameters.
14551 (create_cus_hash_table): Use cutu_reader.
14552 (struct dwarf2_read_addr_index_data): Remove.
14553 (dwarf2_read_addr_index_reader): Remove.
14554 (dwarf2_read_addr_index): Use cutu_reader.
14555 (read_signatured_type_reader): Remove.
14556 (read_signatured_type): Use cutu_reader.
14557
14558 2020-01-19 Tom Tromey <tom@tromey.com>
14559
14560 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14561 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14562 (tui_wrefresh): Declare.
14563 * tui/tui-wingeneral.c (suppress_output): New global.
14564 (tui_suppress_output, ~tui_suppress_output): New constructor and
14565 destructor.
14566 (tui_wrefresh): New function.
14567 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14568 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14569 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14570 method.
14571 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14572 tui_wrefresh.
14573 (tui_data_window::no_refresh): New method.
14574 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14575 (tui_reg_command): Use tui_suppress_output
14576 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14577 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14578 method.
14579 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14580
14581 2020-01-19 Tom Tromey <tom@tromey.com>
14582
14583 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14584 Handle case where symtab is null.
14585
14586 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14587
14588 * linux-fork.c (one_fork_p): Simplify.
14589
14590 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14591
14592 * top.c (struct qt_args): Remove.
14593 (kill_or_detach): Change return type to void, replace `void *`
14594 parameter with a proper one.
14595 (print_inferior_quit_action): Likewise.
14596 (quit_confirm): Use range-based for loop to iterate over inferiors.
14597 (quit_force): Likewise.
14598
14599 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14600
14601 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14602 `void *` parameter with proper parameters.
14603 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14604 (print_one_inferior): Change return type to void, replace `void *`
14605 parameter with proper parameters.
14606 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14607 inferiors.
14608 (get_other_inferior): Remove.
14609 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14610 inferiors.
14611
14612 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14613
14614 * mi/mi-interp.c (report_initial_inferior): Remove.
14615 (mi_interp::init): Use range-based for to iterate over inferiors.
14616
14617 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14618
14619 * python/py-inferior.c (build_inferior_list): Remove.
14620 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14621
14622 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14623
14624 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14625 (btrace_stitch_trace): Likewise.
14626 * charset.c (intermediate_encoding): Likewise (vaild).
14627 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14628 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14629 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14630
14631 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14632
14633 * windows-tdep.c (windows_get_tlb_type):
14634 Add rtl_user_process_parameters type.
14635
14636 2020-01-16 Pedro Alves <palves@redhat.com>
14637 Norbert Lange <nolange79@gmail.com>
14638
14639 PR build/24805
14640 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14641 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14642 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14643 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14644 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14645 (ps_plog): Redeclare exported functions with default visibility.
14646
14647 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14648
14649 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14650 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14651
14652 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14653
14654 * infcmd.c (post_create_inferior): Use get_thread_regcache
14655 instead of get_current_regcache.
14656
14657 2020-01-14 Tom Tromey <tom@tromey.com>
14658
14659 PR symtab/12535:
14660 * python/python.c (gdbpy_decode_line): Treat empty string the same
14661 as no argument.
14662
14663 2020-01-14 Tom Tromey <tom@tromey.com>
14664
14665 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14666
14667 2020-01-14 Tom Tromey <tom@tromey.com>
14668
14669 * nat/linux-btrace.c: Don't include <config.h>.
14670 * nat/linux-ptrace.c: Don't include <config.h>.
14671 * nat/x86-linux-dregs.c: Don't include <config.h>.
14672
14673 2020-01-14 Tom Tromey <tom@tromey.com>
14674
14675 * configure: Rebuild.
14676 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14677
14678 2020-01-14 Tom Tromey <tom@tromey.com>
14679
14680 * nat/x86-linux-dregs.c: Include configh.h.
14681 * nat/linux-ptrace.c: Include configh.h.
14682 * nat/linux-btrace.c: Include configh.h.
14683 * defs.h: Include config.h, bfd.h.
14684 * configure.ac: Don't source common.host.
14685 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14686 * configure: Rebuild.
14687 * acinclude.m4: Update path.
14688 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14689 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14690 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14691 (CLIBS): Add LIBSUPPORT.
14692 (CDEPS): Likewise.
14693 (COMMON_SFILES): Remove gdbsupport files.
14694 (HFILES_NO_SRCDIR): Likewise.
14695 (stamp-version): Update path to create-version.sh.
14696 (ALLDEPFILES): Remove gdbsupport files.
14697
14698 2020-01-14 Tom Tromey <tom@tromey.com>
14699
14700 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14701 USE_WIN32API when needed.
14702 * configure.ac (USE_WIN32API): Don't define.
14703 (WIN32LIBS): Use WIN32APILIBS.
14704 * configure: Rebuild.
14705
14706 2020-01-14 Tom Tromey <tom@tromey.com>
14707
14708 * configure: Rebuild.
14709 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14710
14711 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14712
14713 * skip.c (skip_function_command): Make skip w/o arguments use the
14714 name of the inlined function if pc is inside any inlined function.
14715
14716 2020-01-14 Luis Machado <luis.machado@linaro.org>
14717
14718 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14719 * infrun.c (resume_1): Likewise.
14720 (handle_inferior_event): Remove stale comment.
14721 * linux-nat.c (linux_nat_target::resume): Update comments.
14722 (save_stop_reason): Likewise.
14723 (linux_nat_filter_event): Likewise.
14724 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14725
14726 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14727
14728 * elfread.c (record_minimal_symbol): Set section index to 0 for
14729 non-allocatable sections.
14730
14731
14732 2020-01-13 Ali Tamur <tamur@google.com>
14733
14734 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14735 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14736 to gdb::optional. Update comments.
14737 (dwo_file): Update comments.
14738 (read_attribute): Update API to take an additional out parameter,
14739 need_reprocess. This is used to mark attributes that need other
14740 attributes (e.g. str_offsets_base) for correct computation which may not
14741 have been read yet.
14742 (read_attribute_reprocess): New function declaration.
14743 (read_addr_index): Likewise.
14744 (read_dwo_str_index): Likewise.
14745 (read_stub_str_index): Likewise.
14746 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14747 (lookup_addr_base): New function definition.
14748 (lookup_ranges_base): Likewise.
14749 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14750 lookup_ranges_base.
14751 (init_cutu_and_read_dies): Update comments.
14752 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14753 unit. This is used to inherit parent's str_offsets_base and addr_base.
14754 Update comments.
14755 (init_cutu_and_read_dies_simple): Reflect API changes.
14756 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14757 (create_cus_hash_table): Change API to take parent compile unit.
14758 Reflect API changes.
14759 (open_and_init_dwo_file): Reflect API changes.
14760 (dwarf2_get_pc_bounds): Update comments.
14761 (dwarf2_record_block_ranges): Likewise.
14762 (read_full_die_1): Change implementation to reprocess attributes that
14763 need str_offsets_base and addr_base.
14764 (partial_die_info::read): Likewise.
14765 (read_attribute_reprocess): New function definition.
14766 (read_attribute_value): Change API to take an additional out parameter,
14767 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14768 when a non-dwo compile unit has index based attributes.
14769 (read_attribute): Reflect API changes.
14770 (read_addr_index_1): Reflect API changes. Update comments.
14771 (dwarf2_read_addr_index_data): Reflect API changes.
14772 (dwarf2_read_addr_index): Likewise.
14773 (read_str_index): Change API and implementation. This becomes a helper
14774 to be used by the new string index related methods. Update error
14775 message and comments.
14776 (read_dwo_str_index): New function definition.
14777 (read_stub_str_index): Likewise.
14778 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14779 * symfile.h (dwarf2_debug_sections): Likewise.
14780 * xcoffread.c (dwarf2_debug_sections): Likewise.
14781
14782 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14783
14784 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14785 core_reg_sect type to gdb_byte *.
14786 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14787 * cris-tdep.c (fetch_core_registers): Likewise.
14788 * corelow.c (core_target::get_core_register_section): Change
14789 type of `contents` to gdb::byte_vector.
14790
14791 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14792
14793 * tui/tui-wingeneral.c (box_win): Position the title in the center
14794 of the border.
14795
14796 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14797
14798 * corelow.c (core_target::get_core_register_section): Use
14799 std::vector instead of alloca.
14800
14801 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14802
14803 * warning.m4: Add -Wmissing-declarations to build_warnings.
14804 * configure: Re-generate.
14805
14806 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14807
14808 * python/python.c (init__gdb_module): Add declaration.
14809
14810 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14811
14812 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14813 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14814 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14815 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14816 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14817 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14818 * ada-exp.y (_initialize_ada_exp): Add declaration.
14819 * ada-lang.c (_initialize_ada_language): Add declaration.
14820 * ada-tasks.c (_initialize_tasks): Add declaration.
14821 * agent.c (_initialize_agent): Add declaration.
14822 * aix-thread.c (_initialize_aix_thread): Add declaration.
14823 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14824 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14825 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14826 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14827 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14828 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14829 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14830 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14831 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14832 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14833 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14834 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14835 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14836 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14837 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14838 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14839 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14840 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14841 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14842 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14843 * annotate.c (_initialize_annotate): Add declaration.
14844 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14845 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14846 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14847 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14848 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14849 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14850 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14851 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14852 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14853 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14854 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14855 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14856 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14857 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14858 * auto-load.c (_initialize_auto_load): Add declaration.
14859 * auxv.c (_initialize_auxv): Add declaration.
14860 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14861 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14862 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14863 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14864 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14865 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14866 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14867 * breakpoint.c (_initialize_breakpoint): Add declaration.
14868 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14869 * btrace.c (_initialize_btrace): Add declaration.
14870 * charset.c (_initialize_charset): Add declaration.
14871 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14872 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14873 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14874 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14875 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14876 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14877 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14878 * coffread.c (_initialize_coffread): Add declaration.
14879 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14880 * compile/compile.c (_initialize_compile): Add declaration.
14881 * complaints.c (_initialize_complaints): Add declaration.
14882 * completer.c (_initialize_completer): Add declaration.
14883 * copying.c (_initialize_copying): Add declaration.
14884 * corefile.c (_initialize_core): Add declaration.
14885 * corelow.c (_initialize_corelow): Add declaration.
14886 * cp-abi.c (_initialize_cp_abi): Add declaration.
14887 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14888 * cp-support.c (_initialize_cp_support): Add declaration.
14889 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14890 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14891 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14892 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14893 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14894 * ctfread.c (_initialize_ctfread): Add declaration.
14895 * d-lang.c (_initialize_d_language): Add declaration.
14896 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14897 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14898 * dbxread.c (_initialize_dbxread): Add declaration.
14899 * dcache.c (_initialize_dcache): Add declaration.
14900 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14901 * disasm.c (_initialize_disasm): Add declaration.
14902 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14903 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14904 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14905 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14906 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14907 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14908 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14909 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14910 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14911 * elfread.c (_initialize_elfread): Add declaration.
14912 * exec.c (_initialize_exec): Add declaration.
14913 * extension.c (_initialize_extension): Add declaration.
14914 * f-lang.c (_initialize_f_language): Add declaration.
14915 * f-valprint.c (_initialize_f_valprint): Add declaration.
14916 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14917 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14918 * filesystem.c (_initialize_filesystem): Add declaration.
14919 * findcmd.c (_initialize_mem_search): Add declaration.
14920 * findvar.c (_initialize_findvar): Add declaration.
14921 * fork-child.c (_initialize_fork_child): Add declaration.
14922 * frame-base.c (_initialize_frame_base): Add declaration.
14923 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14924 * frame.c (_initialize_frame): Add declaration.
14925 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14926 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14927 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14928 * gcore.c (_initialize_gcore): Add declaration.
14929 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14930 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14931 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14932 * gdbarch.c (_initialize_gdbarch): Add declaration.
14933 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14934 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14935 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14936 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14937 * go-lang.c (_initialize_go_language): Add declaration.
14938 * go32-nat.c (_initialize_go32_nat): Add declaration.
14939 * guile/guile.c (_initialize_guile): Add declaration.
14940 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14941 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14942 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14943 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14944 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14945 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14946 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14947 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14948 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14949 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14950 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14951 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14952 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14953 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14954 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14955 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14956 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14957 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14958 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14959 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14960 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14961 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14962 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14963 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14964 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14965 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14966 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14967 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14968 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14969 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14970 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14971 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14972 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14973 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14974 * infcall.c (_initialize_infcall): Add declaration.
14975 * infcmd.c (_initialize_infcmd): Add declaration.
14976 * inflow.c (_initialize_inflow): Add declaration.
14977 * infrun.c (_initialize_infrun): Add declaration.
14978 * interps.c (_initialize_interpreter): Add declaration.
14979 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14980 * jit.c (_initialize_jit): Add declaration.
14981 * language.c (_initialize_language): Add declaration.
14982 * linux-fork.c (_initialize_linux_fork): Add declaration.
14983 * linux-nat.c (_initialize_linux_nat): Add declaration.
14984 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14985 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14986 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14987 * m2-lang.c (_initialize_m2_language): Add declaration.
14988 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14989 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14990 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14991 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14992 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14993 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14994 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14995 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14996 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14997 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14998 * machoread.c (_initialize_machoread): Add declaration.
14999 * macrocmd.c (_initialize_macrocmd): Add declaration.
15000 * macroscope.c (_initialize_macroscope): Add declaration.
15001 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
15002 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
15003 * maint.c (_initialize_maint_cmds): Add declaration.
15004 * mdebugread.c (_initialize_mdebugread): Add declaration.
15005 * memattr.c (_initialize_mem): Add declaration.
15006 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
15007 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
15008 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
15009 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
15010 * mi/mi-main.c (_initialize_mi_main): Add declaration.
15011 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
15012 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
15013 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
15014 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
15015 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
15016 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
15017 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
15018 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
15019 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
15020 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
15021 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
15022 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
15023 * mipsread.c (_initialize_mipsread): Add declaration.
15024 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
15025 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
15026 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
15027 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
15028 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
15029 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
15030 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
15031 * nto-procfs.c (_initialize_procfs): Add declaration.
15032 * objc-lang.c (_initialize_objc_language): Add declaration.
15033 * observable.c (_initialize_observer): Add declaration.
15034 * opencl-lang.c (_initialize_opencl_language): Add declaration.
15035 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
15036 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
15037 * osabi.c (_initialize_gdb_osabi): Add declaration.
15038 * osdata.c (_initialize_osdata): Add declaration.
15039 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15040 * parse.c (_initialize_parse): Add declaration.
15041 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15042 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15043 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15044 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15045 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15046 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15047 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15048 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15049 * printcmd.c (_initialize_printcmd): Add declaration.
15050 * probe.c (_initialize_probe): Add declaration.
15051 * proc-api.c (_initialize_proc_api): Add declaration.
15052 * proc-events.c (_initialize_proc_events): Add declaration.
15053 * proc-service.c (_initialize_proc_service): Add declaration.
15054 * procfs.c (_initialize_procfs): Add declaration.
15055 * producer.c (_initialize_producer): Add declaration.
15056 * psymtab.c (_initialize_psymtab): Add declaration.
15057 * python/python.c (_initialize_python): Add declaration.
15058 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15059 * record-btrace.c (_initialize_record_btrace): Add declaration.
15060 * record-full.c (_initialize_record_full): Add declaration.
15061 * record.c (_initialize_record): Add declaration.
15062 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15063 * regcache.c (_initialize_regcache): Add declaration.
15064 * reggroups.c (_initialize_reggroup): Add declaration.
15065 * remote-notif.c (_initialize_notif): Add declaration.
15066 * remote-sim.c (_initialize_remote_sim): Add declaration.
15067 * remote.c (_initialize_remote): Add declaration.
15068 * reverse.c (_initialize_reverse): Add declaration.
15069 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15070 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15071 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15072 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15073 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15074 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15075 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15076 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15077 Add declaration.
15078 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15079 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15080 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15081 * rust-exp.y (_initialize_rust_exp): Add declaration.
15082 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15083 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15084 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15085 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15086 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15087 * score-tdep.c (_initialize_score_tdep): Add declaration.
15088 * ser-go32.c (_initialize_ser_dos): Add declaration.
15089 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15090 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15091 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15092 * ser-uds.c (_initialize_ser_socket): Add declaration.
15093 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15094 * serial.c (_initialize_serial): Add declaration.
15095 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15096 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15097 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15098 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15099 * skip.c (_initialize_step_skip): Add declaration.
15100 * sol-thread.c (_initialize_sol_thread): Add declaration.
15101 * solib-aix.c (_initialize_solib_aix): Add declaration.
15102 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15103 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15104 * solib-frv.c (_initialize_frv_solib): Add declaration.
15105 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15106 * solib-target.c (_initialize_solib_target): Add declaration.
15107 * solib.c (_initialize_solib): Add declaration.
15108 * source-cache.c (_initialize_source_cache): Add declaration.
15109 * source.c (_initialize_source): Add declaration.
15110 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15111 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15112 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15113 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15114 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15115 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15116 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15117 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15118 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15119 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15120 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15121 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15122 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15123 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15124 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15125 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15126 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15127 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15128 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15129 * stabsread.c (_initialize_stabsread): Add declaration.
15130 * stack.c (_initialize_stack): Add declaration.
15131 * stap-probe.c (_initialize_stap_probe): Add declaration.
15132 * std-regs.c (_initialize_frame_reg): Add declaration.
15133 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15134 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15135 * symfile.c (_initialize_symfile): Add declaration.
15136 * symmisc.c (_initialize_symmisc): Add declaration.
15137 * symtab.c (_initialize_symtab): Add declaration.
15138 * target.c (_initialize_target): Add declaration.
15139 * target-connection.c (_initialize_target_connection): Add
15140 declaration.
15141 * target-dcache.c (_initialize_target_dcache): Add declaration.
15142 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15143 * thread.c (_initialize_thread): Add declaration.
15144 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15145 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15146 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15147 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15148 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15149 * tracectf.c (_initialize_ctf): Add declaration.
15150 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15151 * tracefile.c (_initialize_tracefile): Add declaration.
15152 * tracepoint.c (_initialize_tracepoint): Add declaration.
15153 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15154 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15155 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15156 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15157 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15158 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15159 * tui/tui.c (_initialize_tui): Add declaration.
15160 * typeprint.c (_initialize_typeprint): Add declaration.
15161 * ui-style.c (_initialize_ui_style): Add declaration.
15162 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15163 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15164 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15165 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15166 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15167 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15168 * unittests/filtered_iterator-selftests.c
15169 (_initialize_filtered_iterator_selftests): Add declaration.
15170 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15171 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15172 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15173 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15174 * unittests/main-thread-selftests.c
15175 (_initialize_main_thread_selftests): Add declaration.
15176 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15177 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15178 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15179 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15180 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15181 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15182 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15183 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15184 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15185 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15186 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15187 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15188 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15189 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15190 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15191 declaration.
15192 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15193 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15194 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15195 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15196 * user-regs.c (_initialize_user_regs): Add declaration.
15197 * utils.c (_initialize_utils): Add declaration.
15198 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15199 * valops.c (_initialize_valops): Add declaration.
15200 * valprint.c (_initialize_valprint): Add declaration.
15201 * value.c (_initialize_values): Add declaration.
15202 * varobj.c (_initialize_varobj): Add declaration.
15203 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15204 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15205 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15206 * windows-nat.c (_initialize_windows_nat): Add declaration.
15207 (_initialize_check_for_gdb_ini): Add declaration.
15208 (_initialize_loadable): Add declaration.
15209 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15210 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15211 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15212 * xcoffread.c (_initialize_xcoffread): Add declaration.
15213 * xml-support.c (_initialize_xml_support): Add declaration.
15214 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15215 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15216 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15217 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15218
15219 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15220
15221 * regformats/regdat.sh: Generate declaration for init function.
15222
15223 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15224
15225 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15226 up.
15227 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15228 close_one_inferior>: New methods.
15229 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15230 pass down target to find_inferior_pid.
15231 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15232 Pass down target to find_inferior_ptid.
15233 (gdbsim_target::create_inferior): Pass down target to
15234 add_thread_silent.
15235 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15236 target down to find_inferior_ptid and switch_to_thread.
15237 (gdbsim_target::close): Update to call close_one_inferior.
15238 (struct resume_data): Remove.
15239 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15240 directly, rather than through a void pointer.
15241 (gdbsim_target::resume): Update to call resume_one_inferior.
15242
15243 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15244
15245 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15246
15247 2020-01-12 Pedro Alves <palves@redhat.com>
15248
15249 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15250 directly for the current inferior instead of
15251 discard_all_inferiors.
15252 (discard_all_inferiors): Delete.
15253
15254 2020-01-11 Tom Tromey <tom@tromey.com>
15255
15256 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15257 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15258 deprecated_safe_get_selected_frame.
15259
15260 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15261
15262 * inferior.c (print_inferior): Switch inferior before printing it.
15263
15264 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15265 Pedro Alves <palves@redhat.com>
15266
15267 * progspace-and-thread.c (switch_to_program_space_and_thread):
15268 Assert there's an inferior for PSPACE. Use
15269 switch_to_inferior_no_thread to switch the inferior too.
15270 * progspace.c (program_space::~program_space): Call
15271 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15272 (program_space::free_all_objfiles): Don't call clear_symtab_users
15273 here.
15274 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15275
15276 2020-01-10 Pedro Alves <palves@redhat.com>
15277
15278 * NEWS: Mention multi-target debugging, "info connections", and
15279 "add-inferior -no-connection".
15280
15281 2020-01-10 Pedro Alves <palves@redhat.com>
15282
15283 * infrun.c: Include "target-connection.h".
15284 (check_multi_target_resumption): New.
15285 (proceed): Call it.
15286 * target-connection.c (make_target_connection_string): Make
15287 extern.
15288 * target-connection.h (make_target_connection_string): Declare.
15289
15290 2020-01-10 Pedro Alves <palves@redhat.com>
15291
15292 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15293 * inferior.c (uiout_field_connection): New function.
15294 (print_inferior): Add new "connection-id" column.
15295 (add_inferior_command): Show connection number/string of added
15296 inferior.
15297 * process-stratum-target.h
15298 (process_stratum_target::connection_string): New virtual method.
15299 (process_stratum_target::connection_number): New field.
15300 * remote.c (remote_target::connection_string): New override.
15301 * target-connection.c: New file.
15302 * target-connection.h: New file.
15303 * target.c (decref_target): Remove process_stratum targets from
15304 the connection list.
15305 (target_stack::push): Add process_stratum targets to the
15306 connection list.
15307
15308 2020-01-10 Pedro Alves <palves@redhat.com>
15309
15310 Revert:
15311 2016-04-12 Pedro Alves <palves@redhat.com>
15312 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15313 Remove references to name.
15314 * serial.h (struct serial) <name>: Delete.
15315
15316 2020-01-10 Pedro Alves <palves@redhat.com>
15317
15318 * gdbarch-selftests.c (register_to_value_test): Remove "target
15319 already pushed" check.
15320
15321 2020-01-10 Pedro Alves <palves@redhat.com>
15322 John Baldwin <jhb@FreeBSD.org>
15323
15324 * aarch64-linux-nat.c
15325 (aarch64_linux_nat_target::thread_architecture): Adjust.
15326 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15327 (task_command_1): Likewise.
15328 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15329 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15330 (aix_thread_target::store_registers)
15331 (aix_thread_target::thread_alive): Adjust.
15332 * amd64-fbsd-tdep.c: Include "inferior.h".
15333 (amd64fbsd_get_thread_local_address): Pass down target.
15334 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15335 thread's gdbarch instead of target_gdbarch.
15336 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15337 get_last_target_status.
15338 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15339 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15340 inferiors.
15341 (update_inserted_breakpoint_locations): Skip if inferiors with no
15342 execution.
15343 (update_global_location_list): When handling moribund locations,
15344 find representative inferior for location's pspace, and use thread
15345 count of its process_stratum target.
15346 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15347 * bsd-uthread.c (bsd_uthread_target::wait): Use
15348 as_process_stratum_target and adjust thread_change_ptid and
15349 add_thread calls.
15350 (bsd_uthread_target::update_thread_list): Use
15351 as_process_stratum_target and adjust find_thread_ptid,
15352 thread_change_ptid and add_thread calls.
15353 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15354 find_thread_ptid call.
15355 * corelow.c (add_to_thread_list): Adjust add_thread call.
15356 (core_target_open): Adjust add_thread_silent and thread_count
15357 calls.
15358 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15359 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15360 * event-top.c (async_disconnect): Pop targets from all inferiors.
15361 * exec.c (add_target_sections): Push exec target on all inferiors
15362 sharing the program space.
15363 (remove_target_sections): Remove the exec target from all
15364 inferiors sharing the program space.
15365 (exec_on_vfork): New.
15366 * exec.h (exec_on_vfork): Declare.
15367 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15368 Pass it down.
15369 (fbsd_nat_target::update_thread_list): Adjust.
15370 (fbsd_nat_target::resume): Adjust.
15371 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15372 down.
15373 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15374 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15375 get_thread_arch_regcache call.
15376 * fork-child.c (gdb_startup_inferior): Pass target down to
15377 startup_inferior and set_executing.
15378 * gdbthread.h (struct process_stratum_target): Forward declare.
15379 (add_thread, add_thread_silent, add_thread_with_info)
15380 (in_thread_list): Add process_stratum_target parameter.
15381 (find_thread_ptid(inferior*, ptid_t)): New overload.
15382 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15383 parameter.
15384 (all_threads()): Delete overload.
15385 (all_threads, all_non_exited_threads): Add process_stratum_target
15386 parameter.
15387 (all_threads_safe): Use brace initialization.
15388 (thread_count): Add process_stratum_target parameter.
15389 (set_resumed, set_running, set_stop_requested, set_executing)
15390 (threads_are_executing, finish_thread_state): Add
15391 process_stratum_target parameter.
15392 (switch_to_thread): Use is_current_thread.
15393 * i386-fbsd-tdep.c: Include "inferior.h".
15394 (i386fbsd_get_thread_local_address): Pass down target.
15395 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15396 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15397 have_inferiors check.
15398 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15399 (inf_ptrace_target::attach): Adjust.
15400 * infcall.c (run_inferior_call): Adjust.
15401 * infcmd.c (run_command_1): Pass target to
15402 scoped_finish_thread_state.
15403 (proceed_thread_callback): Skip inferiors with no execution.
15404 (continue_command): Rename 'all_threads' local to avoid hiding
15405 'all_threads' function. Adjust get_last_target_status call.
15406 (prepare_one_step): Adjust set_running call.
15407 (signal_command): Use user_visible_resume_target. Compare thread
15408 pointers instead of inferior_ptid.
15409 (info_program_command): Adjust to pass down target.
15410 (attach_command): Mark target's 'thread_executing' flag.
15411 (stop_current_target_threads_ns): New, factored out from ...
15412 (interrupt_target_1): ... this. Switch inferior before making
15413 target calls.
15414 * inferior-iter.h
15415 (struct all_inferiors_iterator, struct all_inferiors_range)
15416 (struct all_inferiors_safe_range)
15417 (struct all_non_exited_inferiors_range): Filter on
15418 process_stratum_target too. Remove explicit.
15419 * inferior.c (inferior::inferior): Push dummy target on target
15420 stack.
15421 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15422 Add process_stratum_target parameter, and pass it down.
15423 (have_live_inferiors): Adjust.
15424 (switch_to_inferior_and_push_target): New.
15425 (add_inferior_command, clone_inferior_command): Handle
15426 "-no-connection" parameter. Use
15427 switch_to_inferior_and_push_target.
15428 (_initialize_inferior): Mention "-no-connection" option in
15429 the help of "add-inferior" and "clone-inferior" commands.
15430 * inferior.h: Include "process-stratum-target.h".
15431 (interrupt_target_1): Use bool.
15432 (struct inferior) <push_target, unpush_target, target_is_pushed,
15433 find_target_beneath, top_target, process_target, target_at,
15434 m_stack>: New.
15435 (discard_all_inferiors): Delete.
15436 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15437 (all_inferiors, all_non_exited_inferiors): Add
15438 process_stratum_target parameter.
15439 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15440 (target_last_proc_target): New global.
15441 (follow_fork_inferior): Push target on new inferior. Pass target
15442 to add_thread_silent. Call exec_on_vfork. Handle target's
15443 reference count.
15444 (follow_fork): Adjust get_last_target_status call. Also consider
15445 target.
15446 (follow_exec): Push target on new inferior.
15447 (struct execution_control_state) <target>: New field.
15448 (user_visible_resume_target): New.
15449 (do_target_resume): Call target_async.
15450 (resume_1): Set target's threads_executing flag. Consider resume
15451 target.
15452 (commit_resume_all_targets): New.
15453 (proceed): Also consider resume target. Skip threads of inferiors
15454 with no execution. Commit resumtion in all targets.
15455 (start_remote): Pass current inferior to wait_for_inferior.
15456 (infrun_thread_stop_requested): Consider target as well. Pass
15457 thread_info pointer to clear_inline_frame_state instead of ptid.
15458 (infrun_thread_thread_exit): Consider target as well.
15459 (random_pending_event_thread): New inferior parameter. Use it.
15460 (do_target_wait): Rename to ...
15461 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15462 down.
15463 (threads_are_resumed_pending_p, do_target_wait): New.
15464 (prepare_for_detach): Adjust calls.
15465 (wait_for_inferior): New inferior parameter. Handle it. Use
15466 do_target_wait_1 instead of do_target_wait.
15467 (fetch_inferior_event): Adjust. Switch to representative
15468 inferior. Pass target down.
15469 (set_last_target_status): Add process_stratum_target parameter.
15470 Save target in global.
15471 (get_last_target_status): Add process_stratum_target parameter and
15472 handle it.
15473 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15474 (context_switch): Check inferior_ptid == null_ptid before calling
15475 inferior_thread().
15476 (get_inferior_stop_soon): Pass down target.
15477 (wait_one): Rename to ...
15478 (poll_one_curr_target): ... this.
15479 (struct wait_one_event): New.
15480 (wait_one): New.
15481 (stop_all_threads): Adjust.
15482 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15483 event's target.
15484 (switch_back_to_stepped_thread): Also consider target.
15485 (print_stop_event): Update.
15486 (normal_stop): Update. Also consider the resume target.
15487 * infrun.h (wait_for_inferior): Remove declaration.
15488 (user_visible_resume_target): New declaration.
15489 (get_last_target_status, set_last_target_status): New
15490 process_stratum_target parameter.
15491 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15492 process_stratum_target parameter, and use it.
15493 (clear_inline_frame_state (thread_info*)): New.
15494 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15495 process_stratum_target parameter.
15496 (clear_inline_frame_state (thread_info*)): Declare.
15497 * linux-fork.c (delete_checkpoint_command): Pass target down to
15498 find_thread_ptid.
15499 (checkpoint_command): Adjust.
15500 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15501 instead of just tweaking inferior_ptid.
15502 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15503 (exit_lwp): Pass target down to find_thread_ptid.
15504 (attach_proc_task_lwp_callback): Pass target down to
15505 add_thread/set_running/set_executing.
15506 (linux_nat_target::attach): Pass target down to
15507 thread_change_ptid.
15508 (get_detach_signal): Pass target down to find_thread_ptid.
15509 Consider last target status's target.
15510 (linux_resume_one_lwp_throw, resume_lwp)
15511 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15512 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15513 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15514 (linux_nat_target::async_wait_fd): New.
15515 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15516 target down.
15517 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15518 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15519 * linux-thread-db.c (struct thread_db_info::process_target): New
15520 field.
15521 (add_thread_db_info): Save target.
15522 (get_thread_db_info): New process_stratum_target parameter. Also
15523 match target.
15524 (delete_thread_db_info): New process_stratum_target parameter.
15525 Also match target.
15526 (thread_from_lwp): Adjust to pass down target.
15527 (thread_db_notice_clone): Pass down target.
15528 (check_thread_db_callback): Pass down target.
15529 (try_thread_db_load_1): Always push the thread_db target.
15530 (try_thread_db_load, record_thread): Pass target down.
15531 (thread_db_target::detach): Pass target down. Always unpush the
15532 thread_db target.
15533 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15534 target down. Always unpush the thread_db target.
15535 (find_new_threads_callback, thread_db_find_new_threads_2)
15536 (thread_db_target::update_thread_list): Pass target down.
15537 (thread_db_target::pid_to_str): Pass current inferior down.
15538 (thread_db_target::get_thread_local_address): Pass target down.
15539 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15540 target down.
15541 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15542 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15543 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15544 (procfs_init_inferior): Rename to ...
15545 (procfs_target::procfs_init_inferior): ... this and adjust.
15546 (procfs_target::create_inferior, procfs_notice_thread)
15547 (procfs_do_thread_registers): Adjust.
15548 * ppc-fbsd-tdep.c: Include "inferior.h".
15549 (ppcfbsd_get_thread_local_address): Pass down target.
15550 * proc-service.c (ps_xfer_memory): Switch current inferior and
15551 program space as well.
15552 (get_ps_regcache): Pass target down.
15553 * process-stratum-target.c
15554 (process_stratum_target::thread_address_space)
15555 (process_stratum_target::thread_architecture): Pass target down.
15556 * process-stratum-target.h
15557 (process_stratum_target::threads_executing): New field.
15558 (as_process_stratum_target): New.
15559 * ravenscar-thread.c
15560 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15561 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15562 down.
15563 * record-btrace.c (record_btrace_target::info_record): Adjust.
15564 (record_btrace_target::record_method)
15565 (record_btrace_target::record_is_replaying)
15566 (record_btrace_target::fetch_registers)
15567 (get_thread_current_frame_id, record_btrace_target::resume)
15568 (record_btrace_target::wait, record_btrace_target::stop): Pass
15569 target down.
15570 * record-full.c (record_full_wait_1): Switch to event thread.
15571 Pass target down.
15572 * regcache.c (regcache::regcache)
15573 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15574 process_stratum_target parameter and handle it.
15575 (current_thread_target): New global.
15576 (get_thread_regcache): Add process_stratum_target parameter and
15577 handle it. Switch inferior before calling target method.
15578 (get_thread_regcache): Pass target down.
15579 (get_thread_regcache_for_ptid): Pass target down.
15580 (registers_changed_ptid): Add process_stratum_target parameter and
15581 handle it.
15582 (registers_changed_thread, registers_changed): Pass target down.
15583 (test_get_thread_arch_aspace_regcache): New.
15584 (current_regcache_test): Define a couple local test_target_ops
15585 instances and use them for testing.
15586 (readwrite_regcache): Pass process_stratum_target parameter.
15587 (cooked_read_test, cooked_write_test): Pass mock_target down.
15588 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15589 (get_thread_arch_aspace_regcache): Add process_stratum_target
15590 parameter.
15591 (regcache::target): New method.
15592 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15593 (regcache::registers_changed_ptid): Add process_stratum_target
15594 parameter.
15595 (regcache::m_target): New field.
15596 (registers_changed_ptid): Add process_stratum_target parameter.
15597 * remote.c (remote_state::supports_vCont_probed): New field.
15598 (remote_target::async_wait_fd): New method.
15599 (remote_unpush_and_throw): Add remote_target parameter.
15600 (get_current_remote_target): Adjust.
15601 (remote_target::remote_add_inferior): Push target.
15602 (remote_target::remote_add_thread)
15603 (remote_target::remote_notice_new_inferior)
15604 (get_remote_thread_info): Pass target down.
15605 (remote_target::update_thread_list): Skip threads of inferiors
15606 bound to other targets. (remote_target::close): Don't discard
15607 inferiors. (remote_target::add_current_inferior_and_thread)
15608 (remote_target::process_initial_stop_replies)
15609 (remote_target::start_remote)
15610 (remote_target::remote_serial_quit_handler): Pass down target.
15611 (remote_target::remote_unpush_target): New remote_target
15612 parameter. Unpush the target from all inferiors.
15613 (remote_target::remote_unpush_and_throw): New remote_target
15614 parameter. Pass it down.
15615 (remote_target::open_1): Check whether the current inferior has
15616 execution instead of checking whether any inferior is live. Pass
15617 target down.
15618 (remote_target::remote_detach_1): Pass down target. Use
15619 remote_unpush_target.
15620 (extended_remote_target::attach): Pass down target.
15621 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15622 (remote_target::append_resumption): Pass down target.
15623 (remote_target::append_pending_thread_resumptions)
15624 (remote_target::remote_resume_with_hc, remote_target::resume)
15625 (remote_target::commit_resume): Pass down target.
15626 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15627 (remote_target::interrupt_query)
15628 (remote_target::remove_new_fork_children)
15629 (remote_target::check_pending_events_prevent_wildcard_vcont)
15630 (remote_target::remote_parse_stop_reply)
15631 (remote_target::process_stop_reply): Pass down target.
15632 (first_remote_resumed_thread): New remote_target parameter. Pass
15633 it down.
15634 (remote_target::wait_as): Pass down target.
15635 (unpush_and_perror): New remote_target parameter. Pass it down.
15636 (remote_target::readchar, remote_target::remote_serial_write)
15637 (remote_target::getpkt_or_notif_sane_1)
15638 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15639 down target.
15640 (remote_target::mourn_inferior): Pass down target. Use
15641 remote_unpush_target.
15642 (remote_target::core_of_thread)
15643 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15644 (remote_target::pid_to_exec_file)
15645 (remote_target::thread_handle_to_thread_info): Pass down target.
15646 (remote_target::async_wait_fd): New.
15647 * riscv-fbsd-tdep.c: Include "inferior.h".
15648 (riscv_fbsd_get_thread_local_address): Pass down target.
15649 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15650 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15651 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15652 Adjust.
15653 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15654 * solib-svr4.c (enable_break): Pass down target.
15655 * spu-multiarch.c (parse_spufs_run): Pass down target.
15656 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15657 * target-delegates.c: Regenerate.
15658 * target.c (g_target_stack): Delete.
15659 (current_top_target): Return the current inferior's top target.
15660 (target_has_execution_1): Refer to the passed-in inferior's top
15661 target.
15662 (target_supports_terminal_ours): Check whether the initial
15663 inferior was already created.
15664 (decref_target): New.
15665 (target_stack::push): Incref/decref the target.
15666 (push_target, push_target, unpush_target): Adjust.
15667 (target_stack::unpush): Defref target.
15668 (target_is_pushed): Return bool. Adjust to refer to the current
15669 inferior's target stack.
15670 (dispose_inferior): Delete, and inline parts ...
15671 (target_preopen): ... here. Only dispose of the current inferior.
15672 (target_detach): Hold strong target reference while detaching.
15673 Pass target down.
15674 (target_thread_name): Add assertion.
15675 (target_resume): Pass down target.
15676 (target_ops::beneath, find_target_at): Adjust to refer to the
15677 current inferior's target stack.
15678 (get_dummy_target): New.
15679 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15680 has a thread running.
15681 (initialize_targets): Rename to ...
15682 (_initialize_target): ... this.
15683 * target.h: Include "gdbsupport/refcounted-object.h".
15684 (struct target_ops): Inherit refcounted_object.
15685 (target_ops::shortname, target_ops::longname): Make const.
15686 (target_ops::async_wait_fd): New method.
15687 (decref_target): Declare.
15688 (struct target_ops_ref_policy): New.
15689 (target_ops_ref): New typedef.
15690 (get_dummy_target): Declare function.
15691 (target_is_pushed): Return bool.
15692 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15693 (all_matching_threads_iterator::all_matching_threads_iterator):
15694 Handle filter target.
15695 * thread-iter.h (struct all_matching_threads_iterator, struct
15696 all_matching_threads_range, class all_non_exited_threads_range):
15697 Filter by target too. Remove explicit.
15698 * thread.c (threads_executing): Delete.
15699 (inferior_thread): Pass down current inferior.
15700 (clear_thread_inferior_resources): Pass down thread pointer
15701 instead of ptid_t.
15702 (add_thread_silent, add_thread_with_info, add_thread): Add
15703 process_stratum_target parameter. Use it for thread and inferior
15704 searches.
15705 (is_current_thread): New.
15706 (thread_info::deletable): Use it.
15707 (find_thread_ptid, thread_count, in_thread_list)
15708 (thread_change_ptid, set_resumed, set_running): New
15709 process_stratum_target parameter. Pass it down.
15710 (set_executing): New process_stratum_target parameter. Pass it
15711 down. Adjust reference to 'threads_executing'.
15712 (threads_are_executing): New process_stratum_target parameter.
15713 Adjust reference to 'threads_executing'.
15714 (set_stop_requested, finish_thread_state): New
15715 process_stratum_target parameter. Pass it down.
15716 (switch_to_thread): Also match inferior.
15717 (switch_to_thread): New process_stratum_target parameter. Pass it
15718 down.
15719 (update_threads_executing): Reimplement.
15720 * top.c (quit_force): Pop targets from all inferior.
15721 (gdb_init): Don't call initialize_targets.
15722 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15723 Declare.
15724 (windows_add_thread, windows_delete_thread): Adjust.
15725 (get_windows_debug_event): Rename to ...
15726 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15727 * tracefile-tfile.c (tfile_target_open): Pass down target.
15728 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15729 Forward declare.
15730 (switch_to_thread): Add process_stratum_target parameter.
15731 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15732 parameter. Use it.
15733 (mi_on_resume): Pass target down.
15734 * nat/fork-inferior.c (startup_inferior): Add
15735 process_stratum_target parameter. Pass it down.
15736 * nat/fork-inferior.h (startup_inferior): Add
15737 process_stratum_target parameter.
15738 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15739
15740 2020-01-10 Pedro Alves <palves@redhat.com>
15741
15742 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15743 directly. Instead find the first thread in the thread list and
15744 use switch_to_thread.
15745
15746 2020-01-10 Pedro Alves <palves@redhat.com>
15747
15748 * remote.c (remote_target::remote_add_inferior): Don't bind a
15749 process to the current inferior if the current inferior is already
15750 bound to a process.
15751
15752 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15753 Pedro Alves <palves@redhat.com>
15754
15755 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15756 If no process is specified, return null_ptid instead of
15757 inferior_ptid.
15758 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15759 TARGET_WAITKIND_SIGNALLED with no pid.
15760
15761 2020-01-10 Pedro Alves <palves@redhat.com>
15762
15763 * remote.c (first_remote_resumed_thread): New.
15764 (remote_target::wait_as): Use it as default event_ptid instead of
15765 inferior_ptid.
15766
15767 2020-01-10 Pedro Alves <palves@redhat.com>
15768
15769 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15770
15771 2020-01-10 Pedro Alves <palves@redhat.com>
15772
15773 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15774 not -1.
15775
15776 2020-01-10 Pedro Alves <palves@redhat.com>
15777
15778 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15779 ptid to get_last_target_status.
15780 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15781 ptid to get_last_target_status.
15782 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15783 get_last_target_status.
15784 (info_program_command): Don't pass a target_waitstatus to
15785 get_last_target_status.
15786 * infrun.c (init_wait_for_inferior): Use
15787 nullify_last_target_wait_ptid.
15788 (get_last_target_status): Handle nullptr arguments.
15789 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15790 (print_stop_event): Don't pass a ptid to get_last_target_status.
15791 (normal_stop): Don't pass a ptid to get_last_target_status.
15792 * infrun.h (get_last_target_status, set_last_target_status): Move
15793 comments here and update.
15794 (nullify_last_target_wait_ptid): Declare.
15795 * linux-fork.c (fork_load_infrun_state): Remove local extern
15796 declaration of nullify_last_target_wait_ptid.
15797 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15798 to get_last_target_status.
15799
15800 2020-01-10 Pedro Alves <palves@redhat.com>
15801
15802 * gdbthread.h (scoped_restore_current_thread)
15803 <dont_restore, restore, m_dont_restore>: Declare.
15804 * thread.c (thread_alive): Add assertion. Return bool.
15805 (switch_to_thread_if_alive): New.
15806 (prune_threads): Switch inferior/thread.
15807 (print_thread_info_1): Switch thread before calling target methods.
15808 (scoped_restore_current_thread::restore): New, factored out from
15809 ...
15810 (scoped_restore_current_thread::~scoped_restore_current_thread):
15811 ... this.
15812 (scoped_restore_current_thread::scoped_restore_current_thread):
15813 Add assertion.
15814 (thread_apply_all_command, thread_select): Use
15815 switch_to_thread_if_alive.
15816 * infrun.c (proceed, restart_threads, handle_signal_stop)
15817 (switch_back_to_stepped_thread): Switch current thread before
15818 calling target methods.
15819
15820 2020-01-10 Pedro Alves <palves@redhat.com>
15821
15822 * inferior.c (switch_to_inferior_no_thread): New function,
15823 factored out from ...
15824 (inferior_command): ... here.
15825 * inferior.h (switch_to_inferior_no_thread): Declare.
15826 * mi/mi-main.c (run_one_inferior): Use
15827 switch_to_inferior_no_thread.
15828
15829 2020-01-10 Pedro Alves <palves@redhat.com>
15830
15831 * infcmd.c (kill_command): Remove dead code.
15832
15833 2020-01-10 Pedro Alves <palves@redhat.com>
15834
15835 * remote.c (remote_target::mourn_inferior): No longer check
15836 whether the target is running.
15837
15838 2020-01-10 Pedro Alves <palves@redhat.com>
15839
15840 * corelow.c (core_target::has_execution): Change parameter type to
15841 inferior pointer.
15842 * inferior.c (number_of_live_inferiors): Use
15843 inferior::has_execution instead of target_has_execution_1.
15844 * inferior.h (inferior::has_execution): New.
15845 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15846 inferior::has_execution instead of target_has_execution_1.
15847 * process-stratum-target.c
15848 (process_stratum_target::has_execution): Change parameter type to
15849 inferior pointer. Check the inferior's PID instead of
15850 inferior_ptid.
15851 * process-stratum-target.h
15852 (process_stratum_target::has_execution): Change parameter type to
15853 inferior pointer.
15854 * record-full.c (record_full_core_target::has_execution): Change
15855 parameter type to inferior pointer.
15856 * target.c (target_has_execution_1): Change parameter type to
15857 inferior pointer.
15858 (target_has_execution_current): Adjust.
15859 * target.h (target_ops::has_execution): Change parameter type to
15860 inferior pointer.
15861 (target_has_execution_1): Change parameter type to inferior
15862 pointer. Change return type to bool.
15863 * tracefile.h (tracefile_target::has_execution): Change parameter
15864 type to inferior pointer.
15865
15866 2020-01-10 Pedro Alves <palves@redhat.com>
15867
15868 * exceptions.c (print_flush): Remove current_top_target() check.
15869
15870 2020-01-10 Pedro Alves <palves@redhat.com>
15871
15872 * remote.c (show_remote_exec_file): Show the current inferior's
15873 exec-file instead of the command variable's value.
15874
15875 2020-01-10 Pedro Alves <palves@redhat.com>
15876
15877 * record-full.c (record_full_resume_ptid): New global.
15878 (record_full_target::resume): Set it.
15879 (record_full_wait_1): Use record_full_resume_ptid instead of
15880 inferior_ptid.
15881
15882 2020-01-10 Pedro Alves <palves@redhat.com>
15883
15884 * gdbthread.h (scoped_restore_current_thread)
15885 <dont_restore, restore, m_dont_restore>: Declare.
15886 * thread.c (thread_alive): Add assertion. Return bool.
15887 (switch_to_thread_if_alive): New.
15888 (prune_threads): Switch inferior/thread.
15889 (print_thread_info_1): Switch thread before calling target methods.
15890 (scoped_restore_current_thread::restore): New, factored out from
15891 ...
15892 (scoped_restore_current_thread::~scoped_restore_current_thread):
15893 ... this.
15894 (scoped_restore_current_thread::scoped_restore_current_thread):
15895 Add assertion.
15896 (thread_apply_all_command, thread_select): Use
15897 switch_to_thread_if_alive.
15898
15899 2020-01-10 George Barrett <bob@bob131.so>
15900
15901 * stap-probe.c (stap_modify_semaphore): Don't check for null
15902 semaphores.
15903 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15904 for null semaphores.
15905
15906 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15907
15908 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15909 all source windows, and maintain horizontal scroll status while
15910 doing so.
15911
15912 2020-01-09 Tom Tromey <tom@tromey.com>
15913
15914 PR tui/18932:
15915 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15916 update_source_window, not print_source_lines.
15917
15918 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15919
15920 * tui/tui.c (tui_enable): Register tui hooks after calling
15921 tui_display_main.
15922
15923 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15924
15925 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15926
15927 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15928
15929 * thread.c (print_thread_info_1): Fix indentation.
15930
15931 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15932
15933 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15934 unique_xmalloc_ptr outside the if to always free the demangled name.
15935
15936 2020-01-08 Tom Tromey <tromey@adacore.com>
15937
15938 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15939 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15940 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15941 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15942 Remove.
15943 (section_offsets): New typedef.
15944 * symtab.c (fixup_section, get_msymbol_address): Update.
15945 * symmisc.c (dump_msymbols): Update.
15946 * symfile.h (relative_addr_info_to_section_offsets)
15947 (symfile_map_offsets_to_segments): Update.
15948 * symfile.c (build_section_addr_info_from_objfile)
15949 (init_objfile_sect_indices): Update.
15950 (struct place_section_arg): Change type of "offsets".
15951 (place_section): Update.
15952 (relative_addr_info_to_section_offsets): Change type of
15953 "section_offsets". Remove "num_sections" parameter.
15954 (default_symfile_offsets, syms_from_objfile_1)
15955 (set_objfile_default_section_offset): Update.
15956 (reread_symbols): No need to preserve section offsets by hand.
15957 (symfile_map_offsets_to_segments): Change type of "offsets".
15958 * stap-probe.c (relocate_address): Update.
15959 * stabsread.h (process_one_symbol): Update.
15960 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15961 (solib_target_relocate_section_addresses): Update.
15962 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15963 Update.
15964 * solib-frv.c (frv_relocate_main_executable): Update.
15965 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15966 * solib-aix.c (solib_aix_get_section_offsets): Change return
15967 type.
15968 (solib_aix_solib_create_inferior_hook): Update.
15969 * remote.c (remote_target::get_offsets): Update.
15970 * psymtab.c (find_pc_sect_psymtab): Update.
15971 * psympriv.h (struct partial_symbol) <address, text_low,
15972 text_high>: Update.
15973 * objfiles.h (obj_section_offset): Update.
15974 (struct objfile) <section_offsets>: Change type.
15975 <num_sections>: Remove.
15976 (objfile_relocate): Update.
15977 * objfiles.c (entry_point_address_query): Update
15978 (relocate_one_symbol): Change type of "section_offsets".
15979 (objfile_relocate1, objfile_relocate1): Change type of
15980 "new_offsets".
15981 (objfile_rebase1): Update.
15982 * mipsread.c (mipscoff_symfile_read): Update.
15983 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15984 parameter.
15985 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15986 (parse_external, psymtab_to_symtab_1): Update.
15987 * machoread.c (macho_symfile_offsets): Update.
15988 * ia64-tdep.c (ia64_find_unwind_table): Update.
15989 * hppa-tdep.c (read_unwind_info): Update.
15990 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15991 * dwarf2read.c (create_addrmap_from_index)
15992 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15993 (process_psymtab_comp_unit_reader, add_partial_symbol)
15994 (add_partial_subprogram, process_full_comp_unit)
15995 (read_file_scope, read_func_scope, read_lexical_block_scope)
15996 (read_call_site_scope, dwarf2_rnglists_process)
15997 (dwarf2_ranges_process, dwarf2_ranges_read)
15998 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15999 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
16000 Update.
16001 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
16002 Update.
16003 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
16004 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
16005 (process_one_symbol): Change type of "section_offsets".
16006 * ctfread.c (get_objfile_text_range): Update.
16007 * coffread.c (coff_symtab_read, enter_linenos)
16008 (process_coff_symbol): Update.
16009 * coff-pe-read.c (add_pe_forwarded_sym): Update.
16010 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
16011
16012 2020-01-08 Tom Tromey <tromey@adacore.com>
16013
16014 * dwarf2read.c (parse_macro_definition): Use std::string.
16015 (parse_macro_definition): Likewise.
16016
16017 2020-01-08 Tom Tromey <tromey@adacore.com>
16018
16019 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
16020 (ATTR_ALLOC_CHUNK): Remove.
16021
16022 2020-01-08 Tom Tromey <tromey@adacore.com>
16023
16024 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
16025
16026 2020-01-08 Tom Tromey <tromey@adacore.com>
16027
16028 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
16029 (dwarf2_compute_name, open_dwo_file): Likewise.
16030 (process_enumeration_scope): Use std::vector.
16031 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
16032 (partial_die_info::fixup, dwarf2_start_subfile)
16033 (guess_full_die_structure_name, dwarf2_name): Likewise.
16034 (determine_prefix): Update.
16035 (guess_full_die_structure_name): Make return type const.
16036 (partial_die_full_name): Return unique_xmalloc_ptr.
16037 (DW_FIELD_ALLOC_CHUNK): Remove.
16038
16039 2020-01-07 Tom Tromey <tromey@adacore.com>
16040
16041 PR build/24937:
16042 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16043
16044 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16045
16046 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16047
16048 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16049
16050 * stack.c (print_frame_info): Move disassemble_next_line code
16051 inside source_print block.
16052
16053 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16054
16055 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16056 gdb/signals.h, as we are now using native signal symbols.
16057
16058 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16059
16060 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16061 overflow by an early check of content vs threshold.
16062 * tui/tui-source.c (tui_source_window::line_is_displayed):
16063 Likewise.
16064
16065 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16066
16067 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16068
16069 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16070
16071 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16072 export table if no section contains it's RVA.
16073
16074 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16075
16076 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16077
16078 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16079
16080 * source.c (print_source_lines_base): Set last_line_listed.
16081
16082 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16083
16084 * tui/tui-disasm.c: Remove trailing spaces.
16085
16086 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16087 Pedro Alves <palves@redhat.com>
16088
16089 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16090 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16091 (windows_gdb_signal_to_target): New function, uses the above
16092 enumeration to convert GDB internal signal codes to equivalent
16093 Windows codes.
16094 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16095 * windows-nat.c: Include "gdb_wait.h".
16096 (get_windows_debug_event): Extract the fatal exception from the
16097 exit status and convert to the equivalent Posix signal number.
16098 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16099 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16100 * gdbsupport/gdb_wait.c: New file, implements
16101 windows_status_to_termsig.
16102 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16103 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16104
16105 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16106
16107 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16108 show_layout.
16109
16110 2020-01-05 Luis Machado <luis.machado@linaro.org>
16111
16112 * aarch64-linux-nat.c
16113 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16114 and bfd_mach_aarch64.
16115
16116 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16117
16118 * ui-file.c (stdio_file::can_emit_style_escape)
16119 (tee_file::can_emit_style_escape): Ensure style is used also on
16120 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16121 to gdb_stdout.
16122 * main.c (set_gdb_data_directory): Use file style to output the
16123 warning that the given pathname is not a directory.
16124 * top.c (show_history_filename, gdb_safe_append_history)
16125 (show_gdb_datadir): Use file style.
16126
16127 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16128
16129 * solib-target.c (struct lm_info_target):
16130 Change offsets to be a unique_xmalloc_ptr.
16131 (solib_target_relocate_section_addresses): Update.
16132
16133 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16134
16135 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16136
16137 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16138
16139 * MAINTAINERS (Write After Approval): Add myself.
16140
16141 2020-01-02 Luis Machado <luis.machado@linaro.org>
16142
16143 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16144 Cell BE architecture.
16145 * target.h (struct target_ops) <thread_architecture>: Likewise.
16146
16147 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16148
16149 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16150
16151 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16152
16153 * MAINTAINERS (Write After Approval): Add myself.
16154
16155 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16156
16157 * gdbarch.sh: Update copyright year range of generated files.
16158
16159 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16160
16161 Update copyright year range in all GDB files.
16162
16163 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16164
16165 * copyright.py: Convert to Python 3.
16166
16167 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16168
16169 * copyright.py: Adapt after move of gnulib directory from gdb
16170 directory to toplevel directory.
16171
16172 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16173
16174 * copyright.py (main): Exit if run from the wrong directory.
16175
16176 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16177
16178 * top.c (print_gdb_version): Change copyright year to 2020.
16179
16180 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16181
16182 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16183
16184 For older changes see ChangeLog-2019.
16185 \f
16186 Local Variables:
16187 mode: change-log
16188 left-margin: 8
16189 fill-column: 74
16190 version-control: never
16191 coding: utf-8
16192 End:
This page took 0.334299 seconds and 5 git commands to generate.