]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdbsupport: replace AC_TRY_COMPILE in ptrace.m4
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * configure: Re-generate.
4
5 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * configure: Re-generate.
8
9 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * acinclude.m4: Modernize.
12 * configure: Re-generate.
13
14 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
15
16 * configure.ac: Modernize.
17 * configure: Re-generate.
18
19 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
20
21 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
22 * configure: Re-generate.
23 * configure.ac: Remove AM_PROG_CC_STDC.
24
25 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
28 AC_CANONICAL_SYSTEM.
29 * configure: Re-generate.
30
31 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
32
33 * infrun.h (displaced_debug_printf): New macro. Replace
34 displaced debug prints throughout to use it.
35 (displaced_debug_printf_1): New declaration.
36 (displaced_step_dump_bytes): Return string, remove ui_file
37 parameter, update all callers.
38 * infrun.c (displaced_debug_printf_1): New function.
39 (displaced_step_dump_bytes): Return string, remove ui_file
40 parameter
41
42 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
45
46 2020-10-30 Tom Tromey <tromey@adacore.com>
47
48 * Makefile.in (stamp-init): Depend on config.status.
49
50 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
53
54 2020-10-30 Pedro Alves <pedro@palves.net>
55
56 * thread.c (lookup_selected_frame): Move ...
57 * frame.c (lookup_selected_frame): ... here.
58
59 2020-10-30 Pedro Alves <pedro@palves.net>
60
61 * blockframe.c (block_innermost_frame): Use get_selected_frame.
62 * frame.c
63 (scoped_restore_selected_frame::scoped_restore_selected_frame):
64 Use save_selected_frame. Save language as well.
65 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
66 Use restore_selected_frame, and restore language as well.
67 (selected_frame_id, selected_frame_level): New.
68 (selected_frame): Update comments.
69 (save_selected_frame, restore_selected_frame): New.
70 (get_selected_frame): Use lookup_selected_frame.
71 (get_selected_frame_if_set): Delete.
72 (select_frame): Record selected_frame_level and selected_frame_id.
73 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
74 fields.
75 (get_selected_frame): Make 'message' parameter optional.
76 (get_selected_frame_if_set): Delete declaration.
77 (select_frame): Update comments.
78 (save_selected_frame, restore_selected_frame)
79 (lookup_selected_frame): Declare.
80 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
81 * infrun.c (struct infcall_control_state) <selected_frame_level>:
82 New field.
83 (save_infcall_control_state): Use save_selected_frame.
84 (restore_selected_frame): Delete.
85 (restore_infcall_control_state): Use restore_selected_frame.
86 * stack.c (select_frame_command_core, frame_command_core): Use
87 get_selected_frame.
88 * thread.c (restore_selected_frame): Rename to ...
89 (lookup_selected_frame): ... this and make extern. Select the
90 current frame if the frame level is -1.
91 (scoped_restore_current_thread::restore): Also restore the
92 language.
93 (scoped_restore_current_thread::~scoped_restore_current_thread):
94 Don't try/catch.
95 (scoped_restore_current_thread::scoped_restore_current_thread):
96 Save the language as well. Use save_selected_frame.
97
98 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
101 documentation.
102 * gdbarch.h: Re-generate.
103
104 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
107 parameter.
108 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
109 Likewise.
110 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
111 Likewise.
112 * arch-utils.c (default_displaced_step_hw_singlestep):
113 Likewise.
114 * arch-utils.h (default_displaced_step_hw_singlestep):
115 Likewise.
116 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
117 Likewise.
118 * s390-tdep.c (s390_displaced_step_hw_singlestep):
119 Likewise.
120 * gdbarch.c: Re-generate.
121 * gdbarch.h: Re-generate.
122 * infrun.c (resume_1): Adjust.
123
124 2020-10-29 Tom Tromey <tom@tromey.com>
125
126 * progspace.c (program_space::~program_space): Don't call
127 exec_close.
128
129 2020-10-29 Tom Tromey <tom@tromey.com>
130
131 * exec.c (exec_target::close): Don't change current program
132 space.
133
134 2020-10-29 Tom Tromey <tom@tromey.com>
135
136 * symfile.c (add_symbol_file_command): Update.
137 * exec.c (program_space::add_target_sections): Rename.
138 * symfile-mem.c (symbol_file_add_from_memory): Update.
139 * progspace.h (struct program_space) <add_target_sections>:
140 Declare new overload.
141 * exec.h (add_target_sections_of_objfile): Don't declare.
142
143 2020-10-29 Tom Tromey <tom@tromey.com>
144
145 * solib.c (solib_map_sections): Update.
146 * exec.c (program_space::add_target_sections): Now a method.
147 (exec_file_attach): Update.
148 * exec.h (add_target_sections): Don't declare.
149 * progspace.h (struct program_space) <add_target_sections>:
150 Declare.
151
152 2020-10-29 Tom Tromey <tom@tromey.com>
153
154 * progspace.h (struct program_space) <remove_target_sections>:
155 Declare.
156 * exec.c (program_space::remove_target_sections): Now a method.
157 * exec.h (remove_target_sections): Don't declare.
158
159 2020-10-29 Tom Tromey <tom@tromey.com>
160
161 * inferior.c (delete_inferior): Update.
162 * progspace.c (program_space::empty): Rename from
163 program_space_empty_p. Return bool.
164 * progspace.h (struct program_space) <empty>: New method.
165 (program_space_empty_p): Don't declare.
166
167 2020-10-29 Tom Tromey <tom@tromey.com>
168
169 * progspace.c (program_space::~program_space): Don't call
170 clear_program_space_solib_cache.
171 (program_space::clear_solib_cache): Rename from
172 clear_solib_cache.
173 * solib.c (handle_solib_event): Update.
174 * progspace.h (struct program_space) <clear_solib_cache>: New
175 method.
176 (clear_program_space_solib_cache): Don't declare.
177
178 2020-10-29 Tom Tromey <tom@tromey.com>
179
180 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
181 * target.c (info_target_command): Update.
182 * symfile.c (syms_from_objfile_1, finish_new_objfile)
183 (symbol_file_clear, reread_symbols): Update.
184 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
185 * stabsread.c (scan_file_globals): Update.
186 * solib.c (update_solib_list): Update.
187 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
188 (svr4_fetch_objfile_link_map, enable_break)
189 (svr4_relocate_main_executable)
190 (svr4_iterate_over_objfiles_in_search_order): Update.
191 * solib-frv.c (lm_base, enable_break)
192 (frv_relocate_main_executable): Update.
193 (main_got, frv_fdpic_find_canonical_descriptor): Update.
194 (frv_fetch_objfile_link_map): Update.
195 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
196 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
197 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
198 * remote.c (remote_target::get_offsets): Update.
199 (remote_target::start_remote)
200 (extended_remote_target::post_attach): Update.
201 * objfiles.c (entry_point_address_query): Update.
202 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
203 * minsyms.c (get_symbol_leading_char): Update.
204 * frame.c (inside_main_func): Update.
205 * progspace.h (symfile_objfile): Remove macro.
206
207 2020-10-29 Tom Tromey <tom@tromey.com>
208
209 * exec.c (exec_file_attach): Update.
210 * progspace.c (program_space::exec_close): Update.
211 * progspace.h (struct program_space) <ebfd>: Now a
212 gdb_bfd_ref_ptr.
213 <set_exec_bfd>: Change argument type.
214 <exec_bfd>: Update.
215
216 2020-10-29 Tom Tromey <tom@tromey.com>
217
218 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
219 * symfile.c (reread_symbols): Update.
220 * symfile-mem.c (add_symbol_file_from_memory_command)
221 (add_vsyscall_page): Update.
222 * source-cache.c (source_cache::get_plain_source_lines): Update.
223 * solib-svr4.c (find_program_interpreter, elf_locate_base)
224 (svr4_current_sos_direct, svr4_exec_displacement)
225 (svr4_relocate_main_executable): Update.
226 (svr4_iterate_over_objfiles_in_search_order): Update.
227 * solib-frv.c (enable_break2, enable_break): Update.
228 * solib-dsbt.c (lm_base, enable_break): Update.
229 * solib-darwin.c (find_program_interpreter)
230 (darwin_solib_create_inferior_hook): Update.
231 * sol-thread.c (rw_common, ps_pdmodel): Update.
232 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
233 * remote.c (compare_sections_command)
234 (remote_target::trace_set_readonly_regions): Update.
235 * remote-sim.c (get_sim_inferior_data)
236 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
237 (gdbsim_target_open, gdbsim_target::files_info): Update.
238 * exec.h (exec_bfd): Remove macro.
239 * progspace.c (initialize_progspace): Update.
240 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
241 Update.
242 * nto-procfs.c (nto_procfs_target::post_attach)
243 (nto_procfs_target::create_inferior): Update.
244 * maint.c (maintenance_info_sections): Update.
245 * linux-thread-db.c (thread_db_target::get_thread_local_address):
246 Update.
247 * infcmd.c (post_create_inferior): Update.
248 * gcore.c (default_gcore_arch, default_gcore_target): Update.
249 (objfile_find_memory_regions): Update.
250 * exec.c (validate_exec_file, exec_file_attach)
251 (exec_read_partial_read_only, print_section_info): Update.
252 * corelow.c (core_target_open): Update.
253 * corefile.c (reopen_exec_file, validate_files): Update.
254 * arm-tdep.c (gdb_print_insn_arm): Update.
255 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
256 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
257 methods.
258
259 2020-10-29 Tom Tromey <tom@tromey.com>
260
261 * progspace.h (current_target_sections): Remove macro.
262 * solib-svr4.c (scan_dyntag): Update.
263 * solib-dsbt.c (scan_dyntag): Update.
264 * exec.c (exec_target::close): Update.
265 (add_target_sections, add_target_sections_of_objfile)
266 (remove_target_sections, exec_target::get_section_table)
267 (exec_target::files_info, set_section_command)
268 (exec_set_section_address, exec_target::has_memory)
269 (exec_target::has_memory): Update.
270
271 2020-10-29 Tom Tromey <tom@tromey.com>
272
273 * source-cache.c (source_cache::get_plain_source_lines): Use
274 current_program_space.
275 * corefile.c (reopen_exec_file): Use current_program_space.
276 * exec.c (exec_file_attach): Use current_program_space.
277 * exec.h (exec_bfd_mtime): Remove.
278
279 2020-10-29 Tom Tromey <tom@tromey.com>
280
281 * gcore.c (default_gcore_mach): Remove.
282 (create_gcore_bfd): Update.
283
284 2020-10-29 Tom Tromey <tom@tromey.com>
285
286 * progspace.c (program_space::exec_close): New method, from
287 exec_close in exec.c.
288 * exec.c (exec_close): Move to progspace.c.
289 (exec_target::close, exec_file_attach): Update.
290 * progspace.h (struct program_space) <exec_close>: Declare
291 method.
292
293 2020-10-29 Tom Tromey <tom@tromey.com>
294
295 * progspace.h (struct program_space) <exec_filename>: Rename from
296 pspace_exec_filename. Now a unique_xmalloc_ptr.
297 * inferior.c (print_selected_inferior): Update.
298 (print_inferior): Update.
299 * mi/mi-main.c (print_one_inferior): Update.
300 * exec.h (exec_filename): Remove macro.
301 * corefile.c (get_exec_file): Update.
302 * exec.c (exec_close): Update.
303 (exec_file_attach): Update.
304 * progspace.c (clone_program_space): Update.
305 (print_program_space): Update.
306
307 2020-10-29 Tom Tromey <tom@tromey.com>
308
309 * target-section.h (struct target_section): Add constructor.
310 * exec.c (build_section_table, add_target_sections_of_objfile):
311 Update.
312 * corelow.c (core_target::build_file_mappings): Update.
313
314 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
315
316 PR gdb/19318
317 * inferior.c (detach_inferior_command): Restore the current thread.
318 (kill_inferior_command): Ditto.
319
320 2020-10-28 Tom de Vries <tdevries@suse.de>
321
322 PR symtab/26772
323 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
324 map, check it in the "best match" loop.
325
326 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
327
328 * m32c-tdep.c: Remove unused includes.
329
330 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * xtensa-tdep.c: Remove includes.
333
334 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
335
336 * breakpoint.c (struct condition_command_opts): New struct.
337 (condition_command_option_defs): New static global.
338 (make_condition_command_options_def_group): New function.
339 (condition_completer): Update to consider the '-force' flag.
340 (condition_command): Use gdb::option for the '-force' flag.
341
342 2020-10-27 Tom de Vries <tdevries@suse.de>
343
344 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
345 symbols in section check.
346
347 2020-10-27 Tom de Vries <tdevries@suse.de>
348
349 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
350
351 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352
353 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
354 * breakpoint.c: Update the help text of the 'condition' and 'break'
355 commands.
356 (set_breakpoint_condition): Take a new bool parameter
357 to control whether condition definition should be forced even when
358 the condition expression is invalid in all of the current locations.
359 (condition_command): Update the call to 'set_breakpoint_condition'.
360 (find_condition_and_thread): Take the "-force-condition" flag into
361 account.
362 * linespec.c (linespec_keywords): Add "-force-condition" as an
363 element.
364 (FORCE_KEYWORD_INDEX): New #define.
365 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
366 as a keyword.
367 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
368 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
369 * python/py-breakpoint.c (bppy_set_condition): Ditto.
370 * NEWS: Mention the changes to the 'break' and 'condition' commands.
371
372 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
373
374 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
375 * breakpoint.c (set_breakpoint_location_condition): New function.
376 (set_breakpoint_condition): Disable a breakpoint location if parsing
377 the condition string gives an error.
378 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
379 (build_target_condition_list): Ditto.
380 (build_target_command_list): Ditto.
381 (build_bpstat_chain): Ditto.
382 (print_one_breakpoint_location): Ditto.
383 (print_one_breakpoint): Ditto.
384 (breakpoint_1): Ditto.
385 (bp_location::bp_location): Ditto.
386 (locations_are_equal): Ditto.
387 (update_breakpoint_locations): Ditto.
388 (enable_disable_bp_num_loc): Ditto.
389 (init_breakpoint_sal): Use set_breakpoint_location_condition.
390 (find_condition_and_thread_for_sals): New static function.
391 (create_breakpoint): Call find_condition_and_thread_for_sals.
392 (location_to_sals): Call find_condition_and_thread_for_sals instead
393 of find_condition_and_thread.
394
395 2020-10-26 Tom de Vries <tdevries@suse.de>
396
397 * dwarf2/read.c (process_full_comp_unit): Call
398 dwarf2_find_base_address.
399
400 2020-10-26 Tom Tromey <tromey@adacore.com>
401
402 * gdbtypes.c (create_range_type): Revert previous patch. Add
403 comment.
404
405 2020-10-26 Pedro Alves <pedro@palves.net>
406
407 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
408 (my_waitpid): Use gdb::handle_eintr.
409
410 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
411
412 * acinclude.m4: Update ptrace.m4 path.
413 * ptrace.m4: Moved to gdbsupport.
414
415 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
418 instead of target_gdbarch.
419
420 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * jit.c (jit_reader_load_command): Pass current inferior.
423 (jit_inferior_init): Change parameter type to inferior, use it.
424 (jit_inferior_created): Remove.
425 (jit_inferior_created_hook): Pass inferior parameter down.
426 (_initialize_jit): Use jit_inferior_created_hook instead of
427 jit_inferior_created.
428 * jit.h (jit_inferior_created_hook): Add inferior parameter.
429 * infrun.c (follow_exec): Pass inferior to
430 jit_inferior_created_hook.
431
432 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
433
434 * linux-thread-db.c (check_pid_namespace_match): Add inferior
435 parameter and use it.
436 (thread_db_inferior_created): Pass inferior argument.
437
438 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
439
440 * aix-thread.c (aix_thread_inferior_created): Add inferior
441 parameter.
442 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
443 * dummy-frame.c (cleanup_dummy_frames): Likewise.
444 * jit.c (jit_inferior_created): Likewise.
445 * linux-thread-db.c (thread_db_inferior_created): Likewise.
446 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
447 * observable.h (inferior_created): Likewise.
448 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
449 * symfile-mem.c (add_vsyscall_page): Likewise.
450 * infcmd.c (post_create_inferior): Pass inferior argument.
451
452 2020-10-24 Joel Brobecker <brobecker@adacore.com>
453
454 GDB 10.1 released.
455
456 2020-10-23 Joel Brobecker <brobecker@adacore.com>
457
458 * ada-typeprint.c (ada_print_type): Remove superfluous second call
459 to ada_check_typedef.
460
461 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
462
463 * f-exp.y (f_parse): Rename to...
464 (f_language::parser): ...this.
465 * f-lang.c (f_get_encoding): Rename to...
466 (f_language::get_encoding): ...this.
467 (f_op_print_tab): Rename to...
468 (f_language::op_print_tab): ...this.
469 (exp_descriptor_f): Rename to...
470 (f_language::exp_descriptor_tab): ...this.
471 (class f_language): Moved to f-lang.h.
472 (f_language::language_arch_info): New function, moved out of class
473 declaration.
474 (f_language::search_name_hash): Likewise.
475 (f_language::lookup_symbol_nonlocal): Likewise.
476 (f_language::get_symbol_name_matcher_inner): Likewise.
477 * f-lang.h: Add 'valprint.h' include.
478 (class f_language): Moved here from f-lang.c.
479 * f-typeprint.c (f_type_print_args): Delete commented out
480 declaration.
481 (f_print_typedef): Rename to...
482 (f_language::print_typedef): ...this.
483 (f_print_type): Rename to...
484 (f_language::print_type): ...this.
485 (f_type_print_varspec_prefix): Delete declaration and rename to...
486 (f_language::f_type_print_varspec_prefix): ...this.
487 (f_type_print_varspec_suffix): Delete declaration and rename to...
488 (f_language::f_type_print_varspec_suffix): ...this.
489 (f_type_print_base): Delete declaration and rename to...
490 (f_language::f_type_print_base): ...this.
491 * f-valprint.c (f_value_print_inner): Rename to...
492 (f_language::value_print_inner): ...this.
493 * parse.c: Delete 'f-lang.h' include.
494
495 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * language.h (language_defn::print_type): Add variable names in
498 declaration, and update header comment.
499
500 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * ada-lang.c (ada_language::demangle): Rename to...
503 (ada_language::demangle_symbol): ...this.
504 * c-lang.c (cplus_language::demangle): Rename to...
505 (cplus_language::demangle_symbol): ...this.
506 * d-lang.c (d_language::demangle): Rename to...
507 (d_language::demangle_symbol): ...this.
508 * f-lang.c (f_language::demangle): Rename to...
509 (f_language::demangle_symbol): ...this.
510 * go-lang.c (go_language::demangle): Rename to...
511 (go_language::demangle_symbol): ...this.
512 * language.c (language_demangle): Update call to demangle_symbol.
513 (auto_or_unknown_language::demangle): Rename to...
514 (auto_or_unknown_language::demangle_symbol): ...this.
515 * language.h (language_defn::demangle): Rename to...
516 (language_defn::demangle_symbol): ...this.
517 * objc-lang.c (objc_language::demangle): Rename to...
518 (objc_language::demangle_symbol): ...this.
519 * rust-lang.c (rust_language::demangle): Rename to...
520 (rust_language::demangle_symbol): ...this.
521
522 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
525 (iterate_over_file_blocks): Replace use of macro with the macros
526 definition.
527
528 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
531 * valprint.c (maybe_print_array_index): Replace use of macro with
532 the macros definition.
533
534 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * ada-lang.c (ada_language::print_array_index): Call value_print
537 directly.
538 * language.c (language_defn::print_array_index): Likewise.
539 * language.h (LA_VALUE_PRINT): Delete.
540 * valprint.c (value_print): Call value_print on the
541 current_language directly.
542
543 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * language.h (LA_PRINT_TYPEDEF): Delete.
546 * typeprint.c (typedef_print): Call print_typedef directly on the
547 current_language object.
548
549 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * m2-exp.y (m2_parse): Rename to...
552 (m2_language::parser): ...this. Update function signature.
553 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
554 (m2_op_print): Rename to...
555 (m2_language::op_print_tab): ...this, and make const.
556 (exp_descriptor_modula2): Rename to...
557 (m2_language::exp_descriptor_modula2): ...this.
558 (class m2_language): Move to m2-lang.h.
559 (m2_language::language_arch_info): New function, moved out of
560 class declaration.
561 (m2_language::printchar): New function, body from m2_printchar.
562 (m2_language::printstr): New function, moved out of class
563 declaration.
564 (m2_language::emitchar): Likewise.
565 * m2-lang.h (m2_parse): Delete declaration.
566 (m2_print_typedef): Delete declaration.
567 (m2_value_print_inner): Delete declaration.
568 (class m2_language): Class declaration moved from m2-lang.c,
569 larger functions are left in m2-lang.c.
570 * m2-typeprint.c (m2_print_typedef): Rename to...
571 (m2_language::print_typedef): ...this, and update function
572 signature.
573 * m2-valprint.c (m2_value_print_inner): Rename to...
574 (m2_language::value_print_inner): ...this, replace use of
575 LA_PRINT_STRING with a direct call to printstr member function,
576 and update recursive call.
577
578 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * language.c (default_is_string_type_p): Delete, implementation
581 moved into auto_or_unknown_language::is_string_type_p.
582 (unk_op_print_tab): Moved into
583 auto_or_unknown_language::opcode_print_table.
584 (unknown_language_arch_info): Delete, implementation moved into
585 auto_or_unknown_language::language_arch_info.
586 (class auto_or_unknown_language): New class, member functions
587 copied from unknown_language class, with some updates.
588 (class unknown_language): Most member functions moved into
589 auto_or_unknown_language class. Inherit from
590 auto_or_unknown_language class.
591 (class auto_language): Inherit from auto_or_unknown_language.
592 Delete most member functions.
593
594 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
595
596 * stabsread.c (read_member_functions): Remove gdb_assert.
597
598 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
599
600 * gdbtypes.c (init_complex_type): Check target type name.
601
602 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
603
604 * target-debug.h (target_debug_print_struct_target_ops_p):
605 Remove.
606 (target_debug_print_async_callback_ftype_p): Remove.
607 (target_debug_print_struct_trace_state_variable_p): Remove.
608 (target_debug_print_struct_traceframe_info_p): Remove.
609 (target_debug_print_VEC__btrace_block_s__pp): Remove.
610 (target_debug_print_enum_btrace_format): Remove.
611 (target_debug_print_enum_info_proc_what): Remove.
612 (target_debug_print_thread_info_pp): Remove.
613
614 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
615
616 * target.h (struct target_ops) <make_corefile_notes>:
617 Change return type to unique pointer.
618 * target.c (dummy_make_corefile_notes): Likewise.
619 * exec.c (struct exec_target) <make_corefile_notes>:
620 Likewise.
621 (exec_target::make_corefile_notes): Likewise.
622 * procfs.c (class procfs_target) <make_corefile_notes>:
623 Likewise.
624 (procfs_do_thread_registers): Adjust to unique pointer.
625 (struct procfs_corefile_thread_data): Add constructor.
626 <note_data>: Change type to unique pointer.
627 (procfs_corefile_thread_callback): Adjust to unique pointer.
628 (procfs_target::make_corefile_notes): Change return type to
629 unique pointer.
630 * target-delegates.c: Re-generate.
631 * gcore.c (write_gcore_file_1): Adjust.
632 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
633 New.
634
635 2020-10-22 Tom de Vries <tdevries@suse.de>
636
637 * block.c (find_block_in_blockvector): Make sure the returned block
638 contains pc.
639
640 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
641
642 PR gdb/26693
643 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
644 parameter.
645 (load_cu): Pass existing CU.
646 (process_imported_unit_die): Likewise.
647 (follow_die_offset): Likewise.
648
649 2020-10-22 Luis Machado <luis.machado@linaro.org>
650
651 * corelow.c (core_target::xfer_partial): Also check for an empty
652 m_core_unavailable_mappings vector.
653
654 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
657 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
658 * f-exp.y (arglist): Allow for a series of subranges.
659 (subrange): Add cases for subranges with strides.
660 * f-lang.c (value_f90_subarray): Catch use of array strides and
661 throw an error.
662 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
663
664 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
665
666 * expprint.c (print_subexp_standard): Change enum range_type to
667 range_flag and rename variables to match.
668 (dump_subexp_body_standard): Likewise.
669 * expression.h (enum range_type): Rename to...
670 (enum range_flag): ...this.
671 (range_types): Rename to...
672 (range_flags): ...this.
673 * f-lang.c (value_f90_subarray): Change enum range_type to
674 range_flag and rename variables to match.
675 * parse.c (operator_length_standard): Likewise.
676 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
677 range_type to range_flag.
678 * rust-lang.c (rust_evaluate_funcall): Likewise.
679 (rust_range): Likewise.
680 (rust_compute_range): Likewise.
681 (rust_subscript): Likewise.
682
683 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * expprint.c (print_subexp_standard): Update to reflect changes to
686 enum range_type.
687 (dump_subexp_body_standard): Likewise.
688 * expression.h (enum range_type): Convert to a bit field enum, and
689 make the enum unsigned.
690 * f-exp.y (subrange): Update to reflect changes to enum
691 range_type.
692 * f-lang.c (value_f90_subarray): Likewise.
693 * parse.c (operator_length_standard): Likewise.
694 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
695 * rust-lang.c (rust_range): Likewise.
696 (rust_compute_range): Likewise.
697 (rust_subscript): Likewise.
698
699 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
700
701 * infrun.c (displaced_step_in_progress_thread): Fix comment.
702 (displaced_step_in_progress): Fix comment.
703
704 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * gdbarch.sh (make_corefile_notes): Return unique pointer.
707 * gdbarch.c: Re-generate.
708 * gdbarch.h: Re-generate.
709 * gcore.c (write_gcore_file_1): Adjust.
710 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
711 constructor.
712 <note_data>: Change type to unique pointer.
713 <abort_iteration>: Change type to bool.
714 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
715 (fbsd_collect_thread_registers): Return void, adjust.
716 (struct fbsd_corefile_thread_data): Add construtor.
717 <note_data>: Change type to unique pointer.
718 (fbsd_corefile_thread): Adjust.
719 (fbsd_make_corefile_notes): Return unique pointer, adjust.
720 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
721 to unique pointer, adjust.
722 (struct linux_collect_regset_section_cb_data): Add constructor.
723 <note_data>: Change type to unique pointer.
724 <abort_iteration>: Change type to bool.
725 (linux_collect_thread_registers): Return void, adjust.
726 (struct linux_corefile_thread_data): Add constructor.
727 <note_data>: Change type to unique pointer.
728 (linux_corefile_thread): Adjust.
729 (linux_make_corefile_notes): Return unique pointer, adjust.
730
731 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
734 * gdbarch.c: Re-generate.
735 * gdbarch.h: Re-generate.
736 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
737 bool.
738 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
739 Likewise.
740 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
741 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
742 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
743 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
744
745 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
746
747 * gdbarch.sh: Make generated predicates return bool.
748 * gdbarch.c: Re-generate.
749 * gdbarch.h: Re-generate.
750
751 2020-10-20 Tom Tromey <tom@tromey.com>
752
753 * varobj-iter.h (struct varobj_item): Remove typedef.
754
755 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * infrun.c (currently_stepping): Change int to bool
758 (maybe_software_singlestep): Likewise.
759 (show_stop_on_solib_events): Likewise.
760 (stepping_past_nonsteppable_watchpoint): Likewise.
761 (displaced_step_in_progress_any_inferior): Likewise.
762 (displaced_step_in_progress_thread): Likewise.
763 (keep_going_stepped_thread): Likewise.
764 (thread_still_needs_step_over): Likewise.
765 (start_step_over): Likewise.
766 (do_target_resume): Likewise.
767 (resume_1): Likewise.
768 (clear_proceed_status): Likewise.
769 (thread_still_needs_step_over_bp): Likewise.
770 (proceed): Likewise.
771 (switch_back_to_stepped_thread): Likewise.
772 (adjust_pc_after_break): Likewise.
773 (stepped_in_from): Likewise.
774 (handle_stop_requested): Likewise.
775 (handle_syscall_event): Likewise.
776 (handle_no_resumed): Likewise.
777 (handle_inferior_event): Likewise.
778 (finish_step_over): Likewise.
779 (handle_signal_stop): Likewise.
780 (process_event_stop_test): Likewise.
781
782 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
783
784 * infrun.c (get_displaced_stepping_state): Fix comment.
785
786 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
787
788 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
789
790 2020-10-19 Tom Tromey <tromey@adacore.com>
791
792 PR tui/26719
793 * tui/tui-winsource.h (struct tui_source_window_base)
794 <refresh_window>: Rename from refresh_pad.
795 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
796 Rename from refresh_pad.
797 (tui_source_window_base::show_source_content)
798 (tui_source_window_base::do_scroll_horizontal): Update.
799
800 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
801
802 * thread.c (_initialize_thread): Fine-tune the help text of
803 'info threads'.
804
805 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
806
807 * frame.c: Remove the unused 'uinteger_option_def' type alias.
808
809 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
810
811 * breakpoint.c (handle_jit_event): Add an argument, change how
812 `jit_event_handler` is called.
813
814 2020-10-17 Tom Tromey <tom@tromey.com>
815
816 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
817 (scan_xcoff_symtab): Update.
818 * psymtab.h (class psymtab_storage) <global_psymbols,
819 static_psymbols, current_global_psymbols,
820 current_static_psymbols>: Remove.
821 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
822 (match_partial_symbol, lookup_partial_symbol): Update.
823 (print_partial_symbols): Change parameters.
824 (dump_psymtab, recursively_search_psymtabs)
825 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
826 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
827 (concat): Remove.
828 (end_psymtab_common): Simplify.
829 (append_psymbol_to_list): Change parameters.
830 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
831 (init_psymbol_list): Simplify.
832 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
833 * psympriv.h (struct partial_symtab) <empty>: New method.
834 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
835 Remove.
836 <global_psymbols, static_psymbols>: New members.
837 <add_psymbol>: New methods.
838 (add_psymbol_to_list): Don't declare.
839 (psymbol_placement): Move earlier.
840 * mdebugread.c (parse_partial_symbols): Update.
841 (handle_psymbol_enumerators): Change parameters.
842 (mdebug_expand_psymtab): Update.
843 * dwarf2/read.c (process_psymtab_comp_unit_reader)
844 (add_partial_symbol): Update.
845 * dwarf2/index-write.c (write_psymbols): Change parameters.
846 (write_one_signatured_type): Update.
847 (recursively_count_psymbols): Update.
848 (recursively_write_psymbols): Update.
849 (class debug_names) <recursively_write_psymbols>: Update.
850 <write_psymbols>: Change parameters.
851 <write_one_signatured_type>: Update.
852 * dbxread.c (read_dbx_symtab): Update.
853 (dbx_end_psymtab): Use partial_symtab::empty.
854 * ctfread.c (struct ctf_context) <pst>: New member.
855 (create_partial_symtab): Set it.
856 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
857 (scan_partial_symbols): Use the psymtab's context. Update.
858
859 2020-10-17 Tom Tromey <tom@tromey.com>
860
861 * valprint.c (generic_value_print): Remove comment.
862 * m2-valprint.c (m2_value_print_inner): Remove comment.
863 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
864 type.
865
866 2020-10-17 Tom de Vries <tdevries@suse.de>
867
868 PR symtab/26317
869 * source.c (select_source_symtab): Handling sal.symtab == NULL for
870 symbol main.
871
872 2020-10-14 Tom de Vries <tdevries@suse.de>
873
874 PR gdb/26733
875 * solib.c (solib_contains_address_p): Handle
876 'solib->sections == nullptr'.
877
878 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
879
880 PR gdb/26642
881 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
882 target can't do async.
883 * target.c (target_wait): Assert that we don't pass
884 TARGET_WNOHANG to a target that can't async.
885
886 2020-10-13 Kamil Rytarowski <n54@gmx.com>
887
888 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
889 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
890 * alpha-bsd-nat.c: Adjust include.
891 * alpha-bsd-tdep.h: Adjust comment.
892 * alpha-nbsd-tdep.c: Rename to ...
893 * alpha-netbsd-tdep.c: ... this, adjust include.
894 * amd64-nbsd-nat.c: Rename to ...
895 * amd64-netbsd-nat.c: ... this, adjust include.
896 * amd64-nbsd-tdep.c: Rename to ...
897 * amd64-netbsd-tdep.c: ... this, adjust include.
898 * amd64-tdep.h: Adjust include.
899 * arm-nbsd-nat.c: Rename to ...
900 * arm-netbsd-nat.c: ... this, adjust include.
901 * arm-nbsd-tdep.c: Rename to ...
902 * arm-netbsd-tdep.c: ... this, adjust include.
903 * arm-nbsd-tdep.h: Rename to ...
904 * arm-netbsd-tdep.h: ... this, adjust include.
905 * configure.nat: Adjust file lists.
906 * configure.tgt: Likewise.
907 * hppa-nbsd-nat.c: Rename to ...
908 * hppa-netbsd-nat.c: ... this, adjust include.
909 * hppa-nbsd-tdep.c: Rename to ...
910 * hppa-netbsd-tdep.c: ... this, adjust include.
911 * i386-nbsd-nat.c: Rename to ...
912 * i386-netbsd-nat.c: ... this, adjust include.
913 * i386-nbsd-tdep.c: Rename to ...
914 * i386-netbsd-tdep.c: ... this, adjust include.
915 * m68k-bsd-nat.c: Adjust include.
916 * mips-nbsd-nat.c: Rename to ...
917 * mips-netbsd-nat.c: ... this, adjust include.
918 * mips-nbsd-tdep.c: Rename to ...
919 * mips-netbsd-tdep.c: ... this, adjust include.
920 * mips-nbsd-tdep.h: Rename to ...
921 * mips-netbsd-tdep.h: ... this.
922 * nbsd-nat.c: Rename to ...
923 * netbsd-nat.c: ... this, adjust include.
924 * nbsd-nat.h: Rename to ...
925 * netbsd-nat.h: ... this, adjust include.
926 * nbsd-tdep.c: Rename to ...
927 * netbsd-tdep.c: ... this, adjust include.
928 * nbsd-tdep.h: Rename to ...
929 * netbsd-tdep.h: ... this.
930 * ppc-nbsd-nat.c: Rename to ...
931 * ppc-netbsd-nat.c: ... this, adjust include.
932 * ppc-nbsd-tdep.c: Rename to ...
933 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
934 * ppc-nbsd-tdep.h: Rename to ...
935 * ppc-netbsd-tdep.h: ... this.
936 * sh-nbsd-nat.c: Rename to ...
937 * sh-netbsd-nat.c: ... this, adjust include.
938 * sh-nbsd-tdep.c: Rename to ...
939 * sh-netbsd-tdep.c: ... this, adjust include.
940 * sparc-nbsd-nat.c: Rename to ...
941 * sparc-netbsd-nat.c: ... this.
942 * sparc-nbsd-tdep.c: Rename to ...
943 * sparc-netbsd-tdep.c: ... this, adjust include.
944 * sparc64-nbsd-nat.c: Rename to ...
945 * sparc64-netbsd-nat.c: ... this.
946 * sparc64-nbsd-tdep.c: Rename to ...
947 * sparc64-netbsd-tdep.c: ... this, adjust include.
948 * sparc64-tdep.h: Adjust comment.
949 * vax-bsd-nat.c: Adjust include.
950 * vax-nbsd-tdep.c: Rename to ...
951 * vax-netbsd-tdep.c: ... this, adjust include.
952
953 2020-10-12 Tom Tromey <tom@tromey.com>
954
955 * target.h (struct target_ops) <get_section_table>: Update.
956 (target_get_section_table): Update.
957 * target.c (target_get_section_table, target_section_by_addr)
958 (memory_xfer_partial_1): Update.
959 * target-section.h (target_section_table): Now an alias.
960 * target-delegates.c: Rebuild.
961 * target-debug.h (target_debug_print_target_section_table_p):
962 Rename from target_debug_print_struct_target_section_table_p.
963 * symfile.c (build_section_addr_info_from_section_table): Update.
964 * solib.c (solib_map_sections, solib_contains_address_p): Update.
965 * solib-svr4.c (scan_dyntag): Update.
966 * solib-dsbt.c (scan_dyntag): Update.
967 * remote.c (remote_target::remote_xfer_live_readonly_partial):
968 Update.
969 * record-full.c (record_full_core_target::xfer_partial): Update.
970 * progspace.h (struct program_space) <target_sections>: Update.
971 * exec.h (print_section_info): Update.
972 * exec.c (exec_target::close, build_section_table)
973 (add_target_sections, add_target_sections_of_objfile)
974 (remove_target_sections, exec_on_vfork)
975 (section_table_available_memory)
976 (section_table_xfer_memory_partial)
977 (exec_target::get_section_table, exec_target::xfer_partial)
978 (print_section_info, set_section_command)
979 (exec_set_section_address, exec_target::has_memory): Update.
980 * corelow.c (core_target::build_file_mappings)
981 (core_target::xfer_partial, core_target::info_proc_mappings)
982 (core_target::info_proc_mappings): Update.
983 * bfd-target.c (class target_bfd): Update
984
985 2020-10-12 Tom Tromey <tom@tromey.com>
986
987 * progspace.c (program_space::~program_space): Don't call
988 clear_section_table.
989 * exec.h (clear_section_table): Don't declare.
990 * exec.c (exec_target::close): Update.
991 (clear_section_table): Remove.
992
993 2020-10-12 Tom Tromey <tom@tromey.com>
994
995 * exec.c (add_target_sections_of_objfile): Simplify.
996
997 2020-10-12 Tom Tromey <tom@tromey.com>
998
999 * solib.c (solib_map_sections): Update.
1000 * record-full.c (record_full_core_open_1): Update.
1001 * exec.h (build_section_table): Return a target_section_table.
1002 * exec.c (exec_file_attach): Update.
1003 (build_section_table): Return a target_section_table.
1004 * corelow.c (core_target::core_target): Update.
1005 * bfd-target.c (target_bfd::target_bfd): Update.
1006
1007 2020-10-12 Tom Tromey <tom@tromey.com>
1008
1009 * target.c (target_section_by_addr, memory_xfer_partial_1):
1010 Update.
1011 * target-section.h (struct target_section_table): Use
1012 std::vector.
1013 * symfile.h (build_section_addr_info_from_section_table): Take a
1014 target_section_table.
1015 * symfile.c (build_section_addr_info_from_section_table): Take a
1016 target_section_table.
1017 * solist.h (struct so_list) <sections>: Change type.
1018 <sections_end>: Remove.
1019 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1020 (solib_contains_address_p): Update.
1021 * solib-svr4.c (scan_dyntag): Update.
1022 * solib-dsbt.c (scan_dyntag): Update.
1023 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1024 Update.
1025 * record-full.c (record_full_core_start, record_full_core_end):
1026 Remove.
1027 (record_full_core_sections): New global.
1028 (record_full_core_open_1, record_full_core_target::xfer_partial):
1029 Update.
1030 * exec.h (build_section_table, section_table_xfer_memory_partial)
1031 (add_target_sections): Take a target_section_table.
1032 * exec.c (exec_file_attach, clear_section_table): Update.
1033 (resize_section_table): Remove.
1034 (build_section_table, add_target_sections): Take a
1035 target_section_table.
1036 (add_target_sections_of_objfile, remove_target_sections)
1037 (exec_on_vfork): Update.
1038 (section_table_available_memory): Take a target_section_table.
1039 (section_table_read_available_memory): Update.
1040 (section_table_xfer_memory_partial): Take a target_section_table.
1041 (print_section_info, set_section_command)
1042 (exec_set_section_address, exec_target::has_memory): Update.
1043 * corelow.c (class core_target) <m_core_section_table,
1044 m_core_file_mappings>: Remove braces.
1045 <~core_target>: Remove.
1046 (core_target::core_target): Update.
1047 (core_target::~core_target): Remove.
1048 (core_target::build_file_mappings)
1049 (core_target::xfer_memory_via_mappings)
1050 (core_target::xfer_partial, core_target::info_proc_mappings):
1051 Update.
1052 * bfd-target.c (target_bfd::xfer_partial): Update.
1053 (target_bfd::target_bfd): Update.
1054 (target_bfd::~target_bfd): Remove.
1055
1056 2020-10-12 Tom Tromey <tom@tromey.com>
1057
1058 * target.h (struct target_section, struct target_section_table):
1059 Move to target-section.h.
1060 * target-section.h: New file.
1061
1062 2020-10-12 Pedro Alves <pedro@palves.net>
1063
1064 PR exp/26602
1065 * valops.c (struct struct_field_searcher): New.
1066 (update_search_result): Rename to ...
1067 (struct_field_searcher::update_result): ... this. Simplify
1068 prototype. Record all found fields.
1069 (do_search_struct_field): Rename to ...
1070 (struct_field_searcher::search): ... this. Simplify prototype.
1071 Maintain stack of visited baseclass path. Call update_result for
1072 fields too. Keep searching fields in baseclasses instead of
1073 stopping at the first found field.
1074 (search_struct_field): Use struct_field_searcher. When looking
1075 for fields, report ambiguous access attempts.
1076
1077 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * frame.c (inside_main_func): Check full symbols as well as
1080 minimal symbols.
1081
1082 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1083
1084 * ada-lang.c (advance_wild_match): Rewrite the function's
1085 description. Change the type of target0, t0 and t1 to char.
1086
1087 2020-10-09 Tom Tromey <tromey@adacore.com>
1088
1089 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1090
1091 2020-10-09 Tom Tromey <tromey@adacore.com>
1092
1093 * ada-lang.h (ada_encode): Return std::string.
1094 * ada-lang.c (ada_encode_1): Return std::string.
1095 (ada_encode): Likewise.
1096 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1097 Update.
1098 * ada-exp.y (block_lookup, write_var_or_type): Update.
1099
1100 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1101
1102 PR exp/26714
1103 * printcmd.c (print_formatted): Handle void results as
1104 unformatted prints.
1105
1106 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * arch/aarch32.c (aarch32_create_target_description): Release the
1109 target_desc_up as late as possible.
1110 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1111 * arch/amd64.c (amd64_create_target_description): Likewise.
1112 * arch/arc.c (arc_create_target_description): Return a
1113 target_desc_up, don't release it.
1114 * arch/arc.h (arc_create_target_description): Update declaration.
1115 (arc_lookup_target_description): Move target_desc_up into the
1116 cache, and return a borrowed pointer.
1117 * arch/arm.c (arm_create_target_description): Release the
1118 target_desc_up as late as possible.
1119 * arch/i386.c (i386_create_target_description): Likewise.
1120 * arch/riscv.h (riscv_create_target_description): Update
1121 declaration to match definition.
1122 * arch/tic6x.c (tic6x_create_target_description): Release the
1123 target_desc_up as late as possible.
1124
1125 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1128 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1129
1130 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1131
1132 * source.c (directory_command): Notify observers that "directories"
1133 parameter has changed.
1134
1135 2020-10-08 Tom Tromey <tom@tromey.com>
1136
1137 * cli/cli-cmds.c (print_disassembly): Style function name and
1138 addresses. Add _() wrappers.
1139
1140 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1141
1142 * NEWS: Mention ARC support in GDBserver.
1143
1144 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * arch/aarch32.c (aarch32_create_target_description): Release
1147 unique_ptr returned from allocate_target_description.
1148 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1149 * arch/amd64.c (amd64_create_target_description): Likewise.
1150 * arch/arc.c (arc_create_target_description): Likewise.
1151 * arch/arm.c (arm_create_target_description): Likewise.
1152 * arch/i386.c (i386_create_target_description): Likewise.
1153 * arch/riscv.c (riscv_create_target_description): Update return
1154 type. Handle allocate_target_description returning a unique_ptr.
1155 (riscv_lookup_target_description): Update to handle unique_ptr.
1156 * arch/tic6x.c (tic6x_create_target_description): Release
1157 unique_ptr returned from allocate_target_description.
1158 * features/microblaze-with-stack-protect.c: Regenerate.
1159 * features/microblaze.c: Regenerate.
1160 * features/mips-dsp-linux.c: Regenerate.
1161 * features/mips-linux.c: Regenerate.
1162 * features/mips64-dsp-linux.c: Regenerate.
1163 * features/mips64-linux.c: Regenerate.
1164 * features/nds32.c: Regenerate.
1165 * features/nios2.c: Regenerate.
1166 * features/or1k.c: Regenerate.
1167 * features/rs6000/powerpc-32.c: Regenerate.
1168 * features/rs6000/powerpc-32l.c: Regenerate.
1169 * features/rs6000/powerpc-403.c: Regenerate.
1170 * features/rs6000/powerpc-403gc.c: Regenerate.
1171 * features/rs6000/powerpc-405.c: Regenerate.
1172 * features/rs6000/powerpc-505.c: Regenerate.
1173 * features/rs6000/powerpc-601.c: Regenerate.
1174 * features/rs6000/powerpc-602.c: Regenerate.
1175 * features/rs6000/powerpc-603.c: Regenerate.
1176 * features/rs6000/powerpc-604.c: Regenerate.
1177 * features/rs6000/powerpc-64.c: Regenerate.
1178 * features/rs6000/powerpc-64l.c: Regenerate.
1179 * features/rs6000/powerpc-7400.c: Regenerate.
1180 * features/rs6000/powerpc-750.c: Regenerate.
1181 * features/rs6000/powerpc-860.c: Regenerate.
1182 * features/rs6000/powerpc-altivec32.c: Regenerate.
1183 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1184 * features/rs6000/powerpc-altivec64.c: Regenerate.
1185 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1186 * features/rs6000/powerpc-e500.c: Regenerate.
1187 * features/rs6000/powerpc-e500l.c: Regenerate.
1188 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1189 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1190 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1191 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1192 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1193 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1194 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1195 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1196 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1197 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1198 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1199 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1200 * features/rs6000/powerpc-vsx32.c: Regenerate.
1201 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1202 * features/rs6000/powerpc-vsx64.c: Regenerate.
1203 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1204 * features/rs6000/rs6000.c: Regenerate.
1205 * features/rx.c: Regenerate.
1206 * features/s390-gs-linux64.c: Regenerate.
1207 * features/s390-linux32.c: Regenerate.
1208 * features/s390-linux32v1.c: Regenerate.
1209 * features/s390-linux32v2.c: Regenerate.
1210 * features/s390-linux64.c: Regenerate.
1211 * features/s390-linux64v1.c: Regenerate.
1212 * features/s390-linux64v2.c: Regenerate.
1213 * features/s390-te-linux64.c: Regenerate.
1214 * features/s390-tevx-linux64.c: Regenerate.
1215 * features/s390-vx-linux64.c: Regenerate.
1216 * features/s390x-gs-linux64.c: Regenerate.
1217 * features/s390x-linux64.c: Regenerate.
1218 * features/s390x-linux64v1.c: Regenerate.
1219 * features/s390x-linux64v2.c: Regenerate.
1220 * features/s390x-te-linux64.c: Regenerate.
1221 * features/s390x-tevx-linux64.c: Regenerate.
1222 * features/s390x-vx-linux64.c: Regenerate.
1223 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1224 from allocate_target_description.
1225 * target-descriptions.c (allocate_target_description): Update
1226 return type.
1227 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1228 allocate_target_description.
1229
1230 2020-10-07 Tom Tromey <tromey@adacore.com>
1231
1232 * unittests/search-memory-selftests.c: New file.
1233 * Makefile.in (SELFTESTS_SRCS): Add
1234 unittests/search-memory-selftests.c.
1235
1236 2020-10-07 Tom Tromey <tromey@adacore.com>
1237
1238 PR gdb/16930:
1239 * findcmd.c (_initialize_mem_search): Mention that the range is
1240 inclusive.
1241
1242 2020-10-07 Tom Tromey <tromey@adacore.com>
1243
1244 * target.h (simple_search_memory): Don't declare.
1245 * target.c (simple_search_memory): Move to gdbsupport.
1246 (default_search_memory): Update.
1247 * remote.c (remote_target::search_memory): Update.
1248
1249 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1250
1251 * Makefile.in (COMPILE): Add CXXFLAGS.
1252 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1253 (check-headers): Add CXXFLAGS.
1254
1255 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1256
1257 * arc-linux-tdep.h: New file.
1258 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1259 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1260 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1261 arc_linux_gregset, arc_linux_v2_regset,
1262 arc_linux_iterate_over_regset_sections,
1263 arc_linux_core_read_description): Implement.
1264 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1265 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1266 (arc_gdbarch_features_create): Add.
1267 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1268
1269 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1270
1271 * arch/arc.h: Rename "arc_gdbarch_features" to
1272 "arc_arch_features".
1273 * arc-tdep.h: Likewise.
1274 * arc-tdep.c: Likewise.
1275
1276 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 * infcmd.c (attach_command): Remove the redundant call to
1279 `clear_proceed_status`.
1280
1281 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1282
1283 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1284
1285 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1286
1287 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1288 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1289 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1290
1291 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1294 (_initialize_break_catch_sig): Don't allocate array.
1295
1296 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1297
1298 * symtab.c (find_pc_line): Return unmapped addresses when the
1299 requested address is also unmapped.
1300
1301 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1302
1303 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1304 tui/tui-out.h.
1305
1306 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1307
1308 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1309 type::is_vector instead of TYPE_VECTOR.
1310
1311 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * auto-load.c (auto_load_objfile_script_1): Don't use
1314 debugfile_holder as temporary variable when stripping drive
1315 letter.
1316
1317 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1318
1319 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1320 Add TYPE_CODE_COMPLEX.
1321 (amd64_windows_return_value): Fix types returned via XMM0.
1322
1323 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1324
1325 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1326 AArch64/ARM maintainers.
1327
1328 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1329
1330 * NEWS: Mention set/show debug event-loop.
1331
1332 2020-10-02 Tom Tromey <tromey@adacore.com>
1333
1334 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1335 REG_EXTENDED.
1336
1337 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1338
1339 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1340 * procfs.c (procfs_inferior_created): Remove.
1341 (_initialize_procfs): Don't register procfs_inferior_created.
1342
1343 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 * async-event.c (invoke_async_signal_handlers): Add debug
1346 print.
1347 (check_async_event_handlers): Likewise.
1348 * event-top.c (show_debug_event_loop): New function.
1349 (_initialize_event_top): Register "set debug event-loop"
1350 setting.
1351
1352 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1353
1354 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1355 * debug.h: Remove.
1356 * infrun.c: Include gdbsupport/common-debug.h.
1357 * linux-nat.c: Likewise.
1358
1359 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * async-event.h (create_async_signal_handler): Add name
1362 parameter.
1363 (create_async_event_handler): Likewise.
1364 * async-event.c (struct async_signal_handler) <name>: New field.
1365 (struct async_event_handler) <name>: New field.
1366 (create_async_signal_handler): Assign name.
1367 (create_async_event_handler): Assign name.
1368 * event-top.c (async_init_signals): Pass name when creating
1369 handler.
1370 * infrun.c (_initialize_infrun): Likewise.
1371 * record-btrace.c (record_btrace_push_target): Likewise.
1372 * record-full.c (record_full_open): Likewise.
1373 * remote-notif.c (remote_notif_state_allocate): Likewise.
1374 * remote.c (remote_target::open_1): Likewise.
1375 * tui/tui-win.c (tui_initialize_win): Likewise.
1376
1377 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * async-event.c (initialize_async_signal_handlers): Pass name to
1380 add_file_handler
1381 * event-top.c (ui_register_input_event_handler): Likewise.
1382 * linux-nat.c (linux_nat_target::async): Likewise.
1383 * run-on-main-thread.c (_initialize_run_on_main_thread):
1384 Likewise
1385 * ser-base.c (reschedule): Likewise.
1386 (ser_base_async): Likewise.
1387 * tui/tui-io.c: Likewise.
1388 * top.h (struct ui) <num>: New field.
1389 * top.c (highest_ui_num): New variable.
1390 (ui::ui): Initialize num.
1391
1392 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1393
1394 * observable.h <inferior_created>: Remove parameters. Update all
1395 listeners.
1396 * inferior.h (post_create_inferior): Remove target parameter.
1397 Update all callers.
1398
1399 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1400
1401 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1402 and DW_MACRO_undef_strx.
1403 (dwarf_decode_macros): Likewise
1404 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1405 which is the value of DW_AT_str_offsets_base.
1406 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1407 str_offsets_base.
1408
1409 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1410
1411 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1412
1413 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1414
1415 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1416 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1417
1418 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1419
1420 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1421
1422 2020-09-30 Tom de Vries <tdevries@suse.de>
1423
1424 PR symtab/26683
1425 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1426
1427 2020-09-30 Tom Tromey <tromey@adacore.com>
1428
1429 * dwarf2/read.c (handle_variant): Use constant_value.
1430
1431 2020-09-29 Tom Tromey <tom@tromey.com>
1432
1433 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1434 (read_file_scope, dwarf2_get_pc_bounds)
1435 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1436 (read_structure_type, handle_struct_member_die)
1437 (read_enumeration_type, read_array_type, read_set_type)
1438 (read_tag_pointer_type, read_tag_reference_type)
1439 (read_subroutine_type, read_base_type, read_subrange_type)
1440 (read_full_die_1, partial_die_info::read)
1441 (partial_die_info::read, by, new_symbol)
1442 (dwarf2_const_value_data, dwarf2_const_value_attr)
1443 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1444 (prepare_one_comp_unit): Update.
1445 * dwarf2/attribute.h (DW_UNSND): Remove.
1446
1447 2020-09-29 Tom Tromey <tom@tromey.com>
1448
1449 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1450 (read_subroutine_type, partial_die_info::read)
1451 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1452 (dwarf2_add_member_fn): Update.
1453 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1454 * dwarf2/attribute.c (attribute::as_boolean): New method.
1455
1456 2020-09-29 Tom Tromey <tom@tromey.com>
1457
1458 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1459 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1460 method.
1461 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1462
1463 2020-09-29 Tom Tromey <tom@tromey.com>
1464
1465 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1466 the attribute's form.
1467
1468 2020-09-29 Tom Tromey <tom@tromey.com>
1469
1470 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1471 (dwarf2_add_member_fn): Update.
1472 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1473 * dwarf2/attribute.c (attribute::defaulted): New method, from
1474 is_valid_DW_AT_defaulted.
1475
1476 2020-09-29 Tom Tromey <tom@tromey.com>
1477
1478 * dwarf2/read.c (dw2_get_file_names_reader)
1479 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1480 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1481 (dwarf2_symbol_mark_computed): Use as_unsigned.
1482 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1483 method.
1484 <form_is_section_offset>: Update comment.
1485
1486 2020-09-29 Tom Tromey <tom@tromey.com>
1487
1488 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1489 dwarf2_default_access_attribute. Look up attribute.
1490 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1491 Update.
1492
1493 2020-09-29 Tom Tromey <tom@tromey.com>
1494
1495 * dwarf2/read.c (skip_one_die): Update.
1496 (read_full_die_1): Change how reprocessing is done.
1497 (partial_die_info::read): Update.
1498 (read_attribute_value): Remove need_reprocess parameter.
1499 (read_attribute): Likewise.
1500 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1501 New method.
1502
1503 2020-09-29 Tom Tromey <tom@tromey.com>
1504
1505 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1506 (dwarf2_const_value_attr, dump_die_shallow)
1507 (dwarf2_fetch_constant_bytes): Update.
1508 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1509 comment.
1510 <set_address>: New method.
1511 (DW_ADDR): Remove.
1512 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1513 (attribute::as_string, attribute::as_address): Add assert.
1514
1515 2020-09-29 Tom Tromey <tom@tromey.com>
1516
1517 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1518 (read_attribute_reprocess, read_attribute_value): Update.
1519 (read_attribute): Clear requires_reprocessing.
1520 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1521 form_requires_reprocessing>: New methods.
1522 <string_init>: Clear requires_reprocessing.
1523 <set_unsigned_reprocess>: New method.
1524 <name>: Shrink by one bit.
1525 <requires_reprocessing>: New member.
1526 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1527 method.
1528
1529 2020-09-29 Tom Tromey <tom@tromey.com>
1530
1531 * dwarf2/read.c (read_attribute_value): Update.
1532 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1533 set_unsigned>: New methods.
1534 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1535
1536 2020-09-29 Tom Tromey <tom@tromey.com>
1537
1538 * dwarf2/read.c (get_alignment, read_array_order)
1539 (read_attribute_value, dwarf2_const_value_attr)
1540 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1541 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1542 New methods.
1543 (DW_SND): Remove.
1544
1545 2020-09-29 Tom Tromey <tom@tromey.com>
1546
1547 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1548 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1549 Update.
1550 * dwarf2/attribute.h (struct attribute) <as_signature,
1551 set_signature>: New methods.
1552 (DW_SIGNATURE): Remove.
1553
1554 2020-09-29 Tom Tromey <tom@tromey.com>
1555
1556 * dwarf2/read.c (read_call_site_scope)
1557 (handle_data_member_location, dwarf2_add_member_fn)
1558 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1559 (partial_die_info::read, read_attribute_value)
1560 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1561 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1562 (dwarf2_symbol_mark_computed): Update.
1563 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1564 methods.
1565 (DW_BLOCK): Remove.
1566 * dwarf2/attribute.c (attribute::form_is_block): Add
1567 DW_FORM_data16.
1568
1569 2020-09-29 Tom Tromey <tom@tromey.com>
1570
1571 * dwarf2/read.c (read_cutu_die_from_dwo)
1572 (read_attribute_reprocess, read_attribute_value, read_attribute)
1573 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1574 (dwarf2_fetch_constant_bytes): Update.
1575 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1576 <set_string_noncanonical, set_string_canonical>: New methods.
1577 <string_is_canonical>: Update comment.
1578 <canonical_string_p>: Add assert.
1579 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1580 * dwarf2/attribute.c (attribute::form_is_string): New method.
1581 (attribute::string): Use it.
1582
1583 2020-09-29 Tom Tromey <tom@tromey.com>
1584
1585 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1586 (dump_die_shallow): Use canonical_string_p.
1587 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1588 method.
1589
1590 2020-09-29 Tom Tromey <tom@tromey.com>
1591
1592 * dwarf2/read.c (partial_die_info::read)
1593 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1594 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1595 attribute::as_string.
1596
1597 2020-09-29 Tom Tromey <tom@tromey.com>
1598
1599 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1600 DW_ADDR.
1601 (attribute::string): Don't use DW_STRING.
1602 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1603 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1604
1605 2020-09-29 Tom Tromey <tom@tromey.com>
1606
1607 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1608 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1609 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1610 * dwarf2/attribute.h (struct attribute): Rename methods.
1611 * dwarf2/attribute.c (attribute::as_address): Rename from
1612 value_as_address.
1613 (attribute::as_string): Rename from value_as_string.
1614
1615 2020-09-29 Tom Tromey <tom@tromey.com>
1616
1617 * dwarf2/read.c (partial_die_info::read) <case
1618 DW_AT_linkage_name>: Use value_as_string.
1619 (dwarf2_string_attr): Use value_as_string.
1620 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1621 method.
1622 * dwarf2/attribute.c (attribute::value_as_string): New method.
1623
1624 2020-09-29 Pedro Alves <pedro@palves.net>
1625
1626 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1627 defined before using '#pragma GCC diagnostic' instead of checking
1628 __clang__.
1629
1630 2020-09-28 Tom Tromey <tom@tromey.com>
1631
1632 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1633 (handle_signal_stop): Update.
1634 * procfs.c (procfs_target::insert_watchpoint): Update.
1635 * target.h (target_have_steppable_watchpoint): Now a function.
1636
1637 2020-09-28 Tom Tromey <tom@tromey.com>
1638
1639 * infrun.c (set_schedlock_func): Update.
1640 * target.h (target_can_lock_scheduler): Now a function.
1641
1642 2020-09-28 Tom Tromey <tom@tromey.com>
1643
1644 * inferior.h (class inferior) <has_execution>: Update.
1645 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1646 * valops.c (find_function_in_inferior)
1647 (value_allocate_space_in_inferior): Update.
1648 * top.c (kill_or_detach): Update.
1649 * target.c (target_preopen, set_target_permissions): Update.
1650 (target_has_execution_current): Remove.
1651 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1652 Update.
1653 * solib.c (update_solib_list, reload_shared_libraries): Update.
1654 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1655 * solib-dsbt.c (enable_break): Update.
1656 * score-tdep.c (score7_fetch_inst): Update.
1657 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1658 Update.
1659 * remote.c (remote_target::start_remote)
1660 (remote_target::remote_check_symbols, remote_target::open_1)
1661 (remote_target::remote_detach_1, remote_target::verify_memory)
1662 (remote_target::xfer_partial, remote_target::read_description)
1663 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1664 * record-full.c (record_full_open_1): Update.
1665 * record-btrace.c (record_btrace_target_open): Update.
1666 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1667 (value_nsstring): Update.
1668 * linux-thread-db.c (add_thread_db_info)
1669 (thread_db_find_new_threads_silently, check_thread_db_callback)
1670 (try_thread_db_load_1, record_thread): Update.
1671 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1672 Update.
1673 * linux-fork.c (checkpoint_command): Update.
1674 * infrun.c (set_non_stop, set_observer_mode)
1675 (check_multi_target_resumption, for_each_just_stopped_thread)
1676 (maybe_remove_breakpoints, normal_stop)
1677 (class infcall_suspend_state): Update.
1678 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1679 (info_program_command, attach_command): Update.
1680 * infcall.c (call_function_by_hand_dummy): Update.
1681 * inf-loop.c (inferior_event_handler): Update.
1682 * gcore.c (gcore_command, derive_heap_segment): Update.
1683 * exec.c (exec_file_command): Update.
1684 * eval.c (evaluate_subexp): Update.
1685 * compile/compile.c (compile_to_object): Update.
1686 * cli/cli-dump.c (restore_command): Update.
1687 * breakpoint.c (update_watchpoint)
1688 (update_inserted_breakpoint_locations)
1689 (insert_breakpoint_locations, get_bpstat_thread): Update.
1690 * target.h (target_has_execution): Remove macro.
1691 (target_has_execution_current): Don't declare.
1692 (target_has_execution): Rename from target_has_execution_1. Add
1693 argument default.
1694
1695 2020-09-28 Tom Tromey <tom@tromey.com>
1696
1697 * mi/mi-main.c (exec_reverse_continue)
1698 (mi_cmd_list_target_features): Update.
1699 * infrun.c (set_exec_direction_func): Update.
1700 * target.c (default_execution_direction): Update.
1701 * reverse.c (exec_reverse_once): Update.
1702 * target.h (target_can_execute_reverse): Now a function.
1703
1704 2020-09-28 Tom Tromey <tom@tromey.com>
1705
1706 * tui/tui-regs.c (tui_get_register)
1707 (tui_data_window::show_registers): Update.
1708 * thread.c (scoped_restore_current_thread::restore)
1709 (scoped_restore_current_thread::scoped_restore_current_thread):
1710 Update.
1711 * regcache-dump.c (regcache_print): Update.
1712 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1713 Update.
1714 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1715 * mep-tdep.c (current_me_module, current_options): Update.
1716 * linux-thread-db.c (thread_db_load): Update.
1717 * infcmd.c (registers_info, info_vector_command)
1718 (info_float_command): Update.
1719 * ia64-tdep.c (ia64_frame_prev_register)
1720 (ia64_sigtramp_frame_prev_register): Update.
1721 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1722 * gcore.c (derive_stack_segment): Update.
1723 * frame.c (get_current_frame, has_stack_frames): Update.
1724 * findvar.c (language_defn::read_var_value): Update.
1725 * arm-tdep.c (arm_pc_is_thumb): Update.
1726 * target.c (target_has_registers): Rename from
1727 target_has_registers_1.
1728 * target.h (target_has_registers): Remove macro.
1729 (target_has_registers): Rename from target_has_registers_1.
1730
1731 2020-09-28 Tom Tromey <tom@tromey.com>
1732
1733 * windows-tdep.c (tlb_make_value): Update.
1734 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1735 * thread.c (scoped_restore_current_thread::restore)
1736 (scoped_restore_current_thread::scoped_restore_current_thread)
1737 (thread_command): Update.
1738 * stack.c (backtrace_command_1, frame_apply_level_command)
1739 (frame_apply_all_command, frame_apply_command): Update.
1740 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1741 Update.
1742 * gcore.c (derive_stack_segment): Update.
1743 * frame.c (get_current_frame, has_stack_frames): Update.
1744 * auxv.c (info_auxv_command): Update.
1745 * ada-tasks.c (ada_build_task_list): Update.
1746 * target.c (target_has_stack): Rename from target_has_stack_1.
1747 * target.h (target_has_stack): Remove macro.
1748 (target_has_stack): Rename from target_has_stack_1.
1749
1750 2020-09-28 Tom Tromey <tom@tromey.com>
1751
1752 * target.c (target_has_memory): Rename from target_has_memory_1.
1753 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1754 * thread.c (scoped_restore_current_thread::restore)
1755 (scoped_restore_current_thread::scoped_restore_current_thread):
1756 Update.
1757 * frame.c (get_current_frame, has_stack_frames): Update.
1758 * target.h (target_has_memory): Remove macro.
1759 (target_has_memory): Rename from target_has_memory_1.
1760
1761 2020-09-28 Tom Tromey <tom@tromey.com>
1762
1763 * target.c (target_has_all_memory_1): Remove.
1764 * target.h (target_has_all_memory): Remove define.
1765 (target_has_all_memory_1): Don't declare.
1766
1767 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 * ser-base.c: Adjust comments formatting.
1770
1771 2020-09-27 Tom Tromey <tom@tromey.com>
1772
1773 PR tui/25342:
1774 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1775
1776 2020-09-27 Tom Tromey <tom@tromey.com>
1777
1778 PR tui/25342:
1779 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1780
1781 2020-09-27 Tom Tromey <tom@tromey.com>
1782
1783 * unittests/tui-selftests.c: Update.
1784 * tui/tui-winsource.h (struct tui_source_window_base)
1785 <extra_margin, show_line_number, refresh_pad>: New methods.
1786 <m_max_length, m_pad>: New members.
1787 (tui_copy_source_line): Update.
1788 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1789 first_col, line_width, ndigits parameters. Add length.
1790 (tui_source_window_base::show_source_line): Write to pad. Line
1791 number now 0-based.
1792 (tui_source_window_base::refresh_pad): New method.
1793 (tui_source_window_base::show_source_content): Write to pad. Call
1794 refresh_pad.
1795 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1796 not refill.
1797 (tui_source_window_base::update_exec_info): Call
1798 show_line_number.
1799 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1800 method.
1801 <m_digits>: New member.
1802 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1803 and m_max_length.
1804 (tui_source_window::show_line_number): New method.
1805 * tui/tui-io.h (tui_puts): Fix comment.
1806 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1807 m_max_length.
1808
1809 2020-09-27 Tom Tromey <tom@tromey.com>
1810
1811 * tui/tui-winsource.c
1812 (tui_source_window_base::set_is_exec_point_at): Don't call
1813 show_source_line.
1814
1815 2020-09-27 Tom Tromey <tom@tromey.com>
1816
1817 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1818 method.
1819 <erase>: Update.
1820 <cursor_x, cursor_y>: Remove.
1821 <m_inner_window>: New member.
1822 (tui_py_window::rerender): Create inner window.
1823 (tui_py_window::output): Write to inner window.
1824
1825 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1826
1827 PR python/26586
1828 * cli/cli-script.c (execute_control_commands): don't set
1829 instream to nullptr here as this breaks the from_tty argument
1830 to gdb.execute in Python.
1831 (execute_user_command): set instream to nullptr here instead.
1832
1833 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * infrun.h (infrun_debug_printf): Fix formatting.
1836 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1837
1838 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1839
1840 * compile/compile-object-load.h (struct munmap_list): Add
1841 explicitly-defined move constructor.
1842
1843 2020-09-24 Tom Tromey <tromey@adacore.com>
1844
1845 PR tui/26638:
1846 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1847 method.
1848 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1849 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1850 (tui_prev_win): Rewrite.
1851
1852 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1853
1854 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1855 in WOW64 processes as SIGINT.
1856 * nat/windows-nat.h: Make wow64_process a shared variable.
1857 * windows-nat.c: Remove static wow64_process variable.
1858
1859 2020-09-23 Tom Tromey <tom@tromey.com>
1860
1861 PR symtab/25470:
1862 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1863 offset and bit size.
1864 * printcmd.c (print_scalar_formatted): Handle zero-length
1865 integer.
1866 (print_scalar_formatted): Use bit_size_differs_p.
1867 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1868 constant.
1869 (union type_specific): <int_stuff>: New member.
1870 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1871 methods.
1872 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1873 TYPE_SPECIFIC_FIELD.
1874 (recursive_dump_type, copy_type_recursive): Update.
1875 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1876 DW_AT_data_bit_offset.
1877
1878 2020-09-23 Tom Tromey <tom@tromey.com>
1879
1880 * utils.h (class gdb_argv): Add move operators.
1881 <append>: New methods.
1882 * compile/compile.c (build_argc_argv): Remove.
1883 (compile_args_argc): Remove.
1884 (compile_args_argv): Change type.
1885 (set_compile_args): Simplify.
1886 (append_args): Remove.
1887 (filter_args): Remove argcp parameter.
1888 (get_args): Return gdb_argv. Simplify.
1889 (compile_to_object): Update.
1890
1891 2020-09-23 Tom Tromey <tom@tromey.com>
1892
1893 * compile/compile-object-run.c (do_module_cleanup)
1894 <~do_module_cleanup> :Remove.
1895 (do_module_cleanup): Update.
1896 * compile/compile-object-load.h (struct munmap_list): Add move
1897 assignment operator.
1898 <source_file>: Now a std::string.
1899 <munmap_list>: Rename. No longer a pointer.
1900 * compile/compile-object-load.c (struct setup_sections_data): Add
1901 constructor.
1902 <setup_one_section>: Declare.
1903 <munmap_list>: Move earlier.
1904 <m_bfd>: New member.
1905 <m_last_size, m_last_section_first, m_last_prot,
1906 m_last_max_alignment>: Rename, add initializers where needed.
1907 (setup_sections_data::setup_one_section): Rename from
1908 setup_sections. Update.
1909 (compile_object_load): Update. Don't use bfd_map_over_sections.
1910
1911 2020-09-23 Tom Tromey <tom@tromey.com>
1912
1913 * compile/compile-object-run.c (struct do_module_cleanup): Add
1914 parameters to constructor. Update destructor.
1915 <source_file, scope, scope_data, out_value_type, out_value_addr,
1916 munmap_list_head, objfile_name_string>: Remove.
1917 <module>: New member.
1918 (do_module_cleanup): Update.
1919 (compile_object_run): Update.
1920
1921 2020-09-23 Tom Tromey <tom@tromey.com>
1922
1923 * compile/compile.c (eval_compile_command): Update.
1924 * compile/compile-object-run.h (compile_object_run): Take a
1925 compile_module_up.
1926 * compile/compile-object-run.c (compile_object_run): Take a
1927 compile_module_up.
1928 * compile/compile-object-load.h (struct compile_module): Add
1929 constructor, destructor.
1930 (compile_module_up): New typedef.
1931 (compile_object_load): Return compile_object_up.
1932 * compile/compile-object-load.c (compile_object_load): Return
1933 compile_module_up.
1934
1935 2020-09-23 Tom Tromey <tom@tromey.com>
1936
1937 * compile/compile-object-run.c (struct do_module_cleanup): Add
1938 constructor, destructor.
1939 <objfile_name_string>: Don't use struct hack.
1940 (do_module_cleanup): Use delete.
1941 (compile_object_run): Use new.
1942
1943 2020-09-23 Tom Tromey <tom@tromey.com>
1944
1945 * compile/compile-cplus-types.c
1946 (compile_cplus_convert_struct_or_union): Use std::vector.
1947 (compile_cplus_convert_func): Likewise.
1948 * compile/compile-c-types.c (convert_func): Use std::vector.
1949
1950 2020-09-21 Tom Tromey <tromey@adacore.com>
1951
1952 * sparc-tdep.c (sparc32_skip_prologue): Use
1953 skip_prologue_using_sal.
1954
1955 2020-09-19 Tom Tromey <tom@tromey.com>
1956
1957 * symfile.c (add_section_size_callback): Remove.
1958 (load_one_section): Rename from load_section_callback. Change
1959 parameters.
1960 (generic_load): Use foreach.
1961
1962 2020-09-19 Tom Tromey <tom@tromey.com>
1963
1964 * exec.c (add_to_section_table): Remove.
1965 (build_section_table): Use foreach.
1966
1967 2020-09-19 Tom Tromey <tom@tromey.com>
1968
1969 * elfread.c (elf_locate_sections): Change parameters.
1970 (elf_symfile_read): Use foreach.
1971
1972 2020-09-19 Tom Tromey <tom@tromey.com>
1973
1974 * cli/cli-dump.c (struct callback_data): Remove.
1975 (restore_one_section): Rename from restore_section_callback.
1976 Change parameters.
1977 (restore_binary_file): Change parameters.
1978 (restore_command): Use foreach.
1979
1980 2020-09-19 Tom Tromey <tom@tromey.com>
1981
1982 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1983 (gcore_copy_callback): Likewise.
1984 (gcore_memory_sections): Use foreach.
1985
1986 2020-09-19 Tom Tromey <tom@tromey.com>
1987
1988 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1989 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1990 parameters.
1991 (generic_elf_osabi_sniffer): Use foreach.
1992 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1993 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1994
1995 2020-09-19 Tom Tromey <tom@tromey.com>
1996
1997 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1998 (dwarf2_get_dwz_file): Use foreach.
1999 (dwarf2_locate_dwo_sections): Change parameters.
2000 (open_and_init_dwo_file): Use foreach.
2001 (dwarf2_locate_common_dwp_sections): Change parameters.
2002 (open_and_init_dwp_file): Use foreach.
2003
2004 2020-09-19 Tom Tromey <tom@tromey.com>
2005
2006 * symfile.h: (find_lowest_section): Don't declare.
2007 * symfile.c (find_lowest_section): Now static. Change
2008 parameters.
2009 (struct place_section_arg): Remove.
2010 (place_section): Change parameters.
2011 (addr_info_make_relative): Use foreach.
2012 (symfile_dummy_outputs): Remove.
2013 (default_symfile_relocate): Use foreach.
2014
2015 2020-09-19 Tom Tromey <tom@tromey.com>
2016
2017 * objfiles.c (add_to_objfile_sections): Rename from
2018 add_to_objfile_sections_full.
2019 (add_to_objfile_sections): Remove.
2020 (build_objfile_section_table): Use foreach.
2021
2022 2020-09-19 Tom Tromey <tom@tromey.com>
2023
2024 * stap-probe.c (get_stap_base_address_1): Remove.
2025 (get_stap_base_address): Use foreach.
2026
2027 2020-09-19 Tom Tromey <tom@tromey.com>
2028
2029 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2030 parameters.
2031 (gdb_bfd_close_or_warn): Use foreach.
2032
2033 2020-09-19 Tom Tromey <tom@tromey.com>
2034
2035 * corelow.c (add_to_thread_list): Change parameters.
2036 (core_target_open): Use foreach.
2037
2038 2020-09-19 Tom Tromey <tom@tromey.com>
2039
2040 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2041 existing function.
2042
2043 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2046 for arrays.
2047
2048 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * eval.c: Remove 'f-lang.h' include.
2051 (value_f90_subarray): Moved to f-lang.c.
2052 (eval_call): Renamed to...
2053 (evaluate_subexp_do_call): ...this, is no longer static, header
2054 comment moved into header file.
2055 (evaluate_funcall): Update call to eval_call.
2056 (skip_undetermined_arglist): Moved to f-lang.c.
2057 (fortran_value_subarray): Likewise.
2058 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2059 moved to evaluate_subexp_f.
2060 (calc_f77_array_dims): Moved to f-lang.c
2061 * expprint.c (print_subexp_funcall): New function.
2062 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2063 moved to print_subexp_f, OP_FUNCALL uses new function.
2064 (dump_subexp_body_funcall): New function.
2065 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2066 moved to dump_subexp_f, OP_FUNCALL uses new function.
2067 * expression.h (evaluate_subexp_do_call): Declare.
2068 * f-lang.c (value_f90_subarray): Moved from eval.c.
2069 (skip_undetermined_arglist): Likewise.
2070 (calc_f77_array_dims): Likewise.
2071 (fortran_value_subarray): Likewise.
2072 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2073 (operator_length_f): Likewise.
2074 (print_subexp_f): Likewise.
2075 (dump_subexp_body_f): Likewise.
2076 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2077 declaration of this operation to here.
2078 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2079 support moved to operator_length_f.
2080 * parser-defs.h (dump_subexp_body_funcall): Declare.
2081 (print_subexp_funcall): Declare.
2082 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2083 fortran-operator.def.
2084
2085 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * eval.c (fortran_value_subarray): New function, content is taken
2088 from...
2089 (evaluate_subexp_standard): ...here, in two places. Now arrays
2090 and strings both call the new function.
2091 (calc_f77_array_dims): Add header comment, handle strings.
2092
2093 2020-09-18 Victor Collod <vcollod@nvidia.com>
2094
2095 PR gdb/26635
2096 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2097 (i386_analyze_prologue): Call i386_skip_endbr.
2098
2099 2020-09-18 Tom Tromey <tromey@adacore.com>
2100
2101 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2102 (windows_nat_target::wait): Update.
2103 * target/wait.h (enum target_wait_flag): New. Use
2104 DEF_ENUM_FLAGS_TYPE.
2105 * target/target.h (target_wait): Change type of options.
2106 * target.h (target_options_to_string, default_target_wait):
2107 Update.
2108 (struct target_ops) <wait>: Change type of options.
2109 * target.c (target_wait, default_target_wait, do_option): Change
2110 type of "options".
2111 (target_options_to_string): Likewise.
2112 * target-delegates.c: Rebuild.
2113 * target-debug.h (target_debug_print_target_wait_flags): Rename
2114 from target_debug_print_options.
2115 * sol-thread.c (class sol_thread_target) <wait>: Update.
2116 (sol_thread_target::wait): Update.
2117 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2118 (rs6000_nat_target::wait): Update.
2119 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2120 Update.
2121 (remote_target::wait_ns, remote_target::wait_as): Change type of
2122 "options".
2123 (remote_target::wait): Update.
2124 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2125 (gdbsim_target::wait): Update.
2126 * record-full.c (class record_full_base_target) <wait>: Update.
2127 (record_full_wait_1): Change type of "options".
2128 (record_full_base_target::wait): Update.
2129 * record-btrace.c (class record_btrace_target) <wait>: Update.
2130 (record_btrace_target::wait): Update.
2131 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2132 Update.
2133 (ravenscar_thread_target::wait): Update.
2134 * procfs.c (class procfs_target) <wait>: Update.
2135 (procfs_target::wait): Update.
2136 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2137 * obsd-nat.c (obsd_nat_target::wait): Update.
2138 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2139 (nto_procfs_target::wait): Update.
2140 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2141 * nbsd-nat.c (nbsd_wait): Change type of "options".
2142 (nbsd_nat_target::wait): Update.
2143 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2144 (thread_db_target::wait): Update.
2145 * linux-nat.h (class linux_nat_target) <wait>: Update.
2146 * linux-nat.c (linux_nat_target::wait): Update.
2147 (linux_nat_wait_1): Update.
2148 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2149 "options".
2150 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2151 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2152 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2153 (go32_nat_target::wait): Update.
2154 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2155 * gnu-nat.c (gnu_nat_target::wait): Update.
2156 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2157 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2158 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2159 * darwin-nat.c (darwin_nat_target::wait): Update.
2160 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2161 (bsd_uthread_target::wait): Update.
2162 * aix-thread.c (class aix_thread_target) <wait>: Update.
2163 (aix_thread_target::wait): Update.
2164
2165 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * compile/compile-object-run.c (create_copied_type_recursive): New
2168 function.
2169 (compile_object_run): Use new function.
2170
2171 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2172
2173 * NEWS: Mention x86_64 Cygwin core file support.
2174
2175 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2176
2177 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2178 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2179
2180 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2181
2182 * windows-tdep.h: Add prototypes.
2183 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2184 (i386_windows_core_pid_to_str): Move and rename ...
2185 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2186 (windows_core_pid_to_str): ... and here.
2187 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2188
2189 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2190 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2191 (amd64_windows_init_abi_common): ... and register.
2192
2193 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2194
2195 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2196 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2197
2198 2020-09-18 Pedro Alves <pedro@palves.net>
2199
2200 PR gdb/26631
2201 * thread.c (thread_find_command): Switch inferior before calling
2202 target methods.
2203
2204 2020-09-17 Tom Tromey <tromey@adacore.com>
2205
2206 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2207 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2208 (tdesc_arch_data_up): New typedef.
2209 (tdesc_use_registers, tdesc_data_alloc): Update.
2210 (tdesc_data_cleanup): Don't declare.
2211 * target-descriptions.c (tdesc_data_alloc): Return a
2212 tdesc_arch_data_up.
2213 (tdesc_arch_data_deleter::operator()): Rename from
2214 tdesc_data_cleanup. Change argument type.
2215 (tdesc_use_registers): Change early_data to an rvalue reference.
2216 (tdesc_use_registers): Don't use delete.
2217 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2218 * s390-tdep.c (s390_gdbarch_init): Update.
2219 * rx-tdep.c (rx_gdbarch_init): Update.
2220 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2221 * riscv-tdep.c (riscv_gdbarch_init): Update.
2222 * or1k-tdep.c (or1k_gdbarch_init): Update.
2223 * nios2-tdep.c (nios2_gdbarch_init): Update.
2224 * nds32-tdep.c (nds32_gdbarch_init): Update.
2225 * mips-tdep.c (mips_gdbarch_init): Update.
2226 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2227 * m68k-tdep.c (m68k_gdbarch_init): Update.
2228 * i386-tdep.c (i386_gdbarch_init): Update.
2229 * arm-tdep.c (arm_gdbarch_init): Update.
2230 * arc-tdep.c (arc_tdesc_init): Update.
2231 (arc_gdbarch_init): Update.
2232 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2233
2234 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2235
2236 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2237 for WOW64 processes.
2238
2239 2020-09-17 Tom Tromey <tom@tromey.com>
2240
2241 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2242
2243 2020-09-17 Tom Tromey <tom@tromey.com>
2244
2245 * value.c (preserve_values): Update.
2246 * python/py-type.c (save_objfile_types): Update.
2247 * guile/scm-type.c (save_objfile_types): Update.
2248 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2249 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2250 * compile/compile-object-run.c (compile_object_run): Update.
2251
2252 2020-09-17 Tom Tromey <tom@tromey.com>
2253
2254 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2255 Remove.
2256 <m_table>: Now htab_up.
2257 * typeprint.c (typedef_hash_table::recursively_update)
2258 (typedef_hash_table::add_template_parameters)
2259 (typedef_hash_table::typedef_hash_table): Update.
2260 (typedef_hash_table::~typedef_hash_table): Remove.
2261 (typedef_hash_table::typedef_hash_table)
2262 (typedef_hash_table::find_global_typedef)
2263 (typedef_hash_table::find_typedef): Update.
2264
2265 2020-09-17 Tom Tromey <tom@tromey.com>
2266
2267 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2268
2269 2020-09-17 Tom Tromey <tom@tromey.com>
2270
2271 * linespec.c (class decode_compound_collector)
2272 <~decode_compound_collector>: Remove.
2273 <m_unique_syms>: Now htab_up.
2274 (decode_compound_collector::operator ()): Update.
2275 (class symtab_collector) <~symtab_collector>: Remove.
2276 <m_symtab_table>: Now htab_up.
2277 (symtab_collector::operator ()): Update.
2278
2279 2020-09-17 Tom Tromey <tom@tromey.com>
2280
2281 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2282 (filename_seen_cache::clear): Update.
2283 (~filename_seen_cache): Remove.
2284 (filename_seen_cache::seen): Update.
2285 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2286 htab_up.
2287 <~filename_seen_cache>: Remove.
2288 <traverse>: Update.
2289
2290 2020-09-17 Tom Tromey <tom@tromey.com>
2291
2292 * completer.c (completion_tracker::discard_completions)
2293 (completion_tracker::~completion_tracker)
2294 (completion_tracker::maybe_add_completion)
2295 (completion_tracker::remove_completion)
2296 (completion_tracker::recompute_lowest_common_denominator)
2297 (completion_tracker::build_completion_result): Update.
2298 * completer.h (class completion_tracker) <have_completions>:
2299 Update.
2300 <m_entries_hash>: Now htab_up.
2301
2302 2020-09-17 Tom Tromey <tom@tromey.com>
2303
2304 * breakpoint.c (ambiguous_names_p): Use htab_up.
2305
2306 2020-09-17 Tom Tromey <tom@tromey.com>
2307
2308 * auto-load.c (struct auto_load_pspace_info)
2309 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2310 <loaded_script_files, loaded_script_texts>: Change type to
2311 htab_up.
2312 (~auto_load_pspace_info) Remove.
2313 (init_loaded_scripts_info, maybe_add_script_file)
2314 (maybe_add_script_text, auto_load_info_scripts): Update.
2315
2316 2020-09-17 Tom Tromey <tromey@adacore.com>
2317
2318 * c-exp.y (name_obstack): Now static.
2319
2320 2020-09-17 Chungyi Chi <demonic@csie.io>
2321
2322 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2323
2324 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2327 (add_solib_catchpoint): Likewise.
2328 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2329 to bool.
2330 (add_solib_catchpoint): Change int parameter/variable to bool.
2331 (catch_load_or_unload): Likewise.
2332 (init_catchpoint): Likewise.
2333 (create_fork_vfork_event_catchpoint): Likewise.
2334 (catch_fork_command_1): Likewise.
2335 (catch_exec_command_1): Likewise.
2336
2337 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2338
2339 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2340 Change instance_flags to m_instance_flags.
2341
2342 2020-09-16 Tom Tromey <tromey@adacore.com>
2343
2344 PR gdb/26598:
2345 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2346
2347 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2348
2349 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2350 PL_FLAG_EXEC.
2351 (fbsd_nat_target::insert_exec_catchpoint)
2352 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2353 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2354 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2355
2356 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2357
2358 * configure.ac: Remove check for kinfo_getvmmap().
2359 * configure, config.in: Regenerate.
2360 * fbsd-nat.c (fbsd_read_mapping): Remove
2361 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2362 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2363 kinfo_get_vmmap() are always present.
2364
2365 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2366
2367 * fbsd-nat.c: Always include support for
2368 TARGET_OBJECT_SIGNAL_INFO.
2369
2370 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2371
2372 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2373 sysctl and remove procfs fallback.
2374
2375 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2376
2377 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2378 * fbsd-nat.h: Likewise.
2379
2380 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2381
2382 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2383 argument.
2384
2385 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2386
2387 * ada-lang.c (ada_language_data): Delete.
2388 (ada_language): Remove references to ada_language_data.
2389 * c-lang.c (c_language_data): Delete.
2390 (c_language): Remove references to c_language_data.
2391 (cplus_language_data): Delete.
2392 (cplus_language): Remove references to cplus_language_data.
2393 (asm_language_data): Delete.
2394 (asm_language): Remove references to asm_language_data.
2395 (minimal_language_data): Delete.
2396 (minimal_language): Remove references to minimal_language_data.
2397 * d-lang.c (d_language_data): Delete.
2398 (d_language): Remove references to d_language_data.
2399 * f-lang.c (f_language_data): Delete.
2400 (f_language): Remove references to f_language_data.
2401 * go-lang.c (go_language_data): Delete.
2402 (go_language): Remove references to go_language_data.
2403 * language.c (unknown_language_data): Delete.
2404 (unknown_language): Remove references to unknown_language_data.
2405 (auto_language_data): Delete.
2406 (auto_language): Remove references to auto_language_data.
2407 * language.h (language_data): Delete struct.
2408 (language_defn): No longer inherit from language_data.
2409 * m2-lang.c (m2_language_data): Delete.
2410 (m2_language): Remove references to m2_language_data.
2411 * objc-lang.c (objc_language_data): Delete.
2412 (objc_language): Remove references to objc_language_data.
2413 * opencl-lang.c (opencl_language_data): Delete.
2414 (opencl_language): Remove references to opencl_language_data.
2415 * p-lang.c (pascal_language_data): Delete.
2416 (pascal_language): Remove references to pascal_language_data.
2417 * rust-lang.c (rust_language_data): Delete.
2418 (rust_language): Remove references to rust_language_data.
2419
2420 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2421
2422 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2423 initializer.
2424 (ada_language::opcode_print_table): New member function.
2425 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2426 (c_language::opcode_print_table): New member function.
2427 (cplus_language_data): Remove la_op_print_tab initializer.
2428 (cplus_language::opcode_print_table): New member function.
2429 (asm_language_data): Remove la_op_print_tab initializer.
2430 (asm_language::opcode_print_table): New member function.
2431 (minimal_language_data): Remove la_op_print_tab initializer.
2432 (minimal_language::opcode_print_table): New member function.
2433 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2434 (d_language::opcode_print_table): New member function.
2435 * expprint.c (print_subexp_standard): Update call to
2436 opcode_print_table.
2437 (op_string): Likewise.
2438 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2439 (f_language::opcode_print_table): New member function.
2440 * go-lang.c (go_language_data): Remove la_op_print_tab
2441 initializer.
2442 (go_language::opcode_print_table): New member function.
2443 * language.c (unknown_language_data): Remove la_op_print_tab
2444 initializer.
2445 (unknown_language::opcode_print_table): New member function.
2446 (auto_language_data): Remove la_op_print_tab initializer.
2447 (auto_language::opcode_print_table): New member function.
2448 * language.h (language_data): Remove la_op_print_tab field.
2449 (language_defn::opcode_print_table): Declare new member function.
2450 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2451 initializer.
2452 (m2_language::opcode_print_table): New member function.
2453 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2454 initializer.
2455 (objc_language::opcode_print_table): New member function.
2456 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2457 initializer.
2458 (opencl_language::opcode_print_table): New member function.
2459 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2460 initializer.
2461 (pascal_language::opcode_print_table): New member function.
2462 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2463 initializer.
2464 (rust_language::opcode_print_table): New member function.
2465
2466 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2469 (ada_language::expression_ops): New member function.
2470 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2471 (c_language::expression_ops): New member function.
2472 (cplus_language_data): Remove la_exp_desc initializer.
2473 (cplus_language::expression_ops): New member function.
2474 (asm_language_data): Remove la_exp_desc initializer.
2475 (asm_language::expression_ops): New member function.
2476 (minimal_language_data): Remove la_exp_desc initializer.
2477 (minimal_language::expression_ops): New member function.
2478 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2479 (d_language::expression_ops): New member function.
2480 * eval.c (evaluate_subexp): Update call to expression_ops.
2481 * expprint.c (print_subexp): Likewise.
2482 (op_name): Likewise.
2483 (dump_subexp_body): Likewise.
2484 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2485 (f_language::expression_ops): New member function.
2486 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2487 (go_language::expression_ops): New member function.
2488 * language.c (language_defn::expression_ops): New function.
2489 (unknown_language_data): Remove la_exp_desc initializer.
2490 (auto_language_data): Likewise.
2491 * language.h (language_data): Remove la_exp_desc field.
2492 (language_defn::expression_ops): Declare new member function.
2493 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2494 (m2_language::expression_ops): New member function.
2495 * objc-lang.c (objc_language_data): Remove la_exp_desc
2496 initializer.
2497 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2498 initializer.
2499 (opencl_language::expression_ops): New member function.
2500 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2501 * parse.c (operator_length): Update call to expression_ops.
2502 (exp_iterate): Likewise.
2503 * rust-lang.c (rust_language_data): Remove la_exp_desc
2504 initializer.
2505 (ruse_language::expression_ops): New member function.
2506
2507 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2510 initializer.
2511 (ada_language::varobj_ops): New member function.
2512 * c-lang.c (c_language_data): Remove la_varobj_ops
2513 initializer.
2514 (cplus_language_data): Likewise.
2515 (cplus_language::varobj_ops): New member function.
2516 (asm_language_data): Remove la_varobj_ops initializer.
2517 (minimal_language_data): Likewise.
2518 * d-lang.c (d_language_data): Likewise.
2519 * f-lang.c (f_language_data): Likewise.
2520 * go-lang.c (go_language_data): Likewise.
2521 * language.c (language_defn::varobj_ops): New function.
2522 (unknown_language_data): Remove la_varobj_ops
2523 initializer.
2524 (auto_language_data): Likewise.
2525 * language.h (language_data): Remove la_varobj_ops field.
2526 (language_defn::varobj_ops): Declare new member function.
2527 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2528 * objc-lang.c (objc_language_data): Likewise.
2529 * opencl-lang.c (opencl_language_data): Likewise.
2530 * p-lang.c (pascal_language_data): Likewise.
2531 * rust-lang.c (rust_language_data): Likewise.
2532 * varobj.c (varobj_create): Update call to varobj_ops.
2533 * varobj.h (default_varobj_ops): Delete define.
2534
2535 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2538 initializer.
2539 * c-lang.c (c_language_data): Likewise.
2540 (c_language::macro_expansion): New member function.
2541 (cplus_language_data): Likewise.
2542 (cplus_language::macro_expansion): New member function.
2543 (asm_language_data): Likewise.
2544 (asm_language::macro_expansion): New member function.
2545 (minimal_language_data): Likewise.
2546 (minimal_language::macro_expansion): New member function.
2547 * d-lang.c (d_language_data): Remove la_macro_expansion
2548 initializer.
2549 * f-lang.c (f_language_data): Likewise.
2550 * go-lang.c (go_language_data): Likewise.
2551 * language.c (unknown_language_data): Likewise.
2552 (auto_language_data): Likewise.
2553 * language.h (language_data): Remove la_macro_expansion field.
2554 (language_defn::macro_expansion): New member function.
2555 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2556 initializer.
2557 * objc-lang.c (objc_language_data): Likewise.
2558 (objc_language::macro_expansion): New member function.
2559 * opencl-lang.c (opencl_language_data): Likewise.
2560 (opencl_language::macro_expansion): New member function.
2561 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2562 initializer.
2563 * rust-lang.c (rust_language_data): Likewise.
2564 * symtab.c (default_collect_symbol_completion_matches_break_on):
2565 Update call to macro_expansion.
2566
2567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (ada_language_data): Remove la_array_ordering
2570 initializer.
2571 * c-lang.c (c_language_data): Likewise.
2572 (cplus_language_data): Likewise.
2573 (asm_language_data): Likewise.
2574 (minimal_language_data): Likewise.
2575 * d-lang.c (d_language_data): Likewise.
2576 * dwarf2/read.c (read_array_order): Update for call to
2577 array_ordering.
2578 * f-lang.c (f_language_data): Remove la_array_ordering
2579 initializer.
2580 (f_language::array_ordering): New member function.
2581 * go-lang.c (go_language_data): Remove la_array_ordering
2582 initializer.
2583 * language.c (unknown_language_data): Likewise.
2584 (auto_language_data): Likewise.
2585 * language.h (language_data): Delete la_array_ordering field.
2586 (language_defn::array_ordering): New member function.
2587 * m2-lang.c (m2_language_data): Remove la_array_ordering
2588 initializer.
2589 * objc-lang.c (objc_language_data): Likewise.
2590 * opencl-lang.c (opencl_language_data): Likewise.
2591 * p-lang.c (pascal_language_data): Likewise.
2592 * rust-lang.c (rust_language_data): Likewise.
2593
2594 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2597 initializer.
2598 * c-lang.c (c_language_data): Likewise.
2599 (cplus_language_data): Likewise.
2600 (asm_language_data): Likewise.
2601 (minimal_language_data): Likewise.
2602 * d-lang.c (d_language_data): Likewise.
2603 * f-lang.c (f_language_data): Likewise.
2604 (f_language::case_sensitivity): New member function.
2605 * go-lang.c (go_language_data): Remove la_case_sensitivity
2606 initializer.
2607 * language.c (enum case_mode): Moved here from language.h.
2608 (case_mode): Make static.
2609 (show_case_command): Update for case_sensitivity being a method.
2610 (set_case_command): Likewise.
2611 (set_range_case): Likewise.
2612 (unknown_language_data): Remove la_case_sensitivity initializer.
2613 (auto_language_data): Likewise.
2614 * language.h (case_mode): Delete, move enum declaration to
2615 language.c.
2616 (language_data): Delete la_case_sensitivity field.
2617 (language_defn::case_sensitivity): New member function.
2618 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2619 initializer.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624
2625 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_language_data): Remove la_range_check
2628 initializer.
2629 * c-lang.c (c_language_data): Likewise.
2630 (cplus_language_data): Likewise.
2631 (asm_language_data): Likewise.
2632 (minimal_language_data): Likewise.
2633 * d-lang.c (d_language_data): Likewise.
2634 * f-lang.c (f_language_data): Likewise.
2635 (f_language::range_checking_on_by_default): New member function.
2636 * go-lang.c (go_language_data): Remove la_range_check initializer.
2637 * language.c (enum range_mode): Moved here from language.h.
2638 (range_mode): Made static.
2639 (show_range_command): Update to use
2640 range_checking_on_by_default.
2641 (set_range_command): Likewise.
2642 (set_range_case): Likewise.
2643 (unknown_language_data): Remove la_range_check initializer.
2644 (auto_language_data): Likewise.
2645 * language.h (range_mode): Delete. Enum definition moved to
2646 language.c.
2647 (language_data): Remove la_range_check field.
2648 (language_defn::range_checking_on_by_default): New member
2649 function.
2650 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2651 (m2_language::range_checking_on_by_default): New member function.
2652 * objc-lang.c (objc_language_data): Remove la_range_check
2653 initializer.
2654 * opencl-lang.c (opencl_language_data): Likewise.
2655 * p-lang.c (pascal_language_data): Likewise.
2656 (pascal_language::range_checking_on_by_default): New member
2657 function.
2658 * rust-lang.c (rust_language_data): Remove la_range_check
2659 initializer.
2660 (rust_language::range_checking_on_by_default): New member
2661 function.
2662
2663 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * dwarf2/read.c (dwarf2_physname): Remove special case for
2666 language_go.
2667 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2668 member function.
2669
2670 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2671
2672 * ada-lang.c (ada_language_data): Remove
2673 la_store_sym_names_in_linkage_form_p initializer.
2674 (ada_language::store_sym_names_in_linkage_form_p): New member
2675 function.
2676 * c-lang.c (c_language_data): Remove
2677 la_store_sym_names_in_linkage_form_p initializer.
2678 (c_language::store_sym_names_in_linkage_form_p): New member
2679 function.
2680 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2681 initializer.
2682 (asm_language_data): Likewise.
2683 (asm_language::store_sym_names_in_linkage_form_p): New member
2684 function.
2685 (minimal_language_data): Remove
2686 la_store_sym_names_in_linkage_form_p initializer.
2687 (minimal_language::store_sym_names_in_linkage_form_p): New member
2688 function.
2689 * d-lang.c (d_language_data): Remove
2690 la_store_sym_names_in_linkage_form_p initializer.
2691 * dwarf2/read.c (dwarf2_physname): Update call to
2692 store_sym_names_in_linkage_form_p.
2693 * f-lang.c (f_language_data): Remove
2694 la_store_sym_names_in_linkage_form_p initializer.
2695 * go-lang.c (go_language_data): Remove
2696 la_store_sym_names_in_linkage_form_p initializer.
2697 * language.c (unknown_language_data): Remove
2698 la_store_sym_names_in_linkage_form_p initializer.
2699 (unknown_language::store_sym_names_in_linkage_form_p): New member
2700 function.
2701 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2702 initializer.
2703 (auto_language::store_sym_names_in_linkage_form_p): New member
2704 function.
2705 * language.h (language_data): Remove
2706 la_store_sym_names_in_linkage_form_p member variable.
2707 (language_defn::store_sym_names_in_linkage_form_p): New member
2708 function.
2709 * m2-lang.c (m2_language_data): Remove
2710 la_store_sym_names_in_linkage_form_p initializer.
2711 * objc-lang.c (objc_language_data): Likewise.
2712 * opencl-lang.c (opencl_language_data): Likewise.
2713 * p-lang.c (pascal_language_data): Likewise.
2714 * rust-lang.c (rust_language_data): Likewise.
2715
2716 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 * ada-lang.c (ada_language_data): Remove string_lower_bound
2719 initializer.
2720 * c-lang.c (c_language_data): Likewise.
2721 (cplus_language_data): Likewise.
2722 (asm_language_data): Likewise.
2723 (minimal_language_data): Likewise.
2724 * d-lang.c (d_language_data): Likewise.
2725 * f-lang.c (f_language_data): Likewise.
2726 * go-lang.c (go_language_data): Likewise.
2727 * language.c (unknown_language_data): Likewise.
2728 (auto_language_data): Likewise.
2729 * language.h (language_data): Remove string_lower_bound field.
2730 (language_defn::string_lower_bound): New member function.
2731 * m2-lang.c (m2_language_data): Remove string_lower_bound
2732 initializer.
2733 (m2_language::string_lower_bound): New member function.
2734 * objc-lang.c (objc_language_data): Remove string_lower_bound
2735 initializer.
2736 * opencl-lang.c (opencl_language_data): Likewise.
2737 * p-lang.c (pascal_language_data): Likewise.
2738 * rust-lang.c (rust_language_data): Likewise.
2739 * valops.c (value_cstring): Update call to string_lower_bound.
2740 (value_string): Likewise.
2741 * value.c (allocate_repeated_value): Likewise.
2742
2743 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * valops.c (value_repeat): Fix incorrect argument name in comment.
2746
2747 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2748
2749 * ada-lang.c (ada_language_data): Remove c_style_arrays
2750 initializer.
2751 (ada_language::c_style_arrays_p): New member fuction.
2752 * c-lang.c (c_language_data): Remove c_style_arrays
2753 initializer.
2754 (cplus_language_data): Likewise.
2755 (asm_language_data): Likewise.
2756 (minimal_language_data): Likewise.
2757 * d-lang.c (d_language_data): Likewise.
2758 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2759 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2760 (f_language::c_style_arrays_p): New member function.
2761 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2762 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2763 * language.c (unknown_language_data): Remove c_style_arrays
2764 initializer.
2765 (auto_language_data): Likewise.
2766 * language.h (language_data): Remove c_style_arrays field.
2767 (language_defn::c_style_arrays_p): New member function.
2768 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2769 (m2_language::c_style_arrays_p): New member function.
2770 * objc-lang.c (objc_language_data): Remove c_style_arrays
2771 initializer.
2772 * opencl-lang.c (opencl_language_data): Likewise.
2773 * p-lang.c (pascal_language_data): Likewise.
2774 * rust-lang.c (rust_language_data): Likewise.
2775 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2776 and update local variable to a bool.
2777 * valops.c (value_cast): Update call to c_style_arrays_p.
2778 (value_array): Likewise.
2779 * value.c (coerce_array): Likewise.
2780
2781 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2782
2783 * ada-lang.c (ada_language_data): Remove la_language initializer.
2784 * c-lang.c (c_language_data): Likewise.
2785 (cplus_language_data): Likewise.
2786 (asm_language_data): Likewise.
2787 (minimal_language_data): Likewise.
2788 * d-lang.c (d_language_data): Likewise.
2789 * f-lang.c (f_language_data): Likewise.
2790 * go-lang.c (go_language_data): Likewise.
2791 * language.c (unknown_language_data): Likewise.
2792 (auto_language_data): Likewise.
2793 * language.h (language_data): Remove la_language field.
2794 (language_defn::language_defn): Initialise la_language field.
2795 (language_defn::la_language): New member variable.
2796 * m2-lang.c (m2_language_data): Remove la_language field.
2797 * objc-lang.c (objc_language_data): Likewise.
2798 * opencl-lang.c (opencl_language_data): Likewise.
2799 * p-lang.c (pascal_language_data): Likewise.
2800 * rust-lang.c (rust_language_data): Likewise.
2801
2802 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * ada-lang.c (ada_extensions): Delete, moved into
2805 ada_language::filename_extensions.
2806 (ada_language_data): Remove la_filename_extensions initializer.
2807 (ada_language::filename_extensions): New member function.
2808 * c-lang.c (c_extensions): Delete, moved into
2809 c_language::filename_extensions.
2810 (c_language_data): Remove la_filename_extensions initializer.
2811 (c_language::filename_extensions): New member function.
2812 (cplus_extensions): Delete, moved into
2813 cplus_language::filename_extensions.
2814 (cplus_language_data): Remove la_filename_extensions initializer.
2815 (cplus_language::filename_extensions): New member function.
2816 (asm_extensions): Delete, moved into
2817 asm_language::filename_extensions.
2818 (asm_language_data): Remove la_filename_extensions initializer.
2819 (asm_language::filename_extensions): New member function.
2820 (minimal_language_data): Remove la_filename_extensions
2821 initializer.
2822 * d-lang.c (d_extensions): Delete, moved into
2823 d_language::filename_extensions.
2824 (d_language_data): Remove la_filename_extensions initializer.
2825 (d_language::filename_extensions): New member function.
2826 * f-lang.c (f_extensions): Delete, moved into
2827 f_language::filename_extensions.
2828 (f_language_data): Remove la_filename_extensions initializer.
2829 (f_language::filename_extensions): New member function.
2830 * go-lang.c (go_language_data): Remove la_filename_extensions
2831 initializer.
2832 * language.c (add_set_language_command): Update now that
2833 filename_extensions returns a vector.
2834 (unknown_language_data): Remove la_filename_extensions
2835 initializer.
2836 (auto_language_data): Likewise.
2837 * language.h (language_data): Remove la_filename_extensions field.
2838 (language_defn::filename_extensions): New member function.
2839 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2840 initializer.
2841 * objc-lang.c (objc_extensions): Delete, moved into
2842 objc_language::filename_extensions.
2843 (objc_language_data): Remove la_filename_extensions initializer.
2844 (objc_language::filename_extensions): New member function.
2845 * opencl-lang.c (opencl_language_data): Remove
2846 la_filename_extensions initializer.
2847 * p-lang.c (pascal_extensions): Delete, moved into
2848 pascal_language::filename_extensions.
2849 (pascal_language_data): Remove la_filename_extensions initializer.
2850 (pascal_language::filename_extensions): New member function.
2851 * rust-lang.c (rust_extensions): Delete, moved into
2852 rust_language::filename_extensions.
2853 (rust_language_data): Remove la_filename_extensions initializer.
2854 (rust_language::filename_extensions): New member function.
2855 * symfile.c (add_filename_language): Add new assert.
2856
2857 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * ada-lang.c (ada_language_data): Remove la_name and
2860 la_natural_name initializers.
2861 (ada_language::name): New member function.
2862 (ada_language::natural_name): New member function.
2863 * c-lang.c (c_language_data): Remove la_name and
2864 la_natural_name initializers.
2865 (c_language::name): New member function.
2866 (c_language::natural_name): New member function.
2867 (cplus_language_data): Remove la_name and
2868 la_natural_name initializers.
2869 (cplus_language::name): New member function.
2870 (cplus_language::natural_name): New member function.
2871 (asm_language_data): Remove la_name and
2872 la_natural_name initializers.
2873 (asm_language::name): New member function.
2874 (asm_language::natural_name): New member function.
2875 (minimal_language_data): Remove la_name and
2876 la_natural_name initializers.
2877 (minimal_language::name): New member function.
2878 (minimal_language::natural_name): New member function.
2879 * compile/compile.c (compile_to_object): Update call to
2880 lanugage_defn::name.
2881 * d-lang.c (d_language_data): Remove la_name and
2882 la_natural_name initializers.
2883 (d_language::name): New member function.
2884 (d_language::natural_name): New member function.
2885 * expprint.c (print_subexp_standard): Update call to
2886 language_defn::name.
2887 (dump_raw_expression): Likewise
2888 (dump_prefix_expression): Likewise.
2889 * f-lang.c (f_language_data): Remove la_name and
2890 la_natural_name initializers.
2891 (f_language::name): New member function.
2892 (f_language::natural_name): New member function.
2893 * go-lang.c (go_language_data): Remove la_name and
2894 la_natural_name initializers.
2895 (go_language::name): New member function.
2896 (go_language::natural_name): New member function.
2897 * language.c (show_language_command): Update call to
2898 language_defn::name.
2899 (set_language_command): Likewise.
2900 (language_enum): Likewise.
2901 (language_str): Likewise.
2902 (add_set_language_command): Likewise, use
2903 language_defn::natural_name in the doc string.
2904 (unknown_language_data): Remove la_name and
2905 la_natural_name initializers.
2906 (unknown_language::name): New member function.
2907 (unknown_language::natural_name): New member function.
2908 (auto_language_data): Remove la_name and
2909 la_natural_name initializers.
2910 (auto_language::name): New member function.
2911 (auto_language::natural_name): New member function.
2912 (language_lookup_primitive_type_as_symbol): Update call to
2913 language_defn::name.
2914 * language.h (language_data): Remove la_name and la_natural_name
2915 member variables.
2916 (language_defn::name): New member function.
2917 (language_defn::natural_name): New member function.
2918 * m2-lang.c (m2_language_data): Remove la_name and
2919 la_natural_name initializers.
2920 (m2_language::name): New member function.
2921 (m2_language::natural_name): New member function.
2922 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2923 language_defn::natural_name.
2924 * objc-lang.c (objc_language_data): Remove la_name and
2925 la_natural_name initializers.
2926 (objc_language::name): New member function.
2927 (objc_language::natural_name): New member function.
2928 * opencl-lang.c (opencl_language_data): Remove la_name and
2929 la_natural_name initializers.
2930 (opencl_language::name): New member function.
2931 (opencl_language::natural_name): New member function.
2932 * p-lang.c (pascal_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (pascal_language::name): New member function.
2935 (pascal_language::natural_name): New member function.
2936 * rust-lang.c (rust_language_data): Remove la_name and
2937 la_natural_name initializers.
2938 (rust_language::name): New member function.
2939 (rust_language::natural_name): New member function.
2940 * symtab.c (lookup_language_this): Update call to
2941 language_defn::name.
2942
2943 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * ada-lang.c (ada_language_data): Remove la_name_of_this
2946 initializer.
2947 * ax-gdb.c (gen_expr): Update call to name_of_this.
2948 * c-exp.y (classify_name): Likewise.
2949 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2950 (cplus_language_data): Likewise.
2951 (cplus_language::name_of_this): New member function.
2952 (asm_language_data): Remove la_name_of_this initializer.
2953 (minimal_language_data): Likewise.
2954 * d-lang.c (d_language_data): Likewise.
2955 (d_language::name_of_this): New member function.
2956 * expprint.c (print_subexp_standard): Update call to name_of_this.
2957 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2958 * go-lang.c (go_language_data): Likewise.
2959 * language.c (unknown_language_data): Likewise.
2960 (unknown_language::name_of_this): New member function.
2961 (auto_language_data): Remove la_name_of_this initializer.
2962 (auto_language::name_of_this): New member function.
2963 * language.h (language_data): Delete la_name_of_this member
2964 variable.
2965 (language_defn::name_of_this): New member function.
2966 * m2-lang.c (m2_language_data): Remove la_name_of_this
2967 initializer.
2968 * objc-lang.c (objc_language_data): Likewise.
2969 (objc_language::name_of_this): New member function.
2970 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2971 initializer.
2972 * p-lang.c (pascal_language_data): Likewise.
2973 (pascal_language::name_of_this): New member function.
2974 * rust-lang.c (rust_language_data): Remove la_name_of_this
2975 initializer.
2976 * symtab.c (lookup_language_this): Update call to name_of_this.
2977 (lookup_symbol_aux): Likewise.
2978 * valops.c (value_of_this): Likewise.
2979
2980 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * ada-lang.c (ada_language_data): Remove
2983 la_struct_too_deep_ellipsis initializer.
2984 (ada_language::struct_too_deep_ellipsis): New member function.
2985 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2986 initializer.
2987 (cplus_language_data): Likewise.
2988 (asm_language_data): Likewise.
2989 (minimal_language_data): Likewise.
2990 * cp-valprint.c (cp_print_value): Update call to
2991 struct_too_deep_ellipsis.
2992 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2993 initializer.
2994 * f-lang.c (f_language_data): Likewise.
2995 (f_language::struct_too_deep_ellipsis): New member function.
2996 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2997 initializer.
2998 * language.c (unknown_language_data): Likewise.
2999 (auto_language_data): Likewise.
3000 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3001 member variable.
3002 (language_defn::struct_too_deep_ellipsis): New member function.
3003 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3004 initializer.Q
3005 * objc-lang.c (objc_language_data): Likewise.
3006 * opencl-lang.c (opencl_language_data): Likewise.
3007 * p-lang.c (pascal_language_data): Likewise.
3008 * rust-lang.c (rust_language_data): Likewise.
3009 * valprint.c (val_print_check_max_depth): Update call to
3010 struct_too_deep_ellipsis.
3011
3012 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3013
3014 * MAINTAINERS (Write After Approval): Add myself.
3015
3016 2020-09-15 Tom Tromey <tom@tromey.com>
3017
3018 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3019 Remove.
3020
3021 2020-09-15 Tom Tromey <tom@tromey.com>
3022
3023 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3024 and TYPE_CODE_METHODPTR cases.
3025 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3026 (c_value_print_inner): Update.
3027 * valprint.c (generic_value_print_memberptr): New function, from
3028 c_value_print_memberptr.
3029 (generic_value_print): Use it. Call cplus_print_method_ptr.
3030
3031 2020-09-15 Tom Tromey <tromey@adacore.com>
3032
3033 * python/python-internal.h (PyInt_FromLong): Remove define.
3034 * python/py-value.c (convert_value_from_python): Use
3035 gdb_py_object_from_longest.
3036 * python/py-type.c (typy_get_code): Use
3037 gdb_py_object_from_longest.
3038 * python/py-symtab.c (salpy_get_line): Use
3039 gdb_py_object_from_longest.
3040 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3041 gdb_py_object_from_longest.
3042 * python/py-record.c (recpy_gap_reason_code): Use
3043 gdb_py_object_from_longest.
3044 * python/py-record-btrace.c (recpy_bt_insn_size)
3045 (recpy_bt_func_level, btpy_list_count): Use
3046 gdb_py_object_from_longest.
3047 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3048 gdb_py_object_from_longest. Fix error handling.
3049 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3050 gdb_py_object_from_longest.
3051 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3052 gdb_py_object_from_longest.
3053 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3054 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3055 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3056
3057 2020-09-15 Tom Tromey <tromey@adacore.com>
3058
3059 * python/python.c (gdbpy_parameter_value): Use
3060 gdb_py_object_from_ulongest.
3061
3062 2020-09-15 Tom Tromey <tromey@adacore.com>
3063
3064 * python/py-infevents.c (create_register_changed_event_object):
3065 Use gdb_py_object_from_longest.
3066 * python/py-exitedevent.c (create_exited_event_object): Use
3067 gdb_py_object_from_longest.
3068
3069 2020-09-15 Tom Tromey <tromey@adacore.com>
3070
3071 * python/python.c (gdbpy_parameter_value): Use
3072 gdb_py_object_from_longest.
3073 * python/py-type.c (convert_field, typy_range): Use
3074 gdb_py_object_from_longest.
3075 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3076 gdb_py_object_from_longest.
3077 * python/py-lazy-string.c (stpy_get_length): Use
3078 gdb_py_object_from_longest.
3079 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3080 gdb_py_object_from_longest.
3081 * python/py-infevents.c (create_memory_changed_event_object): Use
3082 gdb_py_object_from_longest.
3083 * python/py-inferior.c (infpy_get_num): Use
3084 gdb_py_object_from_longest.
3085 (infpy_get_pid): Likewise.
3086
3087 2020-09-15 Tom Tromey <tromey@adacore.com>
3088
3089 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3090 defines.
3091 * python/py-value.c (valpy_long): Use
3092 gdb_py_object_from_ulongest.
3093 * python/py-symtab.c (salpy_get_pc): Use
3094 gdb_py_object_from_ulongest.
3095 (salpy_get_last): Likewise.
3096 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3097 gdb_py_object_from_ulongest.
3098 * python/py-lazy-string.c (stpy_get_address): Use
3099 gdb_py_object_from_ulongest.
3100 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3101 * python/py-arch.c (archpy_disassemble): Use
3102 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3103 error handling.
3104
3105 2020-09-15 Tom Tromey <tromey@adacore.com>
3106
3107 * python/python-internal.h (gdb_py_long_from_longest): Remove
3108 defines.
3109 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3110 * python/py-type.c (convert_field, typy_get_sizeof): Use
3111 gdb_py_object_from_longest.
3112 * python/py-record-btrace.c (btpy_list_index): Use
3113 gdb_py_object_from_longest.
3114
3115 2020-09-15 Tom Tromey <tromey@adacore.com>
3116
3117 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3118 * python/py-record.c (recpy_element_number): Use
3119 gdb_py_object_from_longest.
3120 (recpy_gap_number): Likewise.
3121
3122 2020-09-15 Tom Tromey <tromey@adacore.com>
3123
3124 * top.c (ui::ui): Update.
3125 (highest_ui_num): Remove.
3126 * top.h (struct ui) <num>: Remove.
3127
3128 2020-09-15 Tom Tromey <tromey@adacore.com>
3129
3130 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3131 * ui-style.c (ansi_regex_text): Now array.
3132 * rust-exp.y (number_regex_text): Now array.
3133 * linespec.c (linespec_quote_characters): Now array.
3134 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3135 Now arrays.
3136
3137 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * debuginfod-support.c (debuginfod_client_deleter): New.
3140 (debuginfod_client_up): New.
3141 (debuginfod_init): Return debuginfod_client_up.
3142 (debuginfod_source_query): Adjust.
3143 (debuginfod_debuginfo_query): Adjust.
3144
3145 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * debuginfod-support.c (debuginfod_source_query): Use
3148 make_unique_xstrdup.
3149
3150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3151
3152 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3153 with `type::instance_flags`.
3154
3155 2020-09-14 Michael Mullin <masmullin@gmail.com>
3156
3157 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3158 Remove baton parameter.
3159
3160 2020-09-14 Pedro Alves <pedro@palves.net>
3161
3162 * Makefile.in (SELFTESTS_SRCS): Add
3163 unittests/enum-flags-selftests.c.
3164 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3165 btrace_function_flags instead of enum btrace_function_flag.
3166 * compile/compile-c-types.c (convert_qualified): Use
3167 enum_flags::raw.
3168 * compile/compile-cplus-symbols.c (convert_one_symbol)
3169 (convert_symbol_bmsym):
3170 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3171 (compile_cplus_convert_struct_or_union_methods)
3172 (compile_cplus_instance::convert_qualified_base):
3173 * go-exp.y (parse_string_or_char): Add cast to int.
3174 * unittests/enum-flags-selftests.c: New file.
3175 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3176 type to btrace_thread_flags from btrace_thread_flag.
3177 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3178 local's type to btrace_thread_flags from btrace_thread_flag. Add
3179 cast in DEBUG call.
3180
3181 2020-09-14 Pedro Alves <pedro@palves.net>
3182
3183 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3184 * gdbtypes.c (address_space_name_to_int): Rename to ...
3185 (address_space_name_to_type_instance_flags): ... this.
3186 (address_space_int_to_name): Rename to ...
3187 (address_space_type_instance_flags_to_name): ... this.
3188 * gdbtypes.h (address_space_name_to_int): Rename to ...
3189 (address_space_name_to_type_instance_flags): ... this.
3190 (address_space_int_to_name): Rename to ...
3191 (address_space_type_instance_flags_to_name): ... this.
3192 * type-stack.c (type_stack::insert): Adjust to rename.
3193 * type-stack.h (type_stack::insert): Likewise.
3194
3195 2020-09-14 Pedro Alves <pedro@palves.net>
3196 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * avr-tdep.c (avr_address_class_type_flags): Return
3199 type_instance_flags.
3200 (avr_address_class_type_flags_to_name): Take a
3201 type_instance_flags.
3202 (avr_address_class_name_to_type_flags): Return bool and take a
3203 type_instance_flags.
3204 * d-lang.c (build_d_types): Use type::set_instance_flags.
3205 * ft32-tdep.c (ft32_address_class_type_flags): Return
3206 type_instance_flags.
3207 (ft32_address_class_type_flags_to_name): Take a
3208 type_instance_flags.
3209 (ft32_address_class_name_to_type_flags): Return bool and take a
3210 type_instance_flags.
3211 (ft32_gdbarch_init): Use type::set_instance_flags.
3212 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3213 * gdbarch.h, gdbarch.c: Regenerate.
3214 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3215 (address_class_name_to_type_flags): Use type_instance_flags and
3216 bool.
3217 * gdbtypes.c (address_space_name_to_int)
3218 (address_space_int_to_name, make_qualified_type): Use
3219 type_instance_flags.
3220 (make_qualified_type): Use type_instance_flags and
3221 type::set_instance_flags.
3222 (make_type_with_address_space, make_cv_type, make_vector_type)
3223 (check_typedef): Use type_instance_flags.
3224 (recursive_dump_type): Cast type_instance_flags to unsigned for
3225 printing.
3226 (copy_type_recursive): Use type::set_instance_flags.
3227 (gdbtypes_post_init): Use type::set_instance_flags.
3228 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3229 <m_instance_flags>: ... this.
3230 <instance_flags, set_instance_flags>: New methods.
3231 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3232 (SET_TYPE_INSTANCE_FLAGS): New.
3233 (address_space_name_to_int, address_space_int_to_name)
3234 (make_type_with_address_space): Pass flags using
3235 type_instance_flags instead of int.
3236 * stabsread.c (cleanup_undefined_types_noname): Use
3237 type::set_instance_flags.
3238 * s390-tdep.c (s390_address_class_type_flags): Return
3239 type_instance_flags.
3240 (s390_address_class_type_flags_to_name): Take a
3241 type_instance_flags.
3242 (s390_address_class_name_to_type_flags): Return bool and take a
3243 type_instance_flags.
3244 * type-stack.c (type_stack::follow_types): Use
3245 type_instance_flags.
3246 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3247
3248 2020-09-14 Tom Tromey <tromey@adacore.com>
3249
3250 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3251 * x86-tdep.c (x86_is_thunk_register_name)
3252 (x86_in_indirect_branch_thunk): Update.
3253 * sparc64-tdep.c (sparc64_fpu_register_names)
3254 (sparc64_cp0_register_names, sparc64_register_names)
3255 (sparc64_pseudo_register_names): Now const.
3256 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3257 cp0_registers_num>: Now const.
3258 * sparc-tdep.c (sparc_core_register_names)
3259 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3260 (sparc32_pseudo_register_names): Now const.
3261 (validate_tdesc_registers): Update.
3262 * rust-lang.c (rust_extensions): Now const.
3263 * p-lang.c (p_extensions): Now const.
3264 * objc-lang.c (objc_extensions): Now const.
3265 * nto-tdep.c (nto_thread_state_str): Now const.
3266 * moxie-tdep.c (moxie_register_names): Now const.
3267 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3268 Now const.
3269 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3270 (mips_linux_reg_names): Now const.
3271 (mips_gdbarch_init): Update.
3272 * microblaze-tdep.c (microblaze_register_names): Now const.
3273 * m68k-tdep.c (m68k_register_names): Now const.
3274 * m32r-tdep.c (m32r_register_names): Now const.
3275 * ia64-tdep.c (ia64_register_names): Now const.
3276 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3277 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3278 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3279 ymm_avx512_register_names, pkeys_register_names>: Now const.
3280 * i386-tdep.c (i386_register_names, i386_zmm_names)
3281 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3282 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3283 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3284 * f-lang.c (f_extensions): Now const.
3285 * d-lang.c (d_extensions): Now const.
3286 * csky-tdep.c (csky_register_names): Now const.
3287 * charset.c (default_charset_names, charset_enum): Now const.
3288 (_initialize_charset): Update.
3289 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3290 const.
3291 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3292 (bsd_uthread_solib_loaded): Update.
3293 (bsd_uthread_state): Now const.
3294 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3295 (amd64_ymm_avx512_names, amd64_ymmh_names)
3296 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3297 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3298 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3299 (amd64_dword_names): Now const.
3300 * agent.c (can_use_agent_enum): Now const.
3301 * ada-tasks.c (task_states, long_task_states): Now const.
3302 * ada-lang.c (known_runtime_file_name_patterns)
3303 (known_auxiliary_function_name_patterns, attribute_names)
3304 (standard_exc, ada_extensions): Now const.
3305
3306 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * bcache.h (struct bcache) <bcache>: Remove constructor.
3309 <m_hash_function, m_compare_function>: Remove.
3310 <~bcache>: Make virtual.
3311 <compare>: Remove static method, introduce virtual method.
3312 <default_hash>: Remove.
3313 <hash>: New virtual method.
3314 * bcache.c (bcache::expand_hash_table): Update.
3315 (bcache::insert): Update.
3316 (bcache::hash): New.
3317 (bcache::compare): Update comment and parameter names.
3318 * gdbtypes.c (types_deeply_equal): Update.
3319 * psymtab.h (struct psymbol_bcache): New struct.
3320 (class psymtab_storage) <psymtab_storage>: Make default.
3321 <psymbol_cache>: Change type to psymbol_bcache.
3322 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3323 (psymbol_hash): Change to...
3324 (psymbol_bcache::hash): ... this.
3325 (psymbol_compare): Change to...
3326 (psymbol_bcache::compare): ... this.
3327
3328 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3329
3330 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3331 checking for initial lwp.
3332
3333 2020-09-14 Tom Tromey <tromey@adacore.com>
3334
3335 * m68k-tdep.c (m68k_extract_return_value): Use
3336 pointer_result_regnum.
3337 (m68k_store_return_value): Likewise.
3338 (m68k_reg_struct_return_p): Handle vectors and arrays.
3339 (m68k_return_value): Handle arrays.
3340 (m68k_svr4_return_value): Fix single-element aggregate handling.
3341 Handle long double. Adjust for embedded ABI.
3342 (m68k_svr4_init_abi): Set pointer_result_regnum.
3343 (m68k_embedded_init_abi): New function.
3344 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3345 (m68k_osabi_sniffer): New function.
3346 (_initialize_m68k_tdep): Register osabi sniffer.
3347 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3348 member.
3349
3350 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3353 with gdb::unique_xmalloc_ptr<char>.
3354
3355 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * xml-support.h (xml_fetch_another): Change type to be a
3358 function_view.
3359 (xml_process_xincludes): Remove baton parameter.
3360 (xml_fetch_content_from_file): Change baton parameter to
3361 dirname.
3362 * xml-support.c (struct xinclude_parsing_data)
3363 <xinclude_parsing_data>: Remove baton parameter.
3364 <fetcher_baton>: Remove.
3365 (xinclude_start_include): Adjust.
3366 (xml_process_xincludes): Adjust.
3367 (xml_fetch_content_from_file): Replace baton parameter with
3368 dirname.
3369 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3370 (xml_init_syscalls_info): Use a lambda.
3371 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3372 (file_read_description_xml): Use a lambda.
3373 (fetch_available_features_from_target): Change baton parameter
3374 to target_ops.
3375 (target_read_description_xml): Use a lambda.
3376 (target_fetch_description_xml): Use a lambda.
3377 (string_read_description_xml): Update.
3378
3379 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3380
3381 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3382 uses with type::endianity_is_not_default.
3383
3384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * gdbtypes.h (struct type) <endianity_is_not_default,
3387 set_endianity_is_not_default>: New methods.
3388 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3389 type::endianity_is_not_default, change all write call sites to
3390 use type::set_endianity_is_not_default.
3391
3392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3393
3394 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3395 uses with type::is_fixed_instance.
3396
3397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * gdbtypes.h (struct type) <is_fixed_instance,
3400 set_is_fixed_instance>: New methods.
3401 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3402 write call sites to use type::set_is_fixed_instance.
3403
3404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3407 uses with type::is_gnu_ifunc.
3408
3409 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3412 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3413 use type::set_is_gnu_ifunc.
3414
3415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3418 uses with type::stub_is_supported.
3419
3420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3423 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3424 use type::set_stub_is_supported.
3425
3426 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3429 uses with type::is_vector.
3430
3431 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3434 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3435 use type::set_is_vector.
3436
3437 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3440 uses with type::has_varargs.
3441
3442 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3445 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3446 use type::set_has_varargs.
3447
3448 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3451 uses with type::is_prototyped.
3452
3453 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3456 New methods.
3457 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3458 call sites to use type::set_is_prototyped.
3459
3460 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3461
3462 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3463 uses with type::target_is_stub.
3464
3465 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3466
3467 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3468 New methods.
3469 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3470 sites to use type::set_target_is_stub.
3471
3472 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (TYPE_STUB): Remove, replace all
3475 uses with type::is_stub.
3476
3477 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3480 (TYPE_STUB): Use type::is_stub, change all write call sites to
3481 use type::set_is_stub.
3482
3483 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3486 type::has_no_signedness.
3487
3488 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * gdbtypes.h (struct type) <has_no_signedness,
3491 set_has_no_signedness>: New methods.
3492 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3493 call sites to use type::set_has_no_signedness.
3494
3495 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3498 type::is_unsigned.
3499
3500 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3503 methods.
3504 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3505 sites to use type::set_is_unsigned.
3506
3507 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3508 Adam Renquinha <arenquinha@cimeq.qc.ca>
3509
3510 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3511 pointer and stack frame offset when unwinding.
3512
3513 2020-09-13 Pedro Alves <pedro@palves.net>
3514
3515 * NEWS: Document "-break-insert --qualified".
3516 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3517
3518 2020-09-13 Pedro Alves <pedro@palves.net>
3519
3520 * linespec.c (classify_mtype, compare_msyms): Delete.
3521 (search_minsyms_for_name): Remove classification logic. Instead
3522 filter out trampoline symbols if we also found an external
3523 function of the same name.
3524
3525 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3526
3527 * NEWS: Create a new section for the next release branch.
3528 Rename the section of the current branch, now that it has
3529 been cut.
3530
3531 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3532
3533 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3534 * version.in: Bump version to 11.0.50.DATE-git.
3535
3536 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3537
3538 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3539
3540 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3541 Felix Willgerodt <Felix.Willgerodt@intel.com>
3542
3543 * gdbarch.sh: Added bfloat16 type.
3544 * gdbarch.c: Regenerated.
3545 * gdbarch.h: Regenerated.
3546 * gdbtypes.c (floatformats_bfloat16): New struct.
3547 (gdbtypes_post_init): Add builtin_bfloat16.
3548 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3549 (floatformats_bfloat16): New struct.
3550 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3551 (i386_ymm_type): Add field "v16_bfloat16"
3552 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3553 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3554 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3555 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3556 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3557 * features/i386/64bit-avx512.c: Regenerated.
3558 * features/i386/64bit-sse.xml: Add bfloat16 type.
3559 * features/i386/64bit-sse.c: Regenerated.
3560
3561 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3562
3563 * i386-tdep.c (i386_zmm_type): Fix field names.
3564 (i386_ymm_type): Fix field names.
3565
3566 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3567
3568 * breakpoint.c: Fix typo in the help message of the
3569 "set breakpoint condition-evaluation" command.
3570
3571 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3572
3573 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3574 * (nbsd_nat_target::pid_to_exec_file)
3575 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3576 (nbsd_nat_target::post_startup_inferior)
3577 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3578 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3579 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3580 * (nbsd_thread_lister): Remove.
3581
3582 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3583
3584 * fork-inferior.c (startup_inferior): Avoid double free.
3585
3586 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3587
3588 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3589 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3590
3591 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3592
3593 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3594 * netbsd-nat.c: Include <sys/ptrace.h>.
3595 * (netbsd_nat::enable_proc_events): Add.
3596
3597 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3598
3599 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3600 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3601 (netbsd_nat::for_each_thread): Add.
3602 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3603 "gdbsupport/common-debug.h".
3604 * (netbsd_nat::netbsd_thread_lister)
3605 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3606 (netbsd_nat::for_each_thread): Add.
3607
3608 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3609
3610 * netbsd-nat.h: Include <unistd.h>.
3611 * (netbsd_nat::pid_to_exec_file): Add.
3612 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3613 * (netbsd_nat::pid_to_exec_file) Add.
3614
3615 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3616
3617 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3618
3619 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3620
3621 * netbsd-nat.h: New file.
3622 * netbsd-nat.c: Likewise.
3623
3624 2020-09-09 Tom Tromey <tromey@adacore.com>
3625
3626 * ada-lang.c (remove_extra_symbols): Do not increment when
3627 removing an element
3628
3629 2020-09-08 Tom Tromey <tromey@adacore.com>
3630
3631 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3632
3633 2020-09-08 Tom Tromey <tromey@adacore.com>
3634
3635 PR win32/25302:
3636 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3637 (gdb_bfd_init_data): New function.
3638 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3639
3640 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3641
3642 * infrun.c (fetch_inferior_event): Use
3643 `switch_to_target_no_thread` to switch the target.
3644
3645 2020-09-06 Tom Tromey <tom@tromey.com>
3646
3647 * symfile.h (dwarf2_free_objfile): Don't declare.
3648
3649 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3650
3651 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3652 to match 16 byte real/complex type generated by Flang compiler.
3653
3654 2020-09-03 Tom de Vries <tdevries@suse.de>
3655
3656 PR breakpoint/26546
3657 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3658 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3659
3660 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3661
3662 * maint.c (index_digits): New function.
3663 (struct maint_print_section_data): Remove.
3664 (print_bfd_section_info): Remove print_data parameter, add arg
3665 and index_digits.
3666 (print_objfile_section_info): Likewise.
3667 (print_bfd_section_info_maybe_relocated): Likewise (plus
3668 objfile).
3669 (maintenance_info_sections): Adjust calls.
3670
3671 2020-09-02 Tom Tromey <tromey@adacore.com>
3672
3673 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3674 for null pointers.
3675 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3676
3677 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * bcache.h (struct bcache) <insert>: Change type of `added` to
3680 pointer to bool.
3681 * bcache.c (bcache::insert): Likewise.
3682 * gdbtypes.c (check_types_worklist): Adjust.
3683 * psymtab.c (add_psymbol_to_bcache): Adjust.
3684
3685 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3686
3687 * corelow.c (unordered_set): Include.
3688 (class core_target): Add field 'm_core_unavailable_mappings'.
3689 (core_target::build_file_mappings): Print only one warning
3690 per inaccessible file. Add unavailable/broken mappings
3691 to m_core_unavailable_mappings.
3692 (core_target::xfer_partial): Call...
3693 (core_target::xfer_memory_via_mappings): New method.
3694
3695 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3696
3697 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3698 type to bool.
3699
3700 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * dwarf2/read.c (struct field_info): Fix indentation.
3703
3704 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3705
3706 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3707 ordering in comment.
3708 * frame.c (frame_id_eq): Fix indentation.
3709
3710 2020-08-31 Scott Linder <scott@scottlinder.com>
3711 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3714 inline frame ids in outer frame.
3715
3716 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3719 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3720 (outer_frame_id): Use FID_STACK_OUTER instead of
3721 FID_STACK_INVALID.
3722 (frame_id_p): Don't check for outer_frame_id.
3723
3724 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3727 regnum/frame in value. Call allocate_value_lazy.
3728 * frame.c (frame_unwind_register_value): Use
3729 val_print_not_saved.
3730
3731 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3734
3735 2020-08-29 Pedro Alves <pedro@palves.net>
3736
3737 * progspace.c (print_program_space): Use all_inferiors. Switch to
3738 the inferior before calling target_pid_to_str.
3739
3740 2020-08-28 Tom Tromey <tom@tromey.com>
3741
3742 * xcoffread.c (xcoff_end_psymtab): Update comment.
3743 * dbxread.c (dbx_end_psymtab): Update comment.
3744
3745 2020-08-28 Tom de Vries <tdevries@suse.de>
3746
3747 PR breakpoint/26544
3748 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3749 event_location.
3750 (create_breakpoint): Same.
3751 (base_breakpoint_decode_location): Same.
3752 (bkpt_create_sals_from_location): Same.
3753 (bkpt_decode_location): Same.
3754 (bkpt_probe_create_sals_from_location): Same.
3755 (bkpt_probe_decode_location): Same.
3756 (tracepoint_create_sals_from_location): Same.
3757 (tracepoint_decode_location): Same.
3758 (tracepoint_probe_decode_location): Same.
3759 (strace_marker_create_sals_from_location): Same.
3760 (strace_marker_decode_location): Same.
3761 (create_sals_from_location_default): Same.
3762 (decode_location_default): Same.
3763 * breakpoint.h (struct breakpoint_ops): Same.
3764 (create_breakpoint): Same.
3765 * linespec.h (decode_line_full): Same.
3766 * linespec.c (decode_line_full): Same. Throw error if
3767 result.size () == 0.
3768
3769 2020-08-27 Pedro Alves <pedro@palves.net>
3770
3771 PR gdb/26524
3772 * breakpoint.c (until_break_fsm) <location_breakpoint,
3773 caller_breakpoint>: Delete fields.
3774 <breakpoints>: New field.
3775 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3776 two individual breakpoints.
3777 (until_break_fsm::should_stop): Loop over breakpoints in the
3778 breakpoint vector.
3779 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3780 vector.
3781 (until_break_command): Handle location expanding into multiple
3782 sals.
3783
3784 2020-08-27 Pedro Alves <pedro@palves.net>
3785
3786 PR gdb/26523
3787 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3788 bp_until breakpoints user-specified locations. Update intro
3789 comment.
3790
3791 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3794 gdb_bfd_sections): New.
3795 * maint.c (print_bfd_section_info): Change param type to
3796 maint_print_section_data.
3797 (print_objfile_section_info): Likewise.
3798 (print_bfd_section_info_maybe_relocated): Likewise.
3799 (maintenance_info_sections): Use gdb_bfd_sections.
3800
3801 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3802
3803 * MAINTAINERS: Add ARC target and maintainer.
3804
3805 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3806
3807 * configure.tgt: ARC support for GNU/Linux.
3808 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3809 * arc-linux-tdep.c: New file.
3810 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3811 * arc-tdep.c (arc_write_pc): Use it.
3812
3813 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3814
3815 * arc-tdep.c (arc_check_for_hardware_loop): New.
3816 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3817
3818 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3819
3820 * arc-tdep.h: Include "gdbarch.h".
3821
3822 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3823
3824 * arch/arc.h
3825 (arc_gdbarch_features): New class to stir the selection of target XML.
3826 (arc_create_target_description): Use FEATURES to choose XML target.
3827 (arc_lookup_target_description): Use arc_create_target_description
3828 to create _new_ target descriptions or return the already created
3829 ones if the FEATURES is the same.
3830 * arch/arc.c: Implementation of prototypes described above.
3831 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3832 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3833 * arc-tdep.c (*_feature_name): Make feature names consistent.
3834 (arc_register_feature): A new struct to hold information about
3835 registers of a particular target/feature.
3836 (arc_check_tdesc_feature): Check if XML provides registers in
3837 compliance with ARC_REGISTER_FEATURE structs.
3838 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3839 (determine_*_reg_feature_set): Which feature name to look for.
3840 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3841 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3842 to expected ISA enums to be used in arc_gdbarch_features structs.
3843 * features/Makefile (FEATURE_XMLFILES): Add new files.
3844 * gdb/features/arc/v1-aux.c: New file.
3845 * gdb/features/arc/v1-aux.xml: Likewise.
3846 * gdb/features/arc/v1-core.c: Likewise.
3847 * gdb/features/arc/v1-core.xml: Likewise.
3848 * gdb/features/arc/v2-aux.c: Likewise.
3849 * gdb/features/arc/v2-aux.xml: Likewise.
3850 * gdb/features/arc/v2-core.c: Likewise.
3851 * gdb/features/arc/v2-core.xml: Likewise.
3852 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3853
3854 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3855 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 PR m2/26372
3858 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3859 an assert. Remove single element array indexing pattern as the
3860 MULTI_SUBSCRIPT support will handle this case too.
3861
3862 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3863
3864 * value.h (valprint_check_validity): Move declaration from
3865 here...
3866 * valprint.h (valprint_check_validity): ... to here.
3867
3868 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * debug.h: New file.
3871 * debug.c (debug_prefixed_vprintf): New function.
3872 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3873 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3874
3875 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * infrun.h (infrun_debug_printf_1): New function declaration.
3878 (infrun_debug_printf): New macro.
3879 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3880 throughout.
3881 (infrun_debug_printf): New function.
3882 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3883 (handle_jit_event): Likewise.
3884
3885 2020-08-21 Mark Wielaard <mark@klomp.org>
3886
3887 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3888
3889 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3890
3891 * frame.c (enum class frame_id_status): New.
3892 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3893 (fprintf_frame): Update.
3894 (compute_frame_id): Set frame id status to "computing" on entry.
3895 Set it back to "not_computed" on failure and to "computed" on
3896 success.
3897 (get_frame_id): Assert the frame id is not being computed.
3898 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3899 (create_new_frame): Likewise.
3900 (frame_cleanup_after_sniffer): Update assert.
3901
3902 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3903
3904 * regcache.c (pid_ptid_regcache_map): New type.
3905 (target_ptid_regcache_map): Remove.
3906 (target_pid_ptid_regcache_map): New type.
3907 (regcaches): Change type to target_pid_ptid_regcache_map.
3908 (get_thread_arch_aspace_regcache): Update.
3909 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3910 case.
3911 (regcaches_size): Update.
3912 (regcache_count): Update.
3913 (registers_changed_ptid_target_pid_test): New.
3914 (_initialize_regcache): Register new test.
3915
3916 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3917
3918 * regcache.c (regcache_count): New.
3919 (struct regcache_test_data): New.
3920 (regcache_test_data_up): New.
3921 (populate_regcaches_for_test): New.
3922 (regcaches_test): Remove.
3923 (get_thread_arch_aspace_regcache_test): New.
3924 (registers_changed_ptid_all_test): New.
3925 (registers_changed_ptid_target_test): New.
3926 (registers_changed_ptid_target_ptid_test): New.
3927 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3928 (_initialize_regcache): Register new tests.
3929
3930 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3931
3932 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3933 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3934 gdbarch and aspace parameter. Use current inferior's aspace.
3935 Validate regcache's arch value.
3936 (regcaches_test): Update.
3937
3938 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3939
3940 * regcache.c (regcaches_test): Call registers_changed.
3941
3942 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943
3944 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3945
3946 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3947
3948 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3949 to find the end of prologue for flang compiled binaries.
3950 * arm-tdep.c (arm_skip_prologue): Likewise.
3951 * i386-tdep.c (i386_skip_prologue): Likewise.
3952 * producer.c (producer_is_llvm): New function.
3953 (producer_parsing_tests): Added new tests for clang/flang.
3954 * producer.h (producer_is_llvm): New declaration.
3955
3956 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3957
3958 * linux-nat.c (linux_nat_debug_printf): New function.
3959 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3960
3961 2020-08-18 Aaron Merey <amerey@redhat.com>
3962
3963 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3964 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3965 (CLIBS): Add DEBUGINFOD_LIBS.
3966
3967 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3968
3969 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3970 'gdbarch_num_regs'.
3971
3972 2020-08-17 Tom Tromey <tromey@adacore.com>
3973
3974 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3975 ada_get_decoded_value returns NULL.
3976
3977 2020-08-17 Tom Tromey <tromey@adacore.com>
3978
3979 * python/py-inferior.c (infpy_search_memory): Use
3980 gdb_py_object_from_ulongest.
3981 * python/py-infevents.c (create_inferior_call_event_object)
3982 (create_memory_changed_event_object): Use
3983 gdb_py_object_from_ulongest.
3984 * python/py-linetable.c (ltpy_entry_get_pc): Use
3985 gdb_py_object_from_ulongest.
3986
3987 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3988
3989 * loc.c (class symbol_needs_eval_context): Fix indentation.
3990
3991 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3994 bool.
3995
3996 2020-08-17 Tom de Vries <tdevries@suse.de>
3997
3998 PR gdb/26393
3999 * gdbtypes.c (dump_dynamic_prop): New function.
4000 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4001
4002 2020-08-15 Tom de Vries <tdevries@suse.de>
4003
4004 PR backtrace/26390
4005 * stack.c (print_frame_args): Temporarily set the selected
4006 frame to FRAME while printing the frame's arguments.
4007
4008 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4009
4010 PR breakpoints/26385
4011 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4012 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4013
4014 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4015
4016 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4017 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4018 and >= to check return value instead of == -1 and != -1.
4019
4020 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 * utils.h (class gdb_argv) <as_array_view>: New method.
4023 * utils.c (gdb_argv_as_array_view_test): New.
4024 (_initialize_utils): Register selftest.
4025 * maint.c (maintenance_selftest): Use the new method.
4026
4027 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4028
4029 * target.h (supports_dumpcore, dumpcore): New
4030 function declarations.
4031 * target.c (supports_dumpcore, dumpcore): New
4032 functions.
4033 * target-delegates.c: Rebuild.
4034 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4035 and target_dumpcore ().
4036
4037 2020-08-13 Aaron Merey <amerey@redhat.com>
4038
4039 * debuginfod-support.c: Replace global variables with user_data.
4040
4041 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4042
4043 * maint.c (maintenance_selftest): Split args and pass array_view
4044 to run_tests.
4045
4046 2020-08-12 Luis Machado <luis.machado@linaro.org>
4047
4048 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4049 type's length.
4050 Use %s and pulongest to print the length.
4051
4052 2020-08-12 Pedro Alves <palves@redhat.com>
4053
4054 * NEWS: Move "Multi-target debugging support" item to the
4055 "Changes since GDB 9" section.
4056
4057 2020-08-12 Pedro Alves <palves@redhat.com>
4058
4059 PR gdb/26336
4060 * progspace.c (program_space::remove_objfile): Invalidate the
4061 frame cache.
4062
4063 2020-08-11 Tom de Vries <tdevries@suse.de>
4064
4065 * MAINTAINERS: Mark ms1 as deleted.
4066
4067 2020-08-10 Luis Machado <luis.machado@linaro.org>
4068
4069 PR gdb/26310
4070
4071 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4072 act accordingly.
4073 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4074 movz/str/stur/stp skipping behavior.
4075
4076 2020-08-10 Luis Machado <luis.machado@linaro.org>
4077
4078 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4079 struct user_sve_header instead of struct sve_context.
4080
4081 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4082
4083 * read.h (dwarf2_fetch_die_loc_sect_off,
4084 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4085 `void *` parameter with function_view.
4086 * read.c (dwarf2_fetch_die_loc_sect_off,
4087 dwarf2_fetch_die_loc_cu_off): Likewise.
4088 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4089 (per_cu_dwarf_call): Adjust.
4090 (get_frame_address_in_block_wrapper): Remove.
4091 (indirect_synthetic_pointer): Adjust.
4092 (get_ax_pc): Remove.
4093 (dwarf2_compile_expr_to_ax): Adjust.
4094
4095 2020-08-08 Tom de Vries <tdevries@suse.de>
4096
4097 PR build/26344
4098 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4099 constructor.
4100 * regcache.c (get_thread_arch_aspace_regcache): Same.
4101
4102 2020-08-07 Tom Tromey <tromey@adacore.com>
4103
4104 * ravenscar-thread.c
4105 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4106 New method.
4107 (ravenscar_thread_target::wait): Check
4108 runtime_initialized.
4109 (ravenscar_thread_target::prepare_to_store)
4110 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4111 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4112 (ravenscar_thread_target::stopped_by_watchpoint)
4113 (ravenscar_thread_target::stopped_data_address)
4114 (ravenscar_thread_target::core_of_thread): Use
4115 scoped_restore_current_thread and
4116 set_base_thread_from_ravenscar_task.
4117
4118 2020-08-07 Tom Tromey <tromey@adacore.com>
4119
4120 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4121
4122 2020-08-07 Tom Tromey <tromey@adacore.com>
4123
4124 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4125 update_inferior_ptid before update_thread_list.
4126 (temporarily_change_regcache_ptid): New class.
4127 (ravenscar_thread_target::fetch_registers)
4128 (ravenscar_thread_target::store_registers)
4129 (ravenscar_thread_target::prepare_to_store): Use base thread when
4130 forwarding operation.
4131
4132 2020-08-07 Tom Tromey <tromey@adacore.com>
4133
4134 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4135 "is_pid" case.
4136
4137 2020-08-07 Tom Tromey <tromey@adacore.com>
4138
4139 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4140 New methods.
4141 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4142 first.
4143 (ravenscar_thread_target::add_thread): Rename from
4144 ravenscar_add_thread.
4145 (ravenscar_thread_target::update_thread_list): Use a lambda.
4146 (ravenscar_thread_target::xfer_partial): New method.
4147
4148 2020-08-07 Tom Tromey <tromey@adacore.com>
4149
4150 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4151 gdb::function_view.
4152 (iterate_over_live_ada_tasks): Change type of argument.
4153 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4154 of argument.
4155
4156 2020-08-07 Tom Tromey <tromey@adacore.com>
4157
4158 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4159 Remove.
4160 (ravenscar_thread_target::extra_thread_info): Remove.
4161 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4162 defer to target beneath for non-Ravenscar threads.
4163
4164 2020-08-07 Tom Tromey <tromey@adacore.com>
4165
4166 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4167 get_base_thread_from_ravenscar_task>: Now methods.
4168 <m_cpu_map>: New member.
4169 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4170 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4171 (ravenscar_thread_target::task_is_currently_active): Update.
4172 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4173 Now a method.
4174 (ravenscar_thread_target::add_active_thread): Put initial thread
4175 into the m_cpu_map.
4176
4177 2020-08-07 Tom Tromey <tromey@adacore.com>
4178
4179 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4180 event_ptid.
4181
4182 2020-08-07 Tom Tromey <tromey@adacore.com>
4183
4184 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4185 runtime_initialized.
4186
4187 2020-08-07 Tom Tromey <tromey@adacore.com>
4188
4189 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4190 add_active_thread.
4191 (ravenscar_thread_target::add_active_thread): Now public.
4192 (ravenscar_inferior_created): Call add_active_thread after pushing
4193 the target.
4194
4195 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * regcache.c (ptid_regcache_map): New type.
4198 (target_ptid_regcache_map): New type.
4199 (regcaches): Change type to target_ptid_regcache_map.
4200 (get_thread_arch_aspace_regcache): Update to regcaches' new
4201 type.
4202 (regcache_thread_ptid_changed): Likewise.
4203 (registers_changed_ptid): Likewise.
4204 (regcaches_size): Likewise.
4205 (regcaches_test): Update.
4206 (regcache_thread_ptid_changed): Update.
4207 * regcache.h (regcache_up): New type.
4208 * gdbsupport/ptid.h (hash_ptid): New struct.
4209
4210 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * observable.h (thread_ptid_changed): Add parameter
4213 `process_stratum_target *`.
4214 * infrun.c (infrun_thread_ptid_changed): Add parameter
4215 `process_stratum_target *` and use it.
4216 (selftests): New namespace.
4217 (infrun_thread_ptid_changed): New function.
4218 (_initialize_infrun): Register selftest.
4219 * regcache.c (regcache_thread_ptid_changed): Add parameter
4220 `process_stratum_target *` and use it.
4221 (regcache_thread_ptid_changed): New function.
4222 (_initialize_regcache): Register selftest.
4223 * thread.c (thread_change_ptid): Pass target to
4224 thread_ptid_changed observable.
4225
4226 2020-08-06 Caroline Tice <cmtice@google.com>
4227
4228 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4229 (struct dwp_sections): Update field comments. Add loclists and
4230 rnglists fields.
4231 (struct virtual_v2_dwo_sections): Rename struct to
4232 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4233 size & offset fields for loclists and rnglists.
4234 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4235 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4236 skipping dummy type units.
4237 (create_dwp_hash_table): Update the large comment above the function to
4238 discuss Version 5 DWP files as well, with references. Update all the
4239 version checks in the function to check for version 5 as well. Add new
4240 section at the end to create dwp hash table for version 5.
4241 (create_dwp_v2_section): Rename function to
4242 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4243 Add V5 to error message text.
4244 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4245 into calls to create_dwp_v2_or_v5_section.
4246 (create_dwo_unit_in_dwp_v5): New function.
4247 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4248 check for version2; add else clause to handle version 5.
4249 (open_and_init_dwo_file): Add code to check dwarf version & only call
4250 create_debug_types_hash_table (with sections.types) if version is not 5;
4251 else call create_debug_type_hash_table, with sections.info.
4252 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4253 version 5.
4254 (dwarf2_locate_v5_dwp_sections): New function.
4255 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4256 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4257
4258 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * regcache.h (class regcache): Remove friend
4261 registers_changed_ptid.
4262 <regcache_thread_ptid_changed>: Remove.
4263 <regcaches>: Remove.
4264 * regcache.c (regcache::regcaches): Rename to...
4265 (regcaches): ... this. Make static.
4266 (get_thread_arch_aspace_regcache): Update.
4267 (regcache::regcache_thread_ptid_changed): Rename to...
4268 (regcache_thread_ptid_changed): ... this. Update.
4269 (class regcache_access): Remove.
4270 (regcaches_test): Update.
4271 (_initialize_regcache): Update.
4272 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4273 <forward_list>.
4274
4275 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4276
4277 * regcache.h (class regcache) <current_regcache>: Rename to...
4278 <regcaches>: ... this. Move doc here.
4279 * regcache.c (regcache::current_regcache) Rename to...
4280 (regcache::regcaches): ... this. Move doc to header.
4281 (get_thread_arch_aspace_regcache): Update.
4282 (regcache::regcache_thread_ptid_changed): Update.
4283 (registers_changed_ptid): Update.
4284 (class regcache_access) <current_regcache_size>: Rename to...
4285 <regcaches_size>: ... this.
4286 (current_regcache_test): Rename to...
4287 (regcaches_test): ... this.
4288 (_initialize_regcache): Update.
4289
4290 2020-08-06 Victor Collod <vcollod@nvidia.com>
4291
4292 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4293
4294 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4295
4296 * corelow.c (core_target::build_file_mappings): Don't output
4297 null pathname in warning.
4298
4299 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4300
4301 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4302 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4303 gdb.dwarf2/dw2-single-line-discriminators.exp,
4304 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4305
4306 2020-08-05 Tom Tromey <tromey@adacore.com>
4307
4308 PR rust/26197:
4309 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4310 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4311 Fix off-by-one and type size errors in ordinary case.
4312
4313 2020-08-05 Tom de Vries <tdevries@suse.de>
4314
4315 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4316 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4317
4318 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * frame.h (frame_id_p): Return bool.
4321 (frame_id_artificial_p): Return bool.
4322 (frame_id_eq): Return bool.
4323 (has_stack_frames): Return bool.
4324 (get_selected_frame): Fix typo in comment.
4325 (get_frame_pc_if_available): Return bool.
4326 (get_frame_address_in_block_if_available): Return bool.
4327 (get_frame_func_if_available): Return bool.
4328 (read_frame_register_unsigned): Return bool.
4329 (get_frame_register_bytes): Return bool.
4330 (safe_frame_unwind_memory): Return bool.
4331 (deprecated_frame_register_read): Return bool.
4332 (frame_unwinder_is): Return bool.
4333 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4334 bool.
4335 <this_id::p>: Likewise.
4336 <prev_p>: Likewise.
4337 (frame_stash_add): Return bool.
4338 (get_frame_id): Use bool.
4339 (frame_id_build_special) Use bool.
4340 (frame_id_build_unavailable_stack): Use bool.
4341 (frame_id_build): Use bool.
4342 (frame_id_p): Return bool, use true/false instead of 1/0.
4343 (frame_id_artificial_p): Likewise.
4344 (frame_id_eq): Likewise.
4345 (frame_id_inner): Likewise.
4346 (get_frame_func_if_available): Likewise.
4347 (read_frame_register_unsigned): Likewise.
4348 (deprecated_frame_register_read): Likewise.
4349 (get_frame_register_bytes): Likewise.
4350 (has_stack_frames): Likewise.
4351 (inside_main_func): Likewise.
4352 (inside_entry_func): Likewise.
4353 (get_frame_pc_if_available): Likewise.
4354 (get_frame_address_in_block_if_available): Likewise.
4355 (frame_unwinder_is): Likewise.
4356 (safe_frame_unwind_memory): Likewise.
4357 (frame_unwind_arch): Likewise.
4358
4359 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4362 type to cached_copy_status.
4363 (fprintf_frame): Adjust.
4364 (get_frame_func_if_available): Adjust.
4365 (frame_cleanup_after_sniffer): Adjust.
4366
4367 2020-08-04 Mark Wielaard <mark@klomp.org>
4368
4369 * MAINTAINERS (Write After Approval): Update email address.
4370
4371 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4374 dynamic_prop::const_val.
4375
4376 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4377
4378 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4379 dynamic_prop::kind.
4380
4381 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4382
4383 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4384
4385 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4386
4387 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4388
4389 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4390 Jose E. Marchesi <jose.marchesi@oracle.com>
4391
4392 * configure.tgt: Add entry for bpf-*-*.
4393 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4394 (ALLDEPFILES): Add bpf-tdep.c.
4395 * bpf-tdep.c: New file.
4396 * MAINTAINERS: Add bpf target and maintainer.
4397 * NEWS: Mention the support for the new target.
4398
4399 2020-08-04 Tom de Vries <tdevries@suse.de>
4400
4401 PR symtab/23270
4402 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4403 Error.
4404
4405 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4406
4407 * syscalls/freebsd.xml: Regenerate.
4408
4409 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4410
4411 * syscalls/update-freebsd.sh: Fix usage and year range.
4412
4413 2020-08-03 Tom de Vries <tdevries@suse.de>
4414
4415 PR symtab/26333
4416 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4417 DW_LNE_lo_user/DW_LNE_hi_user range.
4418
4419 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4420
4421 PR ada/26318
4422 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4423 kind.
4424
4425 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4426
4427 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4428
4429 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430
4431 * breakpoint.c (set_breakpoint_condition): Update the condition
4432 expressions after checking that the input condition string parses
4433 successfully and does not contain junk at the end.
4434
4435 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4436
4437 * breakpoint.c (set_breakpoint_condition): Update the
4438 condition string after parsing the new condition successfully.
4439
4440 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4441
4442 * proc-api.c (_STRUCTURED_PROC): Don't define.
4443 * proc-events.c: Likewise.
4444 * proc-flags.c: Likewise.
4445 * proc-why.c: Likewise.
4446 * procfs.c: Likewise.
4447
4448 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4449 * configure, config.in: Regenerate.
4450
4451 2020-07-30 Tom de Vries <tdevries@suse.de>
4452
4453 PR build/26320
4454 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4455 m_red/m_green/m_blue in a union.
4456
4457 2020-07-29 Tom de Vries <tdevries@suse.de>
4458
4459 PR tdep/26280
4460 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4461
4462 2020-07-28 Tom Tromey <tromey@adacore.com>
4463
4464 PR symtab/26270:
4465 * symtab.h (find_pc_partial_function_sym): Declare.
4466 * cli/cli-cmds.c (disassemble_command): Use
4467 find_pc_partial_function_sym. Check asm_demangle.
4468 * blockframe.c (cache_pc_function_sym): New global.
4469 (cache_pc_function_name): Remove.
4470 (clear_pc_function_cache): Update.
4471 (find_pc_partial_function_sym): New function, from
4472 find_pc_partial_function.
4473 (find_pc_partial_function): Rewrite using
4474 find_pc_partial_function_sym.
4475
4476 2020-07-28 Tom Tromey <tromey@adacore.com>
4477
4478 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4479 help. Add usage.
4480
4481 2020-07-28 Tom Tromey <tromey@adacore.com>
4482
4483 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4484 <DW_OP_GNU_variable_value>: Cast to address type.
4485
4486 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4487
4488 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4489 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4490 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4491 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4492 (nbsd_get_siginfo_type): New.
4493 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4494 (_initialize_nbsd_tdep): New.
4495
4496 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4497
4498 PR binutils/26301
4499 * configure: Regenerated.
4500
4501 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4502
4503 PR binutils/26301
4504 * configure: Regenerated.
4505
4506 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4507
4508 * python/py-frame.c: Remove 'user-regs.h' include.
4509 (frapy_read_register): Rewrite to make use of
4510 gdbpy_parse_register_id.
4511 * python/py-registers.c (gdbpy_parse_register_id): New function,
4512 moved here from python/py-unwind.c. Updated the return type, and
4513 also accepts register descriptor objects.
4514 * python/py-unwind.c: Remove 'user-regs.h' include.
4515 (pyuw_parse_register_id): Moved to python/py-registers.c.
4516 (unwind_infopy_add_saved_register): Update to use
4517 gdbpy_parse_register_id.
4518 (pending_framepy_read_register): Likewise.
4519 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4520
4521 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4522
4523 * python/py-registers.c: Add 'user-regs.h' include.
4524 (register_descriptor_iter_find): New function.
4525 (register_descriptor_iterator_object_methods): New static global
4526 methods array.
4527 (register_descriptor_iterator_object_type): Add pointer to methods
4528 array.
4529
4530 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4531
4532 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4533 for all architectures on FreeBSD 11.3 and later.
4534
4535 2020-07-27 Tom Tromey <tromey@adacore.com>
4536
4537 * gcore.h (load_corefile): Don't declare.
4538
4539 2020-07-27 Tom de Vries <tdevries@suse.de>
4540
4541 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4542 * config.in: Regenerate.
4543 * configure: Regenerate.
4544
4545 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4546
4547 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4548 ws2tcpip.h. When checking whether socklen_t type is defined, use
4549 ws2tcpip.h if it is available and sys/socket.h isn't.
4550 * configure: Regenerate.
4551 * config.in: Regenerate.
4552
4553 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4554
4555 PR fortran/23051
4556 PR fortran/26139
4557 * valops.c (value_ind): Pass address to
4558 readjust_indirect_value_type.
4559 * value.c (readjust_indirect_value_type): Make parameter
4560 non-const, and add extra address parameter. Resolve original type
4561 before using it.
4562 * value.h (readjust_indirect_value_type): Update function
4563 signature and comment.
4564
4565 2020-07-25 Tom de Vries <tdevries@suse.de>
4566
4567 PR symtab/26243
4568 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4569 entries.
4570
4571 2020-07-24 Aaron Merey <amerey@redhat.com>
4572
4573 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4574 * configure: Rebuild.
4575
4576 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4577
4578 PR corefiles/26294
4579 * corelow.c (_initialize_corelow): Add period to help text
4580 for "maintenance print core-file-backed-mappings".
4581
4582 2020-07-23 Pedro Alves <pedro@palves.net>
4583
4584 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4585 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4586 meanwhile.
4587 * frame.c (frame_cache_generation, get_frame_cache_generation):
4588 New.
4589 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4590 (get_prev_frame_if_no_cycle): On exception, don't touch
4591 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4592 * frame.h (get_frame_cache_generation): Declare.
4593
4594 2020-07-23 Tom de Vries <tdevries@suse.de>
4595
4596 PR tui/26282
4597 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4598 New default constructor.
4599
4600 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4603 exclude non-statement entries.
4604
4605 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4606
4607 * NEWS (New commands): Mention new command
4608 "maintenance print core-file-backed-mappings".
4609
4610 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4611
4612 * corelow.c (gdbcmd.h): Include.
4613 (core_target::info_proc_mappings): New method.
4614 (get_current_core_target): New function.
4615 (maintenance_print_core_file_backed_mappings): New function.
4616 (_initialize_corelow): Add core-file-backed-mappings to
4617 "maint print" commands.
4618
4619 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4620
4621 * linux-tdep.c (dump_note_entry_p): New function.
4622 (linux_dump_mapping_p_ftype): New typedef.
4623 (linux_find_memory_regions_full): Add new parameter,
4624 should_dump_mapping_p.
4625 (linux_find_memory_regions): Adjust call to
4626 linux_find_memory_regions_full.
4627 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4628 call to linux_find_memory_regions_full.
4629
4630 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4631
4632 * corelow.c (solist.h, unordered_map): Include.
4633 (class core_target): Add field m_core_file_mappings and
4634 method build_file_mappings.
4635 (core_target::core_target): Call build_file_mappings.
4636 (core_target::~core_target): Free memory associated with
4637 m_core_file_mappings.
4638 (core_target::build_file_mappings): New method.
4639 (core_target::xfer_partial): Use m_core_file_mappings
4640 for memory transfers.
4641 * linux-tdep.c (linux_read_core_file_mappings): New
4642 function.
4643 (linux_core_info_proc_mappings): Rewrite to use
4644 linux_read_core_file_mappings.
4645 (linux_init_abi): Register linux_read_core_file_mappings.
4646
4647 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4648
4649 * arch-utils.c (default_read_core_file_mappings): New function.
4650 * arch-utils.c (default_read_core_file_mappings): Declare.
4651 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4652 * gdbarch.h, gdbarch.c: Regenerate.
4653
4654 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4655
4656 PR corefiles/25631
4657 * corelow.c (core_target:xfer_partial): Revise
4658 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4659 case after first checking the stratum beneath the core
4660 target.
4661 (has_all_memory): Return true.
4662 * target.c (raw_memory_xfer_partial): Revise comment
4663 regarding use of has_all_memory.
4664
4665 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4666
4667 * exec.h (section_table_xfer_memory): Revise declaration,
4668 replacing section name parameter with an optional callback
4669 predicate.
4670 * exec.c (section_table_xfer_memory): Likewise.
4671 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4672 of section_table_xfer_memory.
4673
4674 2020-07-22 Tom Tromey <tromey@adacore.com>
4675
4676 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4677 lookup_symbol_search_name.
4678
4679 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4680
4681 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4682 redundant local variable.
4683 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4684 reference, not pointer, update code accordingly.
4685
4686 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4687 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4688
4689 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4690 * jit.c (jit_breakpoint_re_set_internal): Use the
4691 `skip_jit_symbol_lookup` field.
4692
4693 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4694 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4695
4696 * jit.c (jit_read_descriptor): Define the descriptor address once,
4697 use twice.
4698 (jit_breakpoint_deleted): Move the declaration of the loop variable
4699 `iter` into the loop header.
4700 (jit_breakpoint_re_set_internal): Move the declaration of the local
4701 variable `objf_data` to the first point of definition.
4702 (jit_event_handler): Move the declaration of local variables
4703 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4704 Rename `objf` to `jited`.
4705
4706 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4709 Remove.
4710 * jit.c (get_jiter_objfile_data): Update.
4711
4712 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4713 Simon Marchi <simon.marchi@polymtl.ca>
4714
4715 * jit.c (struct jit_program_space_data): Remove.
4716 (jit_program_space_key): Remove.
4717 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4718 stuff.
4719 (get_jit_program_space_data): Remove.
4720 (jit_breakpoint_deleted): Iterate on all of the program space's
4721 objfiles.
4722 (jit_inferior_init): Likewise.
4723 (jit_breakpoint_re_set_internal): Likewise. Also change return
4724 type to void.
4725 (jit_breakpoint_re_set): Pass current_program_space to
4726 jit_breakpoint_re_set_internal.
4727
4728 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4729
4730 * jit.h (struct jiter_objfile_data) <cached_code_address,
4731 jit_breakpoint>: Move to here from ...
4732 * jit.c (jit_program_space_data): ... here.
4733 (jiter_objfile_data::~jiter_objfile_data): Update.
4734 (jit_breakpoint_deleted): Update.
4735 (jit_breakpoint_re_set_internal): Update.
4736
4737 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4738
4739 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4740 checks.
4741 (jit_read_descriptor): Remove NULL check.
4742 (jit_event_handler): Add an assertion.
4743
4744 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4745
4746 * jit.h (struct jit_objfile_data): Split into...
4747 (struct jiter_objfile_data): ... this ...
4748 (struct jited_objfile_data): ... and this.
4749 * objfiles.h (struct objfile) <jit_data>: Remove.
4750 <jiter_data, jited_data>: New fields.
4751 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4752 (jiter_objfile_data::~jiter_objfile_data): ... this.
4753 (get_jit_objfile_data): Rename to ...
4754 (get_jiter_objfile_data): ... this.
4755 (add_objfile_entry): Update.
4756 (jit_read_descriptor): Use get_jiter_objfile_data.
4757 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4758 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4759 (jit_inferior_exit_hook): Use objfile's jited_data field.
4760
4761 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4762
4763 * jit.h: Forward-declare `struct minimal_symbol`.
4764 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4765 constructor, destructor, and an objfile* field.
4766 * jit.c (jit_objfile_data): Remove.
4767 (struct jit_objfile_data): Migrate from here to jit.h.
4768 (jit_objfile_data::~jit_objfile_data): New destructor
4769 implementation with code moved from free_objfile_data.
4770 (free_objfile_data): Delete.
4771 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4772 (jit_find_objf_with_entry_addr): Ditto.
4773 (jit_inferior_exit_hook): Ditto.
4774 (_initialize_jit): Remove the call to
4775 register_objfile_data_with_cleanup.
4776 * objfiles.h (struct objfile) <jit_data>: New field.
4777
4778 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4779
4780 * jit.h: Forward-declare `struct objfile`.
4781 (jit_event_handler): Add a second parameter, the JITer objfile.
4782 * jit.c (jit_read_descriptor): Change the signature to take the
4783 JITer objfile as an argument instead of the jit_program_space_data.
4784 (jit_inferior_init): Update the call to jit_read_descriptor.
4785 (jit_event_handler): Use the new JITer objfile argument when calling
4786 jit_read_descriptor.
4787 * breakpoint.c (handle_jit_event): Update the call to
4788 jit_event_handler to pass the JITer objfile.
4789
4790 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4791
4792 * gdbarch.c: Regenerate.
4793 * gdbarch.h: Regenerate.
4794 * gdbarch.sh (handle_segmentation_fault): Remove method.
4795 * infrun.c (handle_segmentation_fault): Remove.
4796 (print_signal_received_reason): Remove call to
4797 handle_segmentation_fault.
4798
4799 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4800
4801 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4802 Rename to sparc64_linux_report_signal_info and add siggnal
4803 argument.
4804 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4805 instead of sparc64_linux_handle_segmentation_fault.
4806
4807 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4808
4809 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4810 i386_linux_report_signal_info instead of
4811 i386_linux_handle_segmentation_fault.
4812 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4813 to i386_linux_report_signal_info and add siggnal argument.
4814 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4815 of i386_linux_handle_segmentation_fault.
4816 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4817 to i386_linux_report_signal_info and add siggnal argument.
4818
4819 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4820
4821 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4822 hook if present.
4823
4824 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4825
4826 * gdbarch.c: Regenerate.
4827 * gdbarch.h: Regenerate.
4828 * gdbarch.sh (report_signal_info): New method.
4829 * infrun.c (print_signal_received_reason): Invoke gdbarch
4830 report_signal_info hook if present.
4831
4832 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * python/py-registers.c : Add 'unordered_map' include.
4835 (gdbpy_new_reggroup): Renamed to...
4836 (gdbpy_get_reggroup): ...this. Update to only create register
4837 group descriptors when needed.
4838 (gdbpy_reggroup_iter_next): Update.
4839
4840 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * python/py-registers.c (gdbpy_register_object_data): New static
4843 global.
4844 (gdbpy_register_object_data_init): New function.
4845 (gdbpy_new_register_descriptor): Renamed to...
4846 (gdbpy_get_register_descriptor): ...this, and update to reuse
4847 existing register descriptors where possible.
4848 (gdbpy_register_descriptor_iter_next): Update.
4849 (gdbpy_initialize_registers): Register new gdbarch data.
4850
4851 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * linux-nat.c (stopped_pids): Make static.
4854
4855 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4856
4857 PR ada/26235
4858 * gdbtypes.c (ada_discrete_type_low_bound,
4859 ada_discrete_type_high_bound): Handle undefined bounds.
4860
4861 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4862
4863 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4864 declaration.
4865 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4866 function.
4867
4868 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4869
4870 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4871 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4872 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4873 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4874 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4875 method.
4876
4877 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4878
4879 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4880 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4881 which are deprecated in Guile 3.0.
4882 * configure.ac (try_guile_versions): Add "guile-3.0".
4883 * configure (try_guile_versions): Regenerate.
4884 * NEWS: Update entry.
4885
4886 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4887 Doug Evans <dje@google.com>
4888
4889 PR gdb/21104
4890 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4891 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4892 USING_GUILE_BEFORE_2_2.
4893 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4894 Change type to 'scm_t_port_type *'.
4895 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4896 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4897 parameter and honor it. Update callers.
4898 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4899 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4900 functions.
4901 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4902 USING_GUILE_BEFORE_2_2.
4903 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4904 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4905 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4906 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4907 and 'SCM_PORT_TYPE'.
4908 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4909 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4910 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4911 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4912 [!USING_GUILE_BEFORE_2_2]: New functions.
4913 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4914 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4915 'gdbscm_memory_port_read'.
4916 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4917 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4918 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4919 function.
4920 (ioscm_init_memory_port): Remove.
4921 (ioscm_init_memory_port_stream): New function
4922 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4923 function.
4924 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4925 Return scm_from_uint (0).
4926 (gdbscm_set_memory_port_read_buffer_size_x)
4927 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4928 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4929 Return scm_from_uint (0).
4930 (gdbscm_set_memory_port_write_buffer_size_x)
4931 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4932 * configure.ac (try_guile_versions): Add "guile-2.2".
4933 * configure: Regenerate.
4934 * NEWS: Add entry.
4935
4936 2020-07-18 Tom Tromey <tom@tromey.com>
4937
4938 * linux-nat.c (linux_multi_process): Remove.
4939 (linux_nat_target::supports_multi_process): Return true.
4940
4941 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4942
4943 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4944 (riscv_lookup_target_description): Return pointer out of
4945 unique_ptr.
4946 * target-descriptions.c (allocate_target_description): Add
4947 comment.
4948 (target_desc_deleter::operator()): Likewise.
4949 * target-descriptions.h (struct target_desc_deleter): Moved to
4950 gdbsupport/tdesc.h.
4951 (target_desc_up): Likewise.
4952
4953 2020-07-17 Tom Tromey <tromey@adacore.com>
4954
4955 * linux-nat.c (linux_nat_target::supports_non_stop)
4956 (linux_nat_target::always_non_stop_p): Use "true".
4957 (linux_nat_target::supports_disable_randomization): Use "true" and
4958 "false".
4959
4960 2020-07-16 Caroline Tice <cmtice@google.com>
4961
4962 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4963 (RNGLIST_HEADER_SIZE64): New constant definition.
4964 (struct dwop_section_names): Add rnglists_dwo.
4965 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4966 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4967 (struct dwo_sections): Add rnglists field.
4968 (read_attribut_reprocess): Add tag parameter.
4969 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4970 (cu_debug_rnglists_section): New function (decl & definition).
4971 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4972 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4973 die whose range is being checked; get rnglist section from
4974 cu_debug_rnglists_section, to get from either objfile or dwo file as
4975 appropriate. Add cases for DW_RLE_base_addressx,
4976 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4977 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4978 test inside if-condition and updating complaint message.
4979 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4980 dwarf2_rnglists_process.
4981 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4982 dwarf2_ranges_process.
4983 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4984 need_ranges_base and update comment appropriately. Also pass die tag
4985 to dwarf2_ranges_read.
4986 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4987 need_ranges_base and update comment appropriately. Also pass die tag
4988 to dwarf2_ranges_process.
4989 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4990 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4991 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4992 need_ranges_base and update comment appropriately. Also pass die tag
4993 to read_attribute_reprocess and dwarf2_ranges_read.
4994 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4995 and update function comment appropriately.
4996 (read_loclist_index): Call read_loclists_rnglists_header instead of
4997 read_loclist_header.
4998 (read_rnglist_index): New function.
4999 (read_attribute_reprocess): Add tag parameter. Add code for
5000 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5001 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5002
5003 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5004
5005 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5006 being resolved.
5007
5008 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * arch-utils.c (show_architecture): Update formatting of messages.
5011
5012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * gdbtypes.h (struct type) <bounds>: Handle array and string
5015 types.
5016 * ada-lang.c (assign_aggregate): Use type::bounds on
5017 array/string type.
5018 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5019 * c-varobj.c (c_number_of_children): Likewise.
5020 (c_describe_child): Likewise.
5021 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5022 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5023 (f_type_print_base): Likewise.
5024 * f-valprint.c (f77_array_offset_tbl): Likewise.
5025 (f77_get_upperbound): Likewise.
5026 (f77_print_array_1): Likewise.
5027 * guile/scm-type.c (gdbscm_type_range): Likewise.
5028 * m2-typeprint.c (m2_array): Likewise.
5029 (m2_is_long_set_of_type): Likewise.
5030 * m2-valprint.c (get_long_set_bounds): Likewise.
5031 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5032 * python/py-type.c (typy_range): Likewise.
5033 * rust-lang.c (rust_internal_print_type): Likewise.
5034 * type-stack.c (type_stack::follow_types): Likewise.
5035 * valarith.c (value_subscripted_rvalue): Likewise.
5036 * valops.c (value_cast): Likewise.
5037
5038 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5039
5040 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5041 callers to use the equivalent accessor methods.
5042
5043 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5046 (struct type) <bit_stride>: New method.
5047 (TYPE_BIT_STRIDE): Remove.
5048 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5049
5050 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5051
5052 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5053 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5054 callers to use the equivalent accessor methods instead.
5055
5056 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5057
5058 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5059 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5060 callers to use the equivalent accessor methods instead.
5061
5062 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5063
5064 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5065 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5066 to use dynamic_prop::kind.
5067
5068 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5071 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5072 to get the bound property's kind and check against
5073 PROP_UNDEFINED.
5074
5075 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5076
5077 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5078 all callers to use type::range_bounds followed by
5079 dynamic_prop::{low,high}.
5080
5081 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5084 const_val, set_const_val, baton, set_locexpr, set_loclist,
5085 set_addr_offset, variant_parts, set_variant_parts,
5086 original_type, set_original_type>: New methods.
5087 <kind>: Rename to...
5088 <m_kind>: ... this. Update all users to use the new methods
5089 instead.
5090 <data>: Rename to...
5091 <m_data>: ... this. Update all users to use the new methods
5092 instead.
5093
5094 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5095
5096 * gdbtypes.c (get_discrete_bounds): Return failure if
5097 the range type's bounds are not both defined and constant
5098 values.
5099 (get_array_bounds): Update comment. Remove undefined bound check.
5100
5101 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5102
5103 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5104 the type::bounds method directly.
5105
5106 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5109 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5110 are used to set the range type's bounds to use set_bounds.
5111
5112 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113
5114 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5115
5116 2020-07-10 Pedro Alves <pedro@palves.net>
5117
5118 * gdbthread.h (inferior_ref): Define.
5119 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5120 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5121 * thread.c
5122 (scoped_restore_current_thread::restore):
5123 Adjust to gdb::ref_ptr.
5124 (scoped_restore_current_thread::~scoped_restore_current_thread):
5125 Remove manual decref handling.
5126 (scoped_restore_current_thread::scoped_restore_current_thread):
5127 Adjust to use
5128 inferior_ref::new_reference/thread_info_ref::new_reference.
5129 Incref the thread before calling get_frame_id instead of after.
5130 Let TARGET_CLOSE_ERROR propagate.
5131
5132 2020-07-10 Pedro Alves <pedro@palves.net>
5133
5134 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5135 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5136 NOT_AVAILABLE_ERROR.
5137 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5138 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5139
5140 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5141 Pedro Alves <pedro@palves.net>
5142
5143 PR gdb/26199
5144 * infrun.c (threads_are_resumed_pending_p): Delete.
5145 (do_target_wait): Remove threads_are_executing and
5146 threads_are_resumed_pending_p checks from the inferior_matches
5147 lambda. Update comments.
5148
5149 2020-07-10 Pedro Alves <pedro@palves.net>
5150
5151 PR gdb/26199
5152 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5153 executing threads.
5154
5155 2020-07-10 Pedro Alves <pedro@palves.net>
5156
5157 PR gdb/26199
5158 * infrun.c (handle_no_resumed): Handle multiple targets.
5159
5160 2020-07-10 Pedro Alves <pedro@palves.net>
5161
5162 PR gdb/26199
5163 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5164 target_is_async_p.
5165
5166 2020-07-10 Pedro Alves <pedro@palves.net>
5167
5168 PR gdb/26199
5169 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5170 threads, not all threads.
5171
5172 2020-07-10 Pedro Alves <pedro@palves.net>
5173
5174 PR gdb/26199
5175 * remote.c (remote_target::open_1): Pass remote target pointer as
5176 data to create_async_event_handler.
5177 (remote_async_inferior_event_handler): Mark async event handler
5178 before returning if the remote target still has either pending
5179 events or unacknowledged notifications.
5180
5181 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5182
5183 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5184 declaration.
5185 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5186 function.
5187
5188 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5189
5190 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5191 inferior_ptid.
5192
5193 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5194
5195 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5196 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5197 AT_FREEBSD_PS_STRINGS.
5198
5199 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5200
5201 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5202 of debugfile path on Windows.
5203
5204 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5205
5206 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5207 argument to 'data'.
5208
5209 2020-07-08 Tom Tromey <tromey@adacore.com>
5210
5211 * ada-lang.c (ada_exception_message_1): Use read_memory.
5212
5213 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 PR python/22748
5216 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5217 special handling for inline frames.
5218 * findvar.c (value_of_register_lazy): Skip inline frames when
5219 creating lazy register values.
5220 * frame.c (frame_id_computed_p): Delete definition.
5221 * frame.h (frame_id_computed_p): Delete declaration.
5222
5223 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5224
5225 * NEWS: Mention additions to Python API.
5226 * python/py-arch.c (archpy_register_groups): New function.
5227 (arch_object_methods): Add 'register_groups' method.
5228 * python/py-registers.c (reggroup_iterator_object): New struct.
5229 (reggroup_object): New struct.
5230 (gdbpy_new_reggroup): New function.
5231 (gdbpy_reggroup_to_string): New function.
5232 (gdbpy_reggroup_name): New function.
5233 (gdbpy_reggroup_iter): New function.
5234 (gdbpy_reggroup_iter_next): New function.
5235 (gdbpy_new_reggroup_iterator): New function
5236 (gdbpy_initialize_registers): Register new types.
5237 (reggroup_iterator_object_type): Define new Python type.
5238 (gdbpy_reggroup_getset): New static global.
5239 (reggroup_object_type): Define new Python type.
5240 * python/python-internal.h
5241
5242 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5245 * python/py-arch.c (archpy_registers): New function.
5246 (arch_object_methods): Add 'registers' method.
5247 * python/py-registers.c: New file.
5248 * python/python-internal.h
5249 (gdbpy_new_register_descriptor_iterator): Declare.
5250 (gdbpy_initialize_registers): Declare.
5251 * python/python.c (do_start_initialization): Call
5252 gdbpy_initialize_registers.
5253 * NEWS: Mention additions to the Python API.
5254
5255 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * NEWS: Mention new Python API method.
5258 * python/py-unwind.c (pending_framepy_architecture): New function.
5259 (pending_frame_object_methods): Add architecture method.
5260
5261 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * gdbarch.c: Regenerate.
5264 * gdbarch.h: Regenerate.
5265 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5266 (gdbarch_data): Use internal_error for the case where
5267 deprecated_set_gdbarch_data was originally needed.
5268 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5269 and use passed in obstack.
5270 (libunwind_frame_set_descr): Should no longer get back NULL from
5271 gdbarch_data.
5272 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5273 type.
5274 * user-regs.c (user_regs_init): Update parameters, and use passed
5275 in obstack.
5276 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5277 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5278
5279 2020-07-06 Tom de Vries <tdevries@suse.de>
5280
5281 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5282 End-Of-Sequence in lte_is_less_than.
5283 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5284 "gdb: Don't reorder line table entries too much when sorting".
5285
5286 2020-07-06 Tom de Vries <tdevries@suse.de>
5287
5288 PR tui/26205
5289 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5290
5291 2020-07-05 Tom de Vries <tdevries@suse.de>
5292
5293 PR build/26187
5294 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5295 std::uncaught_exceptions instead of deprecated
5296 std::uncaught_exception.
5297
5298 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5299
5300 * macroexp.h (macro_stringify): Return
5301 gdb::unique_xmalloc_ptr<char>.
5302 * macroexp.c (macro_stringify): Likewise.
5303 * macrotab.c (fixup_definition): Update.
5304
5305 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5306
5307 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5308 (lex_one_token): Update.
5309 * macroexp.c (struct macro_buffer) <release>: Return
5310 gdb::unique_xmalloc_ptr<char>.
5311 (macro_stringify): Update.
5312 (macro_expand): Update.
5313 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5314 * macroexp.h (macro_expand_next): Likewise.
5315
5316 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * macroexp.h (macro_lookup_ftype): Remove.
5319 (macro_expand, macro_expand_once, macro_expand_next): Remove
5320 lookup function parameters, add scope parameter.
5321 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5322 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5323 * macroscope.h (standard_macro_lookup): Change parameter type
5324 to macro_scope.
5325 * macroscope.c (standard_macro_lookup): Likewise.
5326 * c-exp.y (lex_one_token): Update.
5327 * macrocmd.c (macro_expand_command): Likewise.
5328 (macro_expand_once_command): Likewise.
5329
5330 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5331
5332 * inf-loop.c (inferior_event_handler): Remove client_data param.
5333 * inf-loop.h (inferior_event_handler): Likewise.
5334 * infcmd.c (step_1): Adjust.
5335 * infrun.c (proceed): Adjust.
5336 (fetch_inferior_event): Remove client_data param.
5337 (infrun_async_inferior_event_handler): Adjust.
5338 * infrun.h (fetch_inferior_event): Remove `void *` param.
5339 * linux-nat.c (handle_target_event): Adjust.
5340 * record-btrace.c (record_btrace_handle_async_inferior_event):
5341 Adjust.
5342 * record-full.c (record_full_async_inferior_event_handler):
5343 Adjust.
5344 * remote.c (remote_async_inferior_event_handler): Adjust.
5345
5346 2020-07-01 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5349 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5350
5351 2020-07-01 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5354 tui_gen_win_info.
5355 (tui_win_info::make_window): Merge with
5356 tui_gen_win_info::make_window.
5357 (tui_win_info::make_visible): Move from tui_gen_win_info.
5358 * tui/tui-win.c (tui_win_info::max_width): Move from
5359 tui_gen_win_info.
5360 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5361 type.
5362 <window_factory>: Likewise.
5363 * tui/tui-layout.c (tui_win_info::resize): Move from
5364 tui_gen_win_info.
5365 (make_standard_window): Change return type.
5366 (get_locator_window, tui_get_window_by_name): Likewise.
5367 (tui_layout_window::apply): Remove a cast.
5368 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5369 (struct tui_win_info): Merge with tui_gen_win_info.
5370 (struct tui_gen_win_info): Remove.
5371
5372 2020-07-01 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-stack.h (struct tui_locator_window): Derive from
5375 tui_win_info.
5376 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5377 <can_box>: New method.
5378
5379 2020-07-01 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5382
5383 2020-07-01 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-regs.c (tui_data_window::display_registers_from)
5386 (tui_data_window::display_registers_from)
5387 (tui_data_window::first_data_item_displayed)
5388 (tui_data_window::delete_data_content_windows): Update.
5389 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5390 Remove.
5391 (tui_data_window::check_register_values): Update.
5392 (tui_data_item_window::rerender): Add parameters. Update.
5393 (tui_data_item_window::refresh_window): Remove.
5394 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5395 virtual.
5396 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5397 tui_gen_win_info.
5398 <refresh_window, max_height, min_height>: Remove.
5399 <rerender>: Add parameters.
5400 <x, y, visible>: New members.
5401 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5402 <m_item_width>: New member.
5403
5404 2020-07-01 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-regs.c (tui_data_window::show_register_group)
5407 (tui_data_window::check_register_values): Update.
5408 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5409 from item_no.
5410
5411 2020-07-01 Tom Tromey <tom@tromey.com>
5412
5413 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5414 useless "if".
5415
5416 2020-07-01 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5419 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5420
5421 2020-07-01 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5424 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5425 (struct tui_line_or_address): Move from tui-data.h.
5426 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5427 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5428 (tui_cmd_window, tui_source_window_base, tui_source_window)
5429 (tui_disasm_window): Don't declare.
5430 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5431 to tui-winsource.h.
5432 (SINGLE_KEY): Move to tui-stack.c.
5433
5434 2020-07-01 Tom Tromey <tom@tromey.com>
5435
5436 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5437 std::string.
5438 * tui/tui-regs.c (class tab_expansion_file): New.
5439 (tab_expansion_file::write): New method.
5440 (tui_register_format): Change return type. Use
5441 tab_expansion_file.
5442 (tui_get_register, tui_data_window::display_registers_from)
5443 (tui_data_item_window::rerender): Update.
5444 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5445 * tui/tui-io.c (tui_expand_tabs): Remove.
5446
5447 2020-07-01 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5450
5451 2020-07-01 Fangrui Song <maskray@google.com>
5452
5453 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5454
5455 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5456
5457 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5458 forms for DW_AT_associated and DW_AT_allocated attributes,
5459 which is already checked in function attr_to_dynamic_prop.
5460
5461 2020-06-30 Tom Tromey <tromey@adacore.com>
5462
5463 * dwarf2/read.c (quirk_rust_enum): Correctly call
5464 alloc_rust_variant for default-less enum.
5465
5466 2020-06-30 Tom Tromey <tromey@adacore.com>
5467
5468 PR build/26183:
5469 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5470 gdb::to_string.
5471
5472 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5475 * gdbarch.h: Re-generate.
5476
5477 2020-06-28 Tom Tromey <tom@tromey.com>
5478
5479 * command.h (cmd_types): Remove.
5480 (cmd_type): Don't declare.
5481 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5482 typedef.
5483 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5484 * cli/cli-decode.c (cmd_type): Remove.
5485
5486 2020-06-27 Pedro Alves <palves@redhat.com>
5487
5488 * fork-child.c (prefork_hook): Adjust.
5489 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5490 Delete.
5491 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5492 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5493 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5494 Remove declarations.
5495 (struct inferior) <set_tty, tty>: New methods.
5496 (struct inferior) <terminal>: Rename to ...
5497 (struct inferior) <m_terminal>: ... this and make private.
5498 * main.c (captured_main_1): Adjust.
5499 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5500 (mi_cmd_inferior_tty_show): Adjust.
5501 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5502 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5503
5504 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5505
5506 * configure.ac: Add --enable-libctf: handle --disable-static
5507 properly.
5508 * acinclude.m4: sinclude ../config/enable.m4.
5509 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5510 (LIBCTF): Substitute in.
5511 (CTF_DEPS): New, likewise.
5512 (CLIBS): libctf needs symbols from libbfd: move earlier.
5513 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5514 flags.
5515 * ctfread.c: Surround in ENABLE_LIBCTF.
5516 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5517 * configure: Regenerate.
5518 * config.in: Likewise.
5519
5520 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5523
5524 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * inferior.h (struct inferior) <terminal>: Change type to
5527 gdb::unique_xmalloc_ptr<char>.
5528 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5529 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5530 field, adjust to unique pointer.
5531 (get_inferior_io_terminal): Adjust to unique pointer.
5532
5533 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5534
5535 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5536 registers, not just the known core set of registers.
5537
5538 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5541 fflags, frm, and fcsr registers.
5542 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5543 restore groups.
5544 (riscv_tdesc_unknown_reg): New function.
5545 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5546 tdesc_use_registers.
5547 * riscv-tdep.h (struct gdbarch_tdep): Add
5548 unknown_csrs_first_regnum, unknown_csrs_count,
5549 duplicate_fflags_regnum, duplicate_frm_regnum, and
5550 duplicate_fcsr_regnum fields.
5551
5552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5555 callback, use the callback (when not null) to help number unknown
5556 registers.
5557 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5558 (tdesc_use_registers): Add extra parameter to declaration.
5559
5560 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5563 in the file.
5564 (class riscv_pending_register_alias): Likewise.
5565 (riscv_register_feature::register_info): Change 'required_p' field
5566 to 'required', and change its type. Add 'check' member function.
5567 (riscv_register_feature::register_info::check): Define new member
5568 function.
5569 (riscv_xreg_feature): Change initialisation of 'required' field.
5570 (riscv_freg_feature): Likewise.
5571 (riscv_virtual_feature): Likewise.
5572 (riscv_csr_feature): Likewise.
5573 (riscv_check_tdesc_feature): Take extra parameter, the csr
5574 tdesc_feature, rewrite the function to use the new
5575 riscv_register_feature::register_info::check function.
5576 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5577
5578 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5579
5580 * features/Makefile: Remove all references to the deleted files
5581 below.
5582 * features/riscv/32bit-csr.c: Deleted.
5583 * features/riscv/32bit-csr.xml: Deleted.
5584 * features/riscv/64bit-csr.c: Deleted.
5585 * features/riscv/64bit-csr.xml: Deleted.
5586 * features/riscv/rebuild-csr-xml.sh: Deleted.
5587
5588 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5589
5590 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5591 whitespace error for declaration of names member variable.
5592 (struct riscv_register_feature): Add new prefer_first_name member
5593 variable, and fix whitespace error in declaration of registers.
5594 (riscv_xreg_feature): Initialize prefer_first_name field.
5595 (riscv_freg_feature): Likewise.
5596 (riscv_virtual_feature): Likewise.
5597 (riscv_csr_feature): Likewise.
5598 (riscv_register_name): Expand on comments. Remove register name
5599 modifications for CSR and virtual registers.
5600
5601 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5602
5603 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5604 errors.
5605
5606 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5607
5608 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5609 riscv-opc.h.
5610 (class riscv_pending_register_alias): New class.
5611 (riscv_check_tdesc_feature): Take vector of pending aliases and
5612 populate it as appropriate.
5613 (riscv_setup_register_aliases): Delete.
5614 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5615 to riscv_check_tdesc_feature in all cases. Use the vector to
5616 create the register aliases.
5617
5618 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5619
5620 * sol2-tdep.c (sol2_static_transform_name): Remove.
5621 (sol2_init_abi): Don't register it.
5622 * gdbarch.sh (static_transform_name): Remove.
5623 * gdbarch.c, gdbarch.h: Regenerate.
5624
5625 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5626 gdbarch_static_transform_name.
5627 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5628 * stabsread.c (define_symbol) <'X'>: Remove.
5629 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5630 handling.
5631 <'V'>: Likewise.
5632 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5633 <'S'>: Remove call to gdbarch_static_transform_name.
5634
5635 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5636
5637 * procfs.c (procfs_pre_trace): New function.
5638 (procfs_target::create_inferior): Pass it to fork_inferior.
5639
5640 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5641
5642 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5643 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5644 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5645 sol2-tdep.o, sparc-sol2-tdep.o.
5646 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5647 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5648 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5649 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5650
5651 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5652
5653 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5654 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5655 Call sol2_init_abi.
5656 Remove calls to set_gdbarch_skip_solib_resolver,
5657 set_gdbarch_core_pid_to_str.
5658 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5659 (i386_sol2_static_transform_name): Remove.
5660 (i386_sol2_init_abi): Call sol2_init_abi.
5661 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5662 set_gdbarch_static_transform_name,
5663 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5664 Use sol2_sigtramp_p.
5665 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5666 (sol2_sigtramp_p): New function.
5667 (sol2_static_transform_name): New function.
5668 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5669 (sol2_init_abi): New function.
5670 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5671 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5672 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5673 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5674 (sparc_sol2_static_transform_name): Remove.
5675 (sparc32_sol2_init_abi): Call sol2_init_abi.
5676 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5677 set_gdbarch_static_transform_name,
5678 set_gdbarch_skip_solib_resolver,
5679 set_gdbarch_core_pid_to_str.
5680 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5681 (sparc_sol2_static_transform_name): Remove
5682 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5683 call sol2_sigtramp_p.
5684 (sparc64_sol2_init_abi): Call sol2_init_abi.
5685 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5686 set_gdbarch_static_transform_name,
5687 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5688
5689 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5690
5691 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5692 * exec.c (validate_exec_file): If from_tty, set both
5693 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5694 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5695 and from_tty, unconditionally ask a confirmation.
5696
5697 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * target-descriptions.c (tdesc_architecture_name): Protect against
5700 NULL pointer dereference.
5701 (maint_print_xml_tdesc_cmd): New function.
5702 (_initialize_target_descriptions): Register new 'maint print
5703 xml-tdesc' command and give it the filename completer.
5704 * NEWS: Mention new 'maint print xml-tdesc' command.
5705
5706 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * target-descriptions.c (class tdesc_compatible_info): New class.
5709 (struct target_desc): Change type of compatible vector.
5710 (tdesc_compatible_p): Update for change in type of
5711 target_desc::compatible.
5712 (tdesc_compatible_info_list): New function.
5713 (tdesc_compatible_info_arch_name): New function.
5714 (tdesc_add_compatible): Update for change in type of
5715 target_desc::compatible.
5716 (print_c_tdesc::visit_pre): Likewise.
5717
5718 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5719
5720 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5721 whitespace to underscore.
5722 (maint_print_c_tdesc_cmd): Use fake filename for target
5723 descriptions that came from the target.
5724 (_initialize_target_descriptions): Add filename command completion
5725 for 'maint print c-tdesc'.
5726
5727 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5730 lines.
5731
5732 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5735 lines.
5736 (dwarf2_find_location_expression): Likewise.
5737 (call_site_parameter_matches): Likewise.
5738 (dwarf2_compile_expr_to_ax): Likewise.
5739 (disassemble_dwarf_expression): Likewise.
5740 (loclist_describe_location): Likewise.
5741
5742 2020-06-23 Pedro Alves <palves@redhat.com>
5743
5744 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5745 progspace-and-thread.h. Include scoped-mock-context.h instead.
5746 (register_to_value_test): Use scoped_mock_context.
5747 * regcache.c: Include "scoped-mock-context.h".
5748 (cooked_read_test): Don't error out if a target is already pushed.
5749 Use scoped_mock_context. Adjust.
5750 * scoped-mock-context.h: New file.
5751
5752 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5753
5754 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5755 initializer.
5756 (ada_language::is_string_type_p): New member function.
5757 * c-lang.c (c_language_data): Delete la_is_string_type_p
5758 initializer.
5759 (cplus_language_data): Likewise.
5760 (asm_language_data): Likewise.
5761 (minimal_language_data): Likewise.
5762 * d-lang.c (d_language_data): Likewise.
5763 * f-lang.c (f_is_string_type_p): Delete function, implementation
5764 moved to f_language::is_string_type_p.
5765 (f_language_data): Delete la_is_string_type_p initializer.
5766 (f_language::is_string_type_p): New member function,
5767 implementation from f_is_string_type_p.
5768 * go-lang.c (go_is_string_type_p): Delete function, implementation
5769 moved to go_language::is_string_type_p.
5770 (go_language_data): Delete la_is_string_type_p initializer.
5771 (go_language::is_string_type_p): New member function,
5772 implementation from go_is_string_type_p.
5773 * language.c (language_defn::is_string_type_p): Define new member
5774 function.
5775 (default_is_string_type_p): Make static, add comment copied from
5776 header file.
5777 (unknown_language_data): Delete la_is_string_type_p initializer.
5778 (unknown_language::is_string_type_p): New member function.
5779 (auto_language_data): Delete la_is_string_type_p initializer.
5780 (auto_language::is_string_type_p): New member function.
5781 * language.h (language_data): Delete la_is_string_type_p field.
5782 (language_defn::is_string_type_p): Declare new function.
5783 (default_is_string_type_p): Delete desclaration, move comment to
5784 definition.
5785 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5786 moved to m2_language::is_string_type_p.
5787 (m2_language_data): Delete la_is_string_type_p initializer.
5788 (m2_language::is_string_type_p): New member function,
5789 implementation from m2_is_string_type_p.
5790 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5791 initializer.
5792 * opencl-lang.c (opencl_language_data): Likewise.
5793 * p-lang.c (pascal_is_string_type_p): Delete function,
5794 implementation moved to pascal_language::is_string_type_p.
5795 (pascal_language_data): Delete la_is_string_type_p initializer.
5796 (pascal_language::is_string_type_p): New member function,
5797 implementation from pascal_is_string_type_p.
5798 * rust-lang.c (rust_is_string_type_p): Delete function,
5799 implementation moved to rust_language::is_string_type_p.
5800 (rust_language_data): Delete la_is_string_type_p initializer.
5801 (rust_language::is_string_type_p): New member function,
5802 implementation from rust_is_string_type_p.
5803 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5804 is_string_type_p.
5805
5806 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * ada-lang.c (ada_language_data): Delete la_print_typedef
5809 initializer.
5810 (ada_language::print_typedef): New member function.
5811 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5812 (cplus_language_data): Likewise.
5813 (asm_language_data): Likewise.
5814 (minimal_language_data): Likewise.
5815 * d-lang.c (d_language_data): Likewise.
5816 * f-lang.c (f_language_data): Likewise.
5817 (f_language::print_typedef): New member function.
5818 * go-lang.c (go_language_data): Delete la_print_typedef
5819 initializer.
5820 * language.c (language_defn::print_typedef): Define member
5821 function.
5822 (unknown_language_data): Delete la_print_typedef initializer.
5823 (unknown_language::print_typedef): New member function.
5824 (auto_language_data): Delete la_print_typedef initializer.
5825 (auto_language::print_typedef): New member function.
5826 * language.h (language_data): Delete la_print_typedef field.
5827 (language_defn::print_typedef): Declare new member function.
5828 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5829 (default_print_typedef): Delete declaration.
5830 * m2-lang.c (m2_language_data): Delete la_print_typedef
5831 initializer.
5832 (m2_language::print_typedef): New member function.
5833 * objc-lang.c (objc_language_data): Delete la_print_typedef
5834 initializer.
5835 * opencl-lang.c (opencl_language_data): Likewise.
5836 * p-lang.c (pascal_language_data): Likewise.
5837 (pascal_language::print_typedef): New member function.
5838 * rust-lang.c (rust_print_typedef): Delete function,
5839 implementation moved to rust_language::print_typedef.
5840 (rust_language): Delete la_print_typedef initializer.
5841 (rust_language::print_typedef): New member function,
5842 implementation from rust_print_typedef.
5843 * typeprint.c (default_print_typedef): Delete.
5844
5845 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5848 (ada_language::printstr): New member function.
5849 * c-lang.c (c_language_data): Delete la_printstr initializer.
5850 (cplus_language_data): Likewise.
5851 (asm_language_data): Likewise.
5852 (minimal_language_data): Likewise.
5853 * d-lang.c (d_language_data): Likewise.
5854 * f-lang.c (f_printstr): Rename to f_language::printstr.
5855 (f_language_data): Delete la_printstr initializer.
5856 (f_language::printstr): New member function, implementation from
5857 f_printstr.
5858 * go-lang.c (go_language_data): Delete la_printstr initializer.
5859 * language.c (language_defn::printstr): Define new member
5860 function.
5861 (unk_lang_printstr): Delete.
5862 (unknown_language_data): Delete la_printstr initializer.
5863 (unknown_language::printstr): New member function.
5864 (auto_language_data): Delete la_printstr initializer.
5865 (auto_language::printstr): New member function.
5866 * language.h (language_data): Delete la_printstr field.
5867 (language_defn::printstr): Declare new member function.
5868 (LA_PRINT_STRING): Update call to printstr.
5869 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5870 (m2_language_data): Delete la_printstr initializer.
5871 (m2_language::printstr): New member function, implementation from
5872 m2_printstr.
5873 * objc-lang.c (objc_language_data): Delete la_printstr
5874 initializer.
5875 * opencl-lang.c (opencl_language_data): Likewise.
5876 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5877 (pascal_language_data): Delete la_printstr initializer.
5878 (pascal_language::printstr): New member function, implementation
5879 from pascal_printstr.
5880 * p-lang.h (pascal_printstr): Delete declaration.
5881 * rust-lang.c (rust_printstr): Update header comment.
5882 (rust_language_data): Delete la_printstr initializer.
5883 (rust_language::printstr): New member function.
5884
5885 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5886
5887 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5888 (ada_language::printchar): New member function.
5889 * c-lang.c (c_language_data): Delete la_printchar initializer.
5890 (cplus_language_data): Likewise.
5891 (asm_language_data): Likewise.
5892 (minimal_language_data): Likewise.
5893 * d-lang.c (d_language_data): Likewise.
5894 * f-lang.c (f_printchar): Rename to f_language::printchar.
5895 (f_language_data): Delete la_printchar initializer.
5896 (f_language::printchar): New member function, implementation from
5897 f_printchar.
5898 * go-lang.c (go_language_data): Delete la_printchar initializer.
5899 * language.c (unk_lang_printchar): Delete.
5900 (language_defn::printchar): Define new member function.
5901 (unknown_language_data): Delete la_printchar initializer.
5902 (unknown_language::printchar): New member function.
5903 (auto_language_data): Delete la_printchar initializer.
5904 (auto_language::printchar): New member function.
5905 * language.h (language_data): Delete la_printchar field.
5906 (language_defn::printchar): Declare new member function.
5907 (LA_PRINT_CHAR): Update call to printchar.
5908 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5909 (m2_language::printchar): New member function.
5910 * objc-lang.c (objc_language_data): Delete la_printchar
5911 initializer.
5912 * opencl-lang.c (opencl_language_data): Likewise.
5913 * p-lang.c (pascal_language_data): Delete la_printchar
5914 initializer.
5915 (pascal_language::printchar): New member function.
5916 * rust-lang.c (rust_printchar): Rename to
5917 rust_language::printchar.
5918 (rust_language_data): Delete la_printchar initializer.
5919 (rust_language::printchar): New member function, implementation
5920 from rust_printchar.
5921
5922 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5923
5924 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5925 (ada_language_data): Delete la_emitchar initializer.
5926 (ada_language::emitchar): New member function, implementation from
5927 emit_char.
5928 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5929 (cplus_language_data): Likewise.
5930 (asm_language_data): Likewise.
5931 (minimal_language_data): Likewise.
5932 * d-lang.c (d_language_data): Likewise.
5933 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5934 (f_language_data): Delete la_emitchar initializer.
5935 (f_language::emitchar): New member function, implementation from
5936 f_emit_char.
5937 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5938 * language.c (unk_lang_emit_char): Delete.
5939 (language_defn::emitchar): New member function definition.
5940 (unknown_language_data): Delete la_emitchar initializer.
5941 (unknown_language::emitchar): New member function.
5942 (auto_language_data): Delete la_emitchar initializer.
5943 (auto_language::emitchar): New member function.
5944 * language.h (language_data): Delete la_emitchar field.
5945 (language_defn::emitchar): New member field declaration.
5946 (LA_EMIT_CHAR): Update call to emitchar.
5947 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5948 (m2_language_data): Delete la_emitchar initializer.
5949 (m2_language::emitchar): New member function, implementation from
5950 m2_emit_char.
5951 * objc-lang.c (objc_language_data): Delete la_emitchar
5952 initializer.
5953 * opencl-lang.c (opencl_language_data): Likewise.
5954 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5955 (pascal_language_data): Delete la_emitchar initializer.
5956 (pascal_language::emitchar): New member function, implementation
5957 from pascal_emit_char.
5958 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5959 (rust_language_data): Delete la_emitchar initializer.
5960 (rust_language::emitchar): New member function, implementation
5961 from rust_emitchar.
5962
5963 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5964
5965 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5966 (ada_language_data): Delete la_post_parser initializer.
5967 (ada_language::post_parser): New member function.
5968 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5969 (cplus_language_data): Likewise.
5970 (asm_language_data): Likewise.
5971 (minimal_language_data): Likewise.
5972 * d-lang.c (d_language_data): Likewise.
5973 * f-lang.c (f_language_data): Likewise.
5974 * go-lang.c (go_language_data): Likewise.
5975 * language.c (unknown_language_data): Likewise.
5976 (auto_language_data): Likewise.
5977 * language.h (language_data): Delete la_post_parser field.
5978 (language_defn::post_parser): New member function.
5979 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5980 * objc-lang.c (objc_language_data): Likewise.
5981 * opencl-lang.c (opencl_language_data): Likewise.
5982 * p-lang.c (pascal_language_data): Likewise.
5983 * parse.c (parse_exp_in_context): Update call to post_parser.
5984 (null_post_parser): Delete definition.
5985 * parser-defs.h (null_post_parser): Delete declaration.
5986 * rust-lang.c (rust_language_data): Delete la_post_parser
5987 initializer.
5988
5989 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * ada-lang.c (parse): Rename to ada_language::parser.
5992 (ada_language_data): Delete la_parser initializer.
5993 (ada_language::parser): New member function, implementation from
5994 parse.
5995 * c-lang.c (c_language_data): Delete la_parser initializer.
5996 (cplus_language_data): Likewise.
5997 (asm_language_data): Likewise.
5998 (minimal_language_data): Likewise.
5999 * d-lang.c (d_language_data): Likewise.
6000 (d_language::parser): New member function.
6001 * f-lang.c (f_language_data): Delete la_parser initializer.
6002 (f_language::parser): New member function.
6003 * go-lang.c (go_language_data): Delete la_parser initializer.
6004 (go_language::parser): New member function.
6005 * language.c (unk_lang_parser): Delete.
6006 (language_defn::parser): Define new member function.
6007 (unknown_language_data): Delete la_parser initializer.
6008 (unknown_language::parser): New member function.
6009 (auto_language_data): Delete la_parser initializer.
6010 (auto_language::parser): New member function.
6011 * language.h (language_data): Delete la_parser field.
6012 (language_defn::parser): Declare new member function.
6013 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6014 (m2_language::parser): New member function.
6015 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6016 * opencl-lang.c (opencl_language_data): Likewise.
6017 * p-lang.c (pascal_language_data): Likewise.
6018 (pascal_language::parser): New member function.
6019 * parse.c (parse_exp_in_context): Update call to parser.
6020 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6021 (rust_language::parser): New member function.
6022
6023 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6024
6025 * top.c (print_gdb_configuration): Print --with-python-libdir
6026 configuration value.
6027
6028 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6029
6030 * NEWS: Mention change to the alias command.
6031
6032 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6033
6034 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6035 (alias_command_completer)
6036 (make_alias_options_def_group): New functions.
6037 (alias_opts, alias_option_defs): New struct and array.
6038 (alias_usage_error): Update usage.
6039 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6040 Use option framework.
6041 (_initialize_cli_cmds): Update alias command help.
6042 Update aliases command help.
6043 (show_user):
6044 Add NULL for new default_args lookup_cmd argument.
6045 (valid_command_p): Rename to validate_aliased_command.
6046 Add NULL for new default_args lookup_cmd argument. Verify that the
6047 aliased_command has no default args.
6048 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6049 (lookup_cmd_1, lookup_cmd): New argument default_args.
6050 (add_alias_cmd):
6051 Add NULL for new default_args lookup_cmd argument.
6052 (print_help_for_command): Show default args under the layout
6053 alias some_alias = some_aliased_cmd some_alias_default_arg.
6054 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6055 xfree default_args in destructor.
6056 * cli/cli-script.c (process_next_line, do_define_command):
6057 Add NULL for new default_args lookup_cmd argument.
6058 * command.h: Declare new default_args argument in lookup_cmd
6059 and lookup_cmd_1.
6060 * completer.c (complete_line_internal_1):
6061 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6062 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6063 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6064 Likewise.
6065 * infcmd.c (_initialize_infcmd): Likewise.
6066 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6067 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6068 * python/py-param.c (add_setshow_generic): Likewise.
6069 * remote.c (_initialize_remote): Likewise.
6070 * top.c (execute_command): Prepend default_args if command has some.
6071 (set_verbose):
6072 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6073 * tracepoint.c (validate_actionline, encode_actions_1):
6074 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6075
6076 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6077
6078 * jit.c (jit_read_descriptor): Use bool as the return type.
6079 (jit_breakpoint_re_set_internal): Use bool as the return type.
6080 Invert the return value logic; return true if the jit breakpoint
6081 has been successfully initialized.
6082 (jit_inferior_init): Update the call to
6083 jit_breakpoint_re_set_internal.
6084
6085 2020-06-22 Pedro Alves <palves@redhat.com>
6086
6087 PR gdb/25939
6088 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6089 Use the current inferior instead. Don't return
6090 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6091 wait again.
6092 * sol-thread.c (sol_thread_target::wait): Don't reference
6093 inferior_ptid.
6094 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6095 (sol_update_thread_list_callback): Use the current inferior's pid
6096 instead of inferior_ptid.
6097
6098 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6099
6100 * procfs.c: Cleanup many comments.
6101
6102 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6103 (AFTER_WATCHFLAG): Replace by value.
6104
6105 (MAIN_PROC_NAME_FORMAT): Inline ...
6106 (create_procinfo): ... here.
6107
6108 (procfs_debug_inferior): Remove SYS_exec handling.
6109 (syscall_is_exec): Likewise.
6110 (procfs_set_exec_trap): Likewise.
6111
6112 (syscall_is_lwp_exit): Inline in callers.
6113 (syscall_is_exit): Likewise.
6114 (syscall_is_exec): Likewise.
6115 (syscall_is_lwp_create): Likewise.
6116
6117 (invalidate_cache): Remove #if 0 code.
6118
6119 (make_signal_thread_runnable): Remove.
6120 (procfs_target::resume): Remove #if 0 code.
6121
6122 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6123
6124 PR gdb/25939
6125 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6126 call ...
6127 (procfs_target::create_inferior): ... here.
6128
6129 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6130
6131 * exec.c (validate_exec_file): Ensure the build-id is up to
6132 date by calling reopen_exec_file (that checks file timestamp
6133 to decide to re-read the file).
6134
6135 2020-06-18 Pedro Alves <palves@redhat.com>
6136
6137 PR gdb/25412
6138 * gdbthread.h (delete_thread, delete_thread_silent)
6139 (find_thread_ptid): Update comments.
6140 * thread.c (current_thread_): New global.
6141 (is_current_thread): Move higher, and reimplement.
6142 (inferior_thread): Reimplement.
6143 (set_thread_exited): Use bool. Add assertions.
6144 (add_thread_silent): Simplify thread-reuse handling by always
6145 calling delete_thread.
6146 (delete_thread): Remove intro comment.
6147 (find_thread_ptid): Skip exited threads.
6148 (switch_to_thread_no_regs): Write to current_thread_.
6149 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6150 INFERIOR_PTID. Clear current_thread_.
6151
6152 2020-06-18 Pedro Alves <palves@redhat.com>
6153
6154 * aix-thread.c (pd_update): Use switch_to_thread.
6155
6156 2020-06-18 Pedro Alves <palves@redhat.com>
6157
6158 * ravenscar-thread.c (ravenscar_thread_target): Update.
6159 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6160 (ravenscar_thread_target::add_active_thread): ... this. Don't
6161 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6162 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6163
6164 2020-06-18 Pedro Alves <palves@redhat.com>
6165
6166 * nat/windows-nat.c (current_windows_thread): Remove.
6167 * nat/windows-nat.h (current_windows_thread): Remove.
6168 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6169 Adjust.
6170 (display_selectors): Adjust to fetch the current
6171 windows_thread_info based on inferior_ptid.
6172 (fake_create_process): No longer write to current_windows_thread.
6173 (windows_nat_target::get_windows_debug_event):
6174 Don't set inferior_ptid or current_windows_thread.
6175 (windows_nat_target::wait): Adjust to not rely on
6176 current_windows_thread.
6177 (do_initial_windows_stuff): Now a method of windows_nat_target.
6178 Switch to the last_ptid thread.
6179 (windows_nat_target::attach): Adjust.
6180 (windows_nat_target::detach): Use switch_to_no_thread instead of
6181 writing to inferior_ptid directly.
6182 (windows_nat_target::create_inferior): Adjust.
6183
6184 2020-06-18 Pedro Alves <palves@redhat.com>
6185
6186 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6187
6188 2020-06-18 Pedro Alves <palves@redhat.com>
6189
6190 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6191 after creating it, instead of writing to inferior_ptid. Don't
6192 write to inferior_ptid.
6193
6194 2020-06-18 Pedro Alves <palves@redhat.com>
6195
6196 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6197
6198 2020-06-18 Pedro Alves <palves@redhat.com>
6199
6200 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6201 it, instead of writing to inferior_ptid.
6202
6203 2020-06-18 Pedro Alves <palves@redhat.com>
6204
6205 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6206 to inferior_ptid.
6207
6208 2020-06-18 Pedro Alves <palves@redhat.com>
6209
6210 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6211 instead of writing to inferior_ptid directly.
6212
6213 2020-06-18 Pedro Alves <palves@redhat.com>
6214
6215 * corelow.c (core_target::close): Use switch_to_no_thread instead
6216 of writing to inferior_ptid directly.
6217 (add_to_thread_list, core_target_open): Use switch_to_thread
6218 instead of writing to inferior_ptid directly.
6219
6220 2020-06-18 Pedro Alves <palves@redhat.com>
6221
6222 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6223 inferior_ptid.
6224 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6225 inferior_ptid.
6226 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6227 inferior_ptid directly.
6228 (darwin_nat_target::init_thread_list): Switch to thread, instead
6229 of writing to inferior_ptid.
6230 (darwin_nat_target::attach): Don't write to inferior_ptid.
6231 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6232
6233 2020-06-18 Pedro Alves <palves@redhat.com>
6234
6235 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6236 thread.
6237 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6238 Instead use switch_to_thread.
6239 (gnu_nat_target::detach): Use switch_to_no_thread
6240 instead of writing to inferior_ptid directly. Used passed-in
6241 inferior instead of looking up the inferior by pid.
6242
6243 2020-06-18 Pedro Alves <palves@redhat.com>
6244
6245 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6246 inferior_ptid.
6247
6248 2020-06-18 Pedro Alves <palves@redhat.com>
6249
6250 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6251 inferior_ptid.
6252 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6253 thread.
6254 (nto_procfs_target::detach): Avoid referencing
6255 inferior_ptid. Use switch_to_no_thread instead of writing to
6256 inferior_ptid directly.
6257 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6258 instead of writing to inferior_ptid directly.
6259 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6260 to thread.
6261
6262 2020-06-18 Pedro Alves <palves@redhat.com>
6263
6264 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6265 after creating it, instead of writing to inferior_ptid.
6266 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6267 to inferior_ptid directly.
6268 (gdbsim_target::wait): Don't write to inferior_ptid.
6269
6270 2020-06-18 Pedro Alves <palves@redhat.com>
6271
6272 * remote.c (remote_target::remote_notice_new_inferior): Use
6273 switch_to_thread instead of writing to inferior_ptid directly.
6274 (remote_target::add_current_inferior_and_thread): Use
6275 switch_to_no_thread instead of writing to inferior_ptid directly.
6276 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6277 and switch_to_thread instead of using set_current_inferior or
6278 writing to inferior_ptid directly.
6279
6280 2020-06-18 Pedro Alves <palves@redhat.com>
6281
6282 * tracectf.c (ctf_target_open): Switch to added thread instead of
6283 writing to inferior_ptid directly.
6284 (ctf_target::close): Use switch_to_no_thread instead of writing to
6285 inferior_ptid directly.
6286
6287 2020-06-18 Pedro Alves <palves@redhat.com>
6288
6289 * tracefile-tfile.c (tfile_target_open): Don't write to
6290 inferior_ptid directly, instead switch to added thread.
6291 (tfile_target::close): Use switch_to_no_thread instead of writing
6292 to inferior_ptid directly.
6293
6294 2020-06-18 Pedro Alves <palves@redhat.com>
6295
6296 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6297 (procfs_target::detach): Use switch_to_no_thread
6298 instead of writing to inferior_ptid directly.
6299 (do_attach): Change return type to void. Switch to the added
6300 thread.
6301 (procfs_target::create_inferior): Switch to the added thread.
6302 (procfs_do_thread_registers): Don't write to inferior_ptid.
6303
6304 2020-06-18 Pedro Alves <palves@redhat.com>
6305
6306 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6307 of writing to inferior_ptid.
6308 (scoped_restore_exited_inferior): Delete.
6309 (handle_vfork_child_exec_or_exit): Simplify using
6310 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6311 instead of writing to inferior_ptid.
6312 (THREAD_STOPPED_BY): Delete.
6313 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6314 (thread_stopped_by_hw_breakpoint): Delete.
6315 (save_waitstatus): Use
6316 scoped_restore_current_thread+switch_to_thread, and call
6317 target_stopped_by_watchpoint instead of
6318 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6319 instead of thread_stopped_by_sw_breakpoint, and
6320 target_stopped_by_hw_breakpoint instead of
6321 thread_stopped_by_hw_breakpoint.
6322 (handle_inferior_event)
6323 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6324 inferior_ptid directly, nor
6325 set_current_inferior/set_current_program_space. Use
6326 switch_to_thread / switch_to_inferior_no_thread instead.
6327
6328 2020-06-18 Pedro Alves <palves@redhat.com>
6329
6330 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6331 instead of writing to inferior_ptid.
6332
6333 2020-06-18 Pedro Alves <palves@redhat.com>
6334
6335 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6336 added thread.
6337 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6338 to the added thread.
6339 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6340 instead of writing to inferior_ptid.
6341
6342 2020-06-18 Pedro Alves <palves@redhat.com>
6343
6344 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6345 (register_to_value_test): Mock a program_space too. Heap-allocate
6346 the address space. Don't write to inferior_ptid. Use
6347 switch_to_thread instead.
6348
6349 2020-06-18 Pedro Alves <palves@redhat.com>
6350
6351 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6352 Delete.
6353 (find_signalled_thread()): New, factored out from
6354 linux_make_corefile_notes and adjusted to handle exited threads.
6355 (linux_make_corefile_notes): Adjust to use the new
6356 find_signalled_thread.
6357
6358 2020-06-18 Pedro Alves <palves@redhat.com>
6359
6360 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6361 of saving/restoring inferior_ptid.
6362
6363 2020-06-17 Tom Tromey <tom@tromey.com>
6364
6365 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6366 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6367 declare.
6368 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6369
6370 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6373 of partial symtabs.
6374
6375 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * regformats/reg-arm.dat: Remove.
6378 * regformats/reg-bfin.dat: Remove.
6379 * regformats/reg-cris.dat: Remove.
6380 * regformats/reg-crisv32.dat: Remove.
6381 * regformats/reg-m32r.dat: Remove.
6382 * regformats/reg-tilegx.dat: Remove.
6383 * regformats/reg-tilegx32.dat: Remove.
6384
6385 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6386
6387 * features/Makefile (WHICH): Remove arm files.
6388 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6389 * regformats/arm/arm-with-neon.dat: Remove.
6390 * regformats/arm/arm-with-vfpv2.dat: Remove.
6391 * regformats/arm/arm-with-vfpv3.dat: Remove.
6392
6393 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6394
6395 * features/Makefile (XMLTOC): Remove rx.xml.
6396
6397 2020-06-17 Pedro Alves <palves@redhat.com>
6398
6399 * gdbthread.h (thread_control_state) <trap_expected> Update
6400 comments.
6401
6402 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6403
6404 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6405 ada_language::lookup_symbol_nonlocal.
6406 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6407 (ada_language::lookup_symbol_nonlocal): New member function,
6408 implementation from ada_lookup_symbol_nonlocal.
6409 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6410 initializer.
6411 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6412 initializer.
6413 (cplus_language::lookup_symbol_nonlocal): New member function.
6414 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6415 (minimal_language_data) Likewise.
6416 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6417 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6418 initializer.
6419 (d_language::lookup_symbol_nonlocal): New member function.
6420 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6421 initializer.
6422 (f_language::lookup_symbol_nonlocal): New member function.
6423 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6424 initializer.
6425 * language.c (unknown_language_data): Likewise.
6426 (auto_language_data): Likewise.
6427 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6428 field.
6429 (language_defn::lookup_symbol_nonlocal): New member function.
6430 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6431 initializer.
6432 * objc-lang.c (objc_language_data): Likewise.
6433 * opencl-lang.c (opencl_language_data): Likewise.
6434 * p-lang.c (pascal_language_data): Likewise.
6435 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6436 rust_language::lookup_symbol_nonlocal.
6437 (rust_language_data): Delete la_lookup_symbol_nonlocal
6438 initializer.
6439 (rust_language::lookup_symbol_nonlocal): New member function,
6440 implementation from rust_lookup_symbol_nonlocal.
6441 * symtab.c (lookup_symbol_aux): Update call to
6442 lookup_symbol_nonlocal.
6443 (basic_lookup_symbol_nonlocal): Rename to...
6444 (language_defn::lookup_symbol_nonlocal): ...this, and update
6445 header comment. Remove language_defn parameter, and replace with
6446 uses of `this'.
6447 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6448
6449 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6450
6451 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6452 initializer.
6453 (ada_language::value_print_inner): New member function.
6454 * c-lang.c (c_language_data): Delete la_value_print_inner
6455 initializer.
6456 (cplus_language_data): Likewise.
6457 (asm_language_data): Likewise.
6458 (minimal_language_data): Likewise.
6459 * d-lang.c (d_language_data): Likewise.
6460 (d_language::value_print_inner): New member function.
6461 * f-lang.c (f_language_data): Delete la_value_print_inner
6462 initializer.
6463 (f_language::value_print_inner): New member function.
6464 * f-lang.h (f_value_print_innner): Rename to...
6465 (f_value_print_inner): ...this (note spelling of 'inner').
6466 * f-valprint.c (f_value_print_innner): Rename to...
6467 (f_value_print_inner): ...this (note spelling of 'inner').
6468 * go-lang.c (go_language_data): Delete la_value_print_inner
6469 initializer.
6470 (go_language::value_print_inner): New member function.
6471 * language.c (language_defn::value_print_inner): Define new member
6472 function.
6473 (unk_lang_value_print_inner): Delete.
6474 (unknown_language_data): Delete la_value_print_inner initializer.
6475 (unknown_language::value_print_inner): New member function.
6476 (auto_language_data): Delete la_value_print_inner initializer.
6477 (auto_language::value_print_inner): New member function.
6478 * language.h (language_data): Delete la_value_print_inner field.
6479 (language_defn::value_print_inner): Delcare new member function.
6480 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6481 initializer.
6482 (m2_language::value_print_inner): New member function.
6483 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6484 initializer.
6485 * opencl-lang.c (opencl_language_data): Likewise.
6486 * p-lang.c (pascal_language_data): Likewise.
6487 (pascal_language::value_print_inner): New member function.
6488 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6489 initializer.
6490 (rust_language::value_print_inner): New member function.
6491 * valprint.c (do_val_print): Update call to value_print_inner.
6492
6493 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * ada-lang.c (ada_language_data): Delete la_value_print
6496 initializer.
6497 (ada_language::value_print): New member function.
6498 * c-lang.c (c_language_data): Delete la_value_print initializer.
6499 (cplus_language_data): Likewise.
6500 (asm_language_data): Likewise.
6501 (minimal_language_data): Likewise.
6502 * d-lang.c (d_language_data): Likewise.
6503 * f-lang.c (f_language_data): Likewise.
6504 * go-lang.c (go_language_data): Likewise.
6505 * language.c (unk_lang_value_print): Delete.
6506 (language_defn::value_print): Define new member function.
6507 (unknown_language_data): Delete la_value_print initializer.
6508 (unknown_language::value_print): New member function.
6509 (auto_language_data): Delete la_value_print initializer.
6510 (auto_language::value_print): New member function.
6511 * language.h (language_data): Delete la_value_print field.
6512 (language_defn::value_print): Declare new member function.
6513 (LA_VALUE_PRINT): Update call to value_print.
6514 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6515 * objc-lang.c (objc_language_data): Likewise.
6516 * opencl-lang.c (opencl_language_data): Likewise.
6517 * p-lang.c (pascal_language_data): Likewise.
6518 (pascal_language::value_print): New member function.
6519 * rust-lang.c (rust_language_data): Delete la_value_print
6520 initializer.
6521
6522 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * ada-lang.c (ada_watch_location_expression): Rename to
6525 ada_language::watch_location_expression.
6526 (ada_language_data): Delete la_watch_location_expression
6527 initializer.
6528 (ada_language::watch_location_expression): New member function,
6529 implementation from ada_watch_location_expression.
6530 * breakpoint.c (watch_command_1): Update call to
6531 watch_location_expression.
6532 * c-lang.c (c_watch_location_expression): Rename to
6533 language_defn::watch_location_expression.
6534 (c_language_data): Delete la_watch_location_expression
6535 initializer.
6536 (cplus_language_data): Likewise.
6537 (asm_language_data): Likewise.
6538 (minimal_language_data): Likewise.
6539 * c-lang.h (c_watch_location_expression): Delete declaration.
6540 * d-lang.c (d_language_data): Delete la_watch_location_expression
6541 initializer.
6542 * f-lang.c (f_language_data): Likewise.
6543 * go-lang.c (go_language_data): Likewise.
6544 * language.c (language_defn::watch_location_expression): Member
6545 function implementation from c_watch_location_expression.
6546 (unknown_language_data): Delete la_watch_location_expression
6547 initializer.
6548 (auto_language_data): Likewise.
6549 * language.h (language_data): Delete la_watch_location_expression
6550 field.
6551 (language_defn::watch_location_expression): Declare new member
6552 function.
6553 * m2-lang.c (m2_language_data): Delete
6554 la_watch_location_expression initializer.
6555 * objc-lang.c (objc_language_data): Likewise.
6556 * opencl-lang.c (opencl_language_data): Likewise.
6557 * p-lang.c (pascal_language_data): Likewise.
6558 * rust-lang.c (rust_watch_location_expression): Rename to
6559 rust_language::watch_location_expression.
6560 (rust_language_data): Delete la_watch_location_expression
6561 initializer.
6562 (rust_language::watch_location_expression): New member function,
6563 implementation from rust_watch_location_expression.
6564
6565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6566
6567 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6568 ada_language::collect_symbol_completion_matches.
6569 (ada_language_data): Delete la_collect_symbol_completion_matches
6570 initializer.
6571 (ada_language::collect_symbol_completion_matches): New member
6572 function, implementation from
6573 ada_collect_symbol_completion_matches.
6574 * c-lang.c (c_language_data): Delete
6575 la_collect_symbol_completion_matches initializer.
6576 (cplus_language_data): Likewise.
6577 (asm_language_data): Likewise.
6578 (minimal_language_data): Likewise.
6579 * d-lang.c (d_language_data): Likewise.
6580 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6581 f_language::collect_symbol_completion_matches.
6582 (f_language_data): Delete la_collect_symbol_completion_matches
6583 initializer.
6584 (f_language::collect_symbol_completion_matches) New member
6585 function, implementation from f_collect_symbol_completion_matches.
6586 * go-lang.c (go_language_data): Delete
6587 la_collect_symbol_completion_matches initializer.
6588 * language.c (unknown_language_data): Likewise.
6589 (auto_language_data): Likewise.
6590 * language.h (language_data): Delete
6591 la_collect_symbol_completion_matches field.
6592 (language_defn::collect_symbol_completion_matches): New member
6593 function.
6594 * m2-lang.c (m2_language_data): Delete
6595 la_collect_symbol_completion_matches initializer.
6596 * objc-lang.c (objc_language_data): Likewise.
6597 * opencl-lang.c (opencl_language_data): Likewise.
6598 * p-lang.c (pascal_language_data): Likewise.
6599 * rust-lang.c (rust_language_data): Likewise.
6600 * symtab.c (default_collect_symbol_completion_matches): Delete.
6601 (collect_symbol_completion_matches): Update call to
6602 collect_symbol_completion_matches.
6603 (collect_symbol_completion_matches_type): Likewise.
6604 * symtab.h (default_collect_symbol_completion_matches): Delete
6605 declaration.
6606
6607 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6610 (ada_language_data): Delete la_word_break_characters initializer.
6611 (ada_language::word_break_characters): New member function.
6612 * c-lang.c (c_language_data): Delete la_word_break_characters
6613 initializer.
6614 (cplus_language_data): Likewise.
6615 (asm_language_data): Likewise.
6616 (minimal_language_data): Likewise.
6617 * completer.c: Update global comment.
6618 (advance_to_expression_complete_word_point): Update call to
6619 word_break_characters.
6620 (complete_files_symbols): Likewise.
6621 (complete_line_internal_1): Likewise.
6622 (default_completer_handle_brkchars): Likewise.
6623 (skip_quoted_chars): Likewise.
6624 * d-lang.c (d_language_data): Delete la_word_break_characters
6625 initializer.
6626 * f-lang.c (f_word_break_characters): Delete.
6627 (f_language_data): Delete la_word_break_characters initializer.
6628 (f_language::word_break_characters): New member function.
6629 * go-lang.c (go_language_data): Delete la_word_break_characters
6630 initializer.
6631 * language.c (unknown_language_data): Likewise.
6632 (auto_language_data): Likewise.
6633 * language.h (default_word_break_characters): Move declaration to
6634 earlier in the file.
6635 (language_data): Delete la_word_break_characters field.
6636 (language_defn::word_break_characters): New member function.
6637 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6638 initializer.
6639 * objc-lang.c (objc_language_data): Likewise.
6640 * opencl-lang.c (opencl_language_data): Likewise.
6641 * p-lang.c (pascal_language_data): Likewise.
6642 * rust-lang.c (rust_language_data): Likewise.
6643
6644 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6647 (ada_language_data): Delete la_get_symbol_name_matcher
6648 initializer.
6649 (language_defn::get_symbol_name_matcher_inner): New member
6650 function.
6651 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6652 initializer.
6653 (cplus_language_data): Likewise.
6654 (cplus_language::get_symbol_name_matcher_inner): New member
6655 function.
6656 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6657 (minimal_language_data): Likewise.
6658 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6659 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6660 initializer.
6661 * dictionary.c (iter_match_first_hashed): Update call to
6662 get_symbol_name_matcher.
6663 (iter_match_next_hashed): Likewise.
6664 (iter_match_next_linear): Likewise.
6665 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6666 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6667 initializer.
6668 (f_language::get_symbol_name_matcher_inner): New member function.
6669 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6670 initializer.
6671 * language.c (default_symbol_name_matcher): Update header comment,
6672 make static.
6673 (language_defn::get_symbol_name_matcher): New definition.
6674 (language_defn::get_symbol_name_matcher_inner): Likewise.
6675 (get_symbol_name_matcher): Delete.
6676 (unknown_language_data): Delete la_get_symbol_name_matcher
6677 initializer.
6678 (auto_language_data): Likewise.
6679 * language.h (language_data): Delete la_get_symbol_name_matcher
6680 field.
6681 (language_defn::get_symbol_name_matcher): New member function.
6682 (language_defn::get_symbol_name_matcher_inner): Likewise.
6683 (default_symbol_name_matcher): Delete declaration.
6684 * linespec.c (find_methods): Update call to
6685 get_symbol_name_matcher.
6686 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6687 initializer.
6688 * minsyms.c (lookup_minimal_symbol): Update call to
6689 get_symbol_name_matcher.
6690 (iterate_over_minimal_symbols): Likewise.
6691 * objc-lang.c (objc_language_data): Delete
6692 la_get_symbol_name_matcher initializer.
6693 * opencl-lang.c (opencl_language_data): Likewise.
6694 * p-lang.c (pascal_language_data): Likewise.
6695 * psymtab.c (psymbol_name_matches): Update call to
6696 get_symbol_name_matcher.
6697 * rust-lang.c (rust_language_data): Delete
6698 la_get_symbol_name_matcher initializer.
6699 * symtab.c (symbol_matches_search_name): Update call to
6700 get_symbol_name_matcher.
6701 (compare_symbol_name): Likewise.
6702
6703 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * ada-lang.c (ada_language_data): Delete la_compute_program
6706 initializer.
6707 * c-lang.c (c_language_data): Likewise.
6708 (c_language::compute_program): New member function.
6709 (cplus_language_data): Delete la_compute_program initializer.
6710 (cplus_language::compute_program): New member function.
6711 (asm_language_data): Delete la_compute_program initializer.
6712 (minimal_language_data): Likewise.
6713 * c-lang.h (c_compute_program): Update comment.
6714 (cplus_compute_program): Likewise.
6715 * compile/compile-c-support.c (c_compute_program): Likewise.
6716 (cplus_compute_program): Likewise.
6717 * compile/compile.c (compile_to_object): Update call to
6718 la_compute_program.
6719 * d-lang.c (d_language_data): Delete la_compute_program
6720 initializer.
6721 * f-lang.c (f_language_data): Likewise.
6722 * go-lang.c (go_language_data): Likewise.
6723 * language.c (unknown_language_data): Likewise.
6724 (auto_language_data): Likewise.
6725 * language.h (language_data): Delete la_compute_program field.
6726 (language_defn::compute_program): New member function.
6727 * m2-lang.c (m2_language_data): Delete la_compute_program
6728 initializer.
6729 * objc-lang.c (objc_language_data): Likewise.
6730 * opencl-lang.c (opencl_language_data): Likewise.
6731 * p-lang.c (pascal_language_data): Likewise.
6732 * rust-lang.c (rust_language_data): Likewise.
6733
6734 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * ada-lang.c (ada_language_data) Delete
6737 la_class_name_from_physname initializer.
6738 * c-lang.c (c_language_data): Likewise.
6739 (cplus_language_data): Likewise.
6740 (cplus_language::class_name_from_physname): New member function.
6741 (asm_language_data): Delete la_class_name_from_physname
6742 initializer.
6743 (minimal_language_data): Likewise.
6744 * d-lang.c (d_language_data): Likewise.
6745 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6746 method on language_defn class.
6747 (guess_full_die_structure_name): Likewise.
6748 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6749 initializer.
6750 * go-lang.c (go_language_data): Likewise.
6751 * language.c (language_class_name_from_physname): Delete.
6752 (unk_lang_class_name): Delete.
6753 (unknown_language_data): Delete la_class_name_from_physname
6754 initializer.
6755 (auto_language_data): Likewise.
6756 * language.h (language_data): Delete la_class_name_from_physname
6757 field.
6758 (language_defn::class_name_from_physname): New function.
6759 (language_class_name_from_physname): Delete declaration.
6760 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6761 initializer.
6762 * objc-lang.c (objc_language_data): Likewise.
6763 * opencl-lang.c (opencl_language_data): Likewise.
6764 * p-lang.c (pascal_language_data): Likewise.
6765 * rust-lang.c (rust_language_data): Likewise.
6766
6767 2020-06-16 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-data.h (STATUS_NAME): New macro.
6770 * tui/tui-layout.c (tui_remove_some_windows)
6771 (initialize_known_windows, tui_register_window)
6772 (tui_layout_split::remove_windows, initialize_layouts)
6773 (tui_new_layout_command): Don't use hard-coded window names.
6774
6775 2020-06-16 Tom Tromey <tom@tromey.com>
6776
6777 PR tui/25348:
6778 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6779 tui_initialize_readline. Only run once. Call rl_initialize.
6780 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6781 tui_initialize_readline.
6782 * tui/tui-io.c (tui_setup_io): Call
6783 tui_ensure_readline_initialized.
6784 * tui/tui-interp.c (tui_interp::init): Update.
6785
6786 2020-06-16 Tom Tromey <tom@tromey.com>
6787
6788 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6789 Also preserve the status window.
6790
6791 2020-06-16 Tom Tromey <tom@tromey.com>
6792
6793 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6794 where m_window==nullptr.
6795
6796 2020-06-15 Tom Tromey <tromey@adacore.com>
6797
6798 * windows-nat.c (windows_nat::handle_output_debug_string):
6799 Update.
6800 (windows_nat::handle_ms_vc_exception): Update.
6801 * target.h (target_read_string): Change API.
6802 * target.c (target_read_string): Change API.
6803 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6804 Update.
6805 * solib-frv.c (frv_current_sos): Update.
6806 * solib-dsbt.c (dsbt_current_sos): Update.
6807 * solib-darwin.c (darwin_current_sos): Update.
6808 * linux-thread-db.c (inferior_has_bug): Update.
6809 * expprint.c (print_subexp_standard): Update.
6810 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6811 (ada_exception_message_1): Update.
6812
6813 2020-06-15 Tom Tromey <tromey@adacore.com>
6814
6815 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6816
6817 2020-06-15 Tom Tromey <tromey@adacore.com>
6818
6819 * valprint.c (read_string): Update comment.
6820 * target.c (MIN): Remove.
6821 (target_read_string): Rewrite.
6822
6823 2020-06-15 Tom Tromey <tromey@adacore.com>
6824
6825 * corefile.c (read_memory_string): Remove.
6826 * ada-valprint.c (ada_value_print_ptr): Update.
6827 * ada-lang.h (ada_tag_name): Change return type.
6828 * ada-lang.c (type_from_tag): Update.
6829 (ada_tag_name_from_tsd): Change return type. Use
6830 target_read_string.
6831 (ada_tag_name): Likewise.
6832 * gdbcore.h (read_memory_string): Don't declare.
6833
6834 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6835
6836 * symtab.c (rbreak_command): Ignore Windows drive colon.
6837
6838 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * NEWS: Mention removed GDBserver host support.
6841
6842 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6843
6844 * features/riscv/rebuild-csr-xml.sh: Updated.
6845
6846 2020-06-11 Tom Tromey <tom@tromey.com>
6847
6848 PR gdb/18318:
6849 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6850
6851 2020-06-09 Jonny Grant <jg@jguk.org>
6852 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6853
6854 * main.c (captured_main_1): Don't print new line after help.
6855 (print_gdb_help): add mailing list and IRC channel information
6856 to --help. Add new lines between items in the footer. Remove
6857 quotes around bug url.
6858
6859 2020-06-11 Keith Seitz <keiths@redhat.com>
6860
6861 PR gdb/21356
6862 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6863 Resolve typedefs for type length calculations.
6864
6865 2020-06-10 Tom de Vries <tdevries@suse.de>
6866
6867 PR ada/24713
6868 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6869 (write_psymbols): Enable .gdb_index for ada.
6870 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6871 ada.
6872
6873 2020-06-10 Tom de Vries <tdevries@suse.de>
6874
6875 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6876 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6877 namei" instead of "const char *name" argument.
6878 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6879 dw2_symtab_iter_init.
6880
6881 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6884 to use type::field and field::type instead.
6885
6886 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6887
6888 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6889 to use field::type instead.
6890
6891 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6892
6893 * gdbtypes.h (struct field) <type, set_type>: New methods.
6894 Rename `type` field to...
6895 <m_type>: ... this. Change references throughout to use type or
6896 set_type methods.
6897 (FIELD_TYPE): Use field::type. Change call sites that modify
6898 the field's type to use field::set_type instead.
6899
6900 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6903 to use type::index_type instead.
6904
6905 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6908 methods.
6909 (TYPE_INDEX_TYPE): Use type::index_type.
6910 * gdbtypes.c (create_array_type_with_stride): Likewise.
6911
6912 2020-06-07 Tom Tromey <tom@tromey.com>
6913
6914 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6915 parameter.
6916 (generic_value_print): Update.
6917
6918 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6919
6920 Revert commit 982a38f60b0.
6921 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6922
6923 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6924
6925 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6926 avoid use after free.
6927
6928 2020-06-05 Tom de Vries <tdevries@suse.de>
6929
6930 * NEWS: Fix typos.
6931
6932 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6933
6934 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6935 the per_bfd object.
6936 (dwarf2_read_debug_names): Likewise.
6937 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6938 object when re-using a per_bfd object with an index.
6939
6940 2020-06-03 Tom de Vries <tdevries@suse.de>
6941
6942 PR symtab/26046
6943 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6944 children for C++.
6945 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6946 DW_TAG_subprogram.
6947
6948 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * ada-lang.c (ada_language_data): Delete skip_trampoline
6951 initializer.
6952 * c-lang.c (c_language_data): Likewise.
6953 (cplus_language_data): Likewise.
6954 (cplus_language::skip_trampoline): New member function.
6955 (asm_language_data): Delete skip_trampoline initializer.
6956 (minimal_language_data): Likewise.
6957 * d-lang.c (d_language_data): Likewise.
6958 * f-lang.c (f_language_data): Likewise.
6959 * go-lang.c (go_language_data): Likewise.
6960 * language.c (unk_lang_trampoline): Delete function.
6961 (skip_language_trampoline): Update.
6962 (unknown_language_data): Delete skip_trampoline initializer.
6963 (auto_language_data): Likewise.
6964 * language.h (language_data): Delete skip_trampoline field.
6965 (language_defn::skip_trampoline): New function.
6966 * m2-lang.c (m2_language_data): Delete skip_trampoline
6967 initializer.
6968 * objc-lang.c (objc_skip_trampoline): Delete function, move
6969 implementation to objc_language::skip_trampoline.
6970 (objc_language_data): Delete skip_trampoline initializer.
6971 (objc_language::skip_trampoline): New member function with
6972 implementation from objc_skip_trampoline.
6973 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6974 initializer.
6975 * p-lang.c (pascal_language_data): Likewise.
6976 * rust-lang.c (rust_language_data): Likewise.
6977
6978 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6979
6980 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6981 (ada_language::demangle): New member function.
6982 * c-lang.c (c_language_data): Delete la_demangle initializer.
6983 (cplus_language_data): Delete la_demangle initializer.
6984 (cplus_language::demangle): New member function.
6985 (asm_language_data): Delete la_demangle initializer.
6986 (minimal_language_data): Delete la_demangle initializer.
6987 * d-lang.c (d_language_data): Delete la_demangle initializer.
6988 (d_language::demangle): New member function.
6989 * f-lang.c (f_language_data): Delete la_demangle initializer.
6990 (f_language::demangle): New member function.
6991 * go-lang.c (go_language_data): Delete la_demangle initializer.
6992 (go_language::demangle): New member function.
6993 * language.c (language_demangle): Update.
6994 (unk_lang_demangle): Delete.
6995 (unknown_language_data): Delete la_demangle initializer.
6996 (unknown_language::demangle): New member function.
6997 (auto_language_data): Delete la_demangle initializer.
6998 (auto_language::demangle): New member function.
6999 * language.h (language_data): Delete la_demangle field.
7000 (language_defn::demangle): New function.
7001 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7002 * objc-lang.c (objc_language_data): Delete la_demangle
7003 initializer.
7004 (objc_language::demangle): New member function.
7005 * opencl-lang.c (opencl_language_data): Delete la_demangle
7006 initializer.
7007 * p-lang.c (pascal_language_data): Likewise.
7008 * rust-lang.c (rust_language_data): Likewise.
7009 (rust_language::demangle): New member function.
7010
7011 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_language_data): Delete la_print_type
7014 initializer.
7015 (ada_language::print_type): New member function.
7016 * c-lang.c (c_language_data): Delete la_print_type initializer.
7017 (c_language::print_type): New member function.
7018 (cplus_language_data): Delete la_print_type initializer.
7019 (cplus_language::print_type): New member function.
7020 (asm_language_data): Delete la_print_type initializer.
7021 (asm_language::print_type): New member function.
7022 (minimal_language_data): Delete la_print_type initializer.
7023 (minimal_language::print_type): New member function.
7024 * d-lang.c (d_language_data): Delete la_print_type initializer.
7025 (d_language::print_type): New member function.
7026 * f-lang.c (f_language_data): Delete la_print_type initializer.
7027 (f_language::print_type): New member function.
7028 * go-lang.c (go_language_data): Delete la_print_type initializer.
7029 (go_language::print_type): New member function.
7030 * language.c (unk_lang_print_type): Delete.
7031 (unknown_language_data): Delete la_print_type initializer.
7032 (unknown_language::print_type): New member function.
7033 (auto_language_data): Delete la_print_type initializer.
7034 (auto_language::print_type): New member function.
7035 * language.h (language_data): Delete la_print_type field.
7036 (language_defn::print_type): New function.
7037 (LA_PRINT_TYPE): Update.
7038 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7039 (m2_language::print_type): New member function.
7040 * objc-lang.c (objc_language_data): Delete la_print_type
7041 initializer.
7042 (objc_language::print_type): New member function.
7043 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7044 to opencl_language::print_type.
7045 (opencl_language_data): Delete la_print_type initializer.
7046 (opencl_language::print_type): New member function, implementation
7047 from opencl_print_type.
7048 * p-lang.c (pascal_language_data): Delete la_print_type
7049 initializer.
7050 (pascal_language::print_type): New member function.
7051 * rust-lang.c (rust_print_type): Delete, implementation moved to
7052 rust_language::print_type.
7053 (rust_language_data): Delete la_print_type initializer.
7054 (rust_language::print_type): New member function, implementation
7055 from rust_print_type.
7056
7057 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7060 implementation moves to...
7061 (ada_language::sniff_from_mangled_name): ...here. Update return
7062 type.
7063 (ada_language_data): Delete la_sniff_from_mangled_name
7064 initializer.
7065 * c-lang.c (c_language_data): Likewise.
7066 (cplus_language_data): Likewise.
7067 (cplus_language::sniff_from_mangled_name): New member function,
7068 implementation taken from gdb_sniff_from_mangled_name.
7069 (asm_language_data): Delete la_sniff_from_mangled_name
7070 initializer.
7071 (minimal_language_data): Likewise.
7072 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7073 implementation moves to cplus_language::sniff_from_mangled_name.
7074 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7075 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7076 moves to...
7077 (d_language::sniff_from_mangled_name): ...here.
7078 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7079 * f-lang.c (f_language_data): Likewise.
7080 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7081 moves to...
7082 (go_language::sniff_from_mangled_name): ...here.
7083 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7084 * language.c (language_sniff_from_mangled_name): Delete.
7085 (unknown_language_data): Delete la_sniff_from_mangled_name
7086 initializer.
7087 (auto_language_data): Likewise.
7088 * language.h (language_data): Delete la_sniff_from_mangled_name
7089 field.
7090 (language_defn::sniff_from_mangled_name): New function.
7091 (language_sniff_from_mangled_name): Delete declaration.
7092 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7093 field.
7094 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7095 implementation moves to...
7096 (objc_language::sniff_from_mangled_name): ...here.
7097 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7098 * opencl-lang.c (opencl_language_data): Likewise.
7099 * p-lang.c (pascal_language_data): Likewise.
7100 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7101 implementation moves to...
7102 (rust_language::sniff_from_mangled_name): ...here.
7103 (rust_language_data): Delete la_sniff_from_mangled_name
7104 initializer.
7105 * symtab.c (symbol_find_demangled_name): Call
7106 sniff_from_mangled_name member function.
7107
7108 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7109
7110 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7111 initializer.
7112 * c-lang.c (c_language_data): Likewise.
7113 (cplus_language_data): Likewise.
7114 (cplus_language::search_name_hash): New member function.
7115 (asm_language_data): Delete la_search_name_hash initializer.
7116 (minimal_language_data): Likewise.
7117 * d-lang.c (d_language_data): Likewise.
7118 * dictionary.c (default_search_name_hash): Rename to...
7119 (language_defn::search_name_hash): ...this.
7120 * f-lang.c (f_language_data): Likewise.
7121 (f_language::search_name_hash): New member function.
7122 * go-lang.c (go_language_data): Delete la_search_name_hash
7123 initializer.
7124 * language.c (unknown_language_data): Likewise.
7125 (auto_language_data): Likewise.
7126 * language.h (struct language_data): Delete la_search_name_hash
7127 field.
7128 (language_defn::search_name_hash): Declare new member function.
7129 (default_search_name_hash): Delete declaration.
7130 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7131 initializer.
7132 * objc-lang.c (objc_language_data): Likewise.
7133 * opencl-lang.c (opencl_language_data): Likewise.
7134 * p-lang.c (pascal_language_data): Likewise.
7135 * rust-lang.c (rust_language_data): Likewise.
7136 * symtab.c (search_name_hash): Update call.
7137
7138 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7141 initializer.
7142 * c-lang.c (class compile_instance): Declare.
7143 (c_language_data): Delete la_get_compile_instance initializer.
7144 (c_language::get_compile_instance): New member function.
7145 (cplus_language_data): Delete la_get_compile_instance initializer.
7146 (cplus_language::get_compile_instance): New member function.
7147 (asm_language_data): Delete la_get_compile_instance initializer.
7148 (minimal_language_data): Likewise.
7149 * c-lang.h (c_get_compile_context): Update comment.
7150 (cplus_get_compile_context): Update comment.
7151 * compile/compile.c (compile_to_object): Update calls, don't rely
7152 on function pointer being NULL.
7153 * d-lang.c (d_language_data): Delete la_get_compile_instance
7154 initializer.
7155 * f-lang.c (f_language_data): Likewise.
7156 * go-lang.c (go_language_data): Likewise.
7157 * language.c (unknown_language_data): Likewise.
7158 (auto_language_data): Likewise.
7159 * language.h (language_data): Delete la_get_compile_instance field.
7160 (language_defn::get_compile_instance): New member function.
7161 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7162 initializer.
7163 * objc-lang.c (objc_language_data): Likewise.
7164 * opencl-lang.c (opencl_language_data): Likewise.
7165 * p-lang.c (pascal_language_data): Likewise.
7166 * rust-lang.c (rust_language_data): Likewise.
7167
7168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 * ada-lang.c (ada_add_all_symbols): Update comment.
7171 (ada_iterate_over_symbols): Delete, move implementation to...
7172 (ada_language::iterate_over_symbols): ...here, a new member
7173 function, rewrite to use range based for loop.
7174 (ada_language_data): Delete la_iterate_over_symbols initializer.
7175 * c-lang.c (c_language_data): Likewise.
7176 (cplus_language_data): Likewise.
7177 (asm_language_data): Likewise.
7178 (minimal_language_data): Likewise.
7179 * d-lang.c (d_language_data): Likewise.
7180 * f-lang.c (f_language_data): Likewise.
7181 * go-lang.c (go_language_data): Likewise.
7182 * language.c (unknown_language_data): Likewise.
7183 (auto_language_data): Likewise.
7184 * language.h (language_data): Delete la_iterate_over_symbols field.
7185 (language_defn::iterate_over_symbols): New member function.
7186 (LA_ITERATE_OVER_SYMBOLS): Update.
7187 * linespec.c (iterate_over_all_matching_symtabs): Update.
7188 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7189 initializer.
7190 * objc-lang.c (objc_language_data): Likewise.
7191 * opencl-lang.c (opencl_language_data): Likewise.
7192 * p-lang.c (pascal_language_data): Likewise.
7193 * rust-lang.c (rust_language_data): Likewise.
7194
7195 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7196
7197 * ada-lang.c (ada_language_data): Delete
7198 la_lookup_transparent_type initializer.
7199 * c-lang.c (c_language_data): Likewise.
7200 (cplus_language_data): Likewise.
7201 (cplus_language::lookup_transparent_type): New member function.
7202 (asm_language_data): Delete la_lookup_transparent_type
7203 initializer.
7204 (minimal_language_data): Likewise.
7205 * d-lang.c (d_language_data): Likewise.
7206 * f-lang.c (f_language_data): Likewise.
7207 * go-lang.c (go_language_data): Likewise.
7208 * language.c (unknown_language_data): Likewise.
7209 (auto_language_data): Likewise.
7210 * language.h (struct language_data): Delete
7211 la_lookup_transparent_type field.
7212 (language_defn::lookup_transparent_type): New member function.
7213 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7214 initializer.
7215 * objc-lang.c (objc_language_data): Likewise.
7216 * opencl-lang.c (opencl_language_data): Likewise.
7217 * p-lang.c (pascal_language_data): Likewise.
7218 * rust-lang.c (rust_language_data): Likewise.
7219 * symtab.c (symbol_matches_domain): Update call.
7220
7221 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * ada-lang.c (ada_language_arch_info): Delete function, move
7224 implementation to...
7225 (ada_language::language_arch_info): ...here, a new member
7226 function.
7227 (ada_language_data): Delete la_language_arch_info.
7228 * c-lang.c (c_language_data): Likewise.
7229 (c_language::language_arch_info): New member function.
7230 (cplus_language_arch_info): Delete function, move
7231 implementation to...
7232 (cplus_language::language_arch_info): ...here, a new member
7233 function.
7234 (cplus_language_data): Delete la_language_arch_info.
7235 (asm_language_data): Likewise.
7236 (asm_language::language_arch_info): New member function.
7237 (minimal_language_data): Delete la_language_arch_info.
7238 (minimal_language::language_arch_info): New member function.
7239 * d-lang.c (d_language_arch_info): Delete function, move
7240 implementation to...
7241 (d_language::language_arch_info): ...here, a new member
7242 function.
7243 (d_language_data): Delete la_language_arch_info.
7244 * f-lang.c (f_language_arch_info): Delete function, move
7245 implementation to...
7246 (f_language::language_arch_info): ...here, a new member
7247 function.
7248 (f_language_data): Delete la_language_arch_info.
7249 * go-lang.c (go_language_arch_info): Delete function, move
7250 implementation to...
7251 (go_language::language_arch_info): ...here, a new member
7252 function.
7253 (go_language_data): Delete la_language_arch_info.
7254 * language.c (unknown_language_data): Likewise.
7255 (unknown_language::language_arch_info): New member function.
7256 (auto_language_data): Delete la_language_arch_info.
7257 (auto_language::language_arch_info): New member function.
7258 (language_gdbarch_post_init): Update call to
7259 la_language_arch_info.
7260 * language.h (language_data): Delete la_language_arch_info
7261 function pointer.
7262 (language_defn::language_arch_info): New function.
7263 * m2-lang.c (m2_language_arch_info): Delete function, move
7264 implementation to...
7265 (m2_language::language_arch_info): ...here, a new member
7266 function.
7267 (m2_language_data): Delete la_language_arch_info.
7268 * objc-lang.c (objc_language_arch_info): Delete function, move
7269 implementation to...
7270 (objc_language::language_arch_info): ...here, a new member
7271 function.
7272 (objc_language_data): Delete la_language_arch_info.
7273 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7274 implementation to...
7275 (opencl_language::language_arch_info): ...here, a new member
7276 function.
7277 (opencl_language_data): Delete la_language_arch_info.
7278 * p-lang.c (pascal_language_arch_info): Delete function, move
7279 implementation to...
7280 (pascal_language::language_arch_info): ...here, a new member
7281 function.
7282 (pascal_language_data): Delete la_language_arch_info.
7283 * rust-lang.c (rust_language_arch_info): Delete function, move
7284 implementation to...
7285 (rust_language::language_arch_info): ...here, a new member
7286 function.
7287 (rust_language_data): Delete la_language_arch_info.
7288
7289 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7290
7291 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7292 initializer.
7293 * c-lang.c (c_language_data): Likewise.
7294 (cplus_language_data): Likewise.
7295 (cplus_language::pass_by_reference_info): New method.
7296 (asm_language_data): Delete la_pass_by_reference initializer.
7297 (minimal_language_data): Likewise.
7298 * cp-abi.c (cp_pass_by_reference): Remove use of
7299 default_pass_by_reference.
7300 * d-lang.c (d_language_data): Likewise.
7301 * f-lang.c (f_language_data): Likewise.
7302 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7303 default_pass_by_reference.
7304 * go-lang.c (go_language_data): Likewise.
7305 * language.c (language_pass_by_reference): Update.
7306 (default_pass_by_reference): Delete.
7307 (unknown_language_data): Delete la_pass_by_reference
7308 initializer.
7309 (auto_language_data): Likewise.
7310 * language.h (struct language_data): Delete la_pass_by_reference
7311 field.
7312 (language_defn::pass_by_reference_info): New member function.
7313 (default_pass_by_reference): Delete declaration.
7314 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7315 initializer.
7316 * objc-lang.c (objc_language_data): Likewise.
7317 * opencl-lang.c (opencl_language_data): Likewise.
7318 * p-lang.c (pascal_language_data): Likewise.
7319 * rust-lang.c (rust_language_data): Likewise.
7320
7321 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7322
7323 * ada-lang.c (ada_read_var_value): Delete function, move
7324 implementation to...
7325 (ada_language::read_var_value): ...here.
7326 (ada_language_data): Delete la_read_var_value initializer.
7327 * c-lang.c (c_language_data): Likewise.
7328 (cplus_language_data): Likewise.
7329 (minimal_language_data): Likewise.
7330 * d-lang.c (d_language_data): Likewise.
7331 * f-lang.c (f_language_data): Likewise.
7332 * findvar.c (default_read_var_value): Rename to...
7333 (language_defn::read_var_value): ...this.
7334 * findvar.c (read_var_value): Update header comment, and change to
7335 call member function instead of function pointer.
7336 * go-lang.c (go_language_data): Likewise.
7337 * language.c (unknown_language_data): Delete la_read_var_value
7338 initializer.
7339 (auto_language_data): Likewise.
7340 * language.h (struct language_data): Delete la_read_var_value
7341 field.
7342 (language_defn::read_var_value): New member function.
7343 (default_read_var_value): Delete declaration.
7344 * m2-lang.c (m2_language_data): Delete la_read_var_value
7345 initializer.
7346 * objc-lang.c (objc_language_data): Likewise.
7347 * opencl-lang.c (opencl_language_data): Likewise.
7348 * p-lang.c (pascal_language_data): Likewise.
7349 * rust-lang.c (rust_language_data): Likewise.
7350 * value.h (default_read_var_value): Delete declaration.
7351
7352 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7353
7354 * ada-lang.c (ada_print_array_index): Delete function, move
7355 implementation to...
7356 (ada_language::print_array_index): ...here.
7357 (ada_language_data): Delete la_print_array_index initializer.
7358 * c-lang.c (c_language_data): Likewise.
7359 (cplus_language_data): Likewise.
7360 (minimal_language_data): Likewise.
7361 * d-lang.c (d_language_data): Likewise.
7362 * f-lang.c (f_language_data): Likewise.
7363 * go-lang.c (go_language_data): Likewise.
7364 * language.c (default_print_array_index): Delete function, move
7365 implementation to...
7366 (language_defn::print_array_index): ...here.
7367 (unknown_language_data): Delete la_print_array_index initializer.
7368 (auto_language_data): Likewise.
7369 * language.h (struct language_data): Delete la_print_array_index
7370 field.
7371 (language_defn::print_array_index): New member function.
7372 (LA_PRINT_ARRAY_INDEX): Update.
7373 (default_print_array_index): Delete declaration.
7374 * m2-lang.c (m2_language_data): Delete la_print_array_index
7375 initializer.
7376 * objc-lang.c (objc_language_data): Likewise.
7377 * opencl-lang.c (opencl_language_data): Likewise.
7378 * p-lang.c (pascal_language_data): Likewise.
7379 * rust-lang.c (rust_language_data): Likewise.
7380
7381 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7382
7383 * gdb/ada-lang.c (ada_language_defn): Convert to...
7384 (ada_language_data): ...this.
7385 (class ada_language): New class.
7386 (ada_language_defn): New static global.
7387 * gdb/c-lang.c (c_language_defn): Convert to...
7388 (c_language_data): ...this.
7389 (class c_language): New class.
7390 (c_language_defn): New static global.
7391 (cplus_language_defn): Convert to...
7392 (cplus_language_data): ...this.
7393 (class cplus_language): New class.
7394 (cplus_language_defn): New static global.
7395 (asm_language_defn): Convert to...
7396 (asm_language_data): ...this.
7397 (class asm_language): New class.
7398 (asm_language_defn): New static global.
7399 (minimal_language_defn): Convert to...
7400 (minimal_language_data): ...this.
7401 (class minimal_language): New class.
7402 (minimal_language_defn): New static global.
7403 * gdb/d-lang.c (d_language_defn): Convert to...
7404 (d_language_data): ...this.
7405 (class d_language): New class.
7406 (d_language_defn): New static global.
7407 * gdb/f-lang.c (f_language_defn): Convert to...
7408 (f_language_data): ...this.
7409 (class f_language): New class.
7410 (f_language_defn): New static global.
7411 * gdb/go-lang.c (go_language_defn): Convert to...
7412 (go_language_data): ...this.
7413 (class go_language): New class.
7414 (go_language_defn): New static global.
7415 * gdb/language.c (unknown_language_defn): Remove declaration.
7416 (current_language): Initialize to nullptr, real initialization is
7417 moved to _initialize_language.
7418 (languages): Delete global.
7419 (language_defn::languages): Define.
7420 (set_language_command): Use language_defn::languages.
7421 (set_language): Likewise.
7422 (range_error): Likewise.
7423 (language_enum): Likewise.
7424 (language_def): Likewise.
7425 (add_set_language_command): Use language_def::languages for the
7426 language list, and language_def to lookup language pointers.
7427 (skip_language_trampoline): Use language_defn::languages.
7428 (unknown_language_defn): Convert to...
7429 (unknown_language_data): ...this.
7430 (class unknown_language): New class.
7431 (unknown_language_defn): New static global.
7432 (auto_language_defn): Convert to...
7433 (auto_language_data): ...this.
7434 (class auto_language): New class.
7435 (auto_language_defn): New static global.
7436 (language_gdbarch_post_init): Use language_defn::languages.
7437 (_initialize_language): Initialize current_language.
7438 * gdb/language.h (struct language_defn): Rename to...
7439 (struct language_data): ...this.
7440 (struct language_defn): New.
7441 (auto_language_defn): Delete.
7442 (unknown_language_defn): Delete.
7443 (minimal_language_defn): Delete.
7444 (ada_language_defn): Delete.
7445 (asm_language_defn): Delete.
7446 (c_language_defn): Delete.
7447 (cplus_language_defn): Delete.
7448 (d_language_defn): Delete.
7449 (f_language_defn): Delete.
7450 (go_language_defn): Delete.
7451 (m2_language_defn): Delete.
7452 (objc_language_defn): Delete.
7453 (opencl_language_defn): Delete.
7454 (pascal_language_defn): Delete.
7455 (rust_language_defn): Delete.
7456 * gdb/m2-lang.c (m2_language_defn): Convert to...
7457 (m2_language_data): ...this.
7458 (class m2_language): New class.
7459 (m2_language_defn): New static global.
7460 * gdb/objc-lang.c (objc_language_defn): Convert to...
7461 (objc_language_data): ...this.
7462 (class objc_language): New class.
7463 (objc_language_defn): New static global.
7464 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7465 (opencl_language_data): ...this.
7466 (class opencl_language): New class.
7467 (opencl_language_defn): New static global.
7468 * gdb/p-lang.c (pascal_language_defn): Convert to...
7469 (pascal_language_data): ...this.
7470 (class pascal_language): New class.
7471 (pascal_language_defn): New static global.
7472 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7473 language pointer, update comment format.
7474 * gdb/rust-lang.c (rust_language_defn): Convert to...
7475 (rust_language_data): ...this.
7476 (class rust_language): New class.
7477 (rust_language_defn): New static global.
7478
7479 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7480
7481 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7482 member variable.
7483 <m_stmt_at_address>: New member variable.
7484 (lnp_state_machine::record_line): Don't record some lines, update
7485 tracking of is_stmt at the same address.
7486 (lnp_state_machine::lnp_state_machine): Initialise new member
7487 variables.
7488
7489 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7490
7491 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7492 "-include gnu-nat-mig.h".
7493 * gnu-nat-mig.h: New file.
7494 * gnu-nat.c: Include "gnu-nat-mig.h".
7495 (exc_server, msg_reply_server, notify_server,
7496 process_reply_server): Remove declarations.
7497
7498 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7499
7500 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7501 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7502 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7503 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7504 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7505 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7506 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7507 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7508 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7509 to gnu_nat_target class.
7510 * gnu-nat.c: Likewise.
7511 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7512 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7513 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7514 object.
7515 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7516 instead of `gnu_target'.
7517
7518 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7519
7520 * i386-gnu-tdep.c: Include "gdbcore.h"
7521 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7522 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7523 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7524 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7525 i386_gnu_sigcontext_addr): New functions
7526 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7527 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7528 tdep.
7529
7530 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7531
7532 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7533 before fork_inferior call. Avoid calling it if target_is_pushed returns
7534 true.
7535
7536 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7537
7538 * gnu-nat.h (gnu_target): New variable declaration.
7539 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7540 gnu_target.
7541 * gnu-nat.c (gnu_target): New variable.
7542 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7543 add_thread_silent, and add_thread calls.
7544 (gnu_nat_target::create_inferior): Pass gnu_target to
7545 add_thread_silent, thread_change_ptid call.
7546 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7547 call.
7548
7549 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7550
7551 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7552 (gnu_nat_target::find_memory_regions): Remove unused
7553 `old_address' variable.
7554
7555 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7556
7557 * gnu-nat.c: Include "gdbarch.h".
7558
7559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7560
7561 * reply_mig_hack.awk (Error return): Cast function through
7562 void *, to bypass compiler function call check.
7563
7564 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7565
7566 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7567 $(srcdir)/reply_mig_hack.awk.
7568
7569 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7570
7571 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7572
7573 2020-05-30 Jonny Grant <jg@jguk.org>
7574
7575 * configure.ac (ACX_BUGURL): change bug URL to https.
7576
7577 2020-05-30 Pedro Alves <palves@redhat.com>
7578
7579 * cp-support.c (replace_typedefs_template): New.
7580 (replace_typedefs_qualified_name): Handle
7581 DEMANGLE_COMPONENT_TEMPLATE.
7582
7583 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7584
7585 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7586 dwarf2/index-cache.h, dwarf2/index-write.c,
7587 dwarf2/index-write.h, dwarf2/line-header.c,
7588 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7589 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7590 variables and fields from `dwarf2_per_objfile` to just
7591 `per_objfile` throughout.
7592
7593 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7594
7595 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7596 <push_dwarf_reg_entry_value>: Add comment.
7597
7598 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7599 Keith Seitz <keiths@redhat.com>
7600
7601 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7602 instead of PyEval_ReleaseLock.
7603 (class gdbpy_gil): Move to earlier in file.
7604 (finalize_python): Set gdb_python_initialized.
7605 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7606 when not initialized.
7607
7608 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7611 <push_dwarf_reg_entry_value>: Remove assert. Override
7612 per_objfile with caller_per_objfile.
7613
7614 2020-05-28 Tom de Vries <tdevries@suse.de>
7615
7616 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7617 PR gold/15646 workaround to symbol kind "type".
7618
7619 2020-05-27 Tom Tromey <tromey@adacore.com>
7620
7621 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7622
7623 2020-05-27 Tom Tromey <tromey@adacore.com>
7624
7625 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7626 Use htab_find_with_hash.
7627 <add_abbrev>: Remove "abbrev_number" parameter.
7628 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7629 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7630 (hash_abbrev): Add comment.
7631 (abbrev_table::lookup_abbrev): Move to header file.
7632 (abbrev_table::read): Update.
7633
7634 2020-05-27 Tom Tromey <tromey@adacore.com>
7635
7636 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7637 method.
7638 <canonical_name>: New member.
7639 <raw_name>: Rename from "name".
7640 (partial_die_info): Initialize canonical_name.
7641 (scan_partial_symbols): Check raw_name.
7642 (partial_die_parent_scope, partial_die_full_name)
7643 (add_partial_symbol, add_partial_subprogram)
7644 (add_partial_enumeration, load_partial_dies): Use "name" method.
7645 (partial_die_info::name): New method.
7646 (partial_die_info::read, guess_partial_die_structure_name)
7647 (partial_die_info::fixup): Update.
7648
7649 2020-05-27 Tom Tromey <tromey@adacore.com>
7650
7651 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7652 <get_ref_die_offset>: Inline.
7653 <get_ref_die_offset_complaint>: New method.
7654 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7655 (attribute::get_ref_die_offset_complaint): Rename from
7656 get_ref_die_offset. Just issue complaint.
7657
7658 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7659
7660 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7661
7662 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7663
7664 * exec.c (exec_file_attach): Use errno value of first openp failure.
7665
7666 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7667
7668 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7669 Don't close thread handle.
7670
7671 2020-05-27 Tom Tromey <tom@tromey.com>
7672 Simon Marchi <simon.marchi@efficios.com>
7673
7674 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7675 shared_ptr.
7676 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7677 member.
7678 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7679 dwarf2_per_bfd_objfile_data_key>: New globals.
7680 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7681 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7682 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7683 shared.
7684 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7685 short-circuit when sharing.
7686 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7687 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7688
7689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7692 to...
7693 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7694 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7695
7696 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7697
7698 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7699 build_name_components, find_name_components_bounds>:
7700 Add per_objfile parameter.
7701 (struct mapped_index) <symbol_name_at>: Likewise.
7702 (struct mapped_debug_names): Remove constructor.
7703 <dwarf2_per_objfile>: Remove field.
7704 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7705 (mapped_index_base::find_name_components_bounds,
7706 mapped_index_base::build_name_components,
7707 dw2_expand_symtabs_matching_symbol): Likewise.
7708 (class mock_mapped_index) <symbol_name_at>: Likewise.
7709 (check_match): Likewise.
7710 (check_find_bounds_finds): Likewise.
7711 (test_mapped_index_find_name_component_bounds): Update.
7712 (CHECK_MATCH): Update.
7713 (dw2_expand_symtabs_matching): Update.
7714 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7715 per_objfile parameter.
7716 <find_vec_in_debug_names>: Likewise.
7717 <m_per_objfile>: New field.
7718 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7719 parameter.
7720 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7721 (dw2_debug_names_iterator::next): Update.
7722 (dw2_debug_names_lookup_symbol): Update.
7723 (dw2_debug_names_expand_symtabs_for_function): Update.
7724 (dw2_debug_names_map_matching_symbols): Update.
7725 (dw2_debug_names_expand_symtabs_matching): Update.
7726 (dwarf2_read_debug_names): Update.
7727
7728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7729
7730 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7731 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7732 move to dwarf2_per_objfile.
7733 <read_in_chain>: Remove.
7734 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7735 remove_all_cus, age_comp_units>: New methods.
7736 <m_dwarf2_cus>: New member.
7737 (struct dwarf2_per_cu_data) <cu>: Remove.
7738 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7739 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7740 moved to methods of dwarf2_per_objfile.
7741 (dwarf2_clear_marks): Remove.
7742 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7743 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7744 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7745 (dwarf2_per_objfile::remove_all_cus): New.
7746 (class free_cached_comp_units) <~free_cached_comp_units>:
7747 Update.
7748 (load_cu): Update.
7749 (dw2_do_instantiate_symtab): Adjust.
7750 (fill_in_sig_entry_from_dwo_entry): Adjust.
7751 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7752 (cutu_reader::cutu_reader): Likewise.
7753 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7754 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7755 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7756 and dwarf2_per_objfile::age_comp_units.
7757 (load_partial_comp_unit): Update.
7758 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7759 (process_queue): Likewise.
7760 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7761 backlink.
7762 (dwarf2_read_addr_index): Likewise.
7763 (follow_die_offset): Likewise.
7764 (dwarf2_fetch_die_loc_sect_off): Likewise.
7765 (dwarf2_fetch_constant_bytes): Likewise.
7766 (dwarf2_fetch_die_type_sect_off): Likewise.
7767 (follow_die_sig_1): Likewise.
7768 (load_full_type_unit): Likewise.
7769 (read_signatured_type): Likewise.
7770 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7771 (dwarf2_cu::~dwarf2_cu): Remove.
7772 (dwarf2_per_objfile::get_cu): New.
7773 (dwarf2_per_objfile::set_cu): New.
7774 (age_cached_comp_units): Rename to...
7775 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7776 to std::unordered_map.
7777 (free_one_cached_comp_unit): Rename to...
7778 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7779 to std::unordered_map.
7780 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7781 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7782 a dwarf2_per_objfile in data.
7783 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7784 (dwarf2_clear_marks): Remove.
7785
7786 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7789 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7790 (init_tu_and_read_dwo_dies): Likewise.
7791 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7792 (cutu_reader::cutu_reader): Likewise.
7793 (load_partial_comp_unit): Likewise.
7794 (process_psymtab_comp_unit): Update.
7795 (build_type_psymtabs_1): Update.
7796 (process_skeletonless_type_unit): Update.
7797 (load_full_comp_unit): Update.
7798 (find_partial_die): Update.
7799 (dwarf2_read_addr_index): Update.
7800 (read_signatured_type): Update.
7801
7802 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7803
7804 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7805 m_header_read_in>: New fields.
7806 <get_header>: New method.
7807 * dwarf2/read.c (per_cu_header_read_in): Remove.
7808 (dwarf2_per_cu_data::get_header): New.
7809 (dwarf2_per_cu_data::addr_size): Update.
7810 (dwarf2_per_cu_data::offset_size): Update.
7811 (dwarf2_per_cu_data::ref_addr_size): Update.
7812
7813 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7814
7815 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7816 (dw2_do_instantiate_symtab): Update.
7817 (queue_and_load_all_dwo_tus): Change parameter from
7818 dwarf2_per_cu_data to dwarf2_cu.
7819 (dwarf2_fetch_die_loc_sect_off): Update.
7820 (dwarf2_fetch_constant_bytes): Update.
7821 (dwarf2_fetch_die_type_sect_off): Update.
7822
7823 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7824
7825 * dwarf2/read.c (process_full_comp_unit,
7826 process_full_type_unit): Remove per_cu, per_objfile paramters.
7827 Add dwarf2_cu parameter.
7828 (process_queue): Update.
7829
7830 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7831
7832 * dwarf2/read.c (create_cu_from_index_list): Replace
7833 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7834 (create_cus_from_index_list): Likewise.
7835 (create_cus_from_index): Likewise.
7836 (create_signatured_type_table_from_index): Likewise.
7837 (create_cus_from_debug_names_list): Likewise.
7838 (create_cus_from_debug_names): Likewise.
7839 (dwarf2_read_gdb_index): Update.
7840 (dwarf2_read_debug_names): Update.
7841
7842 2020-05-27 Tom Tromey <tom@tromey.com>
7843 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * dwarf2/read.h (struct dwarf2_per_objfile)
7846 <get_type_for_signatured_type, set_type_for_signatured_type>:
7847 New methods.
7848 <m_type_map>: New member.
7849 (struct signatured_type) <type>: Remove.
7850 * dwarf2/read.c
7851 (dwarf2_per_objfile::get_type_for_signatured_type,
7852 dwarf2_per_objfile::set_type_for_signatured_type): New.
7853 (get_signatured_type): Use new methods.
7854
7855 2020-05-27 Tom Tromey <tom@tromey.com>
7856 Simon Marchi <simon.marchi@efficios.com>
7857
7858 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7859 (struct dwarf2_per_objfile) <type_units>: New member.
7860 <get_type_unit_group_unshareable>: New method.
7861 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7862 num_symtabs, symtabs>: Remove; move to
7863 type_unit_group_unshareable.
7864 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7865 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7866 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7867
7868 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7869
7870 * dwarf2/read.h (struct dwarf2_per_cu_data):
7871 <dwarf2_per_objfile>: Remove.
7872 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7873 dwarf2_per_objfile.
7874 (create_signatured_type_table_from_index): Likewise.
7875 (create_signatured_type_table_from_debug_names): Likewise.
7876 (create_debug_type_hash_table): Likewise.
7877 (fill_in_sig_entry_from_dwo_entry): Likewise.
7878 (create_type_unit_group): Likewise.
7879 (read_comp_units_from_section): Likewise.
7880 (create_cus_hash_table): Likewise.
7881
7882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7885 dwarf2_per_cu_data::dwarf2_per_objfile.
7886 (compute_compunit_symtab_includes): Likewise.
7887 (dwarf2_cu::start_symtab): Likewise.
7888
7889 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7890
7891 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7892 parameter.
7893 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7894 (read_namespace_alias): Update.
7895 (lookup_die_type): Update.
7896 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7897 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7898 Update.
7899 (disassemble_dwarf_expression): Update.
7900
7901 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * dwarf2/read.h (struct dwarf2_queue_item): Add
7904 dwarf2_per_objfile parameter, assign new parameter.
7905 <per_objfile>: New field.
7906 * dwarf2/read.c (free_one_cached_comp_unit): Add
7907 dwarf2_per_objfile parameter.
7908 (queue_comp_unit): Likewise.
7909 (dw2_do_instantiate_symtab): Update.
7910 (process_psymtab_comp_unit): Update.
7911 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7912 (process_imported_unit_die): Update.
7913 (queue_and_load_dwo_tu): Update.
7914 (follow_die_offset): Update.
7915 (follow_die_sig_1): Update.
7916
7917 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7918
7919 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7920 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7921 (read_call_site_scope): Assign per_objfile.
7922 (dwarf2_per_cu_data::objfile): Remove.
7923 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7924 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7925 dwarf2_per_objfile parameter.
7926 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7927 dwarf2_per_objfile parameter.
7928 (dwarf_expr_reg_to_entry_parameter): Add output
7929 dwarf2_per_objfile parameter.
7930 (locexpr_get_frame_base): Update.
7931 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7932 <push_dwarf_reg_entry_value>: Update.
7933 <call_site_to_target_addr>: Update.
7934 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7935 parameter.
7936 (value_of_dwarf_reg_entry): Update.
7937 (rw_pieced_value): Update.
7938 (indirect_synthetic_pointer): Update.
7939 (dwarf2_evaluate_property): Update.
7940 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7941 parameter.
7942 (locexpr_read_variable): Update.
7943 (locexpr_get_symbol_read_needs): Update.
7944 (loclist_read_variable): Update.
7945
7946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7949 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7950 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7951 parameter.
7952 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7953 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7954 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7955 parameter.
7956 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7957 sect_variable_value): Add dwarf2_per_objfile parameter.
7958 (class dwarf_evaluate_loc_desc) <dwarf_call,
7959 dwarf_variable_value>: Update.
7960 (fetch_const_value_from_synthetic_pointer): Add
7961 dwarf2_per_objfile parameter.
7962 (fetch_const_value_from_synthetic_pointer): Update.
7963 (coerced_pieced_ref): Update.
7964 (class symbol_needs_eval_context) <dwarf_call,
7965 dwarf_variable_value>: Update.
7966 (dwarf2_compile_expr_to_ax): Update.
7967
7968 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7969
7970 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7971 parameter.
7972 (dwarf2_evaluate_loc_desc_full): Update.
7973
7974 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7975
7976 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7977 parameter.
7978 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7979 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7980 dwarf2_per_objfile parameter.
7981 (decode_debug_loc_dwo_addresses): Likewise.
7982 (dwarf2_find_location_expression): Update.
7983 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7984 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7985 parameter.
7986 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7987 parameter.
7988 (locexpr_describe_location_1): Likewise.
7989 (locexpr_describe_location): Update.
7990
7991 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7992
7993 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7994 Remove.
7995 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7996 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7997 (dwarf2_compile_property_to_c): Update.
7998 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7999 use text offset from objfile.
8000 (locexpr_tracepoint_var_ref): Update.
8001 (locexpr_generate_c_location): Update.
8002 (loclist_describe_location): Update.
8003 (loclist_tracepoint_var_ref): Update.
8004 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8005 dwarf2_per_objfile parameter.
8006 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8007 use text offset from objfile.
8008 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8009
8010 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * dwarf2/expr.h (struct dwarf_expr_context)
8013 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8014 <offset>: Remove.
8015 <per_objfile>: New member.
8016 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8017 dwarf2_per_objfile parameter. Don't set offset, set
8018 per_objfile.
8019 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8020 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8021 a dwarf2_per_objfile object instead of an offset.
8022 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8023 constructor.
8024 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8025 to dwarf2_expr_executor constructor. Don't set offset.
8026 (dwarf2_fetch_cfa_info): Update.
8027 (struct dwarf2_frame_cache) <text_offset>: Remove.
8028 <per_objfile>: New field.
8029 (dwarf2_frame_cache): Update.
8030 (dwarf2_frame_prev_register): Update.
8031 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8032 <dwarf_evaluate_loc_desc>: Add constructor.
8033 (dwarf2_evaluate_loc_desc_full): Update.
8034 (dwarf2_locexpr_baton_eval): Update.
8035 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8036 Add constructor.
8037 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8038
8039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8040
8041 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8042 addr_sized_int_type>: Move to dwarf2_cu.
8043 <int_type>: Move to dwarf2_per_objfile.
8044 (struct dwarf2_per_objfile) <int_type>: Move here.
8045 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8046 addr_sized_int_type>: Move here.
8047 (read_func_scope): Update.
8048 (read_array_type): Update.
8049 (read_tag_string_type): Update.
8050 (attr_to_dynamic_prop): Update.
8051 (dwarf2_per_cu_data::int_type): Rename to...
8052 (dwarf2_per_objfile::int_type): ... this.
8053 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8054 (dwarf2_cu::addr_sized_int_type): ... this.
8055 (read_subrange_type): Update.
8056 (dwarf2_per_cu_data::addr_type): Rename to...
8057 (dwarf2_cu::addr_type): ... this.
8058 (set_die_type): Update.
8059
8060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8061
8062 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8063 data through per_cu->cu.
8064
8065 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8066
8067 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8068 dwarf2_per_cu_data parameter fo dwarf2_cu.
8069 (lookup_dwo_type_unit): Likewise.
8070 (read_cutu_die_from_dwo): Likewise.
8071 (lookup_dwo_unit): Likewise.
8072 (open_and_init_dwo_file): Likewise.
8073 (lookup_dwo_cutu): Likewise.
8074 (lookup_dwo_comp_unit): Likewise.
8075 (lookup_dwo_type_unit): Likewise.
8076 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8077 (cutu_reader::cutu_reader): Update.
8078
8079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8082 parameter.
8083 (process_full_type_unit): Likewise.
8084 (process_queue): Update.
8085
8086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8087
8088 * dwarf2/read.c (recursively_compute_inclusions): Add
8089 dwarf2_per_objfile parameter.
8090 (compute_compunit_symtab_includes): Likewise.
8091 (process_cu_includes): Update.
8092
8093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8096 parameter.
8097 (create_type_unit_group): Update.
8098 (process_psymtab_comp_unit_reader): Update.
8099 (build_type_psymtabs_reader): Update.
8100
8101 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8102
8103 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8104 object through m_this_cu->cu.
8105
8106 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8107
8108 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8109 the info parameter.
8110 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8111
8112 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8113
8114 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8115 per_objfile parameter.
8116 (load_full_type_unit): Add per_objfile parameter.
8117 (read_signatured_type): Likewise.
8118 (load_full_comp_unit): Likewise.
8119 (load_cu): Likewise.
8120 (dw2_do_instantiate_symtab): Likewise.
8121 (dw2_get_file_names): Likewise.
8122 (dw2_map_symtabs_matching_filename): Update.
8123 (dw_expand_symtabs_matching_file_matcher): Update.
8124 (dw2_map_symbol_filenames): Update.
8125 (process_psymtab_comp_unit): Add per_objfile parameter.
8126 (build_type_psymtabs_1): Update.
8127 (process_skeletonless_type_unit): Update.
8128 (dwarf2_build_psymtabs_hard): Update.
8129 (load_partial_comp_unit): Add per_objfile parameter.
8130 (scan_partial_symbols): Update.
8131 (load_full_comp_unit): Add per_objfile parameter.
8132 (process_imported_unit_die): Update.
8133 (create_cus_hash_table): Update.
8134 (find_partial_die): Update.
8135 (dwarf2_read_addr_index): Update.
8136 (follow_die_offset): Update.
8137 (dwarf2_fetch_die_loc_sect_off): Update.
8138 (dwarf2_fetch_constant_bytes): Update.
8139 (dwarf2_fetch_die_type_sect_off): Update.
8140 (follow_die_sig_1): Update.
8141 (load_full_type_unit): Add per_objfile parameter.
8142 (read_signatured_type): Likewise.
8143
8144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8147 of objfile_name.
8148
8149 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8150
8151 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8152 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8153 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8154 field.
8155 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8156 (create_cus_from_index): Update.
8157 (dwarf2_read_gdb_index): Update.
8158 (create_cus_from_debug_names): Update.
8159 (dwarf2_read_debug_names): Update.
8160 (get_abbrev_section_for_cu): Update.
8161 (create_all_comp_units): Update.
8162 (read_attribute_value): Update.
8163 (get_debug_line_section): Update.
8164 * dwarf2/index-cache.c (index_cache::store): Update.
8165 * dwarf2/index-write.c (save_gdb_index_command): Update.
8166 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8167
8168 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8169
8170 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8171 member.
8172 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8173 dwarf2_per_cu_data::per_bfd.
8174 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8175 (create_type_unit_group): Likewise.
8176 (queue_comp_unit): Remove reference to
8177 per_cu->dwarf2_per_objfile.
8178 (maybe_queue_comp_unit): Likewise.
8179 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8180 (create_cus_hash_table): Assign new field.
8181
8182 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8183
8184 * dwarf2/read.c: Replace
8185 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8186 dwarf2_cu->per_objfile throughout.
8187
8188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8189
8190 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8191 parameter, don't use per_cu->dwarf2_per_objfile.
8192 (dw2_instantiate_symtab): Likewise.
8193 (dw2_find_last_source_symtab): Update.
8194 (dw2_map_expand_apply): Update.
8195 (dw2_lookup_symbol): Update.
8196 (dw2_expand_symtabs_for_function): Update.
8197 (dw2_expand_all_symtabs): Update.
8198 (dw2_expand_symtabs_with_fullname): Update.
8199 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8200 don't use per_cu->dwarf2_per_objfile.
8201 (dw2_expand_marked_cus): Update.
8202 (dw2_find_pc_sect_compunit_symtab): Update.
8203 (dw2_debug_names_lookup_symbol): Update.
8204 (dw2_debug_names_expand_symtabs_for_function): Update.
8205 (dw2_debug_names_map_matching_symbols): Update.
8206 (dwarf2_psymtab::expand_psymtab): Update.
8207
8208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8209
8210 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8211 <per_objfile>: New member.
8212 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8213 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8214 call to dwarf2_cu.
8215 (cutu_reader::cutu_reader): Update.
8216 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8217
8218 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8221 struct dwarf2_per_objfile.
8222 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8223 dwarf2_per_bfd.
8224 * dwarf2/read.c (set_die_type): Update.
8225 (get_die_type_at_offset): Update.
8226
8227 2020-05-27 Tom Tromey <tom@tromey.com>
8228 Simon Marchi <simon.marchi@efficios.com>
8229
8230 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8231 method.
8232 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8233 get_symtab, set_symtab>: New methods.
8234 <m_symtabs>: New field.
8235 (struct dwarf2_psymtab): Derive from partial_symtab.
8236 <readin_p, get_compunit_symtab>: Declare methods.
8237 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8238 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8239 New methods.
8240 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8241 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8242 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8243 (dw2_symtab_iter_next, dw2_print_stats)
8244 (dw2_expand_symtabs_with_fullname)
8245 (dw2_expand_symtabs_matching_one)
8246 (dw_expand_symtabs_matching_file_matcher)
8247 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8248 (dw2_debug_names_iterator::next)
8249 (dw2_debug_names_map_matching_symbols)
8250 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8251 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8252 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8253 New methods.
8254 (get_compunit_symtab, process_full_comp_unit)
8255 (process_full_type_unit): Update.
8256 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8257
8258 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8259
8260 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8261 then introduce a new dwarf2_per_objfile type.
8262 <read_line_string>: Move to the new dwarf2_per_objfile type.
8263 <objfile>: Likewise.
8264 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8265 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8266 dwarf2_per_objfile->per_bfd.
8267 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8268 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8269 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8270 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8271 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8272 (dwarf2_per_objfile::locate_sections): Rename to...
8273 (dwarf2_per_bfd::locate_sections): ... this.
8274 (dwarf2_per_objfile::get_cutu): Rename to...
8275 (dwarf2_per_bfd::get_cutu): ... this.
8276 (dwarf2_per_objfile::get_cu): Rename to...
8277 (dwarf2_per_bfd::get_cu): ... this.
8278 (dwarf2_per_objfile::get_tu): Rename to...
8279 (dwarf2_per_bfd::get_tu): ... this.
8280 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8281 (dwarf2_per_bfd::allocate_per_cu): ... this.
8282 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8283 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8284 (get_gdb_index_contents_ftype): Change parameter from
8285 dwarf2_per_objfile to dwarf2_per_bfd.
8286 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8287 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8288
8289 2020-05-27 Tom Tromey <tom@tromey.com>
8290 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8293 (allocate_piece_closure): Set "per_objfile" member.
8294 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8295 (locexpr_describe_location, loclist_describe_location): Use new
8296 member.
8297 * dwarf2/read.c (read_call_site_scope)
8298 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8299 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8300 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8301 handle_data_member_location): Set per_objfile member.
8302 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8303 member.
8304 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8305
8306 2020-05-27 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8309 allocate_signatured_type>: Declare new methods.
8310 <m_num_psymtabs>: New member.
8311 (struct dwarf2_per_cu_data) <index>: New member.
8312 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8313 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8314 (create_cu_from_index_list): Use allocate_per_cu.
8315 (create_signatured_type_table_from_index)
8316 (create_signatured_type_table_from_debug_names)
8317 (create_debug_type_hash_table, add_type_unit)
8318 (read_comp_units_from_section): Use allocate_signatured_type.
8319
8320 2020-05-27 Tom Tromey <tom@tromey.com>
8321
8322 * psymtab.c (partial_map_expand_apply)
8323 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8324 (psym_lookup_global_symbol_language)
8325 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8326 (psym_print_stats, psym_expand_symtabs_for_function)
8327 (psym_map_symbol_filenames, psym_map_matching_symbols)
8328 (psym_expand_symtabs_matching)
8329 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8330 (maintenance_check_psymtabs): Update.
8331 * psympriv.h (struct partial_symtab) <readin_p,
8332 get_compunit_symtab>: Add objfile parameter.
8333 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8334 Likewise.
8335 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8336 get_compunit_symtab>: Likewise.
8337 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8338
8339 2020-05-27 Tom Tromey <tom@tromey.com>
8340
8341 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8342 member.
8343 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8344 (create_cu_from_index_list)
8345 (create_signatured_type_table_from_index)
8346 (create_signatured_type_table_from_debug_names)
8347 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8348 (dwarf2_create_include_psymtab)
8349 (create_debug_type_hash_table, add_type_unit)
8350 (create_type_unit_group, read_comp_units_from_section)
8351 (dwarf2_compute_name, create_cus_hash_table)
8352 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8353 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8354 obstack.
8355 (dw2_get_real_path): Likewise. Change argument to
8356 dwarf2_per_objfile.
8357
8358 2020-05-27 Luis Machado <luis.machado@linaro.org>
8359
8360 PR tdep/26000
8361 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8362 for ldrd (immediate).
8363
8364 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8365
8366 * command.h: Add comment giving the name of class_tui.
8367 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8368 create the fake command for the help for class_tui.
8369
8370 2020-05-26 Tom Tromey <tromey@adacore.com>
8371
8372 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8373 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8374 (val_atr): New function.
8375 (value_val_atr): Use it.
8376 * ada-valprint.c (print_optional_low_bound): Change low bound
8377 handling for enums.
8378 (val_print_packed_array_elements): Don't call discrete_position.
8379 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8380 discrete_position for enum types.
8381 * language.c (default_print_array_index): Change type.
8382 * language.h (struct language_defn) <la_print_array_index>: Add
8383 index_type parameter, change type of index_value.
8384 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8385 (default_print_array_index): Update.
8386 * valprint.c (maybe_print_array_index): Don't call
8387 value_from_longest. Update.
8388 (value_print_array_elements): Don't call discrete_position.
8389
8390 2020-05-26 Tom Tromey <tromey@adacore.com>
8391
8392 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8393 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8394
8395 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8396
8397 PR gdb/13519
8398 * avr-tdep.c (avr_integer_to_address): Return data or code
8399 address accordingly to the second 'type' argument of the
8400 function.
8401
8402 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8403
8404 * infcmd.c, inferior.h: (construct_inferior_arguments):
8405 Moved function from here to gdbsupport/common-inferior.{h,cc}
8406
8407 2020-05-23 Tom Tromey <tom@tromey.com>
8408
8409 Revert commit eca1f90c:
8410 * NEWS: Remove entry for completion styling.
8411 * completer.c (_rl_completion_prefix_display_length): Move
8412 declaration later.
8413 (gdb_fnprint): Revert.
8414 (gdb_display_match_list_1): Likewise.
8415 * cli/cli-style.c (completion_prefix_style)
8416 (completion_difference_style, completion_suffix_style): Remove.
8417 (_initialize_cli_style): Revert.
8418 * cli/cli-style.h (completion_prefix_style)
8419 (completion_difference_style, completion_suffix_style): Don't
8420 declare.
8421
8422 2020-05-24 Pedro Alves <palves@redhat.com>
8423
8424 * symtab.c (completion_list_add_name): Return boolean indication
8425 of whether the symbol matched.
8426 (completion_list_add_symbol): Don't try to remove C++ aliases if
8427 the symbol didn't match in the first place.
8428 * symtab.h (completion_list_add_name): Return bool.
8429
8430 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8431
8432 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8433 type::field.
8434
8435 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8436
8437 GDB 9.2 released.
8438
8439 2020-05-23 Tom Tromey <tom@tromey.com>
8440
8441 * NEWS: Add entry for completion styling.
8442 * completer.c (_rl_completion_prefix_display_length): Move
8443 declaration earlier.
8444 (gdb_fnprint): Use completion_style.
8445 (gdb_display_match_list_1): Likewise.
8446 * cli/cli-style.c (completion_prefix_style)
8447 (completion_difference_style, completion_suffix_style): New
8448 globals.
8449 (_initialize_cli_style): Register new globals.
8450 * cli/cli-style.h (completion_prefix_style)
8451 (completion_difference_style, completion_suffix_style): Declare.
8452
8453 2020-05-23 Pedro Alves <palves@redhat.com>
8454
8455 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8456 (parse_escape): Use ISDIGIT instead of isdigit.
8457 (puts_debug): Use gdb_isprint instead of isprint.
8458 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8459 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8460 ISSPACE instead of isspace.
8461 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8462 instead of isspace.
8463 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8464 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8465 instead of isxdigit and ISDIGIT instead of isdigit.
8466
8467 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbtypes.h (struct type) <field>: New method.
8470 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8471 or type::field.
8472
8473 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8476 (TYPE_FIELDS): Use type::fields. Change all call sites that
8477 modify the propery to use type::set_fields instead.
8478
8479 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8480
8481 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8482 type::num_fields instead.
8483
8484 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8485
8486 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8487 methods.
8488 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8489 that modify the number of fields to use type::set_num_fields
8490 instead.
8491
8492 2020-05-22 Tom Tromey <tromey@adacore.com>
8493
8494 * compile/compile-object-load.h (munmap_list_free): Don't
8495 declare.
8496
8497 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8498
8499 * annotate.c (annotate_source_line): Update return type, add call
8500 to update current symtab and line.
8501 * annotate.h (annotate_source_line): Update return type, and
8502 extend header comment.
8503 * source.c (info_line_command): Check annotation_level before
8504 calling annotate_source_line.
8505 * stack.c (print_frame_info): If calling annotate_source_line
8506 returns true, then don't print any other source line information.
8507
8508 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8509
8510 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8511
8512 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * coffread.c (patch_type): Remove NULL check before xfree.
8515 * corefile.c (set_gnutarget): Likewise.
8516 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8517 * exec.c (build_section_table): Likewise.
8518 * remote.c (remote_target::pass_signals): Likewise.
8519 * utils.c (n_spaces): Likewise.
8520 * cli/cli-script.c (document_command): Likewise.
8521 * i386-windows-tdep.c (core_process_module_section): Likewise.
8522 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8523
8524 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8525
8526 * symfile.c (reread_symbols): Clear objfile's section_offsets
8527 vector and section indices, re-compute them by calling
8528 sym_offsets.
8529
8530 2020-05-20 Tom Tromey <tromey@adacore.com>
8531
8532 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8533 (desc_one_bound, desc_index_type): Compute field name.
8534
8535 2020-05-20 Tom de Vries <tdevries@suse.de>
8536
8537 PR symtab/25833
8538 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8539
8540 2020-05-20 Alan Modra <amodra@gmail.com>
8541
8542 PR 25993
8543 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8544 bfd_set_filename.
8545 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8546 passed to bfd_set_filename.
8547 * symfile-mem.c (add_vsyscall_page): Likewise for string
8548 passed to symbol_file_add_from_memory.
8549 (symbol_file_add_from_memory): Make name param a const char* and
8550 don't strdup.
8551
8552 2020-05-20 Alan Modra <amodra@gmail.com>
8553
8554 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8555 rather than accessing bfd->filename directly.
8556 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8557 and use bfd_section_name.
8558 * dwarf2/frame.c (decode_frame_entry): Likewise.
8559 * exec.c (exec_set_section_address): Likewise.
8560 * solib-aix.c (solib_aix_bfd_open): Likewise.
8561 * stap-probe.c (get_stap_base_address): Likewise.
8562 * symfile.c (reread_symbols): Likewise.
8563
8564 2020-05-19 Tom Tromey <tromey@adacore.com>
8565
8566 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8567
8568 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8569
8570 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8571
8572 2020-05-19 Pedro Alves <palves@redhat.com>
8573
8574 * NEWS (set exec-file-mismatch): Adjust entry.
8575 * exec.c: Include "build-id.h".
8576 (validate_exec_file): Try to match build IDs instead of filenames.
8577 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8578 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8579 and pass down 'warn_if_slow'.
8580 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8581 gdb_bfd_open_closure to pass it down.
8582 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8583
8584 2020-05-19 Pedro Alves <palves@redhat.com>
8585
8586 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8587 * target.c (target_fileio_open_1): Rename to target_fileio_open
8588 and make extern. Use bool.
8589 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8590 (target_fileio_read_alloc_1): Adjust.
8591 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8592 (target_fileio_open_warn_if_slow): Delete declaration.
8593
8594 2020-05-19 Pedro Alves <palves@redhat.com>
8595
8596 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8597 Adjust all callers.
8598
8599 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8600
8601 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8602 whether disp is negative.
8603
8604 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8605
8606 * symfile.h (struct symfile_segment_data)
8607 <~symfile_segment_data>: Remove.
8608 <segment_info>: Change to std::vector.
8609 * symfile.c (default_symfile_segments): Update.
8610 * elfread.c (elf_symfile_segments): Update.
8611
8612 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8613
8614 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8615 <segments>: New.
8616 <segment_bases, segment_sizes>: Remove.
8617 * symfile.c (default_symfile_segments): Update.
8618 * elfread.c (elf_symfile_segments): Update.
8619 * remote.c (remote_target::get_offsets): Update.
8620 * solib-target.c (solib_target_relocate_section_addresses):
8621 Update.
8622
8623 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8624
8625 * symfile.h (struct symfile_segment_data): Initialize fields.
8626 <~symfile_segment_data>: Add.
8627 (symfile_segment_data_up): New.
8628 (struct sym_fns) <sym_segments>: Return a
8629 symfile_segment_data_up.
8630 (default_symfile_segments): Return a symfile_segment_data_up.
8631 (free_symfile_segment_data): Remove.
8632 (get_symfile_segment_data): Return a symfile_segment_data_up.
8633 * symfile.c (default_symfile_segments): Likewise.
8634 (get_symfile_segment_data): Likewise.
8635 (free_symfile_segment_data): Remove.
8636 (symfile_find_segment_sections): Update.
8637 * elfread.c (elf_symfile_segments): Return a
8638 symfile_segment_data_up.
8639 * remote.c (remote_target::get_offsets): Update.
8640 * solib-target.c (solib_target_relocate_section_addresses):
8641 Update.
8642 * symfile-debug.c (debug_sym_segments): Return a
8643 symfile_segment_data_up.
8644
8645 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8646
8647 PR build/25981
8648 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8649 Hardcode register numbers.
8650
8651 PR build/25981
8652 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8653 procfs_find_LDT_entry): Remove.
8654 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8655 procfs_find_LDT_entry): Remove.
8656 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8657 Remove.
8658
8659 2020-05-17 Pedro Alves <palves@redhat.com>
8660 Andrew Burgess <andrew.burgess@embecosm.com>
8661 Keno Fischer <keno@juliacomputing.com>
8662
8663 PR gdb/25741
8664 * breakpoint.c (build_target_condition_list): Update comments.
8665 (build_target_command_list): Update comments and skip matching
8666 locations.
8667 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8668 a separate function. Simplify "set breakpoint auto-hw off"
8669 handling.
8670 (insert_breakpoints): Update comment.
8671 (tracepoint_locations_match): New parameter. For breakpoints,
8672 compare location types too, if the caller wants to.
8673 (handle_automatic_hardware_breakpoints): New functions.
8674 (bp_location_is_less_than): Also sort by location type and
8675 hardware breakpoint length.
8676 (update_global_location_list): Handle "set breakpoint auto-hw on"
8677 here.
8678 (update_breakpoint_locations): Ask breakpoint_locations_match to
8679 ignore location types.
8680
8681 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8682
8683 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8684 type::name instead.
8685
8686 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * gdbtypes.h (struct type) <name, set_name>: New methods.
8689 (TYPE_CODE): Use type::name. Change all call sites used to set
8690 the name to use type::set_name instead.
8691
8692 2020-05-16 Tom Tromey <tom@tromey.com>
8693
8694 * top.c (quit_force): Update.
8695 * infrun.c (handle_no_resumed): Update.
8696 * top.h (all_uis): New function.
8697 (ALL_UIS): Remove.
8698
8699 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8700
8701 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8702
8703 2020-05-16 Pedro Alves <palves@redhat.com>
8704
8705 * ia64-linux-nat.c
8706 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8707 Declare method.
8708 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8709
8710 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8713 (sparc64_adi_info): Likewise.
8714
8715 2020-05-15 Tom Tromey <tom@tromey.com>
8716
8717 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8718 block_objfile.
8719 (lookup_objfile_from_block): Remove.
8720 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8721 (lookup_global_symbol): Use block_objfile.
8722 * symtab.h (lookup_objfile_from_block): Don't declare.
8723 * printcmd.c (clear_dangling_display_expressions): Use
8724 block_objfile.
8725 * parse.c (operator_check_standard): Use block_objfile.
8726
8727 2020-05-15 Tom Tromey <tom@tromey.com>
8728
8729 * language.c (language_alloc_type_symbol): Set
8730 SYMBOL_SECTION.
8731 * symtab.c (initialize_objfile_symbol): Remove.
8732 (allocate_symbol): Remove.
8733 (allocate_template_symbol): Remove.
8734 * dwarf2/read.c (fixup_go_packaging): Use "new".
8735 (new_symbol): Use "new".
8736 (read_variable): Don't call initialize_objfile_symbol. Use
8737 "new".
8738 (read_func_scope): Use "new".
8739 * xcoffread.c (process_xcoff_symbol): Don't call
8740 initialize_objfile_symbol.
8741 (SYMBOL_DUP): Remove.
8742 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8743 "new".
8744 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8745 (allocate_template_symbol): Don't declare.
8746 (struct symbol): Add copy constructor. Change defaults.
8747 * jit.c (finalize_symtab): Use "new".
8748 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8749 Use "new".
8750 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8751 (common_block_end): Use "new".
8752 * mdebugread.c (parse_symbol): Use "new".
8753 (new_symbol): Likewise.
8754
8755 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8756
8757 * NEWS: Mention changes to help and apropos.
8758
8759 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8760
8761 * command.h (enum command_class): Improve comments, document
8762 that class_alias is for user-defined aliases, give the class
8763 name for each class, remove unused class_xdb.
8764 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8765 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8766 by a precise class.
8767 * infcmd.c (_initialize_infcmd): Likewise.
8768 * reverse.c (_initialize_reverse): Likewise.
8769 * stack.c (_initialize_stack): Likewise.
8770 * symfile.c (_initialize_symfile): Likewise.
8771 * tracepoint.c (_initialize_tracepoint): Likewise.
8772
8773 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8774
8775 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8776 when their aliased command is traversed.
8777 (help_cmd): Add fput_command_names_styled call to
8778 output command name and aliases when command has an alias.
8779
8780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8781
8782 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8783 * cli/cli-decode.c (help_cmd_list): Declare as static,
8784 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8785 a command together with the command.
8786 (fput_command_name_styled, fput_command_names_styled): New functions.
8787 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8788 fput_command_name_styled.
8789 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8790 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8791
8792 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8793
8794 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8795 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8796 * command.h (cmd_show_list): Likewise.
8797 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8798 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8799
8800 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8801
8802 * unittests/command-def-selftests.c (traverse_command_structure):
8803 Verify all commands of a list have the same prefix command and
8804 that only the top cmdlist commands have a null prefix.
8805
8806 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8807
8808 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8809 as prefix, not one of its aliases.
8810 (set_cmd_prefix): Remove.
8811 (do_add_cmd): Centralize the setting of the prefix of a command, when
8812 command is defined after its full chain of prefix commands.
8813 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8814 (add_setshow_cmd_full): Likewise.
8815 (update_prefix_field_of_prefixed_commands): New function.
8816 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8817 update_prefix_field_of_prefixed_commands.
8818 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8819 addresses of remote_set_cmdlist and remote_show_cmdlist given
8820 as argument, not the address of an argument.
8821 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8822 * gdb/remote.c (_initialize_remote): Likewise.
8823
8824 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8825
8826 * cli/cli-cmds.c (alias_command): Check for an existing alias
8827 using lookup_cmd_composition, as valid_command_p is too strict
8828 and forbids aliases that are the prefix of an existing alias
8829 or command.
8830 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8831 command is properly recognised as a valid command.
8832
8833 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8834
8835 * unittests/help-doc-selftests.c: Rename to
8836 unittests/command-def-selftests.c
8837 * unittests/command-def-selftests.c (help_doc_tests): Update some
8838 comments.
8839 (command_structure_tests, traverse_command_structure): New namespace
8840 and function.
8841 (command_structure_invariants_tests): New function.
8842 (_initialize_command_def_selftests) Renamed from
8843 _initialize_help_doc_selftests, register command_structure_invariants
8844 selftest.
8845
8846 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8847
8848 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8849 an alias of 'show'.
8850
8851 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8852
8853 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8854 ada_is_fixed_point_type. Update all callers.
8855 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8856 all callers.
8857 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8858 Update all callers.
8859 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8860 print_fixed_point_type. Update all callers.
8861 * ada-valprint.c (ada_value_print_num): Replace call to
8862 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8863
8864 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8865
8866 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8867 processors.
8868 (cpu_supports_bts): Add CV_AMD case.
8869
8870 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8871 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * infrun.c (stop_all_threads): Collect multiple wait events at
8874 each pass.
8875
8876 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8877
8878 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8879 type::code instead.
8880
8881 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8882
8883 * gdbtypes.h (struct type) <code, set_code>: New methods.
8884 (TYPE_CODE): Use type::code. Change all call sites used to set
8885 the code to use type::set_code instead.
8886
8887 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8888 Tom de Vries <tdevries@suse.de>
8889 Pedro Alves <palves@redhat.com>
8890
8891 PR threads/25478
8892 * infrun.c (stop_all_threads): Do NOT ignore
8893 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8894 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8895 received.
8896 (handle_no_resumed): Remove code handling a live inferior with no
8897 threads.
8898 * remote.c (has_single_non_exited_thread): New.
8899 (remote_target::update_thread_list): Do not delete a thread if is
8900 the last thread of the process.
8901 * thread.c (thread_select): Call delete_exited_threads instead of
8902 prune_threads.
8903
8904 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8905
8906 * infrun.c (stop_all_threads): Enable/disable thread events of all
8907 targets. Move a debug message denoting the end of the function
8908 into the SCOPED_EXIT block.
8909
8910 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8911
8912 * process-stratum-target.h: Include <set>.
8913 (all_non_exited_process_targets, switch_to_target_no_thread): New
8914 function declarations.
8915 * process-stratum-target.c (all_non_exited_process_targets)
8916 (switch_to_target_no_thread): New function implementations.
8917
8918 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8919
8920 * infrun.c (handle_inferior_event): Extract out a piece of code
8921 into...
8922 (mark_non_executing_threads): ...this new function.
8923
8924 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8925
8926 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8927 use.
8928
8929 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8930
8931 * regcache.c (regcache_read_pc_protected): New function
8932 implementation that returns 0 if the PC cannot read via
8933 'regcache_read_pc'.
8934 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8935 instead of 'regcache_read_pc'.
8936 (keep_going_pass_signal): Ditto.
8937
8938 2020-05-13 Tom Tromey <tromey@adacore.com>
8939
8940 * ada-lang.c (align_value): Remove.
8941 (ada_template_to_fixed_record_type_1): Use align_up.
8942
8943 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8944
8945 * async-event.c: Update the copyright year.
8946 * async-event.h: Update the copyright year.
8947
8948 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * objfiles.h (is_addr_in_objfile,
8951 shared_objfile_contains_address_p): Return bool.
8952 * objfile.c (is_addr_in_objfile,
8953 shared_objfile_contains_address_p): Return bool.
8954
8955 2020-05-11 Tom Tromey <tromey@adacore.com>
8956
8957 * cli/cli-cmds.c (info_command): Restore.
8958 (_initialize_cli_cmds): Use add_prefix_command for "info".
8959 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8960
8961 2020-05-11 Tom Tromey <tromey@adacore.com>
8962
8963 * ada-lang.c (ada_value_primitive_field): Now public.
8964 * ada-lang.h (ada_value_primitive_field): Declare.
8965 * ada-valprint.c (print_field_values): Use
8966 ada_value_primitive_field for wrapper fields.
8967
8968 2020-05-11 Tom de Vries <tdevries@suse.de>
8969
8970 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8971 MODULE_DOMAIN.
8972
8973 2020-05-11 Tom de Vries <tdevries@suse.de>
8974
8975 PR symtab/25941
8976 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8977 with length 0, if not gdb-produced.
8978 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8979
8980 2020-05-09 Tom de Vries <tdevries@suse.de>
8981
8982 PR gdb/25955
8983 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8984 calculation.
8985
8986 2020-05-09 Tom Tromey <tom@tromey.com>
8987
8988 * top.c (server_command): Now bool.
8989 * top.h (server_command): Now bool.
8990
8991 2020-05-08 Tom Tromey <tromey@adacore.com>
8992
8993 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8994 already being processed.
8995
8996 2020-05-08 Tom Tromey <tom@tromey.com>
8997
8998 * printcmd.c (struct display) <next>: Remove.
8999 <display>: New constructor.
9000 <exp_string>: Now a std::string.
9001 <enabled_p>: Now a bool.
9002 (display_number): Move definition earlier.
9003 (displays): Rename from display_chain. Now a std::vector.
9004 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9005 (display_command): Update.
9006 (do_one_display, disable_display)
9007 (enable_disable_display_command, do_enable_disable_display):
9008 Update.
9009 (free_display): Remove.
9010 (clear_displays): Rewrite.
9011 (delete_display): Update.
9012 (map_display_numbers): Use function_view. Remove "data"
9013 parameter. Update.
9014 (do_delete_display): Remove.
9015 (undisplay_command): Update.
9016 (do_one_display, do_displays, disable_display)
9017 (info_display_command): Update.
9018 (do_enable_disable_display): Remove.
9019 (enable_disable_display_command)
9020 (clear_dangling_display_expressions): Update.
9021
9022 2020-05-08 Tom Tromey <tom@tromey.com>
9023
9024 * symtab.c (set_symbol_cache_size)
9025 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9026 (maintenance_print_symbol_cache_statistics): Update.
9027 * symmisc.c (print_symbol_bcache_statistics)
9028 (print_objfile_statistics, maintenance_print_objfiles)
9029 (maintenance_info_symtabs, maintenance_check_symtabs)
9030 (maintenance_expand_symtabs, maintenance_info_line_tables):
9031 Update.
9032 * symfile-debug.c (set_debug_symfile): Update.
9033 * source.c (forget_cached_source_info): Update.
9034 * python/python.c (gdbpy_progspaces): Update.
9035 * psymtab.c (maintenance_info_psymtabs): Update.
9036 * probe.c (parse_probes): Update.
9037 * linespec.c (iterate_over_all_matching_symtabs)
9038 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9039 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9040 * exec.c (exec_target::close): Update.
9041 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9042 * breakpoint.c (print_one_breakpoint_location)
9043 (create_longjmp_master_breakpoint)
9044 (create_std_terminate_master_breakpoint): Update.
9045 * progspace.c (program_spaces): Now a std::vector.
9046 (maybe_new_address_space): Update.
9047 (add_program_space): Remove.
9048 (program_space::program_space): Update.
9049 (remove_program_space): Update.
9050 (number_of_program_spaces): Remove.
9051 (print_program_space, update_address_spaces): Update.
9052 * progspace.h (program_spaces): Change type.
9053 (ALL_PSPACES): Remove.
9054 (number_of_program_spaces): Don't declare.
9055 (struct program_space) <next>: Remove.
9056
9057 2020-05-08 Tom Tromey <tom@tromey.com>
9058
9059 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9060 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9061 (enable_break): Update.
9062 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9063 (frv_fdpic_find_canonical_descriptor): Update.
9064 (frv_fetch_objfile_link_map): Update.
9065 * progspace.c (program_space::free_all_objfiles): Update.
9066 (program_space::solibs): New method.
9067 * progspace.h (struct program_space) <solibs>: New method.
9068 * solist.h (master_so_list): Don't declare.
9069 (ALL_SO_LIBS): Remove.
9070 * solib.h (so_list_head): Remove.
9071 (update_solib_list): Update comment.
9072 * solib.c (master_so_list): Remove.
9073 (solib_used, update_solib_list, solib_add)
9074 (info_sharedlibrary_command, clear_solib)
9075 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9076
9077 2020-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * extension.c (extension_languages): Now a std::array.
9080 (ALL_EXTENSION_LANGUAGES): Remove.
9081 (get_ext_lang_defn, get_ext_lang_of_file)
9082 (eval_ext_lang_from_control_command): Update.
9083 (finish_ext_lang_initialization)
9084 (auto_load_ext_lang_scripts_for_objfile)
9085 (ext_lang_type_printers::ext_lang_type_printers)
9086 (apply_ext_lang_type_printers)
9087 (ext_lang_type_printers::~ext_lang_type_printers)
9088 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9089 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9090 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9091 (get_matching_xmethod_workers, ext_lang_colorize)
9092 (ext_lang_before_prompt): Update.
9093 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9094
9095 2020-05-08 Tom Tromey <tom@tromey.com>
9096
9097 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9098 overload.
9099 <swap_string, m_string>: Remove.
9100 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9101 Update.
9102 * stabsread.c (define_symbol, read_type): Update.
9103 * linespec.c (find_linespec_symbols): Update.
9104 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9105 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9106 * dbxread.c (read_dbx_symtab): Update.
9107 * cp-support.h (cp_canonicalize_string_full)
9108 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9109 Return unique_xmalloc_ptr.
9110 * cp-support.c (inspect_type): Update.
9111 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9112 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9113 Likewise.
9114 * c-typeprint.c (print_name_maybe_canonical): Update.
9115 * break-catch-throw.c (check_status_exception_catchpoint):
9116 Update.
9117
9118 2020-05-08 Tom de Vries <tdevries@suse.de>
9119
9120 * infrun.c (follow_fork): Copy current_line and current_symtab to
9121 child thread.
9122
9123 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * async-event.c (struct async_signal_handler, struct
9126 async_event_handler): Reformat, remove typedef.
9127
9128 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9129
9130 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9131 access thistype->main_type->dyn_prop_list directly.
9132
9133 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9136 (remove_dyn_prop): Remove. Update all users to use
9137 type::remove_dyn_prop.
9138 * gdbtypes.c (remove_dyn_prop): Rename to...
9139 (type::remove_dyn_prop): ... this.
9140
9141 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9142
9143 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9144 (add_dyn_prop): Remove. Update all users to use
9145 type::add_dyn_prop.
9146 * gdbtypes.c (add_dyn_prop): Rename to...
9147 (type::add_dyn_prop): ... this.
9148
9149 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9152 (get_dyn_prop): Remove. Update all users to use
9153 type::dyn_prop.
9154 * gdbtypes.c (get_dyn_prop): Rename to...
9155 (type::dyn_prop): ... this.
9156
9157 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9158
9159 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9160
9161 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9164 instruction, skip it if it's there.
9165
9166 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9169
9170 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9173 * gdbtypes.c (recursive_dump_type): Remove use of
9174 TYPE_INCOMPLETE.
9175
9176 2020-05-03 Tom Tromey <tom@tromey.com>
9177
9178 * breakpoint.c (catch_command, tcatch_command): Remove.
9179 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9180 add_show_prefix_cmd.
9181 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9182 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9183 Remove.
9184 (add_internal_problem_command): Use add_basic_prefix_cmd,
9185 add_show_prefix_cmd.
9186 * mips-tdep.c (set_mipsfpu_command): Remove.
9187 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9188 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9189 (_initialize_index_cache): Use add_basic_prefix_cmd.
9190 * memattr.c (dummy_cmd): Remove.
9191 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9192 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9193 (_initialize_tui_win): Use add_basic_prefix_cmd,
9194 add_show_prefix_cmd.
9195 * cli/cli-logging.c (set_logging_command): Remove.
9196 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9197 add_show_prefix_cmd.
9198 (show_logging_command): Remove.
9199 * target.c (target_command): Remove.
9200 (add_target): Use add_basic_prefix_cmd.
9201
9202 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9203
9204 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9205
9206 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9207
9208 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9209 info_command.
9210
9211 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9212
9213 * nbsd-nat.c (nbsd_enable_proc_events)
9214 (nbsd_nat_target::post_startup_inferior): Add.
9215 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9216 (nbsd_nat_target::update_thread_list): Rewrite.
9217 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9218 "PTRACE_LWP_CREATE".
9219 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9220
9221 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9222
9223 * stack.c (_initialize_stack): Remove duplicated creation
9224 of "frame" command and "f" alias.
9225
9226 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9227
9228 PR gdb/18706
9229 * gdbtypes.c (check_typedef): Calculate size of array of
9230 stubbed type.
9231
9232 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9233
9234 PR gdb/15559
9235 * i386-tdep.c (i386_push_dummy_call): Call
9236 i386_thiscall_push_dummy_call.
9237 (i386_thiscall_push_dummy_call): New function.
9238 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9239 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9240 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9241
9242 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * gdbarch.sh (do_read): Add shellcheck disable directive for
9245 warning SC2162.
9246
9247 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9250 "referenced but not assigned" warning.
9251
9252 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * gdbarch.sh: Remove code that sets fallbackdefault.
9255
9256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * gdbarch.sh: Use shell operators && and || instead of
9259 -a and -o.
9260
9261 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9262
9263 * gdbarch.sh: Use $(...) instead of `...`.
9264
9265 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbarch.sh: Use double quotes around variables.
9268
9269 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbarch.sh: Use %s with printf, instead of variables in the
9272 format string.
9273
9274 2020-04-29 Tom Tromey <tromey@adacore.com>
9275
9276 PR ada/25875:
9277 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9278 type fields here.
9279 (read_enumeration_type): Call
9280 update_enumeration_type_from_children later. Update comments.
9281 (process_enumeration_scope): Don't create type fields.
9282
9283 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9284
9285 * nbsd-tdep.c: Include "xml-syscall.h".
9286 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9287
9288 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9289
9290 * nbsd-nat.c: Include "sys/wait.h".
9291 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9292 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9293 (nbsd_nat_target::remove_exec_catchpoint)
9294 (nbsd_nat_target::set_syscall_catchpoint): Add.
9295 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9296 (nbsd_nat_target::insert_exec_catchpoint)
9297 (nbsd_nat_target::remove_exec_catchpoint)
9298 (nbsd_nat_target::set_syscall_catchpoint): Add.
9299 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9300 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9301 `nbsd_get_syscall_number'.
9302
9303 2020-04-29 Tom Tromey <tom@tromey.com>
9304
9305 * stack.c (print_block_frame_labels): Remove.
9306
9307 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9308
9309 PR gdb/17320
9310 * ada-valprint.c (val_print_packed_array_elements): Move array
9311 end bracket to new line.
9312 (ada_val_print_string): Remove extra spaces before first array
9313 element.
9314 * c-valprint.c (c_value_print_array): Likewise.
9315 * m2-valprint.c (m2_print_array_contents): Likewise.
9316 (m2_value_print_inner): Likewise.
9317 * p-valprint.c (pascal_value_print_inner): Likewise.
9318 * valprint.c (generic_val_print_array): Likewise.
9319 (value_print_array_elements): Move first array element and array
9320 end bracket to new line.
9321
9322 2020-04-29 Tom de Vries <tdevries@suse.de>
9323
9324 PR symtab/25889
9325 * linespec.c (find_method): Fix ix calculation.
9326
9327 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9328
9329 * syscalls/update-netbsd.sh: New file.
9330 * syscalls/netbsd.xml: Regenerate.
9331 * data-directory/Makefile.in: Register `netbsd.xml' in
9332 `SYSCALLS_FILES'.
9333
9334 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9335
9336 * syscalls/update-freebsd.sh: Add double quotes.
9337
9338 2020-04-28 Tom Tromey <tom@tromey.com>
9339
9340 * NEWS: Update.
9341 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9342 (cmdpy_init): Allow class_tui.
9343
9344 2020-04-28 Mark Williams <mark@myosotissp.com>
9345
9346 PR gdb/24480
9347 * dwarf2read.c: Add missing assingments to list_in_scope when
9348 start_symtab was already called.
9349
9350 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9351
9352 PR gdb/25881
9353 * dwarf2/read.c (offset_map_type): Use
9354 gdb:hash_enum<sect_offset> as hash function.
9355
9356 2020-04-28 Tom de Vries <tdevries@suse.de>
9357
9358 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9359 with DW_AT_signature.
9360
9361 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9362
9363 * configure.ac: Remove check for fs_base/gs_base in
9364 user_regs_struct.
9365 * configure: Re-generate.
9366 * config.in: Re-generate.
9367 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9368 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9369 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9370
9371 2020-04-27 Luis Machado <luis.machado@linaro.org>
9372
9373 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9374 problematic inline frame unwinding situation.
9375 * frame.c (frame_id_computed_p): New function.
9376 * frame.h (frame_id_computed_p): New prototype.
9377
9378 2020-04-26 Tom Tromey <tom@tromey.com>
9379
9380 * command.h (enum command_class) <class_pseudo>: Remove.
9381
9382 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9383
9384 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9385 and whitespace.
9386
9387 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9388
9389 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9390 `PT_GET_PROCESS_STATE' block.
9391
9392 2020-04-24 Tom Tromey <tom@tromey.com>
9393
9394 * symtab.h (symbol_get_demangled_name): Don't declare.
9395 * symtab.c (symbol_get_demangled_name): Remove.
9396 (general_symbol_info::natural_name)
9397 (general_symbol_info::demangled_name): Update.
9398
9399 2020-04-24 Tom Tromey <tom@tromey.com>
9400
9401 PR rust/25025:
9402 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9403
9404 2020-04-24 Tom Tromey <tom@tromey.com>
9405
9406 PR symtab/12707:
9407 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9408 exists.
9409 (new_symbol): Likewise.
9410 * compile/compile-object-load.c (get_out_value_type): Use
9411 symbol_matches_search_name.
9412
9413 2020-04-24 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2/read.c (add_partial_symbol): Do not call
9416 compute_and_set_names.
9417
9418 2020-04-24 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9421 overload.
9422
9423 2020-04-24 Tom Tromey <tom@tromey.com>
9424
9425 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9426 (add_psymbol_to_list): New overload. Make old overload call new
9427 one.
9428 * psympriv.h (add_psymbol_to_list): New overload.
9429
9430 2020-04-24 Tom Tromey <tom@tromey.com>
9431
9432 * dwarf2/read.c (partial_die_info::read) <case
9433 DW_AT_linkage_name>: Use value_as_string.
9434 (dwarf2_string_attr): Use value_as_string.
9435 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9436 method.
9437 * dwarf2/attribute.c (attribute::value_as_string): New method.
9438
9439 2020-04-24 Tom Tromey <tom@tromey.com>
9440
9441 * symtab.c (general_symbol_info::natural_name)
9442 (general_symbol_info::demangled_name): Check for language_rust.
9443
9444 2020-04-24 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9447 (dwarf2_physname): ... from here.
9448 (partial_die_info::read): Add Rust "{" hack.
9449
9450 2020-04-24 Tom Tromey <tom@tromey.com>
9451
9452 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9453 method.
9454 (symbol_set_demangled_name): Don't declare.
9455 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9456 symbol_set_demangled_name.
9457 (general_symbol_info::set_language)
9458 (general_symbol_info::compute_and_set_names): Update.
9459 * minsyms.c (minimal_symbol_reader::install): Update.
9460 * dwarf2/read.c (new_symbol): Update.
9461
9462 2020-04-24 Tom Tromey <tromey@adacore.com>
9463
9464 PR python/23662:
9465 * python/py-type.c (convert_field): Handle
9466 FIELD_LOC_KIND_DWARF_BLOCK.
9467 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9468 (typy_get_dynamic): Nw function.
9469 (type_object_getset): Add "dynamic".
9470 * NEWS: Add entry.
9471
9472 2020-04-24 Tom Tromey <tromey@adacore.com>
9473
9474 * ada-typeprint.c (print_choices, print_variant_part)
9475 (print_record_field_types_dynamic): New functions.
9476 (print_record_field_types): Use print_record_field_types_dynamic.
9477
9478 2020-04-24 Tom Tromey <tromey@adacore.com>
9479
9480 * dwarf2/read.c (handle_data_member_location): New overload.
9481 (dwarf2_add_field): Use it.
9482 (decode_locdesc): Add "computed" parameter. Update comment.
9483 * gdbtypes.c (is_dynamic_type_internal): Also look for
9484 FIELD_LOC_KIND_DWARF_BLOCK.
9485 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9486 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9487 virtual base classes.
9488 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9489 FIELD_LOC_KIND_DWARF_BLOCK.
9490
9491 2020-04-24 Tom Tromey <tromey@adacore.com>
9492
9493 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9494 * gdbtypes.c (is_dynamic_type_internal): Check
9495 TYPE_HAS_DYNAMIC_LENGTH.
9496 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9497 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9498 New macros.
9499 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9500 constant.
9501
9502 2020-04-24 Tom Tromey <tromey@adacore.com>
9503
9504 * dwarf2/read.c (struct variant_field): Rewrite.
9505 (struct variant_part_builder): New.
9506 (struct nextfield): Remove "variant" field. Add "offset".
9507 (struct field_info): Add "current_variant_part" and
9508 "variant_parts".
9509 (alloc_discriminant_info): Remove.
9510 (alloc_rust_variant): New function.
9511 (quirk_rust_enum): Update.
9512 (dwarf2_add_field): Set "offset" member. Don't handle
9513 DW_TAG_variant_part.
9514 (offset_map_type): New typedef.
9515 (convert_variant_range, create_one_variant)
9516 (create_one_variant_part, create_variant_parts)
9517 (add_variant_property): New functions.
9518 (dwarf2_attach_fields_to_type): Call add_variant_property.
9519 (read_structure_type): Don't handle DW_TAG_variant_part.
9520 (handle_variant_part, handle_variant): New functions.
9521 (handle_struct_member_die): Use them.
9522 (process_structure_scope): Don't handle variant parts.
9523 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9524 (struct discriminant_info): Remove.
9525 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9526 (struct main_type) <flag_discriminated_union>: Remove.
9527 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9528 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9529 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9530 Update.
9531 * valops.c (value_union_variant): Remove.
9532 * value.h (value_union_variant): Don't declare.
9533
9534 2020-04-24 Tom Tromey <tromey@adacore.com>
9535
9536 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9537 (ada_value_primitive_packed_val): Update.
9538 * ada-valprint.c (ada_value_print_1): Update.
9539 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9540 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9541 just an address. Use evaluate_for_locexpr_baton.
9542 (dwarf2_evaluate_property): Update.
9543 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9544 array_view.
9545 * findvar.c (default_read_var_value): Update.
9546 * gdbtypes.c (compute_variant_fields_inner)
9547 (resolve_dynamic_type_internal): Update.
9548 (resolve_dynamic_type): Change type of valaddr parameter.
9549 * gdbtypes.h (resolve_dynamic_type): Update.
9550 * valarith.c (value_subscripted_rvalue): Update.
9551 * value.c (value_from_contents_and_address): Update.
9552
9553 2020-04-24 Tom Tromey <tromey@adacore.com>
9554
9555 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9556 "push_initial_value" parameter.
9557 (dwarf2_evaluate_property): Likewise.
9558 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9559
9560 2020-04-24 Tom Tromey <tromey@adacore.com>
9561
9562 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9563 (variant::matches, compute_variant_fields_recurse)
9564 (compute_variant_fields_inner, compute_variant_fields): New
9565 functions.
9566 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9567 Use resolved_type after type is made.
9568 (operator==): Add new cases.
9569 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9570 (struct discriminant_range, struct variant, struct variant_part):
9571 New.
9572 (union dynamic_prop_data) <variant_parts, original_type>: New
9573 members.
9574 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9575 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9576 constants.
9577 * value.c (unpack_bits_as_long): Now public.
9578 * value.h (unpack_bits_as_long): Declare.
9579
9580 2020-04-24 Tom Tromey <tromey@adacore.com>
9581
9582 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9583 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9584
9585 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9586
9587 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9588
9589 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9590
9591 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9592 (remove_fork_catchpoint, post_startup_inferior)
9593 (post_attach): Move...
9594 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9595 (remove_fork_catchpoint, post_startup_inferior)
9596 (post_attach): ...here.
9597 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9598 (remove_fork_catchpoint, post_startup_inferior)
9599 (post_attach): Move...
9600 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9601 (remove_fork_catchpoint, post_startup_inferior)
9602 (post_attach): ...here.
9603
9604 2020-04-24 Tom Tromey <tromey@adacore.com>
9605
9606 * nat/windows-nat.h (struct windows_thread_info)
9607 <pc_adjusted>: New member.
9608 * windows-nat.c (windows_fetch_one_register): Check
9609 pc_adjusted.
9610 (windows_nat_target::get_windows_debug_event)
9611 (windows_nat_target::wait): Set pc_adjusted.
9612
9613 2020-04-24 Tom de Vries <tdevries@suse.de>
9614
9615 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9616 Run gdb-add-index inside temp dir.
9617
9618 2020-04-23 Tom Tromey <tromey@adacore.com>
9619
9620 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9621 in loop.
9622
9623 2020-04-23 Luis Machado <luis.machado@linaro.org>
9624
9625 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9626 get_frame_register instead of gdbarch_unwind_pc.
9627
9628 2020-04-23 Tom de Vries <tdevries@suse.de>
9629
9630 * symtab.c (lookup_global_symbol): Prefer def over decl.
9631
9632 2020-04-23 Tom de Vries <tdevries@suse.de>
9633
9634 PR symtab/25807
9635 * block.c (best_symbol, better_symbol): Promote to external.
9636 * block.h (best_symbol, better_symbol): Declare.
9637 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9638 decl.
9639
9640 2020-04-23 Tom Tromey <tromey@adacore.com>
9641
9642 PR ada/25837:
9643 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9644 "const char *", not a "const std::string &".
9645 <name_and_matcher::operator==>: Update.
9646 * unittests/lookup_name_info-selftests.c: Change type of
9647 "result".
9648
9649 2020-04-23 Tom Tromey <tom@tromey.com>
9650
9651 * inferior.h (iterate_over_inferiors): Don't declare.
9652 * inferior.c (iterate_over_inferiors): Remove.
9653 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9654 Remove.
9655 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9656 use iterate_over_inferiors.
9657 (darwin_resume_inferior_it)
9658 (struct resume_inferior_threads_param)
9659 (darwin_resume_inferior_threads_it): Remove.
9660 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9661
9662 2020-04-23 Tom de Vries <tdevries@suse.de>
9663
9664 * blockframe.c (find_pc_partial_function): Use
9665 find_pc_sect_compunit_symtab rather than
9666 objfile->sf->qf->find_pc_sect_compunit_symtab.
9667
9668 2020-04-22 Tom de Vries <tdevries@suse.de>
9669
9670 PR symtab/25764
9671 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9672 in psymtabs.
9673
9674 2020-04-22 Tom de Vries <tdevries@suse.de>
9675
9676 PR symtab/25801
9677 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9678 symtabs.
9679
9680 2020-04-22 Tom de Vries <tdevries@suse.de>
9681
9682 PR symtab/25700
9683 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9684 CU if already created.
9685
9686 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9687
9688 * infrun.c (displaced_step_fixup): Switch to the event_thread
9689 before calling displaced_step_restore, not after.
9690
9691 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9692
9693 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9694 its inferior is not recorded by us.
9695 (record_btrace_target_open): Replace call to
9696 all_non_exited_threads () with call to current_inferior
9697 ()->non_exited_threads ().
9698 (record_btrace_target::stop_recording): Likewise.
9699 (record_btrace_target::close): Likewise.
9700 (record_btrace_target::wait): Likewise.
9701 (record_btrace_target::record_stop_replaying): Likewise.
9702
9703 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9704
9705 * btrace.c (btrace_enable): Throw an error on double enables and
9706 when enabling recording fails.
9707 (btrace_disable): Throw an error if the thread is not recorded.
9708
9709 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9710
9711 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9712 request if we do not have a thread_info.
9713
9714 2020-04-21 Tom de Vries <tdevries@suse.de>
9715
9716 PR gdb/25471
9717 * thread.c
9718 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9719 exception in get_frame_id.
9720
9721 2020-04-20 Tom Tromey <tromey@adacore.com>
9722
9723 * python/python.c (struct gdbpy_event): Mark move constructor as
9724 noexcept.
9725 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9726 constructor as noexcept.
9727 * completer.h (struct completion_result): Mark move constructor as
9728 noexcept.
9729 * completer.c (completion_result::completion_result): Use
9730 initialization style. Don't call reset_match_list.
9731
9732 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9733
9734 * MAINTAINERS (Write After Approval): Add myself.
9735
9736 2020-04-18 Tom Tromey <tom@tromey.com>
9737
9738 * windows-tdep.c (init_w32_command_list)
9739 (w32_prefix_command_valid): Restore.
9740 (_initialize_windows_tdep): Call init_w32_command_list.
9741
9742 2020-04-18 Tom Tromey <tom@tromey.com>
9743
9744 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9745 * value.c (value_fn_field): Update.
9746 * valops.c (find_function_in_inferior)
9747 (value_allocate_space_in_inferior): Update.
9748 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9749 Update.
9750 * tui/tui-source.c (tui_source_window::set_contents): Update.
9751 * symtab.c (lookup_global_or_static_symbol)
9752 (find_function_start_sal_1, skip_prologue_sal)
9753 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9754 * symmisc.c (dump_msymbols, dump_symtab_1)
9755 (maintenance_print_one_line_table): Update.
9756 * symfile.c (init_entry_point_info, section_is_mapped)
9757 (list_overlays_command, simple_read_overlay_table)
9758 (simple_overlay_update_1): Update.
9759 * stap-probe.c (handle_stap_probe): Update.
9760 * stabsread.c (dbx_init_float_type, define_symbol)
9761 (read_one_struct_field, read_enum_type, read_range_type): Update.
9762 * source.c (info_line_command): Update.
9763 * python/python.c (gdbpy_source_objfile_script)
9764 (gdbpy_execute_objfile_script): Update.
9765 * python/py-type.c (save_objfile_types): Update.
9766 * python/py-objfile.c (py_free_objfile): Update.
9767 * python/py-inferior.c (python_new_objfile): Update.
9768 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9769 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9770 (maintenance_check_psymtabs): Update.
9771 * printcmd.c (info_address_command): Update.
9772 * objfiles.h (struct objfile) <arch>: New method, from
9773 get_objfile_arch.
9774 (get_objfile_arch): Don't declare.
9775 * objfiles.c (get_objfile_arch): Remove.
9776 (filter_overlapping_sections): Update.
9777 * minsyms.c (msymbol_is_function): Update.
9778 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9779 (output_nondebug_symbol): Update.
9780 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9781 (mdebug_expand_psymtab): Update.
9782 * machoread.c (macho_add_oso_symfile): Update.
9783 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9784 Update.
9785 * linux-fork.c (checkpoint_command): Update.
9786 * linespec.c (convert_linespec_to_sals): Update.
9787 * jit.c (finalize_symtab): Update.
9788 * infrun.c (insert_exception_resume_from_probe): Update.
9789 * ia64-tdep.c (ia64_find_unwind_table): Update.
9790 * hppa-tdep.c (internalize_unwinds): Update.
9791 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9792 Update.
9793 * gcore.c (call_target_sbrk): Update.
9794 * elfread.c (record_minimal_symbol, elf_symtab_read)
9795 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9796 (elf_gnu_ifunc_resolve_by_got): Update.
9797 * dwarf2/read.c (create_addrmap_from_index)
9798 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9799 (read_debug_names_from_section)
9800 (process_psymtab_comp_unit_reader, add_partial_symbol)
9801 (add_partial_subprogram, process_full_comp_unit)
9802 (read_file_scope, read_func_scope, read_lexical_block_scope)
9803 (read_call_site_scope, dwarf2_ranges_read)
9804 (dwarf2_record_block_ranges, dwarf2_add_field)
9805 (mark_common_block_symbol_computed, read_tag_pointer_type)
9806 (read_tag_string_type, dwarf2_init_float_type)
9807 (dwarf2_init_complex_target_type, read_base_type)
9808 (partial_die_info::read, partial_die_info::read)
9809 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9810 (dwarf2_fetch_die_loc_sect_off): Update.
9811 * dwarf2/loc.c (dwarf2_find_location_expression)
9812 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9813 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9814 (dwarf2_loc_desc_get_symbol_read_needs)
9815 (locexpr_describe_location_piece, locexpr_describe_location_1)
9816 (loclist_describe_location): Update.
9817 * dwarf2/index-write.c (write_debug_names): Update.
9818 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9819 * dtrace-probe.c (dtrace_process_dof): Update.
9820 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9821 (process_one_symbol): Update.
9822 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9823 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9824 (coff_read_enum_type): Update.
9825 * cli/cli-cmds.c (edit_command, list_command): Update.
9826 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9827 * breakpoint.c (create_overlay_event_breakpoint)
9828 (create_longjmp_master_breakpoint)
9829 (create_std_terminate_master_breakpoint)
9830 (create_exception_master_breakpoint, get_sal_arch): Update.
9831 * block.c (block_gdbarch): Update.
9832 * annotate.c (annotate_source_line): Update.
9833
9834 2020-04-17 Tom Tromey <tromey@adacore.com>
9835
9836 * auto-load.c (show_auto_load_cmd): Remove.
9837 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9838 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9839 (maintenance_print_arc_command): Remove.
9840 * tui/tui-win.c (tui_command): Remove.
9841 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9842 * tui/tui-layout.c (tui_layout_command): Remove.
9843 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9844 * python/python.c (user_set_python, user_show_python): Remove.
9845 (_initialize_python): Use add_basic_prefix_cmd,
9846 add_show_prefix_cmd.
9847 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9848 (install_gdb_commands): Use add_basic_prefix_cmd,
9849 add_show_prefix_cmd.
9850 (info_guile_command): Remove.
9851 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9852 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9855 Remove do_set and do_show parameters.
9856 * cli/cli-style.c (set_style, show_style): Remove.
9857 (_initialize_cli_style): Use add_basic_prefix_cmd,
9858 add_show_prefix_cmd.
9859 (cli_style_option::add_setshow_commands): Remove do_set and
9860 do_show parameters.
9861 (cli_style_option::add_setshow_commands): Use
9862 add_basic_prefix_cmd, add_show_prefix_cmd.
9863 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9864 (set_style_name): Remove.
9865 * cli/cli-dump.c (dump_command, append_command): Remove.
9866 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9867 (tekhex_dump_command, binary_dump_command)
9868 (binary_append_command): Remove.
9869 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9870 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9871 (init_w32_command_list): Remove; move into ...
9872 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9873 * valprint.c (set_print, show_print, set_print_raw)
9874 (show_print_raw): Remove.
9875 (_initialize_valprint): Use add_basic_prefix_cmd,
9876 add_show_prefix_cmd.
9877 * typeprint.c (set_print_type, show_print_type): Remove.
9878 (_initialize_typeprint): Use add_basic_prefix_cmd,
9879 add_show_prefix_cmd.
9880 * record.c (set_record_command, show_record_command): Remove.
9881 (_initialize_record): Use add_basic_prefix_cmd,
9882 add_show_prefix_cmd.
9883 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9884 add_show_prefix_cmd.
9885 (info_command, show_command, set_debug, show_debug): Remove.
9886 * top.h (set_history, show_history): Don't declare.
9887 * top.c (set_history, show_history): Remove.
9888 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9889 (unset_tdesc_cmd): Remove.
9890 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9891 add_show_prefix_cmd.
9892 * symtab.c (info_module_command): Remove.
9893 (_initialize_symtab): Use add_basic_prefix_cmd.
9894 * symfile.c (overlay_command): Remove.
9895 (_initialize_symfile): Use add_basic_prefix_cmd.
9896 * sparc64-tdep.c (info_adi_command): Remove.
9897 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9898 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9899 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9900 add_show_prefix_cmd.
9901 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9902 (_initialize_serial): Use add_basic_prefix_cmd,
9903 add_show_prefix_cmd.
9904 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9905 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9906 add_show_prefix_cmd.
9907 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9908 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9909 add_show_prefix_cmd.
9910 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9911 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9912 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9913 add_show_prefix_cmd.
9914 * remote.c (remote_command, set_remote_cmd): Remove.
9915 (_initialize_remote): Use add_basic_prefix_cmd.
9916 * record-full.c (set_record_full_command)
9917 (show_record_full_command): Remove.
9918 (_initialize_record_full): Use add_basic_prefix_cmd,
9919 add_show_prefix_cmd.
9920 * record-btrace.c (cmd_set_record_btrace)
9921 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9922 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9923 (cmd_show_record_btrace_pt): Remove.
9924 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9925 add_show_prefix_cmd.
9926 * ravenscar-thread.c (set_ravenscar_command)
9927 (show_ravenscar_command): Remove.
9928 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9929 add_show_prefix_cmd.
9930 * mips-tdep.c (show_mips_command, set_mips_command)
9931 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9932 add_show_prefix_cmd.
9933 * maint.c (maintenance_command, maintenance_info_command)
9934 (maintenance_check_command, maintenance_print_command)
9935 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9936 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9937 add_show_prefix_cmd.
9938 (show_per_command_cmd): Remove.
9939 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9940 Remove.
9941 (maintenance_show_test_settings_cmd): Remove.
9942 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9943 add_show_prefix_cmd.
9944 * maint-test-options.c (maintenance_test_options_command):
9945 Remove.
9946 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9947 * macrocmd.c (macro_command): Remove
9948 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9949 * language.c (set_check, show_check): Remove.
9950 (_initialize_language): Use add_basic_prefix_cmd,
9951 add_show_prefix_cmd.
9952 * infcmd.c (unset_command): Remove.
9953 (_initialize_infcmd): Use add_basic_prefix_cmd.
9954 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9955 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9956 add_show_prefix_cmd.
9957 * go32-nat.c (go32_info_dos_command): Remove.
9958 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9959 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9960 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9961 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9962 (_initialize_frame): Use add_basic_prefix_cmd,
9963 add_show_prefix_cmd.
9964 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9965 (_initialize_dcache): Use add_basic_prefix_cmd,
9966 add_show_prefix_cmd.
9967 * cp-support.c (maint_cplus_command): Remove.
9968 (_initialize_cp_support): Use add_basic_prefix_cmd.
9969 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9970 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9971 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9972 add_basic_prefix_cmd, add_show_prefix_cmd.
9973 * breakpoint.c (save_command): Remove.
9974 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9975 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9976 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9977 add_show_prefix_cmd.
9978 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9979 (set_ada_command, show_ada_command): Remove.
9980 (_initialize_ada_language): Use add_basic_prefix_cmd,
9981 add_show_prefix_cmd.
9982 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9983
9984 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9985
9986 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9987 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9988
9989 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9990
9991 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9992 warning messages.
9993
9994 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9995
9996 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9997 import table is not at beginning of .idata section.
9998
9999 2020-04-16 Pedro Alves <palves@redhat.com>
10000
10001 * inferior.c (delete_inferior): Use delete operator directly
10002 instead of delete_program_space.
10003 * progspace.c (add_program_space): New, factored out from
10004 program_space::program_space.
10005 (remove_program_space): New, factored out from
10006 delete_program_space.
10007 (program_space::program_space): Remove intro comment. Rewrite.
10008 (program_space::~program_space): Remove intro comment. Call
10009 remove_program_space.
10010 (delete_program_space): Delete.
10011 * progspace.h (program_space::program_space): Make explicit. Move
10012 intro comment here, adjusted.
10013 (program_space::~program_space): Move intro comment here,
10014 adjusted.
10015 (delete_program_space): Remove.
10016
10017 2020-04-16 Tom Tromey <tromey@adacore.com>
10018
10019 * windows-nat.c (windows_nat::handle_access_violation): New
10020 function.
10021 * nat/windows-nat.h (handle_access_violation): Declare.
10022 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10023 windows-nat.c. Call handle_access_violation.
10024
10025 2020-04-16 Tom de Vries <tdevries@suse.de>
10026
10027 PR symtab/25791
10028 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10029 CUs without psymtab.
10030
10031 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10032
10033 * python/python.c (do_start_initialization): Don't call
10034 PyEval_InitThreads for Python 3.9 and beyond.
10035
10036 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10037
10038 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10039 thread functions.
10040 (obsd_nat_target::wait): Likewise.
10041
10042 2020-04-15 Tom Tromey <tromey@adacore.com>
10043
10044 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10045 (DEBUG_EXCEPT): Use debug_printf.
10046
10047 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10048
10049 * completer.c (class completion_tracker::completion_hash_entry)
10050 <hash_name>: New member function.
10051 (completion_tracker::discard_completions): New callback to hash a
10052 completion_hash_entry, pass this to htab_create_alloc.
10053
10054 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10055
10056 * windows-nat.c (windows_make_so): Warn rather than stopping with
10057 an error if realpath() fails.
10058
10059 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10060
10061 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10062 (nbsd_nat_target::info_proc): Add do_status.
10063
10064 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10065 Tom de Vries <tdevries@suse.de>
10066
10067 PR symtab/25718
10068 * psympriv.h (struct partial_symtab::read_symtab)
10069 (struct partial_symtab::expand_psymtab)
10070 (struct partial_symtab::read_dependencies): Update comments.
10071 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10072 read_symtab for includer.
10073 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10074 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10075 (struct dwarf2_include_psymtab::m_readin): Remove.
10076 (struct dwarf2_include_psymtab::includer): New member function.
10077 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10078
10079 2020-04-14 Tom de Vries <tdevries@suse.de>
10080
10081 PR symtab/25720
10082 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10083 with NULL symbol_matcher and lookup_name.
10084 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10085 and lookup_name.
10086 * dwarf2/read.c (dw2_expand_symtabs_matching)
10087 (dw2_debug_names_expand_symtabs_matching): Same.
10088 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10089 Make lookup_name a pointer. Update comment.
10090 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10091 lookup_name being a pointer.
10092 * symfile.c (expand_symtabs_matching): Same.
10093 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10094 * linespec.c (iterate_over_all_matching_symtabs): Same.
10095
10096 2020-04-13 Tom Tromey <tom@tromey.com>
10097
10098 * run-on-main-thread.c: Update include.
10099 * unittests/main-thread-selftests.c: Update include.
10100 * tui/tui-win.c: Update include.
10101 * tui/tui-io.c: Update include.
10102 * tui/tui-interp.c: Update include.
10103 * tui/tui-hooks.c: Update include.
10104 * top.h: Update include.
10105 * top.c: Update include.
10106 * ser-base.c: Update include.
10107 * remote.c: Update include.
10108 * remote-notif.c: Update include.
10109 * remote-fileio.c: Update include.
10110 * record-full.c: Update include.
10111 * record-btrace.c: Update include.
10112 * python/python.c: Update include.
10113 * posix-hdep.c: Update include.
10114 * mingw-hdep.c: Update include.
10115 * mi/mi-main.c: Update include.
10116 * mi/mi-interp.c: Update include.
10117 * main.c: Update include.
10118 * linux-nat.c: Update include.
10119 * interps.c: Update include.
10120 * infrun.c: Update include.
10121 * inf-loop.c: Update include.
10122 * event-top.c: Update include.
10123 * event-loop.c: Move to ../gdbsupport/.
10124 * event-loop.h: Move to ../gdbsupport/.
10125 * async-event.h: Update include.
10126 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10127
10128 2020-04-13 Tom Tromey <tom@tromey.com>
10129
10130 * tui/tui-win.c: Include async-event.h.
10131 * remote.c: Include async-event.h.
10132 * remote-notif.c: Include async-event.h.
10133 * record-full.c: Include async-event.h.
10134 * record-btrace.c: Include async-event.h.
10135 * infrun.c: Include async-event.h.
10136 * event-top.c: Include async-event.h.
10137 * event-loop.h: Move some declarations to async-event.h.
10138 * event-loop.c: Don't include ser-event.h or top.h. Move some
10139 code to async-event.c.
10140 * async-event.h: New file.
10141 * async-event.c: New file.
10142 * Makefile.in (COMMON_SFILES): Add async-event.c.
10143 (HFILES_NO_SRCDIR): Add async-event.h.
10144
10145 2020-04-13 Tom Tromey <tom@tromey.com>
10146
10147 * utils.c (flush_streams): New function.
10148 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10149
10150 2020-04-13 Tom Tromey <tom@tromey.com>
10151
10152 * event-loop.c (handle_file_event): Use warning, not
10153 printf_unfiltered.
10154
10155 2020-04-13 Tom Tromey <tom@tromey.com>
10156
10157 * event-loop.c: Include <chrono>.
10158
10159 2020-04-13 Tom Tromey <tom@tromey.com>
10160
10161 * gdb_select.h: Move to ../gdbsupport/.
10162 * event-loop.c: Update include path.
10163 * top.c: Update include path.
10164 * ser-base.c: Update include path.
10165 * ui-file.c: Update include path.
10166 * ser-tcp.c: Update include path.
10167 * guile/scm-ports.c: Update include path.
10168 * posix-hdep.c: Update include path.
10169 * ser-unix.c: Update include path.
10170 * gdb_usleep.c: Update include path.
10171 * mingw-hdep.c: Update include path.
10172 * inflow.c: Update include path.
10173 * infrun.c: Update include path.
10174 * event-top.c: Update include path.
10175
10176 2020-04-13 Tom Tromey <tom@tromey.com>
10177
10178 * configure: Rebuild.
10179 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10180
10181 2020-04-13 Tom Tromey <tom@tromey.com>
10182
10183 * event-loop.h (start_event_loop): Don't declare.
10184 * event-loop.c (start_event_loop): Move...
10185 * main.c (start_event_loop): ...here. Now static.
10186
10187 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10188
10189 * MAINTAINERS: Update my email address.
10190
10191 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10192
10193 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10194 IP_ALL.
10195
10196 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10197
10198 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10199 (nbsd_nat_target::info_proc): Add do_cmdline.
10200
10201 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10202
10203 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10204 (nbsd_nat_target::info_proc): Add do_cwd.
10205
10206 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10207
10208 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10209
10210 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10211
10212 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10213 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10214 (nbsd_nat_target::info_proc): New functions.
10215 * nbsd-nat.c (kinfo_get_vmmap): New function.
10216 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10217 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10218 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10219 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10220 functions.
10221 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10222 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10223 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10224 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10225 (KINFO_VME_FLAG_GROWS_DOWN): New.
10226
10227 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10228
10229 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10230 bit shift.
10231
10232 2020-04-10 Tom Tromey <tromey@adacore.com>
10233
10234 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10235
10236 2020-04-10 Tom Tromey <tromey@adacore.com>
10237
10238 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10239 separate debug files.
10240
10241 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10242
10243 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10244 Move to...
10245 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10246 ... here.
10247 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10248 Check for STATUS_WX86_BREAKPOINT.
10249 (windows_nat_target::wait): Same.
10250
10251 2020-04-10 Tom de Vries <tdevries@suse.de>
10252
10253 PR cli/25808
10254 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10255
10256 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10257
10258 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10259 (Write After Approval): Remove Tom de Vries.
10260
10261 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10262
10263 revert partially:
10264 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10265
10266 * buildsym.c (record_line): Fix undefined behavior and preserve
10267 lines at eof.
10268
10269 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10270
10271 * auxv.h (svr4_auxv_parse): New.
10272 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10273 and generic_auxv_parse.
10274 (svr4_auxv_parse): Add.
10275 * obsd-tdep.c: Include "auxv.h".
10276 (obsd_auxv_parse): Remove.
10277 (obsd_init_abi): Remove comment.
10278 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10279 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10280 * nbsd-tdep.c: Include "auxv.h".
10281 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10282
10283 2020-04-08 Tom Tromey <tromey@adacore.com>
10284
10285 * nat/windows-nat.h (last_wait_event): Don't declare.
10286 (wait_for_debug_event): Update comment.
10287 * nat/windows-nat.c (last_wait_event): Now static.
10288
10289 2020-04-08 Tom Tromey <tromey@adacore.com>
10290
10291 * windows-nat.c (wait_for_debug_event): Move to
10292 nat/windows-nat.c.
10293 * nat/windows-nat.h (wait_for_debug_event): Declare.
10294 * nat/windows-nat.c (wait_for_debug_event): Move from
10295 windows-nat.c. No longer static.
10296
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10298
10299 * windows-nat.c (get_windows_debug_event): Use
10300 fetch_pending_stop.
10301 * nat/windows-nat.h (fetch_pending_stop): Declare.
10302 * nat/windows-nat.c (fetch_pending_stop): New function.
10303
10304 2020-04-08 Tom Tromey <tromey@adacore.com>
10305
10306 * windows-nat.c (windows_continue): Use matching_pending_stop and
10307 continue_last_debug_event.
10308 * nat/windows-nat.h (matching_pending_stop)
10309 (continue_last_debug_event): Declare.
10310 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10311 (matching_pending_stop, continue_last_debug_event): New
10312 functions.
10313
10314 2020-04-08 Tom Tromey <tromey@adacore.com>
10315
10316 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10317 (handle_exception_result): Move to nat/windows-nat.h.
10318 (DEBUG_EXCEPTION_SIMPLE): Remove.
10319 (windows_nat::handle_ms_vc_exception): New function.
10320 (handle_exception): Move to nat/windows-nat.c.
10321 (get_windows_debug_event): Update.
10322 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10323 nat/windows-nat.c.
10324 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10325 (handle_exception_result): Move from windows-nat.c.
10326 (handle_exception): Declare.
10327 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10328 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10329 windows-nat.c.
10330
10331 2020-04-08 Tom Tromey <tromey@adacore.com>
10332
10333 * windows-nat.c (exception_count, event_count): Remove.
10334 (handle_exception, get_windows_debug_event)
10335 (do_initial_windows_stuff): Update.
10336
10337 2020-04-08 Tom Tromey <tromey@adacore.com>
10338
10339 * windows-nat.c (windows_nat::handle_load_dll)
10340 (windows_nat::handle_unload_dll): Rename. No longer static.
10341 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10342 Declare.
10343
10344 2020-04-08 Tom Tromey <tromey@adacore.com>
10345
10346 * complaints.h (stop_whining): Declare at top-level.
10347 (complaint): Don't declare stop_whining.
10348
10349 2020-04-08 Tom Tromey <tromey@adacore.com>
10350
10351 * windows-nat.c (windows_nat::handle_output_debug_string):
10352 Rename. No longer static.
10353 * nat/windows-nat.h (handle_output_debug_string): Declare.
10354
10355 2020-04-08 Tom Tromey <tromey@adacore.com>
10356
10357 * windows-nat.c (current_process_handle, current_process_id)
10358 (main_thread_id, last_sig, current_event, last_wait_event)
10359 (current_windows_thread, desired_stop_thread_id, pending_stops)
10360 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10361 (display_selectors, fake_create_process)
10362 (get_windows_debug_event): Update.
10363 * nat/windows-nat.h (current_process_handle, current_process_id)
10364 (main_thread_id, last_sig, current_event, last_wait_event)
10365 (current_windows_thread, desired_stop_thread_id, pending_stops)
10366 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10367 * nat/windows-nat.c (current_process_handle, current_process_id)
10368 (main_thread_id, last_sig, current_event, last_wait_event)
10369 (current_windows_thread, desired_stop_thread_id, pending_stops)
10370 (siginfo_er): New globals. Move from windows-nat.c.
10371
10372 2020-04-08 Tom Tromey <tromey@adacore.com>
10373
10374 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10375 (handle_load_dll): Update.
10376 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10377
10378 2020-04-08 Tom Tromey <tromey@adacore.com>
10379
10380 * windows-nat.c (enum thread_disposition_type): Move to
10381 nat/windows-nat.h.
10382 (windows_nat::thread_rec): Rename from thread_rec. No longer
10383 static.
10384 (windows_add_thread, windows_nat_target::fetch_registers)
10385 (windows_nat_target::store_registers, handle_exception)
10386 (windows_nat_target::resume, get_windows_debug_event)
10387 (windows_nat_target::get_tib_address)
10388 (windows_nat_target::thread_name)
10389 (windows_nat_target::thread_alive): Update.
10390 * nat/windows-nat.h (enum thread_disposition_type): Move from
10391 windows-nat.c.
10392 (thread_rec): Declare.
10393
10394 2020-04-08 Tom Tromey <tromey@adacore.com>
10395
10396 * windows-nat.c: Add "using namespace".
10397 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10398 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10399
10400 2020-04-08 Tom Tromey <tromey@adacore.com>
10401
10402 * nat/windows-nat.h (struct windows_thread_info): Declare
10403 destructor.
10404 * nat/windows-nat.c (~windows_thread_info): New.
10405
10406 2020-04-08 Tom Tromey <tromey@adacore.com>
10407
10408 PR gdb/22992
10409 * windows-nat.c (current_event): Update comment.
10410 (last_wait_event, desired_stop_thread_id): New globals.
10411 (struct pending_stop): New.
10412 (pending_stops): New global.
10413 (windows_nat_target) <stopped_by_sw_breakpoint>
10414 <supports_stopped_by_sw_breakpoint>: New methods.
10415 (windows_fetch_one_register): Add assertions. Adjust PC.
10416 (windows_continue): Handle pending stops. Suspend other threads
10417 when stepping. Use last_wait_event
10418 (wait_for_debug_event): New function.
10419 (get_windows_debug_event): Use wait_for_debug_event. Handle
10420 pending stops. Queue spurious stops.
10421 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10422 (windows_nat_target::kill): Use wait_for_debug_event.
10423 * nat/windows-nat.h (struct windows_thread_info)
10424 <stopped_at_software_breakpoint>: New field.
10425 * nat/windows-nat.c (windows_thread_info::resume): Clear
10426 stopped_at_software_breakpoint.
10427
10428 2020-04-08 Tom Tromey <tromey@adacore.com>
10429
10430 * windows-nat.c (enum thread_disposition_type): New.
10431 (thread_rec): Replace "get_context" parameter with "disposition";
10432 change type.
10433 (windows_add_thread, windows_nat_target::fetch_registers)
10434 (windows_nat_target::store_registers, handle_exception)
10435 (windows_nat_target::resume, get_windows_debug_event)
10436 (windows_nat_target::get_tib_address)
10437 (windows_nat_target::thread_name)
10438 (windows_nat_target::thread_alive): Update.
10439
10440 2020-04-08 Tom Tromey <tromey@adacore.com>
10441
10442 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10443 (windows_continue): Use windows_continue::resume.
10444 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10445 resume>: Declare new methods.
10446 * nat/windows-nat.c: New file.
10447 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10448
10449 2020-04-08 Tom Tromey <tromey@adacore.com>
10450
10451 * windows-nat.c (windows_add_thread, windows_delete_thread)
10452 (windows_nat_target::fetch_registers)
10453 (windows_nat_target::store_registers, fake_create_process)
10454 (windows_nat_target::resume, windows_nat_target::resume)
10455 (get_windows_debug_event, windows_nat_target::wait)
10456 (windows_nat_target::pid_to_str)
10457 (windows_nat_target::get_tib_address)
10458 (windows_nat_target::get_ada_task_ptid)
10459 (windows_nat_target::thread_name)
10460 (windows_nat_target::thread_alive): Use lwp, not tid.
10461
10462 2020-04-08 Tom Tromey <tromey@adacore.com>
10463
10464 * windows-nat.c (handle_exception)
10465 (windows_nat_target::thread_name): Update.
10466 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10467 <name>: Now unique_xmalloc_ptr.
10468
10469 2020-04-08 Tom Tromey <tromey@adacore.com>
10470
10471 * windows-nat.c (thread_rec)
10472 (windows_nat_target::fetch_registers): Update.
10473 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10474 Update comment.
10475 <debug_registers_changed, reload_context>: Now bool.
10476
10477 2020-04-08 Tom Tromey <tromey@adacore.com>
10478
10479 * windows-nat.c (windows_add_thread): Use new.
10480 (windows_init_thread_list, windows_delete_thread): Use delete.
10481 (get_windows_debug_event): Update.
10482 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10483 destructor, and initializers.
10484
10485 2020-04-08 Tom Tromey <tromey@adacore.com>
10486
10487 * windows-nat.c (struct windows_thread_info): Remove.
10488 * nat/windows-nat.h: New file.
10489
10490 2020-04-08 Tom Tromey <tromey@adacore.com>
10491
10492 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10493 (thread_rec, windows_add_thread, windows_delete_thread)
10494 (windows_continue): Update.
10495
10496 2020-04-08 Tom Tromey <tromey@adacore.com>
10497
10498 * windows-nat.c (struct windows_thread_info): Remove typedef.
10499 (thread_head): Remove.
10500 (thread_list): New global.
10501 (thread_rec, windows_add_thread, windows_init_thread_list)
10502 (windows_delete_thread, windows_continue): Update.
10503
10504 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10505
10506 * windows-tdep.h (windows_init_abi): Add comment.
10507 (cygwin_init_abi): New declaration.
10508 * windows-tdep.c: Split signal enumeration in two, one for
10509 Windows and one for Cygwin.
10510 (windows_gdb_signal_to_target): Only deal with signal of the
10511 Windows OS ABI.
10512 (cygwin_gdb_signal_to_target): New function.
10513 (windows_init_abi): Rename to windows_init_abi_common, don't set
10514 gdb_signal_to_target gdbarch method. Add new new function with
10515 this name.
10516 (cygwin_init_abi): New function.
10517 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10518 comment. Don't call windows_init_abi.
10519 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10520 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10521 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10522 i386_windows_init_abi_common, don't call windows_init_abi. Add
10523 a new function of this name.
10524 (i386_cygwin_init_abi): New function.
10525 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10526 OS ABI Cygwin.
10527
10528 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10529
10530 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10531 parameter.c.
10532 (dwarf2_read_gdb_index): Update.
10533
10534 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10535
10536 * nbsd-tdep.c: Include "objfiles.h".
10537 (nbsd_skip_solib_resolver): New.
10538 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10539
10540 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10541
10542 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10543 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10544 with DW_LLE_base_addressx are being emitted in DWARFv5.
10545 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10546 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10547 unsigned integer.
10548
10549 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10550
10551 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10552 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10553 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10554 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10555 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10556 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10557 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10558
10559
10560 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10561
10562 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10563 (read_loclist_index): New function definition.
10564 (lookup_loclist_base): New function definition.
10565 (read_loclist_header): New function definition.
10566 (dwarf2_cu): Add loclist_base and loclist_header field.
10567 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10568 (read_full_die_1): Read the value of DW_AT_loclists_base.
10569 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10570 (read_attribute_value): Handle DW_FORM_loclistx.
10571 (skip_one_die): Handle DW_FORM_loclistx.
10572 (loclist_header): New structure declaration.
10573 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10574
10575 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10576
10577 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10578 constructor. Remove `addr` parameter from other constructor and
10579 add `per_cu` parameter.
10580 * dwarf2/read.c (create_partial_symtab): Update.
10581
10582 2020-04-07 Tom de Vries <tdevries@suse.de>
10583
10584 PR symtab/25796
10585 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10586 (partial_die_info::fixup): Inherit has_const_value.
10587
10588 2020-04-07 Tom de Vries <tdevries@suse.de>
10589
10590 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10591 symbols without address.
10592
10593 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10594
10595 * nbsd-nat.h (struct thread_info): Add forward declaration.
10596 (nbsd_nat_target::thread_alive): Add.
10597 (nbsd_nat_target::thread_name): Likewise.
10598 (nbsd_nat_target::update_thread_list): Likewise.
10599 (update_thread_list::post_attach): Likewise.
10600 (post_attach::pid_to_str): Likewise.
10601 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10602 (nbsd_thread_lister): Add.
10603 (nbsd_nat_target::thread_alive): Likewise.
10604 (nbsd_nat_target::thread_name): Likewise.
10605 (nbsd_add_threads): Likewise.
10606 (update_thread_list::post_attach): Likewise.
10607 (nbsd_nat_target::update_thread_list): Likewise.
10608 (post_attach::pid_to_str): Likewise.
10609
10610 2020-04-06 Tom Tromey <tromey@adacore.com>
10611
10612 * ada-valprint.c (print_variant_part): Extract the variant field.
10613 (print_field_values): Use the field as the outer value when
10614 recursing.
10615
10616 2020-04-06 Tom Tromey <tromey@adacore.com>
10617
10618 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10619 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10620 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10621 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10622 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10623
10624 2020-04-06 Tom Tromey <tromey@adacore.com>
10625
10626 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10627 TYPE_CODE_ERROR.
10628
10629 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10630
10631 * nbsd-tdep.c: Include "gdbarch.h".
10632 Define enum with NetBSD signal numbers.
10633 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10634 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10635 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10636 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10637 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10638 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10639 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10640 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10641 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10642 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10643 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10644 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10645
10646 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10647
10648 PR gdb/25325
10649 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10650
10651 2020-04-03 Tom Tromey <tromey@adacore.com>
10652
10653 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10654 Read constant block.
10655
10656 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10657
10658 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10659 (gdb_bfd_get_full_section_contents): New declaration.
10660 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10661 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10662 gdb_bfd_get_full_section_contents.
10663
10664 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * exec.c (build_section_table): Replace internal_error with
10667 gdb_assert.
10668 (section_table_xfer_memory_partial): Likewise.
10669 * mdebugread.c (parse_partial_symbols): Likewise.
10670 * psymtab.c (lookup_partial_symbol): Likewise.
10671 * utils.c (wrap_here): Likewise.
10672
10673 2020-04-02 Tom Tromey <tromey@adacore.com>
10674
10675 * f-lang.c (build_fortran_types): Use arch_type to initialize
10676 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10677
10678 2020-04-02 Tom Tromey <tromey@adacore.com>
10679
10680 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10681 of attributes.
10682
10683 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10684 Bernd Edlinger <bernd.edlinger@hotmail.de>
10685 Tom Tromey <tromey@adacore.com>
10686
10687 * buildsym.c (buildsym_compunit::record_line): Remove
10688 deduplication code.
10689
10690 2020-04-02 Tom de Vries <tdevries@suse.de>
10691
10692 PR ada/24671
10693 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10694
10695 2020-04-02 Tom de Vries <tdevries@suse.de>
10696
10697 * dwarf2/read.c (dwarf2_gdb_index_functions,
10698 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10699 NULL.
10700 * psymtab.c (psym_lookup_global_symbol_language): New function.
10701 (psym_functions): Init psym_lookup_global_symbol_language with
10702 psym_lookup_global_symbol_language.
10703 * symfile-debug.c (debug_sym_quick_functions): Init
10704 lookup_global_symbol_language with NULL.
10705 * symfile.c (set_initial_language): Remove fixme comment.
10706 * symfile.h (struct quick_symbol_functions): Add
10707 lookup_global_symbol_language.
10708 * symtab.c (find_quick_global_symbol_language): New function.
10709 (find_main_name): Use find_quick_global_symbol_language.
10710
10711 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10712
10713 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10714
10715 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10716
10717 * buildsym.c (record_line): Fix undefined behavior and preserve
10718 lines at eof.
10719
10720 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10721
10722 * buildsym.c (record_line): Fix the resizing condition.
10723
10724 2020-04-01 Tom Tromey <tom@tromey.com>
10725
10726 * value.h (value_literal_complex): Add comment.
10727 * valops.c (value_literal_complex): Refer to value.h.
10728
10729 2020-04-01 Tom Tromey <tom@tromey.com>
10730
10731 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10732 (scalar_type): New rule, from typebase.
10733 (typebase): Use scalar_type. Recognize complex types.
10734 (field_name): Handle FLOAT_KEYWORD.
10735 (ident_tokens): Add _Complex and __complex__.
10736
10737 2020-04-01 Tom Tromey <tom@tromey.com>
10738
10739 PR exp/25299:
10740 * valarith.c (promotion_type, complex_binop): New functions.
10741 (scalar_binop): Handle complex numbers. Use promotion_type.
10742 (value_pos, value_neg, value_complement): Handle complex numbers.
10743
10744 2020-04-01 Tom Tromey <tom@tromey.com>
10745
10746 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10747 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10748 (parse_number): Handle complex numbers.
10749
10750 2020-04-01 Tom Tromey <tom@tromey.com>
10751
10752 * c-valprint.c (c_decorations): Change complex suffix to "i".
10753
10754 2020-04-01 Tom Tromey <tom@tromey.com>
10755
10756 * valprint.c (generic_value_print_complex): Use accessors.
10757 * value.h (value_real_part, value_imaginary_part): Declare.
10758 * valops.c (value_real_part, value_imaginary_part): New
10759 functions.
10760 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10761
10762 2020-04-01 Tom Tromey <tom@tromey.com>
10763
10764 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10765 (read_range_type): Update.
10766 * mdebugread.c (basic_type): Update.
10767 * go-lang.c (build_go_types): Use init_complex_type.
10768 * gdbtypes.h (struct main_type) <complex_type>: New member.
10769 (init_complex_type): Update.
10770 (arch_complex_type): Don't declare.
10771 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10772 Make name if none given. Use alloc_type_copy. Look for cached
10773 complex type.
10774 (arch_complex_type): Remove.
10775 (gdbtypes_post_init): Use init_complex_type.
10776 * f-lang.c (build_fortran_types): Use init_complex_type.
10777 * dwarf2/read.c (read_base_type): Update.
10778 * d-lang.c (build_d_types): Use init_complex_type.
10779 * ctfread.c (read_base_type): Update.
10780
10781 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10782
10783 * infrun.c (stop_all_threads): Update assertion, plus when
10784 stopping threads, take into account that we might be trying
10785 to stop an all-stop target.
10786 (stop_waiting): Call 'stop_all_threads' if there exists a
10787 non-stop target.
10788
10789 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10790
10791 * target.h (exists_non_stop_target): New function declaration.
10792 * target.c (exists_non_stop_target): New function.
10793
10794 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10795
10796 PR gdb/24789
10797 * eval.c (is_integral_or_integral_reference): New function.
10798 (evaluate_subexp_standard): Allow integer references in
10799 pointer arithmetic.
10800
10801 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10802
10803 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10804 check for no ptid in the stop reply when the target is non-stop.
10805
10806 2020-04-01 Tom Tromey <tromey@adacore.com>
10807
10808 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10809 "name" parameter to rvalue reference. Initialize m_name_holder.
10810 <lookup_name_info>: New overloads.
10811 <name>: Return gdb::string_view.
10812 <c_str>: New method.
10813 <make_ignore_params>: Update.
10814 <search_name_hash>: Update.
10815 <language_lookup_name>: Return const char *.
10816 <m_name>: Change type.
10817 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10818 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10819 (lookup_name_info::match_any): Update.
10820 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10821 Update.
10822 * minsyms.c (linkage_name_str): Update.
10823 * language.c (default_symbol_name_matcher): Update.
10824 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10825 Update.
10826 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10827 (ada_lookup_name_info::ada_lookup_name_info): Update.
10828 (literal_symbol_name_matcher): Update.
10829
10830 2020-04-01 Tom Tromey <tromey@adacore.com>
10831
10832 * psymtab.c (psymtab_search_name): Remove function.
10833 (psym_lookup_symbol): Create search name and lookup name here.
10834 (lookup_partial_symbol): Remove "name" parameter; add
10835 lookup_name.
10836 (psym_expand_symtabs_for_function): Update.
10837
10838 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10839
10840 PR tui/25597:
10841 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10842
10843 2020-03-31 Tom Tromey <tromey@adacore.com>
10844
10845 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10846 memcpy.
10847
10848 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10849
10850 * features/riscv/32bit-csr.xml: Regenerated.
10851 * features/riscv/64bit-csr.xml: Regenerated.
10852
10853 2020-03-30 Tom Tromey <tromey@adacore.com>
10854
10855 * ada-valprint.c (print_variant_part): Update.
10856 * ada-lang.h (ada_which_variant_applies): Update.
10857 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10858 outer_valaddr parameters; replace with "outer" value parameter.
10859 (to_fixed_variant_branch_type): Update.
10860
10861 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10862
10863 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10864 <list>. Remove inclusion of observable.h.
10865 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10866 (struct arch_lwp_info): New struct.
10867 (class ppc_linux_dreg_interface): New class.
10868 (struct ppc_linux_process_info): New struct.
10869 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10870 <low_new_clone, low_forget_process, low_prepare_to_resume>
10871 <copy_thread_dreg_state, mark_thread_stale>
10872 <mark_debug_registers_changed, register_hw_breakpoint>
10873 <clear_hw_breakpoint, register_wp, clear_wp>
10874 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10875 <num_memory_accesses, get_trigger_type>
10876 <create_watchpoint_request, hwdebug_point_cmp>
10877 <init_arch_lwp_info, get_arch_lwp_info>
10878 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10879 methods.
10880 <struct ptid_hash>: New inner struct.
10881 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10882 members.
10883 (saved_dabr_value, hwdebug_info, max_slots_number)
10884 (struct hw_break_tuple, struct thread_points, ppc_threads)
10885 (have_ptrace_hwdebug_interface)
10886 (hwdebug_find_thread_points_by_tid)
10887 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10888 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10889 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10890 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10891 use m_dreg_interface.
10892 (hwdebug_point_cmp): Change to...
10893 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10894 reference arguments instead of pointers.
10895 (ppc_linux_nat_target::ranged_break_num_registers): Use
10896 m_dreg_interface.
10897 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10898 m_dreg_interface. Call register_hw_breakpoint.
10899 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10900 m_dreg_interface. Call clear_hw_breakpoint.
10901 (get_trigger_type): Change to...
10902 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10903 comment.
10904 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10905 use m_dreg_interface. Call register_hw_breakpoint.
10906 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10907 use m_dreg_interface. Call clear_hw_breakpoint.
10908 (can_use_watchpoint_cond_accel): Change to...
10909 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10910 method. Update comment, use m_dreg_interface and
10911 m_process_info.
10912 (calculate_dvc): Change to...
10913 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10914 m_dreg_interface.
10915 (num_memory_accesses): Change to...
10916 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10917 (check_condition): Change to...
10918 (ppc_linux_nat_target::check_condition): ...this method.
10919 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10920 comment, use m_dreg_interface.
10921 (create_watchpoint_request): Change to...
10922 (ppc_linux_nat_target::create_watchpoint_request): ...this
10923 method. Use m_dreg_interface.
10924 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10925 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10926 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10927 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10928 (ppc_linux_nat_target::low_forget_process)
10929 (ppc_linux_nat_target::low_new_fork)
10930 (ppc_linux_nat_target::low_new_clone)
10931 (ppc_linux_nat_target::low_delete_thread)
10932 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10933 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10934 only call mark_thread_stale.
10935 (ppc_linux_thread_exit): Remove.
10936 (ppc_linux_nat_target::stopped_data_address): Change to...
10937 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10938 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10939 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10940 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10941 comment. Call low_stopped_data_address.
10942 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10943 m_dreg_interface.
10944 (ppc_linux_nat_target::masked_watch_num_registers): Use
10945 m_dreg_interface.
10946 (ppc_linux_nat_target::copy_thread_dreg_state)
10947 (ppc_linux_nat_target::mark_thread_stale)
10948 (ppc_linux_nat_target::mark_debug_registers_changed)
10949 (ppc_linux_nat_target::register_hw_breakpoint)
10950 (ppc_linux_nat_target::clear_hw_breakpoint)
10951 (ppc_linux_nat_target::register_wp)
10952 (ppc_linux_nat_target::clear_wp)
10953 (ppc_linux_nat_target::init_arch_lwp_info)
10954 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10955 (_initialize_ppc_linux_nat): Remove observer callback.
10956
10957 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10958
10959 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10960 (ppc_linux_nat_target::auxv_parse)
10961 (ppc_linux_nat_target::read_description)
10962 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10963 Move up.
10964
10965 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10966
10967 * linux-nat.h (low_new_clone): New method.
10968 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10969
10970 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10971
10972 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10973 (dbx_expand_psymtab): ... this.
10974 (start_psymtab): Update.
10975 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10976 (mdebug_expand_psymtab): ... this.
10977 (parse_partial_symbols): Update.
10978 (new_psymtab): Update.
10979 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10980 (xcoff_expand_psymtab): ... this.
10981 (xcoff_start_psymtab): Update.
10982
10983 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10984
10985 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10986 <expand_dependencies>: ... this.
10987 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10988 (partial_symtab::expand_dependencies): ... this.
10989 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10990 Update.
10991 (dwarf2_psymtab::expand_psymtab): Update.
10992 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10993 * mdebugread.c (psymtab_to_symtab_1): Update.
10994 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10995
10996 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10997
10998 * psympriv.h (discard_psymtab): Remove.
10999 * dbxread.c (dbx_end_psymtab): Update.
11000 * xcoffread.c (xcoff_end_psymtab): Update.
11001
11002 2020-03-28 Tom Tromey <tom@tromey.com>
11003
11004 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11005 comment.
11006
11007 2020-03-28 Tom Tromey <tom@tromey.com>
11008
11009 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11010
11011 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11012
11013 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11014
11015 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11016
11017 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11018
11019 2020-03-26 Tom Tromey <tom@tromey.com>
11020
11021 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11022 (mark_common_block_symbol_computed, read_tag_string_type)
11023 (attr_to_dynamic_prop, read_subrange_type): Update.
11024 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11025 to be methods on struct attribute.
11026 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11027 (read_call_site_scope, partial_die_info::read)
11028 (partial_die_info::read, lookup_die_type, follow_die_ref):
11029 Update.
11030 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11031 from dwarf2_get_ref_die_offset.
11032 (attribute::constant_value): New method, from
11033 dwarf2_get_attr_constant_value.
11034 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11035 Declare method.
11036 <constant_value>: New method.
11037
11038 2020-03-26 Tom Tromey <tom@tromey.com>
11039
11040 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11041 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11042 (dwarf_type_encoding_name): Move to stringify.c.
11043 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11044 * dwarf2/stringify.c: New file.
11045 * dwarf2/stringify.h: New file.
11046
11047 2020-03-26 Tom Tromey <tom@tromey.com>
11048
11049 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11050 Rewrite.
11051
11052 2020-03-26 Tom Tromey <tom@tromey.com>
11053
11054 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11055 methods.
11056 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11057 (lookup_ranges_base): Likewise.
11058 (read_cutu_die_from_dwo, read_full_die_1): Update.
11059
11060 2020-03-26 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2/read.c (read_import_statement, read_file_scope)
11063 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11064 (read_lexical_block_scope, read_call_site_scope)
11065 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11066 (handle_struct_member_die, process_structure_scope)
11067 (update_enumeration_type_from_children)
11068 (process_enumeration_scope, read_array_type, read_common_block)
11069 (read_namespace, read_module, read_subroutine_type): Update.
11070 (sibling_die): Remove.
11071
11072 2020-03-26 Tom Tromey <tom@tromey.com>
11073
11074 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11075 (build_type_psymtabs_reader, read_structure_type)
11076 (read_enumeration_type, read_full_die_1): Update.
11077 (dwarf2_attr_no_follow): Move to die.h.
11078 * dwarf2/die.h (struct die_info) <attr>: New method.
11079
11080 2020-03-26 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11083 <base_address>: Now an optional.
11084 (dwarf2_find_base_address, dwarf2_rnglists_process)
11085 (dwarf2_ranges_process, fill_in_loclist_baton)
11086 (dwarf2_symbol_mark_computed): Update.
11087
11088 2020-03-26 Tom Tromey <tom@tromey.com>
11089
11090 * dwarf2/read.c (struct die_info): Move to die.h.
11091 * dwarf2/die.h: New file.
11092
11093 2020-03-26 Tom Tromey <tom@tromey.com>
11094
11095 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11096 * dwarf2/read.c
11097 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11098 Move to line-header.c.
11099 (read_checked_initial_length_and_offset, read_formatted_entries):
11100 Likewise.
11101 (dwarf_decode_line_header): Split into two.
11102 * dwarf2/line-header.c
11103 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11104 Move from read.c.
11105 (read_checked_initial_length_and_offset, read_formatted_entries):
11106 Likewise.
11107 (dwarf_decode_line_header): New function, split from read.c.
11108
11109 2020-03-26 Tom Tromey <tom@tromey.com>
11110
11111 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11112 Declare method.
11113 * dwarf2/read.c (read_attribute_value): Update.
11114 (dwarf2_per_objfile::read_line_string): Rename from
11115 read_indirect_line_string.
11116 (read_formatted_entries): Update.
11117
11118 2020-03-26 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11121 variable.
11122
11123 2020-03-26 Tom Tromey <tom@tromey.com>
11124
11125 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11126 const.
11127 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11128 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11129 parameter const.
11130
11131 2020-03-26 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11134 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11135 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11136 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11137
11138 2020-03-26 Tom Tromey <tom@tromey.com>
11139
11140 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11141 file_names_size, file_full_name, file_file_name>: Use const.
11142 <file_name_at, file_names>: Add const overload.
11143 * dwarf2/line-header.c (line_header::file_file_name)
11144 (line_header::file_full_name): Update.
11145
11146 2020-03-26 Tom Tromey <tom@tromey.com>
11147
11148 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11149 (macro_start_file, consume_improper_spaces)
11150 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11151 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11152 (dwarf_decode_macros): Move to macro.c.
11153 * dwarf2/macro.c: New file.
11154 * dwarf2/macro.h: New file.
11155 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11156
11157 2020-03-26 Tom Tromey <tom@tromey.com>
11158
11159 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11160 method.
11161 * dwarf2/section.c: New method. From
11162 read_indirect_string_at_offset_from.
11163 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11164 (read_indirect_string_at_offset_from): Move to section.c.
11165 (read_indirect_string_at_offset): Rewrite.
11166 (read_indirect_line_string_at_offset): Remove.
11167 (read_indirect_string, read_indirect_line_string)
11168 (dwarf_decode_macro_bytes): Update.
11169
11170 2020-03-26 Tom Tromey <tom@tromey.com>
11171
11172 * dwarf2/section.h (struct dwarf2_section_info)
11173 <overload_complaint>: Declare.
11174 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11175 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11176 Rename from dwarf2_section_buffer_overflow_complaint.
11177 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11178 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11179
11180 2020-03-26 Tom Tromey <tom@tromey.com>
11181
11182 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11183 Declare.
11184 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11185 Move from read.c.
11186 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11187 to section.c.
11188
11189 2020-03-26 Tom Tromey <tom@tromey.com>
11190
11191 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11192
11193 2020-03-26 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11196 "builder".
11197 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11198 parameter.
11199 (dwarf_decode_macros): Update.
11200
11201 2020-03-26 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/read.c (read_attribute_value): Update.
11204 (read_indirect_string_from_dwz): Move to dwz.c; change into
11205 method.
11206 (dwarf_decode_macro_bytes): Update.
11207 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11208 * dwarf2/dwz.c: New file.
11209 * Makefile.in (COMMON_SFILES): Add dwz.c.
11210
11211 2020-03-26 Tom Tromey <tom@tromey.com>
11212
11213 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11214 * dwarf2/read.c: Add include.
11215 * dwarf2/index-write.c: Add include.
11216 * dwarf2/index-cache.c: Add include.
11217 * dwarf2/dwz.h: New file.
11218
11219 2020-03-25 Tom Tromey <tom@tromey.com>
11220
11221 * compile/compile-object-load.c (get_out_value_type): Mention
11222 correct symbol name in error message.
11223
11224 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11225
11226 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11227
11228 2020-03-25 Tom de Vries <tdevries@suse.de>
11229
11230 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11231 * symmisc.c (dump_symtab_1): Print user and includes fields.
11232 (maintenance_info_symtabs): Same.
11233
11234 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11235
11236 PR gdb/25534
11237 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11238 (riscv_regcache_cooked_write): New function.
11239 (riscv_push_dummy_call): Use new function.
11240 (riscv_return_value): Likewise.
11241
11242 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11243
11244 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11245 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11246 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11247 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11248 * infrun.c (follow_fork): Likewise.
11249 (follow_fork_inferior): Likewise.
11250 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11251 * linux-nat.h (class linux_nat_target): Likewise.
11252 * remote.c (class remote_target) <follow_fork>: Likewise.
11253 (remote_target::follow_fork): Likewise.
11254 * target-delegates.c: Re-generate.
11255 * target.c (default_follow_fork): Likewise.
11256 (target_follow_fork): Likewise.
11257 * target.h (struct target_ops) <follow_fork>: Likewise.
11258 (target_follow_fork): Likewise.
11259
11260 2020-03-24 Tom de Vries <tdevries@suse.de>
11261
11262 * psymtab.c (maintenance_info_psymtabs): Print user field.
11263
11264 2020-03-20 Tom Tromey <tromey@adacore.com>
11265
11266 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11267 const.
11268 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11269 const.
11270
11271 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11272
11273 * ptrace.m4: Don't check for ptrace declaration.
11274 * config.in: Re-generate.
11275 * configure: Re-generate.
11276 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11277 not defined.
11278
11279 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11280
11281 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11282 `PTRACE_TYPE_RET'.
11283 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11284 * sparc-nat.c (gdb_ptrace): Likewise.
11285 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11286
11287 2020-03-20 Tom Tromey <tromey@adacore.com>
11288
11289 * c-exp.y (lex_one_token): Fix assert.
11290
11291 2020-03-20 Tom Tromey <tromey@adacore.com>
11292
11293 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11294 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11295 strncpy call.
11296
11297 2020-03-20 Tom Tromey <tromey@adacore.com>
11298
11299 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11300
11301 2020-03-20 Tom Tromey <tromey@adacore.com>
11302
11303 * ada-valprint.c (print_variant_part): Remove parameters; switch
11304 to value-based API.
11305 (print_field_values): Likewise.
11306 (ada_val_print_struct_union): Likewise.
11307 (ada_value_print_1): Update.
11308
11309 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11310
11311 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11312 nbsd_nat_target instead of inf_ptrace_target.
11313 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11314 nbsd_nat_target.
11315
11316 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11317
11318 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11319 it to the ptrace call.
11320 * (store_registers): Likewise.
11321
11322 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11323
11324 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11325 it to the ptrace call.
11326 * (store_registers): Likewise.
11327
11328 2020-03-19 Luis Machado <luis.machado@linaro.org>
11329
11330 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11331 valid, fetch vg value from ptrace.
11332
11333 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11334 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11335 * inf-ptrace.c: Likewise.
11336 * (gdb_ptrace): Add.
11337 * (inf_ptrace_target::resume): Update.
11338 * (inf_ptrace_target::xfer_partial): Likewise.
11339 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11340 * (inf_ptrace_peek_poke): Update.
11341
11342 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11343
11344 * x86-bsd-nat.c (gdb_ptrace): New.
11345 * (x86bsd_dr_set): Add new argument `ptid'.
11346 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11347 x86bsd_dr_set_addr): Update.
11348
11349 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11350
11351 * remote.c (remote_target::process_stop_reply): Handle events for
11352 all threads differently.
11353
11354 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11355
11356 * completer.c (completion_tracker::remove_completion): Define new
11357 function.
11358 * completer.h (completion_tracker::remove_completion): Declare new
11359 function.
11360 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11361 when adding a C++ function symbol.
11362
11363 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11364
11365 * completer.c (completion_tracker::completion_hash_entry): Define
11366 new class.
11367 (advance_to_filename_complete_word_point): Call
11368 recompute_lowest_common_denominator.
11369 (completion_tracker::completion_tracker): Call discard_completions
11370 to setup the hash table.
11371 (completion_tracker::discard_completions): Allow for being called
11372 from the constructor, pass new equal function, and element deleter
11373 when constructing the hash table. Initialise new class member
11374 variables.
11375 (completion_tracker::maybe_add_completion): Remove use of
11376 m_entries_vec, and store more information into m_entries_hash.
11377 (completion_tracker::recompute_lcd_visitor): New function, most
11378 content taken from...
11379 (completion_tracker::recompute_lowest_common_denominator):
11380 ...here, this now just visits each item in the hash calling the
11381 above visitor.
11382 (completion_tracker::build_completion_result): Remove use of
11383 m_entries_vec, call recompute_lowest_common_denominator.
11384 * completer.h (completion_tracker::have_completions): Remove use
11385 of m_entries_vec.
11386 (completion_tracker::completion_hash_entry): Declare new class.
11387 (completion_tracker::recompute_lowest_common_denominator): Change
11388 function signature.
11389 (completion_tracker::recompute_lcd_visitor): Declare new function.
11390 (completion_tracker::m_entries_vec): Delete.
11391 (completion_tracker::m_entries_hash): Initialize to NULL.
11392 (completion_tracker::m_lowest_common_denominator_valid): New
11393 member variable.
11394 (completion_tracker::m_lowest_common_denominator_max_length): New
11395 member variable.
11396
11397 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11398
11399 * regformats/regdef.h: Put reg in gdb namespace.
11400
11401 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11402
11403 * i386-bsd-nat.c (gdb_ptrace): New.
11404 * (i386bsd_fetch_inferior_registers,
11405 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11406 * (i386bsd_fetch_inferior_registers,
11407 i386bsd_store_inferior_registers) Use gdb_ptrace.
11408
11409 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11410
11411 * amd64-bsd-nat.c (gdb_ptrace): New.
11412 * (amd64bsd_fetch_inferior_registers,
11413 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11414 * (amd64bsd_fetch_inferior_registers,
11415 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11416
11417 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11418
11419 * user-regs.c (user_reg::read): Rename to...
11420 (user_reg::xread): ...this.
11421 * (append_user_reg): Rename argument `read' to `xread'.
11422 * (user_reg_add_builtin): Likewise.
11423 * (user_reg_add): Likewise.
11424 * (value_of_user_reg): Likewise.
11425
11426 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11427
11428 * sparc-nat.c (gdb_ptrace): New.
11429 * sparc-nat.c (sparc_fetch_inferior_registers)
11430 (sparc_store_inferior_registers) Remove obsolete comment.
11431 * sparc-nat.c (sparc_fetch_inferior_registers)
11432 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11433 * sparc-nat.c (sparc_fetch_inferior_registers)
11434 (sparc_store_inferior_registers) Use gdb_ptrace.
11435
11436 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11437
11438 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11439 it to the ptrace call.
11440 * sh-nbsd-nat.c (store_registers): Likewise.
11441
11442 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11443
11444 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11445 nbsd_nat_target instead of inf_ptrace_target.
11446 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11447 nbsd_nat_target.
11448
11449 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11450
11451 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11452
11453 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11454
11455 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11456 <sys/sysctl.h>.
11457 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11458
11459 2020-03-17 Tom de Vries <tdevries@suse.de>
11460
11461 PR gdb/23710
11462 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11463 fields.
11464 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11465 fields.
11466 (process_imported_unit_die): Skip import of c++ CUs.
11467
11468 2020-03-16 Tom Tromey <tom@tromey.com>
11469
11470 * p-valprint.c (pascal_object_print_value): Initialize
11471 base_value.
11472
11473 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11474 Shahab Vahedi <shahab@synopsys.com>
11475
11476 * Makefile.in: Add arch/arc.o
11477 * configure.tgt: Likewise.
11478 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11479 (_initialize_arc_tdep): Don't initialize old target descriptions.
11480 (arc_read_description): New function to cache target descriptions.
11481 * arc-tdep.h (arc_read_description): Add proto type.
11482 * arch/arc.c: New file.
11483 * arch/arc.h: Likewise.
11484 * features/Makefile: Replace old target descriptions with new.
11485 * features/arc-arcompact.c: Remove.
11486 * features/arc-arcompact.xml: Likewise.
11487 * features/arc-v2.c: Likewise
11488 * features/arc-v2.xml: Likewise
11489 * features/arc/aux-arcompact.xml: New file.
11490 * features/arc/aux-v2.xml: Likewise.
11491 * features/arc/core-arcompact.xml: Likewise.
11492 * features/arc/core-v2.xml: Likewise.
11493 * features/arc/aux-arcompact.c: Generate.
11494 * features/arc/aux-v2.c: Likewise.
11495 * features/arc/core-arcompact.c: Likewise.
11496 * features/arc/core-v2.c: Likewise.
11497 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11498
11499 2020-03-16 Tom Tromey <tromey@adacore.com>
11500
11501 PR gdb/25663:
11502 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11503 putting value into bcache.
11504
11505 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11506
11507 PR gdb/21500
11508 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11509 to...
11510 (amd64_windows_init_abi_common): ... this. Don't set size of
11511 long type.
11512 (amd64_windows_init_abi): New function.
11513 (amd64_cygwin_init_abi): New function.
11514 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11515 the Cygwin OS ABI.
11516 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11517 comment.
11518
11519 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11520
11521 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11522 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11523 (pe_import_directory_entry): New struct type.
11524 (is_linked_with_cygwin_dll): New function.
11525 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11526 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11527 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11528
11529 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11530
11531 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11532 i386_cygwin_core_osabi_sniffer.
11533
11534 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11535
11536 * i386-cygwin-tdep.c: Rename to...
11537 * i386-windows-tdep.c: ... this.
11538 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11539 i386-windows-tdep.c.
11540 * configure.tgt: Likewise.
11541
11542 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11543
11544 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11545 * osabi.c (gdb_osabi_names): Add "Windows".
11546 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11547 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11548 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11549 i386_cygwin_osabi_sniffer.
11550 (_initialize_i386_cygwin_tdep): Register OS ABI
11551 GDB_OSABI_WINDOWS for i386.
11552 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11553 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11554 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11555 for x86-64.
11556 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11557 when the target matches '*-*-mingw*'.
11558
11559 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11560
11561 * defs.h (enum gdb_osabi): Move to...
11562 * osabi.h (enum gdb_osabi): ... here.
11563 * gdbarch.sh: Include osabi.h in gdbarch.h.
11564 * gdbarch.h: Re-generate.
11565
11566 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11567
11568 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11569 function.
11570 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11571
11572 2020-03-14 Tom Tromey <tom@tromey.com>
11573
11574 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11575 for C++.
11576 (c_type_print_modifier): Likewise. Add "language" parameter.
11577 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11578 (c_type_print_base_1): Update.
11579 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11580 constants.
11581 * type-stack.c (type_stack::insert): Handle tp_atomic and
11582 tp_restrict.
11583 (type_stack::follow_type_instance_flags): Likewise.
11584 (type_stack::follow_types): Likewise. Merge type-following code.
11585 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11586 (space_identifier, cv_with_space_id)
11587 (const_or_volatile_or_space_identifier_noopt)
11588 (const_or_volatile_or_space_identifier): Remove.
11589 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11590 rules.
11591 (ptr_operator, typebase): Update.
11592 (enum token_flag) <FLAG_C>: New constant.
11593 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11594 "_Atomic".
11595 (lex_one_token): Handle FLAG_C.
11596
11597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11598
11599 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11600 it to the ptrace call.
11601 * m68k-bsd-nat.c (store_registers): Likewise.
11602
11603 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11604
11605 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11606 gdb_byte *.
11607 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11608 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11609 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11610
11611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11612
11613 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11614 nbsd_nat_target instead of inf_ptrace_target.
11615 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11616 nbsd_nat_target.
11617
11618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11619
11620 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11621 register_t.
11622
11623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11624
11625 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11626 it to the ptrace call.
11627 * alpha-bsd-nat.c (store_registers): Likewise.
11628
11629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11630
11631 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11632 includes.
11633 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11634 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11635 fill_fpregset): Likewise.
11636
11637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11638
11639 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11640 nbsd_nat_target instead of inf_ptrace_target.
11641 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11642 nbsd_nat_target.
11643
11644 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11645
11646 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11647 register_t.
11648
11649 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11650
11651 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11652 it to the ptrace call.
11653 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11654 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11655 * arm-nbsd-nat.c (store_register): Likewise.
11656 * arm-nbsd-nat.c (store_regs): Likewise.
11657 * arm-nbsd-nat.c (store_fp_register): Likewise.
11658 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11659
11660 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11661
11662 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11663 nbsd_nat_target instead of inf_ptrace_target.
11664 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11665 nbsd_nat_target.
11666
11667 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11668
11669 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11670 it to the ptrace call.
11671 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11672
11673 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11674
11675 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11676 it to the ptrace call.
11677 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11678
11679 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11680
11681 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11682 gdb_byte *.
11683 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11684
11685 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11686
11687 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11688 instead of inf_ptrace_target.
11689 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11690 nbsd_nat_target.
11691
11692 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11693
11694 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11695 register_t.
11696
11697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11698
11699 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11700 register_t.
11701
11702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11703
11704 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11705 register_t.
11706
11707 2020-03-13 Tom Tromey <tom@tromey.com>
11708
11709 * value.h (val_print): Don't declare.
11710 * valprint.h (val_print_array_elements)
11711 (val_print_scalar_formatted, generic_val_print): Don't declare.
11712 * valprint.c (generic_val_print_array): Take a struct value.
11713 (generic_val_print_ptr, generic_val_print_memberptr)
11714 (generic_val_print_bool, generic_val_print_int)
11715 (generic_val_print_char, generic_val_print_complex)
11716 (generic_val_print): Remove.
11717 (generic_value_print): Update.
11718 (do_val_print): Remove unused parameters. Don't call
11719 la_val_print.
11720 (val_print): Remove.
11721 (common_val_print): Update. Don't call value_check_printable.
11722 (val_print_scalar_formatted, val_print_array_elements): Remove.
11723 * rust-lang.c (rust_val_print): Remove.
11724 (rust_language_defn): Update.
11725 * p-valprint.c (pascal_val_print): Remove.
11726 (pascal_value_print_inner): Update.
11727 (pascal_object_print_val_fields, pascal_object_print_val):
11728 Remove.
11729 (pascal_object_print_static_field): Update.
11730 * p-lang.h (pascal_val_print): Don't declare.
11731 * p-lang.c (pascal_language_defn): Update.
11732 * opencl-lang.c (opencl_language_defn): Update.
11733 * objc-lang.c (objc_language_defn): Update.
11734 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11735 * m2-lang.h (m2_val_print): Don't declare.
11736 * m2-lang.c (m2_language_defn): Update.
11737 * language.h (struct language_defn) <la_val_print>: Remove.
11738 * language.c (unk_lang_value_print_inner): Rename. Change
11739 argument types.
11740 (unknown_language_defn, auto_language_defn): Update.
11741 * go-valprint.c (go_val_print): Remove.
11742 * go-lang.h (go_val_print): Don't declare.
11743 * go-lang.c (go_language_defn): Update.
11744 * f-valprint.c (f_val_print): Remove.
11745 * f-lang.h (f_value_print): Don't declare.
11746 * f-lang.c (f_language_defn): Update.
11747 * d-valprint.c (d_val_print): Remove.
11748 * d-lang.h (d_value_print): Don't declare.
11749 * d-lang.c (d_language_defn): Update.
11750 * cp-valprint.c (cp_print_value_fields)
11751 (cp_print_value_fields_rtti, cp_print_value): Remove.
11752 (cp_print_static_field): Update.
11753 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11754 (c_val_print_struct, c_val_print_union, c_val_print_int)
11755 (c_val_print_memberptr, c_val_print): Remove.
11756 * c-lang.h (c_val_print_array, cp_print_value_fields)
11757 (cp_print_value_fields_rtti): Don't declare.
11758 * c-lang.c (c_language_defn, cplus_language_defn)
11759 (asm_language_defn, minimal_language_defn): Update.
11760 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11761 (ada_val_print_enum): Take a struct value.
11762 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11763 (ada_val_print): Remove.
11764 (ada_value_print_1): Update.
11765 (printable_val_type): Remove.
11766 * ada-lang.h (ada_val_print): Don't declare.
11767 * ada-lang.c (ada_language_defn): Update.
11768
11769 2020-03-13 Tom Tromey <tom@tromey.com>
11770
11771 * valprint.c (do_val_print): Update.
11772 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11773 a struct value.
11774 (value_to_value_object_no_release): Declare.
11775 * python/py-value.c (value_to_value_object_no_release): New
11776 function.
11777 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11778 struct value.
11779 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11780 function.
11781 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11782 a struct value.
11783 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11784 Declare.
11785 (gdbscm_apply_val_pretty_printer): Take a struct value.
11786 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11787 value.
11788 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11789 value.
11790 * extension-priv.h (struct extension_language_ops)
11791 <apply_val_pretty_printer>: Take a struct value.
11792 * cp-valprint.c (cp_print_value): Create a struct value.
11793 (cp_print_value): Update.
11794
11795 2020-03-13 Tom Tromey <tom@tromey.com>
11796
11797 * ada-valprint.c (print_field_values): Call common_val_print.
11798
11799 2020-03-13 Tom Tromey <tom@tromey.com>
11800
11801 * ada-valprint.c (val_print_packed_array_elements): Remove
11802 bitoffset and val parameters. Call common_val_print.
11803 (ada_val_print_string): Remove offset, address, and original_value
11804 parameters.
11805 (ada_val_print_array): Update.
11806 (ada_value_print_array): New function.
11807 (ada_value_print_1): Call it.
11808
11809 2020-03-13 Tom Tromey <tom@tromey.com>
11810
11811 * ada-valprint.c (ada_value_print): Use common_val_print.
11812
11813 2020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11816
11817 2020-03-13 Tom Tromey <tom@tromey.com>
11818
11819 * ada-valprint.c (ada_value_print_num): New function.
11820 (ada_value_print_1): Use it.
11821
11822 2020-03-13 Tom Tromey <tom@tromey.com>
11823
11824 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11825
11826 2020-03-13 Tom Tromey <tom@tromey.com>
11827
11828 * ada-valprint.c (ada_value_print_ptr): New function.
11829 (ada_value_print_1): Use it.
11830
11831 2020-03-13 Tom Tromey <tom@tromey.com>
11832
11833 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11834 call common_val_print.
11835 (ada_val_print_1): Update.
11836 (ada_value_print_1): New function.
11837 (ada_value_print_inner): Rewrite.
11838
11839 2020-03-13 Tom Tromey <tom@tromey.com>
11840
11841 * cp-valprint.c (cp_print_value_fields): Update.
11842 (cp_print_value): New function.
11843
11844 2020-03-13 Tom Tromey <tom@tromey.com>
11845
11846 * m2-valprint.c (m2_value_print_inner): Use
11847 cp_print_value_fields.
11848 * cp-valprint.c (cp_print_value_fields): New function.
11849 * c-valprint.c (c_value_print_struct): New function.
11850 (c_value_print_inner): Use c_value_print_struct.
11851 * c-lang.h (cp_print_value_fields): Declare.
11852
11853 2020-03-13 Tom Tromey <tom@tromey.com>
11854
11855 * c-valprint.c (c_value_print_array): New function.
11856 (c_value_print_inner): Use it.
11857
11858 2020-03-13 Tom Tromey <tom@tromey.com>
11859
11860 * c-valprint.c (c_value_print_memberptr): New function.
11861 (c_value_print_inner): Use it.
11862
11863 2020-03-13 Tom Tromey <tom@tromey.com>
11864
11865 * c-valprint.c (c_value_print_int): New function.
11866 (c_value_print_inner): Use it.
11867
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11869
11870 * c-valprint.c (c_value_print_ptr): New function.
11871 (c_value_print_inner): Use it.
11872
11873 2020-03-13 Tom Tromey <tom@tromey.com>
11874
11875 * c-valprint.c (c_value_print_inner): Rewrite.
11876
11877 2020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * valprint.c (generic_value_print_complex): New function.
11880 (generic_value_print): Use it.
11881
11882 2020-03-13 Tom Tromey <tom@tromey.com>
11883
11884 * valprint.c (generic_val_print_float): Don't call
11885 val_print_scalar_formatted.
11886 (generic_val_print, generic_value_print): Update.
11887
11888 2020-03-13 Tom Tromey <tom@tromey.com>
11889
11890 * valprint.c (generic_value_print_char): New function
11891 (generic_value_print): Use it.
11892
11893 2020-03-13 Tom Tromey <tom@tromey.com>
11894
11895 * valprint.c (generic_value_print_int): New function.
11896 (generic_value_print): Use it.
11897
11898 2020-03-13 Tom Tromey <tom@tromey.com>
11899
11900 * valprint.c (generic_value_print_bool): New function.
11901 (generic_value_print): Use it.
11902
11903 2020-03-13 Tom Tromey <tom@tromey.com>
11904
11905 * valprint.c (generic_val_print_func): Simplify.
11906 (generic_val_print, generic_value_print): Update.
11907
11908 2020-03-13 Tom Tromey <tom@tromey.com>
11909
11910 * valprint.c (generic_val_print_flags): Remove.
11911 (generic_val_print, generic_value_print): Update.
11912 (val_print_type_code_flags): Add original_value parameter.
11913
11914 2020-03-13 Tom Tromey <tom@tromey.com>
11915
11916 * valprint.c (generic_val_print): Update.
11917 (generic_value_print): Update.
11918 * valprint.c (generic_val_print_enum): Don't call
11919 val_print_scalar_formatted.
11920
11921 2020-03-13 Tom Tromey <tom@tromey.com>
11922
11923 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11924 * valprint.c (generic_value_print_ptr): New function.
11925
11926 2020-03-13 Tom Tromey <tom@tromey.com>
11927
11928 * valprint.c (generic_value_print): Rewrite.
11929
11930 2020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * p-valprint.c (pascal_object_print_value_fields)
11933 (pascal_object_print_value): New functions.
11934
11935 2020-03-13 Tom Tromey <tom@tromey.com>
11936
11937 * p-valprint.c (pascal_value_print_inner): Rewrite.
11938
11939 2020-03-13 Tom Tromey <tom@tromey.com>
11940
11941 * f-valprint.c (f_value_print_innner): Rewrite.
11942
11943 2020-03-13 Tom Tromey <tom@tromey.com>
11944
11945 * m2-valprint.c (m2_print_unbounded_array): New overload.
11946 (m2_print_unbounded_array): Update.
11947 (m2_print_array_contents): Take a struct value.
11948 (m2_value_print_inner): Rewrite.
11949
11950 2020-03-13 Tom Tromey <tom@tromey.com>
11951
11952 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11953 (d_value_print_inner): New function.
11954 * d-lang.h (d_value_print_inner): Declare.
11955 * d-lang.c (d_language_defn): Use d_value_print_inner.
11956
11957 2020-03-13 Tom Tromey <tom@tromey.com>
11958
11959 * go-valprint.c (go_value_print_inner): New function.
11960 * go-lang.h (go_value_print_inner): Declare.
11961 * go-lang.c (go_language_defn): Use go_value_print_inner.
11962
11963 2020-03-13 Tom Tromey <tom@tromey.com>
11964
11965 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11966 API.
11967 (rust_val_print): Rewrite.
11968 (rust_value_print_inner): New function, from rust_val_print.
11969 (rust_language_defn): Use rust_value_print_inner.
11970
11971 2020-03-13 Tom Tromey <tom@tromey.com>
11972
11973 * ada-valprint.c (ada_value_print_inner): New function.
11974 * ada-lang.h (ada_value_print_inner): Declare.
11975 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11976
11977 2020-03-13 Tom Tromey <tom@tromey.com>
11978
11979 * f-valprint.c (f_value_print_innner): New function.
11980 * f-lang.h (f_value_print_innner): Declare.
11981 * f-lang.c (f_language_defn): Use f_value_print_innner.
11982
11983 2020-03-13 Tom Tromey <tom@tromey.com>
11984
11985 * p-valprint.c (pascal_value_print_inner): New function.
11986 * p-lang.h (pascal_value_print_inner): Declare.
11987 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11988
11989 2020-03-13 Tom Tromey <tom@tromey.com>
11990
11991 * m2-valprint.c (m2_value_print_inner): New function.
11992 * m2-lang.h (m2_value_print_inner): Declare.
11993 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11994
11995 2020-03-13 Tom Tromey <tom@tromey.com>
11996
11997 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11998 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11999 * c-valprint.c (c_value_print_inner): New function.
12000 * c-lang.h (c_value_print_inner): Declare.
12001 * c-lang.c (c_language_defn, cplus_language_defn)
12002 (asm_language_defn, minimal_language_defn): Use
12003 c_value_print_inner.
12004
12005 2020-03-13 Tom Tromey <tom@tromey.com>
12006
12007 * p-valprint.c (pascal_object_print_value_fields): Now static.
12008 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12009
12010 2020-03-13 Tom Tromey <tom@tromey.com>
12011
12012 * c-valprint.c (c_val_print_array): Simplify.
12013
12014 2020-03-13 Tom Tromey <tom@tromey.com>
12015
12016 * valprint.c (value_print_array_elements): New function.
12017 * valprint.h (value_print_array_elements): Declare.
12018
12019 2020-03-13 Tom Tromey <tom@tromey.com>
12020
12021 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12022 * mips-tdep.c (mips_print_register): Use
12023 value_print_scalar_formatted.
12024
12025 2020-03-13 Tom Tromey <tom@tromey.com>
12026
12027 * valprint.h (value_print_scalar_formatted): Declare.
12028 * valprint.c (value_print_scalar_formatted): New function.
12029
12030 2020-03-13 Tom Tromey <tom@tromey.com>
12031
12032 * valprint.h (generic_value_print): Declare.
12033 * valprint.c (generic_value_print): New function.
12034
12035 2020-03-13 Tom Tromey <tom@tromey.com>
12036
12037 * valprint.c (do_val_print): Call la_value_print_inner, if
12038 available.
12039 * rust-lang.c (rust_language_defn): Update.
12040 * p-lang.c (pascal_language_defn): Update.
12041 * opencl-lang.c (opencl_language_defn): Update.
12042 * objc-lang.c (objc_language_defn): Update.
12043 * m2-lang.c (m2_language_defn): Update.
12044 * language.h (struct language_defn) <la_value_print_inner>: New
12045 member.
12046 * language.c (unknown_language_defn, auto_language_defn): Update.
12047 * go-lang.c (go_language_defn): Update.
12048 * f-lang.c (f_language_defn): Update.
12049 * d-lang.c (d_language_defn): Update.
12050 * c-lang.c (c_language_defn, cplus_language_defn)
12051 (asm_language_defn, minimal_language_defn): Update.
12052 * ada-lang.c (ada_language_defn): Update.
12053
12054 2020-03-13 Tom Tromey <tom@tromey.com>
12055
12056 * c-valprint.c (c_value_print): Use common_val_print.
12057
12058 2020-03-13 Tom Tromey <tom@tromey.com>
12059
12060 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12061
12062 2020-03-13 Tom Tromey <tom@tromey.com>
12063
12064 * f-valprint.c (f77_print_array_1, f_val_print): Use
12065 common_val_print.
12066
12067 2020-03-13 Tom Tromey <tom@tromey.com>
12068
12069 * riscv-tdep.c (riscv_print_one_register_info): Use
12070 common_val_print.
12071
12072 2020-03-13 Tom Tromey <tom@tromey.com>
12073
12074 * mi/mi-main.c (output_register): Use common_val_print.
12075
12076 2020-03-13 Tom Tromey <tom@tromey.com>
12077
12078 * infcmd.c (default_print_one_register_info): Use
12079 common_val_print.
12080
12081 2020-03-13 Tom Tromey <tom@tromey.com>
12082
12083 * valprint.h (common_val_print_checked): Declare.
12084 * valprint.c (common_val_print_checked): New function.
12085 * stack.c (print_frame_arg): Use common_val_print_checked.
12086
12087 2020-03-13 Tom Tromey <tom@tromey.com>
12088
12089 * valprint.c (do_val_print): New function, from val_print.
12090 (val_print): Use do_val_print.
12091 (common_val_print): Use do_val_print.
12092
12093 2020-03-13 Tom Tromey <tom@tromey.com>
12094
12095 * valprint.c (value_print): Use scoped_value_mark.
12096
12097 2020-03-13 Tom de Vries <tdevries@suse.de>
12098
12099 PR symtab/25646
12100 * psymtab.c (partial_symtab::partial_symtab): Don't set
12101 globals_offset and statics_offset. Push element onto
12102 current_global_psymbols and current_static_psymbols stacks.
12103 (concat): New function.
12104 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12105 element from current_global_psymbols and current_static_psymbols
12106 stacks. Concat popped elements to global_psymbols and
12107 static_symbols.
12108 (add_psymbol_to_list): Use current_global_psymbols and
12109 current_static_psymbols stacks.
12110 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12111 current_static_psymbols fields.
12112
12113 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12114
12115 * corelow.c (sniff_core_bfd): Remove.
12116 (class core_target) <m_core_vec>: Remove.
12117 (core_target::core_target): Update.
12118 (core_file_fns): Remove.
12119 (deprecated_add_core_fns): Remove.
12120 (default_core_sniffer): Remove.
12121 (sniff_core_bfd): Remove.
12122 (default_check_format): Remove.
12123 (gdb_check_format): Remove.
12124 (core_target_open): Update.
12125 (core_target::get_core_register_section): Update.
12126 (get_core_registers_cb): Update.
12127 (core_target::fetch_registers): Update.
12128 * gdbcore.h (struct core_fns): Remove.
12129 (deprecated_add_core_fns): Remove.
12130 (default_core_sniffer): Remove.
12131 (default_check_format): Remove.
12132
12133 2020-03-12 Tom Tromey <tom@tromey.com>
12134
12135 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12136 CORE_ADDR.
12137 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12138
12139 2020-03-12 Tom Tromey <tom@tromey.com>
12140
12141 * remote.c (remote_target::download_tracepoint)
12142 (remote_target::enable_tracepoint)
12143 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12144 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12145 sprintf_vma.
12146
12147 2020-03-12 Tom Tromey <tom@tromey.com>
12148
12149 * symfile-mem.c: Update CORE_ADDR size assert.
12150
12151 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12152
12153 * selftest.m4: Move to gdbsupport/.
12154 * acinclude.m4: Update path to selftest.m4.
12155
12156 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12157
12158 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12159 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12160 gdbarch-selfselftests.c and selftest-arch.c.
12161 (SUBDIR_UNITTESTS_OBS): Rename to...
12162 (SELFTESTS_OBS): ... this.
12163 (COMMON_SFILES): Remove disasm-selftests.c and
12164 gdbarch-selftests.c.
12165 * configure.ac: Don't add selftest-arch.{c,o} to
12166 CONFIG_{SRCS,OBS}.
12167 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12168 preprocessor conditions.
12169
12170 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12171
12172 * configure.ac: Don't source bfd/development.sh.
12173 * selftest.m4: Modify comment.
12174 * configure: Re-generate.
12175
12176 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12177
12178 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12179 not "true" or "false".
12180 * configure: Re-generate.
12181
12182 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12183
12184 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12185 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12186 renamed to arm_nbsd_supply_gregset.
12187 (fetch_register): Update to call arm_nbsd_supply_gregset.
12188 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12189 (arm_netbsd_nat_target::fetch_registers): Update.
12190 (fetch_elfcore_registers): Removed.
12191 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12192 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12193 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12194 not require NetBSD system headers.
12195 (arm_nbsd_regset): New struct.
12196 (arm_nbsd_iterate_over_regset_sections): New function.
12197 (arm_netbsd_init_abi_common): Updated to call
12198 set_gdbarch_iterate_over_regset_sections.
12199 * arm-nbsd-tdep.h: New file.
12200
12201 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12202
12203 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12204 recursion.
12205
12206 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12207
12208 * configure: Re-generate.
12209
12210 2020-03-11 Tom Tromey <tromey@adacore.com>
12211
12212 * ada-typeprint.c (print_choices): Fix comment.
12213
12214 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12215
12216 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12217 previous item in the list, when the list has no items.
12218
12219 2020-03-11 Tom de Vries <tdevries@suse.de>
12220
12221 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12222 PROP_LOCLIST handling code.
12223
12224 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12225
12226 * buildsym-legacy.c (record_line): Pass extra parameter to
12227 record_line.
12228 * buildsym.c (buildsym_compunit::record_line): Take an extra
12229 parameter, reduce duplication in the line table, and record the
12230 is_stmt flag in the line table.
12231 * buildsym.h (buildsym_compunit::record_line): Add extra
12232 parameter.
12233 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12234 non-statement lines.
12235 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12236 this to the symtab builder.
12237 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12238 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12239 through to dwarf_record_line_1.
12240 * infrun.c (process_event_stop_test): When stepping, don't stop at
12241 a non-statement instruction, and only refresh the step info when
12242 we land in the middle of a line's range. Also add an extra
12243 comment.
12244 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12245 field.
12246 * record-btrace.c (btrace_find_line_range): Only record lines
12247 marked as is-statement.
12248 * stack.c (frame_show_address): Show the frame address if we are
12249 in a non-statement sal.
12250 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12251 (maintenance_print_one_line_table): Print a header for the is_stmt
12252 column, and include is_stmt information in the output.
12253 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12254 preference to non-statements.
12255 (find_pcs_for_symtab_line): Prefer is-statement entries.
12256 (find_line_common): Likewise.
12257 * symtab.h (struct linetable_entry): Add is_stmt field.
12258 (struct symtab_and_line): Likewise.
12259 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12260 arranging the line table.
12261
12262 2020-03-07 Tom de Vries <tdevries@suse.de>
12263
12264 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12265 DIE.
12266
12267 2020-03-07 Tom Tromey <tom@tromey.com>
12268
12269 * valops.c (value_literal_complex): Remove obsolete comment.
12270 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12271 comment.
12272
12273 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12274
12275 * infrun.h: Forward-declare thread_info.
12276 (set_step_info): Add thread_info parameter, add doc.
12277 * infrun.c (set_step_info): Add thread_info parameter, move doc
12278 to header.
12279 * infrun.c (process_event_stop_test): Pass thread to
12280 set_step_info call.
12281 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12282 set_step_info.
12283 (prepare_one_step): Add thread_info parameter, pass it to
12284 set_step_frame and prepare_one_step (recursive) call.
12285 (step_1): Pass thread to prepare_one_step call.
12286 (step_command_fsm::should_stop): Pass thread to
12287 prepare_one_step.
12288 (until_next_fsm): Pass thread to set_step_frame call.
12289 (finish_command): Pass thread to set_step_info call.
12290
12291 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12292
12293 * windows-tdep.c (windows_solib_create_inferior_hook):
12294 Check if inferior is running.
12295
12296 2020-03-06 Tom de Vries <tdevries@suse.de>
12297
12298 * NEWS: Fix "the the".
12299 * ctfread.c: Same.
12300
12301 2020-03-06 Tom de Vries <tdevries@suse.de>
12302
12303 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12304
12305 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * .dir-locals.el: Add a comment referencing the other copies of
12308 this file.
12309
12310 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12311
12312 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12313 psargs.
12314
12315 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12316
12317 * .gitattributes: New file.
12318
12319 2020-03-04 Tom Tromey <tom@tromey.com>
12320
12321 * symmisc.c (print_symbol_bcache_statistics)
12322 (print_objfile_statistics): Update.
12323 * symfile.c (allocate_symtab): Use intern.
12324 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12325 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12326 macro_cache>: Remove.
12327 <string_cache>: New member.
12328 (struct objfile) <intern>: New methods.
12329 * elfread.c (elf_symtab_read): Use intern.
12330 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12331 (dwarf2_compute_name, dwarf2_physname)
12332 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12333 names.
12334 (guess_partial_die_structure_name): Update.
12335 (partial_die_info::fixup): Intern name.
12336 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12337 name.
12338 (dwarf2_name): Intern name. Update.
12339 * buildsym.c (buildsym_compunit::get_macro_table): Use
12340 string_cache.
12341
12342 2020-03-04 Tom Tromey <tom@tromey.com>
12343
12344 * jit.c (bfd_open_from_target_memory): Make "target" const.
12345 * corefile.c (gnutarget): Now const.
12346 * gdbcore.h (gnutarget): Now const.
12347
12348 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12349
12350 * NEWS: Mention support for WOW64 processes.
12351 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12352 (amd64_windows_segment_register_p): Remove static.
12353 (_initialize_amd64_windows_nat): Update.
12354 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12355 * i386-windows-nat.c (context_offset): Update.
12356 (i386_mappings): Rename and remove static.
12357 (i386_windows_segment_register_p): Remove static.
12358 (_initialize_i386_windows_nat): Update.
12359 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12360 (STATUS_WX86_SINGLE_STEP): New macro.
12361 (EnumProcessModulesEx): New macro.
12362 (Wow64SuspendThread): New macro.
12363 (Wow64GetThreadContext): New macro.
12364 (Wow64SetThreadContext): New macro.
12365 (Wow64GetThreadSelectorEntry): New macro.
12366 (windows_set_context_register_offsets): Add static.
12367 (windows_set_segment_register_p): Likewise.
12368 (windows_add_thread): Adapt for WOW64 processes.
12369 (windows_fetch_one_register): Likewise.
12370 (windows_nat_target::fetch_registers): Likewise.
12371 (windows_store_one_register): Likewise.
12372 (display_selector): Likewise.
12373 (display_selectors): Likewise.
12374 (handle_exception): Likewise.
12375 (windows_continue): Likewise.
12376 (windows_nat_target::resume): Likewise.
12377 (windows_add_all_dlls): Likewise.
12378 (do_initial_windows_stuff): Likewise.
12379 (windows_nat_target::attach): Likewise.
12380 (windows_get_exec_module_filename): Likewise.
12381 (windows_nat_target::create_inferior): Likewise.
12382 (windows_xfer_siginfo): Likewise.
12383 (_initialize_loadable): Initialize Wow64SuspendThread,
12384 Wow64GetThreadContext, Wow64SetThreadContext,
12385 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12386 * windows-nat.h (windows_set_context_register_offsets):
12387 Remove declaration.
12388 (windows_set_segment_register_p): Likewise.
12389 (i386_windows_segment_register_p): Add declaration.
12390 (amd64_windows_segment_register_p): Likewise.
12391
12392 2020-03-04 Luis Machado <luis.machado@linaro.org>
12393
12394 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12395 in "info registers" for AArch64/ARM.
12396
12397 The change caused "info registers" to not print GPR's.
12398
12399 gdb/ChangeLog:
12400
12401 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12402
12403 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12404 when reg->group is empty and reggroup is not.
12405
12406 2020-03-03 Tom Tromey <tromey@adacore.com>
12407
12408 * dwarf2/frame.c (struct dwarf2_frame_cache)
12409 <checked_tailcall_bottom, entry_cfa_sp_offset,
12410 entry_cfa_sp_offset_p>: Remove members.
12411 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12412 (dwarf2_frame_prev_register): Don't call
12413 dwarf2_tailcall_sniffer_first.
12414 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12415 * frame-unwind.c (add_unwinder): New fuction.
12416 (frame_unwind_init): Use it. Add tailcall unwinder.
12417
12418 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12419 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12420
12421 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12422 value should be printed as true.
12423
12424 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12425
12426 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12427 (windows_init_abi): Set and use windows_so_ops.
12428
12429 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12430
12431 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12432 when verifying if dealing with a convenience variable.
12433
12434 2020-03-03 Luis Machado <luis.machado@linaro.org>
12435
12436 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12437
12438 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12439
12440 * infrun.c (gdbarch_supports_displaced_stepping): New.
12441 (use_displaced_stepping): Break up conditions in smaller pieces.
12442 Use gdbarch_supports_displaced_stepping.
12443 (displaced_step_prepare_throw): Use
12444 gdbarch_supports_displaced_stepping.
12445
12446 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12447
12448 * NEWS: Mention new behaviour of the history filename.
12449 * top.c (write_history_p): Add comment.
12450 (show_write_history_p): Add header comment, give a different
12451 message when history writing is on, but the history filename is
12452 empty.
12453 (history_filename): Add comment.
12454 (history_filename_empty): New function.
12455 (show_history_filename): Add header comment, give a different
12456 message when the filename is empty.
12457 (init_history): Compare history_filename against nullptr, and only
12458 read history if the filename is not empty.
12459 (set_history_filename): Add header comment, and only make
12460 non-empty filenames absolute.
12461 (init_main): Make the filename argument to 'set history filename'
12462 optional.
12463
12464 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12465
12466 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12467 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12468 (fetch_fp_register): Update.
12469 (fetch_fp_regs): Update.
12470 (store_fp_register): Update.
12471 (store_fp_regs): Update.
12472 (arm_netbsd_nat_target::read_description): New function.
12473 (fetch_elfcore_registers): Update.
12474
12475 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12476
12477 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12478 general_thread if the stop reply is missing a thread-id.
12479 (remote_target::process_stop_reply): Use the first non-exited
12480 thread if the target didn't pass a thread-id.
12481 * infrun.c (do_target_wait): Move call to
12482 switch_to_inferior_no_thread to ....
12483 (do_target_wait_1): ... here.
12484
12485 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12486
12487 * debuginfod-support.c: Include defs.h first.
12488
12489 2020-02-28 Tom de Vries <tdevries@suse.de>
12490
12491 * symfile.c (set_initial_language): Use default language for lookup.
12492
12493 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12494
12495 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12496 reader variable, pass `this` to read_cutu_die_from_dwo.
12497
12498 2020-02-27 Aaron Merey <amerey@redhat.com>
12499
12500 * source.c (open_source_file): Check for nullptr when computing
12501 srcpath.
12502
12503 2020-02-27 Tom Tromey <tromey@adacore.com>
12504
12505 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12506 member.
12507 (dwarf2_add_field): Don't update nfields.
12508 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12509
12510 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12511
12512 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12513 abs.
12514
12515 2020-02-26 Tom Tromey <tom@tromey.com>
12516
12517 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12518 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12519 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12520 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12521 per_cu_data.
12522
12523 2020-02-26 Tom Tromey <tom@tromey.com>
12524
12525 * dwarf2/index-write.c (psym_index_map): Change type.
12526 (add_address_entry_worker, write_one_signatured_type)
12527 (recursively_count_psymbols, recursively_write_psymbols)
12528 (class debug_names, psyms_seen_size, write_gdbindex)
12529 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12530
12531 2020-02-26 Aaron Merey <amerey@redhat.com>
12532
12533 * Makefile.in: Handle optional debuginfod support.
12534 * NEWS: Update.
12535 * README: Add --with-debuginfod summary.
12536 * config.in: Regenerate.
12537 * configure: Regenerate.
12538 * configure.ac: Handle optional debuginfod support.
12539 * debuginfod-support.c: debuginfod helper functions.
12540 * debuginfod-support.h: Ditto.
12541 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12542 summary.
12543 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12544 when a dwz file cannot be found.
12545 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12546 debuginfo file cannot be found.
12547 * source.c (open_source_file): Query debuginfod servers when a
12548 source file cannot be found.
12549 * top.c (print_gdb_configuration): Include
12550 --{with,without}-debuginfod in the output.
12551
12552 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12553
12554 * thread.c (thr_try_catch_cmd): Print thread name.
12555
12556 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12557
12558 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12559 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12560 dwarf2_fetch_die_type_sect_off): Move to...
12561 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12562 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12563 dwarf2_fetch_die_type_sect_off): ... here.
12564 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12566 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12567
12568 2020-02-26 Tom de Vries <tdevries@suse.de>
12569
12570 PR gdb/25603
12571 * symfile.c (set_initial_language): Exit-early if
12572 language_mode == language_mode_manual.
12573
12574 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12575
12576 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12577 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12578 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12579
12580 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12581
12582 * gdbtypes.c (create_array_type_with_stride): Handle negative
12583 array strides.
12584 * valarith.c (value_subscripted_rvalue): Likewise.
12585
12586 2020-02-25 Luis Machado <luis.machado@linaro.org>
12587
12588 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12589
12590 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12591
12592 * loc.h (dwarf2_get_die_type): Move to...
12593 * read.h (dwarf2_get_die_type): ... here.
12594 * read.c (dwarf2_get_die_type): Move doc to header.
12595
12596 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12597
12598 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12599 'gnulib/Makefile.in' to the list.
12600
12601 2020-02-24 Tom Tromey <tom@tromey.com>
12602
12603 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12604 Remove.
12605 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12606 XOBNEWVEC.
12607
12608 2020-02-24 Tom Tromey <tom@tromey.com>
12609
12610 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12611 New method.
12612 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12613 (dw2_do_instantiate_symtab, dw2_get_file_names)
12614 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12615
12616 2020-02-24 Tom Tromey <tom@tromey.com>
12617
12618 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12619 make_scoped_restore.
12620 (dwarf2_psymtab::read_symtab): Don't clear
12621 reading_partial_symbols.
12622
12623 2020-02-24 Tom de Vries <tdevries@suse.de>
12624
12625 PR gdb/25592
12626 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12627
12628 2020-02-24 Tom de Vries <tdevries@suse.de>
12629
12630 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12631 commands layout next/prev/regs.
12632
12633 2020-02-22 Tom Tromey <tom@tromey.com>
12634
12635 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12636 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12637
12638 2020-02-22 Tom Tromey <tom@tromey.com>
12639
12640 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12641
12642 2020-02-22 Tom Tromey <tom@tromey.com>
12643
12644 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12645 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12646 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12647 * tui/tui.c (_initialize_tui): Add usage text.
12648
12649 2020-02-22 Tom Tromey <tom@tromey.com>
12650
12651 * tui/tui-win.c (tui_set_focus_command)
12652 (tui_set_win_height_command): Use error_no_arg.
12653 (_initialize_tui_win): Update help text.
12654 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12655
12656 2020-02-22 Tom Tromey <tom@tromey.com>
12657
12658 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12659 * tui/tui-disasm.h (struct tui_disasm_window)
12660 <display_start_addr>: Declare.
12661 * tui/tui-source.h (struct tui_source_window)
12662 <display_start_addr>: Declare.
12663 * tui/tui-winsource.h (struct tui_source_window_base)
12664 <show_source_line, display_start_addr>: New methods.
12665 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12666 Rename and move to protected section.
12667 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12668 (tui_source_window_base::do_erase_source_content): Update.
12669 (tui_source_window_base::show_source_line): Now a method.
12670 (tui_source_window_base::show_source_content)
12671 (tui_source_window_base::tui_source_window_base)
12672 (tui_source_window_base::rerender)
12673 (tui_source_window_base::refill)
12674 (tui_source_window_base::do_scroll_horizontal)
12675 (tui_source_window_base::set_is_exec_point_at)
12676 (tui_source_window_base::update_breakpoint_info)
12677 (tui_source_window_base::update_exec_info): Update.
12678 * tui/tui-source.c (tui_source_window::set_contents)
12679 (tui_source_window::showing_source_p)
12680 (tui_source_window::do_scroll_vertical)
12681 (tui_source_window::location_matches_p)
12682 (tui_source_window::line_is_displayed): Update.
12683 (tui_source_window::display_start_addr): New method.
12684 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12685 (tui_disasm_window::do_scroll_vertical)
12686 (tui_disasm_window::location_matches_p): Update.
12687 (tui_disasm_window::display_start_addr): New method.
12688
12689 2020-02-22 Tom Tromey <tom@tromey.com>
12690
12691 * NEWS: Add entry for gdb.register_window_type.
12692 * tui/tui-layout.h (window_factory): New typedef.
12693 (tui_register_window): Declare.
12694 * tui/tui-layout.c (saved_tui_windows): New global.
12695 (tui_apply_current_layout): Use it.
12696 (tui_register_window): New function.
12697 * python/python.c (do_start_initialization): Call
12698 gdbpy_initialize_tui.
12699 (python_GdbMethods): Add "register_window_type" function.
12700 * python/python-internal.h (gdbpy_register_tui_window)
12701 (gdbpy_initialize_tui): Declare.
12702 * python/py-tui.c: New file.
12703 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12704
12705 2020-02-22 Tom Tromey <tom@tromey.com>
12706
12707 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12708
12709 2020-02-22 Tom Tromey <tom@tromey.com>
12710
12711 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12712 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12713 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12714 (tui_set_win_focus_to): Move from tui-win.c.
12715
12716 2020-02-22 Tom Tromey <tom@tromey.com>
12717
12718 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12719 functions.
12720 (known_window_types): New global.
12721 (tui_get_window_by_name): Reimplement.
12722 (initialize_known_windows): New function.
12723 (validate_window_name): Rewrite.
12724 (_initialize_tui_layout): Call initialize_known_windows.
12725
12726 2020-02-22 Tom Tromey <tom@tromey.com>
12727
12728 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12729 Remove constants.
12730 * tui/tui-winsource.h (struct tui_source_window_base)
12731 <tui_source_window_base>: Remove parameter.
12732 * tui/tui-winsource.c
12733 (tui_source_window_base::tui_source_window_base): Remove
12734 parameter.
12735 (tui_source_window_base::refill): Update.
12736 * tui/tui-stack.h (struct tui_locator_window)
12737 <tui_locator_window>: Update.
12738 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12739 Default the constructor.
12740 * tui/tui-regs.h (struct tui_data_item_window)
12741 <tui_data_item_window>: Default the constructor.
12742 (struct tui_data_window) <tui_data_window>: Likewise.
12743 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12744 Default the constructor.
12745 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12746 Default the constructor.
12747 <type>: Remove.
12748 (struct tui_win_info) <tui_win_info>: Default the constructor.
12749 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12750 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12751 Default the constructor.
12752
12753 2020-02-22 Tom Tromey <tom@tromey.com>
12754
12755 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12756 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12757 * tui/tui-win.c (tui_resize_all): Don't call
12758 tui_delete_invisible_windows.
12759 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12760 done.
12761 (tui_set_layout): Update.
12762 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12763 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12764 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12765
12766 2020-02-22 Tom Tromey <tom@tromey.com>
12767
12768 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12769 correctly.
12770
12771 2020-02-22 Tom Tromey <tom@tromey.com>
12772
12773 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12774
12775 2020-02-22 Tom Tromey <tom@tromey.com>
12776
12777 * tui/tui-winsource.h (struct tui_source_window_iterator)
12778 <inner_iterator>: New etytypedef.
12779 <tui_source_window_iterator>: Take "end" parameter.
12780 <tui_source_window_iterator>: Take iterator.
12781 <operator*, advance>: Update.
12782 <m_iter>: Change type.
12783 <m_end>: New field.
12784 (struct tui_source_windows) <begin, end>: Update.
12785 * tui/tui-layout.c (tui_windows): New global.
12786 (tui_apply_current_layout): Clear tui_windows.
12787 (tui_layout_window::apply): Update tui_windows.
12788 * tui/tui-data.h (tui_windows): Declare.
12789 (all_tui_windows): Now inline function.
12790 (class tui_window_iterator, struct all_tui_windows): Remove.
12791
12792 2020-02-22 Tom Tromey <tom@tromey.com>
12793
12794 PR tui/17850:
12795 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12796 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12797 "height" argument.
12798 (class tui_layout_window) <get_sizes>: Likewise.
12799 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12800 argument.
12801 <get_sizes>: Add "height" argument.
12802 <m_vertical>: New field.
12803 * tui/tui-layout.c (tui_layout_split::clone): Update.
12804 (tui_layout_split::get_sizes): Add "height" argument.
12805 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12806 (tui_new_layout_command): Parse "-horizontal".
12807 (_initialize_tui_layout): Update help string.
12808 (tui_layout_split::specification): Add "-horizontal" when needed.
12809 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12810 argument.
12811 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12812 New methods.
12813
12814 2020-02-22 Tom Tromey <tom@tromey.com>
12815
12816 * tui/tui-layout.h (enum tui_adjust_result): New.
12817 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12818 (class tui_layout_window) <adjust_size>: Return
12819 tui_adjust_result. Rewrite.
12820 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12821 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12822
12823 2020-02-22 Tom Tromey <tom@tromey.com>
12824
12825 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12826 parameter and return types.
12827 (class tui_layout_base) <specification>: Add "depth".
12828 (class tui_layout_window) <specification>: Add "depth".
12829 (class tui_layout_split) <specification>: Add "depth".
12830 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12831 and return types.
12832 (tui_new_layout_command): Parse sub-layouts.
12833 (_initialize_tui_layout): Update help string.
12834 (tui_layout_window::specification): Add "depth".
12835 (add_layout_command): Update.
12836
12837 2020-02-22 Tom Tromey <tom@tromey.com>
12838
12839 * NEWS: Add "tui new-layout" item.
12840 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12841 Add new-layout command to help text.
12842 (validate_window_name): New function.
12843 (tui_new_layout_command): New function.
12844 (_initialize_tui_layout): Register "new-layout".
12845 (tui_layout_window::specification): New method.
12846 (tui_layout_window::specification): New method.
12847 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12848 method.
12849 (class tui_layout_window) <specification>: New method.
12850 (class tui_layout_split) <specification>: New method.
12851
12852 2020-02-22 Tom Tromey <tom@tromey.com>
12853
12854 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12855 * tui/tui-win.c (window_name_completer): Update comment.
12856 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12857 Declare method.
12858 (class tui_layout_window) <replace_window>: Likewise.
12859 (class tui_layout_split) <replace_window>: Likewise.
12860 (tui_set_layout): Don't declare.
12861 (tui_set_initial_layout): Declare function.
12862 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12863 (asm_regs_layout): New globals.
12864 (tui_current_layout, show_layout): Remove.
12865 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12866 (find_layout, tui_apply_layout): New function.
12867 (layout_completer): Remove.
12868 (tui_next_layout): Reimplement.
12869 (tui_next_layout_command): New function.
12870 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12871 (tui_regs_layout): Reimplement.
12872 (tui_regs_layout_command): New function.
12873 (extract_display_start_addr): Rewrite.
12874 (next_layout, prev_layout): Remove.
12875 (tui_layout_window::replace_window): New method.
12876 (tui_layout_split::replace_window): New method.
12877 (destroy_layout): New function.
12878 (layout_list): New global.
12879 (add_layout_command): New function.
12880 (initialize_layouts): Update.
12881 (tui_layout_command): New function.
12882 (_initialize_tui_layout): Install "layout" commands.
12883 * tui/tui-data.h (enum tui_layout_type): Remove.
12884 (tui_current_layout): Don't declare.
12885
12886 2020-02-22 Tom Tromey <tom@tromey.com>
12887
12888 * tui/tui-regs.c (tui_reg_layout): Remove.
12889 (tui_reg_command): Use tui_regs_layout.
12890 * tui/tui-layout.h (tui_reg_command): Declare.
12891 * tui/tui-layout.c (tui_reg_command): New function.
12892
12893 2020-02-22 Tom Tromey <tom@tromey.com>
12894
12895 * tui/tui.c (tui_rl_delete_other_windows): Call
12896 tui_remove_some_windows.
12897 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12898 Declare method.
12899 (class tui_layout_window) <remove_windows>: New method.
12900 (class tui_layout_split) <remove_windows>: Declare.
12901 (tui_remove_some_windows): Declare.
12902 * tui/tui-layout.c (tui_remove_some_windows): New function.
12903 (tui_layout_split::remove_windows): New method.
12904
12905 2020-02-22 Tom Tromey <tom@tromey.com>
12906
12907 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12908 * tui/tui-layout.h (tui_next_layout): Declare.
12909 * tui/tui-layout.c (tui_next_layout): New function.
12910
12911 2020-02-22 Tom Tromey <tom@tromey.com>
12912
12913 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12914 correct coordinates.
12915
12916 2020-02-22 Tom Tromey <tom@tromey.com>
12917
12918 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12919 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12920 DATA_WIN case.
12921
12922 2020-02-22 Tom Tromey <tom@tromey.com>
12923
12924 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12925 TUI_DISASM_WIN, not tui_win_list.
12926
12927 2020-02-22 Tom Tromey <tom@tromey.com>
12928
12929 * valprint.c (generic_val_print_enum_1)
12930 (val_print_type_code_flags): Style member names.
12931 * rust-lang.c (val_print_struct, rust_print_enum)
12932 (rust_print_struct_def, rust_internal_print_type): Style member
12933 names.
12934 * p-valprint.c (pascal_object_print_value_fields): Style member
12935 names. Only call fprintf_symbol_filtered for static members.
12936 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12937 * f-valprint.c (f_val_print): Style member names.
12938 * f-typeprint.c (f_type_print_base): Style member names.
12939 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12940 call fprintf_symbol_filtered for static members.
12941 (cp_print_class_member): Style member names.
12942 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12943 member names.
12944 * ada-valprint.c (ada_print_scalar): Style enum names.
12945 (ada_val_print_enum): Likewise.
12946 * ada-typeprint.c (print_enum_type): Style enum names.
12947
12948 2020-02-21 Tom Tromey <tom@tromey.com>
12949
12950 * psympriv.h (struct partial_symtab): Update comment.
12951
12952 2020-02-21 Tom Tromey <tromey@adacore.com>
12953
12954 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12955 type is CORE_ADDR.
12956
12957 2020-02-21 Tom de Vries <tdevries@suse.de>
12958
12959 PR gdb/25534
12960 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12961 if dependencies[i]->user != NULL.
12962
12963 2020-02-21 Ali Tamur <tamur@google.com>
12964
12965 * dwarf2/read.c (dwarf2_name): Add null check.
12966
12967 2020-02-20 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12970 ">=", in binary search.
12971 (dwarf2_find_containing_comp_unit): New overload.
12972 (run_test): New self-test.
12973 (_initialize_dwarf2_read): Register new test.
12974
12975 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12976
12977 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12978 * riscv-tdep.h: Likewise.
12979 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12980 rv32-only CSR.
12981 * features/riscv/64bit-csr.xml: Regenerated.
12982
12983 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12984 Tom Tromey <tom@tromey.com>
12985
12986 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12987 of 'fputc_unfiltered'.
12988 (putchar_unfiltered): Call 'fputc_unfiltered'.
12989 (fputc_unfiltered): Call 'fputs_unfiltered'.
12990
12991 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12992
12993 * config.in: Regenerate.
12994 * configure: Regenerate.
12995 * configure.ac: Add --with-python-libdir option.
12996 * main.c: Use WITH_PYTHON_LIBDIR.
12997
12998 2020-02-19 Tom Tromey <tom@tromey.com>
12999
13000 * symtab.c (general_symbol_info::compute_and_set_names): Use
13001 obstack_strndup. Simplify call to symbol_set_demangled_name.
13002
13003 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13004
13005 * dwarf2/read.c (allocate_signatured_type_table,
13006 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13007 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13008 Remove objfile parameter, update all callers.
13009
13010 2020-02-19 Doug Evans <dje@google.com>
13011
13012 PR rust/25535
13013 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13014 rust_enum_variant calculation.
13015
13016 2020-02-19 Tom Tromey <tromey@adacore.com>
13017
13018 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13019
13020 2020-02-19 Tom Tromey <tromey@adacore.com>
13021
13022 * ada-lang.c (cache_symbol): Use obstack_strdup.
13023
13024 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13025
13026 * configure: Regenerate.
13027
13028 2020-02-19 Tom Tromey <tromey@adacore.com>
13029
13030 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13031 NULL check.
13032
13033 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13034
13035 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13036
13037 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13038
13039 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13040 if GDBSERVER is not defined.
13041 (riscv_tdesc_cache): Likewise, also store const target_desc.
13042 (STATIC_IN_GDB): Define.
13043 (riscv_create_target_description): Update declaration with
13044 STATIC_IN_GDB.
13045 (riscv_lookup_target_description): New function, only define if
13046 GDBSERVER is not defined.
13047 * arch/riscv.h (riscv_create_target_description): Declare only
13048 when GDBSERVER is defined.
13049 (riscv_lookup_target_description): New declaration when GDBSERVER
13050 is not defined.
13051 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13052 (riscv_linux_read_features): ...this, and return
13053 riscv_gdbarch_features instead of target_desc.
13054 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13055 (riscv_linux_read_description): Rename to...
13056 (riscv_linux_read_features): ...this.
13057 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13058 Update to use riscv_gdbarch_features and
13059 riscv_lookup_target_description.
13060 * riscv-tdep.c (riscv_find_default_target_description): Use
13061 riscv_lookup_target_description instead of
13062 riscv_create_target_description.
13063
13064 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13065
13066 * valprint.c (generic_val_print_enum_1): When printing a flag
13067 enum with value 0 and there is no enumerator with value 0, print
13068 just "0" instead of "(unknown: 0x0)".
13069
13070 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13071
13072 * valprint.c (generic_val_print_enum_1): Print unknown part of
13073 flag enum in hex.
13074
13075 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13076
13077 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13078 flag enums to contain duplicate enumerators.
13079 * valprint.c (generic_val_print_enum_1): Update comment.
13080
13081 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13082
13083 * dwarf2/read.c: Include "count-one-bits.h".
13084 (update_enumeration_type_from_children): If an enumerator has
13085 multiple bits set, don't treat the enumeration as a "flag enum".
13086 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13087 of flag enums have 0 or 1 bit set.
13088
13089 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13090
13091 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13092 conversion.
13093 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13094 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13095 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13096 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13097 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13098
13099 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13100
13101 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13102
13103 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13106 displaced_step_closure_up.
13107 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13108 (struct displaced_step_closure_up):
13109 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13110 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13111 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13112 Likewise.
13113 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13114 * gdbarch.c, gdbarch.h: Re-generate.
13115 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13116 displaced_step_closure_up.
13117 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13118 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13119 * infrun.h (displaced_step_closure_up): New type alias.
13120 (struct displaced_step_inferior_state) <step_closure>: Change
13121 type to displaced_step_closure_up.
13122 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13123 displaced_step_closure_up.
13124 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13125
13126 2020-02-14 Tom Tromey <tom@tromey.com>
13127
13128 * minidebug.c (gnu_debug_key): New global.
13129 (find_separate_debug_file_in_section): Use it.
13130
13131 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13132
13133 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13134 std::unique_ptr.
13135 * gdbarch.c: Re-generate.
13136 * gdbarch.h: Re-generate.
13137 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13138 change.
13139 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13140 type to std::unique_ptr.
13141 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13142 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13143 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13144 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13145 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13146 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13147 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13148 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13149 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13150
13151 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13152
13153 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13154 std::unique_ptr.
13155 (displaced_step_clear): Rename to...
13156 (displaced_step_reset): ... this. Just call displaced->reset ().
13157 (displaced_step_clear_cleanup): Rename to...
13158 (displaced_step_reset_cleanup): ... this.
13159 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13160 (displaced_step_fixup): Likewise.
13161 (resume_1): Likewise.
13162 (handle_inferior_event): Restore child's memory before calling
13163 displaced_step_fixup on the parent.
13164 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13165 to std::unique_ptr.
13166 <step_closure>: Change type to std::unique_ptr.
13167
13168 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13169
13170 * arm-tdep.c: Include count-one-bits.h.
13171 (cleanup_block_store_pc): Use count_one_bits.
13172 (cleanup_block_load_pc): Use count_one_bits.
13173 (arm_copy_block_xfer): Use count_one_bits.
13174 (thumb2_copy_block_xfer): Use count_one_bits.
13175 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13176 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13177 (thumb_get_next_pcs_raw): Use count_one_bits.
13178 (arm_get_next_pcs_raw): Use count_one_bits_l.
13179 * arch/arm.c (bitcount): Remove.
13180 * arch/arm.h (bitcount): Remove.
13181
13182 2020-02-14 Tom Tromey <tromey@adacore.com>
13183
13184 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13185 Update.
13186 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13187 * dwarf2/loc.c (call_site_find_chain_1): Return
13188 unique_xmalloc_ptr.
13189 (call_site_find_chain): Likewise.
13190
13191 2020-02-14 Richard Biener <rguenther@suse.de>
13192
13193 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13194 on expression with division operators.
13195
13196 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13197
13198 * MAINTAINERS (Write After Approval): Adding myself.
13199
13200 2020-02-12 Tom Tromey <tom@tromey.com>
13201
13202 * event-loop.c (event_data, gdb_event, event_handler_func):
13203 Remove.
13204
13205 2020-02-12 Tom Tromey <tom@tromey.com>
13206
13207 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13208 (dwarf2_frame_objfile_data): Add comment.
13209 (find_comp_unit, set_comp_unit): New functions.
13210 (dwarf2_frame_find_fde): Use find_comp_unit.
13211 (dwarf2_build_frame_info): Use set_comp_unit.
13212
13213 2020-02-12 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13216 (comp_unit): Don't initialize objfile.
13217 (execute_cfa_program): Add text_offset parameter.
13218 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13219 (dwarf2_frame_cache): Update.
13220 (dwarf2_build_frame_info): Don't set "objfile" member.
13221
13222 2020-02-12 Tom Tromey <tom@tromey.com>
13223
13224 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13225 (decode_frame_entry): Likewise.
13226 (dwarf2_build_frame_info): Update.
13227
13228 2020-02-12 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13231 (decode_frame_entry_1): Use the comp_unit obstack.
13232
13233 2020-02-12 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/frame.c (struct comp_unit): Add initializers and
13236 constructor.
13237 (dwarf2_frame_objfile_data): Store a comp_unit.
13238 (dwarf2_frame_find_fde): Update.
13239 (dwarf2_build_frame_info): Use "new".
13240
13241 2020-02-12 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13244 (dwarf2_fde_table): Typedef for std::vector.
13245 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13246 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13247 (decode_frame_entry): Update.
13248 (dwarf2_build_frame_info): Use "new".
13249
13250 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13251
13252 * arm-tdep.c (arm_gdbarch_init): Update.
13253 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13254 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13255 have_neon, is_m>: Change to bool.
13256
13257 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13258
13259 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13260
13261 2020-02-12 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13264
13265 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13266
13267 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13268 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13269
13270 2020-02-11 Tom Tromey <tom@tromey.com>
13271
13272 * psymtab.h: Update comment.
13273
13274 2020-02-11 Tom Tromey <tom@tromey.com>
13275
13276 * gdb_obstack.h (struct auto_obstack): Use
13277 DISABLE_COPY_AND_ASSIGN.
13278
13279 2020-02-11 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2/frame.h (struct objfile): Don't forward declare.
13282
13283 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13284
13285 * cris-tdep.c (cris_supply_gregset): Change signature to match
13286 what struct regset expects.
13287 (cris_regset): New struct.
13288 (fetch_core_registers): Remove.
13289 (cris_iterate_over_regset_sections): New function.
13290 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13291 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13292
13293 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13294
13295 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13296 registers.
13297
13298 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13299
13300 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13301
13302 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13303
13304 * configure: Re-generate.
13305
13306 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13307
13308 * configure: Re-generate.
13309
13310 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13311
13312 * acinclude: Update warning.m4 path.
13313 * warning.m4: Move to gdbsupport.
13314
13315 2020-02-11 Tom Tromey <tromey@adacore.com>
13316
13317 * remote.c (remote_console_output): Update.
13318 * printcmd.c (printf_command): Update.
13319 * event-loop.c (gdb_wait_for_event): Update.
13320 * linux-nat.c (sigchld_handler): Update.
13321 * remote-sim.c (gdb_os_write_stdout): Update.
13322 (gdb_os_flush_stdout): Update.
13323 (gdb_os_flush_stderr): Update.
13324 (gdb_os_write_stderr): Update.
13325 * exceptions.c (print_exception): Update.
13326 * remote-fileio.c (remote_fileio_func_read): Update.
13327 (remote_fileio_func_write): Update.
13328 * tui/tui.c (tui_enable): Update.
13329 * tui/tui-interp.c (tui_interp::init): Update.
13330 * utils.c (init_page_info): Update.
13331 (putchar_unfiltered, fputc_unfiltered): Update.
13332 (gdb_flush): Update.
13333 (emit_style_escape): Update.
13334 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13335 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13336 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13337 (stderr_file::write): Update.
13338 (stderr_file::puts): Update.
13339 * ui-file.h (ui_file_isatty, ui_file_write)
13340 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13341 (ui_file_puts): Don't declare.
13342
13343 2020-02-10 Tom de Vries <tdevries@suse.de>
13344
13345 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13346 sentinel to char *.
13347
13348 2020-02-09 Tom de Vries <tdevries@suse.de>
13349
13350 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13351 filename if it matches "<artificial>".
13352
13353 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13354
13355 * windows-tdep.c (struct enum_value_name): New struct.
13356 (create_enum): New function.
13357 (windows_get_siginfo_type): Create and use enum types.
13358
13359 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13360
13361 * NEWS: Mention $_siginfo support for Windows.
13362 * windows-nat.c (handle_exception): Set siginfo_er.
13363 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13364 (windows_xfer_siginfo): New function.
13365 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13366 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13367 (init_windows_gdbarch_data): New function.
13368 (get_windows_gdbarch_data): New function.
13369 (windows_get_siginfo_type): New function.
13370 (windows_init_abi): Register windows_get_siginfo_type.
13371 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13372
13373 2020-02-08 Tom Tromey <tom@tromey.com>
13374
13375 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13376 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13377 <keep>: Declare method.
13378 <m_keep>: Remove member.
13379 <~cutu_reader>: Remove.
13380 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13381 (cutu_reader::cutu_reader): Update.
13382 (cutu_reader::keep): Rename from ~cutu_reader.
13383 (process_psymtab_comp_unit, build_type_psymtabs_1)
13384 (process_skeletonless_type_unit, load_partial_comp_unit)
13385 (load_full_comp_unit, dwarf2_read_addr_index)
13386 (read_signatured_type): Update.
13387
13388 2020-02-08 Tom Tromey <tom@tromey.com>
13389
13390 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13391 "want_partial_unit" parameter.
13392 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13393 Inline check for DW_TAG_partial_unit.
13394 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13395
13396 2020-02-08 Tom Tromey <tom@tromey.com>
13397
13398 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13399 read.c.
13400 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13401 read.c.
13402
13403 2020-02-08 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2/read.c (read_address): Move to comp-unit.c.
13406 (dwarf2_rnglists_process, dwarf2_ranges_process)
13407 (read_attribute_value, dwarf_decode_lines_1)
13408 (var_decode_location, decode_locdesc): Update.
13409 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13410 read.c. Remove "cu" parameter.
13411 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13412 method.
13413
13414 2020-02-08 Tom Tromey <tom@tromey.com>
13415
13416 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13417 (read_indirect_line_string): Update.
13418 * dwarf2/comp-unit.c (read_offset): Remove.
13419 (read_comp_unit_head): Update.
13420 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13421 method.
13422 (read_offset): Don't declare.
13423
13424 2020-02-08 Tom Tromey <tom@tromey.com>
13425
13426 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13427 * dwarf2/read.c (struct comp_unit_head): Move to
13428 dwarf2/comp-unit.h.
13429 (enum class rcuh_kind): Move to comp-unit.h.
13430 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13431 (read_comp_unit_head, error_check_comp_unit_head)
13432 (read_and_check_comp_unit_head): Move to comp-unit.c.
13433 (read_offset, dwarf_unit_type_name): Likewise.
13434 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13435 (cutu_reader::cutu_reader, read_call_site_scope)
13436 (find_partial_die, follow_die_offset): Update.
13437 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13438
13439 2020-02-08 Tom Tromey <tom@tromey.com>
13440
13441 * dwarf2/read.c (read_offset_1): Move to leb.c.
13442 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13443 (dwarf_decode_macro_bytes): Update.
13444 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13445 * dwarf2/leb.h (read_offset): Declare.
13446
13447 2020-02-08 Tom Tromey <tom@tromey.com>
13448
13449 * dwarf2/read.c (dwarf2_section_size): Remove.
13450 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13451 Update.
13452 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13453
13454 2020-02-08 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2/read.c (read_initial_length): Move to leb.c.
13457 * dwarf2/leb.h (read_initial_length): Declare.
13458 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13459 handle_nonstd parameter.
13460 * dwarf2/frame.c (read_initial_length): Remove.
13461 (decode_frame_entry_1): Update.
13462
13463 2020-02-08 Tom Tromey <tom@tromey.com>
13464
13465 * dwarf2/loc.c (dwarf2_find_location_expression)
13466 (dwarf_evaluate_loc_desc::get_tls_address)
13467 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13468 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13469 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13470 (dwarf2_compile_property_to_c)
13471 (dwarf2_loc_desc_get_symbol_read_needs)
13472 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13473 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13474 (loclist_describe_location, loclist_tracepoint_var_ref)
13475 (loclist_generate_c_location): Update.
13476 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13477 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13478 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13479 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13480 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13481 (dwarf2_per_cu_data::addr_size)
13482 (dwarf2_per_cu_data::ref_addr_size)
13483 (dwarf2_per_cu_data::text_offset)
13484 (dwarf2_per_cu_data::addr_type): Now methods.
13485 (per_cu_header_read_in): Make per_cu "const".
13486 (dwarf2_version): Remove.
13487 (dwarf2_per_cu_data::int_type): Now a method.
13488 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13489 (set_die_type, read_array_type, read_subrange_index_type)
13490 (read_tag_string_type, read_subrange_type): Update.
13491 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13492 offset_size, ref_addr_size, text_offset, addr_type, version,
13493 objfile, int_type, addr_sized_int_type>: Declare methods.
13494
13495 2020-02-08 Tom Tromey <tom@tromey.com>
13496
13497 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13498 Move earlier.
13499
13500 2020-02-08 Tom Tromey <tom@tromey.com>
13501
13502 * dwarf2/read.h (dwarf_line_debug): Declare.
13503 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13504 * dwarf2/read.c: Move line_header code to new files.
13505 (dwarf_line_debug): No longer static.
13506 * dwarf2/line-header.c: New file.
13507 * dwarf2/line-header.h: New file.
13508
13509 2020-02-08 Tom Tromey <tom@tromey.com>
13510
13511 * dwarf2/read.c (struct line_header) <file_full_name,
13512 file_file_name>: Return unique_xmalloc_ptr.
13513 (line_header::file_file_name): Update.
13514 (line_header::file_full_name): Update.
13515 (dw2_get_file_names_reader): Update.
13516 (macro_start_file): Update.
13517
13518 2020-02-08 Tom Tromey <tom@tromey.com>
13519
13520 * dwarf2/read.c (struct line_header) <file_full_name,
13521 file_file_name>: Declare methods.
13522 (dw2_get_file_names_reader): Update.
13523 (file_file_name): Now a method.
13524 (file_full_name): Likewise.
13525 (macro_start_file): Update.
13526
13527 2020-02-08 Tom Tromey <tom@tromey.com>
13528
13529 * dwarf2/read.c (dwarf_always_disassemble)
13530 (show_dwarf_always_disassemble): Move to loc.c.
13531 (_initialize_dwarf2_read): Move "always-disassemble" registration
13532 to loc.c.
13533 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13534 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13535 static.
13536 (show_dwarf_always_disassemble): Move from read.c.
13537 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13538
13539 2020-02-08 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13542 (create_quick_file_names_table): Return htab_up.
13543 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13544 Update.
13545 * dwarf2/read.h (struct dwarf2_per_objfile)
13546 <quick_file_names_table>: Now htab_up.
13547
13548 2020-02-08 Tom Tromey <tom@tromey.com>
13549
13550 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13551
13552 2020-02-08 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13555 Rewrite.
13556 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13557 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13558 (abbrev_table::abbrev_table): No longer inline.
13559 (ABBREV_HASH_SIZE): Remove.
13560 (abbrev_table::m_abbrevs): Now an htab_up.
13561
13562 2020-02-08 Tom Tromey <tom@tromey.com>
13563
13564 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13565 (cutu_reader): Update.
13566 (build_type_psymtabs_1): Update.
13567 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13568 (abbrev_table::alloc_abbrev): Update.
13569 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13570 (abbrev_table::read): New static method, renamed from
13571 abbrev_table_read_table.
13572 (abbrev_table::alloc_abbrev)
13573 (abbrev_table::add_abbrev): Now private.
13574 (abbrev_table::abbrev_table): Now private.
13575 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13576
13577 2020-02-08 Tom Tromey <tom@tromey.com>
13578
13579 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13580 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13581 htab_up.
13582
13583 2020-02-08 Tom Tromey <tom@tromey.com>
13584
13585 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13586 htab_up.
13587 (lookup_dwo_unit_in_dwp): Update.
13588 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13589 on obstack.
13590
13591 2020-02-08 Tom Tromey <tom@tromey.com>
13592
13593 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13594 obstack.
13595
13596 2020-02-08 Tom Tromey <tom@tromey.com>
13597
13598 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13599 line_header_hash.
13600 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13601 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13602 Change type to htab_up.
13603
13604 2020-02-08 Tom Tromey <tom@tromey.com>
13605
13606 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13607 htab_up. Don't allocate on obstack.
13608 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13609 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13610 Change type to htab_up.
13611
13612 2020-02-08 Tom Tromey <tom@tromey.com>
13613
13614 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13615 Change type to htab_up.
13616 * dwarf2/read.c (create_signatured_type_table_from_index)
13617 (create_signatured_type_table_from_debug_names)
13618 (create_all_type_units, add_type_unit)
13619 (lookup_dwo_signatured_type, lookup_signatured_type)
13620 (process_skeletonless_type_unit): Update.
13621 (create_debug_type_hash_table, create_debug_types_hash_table):
13622 Change type of types_htab.
13623 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13624 htab_up. Don't allocate on obstack.
13625 (create_cus_hash_table): Change type of cus_htab parameter.
13626 (struct dwo_file) <cus, tus>: Now htab_up.
13627 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13628 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13629 (queue_and_load_all_dwo_tus): Update.
13630 * dwarf2/index-write.c (write_gdbindex): Update.
13631 (write_debug_names): Update.
13632
13633 2020-02-08 Tom Tromey <tom@tromey.com>
13634
13635 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13636 dwarf2/read.c. Remove "next" member. Add constructor ntad
13637 destructor.
13638 (struct dwarf2_per_objfile) <queue>: New member.
13639 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13640 dwarf2/read.h.
13641 (dwarf2_queue, dwarf2_queue_tail): Remove.
13642 (class dwarf2_queue_guard): Add parameter to constructor. Use
13643 DISABLE_COPY_AND_ASSIGN.
13644 <m_per_objfile>: New member.
13645 <~dwarf2_queue_guard>: Rewrite.
13646 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13647 Update.
13648 (~dwarf2_queue_item): New.
13649
13650 2020-02-08 Tom Tromey <tom@tromey.com>
13651
13652 * dwarf2/read.c (struct die_info) <has_children>: New member.
13653 (dw2_get_file_names_reader): Remove has_children.
13654 (dw2_get_file_names): Update.
13655 (read_cutu_die_from_dwo): Remove has_children.
13656 (cutu_reader::init_tu_and_read_dwo_dies)
13657 (cutu_reader::cutu_reader): Update.
13658 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13659 Remove has_children.
13660 (build_type_psymtabs_1, process_skeletonless_type_unit)
13661 (load_partial_comp_unit, load_full_comp_unit): Update.
13662 (create_dwo_cu_reader): Remove has_children.
13663 (create_cus_hash_table, read_die_and_children): Update.
13664 (read_full_die_1,read_full_die): Remove has_children.
13665 (read_signatured_type): Update.
13666 (class cutu_reader) <has_children>: Remove.
13667
13668 2020-02-08 Tom Tromey <tom@tromey.com>
13669
13670 * dwarf2/expr.c: Rename from dwarf2expr.c.
13671 * dwarf2/expr.h: Rename from dwarf2expr.h.
13672 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13673 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13674 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13675 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13676 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13677 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13678 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13679 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13680 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13681 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13682 * dwarf2/loc.c: Rename from dwarf2loc.c.
13683 * dwarf2/loc.h: Rename from dwarf2loc.h.
13684 * dwarf2/read.c: Rename from dwarf2read.c.
13685 * dwarf2/read.h: Rename from dwarf2read.h.
13686 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13687 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13688 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13689 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13690 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13691 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13692 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13693 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13694 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13695 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13696 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13697 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13698 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13699 Update.
13700 * Makefile.in (COMMON_SFILES): Update.
13701 (HFILES_NO_SRCDIR): Update.
13702
13703 2020-02-08 Tom Tromey <tom@tromey.com>
13704
13705 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13706 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13707
13708 2020-02-08 Tom Tromey <tom@tromey.com>
13709
13710 * dwarf2read.h (struct die_info): Don't declare.
13711
13712 2020-02-08 Tom Tromey <tom@tromey.com>
13713
13714 * dwarf2read.h (die_info_ptr): Remove typedef.
13715
13716 2020-02-08 Tom Tromey <tom@tromey.com>
13717
13718 * dwarf2read.c (read_call_site_scope)
13719 (handle_data_member_location, dwarf2_add_member_fn)
13720 (mark_common_block_symbol_computed, read_common_block)
13721 (attr_to_dynamic_prop, partial_die_info::read)
13722 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13723 (dwarf2_symbol_mark_computed, set_die_type): Update.
13724 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13725 method.
13726 (attr_form_is_block): Don't declare.
13727 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13728
13729 2020-02-08 Tom Tromey <tom@tromey.com>
13730
13731 * dwarf2read.c (dwarf2_find_base_address, )
13732 (read_call_site_scope, rust_containing_type)
13733 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13734 (handle_data_member_location, dwarf2_add_member_fn)
13735 (get_alignment, read_structure_type, process_structure_scope)
13736 (mark_common_block_symbol_computed, read_common_block)
13737 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13738 (partial_die_info::read, read_attribute_value, new_symbol)
13739 (lookup_die_type, dwarf2_get_ref_die_offset)
13740 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13741 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13742 (dwarf2_symbol_mark_computed): Update.
13743 * dwarf2/attribute.h (struct attribute) <value_as_address,
13744 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13745 methods.
13746 (value_as_address, attr_form_is_section_offset)
13747 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13748 * dwarf2/attribute.c (attribute::value_as_address)
13749 (attribute::form_is_section_offset, attribute::form_is_constant)
13750 (attribute::form_is_ref): Now methods.
13751
13752 2020-02-08 Tom Tromey <tom@tromey.com>
13753
13754 * dwarf2read.c (struct attribute, DW_STRING)
13755 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13756 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13757 (attr_form_is_block, attr_form_is_section_offset)
13758 (attr_form_is_constant, attr_form_is_ref): Move.
13759 * dwarf2/attribute.h: New file.
13760 * dwarf2/attribute.c: New file, from dwarf2read.c.
13761 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13762
13763 2020-02-08 Tom Tromey <tom@tromey.com>
13764
13765 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13766 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13767 Move.
13768 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13769 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13770 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13771 abbrev.c.
13772 * dwarf2/abbrev.h: New file.
13773 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13774 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13775
13776 2020-02-08 Tom Tromey <tom@tromey.com>
13777
13778 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13779 (dwarf2_section_size, dwarf2_get_section_info)
13780 (create_signatured_type_table_from_debug_names)
13781 (create_addrmap_from_aranges, read_debug_names_from_section)
13782 (get_gdb_index_contents_from_section, read_comp_unit_head)
13783 (error_check_comp_unit_head, read_abbrev_offset)
13784 (create_debug_type_hash_table, init_cu_die_reader)
13785 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13786 (read_comp_units_from_section, create_cus_hash_table)
13787 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13788 (create_dwp_v2_section, dwarf2_rnglists_process)
13789 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13790 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13791 (read_indirect_string_from_dwz, read_addr_index_1)
13792 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13793 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13794 (fill_in_loclist_baton): Update.
13795 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13796 get_containing_section, get_bfd_owner, get_bfd_section,
13797 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13798 (dwarf2_read_section, get_section_name, get_section_file_name)
13799 (get_containing_section, get_section_bfd_owner)
13800 (get_section_bfd_section, get_section_name, get_section_file_name)
13801 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13802 declare.
13803 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13804 (dwarf2_section_info::get_bfd_owner)
13805 (dwarf2_section_info::get_bfd_section)
13806 (dwarf2_section_info::get_name)
13807 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13808 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13809 (dwarf2_section_info::read): Now methods.
13810 * dwarf-index-write.c (class debug_names): Update.
13811
13812 2020-02-08 Tom Tromey <tom@tromey.com>
13813
13814 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13815 Move to dwarf2/section.h.
13816 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13817 (get_section_bfd_section, get_section_name)
13818 (get_section_file_name, get_section_id, get_section_flags)
13819 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13820 dwarf2/section.c.
13821 * dwarf2/section.h: New file.
13822 * dwarf2/section.c: New file, from dwarf2read.c.
13823 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13824
13825 2020-02-08 Tom Tromey <tom@tromey.com>
13826
13827 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13828 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13829 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13830 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13831 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13832 * dwarf2/leb.h: New file, from dwarf2read.c.
13833 * dwarf2/leb.c: New file, from dwarf2read.c.
13834 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13835 Remove.
13836 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13837 (COMMON_SFILES): Add dwarf2/leb.c.
13838
13839 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13840
13841 GDB 9.1 released.
13842
13843 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13844
13845 PR gdb/25190:
13846 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13847 * gdb/remote.c (remote_console_output): Update.
13848 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13849 (ui_file_puts): ...this.
13850 * gdb/ui-file.h (ui_file_puts): Add declaration.
13851 * gdb/utils.c (emit_style_escape): Update.
13852 (flush_wrap_buffer): Update.
13853 (fputs_maybe_filtered): Update.
13854 (fputs_unfiltered): Add function.
13855
13856 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13857
13858 * gdb/event-loop.c (gdb_wait_for_event): Update.
13859 * gdb/printcmd.c (printf_command): Update.
13860 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13861 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13862 (gdb_os_flush_stderr): Update.
13863 * gdb/remote.c (remote_console_output): Update.
13864 * gdb/ui-file.c (gdb_flush): Rename to...
13865 (ui_file_flush): ...this.
13866 (stderr_file::write): Update.
13867 (stderr_file::puts): Update.
13868 * gdb/ui-file.h (gdb_flush): Rename to...
13869 (ui_file_flush): ...this.
13870 * gdb/utils.c (gdb_flush): Add function.
13871 * gdb/utils.h (gdb_flush): Add declaration.
13872
13873 2020-02-07 Tom Tromey <tromey@adacore.com>
13874
13875 PR breakpoints/24915:
13876 * source.c (find_and_open_source): Do not check basenames_may_differ.
13877
13878 2020-02-07 Tom Tromey <tom@tromey.com>
13879
13880 * README: Update gdbserver documentation.
13881 * gdbserver: Move to top level.
13882 * configure.tgt (build_gdbserver): Remove.
13883 * configure.ac: Remove --enable-gdbserver.
13884 * configure: Rebuild.
13885 * Makefile.in (distclean): Don't mention gdbserver.
13886
13887 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13888
13889 * source-cache.c (source_cache::ensure): Surround
13890 get_plain_source_lines with a try/catch.
13891 (source_cache::get_line_charpos): Get rid of try/catch
13892 and only check for the return value of "ensure".
13893 * tui/tui-source.c (tui_source_window::set_contents):
13894 Simplify "nlines" calculation.
13895
13896 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13897
13898 * MAINTAINERS (Write After Approval): Add myself.
13899
13900 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13901
13902 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13903 function call.
13904
13905 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13906
13907 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13908
13909 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13910
13911 * nat/riscv-linux-tdesc.h: New file.
13912 * nat/riscv-linux-tdesc.c: New file, taking code from...
13913 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13914 ... here.
13915 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13916 NATDEPFILES.
13917
13918 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13919
13920 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13921 we don't set the fake simulator ptid to the null_ptid.
13922
13923 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13924
13925 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13926 * gdbthread.h (class thread_info) <resumed>: Likewise.
13927 * infrun.c (resume_1): Likewise.
13928 (proceed): Likewise.
13929 (infrun_thread_stop_requested): Likewise.
13930 (stop_all_threads): Likewise.
13931 (handle_inferior_event): Likewise.
13932 (restart_threads): Likewise.
13933 (finish_step_over): Likewise.
13934 (keep_going_stepped_thread): Likewise.
13935 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13936 (linux_handle_extended_wait): Likewise.
13937 * record-btrace.c (get_thread_current_frame_id): Likewise.
13938 * record-full.c (record_full_wait_1): Likewise.
13939 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13940 * target.c (target_resume): Likewise.
13941 * thread.c (set_running_thread): Likewise.
13942
13943 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13944
13945 * f-valprint.c (f77_print_array_1): Changed datatype of index
13946 variable to LONGEST from int to enable it to contain bound
13947 values correctly.
13948
13949 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13950
13951 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13952 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13953 offsets according to FLEN determined.
13954 (riscv_linux_nat_target::read_description): Determine FLEN
13955 dynamically.
13956 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13957 according to FLEN determined.
13958 (riscv_linux_nat_target::store_registers): Likewise.
13959
13960 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13961
13962 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13963 when reg->group is empty and reggroup is not.
13964
13965 2020-01-31 Tom Tromey <tromey@adacore.com>
13966
13967 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13968 Call beneath target's mourn_inferior after unpushing.
13969
13970 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13971
13972 PR tui/9765
13973 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13974 have enough lines to fill the screen, still return the lowest
13975 address we found.
13976
13977 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13978
13979 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13980 '-', '<', and '>' commands.
13981
13982 2020-01-29 Pedro Alves <palves@redhat.com>
13983 Sergio Durigan Junior <sergiodj@redhat.com>
13984
13985 * infcmd.c (construct_inferior_arguments): Assert that
13986 'argc' is greater than 0.
13987
13988 2020-01-29 Luis Machado <luis.machado@linaro.org>
13989
13990 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13991 (BRK_INSN_MASK): Define to 0xd4200000.
13992 (aarch64_program_breakpoint_here_p): New function.
13993 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13994 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13995 breakpoint.c.
13996 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13997 breakpoint.h
13998 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13999 call gdbarch_program_breakpoint_here_p.
14000 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14001 default_program_breakpoint_here_p, changed return type to bool and
14002 simplified.
14003 * breakpoint.h (program_breakpoint_here): Moved prototype to
14004 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14005 return type to bool.
14006 * gdbarch.c: Regenerate.
14007 * gdbarch.h: Regenerate.
14008 * gdbarch.sh (program_breakpoint_here_p): New method.
14009 * infrun.c (handle_signal_stop): Call
14010 gdbarch_program_breakpoint_here_p.
14011
14012 2020-01-26 Tom Tromey <tom@tromey.com>
14013
14014 * ctfread.c (struct ctf_fp_info): Reindent.
14015 (_initialize_ctfread): Remove.
14016
14017 2020-01-26 Tom Tromey <tom@tromey.com>
14018
14019 * psymtab.c (partial_map_expand_apply)
14020 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14021 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14022 (psym_print_stats, psym_expand_symtabs_for_function)
14023 (psym_map_symbol_filenames, psym_map_matching_symbols)
14024 (psym_expand_symtabs_matching)
14025 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14026 (maintenance_check_psymtabs): Use new methods.
14027 * psympriv.h (struct partial_symtab) <readin_p,
14028 get_compunit_symtab>: New methods.
14029 <readin, compunit_symtab>: Remove members.
14030 (struct standard_psymtab): New.
14031 (struct legacy_psymtab): Derive from standard_psymtab.
14032 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14033 standard_psymtab.
14034 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14035
14036 2020-01-26 Tom Tromey <tom@tromey.com>
14037
14038 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14039 read_dependencies. Add assert.
14040 * psymtab.c (partial_symtab::read_dependencies): New method.
14041 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14042 method.
14043 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14044 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14045 read_dependencies.
14046 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14047 Add assert.
14048
14049 2020-01-26 Tom Tromey <tom@tromey.com>
14050
14051 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14052 Call expand_psymtab.
14053 (xcoff_read_symtab): Call expand_psymtab.
14054 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14055 legacy_expand_psymtab.
14056 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14057 method.
14058 (struct legacy_psymtab) <expand_psymtab>: Implement.
14059 <legacy_expand_psymtab>: New member.
14060 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14061 (parse_partial_symbols): Set legacy_expand_psymtab.
14062 (psymtab_to_symtab_1): Change argument order. Call
14063 expand_psymtab.
14064 (new_psymtab): Set legacy_expand_psymtab.
14065 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14066 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14067 expand_psymtab.
14068 (dwarf2_psymtab::expand_psymtab): Rename from
14069 psymtab_to_symtab_1. Call expand_psymtab.
14070 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14071 (dbx_end_psymtab): Likewise.
14072 (dbx_psymtab_to_symtab_1): Change argument order. Call
14073 expand_psymtab.
14074 (dbx_read_symtab): Call expand_psymtab.
14075 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14076 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14077 (ctf_psymtab::read_symtab): Call expand_psymtab.
14078
14079 2020-01-26 Tom Tromey <tom@tromey.com>
14080
14081 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14082 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14083 messages.
14084 * mdebugread.c (mdebug_read_symtab): Remove prints.
14085 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14086 assert.
14087 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14088
14089 2020-01-26 Tom Tromey <tom@tromey.com>
14090
14091 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14092 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14093 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14094 legacy_symtab.
14095 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14096 * psymtab.c (psymtab_to_symtab): Call method.
14097 (dump_psymtab): Update.
14098 * psympriv.h (struct partial_symtab): Add virtual destructor.
14099 <read_symtab>: New method.
14100 (struct legacy_symtab): New.
14101 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14102 (struct pst_map) <pst>: Now a legacy_psymtab.
14103 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14104 (new_psymtab): Use legacy_psymtab.
14105 * dwarf2read.h (struct dwarf2_psymtab): New.
14106 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14107 * dwarf2read.c (dwarf2_create_include_psymtab)
14108 (dwarf2_build_include_psymtabs, create_type_unit_group)
14109 (create_partial_symtab, process_psymtab_comp_unit_reader)
14110 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14111 (set_partial_user): Use dwarf2_psymtab.
14112 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14113 (psymtab_to_symtab_1, process_full_comp_unit)
14114 (process_full_type_unit, dwarf2_ranges_read)
14115 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14116 (dwarf_decode_lines): Use dwarf2_psymtab.
14117 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14118 (add_address_entry_worker, write_one_signatured_type)
14119 (recursively_count_psymbols, recursively_write_psymbols)
14120 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14121 (write_debug_names): Likewise.
14122 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14123 <pst>: Now a legacy_psymtab.
14124 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14125 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14126 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14127 * ctfread.c (struct ctf_psymtab): New.
14128 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14129 ctf_psymtab.
14130 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14131 (create_partial_symtab): Return a ctf_psymtab.
14132 (scan_partial_symbols): Update.
14133
14134 2020-01-26 Tom Tromey <tom@tromey.com>
14135
14136 * xcoffread.c (xcoff_start_psymtab): Use new.
14137 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14138 renamed from start_psymtab_common.
14139 * psympriv.h (struct partial_symtab): Add new constructor.
14140 (start_psymtab_common): Don't declare.
14141 * mdebugread.c (parse_partial_symbols): Use new.
14142 * dwarf2read.c (create_partial_symtab): Use new.
14143 * dbxread.c (start_psymtab): Use new.
14144 * ctfread.c (create_partial_symtab): Use new.
14145
14146 2020-01-26 Tom Tromey <tom@tromey.com>
14147
14148 * xcoffread.c (xcoff_end_psymtab): Use new.
14149 * psymtab.c (start_psymtab_common): Use new.
14150 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14151 Update.
14152 * psympriv.h (struct partial_symtab): Add parameters to
14153 constructor. Don't inline.
14154 (allocate_psymtab): Don't declare.
14155 * mdebugread.c (new_psymtab): Use new.
14156 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14157 * dbxread.c (dbx_end_psymtab): Use new.
14158
14159 2020-01-26 Tom Tromey <tom@tromey.com>
14160
14161 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14162 allocate_psymtab. Update documentation.
14163 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14164 allocate_psymtab. Do not use new.
14165 (allocate_psymtab): Use new. Update.
14166
14167 2020-01-26 Tom Tromey <tom@tromey.com>
14168
14169 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14170 * psymtab.c (psym_print_stats): Update.
14171 * psympriv.h (struct partial_symtab) <readin,
14172 psymtabs_addrmap_supported, anonymous>: Now bool.
14173 * mdebugread.c (psymtab_to_symtab_1): Update.
14174 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14175 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14176 (process_full_comp_unit, process_full_type_unit): Update.
14177 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14178 * ctfread.c (psymtab_to_symtab): Update.
14179
14180 2020-01-26 Tom Tromey <tom@tromey.com>
14181
14182 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14183 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14184 * psymtab.c (psymtab_storage): Delete psymtabs.
14185 (psymtab_storage::allocate_psymtab): Use new.
14186 (psymtab_storage::discard_psymtab): Use delete.
14187 * psympriv.h (struct partial_symtab): Add constructor and
14188 initializers.
14189
14190 2020-01-26 Tom Tromey <tom@tromey.com>
14191
14192 * machoread.c: Do not include psympriv.h.
14193
14194 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14195
14196 * NEWS: Mention the new option and the set/show commands.
14197
14198 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14199
14200 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14201 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14202 (validate_exec_file): New variables, enums, functions.
14203 (exec_file_locate_attach, print_section_info): Style the filenames.
14204 (_initialize_exec): Install show_exec_file_mismatch_command and
14205 set_exec_file_mismatch_command.
14206 * gdbcore.h (validate_exec_file): Declare.
14207 * infcmd.c (attach_command): Call validate_exec_file.
14208 * remote.c ( remote_target::remote_add_inferior): Likewise.
14209
14210 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14211
14212 * frame.c (find_frame_sal): Move call to get_next_frame into more
14213 inner scope.
14214 * inline-frame.c (inilne_state) <inline_state>: Update argument
14215 types.
14216 (inilne_state) <skipped_symbol>: Rename to...
14217 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14218 (skip_inline_frames): Build vector of skipped symbols and use this
14219 to reate the inline_state.
14220 (inline_skipped_symbol): Add a comment and some assertions, fetch
14221 skipped symbol from the list.
14222
14223 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14224
14225 * buildsym.c (lte_is_less_than): Delete.
14226 (buildsym_compunit::end_symtab_with_blockvector): Create local
14227 lambda function to sort line table entries, and use
14228 std::stable_sort instead of std::sort.
14229 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14230 markers when looking for a previous line.
14231
14232 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14233
14234 * dwarf2read.c (lnp_state_machine::record_line): Include
14235 end_sequence parameter in debug print out. Record the line if we
14236 are at an end_sequence marker even if it's not the start of a
14237 statement.
14238 * symmisc.c (maintenance_print_one_line_table): Print end of
14239 sequence markers with 'END' not '0'.
14240
14241 2020-01-24 Pedro Alves <palves@redhat.com>
14242
14243 PR gdb/25410
14244 * thread.c (scoped_restore_current_thread::restore): Use
14245 switch_to_inferior_no_thread.
14246 * exec.c: Include "progspace-and-thread.h".
14247 (add_target_sections, remove_target_sections):
14248 scoped_restore_current_pspace_and_thread instead of
14249 scoped_restore_current_thread.
14250 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14251 and aspace to the inferior before calling clone_program_space.
14252 Remove stale comment.
14253
14254 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14255
14256 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14257 (arm_netbsd_nat_target::fetch_registers): ...this.
14258 (arm_nbsd_nat_target::store_registers): Rename to...
14259 (arm_netbsd_nat_target::store_registers): ...this.
14260
14261 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14262
14263 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14264 register_t.
14265
14266 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14267
14268 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14269 Update comment.
14270 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14271 Likewise.
14272 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14273 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14274 the correct replacement (iterate_over_regset_sections).
14275 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14276 Update comment.
14277
14278 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14279
14280 PR gdb/23718
14281 * gdb/python/python.c (execute_gdb_command): Call
14282 async_enable_stdin in catch block.
14283
14284 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14285
14286 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14287 SWITCH_THRU_ALL_UIS.
14288
14289 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14290
14291 PR tui/9765
14292 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14293 comment, add extra parameter, and update to store previous symbol
14294 when appropriate.
14295 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14296 add extra parameter.
14297 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14298 remove unneeded parameter, add try/catch around gdb_print_insn,
14299 rewrite to add items to asm_lines vector.
14300 (tui_find_backward_disassembly_start_address): New function.
14301 (tui_find_disassembly_address): Updated throughout.
14302 (tui_disasm_window::set_contents): Update for changes to
14303 tui_disassemble.
14304 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14305 number of lines to scroll.
14306
14307 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14308
14309 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14310 (SECT_OFF_DATA): Likewise.
14311 (SECT_OFF_RODATA): Likewise.
14312 (SECT_OFF_TEXT): Likewise.
14313 (SECT_OFF_BSS): Likewise.
14314 (struct objfile) <text_section_offset, data_section_offset>: New
14315 methods.
14316 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14317 objfile::text_section_offset.
14318 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14319 * coffread.c (coff_symtab_read): Likewise.
14320 (enter_linenos): Likewise.
14321 (process_coff_symbol): Likewise.
14322 * ctfread.c (get_objfile_text_range): Likewise.
14323 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14324 Use objfile::data_section_offset.
14325 * dwarf2-frame.c (execute_cfa_program): Use
14326 objfile::text_section_offset.
14327 (dwarf2_frame_find_fde): Likewise.
14328 * dwarf2read.c (create_addrmap_from_index): Likewise.
14329 (create_addrmap_from_aranges): Likewise.
14330 (dw2_find_pc_sect_compunit_symtab): Likewise.
14331 (process_psymtab_comp_unit_reader): Likewise.
14332 (add_partial_symbol): Likewise.
14333 (add_partial_subprogram): Likewise.
14334 (process_full_comp_unit): Likewise.
14335 (read_file_scope): Likewise.
14336 (read_func_scope): Likewise.
14337 (read_lexical_block_scope): Likewise.
14338 (read_call_site_scope): Likewise.
14339 (dwarf2_rnglists_process): Likewise.
14340 (dwarf2_ranges_process): Likewise.
14341 (dwarf2_ranges_read): Likewise.
14342 (dwarf_decode_lines_1): Likewise.
14343 (new_symbol): Likewise.
14344 (dwarf2_fetch_die_loc_sect_off): Likewise.
14345 (dwarf2_per_cu_text_offset): Likewise.
14346 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14347 * hppa-tdep.c (read_unwind_info): Likewise.
14348 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14349 * psympriv.h (struct partial_symtab): Likewise.
14350 * psymtab.c (find_pc_sect_psymtab): Likewise.
14351 * solib-svr4.c (enable_break): Likewise.
14352 * stap-probe.c (relocate_address): Use
14353 objfile::data_section_offset.
14354 * xcoffread.c (enter_line_range): Use
14355 objfile::text_section_offset.
14356 (read_xcoff_symtab): Likewise.
14357
14358 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14359
14360 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14361 declaration to narrower scopes.
14362
14363 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14364
14365 * darwin-nat.h (struct darwin_exception_msg, enum
14366 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14367 Move up.
14368 (class darwin_nat_target) <wait_1, check_new_threads,
14369 decode_exception_message, decode_message, stop_inferior,
14370 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14371 * darwin-nat.c (darwin_check_new_threads): Rename to...
14372 (darwin_nat_target::check_new_threads): ... this.
14373 (darwin_suspend_inferior_it): Remove.
14374 (darwin_decode_exception_message): Rename to...
14375 (darwin_nat_target::decode_exception_message): ... this.
14376 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14377 (darwin_decode_message): Rename to...
14378 (darwin_nat_target::decode_message): ... this.
14379 (cancel_breakpoint): Rename to...
14380 (darwin_nat_target::cancel_breakpoint): ... this.
14381 (darwin_wait): Rename to...
14382 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14383 instead of iterate_over_inferiors.
14384 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14385 (darwin_stop_inferior): Rename to...
14386 (darwin_nat_target::stop_inferior): ... this.
14387 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14388 (darwin_init_thread_list): Rename to...
14389 (darwin_nat_target::init_thread_list): ... this.
14390 (darwin_ptrace_him): Rename to...
14391 (darwin_nat_target::ptrace_him): ... this.
14392 (darwin_nat_target::create_inferior): Pass lambda function to
14393 fork_inferior.
14394 (darwin_nat_target::detach): Call stop_inferior instead of
14395 darwin_stop_inferior.
14396 * fork-inferior.h (fork_inferior): Change init_trace_fun
14397 parameter to gdb::function_view.
14398 * fork-inferior.c (fork_inferior): Likewise.
14399
14400 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14401
14402 * i386-cygwin-tdep.c (core_process_module_section): Update.
14403 * windows-nat.c (struct lm_info_windows): Add text_offset.
14404 (windows_xfer_shared_libraries): Update.
14405 * windows-tdep.c (windows_xfer_shared_library):
14406 Add text_offset_cached argument.
14407 * windows-tdep.h (windows_xfer_shared_library): Update.
14408
14409 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14410
14411 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14412
14413 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14414
14415 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14416 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14417 replace with range-based for.
14418 (gdbsim_interrupt_inferior): Remove.
14419 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14420 with a range-based for. Inline code from
14421 gdbsim_interrupt_inferior.
14422
14423 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14424
14425 * infrun.c (proceed): Fix indentation.
14426
14427 2020-01-21 Tom Tromey <tromey@adacore.com>
14428
14429 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14430 * python/python.c (python_extension_ops): Update.
14431 (gdbpy_colorize): New function.
14432 * python/lib/gdb/__init__.py (colorize): New function.
14433 * extension.h (ext_lang_colorize): Declare.
14434 * extension.c (ext_lang_colorize): New function.
14435 * extension-priv.h (struct extension_language_ops) <colorize>: New
14436 member.
14437 * cli/cli-style.c (_initialize_cli_style): Update help text.
14438
14439 2020-01-21 Luis Machado <luis.machado@linaro.org>
14440
14441 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14442 <cond>: Change type to bool.
14443 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14444 (aarch64_displaced_step_cb): Likewise.
14445 (aarch64_displaced_step_tb): Likewise.
14446
14447 2020-01-21 Luis Machado <luis.machado@linaro.org>
14448
14449 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14450 output.
14451
14452 2020-01-21 Luis Machado <luis.machado@linaro.org>
14453
14454 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14455 <pc_adjust>: Adjust the documentation.
14456 (aarch64_displaced_step_fixup): Check if PC really moved before
14457 adjusting it.
14458
14459 2020-01-19 Tom Tromey <tom@tromey.com>
14460
14461 * disasm.c (~gdb_disassembler): New destructor.
14462 (gdb_buffered_insn_length): Call disassemble_free_target.
14463 * disasm.h (class gdb_disassembler): Declare destructor. Use
14464 DISABLE_COPY_AND_ASSIGN.
14465
14466 2020-01-19 Tom Tromey <tom@tromey.com>
14467
14468 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14469 (die_reader_func_ftype): Remove.
14470 (cutu_reader): New class.
14471 (dw2_get_file_names_reader): Remove "data" parameter.
14472 (dw2_get_file_names): Use cutu_reader.
14473 (create_debug_type_hash_table): Update.
14474 (read_cutu_die_from_dwo): Update comment.
14475 (lookup_dwo_unit): Add dwo_name parameter.
14476 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14477 die_reader_func_ftype and data parameters.
14478 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14479 Remove die_reader_func_ftype and data parameters.
14480 (~cutu_reader): New; from init_cutu_and_read_dies.
14481 (cutu_reader::cutu_reader): Rename from
14482 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14483 and data parameters.
14484 (init_cutu_and_read_dies_simple): Remove.
14485 (struct process_psymtab_comp_unit_data): Remove.
14486 (process_psymtab_comp_unit_reader): Remove data parameter; add
14487 want_partial_unit and pretend_language parameters.
14488 (process_psymtab_comp_unit): Use cutu_reader.
14489 (build_type_psymtabs_reader): Remove data parameter.
14490 (build_type_psymtabs_1): Use cutu_reader.
14491 (process_skeletonless_type_unit): Likewise.
14492 (load_partial_comp_unit_reader): Remove.
14493 (load_partial_comp_unit): Use cutu_reader.
14494 (load_full_comp_unit_reader): Remove.
14495 (load_full_comp_unit): Use cutu_reader.
14496 (struct create_dwo_cu_data): Remove.
14497 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14498 dwo_unit parameters.
14499 (create_cus_hash_table): Use cutu_reader.
14500 (struct dwarf2_read_addr_index_data): Remove.
14501 (dwarf2_read_addr_index_reader): Remove.
14502 (dwarf2_read_addr_index): Use cutu_reader.
14503 (read_signatured_type_reader): Remove.
14504 (read_signatured_type): Use cutu_reader.
14505
14506 2020-01-19 Tom Tromey <tom@tromey.com>
14507
14508 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14509 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14510 (tui_wrefresh): Declare.
14511 * tui/tui-wingeneral.c (suppress_output): New global.
14512 (tui_suppress_output, ~tui_suppress_output): New constructor and
14513 destructor.
14514 (tui_wrefresh): New function.
14515 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14516 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14517 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14518 method.
14519 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14520 tui_wrefresh.
14521 (tui_data_window::no_refresh): New method.
14522 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14523 (tui_reg_command): Use tui_suppress_output
14524 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14525 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14526 method.
14527 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14528
14529 2020-01-19 Tom Tromey <tom@tromey.com>
14530
14531 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14532 Handle case where symtab is null.
14533
14534 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14535
14536 * linux-fork.c (one_fork_p): Simplify.
14537
14538 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14539
14540 * top.c (struct qt_args): Remove.
14541 (kill_or_detach): Change return type to void, replace `void *`
14542 parameter with a proper one.
14543 (print_inferior_quit_action): Likewise.
14544 (quit_confirm): Use range-based for loop to iterate over inferiors.
14545 (quit_force): Likewise.
14546
14547 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14548
14549 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14550 `void *` parameter with proper parameters.
14551 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14552 (print_one_inferior): Change return type to void, replace `void *`
14553 parameter with proper parameters.
14554 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14555 inferiors.
14556 (get_other_inferior): Remove.
14557 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14558 inferiors.
14559
14560 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14561
14562 * mi/mi-interp.c (report_initial_inferior): Remove.
14563 (mi_interp::init): Use range-based for to iterate over inferiors.
14564
14565 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14566
14567 * python/py-inferior.c (build_inferior_list): Remove.
14568 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14569
14570 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14571
14572 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14573 (btrace_stitch_trace): Likewise.
14574 * charset.c (intermediate_encoding): Likewise (vaild).
14575 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14576 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14577 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14578
14579 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14580
14581 * windows-tdep.c (windows_get_tlb_type):
14582 Add rtl_user_process_parameters type.
14583
14584 2020-01-16 Pedro Alves <palves@redhat.com>
14585 Norbert Lange <nolange79@gmail.com>
14586
14587 PR build/24805
14588 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14589 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14590 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14591 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14592 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14593 (ps_plog): Redeclare exported functions with default visibility.
14594
14595 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14596
14597 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14598 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14599
14600 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14601
14602 * infcmd.c (post_create_inferior): Use get_thread_regcache
14603 instead of get_current_regcache.
14604
14605 2020-01-14 Tom Tromey <tom@tromey.com>
14606
14607 PR symtab/12535:
14608 * python/python.c (gdbpy_decode_line): Treat empty string the same
14609 as no argument.
14610
14611 2020-01-14 Tom Tromey <tom@tromey.com>
14612
14613 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14614
14615 2020-01-14 Tom Tromey <tom@tromey.com>
14616
14617 * nat/linux-btrace.c: Don't include <config.h>.
14618 * nat/linux-ptrace.c: Don't include <config.h>.
14619 * nat/x86-linux-dregs.c: Don't include <config.h>.
14620
14621 2020-01-14 Tom Tromey <tom@tromey.com>
14622
14623 * configure: Rebuild.
14624 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14625
14626 2020-01-14 Tom Tromey <tom@tromey.com>
14627
14628 * nat/x86-linux-dregs.c: Include configh.h.
14629 * nat/linux-ptrace.c: Include configh.h.
14630 * nat/linux-btrace.c: Include configh.h.
14631 * defs.h: Include config.h, bfd.h.
14632 * configure.ac: Don't source common.host.
14633 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14634 * configure: Rebuild.
14635 * acinclude.m4: Update path.
14636 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14637 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14638 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14639 (CLIBS): Add LIBSUPPORT.
14640 (CDEPS): Likewise.
14641 (COMMON_SFILES): Remove gdbsupport files.
14642 (HFILES_NO_SRCDIR): Likewise.
14643 (stamp-version): Update path to create-version.sh.
14644 (ALLDEPFILES): Remove gdbsupport files.
14645
14646 2020-01-14 Tom Tromey <tom@tromey.com>
14647
14648 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14649 USE_WIN32API when needed.
14650 * configure.ac (USE_WIN32API): Don't define.
14651 (WIN32LIBS): Use WIN32APILIBS.
14652 * configure: Rebuild.
14653
14654 2020-01-14 Tom Tromey <tom@tromey.com>
14655
14656 * configure: Rebuild.
14657 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14658
14659 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14660
14661 * skip.c (skip_function_command): Make skip w/o arguments use the
14662 name of the inlined function if pc is inside any inlined function.
14663
14664 2020-01-14 Luis Machado <luis.machado@linaro.org>
14665
14666 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14667 * infrun.c (resume_1): Likewise.
14668 (handle_inferior_event): Remove stale comment.
14669 * linux-nat.c (linux_nat_target::resume): Update comments.
14670 (save_stop_reason): Likewise.
14671 (linux_nat_filter_event): Likewise.
14672 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14673
14674 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14675
14676 * elfread.c (record_minimal_symbol): Set section index to 0 for
14677 non-allocatable sections.
14678
14679
14680 2020-01-13 Ali Tamur <tamur@google.com>
14681
14682 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14683 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14684 to gdb::optional. Update comments.
14685 (dwo_file): Update comments.
14686 (read_attribute): Update API to take an additional out parameter,
14687 need_reprocess. This is used to mark attributes that need other
14688 attributes (e.g. str_offsets_base) for correct computation which may not
14689 have been read yet.
14690 (read_attribute_reprocess): New function declaration.
14691 (read_addr_index): Likewise.
14692 (read_dwo_str_index): Likewise.
14693 (read_stub_str_index): Likewise.
14694 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14695 (lookup_addr_base): New function definition.
14696 (lookup_ranges_base): Likewise.
14697 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14698 lookup_ranges_base.
14699 (init_cutu_and_read_dies): Update comments.
14700 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14701 unit. This is used to inherit parent's str_offsets_base and addr_base.
14702 Update comments.
14703 (init_cutu_and_read_dies_simple): Reflect API changes.
14704 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14705 (create_cus_hash_table): Change API to take parent compile unit.
14706 Reflect API changes.
14707 (open_and_init_dwo_file): Reflect API changes.
14708 (dwarf2_get_pc_bounds): Update comments.
14709 (dwarf2_record_block_ranges): Likewise.
14710 (read_full_die_1): Change implementation to reprocess attributes that
14711 need str_offsets_base and addr_base.
14712 (partial_die_info::read): Likewise.
14713 (read_attribute_reprocess): New function definition.
14714 (read_attribute_value): Change API to take an additional out parameter,
14715 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14716 when a non-dwo compile unit has index based attributes.
14717 (read_attribute): Reflect API changes.
14718 (read_addr_index_1): Reflect API changes. Update comments.
14719 (dwarf2_read_addr_index_data): Reflect API changes.
14720 (dwarf2_read_addr_index): Likewise.
14721 (read_str_index): Change API and implementation. This becomes a helper
14722 to be used by the new string index related methods. Update error
14723 message and comments.
14724 (read_dwo_str_index): New function definition.
14725 (read_stub_str_index): Likewise.
14726 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14727 * symfile.h (dwarf2_debug_sections): Likewise.
14728 * xcoffread.c (dwarf2_debug_sections): Likewise.
14729
14730 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14731
14732 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14733 core_reg_sect type to gdb_byte *.
14734 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14735 * cris-tdep.c (fetch_core_registers): Likewise.
14736 * corelow.c (core_target::get_core_register_section): Change
14737 type of `contents` to gdb::byte_vector.
14738
14739 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14740
14741 * tui/tui-wingeneral.c (box_win): Position the title in the center
14742 of the border.
14743
14744 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14745
14746 * corelow.c (core_target::get_core_register_section): Use
14747 std::vector instead of alloca.
14748
14749 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14750
14751 * warning.m4: Add -Wmissing-declarations to build_warnings.
14752 * configure: Re-generate.
14753
14754 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14755
14756 * python/python.c (init__gdb_module): Add declaration.
14757
14758 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14759
14760 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14761 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14762 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14763 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14764 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14765 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14766 * ada-exp.y (_initialize_ada_exp): Add declaration.
14767 * ada-lang.c (_initialize_ada_language): Add declaration.
14768 * ada-tasks.c (_initialize_tasks): Add declaration.
14769 * agent.c (_initialize_agent): Add declaration.
14770 * aix-thread.c (_initialize_aix_thread): Add declaration.
14771 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14772 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14773 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14774 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14775 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14776 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14777 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14778 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14779 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14780 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14781 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14782 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14783 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14784 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14785 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14786 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14787 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14788 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14789 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14790 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14791 * annotate.c (_initialize_annotate): Add declaration.
14792 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14793 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14794 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14795 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14796 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14797 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14798 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14799 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14800 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14801 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14802 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14803 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14804 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14805 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14806 * auto-load.c (_initialize_auto_load): Add declaration.
14807 * auxv.c (_initialize_auxv): Add declaration.
14808 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14809 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14810 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14811 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14812 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14813 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14814 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14815 * breakpoint.c (_initialize_breakpoint): Add declaration.
14816 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14817 * btrace.c (_initialize_btrace): Add declaration.
14818 * charset.c (_initialize_charset): Add declaration.
14819 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14820 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14821 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14822 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14823 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14824 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14825 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14826 * coffread.c (_initialize_coffread): Add declaration.
14827 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14828 * compile/compile.c (_initialize_compile): Add declaration.
14829 * complaints.c (_initialize_complaints): Add declaration.
14830 * completer.c (_initialize_completer): Add declaration.
14831 * copying.c (_initialize_copying): Add declaration.
14832 * corefile.c (_initialize_core): Add declaration.
14833 * corelow.c (_initialize_corelow): Add declaration.
14834 * cp-abi.c (_initialize_cp_abi): Add declaration.
14835 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14836 * cp-support.c (_initialize_cp_support): Add declaration.
14837 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14838 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14839 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14840 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14841 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14842 * ctfread.c (_initialize_ctfread): Add declaration.
14843 * d-lang.c (_initialize_d_language): Add declaration.
14844 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14845 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14846 * dbxread.c (_initialize_dbxread): Add declaration.
14847 * dcache.c (_initialize_dcache): Add declaration.
14848 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14849 * disasm.c (_initialize_disasm): Add declaration.
14850 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14851 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14852 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14853 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14854 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14855 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14856 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14857 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14858 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14859 * elfread.c (_initialize_elfread): Add declaration.
14860 * exec.c (_initialize_exec): Add declaration.
14861 * extension.c (_initialize_extension): Add declaration.
14862 * f-lang.c (_initialize_f_language): Add declaration.
14863 * f-valprint.c (_initialize_f_valprint): Add declaration.
14864 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14865 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14866 * filesystem.c (_initialize_filesystem): Add declaration.
14867 * findcmd.c (_initialize_mem_search): Add declaration.
14868 * findvar.c (_initialize_findvar): Add declaration.
14869 * fork-child.c (_initialize_fork_child): Add declaration.
14870 * frame-base.c (_initialize_frame_base): Add declaration.
14871 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14872 * frame.c (_initialize_frame): Add declaration.
14873 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14874 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14875 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14876 * gcore.c (_initialize_gcore): Add declaration.
14877 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14878 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14879 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14880 * gdbarch.c (_initialize_gdbarch): Add declaration.
14881 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14882 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14883 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14884 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14885 * go-lang.c (_initialize_go_language): Add declaration.
14886 * go32-nat.c (_initialize_go32_nat): Add declaration.
14887 * guile/guile.c (_initialize_guile): Add declaration.
14888 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14889 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14890 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14891 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14892 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14893 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14894 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14895 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14896 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14897 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14898 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14899 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14900 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14901 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14902 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14903 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14904 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14905 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14906 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14907 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14908 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14909 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14910 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14911 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14912 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14913 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14914 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14915 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14916 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14917 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14918 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14919 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14920 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14921 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14922 * infcall.c (_initialize_infcall): Add declaration.
14923 * infcmd.c (_initialize_infcmd): Add declaration.
14924 * inflow.c (_initialize_inflow): Add declaration.
14925 * infrun.c (_initialize_infrun): Add declaration.
14926 * interps.c (_initialize_interpreter): Add declaration.
14927 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14928 * jit.c (_initialize_jit): Add declaration.
14929 * language.c (_initialize_language): Add declaration.
14930 * linux-fork.c (_initialize_linux_fork): Add declaration.
14931 * linux-nat.c (_initialize_linux_nat): Add declaration.
14932 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14933 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14934 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14935 * m2-lang.c (_initialize_m2_language): Add declaration.
14936 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14937 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14938 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14939 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14940 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14941 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14942 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14943 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14944 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14945 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14946 * machoread.c (_initialize_machoread): Add declaration.
14947 * macrocmd.c (_initialize_macrocmd): Add declaration.
14948 * macroscope.c (_initialize_macroscope): Add declaration.
14949 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14950 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14951 * maint.c (_initialize_maint_cmds): Add declaration.
14952 * mdebugread.c (_initialize_mdebugread): Add declaration.
14953 * memattr.c (_initialize_mem): Add declaration.
14954 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14955 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14956 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14957 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14958 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14959 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14960 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14961 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14962 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14963 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14964 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14965 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14966 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14967 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14968 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14969 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14970 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14971 * mipsread.c (_initialize_mipsread): Add declaration.
14972 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14973 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14974 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14975 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14976 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14977 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14978 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14979 * nto-procfs.c (_initialize_procfs): Add declaration.
14980 * objc-lang.c (_initialize_objc_language): Add declaration.
14981 * observable.c (_initialize_observer): Add declaration.
14982 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14983 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14984 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14985 * osabi.c (_initialize_gdb_osabi): Add declaration.
14986 * osdata.c (_initialize_osdata): Add declaration.
14987 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14988 * parse.c (_initialize_parse): Add declaration.
14989 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14990 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14991 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14992 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14993 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14994 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14995 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14996 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14997 * printcmd.c (_initialize_printcmd): Add declaration.
14998 * probe.c (_initialize_probe): Add declaration.
14999 * proc-api.c (_initialize_proc_api): Add declaration.
15000 * proc-events.c (_initialize_proc_events): Add declaration.
15001 * proc-service.c (_initialize_proc_service): Add declaration.
15002 * procfs.c (_initialize_procfs): Add declaration.
15003 * producer.c (_initialize_producer): Add declaration.
15004 * psymtab.c (_initialize_psymtab): Add declaration.
15005 * python/python.c (_initialize_python): Add declaration.
15006 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15007 * record-btrace.c (_initialize_record_btrace): Add declaration.
15008 * record-full.c (_initialize_record_full): Add declaration.
15009 * record.c (_initialize_record): Add declaration.
15010 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15011 * regcache.c (_initialize_regcache): Add declaration.
15012 * reggroups.c (_initialize_reggroup): Add declaration.
15013 * remote-notif.c (_initialize_notif): Add declaration.
15014 * remote-sim.c (_initialize_remote_sim): Add declaration.
15015 * remote.c (_initialize_remote): Add declaration.
15016 * reverse.c (_initialize_reverse): Add declaration.
15017 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15018 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15019 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15020 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15021 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15022 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15023 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15024 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15025 Add declaration.
15026 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15027 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15028 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15029 * rust-exp.y (_initialize_rust_exp): Add declaration.
15030 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15031 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15032 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15033 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15034 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15035 * score-tdep.c (_initialize_score_tdep): Add declaration.
15036 * ser-go32.c (_initialize_ser_dos): Add declaration.
15037 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15038 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15039 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15040 * ser-uds.c (_initialize_ser_socket): Add declaration.
15041 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15042 * serial.c (_initialize_serial): Add declaration.
15043 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15044 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15045 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15046 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15047 * skip.c (_initialize_step_skip): Add declaration.
15048 * sol-thread.c (_initialize_sol_thread): Add declaration.
15049 * solib-aix.c (_initialize_solib_aix): Add declaration.
15050 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15051 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15052 * solib-frv.c (_initialize_frv_solib): Add declaration.
15053 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15054 * solib-target.c (_initialize_solib_target): Add declaration.
15055 * solib.c (_initialize_solib): Add declaration.
15056 * source-cache.c (_initialize_source_cache): Add declaration.
15057 * source.c (_initialize_source): Add declaration.
15058 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15059 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15060 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15061 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15062 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15063 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15064 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15065 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15066 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15067 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15068 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15069 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15070 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15071 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15072 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15073 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15074 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15075 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15076 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15077 * stabsread.c (_initialize_stabsread): Add declaration.
15078 * stack.c (_initialize_stack): Add declaration.
15079 * stap-probe.c (_initialize_stap_probe): Add declaration.
15080 * std-regs.c (_initialize_frame_reg): Add declaration.
15081 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15082 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15083 * symfile.c (_initialize_symfile): Add declaration.
15084 * symmisc.c (_initialize_symmisc): Add declaration.
15085 * symtab.c (_initialize_symtab): Add declaration.
15086 * target.c (_initialize_target): Add declaration.
15087 * target-connection.c (_initialize_target_connection): Add
15088 declaration.
15089 * target-dcache.c (_initialize_target_dcache): Add declaration.
15090 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15091 * thread.c (_initialize_thread): Add declaration.
15092 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15093 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15094 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15095 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15096 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15097 * tracectf.c (_initialize_ctf): Add declaration.
15098 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15099 * tracefile.c (_initialize_tracefile): Add declaration.
15100 * tracepoint.c (_initialize_tracepoint): Add declaration.
15101 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15102 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15103 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15104 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15105 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15106 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15107 * tui/tui.c (_initialize_tui): Add declaration.
15108 * typeprint.c (_initialize_typeprint): Add declaration.
15109 * ui-style.c (_initialize_ui_style): Add declaration.
15110 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15111 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15112 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15113 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15114 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15115 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15116 * unittests/filtered_iterator-selftests.c
15117 (_initialize_filtered_iterator_selftests): Add declaration.
15118 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15119 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15120 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15121 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15122 * unittests/main-thread-selftests.c
15123 (_initialize_main_thread_selftests): Add declaration.
15124 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15125 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15126 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15127 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15128 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15129 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15130 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15131 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15132 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15133 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15134 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15135 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15136 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15137 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15138 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15139 declaration.
15140 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15141 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15142 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15143 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15144 * user-regs.c (_initialize_user_regs): Add declaration.
15145 * utils.c (_initialize_utils): Add declaration.
15146 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15147 * valops.c (_initialize_valops): Add declaration.
15148 * valprint.c (_initialize_valprint): Add declaration.
15149 * value.c (_initialize_values): Add declaration.
15150 * varobj.c (_initialize_varobj): Add declaration.
15151 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15152 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15153 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15154 * windows-nat.c (_initialize_windows_nat): Add declaration.
15155 (_initialize_check_for_gdb_ini): Add declaration.
15156 (_initialize_loadable): Add declaration.
15157 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15158 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15159 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15160 * xcoffread.c (_initialize_xcoffread): Add declaration.
15161 * xml-support.c (_initialize_xml_support): Add declaration.
15162 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15163 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15164 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15165 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15166
15167 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15168
15169 * regformats/regdat.sh: Generate declaration for init function.
15170
15171 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15172
15173 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15174 up.
15175 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15176 close_one_inferior>: New methods.
15177 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15178 pass down target to find_inferior_pid.
15179 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15180 Pass down target to find_inferior_ptid.
15181 (gdbsim_target::create_inferior): Pass down target to
15182 add_thread_silent.
15183 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15184 target down to find_inferior_ptid and switch_to_thread.
15185 (gdbsim_target::close): Update to call close_one_inferior.
15186 (struct resume_data): Remove.
15187 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15188 directly, rather than through a void pointer.
15189 (gdbsim_target::resume): Update to call resume_one_inferior.
15190
15191 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15192
15193 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15194
15195 2020-01-12 Pedro Alves <palves@redhat.com>
15196
15197 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15198 directly for the current inferior instead of
15199 discard_all_inferiors.
15200 (discard_all_inferiors): Delete.
15201
15202 2020-01-11 Tom Tromey <tom@tromey.com>
15203
15204 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15205 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15206 deprecated_safe_get_selected_frame.
15207
15208 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15209
15210 * inferior.c (print_inferior): Switch inferior before printing it.
15211
15212 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15213 Pedro Alves <palves@redhat.com>
15214
15215 * progspace-and-thread.c (switch_to_program_space_and_thread):
15216 Assert there's an inferior for PSPACE. Use
15217 switch_to_inferior_no_thread to switch the inferior too.
15218 * progspace.c (program_space::~program_space): Call
15219 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15220 (program_space::free_all_objfiles): Don't call clear_symtab_users
15221 here.
15222 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15223
15224 2020-01-10 Pedro Alves <palves@redhat.com>
15225
15226 * NEWS: Mention multi-target debugging, "info connections", and
15227 "add-inferior -no-connection".
15228
15229 2020-01-10 Pedro Alves <palves@redhat.com>
15230
15231 * infrun.c: Include "target-connection.h".
15232 (check_multi_target_resumption): New.
15233 (proceed): Call it.
15234 * target-connection.c (make_target_connection_string): Make
15235 extern.
15236 * target-connection.h (make_target_connection_string): Declare.
15237
15238 2020-01-10 Pedro Alves <palves@redhat.com>
15239
15240 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15241 * inferior.c (uiout_field_connection): New function.
15242 (print_inferior): Add new "connection-id" column.
15243 (add_inferior_command): Show connection number/string of added
15244 inferior.
15245 * process-stratum-target.h
15246 (process_stratum_target::connection_string): New virtual method.
15247 (process_stratum_target::connection_number): New field.
15248 * remote.c (remote_target::connection_string): New override.
15249 * target-connection.c: New file.
15250 * target-connection.h: New file.
15251 * target.c (decref_target): Remove process_stratum targets from
15252 the connection list.
15253 (target_stack::push): Add process_stratum targets to the
15254 connection list.
15255
15256 2020-01-10 Pedro Alves <palves@redhat.com>
15257
15258 Revert:
15259 2016-04-12 Pedro Alves <palves@redhat.com>
15260 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15261 Remove references to name.
15262 * serial.h (struct serial) <name>: Delete.
15263
15264 2020-01-10 Pedro Alves <palves@redhat.com>
15265
15266 * gdbarch-selftests.c (register_to_value_test): Remove "target
15267 already pushed" check.
15268
15269 2020-01-10 Pedro Alves <palves@redhat.com>
15270 John Baldwin <jhb@FreeBSD.org>
15271
15272 * aarch64-linux-nat.c
15273 (aarch64_linux_nat_target::thread_architecture): Adjust.
15274 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15275 (task_command_1): Likewise.
15276 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15277 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15278 (aix_thread_target::store_registers)
15279 (aix_thread_target::thread_alive): Adjust.
15280 * amd64-fbsd-tdep.c: Include "inferior.h".
15281 (amd64fbsd_get_thread_local_address): Pass down target.
15282 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15283 thread's gdbarch instead of target_gdbarch.
15284 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15285 get_last_target_status.
15286 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15287 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15288 inferiors.
15289 (update_inserted_breakpoint_locations): Skip if inferiors with no
15290 execution.
15291 (update_global_location_list): When handling moribund locations,
15292 find representative inferior for location's pspace, and use thread
15293 count of its process_stratum target.
15294 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15295 * bsd-uthread.c (bsd_uthread_target::wait): Use
15296 as_process_stratum_target and adjust thread_change_ptid and
15297 add_thread calls.
15298 (bsd_uthread_target::update_thread_list): Use
15299 as_process_stratum_target and adjust find_thread_ptid,
15300 thread_change_ptid and add_thread calls.
15301 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15302 find_thread_ptid call.
15303 * corelow.c (add_to_thread_list): Adjust add_thread call.
15304 (core_target_open): Adjust add_thread_silent and thread_count
15305 calls.
15306 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15307 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15308 * event-top.c (async_disconnect): Pop targets from all inferiors.
15309 * exec.c (add_target_sections): Push exec target on all inferiors
15310 sharing the program space.
15311 (remove_target_sections): Remove the exec target from all
15312 inferiors sharing the program space.
15313 (exec_on_vfork): New.
15314 * exec.h (exec_on_vfork): Declare.
15315 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15316 Pass it down.
15317 (fbsd_nat_target::update_thread_list): Adjust.
15318 (fbsd_nat_target::resume): Adjust.
15319 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15320 down.
15321 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15322 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15323 get_thread_arch_regcache call.
15324 * fork-child.c (gdb_startup_inferior): Pass target down to
15325 startup_inferior and set_executing.
15326 * gdbthread.h (struct process_stratum_target): Forward declare.
15327 (add_thread, add_thread_silent, add_thread_with_info)
15328 (in_thread_list): Add process_stratum_target parameter.
15329 (find_thread_ptid(inferior*, ptid_t)): New overload.
15330 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15331 parameter.
15332 (all_threads()): Delete overload.
15333 (all_threads, all_non_exited_threads): Add process_stratum_target
15334 parameter.
15335 (all_threads_safe): Use brace initialization.
15336 (thread_count): Add process_stratum_target parameter.
15337 (set_resumed, set_running, set_stop_requested, set_executing)
15338 (threads_are_executing, finish_thread_state): Add
15339 process_stratum_target parameter.
15340 (switch_to_thread): Use is_current_thread.
15341 * i386-fbsd-tdep.c: Include "inferior.h".
15342 (i386fbsd_get_thread_local_address): Pass down target.
15343 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15344 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15345 have_inferiors check.
15346 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15347 (inf_ptrace_target::attach): Adjust.
15348 * infcall.c (run_inferior_call): Adjust.
15349 * infcmd.c (run_command_1): Pass target to
15350 scoped_finish_thread_state.
15351 (proceed_thread_callback): Skip inferiors with no execution.
15352 (continue_command): Rename 'all_threads' local to avoid hiding
15353 'all_threads' function. Adjust get_last_target_status call.
15354 (prepare_one_step): Adjust set_running call.
15355 (signal_command): Use user_visible_resume_target. Compare thread
15356 pointers instead of inferior_ptid.
15357 (info_program_command): Adjust to pass down target.
15358 (attach_command): Mark target's 'thread_executing' flag.
15359 (stop_current_target_threads_ns): New, factored out from ...
15360 (interrupt_target_1): ... this. Switch inferior before making
15361 target calls.
15362 * inferior-iter.h
15363 (struct all_inferiors_iterator, struct all_inferiors_range)
15364 (struct all_inferiors_safe_range)
15365 (struct all_non_exited_inferiors_range): Filter on
15366 process_stratum_target too. Remove explicit.
15367 * inferior.c (inferior::inferior): Push dummy target on target
15368 stack.
15369 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15370 Add process_stratum_target parameter, and pass it down.
15371 (have_live_inferiors): Adjust.
15372 (switch_to_inferior_and_push_target): New.
15373 (add_inferior_command, clone_inferior_command): Handle
15374 "-no-connection" parameter. Use
15375 switch_to_inferior_and_push_target.
15376 (_initialize_inferior): Mention "-no-connection" option in
15377 the help of "add-inferior" and "clone-inferior" commands.
15378 * inferior.h: Include "process-stratum-target.h".
15379 (interrupt_target_1): Use bool.
15380 (struct inferior) <push_target, unpush_target, target_is_pushed,
15381 find_target_beneath, top_target, process_target, target_at,
15382 m_stack>: New.
15383 (discard_all_inferiors): Delete.
15384 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15385 (all_inferiors, all_non_exited_inferiors): Add
15386 process_stratum_target parameter.
15387 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15388 (target_last_proc_target): New global.
15389 (follow_fork_inferior): Push target on new inferior. Pass target
15390 to add_thread_silent. Call exec_on_vfork. Handle target's
15391 reference count.
15392 (follow_fork): Adjust get_last_target_status call. Also consider
15393 target.
15394 (follow_exec): Push target on new inferior.
15395 (struct execution_control_state) <target>: New field.
15396 (user_visible_resume_target): New.
15397 (do_target_resume): Call target_async.
15398 (resume_1): Set target's threads_executing flag. Consider resume
15399 target.
15400 (commit_resume_all_targets): New.
15401 (proceed): Also consider resume target. Skip threads of inferiors
15402 with no execution. Commit resumtion in all targets.
15403 (start_remote): Pass current inferior to wait_for_inferior.
15404 (infrun_thread_stop_requested): Consider target as well. Pass
15405 thread_info pointer to clear_inline_frame_state instead of ptid.
15406 (infrun_thread_thread_exit): Consider target as well.
15407 (random_pending_event_thread): New inferior parameter. Use it.
15408 (do_target_wait): Rename to ...
15409 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15410 down.
15411 (threads_are_resumed_pending_p, do_target_wait): New.
15412 (prepare_for_detach): Adjust calls.
15413 (wait_for_inferior): New inferior parameter. Handle it. Use
15414 do_target_wait_1 instead of do_target_wait.
15415 (fetch_inferior_event): Adjust. Switch to representative
15416 inferior. Pass target down.
15417 (set_last_target_status): Add process_stratum_target parameter.
15418 Save target in global.
15419 (get_last_target_status): Add process_stratum_target parameter and
15420 handle it.
15421 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15422 (context_switch): Check inferior_ptid == null_ptid before calling
15423 inferior_thread().
15424 (get_inferior_stop_soon): Pass down target.
15425 (wait_one): Rename to ...
15426 (poll_one_curr_target): ... this.
15427 (struct wait_one_event): New.
15428 (wait_one): New.
15429 (stop_all_threads): Adjust.
15430 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15431 event's target.
15432 (switch_back_to_stepped_thread): Also consider target.
15433 (print_stop_event): Update.
15434 (normal_stop): Update. Also consider the resume target.
15435 * infrun.h (wait_for_inferior): Remove declaration.
15436 (user_visible_resume_target): New declaration.
15437 (get_last_target_status, set_last_target_status): New
15438 process_stratum_target parameter.
15439 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15440 process_stratum_target parameter, and use it.
15441 (clear_inline_frame_state (thread_info*)): New.
15442 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15443 process_stratum_target parameter.
15444 (clear_inline_frame_state (thread_info*)): Declare.
15445 * linux-fork.c (delete_checkpoint_command): Pass target down to
15446 find_thread_ptid.
15447 (checkpoint_command): Adjust.
15448 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15449 instead of just tweaking inferior_ptid.
15450 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15451 (exit_lwp): Pass target down to find_thread_ptid.
15452 (attach_proc_task_lwp_callback): Pass target down to
15453 add_thread/set_running/set_executing.
15454 (linux_nat_target::attach): Pass target down to
15455 thread_change_ptid.
15456 (get_detach_signal): Pass target down to find_thread_ptid.
15457 Consider last target status's target.
15458 (linux_resume_one_lwp_throw, resume_lwp)
15459 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15460 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15461 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15462 (linux_nat_target::async_wait_fd): New.
15463 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15464 target down.
15465 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15466 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15467 * linux-thread-db.c (struct thread_db_info::process_target): New
15468 field.
15469 (add_thread_db_info): Save target.
15470 (get_thread_db_info): New process_stratum_target parameter. Also
15471 match target.
15472 (delete_thread_db_info): New process_stratum_target parameter.
15473 Also match target.
15474 (thread_from_lwp): Adjust to pass down target.
15475 (thread_db_notice_clone): Pass down target.
15476 (check_thread_db_callback): Pass down target.
15477 (try_thread_db_load_1): Always push the thread_db target.
15478 (try_thread_db_load, record_thread): Pass target down.
15479 (thread_db_target::detach): Pass target down. Always unpush the
15480 thread_db target.
15481 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15482 target down. Always unpush the thread_db target.
15483 (find_new_threads_callback, thread_db_find_new_threads_2)
15484 (thread_db_target::update_thread_list): Pass target down.
15485 (thread_db_target::pid_to_str): Pass current inferior down.
15486 (thread_db_target::get_thread_local_address): Pass target down.
15487 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15488 target down.
15489 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15490 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15491 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15492 (procfs_init_inferior): Rename to ...
15493 (procfs_target::procfs_init_inferior): ... this and adjust.
15494 (procfs_target::create_inferior, procfs_notice_thread)
15495 (procfs_do_thread_registers): Adjust.
15496 * ppc-fbsd-tdep.c: Include "inferior.h".
15497 (ppcfbsd_get_thread_local_address): Pass down target.
15498 * proc-service.c (ps_xfer_memory): Switch current inferior and
15499 program space as well.
15500 (get_ps_regcache): Pass target down.
15501 * process-stratum-target.c
15502 (process_stratum_target::thread_address_space)
15503 (process_stratum_target::thread_architecture): Pass target down.
15504 * process-stratum-target.h
15505 (process_stratum_target::threads_executing): New field.
15506 (as_process_stratum_target): New.
15507 * ravenscar-thread.c
15508 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15509 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15510 down.
15511 * record-btrace.c (record_btrace_target::info_record): Adjust.
15512 (record_btrace_target::record_method)
15513 (record_btrace_target::record_is_replaying)
15514 (record_btrace_target::fetch_registers)
15515 (get_thread_current_frame_id, record_btrace_target::resume)
15516 (record_btrace_target::wait, record_btrace_target::stop): Pass
15517 target down.
15518 * record-full.c (record_full_wait_1): Switch to event thread.
15519 Pass target down.
15520 * regcache.c (regcache::regcache)
15521 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15522 process_stratum_target parameter and handle it.
15523 (current_thread_target): New global.
15524 (get_thread_regcache): Add process_stratum_target parameter and
15525 handle it. Switch inferior before calling target method.
15526 (get_thread_regcache): Pass target down.
15527 (get_thread_regcache_for_ptid): Pass target down.
15528 (registers_changed_ptid): Add process_stratum_target parameter and
15529 handle it.
15530 (registers_changed_thread, registers_changed): Pass target down.
15531 (test_get_thread_arch_aspace_regcache): New.
15532 (current_regcache_test): Define a couple local test_target_ops
15533 instances and use them for testing.
15534 (readwrite_regcache): Pass process_stratum_target parameter.
15535 (cooked_read_test, cooked_write_test): Pass mock_target down.
15536 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15537 (get_thread_arch_aspace_regcache): Add process_stratum_target
15538 parameter.
15539 (regcache::target): New method.
15540 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15541 (regcache::registers_changed_ptid): Add process_stratum_target
15542 parameter.
15543 (regcache::m_target): New field.
15544 (registers_changed_ptid): Add process_stratum_target parameter.
15545 * remote.c (remote_state::supports_vCont_probed): New field.
15546 (remote_target::async_wait_fd): New method.
15547 (remote_unpush_and_throw): Add remote_target parameter.
15548 (get_current_remote_target): Adjust.
15549 (remote_target::remote_add_inferior): Push target.
15550 (remote_target::remote_add_thread)
15551 (remote_target::remote_notice_new_inferior)
15552 (get_remote_thread_info): Pass target down.
15553 (remote_target::update_thread_list): Skip threads of inferiors
15554 bound to other targets. (remote_target::close): Don't discard
15555 inferiors. (remote_target::add_current_inferior_and_thread)
15556 (remote_target::process_initial_stop_replies)
15557 (remote_target::start_remote)
15558 (remote_target::remote_serial_quit_handler): Pass down target.
15559 (remote_target::remote_unpush_target): New remote_target
15560 parameter. Unpush the target from all inferiors.
15561 (remote_target::remote_unpush_and_throw): New remote_target
15562 parameter. Pass it down.
15563 (remote_target::open_1): Check whether the current inferior has
15564 execution instead of checking whether any inferior is live. Pass
15565 target down.
15566 (remote_target::remote_detach_1): Pass down target. Use
15567 remote_unpush_target.
15568 (extended_remote_target::attach): Pass down target.
15569 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15570 (remote_target::append_resumption): Pass down target.
15571 (remote_target::append_pending_thread_resumptions)
15572 (remote_target::remote_resume_with_hc, remote_target::resume)
15573 (remote_target::commit_resume): Pass down target.
15574 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15575 (remote_target::interrupt_query)
15576 (remote_target::remove_new_fork_children)
15577 (remote_target::check_pending_events_prevent_wildcard_vcont)
15578 (remote_target::remote_parse_stop_reply)
15579 (remote_target::process_stop_reply): Pass down target.
15580 (first_remote_resumed_thread): New remote_target parameter. Pass
15581 it down.
15582 (remote_target::wait_as): Pass down target.
15583 (unpush_and_perror): New remote_target parameter. Pass it down.
15584 (remote_target::readchar, remote_target::remote_serial_write)
15585 (remote_target::getpkt_or_notif_sane_1)
15586 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15587 down target.
15588 (remote_target::mourn_inferior): Pass down target. Use
15589 remote_unpush_target.
15590 (remote_target::core_of_thread)
15591 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15592 (remote_target::pid_to_exec_file)
15593 (remote_target::thread_handle_to_thread_info): Pass down target.
15594 (remote_target::async_wait_fd): New.
15595 * riscv-fbsd-tdep.c: Include "inferior.h".
15596 (riscv_fbsd_get_thread_local_address): Pass down target.
15597 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15598 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15599 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15600 Adjust.
15601 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15602 * solib-svr4.c (enable_break): Pass down target.
15603 * spu-multiarch.c (parse_spufs_run): Pass down target.
15604 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15605 * target-delegates.c: Regenerate.
15606 * target.c (g_target_stack): Delete.
15607 (current_top_target): Return the current inferior's top target.
15608 (target_has_execution_1): Refer to the passed-in inferior's top
15609 target.
15610 (target_supports_terminal_ours): Check whether the initial
15611 inferior was already created.
15612 (decref_target): New.
15613 (target_stack::push): Incref/decref the target.
15614 (push_target, push_target, unpush_target): Adjust.
15615 (target_stack::unpush): Defref target.
15616 (target_is_pushed): Return bool. Adjust to refer to the current
15617 inferior's target stack.
15618 (dispose_inferior): Delete, and inline parts ...
15619 (target_preopen): ... here. Only dispose of the current inferior.
15620 (target_detach): Hold strong target reference while detaching.
15621 Pass target down.
15622 (target_thread_name): Add assertion.
15623 (target_resume): Pass down target.
15624 (target_ops::beneath, find_target_at): Adjust to refer to the
15625 current inferior's target stack.
15626 (get_dummy_target): New.
15627 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15628 has a thread running.
15629 (initialize_targets): Rename to ...
15630 (_initialize_target): ... this.
15631 * target.h: Include "gdbsupport/refcounted-object.h".
15632 (struct target_ops): Inherit refcounted_object.
15633 (target_ops::shortname, target_ops::longname): Make const.
15634 (target_ops::async_wait_fd): New method.
15635 (decref_target): Declare.
15636 (struct target_ops_ref_policy): New.
15637 (target_ops_ref): New typedef.
15638 (get_dummy_target): Declare function.
15639 (target_is_pushed): Return bool.
15640 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15641 (all_matching_threads_iterator::all_matching_threads_iterator):
15642 Handle filter target.
15643 * thread-iter.h (struct all_matching_threads_iterator, struct
15644 all_matching_threads_range, class all_non_exited_threads_range):
15645 Filter by target too. Remove explicit.
15646 * thread.c (threads_executing): Delete.
15647 (inferior_thread): Pass down current inferior.
15648 (clear_thread_inferior_resources): Pass down thread pointer
15649 instead of ptid_t.
15650 (add_thread_silent, add_thread_with_info, add_thread): Add
15651 process_stratum_target parameter. Use it for thread and inferior
15652 searches.
15653 (is_current_thread): New.
15654 (thread_info::deletable): Use it.
15655 (find_thread_ptid, thread_count, in_thread_list)
15656 (thread_change_ptid, set_resumed, set_running): New
15657 process_stratum_target parameter. Pass it down.
15658 (set_executing): New process_stratum_target parameter. Pass it
15659 down. Adjust reference to 'threads_executing'.
15660 (threads_are_executing): New process_stratum_target parameter.
15661 Adjust reference to 'threads_executing'.
15662 (set_stop_requested, finish_thread_state): New
15663 process_stratum_target parameter. Pass it down.
15664 (switch_to_thread): Also match inferior.
15665 (switch_to_thread): New process_stratum_target parameter. Pass it
15666 down.
15667 (update_threads_executing): Reimplement.
15668 * top.c (quit_force): Pop targets from all inferior.
15669 (gdb_init): Don't call initialize_targets.
15670 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15671 Declare.
15672 (windows_add_thread, windows_delete_thread): Adjust.
15673 (get_windows_debug_event): Rename to ...
15674 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15675 * tracefile-tfile.c (tfile_target_open): Pass down target.
15676 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15677 Forward declare.
15678 (switch_to_thread): Add process_stratum_target parameter.
15679 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15680 parameter. Use it.
15681 (mi_on_resume): Pass target down.
15682 * nat/fork-inferior.c (startup_inferior): Add
15683 process_stratum_target parameter. Pass it down.
15684 * nat/fork-inferior.h (startup_inferior): Add
15685 process_stratum_target parameter.
15686 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15687
15688 2020-01-10 Pedro Alves <palves@redhat.com>
15689
15690 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15691 directly. Instead find the first thread in the thread list and
15692 use switch_to_thread.
15693
15694 2020-01-10 Pedro Alves <palves@redhat.com>
15695
15696 * remote.c (remote_target::remote_add_inferior): Don't bind a
15697 process to the current inferior if the current inferior is already
15698 bound to a process.
15699
15700 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15701 Pedro Alves <palves@redhat.com>
15702
15703 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15704 If no process is specified, return null_ptid instead of
15705 inferior_ptid.
15706 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15707 TARGET_WAITKIND_SIGNALLED with no pid.
15708
15709 2020-01-10 Pedro Alves <palves@redhat.com>
15710
15711 * remote.c (first_remote_resumed_thread): New.
15712 (remote_target::wait_as): Use it as default event_ptid instead of
15713 inferior_ptid.
15714
15715 2020-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15718
15719 2020-01-10 Pedro Alves <palves@redhat.com>
15720
15721 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15722 not -1.
15723
15724 2020-01-10 Pedro Alves <palves@redhat.com>
15725
15726 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15727 ptid to get_last_target_status.
15728 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15729 ptid to get_last_target_status.
15730 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15731 get_last_target_status.
15732 (info_program_command): Don't pass a target_waitstatus to
15733 get_last_target_status.
15734 * infrun.c (init_wait_for_inferior): Use
15735 nullify_last_target_wait_ptid.
15736 (get_last_target_status): Handle nullptr arguments.
15737 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15738 (print_stop_event): Don't pass a ptid to get_last_target_status.
15739 (normal_stop): Don't pass a ptid to get_last_target_status.
15740 * infrun.h (get_last_target_status, set_last_target_status): Move
15741 comments here and update.
15742 (nullify_last_target_wait_ptid): Declare.
15743 * linux-fork.c (fork_load_infrun_state): Remove local extern
15744 declaration of nullify_last_target_wait_ptid.
15745 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15746 to get_last_target_status.
15747
15748 2020-01-10 Pedro Alves <palves@redhat.com>
15749
15750 * gdbthread.h (scoped_restore_current_thread)
15751 <dont_restore, restore, m_dont_restore>: Declare.
15752 * thread.c (thread_alive): Add assertion. Return bool.
15753 (switch_to_thread_if_alive): New.
15754 (prune_threads): Switch inferior/thread.
15755 (print_thread_info_1): Switch thread before calling target methods.
15756 (scoped_restore_current_thread::restore): New, factored out from
15757 ...
15758 (scoped_restore_current_thread::~scoped_restore_current_thread):
15759 ... this.
15760 (scoped_restore_current_thread::scoped_restore_current_thread):
15761 Add assertion.
15762 (thread_apply_all_command, thread_select): Use
15763 switch_to_thread_if_alive.
15764 * infrun.c (proceed, restart_threads, handle_signal_stop)
15765 (switch_back_to_stepped_thread): Switch current thread before
15766 calling target methods.
15767
15768 2020-01-10 Pedro Alves <palves@redhat.com>
15769
15770 * inferior.c (switch_to_inferior_no_thread): New function,
15771 factored out from ...
15772 (inferior_command): ... here.
15773 * inferior.h (switch_to_inferior_no_thread): Declare.
15774 * mi/mi-main.c (run_one_inferior): Use
15775 switch_to_inferior_no_thread.
15776
15777 2020-01-10 Pedro Alves <palves@redhat.com>
15778
15779 * infcmd.c (kill_command): Remove dead code.
15780
15781 2020-01-10 Pedro Alves <palves@redhat.com>
15782
15783 * remote.c (remote_target::mourn_inferior): No longer check
15784 whether the target is running.
15785
15786 2020-01-10 Pedro Alves <palves@redhat.com>
15787
15788 * corelow.c (core_target::has_execution): Change parameter type to
15789 inferior pointer.
15790 * inferior.c (number_of_live_inferiors): Use
15791 inferior::has_execution instead of target_has_execution_1.
15792 * inferior.h (inferior::has_execution): New.
15793 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15794 inferior::has_execution instead of target_has_execution_1.
15795 * process-stratum-target.c
15796 (process_stratum_target::has_execution): Change parameter type to
15797 inferior pointer. Check the inferior's PID instead of
15798 inferior_ptid.
15799 * process-stratum-target.h
15800 (process_stratum_target::has_execution): Change parameter type to
15801 inferior pointer.
15802 * record-full.c (record_full_core_target::has_execution): Change
15803 parameter type to inferior pointer.
15804 * target.c (target_has_execution_1): Change parameter type to
15805 inferior pointer.
15806 (target_has_execution_current): Adjust.
15807 * target.h (target_ops::has_execution): Change parameter type to
15808 inferior pointer.
15809 (target_has_execution_1): Change parameter type to inferior
15810 pointer. Change return type to bool.
15811 * tracefile.h (tracefile_target::has_execution): Change parameter
15812 type to inferior pointer.
15813
15814 2020-01-10 Pedro Alves <palves@redhat.com>
15815
15816 * exceptions.c (print_flush): Remove current_top_target() check.
15817
15818 2020-01-10 Pedro Alves <palves@redhat.com>
15819
15820 * remote.c (show_remote_exec_file): Show the current inferior's
15821 exec-file instead of the command variable's value.
15822
15823 2020-01-10 Pedro Alves <palves@redhat.com>
15824
15825 * record-full.c (record_full_resume_ptid): New global.
15826 (record_full_target::resume): Set it.
15827 (record_full_wait_1): Use record_full_resume_ptid instead of
15828 inferior_ptid.
15829
15830 2020-01-10 Pedro Alves <palves@redhat.com>
15831
15832 * gdbthread.h (scoped_restore_current_thread)
15833 <dont_restore, restore, m_dont_restore>: Declare.
15834 * thread.c (thread_alive): Add assertion. Return bool.
15835 (switch_to_thread_if_alive): New.
15836 (prune_threads): Switch inferior/thread.
15837 (print_thread_info_1): Switch thread before calling target methods.
15838 (scoped_restore_current_thread::restore): New, factored out from
15839 ...
15840 (scoped_restore_current_thread::~scoped_restore_current_thread):
15841 ... this.
15842 (scoped_restore_current_thread::scoped_restore_current_thread):
15843 Add assertion.
15844 (thread_apply_all_command, thread_select): Use
15845 switch_to_thread_if_alive.
15846
15847 2020-01-10 George Barrett <bob@bob131.so>
15848
15849 * stap-probe.c (stap_modify_semaphore): Don't check for null
15850 semaphores.
15851 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15852 for null semaphores.
15853
15854 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15855
15856 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15857 all source windows, and maintain horizontal scroll status while
15858 doing so.
15859
15860 2020-01-09 Tom Tromey <tom@tromey.com>
15861
15862 PR tui/18932:
15863 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15864 update_source_window, not print_source_lines.
15865
15866 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15867
15868 * tui/tui.c (tui_enable): Register tui hooks after calling
15869 tui_display_main.
15870
15871 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15872
15873 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15874
15875 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15876
15877 * thread.c (print_thread_info_1): Fix indentation.
15878
15879 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15880
15881 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15882 unique_xmalloc_ptr outside the if to always free the demangled name.
15883
15884 2020-01-08 Tom Tromey <tromey@adacore.com>
15885
15886 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15887 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15888 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15889 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15890 Remove.
15891 (section_offsets): New typedef.
15892 * symtab.c (fixup_section, get_msymbol_address): Update.
15893 * symmisc.c (dump_msymbols): Update.
15894 * symfile.h (relative_addr_info_to_section_offsets)
15895 (symfile_map_offsets_to_segments): Update.
15896 * symfile.c (build_section_addr_info_from_objfile)
15897 (init_objfile_sect_indices): Update.
15898 (struct place_section_arg): Change type of "offsets".
15899 (place_section): Update.
15900 (relative_addr_info_to_section_offsets): Change type of
15901 "section_offsets". Remove "num_sections" parameter.
15902 (default_symfile_offsets, syms_from_objfile_1)
15903 (set_objfile_default_section_offset): Update.
15904 (reread_symbols): No need to preserve section offsets by hand.
15905 (symfile_map_offsets_to_segments): Change type of "offsets".
15906 * stap-probe.c (relocate_address): Update.
15907 * stabsread.h (process_one_symbol): Update.
15908 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15909 (solib_target_relocate_section_addresses): Update.
15910 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15911 Update.
15912 * solib-frv.c (frv_relocate_main_executable): Update.
15913 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15914 * solib-aix.c (solib_aix_get_section_offsets): Change return
15915 type.
15916 (solib_aix_solib_create_inferior_hook): Update.
15917 * remote.c (remote_target::get_offsets): Update.
15918 * psymtab.c (find_pc_sect_psymtab): Update.
15919 * psympriv.h (struct partial_symbol) <address, text_low,
15920 text_high>: Update.
15921 * objfiles.h (obj_section_offset): Update.
15922 (struct objfile) <section_offsets>: Change type.
15923 <num_sections>: Remove.
15924 (objfile_relocate): Update.
15925 * objfiles.c (entry_point_address_query): Update
15926 (relocate_one_symbol): Change type of "section_offsets".
15927 (objfile_relocate1, objfile_relocate1): Change type of
15928 "new_offsets".
15929 (objfile_rebase1): Update.
15930 * mipsread.c (mipscoff_symfile_read): Update.
15931 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15932 parameter.
15933 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15934 (parse_external, psymtab_to_symtab_1): Update.
15935 * machoread.c (macho_symfile_offsets): Update.
15936 * ia64-tdep.c (ia64_find_unwind_table): Update.
15937 * hppa-tdep.c (read_unwind_info): Update.
15938 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15939 * dwarf2read.c (create_addrmap_from_index)
15940 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15941 (process_psymtab_comp_unit_reader, add_partial_symbol)
15942 (add_partial_subprogram, process_full_comp_unit)
15943 (read_file_scope, read_func_scope, read_lexical_block_scope)
15944 (read_call_site_scope, dwarf2_rnglists_process)
15945 (dwarf2_ranges_process, dwarf2_ranges_read)
15946 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15947 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15948 Update.
15949 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15950 Update.
15951 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15952 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15953 (process_one_symbol): Change type of "section_offsets".
15954 * ctfread.c (get_objfile_text_range): Update.
15955 * coffread.c (coff_symtab_read, enter_linenos)
15956 (process_coff_symbol): Update.
15957 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15958 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15959
15960 2020-01-08 Tom Tromey <tromey@adacore.com>
15961
15962 * dwarf2read.c (parse_macro_definition): Use std::string.
15963 (parse_macro_definition): Likewise.
15964
15965 2020-01-08 Tom Tromey <tromey@adacore.com>
15966
15967 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15968 (ATTR_ALLOC_CHUNK): Remove.
15969
15970 2020-01-08 Tom Tromey <tromey@adacore.com>
15971
15972 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15973
15974 2020-01-08 Tom Tromey <tromey@adacore.com>
15975
15976 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15977 (dwarf2_compute_name, open_dwo_file): Likewise.
15978 (process_enumeration_scope): Use std::vector.
15979 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15980 (partial_die_info::fixup, dwarf2_start_subfile)
15981 (guess_full_die_structure_name, dwarf2_name): Likewise.
15982 (determine_prefix): Update.
15983 (guess_full_die_structure_name): Make return type const.
15984 (partial_die_full_name): Return unique_xmalloc_ptr.
15985 (DW_FIELD_ALLOC_CHUNK): Remove.
15986
15987 2020-01-07 Tom Tromey <tromey@adacore.com>
15988
15989 PR build/24937:
15990 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15991
15992 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15993
15994 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15995
15996 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15997
15998 * stack.c (print_frame_info): Move disassemble_next_line code
15999 inside source_print block.
16000
16001 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16002
16003 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16004 gdb/signals.h, as we are now using native signal symbols.
16005
16006 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16007
16008 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16009 overflow by an early check of content vs threshold.
16010 * tui/tui-source.c (tui_source_window::line_is_displayed):
16011 Likewise.
16012
16013 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16014
16015 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16016
16017 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16018
16019 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16020 export table if no section contains it's RVA.
16021
16022 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16023
16024 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16025
16026 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16027
16028 * source.c (print_source_lines_base): Set last_line_listed.
16029
16030 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16031
16032 * tui/tui-disasm.c: Remove trailing spaces.
16033
16034 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16035 Pedro Alves <palves@redhat.com>
16036
16037 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16038 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16039 (windows_gdb_signal_to_target): New function, uses the above
16040 enumeration to convert GDB internal signal codes to equivalent
16041 Windows codes.
16042 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16043 * windows-nat.c: Include "gdb_wait.h".
16044 (get_windows_debug_event): Extract the fatal exception from the
16045 exit status and convert to the equivalent Posix signal number.
16046 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16047 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16048 * gdbsupport/gdb_wait.c: New file, implements
16049 windows_status_to_termsig.
16050 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16051 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16052
16053 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16054
16055 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16056 show_layout.
16057
16058 2020-01-05 Luis Machado <luis.machado@linaro.org>
16059
16060 * aarch64-linux-nat.c
16061 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16062 and bfd_mach_aarch64.
16063
16064 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16065
16066 * ui-file.c (stdio_file::can_emit_style_escape)
16067 (tee_file::can_emit_style_escape): Ensure style is used also on
16068 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16069 to gdb_stdout.
16070 * main.c (set_gdb_data_directory): Use file style to output the
16071 warning that the given pathname is not a directory.
16072 * top.c (show_history_filename, gdb_safe_append_history)
16073 (show_gdb_datadir): Use file style.
16074
16075 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16076
16077 * solib-target.c (struct lm_info_target):
16078 Change offsets to be a unique_xmalloc_ptr.
16079 (solib_target_relocate_section_addresses): Update.
16080
16081 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16082
16083 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16084
16085 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16086
16087 * MAINTAINERS (Write After Approval): Add myself.
16088
16089 2020-01-02 Luis Machado <luis.machado@linaro.org>
16090
16091 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16092 Cell BE architecture.
16093 * target.h (struct target_ops) <thread_architecture>: Likewise.
16094
16095 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16096
16097 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16098
16099 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16100
16101 * MAINTAINERS (Write After Approval): Add myself.
16102
16103 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16104
16105 * gdbarch.sh: Update copyright year range of generated files.
16106
16107 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16108
16109 Update copyright year range in all GDB files.
16110
16111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16112
16113 * copyright.py: Convert to Python 3.
16114
16115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16116
16117 * copyright.py: Adapt after move of gnulib directory from gdb
16118 directory to toplevel directory.
16119
16120 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16121
16122 * copyright.py (main): Exit if run from the wrong directory.
16123
16124 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16125
16126 * top.c (print_gdb_version): Change copyright year to 2020.
16127
16128 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16129
16130 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16131
16132 For older changes see ChangeLog-2019.
16133 \f
16134 Local Variables:
16135 mode: change-log
16136 left-margin: 8
16137 fill-column: 74
16138 version-control: never
16139 coding: utf-8
16140 End: