gdb: replace AC_TRY_LINK in sanitize.m4
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
4 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
5 AC_LANG_PROGRAM.
6
7 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * configure: Re-generate.
10
11 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * configure: Re-generate.
14
15 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * configure: Re-generate.
18
19 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * configure: Re-generate.
22
23 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * acinclude.m4: Modernize.
26 * configure: Re-generate.
27
28 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
29
30 * configure.ac: Modernize.
31 * configure: Re-generate.
32
33 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
36 * configure: Re-generate.
37 * configure.ac: Remove AM_PROG_CC_STDC.
38
39 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
40
41 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
42 AC_CANONICAL_SYSTEM.
43 * configure: Re-generate.
44
45 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
46
47 * infrun.h (displaced_debug_printf): New macro. Replace
48 displaced debug prints throughout to use it.
49 (displaced_debug_printf_1): New declaration.
50 (displaced_step_dump_bytes): Return string, remove ui_file
51 parameter, update all callers.
52 * infrun.c (displaced_debug_printf_1): New function.
53 (displaced_step_dump_bytes): Return string, remove ui_file
54 parameter
55
56 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
57
58 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
59
60 2020-10-30 Tom Tromey <tromey@adacore.com>
61
62 * Makefile.in (stamp-init): Depend on config.status.
63
64 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
65
66 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
67
68 2020-10-30 Pedro Alves <pedro@palves.net>
69
70 * thread.c (lookup_selected_frame): Move ...
71 * frame.c (lookup_selected_frame): ... here.
72
73 2020-10-30 Pedro Alves <pedro@palves.net>
74
75 * blockframe.c (block_innermost_frame): Use get_selected_frame.
76 * frame.c
77 (scoped_restore_selected_frame::scoped_restore_selected_frame):
78 Use save_selected_frame. Save language as well.
79 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
80 Use restore_selected_frame, and restore language as well.
81 (selected_frame_id, selected_frame_level): New.
82 (selected_frame): Update comments.
83 (save_selected_frame, restore_selected_frame): New.
84 (get_selected_frame): Use lookup_selected_frame.
85 (get_selected_frame_if_set): Delete.
86 (select_frame): Record selected_frame_level and selected_frame_id.
87 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
88 fields.
89 (get_selected_frame): Make 'message' parameter optional.
90 (get_selected_frame_if_set): Delete declaration.
91 (select_frame): Update comments.
92 (save_selected_frame, restore_selected_frame)
93 (lookup_selected_frame): Declare.
94 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
95 * infrun.c (struct infcall_control_state) <selected_frame_level>:
96 New field.
97 (save_infcall_control_state): Use save_selected_frame.
98 (restore_selected_frame): Delete.
99 (restore_infcall_control_state): Use restore_selected_frame.
100 * stack.c (select_frame_command_core, frame_command_core): Use
101 get_selected_frame.
102 * thread.c (restore_selected_frame): Rename to ...
103 (lookup_selected_frame): ... this and make extern. Select the
104 current frame if the frame level is -1.
105 (scoped_restore_current_thread::restore): Also restore the
106 language.
107 (scoped_restore_current_thread::~scoped_restore_current_thread):
108 Don't try/catch.
109 (scoped_restore_current_thread::scoped_restore_current_thread):
110 Save the language as well. Use save_selected_frame.
111
112 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
115 documentation.
116 * gdbarch.h: Re-generate.
117
118 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
121 parameter.
122 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
123 Likewise.
124 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
125 Likewise.
126 * arch-utils.c (default_displaced_step_hw_singlestep):
127 Likewise.
128 * arch-utils.h (default_displaced_step_hw_singlestep):
129 Likewise.
130 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
131 Likewise.
132 * s390-tdep.c (s390_displaced_step_hw_singlestep):
133 Likewise.
134 * gdbarch.c: Re-generate.
135 * gdbarch.h: Re-generate.
136 * infrun.c (resume_1): Adjust.
137
138 2020-10-29 Tom Tromey <tom@tromey.com>
139
140 * progspace.c (program_space::~program_space): Don't call
141 exec_close.
142
143 2020-10-29 Tom Tromey <tom@tromey.com>
144
145 * exec.c (exec_target::close): Don't change current program
146 space.
147
148 2020-10-29 Tom Tromey <tom@tromey.com>
149
150 * symfile.c (add_symbol_file_command): Update.
151 * exec.c (program_space::add_target_sections): Rename.
152 * symfile-mem.c (symbol_file_add_from_memory): Update.
153 * progspace.h (struct program_space) <add_target_sections>:
154 Declare new overload.
155 * exec.h (add_target_sections_of_objfile): Don't declare.
156
157 2020-10-29 Tom Tromey <tom@tromey.com>
158
159 * solib.c (solib_map_sections): Update.
160 * exec.c (program_space::add_target_sections): Now a method.
161 (exec_file_attach): Update.
162 * exec.h (add_target_sections): Don't declare.
163 * progspace.h (struct program_space) <add_target_sections>:
164 Declare.
165
166 2020-10-29 Tom Tromey <tom@tromey.com>
167
168 * progspace.h (struct program_space) <remove_target_sections>:
169 Declare.
170 * exec.c (program_space::remove_target_sections): Now a method.
171 * exec.h (remove_target_sections): Don't declare.
172
173 2020-10-29 Tom Tromey <tom@tromey.com>
174
175 * inferior.c (delete_inferior): Update.
176 * progspace.c (program_space::empty): Rename from
177 program_space_empty_p. Return bool.
178 * progspace.h (struct program_space) <empty>: New method.
179 (program_space_empty_p): Don't declare.
180
181 2020-10-29 Tom Tromey <tom@tromey.com>
182
183 * progspace.c (program_space::~program_space): Don't call
184 clear_program_space_solib_cache.
185 (program_space::clear_solib_cache): Rename from
186 clear_solib_cache.
187 * solib.c (handle_solib_event): Update.
188 * progspace.h (struct program_space) <clear_solib_cache>: New
189 method.
190 (clear_program_space_solib_cache): Don't declare.
191
192 2020-10-29 Tom Tromey <tom@tromey.com>
193
194 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
195 * target.c (info_target_command): Update.
196 * symfile.c (syms_from_objfile_1, finish_new_objfile)
197 (symbol_file_clear, reread_symbols): Update.
198 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
199 * stabsread.c (scan_file_globals): Update.
200 * solib.c (update_solib_list): Update.
201 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
202 (svr4_fetch_objfile_link_map, enable_break)
203 (svr4_relocate_main_executable)
204 (svr4_iterate_over_objfiles_in_search_order): Update.
205 * solib-frv.c (lm_base, enable_break)
206 (frv_relocate_main_executable): Update.
207 (main_got, frv_fdpic_find_canonical_descriptor): Update.
208 (frv_fetch_objfile_link_map): Update.
209 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
210 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
211 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
212 * remote.c (remote_target::get_offsets): Update.
213 (remote_target::start_remote)
214 (extended_remote_target::post_attach): Update.
215 * objfiles.c (entry_point_address_query): Update.
216 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
217 * minsyms.c (get_symbol_leading_char): Update.
218 * frame.c (inside_main_func): Update.
219 * progspace.h (symfile_objfile): Remove macro.
220
221 2020-10-29 Tom Tromey <tom@tromey.com>
222
223 * exec.c (exec_file_attach): Update.
224 * progspace.c (program_space::exec_close): Update.
225 * progspace.h (struct program_space) <ebfd>: Now a
226 gdb_bfd_ref_ptr.
227 <set_exec_bfd>: Change argument type.
228 <exec_bfd>: Update.
229
230 2020-10-29 Tom Tromey <tom@tromey.com>
231
232 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
233 * symfile.c (reread_symbols): Update.
234 * symfile-mem.c (add_symbol_file_from_memory_command)
235 (add_vsyscall_page): Update.
236 * source-cache.c (source_cache::get_plain_source_lines): Update.
237 * solib-svr4.c (find_program_interpreter, elf_locate_base)
238 (svr4_current_sos_direct, svr4_exec_displacement)
239 (svr4_relocate_main_executable): Update.
240 (svr4_iterate_over_objfiles_in_search_order): Update.
241 * solib-frv.c (enable_break2, enable_break): Update.
242 * solib-dsbt.c (lm_base, enable_break): Update.
243 * solib-darwin.c (find_program_interpreter)
244 (darwin_solib_create_inferior_hook): Update.
245 * sol-thread.c (rw_common, ps_pdmodel): Update.
246 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
247 * remote.c (compare_sections_command)
248 (remote_target::trace_set_readonly_regions): Update.
249 * remote-sim.c (get_sim_inferior_data)
250 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
251 (gdbsim_target_open, gdbsim_target::files_info): Update.
252 * exec.h (exec_bfd): Remove macro.
253 * progspace.c (initialize_progspace): Update.
254 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
255 Update.
256 * nto-procfs.c (nto_procfs_target::post_attach)
257 (nto_procfs_target::create_inferior): Update.
258 * maint.c (maintenance_info_sections): Update.
259 * linux-thread-db.c (thread_db_target::get_thread_local_address):
260 Update.
261 * infcmd.c (post_create_inferior): Update.
262 * gcore.c (default_gcore_arch, default_gcore_target): Update.
263 (objfile_find_memory_regions): Update.
264 * exec.c (validate_exec_file, exec_file_attach)
265 (exec_read_partial_read_only, print_section_info): Update.
266 * corelow.c (core_target_open): Update.
267 * corefile.c (reopen_exec_file, validate_files): Update.
268 * arm-tdep.c (gdb_print_insn_arm): Update.
269 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
270 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
271 methods.
272
273 2020-10-29 Tom Tromey <tom@tromey.com>
274
275 * progspace.h (current_target_sections): Remove macro.
276 * solib-svr4.c (scan_dyntag): Update.
277 * solib-dsbt.c (scan_dyntag): Update.
278 * exec.c (exec_target::close): Update.
279 (add_target_sections, add_target_sections_of_objfile)
280 (remove_target_sections, exec_target::get_section_table)
281 (exec_target::files_info, set_section_command)
282 (exec_set_section_address, exec_target::has_memory)
283 (exec_target::has_memory): Update.
284
285 2020-10-29 Tom Tromey <tom@tromey.com>
286
287 * source-cache.c (source_cache::get_plain_source_lines): Use
288 current_program_space.
289 * corefile.c (reopen_exec_file): Use current_program_space.
290 * exec.c (exec_file_attach): Use current_program_space.
291 * exec.h (exec_bfd_mtime): Remove.
292
293 2020-10-29 Tom Tromey <tom@tromey.com>
294
295 * gcore.c (default_gcore_mach): Remove.
296 (create_gcore_bfd): Update.
297
298 2020-10-29 Tom Tromey <tom@tromey.com>
299
300 * progspace.c (program_space::exec_close): New method, from
301 exec_close in exec.c.
302 * exec.c (exec_close): Move to progspace.c.
303 (exec_target::close, exec_file_attach): Update.
304 * progspace.h (struct program_space) <exec_close>: Declare
305 method.
306
307 2020-10-29 Tom Tromey <tom@tromey.com>
308
309 * progspace.h (struct program_space) <exec_filename>: Rename from
310 pspace_exec_filename. Now a unique_xmalloc_ptr.
311 * inferior.c (print_selected_inferior): Update.
312 (print_inferior): Update.
313 * mi/mi-main.c (print_one_inferior): Update.
314 * exec.h (exec_filename): Remove macro.
315 * corefile.c (get_exec_file): Update.
316 * exec.c (exec_close): Update.
317 (exec_file_attach): Update.
318 * progspace.c (clone_program_space): Update.
319 (print_program_space): Update.
320
321 2020-10-29 Tom Tromey <tom@tromey.com>
322
323 * target-section.h (struct target_section): Add constructor.
324 * exec.c (build_section_table, add_target_sections_of_objfile):
325 Update.
326 * corelow.c (core_target::build_file_mappings): Update.
327
328 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329
330 PR gdb/19318
331 * inferior.c (detach_inferior_command): Restore the current thread.
332 (kill_inferior_command): Ditto.
333
334 2020-10-28 Tom de Vries <tdevries@suse.de>
335
336 PR symtab/26772
337 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
338 map, check it in the "best match" loop.
339
340 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * m32c-tdep.c: Remove unused includes.
343
344 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
345
346 * xtensa-tdep.c: Remove includes.
347
348 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
349
350 * breakpoint.c (struct condition_command_opts): New struct.
351 (condition_command_option_defs): New static global.
352 (make_condition_command_options_def_group): New function.
353 (condition_completer): Update to consider the '-force' flag.
354 (condition_command): Use gdb::option for the '-force' flag.
355
356 2020-10-27 Tom de Vries <tdevries@suse.de>
357
358 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
359 symbols in section check.
360
361 2020-10-27 Tom de Vries <tdevries@suse.de>
362
363 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
364
365 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
366
367 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
368 * breakpoint.c: Update the help text of the 'condition' and 'break'
369 commands.
370 (set_breakpoint_condition): Take a new bool parameter
371 to control whether condition definition should be forced even when
372 the condition expression is invalid in all of the current locations.
373 (condition_command): Update the call to 'set_breakpoint_condition'.
374 (find_condition_and_thread): Take the "-force-condition" flag into
375 account.
376 * linespec.c (linespec_keywords): Add "-force-condition" as an
377 element.
378 (FORCE_KEYWORD_INDEX): New #define.
379 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
380 as a keyword.
381 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
382 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
383 * python/py-breakpoint.c (bppy_set_condition): Ditto.
384 * NEWS: Mention the changes to the 'break' and 'condition' commands.
385
386 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
389 * breakpoint.c (set_breakpoint_location_condition): New function.
390 (set_breakpoint_condition): Disable a breakpoint location if parsing
391 the condition string gives an error.
392 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
393 (build_target_condition_list): Ditto.
394 (build_target_command_list): Ditto.
395 (build_bpstat_chain): Ditto.
396 (print_one_breakpoint_location): Ditto.
397 (print_one_breakpoint): Ditto.
398 (breakpoint_1): Ditto.
399 (bp_location::bp_location): Ditto.
400 (locations_are_equal): Ditto.
401 (update_breakpoint_locations): Ditto.
402 (enable_disable_bp_num_loc): Ditto.
403 (init_breakpoint_sal): Use set_breakpoint_location_condition.
404 (find_condition_and_thread_for_sals): New static function.
405 (create_breakpoint): Call find_condition_and_thread_for_sals.
406 (location_to_sals): Call find_condition_and_thread_for_sals instead
407 of find_condition_and_thread.
408
409 2020-10-26 Tom de Vries <tdevries@suse.de>
410
411 * dwarf2/read.c (process_full_comp_unit): Call
412 dwarf2_find_base_address.
413
414 2020-10-26 Tom Tromey <tromey@adacore.com>
415
416 * gdbtypes.c (create_range_type): Revert previous patch. Add
417 comment.
418
419 2020-10-26 Pedro Alves <pedro@palves.net>
420
421 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
422 (my_waitpid): Use gdb::handle_eintr.
423
424 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * acinclude.m4: Update ptrace.m4 path.
427 * ptrace.m4: Moved to gdbsupport.
428
429 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
432 instead of target_gdbarch.
433
434 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * jit.c (jit_reader_load_command): Pass current inferior.
437 (jit_inferior_init): Change parameter type to inferior, use it.
438 (jit_inferior_created): Remove.
439 (jit_inferior_created_hook): Pass inferior parameter down.
440 (_initialize_jit): Use jit_inferior_created_hook instead of
441 jit_inferior_created.
442 * jit.h (jit_inferior_created_hook): Add inferior parameter.
443 * infrun.c (follow_exec): Pass inferior to
444 jit_inferior_created_hook.
445
446 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
447
448 * linux-thread-db.c (check_pid_namespace_match): Add inferior
449 parameter and use it.
450 (thread_db_inferior_created): Pass inferior argument.
451
452 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
453
454 * aix-thread.c (aix_thread_inferior_created): Add inferior
455 parameter.
456 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
457 * dummy-frame.c (cleanup_dummy_frames): Likewise.
458 * jit.c (jit_inferior_created): Likewise.
459 * linux-thread-db.c (thread_db_inferior_created): Likewise.
460 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
461 * observable.h (inferior_created): Likewise.
462 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
463 * symfile-mem.c (add_vsyscall_page): Likewise.
464 * infcmd.c (post_create_inferior): Pass inferior argument.
465
466 2020-10-24 Joel Brobecker <brobecker@adacore.com>
467
468 GDB 10.1 released.
469
470 2020-10-23 Joel Brobecker <brobecker@adacore.com>
471
472 * ada-typeprint.c (ada_print_type): Remove superfluous second call
473 to ada_check_typedef.
474
475 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * f-exp.y (f_parse): Rename to...
478 (f_language::parser): ...this.
479 * f-lang.c (f_get_encoding): Rename to...
480 (f_language::get_encoding): ...this.
481 (f_op_print_tab): Rename to...
482 (f_language::op_print_tab): ...this.
483 (exp_descriptor_f): Rename to...
484 (f_language::exp_descriptor_tab): ...this.
485 (class f_language): Moved to f-lang.h.
486 (f_language::language_arch_info): New function, moved out of class
487 declaration.
488 (f_language::search_name_hash): Likewise.
489 (f_language::lookup_symbol_nonlocal): Likewise.
490 (f_language::get_symbol_name_matcher_inner): Likewise.
491 * f-lang.h: Add 'valprint.h' include.
492 (class f_language): Moved here from f-lang.c.
493 * f-typeprint.c (f_type_print_args): Delete commented out
494 declaration.
495 (f_print_typedef): Rename to...
496 (f_language::print_typedef): ...this.
497 (f_print_type): Rename to...
498 (f_language::print_type): ...this.
499 (f_type_print_varspec_prefix): Delete declaration and rename to...
500 (f_language::f_type_print_varspec_prefix): ...this.
501 (f_type_print_varspec_suffix): Delete declaration and rename to...
502 (f_language::f_type_print_varspec_suffix): ...this.
503 (f_type_print_base): Delete declaration and rename to...
504 (f_language::f_type_print_base): ...this.
505 * f-valprint.c (f_value_print_inner): Rename to...
506 (f_language::value_print_inner): ...this.
507 * parse.c: Delete 'f-lang.h' include.
508
509 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * language.h (language_defn::print_type): Add variable names in
512 declaration, and update header comment.
513
514 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * ada-lang.c (ada_language::demangle): Rename to...
517 (ada_language::demangle_symbol): ...this.
518 * c-lang.c (cplus_language::demangle): Rename to...
519 (cplus_language::demangle_symbol): ...this.
520 * d-lang.c (d_language::demangle): Rename to...
521 (d_language::demangle_symbol): ...this.
522 * f-lang.c (f_language::demangle): Rename to...
523 (f_language::demangle_symbol): ...this.
524 * go-lang.c (go_language::demangle): Rename to...
525 (go_language::demangle_symbol): ...this.
526 * language.c (language_demangle): Update call to demangle_symbol.
527 (auto_or_unknown_language::demangle): Rename to...
528 (auto_or_unknown_language::demangle_symbol): ...this.
529 * language.h (language_defn::demangle): Rename to...
530 (language_defn::demangle_symbol): ...this.
531 * objc-lang.c (objc_language::demangle): Rename to...
532 (objc_language::demangle_symbol): ...this.
533 * rust-lang.c (rust_language::demangle): Rename to...
534 (rust_language::demangle_symbol): ...this.
535
536 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
539 (iterate_over_file_blocks): Replace use of macro with the macros
540 definition.
541
542 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
545 * valprint.c (maybe_print_array_index): Replace use of macro with
546 the macros definition.
547
548 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * ada-lang.c (ada_language::print_array_index): Call value_print
551 directly.
552 * language.c (language_defn::print_array_index): Likewise.
553 * language.h (LA_VALUE_PRINT): Delete.
554 * valprint.c (value_print): Call value_print on the
555 current_language directly.
556
557 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * language.h (LA_PRINT_TYPEDEF): Delete.
560 * typeprint.c (typedef_print): Call print_typedef directly on the
561 current_language object.
562
563 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
564
565 * m2-exp.y (m2_parse): Rename to...
566 (m2_language::parser): ...this. Update function signature.
567 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
568 (m2_op_print): Rename to...
569 (m2_language::op_print_tab): ...this, and make const.
570 (exp_descriptor_modula2): Rename to...
571 (m2_language::exp_descriptor_modula2): ...this.
572 (class m2_language): Move to m2-lang.h.
573 (m2_language::language_arch_info): New function, moved out of
574 class declaration.
575 (m2_language::printchar): New function, body from m2_printchar.
576 (m2_language::printstr): New function, moved out of class
577 declaration.
578 (m2_language::emitchar): Likewise.
579 * m2-lang.h (m2_parse): Delete declaration.
580 (m2_print_typedef): Delete declaration.
581 (m2_value_print_inner): Delete declaration.
582 (class m2_language): Class declaration moved from m2-lang.c,
583 larger functions are left in m2-lang.c.
584 * m2-typeprint.c (m2_print_typedef): Rename to...
585 (m2_language::print_typedef): ...this, and update function
586 signature.
587 * m2-valprint.c (m2_value_print_inner): Rename to...
588 (m2_language::value_print_inner): ...this, replace use of
589 LA_PRINT_STRING with a direct call to printstr member function,
590 and update recursive call.
591
592 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * language.c (default_is_string_type_p): Delete, implementation
595 moved into auto_or_unknown_language::is_string_type_p.
596 (unk_op_print_tab): Moved into
597 auto_or_unknown_language::opcode_print_table.
598 (unknown_language_arch_info): Delete, implementation moved into
599 auto_or_unknown_language::language_arch_info.
600 (class auto_or_unknown_language): New class, member functions
601 copied from unknown_language class, with some updates.
602 (class unknown_language): Most member functions moved into
603 auto_or_unknown_language class. Inherit from
604 auto_or_unknown_language class.
605 (class auto_language): Inherit from auto_or_unknown_language.
606 Delete most member functions.
607
608 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
609
610 * stabsread.c (read_member_functions): Remove gdb_assert.
611
612 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
613
614 * gdbtypes.c (init_complex_type): Check target type name.
615
616 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * target-debug.h (target_debug_print_struct_target_ops_p):
619 Remove.
620 (target_debug_print_async_callback_ftype_p): Remove.
621 (target_debug_print_struct_trace_state_variable_p): Remove.
622 (target_debug_print_struct_traceframe_info_p): Remove.
623 (target_debug_print_VEC__btrace_block_s__pp): Remove.
624 (target_debug_print_enum_btrace_format): Remove.
625 (target_debug_print_enum_info_proc_what): Remove.
626 (target_debug_print_thread_info_pp): Remove.
627
628 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
629
630 * target.h (struct target_ops) <make_corefile_notes>:
631 Change return type to unique pointer.
632 * target.c (dummy_make_corefile_notes): Likewise.
633 * exec.c (struct exec_target) <make_corefile_notes>:
634 Likewise.
635 (exec_target::make_corefile_notes): Likewise.
636 * procfs.c (class procfs_target) <make_corefile_notes>:
637 Likewise.
638 (procfs_do_thread_registers): Adjust to unique pointer.
639 (struct procfs_corefile_thread_data): Add constructor.
640 <note_data>: Change type to unique pointer.
641 (procfs_corefile_thread_callback): Adjust to unique pointer.
642 (procfs_target::make_corefile_notes): Change return type to
643 unique pointer.
644 * target-delegates.c: Re-generate.
645 * gcore.c (write_gcore_file_1): Adjust.
646 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
647 New.
648
649 2020-10-22 Tom de Vries <tdevries@suse.de>
650
651 * block.c (find_block_in_blockvector): Make sure the returned block
652 contains pc.
653
654 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
655
656 PR gdb/26693
657 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
658 parameter.
659 (load_cu): Pass existing CU.
660 (process_imported_unit_die): Likewise.
661 (follow_die_offset): Likewise.
662
663 2020-10-22 Luis Machado <luis.machado@linaro.org>
664
665 * corelow.c (core_target::xfer_partial): Also check for an empty
666 m_core_unavailable_mappings vector.
667
668 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
671 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
672 * f-exp.y (arglist): Allow for a series of subranges.
673 (subrange): Add cases for subranges with strides.
674 * f-lang.c (value_f90_subarray): Catch use of array strides and
675 throw an error.
676 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
677
678 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * expprint.c (print_subexp_standard): Change enum range_type to
681 range_flag and rename variables to match.
682 (dump_subexp_body_standard): Likewise.
683 * expression.h (enum range_type): Rename to...
684 (enum range_flag): ...this.
685 (range_types): Rename to...
686 (range_flags): ...this.
687 * f-lang.c (value_f90_subarray): Change enum range_type to
688 range_flag and rename variables to match.
689 * parse.c (operator_length_standard): Likewise.
690 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
691 range_type to range_flag.
692 * rust-lang.c (rust_evaluate_funcall): Likewise.
693 (rust_range): Likewise.
694 (rust_compute_range): Likewise.
695 (rust_subscript): Likewise.
696
697 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * expprint.c (print_subexp_standard): Update to reflect changes to
700 enum range_type.
701 (dump_subexp_body_standard): Likewise.
702 * expression.h (enum range_type): Convert to a bit field enum, and
703 make the enum unsigned.
704 * f-exp.y (subrange): Update to reflect changes to enum
705 range_type.
706 * f-lang.c (value_f90_subarray): Likewise.
707 * parse.c (operator_length_standard): Likewise.
708 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
709 * rust-lang.c (rust_range): Likewise.
710 (rust_compute_range): Likewise.
711 (rust_subscript): Likewise.
712
713 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
714
715 * infrun.c (displaced_step_in_progress_thread): Fix comment.
716 (displaced_step_in_progress): Fix comment.
717
718 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * gdbarch.sh (make_corefile_notes): Return unique pointer.
721 * gdbarch.c: Re-generate.
722 * gdbarch.h: Re-generate.
723 * gcore.c (write_gcore_file_1): Adjust.
724 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
725 constructor.
726 <note_data>: Change type to unique pointer.
727 <abort_iteration>: Change type to bool.
728 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
729 (fbsd_collect_thread_registers): Return void, adjust.
730 (struct fbsd_corefile_thread_data): Add construtor.
731 <note_data>: Change type to unique pointer.
732 (fbsd_corefile_thread): Adjust.
733 (fbsd_make_corefile_notes): Return unique pointer, adjust.
734 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
735 to unique pointer, adjust.
736 (struct linux_collect_regset_section_cb_data): Add constructor.
737 <note_data>: Change type to unique pointer.
738 <abort_iteration>: Change type to bool.
739 (linux_collect_thread_registers): Return void, adjust.
740 (struct linux_corefile_thread_data): Add constructor.
741 <note_data>: Change type to unique pointer.
742 (linux_corefile_thread): Adjust.
743 (linux_make_corefile_notes): Return unique pointer, adjust.
744
745 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
748 * gdbarch.c: Re-generate.
749 * gdbarch.h: Re-generate.
750 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
751 bool.
752 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
753 Likewise.
754 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
755 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
756 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
757 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
758
759 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * gdbarch.sh: Make generated predicates return bool.
762 * gdbarch.c: Re-generate.
763 * gdbarch.h: Re-generate.
764
765 2020-10-20 Tom Tromey <tom@tromey.com>
766
767 * varobj-iter.h (struct varobj_item): Remove typedef.
768
769 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * infrun.c (currently_stepping): Change int to bool
772 (maybe_software_singlestep): Likewise.
773 (show_stop_on_solib_events): Likewise.
774 (stepping_past_nonsteppable_watchpoint): Likewise.
775 (displaced_step_in_progress_any_inferior): Likewise.
776 (displaced_step_in_progress_thread): Likewise.
777 (keep_going_stepped_thread): Likewise.
778 (thread_still_needs_step_over): Likewise.
779 (start_step_over): Likewise.
780 (do_target_resume): Likewise.
781 (resume_1): Likewise.
782 (clear_proceed_status): Likewise.
783 (thread_still_needs_step_over_bp): Likewise.
784 (proceed): Likewise.
785 (switch_back_to_stepped_thread): Likewise.
786 (adjust_pc_after_break): Likewise.
787 (stepped_in_from): Likewise.
788 (handle_stop_requested): Likewise.
789 (handle_syscall_event): Likewise.
790 (handle_no_resumed): Likewise.
791 (handle_inferior_event): Likewise.
792 (finish_step_over): Likewise.
793 (handle_signal_stop): Likewise.
794 (process_event_stop_test): Likewise.
795
796 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
797
798 * infrun.c (get_displaced_stepping_state): Fix comment.
799
800 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
801
802 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
803
804 2020-10-19 Tom Tromey <tromey@adacore.com>
805
806 PR tui/26719
807 * tui/tui-winsource.h (struct tui_source_window_base)
808 <refresh_window>: Rename from refresh_pad.
809 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
810 Rename from refresh_pad.
811 (tui_source_window_base::show_source_content)
812 (tui_source_window_base::do_scroll_horizontal): Update.
813
814 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815
816 * thread.c (_initialize_thread): Fine-tune the help text of
817 'info threads'.
818
819 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
820
821 * frame.c: Remove the unused 'uinteger_option_def' type alias.
822
823 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
824
825 * breakpoint.c (handle_jit_event): Add an argument, change how
826 `jit_event_handler` is called.
827
828 2020-10-17 Tom Tromey <tom@tromey.com>
829
830 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
831 (scan_xcoff_symtab): Update.
832 * psymtab.h (class psymtab_storage) <global_psymbols,
833 static_psymbols, current_global_psymbols,
834 current_static_psymbols>: Remove.
835 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
836 (match_partial_symbol, lookup_partial_symbol): Update.
837 (print_partial_symbols): Change parameters.
838 (dump_psymtab, recursively_search_psymtabs)
839 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
840 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
841 (concat): Remove.
842 (end_psymtab_common): Simplify.
843 (append_psymbol_to_list): Change parameters.
844 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
845 (init_psymbol_list): Simplify.
846 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
847 * psympriv.h (struct partial_symtab) <empty>: New method.
848 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
849 Remove.
850 <global_psymbols, static_psymbols>: New members.
851 <add_psymbol>: New methods.
852 (add_psymbol_to_list): Don't declare.
853 (psymbol_placement): Move earlier.
854 * mdebugread.c (parse_partial_symbols): Update.
855 (handle_psymbol_enumerators): Change parameters.
856 (mdebug_expand_psymtab): Update.
857 * dwarf2/read.c (process_psymtab_comp_unit_reader)
858 (add_partial_symbol): Update.
859 * dwarf2/index-write.c (write_psymbols): Change parameters.
860 (write_one_signatured_type): Update.
861 (recursively_count_psymbols): Update.
862 (recursively_write_psymbols): Update.
863 (class debug_names) <recursively_write_psymbols>: Update.
864 <write_psymbols>: Change parameters.
865 <write_one_signatured_type>: Update.
866 * dbxread.c (read_dbx_symtab): Update.
867 (dbx_end_psymtab): Use partial_symtab::empty.
868 * ctfread.c (struct ctf_context) <pst>: New member.
869 (create_partial_symtab): Set it.
870 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
871 (scan_partial_symbols): Use the psymtab's context. Update.
872
873 2020-10-17 Tom Tromey <tom@tromey.com>
874
875 * valprint.c (generic_value_print): Remove comment.
876 * m2-valprint.c (m2_value_print_inner): Remove comment.
877 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
878 type.
879
880 2020-10-17 Tom de Vries <tdevries@suse.de>
881
882 PR symtab/26317
883 * source.c (select_source_symtab): Handling sal.symtab == NULL for
884 symbol main.
885
886 2020-10-14 Tom de Vries <tdevries@suse.de>
887
888 PR gdb/26733
889 * solib.c (solib_contains_address_p): Handle
890 'solib->sections == nullptr'.
891
892 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
893
894 PR gdb/26642
895 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
896 target can't do async.
897 * target.c (target_wait): Assert that we don't pass
898 TARGET_WNOHANG to a target that can't async.
899
900 2020-10-13 Kamil Rytarowski <n54@gmx.com>
901
902 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
903 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
904 * alpha-bsd-nat.c: Adjust include.
905 * alpha-bsd-tdep.h: Adjust comment.
906 * alpha-nbsd-tdep.c: Rename to ...
907 * alpha-netbsd-tdep.c: ... this, adjust include.
908 * amd64-nbsd-nat.c: Rename to ...
909 * amd64-netbsd-nat.c: ... this, adjust include.
910 * amd64-nbsd-tdep.c: Rename to ...
911 * amd64-netbsd-tdep.c: ... this, adjust include.
912 * amd64-tdep.h: Adjust include.
913 * arm-nbsd-nat.c: Rename to ...
914 * arm-netbsd-nat.c: ... this, adjust include.
915 * arm-nbsd-tdep.c: Rename to ...
916 * arm-netbsd-tdep.c: ... this, adjust include.
917 * arm-nbsd-tdep.h: Rename to ...
918 * arm-netbsd-tdep.h: ... this, adjust include.
919 * configure.nat: Adjust file lists.
920 * configure.tgt: Likewise.
921 * hppa-nbsd-nat.c: Rename to ...
922 * hppa-netbsd-nat.c: ... this, adjust include.
923 * hppa-nbsd-tdep.c: Rename to ...
924 * hppa-netbsd-tdep.c: ... this, adjust include.
925 * i386-nbsd-nat.c: Rename to ...
926 * i386-netbsd-nat.c: ... this, adjust include.
927 * i386-nbsd-tdep.c: Rename to ...
928 * i386-netbsd-tdep.c: ... this, adjust include.
929 * m68k-bsd-nat.c: Adjust include.
930 * mips-nbsd-nat.c: Rename to ...
931 * mips-netbsd-nat.c: ... this, adjust include.
932 * mips-nbsd-tdep.c: Rename to ...
933 * mips-netbsd-tdep.c: ... this, adjust include.
934 * mips-nbsd-tdep.h: Rename to ...
935 * mips-netbsd-tdep.h: ... this.
936 * nbsd-nat.c: Rename to ...
937 * netbsd-nat.c: ... this, adjust include.
938 * nbsd-nat.h: Rename to ...
939 * netbsd-nat.h: ... this, adjust include.
940 * nbsd-tdep.c: Rename to ...
941 * netbsd-tdep.c: ... this, adjust include.
942 * nbsd-tdep.h: Rename to ...
943 * netbsd-tdep.h: ... this.
944 * ppc-nbsd-nat.c: Rename to ...
945 * ppc-netbsd-nat.c: ... this, adjust include.
946 * ppc-nbsd-tdep.c: Rename to ...
947 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
948 * ppc-nbsd-tdep.h: Rename to ...
949 * ppc-netbsd-tdep.h: ... this.
950 * sh-nbsd-nat.c: Rename to ...
951 * sh-netbsd-nat.c: ... this, adjust include.
952 * sh-nbsd-tdep.c: Rename to ...
953 * sh-netbsd-tdep.c: ... this, adjust include.
954 * sparc-nbsd-nat.c: Rename to ...
955 * sparc-netbsd-nat.c: ... this.
956 * sparc-nbsd-tdep.c: Rename to ...
957 * sparc-netbsd-tdep.c: ... this, adjust include.
958 * sparc64-nbsd-nat.c: Rename to ...
959 * sparc64-netbsd-nat.c: ... this.
960 * sparc64-nbsd-tdep.c: Rename to ...
961 * sparc64-netbsd-tdep.c: ... this, adjust include.
962 * sparc64-tdep.h: Adjust comment.
963 * vax-bsd-nat.c: Adjust include.
964 * vax-nbsd-tdep.c: Rename to ...
965 * vax-netbsd-tdep.c: ... this, adjust include.
966
967 2020-10-12 Tom Tromey <tom@tromey.com>
968
969 * target.h (struct target_ops) <get_section_table>: Update.
970 (target_get_section_table): Update.
971 * target.c (target_get_section_table, target_section_by_addr)
972 (memory_xfer_partial_1): Update.
973 * target-section.h (target_section_table): Now an alias.
974 * target-delegates.c: Rebuild.
975 * target-debug.h (target_debug_print_target_section_table_p):
976 Rename from target_debug_print_struct_target_section_table_p.
977 * symfile.c (build_section_addr_info_from_section_table): Update.
978 * solib.c (solib_map_sections, solib_contains_address_p): Update.
979 * solib-svr4.c (scan_dyntag): Update.
980 * solib-dsbt.c (scan_dyntag): Update.
981 * remote.c (remote_target::remote_xfer_live_readonly_partial):
982 Update.
983 * record-full.c (record_full_core_target::xfer_partial): Update.
984 * progspace.h (struct program_space) <target_sections>: Update.
985 * exec.h (print_section_info): Update.
986 * exec.c (exec_target::close, build_section_table)
987 (add_target_sections, add_target_sections_of_objfile)
988 (remove_target_sections, exec_on_vfork)
989 (section_table_available_memory)
990 (section_table_xfer_memory_partial)
991 (exec_target::get_section_table, exec_target::xfer_partial)
992 (print_section_info, set_section_command)
993 (exec_set_section_address, exec_target::has_memory): Update.
994 * corelow.c (core_target::build_file_mappings)
995 (core_target::xfer_partial, core_target::info_proc_mappings)
996 (core_target::info_proc_mappings): Update.
997 * bfd-target.c (class target_bfd): Update
998
999 2020-10-12 Tom Tromey <tom@tromey.com>
1000
1001 * progspace.c (program_space::~program_space): Don't call
1002 clear_section_table.
1003 * exec.h (clear_section_table): Don't declare.
1004 * exec.c (exec_target::close): Update.
1005 (clear_section_table): Remove.
1006
1007 2020-10-12 Tom Tromey <tom@tromey.com>
1008
1009 * exec.c (add_target_sections_of_objfile): Simplify.
1010
1011 2020-10-12 Tom Tromey <tom@tromey.com>
1012
1013 * solib.c (solib_map_sections): Update.
1014 * record-full.c (record_full_core_open_1): Update.
1015 * exec.h (build_section_table): Return a target_section_table.
1016 * exec.c (exec_file_attach): Update.
1017 (build_section_table): Return a target_section_table.
1018 * corelow.c (core_target::core_target): Update.
1019 * bfd-target.c (target_bfd::target_bfd): Update.
1020
1021 2020-10-12 Tom Tromey <tom@tromey.com>
1022
1023 * target.c (target_section_by_addr, memory_xfer_partial_1):
1024 Update.
1025 * target-section.h (struct target_section_table): Use
1026 std::vector.
1027 * symfile.h (build_section_addr_info_from_section_table): Take a
1028 target_section_table.
1029 * symfile.c (build_section_addr_info_from_section_table): Take a
1030 target_section_table.
1031 * solist.h (struct so_list) <sections>: Change type.
1032 <sections_end>: Remove.
1033 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1034 (solib_contains_address_p): Update.
1035 * solib-svr4.c (scan_dyntag): Update.
1036 * solib-dsbt.c (scan_dyntag): Update.
1037 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1038 Update.
1039 * record-full.c (record_full_core_start, record_full_core_end):
1040 Remove.
1041 (record_full_core_sections): New global.
1042 (record_full_core_open_1, record_full_core_target::xfer_partial):
1043 Update.
1044 * exec.h (build_section_table, section_table_xfer_memory_partial)
1045 (add_target_sections): Take a target_section_table.
1046 * exec.c (exec_file_attach, clear_section_table): Update.
1047 (resize_section_table): Remove.
1048 (build_section_table, add_target_sections): Take a
1049 target_section_table.
1050 (add_target_sections_of_objfile, remove_target_sections)
1051 (exec_on_vfork): Update.
1052 (section_table_available_memory): Take a target_section_table.
1053 (section_table_read_available_memory): Update.
1054 (section_table_xfer_memory_partial): Take a target_section_table.
1055 (print_section_info, set_section_command)
1056 (exec_set_section_address, exec_target::has_memory): Update.
1057 * corelow.c (class core_target) <m_core_section_table,
1058 m_core_file_mappings>: Remove braces.
1059 <~core_target>: Remove.
1060 (core_target::core_target): Update.
1061 (core_target::~core_target): Remove.
1062 (core_target::build_file_mappings)
1063 (core_target::xfer_memory_via_mappings)
1064 (core_target::xfer_partial, core_target::info_proc_mappings):
1065 Update.
1066 * bfd-target.c (target_bfd::xfer_partial): Update.
1067 (target_bfd::target_bfd): Update.
1068 (target_bfd::~target_bfd): Remove.
1069
1070 2020-10-12 Tom Tromey <tom@tromey.com>
1071
1072 * target.h (struct target_section, struct target_section_table):
1073 Move to target-section.h.
1074 * target-section.h: New file.
1075
1076 2020-10-12 Pedro Alves <pedro@palves.net>
1077
1078 PR exp/26602
1079 * valops.c (struct struct_field_searcher): New.
1080 (update_search_result): Rename to ...
1081 (struct_field_searcher::update_result): ... this. Simplify
1082 prototype. Record all found fields.
1083 (do_search_struct_field): Rename to ...
1084 (struct_field_searcher::search): ... this. Simplify prototype.
1085 Maintain stack of visited baseclass path. Call update_result for
1086 fields too. Keep searching fields in baseclasses instead of
1087 stopping at the first found field.
1088 (search_struct_field): Use struct_field_searcher. When looking
1089 for fields, report ambiguous access attempts.
1090
1091 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1092
1093 * frame.c (inside_main_func): Check full symbols as well as
1094 minimal symbols.
1095
1096 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1097
1098 * ada-lang.c (advance_wild_match): Rewrite the function's
1099 description. Change the type of target0, t0 and t1 to char.
1100
1101 2020-10-09 Tom Tromey <tromey@adacore.com>
1102
1103 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1104
1105 2020-10-09 Tom Tromey <tromey@adacore.com>
1106
1107 * ada-lang.h (ada_encode): Return std::string.
1108 * ada-lang.c (ada_encode_1): Return std::string.
1109 (ada_encode): Likewise.
1110 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1111 Update.
1112 * ada-exp.y (block_lookup, write_var_or_type): Update.
1113
1114 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1115
1116 PR exp/26714
1117 * printcmd.c (print_formatted): Handle void results as
1118 unformatted prints.
1119
1120 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * arch/aarch32.c (aarch32_create_target_description): Release the
1123 target_desc_up as late as possible.
1124 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1125 * arch/amd64.c (amd64_create_target_description): Likewise.
1126 * arch/arc.c (arc_create_target_description): Return a
1127 target_desc_up, don't release it.
1128 * arch/arc.h (arc_create_target_description): Update declaration.
1129 (arc_lookup_target_description): Move target_desc_up into the
1130 cache, and return a borrowed pointer.
1131 * arch/arm.c (arm_create_target_description): Release the
1132 target_desc_up as late as possible.
1133 * arch/i386.c (i386_create_target_description): Likewise.
1134 * arch/riscv.h (riscv_create_target_description): Update
1135 declaration to match definition.
1136 * arch/tic6x.c (tic6x_create_target_description): Release the
1137 target_desc_up as late as possible.
1138
1139 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1142 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1143
1144 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1145
1146 * source.c (directory_command): Notify observers that "directories"
1147 parameter has changed.
1148
1149 2020-10-08 Tom Tromey <tom@tromey.com>
1150
1151 * cli/cli-cmds.c (print_disassembly): Style function name and
1152 addresses. Add _() wrappers.
1153
1154 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1155
1156 * NEWS: Mention ARC support in GDBserver.
1157
1158 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * arch/aarch32.c (aarch32_create_target_description): Release
1161 unique_ptr returned from allocate_target_description.
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): Likewise.
1165 * arch/arm.c (arm_create_target_description): Likewise.
1166 * arch/i386.c (i386_create_target_description): Likewise.
1167 * arch/riscv.c (riscv_create_target_description): Update return
1168 type. Handle allocate_target_description returning a unique_ptr.
1169 (riscv_lookup_target_description): Update to handle unique_ptr.
1170 * arch/tic6x.c (tic6x_create_target_description): Release
1171 unique_ptr returned from allocate_target_description.
1172 * features/microblaze-with-stack-protect.c: Regenerate.
1173 * features/microblaze.c: Regenerate.
1174 * features/mips-dsp-linux.c: Regenerate.
1175 * features/mips-linux.c: Regenerate.
1176 * features/mips64-dsp-linux.c: Regenerate.
1177 * features/mips64-linux.c: Regenerate.
1178 * features/nds32.c: Regenerate.
1179 * features/nios2.c: Regenerate.
1180 * features/or1k.c: Regenerate.
1181 * features/rs6000/powerpc-32.c: Regenerate.
1182 * features/rs6000/powerpc-32l.c: Regenerate.
1183 * features/rs6000/powerpc-403.c: Regenerate.
1184 * features/rs6000/powerpc-403gc.c: Regenerate.
1185 * features/rs6000/powerpc-405.c: Regenerate.
1186 * features/rs6000/powerpc-505.c: Regenerate.
1187 * features/rs6000/powerpc-601.c: Regenerate.
1188 * features/rs6000/powerpc-602.c: Regenerate.
1189 * features/rs6000/powerpc-603.c: Regenerate.
1190 * features/rs6000/powerpc-604.c: Regenerate.
1191 * features/rs6000/powerpc-64.c: Regenerate.
1192 * features/rs6000/powerpc-64l.c: Regenerate.
1193 * features/rs6000/powerpc-7400.c: Regenerate.
1194 * features/rs6000/powerpc-750.c: Regenerate.
1195 * features/rs6000/powerpc-860.c: Regenerate.
1196 * features/rs6000/powerpc-altivec32.c: Regenerate.
1197 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1198 * features/rs6000/powerpc-altivec64.c: Regenerate.
1199 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1200 * features/rs6000/powerpc-e500.c: Regenerate.
1201 * features/rs6000/powerpc-e500l.c: Regenerate.
1202 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1203 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1204 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1205 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1206 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1207 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1208 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1209 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1210 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1211 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1212 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1213 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1214 * features/rs6000/powerpc-vsx32.c: Regenerate.
1215 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1216 * features/rs6000/powerpc-vsx64.c: Regenerate.
1217 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1218 * features/rs6000/rs6000.c: Regenerate.
1219 * features/rx.c: Regenerate.
1220 * features/s390-gs-linux64.c: Regenerate.
1221 * features/s390-linux32.c: Regenerate.
1222 * features/s390-linux32v1.c: Regenerate.
1223 * features/s390-linux32v2.c: Regenerate.
1224 * features/s390-linux64.c: Regenerate.
1225 * features/s390-linux64v1.c: Regenerate.
1226 * features/s390-linux64v2.c: Regenerate.
1227 * features/s390-te-linux64.c: Regenerate.
1228 * features/s390-tevx-linux64.c: Regenerate.
1229 * features/s390-vx-linux64.c: Regenerate.
1230 * features/s390x-gs-linux64.c: Regenerate.
1231 * features/s390x-linux64.c: Regenerate.
1232 * features/s390x-linux64v1.c: Regenerate.
1233 * features/s390x-linux64v2.c: Regenerate.
1234 * features/s390x-te-linux64.c: Regenerate.
1235 * features/s390x-tevx-linux64.c: Regenerate.
1236 * features/s390x-vx-linux64.c: Regenerate.
1237 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1238 from allocate_target_description.
1239 * target-descriptions.c (allocate_target_description): Update
1240 return type.
1241 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1242 allocate_target_description.
1243
1244 2020-10-07 Tom Tromey <tromey@adacore.com>
1245
1246 * unittests/search-memory-selftests.c: New file.
1247 * Makefile.in (SELFTESTS_SRCS): Add
1248 unittests/search-memory-selftests.c.
1249
1250 2020-10-07 Tom Tromey <tromey@adacore.com>
1251
1252 PR gdb/16930:
1253 * findcmd.c (_initialize_mem_search): Mention that the range is
1254 inclusive.
1255
1256 2020-10-07 Tom Tromey <tromey@adacore.com>
1257
1258 * target.h (simple_search_memory): Don't declare.
1259 * target.c (simple_search_memory): Move to gdbsupport.
1260 (default_search_memory): Update.
1261 * remote.c (remote_target::search_memory): Update.
1262
1263 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * Makefile.in (COMPILE): Add CXXFLAGS.
1266 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1267 (check-headers): Add CXXFLAGS.
1268
1269 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1270
1271 * arc-linux-tdep.h: New file.
1272 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1273 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1274 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1275 arc_linux_gregset, arc_linux_v2_regset,
1276 arc_linux_iterate_over_regset_sections,
1277 arc_linux_core_read_description): Implement.
1278 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1279 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1280 (arc_gdbarch_features_create): Add.
1281 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1282
1283 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1284
1285 * arch/arc.h: Rename "arc_gdbarch_features" to
1286 "arc_arch_features".
1287 * arc-tdep.h: Likewise.
1288 * arc-tdep.c: Likewise.
1289
1290 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1291
1292 * infcmd.c (attach_command): Remove the redundant call to
1293 `clear_proceed_status`.
1294
1295 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1296
1297 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1298
1299 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1300
1301 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1302 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1303 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1304
1305 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1308 (_initialize_break_catch_sig): Don't allocate array.
1309
1310 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1311
1312 * symtab.c (find_pc_line): Return unmapped addresses when the
1313 requested address is also unmapped.
1314
1315 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1318 tui/tui-out.h.
1319
1320 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1323 type::is_vector instead of TYPE_VECTOR.
1324
1325 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * auto-load.c (auto_load_objfile_script_1): Don't use
1328 debugfile_holder as temporary variable when stripping drive
1329 letter.
1330
1331 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1332
1333 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1334 Add TYPE_CODE_COMPLEX.
1335 (amd64_windows_return_value): Fix types returned via XMM0.
1336
1337 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1338
1339 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1340 AArch64/ARM maintainers.
1341
1342 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * NEWS: Mention set/show debug event-loop.
1345
1346 2020-10-02 Tom Tromey <tromey@adacore.com>
1347
1348 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1349 REG_EXTENDED.
1350
1351 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1352
1353 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1354 * procfs.c (procfs_inferior_created): Remove.
1355 (_initialize_procfs): Don't register procfs_inferior_created.
1356
1357 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * async-event.c (invoke_async_signal_handlers): Add debug
1360 print.
1361 (check_async_event_handlers): Likewise.
1362 * event-top.c (show_debug_event_loop): New function.
1363 (_initialize_event_top): Register "set debug event-loop"
1364 setting.
1365
1366 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1369 * debug.h: Remove.
1370 * infrun.c: Include gdbsupport/common-debug.h.
1371 * linux-nat.c: Likewise.
1372
1373 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * async-event.h (create_async_signal_handler): Add name
1376 parameter.
1377 (create_async_event_handler): Likewise.
1378 * async-event.c (struct async_signal_handler) <name>: New field.
1379 (struct async_event_handler) <name>: New field.
1380 (create_async_signal_handler): Assign name.
1381 (create_async_event_handler): Assign name.
1382 * event-top.c (async_init_signals): Pass name when creating
1383 handler.
1384 * infrun.c (_initialize_infrun): Likewise.
1385 * record-btrace.c (record_btrace_push_target): Likewise.
1386 * record-full.c (record_full_open): Likewise.
1387 * remote-notif.c (remote_notif_state_allocate): Likewise.
1388 * remote.c (remote_target::open_1): Likewise.
1389 * tui/tui-win.c (tui_initialize_win): Likewise.
1390
1391 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1392
1393 * async-event.c (initialize_async_signal_handlers): Pass name to
1394 add_file_handler
1395 * event-top.c (ui_register_input_event_handler): Likewise.
1396 * linux-nat.c (linux_nat_target::async): Likewise.
1397 * run-on-main-thread.c (_initialize_run_on_main_thread):
1398 Likewise
1399 * ser-base.c (reschedule): Likewise.
1400 (ser_base_async): Likewise.
1401 * tui/tui-io.c: Likewise.
1402 * top.h (struct ui) <num>: New field.
1403 * top.c (highest_ui_num): New variable.
1404 (ui::ui): Initialize num.
1405
1406 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1407
1408 * observable.h <inferior_created>: Remove parameters. Update all
1409 listeners.
1410 * inferior.h (post_create_inferior): Remove target parameter.
1411 Update all callers.
1412
1413 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1414
1415 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1416 and DW_MACRO_undef_strx.
1417 (dwarf_decode_macros): Likewise
1418 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1419 which is the value of DW_AT_str_offsets_base.
1420 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1421 str_offsets_base.
1422
1423 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1424
1425 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1426
1427 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1428
1429 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1430 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1431
1432 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1433
1434 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1435
1436 2020-09-30 Tom de Vries <tdevries@suse.de>
1437
1438 PR symtab/26683
1439 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1440
1441 2020-09-30 Tom Tromey <tromey@adacore.com>
1442
1443 * dwarf2/read.c (handle_variant): Use constant_value.
1444
1445 2020-09-29 Tom Tromey <tom@tromey.com>
1446
1447 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1448 (read_file_scope, dwarf2_get_pc_bounds)
1449 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1450 (read_structure_type, handle_struct_member_die)
1451 (read_enumeration_type, read_array_type, read_set_type)
1452 (read_tag_pointer_type, read_tag_reference_type)
1453 (read_subroutine_type, read_base_type, read_subrange_type)
1454 (read_full_die_1, partial_die_info::read)
1455 (partial_die_info::read, by, new_symbol)
1456 (dwarf2_const_value_data, dwarf2_const_value_attr)
1457 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1458 (prepare_one_comp_unit): Update.
1459 * dwarf2/attribute.h (DW_UNSND): Remove.
1460
1461 2020-09-29 Tom Tromey <tom@tromey.com>
1462
1463 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1464 (read_subroutine_type, partial_die_info::read)
1465 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1466 (dwarf2_add_member_fn): Update.
1467 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1468 * dwarf2/attribute.c (attribute::as_boolean): New method.
1469
1470 2020-09-29 Tom Tromey <tom@tromey.com>
1471
1472 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1473 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1474 method.
1475 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1476
1477 2020-09-29 Tom Tromey <tom@tromey.com>
1478
1479 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1480 the attribute's form.
1481
1482 2020-09-29 Tom Tromey <tom@tromey.com>
1483
1484 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1485 (dwarf2_add_member_fn): Update.
1486 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1487 * dwarf2/attribute.c (attribute::defaulted): New method, from
1488 is_valid_DW_AT_defaulted.
1489
1490 2020-09-29 Tom Tromey <tom@tromey.com>
1491
1492 * dwarf2/read.c (dw2_get_file_names_reader)
1493 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1494 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1495 (dwarf2_symbol_mark_computed): Use as_unsigned.
1496 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1497 method.
1498 <form_is_section_offset>: Update comment.
1499
1500 2020-09-29 Tom Tromey <tom@tromey.com>
1501
1502 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1503 dwarf2_default_access_attribute. Look up attribute.
1504 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1505 Update.
1506
1507 2020-09-29 Tom Tromey <tom@tromey.com>
1508
1509 * dwarf2/read.c (skip_one_die): Update.
1510 (read_full_die_1): Change how reprocessing is done.
1511 (partial_die_info::read): Update.
1512 (read_attribute_value): Remove need_reprocess parameter.
1513 (read_attribute): Likewise.
1514 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1515 New method.
1516
1517 2020-09-29 Tom Tromey <tom@tromey.com>
1518
1519 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1520 (dwarf2_const_value_attr, dump_die_shallow)
1521 (dwarf2_fetch_constant_bytes): Update.
1522 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1523 comment.
1524 <set_address>: New method.
1525 (DW_ADDR): Remove.
1526 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1527 (attribute::as_string, attribute::as_address): Add assert.
1528
1529 2020-09-29 Tom Tromey <tom@tromey.com>
1530
1531 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1532 (read_attribute_reprocess, read_attribute_value): Update.
1533 (read_attribute): Clear requires_reprocessing.
1534 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1535 form_requires_reprocessing>: New methods.
1536 <string_init>: Clear requires_reprocessing.
1537 <set_unsigned_reprocess>: New method.
1538 <name>: Shrink by one bit.
1539 <requires_reprocessing>: New member.
1540 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1541 method.
1542
1543 2020-09-29 Tom Tromey <tom@tromey.com>
1544
1545 * dwarf2/read.c (read_attribute_value): Update.
1546 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1547 set_unsigned>: New methods.
1548 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1549
1550 2020-09-29 Tom Tromey <tom@tromey.com>
1551
1552 * dwarf2/read.c (get_alignment, read_array_order)
1553 (read_attribute_value, dwarf2_const_value_attr)
1554 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1555 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1556 New methods.
1557 (DW_SND): Remove.
1558
1559 2020-09-29 Tom Tromey <tom@tromey.com>
1560
1561 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1562 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1563 Update.
1564 * dwarf2/attribute.h (struct attribute) <as_signature,
1565 set_signature>: New methods.
1566 (DW_SIGNATURE): Remove.
1567
1568 2020-09-29 Tom Tromey <tom@tromey.com>
1569
1570 * dwarf2/read.c (read_call_site_scope)
1571 (handle_data_member_location, dwarf2_add_member_fn)
1572 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1573 (partial_die_info::read, read_attribute_value)
1574 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1575 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1576 (dwarf2_symbol_mark_computed): Update.
1577 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1578 methods.
1579 (DW_BLOCK): Remove.
1580 * dwarf2/attribute.c (attribute::form_is_block): Add
1581 DW_FORM_data16.
1582
1583 2020-09-29 Tom Tromey <tom@tromey.com>
1584
1585 * dwarf2/read.c (read_cutu_die_from_dwo)
1586 (read_attribute_reprocess, read_attribute_value, read_attribute)
1587 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1588 (dwarf2_fetch_constant_bytes): Update.
1589 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1590 <set_string_noncanonical, set_string_canonical>: New methods.
1591 <string_is_canonical>: Update comment.
1592 <canonical_string_p>: Add assert.
1593 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1594 * dwarf2/attribute.c (attribute::form_is_string): New method.
1595 (attribute::string): Use it.
1596
1597 2020-09-29 Tom Tromey <tom@tromey.com>
1598
1599 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1600 (dump_die_shallow): Use canonical_string_p.
1601 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1602 method.
1603
1604 2020-09-29 Tom Tromey <tom@tromey.com>
1605
1606 * dwarf2/read.c (partial_die_info::read)
1607 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1608 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1609 attribute::as_string.
1610
1611 2020-09-29 Tom Tromey <tom@tromey.com>
1612
1613 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1614 DW_ADDR.
1615 (attribute::string): Don't use DW_STRING.
1616 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1617 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1618
1619 2020-09-29 Tom Tromey <tom@tromey.com>
1620
1621 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1622 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1623 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1624 * dwarf2/attribute.h (struct attribute): Rename methods.
1625 * dwarf2/attribute.c (attribute::as_address): Rename from
1626 value_as_address.
1627 (attribute::as_string): Rename from value_as_string.
1628
1629 2020-09-29 Tom Tromey <tom@tromey.com>
1630
1631 * dwarf2/read.c (partial_die_info::read) <case
1632 DW_AT_linkage_name>: Use value_as_string.
1633 (dwarf2_string_attr): Use value_as_string.
1634 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1635 method.
1636 * dwarf2/attribute.c (attribute::value_as_string): New method.
1637
1638 2020-09-29 Pedro Alves <pedro@palves.net>
1639
1640 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1641 defined before using '#pragma GCC diagnostic' instead of checking
1642 __clang__.
1643
1644 2020-09-28 Tom Tromey <tom@tromey.com>
1645
1646 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1647 (handle_signal_stop): Update.
1648 * procfs.c (procfs_target::insert_watchpoint): Update.
1649 * target.h (target_have_steppable_watchpoint): Now a function.
1650
1651 2020-09-28 Tom Tromey <tom@tromey.com>
1652
1653 * infrun.c (set_schedlock_func): Update.
1654 * target.h (target_can_lock_scheduler): Now a function.
1655
1656 2020-09-28 Tom Tromey <tom@tromey.com>
1657
1658 * inferior.h (class inferior) <has_execution>: Update.
1659 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1660 * valops.c (find_function_in_inferior)
1661 (value_allocate_space_in_inferior): Update.
1662 * top.c (kill_or_detach): Update.
1663 * target.c (target_preopen, set_target_permissions): Update.
1664 (target_has_execution_current): Remove.
1665 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1666 Update.
1667 * solib.c (update_solib_list, reload_shared_libraries): Update.
1668 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1669 * solib-dsbt.c (enable_break): Update.
1670 * score-tdep.c (score7_fetch_inst): Update.
1671 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1672 Update.
1673 * remote.c (remote_target::start_remote)
1674 (remote_target::remote_check_symbols, remote_target::open_1)
1675 (remote_target::remote_detach_1, remote_target::verify_memory)
1676 (remote_target::xfer_partial, remote_target::read_description)
1677 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1678 * record-full.c (record_full_open_1): Update.
1679 * record-btrace.c (record_btrace_target_open): Update.
1680 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1681 (value_nsstring): Update.
1682 * linux-thread-db.c (add_thread_db_info)
1683 (thread_db_find_new_threads_silently, check_thread_db_callback)
1684 (try_thread_db_load_1, record_thread): Update.
1685 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1686 Update.
1687 * linux-fork.c (checkpoint_command): Update.
1688 * infrun.c (set_non_stop, set_observer_mode)
1689 (check_multi_target_resumption, for_each_just_stopped_thread)
1690 (maybe_remove_breakpoints, normal_stop)
1691 (class infcall_suspend_state): Update.
1692 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1693 (info_program_command, attach_command): Update.
1694 * infcall.c (call_function_by_hand_dummy): Update.
1695 * inf-loop.c (inferior_event_handler): Update.
1696 * gcore.c (gcore_command, derive_heap_segment): Update.
1697 * exec.c (exec_file_command): Update.
1698 * eval.c (evaluate_subexp): Update.
1699 * compile/compile.c (compile_to_object): Update.
1700 * cli/cli-dump.c (restore_command): Update.
1701 * breakpoint.c (update_watchpoint)
1702 (update_inserted_breakpoint_locations)
1703 (insert_breakpoint_locations, get_bpstat_thread): Update.
1704 * target.h (target_has_execution): Remove macro.
1705 (target_has_execution_current): Don't declare.
1706 (target_has_execution): Rename from target_has_execution_1. Add
1707 argument default.
1708
1709 2020-09-28 Tom Tromey <tom@tromey.com>
1710
1711 * mi/mi-main.c (exec_reverse_continue)
1712 (mi_cmd_list_target_features): Update.
1713 * infrun.c (set_exec_direction_func): Update.
1714 * target.c (default_execution_direction): Update.
1715 * reverse.c (exec_reverse_once): Update.
1716 * target.h (target_can_execute_reverse): Now a function.
1717
1718 2020-09-28 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-regs.c (tui_get_register)
1721 (tui_data_window::show_registers): Update.
1722 * thread.c (scoped_restore_current_thread::restore)
1723 (scoped_restore_current_thread::scoped_restore_current_thread):
1724 Update.
1725 * regcache-dump.c (regcache_print): Update.
1726 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1727 Update.
1728 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1729 * mep-tdep.c (current_me_module, current_options): Update.
1730 * linux-thread-db.c (thread_db_load): Update.
1731 * infcmd.c (registers_info, info_vector_command)
1732 (info_float_command): Update.
1733 * ia64-tdep.c (ia64_frame_prev_register)
1734 (ia64_sigtramp_frame_prev_register): Update.
1735 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1736 * gcore.c (derive_stack_segment): Update.
1737 * frame.c (get_current_frame, has_stack_frames): Update.
1738 * findvar.c (language_defn::read_var_value): Update.
1739 * arm-tdep.c (arm_pc_is_thumb): Update.
1740 * target.c (target_has_registers): Rename from
1741 target_has_registers_1.
1742 * target.h (target_has_registers): Remove macro.
1743 (target_has_registers): Rename from target_has_registers_1.
1744
1745 2020-09-28 Tom Tromey <tom@tromey.com>
1746
1747 * windows-tdep.c (tlb_make_value): Update.
1748 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1749 * thread.c (scoped_restore_current_thread::restore)
1750 (scoped_restore_current_thread::scoped_restore_current_thread)
1751 (thread_command): Update.
1752 * stack.c (backtrace_command_1, frame_apply_level_command)
1753 (frame_apply_all_command, frame_apply_command): Update.
1754 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1755 Update.
1756 * gcore.c (derive_stack_segment): Update.
1757 * frame.c (get_current_frame, has_stack_frames): Update.
1758 * auxv.c (info_auxv_command): Update.
1759 * ada-tasks.c (ada_build_task_list): Update.
1760 * target.c (target_has_stack): Rename from target_has_stack_1.
1761 * target.h (target_has_stack): Remove macro.
1762 (target_has_stack): Rename from target_has_stack_1.
1763
1764 2020-09-28 Tom Tromey <tom@tromey.com>
1765
1766 * target.c (target_has_memory): Rename from target_has_memory_1.
1767 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1768 * thread.c (scoped_restore_current_thread::restore)
1769 (scoped_restore_current_thread::scoped_restore_current_thread):
1770 Update.
1771 * frame.c (get_current_frame, has_stack_frames): Update.
1772 * target.h (target_has_memory): Remove macro.
1773 (target_has_memory): Rename from target_has_memory_1.
1774
1775 2020-09-28 Tom Tromey <tom@tromey.com>
1776
1777 * target.c (target_has_all_memory_1): Remove.
1778 * target.h (target_has_all_memory): Remove define.
1779 (target_has_all_memory_1): Don't declare.
1780
1781 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1782
1783 * ser-base.c: Adjust comments formatting.
1784
1785 2020-09-27 Tom Tromey <tom@tromey.com>
1786
1787 PR tui/25342:
1788 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1789
1790 2020-09-27 Tom Tromey <tom@tromey.com>
1791
1792 PR tui/25342:
1793 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1794
1795 2020-09-27 Tom Tromey <tom@tromey.com>
1796
1797 * unittests/tui-selftests.c: Update.
1798 * tui/tui-winsource.h (struct tui_source_window_base)
1799 <extra_margin, show_line_number, refresh_pad>: New methods.
1800 <m_max_length, m_pad>: New members.
1801 (tui_copy_source_line): Update.
1802 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1803 first_col, line_width, ndigits parameters. Add length.
1804 (tui_source_window_base::show_source_line): Write to pad. Line
1805 number now 0-based.
1806 (tui_source_window_base::refresh_pad): New method.
1807 (tui_source_window_base::show_source_content): Write to pad. Call
1808 refresh_pad.
1809 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1810 not refill.
1811 (tui_source_window_base::update_exec_info): Call
1812 show_line_number.
1813 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1814 method.
1815 <m_digits>: New member.
1816 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1817 and m_max_length.
1818 (tui_source_window::show_line_number): New method.
1819 * tui/tui-io.h (tui_puts): Fix comment.
1820 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1821 m_max_length.
1822
1823 2020-09-27 Tom Tromey <tom@tromey.com>
1824
1825 * tui/tui-winsource.c
1826 (tui_source_window_base::set_is_exec_point_at): Don't call
1827 show_source_line.
1828
1829 2020-09-27 Tom Tromey <tom@tromey.com>
1830
1831 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1832 method.
1833 <erase>: Update.
1834 <cursor_x, cursor_y>: Remove.
1835 <m_inner_window>: New member.
1836 (tui_py_window::rerender): Create inner window.
1837 (tui_py_window::output): Write to inner window.
1838
1839 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1840
1841 PR python/26586
1842 * cli/cli-script.c (execute_control_commands): don't set
1843 instream to nullptr here as this breaks the from_tty argument
1844 to gdb.execute in Python.
1845 (execute_user_command): set instream to nullptr here instead.
1846
1847 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * infrun.h (infrun_debug_printf): Fix formatting.
1850 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1851
1852 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1853
1854 * compile/compile-object-load.h (struct munmap_list): Add
1855 explicitly-defined move constructor.
1856
1857 2020-09-24 Tom Tromey <tromey@adacore.com>
1858
1859 PR tui/26638:
1860 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1861 method.
1862 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1863 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1864 (tui_prev_win): Rewrite.
1865
1866 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1867
1868 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1869 in WOW64 processes as SIGINT.
1870 * nat/windows-nat.h: Make wow64_process a shared variable.
1871 * windows-nat.c: Remove static wow64_process variable.
1872
1873 2020-09-23 Tom Tromey <tom@tromey.com>
1874
1875 PR symtab/25470:
1876 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1877 offset and bit size.
1878 * printcmd.c (print_scalar_formatted): Handle zero-length
1879 integer.
1880 (print_scalar_formatted): Use bit_size_differs_p.
1881 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1882 constant.
1883 (union type_specific): <int_stuff>: New member.
1884 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1885 methods.
1886 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1887 TYPE_SPECIFIC_FIELD.
1888 (recursive_dump_type, copy_type_recursive): Update.
1889 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1890 DW_AT_data_bit_offset.
1891
1892 2020-09-23 Tom Tromey <tom@tromey.com>
1893
1894 * utils.h (class gdb_argv): Add move operators.
1895 <append>: New methods.
1896 * compile/compile.c (build_argc_argv): Remove.
1897 (compile_args_argc): Remove.
1898 (compile_args_argv): Change type.
1899 (set_compile_args): Simplify.
1900 (append_args): Remove.
1901 (filter_args): Remove argcp parameter.
1902 (get_args): Return gdb_argv. Simplify.
1903 (compile_to_object): Update.
1904
1905 2020-09-23 Tom Tromey <tom@tromey.com>
1906
1907 * compile/compile-object-run.c (do_module_cleanup)
1908 <~do_module_cleanup> :Remove.
1909 (do_module_cleanup): Update.
1910 * compile/compile-object-load.h (struct munmap_list): Add move
1911 assignment operator.
1912 <source_file>: Now a std::string.
1913 <munmap_list>: Rename. No longer a pointer.
1914 * compile/compile-object-load.c (struct setup_sections_data): Add
1915 constructor.
1916 <setup_one_section>: Declare.
1917 <munmap_list>: Move earlier.
1918 <m_bfd>: New member.
1919 <m_last_size, m_last_section_first, m_last_prot,
1920 m_last_max_alignment>: Rename, add initializers where needed.
1921 (setup_sections_data::setup_one_section): Rename from
1922 setup_sections. Update.
1923 (compile_object_load): Update. Don't use bfd_map_over_sections.
1924
1925 2020-09-23 Tom Tromey <tom@tromey.com>
1926
1927 * compile/compile-object-run.c (struct do_module_cleanup): Add
1928 parameters to constructor. Update destructor.
1929 <source_file, scope, scope_data, out_value_type, out_value_addr,
1930 munmap_list_head, objfile_name_string>: Remove.
1931 <module>: New member.
1932 (do_module_cleanup): Update.
1933 (compile_object_run): Update.
1934
1935 2020-09-23 Tom Tromey <tom@tromey.com>
1936
1937 * compile/compile.c (eval_compile_command): Update.
1938 * compile/compile-object-run.h (compile_object_run): Take a
1939 compile_module_up.
1940 * compile/compile-object-run.c (compile_object_run): Take a
1941 compile_module_up.
1942 * compile/compile-object-load.h (struct compile_module): Add
1943 constructor, destructor.
1944 (compile_module_up): New typedef.
1945 (compile_object_load): Return compile_object_up.
1946 * compile/compile-object-load.c (compile_object_load): Return
1947 compile_module_up.
1948
1949 2020-09-23 Tom Tromey <tom@tromey.com>
1950
1951 * compile/compile-object-run.c (struct do_module_cleanup): Add
1952 constructor, destructor.
1953 <objfile_name_string>: Don't use struct hack.
1954 (do_module_cleanup): Use delete.
1955 (compile_object_run): Use new.
1956
1957 2020-09-23 Tom Tromey <tom@tromey.com>
1958
1959 * compile/compile-cplus-types.c
1960 (compile_cplus_convert_struct_or_union): Use std::vector.
1961 (compile_cplus_convert_func): Likewise.
1962 * compile/compile-c-types.c (convert_func): Use std::vector.
1963
1964 2020-09-21 Tom Tromey <tromey@adacore.com>
1965
1966 * sparc-tdep.c (sparc32_skip_prologue): Use
1967 skip_prologue_using_sal.
1968
1969 2020-09-19 Tom Tromey <tom@tromey.com>
1970
1971 * symfile.c (add_section_size_callback): Remove.
1972 (load_one_section): Rename from load_section_callback. Change
1973 parameters.
1974 (generic_load): Use foreach.
1975
1976 2020-09-19 Tom Tromey <tom@tromey.com>
1977
1978 * exec.c (add_to_section_table): Remove.
1979 (build_section_table): Use foreach.
1980
1981 2020-09-19 Tom Tromey <tom@tromey.com>
1982
1983 * elfread.c (elf_locate_sections): Change parameters.
1984 (elf_symfile_read): Use foreach.
1985
1986 2020-09-19 Tom Tromey <tom@tromey.com>
1987
1988 * cli/cli-dump.c (struct callback_data): Remove.
1989 (restore_one_section): Rename from restore_section_callback.
1990 Change parameters.
1991 (restore_binary_file): Change parameters.
1992 (restore_command): Use foreach.
1993
1994 2020-09-19 Tom Tromey <tom@tromey.com>
1995
1996 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1997 (gcore_copy_callback): Likewise.
1998 (gcore_memory_sections): Use foreach.
1999
2000 2020-09-19 Tom Tromey <tom@tromey.com>
2001
2002 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
2003 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
2004 parameters.
2005 (generic_elf_osabi_sniffer): Use foreach.
2006 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
2007 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
2008
2009 2020-09-19 Tom Tromey <tom@tromey.com>
2010
2011 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2012 (dwarf2_get_dwz_file): Use foreach.
2013 (dwarf2_locate_dwo_sections): Change parameters.
2014 (open_and_init_dwo_file): Use foreach.
2015 (dwarf2_locate_common_dwp_sections): Change parameters.
2016 (open_and_init_dwp_file): Use foreach.
2017
2018 2020-09-19 Tom Tromey <tom@tromey.com>
2019
2020 * symfile.h: (find_lowest_section): Don't declare.
2021 * symfile.c (find_lowest_section): Now static. Change
2022 parameters.
2023 (struct place_section_arg): Remove.
2024 (place_section): Change parameters.
2025 (addr_info_make_relative): Use foreach.
2026 (symfile_dummy_outputs): Remove.
2027 (default_symfile_relocate): Use foreach.
2028
2029 2020-09-19 Tom Tromey <tom@tromey.com>
2030
2031 * objfiles.c (add_to_objfile_sections): Rename from
2032 add_to_objfile_sections_full.
2033 (add_to_objfile_sections): Remove.
2034 (build_objfile_section_table): Use foreach.
2035
2036 2020-09-19 Tom Tromey <tom@tromey.com>
2037
2038 * stap-probe.c (get_stap_base_address_1): Remove.
2039 (get_stap_base_address): Use foreach.
2040
2041 2020-09-19 Tom Tromey <tom@tromey.com>
2042
2043 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2044 parameters.
2045 (gdb_bfd_close_or_warn): Use foreach.
2046
2047 2020-09-19 Tom Tromey <tom@tromey.com>
2048
2049 * corelow.c (add_to_thread_list): Change parameters.
2050 (core_target_open): Use foreach.
2051
2052 2020-09-19 Tom Tromey <tom@tromey.com>
2053
2054 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2055 existing function.
2056
2057 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2060 for arrays.
2061
2062 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * eval.c: Remove 'f-lang.h' include.
2065 (value_f90_subarray): Moved to f-lang.c.
2066 (eval_call): Renamed to...
2067 (evaluate_subexp_do_call): ...this, is no longer static, header
2068 comment moved into header file.
2069 (evaluate_funcall): Update call to eval_call.
2070 (skip_undetermined_arglist): Moved to f-lang.c.
2071 (fortran_value_subarray): Likewise.
2072 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2073 moved to evaluate_subexp_f.
2074 (calc_f77_array_dims): Moved to f-lang.c
2075 * expprint.c (print_subexp_funcall): New function.
2076 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2077 moved to print_subexp_f, OP_FUNCALL uses new function.
2078 (dump_subexp_body_funcall): New function.
2079 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2080 moved to dump_subexp_f, OP_FUNCALL uses new function.
2081 * expression.h (evaluate_subexp_do_call): Declare.
2082 * f-lang.c (value_f90_subarray): Moved from eval.c.
2083 (skip_undetermined_arglist): Likewise.
2084 (calc_f77_array_dims): Likewise.
2085 (fortran_value_subarray): Likewise.
2086 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2087 (operator_length_f): Likewise.
2088 (print_subexp_f): Likewise.
2089 (dump_subexp_body_f): Likewise.
2090 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2091 declaration of this operation to here.
2092 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2093 support moved to operator_length_f.
2094 * parser-defs.h (dump_subexp_body_funcall): Declare.
2095 (print_subexp_funcall): Declare.
2096 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2097 fortran-operator.def.
2098
2099 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 * eval.c (fortran_value_subarray): New function, content is taken
2102 from...
2103 (evaluate_subexp_standard): ...here, in two places. Now arrays
2104 and strings both call the new function.
2105 (calc_f77_array_dims): Add header comment, handle strings.
2106
2107 2020-09-18 Victor Collod <vcollod@nvidia.com>
2108
2109 PR gdb/26635
2110 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2111 (i386_analyze_prologue): Call i386_skip_endbr.
2112
2113 2020-09-18 Tom Tromey <tromey@adacore.com>
2114
2115 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2116 (windows_nat_target::wait): Update.
2117 * target/wait.h (enum target_wait_flag): New. Use
2118 DEF_ENUM_FLAGS_TYPE.
2119 * target/target.h (target_wait): Change type of options.
2120 * target.h (target_options_to_string, default_target_wait):
2121 Update.
2122 (struct target_ops) <wait>: Change type of options.
2123 * target.c (target_wait, default_target_wait, do_option): Change
2124 type of "options".
2125 (target_options_to_string): Likewise.
2126 * target-delegates.c: Rebuild.
2127 * target-debug.h (target_debug_print_target_wait_flags): Rename
2128 from target_debug_print_options.
2129 * sol-thread.c (class sol_thread_target) <wait>: Update.
2130 (sol_thread_target::wait): Update.
2131 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2132 (rs6000_nat_target::wait): Update.
2133 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2134 Update.
2135 (remote_target::wait_ns, remote_target::wait_as): Change type of
2136 "options".
2137 (remote_target::wait): Update.
2138 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2139 (gdbsim_target::wait): Update.
2140 * record-full.c (class record_full_base_target) <wait>: Update.
2141 (record_full_wait_1): Change type of "options".
2142 (record_full_base_target::wait): Update.
2143 * record-btrace.c (class record_btrace_target) <wait>: Update.
2144 (record_btrace_target::wait): Update.
2145 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2146 Update.
2147 (ravenscar_thread_target::wait): Update.
2148 * procfs.c (class procfs_target) <wait>: Update.
2149 (procfs_target::wait): Update.
2150 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2151 * obsd-nat.c (obsd_nat_target::wait): Update.
2152 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2153 (nto_procfs_target::wait): Update.
2154 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2155 * nbsd-nat.c (nbsd_wait): Change type of "options".
2156 (nbsd_nat_target::wait): Update.
2157 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2158 (thread_db_target::wait): Update.
2159 * linux-nat.h (class linux_nat_target) <wait>: Update.
2160 * linux-nat.c (linux_nat_target::wait): Update.
2161 (linux_nat_wait_1): Update.
2162 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2163 "options".
2164 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2165 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2166 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2167 (go32_nat_target::wait): Update.
2168 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2169 * gnu-nat.c (gnu_nat_target::wait): Update.
2170 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2171 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2172 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2173 * darwin-nat.c (darwin_nat_target::wait): Update.
2174 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2175 (bsd_uthread_target::wait): Update.
2176 * aix-thread.c (class aix_thread_target) <wait>: Update.
2177 (aix_thread_target::wait): Update.
2178
2179 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * compile/compile-object-run.c (create_copied_type_recursive): New
2182 function.
2183 (compile_object_run): Use new function.
2184
2185 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2186
2187 * NEWS: Mention x86_64 Cygwin core file support.
2188
2189 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2190
2191 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2192 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2193
2194 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2195
2196 * windows-tdep.h: Add prototypes.
2197 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2198 (i386_windows_core_pid_to_str): Move and rename ...
2199 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2200 (windows_core_pid_to_str): ... and here.
2201 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2202
2203 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2204 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2205 (amd64_windows_init_abi_common): ... and register.
2206
2207 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2208
2209 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2210 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2211
2212 2020-09-18 Pedro Alves <pedro@palves.net>
2213
2214 PR gdb/26631
2215 * thread.c (thread_find_command): Switch inferior before calling
2216 target methods.
2217
2218 2020-09-17 Tom Tromey <tromey@adacore.com>
2219
2220 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2221 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2222 (tdesc_arch_data_up): New typedef.
2223 (tdesc_use_registers, tdesc_data_alloc): Update.
2224 (tdesc_data_cleanup): Don't declare.
2225 * target-descriptions.c (tdesc_data_alloc): Return a
2226 tdesc_arch_data_up.
2227 (tdesc_arch_data_deleter::operator()): Rename from
2228 tdesc_data_cleanup. Change argument type.
2229 (tdesc_use_registers): Change early_data to an rvalue reference.
2230 (tdesc_use_registers): Don't use delete.
2231 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2232 * s390-tdep.c (s390_gdbarch_init): Update.
2233 * rx-tdep.c (rx_gdbarch_init): Update.
2234 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2235 * riscv-tdep.c (riscv_gdbarch_init): Update.
2236 * or1k-tdep.c (or1k_gdbarch_init): Update.
2237 * nios2-tdep.c (nios2_gdbarch_init): Update.
2238 * nds32-tdep.c (nds32_gdbarch_init): Update.
2239 * mips-tdep.c (mips_gdbarch_init): Update.
2240 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2241 * m68k-tdep.c (m68k_gdbarch_init): Update.
2242 * i386-tdep.c (i386_gdbarch_init): Update.
2243 * arm-tdep.c (arm_gdbarch_init): Update.
2244 * arc-tdep.c (arc_tdesc_init): Update.
2245 (arc_gdbarch_init): Update.
2246 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2247
2248 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2249
2250 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2251 for WOW64 processes.
2252
2253 2020-09-17 Tom Tromey <tom@tromey.com>
2254
2255 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2256
2257 2020-09-17 Tom Tromey <tom@tromey.com>
2258
2259 * value.c (preserve_values): Update.
2260 * python/py-type.c (save_objfile_types): Update.
2261 * guile/scm-type.c (save_objfile_types): Update.
2262 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2263 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2264 * compile/compile-object-run.c (compile_object_run): Update.
2265
2266 2020-09-17 Tom Tromey <tom@tromey.com>
2267
2268 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2269 Remove.
2270 <m_table>: Now htab_up.
2271 * typeprint.c (typedef_hash_table::recursively_update)
2272 (typedef_hash_table::add_template_parameters)
2273 (typedef_hash_table::typedef_hash_table): Update.
2274 (typedef_hash_table::~typedef_hash_table): Remove.
2275 (typedef_hash_table::typedef_hash_table)
2276 (typedef_hash_table::find_global_typedef)
2277 (typedef_hash_table::find_typedef): Update.
2278
2279 2020-09-17 Tom Tromey <tom@tromey.com>
2280
2281 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2282
2283 2020-09-17 Tom Tromey <tom@tromey.com>
2284
2285 * linespec.c (class decode_compound_collector)
2286 <~decode_compound_collector>: Remove.
2287 <m_unique_syms>: Now htab_up.
2288 (decode_compound_collector::operator ()): Update.
2289 (class symtab_collector) <~symtab_collector>: Remove.
2290 <m_symtab_table>: Now htab_up.
2291 (symtab_collector::operator ()): Update.
2292
2293 2020-09-17 Tom Tromey <tom@tromey.com>
2294
2295 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2296 (filename_seen_cache::clear): Update.
2297 (~filename_seen_cache): Remove.
2298 (filename_seen_cache::seen): Update.
2299 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2300 htab_up.
2301 <~filename_seen_cache>: Remove.
2302 <traverse>: Update.
2303
2304 2020-09-17 Tom Tromey <tom@tromey.com>
2305
2306 * completer.c (completion_tracker::discard_completions)
2307 (completion_tracker::~completion_tracker)
2308 (completion_tracker::maybe_add_completion)
2309 (completion_tracker::remove_completion)
2310 (completion_tracker::recompute_lowest_common_denominator)
2311 (completion_tracker::build_completion_result): Update.
2312 * completer.h (class completion_tracker) <have_completions>:
2313 Update.
2314 <m_entries_hash>: Now htab_up.
2315
2316 2020-09-17 Tom Tromey <tom@tromey.com>
2317
2318 * breakpoint.c (ambiguous_names_p): Use htab_up.
2319
2320 2020-09-17 Tom Tromey <tom@tromey.com>
2321
2322 * auto-load.c (struct auto_load_pspace_info)
2323 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2324 <loaded_script_files, loaded_script_texts>: Change type to
2325 htab_up.
2326 (~auto_load_pspace_info) Remove.
2327 (init_loaded_scripts_info, maybe_add_script_file)
2328 (maybe_add_script_text, auto_load_info_scripts): Update.
2329
2330 2020-09-17 Tom Tromey <tromey@adacore.com>
2331
2332 * c-exp.y (name_obstack): Now static.
2333
2334 2020-09-17 Chungyi Chi <demonic@csie.io>
2335
2336 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2337
2338 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2339
2340 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2341 (add_solib_catchpoint): Likewise.
2342 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2343 to bool.
2344 (add_solib_catchpoint): Change int parameter/variable to bool.
2345 (catch_load_or_unload): Likewise.
2346 (init_catchpoint): Likewise.
2347 (create_fork_vfork_event_catchpoint): Likewise.
2348 (catch_fork_command_1): Likewise.
2349 (catch_exec_command_1): Likewise.
2350
2351 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2354 Change instance_flags to m_instance_flags.
2355
2356 2020-09-16 Tom Tromey <tromey@adacore.com>
2357
2358 PR gdb/26598:
2359 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2360
2361 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2362
2363 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2364 PL_FLAG_EXEC.
2365 (fbsd_nat_target::insert_exec_catchpoint)
2366 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2367 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2368 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2369
2370 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2371
2372 * configure.ac: Remove check for kinfo_getvmmap().
2373 * configure, config.in: Regenerate.
2374 * fbsd-nat.c (fbsd_read_mapping): Remove
2375 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2376 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2377 kinfo_get_vmmap() are always present.
2378
2379 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2380
2381 * fbsd-nat.c: Always include support for
2382 TARGET_OBJECT_SIGNAL_INFO.
2383
2384 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2385
2386 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2387 sysctl and remove procfs fallback.
2388
2389 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2390
2391 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2392 * fbsd-nat.h: Likewise.
2393
2394 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2395
2396 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2397 argument.
2398
2399 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * ada-lang.c (ada_language_data): Delete.
2402 (ada_language): Remove references to ada_language_data.
2403 * c-lang.c (c_language_data): Delete.
2404 (c_language): Remove references to c_language_data.
2405 (cplus_language_data): Delete.
2406 (cplus_language): Remove references to cplus_language_data.
2407 (asm_language_data): Delete.
2408 (asm_language): Remove references to asm_language_data.
2409 (minimal_language_data): Delete.
2410 (minimal_language): Remove references to minimal_language_data.
2411 * d-lang.c (d_language_data): Delete.
2412 (d_language): Remove references to d_language_data.
2413 * f-lang.c (f_language_data): Delete.
2414 (f_language): Remove references to f_language_data.
2415 * go-lang.c (go_language_data): Delete.
2416 (go_language): Remove references to go_language_data.
2417 * language.c (unknown_language_data): Delete.
2418 (unknown_language): Remove references to unknown_language_data.
2419 (auto_language_data): Delete.
2420 (auto_language): Remove references to auto_language_data.
2421 * language.h (language_data): Delete struct.
2422 (language_defn): No longer inherit from language_data.
2423 * m2-lang.c (m2_language_data): Delete.
2424 (m2_language): Remove references to m2_language_data.
2425 * objc-lang.c (objc_language_data): Delete.
2426 (objc_language): Remove references to objc_language_data.
2427 * opencl-lang.c (opencl_language_data): Delete.
2428 (opencl_language): Remove references to opencl_language_data.
2429 * p-lang.c (pascal_language_data): Delete.
2430 (pascal_language): Remove references to pascal_language_data.
2431 * rust-lang.c (rust_language_data): Delete.
2432 (rust_language): Remove references to rust_language_data.
2433
2434 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2437 initializer.
2438 (ada_language::opcode_print_table): New member function.
2439 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2440 (c_language::opcode_print_table): New member function.
2441 (cplus_language_data): Remove la_op_print_tab initializer.
2442 (cplus_language::opcode_print_table): New member function.
2443 (asm_language_data): Remove la_op_print_tab initializer.
2444 (asm_language::opcode_print_table): New member function.
2445 (minimal_language_data): Remove la_op_print_tab initializer.
2446 (minimal_language::opcode_print_table): New member function.
2447 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2448 (d_language::opcode_print_table): New member function.
2449 * expprint.c (print_subexp_standard): Update call to
2450 opcode_print_table.
2451 (op_string): Likewise.
2452 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2453 (f_language::opcode_print_table): New member function.
2454 * go-lang.c (go_language_data): Remove la_op_print_tab
2455 initializer.
2456 (go_language::opcode_print_table): New member function.
2457 * language.c (unknown_language_data): Remove la_op_print_tab
2458 initializer.
2459 (unknown_language::opcode_print_table): New member function.
2460 (auto_language_data): Remove la_op_print_tab initializer.
2461 (auto_language::opcode_print_table): New member function.
2462 * language.h (language_data): Remove la_op_print_tab field.
2463 (language_defn::opcode_print_table): Declare new member function.
2464 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2465 initializer.
2466 (m2_language::opcode_print_table): New member function.
2467 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2468 initializer.
2469 (objc_language::opcode_print_table): New member function.
2470 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2471 initializer.
2472 (opencl_language::opcode_print_table): New member function.
2473 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2474 initializer.
2475 (pascal_language::opcode_print_table): New member function.
2476 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2477 initializer.
2478 (rust_language::opcode_print_table): New member function.
2479
2480 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2483 (ada_language::expression_ops): New member function.
2484 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2485 (c_language::expression_ops): New member function.
2486 (cplus_language_data): Remove la_exp_desc initializer.
2487 (cplus_language::expression_ops): New member function.
2488 (asm_language_data): Remove la_exp_desc initializer.
2489 (asm_language::expression_ops): New member function.
2490 (minimal_language_data): Remove la_exp_desc initializer.
2491 (minimal_language::expression_ops): New member function.
2492 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2493 (d_language::expression_ops): New member function.
2494 * eval.c (evaluate_subexp): Update call to expression_ops.
2495 * expprint.c (print_subexp): Likewise.
2496 (op_name): Likewise.
2497 (dump_subexp_body): Likewise.
2498 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2499 (f_language::expression_ops): New member function.
2500 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2501 (go_language::expression_ops): New member function.
2502 * language.c (language_defn::expression_ops): New function.
2503 (unknown_language_data): Remove la_exp_desc initializer.
2504 (auto_language_data): Likewise.
2505 * language.h (language_data): Remove la_exp_desc field.
2506 (language_defn::expression_ops): Declare new member function.
2507 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2508 (m2_language::expression_ops): New member function.
2509 * objc-lang.c (objc_language_data): Remove la_exp_desc
2510 initializer.
2511 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2512 initializer.
2513 (opencl_language::expression_ops): New member function.
2514 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2515 * parse.c (operator_length): Update call to expression_ops.
2516 (exp_iterate): Likewise.
2517 * rust-lang.c (rust_language_data): Remove la_exp_desc
2518 initializer.
2519 (ruse_language::expression_ops): New member function.
2520
2521 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2524 initializer.
2525 (ada_language::varobj_ops): New member function.
2526 * c-lang.c (c_language_data): Remove la_varobj_ops
2527 initializer.
2528 (cplus_language_data): Likewise.
2529 (cplus_language::varobj_ops): New member function.
2530 (asm_language_data): Remove la_varobj_ops initializer.
2531 (minimal_language_data): Likewise.
2532 * d-lang.c (d_language_data): Likewise.
2533 * f-lang.c (f_language_data): Likewise.
2534 * go-lang.c (go_language_data): Likewise.
2535 * language.c (language_defn::varobj_ops): New function.
2536 (unknown_language_data): Remove la_varobj_ops
2537 initializer.
2538 (auto_language_data): Likewise.
2539 * language.h (language_data): Remove la_varobj_ops field.
2540 (language_defn::varobj_ops): Declare new member function.
2541 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2542 * objc-lang.c (objc_language_data): Likewise.
2543 * opencl-lang.c (opencl_language_data): Likewise.
2544 * p-lang.c (pascal_language_data): Likewise.
2545 * rust-lang.c (rust_language_data): Likewise.
2546 * varobj.c (varobj_create): Update call to varobj_ops.
2547 * varobj.h (default_varobj_ops): Delete define.
2548
2549 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2552 initializer.
2553 * c-lang.c (c_language_data): Likewise.
2554 (c_language::macro_expansion): New member function.
2555 (cplus_language_data): Likewise.
2556 (cplus_language::macro_expansion): New member function.
2557 (asm_language_data): Likewise.
2558 (asm_language::macro_expansion): New member function.
2559 (minimal_language_data): Likewise.
2560 (minimal_language::macro_expansion): New member function.
2561 * d-lang.c (d_language_data): Remove la_macro_expansion
2562 initializer.
2563 * f-lang.c (f_language_data): Likewise.
2564 * go-lang.c (go_language_data): Likewise.
2565 * language.c (unknown_language_data): Likewise.
2566 (auto_language_data): Likewise.
2567 * language.h (language_data): Remove la_macro_expansion field.
2568 (language_defn::macro_expansion): New member function.
2569 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2570 initializer.
2571 * objc-lang.c (objc_language_data): Likewise.
2572 (objc_language::macro_expansion): New member function.
2573 * opencl-lang.c (opencl_language_data): Likewise.
2574 (opencl_language::macro_expansion): New member function.
2575 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2576 initializer.
2577 * rust-lang.c (rust_language_data): Likewise.
2578 * symtab.c (default_collect_symbol_completion_matches_break_on):
2579 Update call to macro_expansion.
2580
2581 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * ada-lang.c (ada_language_data): Remove la_array_ordering
2584 initializer.
2585 * c-lang.c (c_language_data): Likewise.
2586 (cplus_language_data): Likewise.
2587 (asm_language_data): Likewise.
2588 (minimal_language_data): Likewise.
2589 * d-lang.c (d_language_data): Likewise.
2590 * dwarf2/read.c (read_array_order): Update for call to
2591 array_ordering.
2592 * f-lang.c (f_language_data): Remove la_array_ordering
2593 initializer.
2594 (f_language::array_ordering): New member function.
2595 * go-lang.c (go_language_data): Remove la_array_ordering
2596 initializer.
2597 * language.c (unknown_language_data): Likewise.
2598 (auto_language_data): Likewise.
2599 * language.h (language_data): Delete la_array_ordering field.
2600 (language_defn::array_ordering): New member function.
2601 * m2-lang.c (m2_language_data): Remove la_array_ordering
2602 initializer.
2603 * objc-lang.c (objc_language_data): Likewise.
2604 * opencl-lang.c (opencl_language_data): Likewise.
2605 * p-lang.c (pascal_language_data): Likewise.
2606 * rust-lang.c (rust_language_data): Likewise.
2607
2608 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2609
2610 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2611 initializer.
2612 * c-lang.c (c_language_data): Likewise.
2613 (cplus_language_data): Likewise.
2614 (asm_language_data): Likewise.
2615 (minimal_language_data): Likewise.
2616 * d-lang.c (d_language_data): Likewise.
2617 * f-lang.c (f_language_data): Likewise.
2618 (f_language::case_sensitivity): New member function.
2619 * go-lang.c (go_language_data): Remove la_case_sensitivity
2620 initializer.
2621 * language.c (enum case_mode): Moved here from language.h.
2622 (case_mode): Make static.
2623 (show_case_command): Update for case_sensitivity being a method.
2624 (set_case_command): Likewise.
2625 (set_range_case): Likewise.
2626 (unknown_language_data): Remove la_case_sensitivity initializer.
2627 (auto_language_data): Likewise.
2628 * language.h (case_mode): Delete, move enum declaration to
2629 language.c.
2630 (language_data): Delete la_case_sensitivity field.
2631 (language_defn::case_sensitivity): New member function.
2632 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2633 initializer.
2634 * objc-lang.c (objc_language_data): Likewise.
2635 * opencl-lang.c (opencl_language_data): Likewise.
2636 * p-lang.c (pascal_language_data): Likewise.
2637 * rust-lang.c (rust_language_data): Likewise.
2638
2639 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * ada-lang.c (ada_language_data): Remove la_range_check
2642 initializer.
2643 * c-lang.c (c_language_data): Likewise.
2644 (cplus_language_data): Likewise.
2645 (asm_language_data): Likewise.
2646 (minimal_language_data): Likewise.
2647 * d-lang.c (d_language_data): Likewise.
2648 * f-lang.c (f_language_data): Likewise.
2649 (f_language::range_checking_on_by_default): New member function.
2650 * go-lang.c (go_language_data): Remove la_range_check initializer.
2651 * language.c (enum range_mode): Moved here from language.h.
2652 (range_mode): Made static.
2653 (show_range_command): Update to use
2654 range_checking_on_by_default.
2655 (set_range_command): Likewise.
2656 (set_range_case): Likewise.
2657 (unknown_language_data): Remove la_range_check initializer.
2658 (auto_language_data): Likewise.
2659 * language.h (range_mode): Delete. Enum definition moved to
2660 language.c.
2661 (language_data): Remove la_range_check field.
2662 (language_defn::range_checking_on_by_default): New member
2663 function.
2664 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2665 (m2_language::range_checking_on_by_default): New member function.
2666 * objc-lang.c (objc_language_data): Remove la_range_check
2667 initializer.
2668 * opencl-lang.c (opencl_language_data): Likewise.
2669 * p-lang.c (pascal_language_data): Likewise.
2670 (pascal_language::range_checking_on_by_default): New member
2671 function.
2672 * rust-lang.c (rust_language_data): Remove la_range_check
2673 initializer.
2674 (rust_language::range_checking_on_by_default): New member
2675 function.
2676
2677 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2678
2679 * dwarf2/read.c (dwarf2_physname): Remove special case for
2680 language_go.
2681 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2682 member function.
2683
2684 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (ada_language_data): Remove
2687 la_store_sym_names_in_linkage_form_p initializer.
2688 (ada_language::store_sym_names_in_linkage_form_p): New member
2689 function.
2690 * c-lang.c (c_language_data): Remove
2691 la_store_sym_names_in_linkage_form_p initializer.
2692 (c_language::store_sym_names_in_linkage_form_p): New member
2693 function.
2694 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2695 initializer.
2696 (asm_language_data): Likewise.
2697 (asm_language::store_sym_names_in_linkage_form_p): New member
2698 function.
2699 (minimal_language_data): Remove
2700 la_store_sym_names_in_linkage_form_p initializer.
2701 (minimal_language::store_sym_names_in_linkage_form_p): New member
2702 function.
2703 * d-lang.c (d_language_data): Remove
2704 la_store_sym_names_in_linkage_form_p initializer.
2705 * dwarf2/read.c (dwarf2_physname): Update call to
2706 store_sym_names_in_linkage_form_p.
2707 * f-lang.c (f_language_data): Remove
2708 la_store_sym_names_in_linkage_form_p initializer.
2709 * go-lang.c (go_language_data): Remove
2710 la_store_sym_names_in_linkage_form_p initializer.
2711 * language.c (unknown_language_data): Remove
2712 la_store_sym_names_in_linkage_form_p initializer.
2713 (unknown_language::store_sym_names_in_linkage_form_p): New member
2714 function.
2715 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2716 initializer.
2717 (auto_language::store_sym_names_in_linkage_form_p): New member
2718 function.
2719 * language.h (language_data): Remove
2720 la_store_sym_names_in_linkage_form_p member variable.
2721 (language_defn::store_sym_names_in_linkage_form_p): New member
2722 function.
2723 * m2-lang.c (m2_language_data): Remove
2724 la_store_sym_names_in_linkage_form_p initializer.
2725 * objc-lang.c (objc_language_data): Likewise.
2726 * opencl-lang.c (opencl_language_data): Likewise.
2727 * p-lang.c (pascal_language_data): Likewise.
2728 * rust-lang.c (rust_language_data): Likewise.
2729
2730 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * ada-lang.c (ada_language_data): Remove string_lower_bound
2733 initializer.
2734 * c-lang.c (c_language_data): Likewise.
2735 (cplus_language_data): Likewise.
2736 (asm_language_data): Likewise.
2737 (minimal_language_data): Likewise.
2738 * d-lang.c (d_language_data): Likewise.
2739 * f-lang.c (f_language_data): Likewise.
2740 * go-lang.c (go_language_data): Likewise.
2741 * language.c (unknown_language_data): Likewise.
2742 (auto_language_data): Likewise.
2743 * language.h (language_data): Remove string_lower_bound field.
2744 (language_defn::string_lower_bound): New member function.
2745 * m2-lang.c (m2_language_data): Remove string_lower_bound
2746 initializer.
2747 (m2_language::string_lower_bound): New member function.
2748 * objc-lang.c (objc_language_data): Remove string_lower_bound
2749 initializer.
2750 * opencl-lang.c (opencl_language_data): Likewise.
2751 * p-lang.c (pascal_language_data): Likewise.
2752 * rust-lang.c (rust_language_data): Likewise.
2753 * valops.c (value_cstring): Update call to string_lower_bound.
2754 (value_string): Likewise.
2755 * value.c (allocate_repeated_value): Likewise.
2756
2757 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * valops.c (value_repeat): Fix incorrect argument name in comment.
2760
2761 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2762
2763 * ada-lang.c (ada_language_data): Remove c_style_arrays
2764 initializer.
2765 (ada_language::c_style_arrays_p): New member fuction.
2766 * c-lang.c (c_language_data): Remove c_style_arrays
2767 initializer.
2768 (cplus_language_data): Likewise.
2769 (asm_language_data): Likewise.
2770 (minimal_language_data): Likewise.
2771 * d-lang.c (d_language_data): Likewise.
2772 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2773 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2774 (f_language::c_style_arrays_p): New member function.
2775 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2776 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2777 * language.c (unknown_language_data): Remove c_style_arrays
2778 initializer.
2779 (auto_language_data): Likewise.
2780 * language.h (language_data): Remove c_style_arrays field.
2781 (language_defn::c_style_arrays_p): New member function.
2782 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2783 (m2_language::c_style_arrays_p): New member function.
2784 * objc-lang.c (objc_language_data): Remove c_style_arrays
2785 initializer.
2786 * opencl-lang.c (opencl_language_data): Likewise.
2787 * p-lang.c (pascal_language_data): Likewise.
2788 * rust-lang.c (rust_language_data): Likewise.
2789 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2790 and update local variable to a bool.
2791 * valops.c (value_cast): Update call to c_style_arrays_p.
2792 (value_array): Likewise.
2793 * value.c (coerce_array): Likewise.
2794
2795 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * ada-lang.c (ada_language_data): Remove la_language initializer.
2798 * c-lang.c (c_language_data): Likewise.
2799 (cplus_language_data): Likewise.
2800 (asm_language_data): Likewise.
2801 (minimal_language_data): Likewise.
2802 * d-lang.c (d_language_data): Likewise.
2803 * f-lang.c (f_language_data): Likewise.
2804 * go-lang.c (go_language_data): Likewise.
2805 * language.c (unknown_language_data): Likewise.
2806 (auto_language_data): Likewise.
2807 * language.h (language_data): Remove la_language field.
2808 (language_defn::language_defn): Initialise la_language field.
2809 (language_defn::la_language): New member variable.
2810 * m2-lang.c (m2_language_data): Remove la_language field.
2811 * objc-lang.c (objc_language_data): Likewise.
2812 * opencl-lang.c (opencl_language_data): Likewise.
2813 * p-lang.c (pascal_language_data): Likewise.
2814 * rust-lang.c (rust_language_data): Likewise.
2815
2816 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * ada-lang.c (ada_extensions): Delete, moved into
2819 ada_language::filename_extensions.
2820 (ada_language_data): Remove la_filename_extensions initializer.
2821 (ada_language::filename_extensions): New member function.
2822 * c-lang.c (c_extensions): Delete, moved into
2823 c_language::filename_extensions.
2824 (c_language_data): Remove la_filename_extensions initializer.
2825 (c_language::filename_extensions): New member function.
2826 (cplus_extensions): Delete, moved into
2827 cplus_language::filename_extensions.
2828 (cplus_language_data): Remove la_filename_extensions initializer.
2829 (cplus_language::filename_extensions): New member function.
2830 (asm_extensions): Delete, moved into
2831 asm_language::filename_extensions.
2832 (asm_language_data): Remove la_filename_extensions initializer.
2833 (asm_language::filename_extensions): New member function.
2834 (minimal_language_data): Remove la_filename_extensions
2835 initializer.
2836 * d-lang.c (d_extensions): Delete, moved into
2837 d_language::filename_extensions.
2838 (d_language_data): Remove la_filename_extensions initializer.
2839 (d_language::filename_extensions): New member function.
2840 * f-lang.c (f_extensions): Delete, moved into
2841 f_language::filename_extensions.
2842 (f_language_data): Remove la_filename_extensions initializer.
2843 (f_language::filename_extensions): New member function.
2844 * go-lang.c (go_language_data): Remove la_filename_extensions
2845 initializer.
2846 * language.c (add_set_language_command): Update now that
2847 filename_extensions returns a vector.
2848 (unknown_language_data): Remove la_filename_extensions
2849 initializer.
2850 (auto_language_data): Likewise.
2851 * language.h (language_data): Remove la_filename_extensions field.
2852 (language_defn::filename_extensions): New member function.
2853 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2854 initializer.
2855 * objc-lang.c (objc_extensions): Delete, moved into
2856 objc_language::filename_extensions.
2857 (objc_language_data): Remove la_filename_extensions initializer.
2858 (objc_language::filename_extensions): New member function.
2859 * opencl-lang.c (opencl_language_data): Remove
2860 la_filename_extensions initializer.
2861 * p-lang.c (pascal_extensions): Delete, moved into
2862 pascal_language::filename_extensions.
2863 (pascal_language_data): Remove la_filename_extensions initializer.
2864 (pascal_language::filename_extensions): New member function.
2865 * rust-lang.c (rust_extensions): Delete, moved into
2866 rust_language::filename_extensions.
2867 (rust_language_data): Remove la_filename_extensions initializer.
2868 (rust_language::filename_extensions): New member function.
2869 * symfile.c (add_filename_language): Add new assert.
2870
2871 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * ada-lang.c (ada_language_data): Remove la_name and
2874 la_natural_name initializers.
2875 (ada_language::name): New member function.
2876 (ada_language::natural_name): New member function.
2877 * c-lang.c (c_language_data): Remove la_name and
2878 la_natural_name initializers.
2879 (c_language::name): New member function.
2880 (c_language::natural_name): New member function.
2881 (cplus_language_data): Remove la_name and
2882 la_natural_name initializers.
2883 (cplus_language::name): New member function.
2884 (cplus_language::natural_name): New member function.
2885 (asm_language_data): Remove la_name and
2886 la_natural_name initializers.
2887 (asm_language::name): New member function.
2888 (asm_language::natural_name): New member function.
2889 (minimal_language_data): Remove la_name and
2890 la_natural_name initializers.
2891 (minimal_language::name): New member function.
2892 (minimal_language::natural_name): New member function.
2893 * compile/compile.c (compile_to_object): Update call to
2894 lanugage_defn::name.
2895 * d-lang.c (d_language_data): Remove la_name and
2896 la_natural_name initializers.
2897 (d_language::name): New member function.
2898 (d_language::natural_name): New member function.
2899 * expprint.c (print_subexp_standard): Update call to
2900 language_defn::name.
2901 (dump_raw_expression): Likewise
2902 (dump_prefix_expression): Likewise.
2903 * f-lang.c (f_language_data): Remove la_name and
2904 la_natural_name initializers.
2905 (f_language::name): New member function.
2906 (f_language::natural_name): New member function.
2907 * go-lang.c (go_language_data): Remove la_name and
2908 la_natural_name initializers.
2909 (go_language::name): New member function.
2910 (go_language::natural_name): New member function.
2911 * language.c (show_language_command): Update call to
2912 language_defn::name.
2913 (set_language_command): Likewise.
2914 (language_enum): Likewise.
2915 (language_str): Likewise.
2916 (add_set_language_command): Likewise, use
2917 language_defn::natural_name in the doc string.
2918 (unknown_language_data): Remove la_name and
2919 la_natural_name initializers.
2920 (unknown_language::name): New member function.
2921 (unknown_language::natural_name): New member function.
2922 (auto_language_data): Remove la_name and
2923 la_natural_name initializers.
2924 (auto_language::name): New member function.
2925 (auto_language::natural_name): New member function.
2926 (language_lookup_primitive_type_as_symbol): Update call to
2927 language_defn::name.
2928 * language.h (language_data): Remove la_name and la_natural_name
2929 member variables.
2930 (language_defn::name): New member function.
2931 (language_defn::natural_name): New member function.
2932 * m2-lang.c (m2_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (m2_language::name): New member function.
2935 (m2_language::natural_name): New member function.
2936 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2937 language_defn::natural_name.
2938 * objc-lang.c (objc_language_data): Remove la_name and
2939 la_natural_name initializers.
2940 (objc_language::name): New member function.
2941 (objc_language::natural_name): New member function.
2942 * opencl-lang.c (opencl_language_data): Remove la_name and
2943 la_natural_name initializers.
2944 (opencl_language::name): New member function.
2945 (opencl_language::natural_name): New member function.
2946 * p-lang.c (pascal_language_data): Remove la_name and
2947 la_natural_name initializers.
2948 (pascal_language::name): New member function.
2949 (pascal_language::natural_name): New member function.
2950 * rust-lang.c (rust_language_data): Remove la_name and
2951 la_natural_name initializers.
2952 (rust_language::name): New member function.
2953 (rust_language::natural_name): New member function.
2954 * symtab.c (lookup_language_this): Update call to
2955 language_defn::name.
2956
2957 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 * ada-lang.c (ada_language_data): Remove la_name_of_this
2960 initializer.
2961 * ax-gdb.c (gen_expr): Update call to name_of_this.
2962 * c-exp.y (classify_name): Likewise.
2963 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2964 (cplus_language_data): Likewise.
2965 (cplus_language::name_of_this): New member function.
2966 (asm_language_data): Remove la_name_of_this initializer.
2967 (minimal_language_data): Likewise.
2968 * d-lang.c (d_language_data): Likewise.
2969 (d_language::name_of_this): New member function.
2970 * expprint.c (print_subexp_standard): Update call to name_of_this.
2971 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2972 * go-lang.c (go_language_data): Likewise.
2973 * language.c (unknown_language_data): Likewise.
2974 (unknown_language::name_of_this): New member function.
2975 (auto_language_data): Remove la_name_of_this initializer.
2976 (auto_language::name_of_this): New member function.
2977 * language.h (language_data): Delete la_name_of_this member
2978 variable.
2979 (language_defn::name_of_this): New member function.
2980 * m2-lang.c (m2_language_data): Remove la_name_of_this
2981 initializer.
2982 * objc-lang.c (objc_language_data): Likewise.
2983 (objc_language::name_of_this): New member function.
2984 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2985 initializer.
2986 * p-lang.c (pascal_language_data): Likewise.
2987 (pascal_language::name_of_this): New member function.
2988 * rust-lang.c (rust_language_data): Remove la_name_of_this
2989 initializer.
2990 * symtab.c (lookup_language_this): Update call to name_of_this.
2991 (lookup_symbol_aux): Likewise.
2992 * valops.c (value_of_this): Likewise.
2993
2994 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * ada-lang.c (ada_language_data): Remove
2997 la_struct_too_deep_ellipsis initializer.
2998 (ada_language::struct_too_deep_ellipsis): New member function.
2999 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
3000 initializer.
3001 (cplus_language_data): Likewise.
3002 (asm_language_data): Likewise.
3003 (minimal_language_data): Likewise.
3004 * cp-valprint.c (cp_print_value): Update call to
3005 struct_too_deep_ellipsis.
3006 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
3007 initializer.
3008 * f-lang.c (f_language_data): Likewise.
3009 (f_language::struct_too_deep_ellipsis): New member function.
3010 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3011 initializer.
3012 * language.c (unknown_language_data): Likewise.
3013 (auto_language_data): Likewise.
3014 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3015 member variable.
3016 (language_defn::struct_too_deep_ellipsis): New member function.
3017 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3018 initializer.Q
3019 * objc-lang.c (objc_language_data): Likewise.
3020 * opencl-lang.c (opencl_language_data): Likewise.
3021 * p-lang.c (pascal_language_data): Likewise.
3022 * rust-lang.c (rust_language_data): Likewise.
3023 * valprint.c (val_print_check_max_depth): Update call to
3024 struct_too_deep_ellipsis.
3025
3026 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3027
3028 * MAINTAINERS (Write After Approval): Add myself.
3029
3030 2020-09-15 Tom Tromey <tom@tromey.com>
3031
3032 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3033 Remove.
3034
3035 2020-09-15 Tom Tromey <tom@tromey.com>
3036
3037 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3038 and TYPE_CODE_METHODPTR cases.
3039 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3040 (c_value_print_inner): Update.
3041 * valprint.c (generic_value_print_memberptr): New function, from
3042 c_value_print_memberptr.
3043 (generic_value_print): Use it. Call cplus_print_method_ptr.
3044
3045 2020-09-15 Tom Tromey <tromey@adacore.com>
3046
3047 * python/python-internal.h (PyInt_FromLong): Remove define.
3048 * python/py-value.c (convert_value_from_python): Use
3049 gdb_py_object_from_longest.
3050 * python/py-type.c (typy_get_code): Use
3051 gdb_py_object_from_longest.
3052 * python/py-symtab.c (salpy_get_line): Use
3053 gdb_py_object_from_longest.
3054 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3055 gdb_py_object_from_longest.
3056 * python/py-record.c (recpy_gap_reason_code): Use
3057 gdb_py_object_from_longest.
3058 * python/py-record-btrace.c (recpy_bt_insn_size)
3059 (recpy_bt_func_level, btpy_list_count): Use
3060 gdb_py_object_from_longest.
3061 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3062 gdb_py_object_from_longest. Fix error handling.
3063 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3064 gdb_py_object_from_longest.
3065 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3066 gdb_py_object_from_longest.
3067 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3068 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3069 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3070
3071 2020-09-15 Tom Tromey <tromey@adacore.com>
3072
3073 * python/python.c (gdbpy_parameter_value): Use
3074 gdb_py_object_from_ulongest.
3075
3076 2020-09-15 Tom Tromey <tromey@adacore.com>
3077
3078 * python/py-infevents.c (create_register_changed_event_object):
3079 Use gdb_py_object_from_longest.
3080 * python/py-exitedevent.c (create_exited_event_object): Use
3081 gdb_py_object_from_longest.
3082
3083 2020-09-15 Tom Tromey <tromey@adacore.com>
3084
3085 * python/python.c (gdbpy_parameter_value): Use
3086 gdb_py_object_from_longest.
3087 * python/py-type.c (convert_field, typy_range): Use
3088 gdb_py_object_from_longest.
3089 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3090 gdb_py_object_from_longest.
3091 * python/py-lazy-string.c (stpy_get_length): Use
3092 gdb_py_object_from_longest.
3093 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3094 gdb_py_object_from_longest.
3095 * python/py-infevents.c (create_memory_changed_event_object): Use
3096 gdb_py_object_from_longest.
3097 * python/py-inferior.c (infpy_get_num): Use
3098 gdb_py_object_from_longest.
3099 (infpy_get_pid): Likewise.
3100
3101 2020-09-15 Tom Tromey <tromey@adacore.com>
3102
3103 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3104 defines.
3105 * python/py-value.c (valpy_long): Use
3106 gdb_py_object_from_ulongest.
3107 * python/py-symtab.c (salpy_get_pc): Use
3108 gdb_py_object_from_ulongest.
3109 (salpy_get_last): Likewise.
3110 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3111 gdb_py_object_from_ulongest.
3112 * python/py-lazy-string.c (stpy_get_address): Use
3113 gdb_py_object_from_ulongest.
3114 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3115 * python/py-arch.c (archpy_disassemble): Use
3116 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3117 error handling.
3118
3119 2020-09-15 Tom Tromey <tromey@adacore.com>
3120
3121 * python/python-internal.h (gdb_py_long_from_longest): Remove
3122 defines.
3123 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3124 * python/py-type.c (convert_field, typy_get_sizeof): Use
3125 gdb_py_object_from_longest.
3126 * python/py-record-btrace.c (btpy_list_index): Use
3127 gdb_py_object_from_longest.
3128
3129 2020-09-15 Tom Tromey <tromey@adacore.com>
3130
3131 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3132 * python/py-record.c (recpy_element_number): Use
3133 gdb_py_object_from_longest.
3134 (recpy_gap_number): Likewise.
3135
3136 2020-09-15 Tom Tromey <tromey@adacore.com>
3137
3138 * top.c (ui::ui): Update.
3139 (highest_ui_num): Remove.
3140 * top.h (struct ui) <num>: Remove.
3141
3142 2020-09-15 Tom Tromey <tromey@adacore.com>
3143
3144 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3145 * ui-style.c (ansi_regex_text): Now array.
3146 * rust-exp.y (number_regex_text): Now array.
3147 * linespec.c (linespec_quote_characters): Now array.
3148 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3149 Now arrays.
3150
3151 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * debuginfod-support.c (debuginfod_client_deleter): New.
3154 (debuginfod_client_up): New.
3155 (debuginfod_init): Return debuginfod_client_up.
3156 (debuginfod_source_query): Adjust.
3157 (debuginfod_debuginfo_query): Adjust.
3158
3159 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3160
3161 * debuginfod-support.c (debuginfod_source_query): Use
3162 make_unique_xstrdup.
3163
3164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3167 with `type::instance_flags`.
3168
3169 2020-09-14 Michael Mullin <masmullin@gmail.com>
3170
3171 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3172 Remove baton parameter.
3173
3174 2020-09-14 Pedro Alves <pedro@palves.net>
3175
3176 * Makefile.in (SELFTESTS_SRCS): Add
3177 unittests/enum-flags-selftests.c.
3178 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3179 btrace_function_flags instead of enum btrace_function_flag.
3180 * compile/compile-c-types.c (convert_qualified): Use
3181 enum_flags::raw.
3182 * compile/compile-cplus-symbols.c (convert_one_symbol)
3183 (convert_symbol_bmsym):
3184 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3185 (compile_cplus_convert_struct_or_union_methods)
3186 (compile_cplus_instance::convert_qualified_base):
3187 * go-exp.y (parse_string_or_char): Add cast to int.
3188 * unittests/enum-flags-selftests.c: New file.
3189 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3190 type to btrace_thread_flags from btrace_thread_flag.
3191 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3192 local's type to btrace_thread_flags from btrace_thread_flag. Add
3193 cast in DEBUG call.
3194
3195 2020-09-14 Pedro Alves <pedro@palves.net>
3196
3197 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3198 * gdbtypes.c (address_space_name_to_int): Rename to ...
3199 (address_space_name_to_type_instance_flags): ... this.
3200 (address_space_int_to_name): Rename to ...
3201 (address_space_type_instance_flags_to_name): ... this.
3202 * gdbtypes.h (address_space_name_to_int): Rename to ...
3203 (address_space_name_to_type_instance_flags): ... this.
3204 (address_space_int_to_name): Rename to ...
3205 (address_space_type_instance_flags_to_name): ... this.
3206 * type-stack.c (type_stack::insert): Adjust to rename.
3207 * type-stack.h (type_stack::insert): Likewise.
3208
3209 2020-09-14 Pedro Alves <pedro@palves.net>
3210 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * avr-tdep.c (avr_address_class_type_flags): Return
3213 type_instance_flags.
3214 (avr_address_class_type_flags_to_name): Take a
3215 type_instance_flags.
3216 (avr_address_class_name_to_type_flags): Return bool and take a
3217 type_instance_flags.
3218 * d-lang.c (build_d_types): Use type::set_instance_flags.
3219 * ft32-tdep.c (ft32_address_class_type_flags): Return
3220 type_instance_flags.
3221 (ft32_address_class_type_flags_to_name): Take a
3222 type_instance_flags.
3223 (ft32_address_class_name_to_type_flags): Return bool and take a
3224 type_instance_flags.
3225 (ft32_gdbarch_init): Use type::set_instance_flags.
3226 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3227 * gdbarch.h, gdbarch.c: Regenerate.
3228 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3229 (address_class_name_to_type_flags): Use type_instance_flags and
3230 bool.
3231 * gdbtypes.c (address_space_name_to_int)
3232 (address_space_int_to_name, make_qualified_type): Use
3233 type_instance_flags.
3234 (make_qualified_type): Use type_instance_flags and
3235 type::set_instance_flags.
3236 (make_type_with_address_space, make_cv_type, make_vector_type)
3237 (check_typedef): Use type_instance_flags.
3238 (recursive_dump_type): Cast type_instance_flags to unsigned for
3239 printing.
3240 (copy_type_recursive): Use type::set_instance_flags.
3241 (gdbtypes_post_init): Use type::set_instance_flags.
3242 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3243 <m_instance_flags>: ... this.
3244 <instance_flags, set_instance_flags>: New methods.
3245 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3246 (SET_TYPE_INSTANCE_FLAGS): New.
3247 (address_space_name_to_int, address_space_int_to_name)
3248 (make_type_with_address_space): Pass flags using
3249 type_instance_flags instead of int.
3250 * stabsread.c (cleanup_undefined_types_noname): Use
3251 type::set_instance_flags.
3252 * s390-tdep.c (s390_address_class_type_flags): Return
3253 type_instance_flags.
3254 (s390_address_class_type_flags_to_name): Take a
3255 type_instance_flags.
3256 (s390_address_class_name_to_type_flags): Return bool and take a
3257 type_instance_flags.
3258 * type-stack.c (type_stack::follow_types): Use
3259 type_instance_flags.
3260 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3261
3262 2020-09-14 Tom Tromey <tromey@adacore.com>
3263
3264 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3265 * x86-tdep.c (x86_is_thunk_register_name)
3266 (x86_in_indirect_branch_thunk): Update.
3267 * sparc64-tdep.c (sparc64_fpu_register_names)
3268 (sparc64_cp0_register_names, sparc64_register_names)
3269 (sparc64_pseudo_register_names): Now const.
3270 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3271 cp0_registers_num>: Now const.
3272 * sparc-tdep.c (sparc_core_register_names)
3273 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3274 (sparc32_pseudo_register_names): Now const.
3275 (validate_tdesc_registers): Update.
3276 * rust-lang.c (rust_extensions): Now const.
3277 * p-lang.c (p_extensions): Now const.
3278 * objc-lang.c (objc_extensions): Now const.
3279 * nto-tdep.c (nto_thread_state_str): Now const.
3280 * moxie-tdep.c (moxie_register_names): Now const.
3281 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3282 Now const.
3283 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3284 (mips_linux_reg_names): Now const.
3285 (mips_gdbarch_init): Update.
3286 * microblaze-tdep.c (microblaze_register_names): Now const.
3287 * m68k-tdep.c (m68k_register_names): Now const.
3288 * m32r-tdep.c (m32r_register_names): Now const.
3289 * ia64-tdep.c (ia64_register_names): Now const.
3290 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3291 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3292 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3293 ymm_avx512_register_names, pkeys_register_names>: Now const.
3294 * i386-tdep.c (i386_register_names, i386_zmm_names)
3295 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3296 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3297 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3298 * f-lang.c (f_extensions): Now const.
3299 * d-lang.c (d_extensions): Now const.
3300 * csky-tdep.c (csky_register_names): Now const.
3301 * charset.c (default_charset_names, charset_enum): Now const.
3302 (_initialize_charset): Update.
3303 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3304 const.
3305 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3306 (bsd_uthread_solib_loaded): Update.
3307 (bsd_uthread_state): Now const.
3308 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3309 (amd64_ymm_avx512_names, amd64_ymmh_names)
3310 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3311 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3312 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3313 (amd64_dword_names): Now const.
3314 * agent.c (can_use_agent_enum): Now const.
3315 * ada-tasks.c (task_states, long_task_states): Now const.
3316 * ada-lang.c (known_runtime_file_name_patterns)
3317 (known_auxiliary_function_name_patterns, attribute_names)
3318 (standard_exc, ada_extensions): Now const.
3319
3320 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 * bcache.h (struct bcache) <bcache>: Remove constructor.
3323 <m_hash_function, m_compare_function>: Remove.
3324 <~bcache>: Make virtual.
3325 <compare>: Remove static method, introduce virtual method.
3326 <default_hash>: Remove.
3327 <hash>: New virtual method.
3328 * bcache.c (bcache::expand_hash_table): Update.
3329 (bcache::insert): Update.
3330 (bcache::hash): New.
3331 (bcache::compare): Update comment and parameter names.
3332 * gdbtypes.c (types_deeply_equal): Update.
3333 * psymtab.h (struct psymbol_bcache): New struct.
3334 (class psymtab_storage) <psymtab_storage>: Make default.
3335 <psymbol_cache>: Change type to psymbol_bcache.
3336 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3337 (psymbol_hash): Change to...
3338 (psymbol_bcache::hash): ... this.
3339 (psymbol_compare): Change to...
3340 (psymbol_bcache::compare): ... this.
3341
3342 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3343
3344 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3345 checking for initial lwp.
3346
3347 2020-09-14 Tom Tromey <tromey@adacore.com>
3348
3349 * m68k-tdep.c (m68k_extract_return_value): Use
3350 pointer_result_regnum.
3351 (m68k_store_return_value): Likewise.
3352 (m68k_reg_struct_return_p): Handle vectors and arrays.
3353 (m68k_return_value): Handle arrays.
3354 (m68k_svr4_return_value): Fix single-element aggregate handling.
3355 Handle long double. Adjust for embedded ABI.
3356 (m68k_svr4_init_abi): Set pointer_result_regnum.
3357 (m68k_embedded_init_abi): New function.
3358 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3359 (m68k_osabi_sniffer): New function.
3360 (_initialize_m68k_tdep): Register osabi sniffer.
3361 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3362 member.
3363
3364 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3367 with gdb::unique_xmalloc_ptr<char>.
3368
3369 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * xml-support.h (xml_fetch_another): Change type to be a
3372 function_view.
3373 (xml_process_xincludes): Remove baton parameter.
3374 (xml_fetch_content_from_file): Change baton parameter to
3375 dirname.
3376 * xml-support.c (struct xinclude_parsing_data)
3377 <xinclude_parsing_data>: Remove baton parameter.
3378 <fetcher_baton>: Remove.
3379 (xinclude_start_include): Adjust.
3380 (xml_process_xincludes): Adjust.
3381 (xml_fetch_content_from_file): Replace baton parameter with
3382 dirname.
3383 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3384 (xml_init_syscalls_info): Use a lambda.
3385 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3386 (file_read_description_xml): Use a lambda.
3387 (fetch_available_features_from_target): Change baton parameter
3388 to target_ops.
3389 (target_read_description_xml): Use a lambda.
3390 (target_fetch_description_xml): Use a lambda.
3391 (string_read_description_xml): Update.
3392
3393 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3396 uses with type::endianity_is_not_default.
3397
3398 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * gdbtypes.h (struct type) <endianity_is_not_default,
3401 set_endianity_is_not_default>: New methods.
3402 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3403 type::endianity_is_not_default, change all write call sites to
3404 use type::set_endianity_is_not_default.
3405
3406 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3407
3408 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3409 uses with type::is_fixed_instance.
3410
3411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * gdbtypes.h (struct type) <is_fixed_instance,
3414 set_is_fixed_instance>: New methods.
3415 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3416 write call sites to use type::set_is_fixed_instance.
3417
3418 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3421 uses with type::is_gnu_ifunc.
3422
3423 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3426 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3427 use type::set_is_gnu_ifunc.
3428
3429 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3430
3431 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3432 uses with type::stub_is_supported.
3433
3434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3435
3436 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3437 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3438 use type::set_stub_is_supported.
3439
3440 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3441
3442 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3443 uses with type::is_vector.
3444
3445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3448 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3449 use type::set_is_vector.
3450
3451 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3452
3453 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3454 uses with type::has_varargs.
3455
3456 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3459 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3460 use type::set_has_varargs.
3461
3462 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3465 uses with type::is_prototyped.
3466
3467 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3468
3469 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3470 New methods.
3471 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3472 call sites to use type::set_is_prototyped.
3473
3474 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3477 uses with type::target_is_stub.
3478
3479 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3482 New methods.
3483 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3484 sites to use type::set_target_is_stub.
3485
3486 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3487
3488 * gdbtypes.h (TYPE_STUB): Remove, replace all
3489 uses with type::is_stub.
3490
3491 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3494 (TYPE_STUB): Use type::is_stub, change all write call sites to
3495 use type::set_is_stub.
3496
3497 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3500 type::has_no_signedness.
3501
3502 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * gdbtypes.h (struct type) <has_no_signedness,
3505 set_has_no_signedness>: New methods.
3506 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3507 call sites to use type::set_has_no_signedness.
3508
3509 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3512 type::is_unsigned.
3513
3514 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3517 methods.
3518 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3519 sites to use type::set_is_unsigned.
3520
3521 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3522 Adam Renquinha <arenquinha@cimeq.qc.ca>
3523
3524 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3525 pointer and stack frame offset when unwinding.
3526
3527 2020-09-13 Pedro Alves <pedro@palves.net>
3528
3529 * NEWS: Document "-break-insert --qualified".
3530 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3531
3532 2020-09-13 Pedro Alves <pedro@palves.net>
3533
3534 * linespec.c (classify_mtype, compare_msyms): Delete.
3535 (search_minsyms_for_name): Remove classification logic. Instead
3536 filter out trampoline symbols if we also found an external
3537 function of the same name.
3538
3539 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3540
3541 * NEWS: Create a new section for the next release branch.
3542 Rename the section of the current branch, now that it has
3543 been cut.
3544
3545 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3546
3547 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3548 * version.in: Bump version to 11.0.50.DATE-git.
3549
3550 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3551
3552 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3553
3554 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3555 Felix Willgerodt <Felix.Willgerodt@intel.com>
3556
3557 * gdbarch.sh: Added bfloat16 type.
3558 * gdbarch.c: Regenerated.
3559 * gdbarch.h: Regenerated.
3560 * gdbtypes.c (floatformats_bfloat16): New struct.
3561 (gdbtypes_post_init): Add builtin_bfloat16.
3562 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3563 (floatformats_bfloat16): New struct.
3564 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3565 (i386_ymm_type): Add field "v16_bfloat16"
3566 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3567 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3568 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3569 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3570 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3571 * features/i386/64bit-avx512.c: Regenerated.
3572 * features/i386/64bit-sse.xml: Add bfloat16 type.
3573 * features/i386/64bit-sse.c: Regenerated.
3574
3575 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3576
3577 * i386-tdep.c (i386_zmm_type): Fix field names.
3578 (i386_ymm_type): Fix field names.
3579
3580 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3581
3582 * breakpoint.c: Fix typo in the help message of the
3583 "set breakpoint condition-evaluation" command.
3584
3585 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3586
3587 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3588 * (nbsd_nat_target::pid_to_exec_file)
3589 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3590 (nbsd_nat_target::post_startup_inferior)
3591 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3592 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3593 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3594 * (nbsd_thread_lister): Remove.
3595
3596 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3597
3598 * fork-inferior.c (startup_inferior): Avoid double free.
3599
3600 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3601
3602 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3603 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3604
3605 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3606
3607 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3608 * netbsd-nat.c: Include <sys/ptrace.h>.
3609 * (netbsd_nat::enable_proc_events): Add.
3610
3611 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3612
3613 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3614 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3615 (netbsd_nat::for_each_thread): Add.
3616 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3617 "gdbsupport/common-debug.h".
3618 * (netbsd_nat::netbsd_thread_lister)
3619 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3620 (netbsd_nat::for_each_thread): Add.
3621
3622 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3623
3624 * netbsd-nat.h: Include <unistd.h>.
3625 * (netbsd_nat::pid_to_exec_file): Add.
3626 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3627 * (netbsd_nat::pid_to_exec_file) Add.
3628
3629 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3630
3631 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3632
3633 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3634
3635 * netbsd-nat.h: New file.
3636 * netbsd-nat.c: Likewise.
3637
3638 2020-09-09 Tom Tromey <tromey@adacore.com>
3639
3640 * ada-lang.c (remove_extra_symbols): Do not increment when
3641 removing an element
3642
3643 2020-09-08 Tom Tromey <tromey@adacore.com>
3644
3645 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3646
3647 2020-09-08 Tom Tromey <tromey@adacore.com>
3648
3649 PR win32/25302:
3650 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3651 (gdb_bfd_init_data): New function.
3652 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3653
3654 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3655
3656 * infrun.c (fetch_inferior_event): Use
3657 `switch_to_target_no_thread` to switch the target.
3658
3659 2020-09-06 Tom Tromey <tom@tromey.com>
3660
3661 * symfile.h (dwarf2_free_objfile): Don't declare.
3662
3663 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3664
3665 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3666 to match 16 byte real/complex type generated by Flang compiler.
3667
3668 2020-09-03 Tom de Vries <tdevries@suse.de>
3669
3670 PR breakpoint/26546
3671 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3672 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3673
3674 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3675
3676 * maint.c (index_digits): New function.
3677 (struct maint_print_section_data): Remove.
3678 (print_bfd_section_info): Remove print_data parameter, add arg
3679 and index_digits.
3680 (print_objfile_section_info): Likewise.
3681 (print_bfd_section_info_maybe_relocated): Likewise (plus
3682 objfile).
3683 (maintenance_info_sections): Adjust calls.
3684
3685 2020-09-02 Tom Tromey <tromey@adacore.com>
3686
3687 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3688 for null pointers.
3689 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3690
3691 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3692
3693 * bcache.h (struct bcache) <insert>: Change type of `added` to
3694 pointer to bool.
3695 * bcache.c (bcache::insert): Likewise.
3696 * gdbtypes.c (check_types_worklist): Adjust.
3697 * psymtab.c (add_psymbol_to_bcache): Adjust.
3698
3699 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3700
3701 * corelow.c (unordered_set): Include.
3702 (class core_target): Add field 'm_core_unavailable_mappings'.
3703 (core_target::build_file_mappings): Print only one warning
3704 per inaccessible file. Add unavailable/broken mappings
3705 to m_core_unavailable_mappings.
3706 (core_target::xfer_partial): Call...
3707 (core_target::xfer_memory_via_mappings): New method.
3708
3709 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3712 type to bool.
3713
3714 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3715
3716 * dwarf2/read.c (struct field_info): Fix indentation.
3717
3718 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3721 ordering in comment.
3722 * frame.c (frame_id_eq): Fix indentation.
3723
3724 2020-08-31 Scott Linder <scott@scottlinder.com>
3725 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3728 inline frame ids in outer frame.
3729
3730 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3733 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3734 (outer_frame_id): Use FID_STACK_OUTER instead of
3735 FID_STACK_INVALID.
3736 (frame_id_p): Don't check for outer_frame_id.
3737
3738 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3741 regnum/frame in value. Call allocate_value_lazy.
3742 * frame.c (frame_unwind_register_value): Use
3743 val_print_not_saved.
3744
3745 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3748
3749 2020-08-29 Pedro Alves <pedro@palves.net>
3750
3751 * progspace.c (print_program_space): Use all_inferiors. Switch to
3752 the inferior before calling target_pid_to_str.
3753
3754 2020-08-28 Tom Tromey <tom@tromey.com>
3755
3756 * xcoffread.c (xcoff_end_psymtab): Update comment.
3757 * dbxread.c (dbx_end_psymtab): Update comment.
3758
3759 2020-08-28 Tom de Vries <tdevries@suse.de>
3760
3761 PR breakpoint/26544
3762 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3763 event_location.
3764 (create_breakpoint): Same.
3765 (base_breakpoint_decode_location): Same.
3766 (bkpt_create_sals_from_location): Same.
3767 (bkpt_decode_location): Same.
3768 (bkpt_probe_create_sals_from_location): Same.
3769 (bkpt_probe_decode_location): Same.
3770 (tracepoint_create_sals_from_location): Same.
3771 (tracepoint_decode_location): Same.
3772 (tracepoint_probe_decode_location): Same.
3773 (strace_marker_create_sals_from_location): Same.
3774 (strace_marker_decode_location): Same.
3775 (create_sals_from_location_default): Same.
3776 (decode_location_default): Same.
3777 * breakpoint.h (struct breakpoint_ops): Same.
3778 (create_breakpoint): Same.
3779 * linespec.h (decode_line_full): Same.
3780 * linespec.c (decode_line_full): Same. Throw error if
3781 result.size () == 0.
3782
3783 2020-08-27 Pedro Alves <pedro@palves.net>
3784
3785 PR gdb/26524
3786 * breakpoint.c (until_break_fsm) <location_breakpoint,
3787 caller_breakpoint>: Delete fields.
3788 <breakpoints>: New field.
3789 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3790 two individual breakpoints.
3791 (until_break_fsm::should_stop): Loop over breakpoints in the
3792 breakpoint vector.
3793 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3794 vector.
3795 (until_break_command): Handle location expanding into multiple
3796 sals.
3797
3798 2020-08-27 Pedro Alves <pedro@palves.net>
3799
3800 PR gdb/26523
3801 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3802 bp_until breakpoints user-specified locations. Update intro
3803 comment.
3804
3805 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3806
3807 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3808 gdb_bfd_sections): New.
3809 * maint.c (print_bfd_section_info): Change param type to
3810 maint_print_section_data.
3811 (print_objfile_section_info): Likewise.
3812 (print_bfd_section_info_maybe_relocated): Likewise.
3813 (maintenance_info_sections): Use gdb_bfd_sections.
3814
3815 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3816
3817 * MAINTAINERS: Add ARC target and maintainer.
3818
3819 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3820
3821 * configure.tgt: ARC support for GNU/Linux.
3822 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3823 * arc-linux-tdep.c: New file.
3824 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3825 * arc-tdep.c (arc_write_pc): Use it.
3826
3827 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3828
3829 * arc-tdep.c (arc_check_for_hardware_loop): New.
3830 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3831
3832 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3833
3834 * arc-tdep.h: Include "gdbarch.h".
3835
3836 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3837
3838 * arch/arc.h
3839 (arc_gdbarch_features): New class to stir the selection of target XML.
3840 (arc_create_target_description): Use FEATURES to choose XML target.
3841 (arc_lookup_target_description): Use arc_create_target_description
3842 to create _new_ target descriptions or return the already created
3843 ones if the FEATURES is the same.
3844 * arch/arc.c: Implementation of prototypes described above.
3845 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3846 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3847 * arc-tdep.c (*_feature_name): Make feature names consistent.
3848 (arc_register_feature): A new struct to hold information about
3849 registers of a particular target/feature.
3850 (arc_check_tdesc_feature): Check if XML provides registers in
3851 compliance with ARC_REGISTER_FEATURE structs.
3852 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3853 (determine_*_reg_feature_set): Which feature name to look for.
3854 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3855 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3856 to expected ISA enums to be used in arc_gdbarch_features structs.
3857 * features/Makefile (FEATURE_XMLFILES): Add new files.
3858 * gdb/features/arc/v1-aux.c: New file.
3859 * gdb/features/arc/v1-aux.xml: Likewise.
3860 * gdb/features/arc/v1-core.c: Likewise.
3861 * gdb/features/arc/v1-core.xml: Likewise.
3862 * gdb/features/arc/v2-aux.c: Likewise.
3863 * gdb/features/arc/v2-aux.xml: Likewise.
3864 * gdb/features/arc/v2-core.c: Likewise.
3865 * gdb/features/arc/v2-core.xml: Likewise.
3866 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3867
3868 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3869 Andrew Burgess <andrew.burgess@embecosm.com>
3870
3871 PR m2/26372
3872 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3873 an assert. Remove single element array indexing pattern as the
3874 MULTI_SUBSCRIPT support will handle this case too.
3875
3876 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * value.h (valprint_check_validity): Move declaration from
3879 here...
3880 * valprint.h (valprint_check_validity): ... to here.
3881
3882 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * debug.h: New file.
3885 * debug.c (debug_prefixed_vprintf): New function.
3886 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3887 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3888
3889 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * infrun.h (infrun_debug_printf_1): New function declaration.
3892 (infrun_debug_printf): New macro.
3893 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3894 throughout.
3895 (infrun_debug_printf): New function.
3896 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3897 (handle_jit_event): Likewise.
3898
3899 2020-08-21 Mark Wielaard <mark@klomp.org>
3900
3901 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3902
3903 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * frame.c (enum class frame_id_status): New.
3906 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3907 (fprintf_frame): Update.
3908 (compute_frame_id): Set frame id status to "computing" on entry.
3909 Set it back to "not_computed" on failure and to "computed" on
3910 success.
3911 (get_frame_id): Assert the frame id is not being computed.
3912 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3913 (create_new_frame): Likewise.
3914 (frame_cleanup_after_sniffer): Update assert.
3915
3916 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * regcache.c (pid_ptid_regcache_map): New type.
3919 (target_ptid_regcache_map): Remove.
3920 (target_pid_ptid_regcache_map): New type.
3921 (regcaches): Change type to target_pid_ptid_regcache_map.
3922 (get_thread_arch_aspace_regcache): Update.
3923 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3924 case.
3925 (regcaches_size): Update.
3926 (regcache_count): Update.
3927 (registers_changed_ptid_target_pid_test): New.
3928 (_initialize_regcache): Register new test.
3929
3930 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3931
3932 * regcache.c (regcache_count): New.
3933 (struct regcache_test_data): New.
3934 (regcache_test_data_up): New.
3935 (populate_regcaches_for_test): New.
3936 (regcaches_test): Remove.
3937 (get_thread_arch_aspace_regcache_test): New.
3938 (registers_changed_ptid_all_test): New.
3939 (registers_changed_ptid_target_test): New.
3940 (registers_changed_ptid_target_ptid_test): New.
3941 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3942 (_initialize_regcache): Register new tests.
3943
3944 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3945
3946 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3947 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3948 gdbarch and aspace parameter. Use current inferior's aspace.
3949 Validate regcache's arch value.
3950 (regcaches_test): Update.
3951
3952 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3953
3954 * regcache.c (regcaches_test): Call registers_changed.
3955
3956 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3957
3958 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3959
3960 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3961
3962 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3963 to find the end of prologue for flang compiled binaries.
3964 * arm-tdep.c (arm_skip_prologue): Likewise.
3965 * i386-tdep.c (i386_skip_prologue): Likewise.
3966 * producer.c (producer_is_llvm): New function.
3967 (producer_parsing_tests): Added new tests for clang/flang.
3968 * producer.h (producer_is_llvm): New declaration.
3969
3970 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3971
3972 * linux-nat.c (linux_nat_debug_printf): New function.
3973 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3974
3975 2020-08-18 Aaron Merey <amerey@redhat.com>
3976
3977 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3978 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3979 (CLIBS): Add DEBUGINFOD_LIBS.
3980
3981 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3982
3983 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3984 'gdbarch_num_regs'.
3985
3986 2020-08-17 Tom Tromey <tromey@adacore.com>
3987
3988 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3989 ada_get_decoded_value returns NULL.
3990
3991 2020-08-17 Tom Tromey <tromey@adacore.com>
3992
3993 * python/py-inferior.c (infpy_search_memory): Use
3994 gdb_py_object_from_ulongest.
3995 * python/py-infevents.c (create_inferior_call_event_object)
3996 (create_memory_changed_event_object): Use
3997 gdb_py_object_from_ulongest.
3998 * python/py-linetable.c (ltpy_entry_get_pc): Use
3999 gdb_py_object_from_ulongest.
4000
4001 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4002
4003 * loc.c (class symbol_needs_eval_context): Fix indentation.
4004
4005 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
4008 bool.
4009
4010 2020-08-17 Tom de Vries <tdevries@suse.de>
4011
4012 PR gdb/26393
4013 * gdbtypes.c (dump_dynamic_prop): New function.
4014 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4015
4016 2020-08-15 Tom de Vries <tdevries@suse.de>
4017
4018 PR backtrace/26390
4019 * stack.c (print_frame_args): Temporarily set the selected
4020 frame to FRAME while printing the frame's arguments.
4021
4022 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4023
4024 PR breakpoints/26385
4025 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4026 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4027
4028 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4029
4030 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4031 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4032 and >= to check return value instead of == -1 and != -1.
4033
4034 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * utils.h (class gdb_argv) <as_array_view>: New method.
4037 * utils.c (gdb_argv_as_array_view_test): New.
4038 (_initialize_utils): Register selftest.
4039 * maint.c (maintenance_selftest): Use the new method.
4040
4041 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4042
4043 * target.h (supports_dumpcore, dumpcore): New
4044 function declarations.
4045 * target.c (supports_dumpcore, dumpcore): New
4046 functions.
4047 * target-delegates.c: Rebuild.
4048 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4049 and target_dumpcore ().
4050
4051 2020-08-13 Aaron Merey <amerey@redhat.com>
4052
4053 * debuginfod-support.c: Replace global variables with user_data.
4054
4055 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * maint.c (maintenance_selftest): Split args and pass array_view
4058 to run_tests.
4059
4060 2020-08-12 Luis Machado <luis.machado@linaro.org>
4061
4062 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4063 type's length.
4064 Use %s and pulongest to print the length.
4065
4066 2020-08-12 Pedro Alves <palves@redhat.com>
4067
4068 * NEWS: Move "Multi-target debugging support" item to the
4069 "Changes since GDB 9" section.
4070
4071 2020-08-12 Pedro Alves <palves@redhat.com>
4072
4073 PR gdb/26336
4074 * progspace.c (program_space::remove_objfile): Invalidate the
4075 frame cache.
4076
4077 2020-08-11 Tom de Vries <tdevries@suse.de>
4078
4079 * MAINTAINERS: Mark ms1 as deleted.
4080
4081 2020-08-10 Luis Machado <luis.machado@linaro.org>
4082
4083 PR gdb/26310
4084
4085 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4086 act accordingly.
4087 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4088 movz/str/stur/stp skipping behavior.
4089
4090 2020-08-10 Luis Machado <luis.machado@linaro.org>
4091
4092 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4093 struct user_sve_header instead of struct sve_context.
4094
4095 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4096
4097 * read.h (dwarf2_fetch_die_loc_sect_off,
4098 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4099 `void *` parameter with function_view.
4100 * read.c (dwarf2_fetch_die_loc_sect_off,
4101 dwarf2_fetch_die_loc_cu_off): Likewise.
4102 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4103 (per_cu_dwarf_call): Adjust.
4104 (get_frame_address_in_block_wrapper): Remove.
4105 (indirect_synthetic_pointer): Adjust.
4106 (get_ax_pc): Remove.
4107 (dwarf2_compile_expr_to_ax): Adjust.
4108
4109 2020-08-08 Tom de Vries <tdevries@suse.de>
4110
4111 PR build/26344
4112 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4113 constructor.
4114 * regcache.c (get_thread_arch_aspace_regcache): Same.
4115
4116 2020-08-07 Tom Tromey <tromey@adacore.com>
4117
4118 * ravenscar-thread.c
4119 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4120 New method.
4121 (ravenscar_thread_target::wait): Check
4122 runtime_initialized.
4123 (ravenscar_thread_target::prepare_to_store)
4124 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4125 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4126 (ravenscar_thread_target::stopped_by_watchpoint)
4127 (ravenscar_thread_target::stopped_data_address)
4128 (ravenscar_thread_target::core_of_thread): Use
4129 scoped_restore_current_thread and
4130 set_base_thread_from_ravenscar_task.
4131
4132 2020-08-07 Tom Tromey <tromey@adacore.com>
4133
4134 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4135
4136 2020-08-07 Tom Tromey <tromey@adacore.com>
4137
4138 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4139 update_inferior_ptid before update_thread_list.
4140 (temporarily_change_regcache_ptid): New class.
4141 (ravenscar_thread_target::fetch_registers)
4142 (ravenscar_thread_target::store_registers)
4143 (ravenscar_thread_target::prepare_to_store): Use base thread when
4144 forwarding operation.
4145
4146 2020-08-07 Tom Tromey <tromey@adacore.com>
4147
4148 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4149 "is_pid" case.
4150
4151 2020-08-07 Tom Tromey <tromey@adacore.com>
4152
4153 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4154 New methods.
4155 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4156 first.
4157 (ravenscar_thread_target::add_thread): Rename from
4158 ravenscar_add_thread.
4159 (ravenscar_thread_target::update_thread_list): Use a lambda.
4160 (ravenscar_thread_target::xfer_partial): New method.
4161
4162 2020-08-07 Tom Tromey <tromey@adacore.com>
4163
4164 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4165 gdb::function_view.
4166 (iterate_over_live_ada_tasks): Change type of argument.
4167 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4168 of argument.
4169
4170 2020-08-07 Tom Tromey <tromey@adacore.com>
4171
4172 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4173 Remove.
4174 (ravenscar_thread_target::extra_thread_info): Remove.
4175 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4176 defer to target beneath for non-Ravenscar threads.
4177
4178 2020-08-07 Tom Tromey <tromey@adacore.com>
4179
4180 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4181 get_base_thread_from_ravenscar_task>: Now methods.
4182 <m_cpu_map>: New member.
4183 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4184 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4185 (ravenscar_thread_target::task_is_currently_active): Update.
4186 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4187 Now a method.
4188 (ravenscar_thread_target::add_active_thread): Put initial thread
4189 into the m_cpu_map.
4190
4191 2020-08-07 Tom Tromey <tromey@adacore.com>
4192
4193 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4194 event_ptid.
4195
4196 2020-08-07 Tom Tromey <tromey@adacore.com>
4197
4198 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4199 runtime_initialized.
4200
4201 2020-08-07 Tom Tromey <tromey@adacore.com>
4202
4203 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4204 add_active_thread.
4205 (ravenscar_thread_target::add_active_thread): Now public.
4206 (ravenscar_inferior_created): Call add_active_thread after pushing
4207 the target.
4208
4209 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4210
4211 * regcache.c (ptid_regcache_map): New type.
4212 (target_ptid_regcache_map): New type.
4213 (regcaches): Change type to target_ptid_regcache_map.
4214 (get_thread_arch_aspace_regcache): Update to regcaches' new
4215 type.
4216 (regcache_thread_ptid_changed): Likewise.
4217 (registers_changed_ptid): Likewise.
4218 (regcaches_size): Likewise.
4219 (regcaches_test): Update.
4220 (regcache_thread_ptid_changed): Update.
4221 * regcache.h (regcache_up): New type.
4222 * gdbsupport/ptid.h (hash_ptid): New struct.
4223
4224 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * observable.h (thread_ptid_changed): Add parameter
4227 `process_stratum_target *`.
4228 * infrun.c (infrun_thread_ptid_changed): Add parameter
4229 `process_stratum_target *` and use it.
4230 (selftests): New namespace.
4231 (infrun_thread_ptid_changed): New function.
4232 (_initialize_infrun): Register selftest.
4233 * regcache.c (regcache_thread_ptid_changed): Add parameter
4234 `process_stratum_target *` and use it.
4235 (regcache_thread_ptid_changed): New function.
4236 (_initialize_regcache): Register selftest.
4237 * thread.c (thread_change_ptid): Pass target to
4238 thread_ptid_changed observable.
4239
4240 2020-08-06 Caroline Tice <cmtice@google.com>
4241
4242 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4243 (struct dwp_sections): Update field comments. Add loclists and
4244 rnglists fields.
4245 (struct virtual_v2_dwo_sections): Rename struct to
4246 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4247 size & offset fields for loclists and rnglists.
4248 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4249 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4250 skipping dummy type units.
4251 (create_dwp_hash_table): Update the large comment above the function to
4252 discuss Version 5 DWP files as well, with references. Update all the
4253 version checks in the function to check for version 5 as well. Add new
4254 section at the end to create dwp hash table for version 5.
4255 (create_dwp_v2_section): Rename function to
4256 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4257 Add V5 to error message text.
4258 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4259 into calls to create_dwp_v2_or_v5_section.
4260 (create_dwo_unit_in_dwp_v5): New function.
4261 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4262 check for version2; add else clause to handle version 5.
4263 (open_and_init_dwo_file): Add code to check dwarf version & only call
4264 create_debug_types_hash_table (with sections.types) if version is not 5;
4265 else call create_debug_type_hash_table, with sections.info.
4266 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4267 version 5.
4268 (dwarf2_locate_v5_dwp_sections): New function.
4269 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4270 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4271
4272 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4273
4274 * regcache.h (class regcache): Remove friend
4275 registers_changed_ptid.
4276 <regcache_thread_ptid_changed>: Remove.
4277 <regcaches>: Remove.
4278 * regcache.c (regcache::regcaches): Rename to...
4279 (regcaches): ... this. Make static.
4280 (get_thread_arch_aspace_regcache): Update.
4281 (regcache::regcache_thread_ptid_changed): Rename to...
4282 (regcache_thread_ptid_changed): ... this. Update.
4283 (class regcache_access): Remove.
4284 (regcaches_test): Update.
4285 (_initialize_regcache): Update.
4286 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4287 <forward_list>.
4288
4289 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * regcache.h (class regcache) <current_regcache>: Rename to...
4292 <regcaches>: ... this. Move doc here.
4293 * regcache.c (regcache::current_regcache) Rename to...
4294 (regcache::regcaches): ... this. Move doc to header.
4295 (get_thread_arch_aspace_regcache): Update.
4296 (regcache::regcache_thread_ptid_changed): Update.
4297 (registers_changed_ptid): Update.
4298 (class regcache_access) <current_regcache_size>: Rename to...
4299 <regcaches_size>: ... this.
4300 (current_regcache_test): Rename to...
4301 (regcaches_test): ... this.
4302 (_initialize_regcache): Update.
4303
4304 2020-08-06 Victor Collod <vcollod@nvidia.com>
4305
4306 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4307
4308 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4309
4310 * corelow.c (core_target::build_file_mappings): Don't output
4311 null pathname in warning.
4312
4313 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4316 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4317 gdb.dwarf2/dw2-single-line-discriminators.exp,
4318 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4319
4320 2020-08-05 Tom Tromey <tromey@adacore.com>
4321
4322 PR rust/26197:
4323 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4324 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4325 Fix off-by-one and type size errors in ordinary case.
4326
4327 2020-08-05 Tom de Vries <tdevries@suse.de>
4328
4329 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4330 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4331
4332 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * frame.h (frame_id_p): Return bool.
4335 (frame_id_artificial_p): Return bool.
4336 (frame_id_eq): Return bool.
4337 (has_stack_frames): Return bool.
4338 (get_selected_frame): Fix typo in comment.
4339 (get_frame_pc_if_available): Return bool.
4340 (get_frame_address_in_block_if_available): Return bool.
4341 (get_frame_func_if_available): Return bool.
4342 (read_frame_register_unsigned): Return bool.
4343 (get_frame_register_bytes): Return bool.
4344 (safe_frame_unwind_memory): Return bool.
4345 (deprecated_frame_register_read): Return bool.
4346 (frame_unwinder_is): Return bool.
4347 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4348 bool.
4349 <this_id::p>: Likewise.
4350 <prev_p>: Likewise.
4351 (frame_stash_add): Return bool.
4352 (get_frame_id): Use bool.
4353 (frame_id_build_special) Use bool.
4354 (frame_id_build_unavailable_stack): Use bool.
4355 (frame_id_build): Use bool.
4356 (frame_id_p): Return bool, use true/false instead of 1/0.
4357 (frame_id_artificial_p): Likewise.
4358 (frame_id_eq): Likewise.
4359 (frame_id_inner): Likewise.
4360 (get_frame_func_if_available): Likewise.
4361 (read_frame_register_unsigned): Likewise.
4362 (deprecated_frame_register_read): Likewise.
4363 (get_frame_register_bytes): Likewise.
4364 (has_stack_frames): Likewise.
4365 (inside_main_func): Likewise.
4366 (inside_entry_func): Likewise.
4367 (get_frame_pc_if_available): Likewise.
4368 (get_frame_address_in_block_if_available): Likewise.
4369 (frame_unwinder_is): Likewise.
4370 (safe_frame_unwind_memory): Likewise.
4371 (frame_unwind_arch): Likewise.
4372
4373 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4376 type to cached_copy_status.
4377 (fprintf_frame): Adjust.
4378 (get_frame_func_if_available): Adjust.
4379 (frame_cleanup_after_sniffer): Adjust.
4380
4381 2020-08-04 Mark Wielaard <mark@klomp.org>
4382
4383 * MAINTAINERS (Write After Approval): Update email address.
4384
4385 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4386
4387 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4388 dynamic_prop::const_val.
4389
4390 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4391
4392 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4393 dynamic_prop::kind.
4394
4395 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4396
4397 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4398
4399 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4400
4401 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4402
4403 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4404 Jose E. Marchesi <jose.marchesi@oracle.com>
4405
4406 * configure.tgt: Add entry for bpf-*-*.
4407 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4408 (ALLDEPFILES): Add bpf-tdep.c.
4409 * bpf-tdep.c: New file.
4410 * MAINTAINERS: Add bpf target and maintainer.
4411 * NEWS: Mention the support for the new target.
4412
4413 2020-08-04 Tom de Vries <tdevries@suse.de>
4414
4415 PR symtab/23270
4416 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4417 Error.
4418
4419 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4420
4421 * syscalls/freebsd.xml: Regenerate.
4422
4423 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4424
4425 * syscalls/update-freebsd.sh: Fix usage and year range.
4426
4427 2020-08-03 Tom de Vries <tdevries@suse.de>
4428
4429 PR symtab/26333
4430 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4431 DW_LNE_lo_user/DW_LNE_hi_user range.
4432
4433 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 PR ada/26318
4436 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4437 kind.
4438
4439 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4440
4441 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4442
4443 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * breakpoint.c (set_breakpoint_condition): Update the condition
4446 expressions after checking that the input condition string parses
4447 successfully and does not contain junk at the end.
4448
4449 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450
4451 * breakpoint.c (set_breakpoint_condition): Update the
4452 condition string after parsing the new condition successfully.
4453
4454 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4455
4456 * proc-api.c (_STRUCTURED_PROC): Don't define.
4457 * proc-events.c: Likewise.
4458 * proc-flags.c: Likewise.
4459 * proc-why.c: Likewise.
4460 * procfs.c: Likewise.
4461
4462 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4463 * configure, config.in: Regenerate.
4464
4465 2020-07-30 Tom de Vries <tdevries@suse.de>
4466
4467 PR build/26320
4468 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4469 m_red/m_green/m_blue in a union.
4470
4471 2020-07-29 Tom de Vries <tdevries@suse.de>
4472
4473 PR tdep/26280
4474 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4475
4476 2020-07-28 Tom Tromey <tromey@adacore.com>
4477
4478 PR symtab/26270:
4479 * symtab.h (find_pc_partial_function_sym): Declare.
4480 * cli/cli-cmds.c (disassemble_command): Use
4481 find_pc_partial_function_sym. Check asm_demangle.
4482 * blockframe.c (cache_pc_function_sym): New global.
4483 (cache_pc_function_name): Remove.
4484 (clear_pc_function_cache): Update.
4485 (find_pc_partial_function_sym): New function, from
4486 find_pc_partial_function.
4487 (find_pc_partial_function): Rewrite using
4488 find_pc_partial_function_sym.
4489
4490 2020-07-28 Tom Tromey <tromey@adacore.com>
4491
4492 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4493 help. Add usage.
4494
4495 2020-07-28 Tom Tromey <tromey@adacore.com>
4496
4497 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4498 <DW_OP_GNU_variable_value>: Cast to address type.
4499
4500 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4501
4502 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4503 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4504 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4505 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4506 (nbsd_get_siginfo_type): New.
4507 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4508 (_initialize_nbsd_tdep): New.
4509
4510 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4511
4512 PR binutils/26301
4513 * configure: Regenerated.
4514
4515 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4516
4517 PR binutils/26301
4518 * configure: Regenerated.
4519
4520 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4521
4522 * python/py-frame.c: Remove 'user-regs.h' include.
4523 (frapy_read_register): Rewrite to make use of
4524 gdbpy_parse_register_id.
4525 * python/py-registers.c (gdbpy_parse_register_id): New function,
4526 moved here from python/py-unwind.c. Updated the return type, and
4527 also accepts register descriptor objects.
4528 * python/py-unwind.c: Remove 'user-regs.h' include.
4529 (pyuw_parse_register_id): Moved to python/py-registers.c.
4530 (unwind_infopy_add_saved_register): Update to use
4531 gdbpy_parse_register_id.
4532 (pending_framepy_read_register): Likewise.
4533 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4534
4535 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4536
4537 * python/py-registers.c: Add 'user-regs.h' include.
4538 (register_descriptor_iter_find): New function.
4539 (register_descriptor_iterator_object_methods): New static global
4540 methods array.
4541 (register_descriptor_iterator_object_type): Add pointer to methods
4542 array.
4543
4544 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4545
4546 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4547 for all architectures on FreeBSD 11.3 and later.
4548
4549 2020-07-27 Tom Tromey <tromey@adacore.com>
4550
4551 * gcore.h (load_corefile): Don't declare.
4552
4553 2020-07-27 Tom de Vries <tdevries@suse.de>
4554
4555 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4556 * config.in: Regenerate.
4557 * configure: Regenerate.
4558
4559 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4560
4561 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4562 ws2tcpip.h. When checking whether socklen_t type is defined, use
4563 ws2tcpip.h if it is available and sys/socket.h isn't.
4564 * configure: Regenerate.
4565 * config.in: Regenerate.
4566
4567 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4568
4569 PR fortran/23051
4570 PR fortran/26139
4571 * valops.c (value_ind): Pass address to
4572 readjust_indirect_value_type.
4573 * value.c (readjust_indirect_value_type): Make parameter
4574 non-const, and add extra address parameter. Resolve original type
4575 before using it.
4576 * value.h (readjust_indirect_value_type): Update function
4577 signature and comment.
4578
4579 2020-07-25 Tom de Vries <tdevries@suse.de>
4580
4581 PR symtab/26243
4582 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4583 entries.
4584
4585 2020-07-24 Aaron Merey <amerey@redhat.com>
4586
4587 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4588 * configure: Rebuild.
4589
4590 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4591
4592 PR corefiles/26294
4593 * corelow.c (_initialize_corelow): Add period to help text
4594 for "maintenance print core-file-backed-mappings".
4595
4596 2020-07-23 Pedro Alves <pedro@palves.net>
4597
4598 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4599 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4600 meanwhile.
4601 * frame.c (frame_cache_generation, get_frame_cache_generation):
4602 New.
4603 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4604 (get_prev_frame_if_no_cycle): On exception, don't touch
4605 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4606 * frame.h (get_frame_cache_generation): Declare.
4607
4608 2020-07-23 Tom de Vries <tdevries@suse.de>
4609
4610 PR tui/26282
4611 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4612 New default constructor.
4613
4614 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4615
4616 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4617 exclude non-statement entries.
4618
4619 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4620
4621 * NEWS (New commands): Mention new command
4622 "maintenance print core-file-backed-mappings".
4623
4624 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4625
4626 * corelow.c (gdbcmd.h): Include.
4627 (core_target::info_proc_mappings): New method.
4628 (get_current_core_target): New function.
4629 (maintenance_print_core_file_backed_mappings): New function.
4630 (_initialize_corelow): Add core-file-backed-mappings to
4631 "maint print" commands.
4632
4633 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4634
4635 * linux-tdep.c (dump_note_entry_p): New function.
4636 (linux_dump_mapping_p_ftype): New typedef.
4637 (linux_find_memory_regions_full): Add new parameter,
4638 should_dump_mapping_p.
4639 (linux_find_memory_regions): Adjust call to
4640 linux_find_memory_regions_full.
4641 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4642 call to linux_find_memory_regions_full.
4643
4644 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4645
4646 * corelow.c (solist.h, unordered_map): Include.
4647 (class core_target): Add field m_core_file_mappings and
4648 method build_file_mappings.
4649 (core_target::core_target): Call build_file_mappings.
4650 (core_target::~core_target): Free memory associated with
4651 m_core_file_mappings.
4652 (core_target::build_file_mappings): New method.
4653 (core_target::xfer_partial): Use m_core_file_mappings
4654 for memory transfers.
4655 * linux-tdep.c (linux_read_core_file_mappings): New
4656 function.
4657 (linux_core_info_proc_mappings): Rewrite to use
4658 linux_read_core_file_mappings.
4659 (linux_init_abi): Register linux_read_core_file_mappings.
4660
4661 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4662
4663 * arch-utils.c (default_read_core_file_mappings): New function.
4664 * arch-utils.c (default_read_core_file_mappings): Declare.
4665 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4666 * gdbarch.h, gdbarch.c: Regenerate.
4667
4668 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4669
4670 PR corefiles/25631
4671 * corelow.c (core_target:xfer_partial): Revise
4672 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4673 case after first checking the stratum beneath the core
4674 target.
4675 (has_all_memory): Return true.
4676 * target.c (raw_memory_xfer_partial): Revise comment
4677 regarding use of has_all_memory.
4678
4679 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4680
4681 * exec.h (section_table_xfer_memory): Revise declaration,
4682 replacing section name parameter with an optional callback
4683 predicate.
4684 * exec.c (section_table_xfer_memory): Likewise.
4685 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4686 of section_table_xfer_memory.
4687
4688 2020-07-22 Tom Tromey <tromey@adacore.com>
4689
4690 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4691 lookup_symbol_search_name.
4692
4693 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4694
4695 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4696 redundant local variable.
4697 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4698 reference, not pointer, update code accordingly.
4699
4700 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4701 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4702
4703 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4704 * jit.c (jit_breakpoint_re_set_internal): Use the
4705 `skip_jit_symbol_lookup` field.
4706
4707 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4708 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4709
4710 * jit.c (jit_read_descriptor): Define the descriptor address once,
4711 use twice.
4712 (jit_breakpoint_deleted): Move the declaration of the loop variable
4713 `iter` into the loop header.
4714 (jit_breakpoint_re_set_internal): Move the declaration of the local
4715 variable `objf_data` to the first point of definition.
4716 (jit_event_handler): Move the declaration of local variables
4717 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4718 Rename `objf` to `jited`.
4719
4720 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4721
4722 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4723 Remove.
4724 * jit.c (get_jiter_objfile_data): Update.
4725
4726 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4727 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * jit.c (struct jit_program_space_data): Remove.
4730 (jit_program_space_key): Remove.
4731 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4732 stuff.
4733 (get_jit_program_space_data): Remove.
4734 (jit_breakpoint_deleted): Iterate on all of the program space's
4735 objfiles.
4736 (jit_inferior_init): Likewise.
4737 (jit_breakpoint_re_set_internal): Likewise. Also change return
4738 type to void.
4739 (jit_breakpoint_re_set): Pass current_program_space to
4740 jit_breakpoint_re_set_internal.
4741
4742 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4743
4744 * jit.h (struct jiter_objfile_data) <cached_code_address,
4745 jit_breakpoint>: Move to here from ...
4746 * jit.c (jit_program_space_data): ... here.
4747 (jiter_objfile_data::~jiter_objfile_data): Update.
4748 (jit_breakpoint_deleted): Update.
4749 (jit_breakpoint_re_set_internal): Update.
4750
4751 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4754 checks.
4755 (jit_read_descriptor): Remove NULL check.
4756 (jit_event_handler): Add an assertion.
4757
4758 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4759
4760 * jit.h (struct jit_objfile_data): Split into...
4761 (struct jiter_objfile_data): ... this ...
4762 (struct jited_objfile_data): ... and this.
4763 * objfiles.h (struct objfile) <jit_data>: Remove.
4764 <jiter_data, jited_data>: New fields.
4765 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4766 (jiter_objfile_data::~jiter_objfile_data): ... this.
4767 (get_jit_objfile_data): Rename to ...
4768 (get_jiter_objfile_data): ... this.
4769 (add_objfile_entry): Update.
4770 (jit_read_descriptor): Use get_jiter_objfile_data.
4771 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4772 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4773 (jit_inferior_exit_hook): Use objfile's jited_data field.
4774
4775 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4776
4777 * jit.h: Forward-declare `struct minimal_symbol`.
4778 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4779 constructor, destructor, and an objfile* field.
4780 * jit.c (jit_objfile_data): Remove.
4781 (struct jit_objfile_data): Migrate from here to jit.h.
4782 (jit_objfile_data::~jit_objfile_data): New destructor
4783 implementation with code moved from free_objfile_data.
4784 (free_objfile_data): Delete.
4785 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4786 (jit_find_objf_with_entry_addr): Ditto.
4787 (jit_inferior_exit_hook): Ditto.
4788 (_initialize_jit): Remove the call to
4789 register_objfile_data_with_cleanup.
4790 * objfiles.h (struct objfile) <jit_data>: New field.
4791
4792 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4793
4794 * jit.h: Forward-declare `struct objfile`.
4795 (jit_event_handler): Add a second parameter, the JITer objfile.
4796 * jit.c (jit_read_descriptor): Change the signature to take the
4797 JITer objfile as an argument instead of the jit_program_space_data.
4798 (jit_inferior_init): Update the call to jit_read_descriptor.
4799 (jit_event_handler): Use the new JITer objfile argument when calling
4800 jit_read_descriptor.
4801 * breakpoint.c (handle_jit_event): Update the call to
4802 jit_event_handler to pass the JITer objfile.
4803
4804 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4805
4806 * gdbarch.c: Regenerate.
4807 * gdbarch.h: Regenerate.
4808 * gdbarch.sh (handle_segmentation_fault): Remove method.
4809 * infrun.c (handle_segmentation_fault): Remove.
4810 (print_signal_received_reason): Remove call to
4811 handle_segmentation_fault.
4812
4813 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4814
4815 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4816 Rename to sparc64_linux_report_signal_info and add siggnal
4817 argument.
4818 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4819 instead of sparc64_linux_handle_segmentation_fault.
4820
4821 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4822
4823 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4824 i386_linux_report_signal_info instead of
4825 i386_linux_handle_segmentation_fault.
4826 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4827 to i386_linux_report_signal_info and add siggnal argument.
4828 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4829 of i386_linux_handle_segmentation_fault.
4830 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4831 to i386_linux_report_signal_info and add siggnal argument.
4832
4833 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4834
4835 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4836 hook if present.
4837
4838 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4839
4840 * gdbarch.c: Regenerate.
4841 * gdbarch.h: Regenerate.
4842 * gdbarch.sh (report_signal_info): New method.
4843 * infrun.c (print_signal_received_reason): Invoke gdbarch
4844 report_signal_info hook if present.
4845
4846 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * python/py-registers.c : Add 'unordered_map' include.
4849 (gdbpy_new_reggroup): Renamed to...
4850 (gdbpy_get_reggroup): ...this. Update to only create register
4851 group descriptors when needed.
4852 (gdbpy_reggroup_iter_next): Update.
4853
4854 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4855
4856 * python/py-registers.c (gdbpy_register_object_data): New static
4857 global.
4858 (gdbpy_register_object_data_init): New function.
4859 (gdbpy_new_register_descriptor): Renamed to...
4860 (gdbpy_get_register_descriptor): ...this, and update to reuse
4861 existing register descriptors where possible.
4862 (gdbpy_register_descriptor_iter_next): Update.
4863 (gdbpy_initialize_registers): Register new gdbarch data.
4864
4865 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * linux-nat.c (stopped_pids): Make static.
4868
4869 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4870
4871 PR ada/26235
4872 * gdbtypes.c (ada_discrete_type_low_bound,
4873 ada_discrete_type_high_bound): Handle undefined bounds.
4874
4875 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4876
4877 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4878 declaration.
4879 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4880 function.
4881
4882 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4883
4884 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4885 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4886 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4887 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4888 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4889 method.
4890
4891 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4892
4893 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4894 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4895 which are deprecated in Guile 3.0.
4896 * configure.ac (try_guile_versions): Add "guile-3.0".
4897 * configure (try_guile_versions): Regenerate.
4898 * NEWS: Update entry.
4899
4900 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4901 Doug Evans <dje@google.com>
4902
4903 PR gdb/21104
4904 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4905 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4906 USING_GUILE_BEFORE_2_2.
4907 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4908 Change type to 'scm_t_port_type *'.
4909 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4910 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4911 parameter and honor it. Update callers.
4912 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4913 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4914 functions.
4915 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4916 USING_GUILE_BEFORE_2_2.
4917 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4918 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4919 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4920 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4921 and 'SCM_PORT_TYPE'.
4922 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4923 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4924 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4925 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4926 [!USING_GUILE_BEFORE_2_2]: New functions.
4927 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4928 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4929 'gdbscm_memory_port_read'.
4930 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4931 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4932 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4933 function.
4934 (ioscm_init_memory_port): Remove.
4935 (ioscm_init_memory_port_stream): New function
4936 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4937 function.
4938 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4939 Return scm_from_uint (0).
4940 (gdbscm_set_memory_port_read_buffer_size_x)
4941 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4942 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4943 Return scm_from_uint (0).
4944 (gdbscm_set_memory_port_write_buffer_size_x)
4945 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4946 * configure.ac (try_guile_versions): Add "guile-2.2".
4947 * configure: Regenerate.
4948 * NEWS: Add entry.
4949
4950 2020-07-18 Tom Tromey <tom@tromey.com>
4951
4952 * linux-nat.c (linux_multi_process): Remove.
4953 (linux_nat_target::supports_multi_process): Return true.
4954
4955 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4958 (riscv_lookup_target_description): Return pointer out of
4959 unique_ptr.
4960 * target-descriptions.c (allocate_target_description): Add
4961 comment.
4962 (target_desc_deleter::operator()): Likewise.
4963 * target-descriptions.h (struct target_desc_deleter): Moved to
4964 gdbsupport/tdesc.h.
4965 (target_desc_up): Likewise.
4966
4967 2020-07-17 Tom Tromey <tromey@adacore.com>
4968
4969 * linux-nat.c (linux_nat_target::supports_non_stop)
4970 (linux_nat_target::always_non_stop_p): Use "true".
4971 (linux_nat_target::supports_disable_randomization): Use "true" and
4972 "false".
4973
4974 2020-07-16 Caroline Tice <cmtice@google.com>
4975
4976 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4977 (RNGLIST_HEADER_SIZE64): New constant definition.
4978 (struct dwop_section_names): Add rnglists_dwo.
4979 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4980 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4981 (struct dwo_sections): Add rnglists field.
4982 (read_attribut_reprocess): Add tag parameter.
4983 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4984 (cu_debug_rnglists_section): New function (decl & definition).
4985 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4986 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4987 die whose range is being checked; get rnglist section from
4988 cu_debug_rnglists_section, to get from either objfile or dwo file as
4989 appropriate. Add cases for DW_RLE_base_addressx,
4990 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4991 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4992 test inside if-condition and updating complaint message.
4993 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4994 dwarf2_rnglists_process.
4995 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4996 dwarf2_ranges_process.
4997 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4998 need_ranges_base and update comment appropriately. Also pass die tag
4999 to dwarf2_ranges_read.
5000 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
5001 need_ranges_base and update comment appropriately. Also pass die tag
5002 to dwarf2_ranges_process.
5003 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
5004 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
5005 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
5006 need_ranges_base and update comment appropriately. Also pass die tag
5007 to read_attribute_reprocess and dwarf2_ranges_read.
5008 (read_loclist_header): Rename function to read_loclists_rnglists_header,
5009 and update function comment appropriately.
5010 (read_loclist_index): Call read_loclists_rnglists_header instead of
5011 read_loclist_header.
5012 (read_rnglist_index): New function.
5013 (read_attribute_reprocess): Add tag parameter. Add code for
5014 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5015 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5016
5017 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5020 being resolved.
5021
5022 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5023
5024 * arch-utils.c (show_architecture): Update formatting of messages.
5025
5026 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * gdbtypes.h (struct type) <bounds>: Handle array and string
5029 types.
5030 * ada-lang.c (assign_aggregate): Use type::bounds on
5031 array/string type.
5032 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5033 * c-varobj.c (c_number_of_children): Likewise.
5034 (c_describe_child): Likewise.
5035 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5036 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5037 (f_type_print_base): Likewise.
5038 * f-valprint.c (f77_array_offset_tbl): Likewise.
5039 (f77_get_upperbound): Likewise.
5040 (f77_print_array_1): Likewise.
5041 * guile/scm-type.c (gdbscm_type_range): Likewise.
5042 * m2-typeprint.c (m2_array): Likewise.
5043 (m2_is_long_set_of_type): Likewise.
5044 * m2-valprint.c (get_long_set_bounds): Likewise.
5045 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5046 * python/py-type.c (typy_range): Likewise.
5047 * rust-lang.c (rust_internal_print_type): Likewise.
5048 * type-stack.c (type_stack::follow_types): Likewise.
5049 * valarith.c (value_subscripted_rvalue): Likewise.
5050 * valops.c (value_cast): Likewise.
5051
5052 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5053
5054 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5055 callers to use the equivalent accessor methods.
5056
5057 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5058
5059 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5060 (struct type) <bit_stride>: New method.
5061 (TYPE_BIT_STRIDE): Remove.
5062 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5063
5064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5067 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5068 callers to use the equivalent accessor methods instead.
5069
5070 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5073 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5074 callers to use the equivalent accessor methods instead.
5075
5076 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5079 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5080 to use dynamic_prop::kind.
5081
5082 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5085 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5086 to get the bound property's kind and check against
5087 PROP_UNDEFINED.
5088
5089 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5092 all callers to use type::range_bounds followed by
5093 dynamic_prop::{low,high}.
5094
5095 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5096
5097 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5098 const_val, set_const_val, baton, set_locexpr, set_loclist,
5099 set_addr_offset, variant_parts, set_variant_parts,
5100 original_type, set_original_type>: New methods.
5101 <kind>: Rename to...
5102 <m_kind>: ... this. Update all users to use the new methods
5103 instead.
5104 <data>: Rename to...
5105 <m_data>: ... this. Update all users to use the new methods
5106 instead.
5107
5108 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5109
5110 * gdbtypes.c (get_discrete_bounds): Return failure if
5111 the range type's bounds are not both defined and constant
5112 values.
5113 (get_array_bounds): Update comment. Remove undefined bound check.
5114
5115 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5116
5117 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5118 the type::bounds method directly.
5119
5120 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5123 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5124 are used to set the range type's bounds to use set_bounds.
5125
5126 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5127
5128 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5129
5130 2020-07-10 Pedro Alves <pedro@palves.net>
5131
5132 * gdbthread.h (inferior_ref): Define.
5133 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5134 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5135 * thread.c
5136 (scoped_restore_current_thread::restore):
5137 Adjust to gdb::ref_ptr.
5138 (scoped_restore_current_thread::~scoped_restore_current_thread):
5139 Remove manual decref handling.
5140 (scoped_restore_current_thread::scoped_restore_current_thread):
5141 Adjust to use
5142 inferior_ref::new_reference/thread_info_ref::new_reference.
5143 Incref the thread before calling get_frame_id instead of after.
5144 Let TARGET_CLOSE_ERROR propagate.
5145
5146 2020-07-10 Pedro Alves <pedro@palves.net>
5147
5148 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5149 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5150 NOT_AVAILABLE_ERROR.
5151 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5152 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5153
5154 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5155 Pedro Alves <pedro@palves.net>
5156
5157 PR gdb/26199
5158 * infrun.c (threads_are_resumed_pending_p): Delete.
5159 (do_target_wait): Remove threads_are_executing and
5160 threads_are_resumed_pending_p checks from the inferior_matches
5161 lambda. Update comments.
5162
5163 2020-07-10 Pedro Alves <pedro@palves.net>
5164
5165 PR gdb/26199
5166 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5167 executing threads.
5168
5169 2020-07-10 Pedro Alves <pedro@palves.net>
5170
5171 PR gdb/26199
5172 * infrun.c (handle_no_resumed): Handle multiple targets.
5173
5174 2020-07-10 Pedro Alves <pedro@palves.net>
5175
5176 PR gdb/26199
5177 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5178 target_is_async_p.
5179
5180 2020-07-10 Pedro Alves <pedro@palves.net>
5181
5182 PR gdb/26199
5183 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5184 threads, not all threads.
5185
5186 2020-07-10 Pedro Alves <pedro@palves.net>
5187
5188 PR gdb/26199
5189 * remote.c (remote_target::open_1): Pass remote target pointer as
5190 data to create_async_event_handler.
5191 (remote_async_inferior_event_handler): Mark async event handler
5192 before returning if the remote target still has either pending
5193 events or unacknowledged notifications.
5194
5195 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5196
5197 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5198 declaration.
5199 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5200 function.
5201
5202 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5203
5204 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5205 inferior_ptid.
5206
5207 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5208
5209 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5210 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5211 AT_FREEBSD_PS_STRINGS.
5212
5213 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5214
5215 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5216 of debugfile path on Windows.
5217
5218 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5219
5220 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5221 argument to 'data'.
5222
5223 2020-07-08 Tom Tromey <tromey@adacore.com>
5224
5225 * ada-lang.c (ada_exception_message_1): Use read_memory.
5226
5227 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 PR python/22748
5230 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5231 special handling for inline frames.
5232 * findvar.c (value_of_register_lazy): Skip inline frames when
5233 creating lazy register values.
5234 * frame.c (frame_id_computed_p): Delete definition.
5235 * frame.h (frame_id_computed_p): Delete declaration.
5236
5237 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5238
5239 * NEWS: Mention additions to Python API.
5240 * python/py-arch.c (archpy_register_groups): New function.
5241 (arch_object_methods): Add 'register_groups' method.
5242 * python/py-registers.c (reggroup_iterator_object): New struct.
5243 (reggroup_object): New struct.
5244 (gdbpy_new_reggroup): New function.
5245 (gdbpy_reggroup_to_string): New function.
5246 (gdbpy_reggroup_name): New function.
5247 (gdbpy_reggroup_iter): New function.
5248 (gdbpy_reggroup_iter_next): New function.
5249 (gdbpy_new_reggroup_iterator): New function
5250 (gdbpy_initialize_registers): Register new types.
5251 (reggroup_iterator_object_type): Define new Python type.
5252 (gdbpy_reggroup_getset): New static global.
5253 (reggroup_object_type): Define new Python type.
5254 * python/python-internal.h
5255
5256 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5259 * python/py-arch.c (archpy_registers): New function.
5260 (arch_object_methods): Add 'registers' method.
5261 * python/py-registers.c: New file.
5262 * python/python-internal.h
5263 (gdbpy_new_register_descriptor_iterator): Declare.
5264 (gdbpy_initialize_registers): Declare.
5265 * python/python.c (do_start_initialization): Call
5266 gdbpy_initialize_registers.
5267 * NEWS: Mention additions to the Python API.
5268
5269 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * NEWS: Mention new Python API method.
5272 * python/py-unwind.c (pending_framepy_architecture): New function.
5273 (pending_frame_object_methods): Add architecture method.
5274
5275 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * gdbarch.c: Regenerate.
5278 * gdbarch.h: Regenerate.
5279 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5280 (gdbarch_data): Use internal_error for the case where
5281 deprecated_set_gdbarch_data was originally needed.
5282 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5283 and use passed in obstack.
5284 (libunwind_frame_set_descr): Should no longer get back NULL from
5285 gdbarch_data.
5286 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5287 type.
5288 * user-regs.c (user_regs_init): Update parameters, and use passed
5289 in obstack.
5290 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5291 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5292
5293 2020-07-06 Tom de Vries <tdevries@suse.de>
5294
5295 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5296 End-Of-Sequence in lte_is_less_than.
5297 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5298 "gdb: Don't reorder line table entries too much when sorting".
5299
5300 2020-07-06 Tom de Vries <tdevries@suse.de>
5301
5302 PR tui/26205
5303 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5304
5305 2020-07-05 Tom de Vries <tdevries@suse.de>
5306
5307 PR build/26187
5308 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5309 std::uncaught_exceptions instead of deprecated
5310 std::uncaught_exception.
5311
5312 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5313
5314 * macroexp.h (macro_stringify): Return
5315 gdb::unique_xmalloc_ptr<char>.
5316 * macroexp.c (macro_stringify): Likewise.
5317 * macrotab.c (fixup_definition): Update.
5318
5319 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5320
5321 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5322 (lex_one_token): Update.
5323 * macroexp.c (struct macro_buffer) <release>: Return
5324 gdb::unique_xmalloc_ptr<char>.
5325 (macro_stringify): Update.
5326 (macro_expand): Update.
5327 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5328 * macroexp.h (macro_expand_next): Likewise.
5329
5330 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * macroexp.h (macro_lookup_ftype): Remove.
5333 (macro_expand, macro_expand_once, macro_expand_next): Remove
5334 lookup function parameters, add scope parameter.
5335 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5336 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5337 * macroscope.h (standard_macro_lookup): Change parameter type
5338 to macro_scope.
5339 * macroscope.c (standard_macro_lookup): Likewise.
5340 * c-exp.y (lex_one_token): Update.
5341 * macrocmd.c (macro_expand_command): Likewise.
5342 (macro_expand_once_command): Likewise.
5343
5344 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5345
5346 * inf-loop.c (inferior_event_handler): Remove client_data param.
5347 * inf-loop.h (inferior_event_handler): Likewise.
5348 * infcmd.c (step_1): Adjust.
5349 * infrun.c (proceed): Adjust.
5350 (fetch_inferior_event): Remove client_data param.
5351 (infrun_async_inferior_event_handler): Adjust.
5352 * infrun.h (fetch_inferior_event): Remove `void *` param.
5353 * linux-nat.c (handle_target_event): Adjust.
5354 * record-btrace.c (record_btrace_handle_async_inferior_event):
5355 Adjust.
5356 * record-full.c (record_full_async_inferior_event_handler):
5357 Adjust.
5358 * remote.c (remote_async_inferior_event_handler): Adjust.
5359
5360 2020-07-01 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5363 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5364
5365 2020-07-01 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5368 tui_gen_win_info.
5369 (tui_win_info::make_window): Merge with
5370 tui_gen_win_info::make_window.
5371 (tui_win_info::make_visible): Move from tui_gen_win_info.
5372 * tui/tui-win.c (tui_win_info::max_width): Move from
5373 tui_gen_win_info.
5374 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5375 type.
5376 <window_factory>: Likewise.
5377 * tui/tui-layout.c (tui_win_info::resize): Move from
5378 tui_gen_win_info.
5379 (make_standard_window): Change return type.
5380 (get_locator_window, tui_get_window_by_name): Likewise.
5381 (tui_layout_window::apply): Remove a cast.
5382 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5383 (struct tui_win_info): Merge with tui_gen_win_info.
5384 (struct tui_gen_win_info): Remove.
5385
5386 2020-07-01 Tom Tromey <tom@tromey.com>
5387
5388 * tui/tui-stack.h (struct tui_locator_window): Derive from
5389 tui_win_info.
5390 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5391 <can_box>: New method.
5392
5393 2020-07-01 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5396
5397 2020-07-01 Tom Tromey <tom@tromey.com>
5398
5399 * tui/tui-regs.c (tui_data_window::display_registers_from)
5400 (tui_data_window::display_registers_from)
5401 (tui_data_window::first_data_item_displayed)
5402 (tui_data_window::delete_data_content_windows): Update.
5403 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5404 Remove.
5405 (tui_data_window::check_register_values): Update.
5406 (tui_data_item_window::rerender): Add parameters. Update.
5407 (tui_data_item_window::refresh_window): Remove.
5408 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5409 virtual.
5410 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5411 tui_gen_win_info.
5412 <refresh_window, max_height, min_height>: Remove.
5413 <rerender>: Add parameters.
5414 <x, y, visible>: New members.
5415 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5416 <m_item_width>: New member.
5417
5418 2020-07-01 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-regs.c (tui_data_window::show_register_group)
5421 (tui_data_window::check_register_values): Update.
5422 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5423 from item_no.
5424
5425 2020-07-01 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5428 useless "if".
5429
5430 2020-07-01 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5433 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5434
5435 2020-07-01 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5438 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5439 (struct tui_line_or_address): Move from tui-data.h.
5440 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5441 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5442 (tui_cmd_window, tui_source_window_base, tui_source_window)
5443 (tui_disasm_window): Don't declare.
5444 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5445 to tui-winsource.h.
5446 (SINGLE_KEY): Move to tui-stack.c.
5447
5448 2020-07-01 Tom Tromey <tom@tromey.com>
5449
5450 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5451 std::string.
5452 * tui/tui-regs.c (class tab_expansion_file): New.
5453 (tab_expansion_file::write): New method.
5454 (tui_register_format): Change return type. Use
5455 tab_expansion_file.
5456 (tui_get_register, tui_data_window::display_registers_from)
5457 (tui_data_item_window::rerender): Update.
5458 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5459 * tui/tui-io.c (tui_expand_tabs): Remove.
5460
5461 2020-07-01 Tom Tromey <tom@tromey.com>
5462
5463 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5464
5465 2020-07-01 Fangrui Song <maskray@google.com>
5466
5467 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5468
5469 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5470
5471 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5472 forms for DW_AT_associated and DW_AT_allocated attributes,
5473 which is already checked in function attr_to_dynamic_prop.
5474
5475 2020-06-30 Tom Tromey <tromey@adacore.com>
5476
5477 * dwarf2/read.c (quirk_rust_enum): Correctly call
5478 alloc_rust_variant for default-less enum.
5479
5480 2020-06-30 Tom Tromey <tromey@adacore.com>
5481
5482 PR build/26183:
5483 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5484 gdb::to_string.
5485
5486 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5489 * gdbarch.h: Re-generate.
5490
5491 2020-06-28 Tom Tromey <tom@tromey.com>
5492
5493 * command.h (cmd_types): Remove.
5494 (cmd_type): Don't declare.
5495 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5496 typedef.
5497 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5498 * cli/cli-decode.c (cmd_type): Remove.
5499
5500 2020-06-27 Pedro Alves <palves@redhat.com>
5501
5502 * fork-child.c (prefork_hook): Adjust.
5503 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5504 Delete.
5505 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5506 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5507 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5508 Remove declarations.
5509 (struct inferior) <set_tty, tty>: New methods.
5510 (struct inferior) <terminal>: Rename to ...
5511 (struct inferior) <m_terminal>: ... this and make private.
5512 * main.c (captured_main_1): Adjust.
5513 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5514 (mi_cmd_inferior_tty_show): Adjust.
5515 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5516 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5517
5518 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5519
5520 * configure.ac: Add --enable-libctf: handle --disable-static
5521 properly.
5522 * acinclude.m4: sinclude ../config/enable.m4.
5523 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5524 (LIBCTF): Substitute in.
5525 (CTF_DEPS): New, likewise.
5526 (CLIBS): libctf needs symbols from libbfd: move earlier.
5527 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5528 flags.
5529 * ctfread.c: Surround in ENABLE_LIBCTF.
5530 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5531 * configure: Regenerate.
5532 * config.in: Likewise.
5533
5534 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5535
5536 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5537
5538 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5539
5540 * inferior.h (struct inferior) <terminal>: Change type to
5541 gdb::unique_xmalloc_ptr<char>.
5542 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5543 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5544 field, adjust to unique pointer.
5545 (get_inferior_io_terminal): Adjust to unique pointer.
5546
5547 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5550 registers, not just the known core set of registers.
5551
5552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5555 fflags, frm, and fcsr registers.
5556 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5557 restore groups.
5558 (riscv_tdesc_unknown_reg): New function.
5559 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5560 tdesc_use_registers.
5561 * riscv-tdep.h (struct gdbarch_tdep): Add
5562 unknown_csrs_first_regnum, unknown_csrs_count,
5563 duplicate_fflags_regnum, duplicate_frm_regnum, and
5564 duplicate_fcsr_regnum fields.
5565
5566 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5567
5568 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5569 callback, use the callback (when not null) to help number unknown
5570 registers.
5571 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5572 (tdesc_use_registers): Add extra parameter to declaration.
5573
5574 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5575
5576 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5577 in the file.
5578 (class riscv_pending_register_alias): Likewise.
5579 (riscv_register_feature::register_info): Change 'required_p' field
5580 to 'required', and change its type. Add 'check' member function.
5581 (riscv_register_feature::register_info::check): Define new member
5582 function.
5583 (riscv_xreg_feature): Change initialisation of 'required' field.
5584 (riscv_freg_feature): Likewise.
5585 (riscv_virtual_feature): Likewise.
5586 (riscv_csr_feature): Likewise.
5587 (riscv_check_tdesc_feature): Take extra parameter, the csr
5588 tdesc_feature, rewrite the function to use the new
5589 riscv_register_feature::register_info::check function.
5590 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5591
5592 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * features/Makefile: Remove all references to the deleted files
5595 below.
5596 * features/riscv/32bit-csr.c: Deleted.
5597 * features/riscv/32bit-csr.xml: Deleted.
5598 * features/riscv/64bit-csr.c: Deleted.
5599 * features/riscv/64bit-csr.xml: Deleted.
5600 * features/riscv/rebuild-csr-xml.sh: Deleted.
5601
5602 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5603
5604 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5605 whitespace error for declaration of names member variable.
5606 (struct riscv_register_feature): Add new prefer_first_name member
5607 variable, and fix whitespace error in declaration of registers.
5608 (riscv_xreg_feature): Initialize prefer_first_name field.
5609 (riscv_freg_feature): Likewise.
5610 (riscv_virtual_feature): Likewise.
5611 (riscv_csr_feature): Likewise.
5612 (riscv_register_name): Expand on comments. Remove register name
5613 modifications for CSR and virtual registers.
5614
5615 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5616
5617 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5618 errors.
5619
5620 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5621
5622 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5623 riscv-opc.h.
5624 (class riscv_pending_register_alias): New class.
5625 (riscv_check_tdesc_feature): Take vector of pending aliases and
5626 populate it as appropriate.
5627 (riscv_setup_register_aliases): Delete.
5628 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5629 to riscv_check_tdesc_feature in all cases. Use the vector to
5630 create the register aliases.
5631
5632 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5633
5634 * sol2-tdep.c (sol2_static_transform_name): Remove.
5635 (sol2_init_abi): Don't register it.
5636 * gdbarch.sh (static_transform_name): Remove.
5637 * gdbarch.c, gdbarch.h: Regenerate.
5638
5639 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5640 gdbarch_static_transform_name.
5641 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5642 * stabsread.c (define_symbol) <'X'>: Remove.
5643 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5644 handling.
5645 <'V'>: Likewise.
5646 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5647 <'S'>: Remove call to gdbarch_static_transform_name.
5648
5649 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5650
5651 * procfs.c (procfs_pre_trace): New function.
5652 (procfs_target::create_inferior): Pass it to fork_inferior.
5653
5654 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5655
5656 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5657 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5658 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5659 sol2-tdep.o, sparc-sol2-tdep.o.
5660 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5661 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5662 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5663 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5664
5665 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5666
5667 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5668 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5669 Call sol2_init_abi.
5670 Remove calls to set_gdbarch_skip_solib_resolver,
5671 set_gdbarch_core_pid_to_str.
5672 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5673 (i386_sol2_static_transform_name): Remove.
5674 (i386_sol2_init_abi): Call sol2_init_abi.
5675 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5676 set_gdbarch_static_transform_name,
5677 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5678 Use sol2_sigtramp_p.
5679 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5680 (sol2_sigtramp_p): New function.
5681 (sol2_static_transform_name): New function.
5682 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5683 (sol2_init_abi): New function.
5684 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5685 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5686 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5687 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5688 (sparc_sol2_static_transform_name): Remove.
5689 (sparc32_sol2_init_abi): Call sol2_init_abi.
5690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5691 set_gdbarch_static_transform_name,
5692 set_gdbarch_skip_solib_resolver,
5693 set_gdbarch_core_pid_to_str.
5694 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5695 (sparc_sol2_static_transform_name): Remove
5696 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5697 call sol2_sigtramp_p.
5698 (sparc64_sol2_init_abi): Call sol2_init_abi.
5699 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5700 set_gdbarch_static_transform_name,
5701 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5702
5703 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5704
5705 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5706 * exec.c (validate_exec_file): If from_tty, set both
5707 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5708 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5709 and from_tty, unconditionally ask a confirmation.
5710
5711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 * target-descriptions.c (tdesc_architecture_name): Protect against
5714 NULL pointer dereference.
5715 (maint_print_xml_tdesc_cmd): New function.
5716 (_initialize_target_descriptions): Register new 'maint print
5717 xml-tdesc' command and give it the filename completer.
5718 * NEWS: Mention new 'maint print xml-tdesc' command.
5719
5720 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 * target-descriptions.c (class tdesc_compatible_info): New class.
5723 (struct target_desc): Change type of compatible vector.
5724 (tdesc_compatible_p): Update for change in type of
5725 target_desc::compatible.
5726 (tdesc_compatible_info_list): New function.
5727 (tdesc_compatible_info_arch_name): New function.
5728 (tdesc_add_compatible): Update for change in type of
5729 target_desc::compatible.
5730 (print_c_tdesc::visit_pre): Likewise.
5731
5732 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5733
5734 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5735 whitespace to underscore.
5736 (maint_print_c_tdesc_cmd): Use fake filename for target
5737 descriptions that came from the target.
5738 (_initialize_target_descriptions): Add filename command completion
5739 for 'maint print c-tdesc'.
5740
5741 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5744 lines.
5745
5746 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5749 lines.
5750 (dwarf2_find_location_expression): Likewise.
5751 (call_site_parameter_matches): Likewise.
5752 (dwarf2_compile_expr_to_ax): Likewise.
5753 (disassemble_dwarf_expression): Likewise.
5754 (loclist_describe_location): Likewise.
5755
5756 2020-06-23 Pedro Alves <palves@redhat.com>
5757
5758 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5759 progspace-and-thread.h. Include scoped-mock-context.h instead.
5760 (register_to_value_test): Use scoped_mock_context.
5761 * regcache.c: Include "scoped-mock-context.h".
5762 (cooked_read_test): Don't error out if a target is already pushed.
5763 Use scoped_mock_context. Adjust.
5764 * scoped-mock-context.h: New file.
5765
5766 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5767
5768 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5769 initializer.
5770 (ada_language::is_string_type_p): New member function.
5771 * c-lang.c (c_language_data): Delete la_is_string_type_p
5772 initializer.
5773 (cplus_language_data): Likewise.
5774 (asm_language_data): Likewise.
5775 (minimal_language_data): Likewise.
5776 * d-lang.c (d_language_data): Likewise.
5777 * f-lang.c (f_is_string_type_p): Delete function, implementation
5778 moved to f_language::is_string_type_p.
5779 (f_language_data): Delete la_is_string_type_p initializer.
5780 (f_language::is_string_type_p): New member function,
5781 implementation from f_is_string_type_p.
5782 * go-lang.c (go_is_string_type_p): Delete function, implementation
5783 moved to go_language::is_string_type_p.
5784 (go_language_data): Delete la_is_string_type_p initializer.
5785 (go_language::is_string_type_p): New member function,
5786 implementation from go_is_string_type_p.
5787 * language.c (language_defn::is_string_type_p): Define new member
5788 function.
5789 (default_is_string_type_p): Make static, add comment copied from
5790 header file.
5791 (unknown_language_data): Delete la_is_string_type_p initializer.
5792 (unknown_language::is_string_type_p): New member function.
5793 (auto_language_data): Delete la_is_string_type_p initializer.
5794 (auto_language::is_string_type_p): New member function.
5795 * language.h (language_data): Delete la_is_string_type_p field.
5796 (language_defn::is_string_type_p): Declare new function.
5797 (default_is_string_type_p): Delete desclaration, move comment to
5798 definition.
5799 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5800 moved to m2_language::is_string_type_p.
5801 (m2_language_data): Delete la_is_string_type_p initializer.
5802 (m2_language::is_string_type_p): New member function,
5803 implementation from m2_is_string_type_p.
5804 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5805 initializer.
5806 * opencl-lang.c (opencl_language_data): Likewise.
5807 * p-lang.c (pascal_is_string_type_p): Delete function,
5808 implementation moved to pascal_language::is_string_type_p.
5809 (pascal_language_data): Delete la_is_string_type_p initializer.
5810 (pascal_language::is_string_type_p): New member function,
5811 implementation from pascal_is_string_type_p.
5812 * rust-lang.c (rust_is_string_type_p): Delete function,
5813 implementation moved to rust_language::is_string_type_p.
5814 (rust_language_data): Delete la_is_string_type_p initializer.
5815 (rust_language::is_string_type_p): New member function,
5816 implementation from rust_is_string_type_p.
5817 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5818 is_string_type_p.
5819
5820 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * ada-lang.c (ada_language_data): Delete la_print_typedef
5823 initializer.
5824 (ada_language::print_typedef): New member function.
5825 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5826 (cplus_language_data): Likewise.
5827 (asm_language_data): Likewise.
5828 (minimal_language_data): Likewise.
5829 * d-lang.c (d_language_data): Likewise.
5830 * f-lang.c (f_language_data): Likewise.
5831 (f_language::print_typedef): New member function.
5832 * go-lang.c (go_language_data): Delete la_print_typedef
5833 initializer.
5834 * language.c (language_defn::print_typedef): Define member
5835 function.
5836 (unknown_language_data): Delete la_print_typedef initializer.
5837 (unknown_language::print_typedef): New member function.
5838 (auto_language_data): Delete la_print_typedef initializer.
5839 (auto_language::print_typedef): New member function.
5840 * language.h (language_data): Delete la_print_typedef field.
5841 (language_defn::print_typedef): Declare new member function.
5842 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5843 (default_print_typedef): Delete declaration.
5844 * m2-lang.c (m2_language_data): Delete la_print_typedef
5845 initializer.
5846 (m2_language::print_typedef): New member function.
5847 * objc-lang.c (objc_language_data): Delete la_print_typedef
5848 initializer.
5849 * opencl-lang.c (opencl_language_data): Likewise.
5850 * p-lang.c (pascal_language_data): Likewise.
5851 (pascal_language::print_typedef): New member function.
5852 * rust-lang.c (rust_print_typedef): Delete function,
5853 implementation moved to rust_language::print_typedef.
5854 (rust_language): Delete la_print_typedef initializer.
5855 (rust_language::print_typedef): New member function,
5856 implementation from rust_print_typedef.
5857 * typeprint.c (default_print_typedef): Delete.
5858
5859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5862 (ada_language::printstr): New member function.
5863 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
5869 (f_language_data): Delete la_printstr initializer.
5870 (f_language::printstr): New member function, implementation from
5871 f_printstr.
5872 * go-lang.c (go_language_data): Delete la_printstr initializer.
5873 * language.c (language_defn::printstr): Define new member
5874 function.
5875 (unk_lang_printstr): Delete.
5876 (unknown_language_data): Delete la_printstr initializer.
5877 (unknown_language::printstr): New member function.
5878 (auto_language_data): Delete la_printstr initializer.
5879 (auto_language::printstr): New member function.
5880 * language.h (language_data): Delete la_printstr field.
5881 (language_defn::printstr): Declare new member function.
5882 (LA_PRINT_STRING): Update call to printstr.
5883 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5884 (m2_language_data): Delete la_printstr initializer.
5885 (m2_language::printstr): New member function, implementation from
5886 m2_printstr.
5887 * objc-lang.c (objc_language_data): Delete la_printstr
5888 initializer.
5889 * opencl-lang.c (opencl_language_data): Likewise.
5890 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5891 (pascal_language_data): Delete la_printstr initializer.
5892 (pascal_language::printstr): New member function, implementation
5893 from pascal_printstr.
5894 * p-lang.h (pascal_printstr): Delete declaration.
5895 * rust-lang.c (rust_printstr): Update header comment.
5896 (rust_language_data): Delete la_printstr initializer.
5897 (rust_language::printstr): New member function.
5898
5899 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5900
5901 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5902 (ada_language::printchar): New member function.
5903 * c-lang.c (c_language_data): Delete la_printchar initializer.
5904 (cplus_language_data): Likewise.
5905 (asm_language_data): Likewise.
5906 (minimal_language_data): Likewise.
5907 * d-lang.c (d_language_data): Likewise.
5908 * f-lang.c (f_printchar): Rename to f_language::printchar.
5909 (f_language_data): Delete la_printchar initializer.
5910 (f_language::printchar): New member function, implementation from
5911 f_printchar.
5912 * go-lang.c (go_language_data): Delete la_printchar initializer.
5913 * language.c (unk_lang_printchar): Delete.
5914 (language_defn::printchar): Define new member function.
5915 (unknown_language_data): Delete la_printchar initializer.
5916 (unknown_language::printchar): New member function.
5917 (auto_language_data): Delete la_printchar initializer.
5918 (auto_language::printchar): New member function.
5919 * language.h (language_data): Delete la_printchar field.
5920 (language_defn::printchar): Declare new member function.
5921 (LA_PRINT_CHAR): Update call to printchar.
5922 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5923 (m2_language::printchar): New member function.
5924 * objc-lang.c (objc_language_data): Delete la_printchar
5925 initializer.
5926 * opencl-lang.c (opencl_language_data): Likewise.
5927 * p-lang.c (pascal_language_data): Delete la_printchar
5928 initializer.
5929 (pascal_language::printchar): New member function.
5930 * rust-lang.c (rust_printchar): Rename to
5931 rust_language::printchar.
5932 (rust_language_data): Delete la_printchar initializer.
5933 (rust_language::printchar): New member function, implementation
5934 from rust_printchar.
5935
5936 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5937
5938 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5939 (ada_language_data): Delete la_emitchar initializer.
5940 (ada_language::emitchar): New member function, implementation from
5941 emit_char.
5942 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5943 (cplus_language_data): Likewise.
5944 (asm_language_data): Likewise.
5945 (minimal_language_data): Likewise.
5946 * d-lang.c (d_language_data): Likewise.
5947 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5948 (f_language_data): Delete la_emitchar initializer.
5949 (f_language::emitchar): New member function, implementation from
5950 f_emit_char.
5951 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5952 * language.c (unk_lang_emit_char): Delete.
5953 (language_defn::emitchar): New member function definition.
5954 (unknown_language_data): Delete la_emitchar initializer.
5955 (unknown_language::emitchar): New member function.
5956 (auto_language_data): Delete la_emitchar initializer.
5957 (auto_language::emitchar): New member function.
5958 * language.h (language_data): Delete la_emitchar field.
5959 (language_defn::emitchar): New member field declaration.
5960 (LA_EMIT_CHAR): Update call to emitchar.
5961 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5962 (m2_language_data): Delete la_emitchar initializer.
5963 (m2_language::emitchar): New member function, implementation from
5964 m2_emit_char.
5965 * objc-lang.c (objc_language_data): Delete la_emitchar
5966 initializer.
5967 * opencl-lang.c (opencl_language_data): Likewise.
5968 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5969 (pascal_language_data): Delete la_emitchar initializer.
5970 (pascal_language::emitchar): New member function, implementation
5971 from pascal_emit_char.
5972 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5973 (rust_language_data): Delete la_emitchar initializer.
5974 (rust_language::emitchar): New member function, implementation
5975 from rust_emitchar.
5976
5977 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5980 (ada_language_data): Delete la_post_parser initializer.
5981 (ada_language::post_parser): New member function.
5982 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5983 (cplus_language_data): Likewise.
5984 (asm_language_data): Likewise.
5985 (minimal_language_data): Likewise.
5986 * d-lang.c (d_language_data): Likewise.
5987 * f-lang.c (f_language_data): Likewise.
5988 * go-lang.c (go_language_data): Likewise.
5989 * language.c (unknown_language_data): Likewise.
5990 (auto_language_data): Likewise.
5991 * language.h (language_data): Delete la_post_parser field.
5992 (language_defn::post_parser): New member function.
5993 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5994 * objc-lang.c (objc_language_data): Likewise.
5995 * opencl-lang.c (opencl_language_data): Likewise.
5996 * p-lang.c (pascal_language_data): Likewise.
5997 * parse.c (parse_exp_in_context): Update call to post_parser.
5998 (null_post_parser): Delete definition.
5999 * parser-defs.h (null_post_parser): Delete declaration.
6000 * rust-lang.c (rust_language_data): Delete la_post_parser
6001 initializer.
6002
6003 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6004
6005 * ada-lang.c (parse): Rename to ada_language::parser.
6006 (ada_language_data): Delete la_parser initializer.
6007 (ada_language::parser): New member function, implementation from
6008 parse.
6009 * c-lang.c (c_language_data): Delete la_parser initializer.
6010 (cplus_language_data): Likewise.
6011 (asm_language_data): Likewise.
6012 (minimal_language_data): Likewise.
6013 * d-lang.c (d_language_data): Likewise.
6014 (d_language::parser): New member function.
6015 * f-lang.c (f_language_data): Delete la_parser initializer.
6016 (f_language::parser): New member function.
6017 * go-lang.c (go_language_data): Delete la_parser initializer.
6018 (go_language::parser): New member function.
6019 * language.c (unk_lang_parser): Delete.
6020 (language_defn::parser): Define new member function.
6021 (unknown_language_data): Delete la_parser initializer.
6022 (unknown_language::parser): New member function.
6023 (auto_language_data): Delete la_parser initializer.
6024 (auto_language::parser): New member function.
6025 * language.h (language_data): Delete la_parser field.
6026 (language_defn::parser): Declare new member function.
6027 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6028 (m2_language::parser): New member function.
6029 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6030 * opencl-lang.c (opencl_language_data): Likewise.
6031 * p-lang.c (pascal_language_data): Likewise.
6032 (pascal_language::parser): New member function.
6033 * parse.c (parse_exp_in_context): Update call to parser.
6034 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6035 (rust_language::parser): New member function.
6036
6037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * top.c (print_gdb_configuration): Print --with-python-libdir
6040 configuration value.
6041
6042 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6043
6044 * NEWS: Mention change to the alias command.
6045
6046 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6047
6048 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6049 (alias_command_completer)
6050 (make_alias_options_def_group): New functions.
6051 (alias_opts, alias_option_defs): New struct and array.
6052 (alias_usage_error): Update usage.
6053 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6054 Use option framework.
6055 (_initialize_cli_cmds): Update alias command help.
6056 Update aliases command help.
6057 (show_user):
6058 Add NULL for new default_args lookup_cmd argument.
6059 (valid_command_p): Rename to validate_aliased_command.
6060 Add NULL for new default_args lookup_cmd argument. Verify that the
6061 aliased_command has no default args.
6062 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6063 (lookup_cmd_1, lookup_cmd): New argument default_args.
6064 (add_alias_cmd):
6065 Add NULL for new default_args lookup_cmd argument.
6066 (print_help_for_command): Show default args under the layout
6067 alias some_alias = some_aliased_cmd some_alias_default_arg.
6068 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6069 xfree default_args in destructor.
6070 * cli/cli-script.c (process_next_line, do_define_command):
6071 Add NULL for new default_args lookup_cmd argument.
6072 * command.h: Declare new default_args argument in lookup_cmd
6073 and lookup_cmd_1.
6074 * completer.c (complete_line_internal_1):
6075 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6076 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6077 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6078 Likewise.
6079 * infcmd.c (_initialize_infcmd): Likewise.
6080 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6081 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6082 * python/py-param.c (add_setshow_generic): Likewise.
6083 * remote.c (_initialize_remote): Likewise.
6084 * top.c (execute_command): Prepend default_args if command has some.
6085 (set_verbose):
6086 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6087 * tracepoint.c (validate_actionline, encode_actions_1):
6088 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6089
6090 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6091
6092 * jit.c (jit_read_descriptor): Use bool as the return type.
6093 (jit_breakpoint_re_set_internal): Use bool as the return type.
6094 Invert the return value logic; return true if the jit breakpoint
6095 has been successfully initialized.
6096 (jit_inferior_init): Update the call to
6097 jit_breakpoint_re_set_internal.
6098
6099 2020-06-22 Pedro Alves <palves@redhat.com>
6100
6101 PR gdb/25939
6102 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6103 Use the current inferior instead. Don't return
6104 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6105 wait again.
6106 * sol-thread.c (sol_thread_target::wait): Don't reference
6107 inferior_ptid.
6108 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6109 (sol_update_thread_list_callback): Use the current inferior's pid
6110 instead of inferior_ptid.
6111
6112 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6113
6114 * procfs.c: Cleanup many comments.
6115
6116 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6117 (AFTER_WATCHFLAG): Replace by value.
6118
6119 (MAIN_PROC_NAME_FORMAT): Inline ...
6120 (create_procinfo): ... here.
6121
6122 (procfs_debug_inferior): Remove SYS_exec handling.
6123 (syscall_is_exec): Likewise.
6124 (procfs_set_exec_trap): Likewise.
6125
6126 (syscall_is_lwp_exit): Inline in callers.
6127 (syscall_is_exit): Likewise.
6128 (syscall_is_exec): Likewise.
6129 (syscall_is_lwp_create): Likewise.
6130
6131 (invalidate_cache): Remove #if 0 code.
6132
6133 (make_signal_thread_runnable): Remove.
6134 (procfs_target::resume): Remove #if 0 code.
6135
6136 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6137
6138 PR gdb/25939
6139 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6140 call ...
6141 (procfs_target::create_inferior): ... here.
6142
6143 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6144
6145 * exec.c (validate_exec_file): Ensure the build-id is up to
6146 date by calling reopen_exec_file (that checks file timestamp
6147 to decide to re-read the file).
6148
6149 2020-06-18 Pedro Alves <palves@redhat.com>
6150
6151 PR gdb/25412
6152 * gdbthread.h (delete_thread, delete_thread_silent)
6153 (find_thread_ptid): Update comments.
6154 * thread.c (current_thread_): New global.
6155 (is_current_thread): Move higher, and reimplement.
6156 (inferior_thread): Reimplement.
6157 (set_thread_exited): Use bool. Add assertions.
6158 (add_thread_silent): Simplify thread-reuse handling by always
6159 calling delete_thread.
6160 (delete_thread): Remove intro comment.
6161 (find_thread_ptid): Skip exited threads.
6162 (switch_to_thread_no_regs): Write to current_thread_.
6163 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6164 INFERIOR_PTID. Clear current_thread_.
6165
6166 2020-06-18 Pedro Alves <palves@redhat.com>
6167
6168 * aix-thread.c (pd_update): Use switch_to_thread.
6169
6170 2020-06-18 Pedro Alves <palves@redhat.com>
6171
6172 * ravenscar-thread.c (ravenscar_thread_target): Update.
6173 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6174 (ravenscar_thread_target::add_active_thread): ... this. Don't
6175 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6176 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6177
6178 2020-06-18 Pedro Alves <palves@redhat.com>
6179
6180 * nat/windows-nat.c (current_windows_thread): Remove.
6181 * nat/windows-nat.h (current_windows_thread): Remove.
6182 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6183 Adjust.
6184 (display_selectors): Adjust to fetch the current
6185 windows_thread_info based on inferior_ptid.
6186 (fake_create_process): No longer write to current_windows_thread.
6187 (windows_nat_target::get_windows_debug_event):
6188 Don't set inferior_ptid or current_windows_thread.
6189 (windows_nat_target::wait): Adjust to not rely on
6190 current_windows_thread.
6191 (do_initial_windows_stuff): Now a method of windows_nat_target.
6192 Switch to the last_ptid thread.
6193 (windows_nat_target::attach): Adjust.
6194 (windows_nat_target::detach): Use switch_to_no_thread instead of
6195 writing to inferior_ptid directly.
6196 (windows_nat_target::create_inferior): Adjust.
6197
6198 2020-06-18 Pedro Alves <palves@redhat.com>
6199
6200 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6201
6202 2020-06-18 Pedro Alves <palves@redhat.com>
6203
6204 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6205 after creating it, instead of writing to inferior_ptid. Don't
6206 write to inferior_ptid.
6207
6208 2020-06-18 Pedro Alves <palves@redhat.com>
6209
6210 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6211
6212 2020-06-18 Pedro Alves <palves@redhat.com>
6213
6214 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6215 it, instead of writing to inferior_ptid.
6216
6217 2020-06-18 Pedro Alves <palves@redhat.com>
6218
6219 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6220 to inferior_ptid.
6221
6222 2020-06-18 Pedro Alves <palves@redhat.com>
6223
6224 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6225 instead of writing to inferior_ptid directly.
6226
6227 2020-06-18 Pedro Alves <palves@redhat.com>
6228
6229 * corelow.c (core_target::close): Use switch_to_no_thread instead
6230 of writing to inferior_ptid directly.
6231 (add_to_thread_list, core_target_open): Use switch_to_thread
6232 instead of writing to inferior_ptid directly.
6233
6234 2020-06-18 Pedro Alves <palves@redhat.com>
6235
6236 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6237 inferior_ptid.
6238 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6239 inferior_ptid.
6240 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6241 inferior_ptid directly.
6242 (darwin_nat_target::init_thread_list): Switch to thread, instead
6243 of writing to inferior_ptid.
6244 (darwin_nat_target::attach): Don't write to inferior_ptid.
6245 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6246
6247 2020-06-18 Pedro Alves <palves@redhat.com>
6248
6249 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6250 thread.
6251 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6252 Instead use switch_to_thread.
6253 (gnu_nat_target::detach): Use switch_to_no_thread
6254 instead of writing to inferior_ptid directly. Used passed-in
6255 inferior instead of looking up the inferior by pid.
6256
6257 2020-06-18 Pedro Alves <palves@redhat.com>
6258
6259 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6260 inferior_ptid.
6261
6262 2020-06-18 Pedro Alves <palves@redhat.com>
6263
6264 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6265 inferior_ptid.
6266 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6267 thread.
6268 (nto_procfs_target::detach): Avoid referencing
6269 inferior_ptid. Use switch_to_no_thread instead of writing to
6270 inferior_ptid directly.
6271 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6272 instead of writing to inferior_ptid directly.
6273 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6274 to thread.
6275
6276 2020-06-18 Pedro Alves <palves@redhat.com>
6277
6278 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6279 after creating it, instead of writing to inferior_ptid.
6280 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6281 to inferior_ptid directly.
6282 (gdbsim_target::wait): Don't write to inferior_ptid.
6283
6284 2020-06-18 Pedro Alves <palves@redhat.com>
6285
6286 * remote.c (remote_target::remote_notice_new_inferior): Use
6287 switch_to_thread instead of writing to inferior_ptid directly.
6288 (remote_target::add_current_inferior_and_thread): Use
6289 switch_to_no_thread instead of writing to inferior_ptid directly.
6290 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6291 and switch_to_thread instead of using set_current_inferior or
6292 writing to inferior_ptid directly.
6293
6294 2020-06-18 Pedro Alves <palves@redhat.com>
6295
6296 * tracectf.c (ctf_target_open): Switch to added thread instead of
6297 writing to inferior_ptid directly.
6298 (ctf_target::close): Use switch_to_no_thread instead of writing to
6299 inferior_ptid directly.
6300
6301 2020-06-18 Pedro Alves <palves@redhat.com>
6302
6303 * tracefile-tfile.c (tfile_target_open): Don't write to
6304 inferior_ptid directly, instead switch to added thread.
6305 (tfile_target::close): Use switch_to_no_thread instead of writing
6306 to inferior_ptid directly.
6307
6308 2020-06-18 Pedro Alves <palves@redhat.com>
6309
6310 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6311 (procfs_target::detach): Use switch_to_no_thread
6312 instead of writing to inferior_ptid directly.
6313 (do_attach): Change return type to void. Switch to the added
6314 thread.
6315 (procfs_target::create_inferior): Switch to the added thread.
6316 (procfs_do_thread_registers): Don't write to inferior_ptid.
6317
6318 2020-06-18 Pedro Alves <palves@redhat.com>
6319
6320 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6321 of writing to inferior_ptid.
6322 (scoped_restore_exited_inferior): Delete.
6323 (handle_vfork_child_exec_or_exit): Simplify using
6324 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6325 instead of writing to inferior_ptid.
6326 (THREAD_STOPPED_BY): Delete.
6327 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6328 (thread_stopped_by_hw_breakpoint): Delete.
6329 (save_waitstatus): Use
6330 scoped_restore_current_thread+switch_to_thread, and call
6331 target_stopped_by_watchpoint instead of
6332 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6333 instead of thread_stopped_by_sw_breakpoint, and
6334 target_stopped_by_hw_breakpoint instead of
6335 thread_stopped_by_hw_breakpoint.
6336 (handle_inferior_event)
6337 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6338 inferior_ptid directly, nor
6339 set_current_inferior/set_current_program_space. Use
6340 switch_to_thread / switch_to_inferior_no_thread instead.
6341
6342 2020-06-18 Pedro Alves <palves@redhat.com>
6343
6344 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6345 instead of writing to inferior_ptid.
6346
6347 2020-06-18 Pedro Alves <palves@redhat.com>
6348
6349 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6350 added thread.
6351 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6352 to the added thread.
6353 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6354 instead of writing to inferior_ptid.
6355
6356 2020-06-18 Pedro Alves <palves@redhat.com>
6357
6358 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6359 (register_to_value_test): Mock a program_space too. Heap-allocate
6360 the address space. Don't write to inferior_ptid. Use
6361 switch_to_thread instead.
6362
6363 2020-06-18 Pedro Alves <palves@redhat.com>
6364
6365 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6366 Delete.
6367 (find_signalled_thread()): New, factored out from
6368 linux_make_corefile_notes and adjusted to handle exited threads.
6369 (linux_make_corefile_notes): Adjust to use the new
6370 find_signalled_thread.
6371
6372 2020-06-18 Pedro Alves <palves@redhat.com>
6373
6374 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6375 of saving/restoring inferior_ptid.
6376
6377 2020-06-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6380 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6381 declare.
6382 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6383
6384 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6385
6386 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6387 of partial symtabs.
6388
6389 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * regformats/reg-arm.dat: Remove.
6392 * regformats/reg-bfin.dat: Remove.
6393 * regformats/reg-cris.dat: Remove.
6394 * regformats/reg-crisv32.dat: Remove.
6395 * regformats/reg-m32r.dat: Remove.
6396 * regformats/reg-tilegx.dat: Remove.
6397 * regformats/reg-tilegx32.dat: Remove.
6398
6399 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6400
6401 * features/Makefile (WHICH): Remove arm files.
6402 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6403 * regformats/arm/arm-with-neon.dat: Remove.
6404 * regformats/arm/arm-with-vfpv2.dat: Remove.
6405 * regformats/arm/arm-with-vfpv3.dat: Remove.
6406
6407 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * features/Makefile (XMLTOC): Remove rx.xml.
6410
6411 2020-06-17 Pedro Alves <palves@redhat.com>
6412
6413 * gdbthread.h (thread_control_state) <trap_expected> Update
6414 comments.
6415
6416 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6417
6418 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6419 ada_language::lookup_symbol_nonlocal.
6420 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6421 (ada_language::lookup_symbol_nonlocal): New member function,
6422 implementation from ada_lookup_symbol_nonlocal.
6423 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6424 initializer.
6425 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6426 initializer.
6427 (cplus_language::lookup_symbol_nonlocal): New member function.
6428 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6429 (minimal_language_data) Likewise.
6430 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6431 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6432 initializer.
6433 (d_language::lookup_symbol_nonlocal): New member function.
6434 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6435 initializer.
6436 (f_language::lookup_symbol_nonlocal): New member function.
6437 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6438 initializer.
6439 * language.c (unknown_language_data): Likewise.
6440 (auto_language_data): Likewise.
6441 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6442 field.
6443 (language_defn::lookup_symbol_nonlocal): New member function.
6444 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6445 initializer.
6446 * objc-lang.c (objc_language_data): Likewise.
6447 * opencl-lang.c (opencl_language_data): Likewise.
6448 * p-lang.c (pascal_language_data): Likewise.
6449 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6450 rust_language::lookup_symbol_nonlocal.
6451 (rust_language_data): Delete la_lookup_symbol_nonlocal
6452 initializer.
6453 (rust_language::lookup_symbol_nonlocal): New member function,
6454 implementation from rust_lookup_symbol_nonlocal.
6455 * symtab.c (lookup_symbol_aux): Update call to
6456 lookup_symbol_nonlocal.
6457 (basic_lookup_symbol_nonlocal): Rename to...
6458 (language_defn::lookup_symbol_nonlocal): ...this, and update
6459 header comment. Remove language_defn parameter, and replace with
6460 uses of `this'.
6461 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6462
6463 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6464
6465 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6466 initializer.
6467 (ada_language::value_print_inner): New member function.
6468 * c-lang.c (c_language_data): Delete la_value_print_inner
6469 initializer.
6470 (cplus_language_data): Likewise.
6471 (asm_language_data): Likewise.
6472 (minimal_language_data): Likewise.
6473 * d-lang.c (d_language_data): Likewise.
6474 (d_language::value_print_inner): New member function.
6475 * f-lang.c (f_language_data): Delete la_value_print_inner
6476 initializer.
6477 (f_language::value_print_inner): New member function.
6478 * f-lang.h (f_value_print_innner): Rename to...
6479 (f_value_print_inner): ...this (note spelling of 'inner').
6480 * f-valprint.c (f_value_print_innner): Rename to...
6481 (f_value_print_inner): ...this (note spelling of 'inner').
6482 * go-lang.c (go_language_data): Delete la_value_print_inner
6483 initializer.
6484 (go_language::value_print_inner): New member function.
6485 * language.c (language_defn::value_print_inner): Define new member
6486 function.
6487 (unk_lang_value_print_inner): Delete.
6488 (unknown_language_data): Delete la_value_print_inner initializer.
6489 (unknown_language::value_print_inner): New member function.
6490 (auto_language_data): Delete la_value_print_inner initializer.
6491 (auto_language::value_print_inner): New member function.
6492 * language.h (language_data): Delete la_value_print_inner field.
6493 (language_defn::value_print_inner): Delcare new member function.
6494 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6495 initializer.
6496 (m2_language::value_print_inner): New member function.
6497 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6498 initializer.
6499 * opencl-lang.c (opencl_language_data): Likewise.
6500 * p-lang.c (pascal_language_data): Likewise.
6501 (pascal_language::value_print_inner): New member function.
6502 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6503 initializer.
6504 (rust_language::value_print_inner): New member function.
6505 * valprint.c (do_val_print): Update call to value_print_inner.
6506
6507 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6508
6509 * ada-lang.c (ada_language_data): Delete la_value_print
6510 initializer.
6511 (ada_language::value_print): New member function.
6512 * c-lang.c (c_language_data): Delete la_value_print initializer.
6513 (cplus_language_data): Likewise.
6514 (asm_language_data): Likewise.
6515 (minimal_language_data): Likewise.
6516 * d-lang.c (d_language_data): Likewise.
6517 * f-lang.c (f_language_data): Likewise.
6518 * go-lang.c (go_language_data): Likewise.
6519 * language.c (unk_lang_value_print): Delete.
6520 (language_defn::value_print): Define new member function.
6521 (unknown_language_data): Delete la_value_print initializer.
6522 (unknown_language::value_print): New member function.
6523 (auto_language_data): Delete la_value_print initializer.
6524 (auto_language::value_print): New member function.
6525 * language.h (language_data): Delete la_value_print field.
6526 (language_defn::value_print): Declare new member function.
6527 (LA_VALUE_PRINT): Update call to value_print.
6528 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6529 * objc-lang.c (objc_language_data): Likewise.
6530 * opencl-lang.c (opencl_language_data): Likewise.
6531 * p-lang.c (pascal_language_data): Likewise.
6532 (pascal_language::value_print): New member function.
6533 * rust-lang.c (rust_language_data): Delete la_value_print
6534 initializer.
6535
6536 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * ada-lang.c (ada_watch_location_expression): Rename to
6539 ada_language::watch_location_expression.
6540 (ada_language_data): Delete la_watch_location_expression
6541 initializer.
6542 (ada_language::watch_location_expression): New member function,
6543 implementation from ada_watch_location_expression.
6544 * breakpoint.c (watch_command_1): Update call to
6545 watch_location_expression.
6546 * c-lang.c (c_watch_location_expression): Rename to
6547 language_defn::watch_location_expression.
6548 (c_language_data): Delete la_watch_location_expression
6549 initializer.
6550 (cplus_language_data): Likewise.
6551 (asm_language_data): Likewise.
6552 (minimal_language_data): Likewise.
6553 * c-lang.h (c_watch_location_expression): Delete declaration.
6554 * d-lang.c (d_language_data): Delete la_watch_location_expression
6555 initializer.
6556 * f-lang.c (f_language_data): Likewise.
6557 * go-lang.c (go_language_data): Likewise.
6558 * language.c (language_defn::watch_location_expression): Member
6559 function implementation from c_watch_location_expression.
6560 (unknown_language_data): Delete la_watch_location_expression
6561 initializer.
6562 (auto_language_data): Likewise.
6563 * language.h (language_data): Delete la_watch_location_expression
6564 field.
6565 (language_defn::watch_location_expression): Declare new member
6566 function.
6567 * m2-lang.c (m2_language_data): Delete
6568 la_watch_location_expression initializer.
6569 * objc-lang.c (objc_language_data): Likewise.
6570 * opencl-lang.c (opencl_language_data): Likewise.
6571 * p-lang.c (pascal_language_data): Likewise.
6572 * rust-lang.c (rust_watch_location_expression): Rename to
6573 rust_language::watch_location_expression.
6574 (rust_language_data): Delete la_watch_location_expression
6575 initializer.
6576 (rust_language::watch_location_expression): New member function,
6577 implementation from rust_watch_location_expression.
6578
6579 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6580
6581 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6582 ada_language::collect_symbol_completion_matches.
6583 (ada_language_data): Delete la_collect_symbol_completion_matches
6584 initializer.
6585 (ada_language::collect_symbol_completion_matches): New member
6586 function, implementation from
6587 ada_collect_symbol_completion_matches.
6588 * c-lang.c (c_language_data): Delete
6589 la_collect_symbol_completion_matches initializer.
6590 (cplus_language_data): Likewise.
6591 (asm_language_data): Likewise.
6592 (minimal_language_data): Likewise.
6593 * d-lang.c (d_language_data): Likewise.
6594 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6595 f_language::collect_symbol_completion_matches.
6596 (f_language_data): Delete la_collect_symbol_completion_matches
6597 initializer.
6598 (f_language::collect_symbol_completion_matches) New member
6599 function, implementation from f_collect_symbol_completion_matches.
6600 * go-lang.c (go_language_data): Delete
6601 la_collect_symbol_completion_matches initializer.
6602 * language.c (unknown_language_data): Likewise.
6603 (auto_language_data): Likewise.
6604 * language.h (language_data): Delete
6605 la_collect_symbol_completion_matches field.
6606 (language_defn::collect_symbol_completion_matches): New member
6607 function.
6608 * m2-lang.c (m2_language_data): Delete
6609 la_collect_symbol_completion_matches initializer.
6610 * objc-lang.c (objc_language_data): Likewise.
6611 * opencl-lang.c (opencl_language_data): Likewise.
6612 * p-lang.c (pascal_language_data): Likewise.
6613 * rust-lang.c (rust_language_data): Likewise.
6614 * symtab.c (default_collect_symbol_completion_matches): Delete.
6615 (collect_symbol_completion_matches): Update call to
6616 collect_symbol_completion_matches.
6617 (collect_symbol_completion_matches_type): Likewise.
6618 * symtab.h (default_collect_symbol_completion_matches): Delete
6619 declaration.
6620
6621 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6622
6623 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6624 (ada_language_data): Delete la_word_break_characters initializer.
6625 (ada_language::word_break_characters): New member function.
6626 * c-lang.c (c_language_data): Delete la_word_break_characters
6627 initializer.
6628 (cplus_language_data): Likewise.
6629 (asm_language_data): Likewise.
6630 (minimal_language_data): Likewise.
6631 * completer.c: Update global comment.
6632 (advance_to_expression_complete_word_point): Update call to
6633 word_break_characters.
6634 (complete_files_symbols): Likewise.
6635 (complete_line_internal_1): Likewise.
6636 (default_completer_handle_brkchars): Likewise.
6637 (skip_quoted_chars): Likewise.
6638 * d-lang.c (d_language_data): Delete la_word_break_characters
6639 initializer.
6640 * f-lang.c (f_word_break_characters): Delete.
6641 (f_language_data): Delete la_word_break_characters initializer.
6642 (f_language::word_break_characters): New member function.
6643 * go-lang.c (go_language_data): Delete la_word_break_characters
6644 initializer.
6645 * language.c (unknown_language_data): Likewise.
6646 (auto_language_data): Likewise.
6647 * language.h (default_word_break_characters): Move declaration to
6648 earlier in the file.
6649 (language_data): Delete la_word_break_characters field.
6650 (language_defn::word_break_characters): New member function.
6651 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6652 initializer.
6653 * objc-lang.c (objc_language_data): Likewise.
6654 * opencl-lang.c (opencl_language_data): Likewise.
6655 * p-lang.c (pascal_language_data): Likewise.
6656 * rust-lang.c (rust_language_data): Likewise.
6657
6658 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6659
6660 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6661 (ada_language_data): Delete la_get_symbol_name_matcher
6662 initializer.
6663 (language_defn::get_symbol_name_matcher_inner): New member
6664 function.
6665 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6666 initializer.
6667 (cplus_language_data): Likewise.
6668 (cplus_language::get_symbol_name_matcher_inner): New member
6669 function.
6670 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6671 (minimal_language_data): Likewise.
6672 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6673 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6674 initializer.
6675 * dictionary.c (iter_match_first_hashed): Update call to
6676 get_symbol_name_matcher.
6677 (iter_match_next_hashed): Likewise.
6678 (iter_match_next_linear): Likewise.
6679 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6680 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6681 initializer.
6682 (f_language::get_symbol_name_matcher_inner): New member function.
6683 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6684 initializer.
6685 * language.c (default_symbol_name_matcher): Update header comment,
6686 make static.
6687 (language_defn::get_symbol_name_matcher): New definition.
6688 (language_defn::get_symbol_name_matcher_inner): Likewise.
6689 (get_symbol_name_matcher): Delete.
6690 (unknown_language_data): Delete la_get_symbol_name_matcher
6691 initializer.
6692 (auto_language_data): Likewise.
6693 * language.h (language_data): Delete la_get_symbol_name_matcher
6694 field.
6695 (language_defn::get_symbol_name_matcher): New member function.
6696 (language_defn::get_symbol_name_matcher_inner): Likewise.
6697 (default_symbol_name_matcher): Delete declaration.
6698 * linespec.c (find_methods): Update call to
6699 get_symbol_name_matcher.
6700 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6701 initializer.
6702 * minsyms.c (lookup_minimal_symbol): Update call to
6703 get_symbol_name_matcher.
6704 (iterate_over_minimal_symbols): Likewise.
6705 * objc-lang.c (objc_language_data): Delete
6706 la_get_symbol_name_matcher initializer.
6707 * opencl-lang.c (opencl_language_data): Likewise.
6708 * p-lang.c (pascal_language_data): Likewise.
6709 * psymtab.c (psymbol_name_matches): Update call to
6710 get_symbol_name_matcher.
6711 * rust-lang.c (rust_language_data): Delete
6712 la_get_symbol_name_matcher initializer.
6713 * symtab.c (symbol_matches_search_name): Update call to
6714 get_symbol_name_matcher.
6715 (compare_symbol_name): Likewise.
6716
6717 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * ada-lang.c (ada_language_data): Delete la_compute_program
6720 initializer.
6721 * c-lang.c (c_language_data): Likewise.
6722 (c_language::compute_program): New member function.
6723 (cplus_language_data): Delete la_compute_program initializer.
6724 (cplus_language::compute_program): New member function.
6725 (asm_language_data): Delete la_compute_program initializer.
6726 (minimal_language_data): Likewise.
6727 * c-lang.h (c_compute_program): Update comment.
6728 (cplus_compute_program): Likewise.
6729 * compile/compile-c-support.c (c_compute_program): Likewise.
6730 (cplus_compute_program): Likewise.
6731 * compile/compile.c (compile_to_object): Update call to
6732 la_compute_program.
6733 * d-lang.c (d_language_data): Delete la_compute_program
6734 initializer.
6735 * f-lang.c (f_language_data): Likewise.
6736 * go-lang.c (go_language_data): Likewise.
6737 * language.c (unknown_language_data): Likewise.
6738 (auto_language_data): Likewise.
6739 * language.h (language_data): Delete la_compute_program field.
6740 (language_defn::compute_program): New member function.
6741 * m2-lang.c (m2_language_data): Delete la_compute_program
6742 initializer.
6743 * objc-lang.c (objc_language_data): Likewise.
6744 * opencl-lang.c (opencl_language_data): Likewise.
6745 * p-lang.c (pascal_language_data): Likewise.
6746 * rust-lang.c (rust_language_data): Likewise.
6747
6748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 * ada-lang.c (ada_language_data) Delete
6751 la_class_name_from_physname initializer.
6752 * c-lang.c (c_language_data): Likewise.
6753 (cplus_language_data): Likewise.
6754 (cplus_language::class_name_from_physname): New member function.
6755 (asm_language_data): Delete la_class_name_from_physname
6756 initializer.
6757 (minimal_language_data): Likewise.
6758 * d-lang.c (d_language_data): Likewise.
6759 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6760 method on language_defn class.
6761 (guess_full_die_structure_name): Likewise.
6762 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6763 initializer.
6764 * go-lang.c (go_language_data): Likewise.
6765 * language.c (language_class_name_from_physname): Delete.
6766 (unk_lang_class_name): Delete.
6767 (unknown_language_data): Delete la_class_name_from_physname
6768 initializer.
6769 (auto_language_data): Likewise.
6770 * language.h (language_data): Delete la_class_name_from_physname
6771 field.
6772 (language_defn::class_name_from_physname): New function.
6773 (language_class_name_from_physname): Delete declaration.
6774 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6775 initializer.
6776 * objc-lang.c (objc_language_data): Likewise.
6777 * opencl-lang.c (opencl_language_data): Likewise.
6778 * p-lang.c (pascal_language_data): Likewise.
6779 * rust-lang.c (rust_language_data): Likewise.
6780
6781 2020-06-16 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-data.h (STATUS_NAME): New macro.
6784 * tui/tui-layout.c (tui_remove_some_windows)
6785 (initialize_known_windows, tui_register_window)
6786 (tui_layout_split::remove_windows, initialize_layouts)
6787 (tui_new_layout_command): Don't use hard-coded window names.
6788
6789 2020-06-16 Tom Tromey <tom@tromey.com>
6790
6791 PR tui/25348:
6792 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6793 tui_initialize_readline. Only run once. Call rl_initialize.
6794 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6795 tui_initialize_readline.
6796 * tui/tui-io.c (tui_setup_io): Call
6797 tui_ensure_readline_initialized.
6798 * tui/tui-interp.c (tui_interp::init): Update.
6799
6800 2020-06-16 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6803 Also preserve the status window.
6804
6805 2020-06-16 Tom Tromey <tom@tromey.com>
6806
6807 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6808 where m_window==nullptr.
6809
6810 2020-06-15 Tom Tromey <tromey@adacore.com>
6811
6812 * windows-nat.c (windows_nat::handle_output_debug_string):
6813 Update.
6814 (windows_nat::handle_ms_vc_exception): Update.
6815 * target.h (target_read_string): Change API.
6816 * target.c (target_read_string): Change API.
6817 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6818 Update.
6819 * solib-frv.c (frv_current_sos): Update.
6820 * solib-dsbt.c (dsbt_current_sos): Update.
6821 * solib-darwin.c (darwin_current_sos): Update.
6822 * linux-thread-db.c (inferior_has_bug): Update.
6823 * expprint.c (print_subexp_standard): Update.
6824 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6825 (ada_exception_message_1): Update.
6826
6827 2020-06-15 Tom Tromey <tromey@adacore.com>
6828
6829 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6830
6831 2020-06-15 Tom Tromey <tromey@adacore.com>
6832
6833 * valprint.c (read_string): Update comment.
6834 * target.c (MIN): Remove.
6835 (target_read_string): Rewrite.
6836
6837 2020-06-15 Tom Tromey <tromey@adacore.com>
6838
6839 * corefile.c (read_memory_string): Remove.
6840 * ada-valprint.c (ada_value_print_ptr): Update.
6841 * ada-lang.h (ada_tag_name): Change return type.
6842 * ada-lang.c (type_from_tag): Update.
6843 (ada_tag_name_from_tsd): Change return type. Use
6844 target_read_string.
6845 (ada_tag_name): Likewise.
6846 * gdbcore.h (read_memory_string): Don't declare.
6847
6848 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6849
6850 * symtab.c (rbreak_command): Ignore Windows drive colon.
6851
6852 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6853
6854 * NEWS: Mention removed GDBserver host support.
6855
6856 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6857
6858 * features/riscv/rebuild-csr-xml.sh: Updated.
6859
6860 2020-06-11 Tom Tromey <tom@tromey.com>
6861
6862 PR gdb/18318:
6863 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6864
6865 2020-06-09 Jonny Grant <jg@jguk.org>
6866 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 * main.c (captured_main_1): Don't print new line after help.
6869 (print_gdb_help): add mailing list and IRC channel information
6870 to --help. Add new lines between items in the footer. Remove
6871 quotes around bug url.
6872
6873 2020-06-11 Keith Seitz <keiths@redhat.com>
6874
6875 PR gdb/21356
6876 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6877 Resolve typedefs for type length calculations.
6878
6879 2020-06-10 Tom de Vries <tdevries@suse.de>
6880
6881 PR ada/24713
6882 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6883 (write_psymbols): Enable .gdb_index for ada.
6884 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6885 ada.
6886
6887 2020-06-10 Tom de Vries <tdevries@suse.de>
6888
6889 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6890 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6891 namei" instead of "const char *name" argument.
6892 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6893 dw2_symtab_iter_init.
6894
6895 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6898 to use type::field and field::type instead.
6899
6900 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6903 to use field::type instead.
6904
6905 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * gdbtypes.h (struct field) <type, set_type>: New methods.
6908 Rename `type` field to...
6909 <m_type>: ... this. Change references throughout to use type or
6910 set_type methods.
6911 (FIELD_TYPE): Use field::type. Change call sites that modify
6912 the field's type to use field::set_type instead.
6913
6914 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6917 to use type::index_type instead.
6918
6919 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6922 methods.
6923 (TYPE_INDEX_TYPE): Use type::index_type.
6924 * gdbtypes.c (create_array_type_with_stride): Likewise.
6925
6926 2020-06-07 Tom Tromey <tom@tromey.com>
6927
6928 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6929 parameter.
6930 (generic_value_print): Update.
6931
6932 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 Revert commit 982a38f60b0.
6935 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6936
6937 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6940 avoid use after free.
6941
6942 2020-06-05 Tom de Vries <tdevries@suse.de>
6943
6944 * NEWS: Fix typos.
6945
6946 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6949 the per_bfd object.
6950 (dwarf2_read_debug_names): Likewise.
6951 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6952 object when re-using a per_bfd object with an index.
6953
6954 2020-06-03 Tom de Vries <tdevries@suse.de>
6955
6956 PR symtab/26046
6957 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6958 children for C++.
6959 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6960 DW_TAG_subprogram.
6961
6962 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6963
6964 * ada-lang.c (ada_language_data): Delete skip_trampoline
6965 initializer.
6966 * c-lang.c (c_language_data): Likewise.
6967 (cplus_language_data): Likewise.
6968 (cplus_language::skip_trampoline): New member function.
6969 (asm_language_data): Delete skip_trampoline initializer.
6970 (minimal_language_data): Likewise.
6971 * d-lang.c (d_language_data): Likewise.
6972 * f-lang.c (f_language_data): Likewise.
6973 * go-lang.c (go_language_data): Likewise.
6974 * language.c (unk_lang_trampoline): Delete function.
6975 (skip_language_trampoline): Update.
6976 (unknown_language_data): Delete skip_trampoline initializer.
6977 (auto_language_data): Likewise.
6978 * language.h (language_data): Delete skip_trampoline field.
6979 (language_defn::skip_trampoline): New function.
6980 * m2-lang.c (m2_language_data): Delete skip_trampoline
6981 initializer.
6982 * objc-lang.c (objc_skip_trampoline): Delete function, move
6983 implementation to objc_language::skip_trampoline.
6984 (objc_language_data): Delete skip_trampoline initializer.
6985 (objc_language::skip_trampoline): New member function with
6986 implementation from objc_skip_trampoline.
6987 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6988 initializer.
6989 * p-lang.c (pascal_language_data): Likewise.
6990 * rust-lang.c (rust_language_data): Likewise.
6991
6992 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6993
6994 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6995 (ada_language::demangle): New member function.
6996 * c-lang.c (c_language_data): Delete la_demangle initializer.
6997 (cplus_language_data): Delete la_demangle initializer.
6998 (cplus_language::demangle): New member function.
6999 (asm_language_data): Delete la_demangle initializer.
7000 (minimal_language_data): Delete la_demangle initializer.
7001 * d-lang.c (d_language_data): Delete la_demangle initializer.
7002 (d_language::demangle): New member function.
7003 * f-lang.c (f_language_data): Delete la_demangle initializer.
7004 (f_language::demangle): New member function.
7005 * go-lang.c (go_language_data): Delete la_demangle initializer.
7006 (go_language::demangle): New member function.
7007 * language.c (language_demangle): Update.
7008 (unk_lang_demangle): Delete.
7009 (unknown_language_data): Delete la_demangle initializer.
7010 (unknown_language::demangle): New member function.
7011 (auto_language_data): Delete la_demangle initializer.
7012 (auto_language::demangle): New member function.
7013 * language.h (language_data): Delete la_demangle field.
7014 (language_defn::demangle): New function.
7015 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7016 * objc-lang.c (objc_language_data): Delete la_demangle
7017 initializer.
7018 (objc_language::demangle): New member function.
7019 * opencl-lang.c (opencl_language_data): Delete la_demangle
7020 initializer.
7021 * p-lang.c (pascal_language_data): Likewise.
7022 * rust-lang.c (rust_language_data): Likewise.
7023 (rust_language::demangle): New member function.
7024
7025 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 * ada-lang.c (ada_language_data): Delete la_print_type
7028 initializer.
7029 (ada_language::print_type): New member function.
7030 * c-lang.c (c_language_data): Delete la_print_type initializer.
7031 (c_language::print_type): New member function.
7032 (cplus_language_data): Delete la_print_type initializer.
7033 (cplus_language::print_type): New member function.
7034 (asm_language_data): Delete la_print_type initializer.
7035 (asm_language::print_type): New member function.
7036 (minimal_language_data): Delete la_print_type initializer.
7037 (minimal_language::print_type): New member function.
7038 * d-lang.c (d_language_data): Delete la_print_type initializer.
7039 (d_language::print_type): New member function.
7040 * f-lang.c (f_language_data): Delete la_print_type initializer.
7041 (f_language::print_type): New member function.
7042 * go-lang.c (go_language_data): Delete la_print_type initializer.
7043 (go_language::print_type): New member function.
7044 * language.c (unk_lang_print_type): Delete.
7045 (unknown_language_data): Delete la_print_type initializer.
7046 (unknown_language::print_type): New member function.
7047 (auto_language_data): Delete la_print_type initializer.
7048 (auto_language::print_type): New member function.
7049 * language.h (language_data): Delete la_print_type field.
7050 (language_defn::print_type): New function.
7051 (LA_PRINT_TYPE): Update.
7052 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7053 (m2_language::print_type): New member function.
7054 * objc-lang.c (objc_language_data): Delete la_print_type
7055 initializer.
7056 (objc_language::print_type): New member function.
7057 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7058 to opencl_language::print_type.
7059 (opencl_language_data): Delete la_print_type initializer.
7060 (opencl_language::print_type): New member function, implementation
7061 from opencl_print_type.
7062 * p-lang.c (pascal_language_data): Delete la_print_type
7063 initializer.
7064 (pascal_language::print_type): New member function.
7065 * rust-lang.c (rust_print_type): Delete, implementation moved to
7066 rust_language::print_type.
7067 (rust_language_data): Delete la_print_type initializer.
7068 (rust_language::print_type): New member function, implementation
7069 from rust_print_type.
7070
7071 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7074 implementation moves to...
7075 (ada_language::sniff_from_mangled_name): ...here. Update return
7076 type.
7077 (ada_language_data): Delete la_sniff_from_mangled_name
7078 initializer.
7079 * c-lang.c (c_language_data): Likewise.
7080 (cplus_language_data): Likewise.
7081 (cplus_language::sniff_from_mangled_name): New member function,
7082 implementation taken from gdb_sniff_from_mangled_name.
7083 (asm_language_data): Delete la_sniff_from_mangled_name
7084 initializer.
7085 (minimal_language_data): Likewise.
7086 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7087 implementation moves to cplus_language::sniff_from_mangled_name.
7088 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7089 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7090 moves to...
7091 (d_language::sniff_from_mangled_name): ...here.
7092 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7093 * f-lang.c (f_language_data): Likewise.
7094 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7095 moves to...
7096 (go_language::sniff_from_mangled_name): ...here.
7097 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7098 * language.c (language_sniff_from_mangled_name): Delete.
7099 (unknown_language_data): Delete la_sniff_from_mangled_name
7100 initializer.
7101 (auto_language_data): Likewise.
7102 * language.h (language_data): Delete la_sniff_from_mangled_name
7103 field.
7104 (language_defn::sniff_from_mangled_name): New function.
7105 (language_sniff_from_mangled_name): Delete declaration.
7106 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7107 field.
7108 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7109 implementation moves to...
7110 (objc_language::sniff_from_mangled_name): ...here.
7111 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7112 * opencl-lang.c (opencl_language_data): Likewise.
7113 * p-lang.c (pascal_language_data): Likewise.
7114 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7115 implementation moves to...
7116 (rust_language::sniff_from_mangled_name): ...here.
7117 (rust_language_data): Delete la_sniff_from_mangled_name
7118 initializer.
7119 * symtab.c (symbol_find_demangled_name): Call
7120 sniff_from_mangled_name member function.
7121
7122 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7123
7124 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7125 initializer.
7126 * c-lang.c (c_language_data): Likewise.
7127 (cplus_language_data): Likewise.
7128 (cplus_language::search_name_hash): New member function.
7129 (asm_language_data): Delete la_search_name_hash initializer.
7130 (minimal_language_data): Likewise.
7131 * d-lang.c (d_language_data): Likewise.
7132 * dictionary.c (default_search_name_hash): Rename to...
7133 (language_defn::search_name_hash): ...this.
7134 * f-lang.c (f_language_data): Likewise.
7135 (f_language::search_name_hash): New member function.
7136 * go-lang.c (go_language_data): Delete la_search_name_hash
7137 initializer.
7138 * language.c (unknown_language_data): Likewise.
7139 (auto_language_data): Likewise.
7140 * language.h (struct language_data): Delete la_search_name_hash
7141 field.
7142 (language_defn::search_name_hash): Declare new member function.
7143 (default_search_name_hash): Delete declaration.
7144 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7145 initializer.
7146 * objc-lang.c (objc_language_data): Likewise.
7147 * opencl-lang.c (opencl_language_data): Likewise.
7148 * p-lang.c (pascal_language_data): Likewise.
7149 * rust-lang.c (rust_language_data): Likewise.
7150 * symtab.c (search_name_hash): Update call.
7151
7152 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7153
7154 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7155 initializer.
7156 * c-lang.c (class compile_instance): Declare.
7157 (c_language_data): Delete la_get_compile_instance initializer.
7158 (c_language::get_compile_instance): New member function.
7159 (cplus_language_data): Delete la_get_compile_instance initializer.
7160 (cplus_language::get_compile_instance): New member function.
7161 (asm_language_data): Delete la_get_compile_instance initializer.
7162 (minimal_language_data): Likewise.
7163 * c-lang.h (c_get_compile_context): Update comment.
7164 (cplus_get_compile_context): Update comment.
7165 * compile/compile.c (compile_to_object): Update calls, don't rely
7166 on function pointer being NULL.
7167 * d-lang.c (d_language_data): Delete la_get_compile_instance
7168 initializer.
7169 * f-lang.c (f_language_data): Likewise.
7170 * go-lang.c (go_language_data): Likewise.
7171 * language.c (unknown_language_data): Likewise.
7172 (auto_language_data): Likewise.
7173 * language.h (language_data): Delete la_get_compile_instance field.
7174 (language_defn::get_compile_instance): New member function.
7175 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7176 initializer.
7177 * objc-lang.c (objc_language_data): Likewise.
7178 * opencl-lang.c (opencl_language_data): Likewise.
7179 * p-lang.c (pascal_language_data): Likewise.
7180 * rust-lang.c (rust_language_data): Likewise.
7181
7182 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * ada-lang.c (ada_add_all_symbols): Update comment.
7185 (ada_iterate_over_symbols): Delete, move implementation to...
7186 (ada_language::iterate_over_symbols): ...here, a new member
7187 function, rewrite to use range based for loop.
7188 (ada_language_data): Delete la_iterate_over_symbols initializer.
7189 * c-lang.c (c_language_data): Likewise.
7190 (cplus_language_data): Likewise.
7191 (asm_language_data): Likewise.
7192 (minimal_language_data): Likewise.
7193 * d-lang.c (d_language_data): Likewise.
7194 * f-lang.c (f_language_data): Likewise.
7195 * go-lang.c (go_language_data): Likewise.
7196 * language.c (unknown_language_data): Likewise.
7197 (auto_language_data): Likewise.
7198 * language.h (language_data): Delete la_iterate_over_symbols field.
7199 (language_defn::iterate_over_symbols): New member function.
7200 (LA_ITERATE_OVER_SYMBOLS): Update.
7201 * linespec.c (iterate_over_all_matching_symtabs): Update.
7202 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7203 initializer.
7204 * objc-lang.c (objc_language_data): Likewise.
7205 * opencl-lang.c (opencl_language_data): Likewise.
7206 * p-lang.c (pascal_language_data): Likewise.
7207 * rust-lang.c (rust_language_data): Likewise.
7208
7209 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7210
7211 * ada-lang.c (ada_language_data): Delete
7212 la_lookup_transparent_type initializer.
7213 * c-lang.c (c_language_data): Likewise.
7214 (cplus_language_data): Likewise.
7215 (cplus_language::lookup_transparent_type): New member function.
7216 (asm_language_data): Delete la_lookup_transparent_type
7217 initializer.
7218 (minimal_language_data): Likewise.
7219 * d-lang.c (d_language_data): Likewise.
7220 * f-lang.c (f_language_data): Likewise.
7221 * go-lang.c (go_language_data): Likewise.
7222 * language.c (unknown_language_data): Likewise.
7223 (auto_language_data): Likewise.
7224 * language.h (struct language_data): Delete
7225 la_lookup_transparent_type field.
7226 (language_defn::lookup_transparent_type): New member function.
7227 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7228 initializer.
7229 * objc-lang.c (objc_language_data): Likewise.
7230 * opencl-lang.c (opencl_language_data): Likewise.
7231 * p-lang.c (pascal_language_data): Likewise.
7232 * rust-lang.c (rust_language_data): Likewise.
7233 * symtab.c (symbol_matches_domain): Update call.
7234
7235 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7236
7237 * ada-lang.c (ada_language_arch_info): Delete function, move
7238 implementation to...
7239 (ada_language::language_arch_info): ...here, a new member
7240 function.
7241 (ada_language_data): Delete la_language_arch_info.
7242 * c-lang.c (c_language_data): Likewise.
7243 (c_language::language_arch_info): New member function.
7244 (cplus_language_arch_info): Delete function, move
7245 implementation to...
7246 (cplus_language::language_arch_info): ...here, a new member
7247 function.
7248 (cplus_language_data): Delete la_language_arch_info.
7249 (asm_language_data): Likewise.
7250 (asm_language::language_arch_info): New member function.
7251 (minimal_language_data): Delete la_language_arch_info.
7252 (minimal_language::language_arch_info): New member function.
7253 * d-lang.c (d_language_arch_info): Delete function, move
7254 implementation to...
7255 (d_language::language_arch_info): ...here, a new member
7256 function.
7257 (d_language_data): Delete la_language_arch_info.
7258 * f-lang.c (f_language_arch_info): Delete function, move
7259 implementation to...
7260 (f_language::language_arch_info): ...here, a new member
7261 function.
7262 (f_language_data): Delete la_language_arch_info.
7263 * go-lang.c (go_language_arch_info): Delete function, move
7264 implementation to...
7265 (go_language::language_arch_info): ...here, a new member
7266 function.
7267 (go_language_data): Delete la_language_arch_info.
7268 * language.c (unknown_language_data): Likewise.
7269 (unknown_language::language_arch_info): New member function.
7270 (auto_language_data): Delete la_language_arch_info.
7271 (auto_language::language_arch_info): New member function.
7272 (language_gdbarch_post_init): Update call to
7273 la_language_arch_info.
7274 * language.h (language_data): Delete la_language_arch_info
7275 function pointer.
7276 (language_defn::language_arch_info): New function.
7277 * m2-lang.c (m2_language_arch_info): Delete function, move
7278 implementation to...
7279 (m2_language::language_arch_info): ...here, a new member
7280 function.
7281 (m2_language_data): Delete la_language_arch_info.
7282 * objc-lang.c (objc_language_arch_info): Delete function, move
7283 implementation to...
7284 (objc_language::language_arch_info): ...here, a new member
7285 function.
7286 (objc_language_data): Delete la_language_arch_info.
7287 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7288 implementation to...
7289 (opencl_language::language_arch_info): ...here, a new member
7290 function.
7291 (opencl_language_data): Delete la_language_arch_info.
7292 * p-lang.c (pascal_language_arch_info): Delete function, move
7293 implementation to...
7294 (pascal_language::language_arch_info): ...here, a new member
7295 function.
7296 (pascal_language_data): Delete la_language_arch_info.
7297 * rust-lang.c (rust_language_arch_info): Delete function, move
7298 implementation to...
7299 (rust_language::language_arch_info): ...here, a new member
7300 function.
7301 (rust_language_data): Delete la_language_arch_info.
7302
7303 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7306 initializer.
7307 * c-lang.c (c_language_data): Likewise.
7308 (cplus_language_data): Likewise.
7309 (cplus_language::pass_by_reference_info): New method.
7310 (asm_language_data): Delete la_pass_by_reference initializer.
7311 (minimal_language_data): Likewise.
7312 * cp-abi.c (cp_pass_by_reference): Remove use of
7313 default_pass_by_reference.
7314 * d-lang.c (d_language_data): Likewise.
7315 * f-lang.c (f_language_data): Likewise.
7316 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7317 default_pass_by_reference.
7318 * go-lang.c (go_language_data): Likewise.
7319 * language.c (language_pass_by_reference): Update.
7320 (default_pass_by_reference): Delete.
7321 (unknown_language_data): Delete la_pass_by_reference
7322 initializer.
7323 (auto_language_data): Likewise.
7324 * language.h (struct language_data): Delete la_pass_by_reference
7325 field.
7326 (language_defn::pass_by_reference_info): New member function.
7327 (default_pass_by_reference): Delete declaration.
7328 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7329 initializer.
7330 * objc-lang.c (objc_language_data): Likewise.
7331 * opencl-lang.c (opencl_language_data): Likewise.
7332 * p-lang.c (pascal_language_data): Likewise.
7333 * rust-lang.c (rust_language_data): Likewise.
7334
7335 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * ada-lang.c (ada_read_var_value): Delete function, move
7338 implementation to...
7339 (ada_language::read_var_value): ...here.
7340 (ada_language_data): Delete la_read_var_value initializer.
7341 * c-lang.c (c_language_data): Likewise.
7342 (cplus_language_data): Likewise.
7343 (minimal_language_data): Likewise.
7344 * d-lang.c (d_language_data): Likewise.
7345 * f-lang.c (f_language_data): Likewise.
7346 * findvar.c (default_read_var_value): Rename to...
7347 (language_defn::read_var_value): ...this.
7348 * findvar.c (read_var_value): Update header comment, and change to
7349 call member function instead of function pointer.
7350 * go-lang.c (go_language_data): Likewise.
7351 * language.c (unknown_language_data): Delete la_read_var_value
7352 initializer.
7353 (auto_language_data): Likewise.
7354 * language.h (struct language_data): Delete la_read_var_value
7355 field.
7356 (language_defn::read_var_value): New member function.
7357 (default_read_var_value): Delete declaration.
7358 * m2-lang.c (m2_language_data): Delete la_read_var_value
7359 initializer.
7360 * objc-lang.c (objc_language_data): Likewise.
7361 * opencl-lang.c (opencl_language_data): Likewise.
7362 * p-lang.c (pascal_language_data): Likewise.
7363 * rust-lang.c (rust_language_data): Likewise.
7364 * value.h (default_read_var_value): Delete declaration.
7365
7366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7367
7368 * ada-lang.c (ada_print_array_index): Delete function, move
7369 implementation to...
7370 (ada_language::print_array_index): ...here.
7371 (ada_language_data): Delete la_print_array_index initializer.
7372 * c-lang.c (c_language_data): Likewise.
7373 (cplus_language_data): Likewise.
7374 (minimal_language_data): Likewise.
7375 * d-lang.c (d_language_data): Likewise.
7376 * f-lang.c (f_language_data): Likewise.
7377 * go-lang.c (go_language_data): Likewise.
7378 * language.c (default_print_array_index): Delete function, move
7379 implementation to...
7380 (language_defn::print_array_index): ...here.
7381 (unknown_language_data): Delete la_print_array_index initializer.
7382 (auto_language_data): Likewise.
7383 * language.h (struct language_data): Delete la_print_array_index
7384 field.
7385 (language_defn::print_array_index): New member function.
7386 (LA_PRINT_ARRAY_INDEX): Update.
7387 (default_print_array_index): Delete declaration.
7388 * m2-lang.c (m2_language_data): Delete la_print_array_index
7389 initializer.
7390 * objc-lang.c (objc_language_data): Likewise.
7391 * opencl-lang.c (opencl_language_data): Likewise.
7392 * p-lang.c (pascal_language_data): Likewise.
7393 * rust-lang.c (rust_language_data): Likewise.
7394
7395 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7396
7397 * gdb/ada-lang.c (ada_language_defn): Convert to...
7398 (ada_language_data): ...this.
7399 (class ada_language): New class.
7400 (ada_language_defn): New static global.
7401 * gdb/c-lang.c (c_language_defn): Convert to...
7402 (c_language_data): ...this.
7403 (class c_language): New class.
7404 (c_language_defn): New static global.
7405 (cplus_language_defn): Convert to...
7406 (cplus_language_data): ...this.
7407 (class cplus_language): New class.
7408 (cplus_language_defn): New static global.
7409 (asm_language_defn): Convert to...
7410 (asm_language_data): ...this.
7411 (class asm_language): New class.
7412 (asm_language_defn): New static global.
7413 (minimal_language_defn): Convert to...
7414 (minimal_language_data): ...this.
7415 (class minimal_language): New class.
7416 (minimal_language_defn): New static global.
7417 * gdb/d-lang.c (d_language_defn): Convert to...
7418 (d_language_data): ...this.
7419 (class d_language): New class.
7420 (d_language_defn): New static global.
7421 * gdb/f-lang.c (f_language_defn): Convert to...
7422 (f_language_data): ...this.
7423 (class f_language): New class.
7424 (f_language_defn): New static global.
7425 * gdb/go-lang.c (go_language_defn): Convert to...
7426 (go_language_data): ...this.
7427 (class go_language): New class.
7428 (go_language_defn): New static global.
7429 * gdb/language.c (unknown_language_defn): Remove declaration.
7430 (current_language): Initialize to nullptr, real initialization is
7431 moved to _initialize_language.
7432 (languages): Delete global.
7433 (language_defn::languages): Define.
7434 (set_language_command): Use language_defn::languages.
7435 (set_language): Likewise.
7436 (range_error): Likewise.
7437 (language_enum): Likewise.
7438 (language_def): Likewise.
7439 (add_set_language_command): Use language_def::languages for the
7440 language list, and language_def to lookup language pointers.
7441 (skip_language_trampoline): Use language_defn::languages.
7442 (unknown_language_defn): Convert to...
7443 (unknown_language_data): ...this.
7444 (class unknown_language): New class.
7445 (unknown_language_defn): New static global.
7446 (auto_language_defn): Convert to...
7447 (auto_language_data): ...this.
7448 (class auto_language): New class.
7449 (auto_language_defn): New static global.
7450 (language_gdbarch_post_init): Use language_defn::languages.
7451 (_initialize_language): Initialize current_language.
7452 * gdb/language.h (struct language_defn): Rename to...
7453 (struct language_data): ...this.
7454 (struct language_defn): New.
7455 (auto_language_defn): Delete.
7456 (unknown_language_defn): Delete.
7457 (minimal_language_defn): Delete.
7458 (ada_language_defn): Delete.
7459 (asm_language_defn): Delete.
7460 (c_language_defn): Delete.
7461 (cplus_language_defn): Delete.
7462 (d_language_defn): Delete.
7463 (f_language_defn): Delete.
7464 (go_language_defn): Delete.
7465 (m2_language_defn): Delete.
7466 (objc_language_defn): Delete.
7467 (opencl_language_defn): Delete.
7468 (pascal_language_defn): Delete.
7469 (rust_language_defn): Delete.
7470 * gdb/m2-lang.c (m2_language_defn): Convert to...
7471 (m2_language_data): ...this.
7472 (class m2_language): New class.
7473 (m2_language_defn): New static global.
7474 * gdb/objc-lang.c (objc_language_defn): Convert to...
7475 (objc_language_data): ...this.
7476 (class objc_language): New class.
7477 (objc_language_defn): New static global.
7478 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7479 (opencl_language_data): ...this.
7480 (class opencl_language): New class.
7481 (opencl_language_defn): New static global.
7482 * gdb/p-lang.c (pascal_language_defn): Convert to...
7483 (pascal_language_data): ...this.
7484 (class pascal_language): New class.
7485 (pascal_language_defn): New static global.
7486 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7487 language pointer, update comment format.
7488 * gdb/rust-lang.c (rust_language_defn): Convert to...
7489 (rust_language_data): ...this.
7490 (class rust_language): New class.
7491 (rust_language_defn): New static global.
7492
7493 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7494
7495 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7496 member variable.
7497 <m_stmt_at_address>: New member variable.
7498 (lnp_state_machine::record_line): Don't record some lines, update
7499 tracking of is_stmt at the same address.
7500 (lnp_state_machine::lnp_state_machine): Initialise new member
7501 variables.
7502
7503 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7504
7505 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7506 "-include gnu-nat-mig.h".
7507 * gnu-nat-mig.h: New file.
7508 * gnu-nat.c: Include "gnu-nat-mig.h".
7509 (exc_server, msg_reply_server, notify_server,
7510 process_reply_server): Remove declarations.
7511
7512 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7513
7514 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7515 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7516 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7517 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7518 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7519 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7520 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7521 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7522 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7523 to gnu_nat_target class.
7524 * gnu-nat.c: Likewise.
7525 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7526 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7527 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7528 object.
7529 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7530 instead of `gnu_target'.
7531
7532 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7533
7534 * i386-gnu-tdep.c: Include "gdbcore.h"
7535 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7536 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7537 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7538 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7539 i386_gnu_sigcontext_addr): New functions
7540 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7541 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7542 tdep.
7543
7544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7545
7546 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7547 before fork_inferior call. Avoid calling it if target_is_pushed returns
7548 true.
7549
7550 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7551
7552 * gnu-nat.h (gnu_target): New variable declaration.
7553 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7554 gnu_target.
7555 * gnu-nat.c (gnu_target): New variable.
7556 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7557 add_thread_silent, and add_thread calls.
7558 (gnu_nat_target::create_inferior): Pass gnu_target to
7559 add_thread_silent, thread_change_ptid call.
7560 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7561 call.
7562
7563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7566 (gnu_nat_target::find_memory_regions): Remove unused
7567 `old_address' variable.
7568
7569 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7570
7571 * gnu-nat.c: Include "gdbarch.h".
7572
7573 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7574
7575 * reply_mig_hack.awk (Error return): Cast function through
7576 void *, to bypass compiler function call check.
7577
7578 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7579
7580 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7581 $(srcdir)/reply_mig_hack.awk.
7582
7583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7584
7585 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7586
7587 2020-05-30 Jonny Grant <jg@jguk.org>
7588
7589 * configure.ac (ACX_BUGURL): change bug URL to https.
7590
7591 2020-05-30 Pedro Alves <palves@redhat.com>
7592
7593 * cp-support.c (replace_typedefs_template): New.
7594 (replace_typedefs_qualified_name): Handle
7595 DEMANGLE_COMPONENT_TEMPLATE.
7596
7597 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7600 dwarf2/index-cache.h, dwarf2/index-write.c,
7601 dwarf2/index-write.h, dwarf2/line-header.c,
7602 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7603 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7604 variables and fields from `dwarf2_per_objfile` to just
7605 `per_objfile` throughout.
7606
7607 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7608
7609 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7610 <push_dwarf_reg_entry_value>: Add comment.
7611
7612 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7613 Keith Seitz <keiths@redhat.com>
7614
7615 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7616 instead of PyEval_ReleaseLock.
7617 (class gdbpy_gil): Move to earlier in file.
7618 (finalize_python): Set gdb_python_initialized.
7619 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7620 when not initialized.
7621
7622 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7625 <push_dwarf_reg_entry_value>: Remove assert. Override
7626 per_objfile with caller_per_objfile.
7627
7628 2020-05-28 Tom de Vries <tdevries@suse.de>
7629
7630 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7631 PR gold/15646 workaround to symbol kind "type".
7632
7633 2020-05-27 Tom Tromey <tromey@adacore.com>
7634
7635 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7636
7637 2020-05-27 Tom Tromey <tromey@adacore.com>
7638
7639 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7640 Use htab_find_with_hash.
7641 <add_abbrev>: Remove "abbrev_number" parameter.
7642 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7643 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7644 (hash_abbrev): Add comment.
7645 (abbrev_table::lookup_abbrev): Move to header file.
7646 (abbrev_table::read): Update.
7647
7648 2020-05-27 Tom Tromey <tromey@adacore.com>
7649
7650 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7651 method.
7652 <canonical_name>: New member.
7653 <raw_name>: Rename from "name".
7654 (partial_die_info): Initialize canonical_name.
7655 (scan_partial_symbols): Check raw_name.
7656 (partial_die_parent_scope, partial_die_full_name)
7657 (add_partial_symbol, add_partial_subprogram)
7658 (add_partial_enumeration, load_partial_dies): Use "name" method.
7659 (partial_die_info::name): New method.
7660 (partial_die_info::read, guess_partial_die_structure_name)
7661 (partial_die_info::fixup): Update.
7662
7663 2020-05-27 Tom Tromey <tromey@adacore.com>
7664
7665 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7666 <get_ref_die_offset>: Inline.
7667 <get_ref_die_offset_complaint>: New method.
7668 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7669 (attribute::get_ref_die_offset_complaint): Rename from
7670 get_ref_die_offset. Just issue complaint.
7671
7672 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7673
7674 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7675
7676 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7677
7678 * exec.c (exec_file_attach): Use errno value of first openp failure.
7679
7680 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7681
7682 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7683 Don't close thread handle.
7684
7685 2020-05-27 Tom Tromey <tom@tromey.com>
7686 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7689 shared_ptr.
7690 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7691 member.
7692 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7693 dwarf2_per_bfd_objfile_data_key>: New globals.
7694 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7695 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7696 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7697 shared.
7698 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7699 short-circuit when sharing.
7700 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7701 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7702
7703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7704
7705 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7706 to...
7707 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7708 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7709
7710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7711
7712 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7713 build_name_components, find_name_components_bounds>:
7714 Add per_objfile parameter.
7715 (struct mapped_index) <symbol_name_at>: Likewise.
7716 (struct mapped_debug_names): Remove constructor.
7717 <dwarf2_per_objfile>: Remove field.
7718 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7719 (mapped_index_base::find_name_components_bounds,
7720 mapped_index_base::build_name_components,
7721 dw2_expand_symtabs_matching_symbol): Likewise.
7722 (class mock_mapped_index) <symbol_name_at>: Likewise.
7723 (check_match): Likewise.
7724 (check_find_bounds_finds): Likewise.
7725 (test_mapped_index_find_name_component_bounds): Update.
7726 (CHECK_MATCH): Update.
7727 (dw2_expand_symtabs_matching): Update.
7728 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7729 per_objfile parameter.
7730 <find_vec_in_debug_names>: Likewise.
7731 <m_per_objfile>: New field.
7732 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7733 parameter.
7734 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7735 (dw2_debug_names_iterator::next): Update.
7736 (dw2_debug_names_lookup_symbol): Update.
7737 (dw2_debug_names_expand_symtabs_for_function): Update.
7738 (dw2_debug_names_map_matching_symbols): Update.
7739 (dw2_debug_names_expand_symtabs_matching): Update.
7740 (dwarf2_read_debug_names): Update.
7741
7742 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7743
7744 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7745 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7746 move to dwarf2_per_objfile.
7747 <read_in_chain>: Remove.
7748 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7749 remove_all_cus, age_comp_units>: New methods.
7750 <m_dwarf2_cus>: New member.
7751 (struct dwarf2_per_cu_data) <cu>: Remove.
7752 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7753 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7754 moved to methods of dwarf2_per_objfile.
7755 (dwarf2_clear_marks): Remove.
7756 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7757 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7758 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7759 (dwarf2_per_objfile::remove_all_cus): New.
7760 (class free_cached_comp_units) <~free_cached_comp_units>:
7761 Update.
7762 (load_cu): Update.
7763 (dw2_do_instantiate_symtab): Adjust.
7764 (fill_in_sig_entry_from_dwo_entry): Adjust.
7765 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7766 (cutu_reader::cutu_reader): Likewise.
7767 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7768 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7769 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7770 and dwarf2_per_objfile::age_comp_units.
7771 (load_partial_comp_unit): Update.
7772 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7773 (process_queue): Likewise.
7774 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7775 backlink.
7776 (dwarf2_read_addr_index): Likewise.
7777 (follow_die_offset): Likewise.
7778 (dwarf2_fetch_die_loc_sect_off): Likewise.
7779 (dwarf2_fetch_constant_bytes): Likewise.
7780 (dwarf2_fetch_die_type_sect_off): Likewise.
7781 (follow_die_sig_1): Likewise.
7782 (load_full_type_unit): Likewise.
7783 (read_signatured_type): Likewise.
7784 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7785 (dwarf2_cu::~dwarf2_cu): Remove.
7786 (dwarf2_per_objfile::get_cu): New.
7787 (dwarf2_per_objfile::set_cu): New.
7788 (age_cached_comp_units): Rename to...
7789 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7790 to std::unordered_map.
7791 (free_one_cached_comp_unit): Rename to...
7792 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7793 to std::unordered_map.
7794 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7795 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7796 a dwarf2_per_objfile in data.
7797 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7798 (dwarf2_clear_marks): Remove.
7799
7800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7801
7802 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7803 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7804 (init_tu_and_read_dwo_dies): Likewise.
7805 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7806 (cutu_reader::cutu_reader): Likewise.
7807 (load_partial_comp_unit): Likewise.
7808 (process_psymtab_comp_unit): Update.
7809 (build_type_psymtabs_1): Update.
7810 (process_skeletonless_type_unit): Update.
7811 (load_full_comp_unit): Update.
7812 (find_partial_die): Update.
7813 (dwarf2_read_addr_index): Update.
7814 (read_signatured_type): Update.
7815
7816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7817
7818 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7819 m_header_read_in>: New fields.
7820 <get_header>: New method.
7821 * dwarf2/read.c (per_cu_header_read_in): Remove.
7822 (dwarf2_per_cu_data::get_header): New.
7823 (dwarf2_per_cu_data::addr_size): Update.
7824 (dwarf2_per_cu_data::offset_size): Update.
7825 (dwarf2_per_cu_data::ref_addr_size): Update.
7826
7827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7828
7829 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7830 (dw2_do_instantiate_symtab): Update.
7831 (queue_and_load_all_dwo_tus): Change parameter from
7832 dwarf2_per_cu_data to dwarf2_cu.
7833 (dwarf2_fetch_die_loc_sect_off): Update.
7834 (dwarf2_fetch_constant_bytes): Update.
7835 (dwarf2_fetch_die_type_sect_off): Update.
7836
7837 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7838
7839 * dwarf2/read.c (process_full_comp_unit,
7840 process_full_type_unit): Remove per_cu, per_objfile paramters.
7841 Add dwarf2_cu parameter.
7842 (process_queue): Update.
7843
7844 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7845
7846 * dwarf2/read.c (create_cu_from_index_list): Replace
7847 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7848 (create_cus_from_index_list): Likewise.
7849 (create_cus_from_index): Likewise.
7850 (create_signatured_type_table_from_index): Likewise.
7851 (create_cus_from_debug_names_list): Likewise.
7852 (create_cus_from_debug_names): Likewise.
7853 (dwarf2_read_gdb_index): Update.
7854 (dwarf2_read_debug_names): Update.
7855
7856 2020-05-27 Tom Tromey <tom@tromey.com>
7857 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * dwarf2/read.h (struct dwarf2_per_objfile)
7860 <get_type_for_signatured_type, set_type_for_signatured_type>:
7861 New methods.
7862 <m_type_map>: New member.
7863 (struct signatured_type) <type>: Remove.
7864 * dwarf2/read.c
7865 (dwarf2_per_objfile::get_type_for_signatured_type,
7866 dwarf2_per_objfile::set_type_for_signatured_type): New.
7867 (get_signatured_type): Use new methods.
7868
7869 2020-05-27 Tom Tromey <tom@tromey.com>
7870 Simon Marchi <simon.marchi@efficios.com>
7871
7872 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7873 (struct dwarf2_per_objfile) <type_units>: New member.
7874 <get_type_unit_group_unshareable>: New method.
7875 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7876 num_symtabs, symtabs>: Remove; move to
7877 type_unit_group_unshareable.
7878 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7879 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7880 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7881
7882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * dwarf2/read.h (struct dwarf2_per_cu_data):
7885 <dwarf2_per_objfile>: Remove.
7886 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7887 dwarf2_per_objfile.
7888 (create_signatured_type_table_from_index): Likewise.
7889 (create_signatured_type_table_from_debug_names): Likewise.
7890 (create_debug_type_hash_table): Likewise.
7891 (fill_in_sig_entry_from_dwo_entry): Likewise.
7892 (create_type_unit_group): Likewise.
7893 (read_comp_units_from_section): Likewise.
7894 (create_cus_hash_table): Likewise.
7895
7896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7899 dwarf2_per_cu_data::dwarf2_per_objfile.
7900 (compute_compunit_symtab_includes): Likewise.
7901 (dwarf2_cu::start_symtab): Likewise.
7902
7903 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7904
7905 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7906 parameter.
7907 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7908 (read_namespace_alias): Update.
7909 (lookup_die_type): Update.
7910 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7911 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7912 Update.
7913 (disassemble_dwarf_expression): Update.
7914
7915 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * dwarf2/read.h (struct dwarf2_queue_item): Add
7918 dwarf2_per_objfile parameter, assign new parameter.
7919 <per_objfile>: New field.
7920 * dwarf2/read.c (free_one_cached_comp_unit): Add
7921 dwarf2_per_objfile parameter.
7922 (queue_comp_unit): Likewise.
7923 (dw2_do_instantiate_symtab): Update.
7924 (process_psymtab_comp_unit): Update.
7925 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7926 (process_imported_unit_die): Update.
7927 (queue_and_load_dwo_tu): Update.
7928 (follow_die_offset): Update.
7929 (follow_die_sig_1): Update.
7930
7931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7934 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7935 (read_call_site_scope): Assign per_objfile.
7936 (dwarf2_per_cu_data::objfile): Remove.
7937 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7938 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7939 dwarf2_per_objfile parameter.
7940 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7941 dwarf2_per_objfile parameter.
7942 (dwarf_expr_reg_to_entry_parameter): Add output
7943 dwarf2_per_objfile parameter.
7944 (locexpr_get_frame_base): Update.
7945 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7946 <push_dwarf_reg_entry_value>: Update.
7947 <call_site_to_target_addr>: Update.
7948 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7949 parameter.
7950 (value_of_dwarf_reg_entry): Update.
7951 (rw_pieced_value): Update.
7952 (indirect_synthetic_pointer): Update.
7953 (dwarf2_evaluate_property): Update.
7954 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7955 parameter.
7956 (locexpr_read_variable): Update.
7957 (locexpr_get_symbol_read_needs): Update.
7958 (loclist_read_variable): Update.
7959
7960 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7961
7962 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7964 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7965 parameter.
7966 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7967 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7968 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7969 parameter.
7970 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7971 sect_variable_value): Add dwarf2_per_objfile parameter.
7972 (class dwarf_evaluate_loc_desc) <dwarf_call,
7973 dwarf_variable_value>: Update.
7974 (fetch_const_value_from_synthetic_pointer): Add
7975 dwarf2_per_objfile parameter.
7976 (fetch_const_value_from_synthetic_pointer): Update.
7977 (coerced_pieced_ref): Update.
7978 (class symbol_needs_eval_context) <dwarf_call,
7979 dwarf_variable_value>: Update.
7980 (dwarf2_compile_expr_to_ax): Update.
7981
7982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7985 parameter.
7986 (dwarf2_evaluate_loc_desc_full): Update.
7987
7988 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7991 parameter.
7992 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7993 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7994 dwarf2_per_objfile parameter.
7995 (decode_debug_loc_dwo_addresses): Likewise.
7996 (dwarf2_find_location_expression): Update.
7997 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7998 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7999 parameter.
8000 (disassemble_dwarf_expression): Add dwarf2_per_objfile
8001 parameter.
8002 (locexpr_describe_location_1): Likewise.
8003 (locexpr_describe_location): Update.
8004
8005 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8006
8007 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
8008 Remove.
8009 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8010 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8011 (dwarf2_compile_property_to_c): Update.
8012 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8013 use text offset from objfile.
8014 (locexpr_tracepoint_var_ref): Update.
8015 (locexpr_generate_c_location): Update.
8016 (loclist_describe_location): Update.
8017 (loclist_tracepoint_var_ref): Update.
8018 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8019 dwarf2_per_objfile parameter.
8020 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8021 use text offset from objfile.
8022 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8023
8024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8025
8026 * dwarf2/expr.h (struct dwarf_expr_context)
8027 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8028 <offset>: Remove.
8029 <per_objfile>: New member.
8030 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8031 dwarf2_per_objfile parameter. Don't set offset, set
8032 per_objfile.
8033 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8034 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8035 a dwarf2_per_objfile object instead of an offset.
8036 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8037 constructor.
8038 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8039 to dwarf2_expr_executor constructor. Don't set offset.
8040 (dwarf2_fetch_cfa_info): Update.
8041 (struct dwarf2_frame_cache) <text_offset>: Remove.
8042 <per_objfile>: New field.
8043 (dwarf2_frame_cache): Update.
8044 (dwarf2_frame_prev_register): Update.
8045 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8046 <dwarf_evaluate_loc_desc>: Add constructor.
8047 (dwarf2_evaluate_loc_desc_full): Update.
8048 (dwarf2_locexpr_baton_eval): Update.
8049 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8050 Add constructor.
8051 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8052
8053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8056 addr_sized_int_type>: Move to dwarf2_cu.
8057 <int_type>: Move to dwarf2_per_objfile.
8058 (struct dwarf2_per_objfile) <int_type>: Move here.
8059 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8060 addr_sized_int_type>: Move here.
8061 (read_func_scope): Update.
8062 (read_array_type): Update.
8063 (read_tag_string_type): Update.
8064 (attr_to_dynamic_prop): Update.
8065 (dwarf2_per_cu_data::int_type): Rename to...
8066 (dwarf2_per_objfile::int_type): ... this.
8067 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8068 (dwarf2_cu::addr_sized_int_type): ... this.
8069 (read_subrange_type): Update.
8070 (dwarf2_per_cu_data::addr_type): Rename to...
8071 (dwarf2_cu::addr_type): ... this.
8072 (set_die_type): Update.
8073
8074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8077 data through per_cu->cu.
8078
8079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8082 dwarf2_per_cu_data parameter fo dwarf2_cu.
8083 (lookup_dwo_type_unit): Likewise.
8084 (read_cutu_die_from_dwo): Likewise.
8085 (lookup_dwo_unit): Likewise.
8086 (open_and_init_dwo_file): Likewise.
8087 (lookup_dwo_cutu): Likewise.
8088 (lookup_dwo_comp_unit): Likewise.
8089 (lookup_dwo_type_unit): Likewise.
8090 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8091 (cutu_reader::cutu_reader): Update.
8092
8093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8096 parameter.
8097 (process_full_type_unit): Likewise.
8098 (process_queue): Update.
8099
8100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * dwarf2/read.c (recursively_compute_inclusions): Add
8103 dwarf2_per_objfile parameter.
8104 (compute_compunit_symtab_includes): Likewise.
8105 (process_cu_includes): Update.
8106
8107 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8108
8109 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8110 parameter.
8111 (create_type_unit_group): Update.
8112 (process_psymtab_comp_unit_reader): Update.
8113 (build_type_psymtabs_reader): Update.
8114
8115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8118 object through m_this_cu->cu.
8119
8120 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8121
8122 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8123 the info parameter.
8124 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8125
8126 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8127
8128 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8129 per_objfile parameter.
8130 (load_full_type_unit): Add per_objfile parameter.
8131 (read_signatured_type): Likewise.
8132 (load_full_comp_unit): Likewise.
8133 (load_cu): Likewise.
8134 (dw2_do_instantiate_symtab): Likewise.
8135 (dw2_get_file_names): Likewise.
8136 (dw2_map_symtabs_matching_filename): Update.
8137 (dw_expand_symtabs_matching_file_matcher): Update.
8138 (dw2_map_symbol_filenames): Update.
8139 (process_psymtab_comp_unit): Add per_objfile parameter.
8140 (build_type_psymtabs_1): Update.
8141 (process_skeletonless_type_unit): Update.
8142 (dwarf2_build_psymtabs_hard): Update.
8143 (load_partial_comp_unit): Add per_objfile parameter.
8144 (scan_partial_symbols): Update.
8145 (load_full_comp_unit): Add per_objfile parameter.
8146 (process_imported_unit_die): Update.
8147 (create_cus_hash_table): Update.
8148 (find_partial_die): Update.
8149 (dwarf2_read_addr_index): Update.
8150 (follow_die_offset): Update.
8151 (dwarf2_fetch_die_loc_sect_off): Update.
8152 (dwarf2_fetch_constant_bytes): Update.
8153 (dwarf2_fetch_die_type_sect_off): Update.
8154 (follow_die_sig_1): Update.
8155 (load_full_type_unit): Add per_objfile parameter.
8156 (read_signatured_type): Likewise.
8157
8158 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8161 of objfile_name.
8162
8163 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8164
8165 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8166 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8167 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8168 field.
8169 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8170 (create_cus_from_index): Update.
8171 (dwarf2_read_gdb_index): Update.
8172 (create_cus_from_debug_names): Update.
8173 (dwarf2_read_debug_names): Update.
8174 (get_abbrev_section_for_cu): Update.
8175 (create_all_comp_units): Update.
8176 (read_attribute_value): Update.
8177 (get_debug_line_section): Update.
8178 * dwarf2/index-cache.c (index_cache::store): Update.
8179 * dwarf2/index-write.c (save_gdb_index_command): Update.
8180 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8181
8182 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8185 member.
8186 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8187 dwarf2_per_cu_data::per_bfd.
8188 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8189 (create_type_unit_group): Likewise.
8190 (queue_comp_unit): Remove reference to
8191 per_cu->dwarf2_per_objfile.
8192 (maybe_queue_comp_unit): Likewise.
8193 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8194 (create_cus_hash_table): Assign new field.
8195
8196 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8197
8198 * dwarf2/read.c: Replace
8199 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8200 dwarf2_cu->per_objfile throughout.
8201
8202 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8205 parameter, don't use per_cu->dwarf2_per_objfile.
8206 (dw2_instantiate_symtab): Likewise.
8207 (dw2_find_last_source_symtab): Update.
8208 (dw2_map_expand_apply): Update.
8209 (dw2_lookup_symbol): Update.
8210 (dw2_expand_symtabs_for_function): Update.
8211 (dw2_expand_all_symtabs): Update.
8212 (dw2_expand_symtabs_with_fullname): Update.
8213 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8214 don't use per_cu->dwarf2_per_objfile.
8215 (dw2_expand_marked_cus): Update.
8216 (dw2_find_pc_sect_compunit_symtab): Update.
8217 (dw2_debug_names_lookup_symbol): Update.
8218 (dw2_debug_names_expand_symtabs_for_function): Update.
8219 (dw2_debug_names_map_matching_symbols): Update.
8220 (dwarf2_psymtab::expand_psymtab): Update.
8221
8222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8225 <per_objfile>: New member.
8226 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8227 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8228 call to dwarf2_cu.
8229 (cutu_reader::cutu_reader): Update.
8230 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8231
8232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8235 struct dwarf2_per_objfile.
8236 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8237 dwarf2_per_bfd.
8238 * dwarf2/read.c (set_die_type): Update.
8239 (get_die_type_at_offset): Update.
8240
8241 2020-05-27 Tom Tromey <tom@tromey.com>
8242 Simon Marchi <simon.marchi@efficios.com>
8243
8244 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8245 method.
8246 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8247 get_symtab, set_symtab>: New methods.
8248 <m_symtabs>: New field.
8249 (struct dwarf2_psymtab): Derive from partial_symtab.
8250 <readin_p, get_compunit_symtab>: Declare methods.
8251 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8252 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8253 New methods.
8254 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8255 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8256 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8257 (dw2_symtab_iter_next, dw2_print_stats)
8258 (dw2_expand_symtabs_with_fullname)
8259 (dw2_expand_symtabs_matching_one)
8260 (dw_expand_symtabs_matching_file_matcher)
8261 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8262 (dw2_debug_names_iterator::next)
8263 (dw2_debug_names_map_matching_symbols)
8264 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8265 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8266 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8267 New methods.
8268 (get_compunit_symtab, process_full_comp_unit)
8269 (process_full_type_unit): Update.
8270 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8271
8272 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8273
8274 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8275 then introduce a new dwarf2_per_objfile type.
8276 <read_line_string>: Move to the new dwarf2_per_objfile type.
8277 <objfile>: Likewise.
8278 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8279 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8280 dwarf2_per_objfile->per_bfd.
8281 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8282 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8283 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8284 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8285 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8286 (dwarf2_per_objfile::locate_sections): Rename to...
8287 (dwarf2_per_bfd::locate_sections): ... this.
8288 (dwarf2_per_objfile::get_cutu): Rename to...
8289 (dwarf2_per_bfd::get_cutu): ... this.
8290 (dwarf2_per_objfile::get_cu): Rename to...
8291 (dwarf2_per_bfd::get_cu): ... this.
8292 (dwarf2_per_objfile::get_tu): Rename to...
8293 (dwarf2_per_bfd::get_tu): ... this.
8294 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8295 (dwarf2_per_bfd::allocate_per_cu): ... this.
8296 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8297 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8298 (get_gdb_index_contents_ftype): Change parameter from
8299 dwarf2_per_objfile to dwarf2_per_bfd.
8300 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8301 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8302
8303 2020-05-27 Tom Tromey <tom@tromey.com>
8304 Simon Marchi <simon.marchi@efficios.com>
8305
8306 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8307 (allocate_piece_closure): Set "per_objfile" member.
8308 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8309 (locexpr_describe_location, loclist_describe_location): Use new
8310 member.
8311 * dwarf2/read.c (read_call_site_scope)
8312 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8313 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8314 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8315 handle_data_member_location): Set per_objfile member.
8316 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8317 member.
8318 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8319
8320 2020-05-27 Tom Tromey <tom@tromey.com>
8321
8322 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8323 allocate_signatured_type>: Declare new methods.
8324 <m_num_psymtabs>: New member.
8325 (struct dwarf2_per_cu_data) <index>: New member.
8326 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8327 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8328 (create_cu_from_index_list): Use allocate_per_cu.
8329 (create_signatured_type_table_from_index)
8330 (create_signatured_type_table_from_debug_names)
8331 (create_debug_type_hash_table, add_type_unit)
8332 (read_comp_units_from_section): Use allocate_signatured_type.
8333
8334 2020-05-27 Tom Tromey <tom@tromey.com>
8335
8336 * psymtab.c (partial_map_expand_apply)
8337 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8338 (psym_lookup_global_symbol_language)
8339 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8340 (psym_print_stats, psym_expand_symtabs_for_function)
8341 (psym_map_symbol_filenames, psym_map_matching_symbols)
8342 (psym_expand_symtabs_matching)
8343 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8344 (maintenance_check_psymtabs): Update.
8345 * psympriv.h (struct partial_symtab) <readin_p,
8346 get_compunit_symtab>: Add objfile parameter.
8347 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8348 Likewise.
8349 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8350 get_compunit_symtab>: Likewise.
8351 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8352
8353 2020-05-27 Tom Tromey <tom@tromey.com>
8354
8355 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8356 member.
8357 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8358 (create_cu_from_index_list)
8359 (create_signatured_type_table_from_index)
8360 (create_signatured_type_table_from_debug_names)
8361 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8362 (dwarf2_create_include_psymtab)
8363 (create_debug_type_hash_table, add_type_unit)
8364 (create_type_unit_group, read_comp_units_from_section)
8365 (dwarf2_compute_name, create_cus_hash_table)
8366 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8367 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8368 obstack.
8369 (dw2_get_real_path): Likewise. Change argument to
8370 dwarf2_per_objfile.
8371
8372 2020-05-27 Luis Machado <luis.machado@linaro.org>
8373
8374 PR tdep/26000
8375 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8376 for ldrd (immediate).
8377
8378 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8379
8380 * command.h: Add comment giving the name of class_tui.
8381 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8382 create the fake command for the help for class_tui.
8383
8384 2020-05-26 Tom Tromey <tromey@adacore.com>
8385
8386 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8387 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8388 (val_atr): New function.
8389 (value_val_atr): Use it.
8390 * ada-valprint.c (print_optional_low_bound): Change low bound
8391 handling for enums.
8392 (val_print_packed_array_elements): Don't call discrete_position.
8393 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8394 discrete_position for enum types.
8395 * language.c (default_print_array_index): Change type.
8396 * language.h (struct language_defn) <la_print_array_index>: Add
8397 index_type parameter, change type of index_value.
8398 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8399 (default_print_array_index): Update.
8400 * valprint.c (maybe_print_array_index): Don't call
8401 value_from_longest. Update.
8402 (value_print_array_elements): Don't call discrete_position.
8403
8404 2020-05-26 Tom Tromey <tromey@adacore.com>
8405
8406 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8407 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8408
8409 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8410
8411 PR gdb/13519
8412 * avr-tdep.c (avr_integer_to_address): Return data or code
8413 address accordingly to the second 'type' argument of the
8414 function.
8415
8416 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8417
8418 * infcmd.c, inferior.h: (construct_inferior_arguments):
8419 Moved function from here to gdbsupport/common-inferior.{h,cc}
8420
8421 2020-05-23 Tom Tromey <tom@tromey.com>
8422
8423 Revert commit eca1f90c:
8424 * NEWS: Remove entry for completion styling.
8425 * completer.c (_rl_completion_prefix_display_length): Move
8426 declaration later.
8427 (gdb_fnprint): Revert.
8428 (gdb_display_match_list_1): Likewise.
8429 * cli/cli-style.c (completion_prefix_style)
8430 (completion_difference_style, completion_suffix_style): Remove.
8431 (_initialize_cli_style): Revert.
8432 * cli/cli-style.h (completion_prefix_style)
8433 (completion_difference_style, completion_suffix_style): Don't
8434 declare.
8435
8436 2020-05-24 Pedro Alves <palves@redhat.com>
8437
8438 * symtab.c (completion_list_add_name): Return boolean indication
8439 of whether the symbol matched.
8440 (completion_list_add_symbol): Don't try to remove C++ aliases if
8441 the symbol didn't match in the first place.
8442 * symtab.h (completion_list_add_name): Return bool.
8443
8444 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8445
8446 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8447 type::field.
8448
8449 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8450
8451 GDB 9.2 released.
8452
8453 2020-05-23 Tom Tromey <tom@tromey.com>
8454
8455 * NEWS: Add entry for completion styling.
8456 * completer.c (_rl_completion_prefix_display_length): Move
8457 declaration earlier.
8458 (gdb_fnprint): Use completion_style.
8459 (gdb_display_match_list_1): Likewise.
8460 * cli/cli-style.c (completion_prefix_style)
8461 (completion_difference_style, completion_suffix_style): New
8462 globals.
8463 (_initialize_cli_style): Register new globals.
8464 * cli/cli-style.h (completion_prefix_style)
8465 (completion_difference_style, completion_suffix_style): Declare.
8466
8467 2020-05-23 Pedro Alves <palves@redhat.com>
8468
8469 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8470 (parse_escape): Use ISDIGIT instead of isdigit.
8471 (puts_debug): Use gdb_isprint instead of isprint.
8472 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8473 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8474 ISSPACE instead of isspace.
8475 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8476 instead of isspace.
8477 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8478 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8479 instead of isxdigit and ISDIGIT instead of isdigit.
8480
8481 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * gdbtypes.h (struct type) <field>: New method.
8484 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8485 or type::field.
8486
8487 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8488
8489 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8490 (TYPE_FIELDS): Use type::fields. Change all call sites that
8491 modify the propery to use type::set_fields instead.
8492
8493 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8494
8495 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8496 type::num_fields instead.
8497
8498 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8501 methods.
8502 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8503 that modify the number of fields to use type::set_num_fields
8504 instead.
8505
8506 2020-05-22 Tom Tromey <tromey@adacore.com>
8507
8508 * compile/compile-object-load.h (munmap_list_free): Don't
8509 declare.
8510
8511 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8512
8513 * annotate.c (annotate_source_line): Update return type, add call
8514 to update current symtab and line.
8515 * annotate.h (annotate_source_line): Update return type, and
8516 extend header comment.
8517 * source.c (info_line_command): Check annotation_level before
8518 calling annotate_source_line.
8519 * stack.c (print_frame_info): If calling annotate_source_line
8520 returns true, then don't print any other source line information.
8521
8522 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8523
8524 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8525
8526 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * coffread.c (patch_type): Remove NULL check before xfree.
8529 * corefile.c (set_gnutarget): Likewise.
8530 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8531 * exec.c (build_section_table): Likewise.
8532 * remote.c (remote_target::pass_signals): Likewise.
8533 * utils.c (n_spaces): Likewise.
8534 * cli/cli-script.c (document_command): Likewise.
8535 * i386-windows-tdep.c (core_process_module_section): Likewise.
8536 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8537
8538 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8539
8540 * symfile.c (reread_symbols): Clear objfile's section_offsets
8541 vector and section indices, re-compute them by calling
8542 sym_offsets.
8543
8544 2020-05-20 Tom Tromey <tromey@adacore.com>
8545
8546 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8547 (desc_one_bound, desc_index_type): Compute field name.
8548
8549 2020-05-20 Tom de Vries <tdevries@suse.de>
8550
8551 PR symtab/25833
8552 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8553
8554 2020-05-20 Alan Modra <amodra@gmail.com>
8555
8556 PR 25993
8557 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8558 bfd_set_filename.
8559 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8560 passed to bfd_set_filename.
8561 * symfile-mem.c (add_vsyscall_page): Likewise for string
8562 passed to symbol_file_add_from_memory.
8563 (symbol_file_add_from_memory): Make name param a const char* and
8564 don't strdup.
8565
8566 2020-05-20 Alan Modra <amodra@gmail.com>
8567
8568 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8569 rather than accessing bfd->filename directly.
8570 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8571 and use bfd_section_name.
8572 * dwarf2/frame.c (decode_frame_entry): Likewise.
8573 * exec.c (exec_set_section_address): Likewise.
8574 * solib-aix.c (solib_aix_bfd_open): Likewise.
8575 * stap-probe.c (get_stap_base_address): Likewise.
8576 * symfile.c (reread_symbols): Likewise.
8577
8578 2020-05-19 Tom Tromey <tromey@adacore.com>
8579
8580 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8581
8582 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8583
8584 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8585
8586 2020-05-19 Pedro Alves <palves@redhat.com>
8587
8588 * NEWS (set exec-file-mismatch): Adjust entry.
8589 * exec.c: Include "build-id.h".
8590 (validate_exec_file): Try to match build IDs instead of filenames.
8591 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8592 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8593 and pass down 'warn_if_slow'.
8594 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8595 gdb_bfd_open_closure to pass it down.
8596 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8597
8598 2020-05-19 Pedro Alves <palves@redhat.com>
8599
8600 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8601 * target.c (target_fileio_open_1): Rename to target_fileio_open
8602 and make extern. Use bool.
8603 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8604 (target_fileio_read_alloc_1): Adjust.
8605 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8606 (target_fileio_open_warn_if_slow): Delete declaration.
8607
8608 2020-05-19 Pedro Alves <palves@redhat.com>
8609
8610 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8611 Adjust all callers.
8612
8613 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8614
8615 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8616 whether disp is negative.
8617
8618 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8619
8620 * symfile.h (struct symfile_segment_data)
8621 <~symfile_segment_data>: Remove.
8622 <segment_info>: Change to std::vector.
8623 * symfile.c (default_symfile_segments): Update.
8624 * elfread.c (elf_symfile_segments): Update.
8625
8626 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8627
8628 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8629 <segments>: New.
8630 <segment_bases, segment_sizes>: Remove.
8631 * symfile.c (default_symfile_segments): Update.
8632 * elfread.c (elf_symfile_segments): Update.
8633 * remote.c (remote_target::get_offsets): Update.
8634 * solib-target.c (solib_target_relocate_section_addresses):
8635 Update.
8636
8637 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * symfile.h (struct symfile_segment_data): Initialize fields.
8640 <~symfile_segment_data>: Add.
8641 (symfile_segment_data_up): New.
8642 (struct sym_fns) <sym_segments>: Return a
8643 symfile_segment_data_up.
8644 (default_symfile_segments): Return a symfile_segment_data_up.
8645 (free_symfile_segment_data): Remove.
8646 (get_symfile_segment_data): Return a symfile_segment_data_up.
8647 * symfile.c (default_symfile_segments): Likewise.
8648 (get_symfile_segment_data): Likewise.
8649 (free_symfile_segment_data): Remove.
8650 (symfile_find_segment_sections): Update.
8651 * elfread.c (elf_symfile_segments): Return a
8652 symfile_segment_data_up.
8653 * remote.c (remote_target::get_offsets): Update.
8654 * solib-target.c (solib_target_relocate_section_addresses):
8655 Update.
8656 * symfile-debug.c (debug_sym_segments): Return a
8657 symfile_segment_data_up.
8658
8659 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8660
8661 PR build/25981
8662 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8663 Hardcode register numbers.
8664
8665 PR build/25981
8666 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8667 procfs_find_LDT_entry): Remove.
8668 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8669 procfs_find_LDT_entry): Remove.
8670 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8671 Remove.
8672
8673 2020-05-17 Pedro Alves <palves@redhat.com>
8674 Andrew Burgess <andrew.burgess@embecosm.com>
8675 Keno Fischer <keno@juliacomputing.com>
8676
8677 PR gdb/25741
8678 * breakpoint.c (build_target_condition_list): Update comments.
8679 (build_target_command_list): Update comments and skip matching
8680 locations.
8681 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8682 a separate function. Simplify "set breakpoint auto-hw off"
8683 handling.
8684 (insert_breakpoints): Update comment.
8685 (tracepoint_locations_match): New parameter. For breakpoints,
8686 compare location types too, if the caller wants to.
8687 (handle_automatic_hardware_breakpoints): New functions.
8688 (bp_location_is_less_than): Also sort by location type and
8689 hardware breakpoint length.
8690 (update_global_location_list): Handle "set breakpoint auto-hw on"
8691 here.
8692 (update_breakpoint_locations): Ask breakpoint_locations_match to
8693 ignore location types.
8694
8695 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8698 type::name instead.
8699
8700 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8701
8702 * gdbtypes.h (struct type) <name, set_name>: New methods.
8703 (TYPE_CODE): Use type::name. Change all call sites used to set
8704 the name to use type::set_name instead.
8705
8706 2020-05-16 Tom Tromey <tom@tromey.com>
8707
8708 * top.c (quit_force): Update.
8709 * infrun.c (handle_no_resumed): Update.
8710 * top.h (all_uis): New function.
8711 (ALL_UIS): Remove.
8712
8713 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8716
8717 2020-05-16 Pedro Alves <palves@redhat.com>
8718
8719 * ia64-linux-nat.c
8720 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8721 Declare method.
8722 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8723
8724 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8727 (sparc64_adi_info): Likewise.
8728
8729 2020-05-15 Tom Tromey <tom@tromey.com>
8730
8731 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8732 block_objfile.
8733 (lookup_objfile_from_block): Remove.
8734 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8735 (lookup_global_symbol): Use block_objfile.
8736 * symtab.h (lookup_objfile_from_block): Don't declare.
8737 * printcmd.c (clear_dangling_display_expressions): Use
8738 block_objfile.
8739 * parse.c (operator_check_standard): Use block_objfile.
8740
8741 2020-05-15 Tom Tromey <tom@tromey.com>
8742
8743 * language.c (language_alloc_type_symbol): Set
8744 SYMBOL_SECTION.
8745 * symtab.c (initialize_objfile_symbol): Remove.
8746 (allocate_symbol): Remove.
8747 (allocate_template_symbol): Remove.
8748 * dwarf2/read.c (fixup_go_packaging): Use "new".
8749 (new_symbol): Use "new".
8750 (read_variable): Don't call initialize_objfile_symbol. Use
8751 "new".
8752 (read_func_scope): Use "new".
8753 * xcoffread.c (process_xcoff_symbol): Don't call
8754 initialize_objfile_symbol.
8755 (SYMBOL_DUP): Remove.
8756 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8757 "new".
8758 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8759 (allocate_template_symbol): Don't declare.
8760 (struct symbol): Add copy constructor. Change defaults.
8761 * jit.c (finalize_symtab): Use "new".
8762 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8763 Use "new".
8764 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8765 (common_block_end): Use "new".
8766 * mdebugread.c (parse_symbol): Use "new".
8767 (new_symbol): Likewise.
8768
8769 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8770
8771 * NEWS: Mention changes to help and apropos.
8772
8773 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * command.h (enum command_class): Improve comments, document
8776 that class_alias is for user-defined aliases, give the class
8777 name for each class, remove unused class_xdb.
8778 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8779 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8780 by a precise class.
8781 * infcmd.c (_initialize_infcmd): Likewise.
8782 * reverse.c (_initialize_reverse): Likewise.
8783 * stack.c (_initialize_stack): Likewise.
8784 * symfile.c (_initialize_symfile): Likewise.
8785 * tracepoint.c (_initialize_tracepoint): Likewise.
8786
8787 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8788
8789 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8790 when their aliased command is traversed.
8791 (help_cmd): Add fput_command_names_styled call to
8792 output command name and aliases when command has an alias.
8793
8794 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8795
8796 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8797 * cli/cli-decode.c (help_cmd_list): Declare as static,
8798 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8799 a command together with the command.
8800 (fput_command_name_styled, fput_command_names_styled): New functions.
8801 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8802 fput_command_name_styled.
8803 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8804 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8805
8806 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8807
8808 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8809 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8810 * command.h (cmd_show_list): Likewise.
8811 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8812 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8813
8814 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8815
8816 * unittests/command-def-selftests.c (traverse_command_structure):
8817 Verify all commands of a list have the same prefix command and
8818 that only the top cmdlist commands have a null prefix.
8819
8820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8821
8822 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8823 as prefix, not one of its aliases.
8824 (set_cmd_prefix): Remove.
8825 (do_add_cmd): Centralize the setting of the prefix of a command, when
8826 command is defined after its full chain of prefix commands.
8827 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8828 (add_setshow_cmd_full): Likewise.
8829 (update_prefix_field_of_prefixed_commands): New function.
8830 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8831 update_prefix_field_of_prefixed_commands.
8832 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8833 addresses of remote_set_cmdlist and remote_show_cmdlist given
8834 as argument, not the address of an argument.
8835 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8836 * gdb/remote.c (_initialize_remote): Likewise.
8837
8838 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8839
8840 * cli/cli-cmds.c (alias_command): Check for an existing alias
8841 using lookup_cmd_composition, as valid_command_p is too strict
8842 and forbids aliases that are the prefix of an existing alias
8843 or command.
8844 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8845 command is properly recognised as a valid command.
8846
8847 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8848
8849 * unittests/help-doc-selftests.c: Rename to
8850 unittests/command-def-selftests.c
8851 * unittests/command-def-selftests.c (help_doc_tests): Update some
8852 comments.
8853 (command_structure_tests, traverse_command_structure): New namespace
8854 and function.
8855 (command_structure_invariants_tests): New function.
8856 (_initialize_command_def_selftests) Renamed from
8857 _initialize_help_doc_selftests, register command_structure_invariants
8858 selftest.
8859
8860 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8861
8862 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8863 an alias of 'show'.
8864
8865 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8866
8867 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8868 ada_is_fixed_point_type. Update all callers.
8869 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8870 all callers.
8871 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8872 Update all callers.
8873 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8874 print_fixed_point_type. Update all callers.
8875 * ada-valprint.c (ada_value_print_num): Replace call to
8876 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8877
8878 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8879
8880 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8881 processors.
8882 (cpu_supports_bts): Add CV_AMD case.
8883
8884 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8885 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * infrun.c (stop_all_threads): Collect multiple wait events at
8888 each pass.
8889
8890 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8893 type::code instead.
8894
8895 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8896
8897 * gdbtypes.h (struct type) <code, set_code>: New methods.
8898 (TYPE_CODE): Use type::code. Change all call sites used to set
8899 the code to use type::set_code instead.
8900
8901 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8902 Tom de Vries <tdevries@suse.de>
8903 Pedro Alves <palves@redhat.com>
8904
8905 PR threads/25478
8906 * infrun.c (stop_all_threads): Do NOT ignore
8907 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8908 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8909 received.
8910 (handle_no_resumed): Remove code handling a live inferior with no
8911 threads.
8912 * remote.c (has_single_non_exited_thread): New.
8913 (remote_target::update_thread_list): Do not delete a thread if is
8914 the last thread of the process.
8915 * thread.c (thread_select): Call delete_exited_threads instead of
8916 prune_threads.
8917
8918 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8919
8920 * infrun.c (stop_all_threads): Enable/disable thread events of all
8921 targets. Move a debug message denoting the end of the function
8922 into the SCOPED_EXIT block.
8923
8924 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8925
8926 * process-stratum-target.h: Include <set>.
8927 (all_non_exited_process_targets, switch_to_target_no_thread): New
8928 function declarations.
8929 * process-stratum-target.c (all_non_exited_process_targets)
8930 (switch_to_target_no_thread): New function implementations.
8931
8932 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8933
8934 * infrun.c (handle_inferior_event): Extract out a piece of code
8935 into...
8936 (mark_non_executing_threads): ...this new function.
8937
8938 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8939
8940 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8941 use.
8942
8943 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8944
8945 * regcache.c (regcache_read_pc_protected): New function
8946 implementation that returns 0 if the PC cannot read via
8947 'regcache_read_pc'.
8948 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8949 instead of 'regcache_read_pc'.
8950 (keep_going_pass_signal): Ditto.
8951
8952 2020-05-13 Tom Tromey <tromey@adacore.com>
8953
8954 * ada-lang.c (align_value): Remove.
8955 (ada_template_to_fixed_record_type_1): Use align_up.
8956
8957 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8958
8959 * async-event.c: Update the copyright year.
8960 * async-event.h: Update the copyright year.
8961
8962 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * objfiles.h (is_addr_in_objfile,
8965 shared_objfile_contains_address_p): Return bool.
8966 * objfile.c (is_addr_in_objfile,
8967 shared_objfile_contains_address_p): Return bool.
8968
8969 2020-05-11 Tom Tromey <tromey@adacore.com>
8970
8971 * cli/cli-cmds.c (info_command): Restore.
8972 (_initialize_cli_cmds): Use add_prefix_command for "info".
8973 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8974
8975 2020-05-11 Tom Tromey <tromey@adacore.com>
8976
8977 * ada-lang.c (ada_value_primitive_field): Now public.
8978 * ada-lang.h (ada_value_primitive_field): Declare.
8979 * ada-valprint.c (print_field_values): Use
8980 ada_value_primitive_field for wrapper fields.
8981
8982 2020-05-11 Tom de Vries <tdevries@suse.de>
8983
8984 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8985 MODULE_DOMAIN.
8986
8987 2020-05-11 Tom de Vries <tdevries@suse.de>
8988
8989 PR symtab/25941
8990 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8991 with length 0, if not gdb-produced.
8992 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8993
8994 2020-05-09 Tom de Vries <tdevries@suse.de>
8995
8996 PR gdb/25955
8997 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8998 calculation.
8999
9000 2020-05-09 Tom Tromey <tom@tromey.com>
9001
9002 * top.c (server_command): Now bool.
9003 * top.h (server_command): Now bool.
9004
9005 2020-05-08 Tom Tromey <tromey@adacore.com>
9006
9007 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
9008 already being processed.
9009
9010 2020-05-08 Tom Tromey <tom@tromey.com>
9011
9012 * printcmd.c (struct display) <next>: Remove.
9013 <display>: New constructor.
9014 <exp_string>: Now a std::string.
9015 <enabled_p>: Now a bool.
9016 (display_number): Move definition earlier.
9017 (displays): Rename from display_chain. Now a std::vector.
9018 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9019 (display_command): Update.
9020 (do_one_display, disable_display)
9021 (enable_disable_display_command, do_enable_disable_display):
9022 Update.
9023 (free_display): Remove.
9024 (clear_displays): Rewrite.
9025 (delete_display): Update.
9026 (map_display_numbers): Use function_view. Remove "data"
9027 parameter. Update.
9028 (do_delete_display): Remove.
9029 (undisplay_command): Update.
9030 (do_one_display, do_displays, disable_display)
9031 (info_display_command): Update.
9032 (do_enable_disable_display): Remove.
9033 (enable_disable_display_command)
9034 (clear_dangling_display_expressions): Update.
9035
9036 2020-05-08 Tom Tromey <tom@tromey.com>
9037
9038 * symtab.c (set_symbol_cache_size)
9039 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9040 (maintenance_print_symbol_cache_statistics): Update.
9041 * symmisc.c (print_symbol_bcache_statistics)
9042 (print_objfile_statistics, maintenance_print_objfiles)
9043 (maintenance_info_symtabs, maintenance_check_symtabs)
9044 (maintenance_expand_symtabs, maintenance_info_line_tables):
9045 Update.
9046 * symfile-debug.c (set_debug_symfile): Update.
9047 * source.c (forget_cached_source_info): Update.
9048 * python/python.c (gdbpy_progspaces): Update.
9049 * psymtab.c (maintenance_info_psymtabs): Update.
9050 * probe.c (parse_probes): Update.
9051 * linespec.c (iterate_over_all_matching_symtabs)
9052 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9053 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9054 * exec.c (exec_target::close): Update.
9055 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9056 * breakpoint.c (print_one_breakpoint_location)
9057 (create_longjmp_master_breakpoint)
9058 (create_std_terminate_master_breakpoint): Update.
9059 * progspace.c (program_spaces): Now a std::vector.
9060 (maybe_new_address_space): Update.
9061 (add_program_space): Remove.
9062 (program_space::program_space): Update.
9063 (remove_program_space): Update.
9064 (number_of_program_spaces): Remove.
9065 (print_program_space, update_address_spaces): Update.
9066 * progspace.h (program_spaces): Change type.
9067 (ALL_PSPACES): Remove.
9068 (number_of_program_spaces): Don't declare.
9069 (struct program_space) <next>: Remove.
9070
9071 2020-05-08 Tom Tromey <tom@tromey.com>
9072
9073 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9074 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9075 (enable_break): Update.
9076 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9077 (frv_fdpic_find_canonical_descriptor): Update.
9078 (frv_fetch_objfile_link_map): Update.
9079 * progspace.c (program_space::free_all_objfiles): Update.
9080 (program_space::solibs): New method.
9081 * progspace.h (struct program_space) <solibs>: New method.
9082 * solist.h (master_so_list): Don't declare.
9083 (ALL_SO_LIBS): Remove.
9084 * solib.h (so_list_head): Remove.
9085 (update_solib_list): Update comment.
9086 * solib.c (master_so_list): Remove.
9087 (solib_used, update_solib_list, solib_add)
9088 (info_sharedlibrary_command, clear_solib)
9089 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9090
9091 2020-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * extension.c (extension_languages): Now a std::array.
9094 (ALL_EXTENSION_LANGUAGES): Remove.
9095 (get_ext_lang_defn, get_ext_lang_of_file)
9096 (eval_ext_lang_from_control_command): Update.
9097 (finish_ext_lang_initialization)
9098 (auto_load_ext_lang_scripts_for_objfile)
9099 (ext_lang_type_printers::ext_lang_type_printers)
9100 (apply_ext_lang_type_printers)
9101 (ext_lang_type_printers::~ext_lang_type_printers)
9102 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9103 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9104 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9105 (get_matching_xmethod_workers, ext_lang_colorize)
9106 (ext_lang_before_prompt): Update.
9107 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9108
9109 2020-05-08 Tom Tromey <tom@tromey.com>
9110
9111 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9112 overload.
9113 <swap_string, m_string>: Remove.
9114 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9115 Update.
9116 * stabsread.c (define_symbol, read_type): Update.
9117 * linespec.c (find_linespec_symbols): Update.
9118 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9119 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9120 * dbxread.c (read_dbx_symtab): Update.
9121 * cp-support.h (cp_canonicalize_string_full)
9122 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9123 Return unique_xmalloc_ptr.
9124 * cp-support.c (inspect_type): Update.
9125 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9126 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9127 Likewise.
9128 * c-typeprint.c (print_name_maybe_canonical): Update.
9129 * break-catch-throw.c (check_status_exception_catchpoint):
9130 Update.
9131
9132 2020-05-08 Tom de Vries <tdevries@suse.de>
9133
9134 * infrun.c (follow_fork): Copy current_line and current_symtab to
9135 child thread.
9136
9137 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * async-event.c (struct async_signal_handler, struct
9140 async_event_handler): Reformat, remove typedef.
9141
9142 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9145 access thistype->main_type->dyn_prop_list directly.
9146
9147 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9150 (remove_dyn_prop): Remove. Update all users to use
9151 type::remove_dyn_prop.
9152 * gdbtypes.c (remove_dyn_prop): Rename to...
9153 (type::remove_dyn_prop): ... this.
9154
9155 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9156
9157 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9158 (add_dyn_prop): Remove. Update all users to use
9159 type::add_dyn_prop.
9160 * gdbtypes.c (add_dyn_prop): Rename to...
9161 (type::add_dyn_prop): ... this.
9162
9163 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9166 (get_dyn_prop): Remove. Update all users to use
9167 type::dyn_prop.
9168 * gdbtypes.c (get_dyn_prop): Rename to...
9169 (type::dyn_prop): ... this.
9170
9171 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9174
9175 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9176
9177 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9178 instruction, skip it if it's there.
9179
9180 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9183
9184 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9185
9186 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9187 * gdbtypes.c (recursive_dump_type): Remove use of
9188 TYPE_INCOMPLETE.
9189
9190 2020-05-03 Tom Tromey <tom@tromey.com>
9191
9192 * breakpoint.c (catch_command, tcatch_command): Remove.
9193 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9194 add_show_prefix_cmd.
9195 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9196 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9197 Remove.
9198 (add_internal_problem_command): Use add_basic_prefix_cmd,
9199 add_show_prefix_cmd.
9200 * mips-tdep.c (set_mipsfpu_command): Remove.
9201 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9202 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9203 (_initialize_index_cache): Use add_basic_prefix_cmd.
9204 * memattr.c (dummy_cmd): Remove.
9205 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9206 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9207 (_initialize_tui_win): Use add_basic_prefix_cmd,
9208 add_show_prefix_cmd.
9209 * cli/cli-logging.c (set_logging_command): Remove.
9210 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9211 add_show_prefix_cmd.
9212 (show_logging_command): Remove.
9213 * target.c (target_command): Remove.
9214 (add_target): Use add_basic_prefix_cmd.
9215
9216 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9217
9218 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9219
9220 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9221
9222 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9223 info_command.
9224
9225 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9226
9227 * nbsd-nat.c (nbsd_enable_proc_events)
9228 (nbsd_nat_target::post_startup_inferior): Add.
9229 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9230 (nbsd_nat_target::update_thread_list): Rewrite.
9231 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9232 "PTRACE_LWP_CREATE".
9233 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9234
9235 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9236
9237 * stack.c (_initialize_stack): Remove duplicated creation
9238 of "frame" command and "f" alias.
9239
9240 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9241
9242 PR gdb/18706
9243 * gdbtypes.c (check_typedef): Calculate size of array of
9244 stubbed type.
9245
9246 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9247
9248 PR gdb/15559
9249 * i386-tdep.c (i386_push_dummy_call): Call
9250 i386_thiscall_push_dummy_call.
9251 (i386_thiscall_push_dummy_call): New function.
9252 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9253 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9254 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9255
9256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * gdbarch.sh (do_read): Add shellcheck disable directive for
9259 warning SC2162.
9260
9261 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9264 "referenced but not assigned" warning.
9265
9266 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * gdbarch.sh: Remove code that sets fallbackdefault.
9269
9270 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * gdbarch.sh: Use shell operators && and || instead of
9273 -a and -o.
9274
9275 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9276
9277 * gdbarch.sh: Use $(...) instead of `...`.
9278
9279 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9280
9281 * gdbarch.sh: Use double quotes around variables.
9282
9283 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * gdbarch.sh: Use %s with printf, instead of variables in the
9286 format string.
9287
9288 2020-04-29 Tom Tromey <tromey@adacore.com>
9289
9290 PR ada/25875:
9291 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9292 type fields here.
9293 (read_enumeration_type): Call
9294 update_enumeration_type_from_children later. Update comments.
9295 (process_enumeration_scope): Don't create type fields.
9296
9297 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9298
9299 * nbsd-tdep.c: Include "xml-syscall.h".
9300 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9301
9302 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9303
9304 * nbsd-nat.c: Include "sys/wait.h".
9305 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9306 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9307 (nbsd_nat_target::remove_exec_catchpoint)
9308 (nbsd_nat_target::set_syscall_catchpoint): Add.
9309 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9310 (nbsd_nat_target::insert_exec_catchpoint)
9311 (nbsd_nat_target::remove_exec_catchpoint)
9312 (nbsd_nat_target::set_syscall_catchpoint): Add.
9313 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9314 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9315 `nbsd_get_syscall_number'.
9316
9317 2020-04-29 Tom Tromey <tom@tromey.com>
9318
9319 * stack.c (print_block_frame_labels): Remove.
9320
9321 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9322
9323 PR gdb/17320
9324 * ada-valprint.c (val_print_packed_array_elements): Move array
9325 end bracket to new line.
9326 (ada_val_print_string): Remove extra spaces before first array
9327 element.
9328 * c-valprint.c (c_value_print_array): Likewise.
9329 * m2-valprint.c (m2_print_array_contents): Likewise.
9330 (m2_value_print_inner): Likewise.
9331 * p-valprint.c (pascal_value_print_inner): Likewise.
9332 * valprint.c (generic_val_print_array): Likewise.
9333 (value_print_array_elements): Move first array element and array
9334 end bracket to new line.
9335
9336 2020-04-29 Tom de Vries <tdevries@suse.de>
9337
9338 PR symtab/25889
9339 * linespec.c (find_method): Fix ix calculation.
9340
9341 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9342
9343 * syscalls/update-netbsd.sh: New file.
9344 * syscalls/netbsd.xml: Regenerate.
9345 * data-directory/Makefile.in: Register `netbsd.xml' in
9346 `SYSCALLS_FILES'.
9347
9348 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9349
9350 * syscalls/update-freebsd.sh: Add double quotes.
9351
9352 2020-04-28 Tom Tromey <tom@tromey.com>
9353
9354 * NEWS: Update.
9355 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9356 (cmdpy_init): Allow class_tui.
9357
9358 2020-04-28 Mark Williams <mark@myosotissp.com>
9359
9360 PR gdb/24480
9361 * dwarf2read.c: Add missing assingments to list_in_scope when
9362 start_symtab was already called.
9363
9364 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9365
9366 PR gdb/25881
9367 * dwarf2/read.c (offset_map_type): Use
9368 gdb:hash_enum<sect_offset> as hash function.
9369
9370 2020-04-28 Tom de Vries <tdevries@suse.de>
9371
9372 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9373 with DW_AT_signature.
9374
9375 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9376
9377 * configure.ac: Remove check for fs_base/gs_base in
9378 user_regs_struct.
9379 * configure: Re-generate.
9380 * config.in: Re-generate.
9381 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9382 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9383 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9384
9385 2020-04-27 Luis Machado <luis.machado@linaro.org>
9386
9387 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9388 problematic inline frame unwinding situation.
9389 * frame.c (frame_id_computed_p): New function.
9390 * frame.h (frame_id_computed_p): New prototype.
9391
9392 2020-04-26 Tom Tromey <tom@tromey.com>
9393
9394 * command.h (enum command_class) <class_pseudo>: Remove.
9395
9396 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9397
9398 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9399 and whitespace.
9400
9401 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9402
9403 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9404 `PT_GET_PROCESS_STATE' block.
9405
9406 2020-04-24 Tom Tromey <tom@tromey.com>
9407
9408 * symtab.h (symbol_get_demangled_name): Don't declare.
9409 * symtab.c (symbol_get_demangled_name): Remove.
9410 (general_symbol_info::natural_name)
9411 (general_symbol_info::demangled_name): Update.
9412
9413 2020-04-24 Tom Tromey <tom@tromey.com>
9414
9415 PR rust/25025:
9416 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9417
9418 2020-04-24 Tom Tromey <tom@tromey.com>
9419
9420 PR symtab/12707:
9421 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9422 exists.
9423 (new_symbol): Likewise.
9424 * compile/compile-object-load.c (get_out_value_type): Use
9425 symbol_matches_search_name.
9426
9427 2020-04-24 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2/read.c (add_partial_symbol): Do not call
9430 compute_and_set_names.
9431
9432 2020-04-24 Tom Tromey <tom@tromey.com>
9433
9434 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9435 overload.
9436
9437 2020-04-24 Tom Tromey <tom@tromey.com>
9438
9439 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9440 (add_psymbol_to_list): New overload. Make old overload call new
9441 one.
9442 * psympriv.h (add_psymbol_to_list): New overload.
9443
9444 2020-04-24 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (partial_die_info::read) <case
9447 DW_AT_linkage_name>: Use value_as_string.
9448 (dwarf2_string_attr): Use value_as_string.
9449 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9450 method.
9451 * dwarf2/attribute.c (attribute::value_as_string): New method.
9452
9453 2020-04-24 Tom Tromey <tom@tromey.com>
9454
9455 * symtab.c (general_symbol_info::natural_name)
9456 (general_symbol_info::demangled_name): Check for language_rust.
9457
9458 2020-04-24 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9461 (dwarf2_physname): ... from here.
9462 (partial_die_info::read): Add Rust "{" hack.
9463
9464 2020-04-24 Tom Tromey <tom@tromey.com>
9465
9466 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9467 method.
9468 (symbol_set_demangled_name): Don't declare.
9469 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9470 symbol_set_demangled_name.
9471 (general_symbol_info::set_language)
9472 (general_symbol_info::compute_and_set_names): Update.
9473 * minsyms.c (minimal_symbol_reader::install): Update.
9474 * dwarf2/read.c (new_symbol): Update.
9475
9476 2020-04-24 Tom Tromey <tromey@adacore.com>
9477
9478 PR python/23662:
9479 * python/py-type.c (convert_field): Handle
9480 FIELD_LOC_KIND_DWARF_BLOCK.
9481 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9482 (typy_get_dynamic): Nw function.
9483 (type_object_getset): Add "dynamic".
9484 * NEWS: Add entry.
9485
9486 2020-04-24 Tom Tromey <tromey@adacore.com>
9487
9488 * ada-typeprint.c (print_choices, print_variant_part)
9489 (print_record_field_types_dynamic): New functions.
9490 (print_record_field_types): Use print_record_field_types_dynamic.
9491
9492 2020-04-24 Tom Tromey <tromey@adacore.com>
9493
9494 * dwarf2/read.c (handle_data_member_location): New overload.
9495 (dwarf2_add_field): Use it.
9496 (decode_locdesc): Add "computed" parameter. Update comment.
9497 * gdbtypes.c (is_dynamic_type_internal): Also look for
9498 FIELD_LOC_KIND_DWARF_BLOCK.
9499 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9500 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9501 virtual base classes.
9502 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9503 FIELD_LOC_KIND_DWARF_BLOCK.
9504
9505 2020-04-24 Tom Tromey <tromey@adacore.com>
9506
9507 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9508 * gdbtypes.c (is_dynamic_type_internal): Check
9509 TYPE_HAS_DYNAMIC_LENGTH.
9510 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9511 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9512 New macros.
9513 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9514 constant.
9515
9516 2020-04-24 Tom Tromey <tromey@adacore.com>
9517
9518 * dwarf2/read.c (struct variant_field): Rewrite.
9519 (struct variant_part_builder): New.
9520 (struct nextfield): Remove "variant" field. Add "offset".
9521 (struct field_info): Add "current_variant_part" and
9522 "variant_parts".
9523 (alloc_discriminant_info): Remove.
9524 (alloc_rust_variant): New function.
9525 (quirk_rust_enum): Update.
9526 (dwarf2_add_field): Set "offset" member. Don't handle
9527 DW_TAG_variant_part.
9528 (offset_map_type): New typedef.
9529 (convert_variant_range, create_one_variant)
9530 (create_one_variant_part, create_variant_parts)
9531 (add_variant_property): New functions.
9532 (dwarf2_attach_fields_to_type): Call add_variant_property.
9533 (read_structure_type): Don't handle DW_TAG_variant_part.
9534 (handle_variant_part, handle_variant): New functions.
9535 (handle_struct_member_die): Use them.
9536 (process_structure_scope): Don't handle variant parts.
9537 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9538 (struct discriminant_info): Remove.
9539 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9540 (struct main_type) <flag_discriminated_union>: Remove.
9541 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9542 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9543 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9544 Update.
9545 * valops.c (value_union_variant): Remove.
9546 * value.h (value_union_variant): Don't declare.
9547
9548 2020-04-24 Tom Tromey <tromey@adacore.com>
9549
9550 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9551 (ada_value_primitive_packed_val): Update.
9552 * ada-valprint.c (ada_value_print_1): Update.
9553 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9554 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9555 just an address. Use evaluate_for_locexpr_baton.
9556 (dwarf2_evaluate_property): Update.
9557 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9558 array_view.
9559 * findvar.c (default_read_var_value): Update.
9560 * gdbtypes.c (compute_variant_fields_inner)
9561 (resolve_dynamic_type_internal): Update.
9562 (resolve_dynamic_type): Change type of valaddr parameter.
9563 * gdbtypes.h (resolve_dynamic_type): Update.
9564 * valarith.c (value_subscripted_rvalue): Update.
9565 * value.c (value_from_contents_and_address): Update.
9566
9567 2020-04-24 Tom Tromey <tromey@adacore.com>
9568
9569 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9570 "push_initial_value" parameter.
9571 (dwarf2_evaluate_property): Likewise.
9572 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9573
9574 2020-04-24 Tom Tromey <tromey@adacore.com>
9575
9576 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9577 (variant::matches, compute_variant_fields_recurse)
9578 (compute_variant_fields_inner, compute_variant_fields): New
9579 functions.
9580 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9581 Use resolved_type after type is made.
9582 (operator==): Add new cases.
9583 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9584 (struct discriminant_range, struct variant, struct variant_part):
9585 New.
9586 (union dynamic_prop_data) <variant_parts, original_type>: New
9587 members.
9588 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9589 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9590 constants.
9591 * value.c (unpack_bits_as_long): Now public.
9592 * value.h (unpack_bits_as_long): Declare.
9593
9594 2020-04-24 Tom Tromey <tromey@adacore.com>
9595
9596 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9597 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9598
9599 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9600
9601 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9602
9603 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9604
9605 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9606 (remove_fork_catchpoint, post_startup_inferior)
9607 (post_attach): Move...
9608 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9609 (remove_fork_catchpoint, post_startup_inferior)
9610 (post_attach): ...here.
9611 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9612 (remove_fork_catchpoint, post_startup_inferior)
9613 (post_attach): Move...
9614 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9615 (remove_fork_catchpoint, post_startup_inferior)
9616 (post_attach): ...here.
9617
9618 2020-04-24 Tom Tromey <tromey@adacore.com>
9619
9620 * nat/windows-nat.h (struct windows_thread_info)
9621 <pc_adjusted>: New member.
9622 * windows-nat.c (windows_fetch_one_register): Check
9623 pc_adjusted.
9624 (windows_nat_target::get_windows_debug_event)
9625 (windows_nat_target::wait): Set pc_adjusted.
9626
9627 2020-04-24 Tom de Vries <tdevries@suse.de>
9628
9629 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9630 Run gdb-add-index inside temp dir.
9631
9632 2020-04-23 Tom Tromey <tromey@adacore.com>
9633
9634 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9635 in loop.
9636
9637 2020-04-23 Luis Machado <luis.machado@linaro.org>
9638
9639 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9640 get_frame_register instead of gdbarch_unwind_pc.
9641
9642 2020-04-23 Tom de Vries <tdevries@suse.de>
9643
9644 * symtab.c (lookup_global_symbol): Prefer def over decl.
9645
9646 2020-04-23 Tom de Vries <tdevries@suse.de>
9647
9648 PR symtab/25807
9649 * block.c (best_symbol, better_symbol): Promote to external.
9650 * block.h (best_symbol, better_symbol): Declare.
9651 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9652 decl.
9653
9654 2020-04-23 Tom Tromey <tromey@adacore.com>
9655
9656 PR ada/25837:
9657 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9658 "const char *", not a "const std::string &".
9659 <name_and_matcher::operator==>: Update.
9660 * unittests/lookup_name_info-selftests.c: Change type of
9661 "result".
9662
9663 2020-04-23 Tom Tromey <tom@tromey.com>
9664
9665 * inferior.h (iterate_over_inferiors): Don't declare.
9666 * inferior.c (iterate_over_inferiors): Remove.
9667 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9668 Remove.
9669 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9670 use iterate_over_inferiors.
9671 (darwin_resume_inferior_it)
9672 (struct resume_inferior_threads_param)
9673 (darwin_resume_inferior_threads_it): Remove.
9674 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9675
9676 2020-04-23 Tom de Vries <tdevries@suse.de>
9677
9678 * blockframe.c (find_pc_partial_function): Use
9679 find_pc_sect_compunit_symtab rather than
9680 objfile->sf->qf->find_pc_sect_compunit_symtab.
9681
9682 2020-04-22 Tom de Vries <tdevries@suse.de>
9683
9684 PR symtab/25764
9685 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9686 in psymtabs.
9687
9688 2020-04-22 Tom de Vries <tdevries@suse.de>
9689
9690 PR symtab/25801
9691 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9692 symtabs.
9693
9694 2020-04-22 Tom de Vries <tdevries@suse.de>
9695
9696 PR symtab/25700
9697 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9698 CU if already created.
9699
9700 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9701
9702 * infrun.c (displaced_step_fixup): Switch to the event_thread
9703 before calling displaced_step_restore, not after.
9704
9705 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9706
9707 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9708 its inferior is not recorded by us.
9709 (record_btrace_target_open): Replace call to
9710 all_non_exited_threads () with call to current_inferior
9711 ()->non_exited_threads ().
9712 (record_btrace_target::stop_recording): Likewise.
9713 (record_btrace_target::close): Likewise.
9714 (record_btrace_target::wait): Likewise.
9715 (record_btrace_target::record_stop_replaying): Likewise.
9716
9717 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9718
9719 * btrace.c (btrace_enable): Throw an error on double enables and
9720 when enabling recording fails.
9721 (btrace_disable): Throw an error if the thread is not recorded.
9722
9723 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9724
9725 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9726 request if we do not have a thread_info.
9727
9728 2020-04-21 Tom de Vries <tdevries@suse.de>
9729
9730 PR gdb/25471
9731 * thread.c
9732 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9733 exception in get_frame_id.
9734
9735 2020-04-20 Tom Tromey <tromey@adacore.com>
9736
9737 * python/python.c (struct gdbpy_event): Mark move constructor as
9738 noexcept.
9739 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9740 constructor as noexcept.
9741 * completer.h (struct completion_result): Mark move constructor as
9742 noexcept.
9743 * completer.c (completion_result::completion_result): Use
9744 initialization style. Don't call reset_match_list.
9745
9746 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9747
9748 * MAINTAINERS (Write After Approval): Add myself.
9749
9750 2020-04-18 Tom Tromey <tom@tromey.com>
9751
9752 * windows-tdep.c (init_w32_command_list)
9753 (w32_prefix_command_valid): Restore.
9754 (_initialize_windows_tdep): Call init_w32_command_list.
9755
9756 2020-04-18 Tom Tromey <tom@tromey.com>
9757
9758 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9759 * value.c (value_fn_field): Update.
9760 * valops.c (find_function_in_inferior)
9761 (value_allocate_space_in_inferior): Update.
9762 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9763 Update.
9764 * tui/tui-source.c (tui_source_window::set_contents): Update.
9765 * symtab.c (lookup_global_or_static_symbol)
9766 (find_function_start_sal_1, skip_prologue_sal)
9767 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9768 * symmisc.c (dump_msymbols, dump_symtab_1)
9769 (maintenance_print_one_line_table): Update.
9770 * symfile.c (init_entry_point_info, section_is_mapped)
9771 (list_overlays_command, simple_read_overlay_table)
9772 (simple_overlay_update_1): Update.
9773 * stap-probe.c (handle_stap_probe): Update.
9774 * stabsread.c (dbx_init_float_type, define_symbol)
9775 (read_one_struct_field, read_enum_type, read_range_type): Update.
9776 * source.c (info_line_command): Update.
9777 * python/python.c (gdbpy_source_objfile_script)
9778 (gdbpy_execute_objfile_script): Update.
9779 * python/py-type.c (save_objfile_types): Update.
9780 * python/py-objfile.c (py_free_objfile): Update.
9781 * python/py-inferior.c (python_new_objfile): Update.
9782 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9783 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9784 (maintenance_check_psymtabs): Update.
9785 * printcmd.c (info_address_command): Update.
9786 * objfiles.h (struct objfile) <arch>: New method, from
9787 get_objfile_arch.
9788 (get_objfile_arch): Don't declare.
9789 * objfiles.c (get_objfile_arch): Remove.
9790 (filter_overlapping_sections): Update.
9791 * minsyms.c (msymbol_is_function): Update.
9792 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9793 (output_nondebug_symbol): Update.
9794 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9795 (mdebug_expand_psymtab): Update.
9796 * machoread.c (macho_add_oso_symfile): Update.
9797 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9798 Update.
9799 * linux-fork.c (checkpoint_command): Update.
9800 * linespec.c (convert_linespec_to_sals): Update.
9801 * jit.c (finalize_symtab): Update.
9802 * infrun.c (insert_exception_resume_from_probe): Update.
9803 * ia64-tdep.c (ia64_find_unwind_table): Update.
9804 * hppa-tdep.c (internalize_unwinds): Update.
9805 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9806 Update.
9807 * gcore.c (call_target_sbrk): Update.
9808 * elfread.c (record_minimal_symbol, elf_symtab_read)
9809 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9810 (elf_gnu_ifunc_resolve_by_got): Update.
9811 * dwarf2/read.c (create_addrmap_from_index)
9812 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9813 (read_debug_names_from_section)
9814 (process_psymtab_comp_unit_reader, add_partial_symbol)
9815 (add_partial_subprogram, process_full_comp_unit)
9816 (read_file_scope, read_func_scope, read_lexical_block_scope)
9817 (read_call_site_scope, dwarf2_ranges_read)
9818 (dwarf2_record_block_ranges, dwarf2_add_field)
9819 (mark_common_block_symbol_computed, read_tag_pointer_type)
9820 (read_tag_string_type, dwarf2_init_float_type)
9821 (dwarf2_init_complex_target_type, read_base_type)
9822 (partial_die_info::read, partial_die_info::read)
9823 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9824 (dwarf2_fetch_die_loc_sect_off): Update.
9825 * dwarf2/loc.c (dwarf2_find_location_expression)
9826 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9827 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9828 (dwarf2_loc_desc_get_symbol_read_needs)
9829 (locexpr_describe_location_piece, locexpr_describe_location_1)
9830 (loclist_describe_location): Update.
9831 * dwarf2/index-write.c (write_debug_names): Update.
9832 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9833 * dtrace-probe.c (dtrace_process_dof): Update.
9834 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9835 (process_one_symbol): Update.
9836 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9837 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9838 (coff_read_enum_type): Update.
9839 * cli/cli-cmds.c (edit_command, list_command): Update.
9840 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9841 * breakpoint.c (create_overlay_event_breakpoint)
9842 (create_longjmp_master_breakpoint)
9843 (create_std_terminate_master_breakpoint)
9844 (create_exception_master_breakpoint, get_sal_arch): Update.
9845 * block.c (block_gdbarch): Update.
9846 * annotate.c (annotate_source_line): Update.
9847
9848 2020-04-17 Tom Tromey <tromey@adacore.com>
9849
9850 * auto-load.c (show_auto_load_cmd): Remove.
9851 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9852 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9853 (maintenance_print_arc_command): Remove.
9854 * tui/tui-win.c (tui_command): Remove.
9855 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9856 * tui/tui-layout.c (tui_layout_command): Remove.
9857 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9858 * python/python.c (user_set_python, user_show_python): Remove.
9859 (_initialize_python): Use add_basic_prefix_cmd,
9860 add_show_prefix_cmd.
9861 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9862 (install_gdb_commands): Use add_basic_prefix_cmd,
9863 add_show_prefix_cmd.
9864 (info_guile_command): Remove.
9865 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9866 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9867 add_show_prefix_cmd.
9868 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9869 Remove do_set and do_show parameters.
9870 * cli/cli-style.c (set_style, show_style): Remove.
9871 (_initialize_cli_style): Use add_basic_prefix_cmd,
9872 add_show_prefix_cmd.
9873 (cli_style_option::add_setshow_commands): Remove do_set and
9874 do_show parameters.
9875 (cli_style_option::add_setshow_commands): Use
9876 add_basic_prefix_cmd, add_show_prefix_cmd.
9877 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9878 (set_style_name): Remove.
9879 * cli/cli-dump.c (dump_command, append_command): Remove.
9880 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9881 (tekhex_dump_command, binary_dump_command)
9882 (binary_append_command): Remove.
9883 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9884 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9885 (init_w32_command_list): Remove; move into ...
9886 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9887 * valprint.c (set_print, show_print, set_print_raw)
9888 (show_print_raw): Remove.
9889 (_initialize_valprint): Use add_basic_prefix_cmd,
9890 add_show_prefix_cmd.
9891 * typeprint.c (set_print_type, show_print_type): Remove.
9892 (_initialize_typeprint): Use add_basic_prefix_cmd,
9893 add_show_prefix_cmd.
9894 * record.c (set_record_command, show_record_command): Remove.
9895 (_initialize_record): Use add_basic_prefix_cmd,
9896 add_show_prefix_cmd.
9897 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9898 add_show_prefix_cmd.
9899 (info_command, show_command, set_debug, show_debug): Remove.
9900 * top.h (set_history, show_history): Don't declare.
9901 * top.c (set_history, show_history): Remove.
9902 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9903 (unset_tdesc_cmd): Remove.
9904 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9905 add_show_prefix_cmd.
9906 * symtab.c (info_module_command): Remove.
9907 (_initialize_symtab): Use add_basic_prefix_cmd.
9908 * symfile.c (overlay_command): Remove.
9909 (_initialize_symfile): Use add_basic_prefix_cmd.
9910 * sparc64-tdep.c (info_adi_command): Remove.
9911 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9912 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9913 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9914 add_show_prefix_cmd.
9915 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9916 (_initialize_serial): Use add_basic_prefix_cmd,
9917 add_show_prefix_cmd.
9918 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9919 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9920 add_show_prefix_cmd.
9921 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9922 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9923 add_show_prefix_cmd.
9924 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9925 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9926 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9927 add_show_prefix_cmd.
9928 * remote.c (remote_command, set_remote_cmd): Remove.
9929 (_initialize_remote): Use add_basic_prefix_cmd.
9930 * record-full.c (set_record_full_command)
9931 (show_record_full_command): Remove.
9932 (_initialize_record_full): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 * record-btrace.c (cmd_set_record_btrace)
9935 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9936 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9937 (cmd_show_record_btrace_pt): Remove.
9938 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9939 add_show_prefix_cmd.
9940 * ravenscar-thread.c (set_ravenscar_command)
9941 (show_ravenscar_command): Remove.
9942 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9943 add_show_prefix_cmd.
9944 * mips-tdep.c (show_mips_command, set_mips_command)
9945 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9946 add_show_prefix_cmd.
9947 * maint.c (maintenance_command, maintenance_info_command)
9948 (maintenance_check_command, maintenance_print_command)
9949 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9950 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9951 add_show_prefix_cmd.
9952 (show_per_command_cmd): Remove.
9953 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9954 Remove.
9955 (maintenance_show_test_settings_cmd): Remove.
9956 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9957 add_show_prefix_cmd.
9958 * maint-test-options.c (maintenance_test_options_command):
9959 Remove.
9960 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9961 * macrocmd.c (macro_command): Remove
9962 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9963 * language.c (set_check, show_check): Remove.
9964 (_initialize_language): Use add_basic_prefix_cmd,
9965 add_show_prefix_cmd.
9966 * infcmd.c (unset_command): Remove.
9967 (_initialize_infcmd): Use add_basic_prefix_cmd.
9968 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9969 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9970 add_show_prefix_cmd.
9971 * go32-nat.c (go32_info_dos_command): Remove.
9972 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9973 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9974 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9975 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9976 (_initialize_frame): Use add_basic_prefix_cmd,
9977 add_show_prefix_cmd.
9978 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9979 (_initialize_dcache): Use add_basic_prefix_cmd,
9980 add_show_prefix_cmd.
9981 * cp-support.c (maint_cplus_command): Remove.
9982 (_initialize_cp_support): Use add_basic_prefix_cmd.
9983 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9984 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9985 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9986 add_basic_prefix_cmd, add_show_prefix_cmd.
9987 * breakpoint.c (save_command): Remove.
9988 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9989 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9990 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9991 add_show_prefix_cmd.
9992 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9993 (set_ada_command, show_ada_command): Remove.
9994 (_initialize_ada_language): Use add_basic_prefix_cmd,
9995 add_show_prefix_cmd.
9996 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9997
9998 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9999
10000 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
10001 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
10002
10003 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
10006 warning messages.
10007
10008 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
10009
10010 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10011 import table is not at beginning of .idata section.
10012
10013 2020-04-16 Pedro Alves <palves@redhat.com>
10014
10015 * inferior.c (delete_inferior): Use delete operator directly
10016 instead of delete_program_space.
10017 * progspace.c (add_program_space): New, factored out from
10018 program_space::program_space.
10019 (remove_program_space): New, factored out from
10020 delete_program_space.
10021 (program_space::program_space): Remove intro comment. Rewrite.
10022 (program_space::~program_space): Remove intro comment. Call
10023 remove_program_space.
10024 (delete_program_space): Delete.
10025 * progspace.h (program_space::program_space): Make explicit. Move
10026 intro comment here, adjusted.
10027 (program_space::~program_space): Move intro comment here,
10028 adjusted.
10029 (delete_program_space): Remove.
10030
10031 2020-04-16 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (windows_nat::handle_access_violation): New
10034 function.
10035 * nat/windows-nat.h (handle_access_violation): Declare.
10036 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10037 windows-nat.c. Call handle_access_violation.
10038
10039 2020-04-16 Tom de Vries <tdevries@suse.de>
10040
10041 PR symtab/25791
10042 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10043 CUs without psymtab.
10044
10045 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10046
10047 * python/python.c (do_start_initialization): Don't call
10048 PyEval_InitThreads for Python 3.9 and beyond.
10049
10050 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10051
10052 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10053 thread functions.
10054 (obsd_nat_target::wait): Likewise.
10055
10056 2020-04-15 Tom Tromey <tromey@adacore.com>
10057
10058 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10059 (DEBUG_EXCEPT): Use debug_printf.
10060
10061 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10062
10063 * completer.c (class completion_tracker::completion_hash_entry)
10064 <hash_name>: New member function.
10065 (completion_tracker::discard_completions): New callback to hash a
10066 completion_hash_entry, pass this to htab_create_alloc.
10067
10068 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10069
10070 * windows-nat.c (windows_make_so): Warn rather than stopping with
10071 an error if realpath() fails.
10072
10073 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10074
10075 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10076 (nbsd_nat_target::info_proc): Add do_status.
10077
10078 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10079 Tom de Vries <tdevries@suse.de>
10080
10081 PR symtab/25718
10082 * psympriv.h (struct partial_symtab::read_symtab)
10083 (struct partial_symtab::expand_psymtab)
10084 (struct partial_symtab::read_dependencies): Update comments.
10085 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10086 read_symtab for includer.
10087 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10088 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10089 (struct dwarf2_include_psymtab::m_readin): Remove.
10090 (struct dwarf2_include_psymtab::includer): New member function.
10091 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10092
10093 2020-04-14 Tom de Vries <tdevries@suse.de>
10094
10095 PR symtab/25720
10096 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10097 with NULL symbol_matcher and lookup_name.
10098 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10099 and lookup_name.
10100 * dwarf2/read.c (dw2_expand_symtabs_matching)
10101 (dw2_debug_names_expand_symtabs_matching): Same.
10102 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10103 Make lookup_name a pointer. Update comment.
10104 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10105 lookup_name being a pointer.
10106 * symfile.c (expand_symtabs_matching): Same.
10107 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10108 * linespec.c (iterate_over_all_matching_symtabs): Same.
10109
10110 2020-04-13 Tom Tromey <tom@tromey.com>
10111
10112 * run-on-main-thread.c: Update include.
10113 * unittests/main-thread-selftests.c: Update include.
10114 * tui/tui-win.c: Update include.
10115 * tui/tui-io.c: Update include.
10116 * tui/tui-interp.c: Update include.
10117 * tui/tui-hooks.c: Update include.
10118 * top.h: Update include.
10119 * top.c: Update include.
10120 * ser-base.c: Update include.
10121 * remote.c: Update include.
10122 * remote-notif.c: Update include.
10123 * remote-fileio.c: Update include.
10124 * record-full.c: Update include.
10125 * record-btrace.c: Update include.
10126 * python/python.c: Update include.
10127 * posix-hdep.c: Update include.
10128 * mingw-hdep.c: Update include.
10129 * mi/mi-main.c: Update include.
10130 * mi/mi-interp.c: Update include.
10131 * main.c: Update include.
10132 * linux-nat.c: Update include.
10133 * interps.c: Update include.
10134 * infrun.c: Update include.
10135 * inf-loop.c: Update include.
10136 * event-top.c: Update include.
10137 * event-loop.c: Move to ../gdbsupport/.
10138 * event-loop.h: Move to ../gdbsupport/.
10139 * async-event.h: Update include.
10140 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10141
10142 2020-04-13 Tom Tromey <tom@tromey.com>
10143
10144 * tui/tui-win.c: Include async-event.h.
10145 * remote.c: Include async-event.h.
10146 * remote-notif.c: Include async-event.h.
10147 * record-full.c: Include async-event.h.
10148 * record-btrace.c: Include async-event.h.
10149 * infrun.c: Include async-event.h.
10150 * event-top.c: Include async-event.h.
10151 * event-loop.h: Move some declarations to async-event.h.
10152 * event-loop.c: Don't include ser-event.h or top.h. Move some
10153 code to async-event.c.
10154 * async-event.h: New file.
10155 * async-event.c: New file.
10156 * Makefile.in (COMMON_SFILES): Add async-event.c.
10157 (HFILES_NO_SRCDIR): Add async-event.h.
10158
10159 2020-04-13 Tom Tromey <tom@tromey.com>
10160
10161 * utils.c (flush_streams): New function.
10162 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10163
10164 2020-04-13 Tom Tromey <tom@tromey.com>
10165
10166 * event-loop.c (handle_file_event): Use warning, not
10167 printf_unfiltered.
10168
10169 2020-04-13 Tom Tromey <tom@tromey.com>
10170
10171 * event-loop.c: Include <chrono>.
10172
10173 2020-04-13 Tom Tromey <tom@tromey.com>
10174
10175 * gdb_select.h: Move to ../gdbsupport/.
10176 * event-loop.c: Update include path.
10177 * top.c: Update include path.
10178 * ser-base.c: Update include path.
10179 * ui-file.c: Update include path.
10180 * ser-tcp.c: Update include path.
10181 * guile/scm-ports.c: Update include path.
10182 * posix-hdep.c: Update include path.
10183 * ser-unix.c: Update include path.
10184 * gdb_usleep.c: Update include path.
10185 * mingw-hdep.c: Update include path.
10186 * inflow.c: Update include path.
10187 * infrun.c: Update include path.
10188 * event-top.c: Update include path.
10189
10190 2020-04-13 Tom Tromey <tom@tromey.com>
10191
10192 * configure: Rebuild.
10193 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10194
10195 2020-04-13 Tom Tromey <tom@tromey.com>
10196
10197 * event-loop.h (start_event_loop): Don't declare.
10198 * event-loop.c (start_event_loop): Move...
10199 * main.c (start_event_loop): ...here. Now static.
10200
10201 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10202
10203 * MAINTAINERS: Update my email address.
10204
10205 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10206
10207 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10208 IP_ALL.
10209
10210 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10211
10212 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10213 (nbsd_nat_target::info_proc): Add do_cmdline.
10214
10215 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10216
10217 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10218 (nbsd_nat_target::info_proc): Add do_cwd.
10219
10220 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10221
10222 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10223
10224 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10225
10226 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10227 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10228 (nbsd_nat_target::info_proc): New functions.
10229 * nbsd-nat.c (kinfo_get_vmmap): New function.
10230 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10231 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10232 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10233 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10234 functions.
10235 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10236 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10237 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10238 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10239 (KINFO_VME_FLAG_GROWS_DOWN): New.
10240
10241 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10242
10243 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10244 bit shift.
10245
10246 2020-04-10 Tom Tromey <tromey@adacore.com>
10247
10248 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10249
10250 2020-04-10 Tom Tromey <tromey@adacore.com>
10251
10252 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10253 separate debug files.
10254
10255 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10256
10257 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10258 Move to...
10259 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10260 ... here.
10261 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10262 Check for STATUS_WX86_BREAKPOINT.
10263 (windows_nat_target::wait): Same.
10264
10265 2020-04-10 Tom de Vries <tdevries@suse.de>
10266
10267 PR cli/25808
10268 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10269
10270 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10273 (Write After Approval): Remove Tom de Vries.
10274
10275 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10276
10277 revert partially:
10278 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10279
10280 * buildsym.c (record_line): Fix undefined behavior and preserve
10281 lines at eof.
10282
10283 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10284
10285 * auxv.h (svr4_auxv_parse): New.
10286 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10287 and generic_auxv_parse.
10288 (svr4_auxv_parse): Add.
10289 * obsd-tdep.c: Include "auxv.h".
10290 (obsd_auxv_parse): Remove.
10291 (obsd_init_abi): Remove comment.
10292 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10293 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10294 * nbsd-tdep.c: Include "auxv.h".
10295 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10296
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * nat/windows-nat.h (last_wait_event): Don't declare.
10300 (wait_for_debug_event): Update comment.
10301 * nat/windows-nat.c (last_wait_event): Now static.
10302
10303 2020-04-08 Tom Tromey <tromey@adacore.com>
10304
10305 * windows-nat.c (wait_for_debug_event): Move to
10306 nat/windows-nat.c.
10307 * nat/windows-nat.h (wait_for_debug_event): Declare.
10308 * nat/windows-nat.c (wait_for_debug_event): Move from
10309 windows-nat.c. No longer static.
10310
10311 2020-04-08 Tom Tromey <tromey@adacore.com>
10312
10313 * windows-nat.c (get_windows_debug_event): Use
10314 fetch_pending_stop.
10315 * nat/windows-nat.h (fetch_pending_stop): Declare.
10316 * nat/windows-nat.c (fetch_pending_stop): New function.
10317
10318 2020-04-08 Tom Tromey <tromey@adacore.com>
10319
10320 * windows-nat.c (windows_continue): Use matching_pending_stop and
10321 continue_last_debug_event.
10322 * nat/windows-nat.h (matching_pending_stop)
10323 (continue_last_debug_event): Declare.
10324 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10325 (matching_pending_stop, continue_last_debug_event): New
10326 functions.
10327
10328 2020-04-08 Tom Tromey <tromey@adacore.com>
10329
10330 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10331 (handle_exception_result): Move to nat/windows-nat.h.
10332 (DEBUG_EXCEPTION_SIMPLE): Remove.
10333 (windows_nat::handle_ms_vc_exception): New function.
10334 (handle_exception): Move to nat/windows-nat.c.
10335 (get_windows_debug_event): Update.
10336 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10337 nat/windows-nat.c.
10338 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10339 (handle_exception_result): Move from windows-nat.c.
10340 (handle_exception): Declare.
10341 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10342 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10343 windows-nat.c.
10344
10345 2020-04-08 Tom Tromey <tromey@adacore.com>
10346
10347 * windows-nat.c (exception_count, event_count): Remove.
10348 (handle_exception, get_windows_debug_event)
10349 (do_initial_windows_stuff): Update.
10350
10351 2020-04-08 Tom Tromey <tromey@adacore.com>
10352
10353 * windows-nat.c (windows_nat::handle_load_dll)
10354 (windows_nat::handle_unload_dll): Rename. No longer static.
10355 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10356 Declare.
10357
10358 2020-04-08 Tom Tromey <tromey@adacore.com>
10359
10360 * complaints.h (stop_whining): Declare at top-level.
10361 (complaint): Don't declare stop_whining.
10362
10363 2020-04-08 Tom Tromey <tromey@adacore.com>
10364
10365 * windows-nat.c (windows_nat::handle_output_debug_string):
10366 Rename. No longer static.
10367 * nat/windows-nat.h (handle_output_debug_string): Declare.
10368
10369 2020-04-08 Tom Tromey <tromey@adacore.com>
10370
10371 * windows-nat.c (current_process_handle, current_process_id)
10372 (main_thread_id, last_sig, current_event, last_wait_event)
10373 (current_windows_thread, desired_stop_thread_id, pending_stops)
10374 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10375 (display_selectors, fake_create_process)
10376 (get_windows_debug_event): Update.
10377 * nat/windows-nat.h (current_process_handle, current_process_id)
10378 (main_thread_id, last_sig, current_event, last_wait_event)
10379 (current_windows_thread, desired_stop_thread_id, pending_stops)
10380 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10381 * nat/windows-nat.c (current_process_handle, current_process_id)
10382 (main_thread_id, last_sig, current_event, last_wait_event)
10383 (current_windows_thread, desired_stop_thread_id, pending_stops)
10384 (siginfo_er): New globals. Move from windows-nat.c.
10385
10386 2020-04-08 Tom Tromey <tromey@adacore.com>
10387
10388 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10389 (handle_load_dll): Update.
10390 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10391
10392 2020-04-08 Tom Tromey <tromey@adacore.com>
10393
10394 * windows-nat.c (enum thread_disposition_type): Move to
10395 nat/windows-nat.h.
10396 (windows_nat::thread_rec): Rename from thread_rec. No longer
10397 static.
10398 (windows_add_thread, windows_nat_target::fetch_registers)
10399 (windows_nat_target::store_registers, handle_exception)
10400 (windows_nat_target::resume, get_windows_debug_event)
10401 (windows_nat_target::get_tib_address)
10402 (windows_nat_target::thread_name)
10403 (windows_nat_target::thread_alive): Update.
10404 * nat/windows-nat.h (enum thread_disposition_type): Move from
10405 windows-nat.c.
10406 (thread_rec): Declare.
10407
10408 2020-04-08 Tom Tromey <tromey@adacore.com>
10409
10410 * windows-nat.c: Add "using namespace".
10411 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10412 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10413
10414 2020-04-08 Tom Tromey <tromey@adacore.com>
10415
10416 * nat/windows-nat.h (struct windows_thread_info): Declare
10417 destructor.
10418 * nat/windows-nat.c (~windows_thread_info): New.
10419
10420 2020-04-08 Tom Tromey <tromey@adacore.com>
10421
10422 PR gdb/22992
10423 * windows-nat.c (current_event): Update comment.
10424 (last_wait_event, desired_stop_thread_id): New globals.
10425 (struct pending_stop): New.
10426 (pending_stops): New global.
10427 (windows_nat_target) <stopped_by_sw_breakpoint>
10428 <supports_stopped_by_sw_breakpoint>: New methods.
10429 (windows_fetch_one_register): Add assertions. Adjust PC.
10430 (windows_continue): Handle pending stops. Suspend other threads
10431 when stepping. Use last_wait_event
10432 (wait_for_debug_event): New function.
10433 (get_windows_debug_event): Use wait_for_debug_event. Handle
10434 pending stops. Queue spurious stops.
10435 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10436 (windows_nat_target::kill): Use wait_for_debug_event.
10437 * nat/windows-nat.h (struct windows_thread_info)
10438 <stopped_at_software_breakpoint>: New field.
10439 * nat/windows-nat.c (windows_thread_info::resume): Clear
10440 stopped_at_software_breakpoint.
10441
10442 2020-04-08 Tom Tromey <tromey@adacore.com>
10443
10444 * windows-nat.c (enum thread_disposition_type): New.
10445 (thread_rec): Replace "get_context" parameter with "disposition";
10446 change type.
10447 (windows_add_thread, windows_nat_target::fetch_registers)
10448 (windows_nat_target::store_registers, handle_exception)
10449 (windows_nat_target::resume, get_windows_debug_event)
10450 (windows_nat_target::get_tib_address)
10451 (windows_nat_target::thread_name)
10452 (windows_nat_target::thread_alive): Update.
10453
10454 2020-04-08 Tom Tromey <tromey@adacore.com>
10455
10456 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10457 (windows_continue): Use windows_continue::resume.
10458 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10459 resume>: Declare new methods.
10460 * nat/windows-nat.c: New file.
10461 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10462
10463 2020-04-08 Tom Tromey <tromey@adacore.com>
10464
10465 * windows-nat.c (windows_add_thread, windows_delete_thread)
10466 (windows_nat_target::fetch_registers)
10467 (windows_nat_target::store_registers, fake_create_process)
10468 (windows_nat_target::resume, windows_nat_target::resume)
10469 (get_windows_debug_event, windows_nat_target::wait)
10470 (windows_nat_target::pid_to_str)
10471 (windows_nat_target::get_tib_address)
10472 (windows_nat_target::get_ada_task_ptid)
10473 (windows_nat_target::thread_name)
10474 (windows_nat_target::thread_alive): Use lwp, not tid.
10475
10476 2020-04-08 Tom Tromey <tromey@adacore.com>
10477
10478 * windows-nat.c (handle_exception)
10479 (windows_nat_target::thread_name): Update.
10480 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10481 <name>: Now unique_xmalloc_ptr.
10482
10483 2020-04-08 Tom Tromey <tromey@adacore.com>
10484
10485 * windows-nat.c (thread_rec)
10486 (windows_nat_target::fetch_registers): Update.
10487 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10488 Update comment.
10489 <debug_registers_changed, reload_context>: Now bool.
10490
10491 2020-04-08 Tom Tromey <tromey@adacore.com>
10492
10493 * windows-nat.c (windows_add_thread): Use new.
10494 (windows_init_thread_list, windows_delete_thread): Use delete.
10495 (get_windows_debug_event): Update.
10496 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10497 destructor, and initializers.
10498
10499 2020-04-08 Tom Tromey <tromey@adacore.com>
10500
10501 * windows-nat.c (struct windows_thread_info): Remove.
10502 * nat/windows-nat.h: New file.
10503
10504 2020-04-08 Tom Tromey <tromey@adacore.com>
10505
10506 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10507 (thread_rec, windows_add_thread, windows_delete_thread)
10508 (windows_continue): Update.
10509
10510 2020-04-08 Tom Tromey <tromey@adacore.com>
10511
10512 * windows-nat.c (struct windows_thread_info): Remove typedef.
10513 (thread_head): Remove.
10514 (thread_list): New global.
10515 (thread_rec, windows_add_thread, windows_init_thread_list)
10516 (windows_delete_thread, windows_continue): Update.
10517
10518 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10519
10520 * windows-tdep.h (windows_init_abi): Add comment.
10521 (cygwin_init_abi): New declaration.
10522 * windows-tdep.c: Split signal enumeration in two, one for
10523 Windows and one for Cygwin.
10524 (windows_gdb_signal_to_target): Only deal with signal of the
10525 Windows OS ABI.
10526 (cygwin_gdb_signal_to_target): New function.
10527 (windows_init_abi): Rename to windows_init_abi_common, don't set
10528 gdb_signal_to_target gdbarch method. Add new new function with
10529 this name.
10530 (cygwin_init_abi): New function.
10531 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10532 comment. Don't call windows_init_abi.
10533 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10534 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10535 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10536 i386_windows_init_abi_common, don't call windows_init_abi. Add
10537 a new function of this name.
10538 (i386_cygwin_init_abi): New function.
10539 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10540 OS ABI Cygwin.
10541
10542 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10543
10544 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10545 parameter.c.
10546 (dwarf2_read_gdb_index): Update.
10547
10548 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10549
10550 * nbsd-tdep.c: Include "objfiles.h".
10551 (nbsd_skip_solib_resolver): New.
10552 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10553
10554 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10555
10556 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10557 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10558 with DW_LLE_base_addressx are being emitted in DWARFv5.
10559 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10560 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10561 unsigned integer.
10562
10563 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10564
10565 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10566 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10567 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10568 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10569 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10570 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10571 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10572
10573
10574 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10575
10576 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10577 (read_loclist_index): New function definition.
10578 (lookup_loclist_base): New function definition.
10579 (read_loclist_header): New function definition.
10580 (dwarf2_cu): Add loclist_base and loclist_header field.
10581 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10582 (read_full_die_1): Read the value of DW_AT_loclists_base.
10583 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10584 (read_attribute_value): Handle DW_FORM_loclistx.
10585 (skip_one_die): Handle DW_FORM_loclistx.
10586 (loclist_header): New structure declaration.
10587 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10588
10589 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10592 constructor. Remove `addr` parameter from other constructor and
10593 add `per_cu` parameter.
10594 * dwarf2/read.c (create_partial_symtab): Update.
10595
10596 2020-04-07 Tom de Vries <tdevries@suse.de>
10597
10598 PR symtab/25796
10599 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10600 (partial_die_info::fixup): Inherit has_const_value.
10601
10602 2020-04-07 Tom de Vries <tdevries@suse.de>
10603
10604 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10605 symbols without address.
10606
10607 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10608
10609 * nbsd-nat.h (struct thread_info): Add forward declaration.
10610 (nbsd_nat_target::thread_alive): Add.
10611 (nbsd_nat_target::thread_name): Likewise.
10612 (nbsd_nat_target::update_thread_list): Likewise.
10613 (update_thread_list::post_attach): Likewise.
10614 (post_attach::pid_to_str): Likewise.
10615 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10616 (nbsd_thread_lister): Add.
10617 (nbsd_nat_target::thread_alive): Likewise.
10618 (nbsd_nat_target::thread_name): Likewise.
10619 (nbsd_add_threads): Likewise.
10620 (update_thread_list::post_attach): Likewise.
10621 (nbsd_nat_target::update_thread_list): Likewise.
10622 (post_attach::pid_to_str): Likewise.
10623
10624 2020-04-06 Tom Tromey <tromey@adacore.com>
10625
10626 * ada-valprint.c (print_variant_part): Extract the variant field.
10627 (print_field_values): Use the field as the outer value when
10628 recursing.
10629
10630 2020-04-06 Tom Tromey <tromey@adacore.com>
10631
10632 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10633 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10634 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10635 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10636 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10637
10638 2020-04-06 Tom Tromey <tromey@adacore.com>
10639
10640 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10641 TYPE_CODE_ERROR.
10642
10643 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10644
10645 * nbsd-tdep.c: Include "gdbarch.h".
10646 Define enum with NetBSD signal numbers.
10647 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10648 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10649 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10650 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10651 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10652 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10653 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10654 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10655 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10656 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10657 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10658 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10659
10660 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10661
10662 PR gdb/25325
10663 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10664
10665 2020-04-03 Tom Tromey <tromey@adacore.com>
10666
10667 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10668 Read constant block.
10669
10670 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10671
10672 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10673 (gdb_bfd_get_full_section_contents): New declaration.
10674 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10675 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10676 gdb_bfd_get_full_section_contents.
10677
10678 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10679
10680 * exec.c (build_section_table): Replace internal_error with
10681 gdb_assert.
10682 (section_table_xfer_memory_partial): Likewise.
10683 * mdebugread.c (parse_partial_symbols): Likewise.
10684 * psymtab.c (lookup_partial_symbol): Likewise.
10685 * utils.c (wrap_here): Likewise.
10686
10687 2020-04-02 Tom Tromey <tromey@adacore.com>
10688
10689 * f-lang.c (build_fortran_types): Use arch_type to initialize
10690 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10691
10692 2020-04-02 Tom Tromey <tromey@adacore.com>
10693
10694 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10695 of attributes.
10696
10697 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10698 Bernd Edlinger <bernd.edlinger@hotmail.de>
10699 Tom Tromey <tromey@adacore.com>
10700
10701 * buildsym.c (buildsym_compunit::record_line): Remove
10702 deduplication code.
10703
10704 2020-04-02 Tom de Vries <tdevries@suse.de>
10705
10706 PR ada/24671
10707 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10708
10709 2020-04-02 Tom de Vries <tdevries@suse.de>
10710
10711 * dwarf2/read.c (dwarf2_gdb_index_functions,
10712 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10713 NULL.
10714 * psymtab.c (psym_lookup_global_symbol_language): New function.
10715 (psym_functions): Init psym_lookup_global_symbol_language with
10716 psym_lookup_global_symbol_language.
10717 * symfile-debug.c (debug_sym_quick_functions): Init
10718 lookup_global_symbol_language with NULL.
10719 * symfile.c (set_initial_language): Remove fixme comment.
10720 * symfile.h (struct quick_symbol_functions): Add
10721 lookup_global_symbol_language.
10722 * symtab.c (find_quick_global_symbol_language): New function.
10723 (find_main_name): Use find_quick_global_symbol_language.
10724
10725 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10726
10727 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10728
10729 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10730
10731 * buildsym.c (record_line): Fix undefined behavior and preserve
10732 lines at eof.
10733
10734 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10735
10736 * buildsym.c (record_line): Fix the resizing condition.
10737
10738 2020-04-01 Tom Tromey <tom@tromey.com>
10739
10740 * value.h (value_literal_complex): Add comment.
10741 * valops.c (value_literal_complex): Refer to value.h.
10742
10743 2020-04-01 Tom Tromey <tom@tromey.com>
10744
10745 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10746 (scalar_type): New rule, from typebase.
10747 (typebase): Use scalar_type. Recognize complex types.
10748 (field_name): Handle FLOAT_KEYWORD.
10749 (ident_tokens): Add _Complex and __complex__.
10750
10751 2020-04-01 Tom Tromey <tom@tromey.com>
10752
10753 PR exp/25299:
10754 * valarith.c (promotion_type, complex_binop): New functions.
10755 (scalar_binop): Handle complex numbers. Use promotion_type.
10756 (value_pos, value_neg, value_complement): Handle complex numbers.
10757
10758 2020-04-01 Tom Tromey <tom@tromey.com>
10759
10760 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10761 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10762 (parse_number): Handle complex numbers.
10763
10764 2020-04-01 Tom Tromey <tom@tromey.com>
10765
10766 * c-valprint.c (c_decorations): Change complex suffix to "i".
10767
10768 2020-04-01 Tom Tromey <tom@tromey.com>
10769
10770 * valprint.c (generic_value_print_complex): Use accessors.
10771 * value.h (value_real_part, value_imaginary_part): Declare.
10772 * valops.c (value_real_part, value_imaginary_part): New
10773 functions.
10774 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10775
10776 2020-04-01 Tom Tromey <tom@tromey.com>
10777
10778 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10779 (read_range_type): Update.
10780 * mdebugread.c (basic_type): Update.
10781 * go-lang.c (build_go_types): Use init_complex_type.
10782 * gdbtypes.h (struct main_type) <complex_type>: New member.
10783 (init_complex_type): Update.
10784 (arch_complex_type): Don't declare.
10785 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10786 Make name if none given. Use alloc_type_copy. Look for cached
10787 complex type.
10788 (arch_complex_type): Remove.
10789 (gdbtypes_post_init): Use init_complex_type.
10790 * f-lang.c (build_fortran_types): Use init_complex_type.
10791 * dwarf2/read.c (read_base_type): Update.
10792 * d-lang.c (build_d_types): Use init_complex_type.
10793 * ctfread.c (read_base_type): Update.
10794
10795 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10796
10797 * infrun.c (stop_all_threads): Update assertion, plus when
10798 stopping threads, take into account that we might be trying
10799 to stop an all-stop target.
10800 (stop_waiting): Call 'stop_all_threads' if there exists a
10801 non-stop target.
10802
10803 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10804
10805 * target.h (exists_non_stop_target): New function declaration.
10806 * target.c (exists_non_stop_target): New function.
10807
10808 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10809
10810 PR gdb/24789
10811 * eval.c (is_integral_or_integral_reference): New function.
10812 (evaluate_subexp_standard): Allow integer references in
10813 pointer arithmetic.
10814
10815 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10816
10817 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10818 check for no ptid in the stop reply when the target is non-stop.
10819
10820 2020-04-01 Tom Tromey <tromey@adacore.com>
10821
10822 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10823 "name" parameter to rvalue reference. Initialize m_name_holder.
10824 <lookup_name_info>: New overloads.
10825 <name>: Return gdb::string_view.
10826 <c_str>: New method.
10827 <make_ignore_params>: Update.
10828 <search_name_hash>: Update.
10829 <language_lookup_name>: Return const char *.
10830 <m_name>: Change type.
10831 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10832 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10833 (lookup_name_info::match_any): Update.
10834 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10835 Update.
10836 * minsyms.c (linkage_name_str): Update.
10837 * language.c (default_symbol_name_matcher): Update.
10838 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10839 Update.
10840 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10841 (ada_lookup_name_info::ada_lookup_name_info): Update.
10842 (literal_symbol_name_matcher): Update.
10843
10844 2020-04-01 Tom Tromey <tromey@adacore.com>
10845
10846 * psymtab.c (psymtab_search_name): Remove function.
10847 (psym_lookup_symbol): Create search name and lookup name here.
10848 (lookup_partial_symbol): Remove "name" parameter; add
10849 lookup_name.
10850 (psym_expand_symtabs_for_function): Update.
10851
10852 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10853
10854 PR tui/25597:
10855 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10856
10857 2020-03-31 Tom Tromey <tromey@adacore.com>
10858
10859 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10860 memcpy.
10861
10862 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10863
10864 * features/riscv/32bit-csr.xml: Regenerated.
10865 * features/riscv/64bit-csr.xml: Regenerated.
10866
10867 2020-03-30 Tom Tromey <tromey@adacore.com>
10868
10869 * ada-valprint.c (print_variant_part): Update.
10870 * ada-lang.h (ada_which_variant_applies): Update.
10871 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10872 outer_valaddr parameters; replace with "outer" value parameter.
10873 (to_fixed_variant_branch_type): Update.
10874
10875 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10876
10877 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10878 <list>. Remove inclusion of observable.h.
10879 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10880 (struct arch_lwp_info): New struct.
10881 (class ppc_linux_dreg_interface): New class.
10882 (struct ppc_linux_process_info): New struct.
10883 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10884 <low_new_clone, low_forget_process, low_prepare_to_resume>
10885 <copy_thread_dreg_state, mark_thread_stale>
10886 <mark_debug_registers_changed, register_hw_breakpoint>
10887 <clear_hw_breakpoint, register_wp, clear_wp>
10888 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10889 <num_memory_accesses, get_trigger_type>
10890 <create_watchpoint_request, hwdebug_point_cmp>
10891 <init_arch_lwp_info, get_arch_lwp_info>
10892 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10893 methods.
10894 <struct ptid_hash>: New inner struct.
10895 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10896 members.
10897 (saved_dabr_value, hwdebug_info, max_slots_number)
10898 (struct hw_break_tuple, struct thread_points, ppc_threads)
10899 (have_ptrace_hwdebug_interface)
10900 (hwdebug_find_thread_points_by_tid)
10901 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10902 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10903 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10904 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10905 use m_dreg_interface.
10906 (hwdebug_point_cmp): Change to...
10907 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10908 reference arguments instead of pointers.
10909 (ppc_linux_nat_target::ranged_break_num_registers): Use
10910 m_dreg_interface.
10911 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10912 m_dreg_interface. Call register_hw_breakpoint.
10913 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10914 m_dreg_interface. Call clear_hw_breakpoint.
10915 (get_trigger_type): Change to...
10916 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10917 comment.
10918 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10919 use m_dreg_interface. Call register_hw_breakpoint.
10920 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10921 use m_dreg_interface. Call clear_hw_breakpoint.
10922 (can_use_watchpoint_cond_accel): Change to...
10923 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10924 method. Update comment, use m_dreg_interface and
10925 m_process_info.
10926 (calculate_dvc): Change to...
10927 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10928 m_dreg_interface.
10929 (num_memory_accesses): Change to...
10930 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10931 (check_condition): Change to...
10932 (ppc_linux_nat_target::check_condition): ...this method.
10933 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10934 comment, use m_dreg_interface.
10935 (create_watchpoint_request): Change to...
10936 (ppc_linux_nat_target::create_watchpoint_request): ...this
10937 method. Use m_dreg_interface.
10938 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10939 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10940 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10941 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10942 (ppc_linux_nat_target::low_forget_process)
10943 (ppc_linux_nat_target::low_new_fork)
10944 (ppc_linux_nat_target::low_new_clone)
10945 (ppc_linux_nat_target::low_delete_thread)
10946 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10947 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10948 only call mark_thread_stale.
10949 (ppc_linux_thread_exit): Remove.
10950 (ppc_linux_nat_target::stopped_data_address): Change to...
10951 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10952 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10953 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10954 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10955 comment. Call low_stopped_data_address.
10956 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10957 m_dreg_interface.
10958 (ppc_linux_nat_target::masked_watch_num_registers): Use
10959 m_dreg_interface.
10960 (ppc_linux_nat_target::copy_thread_dreg_state)
10961 (ppc_linux_nat_target::mark_thread_stale)
10962 (ppc_linux_nat_target::mark_debug_registers_changed)
10963 (ppc_linux_nat_target::register_hw_breakpoint)
10964 (ppc_linux_nat_target::clear_hw_breakpoint)
10965 (ppc_linux_nat_target::register_wp)
10966 (ppc_linux_nat_target::clear_wp)
10967 (ppc_linux_nat_target::init_arch_lwp_info)
10968 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10969 (_initialize_ppc_linux_nat): Remove observer callback.
10970
10971 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10972
10973 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10974 (ppc_linux_nat_target::auxv_parse)
10975 (ppc_linux_nat_target::read_description)
10976 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10977 Move up.
10978
10979 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10980
10981 * linux-nat.h (low_new_clone): New method.
10982 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10983
10984 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10985
10986 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10987 (dbx_expand_psymtab): ... this.
10988 (start_psymtab): Update.
10989 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10990 (mdebug_expand_psymtab): ... this.
10991 (parse_partial_symbols): Update.
10992 (new_psymtab): Update.
10993 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10994 (xcoff_expand_psymtab): ... this.
10995 (xcoff_start_psymtab): Update.
10996
10997 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10998
10999 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
11000 <expand_dependencies>: ... this.
11001 * psymtab.c (partial_symtab::read_dependencies): Rename to...
11002 (partial_symtab::expand_dependencies): ... this.
11003 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
11004 Update.
11005 (dwarf2_psymtab::expand_psymtab): Update.
11006 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11007 * mdebugread.c (psymtab_to_symtab_1): Update.
11008 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11009
11010 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11011
11012 * psympriv.h (discard_psymtab): Remove.
11013 * dbxread.c (dbx_end_psymtab): Update.
11014 * xcoffread.c (xcoff_end_psymtab): Update.
11015
11016 2020-03-28 Tom Tromey <tom@tromey.com>
11017
11018 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11019 comment.
11020
11021 2020-03-28 Tom Tromey <tom@tromey.com>
11022
11023 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11024
11025 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11026
11027 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11028
11029 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11030
11031 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11032
11033 2020-03-26 Tom Tromey <tom@tromey.com>
11034
11035 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11036 (mark_common_block_symbol_computed, read_tag_string_type)
11037 (attr_to_dynamic_prop, read_subrange_type): Update.
11038 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11039 to be methods on struct attribute.
11040 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11041 (read_call_site_scope, partial_die_info::read)
11042 (partial_die_info::read, lookup_die_type, follow_die_ref):
11043 Update.
11044 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11045 from dwarf2_get_ref_die_offset.
11046 (attribute::constant_value): New method, from
11047 dwarf2_get_attr_constant_value.
11048 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11049 Declare method.
11050 <constant_value>: New method.
11051
11052 2020-03-26 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11055 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11056 (dwarf_type_encoding_name): Move to stringify.c.
11057 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11058 * dwarf2/stringify.c: New file.
11059 * dwarf2/stringify.h: New file.
11060
11061 2020-03-26 Tom Tromey <tom@tromey.com>
11062
11063 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11064 Rewrite.
11065
11066 2020-03-26 Tom Tromey <tom@tromey.com>
11067
11068 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11069 methods.
11070 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11071 (lookup_ranges_base): Likewise.
11072 (read_cutu_die_from_dwo, read_full_die_1): Update.
11073
11074 2020-03-26 Tom Tromey <tom@tromey.com>
11075
11076 * dwarf2/read.c (read_import_statement, read_file_scope)
11077 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11078 (read_lexical_block_scope, read_call_site_scope)
11079 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11080 (handle_struct_member_die, process_structure_scope)
11081 (update_enumeration_type_from_children)
11082 (process_enumeration_scope, read_array_type, read_common_block)
11083 (read_namespace, read_module, read_subroutine_type): Update.
11084 (sibling_die): Remove.
11085
11086 2020-03-26 Tom Tromey <tom@tromey.com>
11087
11088 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11089 (build_type_psymtabs_reader, read_structure_type)
11090 (read_enumeration_type, read_full_die_1): Update.
11091 (dwarf2_attr_no_follow): Move to die.h.
11092 * dwarf2/die.h (struct die_info) <attr>: New method.
11093
11094 2020-03-26 Tom Tromey <tom@tromey.com>
11095
11096 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11097 <base_address>: Now an optional.
11098 (dwarf2_find_base_address, dwarf2_rnglists_process)
11099 (dwarf2_ranges_process, fill_in_loclist_baton)
11100 (dwarf2_symbol_mark_computed): Update.
11101
11102 2020-03-26 Tom Tromey <tom@tromey.com>
11103
11104 * dwarf2/read.c (struct die_info): Move to die.h.
11105 * dwarf2/die.h: New file.
11106
11107 2020-03-26 Tom Tromey <tom@tromey.com>
11108
11109 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11110 * dwarf2/read.c
11111 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11112 Move to line-header.c.
11113 (read_checked_initial_length_and_offset, read_formatted_entries):
11114 Likewise.
11115 (dwarf_decode_line_header): Split into two.
11116 * dwarf2/line-header.c
11117 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11118 Move from read.c.
11119 (read_checked_initial_length_and_offset, read_formatted_entries):
11120 Likewise.
11121 (dwarf_decode_line_header): New function, split from read.c.
11122
11123 2020-03-26 Tom Tromey <tom@tromey.com>
11124
11125 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11126 Declare method.
11127 * dwarf2/read.c (read_attribute_value): Update.
11128 (dwarf2_per_objfile::read_line_string): Rename from
11129 read_indirect_line_string.
11130 (read_formatted_entries): Update.
11131
11132 2020-03-26 Tom Tromey <tom@tromey.com>
11133
11134 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11135 variable.
11136
11137 2020-03-26 Tom Tromey <tom@tromey.com>
11138
11139 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11140 const.
11141 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11142 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11143 parameter const.
11144
11145 2020-03-26 Tom Tromey <tom@tromey.com>
11146
11147 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11148 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11149 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11150 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11151
11152 2020-03-26 Tom Tromey <tom@tromey.com>
11153
11154 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11155 file_names_size, file_full_name, file_file_name>: Use const.
11156 <file_name_at, file_names>: Add const overload.
11157 * dwarf2/line-header.c (line_header::file_file_name)
11158 (line_header::file_full_name): Update.
11159
11160 2020-03-26 Tom Tromey <tom@tromey.com>
11161
11162 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11163 (macro_start_file, consume_improper_spaces)
11164 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11165 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11166 (dwarf_decode_macros): Move to macro.c.
11167 * dwarf2/macro.c: New file.
11168 * dwarf2/macro.h: New file.
11169 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11170
11171 2020-03-26 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11174 method.
11175 * dwarf2/section.c: New method. From
11176 read_indirect_string_at_offset_from.
11177 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11178 (read_indirect_string_at_offset_from): Move to section.c.
11179 (read_indirect_string_at_offset): Rewrite.
11180 (read_indirect_line_string_at_offset): Remove.
11181 (read_indirect_string, read_indirect_line_string)
11182 (dwarf_decode_macro_bytes): Update.
11183
11184 2020-03-26 Tom Tromey <tom@tromey.com>
11185
11186 * dwarf2/section.h (struct dwarf2_section_info)
11187 <overload_complaint>: Declare.
11188 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11189 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11190 Rename from dwarf2_section_buffer_overflow_complaint.
11191 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11192 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11193
11194 2020-03-26 Tom Tromey <tom@tromey.com>
11195
11196 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11197 Declare.
11198 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11199 Move from read.c.
11200 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11201 to section.c.
11202
11203 2020-03-26 Tom Tromey <tom@tromey.com>
11204
11205 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11206
11207 2020-03-26 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11210 "builder".
11211 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11212 parameter.
11213 (dwarf_decode_macros): Update.
11214
11215 2020-03-26 Tom Tromey <tom@tromey.com>
11216
11217 * dwarf2/read.c (read_attribute_value): Update.
11218 (read_indirect_string_from_dwz): Move to dwz.c; change into
11219 method.
11220 (dwarf_decode_macro_bytes): Update.
11221 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11222 * dwarf2/dwz.c: New file.
11223 * Makefile.in (COMMON_SFILES): Add dwz.c.
11224
11225 2020-03-26 Tom Tromey <tom@tromey.com>
11226
11227 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11228 * dwarf2/read.c: Add include.
11229 * dwarf2/index-write.c: Add include.
11230 * dwarf2/index-cache.c: Add include.
11231 * dwarf2/dwz.h: New file.
11232
11233 2020-03-25 Tom Tromey <tom@tromey.com>
11234
11235 * compile/compile-object-load.c (get_out_value_type): Mention
11236 correct symbol name in error message.
11237
11238 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11239
11240 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11241
11242 2020-03-25 Tom de Vries <tdevries@suse.de>
11243
11244 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11245 * symmisc.c (dump_symtab_1): Print user and includes fields.
11246 (maintenance_info_symtabs): Same.
11247
11248 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11249
11250 PR gdb/25534
11251 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11252 (riscv_regcache_cooked_write): New function.
11253 (riscv_push_dummy_call): Use new function.
11254 (riscv_return_value): Likewise.
11255
11256 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11257
11258 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11259 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11260 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11261 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11262 * infrun.c (follow_fork): Likewise.
11263 (follow_fork_inferior): Likewise.
11264 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11265 * linux-nat.h (class linux_nat_target): Likewise.
11266 * remote.c (class remote_target) <follow_fork>: Likewise.
11267 (remote_target::follow_fork): Likewise.
11268 * target-delegates.c: Re-generate.
11269 * target.c (default_follow_fork): Likewise.
11270 (target_follow_fork): Likewise.
11271 * target.h (struct target_ops) <follow_fork>: Likewise.
11272 (target_follow_fork): Likewise.
11273
11274 2020-03-24 Tom de Vries <tdevries@suse.de>
11275
11276 * psymtab.c (maintenance_info_psymtabs): Print user field.
11277
11278 2020-03-20 Tom Tromey <tromey@adacore.com>
11279
11280 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11281 const.
11282 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11283 const.
11284
11285 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11286
11287 * ptrace.m4: Don't check for ptrace declaration.
11288 * config.in: Re-generate.
11289 * configure: Re-generate.
11290 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11291 not defined.
11292
11293 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11294
11295 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11296 `PTRACE_TYPE_RET'.
11297 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11298 * sparc-nat.c (gdb_ptrace): Likewise.
11299 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11300
11301 2020-03-20 Tom Tromey <tromey@adacore.com>
11302
11303 * c-exp.y (lex_one_token): Fix assert.
11304
11305 2020-03-20 Tom Tromey <tromey@adacore.com>
11306
11307 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11308 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11309 strncpy call.
11310
11311 2020-03-20 Tom Tromey <tromey@adacore.com>
11312
11313 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11314
11315 2020-03-20 Tom Tromey <tromey@adacore.com>
11316
11317 * ada-valprint.c (print_variant_part): Remove parameters; switch
11318 to value-based API.
11319 (print_field_values): Likewise.
11320 (ada_val_print_struct_union): Likewise.
11321 (ada_value_print_1): Update.
11322
11323 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11324
11325 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11326 nbsd_nat_target instead of inf_ptrace_target.
11327 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11328 nbsd_nat_target.
11329
11330 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11331
11332 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11333 it to the ptrace call.
11334 * (store_registers): Likewise.
11335
11336 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11337
11338 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11339 it to the ptrace call.
11340 * (store_registers): Likewise.
11341
11342 2020-03-19 Luis Machado <luis.machado@linaro.org>
11343
11344 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11345 valid, fetch vg value from ptrace.
11346
11347 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11348 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11349 * inf-ptrace.c: Likewise.
11350 * (gdb_ptrace): Add.
11351 * (inf_ptrace_target::resume): Update.
11352 * (inf_ptrace_target::xfer_partial): Likewise.
11353 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11354 * (inf_ptrace_peek_poke): Update.
11355
11356 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11357
11358 * x86-bsd-nat.c (gdb_ptrace): New.
11359 * (x86bsd_dr_set): Add new argument `ptid'.
11360 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11361 x86bsd_dr_set_addr): Update.
11362
11363 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11364
11365 * remote.c (remote_target::process_stop_reply): Handle events for
11366 all threads differently.
11367
11368 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11369
11370 * completer.c (completion_tracker::remove_completion): Define new
11371 function.
11372 * completer.h (completion_tracker::remove_completion): Declare new
11373 function.
11374 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11375 when adding a C++ function symbol.
11376
11377 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11378
11379 * completer.c (completion_tracker::completion_hash_entry): Define
11380 new class.
11381 (advance_to_filename_complete_word_point): Call
11382 recompute_lowest_common_denominator.
11383 (completion_tracker::completion_tracker): Call discard_completions
11384 to setup the hash table.
11385 (completion_tracker::discard_completions): Allow for being called
11386 from the constructor, pass new equal function, and element deleter
11387 when constructing the hash table. Initialise new class member
11388 variables.
11389 (completion_tracker::maybe_add_completion): Remove use of
11390 m_entries_vec, and store more information into m_entries_hash.
11391 (completion_tracker::recompute_lcd_visitor): New function, most
11392 content taken from...
11393 (completion_tracker::recompute_lowest_common_denominator):
11394 ...here, this now just visits each item in the hash calling the
11395 above visitor.
11396 (completion_tracker::build_completion_result): Remove use of
11397 m_entries_vec, call recompute_lowest_common_denominator.
11398 * completer.h (completion_tracker::have_completions): Remove use
11399 of m_entries_vec.
11400 (completion_tracker::completion_hash_entry): Declare new class.
11401 (completion_tracker::recompute_lowest_common_denominator): Change
11402 function signature.
11403 (completion_tracker::recompute_lcd_visitor): Declare new function.
11404 (completion_tracker::m_entries_vec): Delete.
11405 (completion_tracker::m_entries_hash): Initialize to NULL.
11406 (completion_tracker::m_lowest_common_denominator_valid): New
11407 member variable.
11408 (completion_tracker::m_lowest_common_denominator_max_length): New
11409 member variable.
11410
11411 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11412
11413 * regformats/regdef.h: Put reg in gdb namespace.
11414
11415 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11416
11417 * i386-bsd-nat.c (gdb_ptrace): New.
11418 * (i386bsd_fetch_inferior_registers,
11419 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11420 * (i386bsd_fetch_inferior_registers,
11421 i386bsd_store_inferior_registers) Use gdb_ptrace.
11422
11423 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11424
11425 * amd64-bsd-nat.c (gdb_ptrace): New.
11426 * (amd64bsd_fetch_inferior_registers,
11427 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11428 * (amd64bsd_fetch_inferior_registers,
11429 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11430
11431 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11432
11433 * user-regs.c (user_reg::read): Rename to...
11434 (user_reg::xread): ...this.
11435 * (append_user_reg): Rename argument `read' to `xread'.
11436 * (user_reg_add_builtin): Likewise.
11437 * (user_reg_add): Likewise.
11438 * (value_of_user_reg): Likewise.
11439
11440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11441
11442 * sparc-nat.c (gdb_ptrace): New.
11443 * sparc-nat.c (sparc_fetch_inferior_registers)
11444 (sparc_store_inferior_registers) Remove obsolete comment.
11445 * sparc-nat.c (sparc_fetch_inferior_registers)
11446 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11447 * sparc-nat.c (sparc_fetch_inferior_registers)
11448 (sparc_store_inferior_registers) Use gdb_ptrace.
11449
11450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11451
11452 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11453 it to the ptrace call.
11454 * sh-nbsd-nat.c (store_registers): Likewise.
11455
11456 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11457
11458 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11459 nbsd_nat_target instead of inf_ptrace_target.
11460 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11461 nbsd_nat_target.
11462
11463 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11464
11465 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11466
11467 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11468
11469 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11470 <sys/sysctl.h>.
11471 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11472
11473 2020-03-17 Tom de Vries <tdevries@suse.de>
11474
11475 PR gdb/23710
11476 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11477 fields.
11478 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11479 fields.
11480 (process_imported_unit_die): Skip import of c++ CUs.
11481
11482 2020-03-16 Tom Tromey <tom@tromey.com>
11483
11484 * p-valprint.c (pascal_object_print_value): Initialize
11485 base_value.
11486
11487 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11488 Shahab Vahedi <shahab@synopsys.com>
11489
11490 * Makefile.in: Add arch/arc.o
11491 * configure.tgt: Likewise.
11492 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11493 (_initialize_arc_tdep): Don't initialize old target descriptions.
11494 (arc_read_description): New function to cache target descriptions.
11495 * arc-tdep.h (arc_read_description): Add proto type.
11496 * arch/arc.c: New file.
11497 * arch/arc.h: Likewise.
11498 * features/Makefile: Replace old target descriptions with new.
11499 * features/arc-arcompact.c: Remove.
11500 * features/arc-arcompact.xml: Likewise.
11501 * features/arc-v2.c: Likewise
11502 * features/arc-v2.xml: Likewise
11503 * features/arc/aux-arcompact.xml: New file.
11504 * features/arc/aux-v2.xml: Likewise.
11505 * features/arc/core-arcompact.xml: Likewise.
11506 * features/arc/core-v2.xml: Likewise.
11507 * features/arc/aux-arcompact.c: Generate.
11508 * features/arc/aux-v2.c: Likewise.
11509 * features/arc/core-arcompact.c: Likewise.
11510 * features/arc/core-v2.c: Likewise.
11511 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11512
11513 2020-03-16 Tom Tromey <tromey@adacore.com>
11514
11515 PR gdb/25663:
11516 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11517 putting value into bcache.
11518
11519 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11520
11521 PR gdb/21500
11522 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11523 to...
11524 (amd64_windows_init_abi_common): ... this. Don't set size of
11525 long type.
11526 (amd64_windows_init_abi): New function.
11527 (amd64_cygwin_init_abi): New function.
11528 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11529 the Cygwin OS ABI.
11530 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11531 comment.
11532
11533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11534
11535 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11536 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11537 (pe_import_directory_entry): New struct type.
11538 (is_linked_with_cygwin_dll): New function.
11539 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11540 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11541 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11542
11543 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11544
11545 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11546 i386_cygwin_core_osabi_sniffer.
11547
11548 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11549
11550 * i386-cygwin-tdep.c: Rename to...
11551 * i386-windows-tdep.c: ... this.
11552 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11553 i386-windows-tdep.c.
11554 * configure.tgt: Likewise.
11555
11556 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11557
11558 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11559 * osabi.c (gdb_osabi_names): Add "Windows".
11560 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11561 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11562 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11563 i386_cygwin_osabi_sniffer.
11564 (_initialize_i386_cygwin_tdep): Register OS ABI
11565 GDB_OSABI_WINDOWS for i386.
11566 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11567 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11568 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11569 for x86-64.
11570 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11571 when the target matches '*-*-mingw*'.
11572
11573 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11574
11575 * defs.h (enum gdb_osabi): Move to...
11576 * osabi.h (enum gdb_osabi): ... here.
11577 * gdbarch.sh: Include osabi.h in gdbarch.h.
11578 * gdbarch.h: Re-generate.
11579
11580 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11581
11582 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11583 function.
11584 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11585
11586 2020-03-14 Tom Tromey <tom@tromey.com>
11587
11588 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11589 for C++.
11590 (c_type_print_modifier): Likewise. Add "language" parameter.
11591 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11592 (c_type_print_base_1): Update.
11593 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11594 constants.
11595 * type-stack.c (type_stack::insert): Handle tp_atomic and
11596 tp_restrict.
11597 (type_stack::follow_type_instance_flags): Likewise.
11598 (type_stack::follow_types): Likewise. Merge type-following code.
11599 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11600 (space_identifier, cv_with_space_id)
11601 (const_or_volatile_or_space_identifier_noopt)
11602 (const_or_volatile_or_space_identifier): Remove.
11603 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11604 rules.
11605 (ptr_operator, typebase): Update.
11606 (enum token_flag) <FLAG_C>: New constant.
11607 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11608 "_Atomic".
11609 (lex_one_token): Handle FLAG_C.
11610
11611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11612
11613 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11614 it to the ptrace call.
11615 * m68k-bsd-nat.c (store_registers): Likewise.
11616
11617 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11618
11619 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11620 gdb_byte *.
11621 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11622 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11623 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11624
11625 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11626
11627 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11628 nbsd_nat_target instead of inf_ptrace_target.
11629 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11630 nbsd_nat_target.
11631
11632 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11633
11634 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11635 register_t.
11636
11637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11638
11639 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11640 it to the ptrace call.
11641 * alpha-bsd-nat.c (store_registers): Likewise.
11642
11643 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11644
11645 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11646 includes.
11647 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11648 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11649 fill_fpregset): Likewise.
11650
11651 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11652
11653 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11654 nbsd_nat_target instead of inf_ptrace_target.
11655 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11656 nbsd_nat_target.
11657
11658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11659
11660 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11661 register_t.
11662
11663 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11664
11665 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11666 it to the ptrace call.
11667 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11668 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11669 * arm-nbsd-nat.c (store_register): Likewise.
11670 * arm-nbsd-nat.c (store_regs): Likewise.
11671 * arm-nbsd-nat.c (store_fp_register): Likewise.
11672 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11673
11674 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11675
11676 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11677 nbsd_nat_target instead of inf_ptrace_target.
11678 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11679 nbsd_nat_target.
11680
11681 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11682
11683 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11684 it to the ptrace call.
11685 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11686
11687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11688
11689 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11690 it to the ptrace call.
11691 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11692
11693 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11694
11695 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11696 gdb_byte *.
11697 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11698
11699 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11700
11701 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11702 instead of inf_ptrace_target.
11703 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11704 nbsd_nat_target.
11705
11706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11707
11708 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11709 register_t.
11710
11711 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11712
11713 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11714 register_t.
11715
11716 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11717
11718 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11719 register_t.
11720
11721 2020-03-13 Tom Tromey <tom@tromey.com>
11722
11723 * value.h (val_print): Don't declare.
11724 * valprint.h (val_print_array_elements)
11725 (val_print_scalar_formatted, generic_val_print): Don't declare.
11726 * valprint.c (generic_val_print_array): Take a struct value.
11727 (generic_val_print_ptr, generic_val_print_memberptr)
11728 (generic_val_print_bool, generic_val_print_int)
11729 (generic_val_print_char, generic_val_print_complex)
11730 (generic_val_print): Remove.
11731 (generic_value_print): Update.
11732 (do_val_print): Remove unused parameters. Don't call
11733 la_val_print.
11734 (val_print): Remove.
11735 (common_val_print): Update. Don't call value_check_printable.
11736 (val_print_scalar_formatted, val_print_array_elements): Remove.
11737 * rust-lang.c (rust_val_print): Remove.
11738 (rust_language_defn): Update.
11739 * p-valprint.c (pascal_val_print): Remove.
11740 (pascal_value_print_inner): Update.
11741 (pascal_object_print_val_fields, pascal_object_print_val):
11742 Remove.
11743 (pascal_object_print_static_field): Update.
11744 * p-lang.h (pascal_val_print): Don't declare.
11745 * p-lang.c (pascal_language_defn): Update.
11746 * opencl-lang.c (opencl_language_defn): Update.
11747 * objc-lang.c (objc_language_defn): Update.
11748 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11749 * m2-lang.h (m2_val_print): Don't declare.
11750 * m2-lang.c (m2_language_defn): Update.
11751 * language.h (struct language_defn) <la_val_print>: Remove.
11752 * language.c (unk_lang_value_print_inner): Rename. Change
11753 argument types.
11754 (unknown_language_defn, auto_language_defn): Update.
11755 * go-valprint.c (go_val_print): Remove.
11756 * go-lang.h (go_val_print): Don't declare.
11757 * go-lang.c (go_language_defn): Update.
11758 * f-valprint.c (f_val_print): Remove.
11759 * f-lang.h (f_value_print): Don't declare.
11760 * f-lang.c (f_language_defn): Update.
11761 * d-valprint.c (d_val_print): Remove.
11762 * d-lang.h (d_value_print): Don't declare.
11763 * d-lang.c (d_language_defn): Update.
11764 * cp-valprint.c (cp_print_value_fields)
11765 (cp_print_value_fields_rtti, cp_print_value): Remove.
11766 (cp_print_static_field): Update.
11767 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11768 (c_val_print_struct, c_val_print_union, c_val_print_int)
11769 (c_val_print_memberptr, c_val_print): Remove.
11770 * c-lang.h (c_val_print_array, cp_print_value_fields)
11771 (cp_print_value_fields_rtti): Don't declare.
11772 * c-lang.c (c_language_defn, cplus_language_defn)
11773 (asm_language_defn, minimal_language_defn): Update.
11774 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11775 (ada_val_print_enum): Take a struct value.
11776 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11777 (ada_val_print): Remove.
11778 (ada_value_print_1): Update.
11779 (printable_val_type): Remove.
11780 * ada-lang.h (ada_val_print): Don't declare.
11781 * ada-lang.c (ada_language_defn): Update.
11782
11783 2020-03-13 Tom Tromey <tom@tromey.com>
11784
11785 * valprint.c (do_val_print): Update.
11786 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11787 a struct value.
11788 (value_to_value_object_no_release): Declare.
11789 * python/py-value.c (value_to_value_object_no_release): New
11790 function.
11791 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11792 struct value.
11793 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11794 function.
11795 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11796 a struct value.
11797 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11798 Declare.
11799 (gdbscm_apply_val_pretty_printer): Take a struct value.
11800 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11801 value.
11802 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11803 value.
11804 * extension-priv.h (struct extension_language_ops)
11805 <apply_val_pretty_printer>: Take a struct value.
11806 * cp-valprint.c (cp_print_value): Create a struct value.
11807 (cp_print_value): Update.
11808
11809 2020-03-13 Tom Tromey <tom@tromey.com>
11810
11811 * ada-valprint.c (print_field_values): Call common_val_print.
11812
11813 2020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * ada-valprint.c (val_print_packed_array_elements): Remove
11816 bitoffset and val parameters. Call common_val_print.
11817 (ada_val_print_string): Remove offset, address, and original_value
11818 parameters.
11819 (ada_val_print_array): Update.
11820 (ada_value_print_array): New function.
11821 (ada_value_print_1): Call it.
11822
11823 2020-03-13 Tom Tromey <tom@tromey.com>
11824
11825 * ada-valprint.c (ada_value_print): Use common_val_print.
11826
11827 2020-03-13 Tom Tromey <tom@tromey.com>
11828
11829 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11830
11831 2020-03-13 Tom Tromey <tom@tromey.com>
11832
11833 * ada-valprint.c (ada_value_print_num): New function.
11834 (ada_value_print_1): Use it.
11835
11836 2020-03-13 Tom Tromey <tom@tromey.com>
11837
11838 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11839
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11841
11842 * ada-valprint.c (ada_value_print_ptr): New function.
11843 (ada_value_print_1): Use it.
11844
11845 2020-03-13 Tom Tromey <tom@tromey.com>
11846
11847 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11848 call common_val_print.
11849 (ada_val_print_1): Update.
11850 (ada_value_print_1): New function.
11851 (ada_value_print_inner): Rewrite.
11852
11853 2020-03-13 Tom Tromey <tom@tromey.com>
11854
11855 * cp-valprint.c (cp_print_value_fields): Update.
11856 (cp_print_value): New function.
11857
11858 2020-03-13 Tom Tromey <tom@tromey.com>
11859
11860 * m2-valprint.c (m2_value_print_inner): Use
11861 cp_print_value_fields.
11862 * cp-valprint.c (cp_print_value_fields): New function.
11863 * c-valprint.c (c_value_print_struct): New function.
11864 (c_value_print_inner): Use c_value_print_struct.
11865 * c-lang.h (cp_print_value_fields): Declare.
11866
11867 2020-03-13 Tom Tromey <tom@tromey.com>
11868
11869 * c-valprint.c (c_value_print_array): New function.
11870 (c_value_print_inner): Use it.
11871
11872 2020-03-13 Tom Tromey <tom@tromey.com>
11873
11874 * c-valprint.c (c_value_print_memberptr): New function.
11875 (c_value_print_inner): Use it.
11876
11877 2020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * c-valprint.c (c_value_print_int): New function.
11880 (c_value_print_inner): Use it.
11881
11882 2020-03-13 Tom Tromey <tom@tromey.com>
11883
11884 * c-valprint.c (c_value_print_ptr): New function.
11885 (c_value_print_inner): Use it.
11886
11887 2020-03-13 Tom Tromey <tom@tromey.com>
11888
11889 * c-valprint.c (c_value_print_inner): Rewrite.
11890
11891 2020-03-13 Tom Tromey <tom@tromey.com>
11892
11893 * valprint.c (generic_value_print_complex): New function.
11894 (generic_value_print): Use it.
11895
11896 2020-03-13 Tom Tromey <tom@tromey.com>
11897
11898 * valprint.c (generic_val_print_float): Don't call
11899 val_print_scalar_formatted.
11900 (generic_val_print, generic_value_print): Update.
11901
11902 2020-03-13 Tom Tromey <tom@tromey.com>
11903
11904 * valprint.c (generic_value_print_char): New function
11905 (generic_value_print): Use it.
11906
11907 2020-03-13 Tom Tromey <tom@tromey.com>
11908
11909 * valprint.c (generic_value_print_int): New function.
11910 (generic_value_print): Use it.
11911
11912 2020-03-13 Tom Tromey <tom@tromey.com>
11913
11914 * valprint.c (generic_value_print_bool): New function.
11915 (generic_value_print): Use it.
11916
11917 2020-03-13 Tom Tromey <tom@tromey.com>
11918
11919 * valprint.c (generic_val_print_func): Simplify.
11920 (generic_val_print, generic_value_print): Update.
11921
11922 2020-03-13 Tom Tromey <tom@tromey.com>
11923
11924 * valprint.c (generic_val_print_flags): Remove.
11925 (generic_val_print, generic_value_print): Update.
11926 (val_print_type_code_flags): Add original_value parameter.
11927
11928 2020-03-13 Tom Tromey <tom@tromey.com>
11929
11930 * valprint.c (generic_val_print): Update.
11931 (generic_value_print): Update.
11932 * valprint.c (generic_val_print_enum): Don't call
11933 val_print_scalar_formatted.
11934
11935 2020-03-13 Tom Tromey <tom@tromey.com>
11936
11937 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11938 * valprint.c (generic_value_print_ptr): New function.
11939
11940 2020-03-13 Tom Tromey <tom@tromey.com>
11941
11942 * valprint.c (generic_value_print): Rewrite.
11943
11944 2020-03-13 Tom Tromey <tom@tromey.com>
11945
11946 * p-valprint.c (pascal_object_print_value_fields)
11947 (pascal_object_print_value): New functions.
11948
11949 2020-03-13 Tom Tromey <tom@tromey.com>
11950
11951 * p-valprint.c (pascal_value_print_inner): Rewrite.
11952
11953 2020-03-13 Tom Tromey <tom@tromey.com>
11954
11955 * f-valprint.c (f_value_print_innner): Rewrite.
11956
11957 2020-03-13 Tom Tromey <tom@tromey.com>
11958
11959 * m2-valprint.c (m2_print_unbounded_array): New overload.
11960 (m2_print_unbounded_array): Update.
11961 (m2_print_array_contents): Take a struct value.
11962 (m2_value_print_inner): Rewrite.
11963
11964 2020-03-13 Tom Tromey <tom@tromey.com>
11965
11966 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11967 (d_value_print_inner): New function.
11968 * d-lang.h (d_value_print_inner): Declare.
11969 * d-lang.c (d_language_defn): Use d_value_print_inner.
11970
11971 2020-03-13 Tom Tromey <tom@tromey.com>
11972
11973 * go-valprint.c (go_value_print_inner): New function.
11974 * go-lang.h (go_value_print_inner): Declare.
11975 * go-lang.c (go_language_defn): Use go_value_print_inner.
11976
11977 2020-03-13 Tom Tromey <tom@tromey.com>
11978
11979 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11980 API.
11981 (rust_val_print): Rewrite.
11982 (rust_value_print_inner): New function, from rust_val_print.
11983 (rust_language_defn): Use rust_value_print_inner.
11984
11985 2020-03-13 Tom Tromey <tom@tromey.com>
11986
11987 * ada-valprint.c (ada_value_print_inner): New function.
11988 * ada-lang.h (ada_value_print_inner): Declare.
11989 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11990
11991 2020-03-13 Tom Tromey <tom@tromey.com>
11992
11993 * f-valprint.c (f_value_print_innner): New function.
11994 * f-lang.h (f_value_print_innner): Declare.
11995 * f-lang.c (f_language_defn): Use f_value_print_innner.
11996
11997 2020-03-13 Tom Tromey <tom@tromey.com>
11998
11999 * p-valprint.c (pascal_value_print_inner): New function.
12000 * p-lang.h (pascal_value_print_inner): Declare.
12001 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
12002
12003 2020-03-13 Tom Tromey <tom@tromey.com>
12004
12005 * m2-valprint.c (m2_value_print_inner): New function.
12006 * m2-lang.h (m2_value_print_inner): Declare.
12007 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12012 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12013 * c-valprint.c (c_value_print_inner): New function.
12014 * c-lang.h (c_value_print_inner): Declare.
12015 * c-lang.c (c_language_defn, cplus_language_defn)
12016 (asm_language_defn, minimal_language_defn): Use
12017 c_value_print_inner.
12018
12019 2020-03-13 Tom Tromey <tom@tromey.com>
12020
12021 * p-valprint.c (pascal_object_print_value_fields): Now static.
12022 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12023
12024 2020-03-13 Tom Tromey <tom@tromey.com>
12025
12026 * c-valprint.c (c_val_print_array): Simplify.
12027
12028 2020-03-13 Tom Tromey <tom@tromey.com>
12029
12030 * valprint.c (value_print_array_elements): New function.
12031 * valprint.h (value_print_array_elements): Declare.
12032
12033 2020-03-13 Tom Tromey <tom@tromey.com>
12034
12035 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12036 * mips-tdep.c (mips_print_register): Use
12037 value_print_scalar_formatted.
12038
12039 2020-03-13 Tom Tromey <tom@tromey.com>
12040
12041 * valprint.h (value_print_scalar_formatted): Declare.
12042 * valprint.c (value_print_scalar_formatted): New function.
12043
12044 2020-03-13 Tom Tromey <tom@tromey.com>
12045
12046 * valprint.h (generic_value_print): Declare.
12047 * valprint.c (generic_value_print): New function.
12048
12049 2020-03-13 Tom Tromey <tom@tromey.com>
12050
12051 * valprint.c (do_val_print): Call la_value_print_inner, if
12052 available.
12053 * rust-lang.c (rust_language_defn): Update.
12054 * p-lang.c (pascal_language_defn): Update.
12055 * opencl-lang.c (opencl_language_defn): Update.
12056 * objc-lang.c (objc_language_defn): Update.
12057 * m2-lang.c (m2_language_defn): Update.
12058 * language.h (struct language_defn) <la_value_print_inner>: New
12059 member.
12060 * language.c (unknown_language_defn, auto_language_defn): Update.
12061 * go-lang.c (go_language_defn): Update.
12062 * f-lang.c (f_language_defn): Update.
12063 * d-lang.c (d_language_defn): Update.
12064 * c-lang.c (c_language_defn, cplus_language_defn)
12065 (asm_language_defn, minimal_language_defn): Update.
12066 * ada-lang.c (ada_language_defn): Update.
12067
12068 2020-03-13 Tom Tromey <tom@tromey.com>
12069
12070 * c-valprint.c (c_value_print): Use common_val_print.
12071
12072 2020-03-13 Tom Tromey <tom@tromey.com>
12073
12074 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12075
12076 2020-03-13 Tom Tromey <tom@tromey.com>
12077
12078 * f-valprint.c (f77_print_array_1, f_val_print): Use
12079 common_val_print.
12080
12081 2020-03-13 Tom Tromey <tom@tromey.com>
12082
12083 * riscv-tdep.c (riscv_print_one_register_info): Use
12084 common_val_print.
12085
12086 2020-03-13 Tom Tromey <tom@tromey.com>
12087
12088 * mi/mi-main.c (output_register): Use common_val_print.
12089
12090 2020-03-13 Tom Tromey <tom@tromey.com>
12091
12092 * infcmd.c (default_print_one_register_info): Use
12093 common_val_print.
12094
12095 2020-03-13 Tom Tromey <tom@tromey.com>
12096
12097 * valprint.h (common_val_print_checked): Declare.
12098 * valprint.c (common_val_print_checked): New function.
12099 * stack.c (print_frame_arg): Use common_val_print_checked.
12100
12101 2020-03-13 Tom Tromey <tom@tromey.com>
12102
12103 * valprint.c (do_val_print): New function, from val_print.
12104 (val_print): Use do_val_print.
12105 (common_val_print): Use do_val_print.
12106
12107 2020-03-13 Tom Tromey <tom@tromey.com>
12108
12109 * valprint.c (value_print): Use scoped_value_mark.
12110
12111 2020-03-13 Tom de Vries <tdevries@suse.de>
12112
12113 PR symtab/25646
12114 * psymtab.c (partial_symtab::partial_symtab): Don't set
12115 globals_offset and statics_offset. Push element onto
12116 current_global_psymbols and current_static_psymbols stacks.
12117 (concat): New function.
12118 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12119 element from current_global_psymbols and current_static_psymbols
12120 stacks. Concat popped elements to global_psymbols and
12121 static_symbols.
12122 (add_psymbol_to_list): Use current_global_psymbols and
12123 current_static_psymbols stacks.
12124 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12125 current_static_psymbols fields.
12126
12127 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12128
12129 * corelow.c (sniff_core_bfd): Remove.
12130 (class core_target) <m_core_vec>: Remove.
12131 (core_target::core_target): Update.
12132 (core_file_fns): Remove.
12133 (deprecated_add_core_fns): Remove.
12134 (default_core_sniffer): Remove.
12135 (sniff_core_bfd): Remove.
12136 (default_check_format): Remove.
12137 (gdb_check_format): Remove.
12138 (core_target_open): Update.
12139 (core_target::get_core_register_section): Update.
12140 (get_core_registers_cb): Update.
12141 (core_target::fetch_registers): Update.
12142 * gdbcore.h (struct core_fns): Remove.
12143 (deprecated_add_core_fns): Remove.
12144 (default_core_sniffer): Remove.
12145 (default_check_format): Remove.
12146
12147 2020-03-12 Tom Tromey <tom@tromey.com>
12148
12149 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12150 CORE_ADDR.
12151 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12152
12153 2020-03-12 Tom Tromey <tom@tromey.com>
12154
12155 * remote.c (remote_target::download_tracepoint)
12156 (remote_target::enable_tracepoint)
12157 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12158 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12159 sprintf_vma.
12160
12161 2020-03-12 Tom Tromey <tom@tromey.com>
12162
12163 * symfile-mem.c: Update CORE_ADDR size assert.
12164
12165 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12166
12167 * selftest.m4: Move to gdbsupport/.
12168 * acinclude.m4: Update path to selftest.m4.
12169
12170 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12171
12172 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12173 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12174 gdbarch-selfselftests.c and selftest-arch.c.
12175 (SUBDIR_UNITTESTS_OBS): Rename to...
12176 (SELFTESTS_OBS): ... this.
12177 (COMMON_SFILES): Remove disasm-selftests.c and
12178 gdbarch-selftests.c.
12179 * configure.ac: Don't add selftest-arch.{c,o} to
12180 CONFIG_{SRCS,OBS}.
12181 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12182 preprocessor conditions.
12183
12184 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12185
12186 * configure.ac: Don't source bfd/development.sh.
12187 * selftest.m4: Modify comment.
12188 * configure: Re-generate.
12189
12190 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12191
12192 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12193 not "true" or "false".
12194 * configure: Re-generate.
12195
12196 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12197
12198 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12199 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12200 renamed to arm_nbsd_supply_gregset.
12201 (fetch_register): Update to call arm_nbsd_supply_gregset.
12202 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12203 (arm_netbsd_nat_target::fetch_registers): Update.
12204 (fetch_elfcore_registers): Removed.
12205 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12206 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12207 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12208 not require NetBSD system headers.
12209 (arm_nbsd_regset): New struct.
12210 (arm_nbsd_iterate_over_regset_sections): New function.
12211 (arm_netbsd_init_abi_common): Updated to call
12212 set_gdbarch_iterate_over_regset_sections.
12213 * arm-nbsd-tdep.h: New file.
12214
12215 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12216
12217 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12218 recursion.
12219
12220 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12221
12222 * configure: Re-generate.
12223
12224 2020-03-11 Tom Tromey <tromey@adacore.com>
12225
12226 * ada-typeprint.c (print_choices): Fix comment.
12227
12228 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12231 previous item in the list, when the list has no items.
12232
12233 2020-03-11 Tom de Vries <tdevries@suse.de>
12234
12235 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12236 PROP_LOCLIST handling code.
12237
12238 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12239
12240 * buildsym-legacy.c (record_line): Pass extra parameter to
12241 record_line.
12242 * buildsym.c (buildsym_compunit::record_line): Take an extra
12243 parameter, reduce duplication in the line table, and record the
12244 is_stmt flag in the line table.
12245 * buildsym.h (buildsym_compunit::record_line): Add extra
12246 parameter.
12247 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12248 non-statement lines.
12249 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12250 this to the symtab builder.
12251 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12252 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12253 through to dwarf_record_line_1.
12254 * infrun.c (process_event_stop_test): When stepping, don't stop at
12255 a non-statement instruction, and only refresh the step info when
12256 we land in the middle of a line's range. Also add an extra
12257 comment.
12258 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12259 field.
12260 * record-btrace.c (btrace_find_line_range): Only record lines
12261 marked as is-statement.
12262 * stack.c (frame_show_address): Show the frame address if we are
12263 in a non-statement sal.
12264 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12265 (maintenance_print_one_line_table): Print a header for the is_stmt
12266 column, and include is_stmt information in the output.
12267 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12268 preference to non-statements.
12269 (find_pcs_for_symtab_line): Prefer is-statement entries.
12270 (find_line_common): Likewise.
12271 * symtab.h (struct linetable_entry): Add is_stmt field.
12272 (struct symtab_and_line): Likewise.
12273 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12274 arranging the line table.
12275
12276 2020-03-07 Tom de Vries <tdevries@suse.de>
12277
12278 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12279 DIE.
12280
12281 2020-03-07 Tom Tromey <tom@tromey.com>
12282
12283 * valops.c (value_literal_complex): Remove obsolete comment.
12284 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12285 comment.
12286
12287 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12288
12289 * infrun.h: Forward-declare thread_info.
12290 (set_step_info): Add thread_info parameter, add doc.
12291 * infrun.c (set_step_info): Add thread_info parameter, move doc
12292 to header.
12293 * infrun.c (process_event_stop_test): Pass thread to
12294 set_step_info call.
12295 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12296 set_step_info.
12297 (prepare_one_step): Add thread_info parameter, pass it to
12298 set_step_frame and prepare_one_step (recursive) call.
12299 (step_1): Pass thread to prepare_one_step call.
12300 (step_command_fsm::should_stop): Pass thread to
12301 prepare_one_step.
12302 (until_next_fsm): Pass thread to set_step_frame call.
12303 (finish_command): Pass thread to set_step_info call.
12304
12305 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12306
12307 * windows-tdep.c (windows_solib_create_inferior_hook):
12308 Check if inferior is running.
12309
12310 2020-03-06 Tom de Vries <tdevries@suse.de>
12311
12312 * NEWS: Fix "the the".
12313 * ctfread.c: Same.
12314
12315 2020-03-06 Tom de Vries <tdevries@suse.de>
12316
12317 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12318
12319 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12320
12321 * .dir-locals.el: Add a comment referencing the other copies of
12322 this file.
12323
12324 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12325
12326 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12327 psargs.
12328
12329 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12330
12331 * .gitattributes: New file.
12332
12333 2020-03-04 Tom Tromey <tom@tromey.com>
12334
12335 * symmisc.c (print_symbol_bcache_statistics)
12336 (print_objfile_statistics): Update.
12337 * symfile.c (allocate_symtab): Use intern.
12338 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12339 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12340 macro_cache>: Remove.
12341 <string_cache>: New member.
12342 (struct objfile) <intern>: New methods.
12343 * elfread.c (elf_symtab_read): Use intern.
12344 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12345 (dwarf2_compute_name, dwarf2_physname)
12346 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12347 names.
12348 (guess_partial_die_structure_name): Update.
12349 (partial_die_info::fixup): Intern name.
12350 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12351 name.
12352 (dwarf2_name): Intern name. Update.
12353 * buildsym.c (buildsym_compunit::get_macro_table): Use
12354 string_cache.
12355
12356 2020-03-04 Tom Tromey <tom@tromey.com>
12357
12358 * jit.c (bfd_open_from_target_memory): Make "target" const.
12359 * corefile.c (gnutarget): Now const.
12360 * gdbcore.h (gnutarget): Now const.
12361
12362 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12363
12364 * NEWS: Mention support for WOW64 processes.
12365 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12366 (amd64_windows_segment_register_p): Remove static.
12367 (_initialize_amd64_windows_nat): Update.
12368 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12369 * i386-windows-nat.c (context_offset): Update.
12370 (i386_mappings): Rename and remove static.
12371 (i386_windows_segment_register_p): Remove static.
12372 (_initialize_i386_windows_nat): Update.
12373 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12374 (STATUS_WX86_SINGLE_STEP): New macro.
12375 (EnumProcessModulesEx): New macro.
12376 (Wow64SuspendThread): New macro.
12377 (Wow64GetThreadContext): New macro.
12378 (Wow64SetThreadContext): New macro.
12379 (Wow64GetThreadSelectorEntry): New macro.
12380 (windows_set_context_register_offsets): Add static.
12381 (windows_set_segment_register_p): Likewise.
12382 (windows_add_thread): Adapt for WOW64 processes.
12383 (windows_fetch_one_register): Likewise.
12384 (windows_nat_target::fetch_registers): Likewise.
12385 (windows_store_one_register): Likewise.
12386 (display_selector): Likewise.
12387 (display_selectors): Likewise.
12388 (handle_exception): Likewise.
12389 (windows_continue): Likewise.
12390 (windows_nat_target::resume): Likewise.
12391 (windows_add_all_dlls): Likewise.
12392 (do_initial_windows_stuff): Likewise.
12393 (windows_nat_target::attach): Likewise.
12394 (windows_get_exec_module_filename): Likewise.
12395 (windows_nat_target::create_inferior): Likewise.
12396 (windows_xfer_siginfo): Likewise.
12397 (_initialize_loadable): Initialize Wow64SuspendThread,
12398 Wow64GetThreadContext, Wow64SetThreadContext,
12399 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12400 * windows-nat.h (windows_set_context_register_offsets):
12401 Remove declaration.
12402 (windows_set_segment_register_p): Likewise.
12403 (i386_windows_segment_register_p): Add declaration.
12404 (amd64_windows_segment_register_p): Likewise.
12405
12406 2020-03-04 Luis Machado <luis.machado@linaro.org>
12407
12408 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12409 in "info registers" for AArch64/ARM.
12410
12411 The change caused "info registers" to not print GPR's.
12412
12413 gdb/ChangeLog:
12414
12415 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12416
12417 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12418 when reg->group is empty and reggroup is not.
12419
12420 2020-03-03 Tom Tromey <tromey@adacore.com>
12421
12422 * dwarf2/frame.c (struct dwarf2_frame_cache)
12423 <checked_tailcall_bottom, entry_cfa_sp_offset,
12424 entry_cfa_sp_offset_p>: Remove members.
12425 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12426 (dwarf2_frame_prev_register): Don't call
12427 dwarf2_tailcall_sniffer_first.
12428 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12429 * frame-unwind.c (add_unwinder): New fuction.
12430 (frame_unwind_init): Use it. Add tailcall unwinder.
12431
12432 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12433 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12434
12435 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12436 value should be printed as true.
12437
12438 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12439
12440 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12441 (windows_init_abi): Set and use windows_so_ops.
12442
12443 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12444
12445 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12446 when verifying if dealing with a convenience variable.
12447
12448 2020-03-03 Luis Machado <luis.machado@linaro.org>
12449
12450 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12451
12452 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12453
12454 * infrun.c (gdbarch_supports_displaced_stepping): New.
12455 (use_displaced_stepping): Break up conditions in smaller pieces.
12456 Use gdbarch_supports_displaced_stepping.
12457 (displaced_step_prepare_throw): Use
12458 gdbarch_supports_displaced_stepping.
12459
12460 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12461
12462 * NEWS: Mention new behaviour of the history filename.
12463 * top.c (write_history_p): Add comment.
12464 (show_write_history_p): Add header comment, give a different
12465 message when history writing is on, but the history filename is
12466 empty.
12467 (history_filename): Add comment.
12468 (history_filename_empty): New function.
12469 (show_history_filename): Add header comment, give a different
12470 message when the filename is empty.
12471 (init_history): Compare history_filename against nullptr, and only
12472 read history if the filename is not empty.
12473 (set_history_filename): Add header comment, and only make
12474 non-empty filenames absolute.
12475 (init_main): Make the filename argument to 'set history filename'
12476 optional.
12477
12478 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12479
12480 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12481 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12482 (fetch_fp_register): Update.
12483 (fetch_fp_regs): Update.
12484 (store_fp_register): Update.
12485 (store_fp_regs): Update.
12486 (arm_netbsd_nat_target::read_description): New function.
12487 (fetch_elfcore_registers): Update.
12488
12489 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12490
12491 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12492 general_thread if the stop reply is missing a thread-id.
12493 (remote_target::process_stop_reply): Use the first non-exited
12494 thread if the target didn't pass a thread-id.
12495 * infrun.c (do_target_wait): Move call to
12496 switch_to_inferior_no_thread to ....
12497 (do_target_wait_1): ... here.
12498
12499 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12500
12501 * debuginfod-support.c: Include defs.h first.
12502
12503 2020-02-28 Tom de Vries <tdevries@suse.de>
12504
12505 * symfile.c (set_initial_language): Use default language for lookup.
12506
12507 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12508
12509 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12510 reader variable, pass `this` to read_cutu_die_from_dwo.
12511
12512 2020-02-27 Aaron Merey <amerey@redhat.com>
12513
12514 * source.c (open_source_file): Check for nullptr when computing
12515 srcpath.
12516
12517 2020-02-27 Tom Tromey <tromey@adacore.com>
12518
12519 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12520 member.
12521 (dwarf2_add_field): Don't update nfields.
12522 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12523
12524 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12525
12526 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12527 abs.
12528
12529 2020-02-26 Tom Tromey <tom@tromey.com>
12530
12531 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12532 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12533 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12534 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12535 per_cu_data.
12536
12537 2020-02-26 Tom Tromey <tom@tromey.com>
12538
12539 * dwarf2/index-write.c (psym_index_map): Change type.
12540 (add_address_entry_worker, write_one_signatured_type)
12541 (recursively_count_psymbols, recursively_write_psymbols)
12542 (class debug_names, psyms_seen_size, write_gdbindex)
12543 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12544
12545 2020-02-26 Aaron Merey <amerey@redhat.com>
12546
12547 * Makefile.in: Handle optional debuginfod support.
12548 * NEWS: Update.
12549 * README: Add --with-debuginfod summary.
12550 * config.in: Regenerate.
12551 * configure: Regenerate.
12552 * configure.ac: Handle optional debuginfod support.
12553 * debuginfod-support.c: debuginfod helper functions.
12554 * debuginfod-support.h: Ditto.
12555 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12556 summary.
12557 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12558 when a dwz file cannot be found.
12559 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12560 debuginfo file cannot be found.
12561 * source.c (open_source_file): Query debuginfod servers when a
12562 source file cannot be found.
12563 * top.c (print_gdb_configuration): Include
12564 --{with,without}-debuginfod in the output.
12565
12566 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12567
12568 * thread.c (thr_try_catch_cmd): Print thread name.
12569
12570 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12571
12572 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12573 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12574 dwarf2_fetch_die_type_sect_off): Move to...
12575 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12576 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12577 dwarf2_fetch_die_type_sect_off): ... here.
12578 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12579 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12580 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12581
12582 2020-02-26 Tom de Vries <tdevries@suse.de>
12583
12584 PR gdb/25603
12585 * symfile.c (set_initial_language): Exit-early if
12586 language_mode == language_mode_manual.
12587
12588 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12589
12590 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12591 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12592 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12593
12594 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12595
12596 * gdbtypes.c (create_array_type_with_stride): Handle negative
12597 array strides.
12598 * valarith.c (value_subscripted_rvalue): Likewise.
12599
12600 2020-02-25 Luis Machado <luis.machado@linaro.org>
12601
12602 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12603
12604 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12605
12606 * loc.h (dwarf2_get_die_type): Move to...
12607 * read.h (dwarf2_get_die_type): ... here.
12608 * read.c (dwarf2_get_die_type): Move doc to header.
12609
12610 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12611
12612 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12613 'gnulib/Makefile.in' to the list.
12614
12615 2020-02-24 Tom Tromey <tom@tromey.com>
12616
12617 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12618 Remove.
12619 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12620 XOBNEWVEC.
12621
12622 2020-02-24 Tom Tromey <tom@tromey.com>
12623
12624 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12625 New method.
12626 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12627 (dw2_do_instantiate_symtab, dw2_get_file_names)
12628 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12629
12630 2020-02-24 Tom Tromey <tom@tromey.com>
12631
12632 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12633 make_scoped_restore.
12634 (dwarf2_psymtab::read_symtab): Don't clear
12635 reading_partial_symbols.
12636
12637 2020-02-24 Tom de Vries <tdevries@suse.de>
12638
12639 PR gdb/25592
12640 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12641
12642 2020-02-24 Tom de Vries <tdevries@suse.de>
12643
12644 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12645 commands layout next/prev/regs.
12646
12647 2020-02-22 Tom Tromey <tom@tromey.com>
12648
12649 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12650 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12651
12652 2020-02-22 Tom Tromey <tom@tromey.com>
12653
12654 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12655
12656 2020-02-22 Tom Tromey <tom@tromey.com>
12657
12658 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12659 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12660 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12661 * tui/tui.c (_initialize_tui): Add usage text.
12662
12663 2020-02-22 Tom Tromey <tom@tromey.com>
12664
12665 * tui/tui-win.c (tui_set_focus_command)
12666 (tui_set_win_height_command): Use error_no_arg.
12667 (_initialize_tui_win): Update help text.
12668 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12669
12670 2020-02-22 Tom Tromey <tom@tromey.com>
12671
12672 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12673 * tui/tui-disasm.h (struct tui_disasm_window)
12674 <display_start_addr>: Declare.
12675 * tui/tui-source.h (struct tui_source_window)
12676 <display_start_addr>: Declare.
12677 * tui/tui-winsource.h (struct tui_source_window_base)
12678 <show_source_line, display_start_addr>: New methods.
12679 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12680 Rename and move to protected section.
12681 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12682 (tui_source_window_base::do_erase_source_content): Update.
12683 (tui_source_window_base::show_source_line): Now a method.
12684 (tui_source_window_base::show_source_content)
12685 (tui_source_window_base::tui_source_window_base)
12686 (tui_source_window_base::rerender)
12687 (tui_source_window_base::refill)
12688 (tui_source_window_base::do_scroll_horizontal)
12689 (tui_source_window_base::set_is_exec_point_at)
12690 (tui_source_window_base::update_breakpoint_info)
12691 (tui_source_window_base::update_exec_info): Update.
12692 * tui/tui-source.c (tui_source_window::set_contents)
12693 (tui_source_window::showing_source_p)
12694 (tui_source_window::do_scroll_vertical)
12695 (tui_source_window::location_matches_p)
12696 (tui_source_window::line_is_displayed): Update.
12697 (tui_source_window::display_start_addr): New method.
12698 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12699 (tui_disasm_window::do_scroll_vertical)
12700 (tui_disasm_window::location_matches_p): Update.
12701 (tui_disasm_window::display_start_addr): New method.
12702
12703 2020-02-22 Tom Tromey <tom@tromey.com>
12704
12705 * NEWS: Add entry for gdb.register_window_type.
12706 * tui/tui-layout.h (window_factory): New typedef.
12707 (tui_register_window): Declare.
12708 * tui/tui-layout.c (saved_tui_windows): New global.
12709 (tui_apply_current_layout): Use it.
12710 (tui_register_window): New function.
12711 * python/python.c (do_start_initialization): Call
12712 gdbpy_initialize_tui.
12713 (python_GdbMethods): Add "register_window_type" function.
12714 * python/python-internal.h (gdbpy_register_tui_window)
12715 (gdbpy_initialize_tui): Declare.
12716 * python/py-tui.c: New file.
12717 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12718
12719 2020-02-22 Tom Tromey <tom@tromey.com>
12720
12721 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12722
12723 2020-02-22 Tom Tromey <tom@tromey.com>
12724
12725 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12726 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12727 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12728 (tui_set_win_focus_to): Move from tui-win.c.
12729
12730 2020-02-22 Tom Tromey <tom@tromey.com>
12731
12732 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12733 functions.
12734 (known_window_types): New global.
12735 (tui_get_window_by_name): Reimplement.
12736 (initialize_known_windows): New function.
12737 (validate_window_name): Rewrite.
12738 (_initialize_tui_layout): Call initialize_known_windows.
12739
12740 2020-02-22 Tom Tromey <tom@tromey.com>
12741
12742 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12743 Remove constants.
12744 * tui/tui-winsource.h (struct tui_source_window_base)
12745 <tui_source_window_base>: Remove parameter.
12746 * tui/tui-winsource.c
12747 (tui_source_window_base::tui_source_window_base): Remove
12748 parameter.
12749 (tui_source_window_base::refill): Update.
12750 * tui/tui-stack.h (struct tui_locator_window)
12751 <tui_locator_window>: Update.
12752 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12753 Default the constructor.
12754 * tui/tui-regs.h (struct tui_data_item_window)
12755 <tui_data_item_window>: Default the constructor.
12756 (struct tui_data_window) <tui_data_window>: Likewise.
12757 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12758 Default the constructor.
12759 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12760 Default the constructor.
12761 <type>: Remove.
12762 (struct tui_win_info) <tui_win_info>: Default the constructor.
12763 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12764 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12765 Default the constructor.
12766
12767 2020-02-22 Tom Tromey <tom@tromey.com>
12768
12769 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12770 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12771 * tui/tui-win.c (tui_resize_all): Don't call
12772 tui_delete_invisible_windows.
12773 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12774 done.
12775 (tui_set_layout): Update.
12776 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12777 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12778 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12779
12780 2020-02-22 Tom Tromey <tom@tromey.com>
12781
12782 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12783 correctly.
12784
12785 2020-02-22 Tom Tromey <tom@tromey.com>
12786
12787 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12788
12789 2020-02-22 Tom Tromey <tom@tromey.com>
12790
12791 * tui/tui-winsource.h (struct tui_source_window_iterator)
12792 <inner_iterator>: New etytypedef.
12793 <tui_source_window_iterator>: Take "end" parameter.
12794 <tui_source_window_iterator>: Take iterator.
12795 <operator*, advance>: Update.
12796 <m_iter>: Change type.
12797 <m_end>: New field.
12798 (struct tui_source_windows) <begin, end>: Update.
12799 * tui/tui-layout.c (tui_windows): New global.
12800 (tui_apply_current_layout): Clear tui_windows.
12801 (tui_layout_window::apply): Update tui_windows.
12802 * tui/tui-data.h (tui_windows): Declare.
12803 (all_tui_windows): Now inline function.
12804 (class tui_window_iterator, struct all_tui_windows): Remove.
12805
12806 2020-02-22 Tom Tromey <tom@tromey.com>
12807
12808 PR tui/17850:
12809 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12810 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12811 "height" argument.
12812 (class tui_layout_window) <get_sizes>: Likewise.
12813 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12814 argument.
12815 <get_sizes>: Add "height" argument.
12816 <m_vertical>: New field.
12817 * tui/tui-layout.c (tui_layout_split::clone): Update.
12818 (tui_layout_split::get_sizes): Add "height" argument.
12819 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12820 (tui_new_layout_command): Parse "-horizontal".
12821 (_initialize_tui_layout): Update help string.
12822 (tui_layout_split::specification): Add "-horizontal" when needed.
12823 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12824 argument.
12825 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12826 New methods.
12827
12828 2020-02-22 Tom Tromey <tom@tromey.com>
12829
12830 * tui/tui-layout.h (enum tui_adjust_result): New.
12831 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12832 (class tui_layout_window) <adjust_size>: Return
12833 tui_adjust_result. Rewrite.
12834 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12835 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12836
12837 2020-02-22 Tom Tromey <tom@tromey.com>
12838
12839 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12840 parameter and return types.
12841 (class tui_layout_base) <specification>: Add "depth".
12842 (class tui_layout_window) <specification>: Add "depth".
12843 (class tui_layout_split) <specification>: Add "depth".
12844 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12845 and return types.
12846 (tui_new_layout_command): Parse sub-layouts.
12847 (_initialize_tui_layout): Update help string.
12848 (tui_layout_window::specification): Add "depth".
12849 (add_layout_command): Update.
12850
12851 2020-02-22 Tom Tromey <tom@tromey.com>
12852
12853 * NEWS: Add "tui new-layout" item.
12854 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12855 Add new-layout command to help text.
12856 (validate_window_name): New function.
12857 (tui_new_layout_command): New function.
12858 (_initialize_tui_layout): Register "new-layout".
12859 (tui_layout_window::specification): New method.
12860 (tui_layout_window::specification): New method.
12861 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12862 method.
12863 (class tui_layout_window) <specification>: New method.
12864 (class tui_layout_split) <specification>: New method.
12865
12866 2020-02-22 Tom Tromey <tom@tromey.com>
12867
12868 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12869 * tui/tui-win.c (window_name_completer): Update comment.
12870 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12871 Declare method.
12872 (class tui_layout_window) <replace_window>: Likewise.
12873 (class tui_layout_split) <replace_window>: Likewise.
12874 (tui_set_layout): Don't declare.
12875 (tui_set_initial_layout): Declare function.
12876 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12877 (asm_regs_layout): New globals.
12878 (tui_current_layout, show_layout): Remove.
12879 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12880 (find_layout, tui_apply_layout): New function.
12881 (layout_completer): Remove.
12882 (tui_next_layout): Reimplement.
12883 (tui_next_layout_command): New function.
12884 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12885 (tui_regs_layout): Reimplement.
12886 (tui_regs_layout_command): New function.
12887 (extract_display_start_addr): Rewrite.
12888 (next_layout, prev_layout): Remove.
12889 (tui_layout_window::replace_window): New method.
12890 (tui_layout_split::replace_window): New method.
12891 (destroy_layout): New function.
12892 (layout_list): New global.
12893 (add_layout_command): New function.
12894 (initialize_layouts): Update.
12895 (tui_layout_command): New function.
12896 (_initialize_tui_layout): Install "layout" commands.
12897 * tui/tui-data.h (enum tui_layout_type): Remove.
12898 (tui_current_layout): Don't declare.
12899
12900 2020-02-22 Tom Tromey <tom@tromey.com>
12901
12902 * tui/tui-regs.c (tui_reg_layout): Remove.
12903 (tui_reg_command): Use tui_regs_layout.
12904 * tui/tui-layout.h (tui_reg_command): Declare.
12905 * tui/tui-layout.c (tui_reg_command): New function.
12906
12907 2020-02-22 Tom Tromey <tom@tromey.com>
12908
12909 * tui/tui.c (tui_rl_delete_other_windows): Call
12910 tui_remove_some_windows.
12911 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12912 Declare method.
12913 (class tui_layout_window) <remove_windows>: New method.
12914 (class tui_layout_split) <remove_windows>: Declare.
12915 (tui_remove_some_windows): Declare.
12916 * tui/tui-layout.c (tui_remove_some_windows): New function.
12917 (tui_layout_split::remove_windows): New method.
12918
12919 2020-02-22 Tom Tromey <tom@tromey.com>
12920
12921 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12922 * tui/tui-layout.h (tui_next_layout): Declare.
12923 * tui/tui-layout.c (tui_next_layout): New function.
12924
12925 2020-02-22 Tom Tromey <tom@tromey.com>
12926
12927 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12928 correct coordinates.
12929
12930 2020-02-22 Tom Tromey <tom@tromey.com>
12931
12932 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12933 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12934 DATA_WIN case.
12935
12936 2020-02-22 Tom Tromey <tom@tromey.com>
12937
12938 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12939 TUI_DISASM_WIN, not tui_win_list.
12940
12941 2020-02-22 Tom Tromey <tom@tromey.com>
12942
12943 * valprint.c (generic_val_print_enum_1)
12944 (val_print_type_code_flags): Style member names.
12945 * rust-lang.c (val_print_struct, rust_print_enum)
12946 (rust_print_struct_def, rust_internal_print_type): Style member
12947 names.
12948 * p-valprint.c (pascal_object_print_value_fields): Style member
12949 names. Only call fprintf_symbol_filtered for static members.
12950 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12951 * f-valprint.c (f_val_print): Style member names.
12952 * f-typeprint.c (f_type_print_base): Style member names.
12953 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12954 call fprintf_symbol_filtered for static members.
12955 (cp_print_class_member): Style member names.
12956 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12957 member names.
12958 * ada-valprint.c (ada_print_scalar): Style enum names.
12959 (ada_val_print_enum): Likewise.
12960 * ada-typeprint.c (print_enum_type): Style enum names.
12961
12962 2020-02-21 Tom Tromey <tom@tromey.com>
12963
12964 * psympriv.h (struct partial_symtab): Update comment.
12965
12966 2020-02-21 Tom Tromey <tromey@adacore.com>
12967
12968 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12969 type is CORE_ADDR.
12970
12971 2020-02-21 Tom de Vries <tdevries@suse.de>
12972
12973 PR gdb/25534
12974 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12975 if dependencies[i]->user != NULL.
12976
12977 2020-02-21 Ali Tamur <tamur@google.com>
12978
12979 * dwarf2/read.c (dwarf2_name): Add null check.
12980
12981 2020-02-20 Tom Tromey <tom@tromey.com>
12982
12983 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12984 ">=", in binary search.
12985 (dwarf2_find_containing_comp_unit): New overload.
12986 (run_test): New self-test.
12987 (_initialize_dwarf2_read): Register new test.
12988
12989 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12990
12991 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12992 * riscv-tdep.h: Likewise.
12993 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12994 rv32-only CSR.
12995 * features/riscv/64bit-csr.xml: Regenerated.
12996
12997 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12998 Tom Tromey <tom@tromey.com>
12999
13000 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
13001 of 'fputc_unfiltered'.
13002 (putchar_unfiltered): Call 'fputc_unfiltered'.
13003 (fputc_unfiltered): Call 'fputs_unfiltered'.
13004
13005 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
13006
13007 * config.in: Regenerate.
13008 * configure: Regenerate.
13009 * configure.ac: Add --with-python-libdir option.
13010 * main.c: Use WITH_PYTHON_LIBDIR.
13011
13012 2020-02-19 Tom Tromey <tom@tromey.com>
13013
13014 * symtab.c (general_symbol_info::compute_and_set_names): Use
13015 obstack_strndup. Simplify call to symbol_set_demangled_name.
13016
13017 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13018
13019 * dwarf2/read.c (allocate_signatured_type_table,
13020 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13021 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13022 Remove objfile parameter, update all callers.
13023
13024 2020-02-19 Doug Evans <dje@google.com>
13025
13026 PR rust/25535
13027 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13028 rust_enum_variant calculation.
13029
13030 2020-02-19 Tom Tromey <tromey@adacore.com>
13031
13032 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13033
13034 2020-02-19 Tom Tromey <tromey@adacore.com>
13035
13036 * ada-lang.c (cache_symbol): Use obstack_strdup.
13037
13038 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13039
13040 * configure: Regenerate.
13041
13042 2020-02-19 Tom Tromey <tromey@adacore.com>
13043
13044 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13045 NULL check.
13046
13047 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13048
13049 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13050
13051 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13052
13053 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13054 if GDBSERVER is not defined.
13055 (riscv_tdesc_cache): Likewise, also store const target_desc.
13056 (STATIC_IN_GDB): Define.
13057 (riscv_create_target_description): Update declaration with
13058 STATIC_IN_GDB.
13059 (riscv_lookup_target_description): New function, only define if
13060 GDBSERVER is not defined.
13061 * arch/riscv.h (riscv_create_target_description): Declare only
13062 when GDBSERVER is defined.
13063 (riscv_lookup_target_description): New declaration when GDBSERVER
13064 is not defined.
13065 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13066 (riscv_linux_read_features): ...this, and return
13067 riscv_gdbarch_features instead of target_desc.
13068 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13069 (riscv_linux_read_description): Rename to...
13070 (riscv_linux_read_features): ...this.
13071 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13072 Update to use riscv_gdbarch_features and
13073 riscv_lookup_target_description.
13074 * riscv-tdep.c (riscv_find_default_target_description): Use
13075 riscv_lookup_target_description instead of
13076 riscv_create_target_description.
13077
13078 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13079
13080 * valprint.c (generic_val_print_enum_1): When printing a flag
13081 enum with value 0 and there is no enumerator with value 0, print
13082 just "0" instead of "(unknown: 0x0)".
13083
13084 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13085
13086 * valprint.c (generic_val_print_enum_1): Print unknown part of
13087 flag enum in hex.
13088
13089 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13090
13091 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13092 flag enums to contain duplicate enumerators.
13093 * valprint.c (generic_val_print_enum_1): Update comment.
13094
13095 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13096
13097 * dwarf2/read.c: Include "count-one-bits.h".
13098 (update_enumeration_type_from_children): If an enumerator has
13099 multiple bits set, don't treat the enumeration as a "flag enum".
13100 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13101 of flag enums have 0 or 1 bit set.
13102
13103 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13104
13105 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13106 conversion.
13107 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13108 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13109 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13110 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13111 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13112
13113 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13114
13115 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13116
13117 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13118
13119 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13120 displaced_step_closure_up.
13121 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13122 (struct displaced_step_closure_up):
13123 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13124 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13125 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13126 Likewise.
13127 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13128 * gdbarch.c, gdbarch.h: Re-generate.
13129 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13130 displaced_step_closure_up.
13131 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13132 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13133 * infrun.h (displaced_step_closure_up): New type alias.
13134 (struct displaced_step_inferior_state) <step_closure>: Change
13135 type to displaced_step_closure_up.
13136 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13137 displaced_step_closure_up.
13138 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13139
13140 2020-02-14 Tom Tromey <tom@tromey.com>
13141
13142 * minidebug.c (gnu_debug_key): New global.
13143 (find_separate_debug_file_in_section): Use it.
13144
13145 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13146
13147 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13148 std::unique_ptr.
13149 * gdbarch.c: Re-generate.
13150 * gdbarch.h: Re-generate.
13151 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13152 change.
13153 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13154 type to std::unique_ptr.
13155 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13156 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13157 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13158 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13159 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13160 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13161 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13162 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13163 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13164
13165 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13166
13167 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13168 std::unique_ptr.
13169 (displaced_step_clear): Rename to...
13170 (displaced_step_reset): ... this. Just call displaced->reset ().
13171 (displaced_step_clear_cleanup): Rename to...
13172 (displaced_step_reset_cleanup): ... this.
13173 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13174 (displaced_step_fixup): Likewise.
13175 (resume_1): Likewise.
13176 (handle_inferior_event): Restore child's memory before calling
13177 displaced_step_fixup on the parent.
13178 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13179 to std::unique_ptr.
13180 <step_closure>: Change type to std::unique_ptr.
13181
13182 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13183
13184 * arm-tdep.c: Include count-one-bits.h.
13185 (cleanup_block_store_pc): Use count_one_bits.
13186 (cleanup_block_load_pc): Use count_one_bits.
13187 (arm_copy_block_xfer): Use count_one_bits.
13188 (thumb2_copy_block_xfer): Use count_one_bits.
13189 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13190 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13191 (thumb_get_next_pcs_raw): Use count_one_bits.
13192 (arm_get_next_pcs_raw): Use count_one_bits_l.
13193 * arch/arm.c (bitcount): Remove.
13194 * arch/arm.h (bitcount): Remove.
13195
13196 2020-02-14 Tom Tromey <tromey@adacore.com>
13197
13198 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13199 Update.
13200 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13201 * dwarf2/loc.c (call_site_find_chain_1): Return
13202 unique_xmalloc_ptr.
13203 (call_site_find_chain): Likewise.
13204
13205 2020-02-14 Richard Biener <rguenther@suse.de>
13206
13207 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13208 on expression with division operators.
13209
13210 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13211
13212 * MAINTAINERS (Write After Approval): Adding myself.
13213
13214 2020-02-12 Tom Tromey <tom@tromey.com>
13215
13216 * event-loop.c (event_data, gdb_event, event_handler_func):
13217 Remove.
13218
13219 2020-02-12 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13222 (dwarf2_frame_objfile_data): Add comment.
13223 (find_comp_unit, set_comp_unit): New functions.
13224 (dwarf2_frame_find_fde): Use find_comp_unit.
13225 (dwarf2_build_frame_info): Use set_comp_unit.
13226
13227 2020-02-12 Tom Tromey <tom@tromey.com>
13228
13229 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13230 (comp_unit): Don't initialize objfile.
13231 (execute_cfa_program): Add text_offset parameter.
13232 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13233 (dwarf2_frame_cache): Update.
13234 (dwarf2_build_frame_info): Don't set "objfile" member.
13235
13236 2020-02-12 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13239 (decode_frame_entry): Likewise.
13240 (dwarf2_build_frame_info): Update.
13241
13242 2020-02-12 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13245 (decode_frame_entry_1): Use the comp_unit obstack.
13246
13247 2020-02-12 Tom Tromey <tom@tromey.com>
13248
13249 * dwarf2/frame.c (struct comp_unit): Add initializers and
13250 constructor.
13251 (dwarf2_frame_objfile_data): Store a comp_unit.
13252 (dwarf2_frame_find_fde): Update.
13253 (dwarf2_build_frame_info): Use "new".
13254
13255 2020-02-12 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13258 (dwarf2_fde_table): Typedef for std::vector.
13259 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13260 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13261 (decode_frame_entry): Update.
13262 (dwarf2_build_frame_info): Use "new".
13263
13264 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13265
13266 * arm-tdep.c (arm_gdbarch_init): Update.
13267 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13268 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13269 have_neon, is_m>: Change to bool.
13270
13271 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13272
13273 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13274
13275 2020-02-12 Tom Tromey <tom@tromey.com>
13276
13277 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13278
13279 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13280
13281 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13282 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13283
13284 2020-02-11 Tom Tromey <tom@tromey.com>
13285
13286 * psymtab.h: Update comment.
13287
13288 2020-02-11 Tom Tromey <tom@tromey.com>
13289
13290 * gdb_obstack.h (struct auto_obstack): Use
13291 DISABLE_COPY_AND_ASSIGN.
13292
13293 2020-02-11 Tom Tromey <tom@tromey.com>
13294
13295 * dwarf2/frame.h (struct objfile): Don't forward declare.
13296
13297 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13298
13299 * cris-tdep.c (cris_supply_gregset): Change signature to match
13300 what struct regset expects.
13301 (cris_regset): New struct.
13302 (fetch_core_registers): Remove.
13303 (cris_iterate_over_regset_sections): New function.
13304 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13305 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13306
13307 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13308
13309 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13310 registers.
13311
13312 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13313
13314 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13315
13316 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13317
13318 * configure: Re-generate.
13319
13320 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13321
13322 * configure: Re-generate.
13323
13324 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13325
13326 * acinclude: Update warning.m4 path.
13327 * warning.m4: Move to gdbsupport.
13328
13329 2020-02-11 Tom Tromey <tromey@adacore.com>
13330
13331 * remote.c (remote_console_output): Update.
13332 * printcmd.c (printf_command): Update.
13333 * event-loop.c (gdb_wait_for_event): Update.
13334 * linux-nat.c (sigchld_handler): Update.
13335 * remote-sim.c (gdb_os_write_stdout): Update.
13336 (gdb_os_flush_stdout): Update.
13337 (gdb_os_flush_stderr): Update.
13338 (gdb_os_write_stderr): Update.
13339 * exceptions.c (print_exception): Update.
13340 * remote-fileio.c (remote_fileio_func_read): Update.
13341 (remote_fileio_func_write): Update.
13342 * tui/tui.c (tui_enable): Update.
13343 * tui/tui-interp.c (tui_interp::init): Update.
13344 * utils.c (init_page_info): Update.
13345 (putchar_unfiltered, fputc_unfiltered): Update.
13346 (gdb_flush): Update.
13347 (emit_style_escape): Update.
13348 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13349 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13350 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13351 (stderr_file::write): Update.
13352 (stderr_file::puts): Update.
13353 * ui-file.h (ui_file_isatty, ui_file_write)
13354 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13355 (ui_file_puts): Don't declare.
13356
13357 2020-02-10 Tom de Vries <tdevries@suse.de>
13358
13359 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13360 sentinel to char *.
13361
13362 2020-02-09 Tom de Vries <tdevries@suse.de>
13363
13364 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13365 filename if it matches "<artificial>".
13366
13367 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13368
13369 * windows-tdep.c (struct enum_value_name): New struct.
13370 (create_enum): New function.
13371 (windows_get_siginfo_type): Create and use enum types.
13372
13373 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13374
13375 * NEWS: Mention $_siginfo support for Windows.
13376 * windows-nat.c (handle_exception): Set siginfo_er.
13377 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13378 (windows_xfer_siginfo): New function.
13379 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13380 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13381 (init_windows_gdbarch_data): New function.
13382 (get_windows_gdbarch_data): New function.
13383 (windows_get_siginfo_type): New function.
13384 (windows_init_abi): Register windows_get_siginfo_type.
13385 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13386
13387 2020-02-08 Tom Tromey <tom@tromey.com>
13388
13389 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13390 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13391 <keep>: Declare method.
13392 <m_keep>: Remove member.
13393 <~cutu_reader>: Remove.
13394 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13395 (cutu_reader::cutu_reader): Update.
13396 (cutu_reader::keep): Rename from ~cutu_reader.
13397 (process_psymtab_comp_unit, build_type_psymtabs_1)
13398 (process_skeletonless_type_unit, load_partial_comp_unit)
13399 (load_full_comp_unit, dwarf2_read_addr_index)
13400 (read_signatured_type): Update.
13401
13402 2020-02-08 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13405 "want_partial_unit" parameter.
13406 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13407 Inline check for DW_TAG_partial_unit.
13408 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13409
13410 2020-02-08 Tom Tromey <tom@tromey.com>
13411
13412 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13413 read.c.
13414 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13415 read.c.
13416
13417 2020-02-08 Tom Tromey <tom@tromey.com>
13418
13419 * dwarf2/read.c (read_address): Move to comp-unit.c.
13420 (dwarf2_rnglists_process, dwarf2_ranges_process)
13421 (read_attribute_value, dwarf_decode_lines_1)
13422 (var_decode_location, decode_locdesc): Update.
13423 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13424 read.c. Remove "cu" parameter.
13425 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13426 method.
13427
13428 2020-02-08 Tom Tromey <tom@tromey.com>
13429
13430 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13431 (read_indirect_line_string): Update.
13432 * dwarf2/comp-unit.c (read_offset): Remove.
13433 (read_comp_unit_head): Update.
13434 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13435 method.
13436 (read_offset): Don't declare.
13437
13438 2020-02-08 Tom Tromey <tom@tromey.com>
13439
13440 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13441 * dwarf2/read.c (struct comp_unit_head): Move to
13442 dwarf2/comp-unit.h.
13443 (enum class rcuh_kind): Move to comp-unit.h.
13444 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13445 (read_comp_unit_head, error_check_comp_unit_head)
13446 (read_and_check_comp_unit_head): Move to comp-unit.c.
13447 (read_offset, dwarf_unit_type_name): Likewise.
13448 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13449 (cutu_reader::cutu_reader, read_call_site_scope)
13450 (find_partial_die, follow_die_offset): Update.
13451 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13452
13453 2020-02-08 Tom Tromey <tom@tromey.com>
13454
13455 * dwarf2/read.c (read_offset_1): Move to leb.c.
13456 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13457 (dwarf_decode_macro_bytes): Update.
13458 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13459 * dwarf2/leb.h (read_offset): Declare.
13460
13461 2020-02-08 Tom Tromey <tom@tromey.com>
13462
13463 * dwarf2/read.c (dwarf2_section_size): Remove.
13464 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13465 Update.
13466 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13467
13468 2020-02-08 Tom Tromey <tom@tromey.com>
13469
13470 * dwarf2/read.c (read_initial_length): Move to leb.c.
13471 * dwarf2/leb.h (read_initial_length): Declare.
13472 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13473 handle_nonstd parameter.
13474 * dwarf2/frame.c (read_initial_length): Remove.
13475 (decode_frame_entry_1): Update.
13476
13477 2020-02-08 Tom Tromey <tom@tromey.com>
13478
13479 * dwarf2/loc.c (dwarf2_find_location_expression)
13480 (dwarf_evaluate_loc_desc::get_tls_address)
13481 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13482 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13483 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13484 (dwarf2_compile_property_to_c)
13485 (dwarf2_loc_desc_get_symbol_read_needs)
13486 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13487 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13488 (loclist_describe_location, loclist_tracepoint_var_ref)
13489 (loclist_generate_c_location): Update.
13490 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13491 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13492 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13493 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13494 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13495 (dwarf2_per_cu_data::addr_size)
13496 (dwarf2_per_cu_data::ref_addr_size)
13497 (dwarf2_per_cu_data::text_offset)
13498 (dwarf2_per_cu_data::addr_type): Now methods.
13499 (per_cu_header_read_in): Make per_cu "const".
13500 (dwarf2_version): Remove.
13501 (dwarf2_per_cu_data::int_type): Now a method.
13502 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13503 (set_die_type, read_array_type, read_subrange_index_type)
13504 (read_tag_string_type, read_subrange_type): Update.
13505 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13506 offset_size, ref_addr_size, text_offset, addr_type, version,
13507 objfile, int_type, addr_sized_int_type>: Declare methods.
13508
13509 2020-02-08 Tom Tromey <tom@tromey.com>
13510
13511 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13512 Move earlier.
13513
13514 2020-02-08 Tom Tromey <tom@tromey.com>
13515
13516 * dwarf2/read.h (dwarf_line_debug): Declare.
13517 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13518 * dwarf2/read.c: Move line_header code to new files.
13519 (dwarf_line_debug): No longer static.
13520 * dwarf2/line-header.c: New file.
13521 * dwarf2/line-header.h: New file.
13522
13523 2020-02-08 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2/read.c (struct line_header) <file_full_name,
13526 file_file_name>: Return unique_xmalloc_ptr.
13527 (line_header::file_file_name): Update.
13528 (line_header::file_full_name): Update.
13529 (dw2_get_file_names_reader): Update.
13530 (macro_start_file): Update.
13531
13532 2020-02-08 Tom Tromey <tom@tromey.com>
13533
13534 * dwarf2/read.c (struct line_header) <file_full_name,
13535 file_file_name>: Declare methods.
13536 (dw2_get_file_names_reader): Update.
13537 (file_file_name): Now a method.
13538 (file_full_name): Likewise.
13539 (macro_start_file): Update.
13540
13541 2020-02-08 Tom Tromey <tom@tromey.com>
13542
13543 * dwarf2/read.c (dwarf_always_disassemble)
13544 (show_dwarf_always_disassemble): Move to loc.c.
13545 (_initialize_dwarf2_read): Move "always-disassemble" registration
13546 to loc.c.
13547 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13548 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13549 static.
13550 (show_dwarf_always_disassemble): Move from read.c.
13551 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13552
13553 2020-02-08 Tom Tromey <tom@tromey.com>
13554
13555 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13556 (create_quick_file_names_table): Return htab_up.
13557 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13558 Update.
13559 * dwarf2/read.h (struct dwarf2_per_objfile)
13560 <quick_file_names_table>: Now htab_up.
13561
13562 2020-02-08 Tom Tromey <tom@tromey.com>
13563
13564 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13565
13566 2020-02-08 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13569 Rewrite.
13570 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13571 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13572 (abbrev_table::abbrev_table): No longer inline.
13573 (ABBREV_HASH_SIZE): Remove.
13574 (abbrev_table::m_abbrevs): Now an htab_up.
13575
13576 2020-02-08 Tom Tromey <tom@tromey.com>
13577
13578 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13579 (cutu_reader): Update.
13580 (build_type_psymtabs_1): Update.
13581 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13582 (abbrev_table::alloc_abbrev): Update.
13583 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13584 (abbrev_table::read): New static method, renamed from
13585 abbrev_table_read_table.
13586 (abbrev_table::alloc_abbrev)
13587 (abbrev_table::add_abbrev): Now private.
13588 (abbrev_table::abbrev_table): Now private.
13589 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13590
13591 2020-02-08 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13594 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13595 htab_up.
13596
13597 2020-02-08 Tom Tromey <tom@tromey.com>
13598
13599 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13600 htab_up.
13601 (lookup_dwo_unit_in_dwp): Update.
13602 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13603 on obstack.
13604
13605 2020-02-08 Tom Tromey <tom@tromey.com>
13606
13607 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13608 obstack.
13609
13610 2020-02-08 Tom Tromey <tom@tromey.com>
13611
13612 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13613 line_header_hash.
13614 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13615 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13616 Change type to htab_up.
13617
13618 2020-02-08 Tom Tromey <tom@tromey.com>
13619
13620 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13621 htab_up. Don't allocate on obstack.
13622 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13623 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13624 Change type to htab_up.
13625
13626 2020-02-08 Tom Tromey <tom@tromey.com>
13627
13628 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13629 Change type to htab_up.
13630 * dwarf2/read.c (create_signatured_type_table_from_index)
13631 (create_signatured_type_table_from_debug_names)
13632 (create_all_type_units, add_type_unit)
13633 (lookup_dwo_signatured_type, lookup_signatured_type)
13634 (process_skeletonless_type_unit): Update.
13635 (create_debug_type_hash_table, create_debug_types_hash_table):
13636 Change type of types_htab.
13637 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13638 htab_up. Don't allocate on obstack.
13639 (create_cus_hash_table): Change type of cus_htab parameter.
13640 (struct dwo_file) <cus, tus>: Now htab_up.
13641 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13642 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13643 (queue_and_load_all_dwo_tus): Update.
13644 * dwarf2/index-write.c (write_gdbindex): Update.
13645 (write_debug_names): Update.
13646
13647 2020-02-08 Tom Tromey <tom@tromey.com>
13648
13649 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13650 dwarf2/read.c. Remove "next" member. Add constructor ntad
13651 destructor.
13652 (struct dwarf2_per_objfile) <queue>: New member.
13653 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13654 dwarf2/read.h.
13655 (dwarf2_queue, dwarf2_queue_tail): Remove.
13656 (class dwarf2_queue_guard): Add parameter to constructor. Use
13657 DISABLE_COPY_AND_ASSIGN.
13658 <m_per_objfile>: New member.
13659 <~dwarf2_queue_guard>: Rewrite.
13660 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13661 Update.
13662 (~dwarf2_queue_item): New.
13663
13664 2020-02-08 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/read.c (struct die_info) <has_children>: New member.
13667 (dw2_get_file_names_reader): Remove has_children.
13668 (dw2_get_file_names): Update.
13669 (read_cutu_die_from_dwo): Remove has_children.
13670 (cutu_reader::init_tu_and_read_dwo_dies)
13671 (cutu_reader::cutu_reader): Update.
13672 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13673 Remove has_children.
13674 (build_type_psymtabs_1, process_skeletonless_type_unit)
13675 (load_partial_comp_unit, load_full_comp_unit): Update.
13676 (create_dwo_cu_reader): Remove has_children.
13677 (create_cus_hash_table, read_die_and_children): Update.
13678 (read_full_die_1,read_full_die): Remove has_children.
13679 (read_signatured_type): Update.
13680 (class cutu_reader) <has_children>: Remove.
13681
13682 2020-02-08 Tom Tromey <tom@tromey.com>
13683
13684 * dwarf2/expr.c: Rename from dwarf2expr.c.
13685 * dwarf2/expr.h: Rename from dwarf2expr.h.
13686 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13687 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13688 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13689 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13690 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13691 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13692 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13693 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13694 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13695 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13696 * dwarf2/loc.c: Rename from dwarf2loc.c.
13697 * dwarf2/loc.h: Rename from dwarf2loc.h.
13698 * dwarf2/read.c: Rename from dwarf2read.c.
13699 * dwarf2/read.h: Rename from dwarf2read.h.
13700 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13701 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13702 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13703 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13704 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13705 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13706 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13707 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13708 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13709 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13710 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13711 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13712 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13713 Update.
13714 * Makefile.in (COMMON_SFILES): Update.
13715 (HFILES_NO_SRCDIR): Update.
13716
13717 2020-02-08 Tom Tromey <tom@tromey.com>
13718
13719 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13720 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13721
13722 2020-02-08 Tom Tromey <tom@tromey.com>
13723
13724 * dwarf2read.h (struct die_info): Don't declare.
13725
13726 2020-02-08 Tom Tromey <tom@tromey.com>
13727
13728 * dwarf2read.h (die_info_ptr): Remove typedef.
13729
13730 2020-02-08 Tom Tromey <tom@tromey.com>
13731
13732 * dwarf2read.c (read_call_site_scope)
13733 (handle_data_member_location, dwarf2_add_member_fn)
13734 (mark_common_block_symbol_computed, read_common_block)
13735 (attr_to_dynamic_prop, partial_die_info::read)
13736 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13737 (dwarf2_symbol_mark_computed, set_die_type): Update.
13738 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13739 method.
13740 (attr_form_is_block): Don't declare.
13741 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13742
13743 2020-02-08 Tom Tromey <tom@tromey.com>
13744
13745 * dwarf2read.c (dwarf2_find_base_address, )
13746 (read_call_site_scope, rust_containing_type)
13747 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13748 (handle_data_member_location, dwarf2_add_member_fn)
13749 (get_alignment, read_structure_type, process_structure_scope)
13750 (mark_common_block_symbol_computed, read_common_block)
13751 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13752 (partial_die_info::read, read_attribute_value, new_symbol)
13753 (lookup_die_type, dwarf2_get_ref_die_offset)
13754 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13755 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13756 (dwarf2_symbol_mark_computed): Update.
13757 * dwarf2/attribute.h (struct attribute) <value_as_address,
13758 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13759 methods.
13760 (value_as_address, attr_form_is_section_offset)
13761 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13762 * dwarf2/attribute.c (attribute::value_as_address)
13763 (attribute::form_is_section_offset, attribute::form_is_constant)
13764 (attribute::form_is_ref): Now methods.
13765
13766 2020-02-08 Tom Tromey <tom@tromey.com>
13767
13768 * dwarf2read.c (struct attribute, DW_STRING)
13769 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13770 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13771 (attr_form_is_block, attr_form_is_section_offset)
13772 (attr_form_is_constant, attr_form_is_ref): Move.
13773 * dwarf2/attribute.h: New file.
13774 * dwarf2/attribute.c: New file, from dwarf2read.c.
13775 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13776
13777 2020-02-08 Tom Tromey <tom@tromey.com>
13778
13779 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13780 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13781 Move.
13782 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13783 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13784 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13785 abbrev.c.
13786 * dwarf2/abbrev.h: New file.
13787 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13788 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13789
13790 2020-02-08 Tom Tromey <tom@tromey.com>
13791
13792 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13793 (dwarf2_section_size, dwarf2_get_section_info)
13794 (create_signatured_type_table_from_debug_names)
13795 (create_addrmap_from_aranges, read_debug_names_from_section)
13796 (get_gdb_index_contents_from_section, read_comp_unit_head)
13797 (error_check_comp_unit_head, read_abbrev_offset)
13798 (create_debug_type_hash_table, init_cu_die_reader)
13799 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13800 (read_comp_units_from_section, create_cus_hash_table)
13801 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13802 (create_dwp_v2_section, dwarf2_rnglists_process)
13803 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13804 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13805 (read_indirect_string_from_dwz, read_addr_index_1)
13806 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13807 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13808 (fill_in_loclist_baton): Update.
13809 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13810 get_containing_section, get_bfd_owner, get_bfd_section,
13811 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13812 (dwarf2_read_section, get_section_name, get_section_file_name)
13813 (get_containing_section, get_section_bfd_owner)
13814 (get_section_bfd_section, get_section_name, get_section_file_name)
13815 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13816 declare.
13817 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13818 (dwarf2_section_info::get_bfd_owner)
13819 (dwarf2_section_info::get_bfd_section)
13820 (dwarf2_section_info::get_name)
13821 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13822 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13823 (dwarf2_section_info::read): Now methods.
13824 * dwarf-index-write.c (class debug_names): Update.
13825
13826 2020-02-08 Tom Tromey <tom@tromey.com>
13827
13828 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13829 Move to dwarf2/section.h.
13830 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13831 (get_section_bfd_section, get_section_name)
13832 (get_section_file_name, get_section_id, get_section_flags)
13833 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13834 dwarf2/section.c.
13835 * dwarf2/section.h: New file.
13836 * dwarf2/section.c: New file, from dwarf2read.c.
13837 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13838
13839 2020-02-08 Tom Tromey <tom@tromey.com>
13840
13841 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13842 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13843 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13844 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13845 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13846 * dwarf2/leb.h: New file, from dwarf2read.c.
13847 * dwarf2/leb.c: New file, from dwarf2read.c.
13848 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13849 Remove.
13850 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13851 (COMMON_SFILES): Add dwarf2/leb.c.
13852
13853 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13854
13855 GDB 9.1 released.
13856
13857 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13858
13859 PR gdb/25190:
13860 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13861 * gdb/remote.c (remote_console_output): Update.
13862 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13863 (ui_file_puts): ...this.
13864 * gdb/ui-file.h (ui_file_puts): Add declaration.
13865 * gdb/utils.c (emit_style_escape): Update.
13866 (flush_wrap_buffer): Update.
13867 (fputs_maybe_filtered): Update.
13868 (fputs_unfiltered): Add function.
13869
13870 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13871
13872 * gdb/event-loop.c (gdb_wait_for_event): Update.
13873 * gdb/printcmd.c (printf_command): Update.
13874 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13875 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13876 (gdb_os_flush_stderr): Update.
13877 * gdb/remote.c (remote_console_output): Update.
13878 * gdb/ui-file.c (gdb_flush): Rename to...
13879 (ui_file_flush): ...this.
13880 (stderr_file::write): Update.
13881 (stderr_file::puts): Update.
13882 * gdb/ui-file.h (gdb_flush): Rename to...
13883 (ui_file_flush): ...this.
13884 * gdb/utils.c (gdb_flush): Add function.
13885 * gdb/utils.h (gdb_flush): Add declaration.
13886
13887 2020-02-07 Tom Tromey <tromey@adacore.com>
13888
13889 PR breakpoints/24915:
13890 * source.c (find_and_open_source): Do not check basenames_may_differ.
13891
13892 2020-02-07 Tom Tromey <tom@tromey.com>
13893
13894 * README: Update gdbserver documentation.
13895 * gdbserver: Move to top level.
13896 * configure.tgt (build_gdbserver): Remove.
13897 * configure.ac: Remove --enable-gdbserver.
13898 * configure: Rebuild.
13899 * Makefile.in (distclean): Don't mention gdbserver.
13900
13901 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13902
13903 * source-cache.c (source_cache::ensure): Surround
13904 get_plain_source_lines with a try/catch.
13905 (source_cache::get_line_charpos): Get rid of try/catch
13906 and only check for the return value of "ensure".
13907 * tui/tui-source.c (tui_source_window::set_contents):
13908 Simplify "nlines" calculation.
13909
13910 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13911
13912 * MAINTAINERS (Write After Approval): Add myself.
13913
13914 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13915
13916 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13917 function call.
13918
13919 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13920
13921 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13922
13923 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13924
13925 * nat/riscv-linux-tdesc.h: New file.
13926 * nat/riscv-linux-tdesc.c: New file, taking code from...
13927 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13928 ... here.
13929 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13930 NATDEPFILES.
13931
13932 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13933
13934 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13935 we don't set the fake simulator ptid to the null_ptid.
13936
13937 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13938
13939 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13940 * gdbthread.h (class thread_info) <resumed>: Likewise.
13941 * infrun.c (resume_1): Likewise.
13942 (proceed): Likewise.
13943 (infrun_thread_stop_requested): Likewise.
13944 (stop_all_threads): Likewise.
13945 (handle_inferior_event): Likewise.
13946 (restart_threads): Likewise.
13947 (finish_step_over): Likewise.
13948 (keep_going_stepped_thread): Likewise.
13949 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13950 (linux_handle_extended_wait): Likewise.
13951 * record-btrace.c (get_thread_current_frame_id): Likewise.
13952 * record-full.c (record_full_wait_1): Likewise.
13953 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13954 * target.c (target_resume): Likewise.
13955 * thread.c (set_running_thread): Likewise.
13956
13957 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13958
13959 * f-valprint.c (f77_print_array_1): Changed datatype of index
13960 variable to LONGEST from int to enable it to contain bound
13961 values correctly.
13962
13963 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13964
13965 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13966 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13967 offsets according to FLEN determined.
13968 (riscv_linux_nat_target::read_description): Determine FLEN
13969 dynamically.
13970 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13971 according to FLEN determined.
13972 (riscv_linux_nat_target::store_registers): Likewise.
13973
13974 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13975
13976 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13977 when reg->group is empty and reggroup is not.
13978
13979 2020-01-31 Tom Tromey <tromey@adacore.com>
13980
13981 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13982 Call beneath target's mourn_inferior after unpushing.
13983
13984 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13985
13986 PR tui/9765
13987 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13988 have enough lines to fill the screen, still return the lowest
13989 address we found.
13990
13991 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13992
13993 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13994 '-', '<', and '>' commands.
13995
13996 2020-01-29 Pedro Alves <palves@redhat.com>
13997 Sergio Durigan Junior <sergiodj@redhat.com>
13998
13999 * infcmd.c (construct_inferior_arguments): Assert that
14000 'argc' is greater than 0.
14001
14002 2020-01-29 Luis Machado <luis.machado@linaro.org>
14003
14004 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
14005 (BRK_INSN_MASK): Define to 0xd4200000.
14006 (aarch64_program_breakpoint_here_p): New function.
14007 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
14008 * arch-utils.c (default_program_breakpoint_here_p): Moved from
14009 breakpoint.c.
14010 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14011 breakpoint.h
14012 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14013 call gdbarch_program_breakpoint_here_p.
14014 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14015 default_program_breakpoint_here_p, changed return type to bool and
14016 simplified.
14017 * breakpoint.h (program_breakpoint_here): Moved prototype to
14018 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14019 return type to bool.
14020 * gdbarch.c: Regenerate.
14021 * gdbarch.h: Regenerate.
14022 * gdbarch.sh (program_breakpoint_here_p): New method.
14023 * infrun.c (handle_signal_stop): Call
14024 gdbarch_program_breakpoint_here_p.
14025
14026 2020-01-26 Tom Tromey <tom@tromey.com>
14027
14028 * ctfread.c (struct ctf_fp_info): Reindent.
14029 (_initialize_ctfread): Remove.
14030
14031 2020-01-26 Tom Tromey <tom@tromey.com>
14032
14033 * psymtab.c (partial_map_expand_apply)
14034 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14035 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14036 (psym_print_stats, psym_expand_symtabs_for_function)
14037 (psym_map_symbol_filenames, psym_map_matching_symbols)
14038 (psym_expand_symtabs_matching)
14039 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14040 (maintenance_check_psymtabs): Use new methods.
14041 * psympriv.h (struct partial_symtab) <readin_p,
14042 get_compunit_symtab>: New methods.
14043 <readin, compunit_symtab>: Remove members.
14044 (struct standard_psymtab): New.
14045 (struct legacy_psymtab): Derive from standard_psymtab.
14046 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14047 standard_psymtab.
14048 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14049
14050 2020-01-26 Tom Tromey <tom@tromey.com>
14051
14052 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14053 read_dependencies. Add assert.
14054 * psymtab.c (partial_symtab::read_dependencies): New method.
14055 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14056 method.
14057 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14058 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14059 read_dependencies.
14060 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14061 Add assert.
14062
14063 2020-01-26 Tom Tromey <tom@tromey.com>
14064
14065 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14066 Call expand_psymtab.
14067 (xcoff_read_symtab): Call expand_psymtab.
14068 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14069 legacy_expand_psymtab.
14070 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14071 method.
14072 (struct legacy_psymtab) <expand_psymtab>: Implement.
14073 <legacy_expand_psymtab>: New member.
14074 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14075 (parse_partial_symbols): Set legacy_expand_psymtab.
14076 (psymtab_to_symtab_1): Change argument order. Call
14077 expand_psymtab.
14078 (new_psymtab): Set legacy_expand_psymtab.
14079 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14080 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14081 expand_psymtab.
14082 (dwarf2_psymtab::expand_psymtab): Rename from
14083 psymtab_to_symtab_1. Call expand_psymtab.
14084 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14085 (dbx_end_psymtab): Likewise.
14086 (dbx_psymtab_to_symtab_1): Change argument order. Call
14087 expand_psymtab.
14088 (dbx_read_symtab): Call expand_psymtab.
14089 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14090 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14091 (ctf_psymtab::read_symtab): Call expand_psymtab.
14092
14093 2020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14096 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14097 messages.
14098 * mdebugread.c (mdebug_read_symtab): Remove prints.
14099 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14100 assert.
14101 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14102
14103 2020-01-26 Tom Tromey <tom@tromey.com>
14104
14105 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14106 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14107 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14108 legacy_symtab.
14109 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14110 * psymtab.c (psymtab_to_symtab): Call method.
14111 (dump_psymtab): Update.
14112 * psympriv.h (struct partial_symtab): Add virtual destructor.
14113 <read_symtab>: New method.
14114 (struct legacy_symtab): New.
14115 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14116 (struct pst_map) <pst>: Now a legacy_psymtab.
14117 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14118 (new_psymtab): Use legacy_psymtab.
14119 * dwarf2read.h (struct dwarf2_psymtab): New.
14120 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14121 * dwarf2read.c (dwarf2_create_include_psymtab)
14122 (dwarf2_build_include_psymtabs, create_type_unit_group)
14123 (create_partial_symtab, process_psymtab_comp_unit_reader)
14124 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14125 (set_partial_user): Use dwarf2_psymtab.
14126 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14127 (psymtab_to_symtab_1, process_full_comp_unit)
14128 (process_full_type_unit, dwarf2_ranges_read)
14129 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14130 (dwarf_decode_lines): Use dwarf2_psymtab.
14131 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14132 (add_address_entry_worker, write_one_signatured_type)
14133 (recursively_count_psymbols, recursively_write_psymbols)
14134 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14135 (write_debug_names): Likewise.
14136 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14137 <pst>: Now a legacy_psymtab.
14138 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14139 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14140 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14141 * ctfread.c (struct ctf_psymtab): New.
14142 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14143 ctf_psymtab.
14144 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14145 (create_partial_symtab): Return a ctf_psymtab.
14146 (scan_partial_symbols): Update.
14147
14148 2020-01-26 Tom Tromey <tom@tromey.com>
14149
14150 * xcoffread.c (xcoff_start_psymtab): Use new.
14151 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14152 renamed from start_psymtab_common.
14153 * psympriv.h (struct partial_symtab): Add new constructor.
14154 (start_psymtab_common): Don't declare.
14155 * mdebugread.c (parse_partial_symbols): Use new.
14156 * dwarf2read.c (create_partial_symtab): Use new.
14157 * dbxread.c (start_psymtab): Use new.
14158 * ctfread.c (create_partial_symtab): Use new.
14159
14160 2020-01-26 Tom Tromey <tom@tromey.com>
14161
14162 * xcoffread.c (xcoff_end_psymtab): Use new.
14163 * psymtab.c (start_psymtab_common): Use new.
14164 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14165 Update.
14166 * psympriv.h (struct partial_symtab): Add parameters to
14167 constructor. Don't inline.
14168 (allocate_psymtab): Don't declare.
14169 * mdebugread.c (new_psymtab): Use new.
14170 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14171 * dbxread.c (dbx_end_psymtab): Use new.
14172
14173 2020-01-26 Tom Tromey <tom@tromey.com>
14174
14175 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14176 allocate_psymtab. Update documentation.
14177 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14178 allocate_psymtab. Do not use new.
14179 (allocate_psymtab): Use new. Update.
14180
14181 2020-01-26 Tom Tromey <tom@tromey.com>
14182
14183 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14184 * psymtab.c (psym_print_stats): Update.
14185 * psympriv.h (struct partial_symtab) <readin,
14186 psymtabs_addrmap_supported, anonymous>: Now bool.
14187 * mdebugread.c (psymtab_to_symtab_1): Update.
14188 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14189 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14190 (process_full_comp_unit, process_full_type_unit): Update.
14191 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14192 * ctfread.c (psymtab_to_symtab): Update.
14193
14194 2020-01-26 Tom Tromey <tom@tromey.com>
14195
14196 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14197 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14198 * psymtab.c (psymtab_storage): Delete psymtabs.
14199 (psymtab_storage::allocate_psymtab): Use new.
14200 (psymtab_storage::discard_psymtab): Use delete.
14201 * psympriv.h (struct partial_symtab): Add constructor and
14202 initializers.
14203
14204 2020-01-26 Tom Tromey <tom@tromey.com>
14205
14206 * machoread.c: Do not include psympriv.h.
14207
14208 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14209
14210 * NEWS: Mention the new option and the set/show commands.
14211
14212 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14213
14214 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14215 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14216 (validate_exec_file): New variables, enums, functions.
14217 (exec_file_locate_attach, print_section_info): Style the filenames.
14218 (_initialize_exec): Install show_exec_file_mismatch_command and
14219 set_exec_file_mismatch_command.
14220 * gdbcore.h (validate_exec_file): Declare.
14221 * infcmd.c (attach_command): Call validate_exec_file.
14222 * remote.c ( remote_target::remote_add_inferior): Likewise.
14223
14224 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14225
14226 * frame.c (find_frame_sal): Move call to get_next_frame into more
14227 inner scope.
14228 * inline-frame.c (inilne_state) <inline_state>: Update argument
14229 types.
14230 (inilne_state) <skipped_symbol>: Rename to...
14231 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14232 (skip_inline_frames): Build vector of skipped symbols and use this
14233 to reate the inline_state.
14234 (inline_skipped_symbol): Add a comment and some assertions, fetch
14235 skipped symbol from the list.
14236
14237 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14238
14239 * buildsym.c (lte_is_less_than): Delete.
14240 (buildsym_compunit::end_symtab_with_blockvector): Create local
14241 lambda function to sort line table entries, and use
14242 std::stable_sort instead of std::sort.
14243 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14244 markers when looking for a previous line.
14245
14246 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14247
14248 * dwarf2read.c (lnp_state_machine::record_line): Include
14249 end_sequence parameter in debug print out. Record the line if we
14250 are at an end_sequence marker even if it's not the start of a
14251 statement.
14252 * symmisc.c (maintenance_print_one_line_table): Print end of
14253 sequence markers with 'END' not '0'.
14254
14255 2020-01-24 Pedro Alves <palves@redhat.com>
14256
14257 PR gdb/25410
14258 * thread.c (scoped_restore_current_thread::restore): Use
14259 switch_to_inferior_no_thread.
14260 * exec.c: Include "progspace-and-thread.h".
14261 (add_target_sections, remove_target_sections):
14262 scoped_restore_current_pspace_and_thread instead of
14263 scoped_restore_current_thread.
14264 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14265 and aspace to the inferior before calling clone_program_space.
14266 Remove stale comment.
14267
14268 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14269
14270 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14271 (arm_netbsd_nat_target::fetch_registers): ...this.
14272 (arm_nbsd_nat_target::store_registers): Rename to...
14273 (arm_netbsd_nat_target::store_registers): ...this.
14274
14275 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14276
14277 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14278 register_t.
14279
14280 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14281
14282 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14283 Update comment.
14284 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14285 Likewise.
14286 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14287 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14288 the correct replacement (iterate_over_regset_sections).
14289 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14290 Update comment.
14291
14292 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14293
14294 PR gdb/23718
14295 * gdb/python/python.c (execute_gdb_command): Call
14296 async_enable_stdin in catch block.
14297
14298 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14299
14300 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14301 SWITCH_THRU_ALL_UIS.
14302
14303 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14304
14305 PR tui/9765
14306 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14307 comment, add extra parameter, and update to store previous symbol
14308 when appropriate.
14309 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14310 add extra parameter.
14311 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14312 remove unneeded parameter, add try/catch around gdb_print_insn,
14313 rewrite to add items to asm_lines vector.
14314 (tui_find_backward_disassembly_start_address): New function.
14315 (tui_find_disassembly_address): Updated throughout.
14316 (tui_disasm_window::set_contents): Update for changes to
14317 tui_disassemble.
14318 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14319 number of lines to scroll.
14320
14321 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14322
14323 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14324 (SECT_OFF_DATA): Likewise.
14325 (SECT_OFF_RODATA): Likewise.
14326 (SECT_OFF_TEXT): Likewise.
14327 (SECT_OFF_BSS): Likewise.
14328 (struct objfile) <text_section_offset, data_section_offset>: New
14329 methods.
14330 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14331 objfile::text_section_offset.
14332 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14333 * coffread.c (coff_symtab_read): Likewise.
14334 (enter_linenos): Likewise.
14335 (process_coff_symbol): Likewise.
14336 * ctfread.c (get_objfile_text_range): Likewise.
14337 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14338 Use objfile::data_section_offset.
14339 * dwarf2-frame.c (execute_cfa_program): Use
14340 objfile::text_section_offset.
14341 (dwarf2_frame_find_fde): Likewise.
14342 * dwarf2read.c (create_addrmap_from_index): Likewise.
14343 (create_addrmap_from_aranges): Likewise.
14344 (dw2_find_pc_sect_compunit_symtab): Likewise.
14345 (process_psymtab_comp_unit_reader): Likewise.
14346 (add_partial_symbol): Likewise.
14347 (add_partial_subprogram): Likewise.
14348 (process_full_comp_unit): Likewise.
14349 (read_file_scope): Likewise.
14350 (read_func_scope): Likewise.
14351 (read_lexical_block_scope): Likewise.
14352 (read_call_site_scope): Likewise.
14353 (dwarf2_rnglists_process): Likewise.
14354 (dwarf2_ranges_process): Likewise.
14355 (dwarf2_ranges_read): Likewise.
14356 (dwarf_decode_lines_1): Likewise.
14357 (new_symbol): Likewise.
14358 (dwarf2_fetch_die_loc_sect_off): Likewise.
14359 (dwarf2_per_cu_text_offset): Likewise.
14360 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14361 * hppa-tdep.c (read_unwind_info): Likewise.
14362 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14363 * psympriv.h (struct partial_symtab): Likewise.
14364 * psymtab.c (find_pc_sect_psymtab): Likewise.
14365 * solib-svr4.c (enable_break): Likewise.
14366 * stap-probe.c (relocate_address): Use
14367 objfile::data_section_offset.
14368 * xcoffread.c (enter_line_range): Use
14369 objfile::text_section_offset.
14370 (read_xcoff_symtab): Likewise.
14371
14372 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14373
14374 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14375 declaration to narrower scopes.
14376
14377 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14378
14379 * darwin-nat.h (struct darwin_exception_msg, enum
14380 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14381 Move up.
14382 (class darwin_nat_target) <wait_1, check_new_threads,
14383 decode_exception_message, decode_message, stop_inferior,
14384 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14385 * darwin-nat.c (darwin_check_new_threads): Rename to...
14386 (darwin_nat_target::check_new_threads): ... this.
14387 (darwin_suspend_inferior_it): Remove.
14388 (darwin_decode_exception_message): Rename to...
14389 (darwin_nat_target::decode_exception_message): ... this.
14390 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14391 (darwin_decode_message): Rename to...
14392 (darwin_nat_target::decode_message): ... this.
14393 (cancel_breakpoint): Rename to...
14394 (darwin_nat_target::cancel_breakpoint): ... this.
14395 (darwin_wait): Rename to...
14396 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14397 instead of iterate_over_inferiors.
14398 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14399 (darwin_stop_inferior): Rename to...
14400 (darwin_nat_target::stop_inferior): ... this.
14401 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14402 (darwin_init_thread_list): Rename to...
14403 (darwin_nat_target::init_thread_list): ... this.
14404 (darwin_ptrace_him): Rename to...
14405 (darwin_nat_target::ptrace_him): ... this.
14406 (darwin_nat_target::create_inferior): Pass lambda function to
14407 fork_inferior.
14408 (darwin_nat_target::detach): Call stop_inferior instead of
14409 darwin_stop_inferior.
14410 * fork-inferior.h (fork_inferior): Change init_trace_fun
14411 parameter to gdb::function_view.
14412 * fork-inferior.c (fork_inferior): Likewise.
14413
14414 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14415
14416 * i386-cygwin-tdep.c (core_process_module_section): Update.
14417 * windows-nat.c (struct lm_info_windows): Add text_offset.
14418 (windows_xfer_shared_libraries): Update.
14419 * windows-tdep.c (windows_xfer_shared_library):
14420 Add text_offset_cached argument.
14421 * windows-tdep.h (windows_xfer_shared_library): Update.
14422
14423 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14424
14425 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14426
14427 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14428
14429 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14430 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14431 replace with range-based for.
14432 (gdbsim_interrupt_inferior): Remove.
14433 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14434 with a range-based for. Inline code from
14435 gdbsim_interrupt_inferior.
14436
14437 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14438
14439 * infrun.c (proceed): Fix indentation.
14440
14441 2020-01-21 Tom Tromey <tromey@adacore.com>
14442
14443 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14444 * python/python.c (python_extension_ops): Update.
14445 (gdbpy_colorize): New function.
14446 * python/lib/gdb/__init__.py (colorize): New function.
14447 * extension.h (ext_lang_colorize): Declare.
14448 * extension.c (ext_lang_colorize): New function.
14449 * extension-priv.h (struct extension_language_ops) <colorize>: New
14450 member.
14451 * cli/cli-style.c (_initialize_cli_style): Update help text.
14452
14453 2020-01-21 Luis Machado <luis.machado@linaro.org>
14454
14455 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14456 <cond>: Change type to bool.
14457 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14458 (aarch64_displaced_step_cb): Likewise.
14459 (aarch64_displaced_step_tb): Likewise.
14460
14461 2020-01-21 Luis Machado <luis.machado@linaro.org>
14462
14463 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14464 output.
14465
14466 2020-01-21 Luis Machado <luis.machado@linaro.org>
14467
14468 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14469 <pc_adjust>: Adjust the documentation.
14470 (aarch64_displaced_step_fixup): Check if PC really moved before
14471 adjusting it.
14472
14473 2020-01-19 Tom Tromey <tom@tromey.com>
14474
14475 * disasm.c (~gdb_disassembler): New destructor.
14476 (gdb_buffered_insn_length): Call disassemble_free_target.
14477 * disasm.h (class gdb_disassembler): Declare destructor. Use
14478 DISABLE_COPY_AND_ASSIGN.
14479
14480 2020-01-19 Tom Tromey <tom@tromey.com>
14481
14482 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14483 (die_reader_func_ftype): Remove.
14484 (cutu_reader): New class.
14485 (dw2_get_file_names_reader): Remove "data" parameter.
14486 (dw2_get_file_names): Use cutu_reader.
14487 (create_debug_type_hash_table): Update.
14488 (read_cutu_die_from_dwo): Update comment.
14489 (lookup_dwo_unit): Add dwo_name parameter.
14490 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14491 die_reader_func_ftype and data parameters.
14492 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14493 Remove die_reader_func_ftype and data parameters.
14494 (~cutu_reader): New; from init_cutu_and_read_dies.
14495 (cutu_reader::cutu_reader): Rename from
14496 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14497 and data parameters.
14498 (init_cutu_and_read_dies_simple): Remove.
14499 (struct process_psymtab_comp_unit_data): Remove.
14500 (process_psymtab_comp_unit_reader): Remove data parameter; add
14501 want_partial_unit and pretend_language parameters.
14502 (process_psymtab_comp_unit): Use cutu_reader.
14503 (build_type_psymtabs_reader): Remove data parameter.
14504 (build_type_psymtabs_1): Use cutu_reader.
14505 (process_skeletonless_type_unit): Likewise.
14506 (load_partial_comp_unit_reader): Remove.
14507 (load_partial_comp_unit): Use cutu_reader.
14508 (load_full_comp_unit_reader): Remove.
14509 (load_full_comp_unit): Use cutu_reader.
14510 (struct create_dwo_cu_data): Remove.
14511 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14512 dwo_unit parameters.
14513 (create_cus_hash_table): Use cutu_reader.
14514 (struct dwarf2_read_addr_index_data): Remove.
14515 (dwarf2_read_addr_index_reader): Remove.
14516 (dwarf2_read_addr_index): Use cutu_reader.
14517 (read_signatured_type_reader): Remove.
14518 (read_signatured_type): Use cutu_reader.
14519
14520 2020-01-19 Tom Tromey <tom@tromey.com>
14521
14522 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14523 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14524 (tui_wrefresh): Declare.
14525 * tui/tui-wingeneral.c (suppress_output): New global.
14526 (tui_suppress_output, ~tui_suppress_output): New constructor and
14527 destructor.
14528 (tui_wrefresh): New function.
14529 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14530 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14531 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14532 method.
14533 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14534 tui_wrefresh.
14535 (tui_data_window::no_refresh): New method.
14536 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14537 (tui_reg_command): Use tui_suppress_output
14538 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14539 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14540 method.
14541 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14542
14543 2020-01-19 Tom Tromey <tom@tromey.com>
14544
14545 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14546 Handle case where symtab is null.
14547
14548 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14549
14550 * linux-fork.c (one_fork_p): Simplify.
14551
14552 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * top.c (struct qt_args): Remove.
14555 (kill_or_detach): Change return type to void, replace `void *`
14556 parameter with a proper one.
14557 (print_inferior_quit_action): Likewise.
14558 (quit_confirm): Use range-based for loop to iterate over inferiors.
14559 (quit_force): Likewise.
14560
14561 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14562
14563 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14564 `void *` parameter with proper parameters.
14565 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14566 (print_one_inferior): Change return type to void, replace `void *`
14567 parameter with proper parameters.
14568 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14569 inferiors.
14570 (get_other_inferior): Remove.
14571 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14572 inferiors.
14573
14574 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14575
14576 * mi/mi-interp.c (report_initial_inferior): Remove.
14577 (mi_interp::init): Use range-based for to iterate over inferiors.
14578
14579 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14580
14581 * python/py-inferior.c (build_inferior_list): Remove.
14582 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14583
14584 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14585
14586 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14587 (btrace_stitch_trace): Likewise.
14588 * charset.c (intermediate_encoding): Likewise (vaild).
14589 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14590 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14591 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14592
14593 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14594
14595 * windows-tdep.c (windows_get_tlb_type):
14596 Add rtl_user_process_parameters type.
14597
14598 2020-01-16 Pedro Alves <palves@redhat.com>
14599 Norbert Lange <nolange79@gmail.com>
14600
14601 PR build/24805
14602 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14603 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14604 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14605 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14606 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14607 (ps_plog): Redeclare exported functions with default visibility.
14608
14609 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14610
14611 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14612 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14613
14614 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14615
14616 * infcmd.c (post_create_inferior): Use get_thread_regcache
14617 instead of get_current_regcache.
14618
14619 2020-01-14 Tom Tromey <tom@tromey.com>
14620
14621 PR symtab/12535:
14622 * python/python.c (gdbpy_decode_line): Treat empty string the same
14623 as no argument.
14624
14625 2020-01-14 Tom Tromey <tom@tromey.com>
14626
14627 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14628
14629 2020-01-14 Tom Tromey <tom@tromey.com>
14630
14631 * nat/linux-btrace.c: Don't include <config.h>.
14632 * nat/linux-ptrace.c: Don't include <config.h>.
14633 * nat/x86-linux-dregs.c: Don't include <config.h>.
14634
14635 2020-01-14 Tom Tromey <tom@tromey.com>
14636
14637 * configure: Rebuild.
14638 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14639
14640 2020-01-14 Tom Tromey <tom@tromey.com>
14641
14642 * nat/x86-linux-dregs.c: Include configh.h.
14643 * nat/linux-ptrace.c: Include configh.h.
14644 * nat/linux-btrace.c: Include configh.h.
14645 * defs.h: Include config.h, bfd.h.
14646 * configure.ac: Don't source common.host.
14647 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14648 * configure: Rebuild.
14649 * acinclude.m4: Update path.
14650 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14651 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14652 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14653 (CLIBS): Add LIBSUPPORT.
14654 (CDEPS): Likewise.
14655 (COMMON_SFILES): Remove gdbsupport files.
14656 (HFILES_NO_SRCDIR): Likewise.
14657 (stamp-version): Update path to create-version.sh.
14658 (ALLDEPFILES): Remove gdbsupport files.
14659
14660 2020-01-14 Tom Tromey <tom@tromey.com>
14661
14662 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14663 USE_WIN32API when needed.
14664 * configure.ac (USE_WIN32API): Don't define.
14665 (WIN32LIBS): Use WIN32APILIBS.
14666 * configure: Rebuild.
14667
14668 2020-01-14 Tom Tromey <tom@tromey.com>
14669
14670 * configure: Rebuild.
14671 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14672
14673 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14674
14675 * skip.c (skip_function_command): Make skip w/o arguments use the
14676 name of the inlined function if pc is inside any inlined function.
14677
14678 2020-01-14 Luis Machado <luis.machado@linaro.org>
14679
14680 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14681 * infrun.c (resume_1): Likewise.
14682 (handle_inferior_event): Remove stale comment.
14683 * linux-nat.c (linux_nat_target::resume): Update comments.
14684 (save_stop_reason): Likewise.
14685 (linux_nat_filter_event): Likewise.
14686 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14687
14688 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14689
14690 * elfread.c (record_minimal_symbol): Set section index to 0 for
14691 non-allocatable sections.
14692
14693
14694 2020-01-13 Ali Tamur <tamur@google.com>
14695
14696 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14697 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14698 to gdb::optional. Update comments.
14699 (dwo_file): Update comments.
14700 (read_attribute): Update API to take an additional out parameter,
14701 need_reprocess. This is used to mark attributes that need other
14702 attributes (e.g. str_offsets_base) for correct computation which may not
14703 have been read yet.
14704 (read_attribute_reprocess): New function declaration.
14705 (read_addr_index): Likewise.
14706 (read_dwo_str_index): Likewise.
14707 (read_stub_str_index): Likewise.
14708 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14709 (lookup_addr_base): New function definition.
14710 (lookup_ranges_base): Likewise.
14711 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14712 lookup_ranges_base.
14713 (init_cutu_and_read_dies): Update comments.
14714 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14715 unit. This is used to inherit parent's str_offsets_base and addr_base.
14716 Update comments.
14717 (init_cutu_and_read_dies_simple): Reflect API changes.
14718 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14719 (create_cus_hash_table): Change API to take parent compile unit.
14720 Reflect API changes.
14721 (open_and_init_dwo_file): Reflect API changes.
14722 (dwarf2_get_pc_bounds): Update comments.
14723 (dwarf2_record_block_ranges): Likewise.
14724 (read_full_die_1): Change implementation to reprocess attributes that
14725 need str_offsets_base and addr_base.
14726 (partial_die_info::read): Likewise.
14727 (read_attribute_reprocess): New function definition.
14728 (read_attribute_value): Change API to take an additional out parameter,
14729 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14730 when a non-dwo compile unit has index based attributes.
14731 (read_attribute): Reflect API changes.
14732 (read_addr_index_1): Reflect API changes. Update comments.
14733 (dwarf2_read_addr_index_data): Reflect API changes.
14734 (dwarf2_read_addr_index): Likewise.
14735 (read_str_index): Change API and implementation. This becomes a helper
14736 to be used by the new string index related methods. Update error
14737 message and comments.
14738 (read_dwo_str_index): New function definition.
14739 (read_stub_str_index): Likewise.
14740 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14741 * symfile.h (dwarf2_debug_sections): Likewise.
14742 * xcoffread.c (dwarf2_debug_sections): Likewise.
14743
14744 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14745
14746 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14747 core_reg_sect type to gdb_byte *.
14748 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14749 * cris-tdep.c (fetch_core_registers): Likewise.
14750 * corelow.c (core_target::get_core_register_section): Change
14751 type of `contents` to gdb::byte_vector.
14752
14753 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14754
14755 * tui/tui-wingeneral.c (box_win): Position the title in the center
14756 of the border.
14757
14758 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14759
14760 * corelow.c (core_target::get_core_register_section): Use
14761 std::vector instead of alloca.
14762
14763 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14764
14765 * warning.m4: Add -Wmissing-declarations to build_warnings.
14766 * configure: Re-generate.
14767
14768 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14769
14770 * python/python.c (init__gdb_module): Add declaration.
14771
14772 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14773
14774 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14775 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14776 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14777 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14778 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14779 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14780 * ada-exp.y (_initialize_ada_exp): Add declaration.
14781 * ada-lang.c (_initialize_ada_language): Add declaration.
14782 * ada-tasks.c (_initialize_tasks): Add declaration.
14783 * agent.c (_initialize_agent): Add declaration.
14784 * aix-thread.c (_initialize_aix_thread): Add declaration.
14785 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14786 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14787 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14788 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14789 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14790 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14791 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14792 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14793 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14794 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14795 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14796 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14797 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14798 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14799 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14800 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14801 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14802 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14803 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14804 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14805 * annotate.c (_initialize_annotate): Add declaration.
14806 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14807 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14808 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14809 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14810 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14811 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14812 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14813 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14814 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14815 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14816 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14817 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14818 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14819 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14820 * auto-load.c (_initialize_auto_load): Add declaration.
14821 * auxv.c (_initialize_auxv): Add declaration.
14822 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14823 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14824 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14825 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14826 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14827 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14828 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14829 * breakpoint.c (_initialize_breakpoint): Add declaration.
14830 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14831 * btrace.c (_initialize_btrace): Add declaration.
14832 * charset.c (_initialize_charset): Add declaration.
14833 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14834 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14835 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14836 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14837 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14838 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14839 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14840 * coffread.c (_initialize_coffread): Add declaration.
14841 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14842 * compile/compile.c (_initialize_compile): Add declaration.
14843 * complaints.c (_initialize_complaints): Add declaration.
14844 * completer.c (_initialize_completer): Add declaration.
14845 * copying.c (_initialize_copying): Add declaration.
14846 * corefile.c (_initialize_core): Add declaration.
14847 * corelow.c (_initialize_corelow): Add declaration.
14848 * cp-abi.c (_initialize_cp_abi): Add declaration.
14849 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14850 * cp-support.c (_initialize_cp_support): Add declaration.
14851 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14852 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14853 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14854 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14855 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14856 * ctfread.c (_initialize_ctfread): Add declaration.
14857 * d-lang.c (_initialize_d_language): Add declaration.
14858 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14859 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14860 * dbxread.c (_initialize_dbxread): Add declaration.
14861 * dcache.c (_initialize_dcache): Add declaration.
14862 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14863 * disasm.c (_initialize_disasm): Add declaration.
14864 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14865 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14866 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14867 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14868 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14869 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14870 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14871 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14872 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14873 * elfread.c (_initialize_elfread): Add declaration.
14874 * exec.c (_initialize_exec): Add declaration.
14875 * extension.c (_initialize_extension): Add declaration.
14876 * f-lang.c (_initialize_f_language): Add declaration.
14877 * f-valprint.c (_initialize_f_valprint): Add declaration.
14878 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14879 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14880 * filesystem.c (_initialize_filesystem): Add declaration.
14881 * findcmd.c (_initialize_mem_search): Add declaration.
14882 * findvar.c (_initialize_findvar): Add declaration.
14883 * fork-child.c (_initialize_fork_child): Add declaration.
14884 * frame-base.c (_initialize_frame_base): Add declaration.
14885 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14886 * frame.c (_initialize_frame): Add declaration.
14887 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14888 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14889 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14890 * gcore.c (_initialize_gcore): Add declaration.
14891 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14892 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14893 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14894 * gdbarch.c (_initialize_gdbarch): Add declaration.
14895 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14896 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14897 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14898 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14899 * go-lang.c (_initialize_go_language): Add declaration.
14900 * go32-nat.c (_initialize_go32_nat): Add declaration.
14901 * guile/guile.c (_initialize_guile): Add declaration.
14902 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14903 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14904 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14905 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14906 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14907 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14908 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14909 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14910 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14911 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14912 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14913 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14914 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14915 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14916 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14917 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14918 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14919 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14920 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14921 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14922 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14923 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14924 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14925 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14926 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14927 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14928 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14929 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14930 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14931 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14932 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14933 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14934 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14935 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14936 * infcall.c (_initialize_infcall): Add declaration.
14937 * infcmd.c (_initialize_infcmd): Add declaration.
14938 * inflow.c (_initialize_inflow): Add declaration.
14939 * infrun.c (_initialize_infrun): Add declaration.
14940 * interps.c (_initialize_interpreter): Add declaration.
14941 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14942 * jit.c (_initialize_jit): Add declaration.
14943 * language.c (_initialize_language): Add declaration.
14944 * linux-fork.c (_initialize_linux_fork): Add declaration.
14945 * linux-nat.c (_initialize_linux_nat): Add declaration.
14946 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14947 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14948 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14949 * m2-lang.c (_initialize_m2_language): Add declaration.
14950 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14951 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14952 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14953 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14954 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14955 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14956 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14957 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14958 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14959 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14960 * machoread.c (_initialize_machoread): Add declaration.
14961 * macrocmd.c (_initialize_macrocmd): Add declaration.
14962 * macroscope.c (_initialize_macroscope): Add declaration.
14963 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14964 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14965 * maint.c (_initialize_maint_cmds): Add declaration.
14966 * mdebugread.c (_initialize_mdebugread): Add declaration.
14967 * memattr.c (_initialize_mem): Add declaration.
14968 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14969 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14970 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14971 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14972 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14973 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14974 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14975 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14976 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14977 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14978 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14979 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14980 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14981 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14982 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14983 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14984 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14985 * mipsread.c (_initialize_mipsread): Add declaration.
14986 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14987 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14988 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14989 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14990 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14991 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14992 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14993 * nto-procfs.c (_initialize_procfs): Add declaration.
14994 * objc-lang.c (_initialize_objc_language): Add declaration.
14995 * observable.c (_initialize_observer): Add declaration.
14996 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14997 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14998 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14999 * osabi.c (_initialize_gdb_osabi): Add declaration.
15000 * osdata.c (_initialize_osdata): Add declaration.
15001 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
15002 * parse.c (_initialize_parse): Add declaration.
15003 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
15004 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
15005 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
15006 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
15007 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
15008 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
15009 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15010 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15011 * printcmd.c (_initialize_printcmd): Add declaration.
15012 * probe.c (_initialize_probe): Add declaration.
15013 * proc-api.c (_initialize_proc_api): Add declaration.
15014 * proc-events.c (_initialize_proc_events): Add declaration.
15015 * proc-service.c (_initialize_proc_service): Add declaration.
15016 * procfs.c (_initialize_procfs): Add declaration.
15017 * producer.c (_initialize_producer): Add declaration.
15018 * psymtab.c (_initialize_psymtab): Add declaration.
15019 * python/python.c (_initialize_python): Add declaration.
15020 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15021 * record-btrace.c (_initialize_record_btrace): Add declaration.
15022 * record-full.c (_initialize_record_full): Add declaration.
15023 * record.c (_initialize_record): Add declaration.
15024 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15025 * regcache.c (_initialize_regcache): Add declaration.
15026 * reggroups.c (_initialize_reggroup): Add declaration.
15027 * remote-notif.c (_initialize_notif): Add declaration.
15028 * remote-sim.c (_initialize_remote_sim): Add declaration.
15029 * remote.c (_initialize_remote): Add declaration.
15030 * reverse.c (_initialize_reverse): Add declaration.
15031 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15032 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15033 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15034 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15035 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15036 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15037 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15038 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15039 Add declaration.
15040 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15041 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15042 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15043 * rust-exp.y (_initialize_rust_exp): Add declaration.
15044 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15045 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15046 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15047 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15048 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15049 * score-tdep.c (_initialize_score_tdep): Add declaration.
15050 * ser-go32.c (_initialize_ser_dos): Add declaration.
15051 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15052 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15053 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15054 * ser-uds.c (_initialize_ser_socket): Add declaration.
15055 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15056 * serial.c (_initialize_serial): Add declaration.
15057 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15058 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15059 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15060 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15061 * skip.c (_initialize_step_skip): Add declaration.
15062 * sol-thread.c (_initialize_sol_thread): Add declaration.
15063 * solib-aix.c (_initialize_solib_aix): Add declaration.
15064 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15065 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15066 * solib-frv.c (_initialize_frv_solib): Add declaration.
15067 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15068 * solib-target.c (_initialize_solib_target): Add declaration.
15069 * solib.c (_initialize_solib): Add declaration.
15070 * source-cache.c (_initialize_source_cache): Add declaration.
15071 * source.c (_initialize_source): Add declaration.
15072 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15073 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15074 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15075 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15076 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15077 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15078 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15079 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15080 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15081 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15082 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15083 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15084 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15085 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15086 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15087 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15088 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15089 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15090 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15091 * stabsread.c (_initialize_stabsread): Add declaration.
15092 * stack.c (_initialize_stack): Add declaration.
15093 * stap-probe.c (_initialize_stap_probe): Add declaration.
15094 * std-regs.c (_initialize_frame_reg): Add declaration.
15095 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15096 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15097 * symfile.c (_initialize_symfile): Add declaration.
15098 * symmisc.c (_initialize_symmisc): Add declaration.
15099 * symtab.c (_initialize_symtab): Add declaration.
15100 * target.c (_initialize_target): Add declaration.
15101 * target-connection.c (_initialize_target_connection): Add
15102 declaration.
15103 * target-dcache.c (_initialize_target_dcache): Add declaration.
15104 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15105 * thread.c (_initialize_thread): Add declaration.
15106 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15107 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15108 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15109 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15110 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15111 * tracectf.c (_initialize_ctf): Add declaration.
15112 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15113 * tracefile.c (_initialize_tracefile): Add declaration.
15114 * tracepoint.c (_initialize_tracepoint): Add declaration.
15115 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15116 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15117 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15118 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15119 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15120 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15121 * tui/tui.c (_initialize_tui): Add declaration.
15122 * typeprint.c (_initialize_typeprint): Add declaration.
15123 * ui-style.c (_initialize_ui_style): Add declaration.
15124 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15125 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15126 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15127 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15128 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15129 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15130 * unittests/filtered_iterator-selftests.c
15131 (_initialize_filtered_iterator_selftests): Add declaration.
15132 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15133 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15134 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15135 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15136 * unittests/main-thread-selftests.c
15137 (_initialize_main_thread_selftests): Add declaration.
15138 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15139 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15140 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15141 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15142 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15143 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15144 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15145 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15146 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15147 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15148 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15149 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15150 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15151 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15152 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15153 declaration.
15154 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15155 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15156 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15157 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15158 * user-regs.c (_initialize_user_regs): Add declaration.
15159 * utils.c (_initialize_utils): Add declaration.
15160 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15161 * valops.c (_initialize_valops): Add declaration.
15162 * valprint.c (_initialize_valprint): Add declaration.
15163 * value.c (_initialize_values): Add declaration.
15164 * varobj.c (_initialize_varobj): Add declaration.
15165 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15166 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15167 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15168 * windows-nat.c (_initialize_windows_nat): Add declaration.
15169 (_initialize_check_for_gdb_ini): Add declaration.
15170 (_initialize_loadable): Add declaration.
15171 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15172 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15173 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15174 * xcoffread.c (_initialize_xcoffread): Add declaration.
15175 * xml-support.c (_initialize_xml_support): Add declaration.
15176 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15177 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15178 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15179 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15180
15181 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15182
15183 * regformats/regdat.sh: Generate declaration for init function.
15184
15185 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15186
15187 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15188 up.
15189 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15190 close_one_inferior>: New methods.
15191 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15192 pass down target to find_inferior_pid.
15193 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15194 Pass down target to find_inferior_ptid.
15195 (gdbsim_target::create_inferior): Pass down target to
15196 add_thread_silent.
15197 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15198 target down to find_inferior_ptid and switch_to_thread.
15199 (gdbsim_target::close): Update to call close_one_inferior.
15200 (struct resume_data): Remove.
15201 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15202 directly, rather than through a void pointer.
15203 (gdbsim_target::resume): Update to call resume_one_inferior.
15204
15205 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15206
15207 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15208
15209 2020-01-12 Pedro Alves <palves@redhat.com>
15210
15211 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15212 directly for the current inferior instead of
15213 discard_all_inferiors.
15214 (discard_all_inferiors): Delete.
15215
15216 2020-01-11 Tom Tromey <tom@tromey.com>
15217
15218 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15219 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15220 deprecated_safe_get_selected_frame.
15221
15222 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15223
15224 * inferior.c (print_inferior): Switch inferior before printing it.
15225
15226 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15227 Pedro Alves <palves@redhat.com>
15228
15229 * progspace-and-thread.c (switch_to_program_space_and_thread):
15230 Assert there's an inferior for PSPACE. Use
15231 switch_to_inferior_no_thread to switch the inferior too.
15232 * progspace.c (program_space::~program_space): Call
15233 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15234 (program_space::free_all_objfiles): Don't call clear_symtab_users
15235 here.
15236 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15237
15238 2020-01-10 Pedro Alves <palves@redhat.com>
15239
15240 * NEWS: Mention multi-target debugging, "info connections", and
15241 "add-inferior -no-connection".
15242
15243 2020-01-10 Pedro Alves <palves@redhat.com>
15244
15245 * infrun.c: Include "target-connection.h".
15246 (check_multi_target_resumption): New.
15247 (proceed): Call it.
15248 * target-connection.c (make_target_connection_string): Make
15249 extern.
15250 * target-connection.h (make_target_connection_string): Declare.
15251
15252 2020-01-10 Pedro Alves <palves@redhat.com>
15253
15254 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15255 * inferior.c (uiout_field_connection): New function.
15256 (print_inferior): Add new "connection-id" column.
15257 (add_inferior_command): Show connection number/string of added
15258 inferior.
15259 * process-stratum-target.h
15260 (process_stratum_target::connection_string): New virtual method.
15261 (process_stratum_target::connection_number): New field.
15262 * remote.c (remote_target::connection_string): New override.
15263 * target-connection.c: New file.
15264 * target-connection.h: New file.
15265 * target.c (decref_target): Remove process_stratum targets from
15266 the connection list.
15267 (target_stack::push): Add process_stratum targets to the
15268 connection list.
15269
15270 2020-01-10 Pedro Alves <palves@redhat.com>
15271
15272 Revert:
15273 2016-04-12 Pedro Alves <palves@redhat.com>
15274 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15275 Remove references to name.
15276 * serial.h (struct serial) <name>: Delete.
15277
15278 2020-01-10 Pedro Alves <palves@redhat.com>
15279
15280 * gdbarch-selftests.c (register_to_value_test): Remove "target
15281 already pushed" check.
15282
15283 2020-01-10 Pedro Alves <palves@redhat.com>
15284 John Baldwin <jhb@FreeBSD.org>
15285
15286 * aarch64-linux-nat.c
15287 (aarch64_linux_nat_target::thread_architecture): Adjust.
15288 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15289 (task_command_1): Likewise.
15290 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15291 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15292 (aix_thread_target::store_registers)
15293 (aix_thread_target::thread_alive): Adjust.
15294 * amd64-fbsd-tdep.c: Include "inferior.h".
15295 (amd64fbsd_get_thread_local_address): Pass down target.
15296 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15297 thread's gdbarch instead of target_gdbarch.
15298 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15299 get_last_target_status.
15300 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15301 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15302 inferiors.
15303 (update_inserted_breakpoint_locations): Skip if inferiors with no
15304 execution.
15305 (update_global_location_list): When handling moribund locations,
15306 find representative inferior for location's pspace, and use thread
15307 count of its process_stratum target.
15308 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15309 * bsd-uthread.c (bsd_uthread_target::wait): Use
15310 as_process_stratum_target and adjust thread_change_ptid and
15311 add_thread calls.
15312 (bsd_uthread_target::update_thread_list): Use
15313 as_process_stratum_target and adjust find_thread_ptid,
15314 thread_change_ptid and add_thread calls.
15315 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15316 find_thread_ptid call.
15317 * corelow.c (add_to_thread_list): Adjust add_thread call.
15318 (core_target_open): Adjust add_thread_silent and thread_count
15319 calls.
15320 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15321 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15322 * event-top.c (async_disconnect): Pop targets from all inferiors.
15323 * exec.c (add_target_sections): Push exec target on all inferiors
15324 sharing the program space.
15325 (remove_target_sections): Remove the exec target from all
15326 inferiors sharing the program space.
15327 (exec_on_vfork): New.
15328 * exec.h (exec_on_vfork): Declare.
15329 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15330 Pass it down.
15331 (fbsd_nat_target::update_thread_list): Adjust.
15332 (fbsd_nat_target::resume): Adjust.
15333 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15334 down.
15335 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15336 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15337 get_thread_arch_regcache call.
15338 * fork-child.c (gdb_startup_inferior): Pass target down to
15339 startup_inferior and set_executing.
15340 * gdbthread.h (struct process_stratum_target): Forward declare.
15341 (add_thread, add_thread_silent, add_thread_with_info)
15342 (in_thread_list): Add process_stratum_target parameter.
15343 (find_thread_ptid(inferior*, ptid_t)): New overload.
15344 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15345 parameter.
15346 (all_threads()): Delete overload.
15347 (all_threads, all_non_exited_threads): Add process_stratum_target
15348 parameter.
15349 (all_threads_safe): Use brace initialization.
15350 (thread_count): Add process_stratum_target parameter.
15351 (set_resumed, set_running, set_stop_requested, set_executing)
15352 (threads_are_executing, finish_thread_state): Add
15353 process_stratum_target parameter.
15354 (switch_to_thread): Use is_current_thread.
15355 * i386-fbsd-tdep.c: Include "inferior.h".
15356 (i386fbsd_get_thread_local_address): Pass down target.
15357 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15358 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15359 have_inferiors check.
15360 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15361 (inf_ptrace_target::attach): Adjust.
15362 * infcall.c (run_inferior_call): Adjust.
15363 * infcmd.c (run_command_1): Pass target to
15364 scoped_finish_thread_state.
15365 (proceed_thread_callback): Skip inferiors with no execution.
15366 (continue_command): Rename 'all_threads' local to avoid hiding
15367 'all_threads' function. Adjust get_last_target_status call.
15368 (prepare_one_step): Adjust set_running call.
15369 (signal_command): Use user_visible_resume_target. Compare thread
15370 pointers instead of inferior_ptid.
15371 (info_program_command): Adjust to pass down target.
15372 (attach_command): Mark target's 'thread_executing' flag.
15373 (stop_current_target_threads_ns): New, factored out from ...
15374 (interrupt_target_1): ... this. Switch inferior before making
15375 target calls.
15376 * inferior-iter.h
15377 (struct all_inferiors_iterator, struct all_inferiors_range)
15378 (struct all_inferiors_safe_range)
15379 (struct all_non_exited_inferiors_range): Filter on
15380 process_stratum_target too. Remove explicit.
15381 * inferior.c (inferior::inferior): Push dummy target on target
15382 stack.
15383 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15384 Add process_stratum_target parameter, and pass it down.
15385 (have_live_inferiors): Adjust.
15386 (switch_to_inferior_and_push_target): New.
15387 (add_inferior_command, clone_inferior_command): Handle
15388 "-no-connection" parameter. Use
15389 switch_to_inferior_and_push_target.
15390 (_initialize_inferior): Mention "-no-connection" option in
15391 the help of "add-inferior" and "clone-inferior" commands.
15392 * inferior.h: Include "process-stratum-target.h".
15393 (interrupt_target_1): Use bool.
15394 (struct inferior) <push_target, unpush_target, target_is_pushed,
15395 find_target_beneath, top_target, process_target, target_at,
15396 m_stack>: New.
15397 (discard_all_inferiors): Delete.
15398 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15399 (all_inferiors, all_non_exited_inferiors): Add
15400 process_stratum_target parameter.
15401 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15402 (target_last_proc_target): New global.
15403 (follow_fork_inferior): Push target on new inferior. Pass target
15404 to add_thread_silent. Call exec_on_vfork. Handle target's
15405 reference count.
15406 (follow_fork): Adjust get_last_target_status call. Also consider
15407 target.
15408 (follow_exec): Push target on new inferior.
15409 (struct execution_control_state) <target>: New field.
15410 (user_visible_resume_target): New.
15411 (do_target_resume): Call target_async.
15412 (resume_1): Set target's threads_executing flag. Consider resume
15413 target.
15414 (commit_resume_all_targets): New.
15415 (proceed): Also consider resume target. Skip threads of inferiors
15416 with no execution. Commit resumtion in all targets.
15417 (start_remote): Pass current inferior to wait_for_inferior.
15418 (infrun_thread_stop_requested): Consider target as well. Pass
15419 thread_info pointer to clear_inline_frame_state instead of ptid.
15420 (infrun_thread_thread_exit): Consider target as well.
15421 (random_pending_event_thread): New inferior parameter. Use it.
15422 (do_target_wait): Rename to ...
15423 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15424 down.
15425 (threads_are_resumed_pending_p, do_target_wait): New.
15426 (prepare_for_detach): Adjust calls.
15427 (wait_for_inferior): New inferior parameter. Handle it. Use
15428 do_target_wait_1 instead of do_target_wait.
15429 (fetch_inferior_event): Adjust. Switch to representative
15430 inferior. Pass target down.
15431 (set_last_target_status): Add process_stratum_target parameter.
15432 Save target in global.
15433 (get_last_target_status): Add process_stratum_target parameter and
15434 handle it.
15435 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15436 (context_switch): Check inferior_ptid == null_ptid before calling
15437 inferior_thread().
15438 (get_inferior_stop_soon): Pass down target.
15439 (wait_one): Rename to ...
15440 (poll_one_curr_target): ... this.
15441 (struct wait_one_event): New.
15442 (wait_one): New.
15443 (stop_all_threads): Adjust.
15444 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15445 event's target.
15446 (switch_back_to_stepped_thread): Also consider target.
15447 (print_stop_event): Update.
15448 (normal_stop): Update. Also consider the resume target.
15449 * infrun.h (wait_for_inferior): Remove declaration.
15450 (user_visible_resume_target): New declaration.
15451 (get_last_target_status, set_last_target_status): New
15452 process_stratum_target parameter.
15453 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15454 process_stratum_target parameter, and use it.
15455 (clear_inline_frame_state (thread_info*)): New.
15456 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15457 process_stratum_target parameter.
15458 (clear_inline_frame_state (thread_info*)): Declare.
15459 * linux-fork.c (delete_checkpoint_command): Pass target down to
15460 find_thread_ptid.
15461 (checkpoint_command): Adjust.
15462 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15463 instead of just tweaking inferior_ptid.
15464 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15465 (exit_lwp): Pass target down to find_thread_ptid.
15466 (attach_proc_task_lwp_callback): Pass target down to
15467 add_thread/set_running/set_executing.
15468 (linux_nat_target::attach): Pass target down to
15469 thread_change_ptid.
15470 (get_detach_signal): Pass target down to find_thread_ptid.
15471 Consider last target status's target.
15472 (linux_resume_one_lwp_throw, resume_lwp)
15473 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15474 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15475 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15476 (linux_nat_target::async_wait_fd): New.
15477 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15478 target down.
15479 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15480 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15481 * linux-thread-db.c (struct thread_db_info::process_target): New
15482 field.
15483 (add_thread_db_info): Save target.
15484 (get_thread_db_info): New process_stratum_target parameter. Also
15485 match target.
15486 (delete_thread_db_info): New process_stratum_target parameter.
15487 Also match target.
15488 (thread_from_lwp): Adjust to pass down target.
15489 (thread_db_notice_clone): Pass down target.
15490 (check_thread_db_callback): Pass down target.
15491 (try_thread_db_load_1): Always push the thread_db target.
15492 (try_thread_db_load, record_thread): Pass target down.
15493 (thread_db_target::detach): Pass target down. Always unpush the
15494 thread_db target.
15495 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15496 target down. Always unpush the thread_db target.
15497 (find_new_threads_callback, thread_db_find_new_threads_2)
15498 (thread_db_target::update_thread_list): Pass target down.
15499 (thread_db_target::pid_to_str): Pass current inferior down.
15500 (thread_db_target::get_thread_local_address): Pass target down.
15501 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15502 target down.
15503 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15504 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15505 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15506 (procfs_init_inferior): Rename to ...
15507 (procfs_target::procfs_init_inferior): ... this and adjust.
15508 (procfs_target::create_inferior, procfs_notice_thread)
15509 (procfs_do_thread_registers): Adjust.
15510 * ppc-fbsd-tdep.c: Include "inferior.h".
15511 (ppcfbsd_get_thread_local_address): Pass down target.
15512 * proc-service.c (ps_xfer_memory): Switch current inferior and
15513 program space as well.
15514 (get_ps_regcache): Pass target down.
15515 * process-stratum-target.c
15516 (process_stratum_target::thread_address_space)
15517 (process_stratum_target::thread_architecture): Pass target down.
15518 * process-stratum-target.h
15519 (process_stratum_target::threads_executing): New field.
15520 (as_process_stratum_target): New.
15521 * ravenscar-thread.c
15522 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15523 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15524 down.
15525 * record-btrace.c (record_btrace_target::info_record): Adjust.
15526 (record_btrace_target::record_method)
15527 (record_btrace_target::record_is_replaying)
15528 (record_btrace_target::fetch_registers)
15529 (get_thread_current_frame_id, record_btrace_target::resume)
15530 (record_btrace_target::wait, record_btrace_target::stop): Pass
15531 target down.
15532 * record-full.c (record_full_wait_1): Switch to event thread.
15533 Pass target down.
15534 * regcache.c (regcache::regcache)
15535 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15536 process_stratum_target parameter and handle it.
15537 (current_thread_target): New global.
15538 (get_thread_regcache): Add process_stratum_target parameter and
15539 handle it. Switch inferior before calling target method.
15540 (get_thread_regcache): Pass target down.
15541 (get_thread_regcache_for_ptid): Pass target down.
15542 (registers_changed_ptid): Add process_stratum_target parameter and
15543 handle it.
15544 (registers_changed_thread, registers_changed): Pass target down.
15545 (test_get_thread_arch_aspace_regcache): New.
15546 (current_regcache_test): Define a couple local test_target_ops
15547 instances and use them for testing.
15548 (readwrite_regcache): Pass process_stratum_target parameter.
15549 (cooked_read_test, cooked_write_test): Pass mock_target down.
15550 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15551 (get_thread_arch_aspace_regcache): Add process_stratum_target
15552 parameter.
15553 (regcache::target): New method.
15554 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15555 (regcache::registers_changed_ptid): Add process_stratum_target
15556 parameter.
15557 (regcache::m_target): New field.
15558 (registers_changed_ptid): Add process_stratum_target parameter.
15559 * remote.c (remote_state::supports_vCont_probed): New field.
15560 (remote_target::async_wait_fd): New method.
15561 (remote_unpush_and_throw): Add remote_target parameter.
15562 (get_current_remote_target): Adjust.
15563 (remote_target::remote_add_inferior): Push target.
15564 (remote_target::remote_add_thread)
15565 (remote_target::remote_notice_new_inferior)
15566 (get_remote_thread_info): Pass target down.
15567 (remote_target::update_thread_list): Skip threads of inferiors
15568 bound to other targets. (remote_target::close): Don't discard
15569 inferiors. (remote_target::add_current_inferior_and_thread)
15570 (remote_target::process_initial_stop_replies)
15571 (remote_target::start_remote)
15572 (remote_target::remote_serial_quit_handler): Pass down target.
15573 (remote_target::remote_unpush_target): New remote_target
15574 parameter. Unpush the target from all inferiors.
15575 (remote_target::remote_unpush_and_throw): New remote_target
15576 parameter. Pass it down.
15577 (remote_target::open_1): Check whether the current inferior has
15578 execution instead of checking whether any inferior is live. Pass
15579 target down.
15580 (remote_target::remote_detach_1): Pass down target. Use
15581 remote_unpush_target.
15582 (extended_remote_target::attach): Pass down target.
15583 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15584 (remote_target::append_resumption): Pass down target.
15585 (remote_target::append_pending_thread_resumptions)
15586 (remote_target::remote_resume_with_hc, remote_target::resume)
15587 (remote_target::commit_resume): Pass down target.
15588 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15589 (remote_target::interrupt_query)
15590 (remote_target::remove_new_fork_children)
15591 (remote_target::check_pending_events_prevent_wildcard_vcont)
15592 (remote_target::remote_parse_stop_reply)
15593 (remote_target::process_stop_reply): Pass down target.
15594 (first_remote_resumed_thread): New remote_target parameter. Pass
15595 it down.
15596 (remote_target::wait_as): Pass down target.
15597 (unpush_and_perror): New remote_target parameter. Pass it down.
15598 (remote_target::readchar, remote_target::remote_serial_write)
15599 (remote_target::getpkt_or_notif_sane_1)
15600 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15601 down target.
15602 (remote_target::mourn_inferior): Pass down target. Use
15603 remote_unpush_target.
15604 (remote_target::core_of_thread)
15605 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15606 (remote_target::pid_to_exec_file)
15607 (remote_target::thread_handle_to_thread_info): Pass down target.
15608 (remote_target::async_wait_fd): New.
15609 * riscv-fbsd-tdep.c: Include "inferior.h".
15610 (riscv_fbsd_get_thread_local_address): Pass down target.
15611 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15612 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15613 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15614 Adjust.
15615 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15616 * solib-svr4.c (enable_break): Pass down target.
15617 * spu-multiarch.c (parse_spufs_run): Pass down target.
15618 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15619 * target-delegates.c: Regenerate.
15620 * target.c (g_target_stack): Delete.
15621 (current_top_target): Return the current inferior's top target.
15622 (target_has_execution_1): Refer to the passed-in inferior's top
15623 target.
15624 (target_supports_terminal_ours): Check whether the initial
15625 inferior was already created.
15626 (decref_target): New.
15627 (target_stack::push): Incref/decref the target.
15628 (push_target, push_target, unpush_target): Adjust.
15629 (target_stack::unpush): Defref target.
15630 (target_is_pushed): Return bool. Adjust to refer to the current
15631 inferior's target stack.
15632 (dispose_inferior): Delete, and inline parts ...
15633 (target_preopen): ... here. Only dispose of the current inferior.
15634 (target_detach): Hold strong target reference while detaching.
15635 Pass target down.
15636 (target_thread_name): Add assertion.
15637 (target_resume): Pass down target.
15638 (target_ops::beneath, find_target_at): Adjust to refer to the
15639 current inferior's target stack.
15640 (get_dummy_target): New.
15641 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15642 has a thread running.
15643 (initialize_targets): Rename to ...
15644 (_initialize_target): ... this.
15645 * target.h: Include "gdbsupport/refcounted-object.h".
15646 (struct target_ops): Inherit refcounted_object.
15647 (target_ops::shortname, target_ops::longname): Make const.
15648 (target_ops::async_wait_fd): New method.
15649 (decref_target): Declare.
15650 (struct target_ops_ref_policy): New.
15651 (target_ops_ref): New typedef.
15652 (get_dummy_target): Declare function.
15653 (target_is_pushed): Return bool.
15654 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15655 (all_matching_threads_iterator::all_matching_threads_iterator):
15656 Handle filter target.
15657 * thread-iter.h (struct all_matching_threads_iterator, struct
15658 all_matching_threads_range, class all_non_exited_threads_range):
15659 Filter by target too. Remove explicit.
15660 * thread.c (threads_executing): Delete.
15661 (inferior_thread): Pass down current inferior.
15662 (clear_thread_inferior_resources): Pass down thread pointer
15663 instead of ptid_t.
15664 (add_thread_silent, add_thread_with_info, add_thread): Add
15665 process_stratum_target parameter. Use it for thread and inferior
15666 searches.
15667 (is_current_thread): New.
15668 (thread_info::deletable): Use it.
15669 (find_thread_ptid, thread_count, in_thread_list)
15670 (thread_change_ptid, set_resumed, set_running): New
15671 process_stratum_target parameter. Pass it down.
15672 (set_executing): New process_stratum_target parameter. Pass it
15673 down. Adjust reference to 'threads_executing'.
15674 (threads_are_executing): New process_stratum_target parameter.
15675 Adjust reference to 'threads_executing'.
15676 (set_stop_requested, finish_thread_state): New
15677 process_stratum_target parameter. Pass it down.
15678 (switch_to_thread): Also match inferior.
15679 (switch_to_thread): New process_stratum_target parameter. Pass it
15680 down.
15681 (update_threads_executing): Reimplement.
15682 * top.c (quit_force): Pop targets from all inferior.
15683 (gdb_init): Don't call initialize_targets.
15684 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15685 Declare.
15686 (windows_add_thread, windows_delete_thread): Adjust.
15687 (get_windows_debug_event): Rename to ...
15688 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15689 * tracefile-tfile.c (tfile_target_open): Pass down target.
15690 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15691 Forward declare.
15692 (switch_to_thread): Add process_stratum_target parameter.
15693 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15694 parameter. Use it.
15695 (mi_on_resume): Pass target down.
15696 * nat/fork-inferior.c (startup_inferior): Add
15697 process_stratum_target parameter. Pass it down.
15698 * nat/fork-inferior.h (startup_inferior): Add
15699 process_stratum_target parameter.
15700 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15701
15702 2020-01-10 Pedro Alves <palves@redhat.com>
15703
15704 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15705 directly. Instead find the first thread in the thread list and
15706 use switch_to_thread.
15707
15708 2020-01-10 Pedro Alves <palves@redhat.com>
15709
15710 * remote.c (remote_target::remote_add_inferior): Don't bind a
15711 process to the current inferior if the current inferior is already
15712 bound to a process.
15713
15714 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15715 Pedro Alves <palves@redhat.com>
15716
15717 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15718 If no process is specified, return null_ptid instead of
15719 inferior_ptid.
15720 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15721 TARGET_WAITKIND_SIGNALLED with no pid.
15722
15723 2020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * remote.c (first_remote_resumed_thread): New.
15726 (remote_target::wait_as): Use it as default event_ptid instead of
15727 inferior_ptid.
15728
15729 2020-01-10 Pedro Alves <palves@redhat.com>
15730
15731 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15732
15733 2020-01-10 Pedro Alves <palves@redhat.com>
15734
15735 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15736 not -1.
15737
15738 2020-01-10 Pedro Alves <palves@redhat.com>
15739
15740 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15741 ptid to get_last_target_status.
15742 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15743 ptid to get_last_target_status.
15744 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15745 get_last_target_status.
15746 (info_program_command): Don't pass a target_waitstatus to
15747 get_last_target_status.
15748 * infrun.c (init_wait_for_inferior): Use
15749 nullify_last_target_wait_ptid.
15750 (get_last_target_status): Handle nullptr arguments.
15751 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15752 (print_stop_event): Don't pass a ptid to get_last_target_status.
15753 (normal_stop): Don't pass a ptid to get_last_target_status.
15754 * infrun.h (get_last_target_status, set_last_target_status): Move
15755 comments here and update.
15756 (nullify_last_target_wait_ptid): Declare.
15757 * linux-fork.c (fork_load_infrun_state): Remove local extern
15758 declaration of nullify_last_target_wait_ptid.
15759 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15760 to get_last_target_status.
15761
15762 2020-01-10 Pedro Alves <palves@redhat.com>
15763
15764 * gdbthread.h (scoped_restore_current_thread)
15765 <dont_restore, restore, m_dont_restore>: Declare.
15766 * thread.c (thread_alive): Add assertion. Return bool.
15767 (switch_to_thread_if_alive): New.
15768 (prune_threads): Switch inferior/thread.
15769 (print_thread_info_1): Switch thread before calling target methods.
15770 (scoped_restore_current_thread::restore): New, factored out from
15771 ...
15772 (scoped_restore_current_thread::~scoped_restore_current_thread):
15773 ... this.
15774 (scoped_restore_current_thread::scoped_restore_current_thread):
15775 Add assertion.
15776 (thread_apply_all_command, thread_select): Use
15777 switch_to_thread_if_alive.
15778 * infrun.c (proceed, restart_threads, handle_signal_stop)
15779 (switch_back_to_stepped_thread): Switch current thread before
15780 calling target methods.
15781
15782 2020-01-10 Pedro Alves <palves@redhat.com>
15783
15784 * inferior.c (switch_to_inferior_no_thread): New function,
15785 factored out from ...
15786 (inferior_command): ... here.
15787 * inferior.h (switch_to_inferior_no_thread): Declare.
15788 * mi/mi-main.c (run_one_inferior): Use
15789 switch_to_inferior_no_thread.
15790
15791 2020-01-10 Pedro Alves <palves@redhat.com>
15792
15793 * infcmd.c (kill_command): Remove dead code.
15794
15795 2020-01-10 Pedro Alves <palves@redhat.com>
15796
15797 * remote.c (remote_target::mourn_inferior): No longer check
15798 whether the target is running.
15799
15800 2020-01-10 Pedro Alves <palves@redhat.com>
15801
15802 * corelow.c (core_target::has_execution): Change parameter type to
15803 inferior pointer.
15804 * inferior.c (number_of_live_inferiors): Use
15805 inferior::has_execution instead of target_has_execution_1.
15806 * inferior.h (inferior::has_execution): New.
15807 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15808 inferior::has_execution instead of target_has_execution_1.
15809 * process-stratum-target.c
15810 (process_stratum_target::has_execution): Change parameter type to
15811 inferior pointer. Check the inferior's PID instead of
15812 inferior_ptid.
15813 * process-stratum-target.h
15814 (process_stratum_target::has_execution): Change parameter type to
15815 inferior pointer.
15816 * record-full.c (record_full_core_target::has_execution): Change
15817 parameter type to inferior pointer.
15818 * target.c (target_has_execution_1): Change parameter type to
15819 inferior pointer.
15820 (target_has_execution_current): Adjust.
15821 * target.h (target_ops::has_execution): Change parameter type to
15822 inferior pointer.
15823 (target_has_execution_1): Change parameter type to inferior
15824 pointer. Change return type to bool.
15825 * tracefile.h (tracefile_target::has_execution): Change parameter
15826 type to inferior pointer.
15827
15828 2020-01-10 Pedro Alves <palves@redhat.com>
15829
15830 * exceptions.c (print_flush): Remove current_top_target() check.
15831
15832 2020-01-10 Pedro Alves <palves@redhat.com>
15833
15834 * remote.c (show_remote_exec_file): Show the current inferior's
15835 exec-file instead of the command variable's value.
15836
15837 2020-01-10 Pedro Alves <palves@redhat.com>
15838
15839 * record-full.c (record_full_resume_ptid): New global.
15840 (record_full_target::resume): Set it.
15841 (record_full_wait_1): Use record_full_resume_ptid instead of
15842 inferior_ptid.
15843
15844 2020-01-10 Pedro Alves <palves@redhat.com>
15845
15846 * gdbthread.h (scoped_restore_current_thread)
15847 <dont_restore, restore, m_dont_restore>: Declare.
15848 * thread.c (thread_alive): Add assertion. Return bool.
15849 (switch_to_thread_if_alive): New.
15850 (prune_threads): Switch inferior/thread.
15851 (print_thread_info_1): Switch thread before calling target methods.
15852 (scoped_restore_current_thread::restore): New, factored out from
15853 ...
15854 (scoped_restore_current_thread::~scoped_restore_current_thread):
15855 ... this.
15856 (scoped_restore_current_thread::scoped_restore_current_thread):
15857 Add assertion.
15858 (thread_apply_all_command, thread_select): Use
15859 switch_to_thread_if_alive.
15860
15861 2020-01-10 George Barrett <bob@bob131.so>
15862
15863 * stap-probe.c (stap_modify_semaphore): Don't check for null
15864 semaphores.
15865 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15866 for null semaphores.
15867
15868 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15869
15870 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15871 all source windows, and maintain horizontal scroll status while
15872 doing so.
15873
15874 2020-01-09 Tom Tromey <tom@tromey.com>
15875
15876 PR tui/18932:
15877 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15878 update_source_window, not print_source_lines.
15879
15880 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15881
15882 * tui/tui.c (tui_enable): Register tui hooks after calling
15883 tui_display_main.
15884
15885 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15886
15887 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15888
15889 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15890
15891 * thread.c (print_thread_info_1): Fix indentation.
15892
15893 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15894
15895 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15896 unique_xmalloc_ptr outside the if to always free the demangled name.
15897
15898 2020-01-08 Tom Tromey <tromey@adacore.com>
15899
15900 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15901 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15902 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15903 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15904 Remove.
15905 (section_offsets): New typedef.
15906 * symtab.c (fixup_section, get_msymbol_address): Update.
15907 * symmisc.c (dump_msymbols): Update.
15908 * symfile.h (relative_addr_info_to_section_offsets)
15909 (symfile_map_offsets_to_segments): Update.
15910 * symfile.c (build_section_addr_info_from_objfile)
15911 (init_objfile_sect_indices): Update.
15912 (struct place_section_arg): Change type of "offsets".
15913 (place_section): Update.
15914 (relative_addr_info_to_section_offsets): Change type of
15915 "section_offsets". Remove "num_sections" parameter.
15916 (default_symfile_offsets, syms_from_objfile_1)
15917 (set_objfile_default_section_offset): Update.
15918 (reread_symbols): No need to preserve section offsets by hand.
15919 (symfile_map_offsets_to_segments): Change type of "offsets".
15920 * stap-probe.c (relocate_address): Update.
15921 * stabsread.h (process_one_symbol): Update.
15922 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15923 (solib_target_relocate_section_addresses): Update.
15924 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15925 Update.
15926 * solib-frv.c (frv_relocate_main_executable): Update.
15927 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15928 * solib-aix.c (solib_aix_get_section_offsets): Change return
15929 type.
15930 (solib_aix_solib_create_inferior_hook): Update.
15931 * remote.c (remote_target::get_offsets): Update.
15932 * psymtab.c (find_pc_sect_psymtab): Update.
15933 * psympriv.h (struct partial_symbol) <address, text_low,
15934 text_high>: Update.
15935 * objfiles.h (obj_section_offset): Update.
15936 (struct objfile) <section_offsets>: Change type.
15937 <num_sections>: Remove.
15938 (objfile_relocate): Update.
15939 * objfiles.c (entry_point_address_query): Update
15940 (relocate_one_symbol): Change type of "section_offsets".
15941 (objfile_relocate1, objfile_relocate1): Change type of
15942 "new_offsets".
15943 (objfile_rebase1): Update.
15944 * mipsread.c (mipscoff_symfile_read): Update.
15945 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15946 parameter.
15947 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15948 (parse_external, psymtab_to_symtab_1): Update.
15949 * machoread.c (macho_symfile_offsets): Update.
15950 * ia64-tdep.c (ia64_find_unwind_table): Update.
15951 * hppa-tdep.c (read_unwind_info): Update.
15952 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15953 * dwarf2read.c (create_addrmap_from_index)
15954 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15955 (process_psymtab_comp_unit_reader, add_partial_symbol)
15956 (add_partial_subprogram, process_full_comp_unit)
15957 (read_file_scope, read_func_scope, read_lexical_block_scope)
15958 (read_call_site_scope, dwarf2_rnglists_process)
15959 (dwarf2_ranges_process, dwarf2_ranges_read)
15960 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15961 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15962 Update.
15963 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15964 Update.
15965 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15966 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15967 (process_one_symbol): Change type of "section_offsets".
15968 * ctfread.c (get_objfile_text_range): Update.
15969 * coffread.c (coff_symtab_read, enter_linenos)
15970 (process_coff_symbol): Update.
15971 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15972 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15973
15974 2020-01-08 Tom Tromey <tromey@adacore.com>
15975
15976 * dwarf2read.c (parse_macro_definition): Use std::string.
15977 (parse_macro_definition): Likewise.
15978
15979 2020-01-08 Tom Tromey <tromey@adacore.com>
15980
15981 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15982 (ATTR_ALLOC_CHUNK): Remove.
15983
15984 2020-01-08 Tom Tromey <tromey@adacore.com>
15985
15986 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15987
15988 2020-01-08 Tom Tromey <tromey@adacore.com>
15989
15990 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15991 (dwarf2_compute_name, open_dwo_file): Likewise.
15992 (process_enumeration_scope): Use std::vector.
15993 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15994 (partial_die_info::fixup, dwarf2_start_subfile)
15995 (guess_full_die_structure_name, dwarf2_name): Likewise.
15996 (determine_prefix): Update.
15997 (guess_full_die_structure_name): Make return type const.
15998 (partial_die_full_name): Return unique_xmalloc_ptr.
15999 (DW_FIELD_ALLOC_CHUNK): Remove.
16000
16001 2020-01-07 Tom Tromey <tromey@adacore.com>
16002
16003 PR build/24937:
16004 * stap-probe.c (class stap_static_probe_ops): Add constructor.
16005
16006 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16007
16008 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
16009
16010 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16011
16012 * stack.c (print_frame_info): Move disassemble_next_line code
16013 inside source_print block.
16014
16015 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16016
16017 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16018 gdb/signals.h, as we are now using native signal symbols.
16019
16020 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16021
16022 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16023 overflow by an early check of content vs threshold.
16024 * tui/tui-source.c (tui_source_window::line_is_displayed):
16025 Likewise.
16026
16027 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16028
16029 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16030
16031 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16032
16033 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16034 export table if no section contains it's RVA.
16035
16036 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16037
16038 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16039
16040 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16041
16042 * source.c (print_source_lines_base): Set last_line_listed.
16043
16044 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16045
16046 * tui/tui-disasm.c: Remove trailing spaces.
16047
16048 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16049 Pedro Alves <palves@redhat.com>
16050
16051 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16052 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16053 (windows_gdb_signal_to_target): New function, uses the above
16054 enumeration to convert GDB internal signal codes to equivalent
16055 Windows codes.
16056 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16057 * windows-nat.c: Include "gdb_wait.h".
16058 (get_windows_debug_event): Extract the fatal exception from the
16059 exit status and convert to the equivalent Posix signal number.
16060 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16061 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16062 * gdbsupport/gdb_wait.c: New file, implements
16063 windows_status_to_termsig.
16064 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16065 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16066
16067 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16068
16069 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16070 show_layout.
16071
16072 2020-01-05 Luis Machado <luis.machado@linaro.org>
16073
16074 * aarch64-linux-nat.c
16075 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16076 and bfd_mach_aarch64.
16077
16078 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16079
16080 * ui-file.c (stdio_file::can_emit_style_escape)
16081 (tee_file::can_emit_style_escape): Ensure style is used also on
16082 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16083 to gdb_stdout.
16084 * main.c (set_gdb_data_directory): Use file style to output the
16085 warning that the given pathname is not a directory.
16086 * top.c (show_history_filename, gdb_safe_append_history)
16087 (show_gdb_datadir): Use file style.
16088
16089 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16090
16091 * solib-target.c (struct lm_info_target):
16092 Change offsets to be a unique_xmalloc_ptr.
16093 (solib_target_relocate_section_addresses): Update.
16094
16095 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16096
16097 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16098
16099 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16100
16101 * MAINTAINERS (Write After Approval): Add myself.
16102
16103 2020-01-02 Luis Machado <luis.machado@linaro.org>
16104
16105 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16106 Cell BE architecture.
16107 * target.h (struct target_ops) <thread_architecture>: Likewise.
16108
16109 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16110
16111 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16112
16113 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16114
16115 * MAINTAINERS (Write After Approval): Add myself.
16116
16117 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16118
16119 * gdbarch.sh: Update copyright year range of generated files.
16120
16121 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16122
16123 Update copyright year range in all GDB files.
16124
16125 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16126
16127 * copyright.py: Convert to Python 3.
16128
16129 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16130
16131 * copyright.py: Adapt after move of gnulib directory from gdb
16132 directory to toplevel directory.
16133
16134 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16135
16136 * copyright.py (main): Exit if run from the wrong directory.
16137
16138 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16139
16140 * top.c (print_gdb_version): Change copyright year to 2020.
16141
16142 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16143
16144 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16145
16146 For older changes see ChangeLog-2019.
16147 \f
16148 Local Variables:
16149 mode: change-log
16150 left-margin: 8
16151 fill-column: 74
16152 version-control: never
16153 coding: utf-8
16154 End:
This page took 0.338853 seconds and 5 git commands to generate.