gdbsupport: replace AC_TRY_COMPILE in warning.m4
[deliverable/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 * configure: Re-generate.
12
13 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * acinclude.m4: Modernize.
16 * configure: Re-generate.
17
18 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * configure.ac: Modernize.
21 * configure: Re-generate.
22
23 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
26 * configure: Re-generate.
27 * configure.ac: Remove AM_PROG_CC_STDC.
28
29 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
32 AC_CANONICAL_SYSTEM.
33 * configure: Re-generate.
34
35 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
36
37 * infrun.h (displaced_debug_printf): New macro. Replace
38 displaced debug prints throughout to use it.
39 (displaced_debug_printf_1): New declaration.
40 (displaced_step_dump_bytes): Return string, remove ui_file
41 parameter, update all callers.
42 * infrun.c (displaced_debug_printf_1): New function.
43 (displaced_step_dump_bytes): Return string, remove ui_file
44 parameter
45
46 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
47
48 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
49
50 2020-10-30 Tom Tromey <tromey@adacore.com>
51
52 * Makefile.in (stamp-init): Depend on config.status.
53
54 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55
56 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
57
58 2020-10-30 Pedro Alves <pedro@palves.net>
59
60 * thread.c (lookup_selected_frame): Move ...
61 * frame.c (lookup_selected_frame): ... here.
62
63 2020-10-30 Pedro Alves <pedro@palves.net>
64
65 * blockframe.c (block_innermost_frame): Use get_selected_frame.
66 * frame.c
67 (scoped_restore_selected_frame::scoped_restore_selected_frame):
68 Use save_selected_frame. Save language as well.
69 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
70 Use restore_selected_frame, and restore language as well.
71 (selected_frame_id, selected_frame_level): New.
72 (selected_frame): Update comments.
73 (save_selected_frame, restore_selected_frame): New.
74 (get_selected_frame): Use lookup_selected_frame.
75 (get_selected_frame_if_set): Delete.
76 (select_frame): Record selected_frame_level and selected_frame_id.
77 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
78 fields.
79 (get_selected_frame): Make 'message' parameter optional.
80 (get_selected_frame_if_set): Delete declaration.
81 (select_frame): Update comments.
82 (save_selected_frame, restore_selected_frame)
83 (lookup_selected_frame): Declare.
84 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
85 * infrun.c (struct infcall_control_state) <selected_frame_level>:
86 New field.
87 (save_infcall_control_state): Use save_selected_frame.
88 (restore_selected_frame): Delete.
89 (restore_infcall_control_state): Use restore_selected_frame.
90 * stack.c (select_frame_command_core, frame_command_core): Use
91 get_selected_frame.
92 * thread.c (restore_selected_frame): Rename to ...
93 (lookup_selected_frame): ... this and make extern. Select the
94 current frame if the frame level is -1.
95 (scoped_restore_current_thread::restore): Also restore the
96 language.
97 (scoped_restore_current_thread::~scoped_restore_current_thread):
98 Don't try/catch.
99 (scoped_restore_current_thread::scoped_restore_current_thread):
100 Save the language as well. Use save_selected_frame.
101
102 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
105 documentation.
106 * gdbarch.h: Re-generate.
107
108 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
111 parameter.
112 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
113 Likewise.
114 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
115 Likewise.
116 * arch-utils.c (default_displaced_step_hw_singlestep):
117 Likewise.
118 * arch-utils.h (default_displaced_step_hw_singlestep):
119 Likewise.
120 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
121 Likewise.
122 * s390-tdep.c (s390_displaced_step_hw_singlestep):
123 Likewise.
124 * gdbarch.c: Re-generate.
125 * gdbarch.h: Re-generate.
126 * infrun.c (resume_1): Adjust.
127
128 2020-10-29 Tom Tromey <tom@tromey.com>
129
130 * progspace.c (program_space::~program_space): Don't call
131 exec_close.
132
133 2020-10-29 Tom Tromey <tom@tromey.com>
134
135 * exec.c (exec_target::close): Don't change current program
136 space.
137
138 2020-10-29 Tom Tromey <tom@tromey.com>
139
140 * symfile.c (add_symbol_file_command): Update.
141 * exec.c (program_space::add_target_sections): Rename.
142 * symfile-mem.c (symbol_file_add_from_memory): Update.
143 * progspace.h (struct program_space) <add_target_sections>:
144 Declare new overload.
145 * exec.h (add_target_sections_of_objfile): Don't declare.
146
147 2020-10-29 Tom Tromey <tom@tromey.com>
148
149 * solib.c (solib_map_sections): Update.
150 * exec.c (program_space::add_target_sections): Now a method.
151 (exec_file_attach): Update.
152 * exec.h (add_target_sections): Don't declare.
153 * progspace.h (struct program_space) <add_target_sections>:
154 Declare.
155
156 2020-10-29 Tom Tromey <tom@tromey.com>
157
158 * progspace.h (struct program_space) <remove_target_sections>:
159 Declare.
160 * exec.c (program_space::remove_target_sections): Now a method.
161 * exec.h (remove_target_sections): Don't declare.
162
163 2020-10-29 Tom Tromey <tom@tromey.com>
164
165 * inferior.c (delete_inferior): Update.
166 * progspace.c (program_space::empty): Rename from
167 program_space_empty_p. Return bool.
168 * progspace.h (struct program_space) <empty>: New method.
169 (program_space_empty_p): Don't declare.
170
171 2020-10-29 Tom Tromey <tom@tromey.com>
172
173 * progspace.c (program_space::~program_space): Don't call
174 clear_program_space_solib_cache.
175 (program_space::clear_solib_cache): Rename from
176 clear_solib_cache.
177 * solib.c (handle_solib_event): Update.
178 * progspace.h (struct program_space) <clear_solib_cache>: New
179 method.
180 (clear_program_space_solib_cache): Don't declare.
181
182 2020-10-29 Tom Tromey <tom@tromey.com>
183
184 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
185 * target.c (info_target_command): Update.
186 * symfile.c (syms_from_objfile_1, finish_new_objfile)
187 (symbol_file_clear, reread_symbols): Update.
188 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
189 * stabsread.c (scan_file_globals): Update.
190 * solib.c (update_solib_list): Update.
191 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
192 (svr4_fetch_objfile_link_map, enable_break)
193 (svr4_relocate_main_executable)
194 (svr4_iterate_over_objfiles_in_search_order): Update.
195 * solib-frv.c (lm_base, enable_break)
196 (frv_relocate_main_executable): Update.
197 (main_got, frv_fdpic_find_canonical_descriptor): Update.
198 (frv_fetch_objfile_link_map): Update.
199 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
200 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
201 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
202 * remote.c (remote_target::get_offsets): Update.
203 (remote_target::start_remote)
204 (extended_remote_target::post_attach): Update.
205 * objfiles.c (entry_point_address_query): Update.
206 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
207 * minsyms.c (get_symbol_leading_char): Update.
208 * frame.c (inside_main_func): Update.
209 * progspace.h (symfile_objfile): Remove macro.
210
211 2020-10-29 Tom Tromey <tom@tromey.com>
212
213 * exec.c (exec_file_attach): Update.
214 * progspace.c (program_space::exec_close): Update.
215 * progspace.h (struct program_space) <ebfd>: Now a
216 gdb_bfd_ref_ptr.
217 <set_exec_bfd>: Change argument type.
218 <exec_bfd>: Update.
219
220 2020-10-29 Tom Tromey <tom@tromey.com>
221
222 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
223 * symfile.c (reread_symbols): Update.
224 * symfile-mem.c (add_symbol_file_from_memory_command)
225 (add_vsyscall_page): Update.
226 * source-cache.c (source_cache::get_plain_source_lines): Update.
227 * solib-svr4.c (find_program_interpreter, elf_locate_base)
228 (svr4_current_sos_direct, svr4_exec_displacement)
229 (svr4_relocate_main_executable): Update.
230 (svr4_iterate_over_objfiles_in_search_order): Update.
231 * solib-frv.c (enable_break2, enable_break): Update.
232 * solib-dsbt.c (lm_base, enable_break): Update.
233 * solib-darwin.c (find_program_interpreter)
234 (darwin_solib_create_inferior_hook): Update.
235 * sol-thread.c (rw_common, ps_pdmodel): Update.
236 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
237 * remote.c (compare_sections_command)
238 (remote_target::trace_set_readonly_regions): Update.
239 * remote-sim.c (get_sim_inferior_data)
240 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
241 (gdbsim_target_open, gdbsim_target::files_info): Update.
242 * exec.h (exec_bfd): Remove macro.
243 * progspace.c (initialize_progspace): Update.
244 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
245 Update.
246 * nto-procfs.c (nto_procfs_target::post_attach)
247 (nto_procfs_target::create_inferior): Update.
248 * maint.c (maintenance_info_sections): Update.
249 * linux-thread-db.c (thread_db_target::get_thread_local_address):
250 Update.
251 * infcmd.c (post_create_inferior): Update.
252 * gcore.c (default_gcore_arch, default_gcore_target): Update.
253 (objfile_find_memory_regions): Update.
254 * exec.c (validate_exec_file, exec_file_attach)
255 (exec_read_partial_read_only, print_section_info): Update.
256 * corelow.c (core_target_open): Update.
257 * corefile.c (reopen_exec_file, validate_files): Update.
258 * arm-tdep.c (gdb_print_insn_arm): Update.
259 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
260 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
261 methods.
262
263 2020-10-29 Tom Tromey <tom@tromey.com>
264
265 * progspace.h (current_target_sections): Remove macro.
266 * solib-svr4.c (scan_dyntag): Update.
267 * solib-dsbt.c (scan_dyntag): Update.
268 * exec.c (exec_target::close): Update.
269 (add_target_sections, add_target_sections_of_objfile)
270 (remove_target_sections, exec_target::get_section_table)
271 (exec_target::files_info, set_section_command)
272 (exec_set_section_address, exec_target::has_memory)
273 (exec_target::has_memory): Update.
274
275 2020-10-29 Tom Tromey <tom@tromey.com>
276
277 * source-cache.c (source_cache::get_plain_source_lines): Use
278 current_program_space.
279 * corefile.c (reopen_exec_file): Use current_program_space.
280 * exec.c (exec_file_attach): Use current_program_space.
281 * exec.h (exec_bfd_mtime): Remove.
282
283 2020-10-29 Tom Tromey <tom@tromey.com>
284
285 * gcore.c (default_gcore_mach): Remove.
286 (create_gcore_bfd): Update.
287
288 2020-10-29 Tom Tromey <tom@tromey.com>
289
290 * progspace.c (program_space::exec_close): New method, from
291 exec_close in exec.c.
292 * exec.c (exec_close): Move to progspace.c.
293 (exec_target::close, exec_file_attach): Update.
294 * progspace.h (struct program_space) <exec_close>: Declare
295 method.
296
297 2020-10-29 Tom Tromey <tom@tromey.com>
298
299 * progspace.h (struct program_space) <exec_filename>: Rename from
300 pspace_exec_filename. Now a unique_xmalloc_ptr.
301 * inferior.c (print_selected_inferior): Update.
302 (print_inferior): Update.
303 * mi/mi-main.c (print_one_inferior): Update.
304 * exec.h (exec_filename): Remove macro.
305 * corefile.c (get_exec_file): Update.
306 * exec.c (exec_close): Update.
307 (exec_file_attach): Update.
308 * progspace.c (clone_program_space): Update.
309 (print_program_space): Update.
310
311 2020-10-29 Tom Tromey <tom@tromey.com>
312
313 * target-section.h (struct target_section): Add constructor.
314 * exec.c (build_section_table, add_target_sections_of_objfile):
315 Update.
316 * corelow.c (core_target::build_file_mappings): Update.
317
318 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
319
320 PR gdb/19318
321 * inferior.c (detach_inferior_command): Restore the current thread.
322 (kill_inferior_command): Ditto.
323
324 2020-10-28 Tom de Vries <tdevries@suse.de>
325
326 PR symtab/26772
327 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
328 map, check it in the "best match" loop.
329
330 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * m32c-tdep.c: Remove unused includes.
333
334 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * xtensa-tdep.c: Remove includes.
337
338 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339
340 * breakpoint.c (struct condition_command_opts): New struct.
341 (condition_command_option_defs): New static global.
342 (make_condition_command_options_def_group): New function.
343 (condition_completer): Update to consider the '-force' flag.
344 (condition_command): Use gdb::option for the '-force' flag.
345
346 2020-10-27 Tom de Vries <tdevries@suse.de>
347
348 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
349 symbols in section check.
350
351 2020-10-27 Tom de Vries <tdevries@suse.de>
352
353 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
354
355 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
356
357 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
358 * breakpoint.c: Update the help text of the 'condition' and 'break'
359 commands.
360 (set_breakpoint_condition): Take a new bool parameter
361 to control whether condition definition should be forced even when
362 the condition expression is invalid in all of the current locations.
363 (condition_command): Update the call to 'set_breakpoint_condition'.
364 (find_condition_and_thread): Take the "-force-condition" flag into
365 account.
366 * linespec.c (linespec_keywords): Add "-force-condition" as an
367 element.
368 (FORCE_KEYWORD_INDEX): New #define.
369 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
370 as a keyword.
371 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
372 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
373 * python/py-breakpoint.c (bppy_set_condition): Ditto.
374 * NEWS: Mention the changes to the 'break' and 'condition' commands.
375
376 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
377
378 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
379 * breakpoint.c (set_breakpoint_location_condition): New function.
380 (set_breakpoint_condition): Disable a breakpoint location if parsing
381 the condition string gives an error.
382 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
383 (build_target_condition_list): Ditto.
384 (build_target_command_list): Ditto.
385 (build_bpstat_chain): Ditto.
386 (print_one_breakpoint_location): Ditto.
387 (print_one_breakpoint): Ditto.
388 (breakpoint_1): Ditto.
389 (bp_location::bp_location): Ditto.
390 (locations_are_equal): Ditto.
391 (update_breakpoint_locations): Ditto.
392 (enable_disable_bp_num_loc): Ditto.
393 (init_breakpoint_sal): Use set_breakpoint_location_condition.
394 (find_condition_and_thread_for_sals): New static function.
395 (create_breakpoint): Call find_condition_and_thread_for_sals.
396 (location_to_sals): Call find_condition_and_thread_for_sals instead
397 of find_condition_and_thread.
398
399 2020-10-26 Tom de Vries <tdevries@suse.de>
400
401 * dwarf2/read.c (process_full_comp_unit): Call
402 dwarf2_find_base_address.
403
404 2020-10-26 Tom Tromey <tromey@adacore.com>
405
406 * gdbtypes.c (create_range_type): Revert previous patch. Add
407 comment.
408
409 2020-10-26 Pedro Alves <pedro@palves.net>
410
411 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
412 (my_waitpid): Use gdb::handle_eintr.
413
414 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * acinclude.m4: Update ptrace.m4 path.
417 * ptrace.m4: Moved to gdbsupport.
418
419 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
422 instead of target_gdbarch.
423
424 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * jit.c (jit_reader_load_command): Pass current inferior.
427 (jit_inferior_init): Change parameter type to inferior, use it.
428 (jit_inferior_created): Remove.
429 (jit_inferior_created_hook): Pass inferior parameter down.
430 (_initialize_jit): Use jit_inferior_created_hook instead of
431 jit_inferior_created.
432 * jit.h (jit_inferior_created_hook): Add inferior parameter.
433 * infrun.c (follow_exec): Pass inferior to
434 jit_inferior_created_hook.
435
436 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
437
438 * linux-thread-db.c (check_pid_namespace_match): Add inferior
439 parameter and use it.
440 (thread_db_inferior_created): Pass inferior argument.
441
442 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
443
444 * aix-thread.c (aix_thread_inferior_created): Add inferior
445 parameter.
446 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
447 * dummy-frame.c (cleanup_dummy_frames): Likewise.
448 * jit.c (jit_inferior_created): Likewise.
449 * linux-thread-db.c (thread_db_inferior_created): Likewise.
450 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
451 * observable.h (inferior_created): Likewise.
452 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
453 * symfile-mem.c (add_vsyscall_page): Likewise.
454 * infcmd.c (post_create_inferior): Pass inferior argument.
455
456 2020-10-24 Joel Brobecker <brobecker@adacore.com>
457
458 GDB 10.1 released.
459
460 2020-10-23 Joel Brobecker <brobecker@adacore.com>
461
462 * ada-typeprint.c (ada_print_type): Remove superfluous second call
463 to ada_check_typedef.
464
465 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * f-exp.y (f_parse): Rename to...
468 (f_language::parser): ...this.
469 * f-lang.c (f_get_encoding): Rename to...
470 (f_language::get_encoding): ...this.
471 (f_op_print_tab): Rename to...
472 (f_language::op_print_tab): ...this.
473 (exp_descriptor_f): Rename to...
474 (f_language::exp_descriptor_tab): ...this.
475 (class f_language): Moved to f-lang.h.
476 (f_language::language_arch_info): New function, moved out of class
477 declaration.
478 (f_language::search_name_hash): Likewise.
479 (f_language::lookup_symbol_nonlocal): Likewise.
480 (f_language::get_symbol_name_matcher_inner): Likewise.
481 * f-lang.h: Add 'valprint.h' include.
482 (class f_language): Moved here from f-lang.c.
483 * f-typeprint.c (f_type_print_args): Delete commented out
484 declaration.
485 (f_print_typedef): Rename to...
486 (f_language::print_typedef): ...this.
487 (f_print_type): Rename to...
488 (f_language::print_type): ...this.
489 (f_type_print_varspec_prefix): Delete declaration and rename to...
490 (f_language::f_type_print_varspec_prefix): ...this.
491 (f_type_print_varspec_suffix): Delete declaration and rename to...
492 (f_language::f_type_print_varspec_suffix): ...this.
493 (f_type_print_base): Delete declaration and rename to...
494 (f_language::f_type_print_base): ...this.
495 * f-valprint.c (f_value_print_inner): Rename to...
496 (f_language::value_print_inner): ...this.
497 * parse.c: Delete 'f-lang.h' include.
498
499 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
500
501 * language.h (language_defn::print_type): Add variable names in
502 declaration, and update header comment.
503
504 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
505
506 * ada-lang.c (ada_language::demangle): Rename to...
507 (ada_language::demangle_symbol): ...this.
508 * c-lang.c (cplus_language::demangle): Rename to...
509 (cplus_language::demangle_symbol): ...this.
510 * d-lang.c (d_language::demangle): Rename to...
511 (d_language::demangle_symbol): ...this.
512 * f-lang.c (f_language::demangle): Rename to...
513 (f_language::demangle_symbol): ...this.
514 * go-lang.c (go_language::demangle): Rename to...
515 (go_language::demangle_symbol): ...this.
516 * language.c (language_demangle): Update call to demangle_symbol.
517 (auto_or_unknown_language::demangle): Rename to...
518 (auto_or_unknown_language::demangle_symbol): ...this.
519 * language.h (language_defn::demangle): Rename to...
520 (language_defn::demangle_symbol): ...this.
521 * objc-lang.c (objc_language::demangle): Rename to...
522 (objc_language::demangle_symbol): ...this.
523 * rust-lang.c (rust_language::demangle): Rename to...
524 (rust_language::demangle_symbol): ...this.
525
526 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
529 (iterate_over_file_blocks): Replace use of macro with the macros
530 definition.
531
532 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
535 * valprint.c (maybe_print_array_index): Replace use of macro with
536 the macros definition.
537
538 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * ada-lang.c (ada_language::print_array_index): Call value_print
541 directly.
542 * language.c (language_defn::print_array_index): Likewise.
543 * language.h (LA_VALUE_PRINT): Delete.
544 * valprint.c (value_print): Call value_print on the
545 current_language directly.
546
547 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * language.h (LA_PRINT_TYPEDEF): Delete.
550 * typeprint.c (typedef_print): Call print_typedef directly on the
551 current_language object.
552
553 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * m2-exp.y (m2_parse): Rename to...
556 (m2_language::parser): ...this. Update function signature.
557 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
558 (m2_op_print): Rename to...
559 (m2_language::op_print_tab): ...this, and make const.
560 (exp_descriptor_modula2): Rename to...
561 (m2_language::exp_descriptor_modula2): ...this.
562 (class m2_language): Move to m2-lang.h.
563 (m2_language::language_arch_info): New function, moved out of
564 class declaration.
565 (m2_language::printchar): New function, body from m2_printchar.
566 (m2_language::printstr): New function, moved out of class
567 declaration.
568 (m2_language::emitchar): Likewise.
569 * m2-lang.h (m2_parse): Delete declaration.
570 (m2_print_typedef): Delete declaration.
571 (m2_value_print_inner): Delete declaration.
572 (class m2_language): Class declaration moved from m2-lang.c,
573 larger functions are left in m2-lang.c.
574 * m2-typeprint.c (m2_print_typedef): Rename to...
575 (m2_language::print_typedef): ...this, and update function
576 signature.
577 * m2-valprint.c (m2_value_print_inner): Rename to...
578 (m2_language::value_print_inner): ...this, replace use of
579 LA_PRINT_STRING with a direct call to printstr member function,
580 and update recursive call.
581
582 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
583
584 * language.c (default_is_string_type_p): Delete, implementation
585 moved into auto_or_unknown_language::is_string_type_p.
586 (unk_op_print_tab): Moved into
587 auto_or_unknown_language::opcode_print_table.
588 (unknown_language_arch_info): Delete, implementation moved into
589 auto_or_unknown_language::language_arch_info.
590 (class auto_or_unknown_language): New class, member functions
591 copied from unknown_language class, with some updates.
592 (class unknown_language): Most member functions moved into
593 auto_or_unknown_language class. Inherit from
594 auto_or_unknown_language class.
595 (class auto_language): Inherit from auto_or_unknown_language.
596 Delete most member functions.
597
598 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
599
600 * stabsread.c (read_member_functions): Remove gdb_assert.
601
602 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
603
604 * gdbtypes.c (init_complex_type): Check target type name.
605
606 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * target-debug.h (target_debug_print_struct_target_ops_p):
609 Remove.
610 (target_debug_print_async_callback_ftype_p): Remove.
611 (target_debug_print_struct_trace_state_variable_p): Remove.
612 (target_debug_print_struct_traceframe_info_p): Remove.
613 (target_debug_print_VEC__btrace_block_s__pp): Remove.
614 (target_debug_print_enum_btrace_format): Remove.
615 (target_debug_print_enum_info_proc_what): Remove.
616 (target_debug_print_thread_info_pp): Remove.
617
618 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
619
620 * target.h (struct target_ops) <make_corefile_notes>:
621 Change return type to unique pointer.
622 * target.c (dummy_make_corefile_notes): Likewise.
623 * exec.c (struct exec_target) <make_corefile_notes>:
624 Likewise.
625 (exec_target::make_corefile_notes): Likewise.
626 * procfs.c (class procfs_target) <make_corefile_notes>:
627 Likewise.
628 (procfs_do_thread_registers): Adjust to unique pointer.
629 (struct procfs_corefile_thread_data): Add constructor.
630 <note_data>: Change type to unique pointer.
631 (procfs_corefile_thread_callback): Adjust to unique pointer.
632 (procfs_target::make_corefile_notes): Change return type to
633 unique pointer.
634 * target-delegates.c: Re-generate.
635 * gcore.c (write_gcore_file_1): Adjust.
636 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
637 New.
638
639 2020-10-22 Tom de Vries <tdevries@suse.de>
640
641 * block.c (find_block_in_blockvector): Make sure the returned block
642 contains pc.
643
644 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
645
646 PR gdb/26693
647 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
648 parameter.
649 (load_cu): Pass existing CU.
650 (process_imported_unit_die): Likewise.
651 (follow_die_offset): Likewise.
652
653 2020-10-22 Luis Machado <luis.machado@linaro.org>
654
655 * corelow.c (core_target::xfer_partial): Also check for an empty
656 m_core_unavailable_mappings vector.
657
658 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
659
660 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
661 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
662 * f-exp.y (arglist): Allow for a series of subranges.
663 (subrange): Add cases for subranges with strides.
664 * f-lang.c (value_f90_subarray): Catch use of array strides and
665 throw an error.
666 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
667
668 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * expprint.c (print_subexp_standard): Change enum range_type to
671 range_flag and rename variables to match.
672 (dump_subexp_body_standard): Likewise.
673 * expression.h (enum range_type): Rename to...
674 (enum range_flag): ...this.
675 (range_types): Rename to...
676 (range_flags): ...this.
677 * f-lang.c (value_f90_subarray): Change enum range_type to
678 range_flag and rename variables to match.
679 * parse.c (operator_length_standard): Likewise.
680 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
681 range_type to range_flag.
682 * rust-lang.c (rust_evaluate_funcall): Likewise.
683 (rust_range): Likewise.
684 (rust_compute_range): Likewise.
685 (rust_subscript): Likewise.
686
687 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * expprint.c (print_subexp_standard): Update to reflect changes to
690 enum range_type.
691 (dump_subexp_body_standard): Likewise.
692 * expression.h (enum range_type): Convert to a bit field enum, and
693 make the enum unsigned.
694 * f-exp.y (subrange): Update to reflect changes to enum
695 range_type.
696 * f-lang.c (value_f90_subarray): Likewise.
697 * parse.c (operator_length_standard): Likewise.
698 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
699 * rust-lang.c (rust_range): Likewise.
700 (rust_compute_range): Likewise.
701 (rust_subscript): Likewise.
702
703 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
704
705 * infrun.c (displaced_step_in_progress_thread): Fix comment.
706 (displaced_step_in_progress): Fix comment.
707
708 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * gdbarch.sh (make_corefile_notes): Return unique pointer.
711 * gdbarch.c: Re-generate.
712 * gdbarch.h: Re-generate.
713 * gcore.c (write_gcore_file_1): Adjust.
714 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
715 constructor.
716 <note_data>: Change type to unique pointer.
717 <abort_iteration>: Change type to bool.
718 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
719 (fbsd_collect_thread_registers): Return void, adjust.
720 (struct fbsd_corefile_thread_data): Add construtor.
721 <note_data>: Change type to unique pointer.
722 (fbsd_corefile_thread): Adjust.
723 (fbsd_make_corefile_notes): Return unique pointer, adjust.
724 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
725 to unique pointer, adjust.
726 (struct linux_collect_regset_section_cb_data): Add constructor.
727 <note_data>: Change type to unique pointer.
728 <abort_iteration>: Change type to bool.
729 (linux_collect_thread_registers): Return void, adjust.
730 (struct linux_corefile_thread_data): Add constructor.
731 <note_data>: Change type to unique pointer.
732 (linux_corefile_thread): Adjust.
733 (linux_make_corefile_notes): Return unique pointer, adjust.
734
735 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
738 * gdbarch.c: Re-generate.
739 * gdbarch.h: Re-generate.
740 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
741 bool.
742 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
743 Likewise.
744 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
745 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
746 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
747 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
748
749 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * gdbarch.sh: Make generated predicates return bool.
752 * gdbarch.c: Re-generate.
753 * gdbarch.h: Re-generate.
754
755 2020-10-20 Tom Tromey <tom@tromey.com>
756
757 * varobj-iter.h (struct varobj_item): Remove typedef.
758
759 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * infrun.c (currently_stepping): Change int to bool
762 (maybe_software_singlestep): Likewise.
763 (show_stop_on_solib_events): Likewise.
764 (stepping_past_nonsteppable_watchpoint): Likewise.
765 (displaced_step_in_progress_any_inferior): Likewise.
766 (displaced_step_in_progress_thread): Likewise.
767 (keep_going_stepped_thread): Likewise.
768 (thread_still_needs_step_over): Likewise.
769 (start_step_over): Likewise.
770 (do_target_resume): Likewise.
771 (resume_1): Likewise.
772 (clear_proceed_status): Likewise.
773 (thread_still_needs_step_over_bp): Likewise.
774 (proceed): Likewise.
775 (switch_back_to_stepped_thread): Likewise.
776 (adjust_pc_after_break): Likewise.
777 (stepped_in_from): Likewise.
778 (handle_stop_requested): Likewise.
779 (handle_syscall_event): Likewise.
780 (handle_no_resumed): Likewise.
781 (handle_inferior_event): Likewise.
782 (finish_step_over): Likewise.
783 (handle_signal_stop): Likewise.
784 (process_event_stop_test): Likewise.
785
786 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * infrun.c (get_displaced_stepping_state): Fix comment.
789
790 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
791
792 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
793
794 2020-10-19 Tom Tromey <tromey@adacore.com>
795
796 PR tui/26719
797 * tui/tui-winsource.h (struct tui_source_window_base)
798 <refresh_window>: Rename from refresh_pad.
799 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
800 Rename from refresh_pad.
801 (tui_source_window_base::show_source_content)
802 (tui_source_window_base::do_scroll_horizontal): Update.
803
804 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805
806 * thread.c (_initialize_thread): Fine-tune the help text of
807 'info threads'.
808
809 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
810
811 * frame.c: Remove the unused 'uinteger_option_def' type alias.
812
813 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
814
815 * breakpoint.c (handle_jit_event): Add an argument, change how
816 `jit_event_handler` is called.
817
818 2020-10-17 Tom Tromey <tom@tromey.com>
819
820 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
821 (scan_xcoff_symtab): Update.
822 * psymtab.h (class psymtab_storage) <global_psymbols,
823 static_psymbols, current_global_psymbols,
824 current_static_psymbols>: Remove.
825 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
826 (match_partial_symbol, lookup_partial_symbol): Update.
827 (print_partial_symbols): Change parameters.
828 (dump_psymtab, recursively_search_psymtabs)
829 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
830 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
831 (concat): Remove.
832 (end_psymtab_common): Simplify.
833 (append_psymbol_to_list): Change parameters.
834 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
835 (init_psymbol_list): Simplify.
836 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
837 * psympriv.h (struct partial_symtab) <empty>: New method.
838 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
839 Remove.
840 <global_psymbols, static_psymbols>: New members.
841 <add_psymbol>: New methods.
842 (add_psymbol_to_list): Don't declare.
843 (psymbol_placement): Move earlier.
844 * mdebugread.c (parse_partial_symbols): Update.
845 (handle_psymbol_enumerators): Change parameters.
846 (mdebug_expand_psymtab): Update.
847 * dwarf2/read.c (process_psymtab_comp_unit_reader)
848 (add_partial_symbol): Update.
849 * dwarf2/index-write.c (write_psymbols): Change parameters.
850 (write_one_signatured_type): Update.
851 (recursively_count_psymbols): Update.
852 (recursively_write_psymbols): Update.
853 (class debug_names) <recursively_write_psymbols>: Update.
854 <write_psymbols>: Change parameters.
855 <write_one_signatured_type>: Update.
856 * dbxread.c (read_dbx_symtab): Update.
857 (dbx_end_psymtab): Use partial_symtab::empty.
858 * ctfread.c (struct ctf_context) <pst>: New member.
859 (create_partial_symtab): Set it.
860 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
861 (scan_partial_symbols): Use the psymtab's context. Update.
862
863 2020-10-17 Tom Tromey <tom@tromey.com>
864
865 * valprint.c (generic_value_print): Remove comment.
866 * m2-valprint.c (m2_value_print_inner): Remove comment.
867 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
868 type.
869
870 2020-10-17 Tom de Vries <tdevries@suse.de>
871
872 PR symtab/26317
873 * source.c (select_source_symtab): Handling sal.symtab == NULL for
874 symbol main.
875
876 2020-10-14 Tom de Vries <tdevries@suse.de>
877
878 PR gdb/26733
879 * solib.c (solib_contains_address_p): Handle
880 'solib->sections == nullptr'.
881
882 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
883
884 PR gdb/26642
885 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
886 target can't do async.
887 * target.c (target_wait): Assert that we don't pass
888 TARGET_WNOHANG to a target that can't async.
889
890 2020-10-13 Kamil Rytarowski <n54@gmx.com>
891
892 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
893 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
894 * alpha-bsd-nat.c: Adjust include.
895 * alpha-bsd-tdep.h: Adjust comment.
896 * alpha-nbsd-tdep.c: Rename to ...
897 * alpha-netbsd-tdep.c: ... this, adjust include.
898 * amd64-nbsd-nat.c: Rename to ...
899 * amd64-netbsd-nat.c: ... this, adjust include.
900 * amd64-nbsd-tdep.c: Rename to ...
901 * amd64-netbsd-tdep.c: ... this, adjust include.
902 * amd64-tdep.h: Adjust include.
903 * arm-nbsd-nat.c: Rename to ...
904 * arm-netbsd-nat.c: ... this, adjust include.
905 * arm-nbsd-tdep.c: Rename to ...
906 * arm-netbsd-tdep.c: ... this, adjust include.
907 * arm-nbsd-tdep.h: Rename to ...
908 * arm-netbsd-tdep.h: ... this, adjust include.
909 * configure.nat: Adjust file lists.
910 * configure.tgt: Likewise.
911 * hppa-nbsd-nat.c: Rename to ...
912 * hppa-netbsd-nat.c: ... this, adjust include.
913 * hppa-nbsd-tdep.c: Rename to ...
914 * hppa-netbsd-tdep.c: ... this, adjust include.
915 * i386-nbsd-nat.c: Rename to ...
916 * i386-netbsd-nat.c: ... this, adjust include.
917 * i386-nbsd-tdep.c: Rename to ...
918 * i386-netbsd-tdep.c: ... this, adjust include.
919 * m68k-bsd-nat.c: Adjust include.
920 * mips-nbsd-nat.c: Rename to ...
921 * mips-netbsd-nat.c: ... this, adjust include.
922 * mips-nbsd-tdep.c: Rename to ...
923 * mips-netbsd-tdep.c: ... this, adjust include.
924 * mips-nbsd-tdep.h: Rename to ...
925 * mips-netbsd-tdep.h: ... this.
926 * nbsd-nat.c: Rename to ...
927 * netbsd-nat.c: ... this, adjust include.
928 * nbsd-nat.h: Rename to ...
929 * netbsd-nat.h: ... this, adjust include.
930 * nbsd-tdep.c: Rename to ...
931 * netbsd-tdep.c: ... this, adjust include.
932 * nbsd-tdep.h: Rename to ...
933 * netbsd-tdep.h: ... this.
934 * ppc-nbsd-nat.c: Rename to ...
935 * ppc-netbsd-nat.c: ... this, adjust include.
936 * ppc-nbsd-tdep.c: Rename to ...
937 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
938 * ppc-nbsd-tdep.h: Rename to ...
939 * ppc-netbsd-tdep.h: ... this.
940 * sh-nbsd-nat.c: Rename to ...
941 * sh-netbsd-nat.c: ... this, adjust include.
942 * sh-nbsd-tdep.c: Rename to ...
943 * sh-netbsd-tdep.c: ... this, adjust include.
944 * sparc-nbsd-nat.c: Rename to ...
945 * sparc-netbsd-nat.c: ... this.
946 * sparc-nbsd-tdep.c: Rename to ...
947 * sparc-netbsd-tdep.c: ... this, adjust include.
948 * sparc64-nbsd-nat.c: Rename to ...
949 * sparc64-netbsd-nat.c: ... this.
950 * sparc64-nbsd-tdep.c: Rename to ...
951 * sparc64-netbsd-tdep.c: ... this, adjust include.
952 * sparc64-tdep.h: Adjust comment.
953 * vax-bsd-nat.c: Adjust include.
954 * vax-nbsd-tdep.c: Rename to ...
955 * vax-netbsd-tdep.c: ... this, adjust include.
956
957 2020-10-12 Tom Tromey <tom@tromey.com>
958
959 * target.h (struct target_ops) <get_section_table>: Update.
960 (target_get_section_table): Update.
961 * target.c (target_get_section_table, target_section_by_addr)
962 (memory_xfer_partial_1): Update.
963 * target-section.h (target_section_table): Now an alias.
964 * target-delegates.c: Rebuild.
965 * target-debug.h (target_debug_print_target_section_table_p):
966 Rename from target_debug_print_struct_target_section_table_p.
967 * symfile.c (build_section_addr_info_from_section_table): Update.
968 * solib.c (solib_map_sections, solib_contains_address_p): Update.
969 * solib-svr4.c (scan_dyntag): Update.
970 * solib-dsbt.c (scan_dyntag): Update.
971 * remote.c (remote_target::remote_xfer_live_readonly_partial):
972 Update.
973 * record-full.c (record_full_core_target::xfer_partial): Update.
974 * progspace.h (struct program_space) <target_sections>: Update.
975 * exec.h (print_section_info): Update.
976 * exec.c (exec_target::close, build_section_table)
977 (add_target_sections, add_target_sections_of_objfile)
978 (remove_target_sections, exec_on_vfork)
979 (section_table_available_memory)
980 (section_table_xfer_memory_partial)
981 (exec_target::get_section_table, exec_target::xfer_partial)
982 (print_section_info, set_section_command)
983 (exec_set_section_address, exec_target::has_memory): Update.
984 * corelow.c (core_target::build_file_mappings)
985 (core_target::xfer_partial, core_target::info_proc_mappings)
986 (core_target::info_proc_mappings): Update.
987 * bfd-target.c (class target_bfd): Update
988
989 2020-10-12 Tom Tromey <tom@tromey.com>
990
991 * progspace.c (program_space::~program_space): Don't call
992 clear_section_table.
993 * exec.h (clear_section_table): Don't declare.
994 * exec.c (exec_target::close): Update.
995 (clear_section_table): Remove.
996
997 2020-10-12 Tom Tromey <tom@tromey.com>
998
999 * exec.c (add_target_sections_of_objfile): Simplify.
1000
1001 2020-10-12 Tom Tromey <tom@tromey.com>
1002
1003 * solib.c (solib_map_sections): Update.
1004 * record-full.c (record_full_core_open_1): Update.
1005 * exec.h (build_section_table): Return a target_section_table.
1006 * exec.c (exec_file_attach): Update.
1007 (build_section_table): Return a target_section_table.
1008 * corelow.c (core_target::core_target): Update.
1009 * bfd-target.c (target_bfd::target_bfd): Update.
1010
1011 2020-10-12 Tom Tromey <tom@tromey.com>
1012
1013 * target.c (target_section_by_addr, memory_xfer_partial_1):
1014 Update.
1015 * target-section.h (struct target_section_table): Use
1016 std::vector.
1017 * symfile.h (build_section_addr_info_from_section_table): Take a
1018 target_section_table.
1019 * symfile.c (build_section_addr_info_from_section_table): Take a
1020 target_section_table.
1021 * solist.h (struct so_list) <sections>: Change type.
1022 <sections_end>: Remove.
1023 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
1024 (solib_contains_address_p): Update.
1025 * solib-svr4.c (scan_dyntag): Update.
1026 * solib-dsbt.c (scan_dyntag): Update.
1027 * remote.c (remote_target::remote_xfer_live_readonly_partial):
1028 Update.
1029 * record-full.c (record_full_core_start, record_full_core_end):
1030 Remove.
1031 (record_full_core_sections): New global.
1032 (record_full_core_open_1, record_full_core_target::xfer_partial):
1033 Update.
1034 * exec.h (build_section_table, section_table_xfer_memory_partial)
1035 (add_target_sections): Take a target_section_table.
1036 * exec.c (exec_file_attach, clear_section_table): Update.
1037 (resize_section_table): Remove.
1038 (build_section_table, add_target_sections): Take a
1039 target_section_table.
1040 (add_target_sections_of_objfile, remove_target_sections)
1041 (exec_on_vfork): Update.
1042 (section_table_available_memory): Take a target_section_table.
1043 (section_table_read_available_memory): Update.
1044 (section_table_xfer_memory_partial): Take a target_section_table.
1045 (print_section_info, set_section_command)
1046 (exec_set_section_address, exec_target::has_memory): Update.
1047 * corelow.c (class core_target) <m_core_section_table,
1048 m_core_file_mappings>: Remove braces.
1049 <~core_target>: Remove.
1050 (core_target::core_target): Update.
1051 (core_target::~core_target): Remove.
1052 (core_target::build_file_mappings)
1053 (core_target::xfer_memory_via_mappings)
1054 (core_target::xfer_partial, core_target::info_proc_mappings):
1055 Update.
1056 * bfd-target.c (target_bfd::xfer_partial): Update.
1057 (target_bfd::target_bfd): Update.
1058 (target_bfd::~target_bfd): Remove.
1059
1060 2020-10-12 Tom Tromey <tom@tromey.com>
1061
1062 * target.h (struct target_section, struct target_section_table):
1063 Move to target-section.h.
1064 * target-section.h: New file.
1065
1066 2020-10-12 Pedro Alves <pedro@palves.net>
1067
1068 PR exp/26602
1069 * valops.c (struct struct_field_searcher): New.
1070 (update_search_result): Rename to ...
1071 (struct_field_searcher::update_result): ... this. Simplify
1072 prototype. Record all found fields.
1073 (do_search_struct_field): Rename to ...
1074 (struct_field_searcher::search): ... this. Simplify prototype.
1075 Maintain stack of visited baseclass path. Call update_result for
1076 fields too. Keep searching fields in baseclasses instead of
1077 stopping at the first found field.
1078 (search_struct_field): Use struct_field_searcher. When looking
1079 for fields, report ambiguous access attempts.
1080
1081 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * frame.c (inside_main_func): Check full symbols as well as
1084 minimal symbols.
1085
1086 2020-10-09 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-lang.c (advance_wild_match): Rewrite the function's
1089 description. Change the type of target0, t0 and t1 to char.
1090
1091 2020-10-09 Tom Tromey <tromey@adacore.com>
1092
1093 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
1094
1095 2020-10-09 Tom Tromey <tromey@adacore.com>
1096
1097 * ada-lang.h (ada_encode): Return std::string.
1098 * ada-lang.c (ada_encode_1): Return std::string.
1099 (ada_encode): Likewise.
1100 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
1101 Update.
1102 * ada-exp.y (block_lookup, write_var_or_type): Update.
1103
1104 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1105
1106 PR exp/26714
1107 * printcmd.c (print_formatted): Handle void results as
1108 unformatted prints.
1109
1110 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1111
1112 * arch/aarch32.c (aarch32_create_target_description): Release the
1113 target_desc_up as late as possible.
1114 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1115 * arch/amd64.c (amd64_create_target_description): Likewise.
1116 * arch/arc.c (arc_create_target_description): Return a
1117 target_desc_up, don't release it.
1118 * arch/arc.h (arc_create_target_description): Update declaration.
1119 (arc_lookup_target_description): Move target_desc_up into the
1120 cache, and return a borrowed pointer.
1121 * arch/arm.c (arm_create_target_description): Release the
1122 target_desc_up as late as possible.
1123 * arch/i386.c (i386_create_target_description): Likewise.
1124 * arch/riscv.h (riscv_create_target_description): Update
1125 declaration to match definition.
1126 * arch/tic6x.c (tic6x_create_target_description): Release the
1127 target_desc_up as late as possible.
1128
1129 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1132 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1133
1134 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1135
1136 * source.c (directory_command): Notify observers that "directories"
1137 parameter has changed.
1138
1139 2020-10-08 Tom Tromey <tom@tromey.com>
1140
1141 * cli/cli-cmds.c (print_disassembly): Style function name and
1142 addresses. Add _() wrappers.
1143
1144 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1145
1146 * NEWS: Mention ARC support in GDBserver.
1147
1148 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * arch/aarch32.c (aarch32_create_target_description): Release
1151 unique_ptr returned from allocate_target_description.
1152 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1153 * arch/amd64.c (amd64_create_target_description): Likewise.
1154 * arch/arc.c (arc_create_target_description): Likewise.
1155 * arch/arm.c (arm_create_target_description): Likewise.
1156 * arch/i386.c (i386_create_target_description): Likewise.
1157 * arch/riscv.c (riscv_create_target_description): Update return
1158 type. Handle allocate_target_description returning a unique_ptr.
1159 (riscv_lookup_target_description): Update to handle unique_ptr.
1160 * arch/tic6x.c (tic6x_create_target_description): Release
1161 unique_ptr returned from allocate_target_description.
1162 * features/microblaze-with-stack-protect.c: Regenerate.
1163 * features/microblaze.c: Regenerate.
1164 * features/mips-dsp-linux.c: Regenerate.
1165 * features/mips-linux.c: Regenerate.
1166 * features/mips64-dsp-linux.c: Regenerate.
1167 * features/mips64-linux.c: Regenerate.
1168 * features/nds32.c: Regenerate.
1169 * features/nios2.c: Regenerate.
1170 * features/or1k.c: Regenerate.
1171 * features/rs6000/powerpc-32.c: Regenerate.
1172 * features/rs6000/powerpc-32l.c: Regenerate.
1173 * features/rs6000/powerpc-403.c: Regenerate.
1174 * features/rs6000/powerpc-403gc.c: Regenerate.
1175 * features/rs6000/powerpc-405.c: Regenerate.
1176 * features/rs6000/powerpc-505.c: Regenerate.
1177 * features/rs6000/powerpc-601.c: Regenerate.
1178 * features/rs6000/powerpc-602.c: Regenerate.
1179 * features/rs6000/powerpc-603.c: Regenerate.
1180 * features/rs6000/powerpc-604.c: Regenerate.
1181 * features/rs6000/powerpc-64.c: Regenerate.
1182 * features/rs6000/powerpc-64l.c: Regenerate.
1183 * features/rs6000/powerpc-7400.c: Regenerate.
1184 * features/rs6000/powerpc-750.c: Regenerate.
1185 * features/rs6000/powerpc-860.c: Regenerate.
1186 * features/rs6000/powerpc-altivec32.c: Regenerate.
1187 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1188 * features/rs6000/powerpc-altivec64.c: Regenerate.
1189 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1190 * features/rs6000/powerpc-e500.c: Regenerate.
1191 * features/rs6000/powerpc-e500l.c: Regenerate.
1192 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1193 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1194 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1195 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1196 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1197 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1198 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1199 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1200 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1201 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1202 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1203 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1204 * features/rs6000/powerpc-vsx32.c: Regenerate.
1205 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1206 * features/rs6000/powerpc-vsx64.c: Regenerate.
1207 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1208 * features/rs6000/rs6000.c: Regenerate.
1209 * features/rx.c: Regenerate.
1210 * features/s390-gs-linux64.c: Regenerate.
1211 * features/s390-linux32.c: Regenerate.
1212 * features/s390-linux32v1.c: Regenerate.
1213 * features/s390-linux32v2.c: Regenerate.
1214 * features/s390-linux64.c: Regenerate.
1215 * features/s390-linux64v1.c: Regenerate.
1216 * features/s390-linux64v2.c: Regenerate.
1217 * features/s390-te-linux64.c: Regenerate.
1218 * features/s390-tevx-linux64.c: Regenerate.
1219 * features/s390-vx-linux64.c: Regenerate.
1220 * features/s390x-gs-linux64.c: Regenerate.
1221 * features/s390x-linux64.c: Regenerate.
1222 * features/s390x-linux64v1.c: Regenerate.
1223 * features/s390x-linux64v2.c: Regenerate.
1224 * features/s390x-te-linux64.c: Regenerate.
1225 * features/s390x-tevx-linux64.c: Regenerate.
1226 * features/s390x-vx-linux64.c: Regenerate.
1227 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1228 from allocate_target_description.
1229 * target-descriptions.c (allocate_target_description): Update
1230 return type.
1231 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1232 allocate_target_description.
1233
1234 2020-10-07 Tom Tromey <tromey@adacore.com>
1235
1236 * unittests/search-memory-selftests.c: New file.
1237 * Makefile.in (SELFTESTS_SRCS): Add
1238 unittests/search-memory-selftests.c.
1239
1240 2020-10-07 Tom Tromey <tromey@adacore.com>
1241
1242 PR gdb/16930:
1243 * findcmd.c (_initialize_mem_search): Mention that the range is
1244 inclusive.
1245
1246 2020-10-07 Tom Tromey <tromey@adacore.com>
1247
1248 * target.h (simple_search_memory): Don't declare.
1249 * target.c (simple_search_memory): Move to gdbsupport.
1250 (default_search_memory): Update.
1251 * remote.c (remote_target::search_memory): Update.
1252
1253 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1254
1255 * Makefile.in (COMPILE): Add CXXFLAGS.
1256 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1257 (check-headers): Add CXXFLAGS.
1258
1259 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1260
1261 * arc-linux-tdep.h: New file.
1262 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1263 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1264 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1265 arc_linux_gregset, arc_linux_v2_regset,
1266 arc_linux_iterate_over_regset_sections,
1267 arc_linux_core_read_description): Implement.
1268 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1269 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1270 (arc_gdbarch_features_create): Add.
1271 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1272
1273 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1274
1275 * arch/arc.h: Rename "arc_gdbarch_features" to
1276 "arc_arch_features".
1277 * arc-tdep.h: Likewise.
1278 * arc-tdep.c: Likewise.
1279
1280 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 * infcmd.c (attach_command): Remove the redundant call to
1283 `clear_proceed_status`.
1284
1285 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1286
1287 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1288
1289 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1290
1291 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1292 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1293 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1294
1295 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1298 (_initialize_break_catch_sig): Don't allocate array.
1299
1300 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * symtab.c (find_pc_line): Return unmapped addresses when the
1303 requested address is also unmapped.
1304
1305 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1306
1307 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1308 tui/tui-out.h.
1309
1310 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1311
1312 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1313 type::is_vector instead of TYPE_VECTOR.
1314
1315 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * auto-load.c (auto_load_objfile_script_1): Don't use
1318 debugfile_holder as temporary variable when stripping drive
1319 letter.
1320
1321 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1322
1323 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1324 Add TYPE_CODE_COMPLEX.
1325 (amd64_windows_return_value): Fix types returned via XMM0.
1326
1327 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1328
1329 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1330 AArch64/ARM maintainers.
1331
1332 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * NEWS: Mention set/show debug event-loop.
1335
1336 2020-10-02 Tom Tromey <tromey@adacore.com>
1337
1338 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1339 REG_EXTENDED.
1340
1341 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1342
1343 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1344 * procfs.c (procfs_inferior_created): Remove.
1345 (_initialize_procfs): Don't register procfs_inferior_created.
1346
1347 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * async-event.c (invoke_async_signal_handlers): Add debug
1350 print.
1351 (check_async_event_handlers): Likewise.
1352 * event-top.c (show_debug_event_loop): New function.
1353 (_initialize_event_top): Register "set debug event-loop"
1354 setting.
1355
1356 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1359 * debug.h: Remove.
1360 * infrun.c: Include gdbsupport/common-debug.h.
1361 * linux-nat.c: Likewise.
1362
1363 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * async-event.h (create_async_signal_handler): Add name
1366 parameter.
1367 (create_async_event_handler): Likewise.
1368 * async-event.c (struct async_signal_handler) <name>: New field.
1369 (struct async_event_handler) <name>: New field.
1370 (create_async_signal_handler): Assign name.
1371 (create_async_event_handler): Assign name.
1372 * event-top.c (async_init_signals): Pass name when creating
1373 handler.
1374 * infrun.c (_initialize_infrun): Likewise.
1375 * record-btrace.c (record_btrace_push_target): Likewise.
1376 * record-full.c (record_full_open): Likewise.
1377 * remote-notif.c (remote_notif_state_allocate): Likewise.
1378 * remote.c (remote_target::open_1): Likewise.
1379 * tui/tui-win.c (tui_initialize_win): Likewise.
1380
1381 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * async-event.c (initialize_async_signal_handlers): Pass name to
1384 add_file_handler
1385 * event-top.c (ui_register_input_event_handler): Likewise.
1386 * linux-nat.c (linux_nat_target::async): Likewise.
1387 * run-on-main-thread.c (_initialize_run_on_main_thread):
1388 Likewise
1389 * ser-base.c (reschedule): Likewise.
1390 (ser_base_async): Likewise.
1391 * tui/tui-io.c: Likewise.
1392 * top.h (struct ui) <num>: New field.
1393 * top.c (highest_ui_num): New variable.
1394 (ui::ui): Initialize num.
1395
1396 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * observable.h <inferior_created>: Remove parameters. Update all
1399 listeners.
1400 * inferior.h (post_create_inferior): Remove target parameter.
1401 Update all callers.
1402
1403 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1404
1405 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1406 and DW_MACRO_undef_strx.
1407 (dwarf_decode_macros): Likewise
1408 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1409 which is the value of DW_AT_str_offsets_base.
1410 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1411 str_offsets_base.
1412
1413 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1414
1415 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1416
1417 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1418
1419 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1420 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1421
1422 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1423
1424 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1425
1426 2020-09-30 Tom de Vries <tdevries@suse.de>
1427
1428 PR symtab/26683
1429 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1430
1431 2020-09-30 Tom Tromey <tromey@adacore.com>
1432
1433 * dwarf2/read.c (handle_variant): Use constant_value.
1434
1435 2020-09-29 Tom Tromey <tom@tromey.com>
1436
1437 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1438 (read_file_scope, dwarf2_get_pc_bounds)
1439 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1440 (read_structure_type, handle_struct_member_die)
1441 (read_enumeration_type, read_array_type, read_set_type)
1442 (read_tag_pointer_type, read_tag_reference_type)
1443 (read_subroutine_type, read_base_type, read_subrange_type)
1444 (read_full_die_1, partial_die_info::read)
1445 (partial_die_info::read, by, new_symbol)
1446 (dwarf2_const_value_data, dwarf2_const_value_attr)
1447 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1448 (prepare_one_comp_unit): Update.
1449 * dwarf2/attribute.h (DW_UNSND): Remove.
1450
1451 2020-09-29 Tom Tromey <tom@tromey.com>
1452
1453 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1454 (read_subroutine_type, partial_die_info::read)
1455 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1456 (dwarf2_add_member_fn): Update.
1457 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1458 * dwarf2/attribute.c (attribute::as_boolean): New method.
1459
1460 2020-09-29 Tom Tromey <tom@tromey.com>
1461
1462 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1463 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1464 method.
1465 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1466
1467 2020-09-29 Tom Tromey <tom@tromey.com>
1468
1469 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1470 the attribute's form.
1471
1472 2020-09-29 Tom Tromey <tom@tromey.com>
1473
1474 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1475 (dwarf2_add_member_fn): Update.
1476 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1477 * dwarf2/attribute.c (attribute::defaulted): New method, from
1478 is_valid_DW_AT_defaulted.
1479
1480 2020-09-29 Tom Tromey <tom@tromey.com>
1481
1482 * dwarf2/read.c (dw2_get_file_names_reader)
1483 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1484 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1485 (dwarf2_symbol_mark_computed): Use as_unsigned.
1486 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1487 method.
1488 <form_is_section_offset>: Update comment.
1489
1490 2020-09-29 Tom Tromey <tom@tromey.com>
1491
1492 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1493 dwarf2_default_access_attribute. Look up attribute.
1494 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1495 Update.
1496
1497 2020-09-29 Tom Tromey <tom@tromey.com>
1498
1499 * dwarf2/read.c (skip_one_die): Update.
1500 (read_full_die_1): Change how reprocessing is done.
1501 (partial_die_info::read): Update.
1502 (read_attribute_value): Remove need_reprocess parameter.
1503 (read_attribute): Likewise.
1504 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1505 New method.
1506
1507 2020-09-29 Tom Tromey <tom@tromey.com>
1508
1509 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1510 (dwarf2_const_value_attr, dump_die_shallow)
1511 (dwarf2_fetch_constant_bytes): Update.
1512 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1513 comment.
1514 <set_address>: New method.
1515 (DW_ADDR): Remove.
1516 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1517 (attribute::as_string, attribute::as_address): Add assert.
1518
1519 2020-09-29 Tom Tromey <tom@tromey.com>
1520
1521 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1522 (read_attribute_reprocess, read_attribute_value): Update.
1523 (read_attribute): Clear requires_reprocessing.
1524 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1525 form_requires_reprocessing>: New methods.
1526 <string_init>: Clear requires_reprocessing.
1527 <set_unsigned_reprocess>: New method.
1528 <name>: Shrink by one bit.
1529 <requires_reprocessing>: New member.
1530 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1531 method.
1532
1533 2020-09-29 Tom Tromey <tom@tromey.com>
1534
1535 * dwarf2/read.c (read_attribute_value): Update.
1536 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1537 set_unsigned>: New methods.
1538 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1539
1540 2020-09-29 Tom Tromey <tom@tromey.com>
1541
1542 * dwarf2/read.c (get_alignment, read_array_order)
1543 (read_attribute_value, dwarf2_const_value_attr)
1544 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1545 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1546 New methods.
1547 (DW_SND): Remove.
1548
1549 2020-09-29 Tom Tromey <tom@tromey.com>
1550
1551 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1552 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1553 Update.
1554 * dwarf2/attribute.h (struct attribute) <as_signature,
1555 set_signature>: New methods.
1556 (DW_SIGNATURE): Remove.
1557
1558 2020-09-29 Tom Tromey <tom@tromey.com>
1559
1560 * dwarf2/read.c (read_call_site_scope)
1561 (handle_data_member_location, dwarf2_add_member_fn)
1562 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1563 (partial_die_info::read, read_attribute_value)
1564 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1565 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1566 (dwarf2_symbol_mark_computed): Update.
1567 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1568 methods.
1569 (DW_BLOCK): Remove.
1570 * dwarf2/attribute.c (attribute::form_is_block): Add
1571 DW_FORM_data16.
1572
1573 2020-09-29 Tom Tromey <tom@tromey.com>
1574
1575 * dwarf2/read.c (read_cutu_die_from_dwo)
1576 (read_attribute_reprocess, read_attribute_value, read_attribute)
1577 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1578 (dwarf2_fetch_constant_bytes): Update.
1579 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1580 <set_string_noncanonical, set_string_canonical>: New methods.
1581 <string_is_canonical>: Update comment.
1582 <canonical_string_p>: Add assert.
1583 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1584 * dwarf2/attribute.c (attribute::form_is_string): New method.
1585 (attribute::string): Use it.
1586
1587 2020-09-29 Tom Tromey <tom@tromey.com>
1588
1589 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1590 (dump_die_shallow): Use canonical_string_p.
1591 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1592 method.
1593
1594 2020-09-29 Tom Tromey <tom@tromey.com>
1595
1596 * dwarf2/read.c (partial_die_info::read)
1597 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1598 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1599 attribute::as_string.
1600
1601 2020-09-29 Tom Tromey <tom@tromey.com>
1602
1603 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1604 DW_ADDR.
1605 (attribute::string): Don't use DW_STRING.
1606 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1607 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1608
1609 2020-09-29 Tom Tromey <tom@tromey.com>
1610
1611 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1612 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1613 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1614 * dwarf2/attribute.h (struct attribute): Rename methods.
1615 * dwarf2/attribute.c (attribute::as_address): Rename from
1616 value_as_address.
1617 (attribute::as_string): Rename from value_as_string.
1618
1619 2020-09-29 Tom Tromey <tom@tromey.com>
1620
1621 * dwarf2/read.c (partial_die_info::read) <case
1622 DW_AT_linkage_name>: Use value_as_string.
1623 (dwarf2_string_attr): Use value_as_string.
1624 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1625 method.
1626 * dwarf2/attribute.c (attribute::value_as_string): New method.
1627
1628 2020-09-29 Pedro Alves <pedro@palves.net>
1629
1630 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1631 defined before using '#pragma GCC diagnostic' instead of checking
1632 __clang__.
1633
1634 2020-09-28 Tom Tromey <tom@tromey.com>
1635
1636 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1637 (handle_signal_stop): Update.
1638 * procfs.c (procfs_target::insert_watchpoint): Update.
1639 * target.h (target_have_steppable_watchpoint): Now a function.
1640
1641 2020-09-28 Tom Tromey <tom@tromey.com>
1642
1643 * infrun.c (set_schedlock_func): Update.
1644 * target.h (target_can_lock_scheduler): Now a function.
1645
1646 2020-09-28 Tom Tromey <tom@tromey.com>
1647
1648 * inferior.h (class inferior) <has_execution>: Update.
1649 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1650 * valops.c (find_function_in_inferior)
1651 (value_allocate_space_in_inferior): Update.
1652 * top.c (kill_or_detach): Update.
1653 * target.c (target_preopen, set_target_permissions): Update.
1654 (target_has_execution_current): Remove.
1655 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1656 Update.
1657 * solib.c (update_solib_list, reload_shared_libraries): Update.
1658 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1659 * solib-dsbt.c (enable_break): Update.
1660 * score-tdep.c (score7_fetch_inst): Update.
1661 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1662 Update.
1663 * remote.c (remote_target::start_remote)
1664 (remote_target::remote_check_symbols, remote_target::open_1)
1665 (remote_target::remote_detach_1, remote_target::verify_memory)
1666 (remote_target::xfer_partial, remote_target::read_description)
1667 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1668 * record-full.c (record_full_open_1): Update.
1669 * record-btrace.c (record_btrace_target_open): Update.
1670 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1671 (value_nsstring): Update.
1672 * linux-thread-db.c (add_thread_db_info)
1673 (thread_db_find_new_threads_silently, check_thread_db_callback)
1674 (try_thread_db_load_1, record_thread): Update.
1675 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1676 Update.
1677 * linux-fork.c (checkpoint_command): Update.
1678 * infrun.c (set_non_stop, set_observer_mode)
1679 (check_multi_target_resumption, for_each_just_stopped_thread)
1680 (maybe_remove_breakpoints, normal_stop)
1681 (class infcall_suspend_state): Update.
1682 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1683 (info_program_command, attach_command): Update.
1684 * infcall.c (call_function_by_hand_dummy): Update.
1685 * inf-loop.c (inferior_event_handler): Update.
1686 * gcore.c (gcore_command, derive_heap_segment): Update.
1687 * exec.c (exec_file_command): Update.
1688 * eval.c (evaluate_subexp): Update.
1689 * compile/compile.c (compile_to_object): Update.
1690 * cli/cli-dump.c (restore_command): Update.
1691 * breakpoint.c (update_watchpoint)
1692 (update_inserted_breakpoint_locations)
1693 (insert_breakpoint_locations, get_bpstat_thread): Update.
1694 * target.h (target_has_execution): Remove macro.
1695 (target_has_execution_current): Don't declare.
1696 (target_has_execution): Rename from target_has_execution_1. Add
1697 argument default.
1698
1699 2020-09-28 Tom Tromey <tom@tromey.com>
1700
1701 * mi/mi-main.c (exec_reverse_continue)
1702 (mi_cmd_list_target_features): Update.
1703 * infrun.c (set_exec_direction_func): Update.
1704 * target.c (default_execution_direction): Update.
1705 * reverse.c (exec_reverse_once): Update.
1706 * target.h (target_can_execute_reverse): Now a function.
1707
1708 2020-09-28 Tom Tromey <tom@tromey.com>
1709
1710 * tui/tui-regs.c (tui_get_register)
1711 (tui_data_window::show_registers): Update.
1712 * thread.c (scoped_restore_current_thread::restore)
1713 (scoped_restore_current_thread::scoped_restore_current_thread):
1714 Update.
1715 * regcache-dump.c (regcache_print): Update.
1716 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1717 Update.
1718 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1719 * mep-tdep.c (current_me_module, current_options): Update.
1720 * linux-thread-db.c (thread_db_load): Update.
1721 * infcmd.c (registers_info, info_vector_command)
1722 (info_float_command): Update.
1723 * ia64-tdep.c (ia64_frame_prev_register)
1724 (ia64_sigtramp_frame_prev_register): Update.
1725 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1726 * gcore.c (derive_stack_segment): Update.
1727 * frame.c (get_current_frame, has_stack_frames): Update.
1728 * findvar.c (language_defn::read_var_value): Update.
1729 * arm-tdep.c (arm_pc_is_thumb): Update.
1730 * target.c (target_has_registers): Rename from
1731 target_has_registers_1.
1732 * target.h (target_has_registers): Remove macro.
1733 (target_has_registers): Rename from target_has_registers_1.
1734
1735 2020-09-28 Tom Tromey <tom@tromey.com>
1736
1737 * windows-tdep.c (tlb_make_value): Update.
1738 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1739 * thread.c (scoped_restore_current_thread::restore)
1740 (scoped_restore_current_thread::scoped_restore_current_thread)
1741 (thread_command): Update.
1742 * stack.c (backtrace_command_1, frame_apply_level_command)
1743 (frame_apply_all_command, frame_apply_command): Update.
1744 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1745 Update.
1746 * gcore.c (derive_stack_segment): Update.
1747 * frame.c (get_current_frame, has_stack_frames): Update.
1748 * auxv.c (info_auxv_command): Update.
1749 * ada-tasks.c (ada_build_task_list): Update.
1750 * target.c (target_has_stack): Rename from target_has_stack_1.
1751 * target.h (target_has_stack): Remove macro.
1752 (target_has_stack): Rename from target_has_stack_1.
1753
1754 2020-09-28 Tom Tromey <tom@tromey.com>
1755
1756 * target.c (target_has_memory): Rename from target_has_memory_1.
1757 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1758 * thread.c (scoped_restore_current_thread::restore)
1759 (scoped_restore_current_thread::scoped_restore_current_thread):
1760 Update.
1761 * frame.c (get_current_frame, has_stack_frames): Update.
1762 * target.h (target_has_memory): Remove macro.
1763 (target_has_memory): Rename from target_has_memory_1.
1764
1765 2020-09-28 Tom Tromey <tom@tromey.com>
1766
1767 * target.c (target_has_all_memory_1): Remove.
1768 * target.h (target_has_all_memory): Remove define.
1769 (target_has_all_memory_1): Don't declare.
1770
1771 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1772
1773 * ser-base.c: Adjust comments formatting.
1774
1775 2020-09-27 Tom Tromey <tom@tromey.com>
1776
1777 PR tui/25342:
1778 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1779
1780 2020-09-27 Tom Tromey <tom@tromey.com>
1781
1782 PR tui/25342:
1783 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1784
1785 2020-09-27 Tom Tromey <tom@tromey.com>
1786
1787 * unittests/tui-selftests.c: Update.
1788 * tui/tui-winsource.h (struct tui_source_window_base)
1789 <extra_margin, show_line_number, refresh_pad>: New methods.
1790 <m_max_length, m_pad>: New members.
1791 (tui_copy_source_line): Update.
1792 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1793 first_col, line_width, ndigits parameters. Add length.
1794 (tui_source_window_base::show_source_line): Write to pad. Line
1795 number now 0-based.
1796 (tui_source_window_base::refresh_pad): New method.
1797 (tui_source_window_base::show_source_content): Write to pad. Call
1798 refresh_pad.
1799 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1800 not refill.
1801 (tui_source_window_base::update_exec_info): Call
1802 show_line_number.
1803 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1804 method.
1805 <m_digits>: New member.
1806 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1807 and m_max_length.
1808 (tui_source_window::show_line_number): New method.
1809 * tui/tui-io.h (tui_puts): Fix comment.
1810 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1811 m_max_length.
1812
1813 2020-09-27 Tom Tromey <tom@tromey.com>
1814
1815 * tui/tui-winsource.c
1816 (tui_source_window_base::set_is_exec_point_at): Don't call
1817 show_source_line.
1818
1819 2020-09-27 Tom Tromey <tom@tromey.com>
1820
1821 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1822 method.
1823 <erase>: Update.
1824 <cursor_x, cursor_y>: Remove.
1825 <m_inner_window>: New member.
1826 (tui_py_window::rerender): Create inner window.
1827 (tui_py_window::output): Write to inner window.
1828
1829 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1830
1831 PR python/26586
1832 * cli/cli-script.c (execute_control_commands): don't set
1833 instream to nullptr here as this breaks the from_tty argument
1834 to gdb.execute in Python.
1835 (execute_user_command): set instream to nullptr here instead.
1836
1837 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1838
1839 * infrun.h (infrun_debug_printf): Fix formatting.
1840 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1841
1842 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1843
1844 * compile/compile-object-load.h (struct munmap_list): Add
1845 explicitly-defined move constructor.
1846
1847 2020-09-24 Tom Tromey <tromey@adacore.com>
1848
1849 PR tui/26638:
1850 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1851 method.
1852 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1853 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1854 (tui_prev_win): Rewrite.
1855
1856 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1857
1858 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1859 in WOW64 processes as SIGINT.
1860 * nat/windows-nat.h: Make wow64_process a shared variable.
1861 * windows-nat.c: Remove static wow64_process variable.
1862
1863 2020-09-23 Tom Tromey <tom@tromey.com>
1864
1865 PR symtab/25470:
1866 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1867 offset and bit size.
1868 * printcmd.c (print_scalar_formatted): Handle zero-length
1869 integer.
1870 (print_scalar_formatted): Use bit_size_differs_p.
1871 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1872 constant.
1873 (union type_specific): <int_stuff>: New member.
1874 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1875 methods.
1876 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1877 TYPE_SPECIFIC_FIELD.
1878 (recursive_dump_type, copy_type_recursive): Update.
1879 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1880 DW_AT_data_bit_offset.
1881
1882 2020-09-23 Tom Tromey <tom@tromey.com>
1883
1884 * utils.h (class gdb_argv): Add move operators.
1885 <append>: New methods.
1886 * compile/compile.c (build_argc_argv): Remove.
1887 (compile_args_argc): Remove.
1888 (compile_args_argv): Change type.
1889 (set_compile_args): Simplify.
1890 (append_args): Remove.
1891 (filter_args): Remove argcp parameter.
1892 (get_args): Return gdb_argv. Simplify.
1893 (compile_to_object): Update.
1894
1895 2020-09-23 Tom Tromey <tom@tromey.com>
1896
1897 * compile/compile-object-run.c (do_module_cleanup)
1898 <~do_module_cleanup> :Remove.
1899 (do_module_cleanup): Update.
1900 * compile/compile-object-load.h (struct munmap_list): Add move
1901 assignment operator.
1902 <source_file>: Now a std::string.
1903 <munmap_list>: Rename. No longer a pointer.
1904 * compile/compile-object-load.c (struct setup_sections_data): Add
1905 constructor.
1906 <setup_one_section>: Declare.
1907 <munmap_list>: Move earlier.
1908 <m_bfd>: New member.
1909 <m_last_size, m_last_section_first, m_last_prot,
1910 m_last_max_alignment>: Rename, add initializers where needed.
1911 (setup_sections_data::setup_one_section): Rename from
1912 setup_sections. Update.
1913 (compile_object_load): Update. Don't use bfd_map_over_sections.
1914
1915 2020-09-23 Tom Tromey <tom@tromey.com>
1916
1917 * compile/compile-object-run.c (struct do_module_cleanup): Add
1918 parameters to constructor. Update destructor.
1919 <source_file, scope, scope_data, out_value_type, out_value_addr,
1920 munmap_list_head, objfile_name_string>: Remove.
1921 <module>: New member.
1922 (do_module_cleanup): Update.
1923 (compile_object_run): Update.
1924
1925 2020-09-23 Tom Tromey <tom@tromey.com>
1926
1927 * compile/compile.c (eval_compile_command): Update.
1928 * compile/compile-object-run.h (compile_object_run): Take a
1929 compile_module_up.
1930 * compile/compile-object-run.c (compile_object_run): Take a
1931 compile_module_up.
1932 * compile/compile-object-load.h (struct compile_module): Add
1933 constructor, destructor.
1934 (compile_module_up): New typedef.
1935 (compile_object_load): Return compile_object_up.
1936 * compile/compile-object-load.c (compile_object_load): Return
1937 compile_module_up.
1938
1939 2020-09-23 Tom Tromey <tom@tromey.com>
1940
1941 * compile/compile-object-run.c (struct do_module_cleanup): Add
1942 constructor, destructor.
1943 <objfile_name_string>: Don't use struct hack.
1944 (do_module_cleanup): Use delete.
1945 (compile_object_run): Use new.
1946
1947 2020-09-23 Tom Tromey <tom@tromey.com>
1948
1949 * compile/compile-cplus-types.c
1950 (compile_cplus_convert_struct_or_union): Use std::vector.
1951 (compile_cplus_convert_func): Likewise.
1952 * compile/compile-c-types.c (convert_func): Use std::vector.
1953
1954 2020-09-21 Tom Tromey <tromey@adacore.com>
1955
1956 * sparc-tdep.c (sparc32_skip_prologue): Use
1957 skip_prologue_using_sal.
1958
1959 2020-09-19 Tom Tromey <tom@tromey.com>
1960
1961 * symfile.c (add_section_size_callback): Remove.
1962 (load_one_section): Rename from load_section_callback. Change
1963 parameters.
1964 (generic_load): Use foreach.
1965
1966 2020-09-19 Tom Tromey <tom@tromey.com>
1967
1968 * exec.c (add_to_section_table): Remove.
1969 (build_section_table): Use foreach.
1970
1971 2020-09-19 Tom Tromey <tom@tromey.com>
1972
1973 * elfread.c (elf_locate_sections): Change parameters.
1974 (elf_symfile_read): Use foreach.
1975
1976 2020-09-19 Tom Tromey <tom@tromey.com>
1977
1978 * cli/cli-dump.c (struct callback_data): Remove.
1979 (restore_one_section): Rename from restore_section_callback.
1980 Change parameters.
1981 (restore_binary_file): Change parameters.
1982 (restore_command): Use foreach.
1983
1984 2020-09-19 Tom Tromey <tom@tromey.com>
1985
1986 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1987 (gcore_copy_callback): Likewise.
1988 (gcore_memory_sections): Use foreach.
1989
1990 2020-09-19 Tom Tromey <tom@tromey.com>
1991
1992 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1993 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1994 parameters.
1995 (generic_elf_osabi_sniffer): Use foreach.
1996 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1997 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1998
1999 2020-09-19 Tom Tromey <tom@tromey.com>
2000
2001 * dwarf2/read.c (locate_dwz_sections): Change parameters.
2002 (dwarf2_get_dwz_file): Use foreach.
2003 (dwarf2_locate_dwo_sections): Change parameters.
2004 (open_and_init_dwo_file): Use foreach.
2005 (dwarf2_locate_common_dwp_sections): Change parameters.
2006 (open_and_init_dwp_file): Use foreach.
2007
2008 2020-09-19 Tom Tromey <tom@tromey.com>
2009
2010 * symfile.h: (find_lowest_section): Don't declare.
2011 * symfile.c (find_lowest_section): Now static. Change
2012 parameters.
2013 (struct place_section_arg): Remove.
2014 (place_section): Change parameters.
2015 (addr_info_make_relative): Use foreach.
2016 (symfile_dummy_outputs): Remove.
2017 (default_symfile_relocate): Use foreach.
2018
2019 2020-09-19 Tom Tromey <tom@tromey.com>
2020
2021 * objfiles.c (add_to_objfile_sections): Rename from
2022 add_to_objfile_sections_full.
2023 (add_to_objfile_sections): Remove.
2024 (build_objfile_section_table): Use foreach.
2025
2026 2020-09-19 Tom Tromey <tom@tromey.com>
2027
2028 * stap-probe.c (get_stap_base_address_1): Remove.
2029 (get_stap_base_address): Use foreach.
2030
2031 2020-09-19 Tom Tromey <tom@tromey.com>
2032
2033 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
2034 parameters.
2035 (gdb_bfd_close_or_warn): Use foreach.
2036
2037 2020-09-19 Tom Tromey <tom@tromey.com>
2038
2039 * corelow.c (add_to_thread_list): Change parameters.
2040 (core_target_open): Use foreach.
2041
2042 2020-09-19 Tom Tromey <tom@tromey.com>
2043
2044 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
2045 existing function.
2046
2047 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
2050 for arrays.
2051
2052 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * eval.c: Remove 'f-lang.h' include.
2055 (value_f90_subarray): Moved to f-lang.c.
2056 (eval_call): Renamed to...
2057 (evaluate_subexp_do_call): ...this, is no longer static, header
2058 comment moved into header file.
2059 (evaluate_funcall): Update call to eval_call.
2060 (skip_undetermined_arglist): Moved to f-lang.c.
2061 (fortran_value_subarray): Likewise.
2062 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2063 moved to evaluate_subexp_f.
2064 (calc_f77_array_dims): Moved to f-lang.c
2065 * expprint.c (print_subexp_funcall): New function.
2066 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
2067 moved to print_subexp_f, OP_FUNCALL uses new function.
2068 (dump_subexp_body_funcall): New function.
2069 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
2070 moved to dump_subexp_f, OP_FUNCALL uses new function.
2071 * expression.h (evaluate_subexp_do_call): Declare.
2072 * f-lang.c (value_f90_subarray): Moved from eval.c.
2073 (skip_undetermined_arglist): Likewise.
2074 (calc_f77_array_dims): Likewise.
2075 (fortran_value_subarray): Likewise.
2076 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
2077 (operator_length_f): Likewise.
2078 (print_subexp_f): Likewise.
2079 (dump_subexp_body_f): Likewise.
2080 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
2081 declaration of this operation to here.
2082 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
2083 support moved to operator_length_f.
2084 * parser-defs.h (dump_subexp_body_funcall): Declare.
2085 (print_subexp_funcall): Declare.
2086 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
2087 fortran-operator.def.
2088
2089 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * eval.c (fortran_value_subarray): New function, content is taken
2092 from...
2093 (evaluate_subexp_standard): ...here, in two places. Now arrays
2094 and strings both call the new function.
2095 (calc_f77_array_dims): Add header comment, handle strings.
2096
2097 2020-09-18 Victor Collod <vcollod@nvidia.com>
2098
2099 PR gdb/26635
2100 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
2101 (i386_analyze_prologue): Call i386_skip_endbr.
2102
2103 2020-09-18 Tom Tromey <tromey@adacore.com>
2104
2105 * windows-nat.c (struct windows_nat_target) <wait>: Update.
2106 (windows_nat_target::wait): Update.
2107 * target/wait.h (enum target_wait_flag): New. Use
2108 DEF_ENUM_FLAGS_TYPE.
2109 * target/target.h (target_wait): Change type of options.
2110 * target.h (target_options_to_string, default_target_wait):
2111 Update.
2112 (struct target_ops) <wait>: Change type of options.
2113 * target.c (target_wait, default_target_wait, do_option): Change
2114 type of "options".
2115 (target_options_to_string): Likewise.
2116 * target-delegates.c: Rebuild.
2117 * target-debug.h (target_debug_print_target_wait_flags): Rename
2118 from target_debug_print_options.
2119 * sol-thread.c (class sol_thread_target) <wait>: Update.
2120 (sol_thread_target::wait): Update.
2121 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2122 (rs6000_nat_target::wait): Update.
2123 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2124 Update.
2125 (remote_target::wait_ns, remote_target::wait_as): Change type of
2126 "options".
2127 (remote_target::wait): Update.
2128 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2129 (gdbsim_target::wait): Update.
2130 * record-full.c (class record_full_base_target) <wait>: Update.
2131 (record_full_wait_1): Change type of "options".
2132 (record_full_base_target::wait): Update.
2133 * record-btrace.c (class record_btrace_target) <wait>: Update.
2134 (record_btrace_target::wait): Update.
2135 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2136 Update.
2137 (ravenscar_thread_target::wait): Update.
2138 * procfs.c (class procfs_target) <wait>: Update.
2139 (procfs_target::wait): Update.
2140 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2141 * obsd-nat.c (obsd_nat_target::wait): Update.
2142 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2143 (nto_procfs_target::wait): Update.
2144 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2145 * nbsd-nat.c (nbsd_wait): Change type of "options".
2146 (nbsd_nat_target::wait): Update.
2147 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2148 (thread_db_target::wait): Update.
2149 * linux-nat.h (class linux_nat_target) <wait>: Update.
2150 * linux-nat.c (linux_nat_target::wait): Update.
2151 (linux_nat_wait_1): Update.
2152 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2153 "options".
2154 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2155 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2156 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2157 (go32_nat_target::wait): Update.
2158 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2159 * gnu-nat.c (gnu_nat_target::wait): Update.
2160 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2161 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2162 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2163 * darwin-nat.c (darwin_nat_target::wait): Update.
2164 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2165 (bsd_uthread_target::wait): Update.
2166 * aix-thread.c (class aix_thread_target) <wait>: Update.
2167 (aix_thread_target::wait): Update.
2168
2169 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * compile/compile-object-run.c (create_copied_type_recursive): New
2172 function.
2173 (compile_object_run): Use new function.
2174
2175 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2176
2177 * NEWS: Mention x86_64 Cygwin core file support.
2178
2179 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2180
2181 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2182 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2183
2184 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2185
2186 * windows-tdep.h: Add prototypes.
2187 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2188 (i386_windows_core_pid_to_str): Move and rename ...
2189 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2190 (windows_core_pid_to_str): ... and here.
2191 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2192
2193 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2194 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2195 (amd64_windows_init_abi_common): ... and register.
2196
2197 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2198
2199 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2200 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2201
2202 2020-09-18 Pedro Alves <pedro@palves.net>
2203
2204 PR gdb/26631
2205 * thread.c (thread_find_command): Switch inferior before calling
2206 target methods.
2207
2208 2020-09-17 Tom Tromey <tromey@adacore.com>
2209
2210 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2211 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2212 (tdesc_arch_data_up): New typedef.
2213 (tdesc_use_registers, tdesc_data_alloc): Update.
2214 (tdesc_data_cleanup): Don't declare.
2215 * target-descriptions.c (tdesc_data_alloc): Return a
2216 tdesc_arch_data_up.
2217 (tdesc_arch_data_deleter::operator()): Rename from
2218 tdesc_data_cleanup. Change argument type.
2219 (tdesc_use_registers): Change early_data to an rvalue reference.
2220 (tdesc_use_registers): Don't use delete.
2221 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2222 * s390-tdep.c (s390_gdbarch_init): Update.
2223 * rx-tdep.c (rx_gdbarch_init): Update.
2224 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2225 * riscv-tdep.c (riscv_gdbarch_init): Update.
2226 * or1k-tdep.c (or1k_gdbarch_init): Update.
2227 * nios2-tdep.c (nios2_gdbarch_init): Update.
2228 * nds32-tdep.c (nds32_gdbarch_init): Update.
2229 * mips-tdep.c (mips_gdbarch_init): Update.
2230 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2231 * m68k-tdep.c (m68k_gdbarch_init): Update.
2232 * i386-tdep.c (i386_gdbarch_init): Update.
2233 * arm-tdep.c (arm_gdbarch_init): Update.
2234 * arc-tdep.c (arc_tdesc_init): Update.
2235 (arc_gdbarch_init): Update.
2236 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2237
2238 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2239
2240 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2241 for WOW64 processes.
2242
2243 2020-09-17 Tom Tromey <tom@tromey.com>
2244
2245 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2246
2247 2020-09-17 Tom Tromey <tom@tromey.com>
2248
2249 * value.c (preserve_values): Update.
2250 * python/py-type.c (save_objfile_types): Update.
2251 * guile/scm-type.c (save_objfile_types): Update.
2252 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2253 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2254 * compile/compile-object-run.c (compile_object_run): Update.
2255
2256 2020-09-17 Tom Tromey <tom@tromey.com>
2257
2258 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2259 Remove.
2260 <m_table>: Now htab_up.
2261 * typeprint.c (typedef_hash_table::recursively_update)
2262 (typedef_hash_table::add_template_parameters)
2263 (typedef_hash_table::typedef_hash_table): Update.
2264 (typedef_hash_table::~typedef_hash_table): Remove.
2265 (typedef_hash_table::typedef_hash_table)
2266 (typedef_hash_table::find_global_typedef)
2267 (typedef_hash_table::find_typedef): Update.
2268
2269 2020-09-17 Tom Tromey <tom@tromey.com>
2270
2271 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2272
2273 2020-09-17 Tom Tromey <tom@tromey.com>
2274
2275 * linespec.c (class decode_compound_collector)
2276 <~decode_compound_collector>: Remove.
2277 <m_unique_syms>: Now htab_up.
2278 (decode_compound_collector::operator ()): Update.
2279 (class symtab_collector) <~symtab_collector>: Remove.
2280 <m_symtab_table>: Now htab_up.
2281 (symtab_collector::operator ()): Update.
2282
2283 2020-09-17 Tom Tromey <tom@tromey.com>
2284
2285 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2286 (filename_seen_cache::clear): Update.
2287 (~filename_seen_cache): Remove.
2288 (filename_seen_cache::seen): Update.
2289 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2290 htab_up.
2291 <~filename_seen_cache>: Remove.
2292 <traverse>: Update.
2293
2294 2020-09-17 Tom Tromey <tom@tromey.com>
2295
2296 * completer.c (completion_tracker::discard_completions)
2297 (completion_tracker::~completion_tracker)
2298 (completion_tracker::maybe_add_completion)
2299 (completion_tracker::remove_completion)
2300 (completion_tracker::recompute_lowest_common_denominator)
2301 (completion_tracker::build_completion_result): Update.
2302 * completer.h (class completion_tracker) <have_completions>:
2303 Update.
2304 <m_entries_hash>: Now htab_up.
2305
2306 2020-09-17 Tom Tromey <tom@tromey.com>
2307
2308 * breakpoint.c (ambiguous_names_p): Use htab_up.
2309
2310 2020-09-17 Tom Tromey <tom@tromey.com>
2311
2312 * auto-load.c (struct auto_load_pspace_info)
2313 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2314 <loaded_script_files, loaded_script_texts>: Change type to
2315 htab_up.
2316 (~auto_load_pspace_info) Remove.
2317 (init_loaded_scripts_info, maybe_add_script_file)
2318 (maybe_add_script_text, auto_load_info_scripts): Update.
2319
2320 2020-09-17 Tom Tromey <tromey@adacore.com>
2321
2322 * c-exp.y (name_obstack): Now static.
2323
2324 2020-09-17 Chungyi Chi <demonic@csie.io>
2325
2326 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2327
2328 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2329
2330 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2331 (add_solib_catchpoint): Likewise.
2332 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2333 to bool.
2334 (add_solib_catchpoint): Change int parameter/variable to bool.
2335 (catch_load_or_unload): Likewise.
2336 (init_catchpoint): Likewise.
2337 (create_fork_vfork_event_catchpoint): Likewise.
2338 (catch_fork_command_1): Likewise.
2339 (catch_exec_command_1): Likewise.
2340
2341 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2344 Change instance_flags to m_instance_flags.
2345
2346 2020-09-16 Tom Tromey <tromey@adacore.com>
2347
2348 PR gdb/26598:
2349 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2350
2351 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2352
2353 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2354 PL_FLAG_EXEC.
2355 (fbsd_nat_target::insert_exec_catchpoint)
2356 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2357 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2358 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2359
2360 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2361
2362 * configure.ac: Remove check for kinfo_getvmmap().
2363 * configure, config.in: Regenerate.
2364 * fbsd-nat.c (fbsd_read_mapping): Remove
2365 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2366 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2367 kinfo_get_vmmap() are always present.
2368
2369 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2370
2371 * fbsd-nat.c: Always include support for
2372 TARGET_OBJECT_SIGNAL_INFO.
2373
2374 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2375
2376 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2377 sysctl and remove procfs fallback.
2378
2379 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2380
2381 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2382 * fbsd-nat.h: Likewise.
2383
2384 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2385
2386 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2387 argument.
2388
2389 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 * ada-lang.c (ada_language_data): Delete.
2392 (ada_language): Remove references to ada_language_data.
2393 * c-lang.c (c_language_data): Delete.
2394 (c_language): Remove references to c_language_data.
2395 (cplus_language_data): Delete.
2396 (cplus_language): Remove references to cplus_language_data.
2397 (asm_language_data): Delete.
2398 (asm_language): Remove references to asm_language_data.
2399 (minimal_language_data): Delete.
2400 (minimal_language): Remove references to minimal_language_data.
2401 * d-lang.c (d_language_data): Delete.
2402 (d_language): Remove references to d_language_data.
2403 * f-lang.c (f_language_data): Delete.
2404 (f_language): Remove references to f_language_data.
2405 * go-lang.c (go_language_data): Delete.
2406 (go_language): Remove references to go_language_data.
2407 * language.c (unknown_language_data): Delete.
2408 (unknown_language): Remove references to unknown_language_data.
2409 (auto_language_data): Delete.
2410 (auto_language): Remove references to auto_language_data.
2411 * language.h (language_data): Delete struct.
2412 (language_defn): No longer inherit from language_data.
2413 * m2-lang.c (m2_language_data): Delete.
2414 (m2_language): Remove references to m2_language_data.
2415 * objc-lang.c (objc_language_data): Delete.
2416 (objc_language): Remove references to objc_language_data.
2417 * opencl-lang.c (opencl_language_data): Delete.
2418 (opencl_language): Remove references to opencl_language_data.
2419 * p-lang.c (pascal_language_data): Delete.
2420 (pascal_language): Remove references to pascal_language_data.
2421 * rust-lang.c (rust_language_data): Delete.
2422 (rust_language): Remove references to rust_language_data.
2423
2424 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2427 initializer.
2428 (ada_language::opcode_print_table): New member function.
2429 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2430 (c_language::opcode_print_table): New member function.
2431 (cplus_language_data): Remove la_op_print_tab initializer.
2432 (cplus_language::opcode_print_table): New member function.
2433 (asm_language_data): Remove la_op_print_tab initializer.
2434 (asm_language::opcode_print_table): New member function.
2435 (minimal_language_data): Remove la_op_print_tab initializer.
2436 (minimal_language::opcode_print_table): New member function.
2437 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2438 (d_language::opcode_print_table): New member function.
2439 * expprint.c (print_subexp_standard): Update call to
2440 opcode_print_table.
2441 (op_string): Likewise.
2442 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2443 (f_language::opcode_print_table): New member function.
2444 * go-lang.c (go_language_data): Remove la_op_print_tab
2445 initializer.
2446 (go_language::opcode_print_table): New member function.
2447 * language.c (unknown_language_data): Remove la_op_print_tab
2448 initializer.
2449 (unknown_language::opcode_print_table): New member function.
2450 (auto_language_data): Remove la_op_print_tab initializer.
2451 (auto_language::opcode_print_table): New member function.
2452 * language.h (language_data): Remove la_op_print_tab field.
2453 (language_defn::opcode_print_table): Declare new member function.
2454 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2455 initializer.
2456 (m2_language::opcode_print_table): New member function.
2457 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2458 initializer.
2459 (objc_language::opcode_print_table): New member function.
2460 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2461 initializer.
2462 (opencl_language::opcode_print_table): New member function.
2463 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2464 initializer.
2465 (pascal_language::opcode_print_table): New member function.
2466 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2467 initializer.
2468 (rust_language::opcode_print_table): New member function.
2469
2470 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2473 (ada_language::expression_ops): New member function.
2474 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2475 (c_language::expression_ops): New member function.
2476 (cplus_language_data): Remove la_exp_desc initializer.
2477 (cplus_language::expression_ops): New member function.
2478 (asm_language_data): Remove la_exp_desc initializer.
2479 (asm_language::expression_ops): New member function.
2480 (minimal_language_data): Remove la_exp_desc initializer.
2481 (minimal_language::expression_ops): New member function.
2482 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2483 (d_language::expression_ops): New member function.
2484 * eval.c (evaluate_subexp): Update call to expression_ops.
2485 * expprint.c (print_subexp): Likewise.
2486 (op_name): Likewise.
2487 (dump_subexp_body): Likewise.
2488 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2489 (f_language::expression_ops): New member function.
2490 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2491 (go_language::expression_ops): New member function.
2492 * language.c (language_defn::expression_ops): New function.
2493 (unknown_language_data): Remove la_exp_desc initializer.
2494 (auto_language_data): Likewise.
2495 * language.h (language_data): Remove la_exp_desc field.
2496 (language_defn::expression_ops): Declare new member function.
2497 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2498 (m2_language::expression_ops): New member function.
2499 * objc-lang.c (objc_language_data): Remove la_exp_desc
2500 initializer.
2501 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2502 initializer.
2503 (opencl_language::expression_ops): New member function.
2504 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2505 * parse.c (operator_length): Update call to expression_ops.
2506 (exp_iterate): Likewise.
2507 * rust-lang.c (rust_language_data): Remove la_exp_desc
2508 initializer.
2509 (ruse_language::expression_ops): New member function.
2510
2511 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2514 initializer.
2515 (ada_language::varobj_ops): New member function.
2516 * c-lang.c (c_language_data): Remove la_varobj_ops
2517 initializer.
2518 (cplus_language_data): Likewise.
2519 (cplus_language::varobj_ops): New member function.
2520 (asm_language_data): Remove la_varobj_ops initializer.
2521 (minimal_language_data): Likewise.
2522 * d-lang.c (d_language_data): Likewise.
2523 * f-lang.c (f_language_data): Likewise.
2524 * go-lang.c (go_language_data): Likewise.
2525 * language.c (language_defn::varobj_ops): New function.
2526 (unknown_language_data): Remove la_varobj_ops
2527 initializer.
2528 (auto_language_data): Likewise.
2529 * language.h (language_data): Remove la_varobj_ops field.
2530 (language_defn::varobj_ops): Declare new member function.
2531 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2532 * objc-lang.c (objc_language_data): Likewise.
2533 * opencl-lang.c (opencl_language_data): Likewise.
2534 * p-lang.c (pascal_language_data): Likewise.
2535 * rust-lang.c (rust_language_data): Likewise.
2536 * varobj.c (varobj_create): Update call to varobj_ops.
2537 * varobj.h (default_varobj_ops): Delete define.
2538
2539 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2542 initializer.
2543 * c-lang.c (c_language_data): Likewise.
2544 (c_language::macro_expansion): New member function.
2545 (cplus_language_data): Likewise.
2546 (cplus_language::macro_expansion): New member function.
2547 (asm_language_data): Likewise.
2548 (asm_language::macro_expansion): New member function.
2549 (minimal_language_data): Likewise.
2550 (minimal_language::macro_expansion): New member function.
2551 * d-lang.c (d_language_data): Remove la_macro_expansion
2552 initializer.
2553 * f-lang.c (f_language_data): Likewise.
2554 * go-lang.c (go_language_data): Likewise.
2555 * language.c (unknown_language_data): Likewise.
2556 (auto_language_data): Likewise.
2557 * language.h (language_data): Remove la_macro_expansion field.
2558 (language_defn::macro_expansion): New member function.
2559 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2560 initializer.
2561 * objc-lang.c (objc_language_data): Likewise.
2562 (objc_language::macro_expansion): New member function.
2563 * opencl-lang.c (opencl_language_data): Likewise.
2564 (opencl_language::macro_expansion): New member function.
2565 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2566 initializer.
2567 * rust-lang.c (rust_language_data): Likewise.
2568 * symtab.c (default_collect_symbol_completion_matches_break_on):
2569 Update call to macro_expansion.
2570
2571 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * ada-lang.c (ada_language_data): Remove la_array_ordering
2574 initializer.
2575 * c-lang.c (c_language_data): Likewise.
2576 (cplus_language_data): Likewise.
2577 (asm_language_data): Likewise.
2578 (minimal_language_data): Likewise.
2579 * d-lang.c (d_language_data): Likewise.
2580 * dwarf2/read.c (read_array_order): Update for call to
2581 array_ordering.
2582 * f-lang.c (f_language_data): Remove la_array_ordering
2583 initializer.
2584 (f_language::array_ordering): New member function.
2585 * go-lang.c (go_language_data): Remove la_array_ordering
2586 initializer.
2587 * language.c (unknown_language_data): Likewise.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Delete la_array_ordering field.
2590 (language_defn::array_ordering): New member function.
2591 * m2-lang.c (m2_language_data): Remove la_array_ordering
2592 initializer.
2593 * objc-lang.c (objc_language_data): Likewise.
2594 * opencl-lang.c (opencl_language_data): Likewise.
2595 * p-lang.c (pascal_language_data): Likewise.
2596 * rust-lang.c (rust_language_data): Likewise.
2597
2598 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2601 initializer.
2602 * c-lang.c (c_language_data): Likewise.
2603 (cplus_language_data): Likewise.
2604 (asm_language_data): Likewise.
2605 (minimal_language_data): Likewise.
2606 * d-lang.c (d_language_data): Likewise.
2607 * f-lang.c (f_language_data): Likewise.
2608 (f_language::case_sensitivity): New member function.
2609 * go-lang.c (go_language_data): Remove la_case_sensitivity
2610 initializer.
2611 * language.c (enum case_mode): Moved here from language.h.
2612 (case_mode): Make static.
2613 (show_case_command): Update for case_sensitivity being a method.
2614 (set_case_command): Likewise.
2615 (set_range_case): Likewise.
2616 (unknown_language_data): Remove la_case_sensitivity initializer.
2617 (auto_language_data): Likewise.
2618 * language.h (case_mode): Delete, move enum declaration to
2619 language.c.
2620 (language_data): Delete la_case_sensitivity field.
2621 (language_defn::case_sensitivity): New member function.
2622 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2623 initializer.
2624 * objc-lang.c (objc_language_data): Likewise.
2625 * opencl-lang.c (opencl_language_data): Likewise.
2626 * p-lang.c (pascal_language_data): Likewise.
2627 * rust-lang.c (rust_language_data): Likewise.
2628
2629 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * ada-lang.c (ada_language_data): Remove la_range_check
2632 initializer.
2633 * c-lang.c (c_language_data): Likewise.
2634 (cplus_language_data): Likewise.
2635 (asm_language_data): Likewise.
2636 (minimal_language_data): Likewise.
2637 * d-lang.c (d_language_data): Likewise.
2638 * f-lang.c (f_language_data): Likewise.
2639 (f_language::range_checking_on_by_default): New member function.
2640 * go-lang.c (go_language_data): Remove la_range_check initializer.
2641 * language.c (enum range_mode): Moved here from language.h.
2642 (range_mode): Made static.
2643 (show_range_command): Update to use
2644 range_checking_on_by_default.
2645 (set_range_command): Likewise.
2646 (set_range_case): Likewise.
2647 (unknown_language_data): Remove la_range_check initializer.
2648 (auto_language_data): Likewise.
2649 * language.h (range_mode): Delete. Enum definition moved to
2650 language.c.
2651 (language_data): Remove la_range_check field.
2652 (language_defn::range_checking_on_by_default): New member
2653 function.
2654 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2655 (m2_language::range_checking_on_by_default): New member function.
2656 * objc-lang.c (objc_language_data): Remove la_range_check
2657 initializer.
2658 * opencl-lang.c (opencl_language_data): Likewise.
2659 * p-lang.c (pascal_language_data): Likewise.
2660 (pascal_language::range_checking_on_by_default): New member
2661 function.
2662 * rust-lang.c (rust_language_data): Remove la_range_check
2663 initializer.
2664 (rust_language::range_checking_on_by_default): New member
2665 function.
2666
2667 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * dwarf2/read.c (dwarf2_physname): Remove special case for
2670 language_go.
2671 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2672 member function.
2673
2674 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * ada-lang.c (ada_language_data): Remove
2677 la_store_sym_names_in_linkage_form_p initializer.
2678 (ada_language::store_sym_names_in_linkage_form_p): New member
2679 function.
2680 * c-lang.c (c_language_data): Remove
2681 la_store_sym_names_in_linkage_form_p initializer.
2682 (c_language::store_sym_names_in_linkage_form_p): New member
2683 function.
2684 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2685 initializer.
2686 (asm_language_data): Likewise.
2687 (asm_language::store_sym_names_in_linkage_form_p): New member
2688 function.
2689 (minimal_language_data): Remove
2690 la_store_sym_names_in_linkage_form_p initializer.
2691 (minimal_language::store_sym_names_in_linkage_form_p): New member
2692 function.
2693 * d-lang.c (d_language_data): Remove
2694 la_store_sym_names_in_linkage_form_p initializer.
2695 * dwarf2/read.c (dwarf2_physname): Update call to
2696 store_sym_names_in_linkage_form_p.
2697 * f-lang.c (f_language_data): Remove
2698 la_store_sym_names_in_linkage_form_p initializer.
2699 * go-lang.c (go_language_data): Remove
2700 la_store_sym_names_in_linkage_form_p initializer.
2701 * language.c (unknown_language_data): Remove
2702 la_store_sym_names_in_linkage_form_p initializer.
2703 (unknown_language::store_sym_names_in_linkage_form_p): New member
2704 function.
2705 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2706 initializer.
2707 (auto_language::store_sym_names_in_linkage_form_p): New member
2708 function.
2709 * language.h (language_data): Remove
2710 la_store_sym_names_in_linkage_form_p member variable.
2711 (language_defn::store_sym_names_in_linkage_form_p): New member
2712 function.
2713 * m2-lang.c (m2_language_data): Remove
2714 la_store_sym_names_in_linkage_form_p initializer.
2715 * objc-lang.c (objc_language_data): Likewise.
2716 * opencl-lang.c (opencl_language_data): Likewise.
2717 * p-lang.c (pascal_language_data): Likewise.
2718 * rust-lang.c (rust_language_data): Likewise.
2719
2720 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 * ada-lang.c (ada_language_data): Remove string_lower_bound
2723 initializer.
2724 * c-lang.c (c_language_data): Likewise.
2725 (cplus_language_data): Likewise.
2726 (asm_language_data): Likewise.
2727 (minimal_language_data): Likewise.
2728 * d-lang.c (d_language_data): Likewise.
2729 * f-lang.c (f_language_data): Likewise.
2730 * go-lang.c (go_language_data): Likewise.
2731 * language.c (unknown_language_data): Likewise.
2732 (auto_language_data): Likewise.
2733 * language.h (language_data): Remove string_lower_bound field.
2734 (language_defn::string_lower_bound): New member function.
2735 * m2-lang.c (m2_language_data): Remove string_lower_bound
2736 initializer.
2737 (m2_language::string_lower_bound): New member function.
2738 * objc-lang.c (objc_language_data): Remove string_lower_bound
2739 initializer.
2740 * opencl-lang.c (opencl_language_data): Likewise.
2741 * p-lang.c (pascal_language_data): Likewise.
2742 * rust-lang.c (rust_language_data): Likewise.
2743 * valops.c (value_cstring): Update call to string_lower_bound.
2744 (value_string): Likewise.
2745 * value.c (allocate_repeated_value): Likewise.
2746
2747 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2748
2749 * valops.c (value_repeat): Fix incorrect argument name in comment.
2750
2751 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * ada-lang.c (ada_language_data): Remove c_style_arrays
2754 initializer.
2755 (ada_language::c_style_arrays_p): New member fuction.
2756 * c-lang.c (c_language_data): Remove c_style_arrays
2757 initializer.
2758 (cplus_language_data): Likewise.
2759 (asm_language_data): Likewise.
2760 (minimal_language_data): Likewise.
2761 * d-lang.c (d_language_data): Likewise.
2762 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2763 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2764 (f_language::c_style_arrays_p): New member function.
2765 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2766 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2767 * language.c (unknown_language_data): Remove c_style_arrays
2768 initializer.
2769 (auto_language_data): Likewise.
2770 * language.h (language_data): Remove c_style_arrays field.
2771 (language_defn::c_style_arrays_p): New member function.
2772 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2773 (m2_language::c_style_arrays_p): New member function.
2774 * objc-lang.c (objc_language_data): Remove c_style_arrays
2775 initializer.
2776 * opencl-lang.c (opencl_language_data): Likewise.
2777 * p-lang.c (pascal_language_data): Likewise.
2778 * rust-lang.c (rust_language_data): Likewise.
2779 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2780 and update local variable to a bool.
2781 * valops.c (value_cast): Update call to c_style_arrays_p.
2782 (value_array): Likewise.
2783 * value.c (coerce_array): Likewise.
2784
2785 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * ada-lang.c (ada_language_data): Remove la_language initializer.
2788 * c-lang.c (c_language_data): Likewise.
2789 (cplus_language_data): Likewise.
2790 (asm_language_data): Likewise.
2791 (minimal_language_data): Likewise.
2792 * d-lang.c (d_language_data): Likewise.
2793 * f-lang.c (f_language_data): Likewise.
2794 * go-lang.c (go_language_data): Likewise.
2795 * language.c (unknown_language_data): Likewise.
2796 (auto_language_data): Likewise.
2797 * language.h (language_data): Remove la_language field.
2798 (language_defn::language_defn): Initialise la_language field.
2799 (language_defn::la_language): New member variable.
2800 * m2-lang.c (m2_language_data): Remove la_language field.
2801 * objc-lang.c (objc_language_data): Likewise.
2802 * opencl-lang.c (opencl_language_data): Likewise.
2803 * p-lang.c (pascal_language_data): Likewise.
2804 * rust-lang.c (rust_language_data): Likewise.
2805
2806 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * ada-lang.c (ada_extensions): Delete, moved into
2809 ada_language::filename_extensions.
2810 (ada_language_data): Remove la_filename_extensions initializer.
2811 (ada_language::filename_extensions): New member function.
2812 * c-lang.c (c_extensions): Delete, moved into
2813 c_language::filename_extensions.
2814 (c_language_data): Remove la_filename_extensions initializer.
2815 (c_language::filename_extensions): New member function.
2816 (cplus_extensions): Delete, moved into
2817 cplus_language::filename_extensions.
2818 (cplus_language_data): Remove la_filename_extensions initializer.
2819 (cplus_language::filename_extensions): New member function.
2820 (asm_extensions): Delete, moved into
2821 asm_language::filename_extensions.
2822 (asm_language_data): Remove la_filename_extensions initializer.
2823 (asm_language::filename_extensions): New member function.
2824 (minimal_language_data): Remove la_filename_extensions
2825 initializer.
2826 * d-lang.c (d_extensions): Delete, moved into
2827 d_language::filename_extensions.
2828 (d_language_data): Remove la_filename_extensions initializer.
2829 (d_language::filename_extensions): New member function.
2830 * f-lang.c (f_extensions): Delete, moved into
2831 f_language::filename_extensions.
2832 (f_language_data): Remove la_filename_extensions initializer.
2833 (f_language::filename_extensions): New member function.
2834 * go-lang.c (go_language_data): Remove la_filename_extensions
2835 initializer.
2836 * language.c (add_set_language_command): Update now that
2837 filename_extensions returns a vector.
2838 (unknown_language_data): Remove la_filename_extensions
2839 initializer.
2840 (auto_language_data): Likewise.
2841 * language.h (language_data): Remove la_filename_extensions field.
2842 (language_defn::filename_extensions): New member function.
2843 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2844 initializer.
2845 * objc-lang.c (objc_extensions): Delete, moved into
2846 objc_language::filename_extensions.
2847 (objc_language_data): Remove la_filename_extensions initializer.
2848 (objc_language::filename_extensions): New member function.
2849 * opencl-lang.c (opencl_language_data): Remove
2850 la_filename_extensions initializer.
2851 * p-lang.c (pascal_extensions): Delete, moved into
2852 pascal_language::filename_extensions.
2853 (pascal_language_data): Remove la_filename_extensions initializer.
2854 (pascal_language::filename_extensions): New member function.
2855 * rust-lang.c (rust_extensions): Delete, moved into
2856 rust_language::filename_extensions.
2857 (rust_language_data): Remove la_filename_extensions initializer.
2858 (rust_language::filename_extensions): New member function.
2859 * symfile.c (add_filename_language): Add new assert.
2860
2861 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * ada-lang.c (ada_language_data): Remove la_name and
2864 la_natural_name initializers.
2865 (ada_language::name): New member function.
2866 (ada_language::natural_name): New member function.
2867 * c-lang.c (c_language_data): Remove la_name and
2868 la_natural_name initializers.
2869 (c_language::name): New member function.
2870 (c_language::natural_name): New member function.
2871 (cplus_language_data): Remove la_name and
2872 la_natural_name initializers.
2873 (cplus_language::name): New member function.
2874 (cplus_language::natural_name): New member function.
2875 (asm_language_data): Remove la_name and
2876 la_natural_name initializers.
2877 (asm_language::name): New member function.
2878 (asm_language::natural_name): New member function.
2879 (minimal_language_data): Remove la_name and
2880 la_natural_name initializers.
2881 (minimal_language::name): New member function.
2882 (minimal_language::natural_name): New member function.
2883 * compile/compile.c (compile_to_object): Update call to
2884 lanugage_defn::name.
2885 * d-lang.c (d_language_data): Remove la_name and
2886 la_natural_name initializers.
2887 (d_language::name): New member function.
2888 (d_language::natural_name): New member function.
2889 * expprint.c (print_subexp_standard): Update call to
2890 language_defn::name.
2891 (dump_raw_expression): Likewise
2892 (dump_prefix_expression): Likewise.
2893 * f-lang.c (f_language_data): Remove la_name and
2894 la_natural_name initializers.
2895 (f_language::name): New member function.
2896 (f_language::natural_name): New member function.
2897 * go-lang.c (go_language_data): Remove la_name and
2898 la_natural_name initializers.
2899 (go_language::name): New member function.
2900 (go_language::natural_name): New member function.
2901 * language.c (show_language_command): Update call to
2902 language_defn::name.
2903 (set_language_command): Likewise.
2904 (language_enum): Likewise.
2905 (language_str): Likewise.
2906 (add_set_language_command): Likewise, use
2907 language_defn::natural_name in the doc string.
2908 (unknown_language_data): Remove la_name and
2909 la_natural_name initializers.
2910 (unknown_language::name): New member function.
2911 (unknown_language::natural_name): New member function.
2912 (auto_language_data): Remove la_name and
2913 la_natural_name initializers.
2914 (auto_language::name): New member function.
2915 (auto_language::natural_name): New member function.
2916 (language_lookup_primitive_type_as_symbol): Update call to
2917 language_defn::name.
2918 * language.h (language_data): Remove la_name and la_natural_name
2919 member variables.
2920 (language_defn::name): New member function.
2921 (language_defn::natural_name): New member function.
2922 * m2-lang.c (m2_language_data): Remove la_name and
2923 la_natural_name initializers.
2924 (m2_language::name): New member function.
2925 (m2_language::natural_name): New member function.
2926 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2927 language_defn::natural_name.
2928 * objc-lang.c (objc_language_data): Remove la_name and
2929 la_natural_name initializers.
2930 (objc_language::name): New member function.
2931 (objc_language::natural_name): New member function.
2932 * opencl-lang.c (opencl_language_data): Remove la_name and
2933 la_natural_name initializers.
2934 (opencl_language::name): New member function.
2935 (opencl_language::natural_name): New member function.
2936 * p-lang.c (pascal_language_data): Remove la_name and
2937 la_natural_name initializers.
2938 (pascal_language::name): New member function.
2939 (pascal_language::natural_name): New member function.
2940 * rust-lang.c (rust_language_data): Remove la_name and
2941 la_natural_name initializers.
2942 (rust_language::name): New member function.
2943 (rust_language::natural_name): New member function.
2944 * symtab.c (lookup_language_this): Update call to
2945 language_defn::name.
2946
2947 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * ada-lang.c (ada_language_data): Remove la_name_of_this
2950 initializer.
2951 * ax-gdb.c (gen_expr): Update call to name_of_this.
2952 * c-exp.y (classify_name): Likewise.
2953 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2954 (cplus_language_data): Likewise.
2955 (cplus_language::name_of_this): New member function.
2956 (asm_language_data): Remove la_name_of_this initializer.
2957 (minimal_language_data): Likewise.
2958 * d-lang.c (d_language_data): Likewise.
2959 (d_language::name_of_this): New member function.
2960 * expprint.c (print_subexp_standard): Update call to name_of_this.
2961 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2962 * go-lang.c (go_language_data): Likewise.
2963 * language.c (unknown_language_data): Likewise.
2964 (unknown_language::name_of_this): New member function.
2965 (auto_language_data): Remove la_name_of_this initializer.
2966 (auto_language::name_of_this): New member function.
2967 * language.h (language_data): Delete la_name_of_this member
2968 variable.
2969 (language_defn::name_of_this): New member function.
2970 * m2-lang.c (m2_language_data): Remove la_name_of_this
2971 initializer.
2972 * objc-lang.c (objc_language_data): Likewise.
2973 (objc_language::name_of_this): New member function.
2974 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2975 initializer.
2976 * p-lang.c (pascal_language_data): Likewise.
2977 (pascal_language::name_of_this): New member function.
2978 * rust-lang.c (rust_language_data): Remove la_name_of_this
2979 initializer.
2980 * symtab.c (lookup_language_this): Update call to name_of_this.
2981 (lookup_symbol_aux): Likewise.
2982 * valops.c (value_of_this): Likewise.
2983
2984 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2985
2986 * ada-lang.c (ada_language_data): Remove
2987 la_struct_too_deep_ellipsis initializer.
2988 (ada_language::struct_too_deep_ellipsis): New member function.
2989 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2990 initializer.
2991 (cplus_language_data): Likewise.
2992 (asm_language_data): Likewise.
2993 (minimal_language_data): Likewise.
2994 * cp-valprint.c (cp_print_value): Update call to
2995 struct_too_deep_ellipsis.
2996 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2997 initializer.
2998 * f-lang.c (f_language_data): Likewise.
2999 (f_language::struct_too_deep_ellipsis): New member function.
3000 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
3001 initializer.
3002 * language.c (unknown_language_data): Likewise.
3003 (auto_language_data): Likewise.
3004 * language.h (language_data): Delete la_struct_too_deep_ellipsis
3005 member variable.
3006 (language_defn::struct_too_deep_ellipsis): New member function.
3007 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
3008 initializer.Q
3009 * objc-lang.c (objc_language_data): Likewise.
3010 * opencl-lang.c (opencl_language_data): Likewise.
3011 * p-lang.c (pascal_language_data): Likewise.
3012 * rust-lang.c (rust_language_data): Likewise.
3013 * valprint.c (val_print_check_max_depth): Update call to
3014 struct_too_deep_ellipsis.
3015
3016 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
3017
3018 * MAINTAINERS (Write After Approval): Add myself.
3019
3020 2020-09-15 Tom Tromey <tom@tromey.com>
3021
3022 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
3023 Remove.
3024
3025 2020-09-15 Tom Tromey <tom@tromey.com>
3026
3027 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
3028 and TYPE_CODE_METHODPTR cases.
3029 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
3030 (c_value_print_inner): Update.
3031 * valprint.c (generic_value_print_memberptr): New function, from
3032 c_value_print_memberptr.
3033 (generic_value_print): Use it. Call cplus_print_method_ptr.
3034
3035 2020-09-15 Tom Tromey <tromey@adacore.com>
3036
3037 * python/python-internal.h (PyInt_FromLong): Remove define.
3038 * python/py-value.c (convert_value_from_python): Use
3039 gdb_py_object_from_longest.
3040 * python/py-type.c (typy_get_code): Use
3041 gdb_py_object_from_longest.
3042 * python/py-symtab.c (salpy_get_line): Use
3043 gdb_py_object_from_longest.
3044 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
3045 gdb_py_object_from_longest.
3046 * python/py-record.c (recpy_gap_reason_code): Use
3047 gdb_py_object_from_longest.
3048 * python/py-record-btrace.c (recpy_bt_insn_size)
3049 (recpy_bt_func_level, btpy_list_count): Use
3050 gdb_py_object_from_longest.
3051 * python/py-infthread.c (gdbpy_create_ptid_object): Use
3052 gdb_py_object_from_longest. Fix error handling.
3053 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
3054 gdb_py_object_from_longest.
3055 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
3056 gdb_py_object_from_longest.
3057 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
3058 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
3059 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
3060
3061 2020-09-15 Tom Tromey <tromey@adacore.com>
3062
3063 * python/python.c (gdbpy_parameter_value): Use
3064 gdb_py_object_from_ulongest.
3065
3066 2020-09-15 Tom Tromey <tromey@adacore.com>
3067
3068 * python/py-infevents.c (create_register_changed_event_object):
3069 Use gdb_py_object_from_longest.
3070 * python/py-exitedevent.c (create_exited_event_object): Use
3071 gdb_py_object_from_longest.
3072
3073 2020-09-15 Tom Tromey <tromey@adacore.com>
3074
3075 * python/python.c (gdbpy_parameter_value): Use
3076 gdb_py_object_from_longest.
3077 * python/py-type.c (convert_field, typy_range): Use
3078 gdb_py_object_from_longest.
3079 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
3080 gdb_py_object_from_longest.
3081 * python/py-lazy-string.c (stpy_get_length): Use
3082 gdb_py_object_from_longest.
3083 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
3084 gdb_py_object_from_longest.
3085 * python/py-infevents.c (create_memory_changed_event_object): Use
3086 gdb_py_object_from_longest.
3087 * python/py-inferior.c (infpy_get_num): Use
3088 gdb_py_object_from_longest.
3089 (infpy_get_pid): Likewise.
3090
3091 2020-09-15 Tom Tromey <tromey@adacore.com>
3092
3093 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
3094 defines.
3095 * python/py-value.c (valpy_long): Use
3096 gdb_py_object_from_ulongest.
3097 * python/py-symtab.c (salpy_get_pc): Use
3098 gdb_py_object_from_ulongest.
3099 (salpy_get_last): Likewise.
3100 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
3101 gdb_py_object_from_ulongest.
3102 * python/py-lazy-string.c (stpy_get_address): Use
3103 gdb_py_object_from_ulongest.
3104 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
3105 * python/py-arch.c (archpy_disassemble): Use
3106 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3107 error handling.
3108
3109 2020-09-15 Tom Tromey <tromey@adacore.com>
3110
3111 * python/python-internal.h (gdb_py_long_from_longest): Remove
3112 defines.
3113 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3114 * python/py-type.c (convert_field, typy_get_sizeof): Use
3115 gdb_py_object_from_longest.
3116 * python/py-record-btrace.c (btpy_list_index): Use
3117 gdb_py_object_from_longest.
3118
3119 2020-09-15 Tom Tromey <tromey@adacore.com>
3120
3121 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3122 * python/py-record.c (recpy_element_number): Use
3123 gdb_py_object_from_longest.
3124 (recpy_gap_number): Likewise.
3125
3126 2020-09-15 Tom Tromey <tromey@adacore.com>
3127
3128 * top.c (ui::ui): Update.
3129 (highest_ui_num): Remove.
3130 * top.h (struct ui) <num>: Remove.
3131
3132 2020-09-15 Tom Tromey <tromey@adacore.com>
3133
3134 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3135 * ui-style.c (ansi_regex_text): Now array.
3136 * rust-exp.y (number_regex_text): Now array.
3137 * linespec.c (linespec_quote_characters): Now array.
3138 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3139 Now arrays.
3140
3141 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * debuginfod-support.c (debuginfod_client_deleter): New.
3144 (debuginfod_client_up): New.
3145 (debuginfod_init): Return debuginfod_client_up.
3146 (debuginfod_source_query): Adjust.
3147 (debuginfod_debuginfo_query): Adjust.
3148
3149 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * debuginfod-support.c (debuginfod_source_query): Use
3152 make_unique_xstrdup.
3153
3154 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3157 with `type::instance_flags`.
3158
3159 2020-09-14 Michael Mullin <masmullin@gmail.com>
3160
3161 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3162 Remove baton parameter.
3163
3164 2020-09-14 Pedro Alves <pedro@palves.net>
3165
3166 * Makefile.in (SELFTESTS_SRCS): Add
3167 unittests/enum-flags-selftests.c.
3168 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3169 btrace_function_flags instead of enum btrace_function_flag.
3170 * compile/compile-c-types.c (convert_qualified): Use
3171 enum_flags::raw.
3172 * compile/compile-cplus-symbols.c (convert_one_symbol)
3173 (convert_symbol_bmsym):
3174 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3175 (compile_cplus_convert_struct_or_union_methods)
3176 (compile_cplus_instance::convert_qualified_base):
3177 * go-exp.y (parse_string_or_char): Add cast to int.
3178 * unittests/enum-flags-selftests.c: New file.
3179 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3180 type to btrace_thread_flags from btrace_thread_flag.
3181 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3182 local's type to btrace_thread_flags from btrace_thread_flag. Add
3183 cast in DEBUG call.
3184
3185 2020-09-14 Pedro Alves <pedro@palves.net>
3186
3187 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3188 * gdbtypes.c (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 * gdbtypes.h (address_space_name_to_int): Rename to ...
3193 (address_space_name_to_type_instance_flags): ... this.
3194 (address_space_int_to_name): Rename to ...
3195 (address_space_type_instance_flags_to_name): ... this.
3196 * type-stack.c (type_stack::insert): Adjust to rename.
3197 * type-stack.h (type_stack::insert): Likewise.
3198
3199 2020-09-14 Pedro Alves <pedro@palves.net>
3200 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * avr-tdep.c (avr_address_class_type_flags): Return
3203 type_instance_flags.
3204 (avr_address_class_type_flags_to_name): Take a
3205 type_instance_flags.
3206 (avr_address_class_name_to_type_flags): Return bool and take a
3207 type_instance_flags.
3208 * d-lang.c (build_d_types): Use type::set_instance_flags.
3209 * ft32-tdep.c (ft32_address_class_type_flags): Return
3210 type_instance_flags.
3211 (ft32_address_class_type_flags_to_name): Take a
3212 type_instance_flags.
3213 (ft32_address_class_name_to_type_flags): Return bool and take a
3214 type_instance_flags.
3215 (ft32_gdbarch_init): Use type::set_instance_flags.
3216 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3217 * gdbarch.h, gdbarch.c: Regenerate.
3218 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3219 (address_class_name_to_type_flags): Use type_instance_flags and
3220 bool.
3221 * gdbtypes.c (address_space_name_to_int)
3222 (address_space_int_to_name, make_qualified_type): Use
3223 type_instance_flags.
3224 (make_qualified_type): Use type_instance_flags and
3225 type::set_instance_flags.
3226 (make_type_with_address_space, make_cv_type, make_vector_type)
3227 (check_typedef): Use type_instance_flags.
3228 (recursive_dump_type): Cast type_instance_flags to unsigned for
3229 printing.
3230 (copy_type_recursive): Use type::set_instance_flags.
3231 (gdbtypes_post_init): Use type::set_instance_flags.
3232 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3233 <m_instance_flags>: ... this.
3234 <instance_flags, set_instance_flags>: New methods.
3235 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3236 (SET_TYPE_INSTANCE_FLAGS): New.
3237 (address_space_name_to_int, address_space_int_to_name)
3238 (make_type_with_address_space): Pass flags using
3239 type_instance_flags instead of int.
3240 * stabsread.c (cleanup_undefined_types_noname): Use
3241 type::set_instance_flags.
3242 * s390-tdep.c (s390_address_class_type_flags): Return
3243 type_instance_flags.
3244 (s390_address_class_type_flags_to_name): Take a
3245 type_instance_flags.
3246 (s390_address_class_name_to_type_flags): Return bool and take a
3247 type_instance_flags.
3248 * type-stack.c (type_stack::follow_types): Use
3249 type_instance_flags.
3250 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3251
3252 2020-09-14 Tom Tromey <tromey@adacore.com>
3253
3254 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3255 * x86-tdep.c (x86_is_thunk_register_name)
3256 (x86_in_indirect_branch_thunk): Update.
3257 * sparc64-tdep.c (sparc64_fpu_register_names)
3258 (sparc64_cp0_register_names, sparc64_register_names)
3259 (sparc64_pseudo_register_names): Now const.
3260 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3261 cp0_registers_num>: Now const.
3262 * sparc-tdep.c (sparc_core_register_names)
3263 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3264 (sparc32_pseudo_register_names): Now const.
3265 (validate_tdesc_registers): Update.
3266 * rust-lang.c (rust_extensions): Now const.
3267 * p-lang.c (p_extensions): Now const.
3268 * objc-lang.c (objc_extensions): Now const.
3269 * nto-tdep.c (nto_thread_state_str): Now const.
3270 * moxie-tdep.c (moxie_register_names): Now const.
3271 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3272 Now const.
3273 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3274 (mips_linux_reg_names): Now const.
3275 (mips_gdbarch_init): Update.
3276 * microblaze-tdep.c (microblaze_register_names): Now const.
3277 * m68k-tdep.c (m68k_register_names): Now const.
3278 * m32r-tdep.c (m32r_register_names): Now const.
3279 * ia64-tdep.c (ia64_register_names): Now const.
3280 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3281 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3282 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3283 ymm_avx512_register_names, pkeys_register_names>: Now const.
3284 * i386-tdep.c (i386_register_names, i386_zmm_names)
3285 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3286 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3287 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3288 * f-lang.c (f_extensions): Now const.
3289 * d-lang.c (d_extensions): Now const.
3290 * csky-tdep.c (csky_register_names): Now const.
3291 * charset.c (default_charset_names, charset_enum): Now const.
3292 (_initialize_charset): Update.
3293 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3294 const.
3295 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3296 (bsd_uthread_solib_loaded): Update.
3297 (bsd_uthread_state): Now const.
3298 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3299 (amd64_ymm_avx512_names, amd64_ymmh_names)
3300 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3301 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3302 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3303 (amd64_dword_names): Now const.
3304 * agent.c (can_use_agent_enum): Now const.
3305 * ada-tasks.c (task_states, long_task_states): Now const.
3306 * ada-lang.c (known_runtime_file_name_patterns)
3307 (known_auxiliary_function_name_patterns, attribute_names)
3308 (standard_exc, ada_extensions): Now const.
3309
3310 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * bcache.h (struct bcache) <bcache>: Remove constructor.
3313 <m_hash_function, m_compare_function>: Remove.
3314 <~bcache>: Make virtual.
3315 <compare>: Remove static method, introduce virtual method.
3316 <default_hash>: Remove.
3317 <hash>: New virtual method.
3318 * bcache.c (bcache::expand_hash_table): Update.
3319 (bcache::insert): Update.
3320 (bcache::hash): New.
3321 (bcache::compare): Update comment and parameter names.
3322 * gdbtypes.c (types_deeply_equal): Update.
3323 * psymtab.h (struct psymbol_bcache): New struct.
3324 (class psymtab_storage) <psymtab_storage>: Make default.
3325 <psymbol_cache>: Change type to psymbol_bcache.
3326 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3327 (psymbol_hash): Change to...
3328 (psymbol_bcache::hash): ... this.
3329 (psymbol_compare): Change to...
3330 (psymbol_bcache::compare): ... this.
3331
3332 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3333
3334 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3335 checking for initial lwp.
3336
3337 2020-09-14 Tom Tromey <tromey@adacore.com>
3338
3339 * m68k-tdep.c (m68k_extract_return_value): Use
3340 pointer_result_regnum.
3341 (m68k_store_return_value): Likewise.
3342 (m68k_reg_struct_return_p): Handle vectors and arrays.
3343 (m68k_return_value): Handle arrays.
3344 (m68k_svr4_return_value): Fix single-element aggregate handling.
3345 Handle long double. Adjust for embedded ABI.
3346 (m68k_svr4_init_abi): Set pointer_result_regnum.
3347 (m68k_embedded_init_abi): New function.
3348 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3349 (m68k_osabi_sniffer): New function.
3350 (_initialize_m68k_tdep): Register osabi sniffer.
3351 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3352 member.
3353
3354 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3357 with gdb::unique_xmalloc_ptr<char>.
3358
3359 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * xml-support.h (xml_fetch_another): Change type to be a
3362 function_view.
3363 (xml_process_xincludes): Remove baton parameter.
3364 (xml_fetch_content_from_file): Change baton parameter to
3365 dirname.
3366 * xml-support.c (struct xinclude_parsing_data)
3367 <xinclude_parsing_data>: Remove baton parameter.
3368 <fetcher_baton>: Remove.
3369 (xinclude_start_include): Adjust.
3370 (xml_process_xincludes): Adjust.
3371 (xml_fetch_content_from_file): Replace baton parameter with
3372 dirname.
3373 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3374 (xml_init_syscalls_info): Use a lambda.
3375 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3376 (file_read_description_xml): Use a lambda.
3377 (fetch_available_features_from_target): Change baton parameter
3378 to target_ops.
3379 (target_read_description_xml): Use a lambda.
3380 (target_fetch_description_xml): Use a lambda.
3381 (string_read_description_xml): Update.
3382
3383 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3386 uses with type::endianity_is_not_default.
3387
3388 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * gdbtypes.h (struct type) <endianity_is_not_default,
3391 set_endianity_is_not_default>: New methods.
3392 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3393 type::endianity_is_not_default, change all write call sites to
3394 use type::set_endianity_is_not_default.
3395
3396 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3397
3398 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3399 uses with type::is_fixed_instance.
3400
3401 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3402
3403 * gdbtypes.h (struct type) <is_fixed_instance,
3404 set_is_fixed_instance>: New methods.
3405 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3406 write call sites to use type::set_is_fixed_instance.
3407
3408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3411 uses with type::is_gnu_ifunc.
3412
3413 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3416 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3417 use type::set_is_gnu_ifunc.
3418
3419 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3420
3421 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3422 uses with type::stub_is_supported.
3423
3424 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3427 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3428 use type::set_stub_is_supported.
3429
3430 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3433 uses with type::is_vector.
3434
3435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3438 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3439 use type::set_is_vector.
3440
3441 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3442
3443 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3444 uses with type::has_varargs.
3445
3446 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3449 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3450 use type::set_has_varargs.
3451
3452 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3453
3454 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3455 uses with type::is_prototyped.
3456
3457 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3458
3459 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3460 New methods.
3461 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3462 call sites to use type::set_is_prototyped.
3463
3464 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3465
3466 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3467 uses with type::target_is_stub.
3468
3469 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3472 New methods.
3473 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3474 sites to use type::set_target_is_stub.
3475
3476 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3477
3478 * gdbtypes.h (TYPE_STUB): Remove, replace all
3479 uses with type::is_stub.
3480
3481 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3484 (TYPE_STUB): Use type::is_stub, change all write call sites to
3485 use type::set_is_stub.
3486
3487 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3490 type::has_no_signedness.
3491
3492 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * gdbtypes.h (struct type) <has_no_signedness,
3495 set_has_no_signedness>: New methods.
3496 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3497 call sites to use type::set_has_no_signedness.
3498
3499 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3502 type::is_unsigned.
3503
3504 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3505
3506 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3507 methods.
3508 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3509 sites to use type::set_is_unsigned.
3510
3511 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3512 Adam Renquinha <arenquinha@cimeq.qc.ca>
3513
3514 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3515 pointer and stack frame offset when unwinding.
3516
3517 2020-09-13 Pedro Alves <pedro@palves.net>
3518
3519 * NEWS: Document "-break-insert --qualified".
3520 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3521
3522 2020-09-13 Pedro Alves <pedro@palves.net>
3523
3524 * linespec.c (classify_mtype, compare_msyms): Delete.
3525 (search_minsyms_for_name): Remove classification logic. Instead
3526 filter out trampoline symbols if we also found an external
3527 function of the same name.
3528
3529 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3530
3531 * NEWS: Create a new section for the next release branch.
3532 Rename the section of the current branch, now that it has
3533 been cut.
3534
3535 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3536
3537 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3538 * version.in: Bump version to 11.0.50.DATE-git.
3539
3540 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3541
3542 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3543
3544 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3545 Felix Willgerodt <Felix.Willgerodt@intel.com>
3546
3547 * gdbarch.sh: Added bfloat16 type.
3548 * gdbarch.c: Regenerated.
3549 * gdbarch.h: Regenerated.
3550 * gdbtypes.c (floatformats_bfloat16): New struct.
3551 (gdbtypes_post_init): Add builtin_bfloat16.
3552 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3553 (floatformats_bfloat16): New struct.
3554 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3555 (i386_ymm_type): Add field "v16_bfloat16"
3556 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3557 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3558 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3559 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3560 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3561 * features/i386/64bit-avx512.c: Regenerated.
3562 * features/i386/64bit-sse.xml: Add bfloat16 type.
3563 * features/i386/64bit-sse.c: Regenerated.
3564
3565 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3566
3567 * i386-tdep.c (i386_zmm_type): Fix field names.
3568 (i386_ymm_type): Fix field names.
3569
3570 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3571
3572 * breakpoint.c: Fix typo in the help message of the
3573 "set breakpoint condition-evaluation" command.
3574
3575 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3576
3577 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3578 * (nbsd_nat_target::pid_to_exec_file)
3579 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3580 (nbsd_nat_target::post_startup_inferior)
3581 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3582 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3583 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3584 * (nbsd_thread_lister): Remove.
3585
3586 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3587
3588 * fork-inferior.c (startup_inferior): Avoid double free.
3589
3590 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3591
3592 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3593 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3594
3595 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3596
3597 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3598 * netbsd-nat.c: Include <sys/ptrace.h>.
3599 * (netbsd_nat::enable_proc_events): Add.
3600
3601 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3602
3603 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3604 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3605 (netbsd_nat::for_each_thread): Add.
3606 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3607 "gdbsupport/common-debug.h".
3608 * (netbsd_nat::netbsd_thread_lister)
3609 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3610 (netbsd_nat::for_each_thread): Add.
3611
3612 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3613
3614 * netbsd-nat.h: Include <unistd.h>.
3615 * (netbsd_nat::pid_to_exec_file): Add.
3616 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3617 * (netbsd_nat::pid_to_exec_file) Add.
3618
3619 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3620
3621 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3622
3623 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3624
3625 * netbsd-nat.h: New file.
3626 * netbsd-nat.c: Likewise.
3627
3628 2020-09-09 Tom Tromey <tromey@adacore.com>
3629
3630 * ada-lang.c (remove_extra_symbols): Do not increment when
3631 removing an element
3632
3633 2020-09-08 Tom Tromey <tromey@adacore.com>
3634
3635 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3636
3637 2020-09-08 Tom Tromey <tromey@adacore.com>
3638
3639 PR win32/25302:
3640 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3641 (gdb_bfd_init_data): New function.
3642 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3643
3644 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3645
3646 * infrun.c (fetch_inferior_event): Use
3647 `switch_to_target_no_thread` to switch the target.
3648
3649 2020-09-06 Tom Tromey <tom@tromey.com>
3650
3651 * symfile.h (dwarf2_free_objfile): Don't declare.
3652
3653 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3654
3655 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3656 to match 16 byte real/complex type generated by Flang compiler.
3657
3658 2020-09-03 Tom de Vries <tdevries@suse.de>
3659
3660 PR breakpoint/26546
3661 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3662 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3663
3664 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3665
3666 * maint.c (index_digits): New function.
3667 (struct maint_print_section_data): Remove.
3668 (print_bfd_section_info): Remove print_data parameter, add arg
3669 and index_digits.
3670 (print_objfile_section_info): Likewise.
3671 (print_bfd_section_info_maybe_relocated): Likewise (plus
3672 objfile).
3673 (maintenance_info_sections): Adjust calls.
3674
3675 2020-09-02 Tom Tromey <tromey@adacore.com>
3676
3677 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3678 for null pointers.
3679 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3680
3681 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3682
3683 * bcache.h (struct bcache) <insert>: Change type of `added` to
3684 pointer to bool.
3685 * bcache.c (bcache::insert): Likewise.
3686 * gdbtypes.c (check_types_worklist): Adjust.
3687 * psymtab.c (add_psymbol_to_bcache): Adjust.
3688
3689 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3690
3691 * corelow.c (unordered_set): Include.
3692 (class core_target): Add field 'm_core_unavailable_mappings'.
3693 (core_target::build_file_mappings): Print only one warning
3694 per inaccessible file. Add unavailable/broken mappings
3695 to m_core_unavailable_mappings.
3696 (core_target::xfer_partial): Call...
3697 (core_target::xfer_memory_via_mappings): New method.
3698
3699 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3700
3701 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3702 type to bool.
3703
3704 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3705
3706 * dwarf2/read.c (struct field_info): Fix indentation.
3707
3708 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3711 ordering in comment.
3712 * frame.c (frame_id_eq): Fix indentation.
3713
3714 2020-08-31 Scott Linder <scott@scottlinder.com>
3715 Simon Marchi <simon.marchi@efficios.com>
3716
3717 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3718 inline frame ids in outer frame.
3719
3720 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3723 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3724 (outer_frame_id): Use FID_STACK_OUTER instead of
3725 FID_STACK_INVALID.
3726 (frame_id_p): Don't check for outer_frame_id.
3727
3728 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3731 regnum/frame in value. Call allocate_value_lazy.
3732 * frame.c (frame_unwind_register_value): Use
3733 val_print_not_saved.
3734
3735 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3738
3739 2020-08-29 Pedro Alves <pedro@palves.net>
3740
3741 * progspace.c (print_program_space): Use all_inferiors. Switch to
3742 the inferior before calling target_pid_to_str.
3743
3744 2020-08-28 Tom Tromey <tom@tromey.com>
3745
3746 * xcoffread.c (xcoff_end_psymtab): Update comment.
3747 * dbxread.c (dbx_end_psymtab): Update comment.
3748
3749 2020-08-28 Tom de Vries <tdevries@suse.de>
3750
3751 PR breakpoint/26544
3752 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3753 event_location.
3754 (create_breakpoint): Same.
3755 (base_breakpoint_decode_location): Same.
3756 (bkpt_create_sals_from_location): Same.
3757 (bkpt_decode_location): Same.
3758 (bkpt_probe_create_sals_from_location): Same.
3759 (bkpt_probe_decode_location): Same.
3760 (tracepoint_create_sals_from_location): Same.
3761 (tracepoint_decode_location): Same.
3762 (tracepoint_probe_decode_location): Same.
3763 (strace_marker_create_sals_from_location): Same.
3764 (strace_marker_decode_location): Same.
3765 (create_sals_from_location_default): Same.
3766 (decode_location_default): Same.
3767 * breakpoint.h (struct breakpoint_ops): Same.
3768 (create_breakpoint): Same.
3769 * linespec.h (decode_line_full): Same.
3770 * linespec.c (decode_line_full): Same. Throw error if
3771 result.size () == 0.
3772
3773 2020-08-27 Pedro Alves <pedro@palves.net>
3774
3775 PR gdb/26524
3776 * breakpoint.c (until_break_fsm) <location_breakpoint,
3777 caller_breakpoint>: Delete fields.
3778 <breakpoints>: New field.
3779 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3780 two individual breakpoints.
3781 (until_break_fsm::should_stop): Loop over breakpoints in the
3782 breakpoint vector.
3783 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3784 vector.
3785 (until_break_command): Handle location expanding into multiple
3786 sals.
3787
3788 2020-08-27 Pedro Alves <pedro@palves.net>
3789
3790 PR gdb/26523
3791 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3792 bp_until breakpoints user-specified locations. Update intro
3793 comment.
3794
3795 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3798 gdb_bfd_sections): New.
3799 * maint.c (print_bfd_section_info): Change param type to
3800 maint_print_section_data.
3801 (print_objfile_section_info): Likewise.
3802 (print_bfd_section_info_maybe_relocated): Likewise.
3803 (maintenance_info_sections): Use gdb_bfd_sections.
3804
3805 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3806
3807 * MAINTAINERS: Add ARC target and maintainer.
3808
3809 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3810
3811 * configure.tgt: ARC support for GNU/Linux.
3812 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3813 * arc-linux-tdep.c: New file.
3814 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3815 * arc-tdep.c (arc_write_pc): Use it.
3816
3817 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3818
3819 * arc-tdep.c (arc_check_for_hardware_loop): New.
3820 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3821
3822 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3823
3824 * arc-tdep.h: Include "gdbarch.h".
3825
3826 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3827
3828 * arch/arc.h
3829 (arc_gdbarch_features): New class to stir the selection of target XML.
3830 (arc_create_target_description): Use FEATURES to choose XML target.
3831 (arc_lookup_target_description): Use arc_create_target_description
3832 to create _new_ target descriptions or return the already created
3833 ones if the FEATURES is the same.
3834 * arch/arc.c: Implementation of prototypes described above.
3835 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3836 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3837 * arc-tdep.c (*_feature_name): Make feature names consistent.
3838 (arc_register_feature): A new struct to hold information about
3839 registers of a particular target/feature.
3840 (arc_check_tdesc_feature): Check if XML provides registers in
3841 compliance with ARC_REGISTER_FEATURE structs.
3842 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3843 (determine_*_reg_feature_set): Which feature name to look for.
3844 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3845 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3846 to expected ISA enums to be used in arc_gdbarch_features structs.
3847 * features/Makefile (FEATURE_XMLFILES): Add new files.
3848 * gdb/features/arc/v1-aux.c: New file.
3849 * gdb/features/arc/v1-aux.xml: Likewise.
3850 * gdb/features/arc/v1-core.c: Likewise.
3851 * gdb/features/arc/v1-core.xml: Likewise.
3852 * gdb/features/arc/v2-aux.c: Likewise.
3853 * gdb/features/arc/v2-aux.xml: Likewise.
3854 * gdb/features/arc/v2-core.c: Likewise.
3855 * gdb/features/arc/v2-core.xml: Likewise.
3856 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3857
3858 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3859 Andrew Burgess <andrew.burgess@embecosm.com>
3860
3861 PR m2/26372
3862 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3863 an assert. Remove single element array indexing pattern as the
3864 MULTI_SUBSCRIPT support will handle this case too.
3865
3866 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * value.h (valprint_check_validity): Move declaration from
3869 here...
3870 * valprint.h (valprint_check_validity): ... to here.
3871
3872 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * debug.h: New file.
3875 * debug.c (debug_prefixed_vprintf): New function.
3876 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3877 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3878
3879 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3880
3881 * infrun.h (infrun_debug_printf_1): New function declaration.
3882 (infrun_debug_printf): New macro.
3883 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3884 throughout.
3885 (infrun_debug_printf): New function.
3886 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3887 (handle_jit_event): Likewise.
3888
3889 2020-08-21 Mark Wielaard <mark@klomp.org>
3890
3891 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3892
3893 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * frame.c (enum class frame_id_status): New.
3896 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3897 (fprintf_frame): Update.
3898 (compute_frame_id): Set frame id status to "computing" on entry.
3899 Set it back to "not_computed" on failure and to "computed" on
3900 success.
3901 (get_frame_id): Assert the frame id is not being computed.
3902 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3903 (create_new_frame): Likewise.
3904 (frame_cleanup_after_sniffer): Update assert.
3905
3906 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3907
3908 * regcache.c (pid_ptid_regcache_map): New type.
3909 (target_ptid_regcache_map): Remove.
3910 (target_pid_ptid_regcache_map): New type.
3911 (regcaches): Change type to target_pid_ptid_regcache_map.
3912 (get_thread_arch_aspace_regcache): Update.
3913 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3914 case.
3915 (regcaches_size): Update.
3916 (regcache_count): Update.
3917 (registers_changed_ptid_target_pid_test): New.
3918 (_initialize_regcache): Register new test.
3919
3920 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3921
3922 * regcache.c (regcache_count): New.
3923 (struct regcache_test_data): New.
3924 (regcache_test_data_up): New.
3925 (populate_regcaches_for_test): New.
3926 (regcaches_test): Remove.
3927 (get_thread_arch_aspace_regcache_test): New.
3928 (registers_changed_ptid_all_test): New.
3929 (registers_changed_ptid_target_test): New.
3930 (registers_changed_ptid_target_ptid_test): New.
3931 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3932 (_initialize_regcache): Register new tests.
3933
3934 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3937 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3938 gdbarch and aspace parameter. Use current inferior's aspace.
3939 Validate regcache's arch value.
3940 (regcaches_test): Update.
3941
3942 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3943
3944 * regcache.c (regcaches_test): Call registers_changed.
3945
3946 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3947
3948 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3949
3950 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3951
3952 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3953 to find the end of prologue for flang compiled binaries.
3954 * arm-tdep.c (arm_skip_prologue): Likewise.
3955 * i386-tdep.c (i386_skip_prologue): Likewise.
3956 * producer.c (producer_is_llvm): New function.
3957 (producer_parsing_tests): Added new tests for clang/flang.
3958 * producer.h (producer_is_llvm): New declaration.
3959
3960 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * linux-nat.c (linux_nat_debug_printf): New function.
3963 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3964
3965 2020-08-18 Aaron Merey <amerey@redhat.com>
3966
3967 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3968 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3969 (CLIBS): Add DEBUGINFOD_LIBS.
3970
3971 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3972
3973 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3974 'gdbarch_num_regs'.
3975
3976 2020-08-17 Tom Tromey <tromey@adacore.com>
3977
3978 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3979 ada_get_decoded_value returns NULL.
3980
3981 2020-08-17 Tom Tromey <tromey@adacore.com>
3982
3983 * python/py-inferior.c (infpy_search_memory): Use
3984 gdb_py_object_from_ulongest.
3985 * python/py-infevents.c (create_inferior_call_event_object)
3986 (create_memory_changed_event_object): Use
3987 gdb_py_object_from_ulongest.
3988 * python/py-linetable.c (ltpy_entry_get_pc): Use
3989 gdb_py_object_from_ulongest.
3990
3991 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * loc.c (class symbol_needs_eval_context): Fix indentation.
3994
3995 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3996
3997 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3998 bool.
3999
4000 2020-08-17 Tom de Vries <tdevries@suse.de>
4001
4002 PR gdb/26393
4003 * gdbtypes.c (dump_dynamic_prop): New function.
4004 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
4005
4006 2020-08-15 Tom de Vries <tdevries@suse.de>
4007
4008 PR backtrace/26390
4009 * stack.c (print_frame_args): Temporarily set the selected
4010 frame to FRAME while printing the frame's arguments.
4011
4012 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4013
4014 PR breakpoints/26385
4015 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
4016 Always clear watchpoint with PTRACE_SET_DEBUGREG.
4017
4018 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4019
4020 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
4021 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
4022 and >= to check return value instead of == -1 and != -1.
4023
4024 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
4025
4026 * utils.h (class gdb_argv) <as_array_view>: New method.
4027 * utils.c (gdb_argv_as_array_view_test): New.
4028 (_initialize_utils): Register selftest.
4029 * maint.c (maintenance_selftest): Use the new method.
4030
4031 2020-08-13 Kamil Rytarowski <n54@gmx.com>
4032
4033 * target.h (supports_dumpcore, dumpcore): New
4034 function declarations.
4035 * target.c (supports_dumpcore, dumpcore): New
4036 functions.
4037 * target-delegates.c: Rebuild.
4038 * gcore.c (gcore_command): Use target_supports_dumpcore ()
4039 and target_dumpcore ().
4040
4041 2020-08-13 Aaron Merey <amerey@redhat.com>
4042
4043 * debuginfod-support.c: Replace global variables with user_data.
4044
4045 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
4046
4047 * maint.c (maintenance_selftest): Split args and pass array_view
4048 to run_tests.
4049
4050 2020-08-12 Luis Machado <luis.machado@linaro.org>
4051
4052 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
4053 type's length.
4054 Use %s and pulongest to print the length.
4055
4056 2020-08-12 Pedro Alves <palves@redhat.com>
4057
4058 * NEWS: Move "Multi-target debugging support" item to the
4059 "Changes since GDB 9" section.
4060
4061 2020-08-12 Pedro Alves <palves@redhat.com>
4062
4063 PR gdb/26336
4064 * progspace.c (program_space::remove_objfile): Invalidate the
4065 frame cache.
4066
4067 2020-08-11 Tom de Vries <tdevries@suse.de>
4068
4069 * MAINTAINERS: Mark ms1 as deleted.
4070
4071 2020-08-10 Luis Machado <luis.machado@linaro.org>
4072
4073 PR gdb/26310
4074
4075 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
4076 act accordingly.
4077 (aarch64_analyze_prologue_test): Add more unit tests to exercise
4078 movz/str/stur/stp skipping behavior.
4079
4080 2020-08-10 Luis Machado <luis.machado@linaro.org>
4081
4082 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
4083 struct user_sve_header instead of struct sve_context.
4084
4085 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
4086
4087 * read.h (dwarf2_fetch_die_loc_sect_off,
4088 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
4089 `void *` parameter with function_view.
4090 * read.c (dwarf2_fetch_die_loc_sect_off,
4091 dwarf2_fetch_die_loc_cu_off): Likewise.
4092 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
4093 (per_cu_dwarf_call): Adjust.
4094 (get_frame_address_in_block_wrapper): Remove.
4095 (indirect_synthetic_pointer): Adjust.
4096 (get_ax_pc): Remove.
4097 (dwarf2_compile_expr_to_ax): Adjust.
4098
4099 2020-08-08 Tom de Vries <tdevries@suse.de>
4100
4101 PR build/26344
4102 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
4103 constructor.
4104 * regcache.c (get_thread_arch_aspace_regcache): Same.
4105
4106 2020-08-07 Tom Tromey <tromey@adacore.com>
4107
4108 * ravenscar-thread.c
4109 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4110 New method.
4111 (ravenscar_thread_target::wait): Check
4112 runtime_initialized.
4113 (ravenscar_thread_target::prepare_to_store)
4114 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4115 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4116 (ravenscar_thread_target::stopped_by_watchpoint)
4117 (ravenscar_thread_target::stopped_data_address)
4118 (ravenscar_thread_target::core_of_thread): Use
4119 scoped_restore_current_thread and
4120 set_base_thread_from_ravenscar_task.
4121
4122 2020-08-07 Tom Tromey <tromey@adacore.com>
4123
4124 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4125
4126 2020-08-07 Tom Tromey <tromey@adacore.com>
4127
4128 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4129 update_inferior_ptid before update_thread_list.
4130 (temporarily_change_regcache_ptid): New class.
4131 (ravenscar_thread_target::fetch_registers)
4132 (ravenscar_thread_target::store_registers)
4133 (ravenscar_thread_target::prepare_to_store): Use base thread when
4134 forwarding operation.
4135
4136 2020-08-07 Tom Tromey <tromey@adacore.com>
4137
4138 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4139 "is_pid" case.
4140
4141 2020-08-07 Tom Tromey <tromey@adacore.com>
4142
4143 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4144 New methods.
4145 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4146 first.
4147 (ravenscar_thread_target::add_thread): Rename from
4148 ravenscar_add_thread.
4149 (ravenscar_thread_target::update_thread_list): Use a lambda.
4150 (ravenscar_thread_target::xfer_partial): New method.
4151
4152 2020-08-07 Tom Tromey <tromey@adacore.com>
4153
4154 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4155 gdb::function_view.
4156 (iterate_over_live_ada_tasks): Change type of argument.
4157 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4158 of argument.
4159
4160 2020-08-07 Tom Tromey <tromey@adacore.com>
4161
4162 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4163 Remove.
4164 (ravenscar_thread_target::extra_thread_info): Remove.
4165 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4166 defer to target beneath for non-Ravenscar threads.
4167
4168 2020-08-07 Tom Tromey <tromey@adacore.com>
4169
4170 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4171 get_base_thread_from_ravenscar_task>: Now methods.
4172 <m_cpu_map>: New member.
4173 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4174 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4175 (ravenscar_thread_target::task_is_currently_active): Update.
4176 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4177 Now a method.
4178 (ravenscar_thread_target::add_active_thread): Put initial thread
4179 into the m_cpu_map.
4180
4181 2020-08-07 Tom Tromey <tromey@adacore.com>
4182
4183 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4184 event_ptid.
4185
4186 2020-08-07 Tom Tromey <tromey@adacore.com>
4187
4188 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4189 runtime_initialized.
4190
4191 2020-08-07 Tom Tromey <tromey@adacore.com>
4192
4193 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4194 add_active_thread.
4195 (ravenscar_thread_target::add_active_thread): Now public.
4196 (ravenscar_inferior_created): Call add_active_thread after pushing
4197 the target.
4198
4199 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4200
4201 * regcache.c (ptid_regcache_map): New type.
4202 (target_ptid_regcache_map): New type.
4203 (regcaches): Change type to target_ptid_regcache_map.
4204 (get_thread_arch_aspace_regcache): Update to regcaches' new
4205 type.
4206 (regcache_thread_ptid_changed): Likewise.
4207 (registers_changed_ptid): Likewise.
4208 (regcaches_size): Likewise.
4209 (regcaches_test): Update.
4210 (regcache_thread_ptid_changed): Update.
4211 * regcache.h (regcache_up): New type.
4212 * gdbsupport/ptid.h (hash_ptid): New struct.
4213
4214 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * observable.h (thread_ptid_changed): Add parameter
4217 `process_stratum_target *`.
4218 * infrun.c (infrun_thread_ptid_changed): Add parameter
4219 `process_stratum_target *` and use it.
4220 (selftests): New namespace.
4221 (infrun_thread_ptid_changed): New function.
4222 (_initialize_infrun): Register selftest.
4223 * regcache.c (regcache_thread_ptid_changed): Add parameter
4224 `process_stratum_target *` and use it.
4225 (regcache_thread_ptid_changed): New function.
4226 (_initialize_regcache): Register selftest.
4227 * thread.c (thread_change_ptid): Pass target to
4228 thread_ptid_changed observable.
4229
4230 2020-08-06 Caroline Tice <cmtice@google.com>
4231
4232 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4233 (struct dwp_sections): Update field comments. Add loclists and
4234 rnglists fields.
4235 (struct virtual_v2_dwo_sections): Rename struct to
4236 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4237 size & offset fields for loclists and rnglists.
4238 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4239 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4240 skipping dummy type units.
4241 (create_dwp_hash_table): Update the large comment above the function to
4242 discuss Version 5 DWP files as well, with references. Update all the
4243 version checks in the function to check for version 5 as well. Add new
4244 section at the end to create dwp hash table for version 5.
4245 (create_dwp_v2_section): Rename function to
4246 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4247 Add V5 to error message text.
4248 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4249 into calls to create_dwp_v2_or_v5_section.
4250 (create_dwo_unit_in_dwp_v5): New function.
4251 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4252 check for version2; add else clause to handle version 5.
4253 (open_and_init_dwo_file): Add code to check dwarf version & only call
4254 create_debug_types_hash_table (with sections.types) if version is not 5;
4255 else call create_debug_type_hash_table, with sections.info.
4256 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4257 version 5.
4258 (dwarf2_locate_v5_dwp_sections): New function.
4259 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4260 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4261
4262 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4263
4264 * regcache.h (class regcache): Remove friend
4265 registers_changed_ptid.
4266 <regcache_thread_ptid_changed>: Remove.
4267 <regcaches>: Remove.
4268 * regcache.c (regcache::regcaches): Rename to...
4269 (regcaches): ... this. Make static.
4270 (get_thread_arch_aspace_regcache): Update.
4271 (regcache::regcache_thread_ptid_changed): Rename to...
4272 (regcache_thread_ptid_changed): ... this. Update.
4273 (class regcache_access): Remove.
4274 (regcaches_test): Update.
4275 (_initialize_regcache): Update.
4276 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4277 <forward_list>.
4278
4279 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * regcache.h (class regcache) <current_regcache>: Rename to...
4282 <regcaches>: ... this. Move doc here.
4283 * regcache.c (regcache::current_regcache) Rename to...
4284 (regcache::regcaches): ... this. Move doc to header.
4285 (get_thread_arch_aspace_regcache): Update.
4286 (regcache::regcache_thread_ptid_changed): Update.
4287 (registers_changed_ptid): Update.
4288 (class regcache_access) <current_regcache_size>: Rename to...
4289 <regcaches_size>: ... this.
4290 (current_regcache_test): Rename to...
4291 (regcaches_test): ... this.
4292 (_initialize_regcache): Update.
4293
4294 2020-08-06 Victor Collod <vcollod@nvidia.com>
4295
4296 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4297
4298 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4299
4300 * corelow.c (core_target::build_file_mappings): Don't output
4301 null pathname in warning.
4302
4303 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4306 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4307 gdb.dwarf2/dw2-single-line-discriminators.exp,
4308 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4309
4310 2020-08-05 Tom Tromey <tromey@adacore.com>
4311
4312 PR rust/26197:
4313 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4314 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4315 Fix off-by-one and type size errors in ordinary case.
4316
4317 2020-08-05 Tom de Vries <tdevries@suse.de>
4318
4319 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4320 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4321
4322 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4323
4324 * frame.h (frame_id_p): Return bool.
4325 (frame_id_artificial_p): Return bool.
4326 (frame_id_eq): Return bool.
4327 (has_stack_frames): Return bool.
4328 (get_selected_frame): Fix typo in comment.
4329 (get_frame_pc_if_available): Return bool.
4330 (get_frame_address_in_block_if_available): Return bool.
4331 (get_frame_func_if_available): Return bool.
4332 (read_frame_register_unsigned): Return bool.
4333 (get_frame_register_bytes): Return bool.
4334 (safe_frame_unwind_memory): Return bool.
4335 (deprecated_frame_register_read): Return bool.
4336 (frame_unwinder_is): Return bool.
4337 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4338 bool.
4339 <this_id::p>: Likewise.
4340 <prev_p>: Likewise.
4341 (frame_stash_add): Return bool.
4342 (get_frame_id): Use bool.
4343 (frame_id_build_special) Use bool.
4344 (frame_id_build_unavailable_stack): Use bool.
4345 (frame_id_build): Use bool.
4346 (frame_id_p): Return bool, use true/false instead of 1/0.
4347 (frame_id_artificial_p): Likewise.
4348 (frame_id_eq): Likewise.
4349 (frame_id_inner): Likewise.
4350 (get_frame_func_if_available): Likewise.
4351 (read_frame_register_unsigned): Likewise.
4352 (deprecated_frame_register_read): Likewise.
4353 (get_frame_register_bytes): Likewise.
4354 (has_stack_frames): Likewise.
4355 (inside_main_func): Likewise.
4356 (inside_entry_func): Likewise.
4357 (get_frame_pc_if_available): Likewise.
4358 (get_frame_address_in_block_if_available): Likewise.
4359 (frame_unwinder_is): Likewise.
4360 (safe_frame_unwind_memory): Likewise.
4361 (frame_unwind_arch): Likewise.
4362
4363 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4364
4365 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4366 type to cached_copy_status.
4367 (fprintf_frame): Adjust.
4368 (get_frame_func_if_available): Adjust.
4369 (frame_cleanup_after_sniffer): Adjust.
4370
4371 2020-08-04 Mark Wielaard <mark@klomp.org>
4372
4373 * MAINTAINERS (Write After Approval): Update email address.
4374
4375 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4376
4377 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4378 dynamic_prop::const_val.
4379
4380 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4383 dynamic_prop::kind.
4384
4385 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4386
4387 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4388
4389 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4390
4391 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4392
4393 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4394 Jose E. Marchesi <jose.marchesi@oracle.com>
4395
4396 * configure.tgt: Add entry for bpf-*-*.
4397 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4398 (ALLDEPFILES): Add bpf-tdep.c.
4399 * bpf-tdep.c: New file.
4400 * MAINTAINERS: Add bpf target and maintainer.
4401 * NEWS: Mention the support for the new target.
4402
4403 2020-08-04 Tom de Vries <tdevries@suse.de>
4404
4405 PR symtab/23270
4406 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4407 Error.
4408
4409 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4410
4411 * syscalls/freebsd.xml: Regenerate.
4412
4413 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4414
4415 * syscalls/update-freebsd.sh: Fix usage and year range.
4416
4417 2020-08-03 Tom de Vries <tdevries@suse.de>
4418
4419 PR symtab/26333
4420 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4421 DW_LNE_lo_user/DW_LNE_hi_user range.
4422
4423 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 PR ada/26318
4426 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4427 kind.
4428
4429 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430
4431 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4432
4433 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4434
4435 * breakpoint.c (set_breakpoint_condition): Update the condition
4436 expressions after checking that the input condition string parses
4437 successfully and does not contain junk at the end.
4438
4439 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4440
4441 * breakpoint.c (set_breakpoint_condition): Update the
4442 condition string after parsing the new condition successfully.
4443
4444 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4445
4446 * proc-api.c (_STRUCTURED_PROC): Don't define.
4447 * proc-events.c: Likewise.
4448 * proc-flags.c: Likewise.
4449 * proc-why.c: Likewise.
4450 * procfs.c: Likewise.
4451
4452 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4453 * configure, config.in: Regenerate.
4454
4455 2020-07-30 Tom de Vries <tdevries@suse.de>
4456
4457 PR build/26320
4458 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4459 m_red/m_green/m_blue in a union.
4460
4461 2020-07-29 Tom de Vries <tdevries@suse.de>
4462
4463 PR tdep/26280
4464 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4465
4466 2020-07-28 Tom Tromey <tromey@adacore.com>
4467
4468 PR symtab/26270:
4469 * symtab.h (find_pc_partial_function_sym): Declare.
4470 * cli/cli-cmds.c (disassemble_command): Use
4471 find_pc_partial_function_sym. Check asm_demangle.
4472 * blockframe.c (cache_pc_function_sym): New global.
4473 (cache_pc_function_name): Remove.
4474 (clear_pc_function_cache): Update.
4475 (find_pc_partial_function_sym): New function, from
4476 find_pc_partial_function.
4477 (find_pc_partial_function): Rewrite using
4478 find_pc_partial_function_sym.
4479
4480 2020-07-28 Tom Tromey <tromey@adacore.com>
4481
4482 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4483 help. Add usage.
4484
4485 2020-07-28 Tom Tromey <tromey@adacore.com>
4486
4487 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4488 <DW_OP_GNU_variable_value>: Cast to address type.
4489
4490 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4491
4492 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4493 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4494 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4495 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4496 (nbsd_get_siginfo_type): New.
4497 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4498 (_initialize_nbsd_tdep): New.
4499
4500 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4501
4502 PR binutils/26301
4503 * configure: Regenerated.
4504
4505 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4506
4507 PR binutils/26301
4508 * configure: Regenerated.
4509
4510 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4511
4512 * python/py-frame.c: Remove 'user-regs.h' include.
4513 (frapy_read_register): Rewrite to make use of
4514 gdbpy_parse_register_id.
4515 * python/py-registers.c (gdbpy_parse_register_id): New function,
4516 moved here from python/py-unwind.c. Updated the return type, and
4517 also accepts register descriptor objects.
4518 * python/py-unwind.c: Remove 'user-regs.h' include.
4519 (pyuw_parse_register_id): Moved to python/py-registers.c.
4520 (unwind_infopy_add_saved_register): Update to use
4521 gdbpy_parse_register_id.
4522 (pending_framepy_read_register): Likewise.
4523 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4524
4525 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4526
4527 * python/py-registers.c: Add 'user-regs.h' include.
4528 (register_descriptor_iter_find): New function.
4529 (register_descriptor_iterator_object_methods): New static global
4530 methods array.
4531 (register_descriptor_iterator_object_type): Add pointer to methods
4532 array.
4533
4534 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4535
4536 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4537 for all architectures on FreeBSD 11.3 and later.
4538
4539 2020-07-27 Tom Tromey <tromey@adacore.com>
4540
4541 * gcore.h (load_corefile): Don't declare.
4542
4543 2020-07-27 Tom de Vries <tdevries@suse.de>
4544
4545 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4546 * config.in: Regenerate.
4547 * configure: Regenerate.
4548
4549 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4550
4551 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4552 ws2tcpip.h. When checking whether socklen_t type is defined, use
4553 ws2tcpip.h if it is available and sys/socket.h isn't.
4554 * configure: Regenerate.
4555 * config.in: Regenerate.
4556
4557 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 PR fortran/23051
4560 PR fortran/26139
4561 * valops.c (value_ind): Pass address to
4562 readjust_indirect_value_type.
4563 * value.c (readjust_indirect_value_type): Make parameter
4564 non-const, and add extra address parameter. Resolve original type
4565 before using it.
4566 * value.h (readjust_indirect_value_type): Update function
4567 signature and comment.
4568
4569 2020-07-25 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/26243
4572 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4573 entries.
4574
4575 2020-07-24 Aaron Merey <amerey@redhat.com>
4576
4577 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4578 * configure: Rebuild.
4579
4580 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4581
4582 PR corefiles/26294
4583 * corelow.c (_initialize_corelow): Add period to help text
4584 for "maintenance print core-file-backed-mappings".
4585
4586 2020-07-23 Pedro Alves <pedro@palves.net>
4587
4588 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4589 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4590 meanwhile.
4591 * frame.c (frame_cache_generation, get_frame_cache_generation):
4592 New.
4593 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4594 (get_prev_frame_if_no_cycle): On exception, don't touch
4595 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4596 * frame.h (get_frame_cache_generation): Declare.
4597
4598 2020-07-23 Tom de Vries <tdevries@suse.de>
4599
4600 PR tui/26282
4601 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4602 New default constructor.
4603
4604 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4607 exclude non-statement entries.
4608
4609 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4610
4611 * NEWS (New commands): Mention new command
4612 "maintenance print core-file-backed-mappings".
4613
4614 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4615
4616 * corelow.c (gdbcmd.h): Include.
4617 (core_target::info_proc_mappings): New method.
4618 (get_current_core_target): New function.
4619 (maintenance_print_core_file_backed_mappings): New function.
4620 (_initialize_corelow): Add core-file-backed-mappings to
4621 "maint print" commands.
4622
4623 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4624
4625 * linux-tdep.c (dump_note_entry_p): New function.
4626 (linux_dump_mapping_p_ftype): New typedef.
4627 (linux_find_memory_regions_full): Add new parameter,
4628 should_dump_mapping_p.
4629 (linux_find_memory_regions): Adjust call to
4630 linux_find_memory_regions_full.
4631 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4632 call to linux_find_memory_regions_full.
4633
4634 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4635
4636 * corelow.c (solist.h, unordered_map): Include.
4637 (class core_target): Add field m_core_file_mappings and
4638 method build_file_mappings.
4639 (core_target::core_target): Call build_file_mappings.
4640 (core_target::~core_target): Free memory associated with
4641 m_core_file_mappings.
4642 (core_target::build_file_mappings): New method.
4643 (core_target::xfer_partial): Use m_core_file_mappings
4644 for memory transfers.
4645 * linux-tdep.c (linux_read_core_file_mappings): New
4646 function.
4647 (linux_core_info_proc_mappings): Rewrite to use
4648 linux_read_core_file_mappings.
4649 (linux_init_abi): Register linux_read_core_file_mappings.
4650
4651 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4652
4653 * arch-utils.c (default_read_core_file_mappings): New function.
4654 * arch-utils.c (default_read_core_file_mappings): Declare.
4655 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4656 * gdbarch.h, gdbarch.c: Regenerate.
4657
4658 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4659
4660 PR corefiles/25631
4661 * corelow.c (core_target:xfer_partial): Revise
4662 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4663 case after first checking the stratum beneath the core
4664 target.
4665 (has_all_memory): Return true.
4666 * target.c (raw_memory_xfer_partial): Revise comment
4667 regarding use of has_all_memory.
4668
4669 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4670
4671 * exec.h (section_table_xfer_memory): Revise declaration,
4672 replacing section name parameter with an optional callback
4673 predicate.
4674 * exec.c (section_table_xfer_memory): Likewise.
4675 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4676 of section_table_xfer_memory.
4677
4678 2020-07-22 Tom Tromey <tromey@adacore.com>
4679
4680 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4681 lookup_symbol_search_name.
4682
4683 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4686 redundant local variable.
4687 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4688 reference, not pointer, update code accordingly.
4689
4690 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4691 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4692
4693 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4694 * jit.c (jit_breakpoint_re_set_internal): Use the
4695 `skip_jit_symbol_lookup` field.
4696
4697 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4698 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4699
4700 * jit.c (jit_read_descriptor): Define the descriptor address once,
4701 use twice.
4702 (jit_breakpoint_deleted): Move the declaration of the loop variable
4703 `iter` into the loop header.
4704 (jit_breakpoint_re_set_internal): Move the declaration of the local
4705 variable `objf_data` to the first point of definition.
4706 (jit_event_handler): Move the declaration of local variables
4707 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4708 Rename `objf` to `jited`.
4709
4710 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4711
4712 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4713 Remove.
4714 * jit.c (get_jiter_objfile_data): Update.
4715
4716 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4717 Simon Marchi <simon.marchi@polymtl.ca>
4718
4719 * jit.c (struct jit_program_space_data): Remove.
4720 (jit_program_space_key): Remove.
4721 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4722 stuff.
4723 (get_jit_program_space_data): Remove.
4724 (jit_breakpoint_deleted): Iterate on all of the program space's
4725 objfiles.
4726 (jit_inferior_init): Likewise.
4727 (jit_breakpoint_re_set_internal): Likewise. Also change return
4728 type to void.
4729 (jit_breakpoint_re_set): Pass current_program_space to
4730 jit_breakpoint_re_set_internal.
4731
4732 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4733
4734 * jit.h (struct jiter_objfile_data) <cached_code_address,
4735 jit_breakpoint>: Move to here from ...
4736 * jit.c (jit_program_space_data): ... here.
4737 (jiter_objfile_data::~jiter_objfile_data): Update.
4738 (jit_breakpoint_deleted): Update.
4739 (jit_breakpoint_re_set_internal): Update.
4740
4741 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4744 checks.
4745 (jit_read_descriptor): Remove NULL check.
4746 (jit_event_handler): Add an assertion.
4747
4748 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * jit.h (struct jit_objfile_data): Split into...
4751 (struct jiter_objfile_data): ... this ...
4752 (struct jited_objfile_data): ... and this.
4753 * objfiles.h (struct objfile) <jit_data>: Remove.
4754 <jiter_data, jited_data>: New fields.
4755 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4756 (jiter_objfile_data::~jiter_objfile_data): ... this.
4757 (get_jit_objfile_data): Rename to ...
4758 (get_jiter_objfile_data): ... this.
4759 (add_objfile_entry): Update.
4760 (jit_read_descriptor): Use get_jiter_objfile_data.
4761 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4762 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4763 (jit_inferior_exit_hook): Use objfile's jited_data field.
4764
4765 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * jit.h: Forward-declare `struct minimal_symbol`.
4768 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4769 constructor, destructor, and an objfile* field.
4770 * jit.c (jit_objfile_data): Remove.
4771 (struct jit_objfile_data): Migrate from here to jit.h.
4772 (jit_objfile_data::~jit_objfile_data): New destructor
4773 implementation with code moved from free_objfile_data.
4774 (free_objfile_data): Delete.
4775 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4776 (jit_find_objf_with_entry_addr): Ditto.
4777 (jit_inferior_exit_hook): Ditto.
4778 (_initialize_jit): Remove the call to
4779 register_objfile_data_with_cleanup.
4780 * objfiles.h (struct objfile) <jit_data>: New field.
4781
4782 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4783
4784 * jit.h: Forward-declare `struct objfile`.
4785 (jit_event_handler): Add a second parameter, the JITer objfile.
4786 * jit.c (jit_read_descriptor): Change the signature to take the
4787 JITer objfile as an argument instead of the jit_program_space_data.
4788 (jit_inferior_init): Update the call to jit_read_descriptor.
4789 (jit_event_handler): Use the new JITer objfile argument when calling
4790 jit_read_descriptor.
4791 * breakpoint.c (handle_jit_event): Update the call to
4792 jit_event_handler to pass the JITer objfile.
4793
4794 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4795
4796 * gdbarch.c: Regenerate.
4797 * gdbarch.h: Regenerate.
4798 * gdbarch.sh (handle_segmentation_fault): Remove method.
4799 * infrun.c (handle_segmentation_fault): Remove.
4800 (print_signal_received_reason): Remove call to
4801 handle_segmentation_fault.
4802
4803 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4804
4805 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4806 Rename to sparc64_linux_report_signal_info and add siggnal
4807 argument.
4808 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4809 instead of sparc64_linux_handle_segmentation_fault.
4810
4811 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4812
4813 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4814 i386_linux_report_signal_info instead of
4815 i386_linux_handle_segmentation_fault.
4816 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4817 to i386_linux_report_signal_info and add siggnal argument.
4818 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4819 of i386_linux_handle_segmentation_fault.
4820 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4821 to i386_linux_report_signal_info and add siggnal argument.
4822
4823 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4824
4825 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4826 hook if present.
4827
4828 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4829
4830 * gdbarch.c: Regenerate.
4831 * gdbarch.h: Regenerate.
4832 * gdbarch.sh (report_signal_info): New method.
4833 * infrun.c (print_signal_received_reason): Invoke gdbarch
4834 report_signal_info hook if present.
4835
4836 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4837
4838 * python/py-registers.c : Add 'unordered_map' include.
4839 (gdbpy_new_reggroup): Renamed to...
4840 (gdbpy_get_reggroup): ...this. Update to only create register
4841 group descriptors when needed.
4842 (gdbpy_reggroup_iter_next): Update.
4843
4844 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * python/py-registers.c (gdbpy_register_object_data): New static
4847 global.
4848 (gdbpy_register_object_data_init): New function.
4849 (gdbpy_new_register_descriptor): Renamed to...
4850 (gdbpy_get_register_descriptor): ...this, and update to reuse
4851 existing register descriptors where possible.
4852 (gdbpy_register_descriptor_iter_next): Update.
4853 (gdbpy_initialize_registers): Register new gdbarch data.
4854
4855 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * linux-nat.c (stopped_pids): Make static.
4858
4859 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4860
4861 PR ada/26235
4862 * gdbtypes.c (ada_discrete_type_low_bound,
4863 ada_discrete_type_high_bound): Handle undefined bounds.
4864
4865 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4866
4867 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4868 declaration.
4869 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4870 function.
4871
4872 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4873
4874 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4875 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4876 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4877 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4878 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4879 method.
4880
4881 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4882
4883 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4884 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4885 which are deprecated in Guile 3.0.
4886 * configure.ac (try_guile_versions): Add "guile-3.0".
4887 * configure (try_guile_versions): Regenerate.
4888 * NEWS: Update entry.
4889
4890 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4891 Doug Evans <dje@google.com>
4892
4893 PR gdb/21104
4894 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4895 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4896 USING_GUILE_BEFORE_2_2.
4897 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4898 Change type to 'scm_t_port_type *'.
4899 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4900 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4901 parameter and honor it. Update callers.
4902 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4903 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4904 functions.
4905 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4906 USING_GUILE_BEFORE_2_2.
4907 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4908 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4909 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4910 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4911 and 'SCM_PORT_TYPE'.
4912 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4913 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4914 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4915 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4916 [!USING_GUILE_BEFORE_2_2]: New functions.
4917 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4918 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4919 'gdbscm_memory_port_read'.
4920 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4921 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4922 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4923 function.
4924 (ioscm_init_memory_port): Remove.
4925 (ioscm_init_memory_port_stream): New function
4926 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4927 function.
4928 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4929 Return scm_from_uint (0).
4930 (gdbscm_set_memory_port_read_buffer_size_x)
4931 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4932 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4933 Return scm_from_uint (0).
4934 (gdbscm_set_memory_port_write_buffer_size_x)
4935 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4936 * configure.ac (try_guile_versions): Add "guile-2.2".
4937 * configure: Regenerate.
4938 * NEWS: Add entry.
4939
4940 2020-07-18 Tom Tromey <tom@tromey.com>
4941
4942 * linux-nat.c (linux_multi_process): Remove.
4943 (linux_nat_target::supports_multi_process): Return true.
4944
4945 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4948 (riscv_lookup_target_description): Return pointer out of
4949 unique_ptr.
4950 * target-descriptions.c (allocate_target_description): Add
4951 comment.
4952 (target_desc_deleter::operator()): Likewise.
4953 * target-descriptions.h (struct target_desc_deleter): Moved to
4954 gdbsupport/tdesc.h.
4955 (target_desc_up): Likewise.
4956
4957 2020-07-17 Tom Tromey <tromey@adacore.com>
4958
4959 * linux-nat.c (linux_nat_target::supports_non_stop)
4960 (linux_nat_target::always_non_stop_p): Use "true".
4961 (linux_nat_target::supports_disable_randomization): Use "true" and
4962 "false".
4963
4964 2020-07-16 Caroline Tice <cmtice@google.com>
4965
4966 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4967 (RNGLIST_HEADER_SIZE64): New constant definition.
4968 (struct dwop_section_names): Add rnglists_dwo.
4969 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4970 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4971 (struct dwo_sections): Add rnglists field.
4972 (read_attribut_reprocess): Add tag parameter.
4973 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4974 (cu_debug_rnglists_section): New function (decl & definition).
4975 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4976 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4977 die whose range is being checked; get rnglist section from
4978 cu_debug_rnglists_section, to get from either objfile or dwo file as
4979 appropriate. Add cases for DW_RLE_base_addressx,
4980 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4981 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4982 test inside if-condition and updating complaint message.
4983 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4984 dwarf2_rnglists_process.
4985 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4986 dwarf2_ranges_process.
4987 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4988 need_ranges_base and update comment appropriately. Also pass die tag
4989 to dwarf2_ranges_read.
4990 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4991 need_ranges_base and update comment appropriately. Also pass die tag
4992 to dwarf2_ranges_process.
4993 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4994 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4995 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4996 need_ranges_base and update comment appropriately. Also pass die tag
4997 to read_attribute_reprocess and dwarf2_ranges_read.
4998 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4999 and update function comment appropriately.
5000 (read_loclist_index): Call read_loclists_rnglists_header instead of
5001 read_loclist_header.
5002 (read_rnglist_index): New function.
5003 (read_attribute_reprocess): Add tag parameter. Add code for
5004 DW_FORM_rnglistx, passing tag to read_rnglist_index.
5005 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
5006
5007 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
5010 being resolved.
5011
5012 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * arch-utils.c (show_architecture): Update formatting of messages.
5015
5016 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5017
5018 * gdbtypes.h (struct type) <bounds>: Handle array and string
5019 types.
5020 * ada-lang.c (assign_aggregate): Use type::bounds on
5021 array/string type.
5022 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
5023 * c-varobj.c (c_number_of_children): Likewise.
5024 (c_describe_child): Likewise.
5025 * eval.c (evaluate_subexp_for_sizeof): Likewise.
5026 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
5027 (f_type_print_base): Likewise.
5028 * f-valprint.c (f77_array_offset_tbl): Likewise.
5029 (f77_get_upperbound): Likewise.
5030 (f77_print_array_1): Likewise.
5031 * guile/scm-type.c (gdbscm_type_range): Likewise.
5032 * m2-typeprint.c (m2_array): Likewise.
5033 (m2_is_long_set_of_type): Likewise.
5034 * m2-valprint.c (get_long_set_bounds): Likewise.
5035 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5036 * python/py-type.c (typy_range): Likewise.
5037 * rust-lang.c (rust_internal_print_type): Likewise.
5038 * type-stack.c (type_stack::follow_types): Likewise.
5039 * valarith.c (value_subscripted_rvalue): Likewise.
5040 * valops.c (value_cast): Likewise.
5041
5042 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
5045 callers to use the equivalent accessor methods.
5046
5047 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
5050 (struct type) <bit_stride>: New method.
5051 (TYPE_BIT_STRIDE): Remove.
5052 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
5053
5054 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
5057 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
5058 callers to use the equivalent accessor methods instead.
5059
5060 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
5063 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
5064 callers to use the equivalent accessor methods instead.
5065
5066 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
5069 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
5070 to use dynamic_prop::kind.
5071
5072 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
5075 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
5076 to get the bound property's kind and check against
5077 PROP_UNDEFINED.
5078
5079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
5082 all callers to use type::range_bounds followed by
5083 dynamic_prop::{low,high}.
5084
5085 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5086
5087 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
5088 const_val, set_const_val, baton, set_locexpr, set_loclist,
5089 set_addr_offset, variant_parts, set_variant_parts,
5090 original_type, set_original_type>: New methods.
5091 <kind>: Rename to...
5092 <m_kind>: ... this. Update all users to use the new methods
5093 instead.
5094 <data>: Rename to...
5095 <m_data>: ... this. Update all users to use the new methods
5096 instead.
5097
5098 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * gdbtypes.c (get_discrete_bounds): Return failure if
5101 the range type's bounds are not both defined and constant
5102 values.
5103 (get_array_bounds): Update comment. Remove undefined bound check.
5104
5105 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5106
5107 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5108 the type::bounds method directly.
5109
5110 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5113 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5114 are used to set the range type's bounds to use set_bounds.
5115
5116 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5117
5118 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5119
5120 2020-07-10 Pedro Alves <pedro@palves.net>
5121
5122 * gdbthread.h (inferior_ref): Define.
5123 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5124 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5125 * thread.c
5126 (scoped_restore_current_thread::restore):
5127 Adjust to gdb::ref_ptr.
5128 (scoped_restore_current_thread::~scoped_restore_current_thread):
5129 Remove manual decref handling.
5130 (scoped_restore_current_thread::scoped_restore_current_thread):
5131 Adjust to use
5132 inferior_ref::new_reference/thread_info_ref::new_reference.
5133 Incref the thread before calling get_frame_id instead of after.
5134 Let TARGET_CLOSE_ERROR propagate.
5135
5136 2020-07-10 Pedro Alves <pedro@palves.net>
5137
5138 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5139 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5140 NOT_AVAILABLE_ERROR.
5141 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5142 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5143
5144 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5145 Pedro Alves <pedro@palves.net>
5146
5147 PR gdb/26199
5148 * infrun.c (threads_are_resumed_pending_p): Delete.
5149 (do_target_wait): Remove threads_are_executing and
5150 threads_are_resumed_pending_p checks from the inferior_matches
5151 lambda. Update comments.
5152
5153 2020-07-10 Pedro Alves <pedro@palves.net>
5154
5155 PR gdb/26199
5156 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5157 executing threads.
5158
5159 2020-07-10 Pedro Alves <pedro@palves.net>
5160
5161 PR gdb/26199
5162 * infrun.c (handle_no_resumed): Handle multiple targets.
5163
5164 2020-07-10 Pedro Alves <pedro@palves.net>
5165
5166 PR gdb/26199
5167 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5168 target_is_async_p.
5169
5170 2020-07-10 Pedro Alves <pedro@palves.net>
5171
5172 PR gdb/26199
5173 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5174 threads, not all threads.
5175
5176 2020-07-10 Pedro Alves <pedro@palves.net>
5177
5178 PR gdb/26199
5179 * remote.c (remote_target::open_1): Pass remote target pointer as
5180 data to create_async_event_handler.
5181 (remote_async_inferior_event_handler): Mark async event handler
5182 before returning if the remote target still has either pending
5183 events or unacknowledged notifications.
5184
5185 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5186
5187 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5188 declaration.
5189 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5190 function.
5191
5192 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5193
5194 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5195 inferior_ptid.
5196
5197 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5198
5199 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5200 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5201 AT_FREEBSD_PS_STRINGS.
5202
5203 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5204
5205 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5206 of debugfile path on Windows.
5207
5208 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5209
5210 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5211 argument to 'data'.
5212
5213 2020-07-08 Tom Tromey <tromey@adacore.com>
5214
5215 * ada-lang.c (ada_exception_message_1): Use read_memory.
5216
5217 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 PR python/22748
5220 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5221 special handling for inline frames.
5222 * findvar.c (value_of_register_lazy): Skip inline frames when
5223 creating lazy register values.
5224 * frame.c (frame_id_computed_p): Delete definition.
5225 * frame.h (frame_id_computed_p): Delete declaration.
5226
5227 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * NEWS: Mention additions to Python API.
5230 * python/py-arch.c (archpy_register_groups): New function.
5231 (arch_object_methods): Add 'register_groups' method.
5232 * python/py-registers.c (reggroup_iterator_object): New struct.
5233 (reggroup_object): New struct.
5234 (gdbpy_new_reggroup): New function.
5235 (gdbpy_reggroup_to_string): New function.
5236 (gdbpy_reggroup_name): New function.
5237 (gdbpy_reggroup_iter): New function.
5238 (gdbpy_reggroup_iter_next): New function.
5239 (gdbpy_new_reggroup_iterator): New function
5240 (gdbpy_initialize_registers): Register new types.
5241 (reggroup_iterator_object_type): Define new Python type.
5242 (gdbpy_reggroup_getset): New static global.
5243 (reggroup_object_type): Define new Python type.
5244 * python/python-internal.h
5245
5246 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5249 * python/py-arch.c (archpy_registers): New function.
5250 (arch_object_methods): Add 'registers' method.
5251 * python/py-registers.c: New file.
5252 * python/python-internal.h
5253 (gdbpy_new_register_descriptor_iterator): Declare.
5254 (gdbpy_initialize_registers): Declare.
5255 * python/python.c (do_start_initialization): Call
5256 gdbpy_initialize_registers.
5257 * NEWS: Mention additions to the Python API.
5258
5259 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * NEWS: Mention new Python API method.
5262 * python/py-unwind.c (pending_framepy_architecture): New function.
5263 (pending_frame_object_methods): Add architecture method.
5264
5265 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * gdbarch.c: Regenerate.
5268 * gdbarch.h: Regenerate.
5269 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5270 (gdbarch_data): Use internal_error for the case where
5271 deprecated_set_gdbarch_data was originally needed.
5272 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5273 and use passed in obstack.
5274 (libunwind_frame_set_descr): Should no longer get back NULL from
5275 gdbarch_data.
5276 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5277 type.
5278 * user-regs.c (user_regs_init): Update parameters, and use passed
5279 in obstack.
5280 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5281 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5282
5283 2020-07-06 Tom de Vries <tdevries@suse.de>
5284
5285 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5286 End-Of-Sequence in lte_is_less_than.
5287 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5288 "gdb: Don't reorder line table entries too much when sorting".
5289
5290 2020-07-06 Tom de Vries <tdevries@suse.de>
5291
5292 PR tui/26205
5293 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5294
5295 2020-07-05 Tom de Vries <tdevries@suse.de>
5296
5297 PR build/26187
5298 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5299 std::uncaught_exceptions instead of deprecated
5300 std::uncaught_exception.
5301
5302 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5303
5304 * macroexp.h (macro_stringify): Return
5305 gdb::unique_xmalloc_ptr<char>.
5306 * macroexp.c (macro_stringify): Likewise.
5307 * macrotab.c (fixup_definition): Update.
5308
5309 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5312 (lex_one_token): Update.
5313 * macroexp.c (struct macro_buffer) <release>: Return
5314 gdb::unique_xmalloc_ptr<char>.
5315 (macro_stringify): Update.
5316 (macro_expand): Update.
5317 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5318 * macroexp.h (macro_expand_next): Likewise.
5319
5320 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5321
5322 * macroexp.h (macro_lookup_ftype): Remove.
5323 (macro_expand, macro_expand_once, macro_expand_next): Remove
5324 lookup function parameters, add scope parameter.
5325 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5326 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5327 * macroscope.h (standard_macro_lookup): Change parameter type
5328 to macro_scope.
5329 * macroscope.c (standard_macro_lookup): Likewise.
5330 * c-exp.y (lex_one_token): Update.
5331 * macrocmd.c (macro_expand_command): Likewise.
5332 (macro_expand_once_command): Likewise.
5333
5334 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5335
5336 * inf-loop.c (inferior_event_handler): Remove client_data param.
5337 * inf-loop.h (inferior_event_handler): Likewise.
5338 * infcmd.c (step_1): Adjust.
5339 * infrun.c (proceed): Adjust.
5340 (fetch_inferior_event): Remove client_data param.
5341 (infrun_async_inferior_event_handler): Adjust.
5342 * infrun.h (fetch_inferior_event): Remove `void *` param.
5343 * linux-nat.c (handle_target_event): Adjust.
5344 * record-btrace.c (record_btrace_handle_async_inferior_event):
5345 Adjust.
5346 * record-full.c (record_full_async_inferior_event_handler):
5347 Adjust.
5348 * remote.c (remote_async_inferior_event_handler): Adjust.
5349
5350 2020-07-01 Tom Tromey <tom@tromey.com>
5351
5352 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5353 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5354
5355 2020-07-01 Tom Tromey <tom@tromey.com>
5356
5357 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5358 tui_gen_win_info.
5359 (tui_win_info::make_window): Merge with
5360 tui_gen_win_info::make_window.
5361 (tui_win_info::make_visible): Move from tui_gen_win_info.
5362 * tui/tui-win.c (tui_win_info::max_width): Move from
5363 tui_gen_win_info.
5364 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5365 type.
5366 <window_factory>: Likewise.
5367 * tui/tui-layout.c (tui_win_info::resize): Move from
5368 tui_gen_win_info.
5369 (make_standard_window): Change return type.
5370 (get_locator_window, tui_get_window_by_name): Likewise.
5371 (tui_layout_window::apply): Remove a cast.
5372 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5373 (struct tui_win_info): Merge with tui_gen_win_info.
5374 (struct tui_gen_win_info): Remove.
5375
5376 2020-07-01 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-stack.h (struct tui_locator_window): Derive from
5379 tui_win_info.
5380 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5381 <can_box>: New method.
5382
5383 2020-07-01 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5386
5387 2020-07-01 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-regs.c (tui_data_window::display_registers_from)
5390 (tui_data_window::display_registers_from)
5391 (tui_data_window::first_data_item_displayed)
5392 (tui_data_window::delete_data_content_windows): Update.
5393 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5394 Remove.
5395 (tui_data_window::check_register_values): Update.
5396 (tui_data_item_window::rerender): Add parameters. Update.
5397 (tui_data_item_window::refresh_window): Remove.
5398 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5399 virtual.
5400 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5401 tui_gen_win_info.
5402 <refresh_window, max_height, min_height>: Remove.
5403 <rerender>: Add parameters.
5404 <x, y, visible>: New members.
5405 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5406 <m_item_width>: New member.
5407
5408 2020-07-01 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-regs.c (tui_data_window::show_register_group)
5411 (tui_data_window::check_register_values): Update.
5412 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5413 from item_no.
5414
5415 2020-07-01 Tom Tromey <tom@tromey.com>
5416
5417 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5418 useless "if".
5419
5420 2020-07-01 Tom Tromey <tom@tromey.com>
5421
5422 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5423 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5424
5425 2020-07-01 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5428 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5429 (struct tui_line_or_address): Move from tui-data.h.
5430 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5431 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5432 (tui_cmd_window, tui_source_window_base, tui_source_window)
5433 (tui_disasm_window): Don't declare.
5434 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5435 to tui-winsource.h.
5436 (SINGLE_KEY): Move to tui-stack.c.
5437
5438 2020-07-01 Tom Tromey <tom@tromey.com>
5439
5440 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5441 std::string.
5442 * tui/tui-regs.c (class tab_expansion_file): New.
5443 (tab_expansion_file::write): New method.
5444 (tui_register_format): Change return type. Use
5445 tab_expansion_file.
5446 (tui_get_register, tui_data_window::display_registers_from)
5447 (tui_data_item_window::rerender): Update.
5448 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5449 * tui/tui-io.c (tui_expand_tabs): Remove.
5450
5451 2020-07-01 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5454
5455 2020-07-01 Fangrui Song <maskray@google.com>
5456
5457 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5458
5459 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5460
5461 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5462 forms for DW_AT_associated and DW_AT_allocated attributes,
5463 which is already checked in function attr_to_dynamic_prop.
5464
5465 2020-06-30 Tom Tromey <tromey@adacore.com>
5466
5467 * dwarf2/read.c (quirk_rust_enum): Correctly call
5468 alloc_rust_variant for default-less enum.
5469
5470 2020-06-30 Tom Tromey <tromey@adacore.com>
5471
5472 PR build/26183:
5473 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5474 gdb::to_string.
5475
5476 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5479 * gdbarch.h: Re-generate.
5480
5481 2020-06-28 Tom Tromey <tom@tromey.com>
5482
5483 * command.h (cmd_types): Remove.
5484 (cmd_type): Don't declare.
5485 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5486 typedef.
5487 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5488 * cli/cli-decode.c (cmd_type): Remove.
5489
5490 2020-06-27 Pedro Alves <palves@redhat.com>
5491
5492 * fork-child.c (prefork_hook): Adjust.
5493 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5494 Delete.
5495 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5496 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5497 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5498 Remove declarations.
5499 (struct inferior) <set_tty, tty>: New methods.
5500 (struct inferior) <terminal>: Rename to ...
5501 (struct inferior) <m_terminal>: ... this and make private.
5502 * main.c (captured_main_1): Adjust.
5503 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5504 (mi_cmd_inferior_tty_show): Adjust.
5505 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5506 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5507
5508 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5509
5510 * configure.ac: Add --enable-libctf: handle --disable-static
5511 properly.
5512 * acinclude.m4: sinclude ../config/enable.m4.
5513 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5514 (LIBCTF): Substitute in.
5515 (CTF_DEPS): New, likewise.
5516 (CLIBS): libctf needs symbols from libbfd: move earlier.
5517 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5518 flags.
5519 * ctfread.c: Surround in ENABLE_LIBCTF.
5520 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5521 * configure: Regenerate.
5522 * config.in: Likewise.
5523
5524 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5527
5528 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5529
5530 * inferior.h (struct inferior) <terminal>: Change type to
5531 gdb::unique_xmalloc_ptr<char>.
5532 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5533 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5534 field, adjust to unique pointer.
5535 (get_inferior_io_terminal): Adjust to unique pointer.
5536
5537 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5538
5539 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5540 registers, not just the known core set of registers.
5541
5542 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5543
5544 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5545 fflags, frm, and fcsr registers.
5546 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5547 restore groups.
5548 (riscv_tdesc_unknown_reg): New function.
5549 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5550 tdesc_use_registers.
5551 * riscv-tdep.h (struct gdbarch_tdep): Add
5552 unknown_csrs_first_regnum, unknown_csrs_count,
5553 duplicate_fflags_regnum, duplicate_frm_regnum, and
5554 duplicate_fcsr_regnum fields.
5555
5556 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5557
5558 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5559 callback, use the callback (when not null) to help number unknown
5560 registers.
5561 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5562 (tdesc_use_registers): Add extra parameter to declaration.
5563
5564 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5565
5566 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5567 in the file.
5568 (class riscv_pending_register_alias): Likewise.
5569 (riscv_register_feature::register_info): Change 'required_p' field
5570 to 'required', and change its type. Add 'check' member function.
5571 (riscv_register_feature::register_info::check): Define new member
5572 function.
5573 (riscv_xreg_feature): Change initialisation of 'required' field.
5574 (riscv_freg_feature): Likewise.
5575 (riscv_virtual_feature): Likewise.
5576 (riscv_csr_feature): Likewise.
5577 (riscv_check_tdesc_feature): Take extra parameter, the csr
5578 tdesc_feature, rewrite the function to use the new
5579 riscv_register_feature::register_info::check function.
5580 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5581
5582 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5583
5584 * features/Makefile: Remove all references to the deleted files
5585 below.
5586 * features/riscv/32bit-csr.c: Deleted.
5587 * features/riscv/32bit-csr.xml: Deleted.
5588 * features/riscv/64bit-csr.c: Deleted.
5589 * features/riscv/64bit-csr.xml: Deleted.
5590 * features/riscv/rebuild-csr-xml.sh: Deleted.
5591
5592 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5595 whitespace error for declaration of names member variable.
5596 (struct riscv_register_feature): Add new prefer_first_name member
5597 variable, and fix whitespace error in declaration of registers.
5598 (riscv_xreg_feature): Initialize prefer_first_name field.
5599 (riscv_freg_feature): Likewise.
5600 (riscv_virtual_feature): Likewise.
5601 (riscv_csr_feature): Likewise.
5602 (riscv_register_name): Expand on comments. Remove register name
5603 modifications for CSR and virtual registers.
5604
5605 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5606
5607 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5608 errors.
5609
5610 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5611
5612 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5613 riscv-opc.h.
5614 (class riscv_pending_register_alias): New class.
5615 (riscv_check_tdesc_feature): Take vector of pending aliases and
5616 populate it as appropriate.
5617 (riscv_setup_register_aliases): Delete.
5618 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5619 to riscv_check_tdesc_feature in all cases. Use the vector to
5620 create the register aliases.
5621
5622 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5623
5624 * sol2-tdep.c (sol2_static_transform_name): Remove.
5625 (sol2_init_abi): Don't register it.
5626 * gdbarch.sh (static_transform_name): Remove.
5627 * gdbarch.c, gdbarch.h: Regenerate.
5628
5629 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5630 gdbarch_static_transform_name.
5631 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5632 * stabsread.c (define_symbol) <'X'>: Remove.
5633 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5634 handling.
5635 <'V'>: Likewise.
5636 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5637 <'S'>: Remove call to gdbarch_static_transform_name.
5638
5639 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5640
5641 * procfs.c (procfs_pre_trace): New function.
5642 (procfs_target::create_inferior): Pass it to fork_inferior.
5643
5644 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5645
5646 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5647 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5648 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5649 sol2-tdep.o, sparc-sol2-tdep.o.
5650 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5651 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5652 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5653 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5654
5655 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5656
5657 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5658 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5659 Call sol2_init_abi.
5660 Remove calls to set_gdbarch_skip_solib_resolver,
5661 set_gdbarch_core_pid_to_str.
5662 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5663 (i386_sol2_static_transform_name): Remove.
5664 (i386_sol2_init_abi): Call sol2_init_abi.
5665 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5666 set_gdbarch_static_transform_name,
5667 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5668 Use sol2_sigtramp_p.
5669 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5670 (sol2_sigtramp_p): New function.
5671 (sol2_static_transform_name): New function.
5672 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5673 (sol2_init_abi): New function.
5674 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5675 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5676 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5677 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5678 (sparc_sol2_static_transform_name): Remove.
5679 (sparc32_sol2_init_abi): Call sol2_init_abi.
5680 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5681 set_gdbarch_static_transform_name,
5682 set_gdbarch_skip_solib_resolver,
5683 set_gdbarch_core_pid_to_str.
5684 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5685 (sparc_sol2_static_transform_name): Remove
5686 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5687 call sol2_sigtramp_p.
5688 (sparc64_sol2_init_abi): Call sol2_init_abi.
5689 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5690 set_gdbarch_static_transform_name,
5691 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5692
5693 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5694
5695 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5696 * exec.c (validate_exec_file): If from_tty, set both
5697 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5698 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5699 and from_tty, unconditionally ask a confirmation.
5700
5701 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * target-descriptions.c (tdesc_architecture_name): Protect against
5704 NULL pointer dereference.
5705 (maint_print_xml_tdesc_cmd): New function.
5706 (_initialize_target_descriptions): Register new 'maint print
5707 xml-tdesc' command and give it the filename completer.
5708 * NEWS: Mention new 'maint print xml-tdesc' command.
5709
5710 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5711
5712 * target-descriptions.c (class tdesc_compatible_info): New class.
5713 (struct target_desc): Change type of compatible vector.
5714 (tdesc_compatible_p): Update for change in type of
5715 target_desc::compatible.
5716 (tdesc_compatible_info_list): New function.
5717 (tdesc_compatible_info_arch_name): New function.
5718 (tdesc_add_compatible): Update for change in type of
5719 target_desc::compatible.
5720 (print_c_tdesc::visit_pre): Likewise.
5721
5722 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5725 whitespace to underscore.
5726 (maint_print_c_tdesc_cmd): Use fake filename for target
5727 descriptions that came from the target.
5728 (_initialize_target_descriptions): Add filename command completion
5729 for 'maint print c-tdesc'.
5730
5731 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5734 lines.
5735
5736 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5739 lines.
5740 (dwarf2_find_location_expression): Likewise.
5741 (call_site_parameter_matches): Likewise.
5742 (dwarf2_compile_expr_to_ax): Likewise.
5743 (disassemble_dwarf_expression): Likewise.
5744 (loclist_describe_location): Likewise.
5745
5746 2020-06-23 Pedro Alves <palves@redhat.com>
5747
5748 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5749 progspace-and-thread.h. Include scoped-mock-context.h instead.
5750 (register_to_value_test): Use scoped_mock_context.
5751 * regcache.c: Include "scoped-mock-context.h".
5752 (cooked_read_test): Don't error out if a target is already pushed.
5753 Use scoped_mock_context. Adjust.
5754 * scoped-mock-context.h: New file.
5755
5756 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5759 initializer.
5760 (ada_language::is_string_type_p): New member function.
5761 * c-lang.c (c_language_data): Delete la_is_string_type_p
5762 initializer.
5763 (cplus_language_data): Likewise.
5764 (asm_language_data): Likewise.
5765 (minimal_language_data): Likewise.
5766 * d-lang.c (d_language_data): Likewise.
5767 * f-lang.c (f_is_string_type_p): Delete function, implementation
5768 moved to f_language::is_string_type_p.
5769 (f_language_data): Delete la_is_string_type_p initializer.
5770 (f_language::is_string_type_p): New member function,
5771 implementation from f_is_string_type_p.
5772 * go-lang.c (go_is_string_type_p): Delete function, implementation
5773 moved to go_language::is_string_type_p.
5774 (go_language_data): Delete la_is_string_type_p initializer.
5775 (go_language::is_string_type_p): New member function,
5776 implementation from go_is_string_type_p.
5777 * language.c (language_defn::is_string_type_p): Define new member
5778 function.
5779 (default_is_string_type_p): Make static, add comment copied from
5780 header file.
5781 (unknown_language_data): Delete la_is_string_type_p initializer.
5782 (unknown_language::is_string_type_p): New member function.
5783 (auto_language_data): Delete la_is_string_type_p initializer.
5784 (auto_language::is_string_type_p): New member function.
5785 * language.h (language_data): Delete la_is_string_type_p field.
5786 (language_defn::is_string_type_p): Declare new function.
5787 (default_is_string_type_p): Delete desclaration, move comment to
5788 definition.
5789 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5790 moved to m2_language::is_string_type_p.
5791 (m2_language_data): Delete la_is_string_type_p initializer.
5792 (m2_language::is_string_type_p): New member function,
5793 implementation from m2_is_string_type_p.
5794 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5795 initializer.
5796 * opencl-lang.c (opencl_language_data): Likewise.
5797 * p-lang.c (pascal_is_string_type_p): Delete function,
5798 implementation moved to pascal_language::is_string_type_p.
5799 (pascal_language_data): Delete la_is_string_type_p initializer.
5800 (pascal_language::is_string_type_p): New member function,
5801 implementation from pascal_is_string_type_p.
5802 * rust-lang.c (rust_is_string_type_p): Delete function,
5803 implementation moved to rust_language::is_string_type_p.
5804 (rust_language_data): Delete la_is_string_type_p initializer.
5805 (rust_language::is_string_type_p): New member function,
5806 implementation from rust_is_string_type_p.
5807 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5808 is_string_type_p.
5809
5810 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5811
5812 * ada-lang.c (ada_language_data): Delete la_print_typedef
5813 initializer.
5814 (ada_language::print_typedef): New member function.
5815 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5816 (cplus_language_data): Likewise.
5817 (asm_language_data): Likewise.
5818 (minimal_language_data): Likewise.
5819 * d-lang.c (d_language_data): Likewise.
5820 * f-lang.c (f_language_data): Likewise.
5821 (f_language::print_typedef): New member function.
5822 * go-lang.c (go_language_data): Delete la_print_typedef
5823 initializer.
5824 * language.c (language_defn::print_typedef): Define member
5825 function.
5826 (unknown_language_data): Delete la_print_typedef initializer.
5827 (unknown_language::print_typedef): New member function.
5828 (auto_language_data): Delete la_print_typedef initializer.
5829 (auto_language::print_typedef): New member function.
5830 * language.h (language_data): Delete la_print_typedef field.
5831 (language_defn::print_typedef): Declare new member function.
5832 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5833 (default_print_typedef): Delete declaration.
5834 * m2-lang.c (m2_language_data): Delete la_print_typedef
5835 initializer.
5836 (m2_language::print_typedef): New member function.
5837 * objc-lang.c (objc_language_data): Delete la_print_typedef
5838 initializer.
5839 * opencl-lang.c (opencl_language_data): Likewise.
5840 * p-lang.c (pascal_language_data): Likewise.
5841 (pascal_language::print_typedef): New member function.
5842 * rust-lang.c (rust_print_typedef): Delete function,
5843 implementation moved to rust_language::print_typedef.
5844 (rust_language): Delete la_print_typedef initializer.
5845 (rust_language::print_typedef): New member function,
5846 implementation from rust_print_typedef.
5847 * typeprint.c (default_print_typedef): Delete.
5848
5849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5850
5851 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5852 (ada_language::printstr): New member function.
5853 * c-lang.c (c_language_data): Delete la_printstr initializer.
5854 (cplus_language_data): Likewise.
5855 (asm_language_data): Likewise.
5856 (minimal_language_data): Likewise.
5857 * d-lang.c (d_language_data): Likewise.
5858 * f-lang.c (f_printstr): Rename to f_language::printstr.
5859 (f_language_data): Delete la_printstr initializer.
5860 (f_language::printstr): New member function, implementation from
5861 f_printstr.
5862 * go-lang.c (go_language_data): Delete la_printstr initializer.
5863 * language.c (language_defn::printstr): Define new member
5864 function.
5865 (unk_lang_printstr): Delete.
5866 (unknown_language_data): Delete la_printstr initializer.
5867 (unknown_language::printstr): New member function.
5868 (auto_language_data): Delete la_printstr initializer.
5869 (auto_language::printstr): New member function.
5870 * language.h (language_data): Delete la_printstr field.
5871 (language_defn::printstr): Declare new member function.
5872 (LA_PRINT_STRING): Update call to printstr.
5873 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5874 (m2_language_data): Delete la_printstr initializer.
5875 (m2_language::printstr): New member function, implementation from
5876 m2_printstr.
5877 * objc-lang.c (objc_language_data): Delete la_printstr
5878 initializer.
5879 * opencl-lang.c (opencl_language_data): Likewise.
5880 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5881 (pascal_language_data): Delete la_printstr initializer.
5882 (pascal_language::printstr): New member function, implementation
5883 from pascal_printstr.
5884 * p-lang.h (pascal_printstr): Delete declaration.
5885 * rust-lang.c (rust_printstr): Update header comment.
5886 (rust_language_data): Delete la_printstr initializer.
5887 (rust_language::printstr): New member function.
5888
5889 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5890
5891 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5892 (ada_language::printchar): New member function.
5893 * c-lang.c (c_language_data): Delete la_printchar initializer.
5894 (cplus_language_data): Likewise.
5895 (asm_language_data): Likewise.
5896 (minimal_language_data): Likewise.
5897 * d-lang.c (d_language_data): Likewise.
5898 * f-lang.c (f_printchar): Rename to f_language::printchar.
5899 (f_language_data): Delete la_printchar initializer.
5900 (f_language::printchar): New member function, implementation from
5901 f_printchar.
5902 * go-lang.c (go_language_data): Delete la_printchar initializer.
5903 * language.c (unk_lang_printchar): Delete.
5904 (language_defn::printchar): Define new member function.
5905 (unknown_language_data): Delete la_printchar initializer.
5906 (unknown_language::printchar): New member function.
5907 (auto_language_data): Delete la_printchar initializer.
5908 (auto_language::printchar): New member function.
5909 * language.h (language_data): Delete la_printchar field.
5910 (language_defn::printchar): Declare new member function.
5911 (LA_PRINT_CHAR): Update call to printchar.
5912 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5913 (m2_language::printchar): New member function.
5914 * objc-lang.c (objc_language_data): Delete la_printchar
5915 initializer.
5916 * opencl-lang.c (opencl_language_data): Likewise.
5917 * p-lang.c (pascal_language_data): Delete la_printchar
5918 initializer.
5919 (pascal_language::printchar): New member function.
5920 * rust-lang.c (rust_printchar): Rename to
5921 rust_language::printchar.
5922 (rust_language_data): Delete la_printchar initializer.
5923 (rust_language::printchar): New member function, implementation
5924 from rust_printchar.
5925
5926 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5929 (ada_language_data): Delete la_emitchar initializer.
5930 (ada_language::emitchar): New member function, implementation from
5931 emit_char.
5932 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5933 (cplus_language_data): Likewise.
5934 (asm_language_data): Likewise.
5935 (minimal_language_data): Likewise.
5936 * d-lang.c (d_language_data): Likewise.
5937 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5938 (f_language_data): Delete la_emitchar initializer.
5939 (f_language::emitchar): New member function, implementation from
5940 f_emit_char.
5941 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5942 * language.c (unk_lang_emit_char): Delete.
5943 (language_defn::emitchar): New member function definition.
5944 (unknown_language_data): Delete la_emitchar initializer.
5945 (unknown_language::emitchar): New member function.
5946 (auto_language_data): Delete la_emitchar initializer.
5947 (auto_language::emitchar): New member function.
5948 * language.h (language_data): Delete la_emitchar field.
5949 (language_defn::emitchar): New member field declaration.
5950 (LA_EMIT_CHAR): Update call to emitchar.
5951 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5952 (m2_language_data): Delete la_emitchar initializer.
5953 (m2_language::emitchar): New member function, implementation from
5954 m2_emit_char.
5955 * objc-lang.c (objc_language_data): Delete la_emitchar
5956 initializer.
5957 * opencl-lang.c (opencl_language_data): Likewise.
5958 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5959 (pascal_language_data): Delete la_emitchar initializer.
5960 (pascal_language::emitchar): New member function, implementation
5961 from pascal_emit_char.
5962 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5963 (rust_language_data): Delete la_emitchar initializer.
5964 (rust_language::emitchar): New member function, implementation
5965 from rust_emitchar.
5966
5967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5970 (ada_language_data): Delete la_post_parser initializer.
5971 (ada_language::post_parser): New member function.
5972 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5973 (cplus_language_data): Likewise.
5974 (asm_language_data): Likewise.
5975 (minimal_language_data): Likewise.
5976 * d-lang.c (d_language_data): Likewise.
5977 * f-lang.c (f_language_data): Likewise.
5978 * go-lang.c (go_language_data): Likewise.
5979 * language.c (unknown_language_data): Likewise.
5980 (auto_language_data): Likewise.
5981 * language.h (language_data): Delete la_post_parser field.
5982 (language_defn::post_parser): New member function.
5983 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5984 * objc-lang.c (objc_language_data): Likewise.
5985 * opencl-lang.c (opencl_language_data): Likewise.
5986 * p-lang.c (pascal_language_data): Likewise.
5987 * parse.c (parse_exp_in_context): Update call to post_parser.
5988 (null_post_parser): Delete definition.
5989 * parser-defs.h (null_post_parser): Delete declaration.
5990 * rust-lang.c (rust_language_data): Delete la_post_parser
5991 initializer.
5992
5993 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5994
5995 * ada-lang.c (parse): Rename to ada_language::parser.
5996 (ada_language_data): Delete la_parser initializer.
5997 (ada_language::parser): New member function, implementation from
5998 parse.
5999 * c-lang.c (c_language_data): Delete la_parser initializer.
6000 (cplus_language_data): Likewise.
6001 (asm_language_data): Likewise.
6002 (minimal_language_data): Likewise.
6003 * d-lang.c (d_language_data): Likewise.
6004 (d_language::parser): New member function.
6005 * f-lang.c (f_language_data): Delete la_parser initializer.
6006 (f_language::parser): New member function.
6007 * go-lang.c (go_language_data): Delete la_parser initializer.
6008 (go_language::parser): New member function.
6009 * language.c (unk_lang_parser): Delete.
6010 (language_defn::parser): Define new member function.
6011 (unknown_language_data): Delete la_parser initializer.
6012 (unknown_language::parser): New member function.
6013 (auto_language_data): Delete la_parser initializer.
6014 (auto_language::parser): New member function.
6015 * language.h (language_data): Delete la_parser field.
6016 (language_defn::parser): Declare new member function.
6017 * m2-lang.c (m2_language_data): Delete la_parser initializer.
6018 (m2_language::parser): New member function.
6019 * objc-lang.c (objc_language_data): Delete la_parser initializer.
6020 * opencl-lang.c (opencl_language_data): Likewise.
6021 * p-lang.c (pascal_language_data): Likewise.
6022 (pascal_language::parser): New member function.
6023 * parse.c (parse_exp_in_context): Update call to parser.
6024 * rust-lang.c (rust_language_data): Delete la_parser initializer.
6025 (rust_language::parser): New member function.
6026
6027 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6028
6029 * top.c (print_gdb_configuration): Print --with-python-libdir
6030 configuration value.
6031
6032 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6033
6034 * NEWS: Mention change to the alias command.
6035
6036 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6037
6038 * cli/cli-cmds.c (lookup_cmd_for_default_args)
6039 (alias_command_completer)
6040 (make_alias_options_def_group): New functions.
6041 (alias_opts, alias_option_defs): New struct and array.
6042 (alias_usage_error): Update usage.
6043 (alias_command): Handles optional DEFAULT-ARGS... arguments.
6044 Use option framework.
6045 (_initialize_cli_cmds): Update alias command help.
6046 Update aliases command help.
6047 (show_user):
6048 Add NULL for new default_args lookup_cmd argument.
6049 (valid_command_p): Rename to validate_aliased_command.
6050 Add NULL for new default_args lookup_cmd argument. Verify that the
6051 aliased_command has no default args.
6052 * cli/cli-decode.c (help_cmd): Show aliases definitions.
6053 (lookup_cmd_1, lookup_cmd): New argument default_args.
6054 (add_alias_cmd):
6055 Add NULL for new default_args lookup_cmd argument.
6056 (print_help_for_command): Show default args under the layout
6057 alias some_alias = some_aliased_cmd some_alias_default_arg.
6058 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
6059 xfree default_args in destructor.
6060 * cli/cli-script.c (process_next_line, do_define_command):
6061 Add NULL for new default_args lookup_cmd argument.
6062 * command.h: Declare new default_args argument in lookup_cmd
6063 and lookup_cmd_1.
6064 * completer.c (complete_line_internal_1):
6065 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6066 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
6067 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
6068 Likewise.
6069 * infcmd.c (_initialize_infcmd): Likewise.
6070 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
6071 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
6072 * python/py-param.c (add_setshow_generic): Likewise.
6073 * remote.c (_initialize_remote): Likewise.
6074 * top.c (execute_command): Prepend default_args if command has some.
6075 (set_verbose):
6076 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6077 * tracepoint.c (validate_actionline, encode_actions_1):
6078 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
6079
6080 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6081
6082 * jit.c (jit_read_descriptor): Use bool as the return type.
6083 (jit_breakpoint_re_set_internal): Use bool as the return type.
6084 Invert the return value logic; return true if the jit breakpoint
6085 has been successfully initialized.
6086 (jit_inferior_init): Update the call to
6087 jit_breakpoint_re_set_internal.
6088
6089 2020-06-22 Pedro Alves <palves@redhat.com>
6090
6091 PR gdb/25939
6092 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
6093 Use the current inferior instead. Don't return
6094 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
6095 wait again.
6096 * sol-thread.c (sol_thread_target::wait): Don't reference
6097 inferior_ptid.
6098 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
6099 (sol_update_thread_list_callback): Use the current inferior's pid
6100 instead of inferior_ptid.
6101
6102 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6103
6104 * procfs.c: Cleanup many comments.
6105
6106 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6107 (AFTER_WATCHFLAG): Replace by value.
6108
6109 (MAIN_PROC_NAME_FORMAT): Inline ...
6110 (create_procinfo): ... here.
6111
6112 (procfs_debug_inferior): Remove SYS_exec handling.
6113 (syscall_is_exec): Likewise.
6114 (procfs_set_exec_trap): Likewise.
6115
6116 (syscall_is_lwp_exit): Inline in callers.
6117 (syscall_is_exit): Likewise.
6118 (syscall_is_exec): Likewise.
6119 (syscall_is_lwp_create): Likewise.
6120
6121 (invalidate_cache): Remove #if 0 code.
6122
6123 (make_signal_thread_runnable): Remove.
6124 (procfs_target::resume): Remove #if 0 code.
6125
6126 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6127
6128 PR gdb/25939
6129 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6130 call ...
6131 (procfs_target::create_inferior): ... here.
6132
6133 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6134
6135 * exec.c (validate_exec_file): Ensure the build-id is up to
6136 date by calling reopen_exec_file (that checks file timestamp
6137 to decide to re-read the file).
6138
6139 2020-06-18 Pedro Alves <palves@redhat.com>
6140
6141 PR gdb/25412
6142 * gdbthread.h (delete_thread, delete_thread_silent)
6143 (find_thread_ptid): Update comments.
6144 * thread.c (current_thread_): New global.
6145 (is_current_thread): Move higher, and reimplement.
6146 (inferior_thread): Reimplement.
6147 (set_thread_exited): Use bool. Add assertions.
6148 (add_thread_silent): Simplify thread-reuse handling by always
6149 calling delete_thread.
6150 (delete_thread): Remove intro comment.
6151 (find_thread_ptid): Skip exited threads.
6152 (switch_to_thread_no_regs): Write to current_thread_.
6153 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6154 INFERIOR_PTID. Clear current_thread_.
6155
6156 2020-06-18 Pedro Alves <palves@redhat.com>
6157
6158 * aix-thread.c (pd_update): Use switch_to_thread.
6159
6160 2020-06-18 Pedro Alves <palves@redhat.com>
6161
6162 * ravenscar-thread.c (ravenscar_thread_target): Update.
6163 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6164 (ravenscar_thread_target::add_active_thread): ... this. Don't
6165 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6166 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6167
6168 2020-06-18 Pedro Alves <palves@redhat.com>
6169
6170 * nat/windows-nat.c (current_windows_thread): Remove.
6171 * nat/windows-nat.h (current_windows_thread): Remove.
6172 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6173 Adjust.
6174 (display_selectors): Adjust to fetch the current
6175 windows_thread_info based on inferior_ptid.
6176 (fake_create_process): No longer write to current_windows_thread.
6177 (windows_nat_target::get_windows_debug_event):
6178 Don't set inferior_ptid or current_windows_thread.
6179 (windows_nat_target::wait): Adjust to not rely on
6180 current_windows_thread.
6181 (do_initial_windows_stuff): Now a method of windows_nat_target.
6182 Switch to the last_ptid thread.
6183 (windows_nat_target::attach): Adjust.
6184 (windows_nat_target::detach): Use switch_to_no_thread instead of
6185 writing to inferior_ptid directly.
6186 (windows_nat_target::create_inferior): Adjust.
6187
6188 2020-06-18 Pedro Alves <palves@redhat.com>
6189
6190 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6191
6192 2020-06-18 Pedro Alves <palves@redhat.com>
6193
6194 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6195 after creating it, instead of writing to inferior_ptid. Don't
6196 write to inferior_ptid.
6197
6198 2020-06-18 Pedro Alves <palves@redhat.com>
6199
6200 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6201
6202 2020-06-18 Pedro Alves <palves@redhat.com>
6203
6204 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6205 it, instead of writing to inferior_ptid.
6206
6207 2020-06-18 Pedro Alves <palves@redhat.com>
6208
6209 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6210 to inferior_ptid.
6211
6212 2020-06-18 Pedro Alves <palves@redhat.com>
6213
6214 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6215 instead of writing to inferior_ptid directly.
6216
6217 2020-06-18 Pedro Alves <palves@redhat.com>
6218
6219 * corelow.c (core_target::close): Use switch_to_no_thread instead
6220 of writing to inferior_ptid directly.
6221 (add_to_thread_list, core_target_open): Use switch_to_thread
6222 instead of writing to inferior_ptid directly.
6223
6224 2020-06-18 Pedro Alves <palves@redhat.com>
6225
6226 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6227 inferior_ptid.
6228 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6229 inferior_ptid.
6230 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6231 inferior_ptid directly.
6232 (darwin_nat_target::init_thread_list): Switch to thread, instead
6233 of writing to inferior_ptid.
6234 (darwin_nat_target::attach): Don't write to inferior_ptid.
6235 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6236
6237 2020-06-18 Pedro Alves <palves@redhat.com>
6238
6239 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6240 thread.
6241 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6242 Instead use switch_to_thread.
6243 (gnu_nat_target::detach): Use switch_to_no_thread
6244 instead of writing to inferior_ptid directly. Used passed-in
6245 inferior instead of looking up the inferior by pid.
6246
6247 2020-06-18 Pedro Alves <palves@redhat.com>
6248
6249 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6250 inferior_ptid.
6251
6252 2020-06-18 Pedro Alves <palves@redhat.com>
6253
6254 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6255 inferior_ptid.
6256 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6257 thread.
6258 (nto_procfs_target::detach): Avoid referencing
6259 inferior_ptid. Use switch_to_no_thread instead of writing to
6260 inferior_ptid directly.
6261 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6262 instead of writing to inferior_ptid directly.
6263 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6264 to thread.
6265
6266 2020-06-18 Pedro Alves <palves@redhat.com>
6267
6268 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6269 after creating it, instead of writing to inferior_ptid.
6270 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6271 to inferior_ptid directly.
6272 (gdbsim_target::wait): Don't write to inferior_ptid.
6273
6274 2020-06-18 Pedro Alves <palves@redhat.com>
6275
6276 * remote.c (remote_target::remote_notice_new_inferior): Use
6277 switch_to_thread instead of writing to inferior_ptid directly.
6278 (remote_target::add_current_inferior_and_thread): Use
6279 switch_to_no_thread instead of writing to inferior_ptid directly.
6280 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6281 and switch_to_thread instead of using set_current_inferior or
6282 writing to inferior_ptid directly.
6283
6284 2020-06-18 Pedro Alves <palves@redhat.com>
6285
6286 * tracectf.c (ctf_target_open): Switch to added thread instead of
6287 writing to inferior_ptid directly.
6288 (ctf_target::close): Use switch_to_no_thread instead of writing to
6289 inferior_ptid directly.
6290
6291 2020-06-18 Pedro Alves <palves@redhat.com>
6292
6293 * tracefile-tfile.c (tfile_target_open): Don't write to
6294 inferior_ptid directly, instead switch to added thread.
6295 (tfile_target::close): Use switch_to_no_thread instead of writing
6296 to inferior_ptid directly.
6297
6298 2020-06-18 Pedro Alves <palves@redhat.com>
6299
6300 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6301 (procfs_target::detach): Use switch_to_no_thread
6302 instead of writing to inferior_ptid directly.
6303 (do_attach): Change return type to void. Switch to the added
6304 thread.
6305 (procfs_target::create_inferior): Switch to the added thread.
6306 (procfs_do_thread_registers): Don't write to inferior_ptid.
6307
6308 2020-06-18 Pedro Alves <palves@redhat.com>
6309
6310 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6311 of writing to inferior_ptid.
6312 (scoped_restore_exited_inferior): Delete.
6313 (handle_vfork_child_exec_or_exit): Simplify using
6314 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6315 instead of writing to inferior_ptid.
6316 (THREAD_STOPPED_BY): Delete.
6317 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6318 (thread_stopped_by_hw_breakpoint): Delete.
6319 (save_waitstatus): Use
6320 scoped_restore_current_thread+switch_to_thread, and call
6321 target_stopped_by_watchpoint instead of
6322 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6323 instead of thread_stopped_by_sw_breakpoint, and
6324 target_stopped_by_hw_breakpoint instead of
6325 thread_stopped_by_hw_breakpoint.
6326 (handle_inferior_event)
6327 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6328 inferior_ptid directly, nor
6329 set_current_inferior/set_current_program_space. Use
6330 switch_to_thread / switch_to_inferior_no_thread instead.
6331
6332 2020-06-18 Pedro Alves <palves@redhat.com>
6333
6334 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6335 instead of writing to inferior_ptid.
6336
6337 2020-06-18 Pedro Alves <palves@redhat.com>
6338
6339 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6340 added thread.
6341 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6342 to the added thread.
6343 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6344 instead of writing to inferior_ptid.
6345
6346 2020-06-18 Pedro Alves <palves@redhat.com>
6347
6348 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6349 (register_to_value_test): Mock a program_space too. Heap-allocate
6350 the address space. Don't write to inferior_ptid. Use
6351 switch_to_thread instead.
6352
6353 2020-06-18 Pedro Alves <palves@redhat.com>
6354
6355 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6356 Delete.
6357 (find_signalled_thread()): New, factored out from
6358 linux_make_corefile_notes and adjusted to handle exited threads.
6359 (linux_make_corefile_notes): Adjust to use the new
6360 find_signalled_thread.
6361
6362 2020-06-18 Pedro Alves <palves@redhat.com>
6363
6364 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6365 of saving/restoring inferior_ptid.
6366
6367 2020-06-17 Tom Tromey <tom@tromey.com>
6368
6369 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6370 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6371 declare.
6372 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6373
6374 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6375
6376 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6377 of partial symtabs.
6378
6379 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6380
6381 * regformats/reg-arm.dat: Remove.
6382 * regformats/reg-bfin.dat: Remove.
6383 * regformats/reg-cris.dat: Remove.
6384 * regformats/reg-crisv32.dat: Remove.
6385 * regformats/reg-m32r.dat: Remove.
6386 * regformats/reg-tilegx.dat: Remove.
6387 * regformats/reg-tilegx32.dat: Remove.
6388
6389 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6390
6391 * features/Makefile (WHICH): Remove arm files.
6392 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6393 * regformats/arm/arm-with-neon.dat: Remove.
6394 * regformats/arm/arm-with-vfpv2.dat: Remove.
6395 * regformats/arm/arm-with-vfpv3.dat: Remove.
6396
6397 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6398
6399 * features/Makefile (XMLTOC): Remove rx.xml.
6400
6401 2020-06-17 Pedro Alves <palves@redhat.com>
6402
6403 * gdbthread.h (thread_control_state) <trap_expected> Update
6404 comments.
6405
6406 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6409 ada_language::lookup_symbol_nonlocal.
6410 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6411 (ada_language::lookup_symbol_nonlocal): New member function,
6412 implementation from ada_lookup_symbol_nonlocal.
6413 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6414 initializer.
6415 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6416 initializer.
6417 (cplus_language::lookup_symbol_nonlocal): New member function.
6418 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6419 (minimal_language_data) Likewise.
6420 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6421 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6422 initializer.
6423 (d_language::lookup_symbol_nonlocal): New member function.
6424 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6425 initializer.
6426 (f_language::lookup_symbol_nonlocal): New member function.
6427 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6428 initializer.
6429 * language.c (unknown_language_data): Likewise.
6430 (auto_language_data): Likewise.
6431 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6432 field.
6433 (language_defn::lookup_symbol_nonlocal): New member function.
6434 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6435 initializer.
6436 * objc-lang.c (objc_language_data): Likewise.
6437 * opencl-lang.c (opencl_language_data): Likewise.
6438 * p-lang.c (pascal_language_data): Likewise.
6439 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6440 rust_language::lookup_symbol_nonlocal.
6441 (rust_language_data): Delete la_lookup_symbol_nonlocal
6442 initializer.
6443 (rust_language::lookup_symbol_nonlocal): New member function,
6444 implementation from rust_lookup_symbol_nonlocal.
6445 * symtab.c (lookup_symbol_aux): Update call to
6446 lookup_symbol_nonlocal.
6447 (basic_lookup_symbol_nonlocal): Rename to...
6448 (language_defn::lookup_symbol_nonlocal): ...this, and update
6449 header comment. Remove language_defn parameter, and replace with
6450 uses of `this'.
6451 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6452
6453 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6456 initializer.
6457 (ada_language::value_print_inner): New member function.
6458 * c-lang.c (c_language_data): Delete la_value_print_inner
6459 initializer.
6460 (cplus_language_data): Likewise.
6461 (asm_language_data): Likewise.
6462 (minimal_language_data): Likewise.
6463 * d-lang.c (d_language_data): Likewise.
6464 (d_language::value_print_inner): New member function.
6465 * f-lang.c (f_language_data): Delete la_value_print_inner
6466 initializer.
6467 (f_language::value_print_inner): New member function.
6468 * f-lang.h (f_value_print_innner): Rename to...
6469 (f_value_print_inner): ...this (note spelling of 'inner').
6470 * f-valprint.c (f_value_print_innner): Rename to...
6471 (f_value_print_inner): ...this (note spelling of 'inner').
6472 * go-lang.c (go_language_data): Delete la_value_print_inner
6473 initializer.
6474 (go_language::value_print_inner): New member function.
6475 * language.c (language_defn::value_print_inner): Define new member
6476 function.
6477 (unk_lang_value_print_inner): Delete.
6478 (unknown_language_data): Delete la_value_print_inner initializer.
6479 (unknown_language::value_print_inner): New member function.
6480 (auto_language_data): Delete la_value_print_inner initializer.
6481 (auto_language::value_print_inner): New member function.
6482 * language.h (language_data): Delete la_value_print_inner field.
6483 (language_defn::value_print_inner): Delcare new member function.
6484 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6485 initializer.
6486 (m2_language::value_print_inner): New member function.
6487 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6488 initializer.
6489 * opencl-lang.c (opencl_language_data): Likewise.
6490 * p-lang.c (pascal_language_data): Likewise.
6491 (pascal_language::value_print_inner): New member function.
6492 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6493 initializer.
6494 (rust_language::value_print_inner): New member function.
6495 * valprint.c (do_val_print): Update call to value_print_inner.
6496
6497 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * ada-lang.c (ada_language_data): Delete la_value_print
6500 initializer.
6501 (ada_language::value_print): New member function.
6502 * c-lang.c (c_language_data): Delete la_value_print initializer.
6503 (cplus_language_data): Likewise.
6504 (asm_language_data): Likewise.
6505 (minimal_language_data): Likewise.
6506 * d-lang.c (d_language_data): Likewise.
6507 * f-lang.c (f_language_data): Likewise.
6508 * go-lang.c (go_language_data): Likewise.
6509 * language.c (unk_lang_value_print): Delete.
6510 (language_defn::value_print): Define new member function.
6511 (unknown_language_data): Delete la_value_print initializer.
6512 (unknown_language::value_print): New member function.
6513 (auto_language_data): Delete la_value_print initializer.
6514 (auto_language::value_print): New member function.
6515 * language.h (language_data): Delete la_value_print field.
6516 (language_defn::value_print): Declare new member function.
6517 (LA_VALUE_PRINT): Update call to value_print.
6518 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6519 * objc-lang.c (objc_language_data): Likewise.
6520 * opencl-lang.c (opencl_language_data): Likewise.
6521 * p-lang.c (pascal_language_data): Likewise.
6522 (pascal_language::value_print): New member function.
6523 * rust-lang.c (rust_language_data): Delete la_value_print
6524 initializer.
6525
6526 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * ada-lang.c (ada_watch_location_expression): Rename to
6529 ada_language::watch_location_expression.
6530 (ada_language_data): Delete la_watch_location_expression
6531 initializer.
6532 (ada_language::watch_location_expression): New member function,
6533 implementation from ada_watch_location_expression.
6534 * breakpoint.c (watch_command_1): Update call to
6535 watch_location_expression.
6536 * c-lang.c (c_watch_location_expression): Rename to
6537 language_defn::watch_location_expression.
6538 (c_language_data): Delete la_watch_location_expression
6539 initializer.
6540 (cplus_language_data): Likewise.
6541 (asm_language_data): Likewise.
6542 (minimal_language_data): Likewise.
6543 * c-lang.h (c_watch_location_expression): Delete declaration.
6544 * d-lang.c (d_language_data): Delete la_watch_location_expression
6545 initializer.
6546 * f-lang.c (f_language_data): Likewise.
6547 * go-lang.c (go_language_data): Likewise.
6548 * language.c (language_defn::watch_location_expression): Member
6549 function implementation from c_watch_location_expression.
6550 (unknown_language_data): Delete la_watch_location_expression
6551 initializer.
6552 (auto_language_data): Likewise.
6553 * language.h (language_data): Delete la_watch_location_expression
6554 field.
6555 (language_defn::watch_location_expression): Declare new member
6556 function.
6557 * m2-lang.c (m2_language_data): Delete
6558 la_watch_location_expression initializer.
6559 * objc-lang.c (objc_language_data): Likewise.
6560 * opencl-lang.c (opencl_language_data): Likewise.
6561 * p-lang.c (pascal_language_data): Likewise.
6562 * rust-lang.c (rust_watch_location_expression): Rename to
6563 rust_language::watch_location_expression.
6564 (rust_language_data): Delete la_watch_location_expression
6565 initializer.
6566 (rust_language::watch_location_expression): New member function,
6567 implementation from rust_watch_location_expression.
6568
6569 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6570
6571 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6572 ada_language::collect_symbol_completion_matches.
6573 (ada_language_data): Delete la_collect_symbol_completion_matches
6574 initializer.
6575 (ada_language::collect_symbol_completion_matches): New member
6576 function, implementation from
6577 ada_collect_symbol_completion_matches.
6578 * c-lang.c (c_language_data): Delete
6579 la_collect_symbol_completion_matches initializer.
6580 (cplus_language_data): Likewise.
6581 (asm_language_data): Likewise.
6582 (minimal_language_data): Likewise.
6583 * d-lang.c (d_language_data): Likewise.
6584 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6585 f_language::collect_symbol_completion_matches.
6586 (f_language_data): Delete la_collect_symbol_completion_matches
6587 initializer.
6588 (f_language::collect_symbol_completion_matches) New member
6589 function, implementation from f_collect_symbol_completion_matches.
6590 * go-lang.c (go_language_data): Delete
6591 la_collect_symbol_completion_matches initializer.
6592 * language.c (unknown_language_data): Likewise.
6593 (auto_language_data): Likewise.
6594 * language.h (language_data): Delete
6595 la_collect_symbol_completion_matches field.
6596 (language_defn::collect_symbol_completion_matches): New member
6597 function.
6598 * m2-lang.c (m2_language_data): Delete
6599 la_collect_symbol_completion_matches initializer.
6600 * objc-lang.c (objc_language_data): Likewise.
6601 * opencl-lang.c (opencl_language_data): Likewise.
6602 * p-lang.c (pascal_language_data): Likewise.
6603 * rust-lang.c (rust_language_data): Likewise.
6604 * symtab.c (default_collect_symbol_completion_matches): Delete.
6605 (collect_symbol_completion_matches): Update call to
6606 collect_symbol_completion_matches.
6607 (collect_symbol_completion_matches_type): Likewise.
6608 * symtab.h (default_collect_symbol_completion_matches): Delete
6609 declaration.
6610
6611 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6612
6613 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6614 (ada_language_data): Delete la_word_break_characters initializer.
6615 (ada_language::word_break_characters): New member function.
6616 * c-lang.c (c_language_data): Delete la_word_break_characters
6617 initializer.
6618 (cplus_language_data): Likewise.
6619 (asm_language_data): Likewise.
6620 (minimal_language_data): Likewise.
6621 * completer.c: Update global comment.
6622 (advance_to_expression_complete_word_point): Update call to
6623 word_break_characters.
6624 (complete_files_symbols): Likewise.
6625 (complete_line_internal_1): Likewise.
6626 (default_completer_handle_brkchars): Likewise.
6627 (skip_quoted_chars): Likewise.
6628 * d-lang.c (d_language_data): Delete la_word_break_characters
6629 initializer.
6630 * f-lang.c (f_word_break_characters): Delete.
6631 (f_language_data): Delete la_word_break_characters initializer.
6632 (f_language::word_break_characters): New member function.
6633 * go-lang.c (go_language_data): Delete la_word_break_characters
6634 initializer.
6635 * language.c (unknown_language_data): Likewise.
6636 (auto_language_data): Likewise.
6637 * language.h (default_word_break_characters): Move declaration to
6638 earlier in the file.
6639 (language_data): Delete la_word_break_characters field.
6640 (language_defn::word_break_characters): New member function.
6641 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6642 initializer.
6643 * objc-lang.c (objc_language_data): Likewise.
6644 * opencl-lang.c (opencl_language_data): Likewise.
6645 * p-lang.c (pascal_language_data): Likewise.
6646 * rust-lang.c (rust_language_data): Likewise.
6647
6648 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6651 (ada_language_data): Delete la_get_symbol_name_matcher
6652 initializer.
6653 (language_defn::get_symbol_name_matcher_inner): New member
6654 function.
6655 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6656 initializer.
6657 (cplus_language_data): Likewise.
6658 (cplus_language::get_symbol_name_matcher_inner): New member
6659 function.
6660 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6661 (minimal_language_data): Likewise.
6662 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6663 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6664 initializer.
6665 * dictionary.c (iter_match_first_hashed): Update call to
6666 get_symbol_name_matcher.
6667 (iter_match_next_hashed): Likewise.
6668 (iter_match_next_linear): Likewise.
6669 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6670 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6671 initializer.
6672 (f_language::get_symbol_name_matcher_inner): New member function.
6673 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6674 initializer.
6675 * language.c (default_symbol_name_matcher): Update header comment,
6676 make static.
6677 (language_defn::get_symbol_name_matcher): New definition.
6678 (language_defn::get_symbol_name_matcher_inner): Likewise.
6679 (get_symbol_name_matcher): Delete.
6680 (unknown_language_data): Delete la_get_symbol_name_matcher
6681 initializer.
6682 (auto_language_data): Likewise.
6683 * language.h (language_data): Delete la_get_symbol_name_matcher
6684 field.
6685 (language_defn::get_symbol_name_matcher): New member function.
6686 (language_defn::get_symbol_name_matcher_inner): Likewise.
6687 (default_symbol_name_matcher): Delete declaration.
6688 * linespec.c (find_methods): Update call to
6689 get_symbol_name_matcher.
6690 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6691 initializer.
6692 * minsyms.c (lookup_minimal_symbol): Update call to
6693 get_symbol_name_matcher.
6694 (iterate_over_minimal_symbols): Likewise.
6695 * objc-lang.c (objc_language_data): Delete
6696 la_get_symbol_name_matcher initializer.
6697 * opencl-lang.c (opencl_language_data): Likewise.
6698 * p-lang.c (pascal_language_data): Likewise.
6699 * psymtab.c (psymbol_name_matches): Update call to
6700 get_symbol_name_matcher.
6701 * rust-lang.c (rust_language_data): Delete
6702 la_get_symbol_name_matcher initializer.
6703 * symtab.c (symbol_matches_search_name): Update call to
6704 get_symbol_name_matcher.
6705 (compare_symbol_name): Likewise.
6706
6707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * ada-lang.c (ada_language_data): Delete la_compute_program
6710 initializer.
6711 * c-lang.c (c_language_data): Likewise.
6712 (c_language::compute_program): New member function.
6713 (cplus_language_data): Delete la_compute_program initializer.
6714 (cplus_language::compute_program): New member function.
6715 (asm_language_data): Delete la_compute_program initializer.
6716 (minimal_language_data): Likewise.
6717 * c-lang.h (c_compute_program): Update comment.
6718 (cplus_compute_program): Likewise.
6719 * compile/compile-c-support.c (c_compute_program): Likewise.
6720 (cplus_compute_program): Likewise.
6721 * compile/compile.c (compile_to_object): Update call to
6722 la_compute_program.
6723 * d-lang.c (d_language_data): Delete la_compute_program
6724 initializer.
6725 * f-lang.c (f_language_data): Likewise.
6726 * go-lang.c (go_language_data): Likewise.
6727 * language.c (unknown_language_data): Likewise.
6728 (auto_language_data): Likewise.
6729 * language.h (language_data): Delete la_compute_program field.
6730 (language_defn::compute_program): New member function.
6731 * m2-lang.c (m2_language_data): Delete la_compute_program
6732 initializer.
6733 * objc-lang.c (objc_language_data): Likewise.
6734 * opencl-lang.c (opencl_language_data): Likewise.
6735 * p-lang.c (pascal_language_data): Likewise.
6736 * rust-lang.c (rust_language_data): Likewise.
6737
6738 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6739
6740 * ada-lang.c (ada_language_data) Delete
6741 la_class_name_from_physname initializer.
6742 * c-lang.c (c_language_data): Likewise.
6743 (cplus_language_data): Likewise.
6744 (cplus_language::class_name_from_physname): New member function.
6745 (asm_language_data): Delete la_class_name_from_physname
6746 initializer.
6747 (minimal_language_data): Likewise.
6748 * d-lang.c (d_language_data): Likewise.
6749 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6750 method on language_defn class.
6751 (guess_full_die_structure_name): Likewise.
6752 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6753 initializer.
6754 * go-lang.c (go_language_data): Likewise.
6755 * language.c (language_class_name_from_physname): Delete.
6756 (unk_lang_class_name): Delete.
6757 (unknown_language_data): Delete la_class_name_from_physname
6758 initializer.
6759 (auto_language_data): Likewise.
6760 * language.h (language_data): Delete la_class_name_from_physname
6761 field.
6762 (language_defn::class_name_from_physname): New function.
6763 (language_class_name_from_physname): Delete declaration.
6764 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6765 initializer.
6766 * objc-lang.c (objc_language_data): Likewise.
6767 * opencl-lang.c (opencl_language_data): Likewise.
6768 * p-lang.c (pascal_language_data): Likewise.
6769 * rust-lang.c (rust_language_data): Likewise.
6770
6771 2020-06-16 Tom Tromey <tom@tromey.com>
6772
6773 * tui/tui-data.h (STATUS_NAME): New macro.
6774 * tui/tui-layout.c (tui_remove_some_windows)
6775 (initialize_known_windows, tui_register_window)
6776 (tui_layout_split::remove_windows, initialize_layouts)
6777 (tui_new_layout_command): Don't use hard-coded window names.
6778
6779 2020-06-16 Tom Tromey <tom@tromey.com>
6780
6781 PR tui/25348:
6782 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6783 tui_initialize_readline. Only run once. Call rl_initialize.
6784 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6785 tui_initialize_readline.
6786 * tui/tui-io.c (tui_setup_io): Call
6787 tui_ensure_readline_initialized.
6788 * tui/tui-interp.c (tui_interp::init): Update.
6789
6790 2020-06-16 Tom Tromey <tom@tromey.com>
6791
6792 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6793 Also preserve the status window.
6794
6795 2020-06-16 Tom Tromey <tom@tromey.com>
6796
6797 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6798 where m_window==nullptr.
6799
6800 2020-06-15 Tom Tromey <tromey@adacore.com>
6801
6802 * windows-nat.c (windows_nat::handle_output_debug_string):
6803 Update.
6804 (windows_nat::handle_ms_vc_exception): Update.
6805 * target.h (target_read_string): Change API.
6806 * target.c (target_read_string): Change API.
6807 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6808 Update.
6809 * solib-frv.c (frv_current_sos): Update.
6810 * solib-dsbt.c (dsbt_current_sos): Update.
6811 * solib-darwin.c (darwin_current_sos): Update.
6812 * linux-thread-db.c (inferior_has_bug): Update.
6813 * expprint.c (print_subexp_standard): Update.
6814 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6815 (ada_exception_message_1): Update.
6816
6817 2020-06-15 Tom Tromey <tromey@adacore.com>
6818
6819 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6820
6821 2020-06-15 Tom Tromey <tromey@adacore.com>
6822
6823 * valprint.c (read_string): Update comment.
6824 * target.c (MIN): Remove.
6825 (target_read_string): Rewrite.
6826
6827 2020-06-15 Tom Tromey <tromey@adacore.com>
6828
6829 * corefile.c (read_memory_string): Remove.
6830 * ada-valprint.c (ada_value_print_ptr): Update.
6831 * ada-lang.h (ada_tag_name): Change return type.
6832 * ada-lang.c (type_from_tag): Update.
6833 (ada_tag_name_from_tsd): Change return type. Use
6834 target_read_string.
6835 (ada_tag_name): Likewise.
6836 * gdbcore.h (read_memory_string): Don't declare.
6837
6838 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6839
6840 * symtab.c (rbreak_command): Ignore Windows drive colon.
6841
6842 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6843
6844 * NEWS: Mention removed GDBserver host support.
6845
6846 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6847
6848 * features/riscv/rebuild-csr-xml.sh: Updated.
6849
6850 2020-06-11 Tom Tromey <tom@tromey.com>
6851
6852 PR gdb/18318:
6853 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6854
6855 2020-06-09 Jonny Grant <jg@jguk.org>
6856 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6857
6858 * main.c (captured_main_1): Don't print new line after help.
6859 (print_gdb_help): add mailing list and IRC channel information
6860 to --help. Add new lines between items in the footer. Remove
6861 quotes around bug url.
6862
6863 2020-06-11 Keith Seitz <keiths@redhat.com>
6864
6865 PR gdb/21356
6866 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6867 Resolve typedefs for type length calculations.
6868
6869 2020-06-10 Tom de Vries <tdevries@suse.de>
6870
6871 PR ada/24713
6872 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6873 (write_psymbols): Enable .gdb_index for ada.
6874 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6875 ada.
6876
6877 2020-06-10 Tom de Vries <tdevries@suse.de>
6878
6879 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6880 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6881 namei" instead of "const char *name" argument.
6882 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6883 dw2_symtab_iter_init.
6884
6885 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6888 to use type::field and field::type instead.
6889
6890 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6893 to use field::type instead.
6894
6895 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6896
6897 * gdbtypes.h (struct field) <type, set_type>: New methods.
6898 Rename `type` field to...
6899 <m_type>: ... this. Change references throughout to use type or
6900 set_type methods.
6901 (FIELD_TYPE): Use field::type. Change call sites that modify
6902 the field's type to use field::set_type instead.
6903
6904 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6905
6906 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6907 to use type::index_type instead.
6908
6909 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6912 methods.
6913 (TYPE_INDEX_TYPE): Use type::index_type.
6914 * gdbtypes.c (create_array_type_with_stride): Likewise.
6915
6916 2020-06-07 Tom Tromey <tom@tromey.com>
6917
6918 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6919 parameter.
6920 (generic_value_print): Update.
6921
6922 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 Revert commit 982a38f60b0.
6925 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6926
6927 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6930 avoid use after free.
6931
6932 2020-06-05 Tom de Vries <tdevries@suse.de>
6933
6934 * NEWS: Fix typos.
6935
6936 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6937
6938 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6939 the per_bfd object.
6940 (dwarf2_read_debug_names): Likewise.
6941 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6942 object when re-using a per_bfd object with an index.
6943
6944 2020-06-03 Tom de Vries <tdevries@suse.de>
6945
6946 PR symtab/26046
6947 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6948 children for C++.
6949 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6950 DW_TAG_subprogram.
6951
6952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6953
6954 * ada-lang.c (ada_language_data): Delete skip_trampoline
6955 initializer.
6956 * c-lang.c (c_language_data): Likewise.
6957 (cplus_language_data): Likewise.
6958 (cplus_language::skip_trampoline): New member function.
6959 (asm_language_data): Delete skip_trampoline initializer.
6960 (minimal_language_data): Likewise.
6961 * d-lang.c (d_language_data): Likewise.
6962 * f-lang.c (f_language_data): Likewise.
6963 * go-lang.c (go_language_data): Likewise.
6964 * language.c (unk_lang_trampoline): Delete function.
6965 (skip_language_trampoline): Update.
6966 (unknown_language_data): Delete skip_trampoline initializer.
6967 (auto_language_data): Likewise.
6968 * language.h (language_data): Delete skip_trampoline field.
6969 (language_defn::skip_trampoline): New function.
6970 * m2-lang.c (m2_language_data): Delete skip_trampoline
6971 initializer.
6972 * objc-lang.c (objc_skip_trampoline): Delete function, move
6973 implementation to objc_language::skip_trampoline.
6974 (objc_language_data): Delete skip_trampoline initializer.
6975 (objc_language::skip_trampoline): New member function with
6976 implementation from objc_skip_trampoline.
6977 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6978 initializer.
6979 * p-lang.c (pascal_language_data): Likewise.
6980 * rust-lang.c (rust_language_data): Likewise.
6981
6982 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6983
6984 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6985 (ada_language::demangle): New member function.
6986 * c-lang.c (c_language_data): Delete la_demangle initializer.
6987 (cplus_language_data): Delete la_demangle initializer.
6988 (cplus_language::demangle): New member function.
6989 (asm_language_data): Delete la_demangle initializer.
6990 (minimal_language_data): Delete la_demangle initializer.
6991 * d-lang.c (d_language_data): Delete la_demangle initializer.
6992 (d_language::demangle): New member function.
6993 * f-lang.c (f_language_data): Delete la_demangle initializer.
6994 (f_language::demangle): New member function.
6995 * go-lang.c (go_language_data): Delete la_demangle initializer.
6996 (go_language::demangle): New member function.
6997 * language.c (language_demangle): Update.
6998 (unk_lang_demangle): Delete.
6999 (unknown_language_data): Delete la_demangle initializer.
7000 (unknown_language::demangle): New member function.
7001 (auto_language_data): Delete la_demangle initializer.
7002 (auto_language::demangle): New member function.
7003 * language.h (language_data): Delete la_demangle field.
7004 (language_defn::demangle): New function.
7005 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
7006 * objc-lang.c (objc_language_data): Delete la_demangle
7007 initializer.
7008 (objc_language::demangle): New member function.
7009 * opencl-lang.c (opencl_language_data): Delete la_demangle
7010 initializer.
7011 * p-lang.c (pascal_language_data): Likewise.
7012 * rust-lang.c (rust_language_data): Likewise.
7013 (rust_language::demangle): New member function.
7014
7015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * ada-lang.c (ada_language_data): Delete la_print_type
7018 initializer.
7019 (ada_language::print_type): New member function.
7020 * c-lang.c (c_language_data): Delete la_print_type initializer.
7021 (c_language::print_type): New member function.
7022 (cplus_language_data): Delete la_print_type initializer.
7023 (cplus_language::print_type): New member function.
7024 (asm_language_data): Delete la_print_type initializer.
7025 (asm_language::print_type): New member function.
7026 (minimal_language_data): Delete la_print_type initializer.
7027 (minimal_language::print_type): New member function.
7028 * d-lang.c (d_language_data): Delete la_print_type initializer.
7029 (d_language::print_type): New member function.
7030 * f-lang.c (f_language_data): Delete la_print_type initializer.
7031 (f_language::print_type): New member function.
7032 * go-lang.c (go_language_data): Delete la_print_type initializer.
7033 (go_language::print_type): New member function.
7034 * language.c (unk_lang_print_type): Delete.
7035 (unknown_language_data): Delete la_print_type initializer.
7036 (unknown_language::print_type): New member function.
7037 (auto_language_data): Delete la_print_type initializer.
7038 (auto_language::print_type): New member function.
7039 * language.h (language_data): Delete la_print_type field.
7040 (language_defn::print_type): New function.
7041 (LA_PRINT_TYPE): Update.
7042 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
7043 (m2_language::print_type): New member function.
7044 * objc-lang.c (objc_language_data): Delete la_print_type
7045 initializer.
7046 (objc_language::print_type): New member function.
7047 * opencl-lang.c (opencl_print_type): Delete, implementation moved
7048 to opencl_language::print_type.
7049 (opencl_language_data): Delete la_print_type initializer.
7050 (opencl_language::print_type): New member function, implementation
7051 from opencl_print_type.
7052 * p-lang.c (pascal_language_data): Delete la_print_type
7053 initializer.
7054 (pascal_language::print_type): New member function.
7055 * rust-lang.c (rust_print_type): Delete, implementation moved to
7056 rust_language::print_type.
7057 (rust_language_data): Delete la_print_type initializer.
7058 (rust_language::print_type): New member function, implementation
7059 from rust_print_type.
7060
7061 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7062
7063 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
7064 implementation moves to...
7065 (ada_language::sniff_from_mangled_name): ...here. Update return
7066 type.
7067 (ada_language_data): Delete la_sniff_from_mangled_name
7068 initializer.
7069 * c-lang.c (c_language_data): Likewise.
7070 (cplus_language_data): Likewise.
7071 (cplus_language::sniff_from_mangled_name): New member function,
7072 implementation taken from gdb_sniff_from_mangled_name.
7073 (asm_language_data): Delete la_sniff_from_mangled_name
7074 initializer.
7075 (minimal_language_data): Likewise.
7076 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
7077 implementation moves to cplus_language::sniff_from_mangled_name.
7078 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
7079 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
7080 moves to...
7081 (d_language::sniff_from_mangled_name): ...here.
7082 (d_language_data): Delete la_sniff_from_mangled_name initializer.
7083 * f-lang.c (f_language_data): Likewise.
7084 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
7085 moves to...
7086 (go_language::sniff_from_mangled_name): ...here.
7087 (go_language_data): Delete la_sniff_from_mangled_name initializer.
7088 * language.c (language_sniff_from_mangled_name): Delete.
7089 (unknown_language_data): Delete la_sniff_from_mangled_name
7090 initializer.
7091 (auto_language_data): Likewise.
7092 * language.h (language_data): Delete la_sniff_from_mangled_name
7093 field.
7094 (language_defn::sniff_from_mangled_name): New function.
7095 (language_sniff_from_mangled_name): Delete declaration.
7096 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
7097 field.
7098 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
7099 implementation moves to...
7100 (objc_language::sniff_from_mangled_name): ...here.
7101 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
7102 * opencl-lang.c (opencl_language_data): Likewise.
7103 * p-lang.c (pascal_language_data): Likewise.
7104 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
7105 implementation moves to...
7106 (rust_language::sniff_from_mangled_name): ...here.
7107 (rust_language_data): Delete la_sniff_from_mangled_name
7108 initializer.
7109 * symtab.c (symbol_find_demangled_name): Call
7110 sniff_from_mangled_name member function.
7111
7112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7115 initializer.
7116 * c-lang.c (c_language_data): Likewise.
7117 (cplus_language_data): Likewise.
7118 (cplus_language::search_name_hash): New member function.
7119 (asm_language_data): Delete la_search_name_hash initializer.
7120 (minimal_language_data): Likewise.
7121 * d-lang.c (d_language_data): Likewise.
7122 * dictionary.c (default_search_name_hash): Rename to...
7123 (language_defn::search_name_hash): ...this.
7124 * f-lang.c (f_language_data): Likewise.
7125 (f_language::search_name_hash): New member function.
7126 * go-lang.c (go_language_data): Delete la_search_name_hash
7127 initializer.
7128 * language.c (unknown_language_data): Likewise.
7129 (auto_language_data): Likewise.
7130 * language.h (struct language_data): Delete la_search_name_hash
7131 field.
7132 (language_defn::search_name_hash): Declare new member function.
7133 (default_search_name_hash): Delete declaration.
7134 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7135 initializer.
7136 * objc-lang.c (objc_language_data): Likewise.
7137 * opencl-lang.c (opencl_language_data): Likewise.
7138 * p-lang.c (pascal_language_data): Likewise.
7139 * rust-lang.c (rust_language_data): Likewise.
7140 * symtab.c (search_name_hash): Update call.
7141
7142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7143
7144 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7145 initializer.
7146 * c-lang.c (class compile_instance): Declare.
7147 (c_language_data): Delete la_get_compile_instance initializer.
7148 (c_language::get_compile_instance): New member function.
7149 (cplus_language_data): Delete la_get_compile_instance initializer.
7150 (cplus_language::get_compile_instance): New member function.
7151 (asm_language_data): Delete la_get_compile_instance initializer.
7152 (minimal_language_data): Likewise.
7153 * c-lang.h (c_get_compile_context): Update comment.
7154 (cplus_get_compile_context): Update comment.
7155 * compile/compile.c (compile_to_object): Update calls, don't rely
7156 on function pointer being NULL.
7157 * d-lang.c (d_language_data): Delete la_get_compile_instance
7158 initializer.
7159 * f-lang.c (f_language_data): Likewise.
7160 * go-lang.c (go_language_data): Likewise.
7161 * language.c (unknown_language_data): Likewise.
7162 (auto_language_data): Likewise.
7163 * language.h (language_data): Delete la_get_compile_instance field.
7164 (language_defn::get_compile_instance): New member function.
7165 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7166 initializer.
7167 * objc-lang.c (objc_language_data): Likewise.
7168 * opencl-lang.c (opencl_language_data): Likewise.
7169 * p-lang.c (pascal_language_data): Likewise.
7170 * rust-lang.c (rust_language_data): Likewise.
7171
7172 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7173
7174 * ada-lang.c (ada_add_all_symbols): Update comment.
7175 (ada_iterate_over_symbols): Delete, move implementation to...
7176 (ada_language::iterate_over_symbols): ...here, a new member
7177 function, rewrite to use range based for loop.
7178 (ada_language_data): Delete la_iterate_over_symbols initializer.
7179 * c-lang.c (c_language_data): Likewise.
7180 (cplus_language_data): Likewise.
7181 (asm_language_data): Likewise.
7182 (minimal_language_data): Likewise.
7183 * d-lang.c (d_language_data): Likewise.
7184 * f-lang.c (f_language_data): Likewise.
7185 * go-lang.c (go_language_data): Likewise.
7186 * language.c (unknown_language_data): Likewise.
7187 (auto_language_data): Likewise.
7188 * language.h (language_data): Delete la_iterate_over_symbols field.
7189 (language_defn::iterate_over_symbols): New member function.
7190 (LA_ITERATE_OVER_SYMBOLS): Update.
7191 * linespec.c (iterate_over_all_matching_symtabs): Update.
7192 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7193 initializer.
7194 * objc-lang.c (objc_language_data): Likewise.
7195 * opencl-lang.c (opencl_language_data): Likewise.
7196 * p-lang.c (pascal_language_data): Likewise.
7197 * rust-lang.c (rust_language_data): Likewise.
7198
7199 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7200
7201 * ada-lang.c (ada_language_data): Delete
7202 la_lookup_transparent_type initializer.
7203 * c-lang.c (c_language_data): Likewise.
7204 (cplus_language_data): Likewise.
7205 (cplus_language::lookup_transparent_type): New member function.
7206 (asm_language_data): Delete la_lookup_transparent_type
7207 initializer.
7208 (minimal_language_data): Likewise.
7209 * d-lang.c (d_language_data): Likewise.
7210 * f-lang.c (f_language_data): Likewise.
7211 * go-lang.c (go_language_data): Likewise.
7212 * language.c (unknown_language_data): Likewise.
7213 (auto_language_data): Likewise.
7214 * language.h (struct language_data): Delete
7215 la_lookup_transparent_type field.
7216 (language_defn::lookup_transparent_type): New member function.
7217 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7218 initializer.
7219 * objc-lang.c (objc_language_data): Likewise.
7220 * opencl-lang.c (opencl_language_data): Likewise.
7221 * p-lang.c (pascal_language_data): Likewise.
7222 * rust-lang.c (rust_language_data): Likewise.
7223 * symtab.c (symbol_matches_domain): Update call.
7224
7225 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * ada-lang.c (ada_language_arch_info): Delete function, move
7228 implementation to...
7229 (ada_language::language_arch_info): ...here, a new member
7230 function.
7231 (ada_language_data): Delete la_language_arch_info.
7232 * c-lang.c (c_language_data): Likewise.
7233 (c_language::language_arch_info): New member function.
7234 (cplus_language_arch_info): Delete function, move
7235 implementation to...
7236 (cplus_language::language_arch_info): ...here, a new member
7237 function.
7238 (cplus_language_data): Delete la_language_arch_info.
7239 (asm_language_data): Likewise.
7240 (asm_language::language_arch_info): New member function.
7241 (minimal_language_data): Delete la_language_arch_info.
7242 (minimal_language::language_arch_info): New member function.
7243 * d-lang.c (d_language_arch_info): Delete function, move
7244 implementation to...
7245 (d_language::language_arch_info): ...here, a new member
7246 function.
7247 (d_language_data): Delete la_language_arch_info.
7248 * f-lang.c (f_language_arch_info): Delete function, move
7249 implementation to...
7250 (f_language::language_arch_info): ...here, a new member
7251 function.
7252 (f_language_data): Delete la_language_arch_info.
7253 * go-lang.c (go_language_arch_info): Delete function, move
7254 implementation to...
7255 (go_language::language_arch_info): ...here, a new member
7256 function.
7257 (go_language_data): Delete la_language_arch_info.
7258 * language.c (unknown_language_data): Likewise.
7259 (unknown_language::language_arch_info): New member function.
7260 (auto_language_data): Delete la_language_arch_info.
7261 (auto_language::language_arch_info): New member function.
7262 (language_gdbarch_post_init): Update call to
7263 la_language_arch_info.
7264 * language.h (language_data): Delete la_language_arch_info
7265 function pointer.
7266 (language_defn::language_arch_info): New function.
7267 * m2-lang.c (m2_language_arch_info): Delete function, move
7268 implementation to...
7269 (m2_language::language_arch_info): ...here, a new member
7270 function.
7271 (m2_language_data): Delete la_language_arch_info.
7272 * objc-lang.c (objc_language_arch_info): Delete function, move
7273 implementation to...
7274 (objc_language::language_arch_info): ...here, a new member
7275 function.
7276 (objc_language_data): Delete la_language_arch_info.
7277 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7278 implementation to...
7279 (opencl_language::language_arch_info): ...here, a new member
7280 function.
7281 (opencl_language_data): Delete la_language_arch_info.
7282 * p-lang.c (pascal_language_arch_info): Delete function, move
7283 implementation to...
7284 (pascal_language::language_arch_info): ...here, a new member
7285 function.
7286 (pascal_language_data): Delete la_language_arch_info.
7287 * rust-lang.c (rust_language_arch_info): Delete function, move
7288 implementation to...
7289 (rust_language::language_arch_info): ...here, a new member
7290 function.
7291 (rust_language_data): Delete la_language_arch_info.
7292
7293 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7294
7295 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7296 initializer.
7297 * c-lang.c (c_language_data): Likewise.
7298 (cplus_language_data): Likewise.
7299 (cplus_language::pass_by_reference_info): New method.
7300 (asm_language_data): Delete la_pass_by_reference initializer.
7301 (minimal_language_data): Likewise.
7302 * cp-abi.c (cp_pass_by_reference): Remove use of
7303 default_pass_by_reference.
7304 * d-lang.c (d_language_data): Likewise.
7305 * f-lang.c (f_language_data): Likewise.
7306 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7307 default_pass_by_reference.
7308 * go-lang.c (go_language_data): Likewise.
7309 * language.c (language_pass_by_reference): Update.
7310 (default_pass_by_reference): Delete.
7311 (unknown_language_data): Delete la_pass_by_reference
7312 initializer.
7313 (auto_language_data): Likewise.
7314 * language.h (struct language_data): Delete la_pass_by_reference
7315 field.
7316 (language_defn::pass_by_reference_info): New member function.
7317 (default_pass_by_reference): Delete declaration.
7318 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7319 initializer.
7320 * objc-lang.c (objc_language_data): Likewise.
7321 * opencl-lang.c (opencl_language_data): Likewise.
7322 * p-lang.c (pascal_language_data): Likewise.
7323 * rust-lang.c (rust_language_data): Likewise.
7324
7325 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * ada-lang.c (ada_read_var_value): Delete function, move
7328 implementation to...
7329 (ada_language::read_var_value): ...here.
7330 (ada_language_data): Delete la_read_var_value initializer.
7331 * c-lang.c (c_language_data): Likewise.
7332 (cplus_language_data): Likewise.
7333 (minimal_language_data): Likewise.
7334 * d-lang.c (d_language_data): Likewise.
7335 * f-lang.c (f_language_data): Likewise.
7336 * findvar.c (default_read_var_value): Rename to...
7337 (language_defn::read_var_value): ...this.
7338 * findvar.c (read_var_value): Update header comment, and change to
7339 call member function instead of function pointer.
7340 * go-lang.c (go_language_data): Likewise.
7341 * language.c (unknown_language_data): Delete la_read_var_value
7342 initializer.
7343 (auto_language_data): Likewise.
7344 * language.h (struct language_data): Delete la_read_var_value
7345 field.
7346 (language_defn::read_var_value): New member function.
7347 (default_read_var_value): Delete declaration.
7348 * m2-lang.c (m2_language_data): Delete la_read_var_value
7349 initializer.
7350 * objc-lang.c (objc_language_data): Likewise.
7351 * opencl-lang.c (opencl_language_data): Likewise.
7352 * p-lang.c (pascal_language_data): Likewise.
7353 * rust-lang.c (rust_language_data): Likewise.
7354 * value.h (default_read_var_value): Delete declaration.
7355
7356 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7357
7358 * ada-lang.c (ada_print_array_index): Delete function, move
7359 implementation to...
7360 (ada_language::print_array_index): ...here.
7361 (ada_language_data): Delete la_print_array_index initializer.
7362 * c-lang.c (c_language_data): Likewise.
7363 (cplus_language_data): Likewise.
7364 (minimal_language_data): Likewise.
7365 * d-lang.c (d_language_data): Likewise.
7366 * f-lang.c (f_language_data): Likewise.
7367 * go-lang.c (go_language_data): Likewise.
7368 * language.c (default_print_array_index): Delete function, move
7369 implementation to...
7370 (language_defn::print_array_index): ...here.
7371 (unknown_language_data): Delete la_print_array_index initializer.
7372 (auto_language_data): Likewise.
7373 * language.h (struct language_data): Delete la_print_array_index
7374 field.
7375 (language_defn::print_array_index): New member function.
7376 (LA_PRINT_ARRAY_INDEX): Update.
7377 (default_print_array_index): Delete declaration.
7378 * m2-lang.c (m2_language_data): Delete la_print_array_index
7379 initializer.
7380 * objc-lang.c (objc_language_data): Likewise.
7381 * opencl-lang.c (opencl_language_data): Likewise.
7382 * p-lang.c (pascal_language_data): Likewise.
7383 * rust-lang.c (rust_language_data): Likewise.
7384
7385 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7386
7387 * gdb/ada-lang.c (ada_language_defn): Convert to...
7388 (ada_language_data): ...this.
7389 (class ada_language): New class.
7390 (ada_language_defn): New static global.
7391 * gdb/c-lang.c (c_language_defn): Convert to...
7392 (c_language_data): ...this.
7393 (class c_language): New class.
7394 (c_language_defn): New static global.
7395 (cplus_language_defn): Convert to...
7396 (cplus_language_data): ...this.
7397 (class cplus_language): New class.
7398 (cplus_language_defn): New static global.
7399 (asm_language_defn): Convert to...
7400 (asm_language_data): ...this.
7401 (class asm_language): New class.
7402 (asm_language_defn): New static global.
7403 (minimal_language_defn): Convert to...
7404 (minimal_language_data): ...this.
7405 (class minimal_language): New class.
7406 (minimal_language_defn): New static global.
7407 * gdb/d-lang.c (d_language_defn): Convert to...
7408 (d_language_data): ...this.
7409 (class d_language): New class.
7410 (d_language_defn): New static global.
7411 * gdb/f-lang.c (f_language_defn): Convert to...
7412 (f_language_data): ...this.
7413 (class f_language): New class.
7414 (f_language_defn): New static global.
7415 * gdb/go-lang.c (go_language_defn): Convert to...
7416 (go_language_data): ...this.
7417 (class go_language): New class.
7418 (go_language_defn): New static global.
7419 * gdb/language.c (unknown_language_defn): Remove declaration.
7420 (current_language): Initialize to nullptr, real initialization is
7421 moved to _initialize_language.
7422 (languages): Delete global.
7423 (language_defn::languages): Define.
7424 (set_language_command): Use language_defn::languages.
7425 (set_language): Likewise.
7426 (range_error): Likewise.
7427 (language_enum): Likewise.
7428 (language_def): Likewise.
7429 (add_set_language_command): Use language_def::languages for the
7430 language list, and language_def to lookup language pointers.
7431 (skip_language_trampoline): Use language_defn::languages.
7432 (unknown_language_defn): Convert to...
7433 (unknown_language_data): ...this.
7434 (class unknown_language): New class.
7435 (unknown_language_defn): New static global.
7436 (auto_language_defn): Convert to...
7437 (auto_language_data): ...this.
7438 (class auto_language): New class.
7439 (auto_language_defn): New static global.
7440 (language_gdbarch_post_init): Use language_defn::languages.
7441 (_initialize_language): Initialize current_language.
7442 * gdb/language.h (struct language_defn): Rename to...
7443 (struct language_data): ...this.
7444 (struct language_defn): New.
7445 (auto_language_defn): Delete.
7446 (unknown_language_defn): Delete.
7447 (minimal_language_defn): Delete.
7448 (ada_language_defn): Delete.
7449 (asm_language_defn): Delete.
7450 (c_language_defn): Delete.
7451 (cplus_language_defn): Delete.
7452 (d_language_defn): Delete.
7453 (f_language_defn): Delete.
7454 (go_language_defn): Delete.
7455 (m2_language_defn): Delete.
7456 (objc_language_defn): Delete.
7457 (opencl_language_defn): Delete.
7458 (pascal_language_defn): Delete.
7459 (rust_language_defn): Delete.
7460 * gdb/m2-lang.c (m2_language_defn): Convert to...
7461 (m2_language_data): ...this.
7462 (class m2_language): New class.
7463 (m2_language_defn): New static global.
7464 * gdb/objc-lang.c (objc_language_defn): Convert to...
7465 (objc_language_data): ...this.
7466 (class objc_language): New class.
7467 (objc_language_defn): New static global.
7468 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7469 (opencl_language_data): ...this.
7470 (class opencl_language): New class.
7471 (opencl_language_defn): New static global.
7472 * gdb/p-lang.c (pascal_language_defn): Convert to...
7473 (pascal_language_data): ...this.
7474 (class pascal_language): New class.
7475 (pascal_language_defn): New static global.
7476 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7477 language pointer, update comment format.
7478 * gdb/rust-lang.c (rust_language_defn): Convert to...
7479 (rust_language_data): ...this.
7480 (class rust_language): New class.
7481 (rust_language_defn): New static global.
7482
7483 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7484
7485 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7486 member variable.
7487 <m_stmt_at_address>: New member variable.
7488 (lnp_state_machine::record_line): Don't record some lines, update
7489 tracking of is_stmt at the same address.
7490 (lnp_state_machine::lnp_state_machine): Initialise new member
7491 variables.
7492
7493 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7494
7495 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7496 "-include gnu-nat-mig.h".
7497 * gnu-nat-mig.h: New file.
7498 * gnu-nat.c: Include "gnu-nat-mig.h".
7499 (exc_server, msg_reply_server, notify_server,
7500 process_reply_server): Remove declarations.
7501
7502 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7503
7504 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7505 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7506 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7507 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7508 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7509 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7510 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7511 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7512 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7513 to gnu_nat_target class.
7514 * gnu-nat.c: Likewise.
7515 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7516 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7517 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7518 object.
7519 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7520 instead of `gnu_target'.
7521
7522 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7523
7524 * i386-gnu-tdep.c: Include "gdbcore.h"
7525 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7526 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7527 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7528 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7529 i386_gnu_sigcontext_addr): New functions
7530 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7531 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7532 tdep.
7533
7534 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7535
7536 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7537 before fork_inferior call. Avoid calling it if target_is_pushed returns
7538 true.
7539
7540 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7541
7542 * gnu-nat.h (gnu_target): New variable declaration.
7543 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7544 gnu_target.
7545 * gnu-nat.c (gnu_target): New variable.
7546 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7547 add_thread_silent, and add_thread calls.
7548 (gnu_nat_target::create_inferior): Pass gnu_target to
7549 add_thread_silent, thread_change_ptid call.
7550 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7551 call.
7552
7553 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7554
7555 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7556 (gnu_nat_target::find_memory_regions): Remove unused
7557 `old_address' variable.
7558
7559 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7560
7561 * gnu-nat.c: Include "gdbarch.h".
7562
7563 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * reply_mig_hack.awk (Error return): Cast function through
7566 void *, to bypass compiler function call check.
7567
7568 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7569
7570 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7571 $(srcdir)/reply_mig_hack.awk.
7572
7573 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7574
7575 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7576
7577 2020-05-30 Jonny Grant <jg@jguk.org>
7578
7579 * configure.ac (ACX_BUGURL): change bug URL to https.
7580
7581 2020-05-30 Pedro Alves <palves@redhat.com>
7582
7583 * cp-support.c (replace_typedefs_template): New.
7584 (replace_typedefs_qualified_name): Handle
7585 DEMANGLE_COMPONENT_TEMPLATE.
7586
7587 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7588
7589 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7590 dwarf2/index-cache.h, dwarf2/index-write.c,
7591 dwarf2/index-write.h, dwarf2/line-header.c,
7592 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7593 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7594 variables and fields from `dwarf2_per_objfile` to just
7595 `per_objfile` throughout.
7596
7597 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7598
7599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7600 <push_dwarf_reg_entry_value>: Add comment.
7601
7602 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7603 Keith Seitz <keiths@redhat.com>
7604
7605 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7606 instead of PyEval_ReleaseLock.
7607 (class gdbpy_gil): Move to earlier in file.
7608 (finalize_python): Set gdb_python_initialized.
7609 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7610 when not initialized.
7611
7612 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7615 <push_dwarf_reg_entry_value>: Remove assert. Override
7616 per_objfile with caller_per_objfile.
7617
7618 2020-05-28 Tom de Vries <tdevries@suse.de>
7619
7620 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7621 PR gold/15646 workaround to symbol kind "type".
7622
7623 2020-05-27 Tom Tromey <tromey@adacore.com>
7624
7625 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7626
7627 2020-05-27 Tom Tromey <tromey@adacore.com>
7628
7629 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7630 Use htab_find_with_hash.
7631 <add_abbrev>: Remove "abbrev_number" parameter.
7632 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7633 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7634 (hash_abbrev): Add comment.
7635 (abbrev_table::lookup_abbrev): Move to header file.
7636 (abbrev_table::read): Update.
7637
7638 2020-05-27 Tom Tromey <tromey@adacore.com>
7639
7640 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7641 method.
7642 <canonical_name>: New member.
7643 <raw_name>: Rename from "name".
7644 (partial_die_info): Initialize canonical_name.
7645 (scan_partial_symbols): Check raw_name.
7646 (partial_die_parent_scope, partial_die_full_name)
7647 (add_partial_symbol, add_partial_subprogram)
7648 (add_partial_enumeration, load_partial_dies): Use "name" method.
7649 (partial_die_info::name): New method.
7650 (partial_die_info::read, guess_partial_die_structure_name)
7651 (partial_die_info::fixup): Update.
7652
7653 2020-05-27 Tom Tromey <tromey@adacore.com>
7654
7655 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7656 <get_ref_die_offset>: Inline.
7657 <get_ref_die_offset_complaint>: New method.
7658 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7659 (attribute::get_ref_die_offset_complaint): Rename from
7660 get_ref_die_offset. Just issue complaint.
7661
7662 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7663
7664 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7665
7666 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7667
7668 * exec.c (exec_file_attach): Use errno value of first openp failure.
7669
7670 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7671
7672 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7673 Don't close thread handle.
7674
7675 2020-05-27 Tom Tromey <tom@tromey.com>
7676 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7679 shared_ptr.
7680 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7681 member.
7682 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7683 dwarf2_per_bfd_objfile_data_key>: New globals.
7684 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7685 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7686 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7687 shared.
7688 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7689 short-circuit when sharing.
7690 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7691 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7692
7693 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7696 to...
7697 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7698 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7699
7700 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7701
7702 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7703 build_name_components, find_name_components_bounds>:
7704 Add per_objfile parameter.
7705 (struct mapped_index) <symbol_name_at>: Likewise.
7706 (struct mapped_debug_names): Remove constructor.
7707 <dwarf2_per_objfile>: Remove field.
7708 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7709 (mapped_index_base::find_name_components_bounds,
7710 mapped_index_base::build_name_components,
7711 dw2_expand_symtabs_matching_symbol): Likewise.
7712 (class mock_mapped_index) <symbol_name_at>: Likewise.
7713 (check_match): Likewise.
7714 (check_find_bounds_finds): Likewise.
7715 (test_mapped_index_find_name_component_bounds): Update.
7716 (CHECK_MATCH): Update.
7717 (dw2_expand_symtabs_matching): Update.
7718 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7719 per_objfile parameter.
7720 <find_vec_in_debug_names>: Likewise.
7721 <m_per_objfile>: New field.
7722 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7723 parameter.
7724 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7725 (dw2_debug_names_iterator::next): Update.
7726 (dw2_debug_names_lookup_symbol): Update.
7727 (dw2_debug_names_expand_symtabs_for_function): Update.
7728 (dw2_debug_names_map_matching_symbols): Update.
7729 (dw2_debug_names_expand_symtabs_matching): Update.
7730 (dwarf2_read_debug_names): Update.
7731
7732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7733
7734 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7735 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7736 move to dwarf2_per_objfile.
7737 <read_in_chain>: Remove.
7738 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7739 remove_all_cus, age_comp_units>: New methods.
7740 <m_dwarf2_cus>: New member.
7741 (struct dwarf2_per_cu_data) <cu>: Remove.
7742 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7743 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7744 moved to methods of dwarf2_per_objfile.
7745 (dwarf2_clear_marks): Remove.
7746 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7747 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7748 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7749 (dwarf2_per_objfile::remove_all_cus): New.
7750 (class free_cached_comp_units) <~free_cached_comp_units>:
7751 Update.
7752 (load_cu): Update.
7753 (dw2_do_instantiate_symtab): Adjust.
7754 (fill_in_sig_entry_from_dwo_entry): Adjust.
7755 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7756 (cutu_reader::cutu_reader): Likewise.
7757 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7758 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7759 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7760 and dwarf2_per_objfile::age_comp_units.
7761 (load_partial_comp_unit): Update.
7762 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7763 (process_queue): Likewise.
7764 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7765 backlink.
7766 (dwarf2_read_addr_index): Likewise.
7767 (follow_die_offset): Likewise.
7768 (dwarf2_fetch_die_loc_sect_off): Likewise.
7769 (dwarf2_fetch_constant_bytes): Likewise.
7770 (dwarf2_fetch_die_type_sect_off): Likewise.
7771 (follow_die_sig_1): Likewise.
7772 (load_full_type_unit): Likewise.
7773 (read_signatured_type): Likewise.
7774 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7775 (dwarf2_cu::~dwarf2_cu): Remove.
7776 (dwarf2_per_objfile::get_cu): New.
7777 (dwarf2_per_objfile::set_cu): New.
7778 (age_cached_comp_units): Rename to...
7779 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7780 to std::unordered_map.
7781 (free_one_cached_comp_unit): Rename to...
7782 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7783 to std::unordered_map.
7784 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7785 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7786 a dwarf2_per_objfile in data.
7787 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7788 (dwarf2_clear_marks): Remove.
7789
7790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7793 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7794 (init_tu_and_read_dwo_dies): Likewise.
7795 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7796 (cutu_reader::cutu_reader): Likewise.
7797 (load_partial_comp_unit): Likewise.
7798 (process_psymtab_comp_unit): Update.
7799 (build_type_psymtabs_1): Update.
7800 (process_skeletonless_type_unit): Update.
7801 (load_full_comp_unit): Update.
7802 (find_partial_die): Update.
7803 (dwarf2_read_addr_index): Update.
7804 (read_signatured_type): Update.
7805
7806 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7807
7808 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7809 m_header_read_in>: New fields.
7810 <get_header>: New method.
7811 * dwarf2/read.c (per_cu_header_read_in): Remove.
7812 (dwarf2_per_cu_data::get_header): New.
7813 (dwarf2_per_cu_data::addr_size): Update.
7814 (dwarf2_per_cu_data::offset_size): Update.
7815 (dwarf2_per_cu_data::ref_addr_size): Update.
7816
7817 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7818
7819 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7820 (dw2_do_instantiate_symtab): Update.
7821 (queue_and_load_all_dwo_tus): Change parameter from
7822 dwarf2_per_cu_data to dwarf2_cu.
7823 (dwarf2_fetch_die_loc_sect_off): Update.
7824 (dwarf2_fetch_constant_bytes): Update.
7825 (dwarf2_fetch_die_type_sect_off): Update.
7826
7827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7828
7829 * dwarf2/read.c (process_full_comp_unit,
7830 process_full_type_unit): Remove per_cu, per_objfile paramters.
7831 Add dwarf2_cu parameter.
7832 (process_queue): Update.
7833
7834 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7835
7836 * dwarf2/read.c (create_cu_from_index_list): Replace
7837 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7838 (create_cus_from_index_list): Likewise.
7839 (create_cus_from_index): Likewise.
7840 (create_signatured_type_table_from_index): Likewise.
7841 (create_cus_from_debug_names_list): Likewise.
7842 (create_cus_from_debug_names): Likewise.
7843 (dwarf2_read_gdb_index): Update.
7844 (dwarf2_read_debug_names): Update.
7845
7846 2020-05-27 Tom Tromey <tom@tromey.com>
7847 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * dwarf2/read.h (struct dwarf2_per_objfile)
7850 <get_type_for_signatured_type, set_type_for_signatured_type>:
7851 New methods.
7852 <m_type_map>: New member.
7853 (struct signatured_type) <type>: Remove.
7854 * dwarf2/read.c
7855 (dwarf2_per_objfile::get_type_for_signatured_type,
7856 dwarf2_per_objfile::set_type_for_signatured_type): New.
7857 (get_signatured_type): Use new methods.
7858
7859 2020-05-27 Tom Tromey <tom@tromey.com>
7860 Simon Marchi <simon.marchi@efficios.com>
7861
7862 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7863 (struct dwarf2_per_objfile) <type_units>: New member.
7864 <get_type_unit_group_unshareable>: New method.
7865 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7866 num_symtabs, symtabs>: Remove; move to
7867 type_unit_group_unshareable.
7868 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7869 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7870 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7871
7872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * dwarf2/read.h (struct dwarf2_per_cu_data):
7875 <dwarf2_per_objfile>: Remove.
7876 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7877 dwarf2_per_objfile.
7878 (create_signatured_type_table_from_index): Likewise.
7879 (create_signatured_type_table_from_debug_names): Likewise.
7880 (create_debug_type_hash_table): Likewise.
7881 (fill_in_sig_entry_from_dwo_entry): Likewise.
7882 (create_type_unit_group): Likewise.
7883 (read_comp_units_from_section): Likewise.
7884 (create_cus_hash_table): Likewise.
7885
7886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7889 dwarf2_per_cu_data::dwarf2_per_objfile.
7890 (compute_compunit_symtab_includes): Likewise.
7891 (dwarf2_cu::start_symtab): Likewise.
7892
7893 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7894
7895 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7896 parameter.
7897 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7898 (read_namespace_alias): Update.
7899 (lookup_die_type): Update.
7900 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7902 Update.
7903 (disassemble_dwarf_expression): Update.
7904
7905 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * dwarf2/read.h (struct dwarf2_queue_item): Add
7908 dwarf2_per_objfile parameter, assign new parameter.
7909 <per_objfile>: New field.
7910 * dwarf2/read.c (free_one_cached_comp_unit): Add
7911 dwarf2_per_objfile parameter.
7912 (queue_comp_unit): Likewise.
7913 (dw2_do_instantiate_symtab): Update.
7914 (process_psymtab_comp_unit): Update.
7915 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7916 (process_imported_unit_die): Update.
7917 (queue_and_load_dwo_tu): Update.
7918 (follow_die_offset): Update.
7919 (follow_die_sig_1): Update.
7920
7921 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7922
7923 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7924 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7925 (read_call_site_scope): Assign per_objfile.
7926 (dwarf2_per_cu_data::objfile): Remove.
7927 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7928 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7929 dwarf2_per_objfile parameter.
7930 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7931 dwarf2_per_objfile parameter.
7932 (dwarf_expr_reg_to_entry_parameter): Add output
7933 dwarf2_per_objfile parameter.
7934 (locexpr_get_frame_base): Update.
7935 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7936 <push_dwarf_reg_entry_value>: Update.
7937 <call_site_to_target_addr>: Update.
7938 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7939 parameter.
7940 (value_of_dwarf_reg_entry): Update.
7941 (rw_pieced_value): Update.
7942 (indirect_synthetic_pointer): Update.
7943 (dwarf2_evaluate_property): Update.
7944 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7945 parameter.
7946 (locexpr_read_variable): Update.
7947 (locexpr_get_symbol_read_needs): Update.
7948 (loclist_read_variable): Update.
7949
7950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7951
7952 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
7957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7958 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7959 parameter.
7960 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7961 sect_variable_value): Add dwarf2_per_objfile parameter.
7962 (class dwarf_evaluate_loc_desc) <dwarf_call,
7963 dwarf_variable_value>: Update.
7964 (fetch_const_value_from_synthetic_pointer): Add
7965 dwarf2_per_objfile parameter.
7966 (fetch_const_value_from_synthetic_pointer): Update.
7967 (coerced_pieced_ref): Update.
7968 (class symbol_needs_eval_context) <dwarf_call,
7969 dwarf_variable_value>: Update.
7970 (dwarf2_compile_expr_to_ax): Update.
7971
7972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7973
7974 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7975 parameter.
7976 (dwarf2_evaluate_loc_desc_full): Update.
7977
7978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7979
7980 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7981 parameter.
7982 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7983 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7984 dwarf2_per_objfile parameter.
7985 (decode_debug_loc_dwo_addresses): Likewise.
7986 (dwarf2_find_location_expression): Update.
7987 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7988 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7989 parameter.
7990 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7991 parameter.
7992 (locexpr_describe_location_1): Likewise.
7993 (locexpr_describe_location): Update.
7994
7995 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7996
7997 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7998 Remove.
7999 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
8000 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
8001 (dwarf2_compile_property_to_c): Update.
8002 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
8003 use text offset from objfile.
8004 (locexpr_tracepoint_var_ref): Update.
8005 (locexpr_generate_c_location): Update.
8006 (loclist_describe_location): Update.
8007 (loclist_tracepoint_var_ref): Update.
8008 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
8009 dwarf2_per_objfile parameter.
8010 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
8011 use text offset from objfile.
8012 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
8013
8014 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8015
8016 * dwarf2/expr.h (struct dwarf_expr_context)
8017 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
8018 <offset>: Remove.
8019 <per_objfile>: New member.
8020 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
8021 dwarf2_per_objfile parameter. Don't set offset, set
8022 per_objfile.
8023 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
8024 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
8025 a dwarf2_per_objfile object instead of an offset.
8026 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
8027 constructor.
8028 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
8029 to dwarf2_expr_executor constructor. Don't set offset.
8030 (dwarf2_fetch_cfa_info): Update.
8031 (struct dwarf2_frame_cache) <text_offset>: Remove.
8032 <per_objfile>: New field.
8033 (dwarf2_frame_cache): Update.
8034 (dwarf2_frame_prev_register): Update.
8035 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8036 <dwarf_evaluate_loc_desc>: Add constructor.
8037 (dwarf2_evaluate_loc_desc_full): Update.
8038 (dwarf2_locexpr_baton_eval): Update.
8039 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
8040 Add constructor.
8041 (dwarf2_loc_desc_get_symbol_read_needs): Update.
8042
8043 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
8046 addr_sized_int_type>: Move to dwarf2_cu.
8047 <int_type>: Move to dwarf2_per_objfile.
8048 (struct dwarf2_per_objfile) <int_type>: Move here.
8049 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
8050 addr_sized_int_type>: Move here.
8051 (read_func_scope): Update.
8052 (read_array_type): Update.
8053 (read_tag_string_type): Update.
8054 (attr_to_dynamic_prop): Update.
8055 (dwarf2_per_cu_data::int_type): Rename to...
8056 (dwarf2_per_objfile::int_type): ... this.
8057 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
8058 (dwarf2_cu::addr_sized_int_type): ... this.
8059 (read_subrange_type): Update.
8060 (dwarf2_per_cu_data::addr_type): Rename to...
8061 (dwarf2_cu::addr_type): ... this.
8062 (set_die_type): Update.
8063
8064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
8067 data through per_cu->cu.
8068
8069 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * dwarf2/read.c (lookup_dwo_comp_unit): Change
8072 dwarf2_per_cu_data parameter fo dwarf2_cu.
8073 (lookup_dwo_type_unit): Likewise.
8074 (read_cutu_die_from_dwo): Likewise.
8075 (lookup_dwo_unit): Likewise.
8076 (open_and_init_dwo_file): Likewise.
8077 (lookup_dwo_cutu): Likewise.
8078 (lookup_dwo_comp_unit): Likewise.
8079 (lookup_dwo_type_unit): Likewise.
8080 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8081 (cutu_reader::cutu_reader): Update.
8082
8083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8084
8085 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
8086 parameter.
8087 (process_full_type_unit): Likewise.
8088 (process_queue): Update.
8089
8090 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * dwarf2/read.c (recursively_compute_inclusions): Add
8093 dwarf2_per_objfile parameter.
8094 (compute_compunit_symtab_includes): Likewise.
8095 (process_cu_includes): Update.
8096
8097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8098
8099 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
8100 parameter.
8101 (create_type_unit_group): Update.
8102 (process_psymtab_comp_unit_reader): Update.
8103 (build_type_psymtabs_reader): Update.
8104
8105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8108 object through m_this_cu->cu.
8109
8110 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8113 the info parameter.
8114 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8115
8116 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8117
8118 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8119 per_objfile parameter.
8120 (load_full_type_unit): Add per_objfile parameter.
8121 (read_signatured_type): Likewise.
8122 (load_full_comp_unit): Likewise.
8123 (load_cu): Likewise.
8124 (dw2_do_instantiate_symtab): Likewise.
8125 (dw2_get_file_names): Likewise.
8126 (dw2_map_symtabs_matching_filename): Update.
8127 (dw_expand_symtabs_matching_file_matcher): Update.
8128 (dw2_map_symbol_filenames): Update.
8129 (process_psymtab_comp_unit): Add per_objfile parameter.
8130 (build_type_psymtabs_1): Update.
8131 (process_skeletonless_type_unit): Update.
8132 (dwarf2_build_psymtabs_hard): Update.
8133 (load_partial_comp_unit): Add per_objfile parameter.
8134 (scan_partial_symbols): Update.
8135 (load_full_comp_unit): Add per_objfile parameter.
8136 (process_imported_unit_die): Update.
8137 (create_cus_hash_table): Update.
8138 (find_partial_die): Update.
8139 (dwarf2_read_addr_index): Update.
8140 (follow_die_offset): Update.
8141 (dwarf2_fetch_die_loc_sect_off): Update.
8142 (dwarf2_fetch_constant_bytes): Update.
8143 (dwarf2_fetch_die_type_sect_off): Update.
8144 (follow_die_sig_1): Update.
8145 (load_full_type_unit): Add per_objfile parameter.
8146 (read_signatured_type): Likewise.
8147
8148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8149
8150 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8151 of objfile_name.
8152
8153 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8154
8155 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8156 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8157 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8158 field.
8159 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8160 (create_cus_from_index): Update.
8161 (dwarf2_read_gdb_index): Update.
8162 (create_cus_from_debug_names): Update.
8163 (dwarf2_read_debug_names): Update.
8164 (get_abbrev_section_for_cu): Update.
8165 (create_all_comp_units): Update.
8166 (read_attribute_value): Update.
8167 (get_debug_line_section): Update.
8168 * dwarf2/index-cache.c (index_cache::store): Update.
8169 * dwarf2/index-write.c (save_gdb_index_command): Update.
8170 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8171
8172 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8175 member.
8176 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8177 dwarf2_per_cu_data::per_bfd.
8178 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8179 (create_type_unit_group): Likewise.
8180 (queue_comp_unit): Remove reference to
8181 per_cu->dwarf2_per_objfile.
8182 (maybe_queue_comp_unit): Likewise.
8183 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8184 (create_cus_hash_table): Assign new field.
8185
8186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8187
8188 * dwarf2/read.c: Replace
8189 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8190 dwarf2_cu->per_objfile throughout.
8191
8192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8193
8194 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8195 parameter, don't use per_cu->dwarf2_per_objfile.
8196 (dw2_instantiate_symtab): Likewise.
8197 (dw2_find_last_source_symtab): Update.
8198 (dw2_map_expand_apply): Update.
8199 (dw2_lookup_symbol): Update.
8200 (dw2_expand_symtabs_for_function): Update.
8201 (dw2_expand_all_symtabs): Update.
8202 (dw2_expand_symtabs_with_fullname): Update.
8203 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8204 don't use per_cu->dwarf2_per_objfile.
8205 (dw2_expand_marked_cus): Update.
8206 (dw2_find_pc_sect_compunit_symtab): Update.
8207 (dw2_debug_names_lookup_symbol): Update.
8208 (dw2_debug_names_expand_symtabs_for_function): Update.
8209 (dw2_debug_names_map_matching_symbols): Update.
8210 (dwarf2_psymtab::expand_psymtab): Update.
8211
8212 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8213
8214 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8215 <per_objfile>: New member.
8216 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8217 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8218 call to dwarf2_cu.
8219 (cutu_reader::cutu_reader): Update.
8220 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8221
8222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8225 struct dwarf2_per_objfile.
8226 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8227 dwarf2_per_bfd.
8228 * dwarf2/read.c (set_die_type): Update.
8229 (get_die_type_at_offset): Update.
8230
8231 2020-05-27 Tom Tromey <tom@tromey.com>
8232 Simon Marchi <simon.marchi@efficios.com>
8233
8234 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8235 method.
8236 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8237 get_symtab, set_symtab>: New methods.
8238 <m_symtabs>: New field.
8239 (struct dwarf2_psymtab): Derive from partial_symtab.
8240 <readin_p, get_compunit_symtab>: Declare methods.
8241 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8242 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8243 New methods.
8244 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8245 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8246 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8247 (dw2_symtab_iter_next, dw2_print_stats)
8248 (dw2_expand_symtabs_with_fullname)
8249 (dw2_expand_symtabs_matching_one)
8250 (dw_expand_symtabs_matching_file_matcher)
8251 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8252 (dw2_debug_names_iterator::next)
8253 (dw2_debug_names_map_matching_symbols)
8254 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8255 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8256 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8257 New methods.
8258 (get_compunit_symtab, process_full_comp_unit)
8259 (process_full_type_unit): Update.
8260 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8261
8262 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8265 then introduce a new dwarf2_per_objfile type.
8266 <read_line_string>: Move to the new dwarf2_per_objfile type.
8267 <objfile>: Likewise.
8268 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8269 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8270 dwarf2_per_objfile->per_bfd.
8271 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8272 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8273 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8274 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8275 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8276 (dwarf2_per_objfile::locate_sections): Rename to...
8277 (dwarf2_per_bfd::locate_sections): ... this.
8278 (dwarf2_per_objfile::get_cutu): Rename to...
8279 (dwarf2_per_bfd::get_cutu): ... this.
8280 (dwarf2_per_objfile::get_cu): Rename to...
8281 (dwarf2_per_bfd::get_cu): ... this.
8282 (dwarf2_per_objfile::get_tu): Rename to...
8283 (dwarf2_per_bfd::get_tu): ... this.
8284 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8285 (dwarf2_per_bfd::allocate_per_cu): ... this.
8286 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8287 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8288 (get_gdb_index_contents_ftype): Change parameter from
8289 dwarf2_per_objfile to dwarf2_per_bfd.
8290 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8291 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8292
8293 2020-05-27 Tom Tromey <tom@tromey.com>
8294 Simon Marchi <simon.marchi@efficios.com>
8295
8296 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8297 (allocate_piece_closure): Set "per_objfile" member.
8298 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8299 (locexpr_describe_location, loclist_describe_location): Use new
8300 member.
8301 * dwarf2/read.c (read_call_site_scope)
8302 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8303 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8304 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8305 handle_data_member_location): Set per_objfile member.
8306 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8307 member.
8308 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8309
8310 2020-05-27 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8313 allocate_signatured_type>: Declare new methods.
8314 <m_num_psymtabs>: New member.
8315 (struct dwarf2_per_cu_data) <index>: New member.
8316 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8317 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8318 (create_cu_from_index_list): Use allocate_per_cu.
8319 (create_signatured_type_table_from_index)
8320 (create_signatured_type_table_from_debug_names)
8321 (create_debug_type_hash_table, add_type_unit)
8322 (read_comp_units_from_section): Use allocate_signatured_type.
8323
8324 2020-05-27 Tom Tromey <tom@tromey.com>
8325
8326 * psymtab.c (partial_map_expand_apply)
8327 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8328 (psym_lookup_global_symbol_language)
8329 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8330 (psym_print_stats, psym_expand_symtabs_for_function)
8331 (psym_map_symbol_filenames, psym_map_matching_symbols)
8332 (psym_expand_symtabs_matching)
8333 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8334 (maintenance_check_psymtabs): Update.
8335 * psympriv.h (struct partial_symtab) <readin_p,
8336 get_compunit_symtab>: Add objfile parameter.
8337 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8338 Likewise.
8339 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8340 get_compunit_symtab>: Likewise.
8341 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8342
8343 2020-05-27 Tom Tromey <tom@tromey.com>
8344
8345 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8346 member.
8347 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8348 (create_cu_from_index_list)
8349 (create_signatured_type_table_from_index)
8350 (create_signatured_type_table_from_debug_names)
8351 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8352 (dwarf2_create_include_psymtab)
8353 (create_debug_type_hash_table, add_type_unit)
8354 (create_type_unit_group, read_comp_units_from_section)
8355 (dwarf2_compute_name, create_cus_hash_table)
8356 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8357 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8358 obstack.
8359 (dw2_get_real_path): Likewise. Change argument to
8360 dwarf2_per_objfile.
8361
8362 2020-05-27 Luis Machado <luis.machado@linaro.org>
8363
8364 PR tdep/26000
8365 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8366 for ldrd (immediate).
8367
8368 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8369
8370 * command.h: Add comment giving the name of class_tui.
8371 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8372 create the fake command for the help for class_tui.
8373
8374 2020-05-26 Tom Tromey <tromey@adacore.com>
8375
8376 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8377 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8378 (val_atr): New function.
8379 (value_val_atr): Use it.
8380 * ada-valprint.c (print_optional_low_bound): Change low bound
8381 handling for enums.
8382 (val_print_packed_array_elements): Don't call discrete_position.
8383 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8384 discrete_position for enum types.
8385 * language.c (default_print_array_index): Change type.
8386 * language.h (struct language_defn) <la_print_array_index>: Add
8387 index_type parameter, change type of index_value.
8388 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8389 (default_print_array_index): Update.
8390 * valprint.c (maybe_print_array_index): Don't call
8391 value_from_longest. Update.
8392 (value_print_array_elements): Don't call discrete_position.
8393
8394 2020-05-26 Tom Tromey <tromey@adacore.com>
8395
8396 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8397 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8398
8399 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8400
8401 PR gdb/13519
8402 * avr-tdep.c (avr_integer_to_address): Return data or code
8403 address accordingly to the second 'type' argument of the
8404 function.
8405
8406 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8407
8408 * infcmd.c, inferior.h: (construct_inferior_arguments):
8409 Moved function from here to gdbsupport/common-inferior.{h,cc}
8410
8411 2020-05-23 Tom Tromey <tom@tromey.com>
8412
8413 Revert commit eca1f90c:
8414 * NEWS: Remove entry for completion styling.
8415 * completer.c (_rl_completion_prefix_display_length): Move
8416 declaration later.
8417 (gdb_fnprint): Revert.
8418 (gdb_display_match_list_1): Likewise.
8419 * cli/cli-style.c (completion_prefix_style)
8420 (completion_difference_style, completion_suffix_style): Remove.
8421 (_initialize_cli_style): Revert.
8422 * cli/cli-style.h (completion_prefix_style)
8423 (completion_difference_style, completion_suffix_style): Don't
8424 declare.
8425
8426 2020-05-24 Pedro Alves <palves@redhat.com>
8427
8428 * symtab.c (completion_list_add_name): Return boolean indication
8429 of whether the symbol matched.
8430 (completion_list_add_symbol): Don't try to remove C++ aliases if
8431 the symbol didn't match in the first place.
8432 * symtab.h (completion_list_add_name): Return bool.
8433
8434 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8435
8436 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8437 type::field.
8438
8439 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8440
8441 GDB 9.2 released.
8442
8443 2020-05-23 Tom Tromey <tom@tromey.com>
8444
8445 * NEWS: Add entry for completion styling.
8446 * completer.c (_rl_completion_prefix_display_length): Move
8447 declaration earlier.
8448 (gdb_fnprint): Use completion_style.
8449 (gdb_display_match_list_1): Likewise.
8450 * cli/cli-style.c (completion_prefix_style)
8451 (completion_difference_style, completion_suffix_style): New
8452 globals.
8453 (_initialize_cli_style): Register new globals.
8454 * cli/cli-style.h (completion_prefix_style)
8455 (completion_difference_style, completion_suffix_style): Declare.
8456
8457 2020-05-23 Pedro Alves <palves@redhat.com>
8458
8459 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8460 (parse_escape): Use ISDIGIT instead of isdigit.
8461 (puts_debug): Use gdb_isprint instead of isprint.
8462 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8463 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8464 ISSPACE instead of isspace.
8465 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8466 instead of isspace.
8467 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8468 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8469 instead of isxdigit and ISDIGIT instead of isdigit.
8470
8471 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8472
8473 * gdbtypes.h (struct type) <field>: New method.
8474 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8475 or type::field.
8476
8477 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8480 (TYPE_FIELDS): Use type::fields. Change all call sites that
8481 modify the propery to use type::set_fields instead.
8482
8483 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8486 type::num_fields instead.
8487
8488 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8489
8490 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8491 methods.
8492 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8493 that modify the number of fields to use type::set_num_fields
8494 instead.
8495
8496 2020-05-22 Tom Tromey <tromey@adacore.com>
8497
8498 * compile/compile-object-load.h (munmap_list_free): Don't
8499 declare.
8500
8501 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8502
8503 * annotate.c (annotate_source_line): Update return type, add call
8504 to update current symtab and line.
8505 * annotate.h (annotate_source_line): Update return type, and
8506 extend header comment.
8507 * source.c (info_line_command): Check annotation_level before
8508 calling annotate_source_line.
8509 * stack.c (print_frame_info): If calling annotate_source_line
8510 returns true, then don't print any other source line information.
8511
8512 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8513
8514 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8515
8516 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * coffread.c (patch_type): Remove NULL check before xfree.
8519 * corefile.c (set_gnutarget): Likewise.
8520 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8521 * exec.c (build_section_table): Likewise.
8522 * remote.c (remote_target::pass_signals): Likewise.
8523 * utils.c (n_spaces): Likewise.
8524 * cli/cli-script.c (document_command): Likewise.
8525 * i386-windows-tdep.c (core_process_module_section): Likewise.
8526 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8527
8528 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * symfile.c (reread_symbols): Clear objfile's section_offsets
8531 vector and section indices, re-compute them by calling
8532 sym_offsets.
8533
8534 2020-05-20 Tom Tromey <tromey@adacore.com>
8535
8536 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8537 (desc_one_bound, desc_index_type): Compute field name.
8538
8539 2020-05-20 Tom de Vries <tdevries@suse.de>
8540
8541 PR symtab/25833
8542 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8543
8544 2020-05-20 Alan Modra <amodra@gmail.com>
8545
8546 PR 25993
8547 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8548 bfd_set_filename.
8549 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8550 passed to bfd_set_filename.
8551 * symfile-mem.c (add_vsyscall_page): Likewise for string
8552 passed to symbol_file_add_from_memory.
8553 (symbol_file_add_from_memory): Make name param a const char* and
8554 don't strdup.
8555
8556 2020-05-20 Alan Modra <amodra@gmail.com>
8557
8558 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8559 rather than accessing bfd->filename directly.
8560 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8561 and use bfd_section_name.
8562 * dwarf2/frame.c (decode_frame_entry): Likewise.
8563 * exec.c (exec_set_section_address): Likewise.
8564 * solib-aix.c (solib_aix_bfd_open): Likewise.
8565 * stap-probe.c (get_stap_base_address): Likewise.
8566 * symfile.c (reread_symbols): Likewise.
8567
8568 2020-05-19 Tom Tromey <tromey@adacore.com>
8569
8570 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8571
8572 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8573
8574 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8575
8576 2020-05-19 Pedro Alves <palves@redhat.com>
8577
8578 * NEWS (set exec-file-mismatch): Adjust entry.
8579 * exec.c: Include "build-id.h".
8580 (validate_exec_file): Try to match build IDs instead of filenames.
8581 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8582 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8583 and pass down 'warn_if_slow'.
8584 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8585 gdb_bfd_open_closure to pass it down.
8586 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8587
8588 2020-05-19 Pedro Alves <palves@redhat.com>
8589
8590 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8591 * target.c (target_fileio_open_1): Rename to target_fileio_open
8592 and make extern. Use bool.
8593 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8594 (target_fileio_read_alloc_1): Adjust.
8595 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8596 (target_fileio_open_warn_if_slow): Delete declaration.
8597
8598 2020-05-19 Pedro Alves <palves@redhat.com>
8599
8600 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8601 Adjust all callers.
8602
8603 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8604
8605 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8606 whether disp is negative.
8607
8608 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8609
8610 * symfile.h (struct symfile_segment_data)
8611 <~symfile_segment_data>: Remove.
8612 <segment_info>: Change to std::vector.
8613 * symfile.c (default_symfile_segments): Update.
8614 * elfread.c (elf_symfile_segments): Update.
8615
8616 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8619 <segments>: New.
8620 <segment_bases, segment_sizes>: Remove.
8621 * symfile.c (default_symfile_segments): Update.
8622 * elfread.c (elf_symfile_segments): Update.
8623 * remote.c (remote_target::get_offsets): Update.
8624 * solib-target.c (solib_target_relocate_section_addresses):
8625 Update.
8626
8627 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * symfile.h (struct symfile_segment_data): Initialize fields.
8630 <~symfile_segment_data>: Add.
8631 (symfile_segment_data_up): New.
8632 (struct sym_fns) <sym_segments>: Return a
8633 symfile_segment_data_up.
8634 (default_symfile_segments): Return a symfile_segment_data_up.
8635 (free_symfile_segment_data): Remove.
8636 (get_symfile_segment_data): Return a symfile_segment_data_up.
8637 * symfile.c (default_symfile_segments): Likewise.
8638 (get_symfile_segment_data): Likewise.
8639 (free_symfile_segment_data): Remove.
8640 (symfile_find_segment_sections): Update.
8641 * elfread.c (elf_symfile_segments): Return a
8642 symfile_segment_data_up.
8643 * remote.c (remote_target::get_offsets): Update.
8644 * solib-target.c (solib_target_relocate_section_addresses):
8645 Update.
8646 * symfile-debug.c (debug_sym_segments): Return a
8647 symfile_segment_data_up.
8648
8649 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8650
8651 PR build/25981
8652 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8653 Hardcode register numbers.
8654
8655 PR build/25981
8656 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8657 procfs_find_LDT_entry): Remove.
8658 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8659 procfs_find_LDT_entry): Remove.
8660 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8661 Remove.
8662
8663 2020-05-17 Pedro Alves <palves@redhat.com>
8664 Andrew Burgess <andrew.burgess@embecosm.com>
8665 Keno Fischer <keno@juliacomputing.com>
8666
8667 PR gdb/25741
8668 * breakpoint.c (build_target_condition_list): Update comments.
8669 (build_target_command_list): Update comments and skip matching
8670 locations.
8671 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8672 a separate function. Simplify "set breakpoint auto-hw off"
8673 handling.
8674 (insert_breakpoints): Update comment.
8675 (tracepoint_locations_match): New parameter. For breakpoints,
8676 compare location types too, if the caller wants to.
8677 (handle_automatic_hardware_breakpoints): New functions.
8678 (bp_location_is_less_than): Also sort by location type and
8679 hardware breakpoint length.
8680 (update_global_location_list): Handle "set breakpoint auto-hw on"
8681 here.
8682 (update_breakpoint_locations): Ask breakpoint_locations_match to
8683 ignore location types.
8684
8685 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8686
8687 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8688 type::name instead.
8689
8690 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8691
8692 * gdbtypes.h (struct type) <name, set_name>: New methods.
8693 (TYPE_CODE): Use type::name. Change all call sites used to set
8694 the name to use type::set_name instead.
8695
8696 2020-05-16 Tom Tromey <tom@tromey.com>
8697
8698 * top.c (quit_force): Update.
8699 * infrun.c (handle_no_resumed): Update.
8700 * top.h (all_uis): New function.
8701 (ALL_UIS): Remove.
8702
8703 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8704
8705 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8706
8707 2020-05-16 Pedro Alves <palves@redhat.com>
8708
8709 * ia64-linux-nat.c
8710 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8711 Declare method.
8712 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8713
8714 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8717 (sparc64_adi_info): Likewise.
8718
8719 2020-05-15 Tom Tromey <tom@tromey.com>
8720
8721 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8722 block_objfile.
8723 (lookup_objfile_from_block): Remove.
8724 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8725 (lookup_global_symbol): Use block_objfile.
8726 * symtab.h (lookup_objfile_from_block): Don't declare.
8727 * printcmd.c (clear_dangling_display_expressions): Use
8728 block_objfile.
8729 * parse.c (operator_check_standard): Use block_objfile.
8730
8731 2020-05-15 Tom Tromey <tom@tromey.com>
8732
8733 * language.c (language_alloc_type_symbol): Set
8734 SYMBOL_SECTION.
8735 * symtab.c (initialize_objfile_symbol): Remove.
8736 (allocate_symbol): Remove.
8737 (allocate_template_symbol): Remove.
8738 * dwarf2/read.c (fixup_go_packaging): Use "new".
8739 (new_symbol): Use "new".
8740 (read_variable): Don't call initialize_objfile_symbol. Use
8741 "new".
8742 (read_func_scope): Use "new".
8743 * xcoffread.c (process_xcoff_symbol): Don't call
8744 initialize_objfile_symbol.
8745 (SYMBOL_DUP): Remove.
8746 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8747 "new".
8748 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8749 (allocate_template_symbol): Don't declare.
8750 (struct symbol): Add copy constructor. Change defaults.
8751 * jit.c (finalize_symtab): Use "new".
8752 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8753 Use "new".
8754 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8755 (common_block_end): Use "new".
8756 * mdebugread.c (parse_symbol): Use "new".
8757 (new_symbol): Likewise.
8758
8759 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8760
8761 * NEWS: Mention changes to help and apropos.
8762
8763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8764
8765 * command.h (enum command_class): Improve comments, document
8766 that class_alias is for user-defined aliases, give the class
8767 name for each class, remove unused class_xdb.
8768 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8769 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8770 by a precise class.
8771 * infcmd.c (_initialize_infcmd): Likewise.
8772 * reverse.c (_initialize_reverse): Likewise.
8773 * stack.c (_initialize_stack): Likewise.
8774 * symfile.c (_initialize_symfile): Likewise.
8775 * tracepoint.c (_initialize_tracepoint): Likewise.
8776
8777 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8778
8779 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8780 when their aliased command is traversed.
8781 (help_cmd): Add fput_command_names_styled call to
8782 output command name and aliases when command has an alias.
8783
8784 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8785
8786 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8787 * cli/cli-decode.c (help_cmd_list): Declare as static,
8788 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8789 a command together with the command.
8790 (fput_command_name_styled, fput_command_names_styled): New functions.
8791 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8792 fput_command_name_styled.
8793 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8794 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8795
8796 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8797
8798 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8799 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8800 * command.h (cmd_show_list): Likewise.
8801 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8802 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8803
8804 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8805
8806 * unittests/command-def-selftests.c (traverse_command_structure):
8807 Verify all commands of a list have the same prefix command and
8808 that only the top cmdlist commands have a null prefix.
8809
8810 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8811
8812 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8813 as prefix, not one of its aliases.
8814 (set_cmd_prefix): Remove.
8815 (do_add_cmd): Centralize the setting of the prefix of a command, when
8816 command is defined after its full chain of prefix commands.
8817 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8818 (add_setshow_cmd_full): Likewise.
8819 (update_prefix_field_of_prefixed_commands): New function.
8820 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8821 update_prefix_field_of_prefixed_commands.
8822 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8823 addresses of remote_set_cmdlist and remote_show_cmdlist given
8824 as argument, not the address of an argument.
8825 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8826 * gdb/remote.c (_initialize_remote): Likewise.
8827
8828 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8829
8830 * cli/cli-cmds.c (alias_command): Check for an existing alias
8831 using lookup_cmd_composition, as valid_command_p is too strict
8832 and forbids aliases that are the prefix of an existing alias
8833 or command.
8834 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8835 command is properly recognised as a valid command.
8836
8837 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8838
8839 * unittests/help-doc-selftests.c: Rename to
8840 unittests/command-def-selftests.c
8841 * unittests/command-def-selftests.c (help_doc_tests): Update some
8842 comments.
8843 (command_structure_tests, traverse_command_structure): New namespace
8844 and function.
8845 (command_structure_invariants_tests): New function.
8846 (_initialize_command_def_selftests) Renamed from
8847 _initialize_help_doc_selftests, register command_structure_invariants
8848 selftest.
8849
8850 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8851
8852 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8853 an alias of 'show'.
8854
8855 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8856
8857 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8858 ada_is_fixed_point_type. Update all callers.
8859 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8860 all callers.
8861 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8862 Update all callers.
8863 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8864 print_fixed_point_type. Update all callers.
8865 * ada-valprint.c (ada_value_print_num): Replace call to
8866 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8867
8868 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8869
8870 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8871 processors.
8872 (cpu_supports_bts): Add CV_AMD case.
8873
8874 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8875 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * infrun.c (stop_all_threads): Collect multiple wait events at
8878 each pass.
8879
8880 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8881
8882 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8883 type::code instead.
8884
8885 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8886
8887 * gdbtypes.h (struct type) <code, set_code>: New methods.
8888 (TYPE_CODE): Use type::code. Change all call sites used to set
8889 the code to use type::set_code instead.
8890
8891 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8892 Tom de Vries <tdevries@suse.de>
8893 Pedro Alves <palves@redhat.com>
8894
8895 PR threads/25478
8896 * infrun.c (stop_all_threads): Do NOT ignore
8897 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8898 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8899 received.
8900 (handle_no_resumed): Remove code handling a live inferior with no
8901 threads.
8902 * remote.c (has_single_non_exited_thread): New.
8903 (remote_target::update_thread_list): Do not delete a thread if is
8904 the last thread of the process.
8905 * thread.c (thread_select): Call delete_exited_threads instead of
8906 prune_threads.
8907
8908 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8909
8910 * infrun.c (stop_all_threads): Enable/disable thread events of all
8911 targets. Move a debug message denoting the end of the function
8912 into the SCOPED_EXIT block.
8913
8914 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8915
8916 * process-stratum-target.h: Include <set>.
8917 (all_non_exited_process_targets, switch_to_target_no_thread): New
8918 function declarations.
8919 * process-stratum-target.c (all_non_exited_process_targets)
8920 (switch_to_target_no_thread): New function implementations.
8921
8922 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8923
8924 * infrun.c (handle_inferior_event): Extract out a piece of code
8925 into...
8926 (mark_non_executing_threads): ...this new function.
8927
8928 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8929
8930 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8931 use.
8932
8933 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8934
8935 * regcache.c (regcache_read_pc_protected): New function
8936 implementation that returns 0 if the PC cannot read via
8937 'regcache_read_pc'.
8938 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8939 instead of 'regcache_read_pc'.
8940 (keep_going_pass_signal): Ditto.
8941
8942 2020-05-13 Tom Tromey <tromey@adacore.com>
8943
8944 * ada-lang.c (align_value): Remove.
8945 (ada_template_to_fixed_record_type_1): Use align_up.
8946
8947 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8948
8949 * async-event.c: Update the copyright year.
8950 * async-event.h: Update the copyright year.
8951
8952 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * objfiles.h (is_addr_in_objfile,
8955 shared_objfile_contains_address_p): Return bool.
8956 * objfile.c (is_addr_in_objfile,
8957 shared_objfile_contains_address_p): Return bool.
8958
8959 2020-05-11 Tom Tromey <tromey@adacore.com>
8960
8961 * cli/cli-cmds.c (info_command): Restore.
8962 (_initialize_cli_cmds): Use add_prefix_command for "info".
8963 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8964
8965 2020-05-11 Tom Tromey <tromey@adacore.com>
8966
8967 * ada-lang.c (ada_value_primitive_field): Now public.
8968 * ada-lang.h (ada_value_primitive_field): Declare.
8969 * ada-valprint.c (print_field_values): Use
8970 ada_value_primitive_field for wrapper fields.
8971
8972 2020-05-11 Tom de Vries <tdevries@suse.de>
8973
8974 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8975 MODULE_DOMAIN.
8976
8977 2020-05-11 Tom de Vries <tdevries@suse.de>
8978
8979 PR symtab/25941
8980 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8981 with length 0, if not gdb-produced.
8982 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8983
8984 2020-05-09 Tom de Vries <tdevries@suse.de>
8985
8986 PR gdb/25955
8987 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8988 calculation.
8989
8990 2020-05-09 Tom Tromey <tom@tromey.com>
8991
8992 * top.c (server_command): Now bool.
8993 * top.h (server_command): Now bool.
8994
8995 2020-05-08 Tom Tromey <tromey@adacore.com>
8996
8997 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8998 already being processed.
8999
9000 2020-05-08 Tom Tromey <tom@tromey.com>
9001
9002 * printcmd.c (struct display) <next>: Remove.
9003 <display>: New constructor.
9004 <exp_string>: Now a std::string.
9005 <enabled_p>: Now a bool.
9006 (display_number): Move definition earlier.
9007 (displays): Rename from display_chain. Now a std::vector.
9008 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
9009 (display_command): Update.
9010 (do_one_display, disable_display)
9011 (enable_disable_display_command, do_enable_disable_display):
9012 Update.
9013 (free_display): Remove.
9014 (clear_displays): Rewrite.
9015 (delete_display): Update.
9016 (map_display_numbers): Use function_view. Remove "data"
9017 parameter. Update.
9018 (do_delete_display): Remove.
9019 (undisplay_command): Update.
9020 (do_one_display, do_displays, disable_display)
9021 (info_display_command): Update.
9022 (do_enable_disable_display): Remove.
9023 (enable_disable_display_command)
9024 (clear_dangling_display_expressions): Update.
9025
9026 2020-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * symtab.c (set_symbol_cache_size)
9029 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
9030 (maintenance_print_symbol_cache_statistics): Update.
9031 * symmisc.c (print_symbol_bcache_statistics)
9032 (print_objfile_statistics, maintenance_print_objfiles)
9033 (maintenance_info_symtabs, maintenance_check_symtabs)
9034 (maintenance_expand_symtabs, maintenance_info_line_tables):
9035 Update.
9036 * symfile-debug.c (set_debug_symfile): Update.
9037 * source.c (forget_cached_source_info): Update.
9038 * python/python.c (gdbpy_progspaces): Update.
9039 * psymtab.c (maintenance_info_psymtabs): Update.
9040 * probe.c (parse_probes): Update.
9041 * linespec.c (iterate_over_all_matching_symtabs)
9042 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
9043 * guile/scm-progspace.c (gdbscm_progspaces): Update.
9044 * exec.c (exec_target::close): Update.
9045 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
9046 * breakpoint.c (print_one_breakpoint_location)
9047 (create_longjmp_master_breakpoint)
9048 (create_std_terminate_master_breakpoint): Update.
9049 * progspace.c (program_spaces): Now a std::vector.
9050 (maybe_new_address_space): Update.
9051 (add_program_space): Remove.
9052 (program_space::program_space): Update.
9053 (remove_program_space): Update.
9054 (number_of_program_spaces): Remove.
9055 (print_program_space, update_address_spaces): Update.
9056 * progspace.h (program_spaces): Change type.
9057 (ALL_PSPACES): Remove.
9058 (number_of_program_spaces): Don't declare.
9059 (struct program_space) <next>: Remove.
9060
9061 2020-05-08 Tom Tromey <tom@tromey.com>
9062
9063 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
9064 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
9065 (enable_break): Update.
9066 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
9067 (frv_fdpic_find_canonical_descriptor): Update.
9068 (frv_fetch_objfile_link_map): Update.
9069 * progspace.c (program_space::free_all_objfiles): Update.
9070 (program_space::solibs): New method.
9071 * progspace.h (struct program_space) <solibs>: New method.
9072 * solist.h (master_so_list): Don't declare.
9073 (ALL_SO_LIBS): Remove.
9074 * solib.h (so_list_head): Remove.
9075 (update_solib_list): Update comment.
9076 * solib.c (master_so_list): Remove.
9077 (solib_used, update_solib_list, solib_add)
9078 (info_sharedlibrary_command, clear_solib)
9079 (reload_shared_libraries_1, remove_user_added_objfile): Update.
9080
9081 2020-05-08 Tom Tromey <tom@tromey.com>
9082
9083 * extension.c (extension_languages): Now a std::array.
9084 (ALL_EXTENSION_LANGUAGES): Remove.
9085 (get_ext_lang_defn, get_ext_lang_of_file)
9086 (eval_ext_lang_from_control_command): Update.
9087 (finish_ext_lang_initialization)
9088 (auto_load_ext_lang_scripts_for_objfile)
9089 (ext_lang_type_printers::ext_lang_type_printers)
9090 (apply_ext_lang_type_printers)
9091 (ext_lang_type_printers::~ext_lang_type_printers)
9092 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
9093 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
9094 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
9095 (get_matching_xmethod_workers, ext_lang_colorize)
9096 (ext_lang_before_prompt): Update.
9097 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
9098
9099 2020-05-08 Tom Tromey <tom@tromey.com>
9100
9101 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
9102 overload.
9103 <swap_string, m_string>: Remove.
9104 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
9105 Update.
9106 * stabsread.c (define_symbol, read_type): Update.
9107 * linespec.c (find_linespec_symbols): Update.
9108 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9109 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9110 * dbxread.c (read_dbx_symtab): Update.
9111 * cp-support.h (cp_canonicalize_string_full)
9112 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9113 Return unique_xmalloc_ptr.
9114 * cp-support.c (inspect_type): Update.
9115 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9116 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9117 Likewise.
9118 * c-typeprint.c (print_name_maybe_canonical): Update.
9119 * break-catch-throw.c (check_status_exception_catchpoint):
9120 Update.
9121
9122 2020-05-08 Tom de Vries <tdevries@suse.de>
9123
9124 * infrun.c (follow_fork): Copy current_line and current_symtab to
9125 child thread.
9126
9127 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * async-event.c (struct async_signal_handler, struct
9130 async_event_handler): Reformat, remove typedef.
9131
9132 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9135 access thistype->main_type->dyn_prop_list directly.
9136
9137 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9138
9139 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9140 (remove_dyn_prop): Remove. Update all users to use
9141 type::remove_dyn_prop.
9142 * gdbtypes.c (remove_dyn_prop): Rename to...
9143 (type::remove_dyn_prop): ... this.
9144
9145 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9146
9147 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9148 (add_dyn_prop): Remove. Update all users to use
9149 type::add_dyn_prop.
9150 * gdbtypes.c (add_dyn_prop): Rename to...
9151 (type::add_dyn_prop): ... this.
9152
9153 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9154
9155 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9156 (get_dyn_prop): Remove. Update all users to use
9157 type::dyn_prop.
9158 * gdbtypes.c (get_dyn_prop): Rename to...
9159 (type::dyn_prop): ... this.
9160
9161 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9164
9165 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9168 instruction, skip it if it's there.
9169
9170 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9173
9174 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9175
9176 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9177 * gdbtypes.c (recursive_dump_type): Remove use of
9178 TYPE_INCOMPLETE.
9179
9180 2020-05-03 Tom Tromey <tom@tromey.com>
9181
9182 * breakpoint.c (catch_command, tcatch_command): Remove.
9183 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9184 add_show_prefix_cmd.
9185 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9186 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9187 Remove.
9188 (add_internal_problem_command): Use add_basic_prefix_cmd,
9189 add_show_prefix_cmd.
9190 * mips-tdep.c (set_mipsfpu_command): Remove.
9191 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9192 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9193 (_initialize_index_cache): Use add_basic_prefix_cmd.
9194 * memattr.c (dummy_cmd): Remove.
9195 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9196 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9197 (_initialize_tui_win): Use add_basic_prefix_cmd,
9198 add_show_prefix_cmd.
9199 * cli/cli-logging.c (set_logging_command): Remove.
9200 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9201 add_show_prefix_cmd.
9202 (show_logging_command): Remove.
9203 * target.c (target_command): Remove.
9204 (add_target): Use add_basic_prefix_cmd.
9205
9206 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9207
9208 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9209
9210 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9211
9212 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9213 info_command.
9214
9215 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9216
9217 * nbsd-nat.c (nbsd_enable_proc_events)
9218 (nbsd_nat_target::post_startup_inferior): Add.
9219 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9220 (nbsd_nat_target::update_thread_list): Rewrite.
9221 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9222 "PTRACE_LWP_CREATE".
9223 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9224
9225 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9226
9227 * stack.c (_initialize_stack): Remove duplicated creation
9228 of "frame" command and "f" alias.
9229
9230 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9231
9232 PR gdb/18706
9233 * gdbtypes.c (check_typedef): Calculate size of array of
9234 stubbed type.
9235
9236 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9237
9238 PR gdb/15559
9239 * i386-tdep.c (i386_push_dummy_call): Call
9240 i386_thiscall_push_dummy_call.
9241 (i386_thiscall_push_dummy_call): New function.
9242 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9243 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9244 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9245
9246 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * gdbarch.sh (do_read): Add shellcheck disable directive for
9249 warning SC2162.
9250
9251 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9254 "referenced but not assigned" warning.
9255
9256 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9257
9258 * gdbarch.sh: Remove code that sets fallbackdefault.
9259
9260 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9261
9262 * gdbarch.sh: Use shell operators && and || instead of
9263 -a and -o.
9264
9265 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9266
9267 * gdbarch.sh: Use $(...) instead of `...`.
9268
9269 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9270
9271 * gdbarch.sh: Use double quotes around variables.
9272
9273 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9274
9275 * gdbarch.sh: Use %s with printf, instead of variables in the
9276 format string.
9277
9278 2020-04-29 Tom Tromey <tromey@adacore.com>
9279
9280 PR ada/25875:
9281 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9282 type fields here.
9283 (read_enumeration_type): Call
9284 update_enumeration_type_from_children later. Update comments.
9285 (process_enumeration_scope): Don't create type fields.
9286
9287 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9288
9289 * nbsd-tdep.c: Include "xml-syscall.h".
9290 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9291
9292 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9293
9294 * nbsd-nat.c: Include "sys/wait.h".
9295 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9296 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9297 (nbsd_nat_target::remove_exec_catchpoint)
9298 (nbsd_nat_target::set_syscall_catchpoint): Add.
9299 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9300 (nbsd_nat_target::insert_exec_catchpoint)
9301 (nbsd_nat_target::remove_exec_catchpoint)
9302 (nbsd_nat_target::set_syscall_catchpoint): Add.
9303 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9304 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9305 `nbsd_get_syscall_number'.
9306
9307 2020-04-29 Tom Tromey <tom@tromey.com>
9308
9309 * stack.c (print_block_frame_labels): Remove.
9310
9311 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9312
9313 PR gdb/17320
9314 * ada-valprint.c (val_print_packed_array_elements): Move array
9315 end bracket to new line.
9316 (ada_val_print_string): Remove extra spaces before first array
9317 element.
9318 * c-valprint.c (c_value_print_array): Likewise.
9319 * m2-valprint.c (m2_print_array_contents): Likewise.
9320 (m2_value_print_inner): Likewise.
9321 * p-valprint.c (pascal_value_print_inner): Likewise.
9322 * valprint.c (generic_val_print_array): Likewise.
9323 (value_print_array_elements): Move first array element and array
9324 end bracket to new line.
9325
9326 2020-04-29 Tom de Vries <tdevries@suse.de>
9327
9328 PR symtab/25889
9329 * linespec.c (find_method): Fix ix calculation.
9330
9331 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9332
9333 * syscalls/update-netbsd.sh: New file.
9334 * syscalls/netbsd.xml: Regenerate.
9335 * data-directory/Makefile.in: Register `netbsd.xml' in
9336 `SYSCALLS_FILES'.
9337
9338 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * syscalls/update-freebsd.sh: Add double quotes.
9341
9342 2020-04-28 Tom Tromey <tom@tromey.com>
9343
9344 * NEWS: Update.
9345 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9346 (cmdpy_init): Allow class_tui.
9347
9348 2020-04-28 Mark Williams <mark@myosotissp.com>
9349
9350 PR gdb/24480
9351 * dwarf2read.c: Add missing assingments to list_in_scope when
9352 start_symtab was already called.
9353
9354 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9355
9356 PR gdb/25881
9357 * dwarf2/read.c (offset_map_type): Use
9358 gdb:hash_enum<sect_offset> as hash function.
9359
9360 2020-04-28 Tom de Vries <tdevries@suse.de>
9361
9362 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9363 with DW_AT_signature.
9364
9365 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9366
9367 * configure.ac: Remove check for fs_base/gs_base in
9368 user_regs_struct.
9369 * configure: Re-generate.
9370 * config.in: Re-generate.
9371 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9372 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9373 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9374
9375 2020-04-27 Luis Machado <luis.machado@linaro.org>
9376
9377 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9378 problematic inline frame unwinding situation.
9379 * frame.c (frame_id_computed_p): New function.
9380 * frame.h (frame_id_computed_p): New prototype.
9381
9382 2020-04-26 Tom Tromey <tom@tromey.com>
9383
9384 * command.h (enum command_class) <class_pseudo>: Remove.
9385
9386 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9387
9388 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9389 and whitespace.
9390
9391 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9392
9393 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9394 `PT_GET_PROCESS_STATE' block.
9395
9396 2020-04-24 Tom Tromey <tom@tromey.com>
9397
9398 * symtab.h (symbol_get_demangled_name): Don't declare.
9399 * symtab.c (symbol_get_demangled_name): Remove.
9400 (general_symbol_info::natural_name)
9401 (general_symbol_info::demangled_name): Update.
9402
9403 2020-04-24 Tom Tromey <tom@tromey.com>
9404
9405 PR rust/25025:
9406 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9407
9408 2020-04-24 Tom Tromey <tom@tromey.com>
9409
9410 PR symtab/12707:
9411 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9412 exists.
9413 (new_symbol): Likewise.
9414 * compile/compile-object-load.c (get_out_value_type): Use
9415 symbol_matches_search_name.
9416
9417 2020-04-24 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2/read.c (add_partial_symbol): Do not call
9420 compute_and_set_names.
9421
9422 2020-04-24 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9425 overload.
9426
9427 2020-04-24 Tom Tromey <tom@tromey.com>
9428
9429 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9430 (add_psymbol_to_list): New overload. Make old overload call new
9431 one.
9432 * psympriv.h (add_psymbol_to_list): New overload.
9433
9434 2020-04-24 Tom Tromey <tom@tromey.com>
9435
9436 * dwarf2/read.c (partial_die_info::read) <case
9437 DW_AT_linkage_name>: Use value_as_string.
9438 (dwarf2_string_attr): Use value_as_string.
9439 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9440 method.
9441 * dwarf2/attribute.c (attribute::value_as_string): New method.
9442
9443 2020-04-24 Tom Tromey <tom@tromey.com>
9444
9445 * symtab.c (general_symbol_info::natural_name)
9446 (general_symbol_info::demangled_name): Check for language_rust.
9447
9448 2020-04-24 Tom Tromey <tom@tromey.com>
9449
9450 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9451 (dwarf2_physname): ... from here.
9452 (partial_die_info::read): Add Rust "{" hack.
9453
9454 2020-04-24 Tom Tromey <tom@tromey.com>
9455
9456 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9457 method.
9458 (symbol_set_demangled_name): Don't declare.
9459 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9460 symbol_set_demangled_name.
9461 (general_symbol_info::set_language)
9462 (general_symbol_info::compute_and_set_names): Update.
9463 * minsyms.c (minimal_symbol_reader::install): Update.
9464 * dwarf2/read.c (new_symbol): Update.
9465
9466 2020-04-24 Tom Tromey <tromey@adacore.com>
9467
9468 PR python/23662:
9469 * python/py-type.c (convert_field): Handle
9470 FIELD_LOC_KIND_DWARF_BLOCK.
9471 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9472 (typy_get_dynamic): Nw function.
9473 (type_object_getset): Add "dynamic".
9474 * NEWS: Add entry.
9475
9476 2020-04-24 Tom Tromey <tromey@adacore.com>
9477
9478 * ada-typeprint.c (print_choices, print_variant_part)
9479 (print_record_field_types_dynamic): New functions.
9480 (print_record_field_types): Use print_record_field_types_dynamic.
9481
9482 2020-04-24 Tom Tromey <tromey@adacore.com>
9483
9484 * dwarf2/read.c (handle_data_member_location): New overload.
9485 (dwarf2_add_field): Use it.
9486 (decode_locdesc): Add "computed" parameter. Update comment.
9487 * gdbtypes.c (is_dynamic_type_internal): Also look for
9488 FIELD_LOC_KIND_DWARF_BLOCK.
9489 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9490 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9491 virtual base classes.
9492 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9493 FIELD_LOC_KIND_DWARF_BLOCK.
9494
9495 2020-04-24 Tom Tromey <tromey@adacore.com>
9496
9497 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9498 * gdbtypes.c (is_dynamic_type_internal): Check
9499 TYPE_HAS_DYNAMIC_LENGTH.
9500 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9501 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9502 New macros.
9503 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9504 constant.
9505
9506 2020-04-24 Tom Tromey <tromey@adacore.com>
9507
9508 * dwarf2/read.c (struct variant_field): Rewrite.
9509 (struct variant_part_builder): New.
9510 (struct nextfield): Remove "variant" field. Add "offset".
9511 (struct field_info): Add "current_variant_part" and
9512 "variant_parts".
9513 (alloc_discriminant_info): Remove.
9514 (alloc_rust_variant): New function.
9515 (quirk_rust_enum): Update.
9516 (dwarf2_add_field): Set "offset" member. Don't handle
9517 DW_TAG_variant_part.
9518 (offset_map_type): New typedef.
9519 (convert_variant_range, create_one_variant)
9520 (create_one_variant_part, create_variant_parts)
9521 (add_variant_property): New functions.
9522 (dwarf2_attach_fields_to_type): Call add_variant_property.
9523 (read_structure_type): Don't handle DW_TAG_variant_part.
9524 (handle_variant_part, handle_variant): New functions.
9525 (handle_struct_member_die): Use them.
9526 (process_structure_scope): Don't handle variant parts.
9527 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9528 (struct discriminant_info): Remove.
9529 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9530 (struct main_type) <flag_discriminated_union>: Remove.
9531 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9532 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9533 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9534 Update.
9535 * valops.c (value_union_variant): Remove.
9536 * value.h (value_union_variant): Don't declare.
9537
9538 2020-04-24 Tom Tromey <tromey@adacore.com>
9539
9540 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9541 (ada_value_primitive_packed_val): Update.
9542 * ada-valprint.c (ada_value_print_1): Update.
9543 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9544 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9545 just an address. Use evaluate_for_locexpr_baton.
9546 (dwarf2_evaluate_property): Update.
9547 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9548 array_view.
9549 * findvar.c (default_read_var_value): Update.
9550 * gdbtypes.c (compute_variant_fields_inner)
9551 (resolve_dynamic_type_internal): Update.
9552 (resolve_dynamic_type): Change type of valaddr parameter.
9553 * gdbtypes.h (resolve_dynamic_type): Update.
9554 * valarith.c (value_subscripted_rvalue): Update.
9555 * value.c (value_from_contents_and_address): Update.
9556
9557 2020-04-24 Tom Tromey <tromey@adacore.com>
9558
9559 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9560 "push_initial_value" parameter.
9561 (dwarf2_evaluate_property): Likewise.
9562 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9563
9564 2020-04-24 Tom Tromey <tromey@adacore.com>
9565
9566 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9567 (variant::matches, compute_variant_fields_recurse)
9568 (compute_variant_fields_inner, compute_variant_fields): New
9569 functions.
9570 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9571 Use resolved_type after type is made.
9572 (operator==): Add new cases.
9573 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9574 (struct discriminant_range, struct variant, struct variant_part):
9575 New.
9576 (union dynamic_prop_data) <variant_parts, original_type>: New
9577 members.
9578 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9579 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9580 constants.
9581 * value.c (unpack_bits_as_long): Now public.
9582 * value.h (unpack_bits_as_long): Declare.
9583
9584 2020-04-24 Tom Tromey <tromey@adacore.com>
9585
9586 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9587 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9588
9589 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9590
9591 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9592
9593 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9594
9595 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9596 (remove_fork_catchpoint, post_startup_inferior)
9597 (post_attach): Move...
9598 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9599 (remove_fork_catchpoint, post_startup_inferior)
9600 (post_attach): ...here.
9601 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9602 (remove_fork_catchpoint, post_startup_inferior)
9603 (post_attach): Move...
9604 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9605 (remove_fork_catchpoint, post_startup_inferior)
9606 (post_attach): ...here.
9607
9608 2020-04-24 Tom Tromey <tromey@adacore.com>
9609
9610 * nat/windows-nat.h (struct windows_thread_info)
9611 <pc_adjusted>: New member.
9612 * windows-nat.c (windows_fetch_one_register): Check
9613 pc_adjusted.
9614 (windows_nat_target::get_windows_debug_event)
9615 (windows_nat_target::wait): Set pc_adjusted.
9616
9617 2020-04-24 Tom de Vries <tdevries@suse.de>
9618
9619 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9620 Run gdb-add-index inside temp dir.
9621
9622 2020-04-23 Tom Tromey <tromey@adacore.com>
9623
9624 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9625 in loop.
9626
9627 2020-04-23 Luis Machado <luis.machado@linaro.org>
9628
9629 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9630 get_frame_register instead of gdbarch_unwind_pc.
9631
9632 2020-04-23 Tom de Vries <tdevries@suse.de>
9633
9634 * symtab.c (lookup_global_symbol): Prefer def over decl.
9635
9636 2020-04-23 Tom de Vries <tdevries@suse.de>
9637
9638 PR symtab/25807
9639 * block.c (best_symbol, better_symbol): Promote to external.
9640 * block.h (best_symbol, better_symbol): Declare.
9641 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9642 decl.
9643
9644 2020-04-23 Tom Tromey <tromey@adacore.com>
9645
9646 PR ada/25837:
9647 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9648 "const char *", not a "const std::string &".
9649 <name_and_matcher::operator==>: Update.
9650 * unittests/lookup_name_info-selftests.c: Change type of
9651 "result".
9652
9653 2020-04-23 Tom Tromey <tom@tromey.com>
9654
9655 * inferior.h (iterate_over_inferiors): Don't declare.
9656 * inferior.c (iterate_over_inferiors): Remove.
9657 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9658 Remove.
9659 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9660 use iterate_over_inferiors.
9661 (darwin_resume_inferior_it)
9662 (struct resume_inferior_threads_param)
9663 (darwin_resume_inferior_threads_it): Remove.
9664 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9665
9666 2020-04-23 Tom de Vries <tdevries@suse.de>
9667
9668 * blockframe.c (find_pc_partial_function): Use
9669 find_pc_sect_compunit_symtab rather than
9670 objfile->sf->qf->find_pc_sect_compunit_symtab.
9671
9672 2020-04-22 Tom de Vries <tdevries@suse.de>
9673
9674 PR symtab/25764
9675 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9676 in psymtabs.
9677
9678 2020-04-22 Tom de Vries <tdevries@suse.de>
9679
9680 PR symtab/25801
9681 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9682 symtabs.
9683
9684 2020-04-22 Tom de Vries <tdevries@suse.de>
9685
9686 PR symtab/25700
9687 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9688 CU if already created.
9689
9690 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9691
9692 * infrun.c (displaced_step_fixup): Switch to the event_thread
9693 before calling displaced_step_restore, not after.
9694
9695 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9696
9697 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9698 its inferior is not recorded by us.
9699 (record_btrace_target_open): Replace call to
9700 all_non_exited_threads () with call to current_inferior
9701 ()->non_exited_threads ().
9702 (record_btrace_target::stop_recording): Likewise.
9703 (record_btrace_target::close): Likewise.
9704 (record_btrace_target::wait): Likewise.
9705 (record_btrace_target::record_stop_replaying): Likewise.
9706
9707 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9708
9709 * btrace.c (btrace_enable): Throw an error on double enables and
9710 when enabling recording fails.
9711 (btrace_disable): Throw an error if the thread is not recorded.
9712
9713 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9714
9715 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9716 request if we do not have a thread_info.
9717
9718 2020-04-21 Tom de Vries <tdevries@suse.de>
9719
9720 PR gdb/25471
9721 * thread.c
9722 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9723 exception in get_frame_id.
9724
9725 2020-04-20 Tom Tromey <tromey@adacore.com>
9726
9727 * python/python.c (struct gdbpy_event): Mark move constructor as
9728 noexcept.
9729 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9730 constructor as noexcept.
9731 * completer.h (struct completion_result): Mark move constructor as
9732 noexcept.
9733 * completer.c (completion_result::completion_result): Use
9734 initialization style. Don't call reset_match_list.
9735
9736 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9737
9738 * MAINTAINERS (Write After Approval): Add myself.
9739
9740 2020-04-18 Tom Tromey <tom@tromey.com>
9741
9742 * windows-tdep.c (init_w32_command_list)
9743 (w32_prefix_command_valid): Restore.
9744 (_initialize_windows_tdep): Call init_w32_command_list.
9745
9746 2020-04-18 Tom Tromey <tom@tromey.com>
9747
9748 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9749 * value.c (value_fn_field): Update.
9750 * valops.c (find_function_in_inferior)
9751 (value_allocate_space_in_inferior): Update.
9752 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9753 Update.
9754 * tui/tui-source.c (tui_source_window::set_contents): Update.
9755 * symtab.c (lookup_global_or_static_symbol)
9756 (find_function_start_sal_1, skip_prologue_sal)
9757 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9758 * symmisc.c (dump_msymbols, dump_symtab_1)
9759 (maintenance_print_one_line_table): Update.
9760 * symfile.c (init_entry_point_info, section_is_mapped)
9761 (list_overlays_command, simple_read_overlay_table)
9762 (simple_overlay_update_1): Update.
9763 * stap-probe.c (handle_stap_probe): Update.
9764 * stabsread.c (dbx_init_float_type, define_symbol)
9765 (read_one_struct_field, read_enum_type, read_range_type): Update.
9766 * source.c (info_line_command): Update.
9767 * python/python.c (gdbpy_source_objfile_script)
9768 (gdbpy_execute_objfile_script): Update.
9769 * python/py-type.c (save_objfile_types): Update.
9770 * python/py-objfile.c (py_free_objfile): Update.
9771 * python/py-inferior.c (python_new_objfile): Update.
9772 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9773 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9774 (maintenance_check_psymtabs): Update.
9775 * printcmd.c (info_address_command): Update.
9776 * objfiles.h (struct objfile) <arch>: New method, from
9777 get_objfile_arch.
9778 (get_objfile_arch): Don't declare.
9779 * objfiles.c (get_objfile_arch): Remove.
9780 (filter_overlapping_sections): Update.
9781 * minsyms.c (msymbol_is_function): Update.
9782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9783 (output_nondebug_symbol): Update.
9784 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9785 (mdebug_expand_psymtab): Update.
9786 * machoread.c (macho_add_oso_symfile): Update.
9787 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9788 Update.
9789 * linux-fork.c (checkpoint_command): Update.
9790 * linespec.c (convert_linespec_to_sals): Update.
9791 * jit.c (finalize_symtab): Update.
9792 * infrun.c (insert_exception_resume_from_probe): Update.
9793 * ia64-tdep.c (ia64_find_unwind_table): Update.
9794 * hppa-tdep.c (internalize_unwinds): Update.
9795 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9796 Update.
9797 * gcore.c (call_target_sbrk): Update.
9798 * elfread.c (record_minimal_symbol, elf_symtab_read)
9799 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9800 (elf_gnu_ifunc_resolve_by_got): Update.
9801 * dwarf2/read.c (create_addrmap_from_index)
9802 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9803 (read_debug_names_from_section)
9804 (process_psymtab_comp_unit_reader, add_partial_symbol)
9805 (add_partial_subprogram, process_full_comp_unit)
9806 (read_file_scope, read_func_scope, read_lexical_block_scope)
9807 (read_call_site_scope, dwarf2_ranges_read)
9808 (dwarf2_record_block_ranges, dwarf2_add_field)
9809 (mark_common_block_symbol_computed, read_tag_pointer_type)
9810 (read_tag_string_type, dwarf2_init_float_type)
9811 (dwarf2_init_complex_target_type, read_base_type)
9812 (partial_die_info::read, partial_die_info::read)
9813 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9814 (dwarf2_fetch_die_loc_sect_off): Update.
9815 * dwarf2/loc.c (dwarf2_find_location_expression)
9816 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9817 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9818 (dwarf2_loc_desc_get_symbol_read_needs)
9819 (locexpr_describe_location_piece, locexpr_describe_location_1)
9820 (loclist_describe_location): Update.
9821 * dwarf2/index-write.c (write_debug_names): Update.
9822 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9823 * dtrace-probe.c (dtrace_process_dof): Update.
9824 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9825 (process_one_symbol): Update.
9826 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9827 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9828 (coff_read_enum_type): Update.
9829 * cli/cli-cmds.c (edit_command, list_command): Update.
9830 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9831 * breakpoint.c (create_overlay_event_breakpoint)
9832 (create_longjmp_master_breakpoint)
9833 (create_std_terminate_master_breakpoint)
9834 (create_exception_master_breakpoint, get_sal_arch): Update.
9835 * block.c (block_gdbarch): Update.
9836 * annotate.c (annotate_source_line): Update.
9837
9838 2020-04-17 Tom Tromey <tromey@adacore.com>
9839
9840 * auto-load.c (show_auto_load_cmd): Remove.
9841 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9842 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9843 (maintenance_print_arc_command): Remove.
9844 * tui/tui-win.c (tui_command): Remove.
9845 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9846 * tui/tui-layout.c (tui_layout_command): Remove.
9847 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9848 * python/python.c (user_set_python, user_show_python): Remove.
9849 (_initialize_python): Use add_basic_prefix_cmd,
9850 add_show_prefix_cmd.
9851 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9852 (install_gdb_commands): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 (info_guile_command): Remove.
9855 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9856 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9857 add_show_prefix_cmd.
9858 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9859 Remove do_set and do_show parameters.
9860 * cli/cli-style.c (set_style, show_style): Remove.
9861 (_initialize_cli_style): Use add_basic_prefix_cmd,
9862 add_show_prefix_cmd.
9863 (cli_style_option::add_setshow_commands): Remove do_set and
9864 do_show parameters.
9865 (cli_style_option::add_setshow_commands): Use
9866 add_basic_prefix_cmd, add_show_prefix_cmd.
9867 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9868 (set_style_name): Remove.
9869 * cli/cli-dump.c (dump_command, append_command): Remove.
9870 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9871 (tekhex_dump_command, binary_dump_command)
9872 (binary_append_command): Remove.
9873 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9874 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9875 (init_w32_command_list): Remove; move into ...
9876 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9877 * valprint.c (set_print, show_print, set_print_raw)
9878 (show_print_raw): Remove.
9879 (_initialize_valprint): Use add_basic_prefix_cmd,
9880 add_show_prefix_cmd.
9881 * typeprint.c (set_print_type, show_print_type): Remove.
9882 (_initialize_typeprint): Use add_basic_prefix_cmd,
9883 add_show_prefix_cmd.
9884 * record.c (set_record_command, show_record_command): Remove.
9885 (_initialize_record): Use add_basic_prefix_cmd,
9886 add_show_prefix_cmd.
9887 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9888 add_show_prefix_cmd.
9889 (info_command, show_command, set_debug, show_debug): Remove.
9890 * top.h (set_history, show_history): Don't declare.
9891 * top.c (set_history, show_history): Remove.
9892 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9893 (unset_tdesc_cmd): Remove.
9894 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9895 add_show_prefix_cmd.
9896 * symtab.c (info_module_command): Remove.
9897 (_initialize_symtab): Use add_basic_prefix_cmd.
9898 * symfile.c (overlay_command): Remove.
9899 (_initialize_symfile): Use add_basic_prefix_cmd.
9900 * sparc64-tdep.c (info_adi_command): Remove.
9901 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9902 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9903 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9904 add_show_prefix_cmd.
9905 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9906 (_initialize_serial): Use add_basic_prefix_cmd,
9907 add_show_prefix_cmd.
9908 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9909 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9910 add_show_prefix_cmd.
9911 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9912 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9913 add_show_prefix_cmd.
9914 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9915 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9916 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9917 add_show_prefix_cmd.
9918 * remote.c (remote_command, set_remote_cmd): Remove.
9919 (_initialize_remote): Use add_basic_prefix_cmd.
9920 * record-full.c (set_record_full_command)
9921 (show_record_full_command): Remove.
9922 (_initialize_record_full): Use add_basic_prefix_cmd,
9923 add_show_prefix_cmd.
9924 * record-btrace.c (cmd_set_record_btrace)
9925 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9926 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9927 (cmd_show_record_btrace_pt): Remove.
9928 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9929 add_show_prefix_cmd.
9930 * ravenscar-thread.c (set_ravenscar_command)
9931 (show_ravenscar_command): Remove.
9932 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9933 add_show_prefix_cmd.
9934 * mips-tdep.c (show_mips_command, set_mips_command)
9935 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9936 add_show_prefix_cmd.
9937 * maint.c (maintenance_command, maintenance_info_command)
9938 (maintenance_check_command, maintenance_print_command)
9939 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9940 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9941 add_show_prefix_cmd.
9942 (show_per_command_cmd): Remove.
9943 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9944 Remove.
9945 (maintenance_show_test_settings_cmd): Remove.
9946 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9947 add_show_prefix_cmd.
9948 * maint-test-options.c (maintenance_test_options_command):
9949 Remove.
9950 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9951 * macrocmd.c (macro_command): Remove
9952 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9953 * language.c (set_check, show_check): Remove.
9954 (_initialize_language): Use add_basic_prefix_cmd,
9955 add_show_prefix_cmd.
9956 * infcmd.c (unset_command): Remove.
9957 (_initialize_infcmd): Use add_basic_prefix_cmd.
9958 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9959 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9960 add_show_prefix_cmd.
9961 * go32-nat.c (go32_info_dos_command): Remove.
9962 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9963 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9964 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9965 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9966 (_initialize_frame): Use add_basic_prefix_cmd,
9967 add_show_prefix_cmd.
9968 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9969 (_initialize_dcache): Use add_basic_prefix_cmd,
9970 add_show_prefix_cmd.
9971 * cp-support.c (maint_cplus_command): Remove.
9972 (_initialize_cp_support): Use add_basic_prefix_cmd.
9973 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9974 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9975 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9976 add_basic_prefix_cmd, add_show_prefix_cmd.
9977 * breakpoint.c (save_command): Remove.
9978 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9979 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9980 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9981 add_show_prefix_cmd.
9982 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9983 (set_ada_command, show_ada_command): Remove.
9984 (_initialize_ada_language): Use add_basic_prefix_cmd,
9985 add_show_prefix_cmd.
9986 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9987
9988 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9989
9990 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9991 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9992
9993 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9994
9995 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9996 warning messages.
9997
9998 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
10001 import table is not at beginning of .idata section.
10002
10003 2020-04-16 Pedro Alves <palves@redhat.com>
10004
10005 * inferior.c (delete_inferior): Use delete operator directly
10006 instead of delete_program_space.
10007 * progspace.c (add_program_space): New, factored out from
10008 program_space::program_space.
10009 (remove_program_space): New, factored out from
10010 delete_program_space.
10011 (program_space::program_space): Remove intro comment. Rewrite.
10012 (program_space::~program_space): Remove intro comment. Call
10013 remove_program_space.
10014 (delete_program_space): Delete.
10015 * progspace.h (program_space::program_space): Make explicit. Move
10016 intro comment here, adjusted.
10017 (program_space::~program_space): Move intro comment here,
10018 adjusted.
10019 (delete_program_space): Remove.
10020
10021 2020-04-16 Tom Tromey <tromey@adacore.com>
10022
10023 * windows-nat.c (windows_nat::handle_access_violation): New
10024 function.
10025 * nat/windows-nat.h (handle_access_violation): Declare.
10026 * nat/windows-nat.c (handle_exception): Move Cygwin code to
10027 windows-nat.c. Call handle_access_violation.
10028
10029 2020-04-16 Tom de Vries <tdevries@suse.de>
10030
10031 PR symtab/25791
10032 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
10033 CUs without psymtab.
10034
10035 2020-04-16 Kevin Buettner <kevinb@redhat.com>
10036
10037 * python/python.c (do_start_initialization): Don't call
10038 PyEval_InitThreads for Python 3.9 and beyond.
10039
10040 2020-04-15 Kamil Rytarowski <n54@gmx.com>
10041
10042 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
10043 thread functions.
10044 (obsd_nat_target::wait): Likewise.
10045
10046 2020-04-15 Tom Tromey <tromey@adacore.com>
10047
10048 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
10049 (DEBUG_EXCEPT): Use debug_printf.
10050
10051 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
10052
10053 * completer.c (class completion_tracker::completion_hash_entry)
10054 <hash_name>: New member function.
10055 (completion_tracker::discard_completions): New callback to hash a
10056 completion_hash_entry, pass this to htab_create_alloc.
10057
10058 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
10059
10060 * windows-nat.c (windows_make_so): Warn rather than stopping with
10061 an error if realpath() fails.
10062
10063 2020-04-14 Kamil Rytarowski <n54@gmx.com>
10064
10065 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
10066 (nbsd_nat_target::info_proc): Add do_status.
10067
10068 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
10069 Tom de Vries <tdevries@suse.de>
10070
10071 PR symtab/25718
10072 * psympriv.h (struct partial_symtab::read_symtab)
10073 (struct partial_symtab::expand_psymtab)
10074 (struct partial_symtab::read_dependencies): Update comments.
10075 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
10076 read_symtab for includer.
10077 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
10078 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
10079 (struct dwarf2_include_psymtab::m_readin): Remove.
10080 (struct dwarf2_include_psymtab::includer): New member function.
10081 (dwarf2_psymtab::expand_psymtab): Assert !readin.
10082
10083 2020-04-14 Tom de Vries <tdevries@suse.de>
10084
10085 PR symtab/25720
10086 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
10087 with NULL symbol_matcher and lookup_name.
10088 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
10089 and lookup_name.
10090 * dwarf2/read.c (dw2_expand_symtabs_matching)
10091 (dw2_debug_names_expand_symtabs_matching): Same.
10092 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
10093 Make lookup_name a pointer. Update comment.
10094 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
10095 lookup_name being a pointer.
10096 * symfile.c (expand_symtabs_matching): Same.
10097 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
10098 * linespec.c (iterate_over_all_matching_symtabs): Same.
10099
10100 2020-04-13 Tom Tromey <tom@tromey.com>
10101
10102 * run-on-main-thread.c: Update include.
10103 * unittests/main-thread-selftests.c: Update include.
10104 * tui/tui-win.c: Update include.
10105 * tui/tui-io.c: Update include.
10106 * tui/tui-interp.c: Update include.
10107 * tui/tui-hooks.c: Update include.
10108 * top.h: Update include.
10109 * top.c: Update include.
10110 * ser-base.c: Update include.
10111 * remote.c: Update include.
10112 * remote-notif.c: Update include.
10113 * remote-fileio.c: Update include.
10114 * record-full.c: Update include.
10115 * record-btrace.c: Update include.
10116 * python/python.c: Update include.
10117 * posix-hdep.c: Update include.
10118 * mingw-hdep.c: Update include.
10119 * mi/mi-main.c: Update include.
10120 * mi/mi-interp.c: Update include.
10121 * main.c: Update include.
10122 * linux-nat.c: Update include.
10123 * interps.c: Update include.
10124 * infrun.c: Update include.
10125 * inf-loop.c: Update include.
10126 * event-top.c: Update include.
10127 * event-loop.c: Move to ../gdbsupport/.
10128 * event-loop.h: Move to ../gdbsupport/.
10129 * async-event.h: Update include.
10130 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10131
10132 2020-04-13 Tom Tromey <tom@tromey.com>
10133
10134 * tui/tui-win.c: Include async-event.h.
10135 * remote.c: Include async-event.h.
10136 * remote-notif.c: Include async-event.h.
10137 * record-full.c: Include async-event.h.
10138 * record-btrace.c: Include async-event.h.
10139 * infrun.c: Include async-event.h.
10140 * event-top.c: Include async-event.h.
10141 * event-loop.h: Move some declarations to async-event.h.
10142 * event-loop.c: Don't include ser-event.h or top.h. Move some
10143 code to async-event.c.
10144 * async-event.h: New file.
10145 * async-event.c: New file.
10146 * Makefile.in (COMMON_SFILES): Add async-event.c.
10147 (HFILES_NO_SRCDIR): Add async-event.h.
10148
10149 2020-04-13 Tom Tromey <tom@tromey.com>
10150
10151 * utils.c (flush_streams): New function.
10152 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10153
10154 2020-04-13 Tom Tromey <tom@tromey.com>
10155
10156 * event-loop.c (handle_file_event): Use warning, not
10157 printf_unfiltered.
10158
10159 2020-04-13 Tom Tromey <tom@tromey.com>
10160
10161 * event-loop.c: Include <chrono>.
10162
10163 2020-04-13 Tom Tromey <tom@tromey.com>
10164
10165 * gdb_select.h: Move to ../gdbsupport/.
10166 * event-loop.c: Update include path.
10167 * top.c: Update include path.
10168 * ser-base.c: Update include path.
10169 * ui-file.c: Update include path.
10170 * ser-tcp.c: Update include path.
10171 * guile/scm-ports.c: Update include path.
10172 * posix-hdep.c: Update include path.
10173 * ser-unix.c: Update include path.
10174 * gdb_usleep.c: Update include path.
10175 * mingw-hdep.c: Update include path.
10176 * inflow.c: Update include path.
10177 * infrun.c: Update include path.
10178 * event-top.c: Update include path.
10179
10180 2020-04-13 Tom Tromey <tom@tromey.com>
10181
10182 * configure: Rebuild.
10183 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10184
10185 2020-04-13 Tom Tromey <tom@tromey.com>
10186
10187 * event-loop.h (start_event_loop): Don't declare.
10188 * event-loop.c (start_event_loop): Move...
10189 * main.c (start_event_loop): ...here. Now static.
10190
10191 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10192
10193 * MAINTAINERS: Update my email address.
10194
10195 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10196
10197 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10198 IP_ALL.
10199
10200 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10201
10202 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10203 (nbsd_nat_target::info_proc): Add do_cmdline.
10204
10205 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10206
10207 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10208 (nbsd_nat_target::info_proc): Add do_cwd.
10209
10210 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10211
10212 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10213
10214 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10215
10216 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10217 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10218 (nbsd_nat_target::info_proc): New functions.
10219 * nbsd-nat.c (kinfo_get_vmmap): New function.
10220 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10221 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10222 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10223 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10224 functions.
10225 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10226 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10227 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10228 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10229 (KINFO_VME_FLAG_GROWS_DOWN): New.
10230
10231 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10232
10233 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10234 bit shift.
10235
10236 2020-04-10 Tom Tromey <tromey@adacore.com>
10237
10238 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10239
10240 2020-04-10 Tom Tromey <tromey@adacore.com>
10241
10242 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10243 separate debug files.
10244
10245 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10246
10247 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10248 Move to...
10249 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10250 ... here.
10251 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10252 Check for STATUS_WX86_BREAKPOINT.
10253 (windows_nat_target::wait): Same.
10254
10255 2020-04-10 Tom de Vries <tdevries@suse.de>
10256
10257 PR cli/25808
10258 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10259
10260 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10263 (Write After Approval): Remove Tom de Vries.
10264
10265 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10266
10267 revert partially:
10268 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10269
10270 * buildsym.c (record_line): Fix undefined behavior and preserve
10271 lines at eof.
10272
10273 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10274
10275 * auxv.h (svr4_auxv_parse): New.
10276 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10277 and generic_auxv_parse.
10278 (svr4_auxv_parse): Add.
10279 * obsd-tdep.c: Include "auxv.h".
10280 (obsd_auxv_parse): Remove.
10281 (obsd_init_abi): Remove comment.
10282 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10283 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10284 * nbsd-tdep.c: Include "auxv.h".
10285 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10286
10287 2020-04-08 Tom Tromey <tromey@adacore.com>
10288
10289 * nat/windows-nat.h (last_wait_event): Don't declare.
10290 (wait_for_debug_event): Update comment.
10291 * nat/windows-nat.c (last_wait_event): Now static.
10292
10293 2020-04-08 Tom Tromey <tromey@adacore.com>
10294
10295 * windows-nat.c (wait_for_debug_event): Move to
10296 nat/windows-nat.c.
10297 * nat/windows-nat.h (wait_for_debug_event): Declare.
10298 * nat/windows-nat.c (wait_for_debug_event): Move from
10299 windows-nat.c. No longer static.
10300
10301 2020-04-08 Tom Tromey <tromey@adacore.com>
10302
10303 * windows-nat.c (get_windows_debug_event): Use
10304 fetch_pending_stop.
10305 * nat/windows-nat.h (fetch_pending_stop): Declare.
10306 * nat/windows-nat.c (fetch_pending_stop): New function.
10307
10308 2020-04-08 Tom Tromey <tromey@adacore.com>
10309
10310 * windows-nat.c (windows_continue): Use matching_pending_stop and
10311 continue_last_debug_event.
10312 * nat/windows-nat.h (matching_pending_stop)
10313 (continue_last_debug_event): Declare.
10314 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10315 (matching_pending_stop, continue_last_debug_event): New
10316 functions.
10317
10318 2020-04-08 Tom Tromey <tromey@adacore.com>
10319
10320 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10321 (handle_exception_result): Move to nat/windows-nat.h.
10322 (DEBUG_EXCEPTION_SIMPLE): Remove.
10323 (windows_nat::handle_ms_vc_exception): New function.
10324 (handle_exception): Move to nat/windows-nat.c.
10325 (get_windows_debug_event): Update.
10326 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10327 nat/windows-nat.c.
10328 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10329 (handle_exception_result): Move from windows-nat.c.
10330 (handle_exception): Declare.
10331 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10332 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10333 windows-nat.c.
10334
10335 2020-04-08 Tom Tromey <tromey@adacore.com>
10336
10337 * windows-nat.c (exception_count, event_count): Remove.
10338 (handle_exception, get_windows_debug_event)
10339 (do_initial_windows_stuff): Update.
10340
10341 2020-04-08 Tom Tromey <tromey@adacore.com>
10342
10343 * windows-nat.c (windows_nat::handle_load_dll)
10344 (windows_nat::handle_unload_dll): Rename. No longer static.
10345 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10346 Declare.
10347
10348 2020-04-08 Tom Tromey <tromey@adacore.com>
10349
10350 * complaints.h (stop_whining): Declare at top-level.
10351 (complaint): Don't declare stop_whining.
10352
10353 2020-04-08 Tom Tromey <tromey@adacore.com>
10354
10355 * windows-nat.c (windows_nat::handle_output_debug_string):
10356 Rename. No longer static.
10357 * nat/windows-nat.h (handle_output_debug_string): Declare.
10358
10359 2020-04-08 Tom Tromey <tromey@adacore.com>
10360
10361 * windows-nat.c (current_process_handle, current_process_id)
10362 (main_thread_id, last_sig, current_event, last_wait_event)
10363 (current_windows_thread, desired_stop_thread_id, pending_stops)
10364 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10365 (display_selectors, fake_create_process)
10366 (get_windows_debug_event): Update.
10367 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10371 * nat/windows-nat.c (current_process_handle, current_process_id)
10372 (main_thread_id, last_sig, current_event, last_wait_event)
10373 (current_windows_thread, desired_stop_thread_id, pending_stops)
10374 (siginfo_er): New globals. Move from windows-nat.c.
10375
10376 2020-04-08 Tom Tromey <tromey@adacore.com>
10377
10378 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10379 (handle_load_dll): Update.
10380 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10381
10382 2020-04-08 Tom Tromey <tromey@adacore.com>
10383
10384 * windows-nat.c (enum thread_disposition_type): Move to
10385 nat/windows-nat.h.
10386 (windows_nat::thread_rec): Rename from thread_rec. No longer
10387 static.
10388 (windows_add_thread, windows_nat_target::fetch_registers)
10389 (windows_nat_target::store_registers, handle_exception)
10390 (windows_nat_target::resume, get_windows_debug_event)
10391 (windows_nat_target::get_tib_address)
10392 (windows_nat_target::thread_name)
10393 (windows_nat_target::thread_alive): Update.
10394 * nat/windows-nat.h (enum thread_disposition_type): Move from
10395 windows-nat.c.
10396 (thread_rec): Declare.
10397
10398 2020-04-08 Tom Tromey <tromey@adacore.com>
10399
10400 * windows-nat.c: Add "using namespace".
10401 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10402 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10403
10404 2020-04-08 Tom Tromey <tromey@adacore.com>
10405
10406 * nat/windows-nat.h (struct windows_thread_info): Declare
10407 destructor.
10408 * nat/windows-nat.c (~windows_thread_info): New.
10409
10410 2020-04-08 Tom Tromey <tromey@adacore.com>
10411
10412 PR gdb/22992
10413 * windows-nat.c (current_event): Update comment.
10414 (last_wait_event, desired_stop_thread_id): New globals.
10415 (struct pending_stop): New.
10416 (pending_stops): New global.
10417 (windows_nat_target) <stopped_by_sw_breakpoint>
10418 <supports_stopped_by_sw_breakpoint>: New methods.
10419 (windows_fetch_one_register): Add assertions. Adjust PC.
10420 (windows_continue): Handle pending stops. Suspend other threads
10421 when stepping. Use last_wait_event
10422 (wait_for_debug_event): New function.
10423 (get_windows_debug_event): Use wait_for_debug_event. Handle
10424 pending stops. Queue spurious stops.
10425 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10426 (windows_nat_target::kill): Use wait_for_debug_event.
10427 * nat/windows-nat.h (struct windows_thread_info)
10428 <stopped_at_software_breakpoint>: New field.
10429 * nat/windows-nat.c (windows_thread_info::resume): Clear
10430 stopped_at_software_breakpoint.
10431
10432 2020-04-08 Tom Tromey <tromey@adacore.com>
10433
10434 * windows-nat.c (enum thread_disposition_type): New.
10435 (thread_rec): Replace "get_context" parameter with "disposition";
10436 change type.
10437 (windows_add_thread, windows_nat_target::fetch_registers)
10438 (windows_nat_target::store_registers, handle_exception)
10439 (windows_nat_target::resume, get_windows_debug_event)
10440 (windows_nat_target::get_tib_address)
10441 (windows_nat_target::thread_name)
10442 (windows_nat_target::thread_alive): Update.
10443
10444 2020-04-08 Tom Tromey <tromey@adacore.com>
10445
10446 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10447 (windows_continue): Use windows_continue::resume.
10448 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10449 resume>: Declare new methods.
10450 * nat/windows-nat.c: New file.
10451 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10452
10453 2020-04-08 Tom Tromey <tromey@adacore.com>
10454
10455 * windows-nat.c (windows_add_thread, windows_delete_thread)
10456 (windows_nat_target::fetch_registers)
10457 (windows_nat_target::store_registers, fake_create_process)
10458 (windows_nat_target::resume, windows_nat_target::resume)
10459 (get_windows_debug_event, windows_nat_target::wait)
10460 (windows_nat_target::pid_to_str)
10461 (windows_nat_target::get_tib_address)
10462 (windows_nat_target::get_ada_task_ptid)
10463 (windows_nat_target::thread_name)
10464 (windows_nat_target::thread_alive): Use lwp, not tid.
10465
10466 2020-04-08 Tom Tromey <tromey@adacore.com>
10467
10468 * windows-nat.c (handle_exception)
10469 (windows_nat_target::thread_name): Update.
10470 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10471 <name>: Now unique_xmalloc_ptr.
10472
10473 2020-04-08 Tom Tromey <tromey@adacore.com>
10474
10475 * windows-nat.c (thread_rec)
10476 (windows_nat_target::fetch_registers): Update.
10477 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10478 Update comment.
10479 <debug_registers_changed, reload_context>: Now bool.
10480
10481 2020-04-08 Tom Tromey <tromey@adacore.com>
10482
10483 * windows-nat.c (windows_add_thread): Use new.
10484 (windows_init_thread_list, windows_delete_thread): Use delete.
10485 (get_windows_debug_event): Update.
10486 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10487 destructor, and initializers.
10488
10489 2020-04-08 Tom Tromey <tromey@adacore.com>
10490
10491 * windows-nat.c (struct windows_thread_info): Remove.
10492 * nat/windows-nat.h: New file.
10493
10494 2020-04-08 Tom Tromey <tromey@adacore.com>
10495
10496 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10497 (thread_rec, windows_add_thread, windows_delete_thread)
10498 (windows_continue): Update.
10499
10500 2020-04-08 Tom Tromey <tromey@adacore.com>
10501
10502 * windows-nat.c (struct windows_thread_info): Remove typedef.
10503 (thread_head): Remove.
10504 (thread_list): New global.
10505 (thread_rec, windows_add_thread, windows_init_thread_list)
10506 (windows_delete_thread, windows_continue): Update.
10507
10508 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10509
10510 * windows-tdep.h (windows_init_abi): Add comment.
10511 (cygwin_init_abi): New declaration.
10512 * windows-tdep.c: Split signal enumeration in two, one for
10513 Windows and one for Cygwin.
10514 (windows_gdb_signal_to_target): Only deal with signal of the
10515 Windows OS ABI.
10516 (cygwin_gdb_signal_to_target): New function.
10517 (windows_init_abi): Rename to windows_init_abi_common, don't set
10518 gdb_signal_to_target gdbarch method. Add new new function with
10519 this name.
10520 (cygwin_init_abi): New function.
10521 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10522 comment. Don't call windows_init_abi.
10523 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10524 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10525 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10526 i386_windows_init_abi_common, don't call windows_init_abi. Add
10527 a new function of this name.
10528 (i386_cygwin_init_abi): New function.
10529 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10530 OS ABI Cygwin.
10531
10532 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10533
10534 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10535 parameter.c.
10536 (dwarf2_read_gdb_index): Update.
10537
10538 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10539
10540 * nbsd-tdep.c: Include "objfiles.h".
10541 (nbsd_skip_solib_resolver): New.
10542 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10543
10544 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10545
10546 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10547 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10548 with DW_LLE_base_addressx are being emitted in DWARFv5.
10549 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10550 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10551 unsigned integer.
10552
10553 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10554
10555 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10556 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10557 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10558 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10559 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10560 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10561 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10562
10563
10564 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10565
10566 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10567 (read_loclist_index): New function definition.
10568 (lookup_loclist_base): New function definition.
10569 (read_loclist_header): New function definition.
10570 (dwarf2_cu): Add loclist_base and loclist_header field.
10571 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10572 (read_full_die_1): Read the value of DW_AT_loclists_base.
10573 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10574 (read_attribute_value): Handle DW_FORM_loclistx.
10575 (skip_one_die): Handle DW_FORM_loclistx.
10576 (loclist_header): New structure declaration.
10577 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10578
10579 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10580
10581 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10582 constructor. Remove `addr` parameter from other constructor and
10583 add `per_cu` parameter.
10584 * dwarf2/read.c (create_partial_symtab): Update.
10585
10586 2020-04-07 Tom de Vries <tdevries@suse.de>
10587
10588 PR symtab/25796
10589 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10590 (partial_die_info::fixup): Inherit has_const_value.
10591
10592 2020-04-07 Tom de Vries <tdevries@suse.de>
10593
10594 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10595 symbols without address.
10596
10597 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10598
10599 * nbsd-nat.h (struct thread_info): Add forward declaration.
10600 (nbsd_nat_target::thread_alive): Add.
10601 (nbsd_nat_target::thread_name): Likewise.
10602 (nbsd_nat_target::update_thread_list): Likewise.
10603 (update_thread_list::post_attach): Likewise.
10604 (post_attach::pid_to_str): Likewise.
10605 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10606 (nbsd_thread_lister): Add.
10607 (nbsd_nat_target::thread_alive): Likewise.
10608 (nbsd_nat_target::thread_name): Likewise.
10609 (nbsd_add_threads): Likewise.
10610 (update_thread_list::post_attach): Likewise.
10611 (nbsd_nat_target::update_thread_list): Likewise.
10612 (post_attach::pid_to_str): Likewise.
10613
10614 2020-04-06 Tom Tromey <tromey@adacore.com>
10615
10616 * ada-valprint.c (print_variant_part): Extract the variant field.
10617 (print_field_values): Use the field as the outer value when
10618 recursing.
10619
10620 2020-04-06 Tom Tromey <tromey@adacore.com>
10621
10622 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10623 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10624 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10625 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10626 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10627
10628 2020-04-06 Tom Tromey <tromey@adacore.com>
10629
10630 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10631 TYPE_CODE_ERROR.
10632
10633 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10634
10635 * nbsd-tdep.c: Include "gdbarch.h".
10636 Define enum with NetBSD signal numbers.
10637 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10638 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10639 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10640 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10641 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10642 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10643 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10644 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10645 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10646 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10647 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10648 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10649
10650 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10651
10652 PR gdb/25325
10653 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10654
10655 2020-04-03 Tom Tromey <tromey@adacore.com>
10656
10657 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10658 Read constant block.
10659
10660 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10661
10662 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10663 (gdb_bfd_get_full_section_contents): New declaration.
10664 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10665 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10666 gdb_bfd_get_full_section_contents.
10667
10668 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10669
10670 * exec.c (build_section_table): Replace internal_error with
10671 gdb_assert.
10672 (section_table_xfer_memory_partial): Likewise.
10673 * mdebugread.c (parse_partial_symbols): Likewise.
10674 * psymtab.c (lookup_partial_symbol): Likewise.
10675 * utils.c (wrap_here): Likewise.
10676
10677 2020-04-02 Tom Tromey <tromey@adacore.com>
10678
10679 * f-lang.c (build_fortran_types): Use arch_type to initialize
10680 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10681
10682 2020-04-02 Tom Tromey <tromey@adacore.com>
10683
10684 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10685 of attributes.
10686
10687 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10688 Bernd Edlinger <bernd.edlinger@hotmail.de>
10689 Tom Tromey <tromey@adacore.com>
10690
10691 * buildsym.c (buildsym_compunit::record_line): Remove
10692 deduplication code.
10693
10694 2020-04-02 Tom de Vries <tdevries@suse.de>
10695
10696 PR ada/24671
10697 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10698
10699 2020-04-02 Tom de Vries <tdevries@suse.de>
10700
10701 * dwarf2/read.c (dwarf2_gdb_index_functions,
10702 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10703 NULL.
10704 * psymtab.c (psym_lookup_global_symbol_language): New function.
10705 (psym_functions): Init psym_lookup_global_symbol_language with
10706 psym_lookup_global_symbol_language.
10707 * symfile-debug.c (debug_sym_quick_functions): Init
10708 lookup_global_symbol_language with NULL.
10709 * symfile.c (set_initial_language): Remove fixme comment.
10710 * symfile.h (struct quick_symbol_functions): Add
10711 lookup_global_symbol_language.
10712 * symtab.c (find_quick_global_symbol_language): New function.
10713 (find_main_name): Use find_quick_global_symbol_language.
10714
10715 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10716
10717 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10718
10719 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10720
10721 * buildsym.c (record_line): Fix undefined behavior and preserve
10722 lines at eof.
10723
10724 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10725
10726 * buildsym.c (record_line): Fix the resizing condition.
10727
10728 2020-04-01 Tom Tromey <tom@tromey.com>
10729
10730 * value.h (value_literal_complex): Add comment.
10731 * valops.c (value_literal_complex): Refer to value.h.
10732
10733 2020-04-01 Tom Tromey <tom@tromey.com>
10734
10735 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10736 (scalar_type): New rule, from typebase.
10737 (typebase): Use scalar_type. Recognize complex types.
10738 (field_name): Handle FLOAT_KEYWORD.
10739 (ident_tokens): Add _Complex and __complex__.
10740
10741 2020-04-01 Tom Tromey <tom@tromey.com>
10742
10743 PR exp/25299:
10744 * valarith.c (promotion_type, complex_binop): New functions.
10745 (scalar_binop): Handle complex numbers. Use promotion_type.
10746 (value_pos, value_neg, value_complement): Handle complex numbers.
10747
10748 2020-04-01 Tom Tromey <tom@tromey.com>
10749
10750 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10751 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10752 (parse_number): Handle complex numbers.
10753
10754 2020-04-01 Tom Tromey <tom@tromey.com>
10755
10756 * c-valprint.c (c_decorations): Change complex suffix to "i".
10757
10758 2020-04-01 Tom Tromey <tom@tromey.com>
10759
10760 * valprint.c (generic_value_print_complex): Use accessors.
10761 * value.h (value_real_part, value_imaginary_part): Declare.
10762 * valops.c (value_real_part, value_imaginary_part): New
10763 functions.
10764 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10765
10766 2020-04-01 Tom Tromey <tom@tromey.com>
10767
10768 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10769 (read_range_type): Update.
10770 * mdebugread.c (basic_type): Update.
10771 * go-lang.c (build_go_types): Use init_complex_type.
10772 * gdbtypes.h (struct main_type) <complex_type>: New member.
10773 (init_complex_type): Update.
10774 (arch_complex_type): Don't declare.
10775 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10776 Make name if none given. Use alloc_type_copy. Look for cached
10777 complex type.
10778 (arch_complex_type): Remove.
10779 (gdbtypes_post_init): Use init_complex_type.
10780 * f-lang.c (build_fortran_types): Use init_complex_type.
10781 * dwarf2/read.c (read_base_type): Update.
10782 * d-lang.c (build_d_types): Use init_complex_type.
10783 * ctfread.c (read_base_type): Update.
10784
10785 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10786
10787 * infrun.c (stop_all_threads): Update assertion, plus when
10788 stopping threads, take into account that we might be trying
10789 to stop an all-stop target.
10790 (stop_waiting): Call 'stop_all_threads' if there exists a
10791 non-stop target.
10792
10793 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10794
10795 * target.h (exists_non_stop_target): New function declaration.
10796 * target.c (exists_non_stop_target): New function.
10797
10798 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10799
10800 PR gdb/24789
10801 * eval.c (is_integral_or_integral_reference): New function.
10802 (evaluate_subexp_standard): Allow integer references in
10803 pointer arithmetic.
10804
10805 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10806
10807 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10808 check for no ptid in the stop reply when the target is non-stop.
10809
10810 2020-04-01 Tom Tromey <tromey@adacore.com>
10811
10812 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10813 "name" parameter to rvalue reference. Initialize m_name_holder.
10814 <lookup_name_info>: New overloads.
10815 <name>: Return gdb::string_view.
10816 <c_str>: New method.
10817 <make_ignore_params>: Update.
10818 <search_name_hash>: Update.
10819 <language_lookup_name>: Return const char *.
10820 <m_name>: Change type.
10821 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10822 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10823 (lookup_name_info::match_any): Update.
10824 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10825 Update.
10826 * minsyms.c (linkage_name_str): Update.
10827 * language.c (default_symbol_name_matcher): Update.
10828 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10829 Update.
10830 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10831 (ada_lookup_name_info::ada_lookup_name_info): Update.
10832 (literal_symbol_name_matcher): Update.
10833
10834 2020-04-01 Tom Tromey <tromey@adacore.com>
10835
10836 * psymtab.c (psymtab_search_name): Remove function.
10837 (psym_lookup_symbol): Create search name and lookup name here.
10838 (lookup_partial_symbol): Remove "name" parameter; add
10839 lookup_name.
10840 (psym_expand_symtabs_for_function): Update.
10841
10842 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10843
10844 PR tui/25597:
10845 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10846
10847 2020-03-31 Tom Tromey <tromey@adacore.com>
10848
10849 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10850 memcpy.
10851
10852 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10853
10854 * features/riscv/32bit-csr.xml: Regenerated.
10855 * features/riscv/64bit-csr.xml: Regenerated.
10856
10857 2020-03-30 Tom Tromey <tromey@adacore.com>
10858
10859 * ada-valprint.c (print_variant_part): Update.
10860 * ada-lang.h (ada_which_variant_applies): Update.
10861 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10862 outer_valaddr parameters; replace with "outer" value parameter.
10863 (to_fixed_variant_branch_type): Update.
10864
10865 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10866
10867 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10868 <list>. Remove inclusion of observable.h.
10869 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10870 (struct arch_lwp_info): New struct.
10871 (class ppc_linux_dreg_interface): New class.
10872 (struct ppc_linux_process_info): New struct.
10873 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10874 <low_new_clone, low_forget_process, low_prepare_to_resume>
10875 <copy_thread_dreg_state, mark_thread_stale>
10876 <mark_debug_registers_changed, register_hw_breakpoint>
10877 <clear_hw_breakpoint, register_wp, clear_wp>
10878 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10879 <num_memory_accesses, get_trigger_type>
10880 <create_watchpoint_request, hwdebug_point_cmp>
10881 <init_arch_lwp_info, get_arch_lwp_info>
10882 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10883 methods.
10884 <struct ptid_hash>: New inner struct.
10885 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10886 members.
10887 (saved_dabr_value, hwdebug_info, max_slots_number)
10888 (struct hw_break_tuple, struct thread_points, ppc_threads)
10889 (have_ptrace_hwdebug_interface)
10890 (hwdebug_find_thread_points_by_tid)
10891 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10892 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10893 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10894 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10895 use m_dreg_interface.
10896 (hwdebug_point_cmp): Change to...
10897 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10898 reference arguments instead of pointers.
10899 (ppc_linux_nat_target::ranged_break_num_registers): Use
10900 m_dreg_interface.
10901 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10902 m_dreg_interface. Call register_hw_breakpoint.
10903 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10904 m_dreg_interface. Call clear_hw_breakpoint.
10905 (get_trigger_type): Change to...
10906 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10907 comment.
10908 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10909 use m_dreg_interface. Call register_hw_breakpoint.
10910 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10911 use m_dreg_interface. Call clear_hw_breakpoint.
10912 (can_use_watchpoint_cond_accel): Change to...
10913 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10914 method. Update comment, use m_dreg_interface and
10915 m_process_info.
10916 (calculate_dvc): Change to...
10917 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10918 m_dreg_interface.
10919 (num_memory_accesses): Change to...
10920 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10921 (check_condition): Change to...
10922 (ppc_linux_nat_target::check_condition): ...this method.
10923 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10924 comment, use m_dreg_interface.
10925 (create_watchpoint_request): Change to...
10926 (ppc_linux_nat_target::create_watchpoint_request): ...this
10927 method. Use m_dreg_interface.
10928 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10929 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10930 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10931 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10932 (ppc_linux_nat_target::low_forget_process)
10933 (ppc_linux_nat_target::low_new_fork)
10934 (ppc_linux_nat_target::low_new_clone)
10935 (ppc_linux_nat_target::low_delete_thread)
10936 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10937 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10938 only call mark_thread_stale.
10939 (ppc_linux_thread_exit): Remove.
10940 (ppc_linux_nat_target::stopped_data_address): Change to...
10941 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10942 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10943 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10944 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10945 comment. Call low_stopped_data_address.
10946 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10947 m_dreg_interface.
10948 (ppc_linux_nat_target::masked_watch_num_registers): Use
10949 m_dreg_interface.
10950 (ppc_linux_nat_target::copy_thread_dreg_state)
10951 (ppc_linux_nat_target::mark_thread_stale)
10952 (ppc_linux_nat_target::mark_debug_registers_changed)
10953 (ppc_linux_nat_target::register_hw_breakpoint)
10954 (ppc_linux_nat_target::clear_hw_breakpoint)
10955 (ppc_linux_nat_target::register_wp)
10956 (ppc_linux_nat_target::clear_wp)
10957 (ppc_linux_nat_target::init_arch_lwp_info)
10958 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10959 (_initialize_ppc_linux_nat): Remove observer callback.
10960
10961 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10962
10963 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10964 (ppc_linux_nat_target::auxv_parse)
10965 (ppc_linux_nat_target::read_description)
10966 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10967 Move up.
10968
10969 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10970
10971 * linux-nat.h (low_new_clone): New method.
10972 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10973
10974 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10975
10976 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10977 (dbx_expand_psymtab): ... this.
10978 (start_psymtab): Update.
10979 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10980 (mdebug_expand_psymtab): ... this.
10981 (parse_partial_symbols): Update.
10982 (new_psymtab): Update.
10983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10984 (xcoff_expand_psymtab): ... this.
10985 (xcoff_start_psymtab): Update.
10986
10987 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10988
10989 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10990 <expand_dependencies>: ... this.
10991 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10992 (partial_symtab::expand_dependencies): ... this.
10993 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10994 Update.
10995 (dwarf2_psymtab::expand_psymtab): Update.
10996 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10997 * mdebugread.c (psymtab_to_symtab_1): Update.
10998 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10999
11000 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
11001
11002 * psympriv.h (discard_psymtab): Remove.
11003 * dbxread.c (dbx_end_psymtab): Update.
11004 * xcoffread.c (xcoff_end_psymtab): Update.
11005
11006 2020-03-28 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
11009 comment.
11010
11011 2020-03-28 Tom Tromey <tom@tromey.com>
11012
11013 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
11014
11015 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
11016
11017 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11018
11019 2020-03-26 John Baldwin <jhb@FreeBSD.org>
11020
11021 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
11022
11023 2020-03-26 Tom Tromey <tom@tromey.com>
11024
11025 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
11026 (mark_common_block_symbol_computed, read_tag_string_type)
11027 (attr_to_dynamic_prop, read_subrange_type): Update.
11028 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
11029 to be methods on struct attribute.
11030 (skip_one_die, process_imported_unit_die, read_namespace_alias)
11031 (read_call_site_scope, partial_die_info::read)
11032 (partial_die_info::read, lookup_die_type, follow_die_ref):
11033 Update.
11034 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
11035 from dwarf2_get_ref_die_offset.
11036 (attribute::constant_value): New method, from
11037 dwarf2_get_attr_constant_value.
11038 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
11039 Declare method.
11040 <constant_value>: New method.
11041
11042 2020-03-26 Tom Tromey <tom@tromey.com>
11043
11044 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
11045 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
11046 (dwarf_type_encoding_name): Move to stringify.c.
11047 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
11048 * dwarf2/stringify.c: New file.
11049 * dwarf2/stringify.h: New file.
11050
11051 2020-03-26 Tom Tromey <tom@tromey.com>
11052
11053 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
11054 Rewrite.
11055
11056 2020-03-26 Tom Tromey <tom@tromey.com>
11057
11058 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
11059 methods.
11060 * dwarf2/read.c (lookup_addr_base): Move to die.h.
11061 (lookup_ranges_base): Likewise.
11062 (read_cutu_die_from_dwo, read_full_die_1): Update.
11063
11064 2020-03-26 Tom Tromey <tom@tromey.com>
11065
11066 * dwarf2/read.c (read_import_statement, read_file_scope)
11067 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
11068 (read_lexical_block_scope, read_call_site_scope)
11069 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
11070 (handle_struct_member_die, process_structure_scope)
11071 (update_enumeration_type_from_children)
11072 (process_enumeration_scope, read_array_type, read_common_block)
11073 (read_namespace, read_module, read_subroutine_type): Update.
11074 (sibling_die): Remove.
11075
11076 2020-03-26 Tom Tromey <tom@tromey.com>
11077
11078 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
11079 (build_type_psymtabs_reader, read_structure_type)
11080 (read_enumeration_type, read_full_die_1): Update.
11081 (dwarf2_attr_no_follow): Move to die.h.
11082 * dwarf2/die.h (struct die_info) <attr>: New method.
11083
11084 2020-03-26 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
11087 <base_address>: Now an optional.
11088 (dwarf2_find_base_address, dwarf2_rnglists_process)
11089 (dwarf2_ranges_process, fill_in_loclist_baton)
11090 (dwarf2_symbol_mark_computed): Update.
11091
11092 2020-03-26 Tom Tromey <tom@tromey.com>
11093
11094 * dwarf2/read.c (struct die_info): Move to die.h.
11095 * dwarf2/die.h: New file.
11096
11097 2020-03-26 Tom Tromey <tom@tromey.com>
11098
11099 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
11100 * dwarf2/read.c
11101 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11102 Move to line-header.c.
11103 (read_checked_initial_length_and_offset, read_formatted_entries):
11104 Likewise.
11105 (dwarf_decode_line_header): Split into two.
11106 * dwarf2/line-header.c
11107 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11108 Move from read.c.
11109 (read_checked_initial_length_and_offset, read_formatted_entries):
11110 Likewise.
11111 (dwarf_decode_line_header): New function, split from read.c.
11112
11113 2020-03-26 Tom Tromey <tom@tromey.com>
11114
11115 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11116 Declare method.
11117 * dwarf2/read.c (read_attribute_value): Update.
11118 (dwarf2_per_objfile::read_line_string): Rename from
11119 read_indirect_line_string.
11120 (read_formatted_entries): Update.
11121
11122 2020-03-26 Tom Tromey <tom@tromey.com>
11123
11124 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11125 variable.
11126
11127 2020-03-26 Tom Tromey <tom@tromey.com>
11128
11129 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11130 const.
11131 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11132 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11133 parameter const.
11134
11135 2020-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11138 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11139 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11140 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11141
11142 2020-03-26 Tom Tromey <tom@tromey.com>
11143
11144 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11145 file_names_size, file_full_name, file_file_name>: Use const.
11146 <file_name_at, file_names>: Add const overload.
11147 * dwarf2/line-header.c (line_header::file_file_name)
11148 (line_header::file_full_name): Update.
11149
11150 2020-03-26 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11153 (macro_start_file, consume_improper_spaces)
11154 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11155 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11156 (dwarf_decode_macros): Move to macro.c.
11157 * dwarf2/macro.c: New file.
11158 * dwarf2/macro.h: New file.
11159 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11160
11161 2020-03-26 Tom Tromey <tom@tromey.com>
11162
11163 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11164 method.
11165 * dwarf2/section.c: New method. From
11166 read_indirect_string_at_offset_from.
11167 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11168 (read_indirect_string_at_offset_from): Move to section.c.
11169 (read_indirect_string_at_offset): Rewrite.
11170 (read_indirect_line_string_at_offset): Remove.
11171 (read_indirect_string, read_indirect_line_string)
11172 (dwarf_decode_macro_bytes): Update.
11173
11174 2020-03-26 Tom Tromey <tom@tromey.com>
11175
11176 * dwarf2/section.h (struct dwarf2_section_info)
11177 <overload_complaint>: Declare.
11178 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11179 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11180 Rename from dwarf2_section_buffer_overflow_complaint.
11181 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11182 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11183
11184 2020-03-26 Tom Tromey <tom@tromey.com>
11185
11186 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11187 Declare.
11188 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11189 Move from read.c.
11190 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11191 to section.c.
11192
11193 2020-03-26 Tom Tromey <tom@tromey.com>
11194
11195 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11196
11197 2020-03-26 Tom Tromey <tom@tromey.com>
11198
11199 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11200 "builder".
11201 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11202 parameter.
11203 (dwarf_decode_macros): Update.
11204
11205 2020-03-26 Tom Tromey <tom@tromey.com>
11206
11207 * dwarf2/read.c (read_attribute_value): Update.
11208 (read_indirect_string_from_dwz): Move to dwz.c; change into
11209 method.
11210 (dwarf_decode_macro_bytes): Update.
11211 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11212 * dwarf2/dwz.c: New file.
11213 * Makefile.in (COMMON_SFILES): Add dwz.c.
11214
11215 2020-03-26 Tom Tromey <tom@tromey.com>
11216
11217 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11218 * dwarf2/read.c: Add include.
11219 * dwarf2/index-write.c: Add include.
11220 * dwarf2/index-cache.c: Add include.
11221 * dwarf2/dwz.h: New file.
11222
11223 2020-03-25 Tom Tromey <tom@tromey.com>
11224
11225 * compile/compile-object-load.c (get_out_value_type): Mention
11226 correct symbol name in error message.
11227
11228 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11229
11230 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11231
11232 2020-03-25 Tom de Vries <tdevries@suse.de>
11233
11234 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11235 * symmisc.c (dump_symtab_1): Print user and includes fields.
11236 (maintenance_info_symtabs): Same.
11237
11238 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 PR gdb/25534
11241 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11242 (riscv_regcache_cooked_write): New function.
11243 (riscv_push_dummy_call): Use new function.
11244 (riscv_return_value): Likewise.
11245
11246 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11247
11248 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11249 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11250 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11251 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11252 * infrun.c (follow_fork): Likewise.
11253 (follow_fork_inferior): Likewise.
11254 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11255 * linux-nat.h (class linux_nat_target): Likewise.
11256 * remote.c (class remote_target) <follow_fork>: Likewise.
11257 (remote_target::follow_fork): Likewise.
11258 * target-delegates.c: Re-generate.
11259 * target.c (default_follow_fork): Likewise.
11260 (target_follow_fork): Likewise.
11261 * target.h (struct target_ops) <follow_fork>: Likewise.
11262 (target_follow_fork): Likewise.
11263
11264 2020-03-24 Tom de Vries <tdevries@suse.de>
11265
11266 * psymtab.c (maintenance_info_psymtabs): Print user field.
11267
11268 2020-03-20 Tom Tromey <tromey@adacore.com>
11269
11270 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11271 const.
11272 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11273 const.
11274
11275 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11276
11277 * ptrace.m4: Don't check for ptrace declaration.
11278 * config.in: Re-generate.
11279 * configure: Re-generate.
11280 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11281 not defined.
11282
11283 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11284
11285 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11286 `PTRACE_TYPE_RET'.
11287 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11288 * sparc-nat.c (gdb_ptrace): Likewise.
11289 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11290
11291 2020-03-20 Tom Tromey <tromey@adacore.com>
11292
11293 * c-exp.y (lex_one_token): Fix assert.
11294
11295 2020-03-20 Tom Tromey <tromey@adacore.com>
11296
11297 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11298 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11299 strncpy call.
11300
11301 2020-03-20 Tom Tromey <tromey@adacore.com>
11302
11303 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11304
11305 2020-03-20 Tom Tromey <tromey@adacore.com>
11306
11307 * ada-valprint.c (print_variant_part): Remove parameters; switch
11308 to value-based API.
11309 (print_field_values): Likewise.
11310 (ada_val_print_struct_union): Likewise.
11311 (ada_value_print_1): Update.
11312
11313 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11314
11315 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11316 nbsd_nat_target instead of inf_ptrace_target.
11317 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11318 nbsd_nat_target.
11319
11320 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11321
11322 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11323 it to the ptrace call.
11324 * (store_registers): Likewise.
11325
11326 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11327
11328 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11329 it to the ptrace call.
11330 * (store_registers): Likewise.
11331
11332 2020-03-19 Luis Machado <luis.machado@linaro.org>
11333
11334 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11335 valid, fetch vg value from ptrace.
11336
11337 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11338 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11339 * inf-ptrace.c: Likewise.
11340 * (gdb_ptrace): Add.
11341 * (inf_ptrace_target::resume): Update.
11342 * (inf_ptrace_target::xfer_partial): Likewise.
11343 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11344 * (inf_ptrace_peek_poke): Update.
11345
11346 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11347
11348 * x86-bsd-nat.c (gdb_ptrace): New.
11349 * (x86bsd_dr_set): Add new argument `ptid'.
11350 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11351 x86bsd_dr_set_addr): Update.
11352
11353 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11354
11355 * remote.c (remote_target::process_stop_reply): Handle events for
11356 all threads differently.
11357
11358 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11359
11360 * completer.c (completion_tracker::remove_completion): Define new
11361 function.
11362 * completer.h (completion_tracker::remove_completion): Declare new
11363 function.
11364 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11365 when adding a C++ function symbol.
11366
11367 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * completer.c (completion_tracker::completion_hash_entry): Define
11370 new class.
11371 (advance_to_filename_complete_word_point): Call
11372 recompute_lowest_common_denominator.
11373 (completion_tracker::completion_tracker): Call discard_completions
11374 to setup the hash table.
11375 (completion_tracker::discard_completions): Allow for being called
11376 from the constructor, pass new equal function, and element deleter
11377 when constructing the hash table. Initialise new class member
11378 variables.
11379 (completion_tracker::maybe_add_completion): Remove use of
11380 m_entries_vec, and store more information into m_entries_hash.
11381 (completion_tracker::recompute_lcd_visitor): New function, most
11382 content taken from...
11383 (completion_tracker::recompute_lowest_common_denominator):
11384 ...here, this now just visits each item in the hash calling the
11385 above visitor.
11386 (completion_tracker::build_completion_result): Remove use of
11387 m_entries_vec, call recompute_lowest_common_denominator.
11388 * completer.h (completion_tracker::have_completions): Remove use
11389 of m_entries_vec.
11390 (completion_tracker::completion_hash_entry): Declare new class.
11391 (completion_tracker::recompute_lowest_common_denominator): Change
11392 function signature.
11393 (completion_tracker::recompute_lcd_visitor): Declare new function.
11394 (completion_tracker::m_entries_vec): Delete.
11395 (completion_tracker::m_entries_hash): Initialize to NULL.
11396 (completion_tracker::m_lowest_common_denominator_valid): New
11397 member variable.
11398 (completion_tracker::m_lowest_common_denominator_max_length): New
11399 member variable.
11400
11401 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11402
11403 * regformats/regdef.h: Put reg in gdb namespace.
11404
11405 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11406
11407 * i386-bsd-nat.c (gdb_ptrace): New.
11408 * (i386bsd_fetch_inferior_registers,
11409 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11410 * (i386bsd_fetch_inferior_registers,
11411 i386bsd_store_inferior_registers) Use gdb_ptrace.
11412
11413 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11414
11415 * amd64-bsd-nat.c (gdb_ptrace): New.
11416 * (amd64bsd_fetch_inferior_registers,
11417 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11418 * (amd64bsd_fetch_inferior_registers,
11419 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11420
11421 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11422
11423 * user-regs.c (user_reg::read): Rename to...
11424 (user_reg::xread): ...this.
11425 * (append_user_reg): Rename argument `read' to `xread'.
11426 * (user_reg_add_builtin): Likewise.
11427 * (user_reg_add): Likewise.
11428 * (value_of_user_reg): Likewise.
11429
11430 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11431
11432 * sparc-nat.c (gdb_ptrace): New.
11433 * sparc-nat.c (sparc_fetch_inferior_registers)
11434 (sparc_store_inferior_registers) Remove obsolete comment.
11435 * sparc-nat.c (sparc_fetch_inferior_registers)
11436 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11437 * sparc-nat.c (sparc_fetch_inferior_registers)
11438 (sparc_store_inferior_registers) Use gdb_ptrace.
11439
11440 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11441
11442 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11443 it to the ptrace call.
11444 * sh-nbsd-nat.c (store_registers): Likewise.
11445
11446 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11447
11448 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11449 nbsd_nat_target instead of inf_ptrace_target.
11450 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11451 nbsd_nat_target.
11452
11453 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11454
11455 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11456
11457 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11458
11459 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11460 <sys/sysctl.h>.
11461 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11462
11463 2020-03-17 Tom de Vries <tdevries@suse.de>
11464
11465 PR gdb/23710
11466 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11467 fields.
11468 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11469 fields.
11470 (process_imported_unit_die): Skip import of c++ CUs.
11471
11472 2020-03-16 Tom Tromey <tom@tromey.com>
11473
11474 * p-valprint.c (pascal_object_print_value): Initialize
11475 base_value.
11476
11477 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11478 Shahab Vahedi <shahab@synopsys.com>
11479
11480 * Makefile.in: Add arch/arc.o
11481 * configure.tgt: Likewise.
11482 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11483 (_initialize_arc_tdep): Don't initialize old target descriptions.
11484 (arc_read_description): New function to cache target descriptions.
11485 * arc-tdep.h (arc_read_description): Add proto type.
11486 * arch/arc.c: New file.
11487 * arch/arc.h: Likewise.
11488 * features/Makefile: Replace old target descriptions with new.
11489 * features/arc-arcompact.c: Remove.
11490 * features/arc-arcompact.xml: Likewise.
11491 * features/arc-v2.c: Likewise
11492 * features/arc-v2.xml: Likewise
11493 * features/arc/aux-arcompact.xml: New file.
11494 * features/arc/aux-v2.xml: Likewise.
11495 * features/arc/core-arcompact.xml: Likewise.
11496 * features/arc/core-v2.xml: Likewise.
11497 * features/arc/aux-arcompact.c: Generate.
11498 * features/arc/aux-v2.c: Likewise.
11499 * features/arc/core-arcompact.c: Likewise.
11500 * features/arc/core-v2.c: Likewise.
11501 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11502
11503 2020-03-16 Tom Tromey <tromey@adacore.com>
11504
11505 PR gdb/25663:
11506 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11507 putting value into bcache.
11508
11509 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11510
11511 PR gdb/21500
11512 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11513 to...
11514 (amd64_windows_init_abi_common): ... this. Don't set size of
11515 long type.
11516 (amd64_windows_init_abi): New function.
11517 (amd64_cygwin_init_abi): New function.
11518 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11519 the Cygwin OS ABI.
11520 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11521 comment.
11522
11523 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11524
11525 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11526 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11527 (pe_import_directory_entry): New struct type.
11528 (is_linked_with_cygwin_dll): New function.
11529 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11530 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11531 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11532
11533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11534
11535 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11536 i386_cygwin_core_osabi_sniffer.
11537
11538 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11539
11540 * i386-cygwin-tdep.c: Rename to...
11541 * i386-windows-tdep.c: ... this.
11542 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11543 i386-windows-tdep.c.
11544 * configure.tgt: Likewise.
11545
11546 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11547
11548 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11549 * osabi.c (gdb_osabi_names): Add "Windows".
11550 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11551 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11552 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11553 i386_cygwin_osabi_sniffer.
11554 (_initialize_i386_cygwin_tdep): Register OS ABI
11555 GDB_OSABI_WINDOWS for i386.
11556 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11557 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11558 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11559 for x86-64.
11560 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11561 when the target matches '*-*-mingw*'.
11562
11563 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11564
11565 * defs.h (enum gdb_osabi): Move to...
11566 * osabi.h (enum gdb_osabi): ... here.
11567 * gdbarch.sh: Include osabi.h in gdbarch.h.
11568 * gdbarch.h: Re-generate.
11569
11570 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11571
11572 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11573 function.
11574 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11575
11576 2020-03-14 Tom Tromey <tom@tromey.com>
11577
11578 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11579 for C++.
11580 (c_type_print_modifier): Likewise. Add "language" parameter.
11581 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11582 (c_type_print_base_1): Update.
11583 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11584 constants.
11585 * type-stack.c (type_stack::insert): Handle tp_atomic and
11586 tp_restrict.
11587 (type_stack::follow_type_instance_flags): Likewise.
11588 (type_stack::follow_types): Likewise. Merge type-following code.
11589 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11590 (space_identifier, cv_with_space_id)
11591 (const_or_volatile_or_space_identifier_noopt)
11592 (const_or_volatile_or_space_identifier): Remove.
11593 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11594 rules.
11595 (ptr_operator, typebase): Update.
11596 (enum token_flag) <FLAG_C>: New constant.
11597 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11598 "_Atomic".
11599 (lex_one_token): Handle FLAG_C.
11600
11601 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11602
11603 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11604 it to the ptrace call.
11605 * m68k-bsd-nat.c (store_registers): Likewise.
11606
11607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11608
11609 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11610 gdb_byte *.
11611 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11612 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11613 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11614
11615 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11616
11617 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11618 nbsd_nat_target instead of inf_ptrace_target.
11619 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11620 nbsd_nat_target.
11621
11622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11623
11624 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11625 register_t.
11626
11627 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11628
11629 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11630 it to the ptrace call.
11631 * alpha-bsd-nat.c (store_registers): Likewise.
11632
11633 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11634
11635 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11636 includes.
11637 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11638 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11639 fill_fpregset): Likewise.
11640
11641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11642
11643 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11644 nbsd_nat_target instead of inf_ptrace_target.
11645 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11646 nbsd_nat_target.
11647
11648 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11649
11650 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11651 register_t.
11652
11653 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11654
11655 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11656 it to the ptrace call.
11657 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11658 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11659 * arm-nbsd-nat.c (store_register): Likewise.
11660 * arm-nbsd-nat.c (store_regs): Likewise.
11661 * arm-nbsd-nat.c (store_fp_register): Likewise.
11662 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11663
11664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11665
11666 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11667 nbsd_nat_target instead of inf_ptrace_target.
11668 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11669 nbsd_nat_target.
11670
11671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11672
11673 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11674 it to the ptrace call.
11675 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11676
11677 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11678
11679 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11680 it to the ptrace call.
11681 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11682
11683 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11684
11685 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11686 gdb_byte *.
11687 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11688
11689 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11690
11691 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11692 instead of inf_ptrace_target.
11693 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11694 nbsd_nat_target.
11695
11696 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11697
11698 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11699 register_t.
11700
11701 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11702
11703 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11704 register_t.
11705
11706 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11707
11708 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11709 register_t.
11710
11711 2020-03-13 Tom Tromey <tom@tromey.com>
11712
11713 * value.h (val_print): Don't declare.
11714 * valprint.h (val_print_array_elements)
11715 (val_print_scalar_formatted, generic_val_print): Don't declare.
11716 * valprint.c (generic_val_print_array): Take a struct value.
11717 (generic_val_print_ptr, generic_val_print_memberptr)
11718 (generic_val_print_bool, generic_val_print_int)
11719 (generic_val_print_char, generic_val_print_complex)
11720 (generic_val_print): Remove.
11721 (generic_value_print): Update.
11722 (do_val_print): Remove unused parameters. Don't call
11723 la_val_print.
11724 (val_print): Remove.
11725 (common_val_print): Update. Don't call value_check_printable.
11726 (val_print_scalar_formatted, val_print_array_elements): Remove.
11727 * rust-lang.c (rust_val_print): Remove.
11728 (rust_language_defn): Update.
11729 * p-valprint.c (pascal_val_print): Remove.
11730 (pascal_value_print_inner): Update.
11731 (pascal_object_print_val_fields, pascal_object_print_val):
11732 Remove.
11733 (pascal_object_print_static_field): Update.
11734 * p-lang.h (pascal_val_print): Don't declare.
11735 * p-lang.c (pascal_language_defn): Update.
11736 * opencl-lang.c (opencl_language_defn): Update.
11737 * objc-lang.c (objc_language_defn): Update.
11738 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11739 * m2-lang.h (m2_val_print): Don't declare.
11740 * m2-lang.c (m2_language_defn): Update.
11741 * language.h (struct language_defn) <la_val_print>: Remove.
11742 * language.c (unk_lang_value_print_inner): Rename. Change
11743 argument types.
11744 (unknown_language_defn, auto_language_defn): Update.
11745 * go-valprint.c (go_val_print): Remove.
11746 * go-lang.h (go_val_print): Don't declare.
11747 * go-lang.c (go_language_defn): Update.
11748 * f-valprint.c (f_val_print): Remove.
11749 * f-lang.h (f_value_print): Don't declare.
11750 * f-lang.c (f_language_defn): Update.
11751 * d-valprint.c (d_val_print): Remove.
11752 * d-lang.h (d_value_print): Don't declare.
11753 * d-lang.c (d_language_defn): Update.
11754 * cp-valprint.c (cp_print_value_fields)
11755 (cp_print_value_fields_rtti, cp_print_value): Remove.
11756 (cp_print_static_field): Update.
11757 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11758 (c_val_print_struct, c_val_print_union, c_val_print_int)
11759 (c_val_print_memberptr, c_val_print): Remove.
11760 * c-lang.h (c_val_print_array, cp_print_value_fields)
11761 (cp_print_value_fields_rtti): Don't declare.
11762 * c-lang.c (c_language_defn, cplus_language_defn)
11763 (asm_language_defn, minimal_language_defn): Update.
11764 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11765 (ada_val_print_enum): Take a struct value.
11766 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11767 (ada_val_print): Remove.
11768 (ada_value_print_1): Update.
11769 (printable_val_type): Remove.
11770 * ada-lang.h (ada_val_print): Don't declare.
11771 * ada-lang.c (ada_language_defn): Update.
11772
11773 2020-03-13 Tom Tromey <tom@tromey.com>
11774
11775 * valprint.c (do_val_print): Update.
11776 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11777 a struct value.
11778 (value_to_value_object_no_release): Declare.
11779 * python/py-value.c (value_to_value_object_no_release): New
11780 function.
11781 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11782 struct value.
11783 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11784 function.
11785 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11786 a struct value.
11787 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11788 Declare.
11789 (gdbscm_apply_val_pretty_printer): Take a struct value.
11790 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11791 value.
11792 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11793 value.
11794 * extension-priv.h (struct extension_language_ops)
11795 <apply_val_pretty_printer>: Take a struct value.
11796 * cp-valprint.c (cp_print_value): Create a struct value.
11797 (cp_print_value): Update.
11798
11799 2020-03-13 Tom Tromey <tom@tromey.com>
11800
11801 * ada-valprint.c (print_field_values): Call common_val_print.
11802
11803 2020-03-13 Tom Tromey <tom@tromey.com>
11804
11805 * ada-valprint.c (val_print_packed_array_elements): Remove
11806 bitoffset and val parameters. Call common_val_print.
11807 (ada_val_print_string): Remove offset, address, and original_value
11808 parameters.
11809 (ada_val_print_array): Update.
11810 (ada_value_print_array): New function.
11811 (ada_value_print_1): Call it.
11812
11813 2020-03-13 Tom Tromey <tom@tromey.com>
11814
11815 * ada-valprint.c (ada_value_print): Use common_val_print.
11816
11817 2020-03-13 Tom Tromey <tom@tromey.com>
11818
11819 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11820
11821 2020-03-13 Tom Tromey <tom@tromey.com>
11822
11823 * ada-valprint.c (ada_value_print_num): New function.
11824 (ada_value_print_1): Use it.
11825
11826 2020-03-13 Tom Tromey <tom@tromey.com>
11827
11828 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11829
11830 2020-03-13 Tom Tromey <tom@tromey.com>
11831
11832 * ada-valprint.c (ada_value_print_ptr): New function.
11833 (ada_value_print_1): Use it.
11834
11835 2020-03-13 Tom Tromey <tom@tromey.com>
11836
11837 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11838 call common_val_print.
11839 (ada_val_print_1): Update.
11840 (ada_value_print_1): New function.
11841 (ada_value_print_inner): Rewrite.
11842
11843 2020-03-13 Tom Tromey <tom@tromey.com>
11844
11845 * cp-valprint.c (cp_print_value_fields): Update.
11846 (cp_print_value): New function.
11847
11848 2020-03-13 Tom Tromey <tom@tromey.com>
11849
11850 * m2-valprint.c (m2_value_print_inner): Use
11851 cp_print_value_fields.
11852 * cp-valprint.c (cp_print_value_fields): New function.
11853 * c-valprint.c (c_value_print_struct): New function.
11854 (c_value_print_inner): Use c_value_print_struct.
11855 * c-lang.h (cp_print_value_fields): Declare.
11856
11857 2020-03-13 Tom Tromey <tom@tromey.com>
11858
11859 * c-valprint.c (c_value_print_array): New function.
11860 (c_value_print_inner): Use it.
11861
11862 2020-03-13 Tom Tromey <tom@tromey.com>
11863
11864 * c-valprint.c (c_value_print_memberptr): New function.
11865 (c_value_print_inner): Use it.
11866
11867 2020-03-13 Tom Tromey <tom@tromey.com>
11868
11869 * c-valprint.c (c_value_print_int): New function.
11870 (c_value_print_inner): Use it.
11871
11872 2020-03-13 Tom Tromey <tom@tromey.com>
11873
11874 * c-valprint.c (c_value_print_ptr): New function.
11875 (c_value_print_inner): Use it.
11876
11877 2020-03-13 Tom Tromey <tom@tromey.com>
11878
11879 * c-valprint.c (c_value_print_inner): Rewrite.
11880
11881 2020-03-13 Tom Tromey <tom@tromey.com>
11882
11883 * valprint.c (generic_value_print_complex): New function.
11884 (generic_value_print): Use it.
11885
11886 2020-03-13 Tom Tromey <tom@tromey.com>
11887
11888 * valprint.c (generic_val_print_float): Don't call
11889 val_print_scalar_formatted.
11890 (generic_val_print, generic_value_print): Update.
11891
11892 2020-03-13 Tom Tromey <tom@tromey.com>
11893
11894 * valprint.c (generic_value_print_char): New function
11895 (generic_value_print): Use it.
11896
11897 2020-03-13 Tom Tromey <tom@tromey.com>
11898
11899 * valprint.c (generic_value_print_int): New function.
11900 (generic_value_print): Use it.
11901
11902 2020-03-13 Tom Tromey <tom@tromey.com>
11903
11904 * valprint.c (generic_value_print_bool): New function.
11905 (generic_value_print): Use it.
11906
11907 2020-03-13 Tom Tromey <tom@tromey.com>
11908
11909 * valprint.c (generic_val_print_func): Simplify.
11910 (generic_val_print, generic_value_print): Update.
11911
11912 2020-03-13 Tom Tromey <tom@tromey.com>
11913
11914 * valprint.c (generic_val_print_flags): Remove.
11915 (generic_val_print, generic_value_print): Update.
11916 (val_print_type_code_flags): Add original_value parameter.
11917
11918 2020-03-13 Tom Tromey <tom@tromey.com>
11919
11920 * valprint.c (generic_val_print): Update.
11921 (generic_value_print): Update.
11922 * valprint.c (generic_val_print_enum): Don't call
11923 val_print_scalar_formatted.
11924
11925 2020-03-13 Tom Tromey <tom@tromey.com>
11926
11927 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11928 * valprint.c (generic_value_print_ptr): New function.
11929
11930 2020-03-13 Tom Tromey <tom@tromey.com>
11931
11932 * valprint.c (generic_value_print): Rewrite.
11933
11934 2020-03-13 Tom Tromey <tom@tromey.com>
11935
11936 * p-valprint.c (pascal_object_print_value_fields)
11937 (pascal_object_print_value): New functions.
11938
11939 2020-03-13 Tom Tromey <tom@tromey.com>
11940
11941 * p-valprint.c (pascal_value_print_inner): Rewrite.
11942
11943 2020-03-13 Tom Tromey <tom@tromey.com>
11944
11945 * f-valprint.c (f_value_print_innner): Rewrite.
11946
11947 2020-03-13 Tom Tromey <tom@tromey.com>
11948
11949 * m2-valprint.c (m2_print_unbounded_array): New overload.
11950 (m2_print_unbounded_array): Update.
11951 (m2_print_array_contents): Take a struct value.
11952 (m2_value_print_inner): Rewrite.
11953
11954 2020-03-13 Tom Tromey <tom@tromey.com>
11955
11956 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11957 (d_value_print_inner): New function.
11958 * d-lang.h (d_value_print_inner): Declare.
11959 * d-lang.c (d_language_defn): Use d_value_print_inner.
11960
11961 2020-03-13 Tom Tromey <tom@tromey.com>
11962
11963 * go-valprint.c (go_value_print_inner): New function.
11964 * go-lang.h (go_value_print_inner): Declare.
11965 * go-lang.c (go_language_defn): Use go_value_print_inner.
11966
11967 2020-03-13 Tom Tromey <tom@tromey.com>
11968
11969 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11970 API.
11971 (rust_val_print): Rewrite.
11972 (rust_value_print_inner): New function, from rust_val_print.
11973 (rust_language_defn): Use rust_value_print_inner.
11974
11975 2020-03-13 Tom Tromey <tom@tromey.com>
11976
11977 * ada-valprint.c (ada_value_print_inner): New function.
11978 * ada-lang.h (ada_value_print_inner): Declare.
11979 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11980
11981 2020-03-13 Tom Tromey <tom@tromey.com>
11982
11983 * f-valprint.c (f_value_print_innner): New function.
11984 * f-lang.h (f_value_print_innner): Declare.
11985 * f-lang.c (f_language_defn): Use f_value_print_innner.
11986
11987 2020-03-13 Tom Tromey <tom@tromey.com>
11988
11989 * p-valprint.c (pascal_value_print_inner): New function.
11990 * p-lang.h (pascal_value_print_inner): Declare.
11991 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11992
11993 2020-03-13 Tom Tromey <tom@tromey.com>
11994
11995 * m2-valprint.c (m2_value_print_inner): New function.
11996 * m2-lang.h (m2_value_print_inner): Declare.
11997 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11998
11999 2020-03-13 Tom Tromey <tom@tromey.com>
12000
12001 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
12002 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
12003 * c-valprint.c (c_value_print_inner): New function.
12004 * c-lang.h (c_value_print_inner): Declare.
12005 * c-lang.c (c_language_defn, cplus_language_defn)
12006 (asm_language_defn, minimal_language_defn): Use
12007 c_value_print_inner.
12008
12009 2020-03-13 Tom Tromey <tom@tromey.com>
12010
12011 * p-valprint.c (pascal_object_print_value_fields): Now static.
12012 * p-lang.h (pascal_object_print_value_fields): Don't declare.
12013
12014 2020-03-13 Tom Tromey <tom@tromey.com>
12015
12016 * c-valprint.c (c_val_print_array): Simplify.
12017
12018 2020-03-13 Tom Tromey <tom@tromey.com>
12019
12020 * valprint.c (value_print_array_elements): New function.
12021 * valprint.h (value_print_array_elements): Declare.
12022
12023 2020-03-13 Tom Tromey <tom@tromey.com>
12024
12025 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
12026 * mips-tdep.c (mips_print_register): Use
12027 value_print_scalar_formatted.
12028
12029 2020-03-13 Tom Tromey <tom@tromey.com>
12030
12031 * valprint.h (value_print_scalar_formatted): Declare.
12032 * valprint.c (value_print_scalar_formatted): New function.
12033
12034 2020-03-13 Tom Tromey <tom@tromey.com>
12035
12036 * valprint.h (generic_value_print): Declare.
12037 * valprint.c (generic_value_print): New function.
12038
12039 2020-03-13 Tom Tromey <tom@tromey.com>
12040
12041 * valprint.c (do_val_print): Call la_value_print_inner, if
12042 available.
12043 * rust-lang.c (rust_language_defn): Update.
12044 * p-lang.c (pascal_language_defn): Update.
12045 * opencl-lang.c (opencl_language_defn): Update.
12046 * objc-lang.c (objc_language_defn): Update.
12047 * m2-lang.c (m2_language_defn): Update.
12048 * language.h (struct language_defn) <la_value_print_inner>: New
12049 member.
12050 * language.c (unknown_language_defn, auto_language_defn): Update.
12051 * go-lang.c (go_language_defn): Update.
12052 * f-lang.c (f_language_defn): Update.
12053 * d-lang.c (d_language_defn): Update.
12054 * c-lang.c (c_language_defn, cplus_language_defn)
12055 (asm_language_defn, minimal_language_defn): Update.
12056 * ada-lang.c (ada_language_defn): Update.
12057
12058 2020-03-13 Tom Tromey <tom@tromey.com>
12059
12060 * c-valprint.c (c_value_print): Use common_val_print.
12061
12062 2020-03-13 Tom Tromey <tom@tromey.com>
12063
12064 * cp-valprint.c (cp_print_static_field): Use common_val_print.
12065
12066 2020-03-13 Tom Tromey <tom@tromey.com>
12067
12068 * f-valprint.c (f77_print_array_1, f_val_print): Use
12069 common_val_print.
12070
12071 2020-03-13 Tom Tromey <tom@tromey.com>
12072
12073 * riscv-tdep.c (riscv_print_one_register_info): Use
12074 common_val_print.
12075
12076 2020-03-13 Tom Tromey <tom@tromey.com>
12077
12078 * mi/mi-main.c (output_register): Use common_val_print.
12079
12080 2020-03-13 Tom Tromey <tom@tromey.com>
12081
12082 * infcmd.c (default_print_one_register_info): Use
12083 common_val_print.
12084
12085 2020-03-13 Tom Tromey <tom@tromey.com>
12086
12087 * valprint.h (common_val_print_checked): Declare.
12088 * valprint.c (common_val_print_checked): New function.
12089 * stack.c (print_frame_arg): Use common_val_print_checked.
12090
12091 2020-03-13 Tom Tromey <tom@tromey.com>
12092
12093 * valprint.c (do_val_print): New function, from val_print.
12094 (val_print): Use do_val_print.
12095 (common_val_print): Use do_val_print.
12096
12097 2020-03-13 Tom Tromey <tom@tromey.com>
12098
12099 * valprint.c (value_print): Use scoped_value_mark.
12100
12101 2020-03-13 Tom de Vries <tdevries@suse.de>
12102
12103 PR symtab/25646
12104 * psymtab.c (partial_symtab::partial_symtab): Don't set
12105 globals_offset and statics_offset. Push element onto
12106 current_global_psymbols and current_static_psymbols stacks.
12107 (concat): New function.
12108 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12109 element from current_global_psymbols and current_static_psymbols
12110 stacks. Concat popped elements to global_psymbols and
12111 static_symbols.
12112 (add_psymbol_to_list): Use current_global_psymbols and
12113 current_static_psymbols stacks.
12114 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12115 current_static_psymbols fields.
12116
12117 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12118
12119 * corelow.c (sniff_core_bfd): Remove.
12120 (class core_target) <m_core_vec>: Remove.
12121 (core_target::core_target): Update.
12122 (core_file_fns): Remove.
12123 (deprecated_add_core_fns): Remove.
12124 (default_core_sniffer): Remove.
12125 (sniff_core_bfd): Remove.
12126 (default_check_format): Remove.
12127 (gdb_check_format): Remove.
12128 (core_target_open): Update.
12129 (core_target::get_core_register_section): Update.
12130 (get_core_registers_cb): Update.
12131 (core_target::fetch_registers): Update.
12132 * gdbcore.h (struct core_fns): Remove.
12133 (deprecated_add_core_fns): Remove.
12134 (default_core_sniffer): Remove.
12135 (default_check_format): Remove.
12136
12137 2020-03-12 Tom Tromey <tom@tromey.com>
12138
12139 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12140 CORE_ADDR.
12141 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12142
12143 2020-03-12 Tom Tromey <tom@tromey.com>
12144
12145 * remote.c (remote_target::download_tracepoint)
12146 (remote_target::enable_tracepoint)
12147 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12148 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12149 sprintf_vma.
12150
12151 2020-03-12 Tom Tromey <tom@tromey.com>
12152
12153 * symfile-mem.c: Update CORE_ADDR size assert.
12154
12155 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12156
12157 * selftest.m4: Move to gdbsupport/.
12158 * acinclude.m4: Update path to selftest.m4.
12159
12160 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12161
12162 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12163 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12164 gdbarch-selfselftests.c and selftest-arch.c.
12165 (SUBDIR_UNITTESTS_OBS): Rename to...
12166 (SELFTESTS_OBS): ... this.
12167 (COMMON_SFILES): Remove disasm-selftests.c and
12168 gdbarch-selftests.c.
12169 * configure.ac: Don't add selftest-arch.{c,o} to
12170 CONFIG_{SRCS,OBS}.
12171 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12172 preprocessor conditions.
12173
12174 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12175
12176 * configure.ac: Don't source bfd/development.sh.
12177 * selftest.m4: Modify comment.
12178 * configure: Re-generate.
12179
12180 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12181
12182 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12183 not "true" or "false".
12184 * configure: Re-generate.
12185
12186 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12187
12188 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12189 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12190 renamed to arm_nbsd_supply_gregset.
12191 (fetch_register): Update to call arm_nbsd_supply_gregset.
12192 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12193 (arm_netbsd_nat_target::fetch_registers): Update.
12194 (fetch_elfcore_registers): Removed.
12195 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12196 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12197 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12198 not require NetBSD system headers.
12199 (arm_nbsd_regset): New struct.
12200 (arm_nbsd_iterate_over_regset_sections): New function.
12201 (arm_netbsd_init_abi_common): Updated to call
12202 set_gdbarch_iterate_over_regset_sections.
12203 * arm-nbsd-tdep.h: New file.
12204
12205 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12206
12207 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12208 recursion.
12209
12210 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12211
12212 * configure: Re-generate.
12213
12214 2020-03-11 Tom Tromey <tromey@adacore.com>
12215
12216 * ada-typeprint.c (print_choices): Fix comment.
12217
12218 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12219
12220 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12221 previous item in the list, when the list has no items.
12222
12223 2020-03-11 Tom de Vries <tdevries@suse.de>
12224
12225 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12226 PROP_LOCLIST handling code.
12227
12228 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12229
12230 * buildsym-legacy.c (record_line): Pass extra parameter to
12231 record_line.
12232 * buildsym.c (buildsym_compunit::record_line): Take an extra
12233 parameter, reduce duplication in the line table, and record the
12234 is_stmt flag in the line table.
12235 * buildsym.h (buildsym_compunit::record_line): Add extra
12236 parameter.
12237 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12238 non-statement lines.
12239 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12240 this to the symtab builder.
12241 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12242 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12243 through to dwarf_record_line_1.
12244 * infrun.c (process_event_stop_test): When stepping, don't stop at
12245 a non-statement instruction, and only refresh the step info when
12246 we land in the middle of a line's range. Also add an extra
12247 comment.
12248 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12249 field.
12250 * record-btrace.c (btrace_find_line_range): Only record lines
12251 marked as is-statement.
12252 * stack.c (frame_show_address): Show the frame address if we are
12253 in a non-statement sal.
12254 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12255 (maintenance_print_one_line_table): Print a header for the is_stmt
12256 column, and include is_stmt information in the output.
12257 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12258 preference to non-statements.
12259 (find_pcs_for_symtab_line): Prefer is-statement entries.
12260 (find_line_common): Likewise.
12261 * symtab.h (struct linetable_entry): Add is_stmt field.
12262 (struct symtab_and_line): Likewise.
12263 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12264 arranging the line table.
12265
12266 2020-03-07 Tom de Vries <tdevries@suse.de>
12267
12268 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12269 DIE.
12270
12271 2020-03-07 Tom Tromey <tom@tromey.com>
12272
12273 * valops.c (value_literal_complex): Remove obsolete comment.
12274 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12275 comment.
12276
12277 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12278
12279 * infrun.h: Forward-declare thread_info.
12280 (set_step_info): Add thread_info parameter, add doc.
12281 * infrun.c (set_step_info): Add thread_info parameter, move doc
12282 to header.
12283 * infrun.c (process_event_stop_test): Pass thread to
12284 set_step_info call.
12285 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12286 set_step_info.
12287 (prepare_one_step): Add thread_info parameter, pass it to
12288 set_step_frame and prepare_one_step (recursive) call.
12289 (step_1): Pass thread to prepare_one_step call.
12290 (step_command_fsm::should_stop): Pass thread to
12291 prepare_one_step.
12292 (until_next_fsm): Pass thread to set_step_frame call.
12293 (finish_command): Pass thread to set_step_info call.
12294
12295 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12296
12297 * windows-tdep.c (windows_solib_create_inferior_hook):
12298 Check if inferior is running.
12299
12300 2020-03-06 Tom de Vries <tdevries@suse.de>
12301
12302 * NEWS: Fix "the the".
12303 * ctfread.c: Same.
12304
12305 2020-03-06 Tom de Vries <tdevries@suse.de>
12306
12307 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12308
12309 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12310
12311 * .dir-locals.el: Add a comment referencing the other copies of
12312 this file.
12313
12314 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12315
12316 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12317 psargs.
12318
12319 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12320
12321 * .gitattributes: New file.
12322
12323 2020-03-04 Tom Tromey <tom@tromey.com>
12324
12325 * symmisc.c (print_symbol_bcache_statistics)
12326 (print_objfile_statistics): Update.
12327 * symfile.c (allocate_symtab): Use intern.
12328 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12329 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12330 macro_cache>: Remove.
12331 <string_cache>: New member.
12332 (struct objfile) <intern>: New methods.
12333 * elfread.c (elf_symtab_read): Use intern.
12334 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12335 (dwarf2_compute_name, dwarf2_physname)
12336 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12337 names.
12338 (guess_partial_die_structure_name): Update.
12339 (partial_die_info::fixup): Intern name.
12340 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12341 name.
12342 (dwarf2_name): Intern name. Update.
12343 * buildsym.c (buildsym_compunit::get_macro_table): Use
12344 string_cache.
12345
12346 2020-03-04 Tom Tromey <tom@tromey.com>
12347
12348 * jit.c (bfd_open_from_target_memory): Make "target" const.
12349 * corefile.c (gnutarget): Now const.
12350 * gdbcore.h (gnutarget): Now const.
12351
12352 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12353
12354 * NEWS: Mention support for WOW64 processes.
12355 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12356 (amd64_windows_segment_register_p): Remove static.
12357 (_initialize_amd64_windows_nat): Update.
12358 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12359 * i386-windows-nat.c (context_offset): Update.
12360 (i386_mappings): Rename and remove static.
12361 (i386_windows_segment_register_p): Remove static.
12362 (_initialize_i386_windows_nat): Update.
12363 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12364 (STATUS_WX86_SINGLE_STEP): New macro.
12365 (EnumProcessModulesEx): New macro.
12366 (Wow64SuspendThread): New macro.
12367 (Wow64GetThreadContext): New macro.
12368 (Wow64SetThreadContext): New macro.
12369 (Wow64GetThreadSelectorEntry): New macro.
12370 (windows_set_context_register_offsets): Add static.
12371 (windows_set_segment_register_p): Likewise.
12372 (windows_add_thread): Adapt for WOW64 processes.
12373 (windows_fetch_one_register): Likewise.
12374 (windows_nat_target::fetch_registers): Likewise.
12375 (windows_store_one_register): Likewise.
12376 (display_selector): Likewise.
12377 (display_selectors): Likewise.
12378 (handle_exception): Likewise.
12379 (windows_continue): Likewise.
12380 (windows_nat_target::resume): Likewise.
12381 (windows_add_all_dlls): Likewise.
12382 (do_initial_windows_stuff): Likewise.
12383 (windows_nat_target::attach): Likewise.
12384 (windows_get_exec_module_filename): Likewise.
12385 (windows_nat_target::create_inferior): Likewise.
12386 (windows_xfer_siginfo): Likewise.
12387 (_initialize_loadable): Initialize Wow64SuspendThread,
12388 Wow64GetThreadContext, Wow64SetThreadContext,
12389 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12390 * windows-nat.h (windows_set_context_register_offsets):
12391 Remove declaration.
12392 (windows_set_segment_register_p): Likewise.
12393 (i386_windows_segment_register_p): Add declaration.
12394 (amd64_windows_segment_register_p): Likewise.
12395
12396 2020-03-04 Luis Machado <luis.machado@linaro.org>
12397
12398 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12399 in "info registers" for AArch64/ARM.
12400
12401 The change caused "info registers" to not print GPR's.
12402
12403 gdb/ChangeLog:
12404
12405 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12406
12407 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12408 when reg->group is empty and reggroup is not.
12409
12410 2020-03-03 Tom Tromey <tromey@adacore.com>
12411
12412 * dwarf2/frame.c (struct dwarf2_frame_cache)
12413 <checked_tailcall_bottom, entry_cfa_sp_offset,
12414 entry_cfa_sp_offset_p>: Remove members.
12415 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12416 (dwarf2_frame_prev_register): Don't call
12417 dwarf2_tailcall_sniffer_first.
12418 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12419 * frame-unwind.c (add_unwinder): New fuction.
12420 (frame_unwind_init): Use it. Add tailcall unwinder.
12421
12422 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12423 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12424
12425 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12426 value should be printed as true.
12427
12428 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12429
12430 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12431 (windows_init_abi): Set and use windows_so_ops.
12432
12433 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12434
12435 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12436 when verifying if dealing with a convenience variable.
12437
12438 2020-03-03 Luis Machado <luis.machado@linaro.org>
12439
12440 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12441
12442 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12443
12444 * infrun.c (gdbarch_supports_displaced_stepping): New.
12445 (use_displaced_stepping): Break up conditions in smaller pieces.
12446 Use gdbarch_supports_displaced_stepping.
12447 (displaced_step_prepare_throw): Use
12448 gdbarch_supports_displaced_stepping.
12449
12450 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12451
12452 * NEWS: Mention new behaviour of the history filename.
12453 * top.c (write_history_p): Add comment.
12454 (show_write_history_p): Add header comment, give a different
12455 message when history writing is on, but the history filename is
12456 empty.
12457 (history_filename): Add comment.
12458 (history_filename_empty): New function.
12459 (show_history_filename): Add header comment, give a different
12460 message when the filename is empty.
12461 (init_history): Compare history_filename against nullptr, and only
12462 read history if the filename is not empty.
12463 (set_history_filename): Add header comment, and only make
12464 non-empty filenames absolute.
12465 (init_main): Make the filename argument to 'set history filename'
12466 optional.
12467
12468 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12469
12470 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12471 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12472 (fetch_fp_register): Update.
12473 (fetch_fp_regs): Update.
12474 (store_fp_register): Update.
12475 (store_fp_regs): Update.
12476 (arm_netbsd_nat_target::read_description): New function.
12477 (fetch_elfcore_registers): Update.
12478
12479 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12480
12481 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12482 general_thread if the stop reply is missing a thread-id.
12483 (remote_target::process_stop_reply): Use the first non-exited
12484 thread if the target didn't pass a thread-id.
12485 * infrun.c (do_target_wait): Move call to
12486 switch_to_inferior_no_thread to ....
12487 (do_target_wait_1): ... here.
12488
12489 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12490
12491 * debuginfod-support.c: Include defs.h first.
12492
12493 2020-02-28 Tom de Vries <tdevries@suse.de>
12494
12495 * symfile.c (set_initial_language): Use default language for lookup.
12496
12497 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12500 reader variable, pass `this` to read_cutu_die_from_dwo.
12501
12502 2020-02-27 Aaron Merey <amerey@redhat.com>
12503
12504 * source.c (open_source_file): Check for nullptr when computing
12505 srcpath.
12506
12507 2020-02-27 Tom Tromey <tromey@adacore.com>
12508
12509 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12510 member.
12511 (dwarf2_add_field): Don't update nfields.
12512 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12513
12514 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12515
12516 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12517 abs.
12518
12519 2020-02-26 Tom Tromey <tom@tromey.com>
12520
12521 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12522 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12523 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12524 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12525 per_cu_data.
12526
12527 2020-02-26 Tom Tromey <tom@tromey.com>
12528
12529 * dwarf2/index-write.c (psym_index_map): Change type.
12530 (add_address_entry_worker, write_one_signatured_type)
12531 (recursively_count_psymbols, recursively_write_psymbols)
12532 (class debug_names, psyms_seen_size, write_gdbindex)
12533 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12534
12535 2020-02-26 Aaron Merey <amerey@redhat.com>
12536
12537 * Makefile.in: Handle optional debuginfod support.
12538 * NEWS: Update.
12539 * README: Add --with-debuginfod summary.
12540 * config.in: Regenerate.
12541 * configure: Regenerate.
12542 * configure.ac: Handle optional debuginfod support.
12543 * debuginfod-support.c: debuginfod helper functions.
12544 * debuginfod-support.h: Ditto.
12545 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12546 summary.
12547 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12548 when a dwz file cannot be found.
12549 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12550 debuginfo file cannot be found.
12551 * source.c (open_source_file): Query debuginfod servers when a
12552 source file cannot be found.
12553 * top.c (print_gdb_configuration): Include
12554 --{with,without}-debuginfod in the output.
12555
12556 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12557
12558 * thread.c (thr_try_catch_cmd): Print thread name.
12559
12560 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12561
12562 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12563 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12564 dwarf2_fetch_die_type_sect_off): Move to...
12565 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12566 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12567 dwarf2_fetch_die_type_sect_off): ... here.
12568 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12570 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12571
12572 2020-02-26 Tom de Vries <tdevries@suse.de>
12573
12574 PR gdb/25603
12575 * symfile.c (set_initial_language): Exit-early if
12576 language_mode == language_mode_manual.
12577
12578 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12579
12580 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12581 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12582 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12583
12584 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12585
12586 * gdbtypes.c (create_array_type_with_stride): Handle negative
12587 array strides.
12588 * valarith.c (value_subscripted_rvalue): Likewise.
12589
12590 2020-02-25 Luis Machado <luis.machado@linaro.org>
12591
12592 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12593
12594 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12595
12596 * loc.h (dwarf2_get_die_type): Move to...
12597 * read.h (dwarf2_get_die_type): ... here.
12598 * read.c (dwarf2_get_die_type): Move doc to header.
12599
12600 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12601
12602 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12603 'gnulib/Makefile.in' to the list.
12604
12605 2020-02-24 Tom Tromey <tom@tromey.com>
12606
12607 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12608 Remove.
12609 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12610 XOBNEWVEC.
12611
12612 2020-02-24 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12615 New method.
12616 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12617 (dw2_do_instantiate_symtab, dw2_get_file_names)
12618 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12619
12620 2020-02-24 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12623 make_scoped_restore.
12624 (dwarf2_psymtab::read_symtab): Don't clear
12625 reading_partial_symbols.
12626
12627 2020-02-24 Tom de Vries <tdevries@suse.de>
12628
12629 PR gdb/25592
12630 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12631
12632 2020-02-24 Tom de Vries <tdevries@suse.de>
12633
12634 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12635 commands layout next/prev/regs.
12636
12637 2020-02-22 Tom Tromey <tom@tromey.com>
12638
12639 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12640 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12641
12642 2020-02-22 Tom Tromey <tom@tromey.com>
12643
12644 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12645
12646 2020-02-22 Tom Tromey <tom@tromey.com>
12647
12648 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12649 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12650 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12651 * tui/tui.c (_initialize_tui): Add usage text.
12652
12653 2020-02-22 Tom Tromey <tom@tromey.com>
12654
12655 * tui/tui-win.c (tui_set_focus_command)
12656 (tui_set_win_height_command): Use error_no_arg.
12657 (_initialize_tui_win): Update help text.
12658 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12659
12660 2020-02-22 Tom Tromey <tom@tromey.com>
12661
12662 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12663 * tui/tui-disasm.h (struct tui_disasm_window)
12664 <display_start_addr>: Declare.
12665 * tui/tui-source.h (struct tui_source_window)
12666 <display_start_addr>: Declare.
12667 * tui/tui-winsource.h (struct tui_source_window_base)
12668 <show_source_line, display_start_addr>: New methods.
12669 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12670 Rename and move to protected section.
12671 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12672 (tui_source_window_base::do_erase_source_content): Update.
12673 (tui_source_window_base::show_source_line): Now a method.
12674 (tui_source_window_base::show_source_content)
12675 (tui_source_window_base::tui_source_window_base)
12676 (tui_source_window_base::rerender)
12677 (tui_source_window_base::refill)
12678 (tui_source_window_base::do_scroll_horizontal)
12679 (tui_source_window_base::set_is_exec_point_at)
12680 (tui_source_window_base::update_breakpoint_info)
12681 (tui_source_window_base::update_exec_info): Update.
12682 * tui/tui-source.c (tui_source_window::set_contents)
12683 (tui_source_window::showing_source_p)
12684 (tui_source_window::do_scroll_vertical)
12685 (tui_source_window::location_matches_p)
12686 (tui_source_window::line_is_displayed): Update.
12687 (tui_source_window::display_start_addr): New method.
12688 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12689 (tui_disasm_window::do_scroll_vertical)
12690 (tui_disasm_window::location_matches_p): Update.
12691 (tui_disasm_window::display_start_addr): New method.
12692
12693 2020-02-22 Tom Tromey <tom@tromey.com>
12694
12695 * NEWS: Add entry for gdb.register_window_type.
12696 * tui/tui-layout.h (window_factory): New typedef.
12697 (tui_register_window): Declare.
12698 * tui/tui-layout.c (saved_tui_windows): New global.
12699 (tui_apply_current_layout): Use it.
12700 (tui_register_window): New function.
12701 * python/python.c (do_start_initialization): Call
12702 gdbpy_initialize_tui.
12703 (python_GdbMethods): Add "register_window_type" function.
12704 * python/python-internal.h (gdbpy_register_tui_window)
12705 (gdbpy_initialize_tui): Declare.
12706 * python/py-tui.c: New file.
12707 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12708
12709 2020-02-22 Tom Tromey <tom@tromey.com>
12710
12711 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12712
12713 2020-02-22 Tom Tromey <tom@tromey.com>
12714
12715 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12716 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12717 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12718 (tui_set_win_focus_to): Move from tui-win.c.
12719
12720 2020-02-22 Tom Tromey <tom@tromey.com>
12721
12722 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12723 functions.
12724 (known_window_types): New global.
12725 (tui_get_window_by_name): Reimplement.
12726 (initialize_known_windows): New function.
12727 (validate_window_name): Rewrite.
12728 (_initialize_tui_layout): Call initialize_known_windows.
12729
12730 2020-02-22 Tom Tromey <tom@tromey.com>
12731
12732 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12733 Remove constants.
12734 * tui/tui-winsource.h (struct tui_source_window_base)
12735 <tui_source_window_base>: Remove parameter.
12736 * tui/tui-winsource.c
12737 (tui_source_window_base::tui_source_window_base): Remove
12738 parameter.
12739 (tui_source_window_base::refill): Update.
12740 * tui/tui-stack.h (struct tui_locator_window)
12741 <tui_locator_window>: Update.
12742 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12743 Default the constructor.
12744 * tui/tui-regs.h (struct tui_data_item_window)
12745 <tui_data_item_window>: Default the constructor.
12746 (struct tui_data_window) <tui_data_window>: Likewise.
12747 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12748 Default the constructor.
12749 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12750 Default the constructor.
12751 <type>: Remove.
12752 (struct tui_win_info) <tui_win_info>: Default the constructor.
12753 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12754 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12755 Default the constructor.
12756
12757 2020-02-22 Tom Tromey <tom@tromey.com>
12758
12759 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12760 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12761 * tui/tui-win.c (tui_resize_all): Don't call
12762 tui_delete_invisible_windows.
12763 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12764 done.
12765 (tui_set_layout): Update.
12766 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12767 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12768 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12769
12770 2020-02-22 Tom Tromey <tom@tromey.com>
12771
12772 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12773 correctly.
12774
12775 2020-02-22 Tom Tromey <tom@tromey.com>
12776
12777 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12778
12779 2020-02-22 Tom Tromey <tom@tromey.com>
12780
12781 * tui/tui-winsource.h (struct tui_source_window_iterator)
12782 <inner_iterator>: New etytypedef.
12783 <tui_source_window_iterator>: Take "end" parameter.
12784 <tui_source_window_iterator>: Take iterator.
12785 <operator*, advance>: Update.
12786 <m_iter>: Change type.
12787 <m_end>: New field.
12788 (struct tui_source_windows) <begin, end>: Update.
12789 * tui/tui-layout.c (tui_windows): New global.
12790 (tui_apply_current_layout): Clear tui_windows.
12791 (tui_layout_window::apply): Update tui_windows.
12792 * tui/tui-data.h (tui_windows): Declare.
12793 (all_tui_windows): Now inline function.
12794 (class tui_window_iterator, struct all_tui_windows): Remove.
12795
12796 2020-02-22 Tom Tromey <tom@tromey.com>
12797
12798 PR tui/17850:
12799 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12800 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12801 "height" argument.
12802 (class tui_layout_window) <get_sizes>: Likewise.
12803 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12804 argument.
12805 <get_sizes>: Add "height" argument.
12806 <m_vertical>: New field.
12807 * tui/tui-layout.c (tui_layout_split::clone): Update.
12808 (tui_layout_split::get_sizes): Add "height" argument.
12809 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12810 (tui_new_layout_command): Parse "-horizontal".
12811 (_initialize_tui_layout): Update help string.
12812 (tui_layout_split::specification): Add "-horizontal" when needed.
12813 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12814 argument.
12815 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12816 New methods.
12817
12818 2020-02-22 Tom Tromey <tom@tromey.com>
12819
12820 * tui/tui-layout.h (enum tui_adjust_result): New.
12821 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12822 (class tui_layout_window) <adjust_size>: Return
12823 tui_adjust_result. Rewrite.
12824 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12825 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12826
12827 2020-02-22 Tom Tromey <tom@tromey.com>
12828
12829 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12830 parameter and return types.
12831 (class tui_layout_base) <specification>: Add "depth".
12832 (class tui_layout_window) <specification>: Add "depth".
12833 (class tui_layout_split) <specification>: Add "depth".
12834 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12835 and return types.
12836 (tui_new_layout_command): Parse sub-layouts.
12837 (_initialize_tui_layout): Update help string.
12838 (tui_layout_window::specification): Add "depth".
12839 (add_layout_command): Update.
12840
12841 2020-02-22 Tom Tromey <tom@tromey.com>
12842
12843 * NEWS: Add "tui new-layout" item.
12844 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12845 Add new-layout command to help text.
12846 (validate_window_name): New function.
12847 (tui_new_layout_command): New function.
12848 (_initialize_tui_layout): Register "new-layout".
12849 (tui_layout_window::specification): New method.
12850 (tui_layout_window::specification): New method.
12851 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12852 method.
12853 (class tui_layout_window) <specification>: New method.
12854 (class tui_layout_split) <specification>: New method.
12855
12856 2020-02-22 Tom Tromey <tom@tromey.com>
12857
12858 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12859 * tui/tui-win.c (window_name_completer): Update comment.
12860 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12861 Declare method.
12862 (class tui_layout_window) <replace_window>: Likewise.
12863 (class tui_layout_split) <replace_window>: Likewise.
12864 (tui_set_layout): Don't declare.
12865 (tui_set_initial_layout): Declare function.
12866 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12867 (asm_regs_layout): New globals.
12868 (tui_current_layout, show_layout): Remove.
12869 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12870 (find_layout, tui_apply_layout): New function.
12871 (layout_completer): Remove.
12872 (tui_next_layout): Reimplement.
12873 (tui_next_layout_command): New function.
12874 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12875 (tui_regs_layout): Reimplement.
12876 (tui_regs_layout_command): New function.
12877 (extract_display_start_addr): Rewrite.
12878 (next_layout, prev_layout): Remove.
12879 (tui_layout_window::replace_window): New method.
12880 (tui_layout_split::replace_window): New method.
12881 (destroy_layout): New function.
12882 (layout_list): New global.
12883 (add_layout_command): New function.
12884 (initialize_layouts): Update.
12885 (tui_layout_command): New function.
12886 (_initialize_tui_layout): Install "layout" commands.
12887 * tui/tui-data.h (enum tui_layout_type): Remove.
12888 (tui_current_layout): Don't declare.
12889
12890 2020-02-22 Tom Tromey <tom@tromey.com>
12891
12892 * tui/tui-regs.c (tui_reg_layout): Remove.
12893 (tui_reg_command): Use tui_regs_layout.
12894 * tui/tui-layout.h (tui_reg_command): Declare.
12895 * tui/tui-layout.c (tui_reg_command): New function.
12896
12897 2020-02-22 Tom Tromey <tom@tromey.com>
12898
12899 * tui/tui.c (tui_rl_delete_other_windows): Call
12900 tui_remove_some_windows.
12901 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12902 Declare method.
12903 (class tui_layout_window) <remove_windows>: New method.
12904 (class tui_layout_split) <remove_windows>: Declare.
12905 (tui_remove_some_windows): Declare.
12906 * tui/tui-layout.c (tui_remove_some_windows): New function.
12907 (tui_layout_split::remove_windows): New method.
12908
12909 2020-02-22 Tom Tromey <tom@tromey.com>
12910
12911 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12912 * tui/tui-layout.h (tui_next_layout): Declare.
12913 * tui/tui-layout.c (tui_next_layout): New function.
12914
12915 2020-02-22 Tom Tromey <tom@tromey.com>
12916
12917 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12918 correct coordinates.
12919
12920 2020-02-22 Tom Tromey <tom@tromey.com>
12921
12922 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12923 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12924 DATA_WIN case.
12925
12926 2020-02-22 Tom Tromey <tom@tromey.com>
12927
12928 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12929 TUI_DISASM_WIN, not tui_win_list.
12930
12931 2020-02-22 Tom Tromey <tom@tromey.com>
12932
12933 * valprint.c (generic_val_print_enum_1)
12934 (val_print_type_code_flags): Style member names.
12935 * rust-lang.c (val_print_struct, rust_print_enum)
12936 (rust_print_struct_def, rust_internal_print_type): Style member
12937 names.
12938 * p-valprint.c (pascal_object_print_value_fields): Style member
12939 names. Only call fprintf_symbol_filtered for static members.
12940 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12941 * f-valprint.c (f_val_print): Style member names.
12942 * f-typeprint.c (f_type_print_base): Style member names.
12943 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12944 call fprintf_symbol_filtered for static members.
12945 (cp_print_class_member): Style member names.
12946 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12947 member names.
12948 * ada-valprint.c (ada_print_scalar): Style enum names.
12949 (ada_val_print_enum): Likewise.
12950 * ada-typeprint.c (print_enum_type): Style enum names.
12951
12952 2020-02-21 Tom Tromey <tom@tromey.com>
12953
12954 * psympriv.h (struct partial_symtab): Update comment.
12955
12956 2020-02-21 Tom Tromey <tromey@adacore.com>
12957
12958 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12959 type is CORE_ADDR.
12960
12961 2020-02-21 Tom de Vries <tdevries@suse.de>
12962
12963 PR gdb/25534
12964 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12965 if dependencies[i]->user != NULL.
12966
12967 2020-02-21 Ali Tamur <tamur@google.com>
12968
12969 * dwarf2/read.c (dwarf2_name): Add null check.
12970
12971 2020-02-20 Tom Tromey <tom@tromey.com>
12972
12973 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12974 ">=", in binary search.
12975 (dwarf2_find_containing_comp_unit): New overload.
12976 (run_test): New self-test.
12977 (_initialize_dwarf2_read): Register new test.
12978
12979 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12980
12981 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12982 * riscv-tdep.h: Likewise.
12983 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12984 rv32-only CSR.
12985 * features/riscv/64bit-csr.xml: Regenerated.
12986
12987 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12988 Tom Tromey <tom@tromey.com>
12989
12990 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12991 of 'fputc_unfiltered'.
12992 (putchar_unfiltered): Call 'fputc_unfiltered'.
12993 (fputc_unfiltered): Call 'fputs_unfiltered'.
12994
12995 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12996
12997 * config.in: Regenerate.
12998 * configure: Regenerate.
12999 * configure.ac: Add --with-python-libdir option.
13000 * main.c: Use WITH_PYTHON_LIBDIR.
13001
13002 2020-02-19 Tom Tromey <tom@tromey.com>
13003
13004 * symtab.c (general_symbol_info::compute_and_set_names): Use
13005 obstack_strndup. Simplify call to symbol_set_demangled_name.
13006
13007 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
13008
13009 * dwarf2/read.c (allocate_signatured_type_table,
13010 allocate_dwo_unit_table, allocate_type_unit_groups_table,
13011 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
13012 Remove objfile parameter, update all callers.
13013
13014 2020-02-19 Doug Evans <dje@google.com>
13015
13016 PR rust/25535
13017 * rust-lang.c (rust_print_enum): Apply embedded_offset to
13018 rust_enum_variant calculation.
13019
13020 2020-02-19 Tom Tromey <tromey@adacore.com>
13021
13022 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
13023
13024 2020-02-19 Tom Tromey <tromey@adacore.com>
13025
13026 * ada-lang.c (cache_symbol): Use obstack_strdup.
13027
13028 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13029
13030 * configure: Regenerate.
13031
13032 2020-02-19 Tom Tromey <tromey@adacore.com>
13033
13034 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
13035 NULL check.
13036
13037 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
13038
13039 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
13040
13041 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
13042
13043 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
13044 if GDBSERVER is not defined.
13045 (riscv_tdesc_cache): Likewise, also store const target_desc.
13046 (STATIC_IN_GDB): Define.
13047 (riscv_create_target_description): Update declaration with
13048 STATIC_IN_GDB.
13049 (riscv_lookup_target_description): New function, only define if
13050 GDBSERVER is not defined.
13051 * arch/riscv.h (riscv_create_target_description): Declare only
13052 when GDBSERVER is defined.
13053 (riscv_lookup_target_description): New declaration when GDBSERVER
13054 is not defined.
13055 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
13056 (riscv_linux_read_features): ...this, and return
13057 riscv_gdbarch_features instead of target_desc.
13058 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
13059 (riscv_linux_read_description): Rename to...
13060 (riscv_linux_read_features): ...this.
13061 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13062 Update to use riscv_gdbarch_features and
13063 riscv_lookup_target_description.
13064 * riscv-tdep.c (riscv_find_default_target_description): Use
13065 riscv_lookup_target_description instead of
13066 riscv_create_target_description.
13067
13068 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13069
13070 * valprint.c (generic_val_print_enum_1): When printing a flag
13071 enum with value 0 and there is no enumerator with value 0, print
13072 just "0" instead of "(unknown: 0x0)".
13073
13074 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13075
13076 * valprint.c (generic_val_print_enum_1): Print unknown part of
13077 flag enum in hex.
13078
13079 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13080
13081 * dwarf2/read.c (update_enumeration_type_from_children): Allow
13082 flag enums to contain duplicate enumerators.
13083 * valprint.c (generic_val_print_enum_1): Update comment.
13084
13085 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13086
13087 * dwarf2/read.c: Include "count-one-bits.h".
13088 (update_enumeration_type_from_children): If an enumerator has
13089 multiple bits set, don't treat the enumeration as a "flag enum".
13090 * valprint.c (generic_val_print_enum_1): Assert that enumerators
13091 of flag enums have 0 or 1 bit set.
13092
13093 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13094
13095 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
13096 conversion.
13097 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13098 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13099 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13100 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13101 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13102
13103 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13106
13107 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13108
13109 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13110 displaced_step_closure_up.
13111 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13112 (struct displaced_step_closure_up):
13113 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13114 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13115 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13116 Likewise.
13117 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13118 * gdbarch.c, gdbarch.h: Re-generate.
13119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13120 displaced_step_closure_up.
13121 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13122 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13123 * infrun.h (displaced_step_closure_up): New type alias.
13124 (struct displaced_step_inferior_state) <step_closure>: Change
13125 type to displaced_step_closure_up.
13126 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13127 displaced_step_closure_up.
13128 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13129
13130 2020-02-14 Tom Tromey <tom@tromey.com>
13131
13132 * minidebug.c (gnu_debug_key): New global.
13133 (find_separate_debug_file_in_section): Use it.
13134
13135 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13136
13137 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13138 std::unique_ptr.
13139 * gdbarch.c: Re-generate.
13140 * gdbarch.h: Re-generate.
13141 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13142 change.
13143 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13144 type to std::unique_ptr.
13145 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13146 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13147 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13148 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13149 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13150 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13151 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13152 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13154
13155 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13156
13157 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13158 std::unique_ptr.
13159 (displaced_step_clear): Rename to...
13160 (displaced_step_reset): ... this. Just call displaced->reset ().
13161 (displaced_step_clear_cleanup): Rename to...
13162 (displaced_step_reset_cleanup): ... this.
13163 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13164 (displaced_step_fixup): Likewise.
13165 (resume_1): Likewise.
13166 (handle_inferior_event): Restore child's memory before calling
13167 displaced_step_fixup on the parent.
13168 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13169 to std::unique_ptr.
13170 <step_closure>: Change type to std::unique_ptr.
13171
13172 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13173
13174 * arm-tdep.c: Include count-one-bits.h.
13175 (cleanup_block_store_pc): Use count_one_bits.
13176 (cleanup_block_load_pc): Use count_one_bits.
13177 (arm_copy_block_xfer): Use count_one_bits.
13178 (thumb2_copy_block_xfer): Use count_one_bits.
13179 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13180 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13181 (thumb_get_next_pcs_raw): Use count_one_bits.
13182 (arm_get_next_pcs_raw): Use count_one_bits_l.
13183 * arch/arm.c (bitcount): Remove.
13184 * arch/arm.h (bitcount): Remove.
13185
13186 2020-02-14 Tom Tromey <tromey@adacore.com>
13187
13188 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13189 Update.
13190 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13191 * dwarf2/loc.c (call_site_find_chain_1): Return
13192 unique_xmalloc_ptr.
13193 (call_site_find_chain): Likewise.
13194
13195 2020-02-14 Richard Biener <rguenther@suse.de>
13196
13197 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13198 on expression with division operators.
13199
13200 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13201
13202 * MAINTAINERS (Write After Approval): Adding myself.
13203
13204 2020-02-12 Tom Tromey <tom@tromey.com>
13205
13206 * event-loop.c (event_data, gdb_event, event_handler_func):
13207 Remove.
13208
13209 2020-02-12 Tom Tromey <tom@tromey.com>
13210
13211 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13212 (dwarf2_frame_objfile_data): Add comment.
13213 (find_comp_unit, set_comp_unit): New functions.
13214 (dwarf2_frame_find_fde): Use find_comp_unit.
13215 (dwarf2_build_frame_info): Use set_comp_unit.
13216
13217 2020-02-12 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13220 (comp_unit): Don't initialize objfile.
13221 (execute_cfa_program): Add text_offset parameter.
13222 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13223 (dwarf2_frame_cache): Update.
13224 (dwarf2_build_frame_info): Don't set "objfile" member.
13225
13226 2020-02-12 Tom Tromey <tom@tromey.com>
13227
13228 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13229 (decode_frame_entry): Likewise.
13230 (dwarf2_build_frame_info): Update.
13231
13232 2020-02-12 Tom Tromey <tom@tromey.com>
13233
13234 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13235 (decode_frame_entry_1): Use the comp_unit obstack.
13236
13237 2020-02-12 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2/frame.c (struct comp_unit): Add initializers and
13240 constructor.
13241 (dwarf2_frame_objfile_data): Store a comp_unit.
13242 (dwarf2_frame_find_fde): Update.
13243 (dwarf2_build_frame_info): Use "new".
13244
13245 2020-02-12 Tom Tromey <tom@tromey.com>
13246
13247 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13248 (dwarf2_fde_table): Typedef for std::vector.
13249 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13250 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13251 (decode_frame_entry): Update.
13252 (dwarf2_build_frame_info): Use "new".
13253
13254 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13255
13256 * arm-tdep.c (arm_gdbarch_init): Update.
13257 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13258 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13259 have_neon, is_m>: Change to bool.
13260
13261 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13262
13263 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13264
13265 2020-02-12 Tom Tromey <tom@tromey.com>
13266
13267 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13268
13269 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13270
13271 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13272 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13273
13274 2020-02-11 Tom Tromey <tom@tromey.com>
13275
13276 * psymtab.h: Update comment.
13277
13278 2020-02-11 Tom Tromey <tom@tromey.com>
13279
13280 * gdb_obstack.h (struct auto_obstack): Use
13281 DISABLE_COPY_AND_ASSIGN.
13282
13283 2020-02-11 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2/frame.h (struct objfile): Don't forward declare.
13286
13287 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13288
13289 * cris-tdep.c (cris_supply_gregset): Change signature to match
13290 what struct regset expects.
13291 (cris_regset): New struct.
13292 (fetch_core_registers): Remove.
13293 (cris_iterate_over_regset_sections): New function.
13294 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13295 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13296
13297 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13298
13299 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13300 registers.
13301
13302 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13303
13304 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
13313
13314 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13315
13316 * acinclude: Update warning.m4 path.
13317 * warning.m4: Move to gdbsupport.
13318
13319 2020-02-11 Tom Tromey <tromey@adacore.com>
13320
13321 * remote.c (remote_console_output): Update.
13322 * printcmd.c (printf_command): Update.
13323 * event-loop.c (gdb_wait_for_event): Update.
13324 * linux-nat.c (sigchld_handler): Update.
13325 * remote-sim.c (gdb_os_write_stdout): Update.
13326 (gdb_os_flush_stdout): Update.
13327 (gdb_os_flush_stderr): Update.
13328 (gdb_os_write_stderr): Update.
13329 * exceptions.c (print_exception): Update.
13330 * remote-fileio.c (remote_fileio_func_read): Update.
13331 (remote_fileio_func_write): Update.
13332 * tui/tui.c (tui_enable): Update.
13333 * tui/tui-interp.c (tui_interp::init): Update.
13334 * utils.c (init_page_info): Update.
13335 (putchar_unfiltered, fputc_unfiltered): Update.
13336 (gdb_flush): Update.
13337 (emit_style_escape): Update.
13338 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13339 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13340 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13341 (stderr_file::write): Update.
13342 (stderr_file::puts): Update.
13343 * ui-file.h (ui_file_isatty, ui_file_write)
13344 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13345 (ui_file_puts): Don't declare.
13346
13347 2020-02-10 Tom de Vries <tdevries@suse.de>
13348
13349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13350 sentinel to char *.
13351
13352 2020-02-09 Tom de Vries <tdevries@suse.de>
13353
13354 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13355 filename if it matches "<artificial>".
13356
13357 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13358
13359 * windows-tdep.c (struct enum_value_name): New struct.
13360 (create_enum): New function.
13361 (windows_get_siginfo_type): Create and use enum types.
13362
13363 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13364
13365 * NEWS: Mention $_siginfo support for Windows.
13366 * windows-nat.c (handle_exception): Set siginfo_er.
13367 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13368 (windows_xfer_siginfo): New function.
13369 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13370 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13371 (init_windows_gdbarch_data): New function.
13372 (get_windows_gdbarch_data): New function.
13373 (windows_get_siginfo_type): New function.
13374 (windows_init_abi): Register windows_get_siginfo_type.
13375 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13376
13377 2020-02-08 Tom Tromey <tom@tromey.com>
13378
13379 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13380 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13381 <keep>: Declare method.
13382 <m_keep>: Remove member.
13383 <~cutu_reader>: Remove.
13384 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13385 (cutu_reader::cutu_reader): Update.
13386 (cutu_reader::keep): Rename from ~cutu_reader.
13387 (process_psymtab_comp_unit, build_type_psymtabs_1)
13388 (process_skeletonless_type_unit, load_partial_comp_unit)
13389 (load_full_comp_unit, dwarf2_read_addr_index)
13390 (read_signatured_type): Update.
13391
13392 2020-02-08 Tom Tromey <tom@tromey.com>
13393
13394 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13395 "want_partial_unit" parameter.
13396 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13397 Inline check for DW_TAG_partial_unit.
13398 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13399
13400 2020-02-08 Tom Tromey <tom@tromey.com>
13401
13402 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13403 read.c.
13404 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13405 read.c.
13406
13407 2020-02-08 Tom Tromey <tom@tromey.com>
13408
13409 * dwarf2/read.c (read_address): Move to comp-unit.c.
13410 (dwarf2_rnglists_process, dwarf2_ranges_process)
13411 (read_attribute_value, dwarf_decode_lines_1)
13412 (var_decode_location, decode_locdesc): Update.
13413 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13414 read.c. Remove "cu" parameter.
13415 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13416 method.
13417
13418 2020-02-08 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13421 (read_indirect_line_string): Update.
13422 * dwarf2/comp-unit.c (read_offset): Remove.
13423 (read_comp_unit_head): Update.
13424 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13425 method.
13426 (read_offset): Don't declare.
13427
13428 2020-02-08 Tom Tromey <tom@tromey.com>
13429
13430 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13431 * dwarf2/read.c (struct comp_unit_head): Move to
13432 dwarf2/comp-unit.h.
13433 (enum class rcuh_kind): Move to comp-unit.h.
13434 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13435 (read_comp_unit_head, error_check_comp_unit_head)
13436 (read_and_check_comp_unit_head): Move to comp-unit.c.
13437 (read_offset, dwarf_unit_type_name): Likewise.
13438 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13439 (cutu_reader::cutu_reader, read_call_site_scope)
13440 (find_partial_die, follow_die_offset): Update.
13441 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13442
13443 2020-02-08 Tom Tromey <tom@tromey.com>
13444
13445 * dwarf2/read.c (read_offset_1): Move to leb.c.
13446 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13447 (dwarf_decode_macro_bytes): Update.
13448 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13449 * dwarf2/leb.h (read_offset): Declare.
13450
13451 2020-02-08 Tom Tromey <tom@tromey.com>
13452
13453 * dwarf2/read.c (dwarf2_section_size): Remove.
13454 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13455 Update.
13456 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13457
13458 2020-02-08 Tom Tromey <tom@tromey.com>
13459
13460 * dwarf2/read.c (read_initial_length): Move to leb.c.
13461 * dwarf2/leb.h (read_initial_length): Declare.
13462 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13463 handle_nonstd parameter.
13464 * dwarf2/frame.c (read_initial_length): Remove.
13465 (decode_frame_entry_1): Update.
13466
13467 2020-02-08 Tom Tromey <tom@tromey.com>
13468
13469 * dwarf2/loc.c (dwarf2_find_location_expression)
13470 (dwarf_evaluate_loc_desc::get_tls_address)
13471 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13472 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13473 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13474 (dwarf2_compile_property_to_c)
13475 (dwarf2_loc_desc_get_symbol_read_needs)
13476 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13477 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13478 (loclist_describe_location, loclist_tracepoint_var_ref)
13479 (loclist_generate_c_location): Update.
13480 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13481 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13482 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13483 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13484 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13485 (dwarf2_per_cu_data::addr_size)
13486 (dwarf2_per_cu_data::ref_addr_size)
13487 (dwarf2_per_cu_data::text_offset)
13488 (dwarf2_per_cu_data::addr_type): Now methods.
13489 (per_cu_header_read_in): Make per_cu "const".
13490 (dwarf2_version): Remove.
13491 (dwarf2_per_cu_data::int_type): Now a method.
13492 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13493 (set_die_type, read_array_type, read_subrange_index_type)
13494 (read_tag_string_type, read_subrange_type): Update.
13495 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13496 offset_size, ref_addr_size, text_offset, addr_type, version,
13497 objfile, int_type, addr_sized_int_type>: Declare methods.
13498
13499 2020-02-08 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13502 Move earlier.
13503
13504 2020-02-08 Tom Tromey <tom@tromey.com>
13505
13506 * dwarf2/read.h (dwarf_line_debug): Declare.
13507 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13508 * dwarf2/read.c: Move line_header code to new files.
13509 (dwarf_line_debug): No longer static.
13510 * dwarf2/line-header.c: New file.
13511 * dwarf2/line-header.h: New file.
13512
13513 2020-02-08 Tom Tromey <tom@tromey.com>
13514
13515 * dwarf2/read.c (struct line_header) <file_full_name,
13516 file_file_name>: Return unique_xmalloc_ptr.
13517 (line_header::file_file_name): Update.
13518 (line_header::file_full_name): Update.
13519 (dw2_get_file_names_reader): Update.
13520 (macro_start_file): Update.
13521
13522 2020-02-08 Tom Tromey <tom@tromey.com>
13523
13524 * dwarf2/read.c (struct line_header) <file_full_name,
13525 file_file_name>: Declare methods.
13526 (dw2_get_file_names_reader): Update.
13527 (file_file_name): Now a method.
13528 (file_full_name): Likewise.
13529 (macro_start_file): Update.
13530
13531 2020-02-08 Tom Tromey <tom@tromey.com>
13532
13533 * dwarf2/read.c (dwarf_always_disassemble)
13534 (show_dwarf_always_disassemble): Move to loc.c.
13535 (_initialize_dwarf2_read): Move "always-disassemble" registration
13536 to loc.c.
13537 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13538 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13539 static.
13540 (show_dwarf_always_disassemble): Move from read.c.
13541 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13542
13543 2020-02-08 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13546 (create_quick_file_names_table): Return htab_up.
13547 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13548 Update.
13549 * dwarf2/read.h (struct dwarf2_per_objfile)
13550 <quick_file_names_table>: Now htab_up.
13551
13552 2020-02-08 Tom Tromey <tom@tromey.com>
13553
13554 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13555
13556 2020-02-08 Tom Tromey <tom@tromey.com>
13557
13558 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13559 Rewrite.
13560 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13561 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13562 (abbrev_table::abbrev_table): No longer inline.
13563 (ABBREV_HASH_SIZE): Remove.
13564 (abbrev_table::m_abbrevs): Now an htab_up.
13565
13566 2020-02-08 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13569 (cutu_reader): Update.
13570 (build_type_psymtabs_1): Update.
13571 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13572 (abbrev_table::alloc_abbrev): Update.
13573 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13574 (abbrev_table::read): New static method, renamed from
13575 abbrev_table_read_table.
13576 (abbrev_table::alloc_abbrev)
13577 (abbrev_table::add_abbrev): Now private.
13578 (abbrev_table::abbrev_table): Now private.
13579 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13580
13581 2020-02-08 Tom Tromey <tom@tromey.com>
13582
13583 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13584 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13585 htab_up.
13586
13587 2020-02-08 Tom Tromey <tom@tromey.com>
13588
13589 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13590 htab_up.
13591 (lookup_dwo_unit_in_dwp): Update.
13592 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13593 on obstack.
13594
13595 2020-02-08 Tom Tromey <tom@tromey.com>
13596
13597 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13598 obstack.
13599
13600 2020-02-08 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13603 line_header_hash.
13604 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13605 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13606 Change type to htab_up.
13607
13608 2020-02-08 Tom Tromey <tom@tromey.com>
13609
13610 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13611 htab_up. Don't allocate on obstack.
13612 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13613 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13614 Change type to htab_up.
13615
13616 2020-02-08 Tom Tromey <tom@tromey.com>
13617
13618 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13619 Change type to htab_up.
13620 * dwarf2/read.c (create_signatured_type_table_from_index)
13621 (create_signatured_type_table_from_debug_names)
13622 (create_all_type_units, add_type_unit)
13623 (lookup_dwo_signatured_type, lookup_signatured_type)
13624 (process_skeletonless_type_unit): Update.
13625 (create_debug_type_hash_table, create_debug_types_hash_table):
13626 Change type of types_htab.
13627 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13628 htab_up. Don't allocate on obstack.
13629 (create_cus_hash_table): Change type of cus_htab parameter.
13630 (struct dwo_file) <cus, tus>: Now htab_up.
13631 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13632 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13633 (queue_and_load_all_dwo_tus): Update.
13634 * dwarf2/index-write.c (write_gdbindex): Update.
13635 (write_debug_names): Update.
13636
13637 2020-02-08 Tom Tromey <tom@tromey.com>
13638
13639 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13640 dwarf2/read.c. Remove "next" member. Add constructor ntad
13641 destructor.
13642 (struct dwarf2_per_objfile) <queue>: New member.
13643 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13644 dwarf2/read.h.
13645 (dwarf2_queue, dwarf2_queue_tail): Remove.
13646 (class dwarf2_queue_guard): Add parameter to constructor. Use
13647 DISABLE_COPY_AND_ASSIGN.
13648 <m_per_objfile>: New member.
13649 <~dwarf2_queue_guard>: Rewrite.
13650 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13651 Update.
13652 (~dwarf2_queue_item): New.
13653
13654 2020-02-08 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2/read.c (struct die_info) <has_children>: New member.
13657 (dw2_get_file_names_reader): Remove has_children.
13658 (dw2_get_file_names): Update.
13659 (read_cutu_die_from_dwo): Remove has_children.
13660 (cutu_reader::init_tu_and_read_dwo_dies)
13661 (cutu_reader::cutu_reader): Update.
13662 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13663 Remove has_children.
13664 (build_type_psymtabs_1, process_skeletonless_type_unit)
13665 (load_partial_comp_unit, load_full_comp_unit): Update.
13666 (create_dwo_cu_reader): Remove has_children.
13667 (create_cus_hash_table, read_die_and_children): Update.
13668 (read_full_die_1,read_full_die): Remove has_children.
13669 (read_signatured_type): Update.
13670 (class cutu_reader) <has_children>: Remove.
13671
13672 2020-02-08 Tom Tromey <tom@tromey.com>
13673
13674 * dwarf2/expr.c: Rename from dwarf2expr.c.
13675 * dwarf2/expr.h: Rename from dwarf2expr.h.
13676 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13677 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13678 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13679 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13680 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13681 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13682 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13683 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13684 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13685 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13686 * dwarf2/loc.c: Rename from dwarf2loc.c.
13687 * dwarf2/loc.h: Rename from dwarf2loc.h.
13688 * dwarf2/read.c: Rename from dwarf2read.c.
13689 * dwarf2/read.h: Rename from dwarf2read.h.
13690 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13691 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13692 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13693 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13694 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13695 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13696 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13697 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13698 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13699 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13700 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13701 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13702 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13703 Update.
13704 * Makefile.in (COMMON_SFILES): Update.
13705 (HFILES_NO_SRCDIR): Update.
13706
13707 2020-02-08 Tom Tromey <tom@tromey.com>
13708
13709 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13710 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13711
13712 2020-02-08 Tom Tromey <tom@tromey.com>
13713
13714 * dwarf2read.h (struct die_info): Don't declare.
13715
13716 2020-02-08 Tom Tromey <tom@tromey.com>
13717
13718 * dwarf2read.h (die_info_ptr): Remove typedef.
13719
13720 2020-02-08 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2read.c (read_call_site_scope)
13723 (handle_data_member_location, dwarf2_add_member_fn)
13724 (mark_common_block_symbol_computed, read_common_block)
13725 (attr_to_dynamic_prop, partial_die_info::read)
13726 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13727 (dwarf2_symbol_mark_computed, set_die_type): Update.
13728 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13729 method.
13730 (attr_form_is_block): Don't declare.
13731 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13732
13733 2020-02-08 Tom Tromey <tom@tromey.com>
13734
13735 * dwarf2read.c (dwarf2_find_base_address, )
13736 (read_call_site_scope, rust_containing_type)
13737 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13738 (handle_data_member_location, dwarf2_add_member_fn)
13739 (get_alignment, read_structure_type, process_structure_scope)
13740 (mark_common_block_symbol_computed, read_common_block)
13741 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13742 (partial_die_info::read, read_attribute_value, new_symbol)
13743 (lookup_die_type, dwarf2_get_ref_die_offset)
13744 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13745 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13746 (dwarf2_symbol_mark_computed): Update.
13747 * dwarf2/attribute.h (struct attribute) <value_as_address,
13748 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13749 methods.
13750 (value_as_address, attr_form_is_section_offset)
13751 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13752 * dwarf2/attribute.c (attribute::value_as_address)
13753 (attribute::form_is_section_offset, attribute::form_is_constant)
13754 (attribute::form_is_ref): Now methods.
13755
13756 2020-02-08 Tom Tromey <tom@tromey.com>
13757
13758 * dwarf2read.c (struct attribute, DW_STRING)
13759 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13760 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13761 (attr_form_is_block, attr_form_is_section_offset)
13762 (attr_form_is_constant, attr_form_is_ref): Move.
13763 * dwarf2/attribute.h: New file.
13764 * dwarf2/attribute.c: New file, from dwarf2read.c.
13765 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13766
13767 2020-02-08 Tom Tromey <tom@tromey.com>
13768
13769 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13770 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13771 Move.
13772 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13773 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13774 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13775 abbrev.c.
13776 * dwarf2/abbrev.h: New file.
13777 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13778 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13779
13780 2020-02-08 Tom Tromey <tom@tromey.com>
13781
13782 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13783 (dwarf2_section_size, dwarf2_get_section_info)
13784 (create_signatured_type_table_from_debug_names)
13785 (create_addrmap_from_aranges, read_debug_names_from_section)
13786 (get_gdb_index_contents_from_section, read_comp_unit_head)
13787 (error_check_comp_unit_head, read_abbrev_offset)
13788 (create_debug_type_hash_table, init_cu_die_reader)
13789 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13790 (read_comp_units_from_section, create_cus_hash_table)
13791 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13792 (create_dwp_v2_section, dwarf2_rnglists_process)
13793 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13794 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13795 (read_indirect_string_from_dwz, read_addr_index_1)
13796 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13797 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13798 (fill_in_loclist_baton): Update.
13799 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13800 get_containing_section, get_bfd_owner, get_bfd_section,
13801 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13802 (dwarf2_read_section, get_section_name, get_section_file_name)
13803 (get_containing_section, get_section_bfd_owner)
13804 (get_section_bfd_section, get_section_name, get_section_file_name)
13805 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13806 declare.
13807 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13808 (dwarf2_section_info::get_bfd_owner)
13809 (dwarf2_section_info::get_bfd_section)
13810 (dwarf2_section_info::get_name)
13811 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13812 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13813 (dwarf2_section_info::read): Now methods.
13814 * dwarf-index-write.c (class debug_names): Update.
13815
13816 2020-02-08 Tom Tromey <tom@tromey.com>
13817
13818 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13819 Move to dwarf2/section.h.
13820 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13821 (get_section_bfd_section, get_section_name)
13822 (get_section_file_name, get_section_id, get_section_flags)
13823 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13824 dwarf2/section.c.
13825 * dwarf2/section.h: New file.
13826 * dwarf2/section.c: New file, from dwarf2read.c.
13827 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13828
13829 2020-02-08 Tom Tromey <tom@tromey.com>
13830
13831 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13832 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13833 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13834 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13835 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13836 * dwarf2/leb.h: New file, from dwarf2read.c.
13837 * dwarf2/leb.c: New file, from dwarf2read.c.
13838 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13839 Remove.
13840 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13841 (COMMON_SFILES): Add dwarf2/leb.c.
13842
13843 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13844
13845 GDB 9.1 released.
13846
13847 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13848
13849 PR gdb/25190:
13850 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13851 * gdb/remote.c (remote_console_output): Update.
13852 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13853 (ui_file_puts): ...this.
13854 * gdb/ui-file.h (ui_file_puts): Add declaration.
13855 * gdb/utils.c (emit_style_escape): Update.
13856 (flush_wrap_buffer): Update.
13857 (fputs_maybe_filtered): Update.
13858 (fputs_unfiltered): Add function.
13859
13860 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13861
13862 * gdb/event-loop.c (gdb_wait_for_event): Update.
13863 * gdb/printcmd.c (printf_command): Update.
13864 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13865 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13866 (gdb_os_flush_stderr): Update.
13867 * gdb/remote.c (remote_console_output): Update.
13868 * gdb/ui-file.c (gdb_flush): Rename to...
13869 (ui_file_flush): ...this.
13870 (stderr_file::write): Update.
13871 (stderr_file::puts): Update.
13872 * gdb/ui-file.h (gdb_flush): Rename to...
13873 (ui_file_flush): ...this.
13874 * gdb/utils.c (gdb_flush): Add function.
13875 * gdb/utils.h (gdb_flush): Add declaration.
13876
13877 2020-02-07 Tom Tromey <tromey@adacore.com>
13878
13879 PR breakpoints/24915:
13880 * source.c (find_and_open_source): Do not check basenames_may_differ.
13881
13882 2020-02-07 Tom Tromey <tom@tromey.com>
13883
13884 * README: Update gdbserver documentation.
13885 * gdbserver: Move to top level.
13886 * configure.tgt (build_gdbserver): Remove.
13887 * configure.ac: Remove --enable-gdbserver.
13888 * configure: Rebuild.
13889 * Makefile.in (distclean): Don't mention gdbserver.
13890
13891 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13892
13893 * source-cache.c (source_cache::ensure): Surround
13894 get_plain_source_lines with a try/catch.
13895 (source_cache::get_line_charpos): Get rid of try/catch
13896 and only check for the return value of "ensure".
13897 * tui/tui-source.c (tui_source_window::set_contents):
13898 Simplify "nlines" calculation.
13899
13900 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13901
13902 * MAINTAINERS (Write After Approval): Add myself.
13903
13904 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13905
13906 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13907 function call.
13908
13909 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13910
13911 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13912
13913 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13914
13915 * nat/riscv-linux-tdesc.h: New file.
13916 * nat/riscv-linux-tdesc.c: New file, taking code from...
13917 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13918 ... here.
13919 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13920 NATDEPFILES.
13921
13922 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13923
13924 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13925 we don't set the fake simulator ptid to the null_ptid.
13926
13927 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13928
13929 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13930 * gdbthread.h (class thread_info) <resumed>: Likewise.
13931 * infrun.c (resume_1): Likewise.
13932 (proceed): Likewise.
13933 (infrun_thread_stop_requested): Likewise.
13934 (stop_all_threads): Likewise.
13935 (handle_inferior_event): Likewise.
13936 (restart_threads): Likewise.
13937 (finish_step_over): Likewise.
13938 (keep_going_stepped_thread): Likewise.
13939 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13940 (linux_handle_extended_wait): Likewise.
13941 * record-btrace.c (get_thread_current_frame_id): Likewise.
13942 * record-full.c (record_full_wait_1): Likewise.
13943 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13944 * target.c (target_resume): Likewise.
13945 * thread.c (set_running_thread): Likewise.
13946
13947 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13948
13949 * f-valprint.c (f77_print_array_1): Changed datatype of index
13950 variable to LONGEST from int to enable it to contain bound
13951 values correctly.
13952
13953 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13954
13955 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13956 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13957 offsets according to FLEN determined.
13958 (riscv_linux_nat_target::read_description): Determine FLEN
13959 dynamically.
13960 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13961 according to FLEN determined.
13962 (riscv_linux_nat_target::store_registers): Likewise.
13963
13964 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13965
13966 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13967 when reg->group is empty and reggroup is not.
13968
13969 2020-01-31 Tom Tromey <tromey@adacore.com>
13970
13971 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13972 Call beneath target's mourn_inferior after unpushing.
13973
13974 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13975
13976 PR tui/9765
13977 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13978 have enough lines to fill the screen, still return the lowest
13979 address we found.
13980
13981 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13982
13983 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13984 '-', '<', and '>' commands.
13985
13986 2020-01-29 Pedro Alves <palves@redhat.com>
13987 Sergio Durigan Junior <sergiodj@redhat.com>
13988
13989 * infcmd.c (construct_inferior_arguments): Assert that
13990 'argc' is greater than 0.
13991
13992 2020-01-29 Luis Machado <luis.machado@linaro.org>
13993
13994 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13995 (BRK_INSN_MASK): Define to 0xd4200000.
13996 (aarch64_program_breakpoint_here_p): New function.
13997 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13998 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13999 breakpoint.c.
14000 * arch-utils.h (default_program_breakpoint_here_p): Moved from
14001 breakpoint.h
14002 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
14003 call gdbarch_program_breakpoint_here_p.
14004 (program_breakpoint_here): Moved to arch-utils.c, renamed to
14005 default_program_breakpoint_here_p, changed return type to bool and
14006 simplified.
14007 * breakpoint.h (program_breakpoint_here): Moved prototype to
14008 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
14009 return type to bool.
14010 * gdbarch.c: Regenerate.
14011 * gdbarch.h: Regenerate.
14012 * gdbarch.sh (program_breakpoint_here_p): New method.
14013 * infrun.c (handle_signal_stop): Call
14014 gdbarch_program_breakpoint_here_p.
14015
14016 2020-01-26 Tom Tromey <tom@tromey.com>
14017
14018 * ctfread.c (struct ctf_fp_info): Reindent.
14019 (_initialize_ctfread): Remove.
14020
14021 2020-01-26 Tom Tromey <tom@tromey.com>
14022
14023 * psymtab.c (partial_map_expand_apply)
14024 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
14025 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
14026 (psym_print_stats, psym_expand_symtabs_for_function)
14027 (psym_map_symbol_filenames, psym_map_matching_symbols)
14028 (psym_expand_symtabs_matching)
14029 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
14030 (maintenance_check_psymtabs): Use new methods.
14031 * psympriv.h (struct partial_symtab) <readin_p,
14032 get_compunit_symtab>: New methods.
14033 <readin, compunit_symtab>: Remove members.
14034 (struct standard_psymtab): New.
14035 (struct legacy_psymtab): Derive from standard_psymtab.
14036 * dwarf2read.h (struct dwarf2_psymtab): Derive from
14037 standard_psymtab.
14038 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
14039
14040 2020-01-26 Tom Tromey <tom@tromey.com>
14041
14042 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
14043 read_dependencies. Add assert.
14044 * psymtab.c (partial_symtab::read_dependencies): New method.
14045 * psympriv.h (struct partial_symtab) <read_dependencies>: New
14046 method.
14047 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
14048 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
14049 read_dependencies.
14050 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
14051 Add assert.
14052
14053 2020-01-26 Tom Tromey <tom@tromey.com>
14054
14055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
14056 Call expand_psymtab.
14057 (xcoff_read_symtab): Call expand_psymtab.
14058 (xcoff_start_psymtab, xcoff_end_psymtab): Set
14059 legacy_expand_psymtab.
14060 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
14061 method.
14062 (struct legacy_psymtab) <expand_psymtab>: Implement.
14063 <legacy_expand_psymtab>: New member.
14064 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
14065 (parse_partial_symbols): Set legacy_expand_psymtab.
14066 (psymtab_to_symtab_1): Change argument order. Call
14067 expand_psymtab.
14068 (new_psymtab): Set legacy_expand_psymtab.
14069 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
14070 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
14071 expand_psymtab.
14072 (dwarf2_psymtab::expand_psymtab): Rename from
14073 psymtab_to_symtab_1. Call expand_psymtab.
14074 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
14075 (dbx_end_psymtab): Likewise.
14076 (dbx_psymtab_to_symtab_1): Change argument order. Call
14077 expand_psymtab.
14078 (dbx_read_symtab): Call expand_psymtab.
14079 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
14080 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
14081 (ctf_psymtab::read_symtab): Call expand_psymtab.
14082
14083 2020-01-26 Tom Tromey <tom@tromey.com>
14084
14085 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
14086 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
14087 messages.
14088 * mdebugread.c (mdebug_read_symtab): Remove prints.
14089 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
14090 assert.
14091 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
14092
14093 2020-01-26 Tom Tromey <tom@tromey.com>
14094
14095 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
14096 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
14097 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
14098 legacy_symtab.
14099 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
14100 * psymtab.c (psymtab_to_symtab): Call method.
14101 (dump_psymtab): Update.
14102 * psympriv.h (struct partial_symtab): Add virtual destructor.
14103 <read_symtab>: New method.
14104 (struct legacy_symtab): New.
14105 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
14106 (struct pst_map) <pst>: Now a legacy_psymtab.
14107 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14108 (new_psymtab): Use legacy_psymtab.
14109 * dwarf2read.h (struct dwarf2_psymtab): New.
14110 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14111 * dwarf2read.c (dwarf2_create_include_psymtab)
14112 (dwarf2_build_include_psymtabs, create_type_unit_group)
14113 (create_partial_symtab, process_psymtab_comp_unit_reader)
14114 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14115 (set_partial_user): Use dwarf2_psymtab.
14116 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14117 (psymtab_to_symtab_1, process_full_comp_unit)
14118 (process_full_type_unit, dwarf2_ranges_read)
14119 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14120 (dwarf_decode_lines): Use dwarf2_psymtab.
14121 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14122 (add_address_entry_worker, write_one_signatured_type)
14123 (recursively_count_psymbols, recursively_write_psymbols)
14124 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14125 (write_debug_names): Likewise.
14126 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14127 <pst>: Now a legacy_psymtab.
14128 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14129 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14130 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14131 * ctfread.c (struct ctf_psymtab): New.
14132 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14133 ctf_psymtab.
14134 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14135 (create_partial_symtab): Return a ctf_psymtab.
14136 (scan_partial_symbols): Update.
14137
14138 2020-01-26 Tom Tromey <tom@tromey.com>
14139
14140 * xcoffread.c (xcoff_start_psymtab): Use new.
14141 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14142 renamed from start_psymtab_common.
14143 * psympriv.h (struct partial_symtab): Add new constructor.
14144 (start_psymtab_common): Don't declare.
14145 * mdebugread.c (parse_partial_symbols): Use new.
14146 * dwarf2read.c (create_partial_symtab): Use new.
14147 * dbxread.c (start_psymtab): Use new.
14148 * ctfread.c (create_partial_symtab): Use new.
14149
14150 2020-01-26 Tom Tromey <tom@tromey.com>
14151
14152 * xcoffread.c (xcoff_end_psymtab): Use new.
14153 * psymtab.c (start_psymtab_common): Use new.
14154 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14155 Update.
14156 * psympriv.h (struct partial_symtab): Add parameters to
14157 constructor. Don't inline.
14158 (allocate_psymtab): Don't declare.
14159 * mdebugread.c (new_psymtab): Use new.
14160 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14161 * dbxread.c (dbx_end_psymtab): Use new.
14162
14163 2020-01-26 Tom Tromey <tom@tromey.com>
14164
14165 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14166 allocate_psymtab. Update documentation.
14167 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14168 allocate_psymtab. Do not use new.
14169 (allocate_psymtab): Use new. Update.
14170
14171 2020-01-26 Tom Tromey <tom@tromey.com>
14172
14173 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14174 * psymtab.c (psym_print_stats): Update.
14175 * psympriv.h (struct partial_symtab) <readin,
14176 psymtabs_addrmap_supported, anonymous>: Now bool.
14177 * mdebugread.c (psymtab_to_symtab_1): Update.
14178 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14179 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14180 (process_full_comp_unit, process_full_type_unit): Update.
14181 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14182 * ctfread.c (psymtab_to_symtab): Update.
14183
14184 2020-01-26 Tom Tromey <tom@tromey.com>
14185
14186 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14187 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14188 * psymtab.c (psymtab_storage): Delete psymtabs.
14189 (psymtab_storage::allocate_psymtab): Use new.
14190 (psymtab_storage::discard_psymtab): Use delete.
14191 * psympriv.h (struct partial_symtab): Add constructor and
14192 initializers.
14193
14194 2020-01-26 Tom Tromey <tom@tromey.com>
14195
14196 * machoread.c: Do not include psympriv.h.
14197
14198 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14199
14200 * NEWS: Mention the new option and the set/show commands.
14201
14202 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14203
14204 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14205 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14206 (validate_exec_file): New variables, enums, functions.
14207 (exec_file_locate_attach, print_section_info): Style the filenames.
14208 (_initialize_exec): Install show_exec_file_mismatch_command and
14209 set_exec_file_mismatch_command.
14210 * gdbcore.h (validate_exec_file): Declare.
14211 * infcmd.c (attach_command): Call validate_exec_file.
14212 * remote.c ( remote_target::remote_add_inferior): Likewise.
14213
14214 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14215
14216 * frame.c (find_frame_sal): Move call to get_next_frame into more
14217 inner scope.
14218 * inline-frame.c (inilne_state) <inline_state>: Update argument
14219 types.
14220 (inilne_state) <skipped_symbol>: Rename to...
14221 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14222 (skip_inline_frames): Build vector of skipped symbols and use this
14223 to reate the inline_state.
14224 (inline_skipped_symbol): Add a comment and some assertions, fetch
14225 skipped symbol from the list.
14226
14227 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14228
14229 * buildsym.c (lte_is_less_than): Delete.
14230 (buildsym_compunit::end_symtab_with_blockvector): Create local
14231 lambda function to sort line table entries, and use
14232 std::stable_sort instead of std::sort.
14233 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14234 markers when looking for a previous line.
14235
14236 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14237
14238 * dwarf2read.c (lnp_state_machine::record_line): Include
14239 end_sequence parameter in debug print out. Record the line if we
14240 are at an end_sequence marker even if it's not the start of a
14241 statement.
14242 * symmisc.c (maintenance_print_one_line_table): Print end of
14243 sequence markers with 'END' not '0'.
14244
14245 2020-01-24 Pedro Alves <palves@redhat.com>
14246
14247 PR gdb/25410
14248 * thread.c (scoped_restore_current_thread::restore): Use
14249 switch_to_inferior_no_thread.
14250 * exec.c: Include "progspace-and-thread.h".
14251 (add_target_sections, remove_target_sections):
14252 scoped_restore_current_pspace_and_thread instead of
14253 scoped_restore_current_thread.
14254 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14255 and aspace to the inferior before calling clone_program_space.
14256 Remove stale comment.
14257
14258 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14259
14260 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14261 (arm_netbsd_nat_target::fetch_registers): ...this.
14262 (arm_nbsd_nat_target::store_registers): Rename to...
14263 (arm_netbsd_nat_target::store_registers): ...this.
14264
14265 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14266
14267 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14268 register_t.
14269
14270 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14271
14272 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14273 Update comment.
14274 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14275 Likewise.
14276 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14277 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14278 the correct replacement (iterate_over_regset_sections).
14279 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14280 Update comment.
14281
14282 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14283
14284 PR gdb/23718
14285 * gdb/python/python.c (execute_gdb_command): Call
14286 async_enable_stdin in catch block.
14287
14288 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14289
14290 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14291 SWITCH_THRU_ALL_UIS.
14292
14293 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14294
14295 PR tui/9765
14296 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14297 comment, add extra parameter, and update to store previous symbol
14298 when appropriate.
14299 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14300 add extra parameter.
14301 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14302 remove unneeded parameter, add try/catch around gdb_print_insn,
14303 rewrite to add items to asm_lines vector.
14304 (tui_find_backward_disassembly_start_address): New function.
14305 (tui_find_disassembly_address): Updated throughout.
14306 (tui_disasm_window::set_contents): Update for changes to
14307 tui_disassemble.
14308 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14309 number of lines to scroll.
14310
14311 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14312
14313 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14314 (SECT_OFF_DATA): Likewise.
14315 (SECT_OFF_RODATA): Likewise.
14316 (SECT_OFF_TEXT): Likewise.
14317 (SECT_OFF_BSS): Likewise.
14318 (struct objfile) <text_section_offset, data_section_offset>: New
14319 methods.
14320 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14321 objfile::text_section_offset.
14322 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14323 * coffread.c (coff_symtab_read): Likewise.
14324 (enter_linenos): Likewise.
14325 (process_coff_symbol): Likewise.
14326 * ctfread.c (get_objfile_text_range): Likewise.
14327 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14328 Use objfile::data_section_offset.
14329 * dwarf2-frame.c (execute_cfa_program): Use
14330 objfile::text_section_offset.
14331 (dwarf2_frame_find_fde): Likewise.
14332 * dwarf2read.c (create_addrmap_from_index): Likewise.
14333 (create_addrmap_from_aranges): Likewise.
14334 (dw2_find_pc_sect_compunit_symtab): Likewise.
14335 (process_psymtab_comp_unit_reader): Likewise.
14336 (add_partial_symbol): Likewise.
14337 (add_partial_subprogram): Likewise.
14338 (process_full_comp_unit): Likewise.
14339 (read_file_scope): Likewise.
14340 (read_func_scope): Likewise.
14341 (read_lexical_block_scope): Likewise.
14342 (read_call_site_scope): Likewise.
14343 (dwarf2_rnglists_process): Likewise.
14344 (dwarf2_ranges_process): Likewise.
14345 (dwarf2_ranges_read): Likewise.
14346 (dwarf_decode_lines_1): Likewise.
14347 (new_symbol): Likewise.
14348 (dwarf2_fetch_die_loc_sect_off): Likewise.
14349 (dwarf2_per_cu_text_offset): Likewise.
14350 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14351 * hppa-tdep.c (read_unwind_info): Likewise.
14352 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14353 * psympriv.h (struct partial_symtab): Likewise.
14354 * psymtab.c (find_pc_sect_psymtab): Likewise.
14355 * solib-svr4.c (enable_break): Likewise.
14356 * stap-probe.c (relocate_address): Use
14357 objfile::data_section_offset.
14358 * xcoffread.c (enter_line_range): Use
14359 objfile::text_section_offset.
14360 (read_xcoff_symtab): Likewise.
14361
14362 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14363
14364 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14365 declaration to narrower scopes.
14366
14367 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14368
14369 * darwin-nat.h (struct darwin_exception_msg, enum
14370 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14371 Move up.
14372 (class darwin_nat_target) <wait_1, check_new_threads,
14373 decode_exception_message, decode_message, stop_inferior,
14374 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14375 * darwin-nat.c (darwin_check_new_threads): Rename to...
14376 (darwin_nat_target::check_new_threads): ... this.
14377 (darwin_suspend_inferior_it): Remove.
14378 (darwin_decode_exception_message): Rename to...
14379 (darwin_nat_target::decode_exception_message): ... this.
14380 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14381 (darwin_decode_message): Rename to...
14382 (darwin_nat_target::decode_message): ... this.
14383 (cancel_breakpoint): Rename to...
14384 (darwin_nat_target::cancel_breakpoint): ... this.
14385 (darwin_wait): Rename to...
14386 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14387 instead of iterate_over_inferiors.
14388 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14389 (darwin_stop_inferior): Rename to...
14390 (darwin_nat_target::stop_inferior): ... this.
14391 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14392 (darwin_init_thread_list): Rename to...
14393 (darwin_nat_target::init_thread_list): ... this.
14394 (darwin_ptrace_him): Rename to...
14395 (darwin_nat_target::ptrace_him): ... this.
14396 (darwin_nat_target::create_inferior): Pass lambda function to
14397 fork_inferior.
14398 (darwin_nat_target::detach): Call stop_inferior instead of
14399 darwin_stop_inferior.
14400 * fork-inferior.h (fork_inferior): Change init_trace_fun
14401 parameter to gdb::function_view.
14402 * fork-inferior.c (fork_inferior): Likewise.
14403
14404 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14405
14406 * i386-cygwin-tdep.c (core_process_module_section): Update.
14407 * windows-nat.c (struct lm_info_windows): Add text_offset.
14408 (windows_xfer_shared_libraries): Update.
14409 * windows-tdep.c (windows_xfer_shared_library):
14410 Add text_offset_cached argument.
14411 * windows-tdep.h (windows_xfer_shared_library): Update.
14412
14413 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14414
14415 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14416
14417 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14418
14419 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14420 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14421 replace with range-based for.
14422 (gdbsim_interrupt_inferior): Remove.
14423 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14424 with a range-based for. Inline code from
14425 gdbsim_interrupt_inferior.
14426
14427 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14428
14429 * infrun.c (proceed): Fix indentation.
14430
14431 2020-01-21 Tom Tromey <tromey@adacore.com>
14432
14433 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14434 * python/python.c (python_extension_ops): Update.
14435 (gdbpy_colorize): New function.
14436 * python/lib/gdb/__init__.py (colorize): New function.
14437 * extension.h (ext_lang_colorize): Declare.
14438 * extension.c (ext_lang_colorize): New function.
14439 * extension-priv.h (struct extension_language_ops) <colorize>: New
14440 member.
14441 * cli/cli-style.c (_initialize_cli_style): Update help text.
14442
14443 2020-01-21 Luis Machado <luis.machado@linaro.org>
14444
14445 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14446 <cond>: Change type to bool.
14447 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14448 (aarch64_displaced_step_cb): Likewise.
14449 (aarch64_displaced_step_tb): Likewise.
14450
14451 2020-01-21 Luis Machado <luis.machado@linaro.org>
14452
14453 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14454 output.
14455
14456 2020-01-21 Luis Machado <luis.machado@linaro.org>
14457
14458 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14459 <pc_adjust>: Adjust the documentation.
14460 (aarch64_displaced_step_fixup): Check if PC really moved before
14461 adjusting it.
14462
14463 2020-01-19 Tom Tromey <tom@tromey.com>
14464
14465 * disasm.c (~gdb_disassembler): New destructor.
14466 (gdb_buffered_insn_length): Call disassemble_free_target.
14467 * disasm.h (class gdb_disassembler): Declare destructor. Use
14468 DISABLE_COPY_AND_ASSIGN.
14469
14470 2020-01-19 Tom Tromey <tom@tromey.com>
14471
14472 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14473 (die_reader_func_ftype): Remove.
14474 (cutu_reader): New class.
14475 (dw2_get_file_names_reader): Remove "data" parameter.
14476 (dw2_get_file_names): Use cutu_reader.
14477 (create_debug_type_hash_table): Update.
14478 (read_cutu_die_from_dwo): Update comment.
14479 (lookup_dwo_unit): Add dwo_name parameter.
14480 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14481 die_reader_func_ftype and data parameters.
14482 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14483 Remove die_reader_func_ftype and data parameters.
14484 (~cutu_reader): New; from init_cutu_and_read_dies.
14485 (cutu_reader::cutu_reader): Rename from
14486 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14487 and data parameters.
14488 (init_cutu_and_read_dies_simple): Remove.
14489 (struct process_psymtab_comp_unit_data): Remove.
14490 (process_psymtab_comp_unit_reader): Remove data parameter; add
14491 want_partial_unit and pretend_language parameters.
14492 (process_psymtab_comp_unit): Use cutu_reader.
14493 (build_type_psymtabs_reader): Remove data parameter.
14494 (build_type_psymtabs_1): Use cutu_reader.
14495 (process_skeletonless_type_unit): Likewise.
14496 (load_partial_comp_unit_reader): Remove.
14497 (load_partial_comp_unit): Use cutu_reader.
14498 (load_full_comp_unit_reader): Remove.
14499 (load_full_comp_unit): Use cutu_reader.
14500 (struct create_dwo_cu_data): Remove.
14501 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14502 dwo_unit parameters.
14503 (create_cus_hash_table): Use cutu_reader.
14504 (struct dwarf2_read_addr_index_data): Remove.
14505 (dwarf2_read_addr_index_reader): Remove.
14506 (dwarf2_read_addr_index): Use cutu_reader.
14507 (read_signatured_type_reader): Remove.
14508 (read_signatured_type): Use cutu_reader.
14509
14510 2020-01-19 Tom Tromey <tom@tromey.com>
14511
14512 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14513 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14514 (tui_wrefresh): Declare.
14515 * tui/tui-wingeneral.c (suppress_output): New global.
14516 (tui_suppress_output, ~tui_suppress_output): New constructor and
14517 destructor.
14518 (tui_wrefresh): New function.
14519 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14520 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14521 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14522 method.
14523 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14524 tui_wrefresh.
14525 (tui_data_window::no_refresh): New method.
14526 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14527 (tui_reg_command): Use tui_suppress_output
14528 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14529 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14530 method.
14531 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14532
14533 2020-01-19 Tom Tromey <tom@tromey.com>
14534
14535 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14536 Handle case where symtab is null.
14537
14538 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14539
14540 * linux-fork.c (one_fork_p): Simplify.
14541
14542 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14543
14544 * top.c (struct qt_args): Remove.
14545 (kill_or_detach): Change return type to void, replace `void *`
14546 parameter with a proper one.
14547 (print_inferior_quit_action): Likewise.
14548 (quit_confirm): Use range-based for loop to iterate over inferiors.
14549 (quit_force): Likewise.
14550
14551 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14552
14553 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14554 `void *` parameter with proper parameters.
14555 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14556 (print_one_inferior): Change return type to void, replace `void *`
14557 parameter with proper parameters.
14558 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14559 inferiors.
14560 (get_other_inferior): Remove.
14561 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14562 inferiors.
14563
14564 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14565
14566 * mi/mi-interp.c (report_initial_inferior): Remove.
14567 (mi_interp::init): Use range-based for to iterate over inferiors.
14568
14569 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14570
14571 * python/py-inferior.c (build_inferior_list): Remove.
14572 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14573
14574 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14575
14576 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14577 (btrace_stitch_trace): Likewise.
14578 * charset.c (intermediate_encoding): Likewise (vaild).
14579 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14580 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14581 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14582
14583 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14584
14585 * windows-tdep.c (windows_get_tlb_type):
14586 Add rtl_user_process_parameters type.
14587
14588 2020-01-16 Pedro Alves <palves@redhat.com>
14589 Norbert Lange <nolange79@gmail.com>
14590
14591 PR build/24805
14592 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14593 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14594 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14595 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14596 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14597 (ps_plog): Redeclare exported functions with default visibility.
14598
14599 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14600
14601 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14602 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14603
14604 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14605
14606 * infcmd.c (post_create_inferior): Use get_thread_regcache
14607 instead of get_current_regcache.
14608
14609 2020-01-14 Tom Tromey <tom@tromey.com>
14610
14611 PR symtab/12535:
14612 * python/python.c (gdbpy_decode_line): Treat empty string the same
14613 as no argument.
14614
14615 2020-01-14 Tom Tromey <tom@tromey.com>
14616
14617 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14618
14619 2020-01-14 Tom Tromey <tom@tromey.com>
14620
14621 * nat/linux-btrace.c: Don't include <config.h>.
14622 * nat/linux-ptrace.c: Don't include <config.h>.
14623 * nat/x86-linux-dregs.c: Don't include <config.h>.
14624
14625 2020-01-14 Tom Tromey <tom@tromey.com>
14626
14627 * configure: Rebuild.
14628 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14629
14630 2020-01-14 Tom Tromey <tom@tromey.com>
14631
14632 * nat/x86-linux-dregs.c: Include configh.h.
14633 * nat/linux-ptrace.c: Include configh.h.
14634 * nat/linux-btrace.c: Include configh.h.
14635 * defs.h: Include config.h, bfd.h.
14636 * configure.ac: Don't source common.host.
14637 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14638 * configure: Rebuild.
14639 * acinclude.m4: Update path.
14640 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14641 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14642 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14643 (CLIBS): Add LIBSUPPORT.
14644 (CDEPS): Likewise.
14645 (COMMON_SFILES): Remove gdbsupport files.
14646 (HFILES_NO_SRCDIR): Likewise.
14647 (stamp-version): Update path to create-version.sh.
14648 (ALLDEPFILES): Remove gdbsupport files.
14649
14650 2020-01-14 Tom Tromey <tom@tromey.com>
14651
14652 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14653 USE_WIN32API when needed.
14654 * configure.ac (USE_WIN32API): Don't define.
14655 (WIN32LIBS): Use WIN32APILIBS.
14656 * configure: Rebuild.
14657
14658 2020-01-14 Tom Tromey <tom@tromey.com>
14659
14660 * configure: Rebuild.
14661 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14662
14663 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14664
14665 * skip.c (skip_function_command): Make skip w/o arguments use the
14666 name of the inlined function if pc is inside any inlined function.
14667
14668 2020-01-14 Luis Machado <luis.machado@linaro.org>
14669
14670 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14671 * infrun.c (resume_1): Likewise.
14672 (handle_inferior_event): Remove stale comment.
14673 * linux-nat.c (linux_nat_target::resume): Update comments.
14674 (save_stop_reason): Likewise.
14675 (linux_nat_filter_event): Likewise.
14676 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14677
14678 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14679
14680 * elfread.c (record_minimal_symbol): Set section index to 0 for
14681 non-allocatable sections.
14682
14683
14684 2020-01-13 Ali Tamur <tamur@google.com>
14685
14686 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14687 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14688 to gdb::optional. Update comments.
14689 (dwo_file): Update comments.
14690 (read_attribute): Update API to take an additional out parameter,
14691 need_reprocess. This is used to mark attributes that need other
14692 attributes (e.g. str_offsets_base) for correct computation which may not
14693 have been read yet.
14694 (read_attribute_reprocess): New function declaration.
14695 (read_addr_index): Likewise.
14696 (read_dwo_str_index): Likewise.
14697 (read_stub_str_index): Likewise.
14698 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14699 (lookup_addr_base): New function definition.
14700 (lookup_ranges_base): Likewise.
14701 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14702 lookup_ranges_base.
14703 (init_cutu_and_read_dies): Update comments.
14704 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14705 unit. This is used to inherit parent's str_offsets_base and addr_base.
14706 Update comments.
14707 (init_cutu_and_read_dies_simple): Reflect API changes.
14708 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14709 (create_cus_hash_table): Change API to take parent compile unit.
14710 Reflect API changes.
14711 (open_and_init_dwo_file): Reflect API changes.
14712 (dwarf2_get_pc_bounds): Update comments.
14713 (dwarf2_record_block_ranges): Likewise.
14714 (read_full_die_1): Change implementation to reprocess attributes that
14715 need str_offsets_base and addr_base.
14716 (partial_die_info::read): Likewise.
14717 (read_attribute_reprocess): New function definition.
14718 (read_attribute_value): Change API to take an additional out parameter,
14719 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14720 when a non-dwo compile unit has index based attributes.
14721 (read_attribute): Reflect API changes.
14722 (read_addr_index_1): Reflect API changes. Update comments.
14723 (dwarf2_read_addr_index_data): Reflect API changes.
14724 (dwarf2_read_addr_index): Likewise.
14725 (read_str_index): Change API and implementation. This becomes a helper
14726 to be used by the new string index related methods. Update error
14727 message and comments.
14728 (read_dwo_str_index): New function definition.
14729 (read_stub_str_index): Likewise.
14730 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14731 * symfile.h (dwarf2_debug_sections): Likewise.
14732 * xcoffread.c (dwarf2_debug_sections): Likewise.
14733
14734 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14735
14736 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14737 core_reg_sect type to gdb_byte *.
14738 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14739 * cris-tdep.c (fetch_core_registers): Likewise.
14740 * corelow.c (core_target::get_core_register_section): Change
14741 type of `contents` to gdb::byte_vector.
14742
14743 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14744
14745 * tui/tui-wingeneral.c (box_win): Position the title in the center
14746 of the border.
14747
14748 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14749
14750 * corelow.c (core_target::get_core_register_section): Use
14751 std::vector instead of alloca.
14752
14753 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14754
14755 * warning.m4: Add -Wmissing-declarations to build_warnings.
14756 * configure: Re-generate.
14757
14758 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14759
14760 * python/python.c (init__gdb_module): Add declaration.
14761
14762 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14763
14764 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14765 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14766 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14767 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14768 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14769 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14770 * ada-exp.y (_initialize_ada_exp): Add declaration.
14771 * ada-lang.c (_initialize_ada_language): Add declaration.
14772 * ada-tasks.c (_initialize_tasks): Add declaration.
14773 * agent.c (_initialize_agent): Add declaration.
14774 * aix-thread.c (_initialize_aix_thread): Add declaration.
14775 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14776 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14777 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14778 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14779 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14780 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14781 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14782 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14783 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14784 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14785 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14786 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14787 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14788 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14789 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14790 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14791 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14792 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14793 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14794 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14795 * annotate.c (_initialize_annotate): Add declaration.
14796 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14797 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14798 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14799 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14800 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14801 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14802 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14803 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14804 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14805 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14806 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14807 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14808 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14809 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14810 * auto-load.c (_initialize_auto_load): Add declaration.
14811 * auxv.c (_initialize_auxv): Add declaration.
14812 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14813 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14814 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14815 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14816 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14817 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14818 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14819 * breakpoint.c (_initialize_breakpoint): Add declaration.
14820 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14821 * btrace.c (_initialize_btrace): Add declaration.
14822 * charset.c (_initialize_charset): Add declaration.
14823 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14824 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14825 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14826 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14827 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14828 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14829 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14830 * coffread.c (_initialize_coffread): Add declaration.
14831 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14832 * compile/compile.c (_initialize_compile): Add declaration.
14833 * complaints.c (_initialize_complaints): Add declaration.
14834 * completer.c (_initialize_completer): Add declaration.
14835 * copying.c (_initialize_copying): Add declaration.
14836 * corefile.c (_initialize_core): Add declaration.
14837 * corelow.c (_initialize_corelow): Add declaration.
14838 * cp-abi.c (_initialize_cp_abi): Add declaration.
14839 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14840 * cp-support.c (_initialize_cp_support): Add declaration.
14841 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14842 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14843 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14844 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14845 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14846 * ctfread.c (_initialize_ctfread): Add declaration.
14847 * d-lang.c (_initialize_d_language): Add declaration.
14848 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14849 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14850 * dbxread.c (_initialize_dbxread): Add declaration.
14851 * dcache.c (_initialize_dcache): Add declaration.
14852 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14853 * disasm.c (_initialize_disasm): Add declaration.
14854 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14855 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14856 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14857 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14858 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14859 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14860 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14861 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14862 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14863 * elfread.c (_initialize_elfread): Add declaration.
14864 * exec.c (_initialize_exec): Add declaration.
14865 * extension.c (_initialize_extension): Add declaration.
14866 * f-lang.c (_initialize_f_language): Add declaration.
14867 * f-valprint.c (_initialize_f_valprint): Add declaration.
14868 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14869 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14870 * filesystem.c (_initialize_filesystem): Add declaration.
14871 * findcmd.c (_initialize_mem_search): Add declaration.
14872 * findvar.c (_initialize_findvar): Add declaration.
14873 * fork-child.c (_initialize_fork_child): Add declaration.
14874 * frame-base.c (_initialize_frame_base): Add declaration.
14875 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14876 * frame.c (_initialize_frame): Add declaration.
14877 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14878 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14879 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14880 * gcore.c (_initialize_gcore): Add declaration.
14881 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14882 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14883 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14884 * gdbarch.c (_initialize_gdbarch): Add declaration.
14885 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14886 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14887 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14888 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14889 * go-lang.c (_initialize_go_language): Add declaration.
14890 * go32-nat.c (_initialize_go32_nat): Add declaration.
14891 * guile/guile.c (_initialize_guile): Add declaration.
14892 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14893 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14894 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14895 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14896 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14897 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14898 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14899 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14900 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14901 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14902 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14903 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14904 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14905 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14906 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14907 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14908 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14909 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14910 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14911 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14912 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14913 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14914 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14915 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14916 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14917 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14918 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14919 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14920 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14921 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14922 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14923 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14924 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14925 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14926 * infcall.c (_initialize_infcall): Add declaration.
14927 * infcmd.c (_initialize_infcmd): Add declaration.
14928 * inflow.c (_initialize_inflow): Add declaration.
14929 * infrun.c (_initialize_infrun): Add declaration.
14930 * interps.c (_initialize_interpreter): Add declaration.
14931 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14932 * jit.c (_initialize_jit): Add declaration.
14933 * language.c (_initialize_language): Add declaration.
14934 * linux-fork.c (_initialize_linux_fork): Add declaration.
14935 * linux-nat.c (_initialize_linux_nat): Add declaration.
14936 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14937 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14938 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14939 * m2-lang.c (_initialize_m2_language): Add declaration.
14940 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14941 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14942 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14943 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14944 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14945 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14946 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14947 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14948 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14949 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14950 * machoread.c (_initialize_machoread): Add declaration.
14951 * macrocmd.c (_initialize_macrocmd): Add declaration.
14952 * macroscope.c (_initialize_macroscope): Add declaration.
14953 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14954 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14955 * maint.c (_initialize_maint_cmds): Add declaration.
14956 * mdebugread.c (_initialize_mdebugread): Add declaration.
14957 * memattr.c (_initialize_mem): Add declaration.
14958 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14959 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14960 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14961 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14962 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14963 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14964 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14965 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14966 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14967 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14968 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14969 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14970 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14971 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14972 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14973 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14974 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14975 * mipsread.c (_initialize_mipsread): Add declaration.
14976 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14977 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14978 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14979 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14980 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14981 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14982 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14983 * nto-procfs.c (_initialize_procfs): Add declaration.
14984 * objc-lang.c (_initialize_objc_language): Add declaration.
14985 * observable.c (_initialize_observer): Add declaration.
14986 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14987 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14988 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14989 * osabi.c (_initialize_gdb_osabi): Add declaration.
14990 * osdata.c (_initialize_osdata): Add declaration.
14991 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14992 * parse.c (_initialize_parse): Add declaration.
14993 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14994 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14995 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14996 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14997 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14998 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14999 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
15000 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
15001 * printcmd.c (_initialize_printcmd): Add declaration.
15002 * probe.c (_initialize_probe): Add declaration.
15003 * proc-api.c (_initialize_proc_api): Add declaration.
15004 * proc-events.c (_initialize_proc_events): Add declaration.
15005 * proc-service.c (_initialize_proc_service): Add declaration.
15006 * procfs.c (_initialize_procfs): Add declaration.
15007 * producer.c (_initialize_producer): Add declaration.
15008 * psymtab.c (_initialize_psymtab): Add declaration.
15009 * python/python.c (_initialize_python): Add declaration.
15010 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
15011 * record-btrace.c (_initialize_record_btrace): Add declaration.
15012 * record-full.c (_initialize_record_full): Add declaration.
15013 * record.c (_initialize_record): Add declaration.
15014 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
15015 * regcache.c (_initialize_regcache): Add declaration.
15016 * reggroups.c (_initialize_reggroup): Add declaration.
15017 * remote-notif.c (_initialize_notif): Add declaration.
15018 * remote-sim.c (_initialize_remote_sim): Add declaration.
15019 * remote.c (_initialize_remote): Add declaration.
15020 * reverse.c (_initialize_reverse): Add declaration.
15021 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
15022 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
15023 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
15024 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
15025 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
15026 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
15027 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
15028 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
15029 Add declaration.
15030 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
15031 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
15032 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
15033 * rust-exp.y (_initialize_rust_exp): Add declaration.
15034 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
15035 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
15036 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
15037 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
15038 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
15039 * score-tdep.c (_initialize_score_tdep): Add declaration.
15040 * ser-go32.c (_initialize_ser_dos): Add declaration.
15041 * ser-mingw.c (_initialize_ser_windows): Add declaration.
15042 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
15043 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
15044 * ser-uds.c (_initialize_ser_socket): Add declaration.
15045 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
15046 * serial.c (_initialize_serial): Add declaration.
15047 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
15048 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
15049 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
15050 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
15051 * skip.c (_initialize_step_skip): Add declaration.
15052 * sol-thread.c (_initialize_sol_thread): Add declaration.
15053 * solib-aix.c (_initialize_solib_aix): Add declaration.
15054 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
15055 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
15056 * solib-frv.c (_initialize_frv_solib): Add declaration.
15057 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
15058 * solib-target.c (_initialize_solib_target): Add declaration.
15059 * solib.c (_initialize_solib): Add declaration.
15060 * source-cache.c (_initialize_source_cache): Add declaration.
15061 * source.c (_initialize_source): Add declaration.
15062 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
15063 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
15064 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
15065 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
15066 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
15067 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
15068 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
15069 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
15070 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
15071 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
15072 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
15073 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
15074 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
15075 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
15076 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
15077 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
15078 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
15079 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
15080 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
15081 * stabsread.c (_initialize_stabsread): Add declaration.
15082 * stack.c (_initialize_stack): Add declaration.
15083 * stap-probe.c (_initialize_stap_probe): Add declaration.
15084 * std-regs.c (_initialize_frame_reg): Add declaration.
15085 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
15086 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
15087 * symfile.c (_initialize_symfile): Add declaration.
15088 * symmisc.c (_initialize_symmisc): Add declaration.
15089 * symtab.c (_initialize_symtab): Add declaration.
15090 * target.c (_initialize_target): Add declaration.
15091 * target-connection.c (_initialize_target_connection): Add
15092 declaration.
15093 * target-dcache.c (_initialize_target_dcache): Add declaration.
15094 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
15095 * thread.c (_initialize_thread): Add declaration.
15096 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
15097 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
15098 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
15099 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
15100 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
15101 * tracectf.c (_initialize_ctf): Add declaration.
15102 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
15103 * tracefile.c (_initialize_tracefile): Add declaration.
15104 * tracepoint.c (_initialize_tracepoint): Add declaration.
15105 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
15106 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15107 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15108 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15109 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15110 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15111 * tui/tui.c (_initialize_tui): Add declaration.
15112 * typeprint.c (_initialize_typeprint): Add declaration.
15113 * ui-style.c (_initialize_ui_style): Add declaration.
15114 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15115 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15116 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15117 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15118 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15119 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15120 * unittests/filtered_iterator-selftests.c
15121 (_initialize_filtered_iterator_selftests): Add declaration.
15122 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15123 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15124 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15125 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15126 * unittests/main-thread-selftests.c
15127 (_initialize_main_thread_selftests): Add declaration.
15128 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15129 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15130 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15131 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15132 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15133 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15134 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15135 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15136 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15137 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15138 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15139 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15140 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15141 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15142 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15143 declaration.
15144 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15145 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15146 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15147 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15148 * user-regs.c (_initialize_user_regs): Add declaration.
15149 * utils.c (_initialize_utils): Add declaration.
15150 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15151 * valops.c (_initialize_valops): Add declaration.
15152 * valprint.c (_initialize_valprint): Add declaration.
15153 * value.c (_initialize_values): Add declaration.
15154 * varobj.c (_initialize_varobj): Add declaration.
15155 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15156 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15157 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15158 * windows-nat.c (_initialize_windows_nat): Add declaration.
15159 (_initialize_check_for_gdb_ini): Add declaration.
15160 (_initialize_loadable): Add declaration.
15161 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15162 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15163 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15164 * xcoffread.c (_initialize_xcoffread): Add declaration.
15165 * xml-support.c (_initialize_xml_support): Add declaration.
15166 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15167 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15168 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15169 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15170
15171 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15172
15173 * regformats/regdat.sh: Generate declaration for init function.
15174
15175 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15176
15177 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15178 up.
15179 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15180 close_one_inferior>: New methods.
15181 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15182 pass down target to find_inferior_pid.
15183 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15184 Pass down target to find_inferior_ptid.
15185 (gdbsim_target::create_inferior): Pass down target to
15186 add_thread_silent.
15187 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15188 target down to find_inferior_ptid and switch_to_thread.
15189 (gdbsim_target::close): Update to call close_one_inferior.
15190 (struct resume_data): Remove.
15191 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15192 directly, rather than through a void pointer.
15193 (gdbsim_target::resume): Update to call resume_one_inferior.
15194
15195 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15196
15197 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15198
15199 2020-01-12 Pedro Alves <palves@redhat.com>
15200
15201 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15202 directly for the current inferior instead of
15203 discard_all_inferiors.
15204 (discard_all_inferiors): Delete.
15205
15206 2020-01-11 Tom Tromey <tom@tromey.com>
15207
15208 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15209 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15210 deprecated_safe_get_selected_frame.
15211
15212 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15213
15214 * inferior.c (print_inferior): Switch inferior before printing it.
15215
15216 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15217 Pedro Alves <palves@redhat.com>
15218
15219 * progspace-and-thread.c (switch_to_program_space_and_thread):
15220 Assert there's an inferior for PSPACE. Use
15221 switch_to_inferior_no_thread to switch the inferior too.
15222 * progspace.c (program_space::~program_space): Call
15223 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15224 (program_space::free_all_objfiles): Don't call clear_symtab_users
15225 here.
15226 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15227
15228 2020-01-10 Pedro Alves <palves@redhat.com>
15229
15230 * NEWS: Mention multi-target debugging, "info connections", and
15231 "add-inferior -no-connection".
15232
15233 2020-01-10 Pedro Alves <palves@redhat.com>
15234
15235 * infrun.c: Include "target-connection.h".
15236 (check_multi_target_resumption): New.
15237 (proceed): Call it.
15238 * target-connection.c (make_target_connection_string): Make
15239 extern.
15240 * target-connection.h (make_target_connection_string): Declare.
15241
15242 2020-01-10 Pedro Alves <palves@redhat.com>
15243
15244 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15245 * inferior.c (uiout_field_connection): New function.
15246 (print_inferior): Add new "connection-id" column.
15247 (add_inferior_command): Show connection number/string of added
15248 inferior.
15249 * process-stratum-target.h
15250 (process_stratum_target::connection_string): New virtual method.
15251 (process_stratum_target::connection_number): New field.
15252 * remote.c (remote_target::connection_string): New override.
15253 * target-connection.c: New file.
15254 * target-connection.h: New file.
15255 * target.c (decref_target): Remove process_stratum targets from
15256 the connection list.
15257 (target_stack::push): Add process_stratum targets to the
15258 connection list.
15259
15260 2020-01-10 Pedro Alves <palves@redhat.com>
15261
15262 Revert:
15263 2016-04-12 Pedro Alves <palves@redhat.com>
15264 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15265 Remove references to name.
15266 * serial.h (struct serial) <name>: Delete.
15267
15268 2020-01-10 Pedro Alves <palves@redhat.com>
15269
15270 * gdbarch-selftests.c (register_to_value_test): Remove "target
15271 already pushed" check.
15272
15273 2020-01-10 Pedro Alves <palves@redhat.com>
15274 John Baldwin <jhb@FreeBSD.org>
15275
15276 * aarch64-linux-nat.c
15277 (aarch64_linux_nat_target::thread_architecture): Adjust.
15278 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15279 (task_command_1): Likewise.
15280 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15281 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15282 (aix_thread_target::store_registers)
15283 (aix_thread_target::thread_alive): Adjust.
15284 * amd64-fbsd-tdep.c: Include "inferior.h".
15285 (amd64fbsd_get_thread_local_address): Pass down target.
15286 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15287 thread's gdbarch instead of target_gdbarch.
15288 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15289 get_last_target_status.
15290 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15291 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15292 inferiors.
15293 (update_inserted_breakpoint_locations): Skip if inferiors with no
15294 execution.
15295 (update_global_location_list): When handling moribund locations,
15296 find representative inferior for location's pspace, and use thread
15297 count of its process_stratum target.
15298 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15299 * bsd-uthread.c (bsd_uthread_target::wait): Use
15300 as_process_stratum_target and adjust thread_change_ptid and
15301 add_thread calls.
15302 (bsd_uthread_target::update_thread_list): Use
15303 as_process_stratum_target and adjust find_thread_ptid,
15304 thread_change_ptid and add_thread calls.
15305 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15306 find_thread_ptid call.
15307 * corelow.c (add_to_thread_list): Adjust add_thread call.
15308 (core_target_open): Adjust add_thread_silent and thread_count
15309 calls.
15310 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15311 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15312 * event-top.c (async_disconnect): Pop targets from all inferiors.
15313 * exec.c (add_target_sections): Push exec target on all inferiors
15314 sharing the program space.
15315 (remove_target_sections): Remove the exec target from all
15316 inferiors sharing the program space.
15317 (exec_on_vfork): New.
15318 * exec.h (exec_on_vfork): Declare.
15319 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15320 Pass it down.
15321 (fbsd_nat_target::update_thread_list): Adjust.
15322 (fbsd_nat_target::resume): Adjust.
15323 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15324 down.
15325 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15326 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15327 get_thread_arch_regcache call.
15328 * fork-child.c (gdb_startup_inferior): Pass target down to
15329 startup_inferior and set_executing.
15330 * gdbthread.h (struct process_stratum_target): Forward declare.
15331 (add_thread, add_thread_silent, add_thread_with_info)
15332 (in_thread_list): Add process_stratum_target parameter.
15333 (find_thread_ptid(inferior*, ptid_t)): New overload.
15334 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15335 parameter.
15336 (all_threads()): Delete overload.
15337 (all_threads, all_non_exited_threads): Add process_stratum_target
15338 parameter.
15339 (all_threads_safe): Use brace initialization.
15340 (thread_count): Add process_stratum_target parameter.
15341 (set_resumed, set_running, set_stop_requested, set_executing)
15342 (threads_are_executing, finish_thread_state): Add
15343 process_stratum_target parameter.
15344 (switch_to_thread): Use is_current_thread.
15345 * i386-fbsd-tdep.c: Include "inferior.h".
15346 (i386fbsd_get_thread_local_address): Pass down target.
15347 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15348 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15349 have_inferiors check.
15350 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15351 (inf_ptrace_target::attach): Adjust.
15352 * infcall.c (run_inferior_call): Adjust.
15353 * infcmd.c (run_command_1): Pass target to
15354 scoped_finish_thread_state.
15355 (proceed_thread_callback): Skip inferiors with no execution.
15356 (continue_command): Rename 'all_threads' local to avoid hiding
15357 'all_threads' function. Adjust get_last_target_status call.
15358 (prepare_one_step): Adjust set_running call.
15359 (signal_command): Use user_visible_resume_target. Compare thread
15360 pointers instead of inferior_ptid.
15361 (info_program_command): Adjust to pass down target.
15362 (attach_command): Mark target's 'thread_executing' flag.
15363 (stop_current_target_threads_ns): New, factored out from ...
15364 (interrupt_target_1): ... this. Switch inferior before making
15365 target calls.
15366 * inferior-iter.h
15367 (struct all_inferiors_iterator, struct all_inferiors_range)
15368 (struct all_inferiors_safe_range)
15369 (struct all_non_exited_inferiors_range): Filter on
15370 process_stratum_target too. Remove explicit.
15371 * inferior.c (inferior::inferior): Push dummy target on target
15372 stack.
15373 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15374 Add process_stratum_target parameter, and pass it down.
15375 (have_live_inferiors): Adjust.
15376 (switch_to_inferior_and_push_target): New.
15377 (add_inferior_command, clone_inferior_command): Handle
15378 "-no-connection" parameter. Use
15379 switch_to_inferior_and_push_target.
15380 (_initialize_inferior): Mention "-no-connection" option in
15381 the help of "add-inferior" and "clone-inferior" commands.
15382 * inferior.h: Include "process-stratum-target.h".
15383 (interrupt_target_1): Use bool.
15384 (struct inferior) <push_target, unpush_target, target_is_pushed,
15385 find_target_beneath, top_target, process_target, target_at,
15386 m_stack>: New.
15387 (discard_all_inferiors): Delete.
15388 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15389 (all_inferiors, all_non_exited_inferiors): Add
15390 process_stratum_target parameter.
15391 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15392 (target_last_proc_target): New global.
15393 (follow_fork_inferior): Push target on new inferior. Pass target
15394 to add_thread_silent. Call exec_on_vfork. Handle target's
15395 reference count.
15396 (follow_fork): Adjust get_last_target_status call. Also consider
15397 target.
15398 (follow_exec): Push target on new inferior.
15399 (struct execution_control_state) <target>: New field.
15400 (user_visible_resume_target): New.
15401 (do_target_resume): Call target_async.
15402 (resume_1): Set target's threads_executing flag. Consider resume
15403 target.
15404 (commit_resume_all_targets): New.
15405 (proceed): Also consider resume target. Skip threads of inferiors
15406 with no execution. Commit resumtion in all targets.
15407 (start_remote): Pass current inferior to wait_for_inferior.
15408 (infrun_thread_stop_requested): Consider target as well. Pass
15409 thread_info pointer to clear_inline_frame_state instead of ptid.
15410 (infrun_thread_thread_exit): Consider target as well.
15411 (random_pending_event_thread): New inferior parameter. Use it.
15412 (do_target_wait): Rename to ...
15413 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15414 down.
15415 (threads_are_resumed_pending_p, do_target_wait): New.
15416 (prepare_for_detach): Adjust calls.
15417 (wait_for_inferior): New inferior parameter. Handle it. Use
15418 do_target_wait_1 instead of do_target_wait.
15419 (fetch_inferior_event): Adjust. Switch to representative
15420 inferior. Pass target down.
15421 (set_last_target_status): Add process_stratum_target parameter.
15422 Save target in global.
15423 (get_last_target_status): Add process_stratum_target parameter and
15424 handle it.
15425 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15426 (context_switch): Check inferior_ptid == null_ptid before calling
15427 inferior_thread().
15428 (get_inferior_stop_soon): Pass down target.
15429 (wait_one): Rename to ...
15430 (poll_one_curr_target): ... this.
15431 (struct wait_one_event): New.
15432 (wait_one): New.
15433 (stop_all_threads): Adjust.
15434 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15435 event's target.
15436 (switch_back_to_stepped_thread): Also consider target.
15437 (print_stop_event): Update.
15438 (normal_stop): Update. Also consider the resume target.
15439 * infrun.h (wait_for_inferior): Remove declaration.
15440 (user_visible_resume_target): New declaration.
15441 (get_last_target_status, set_last_target_status): New
15442 process_stratum_target parameter.
15443 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15444 process_stratum_target parameter, and use it.
15445 (clear_inline_frame_state (thread_info*)): New.
15446 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15447 process_stratum_target parameter.
15448 (clear_inline_frame_state (thread_info*)): Declare.
15449 * linux-fork.c (delete_checkpoint_command): Pass target down to
15450 find_thread_ptid.
15451 (checkpoint_command): Adjust.
15452 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15453 instead of just tweaking inferior_ptid.
15454 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15455 (exit_lwp): Pass target down to find_thread_ptid.
15456 (attach_proc_task_lwp_callback): Pass target down to
15457 add_thread/set_running/set_executing.
15458 (linux_nat_target::attach): Pass target down to
15459 thread_change_ptid.
15460 (get_detach_signal): Pass target down to find_thread_ptid.
15461 Consider last target status's target.
15462 (linux_resume_one_lwp_throw, resume_lwp)
15463 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15464 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15465 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15466 (linux_nat_target::async_wait_fd): New.
15467 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15468 target down.
15469 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15470 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15471 * linux-thread-db.c (struct thread_db_info::process_target): New
15472 field.
15473 (add_thread_db_info): Save target.
15474 (get_thread_db_info): New process_stratum_target parameter. Also
15475 match target.
15476 (delete_thread_db_info): New process_stratum_target parameter.
15477 Also match target.
15478 (thread_from_lwp): Adjust to pass down target.
15479 (thread_db_notice_clone): Pass down target.
15480 (check_thread_db_callback): Pass down target.
15481 (try_thread_db_load_1): Always push the thread_db target.
15482 (try_thread_db_load, record_thread): Pass target down.
15483 (thread_db_target::detach): Pass target down. Always unpush the
15484 thread_db target.
15485 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15486 target down. Always unpush the thread_db target.
15487 (find_new_threads_callback, thread_db_find_new_threads_2)
15488 (thread_db_target::update_thread_list): Pass target down.
15489 (thread_db_target::pid_to_str): Pass current inferior down.
15490 (thread_db_target::get_thread_local_address): Pass target down.
15491 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15492 target down.
15493 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15494 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15495 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15496 (procfs_init_inferior): Rename to ...
15497 (procfs_target::procfs_init_inferior): ... this and adjust.
15498 (procfs_target::create_inferior, procfs_notice_thread)
15499 (procfs_do_thread_registers): Adjust.
15500 * ppc-fbsd-tdep.c: Include "inferior.h".
15501 (ppcfbsd_get_thread_local_address): Pass down target.
15502 * proc-service.c (ps_xfer_memory): Switch current inferior and
15503 program space as well.
15504 (get_ps_regcache): Pass target down.
15505 * process-stratum-target.c
15506 (process_stratum_target::thread_address_space)
15507 (process_stratum_target::thread_architecture): Pass target down.
15508 * process-stratum-target.h
15509 (process_stratum_target::threads_executing): New field.
15510 (as_process_stratum_target): New.
15511 * ravenscar-thread.c
15512 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15513 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15514 down.
15515 * record-btrace.c (record_btrace_target::info_record): Adjust.
15516 (record_btrace_target::record_method)
15517 (record_btrace_target::record_is_replaying)
15518 (record_btrace_target::fetch_registers)
15519 (get_thread_current_frame_id, record_btrace_target::resume)
15520 (record_btrace_target::wait, record_btrace_target::stop): Pass
15521 target down.
15522 * record-full.c (record_full_wait_1): Switch to event thread.
15523 Pass target down.
15524 * regcache.c (regcache::regcache)
15525 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15526 process_stratum_target parameter and handle it.
15527 (current_thread_target): New global.
15528 (get_thread_regcache): Add process_stratum_target parameter and
15529 handle it. Switch inferior before calling target method.
15530 (get_thread_regcache): Pass target down.
15531 (get_thread_regcache_for_ptid): Pass target down.
15532 (registers_changed_ptid): Add process_stratum_target parameter and
15533 handle it.
15534 (registers_changed_thread, registers_changed): Pass target down.
15535 (test_get_thread_arch_aspace_regcache): New.
15536 (current_regcache_test): Define a couple local test_target_ops
15537 instances and use them for testing.
15538 (readwrite_regcache): Pass process_stratum_target parameter.
15539 (cooked_read_test, cooked_write_test): Pass mock_target down.
15540 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15541 (get_thread_arch_aspace_regcache): Add process_stratum_target
15542 parameter.
15543 (regcache::target): New method.
15544 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15545 (regcache::registers_changed_ptid): Add process_stratum_target
15546 parameter.
15547 (regcache::m_target): New field.
15548 (registers_changed_ptid): Add process_stratum_target parameter.
15549 * remote.c (remote_state::supports_vCont_probed): New field.
15550 (remote_target::async_wait_fd): New method.
15551 (remote_unpush_and_throw): Add remote_target parameter.
15552 (get_current_remote_target): Adjust.
15553 (remote_target::remote_add_inferior): Push target.
15554 (remote_target::remote_add_thread)
15555 (remote_target::remote_notice_new_inferior)
15556 (get_remote_thread_info): Pass target down.
15557 (remote_target::update_thread_list): Skip threads of inferiors
15558 bound to other targets. (remote_target::close): Don't discard
15559 inferiors. (remote_target::add_current_inferior_and_thread)
15560 (remote_target::process_initial_stop_replies)
15561 (remote_target::start_remote)
15562 (remote_target::remote_serial_quit_handler): Pass down target.
15563 (remote_target::remote_unpush_target): New remote_target
15564 parameter. Unpush the target from all inferiors.
15565 (remote_target::remote_unpush_and_throw): New remote_target
15566 parameter. Pass it down.
15567 (remote_target::open_1): Check whether the current inferior has
15568 execution instead of checking whether any inferior is live. Pass
15569 target down.
15570 (remote_target::remote_detach_1): Pass down target. Use
15571 remote_unpush_target.
15572 (extended_remote_target::attach): Pass down target.
15573 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15574 (remote_target::append_resumption): Pass down target.
15575 (remote_target::append_pending_thread_resumptions)
15576 (remote_target::remote_resume_with_hc, remote_target::resume)
15577 (remote_target::commit_resume): Pass down target.
15578 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15579 (remote_target::interrupt_query)
15580 (remote_target::remove_new_fork_children)
15581 (remote_target::check_pending_events_prevent_wildcard_vcont)
15582 (remote_target::remote_parse_stop_reply)
15583 (remote_target::process_stop_reply): Pass down target.
15584 (first_remote_resumed_thread): New remote_target parameter. Pass
15585 it down.
15586 (remote_target::wait_as): Pass down target.
15587 (unpush_and_perror): New remote_target parameter. Pass it down.
15588 (remote_target::readchar, remote_target::remote_serial_write)
15589 (remote_target::getpkt_or_notif_sane_1)
15590 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15591 down target.
15592 (remote_target::mourn_inferior): Pass down target. Use
15593 remote_unpush_target.
15594 (remote_target::core_of_thread)
15595 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15596 (remote_target::pid_to_exec_file)
15597 (remote_target::thread_handle_to_thread_info): Pass down target.
15598 (remote_target::async_wait_fd): New.
15599 * riscv-fbsd-tdep.c: Include "inferior.h".
15600 (riscv_fbsd_get_thread_local_address): Pass down target.
15601 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15602 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15603 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15604 Adjust.
15605 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15606 * solib-svr4.c (enable_break): Pass down target.
15607 * spu-multiarch.c (parse_spufs_run): Pass down target.
15608 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15609 * target-delegates.c: Regenerate.
15610 * target.c (g_target_stack): Delete.
15611 (current_top_target): Return the current inferior's top target.
15612 (target_has_execution_1): Refer to the passed-in inferior's top
15613 target.
15614 (target_supports_terminal_ours): Check whether the initial
15615 inferior was already created.
15616 (decref_target): New.
15617 (target_stack::push): Incref/decref the target.
15618 (push_target, push_target, unpush_target): Adjust.
15619 (target_stack::unpush): Defref target.
15620 (target_is_pushed): Return bool. Adjust to refer to the current
15621 inferior's target stack.
15622 (dispose_inferior): Delete, and inline parts ...
15623 (target_preopen): ... here. Only dispose of the current inferior.
15624 (target_detach): Hold strong target reference while detaching.
15625 Pass target down.
15626 (target_thread_name): Add assertion.
15627 (target_resume): Pass down target.
15628 (target_ops::beneath, find_target_at): Adjust to refer to the
15629 current inferior's target stack.
15630 (get_dummy_target): New.
15631 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15632 has a thread running.
15633 (initialize_targets): Rename to ...
15634 (_initialize_target): ... this.
15635 * target.h: Include "gdbsupport/refcounted-object.h".
15636 (struct target_ops): Inherit refcounted_object.
15637 (target_ops::shortname, target_ops::longname): Make const.
15638 (target_ops::async_wait_fd): New method.
15639 (decref_target): Declare.
15640 (struct target_ops_ref_policy): New.
15641 (target_ops_ref): New typedef.
15642 (get_dummy_target): Declare function.
15643 (target_is_pushed): Return bool.
15644 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15645 (all_matching_threads_iterator::all_matching_threads_iterator):
15646 Handle filter target.
15647 * thread-iter.h (struct all_matching_threads_iterator, struct
15648 all_matching_threads_range, class all_non_exited_threads_range):
15649 Filter by target too. Remove explicit.
15650 * thread.c (threads_executing): Delete.
15651 (inferior_thread): Pass down current inferior.
15652 (clear_thread_inferior_resources): Pass down thread pointer
15653 instead of ptid_t.
15654 (add_thread_silent, add_thread_with_info, add_thread): Add
15655 process_stratum_target parameter. Use it for thread and inferior
15656 searches.
15657 (is_current_thread): New.
15658 (thread_info::deletable): Use it.
15659 (find_thread_ptid, thread_count, in_thread_list)
15660 (thread_change_ptid, set_resumed, set_running): New
15661 process_stratum_target parameter. Pass it down.
15662 (set_executing): New process_stratum_target parameter. Pass it
15663 down. Adjust reference to 'threads_executing'.
15664 (threads_are_executing): New process_stratum_target parameter.
15665 Adjust reference to 'threads_executing'.
15666 (set_stop_requested, finish_thread_state): New
15667 process_stratum_target parameter. Pass it down.
15668 (switch_to_thread): Also match inferior.
15669 (switch_to_thread): New process_stratum_target parameter. Pass it
15670 down.
15671 (update_threads_executing): Reimplement.
15672 * top.c (quit_force): Pop targets from all inferior.
15673 (gdb_init): Don't call initialize_targets.
15674 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15675 Declare.
15676 (windows_add_thread, windows_delete_thread): Adjust.
15677 (get_windows_debug_event): Rename to ...
15678 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15679 * tracefile-tfile.c (tfile_target_open): Pass down target.
15680 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15681 Forward declare.
15682 (switch_to_thread): Add process_stratum_target parameter.
15683 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15684 parameter. Use it.
15685 (mi_on_resume): Pass target down.
15686 * nat/fork-inferior.c (startup_inferior): Add
15687 process_stratum_target parameter. Pass it down.
15688 * nat/fork-inferior.h (startup_inferior): Add
15689 process_stratum_target parameter.
15690 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15691
15692 2020-01-10 Pedro Alves <palves@redhat.com>
15693
15694 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15695 directly. Instead find the first thread in the thread list and
15696 use switch_to_thread.
15697
15698 2020-01-10 Pedro Alves <palves@redhat.com>
15699
15700 * remote.c (remote_target::remote_add_inferior): Don't bind a
15701 process to the current inferior if the current inferior is already
15702 bound to a process.
15703
15704 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15705 Pedro Alves <palves@redhat.com>
15706
15707 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15708 If no process is specified, return null_ptid instead of
15709 inferior_ptid.
15710 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15711 TARGET_WAITKIND_SIGNALLED with no pid.
15712
15713 2020-01-10 Pedro Alves <palves@redhat.com>
15714
15715 * remote.c (first_remote_resumed_thread): New.
15716 (remote_target::wait_as): Use it as default event_ptid instead of
15717 inferior_ptid.
15718
15719 2020-01-10 Pedro Alves <palves@redhat.com>
15720
15721 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15722
15723 2020-01-10 Pedro Alves <palves@redhat.com>
15724
15725 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15726 not -1.
15727
15728 2020-01-10 Pedro Alves <palves@redhat.com>
15729
15730 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15731 ptid to get_last_target_status.
15732 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15733 ptid to get_last_target_status.
15734 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15735 get_last_target_status.
15736 (info_program_command): Don't pass a target_waitstatus to
15737 get_last_target_status.
15738 * infrun.c (init_wait_for_inferior): Use
15739 nullify_last_target_wait_ptid.
15740 (get_last_target_status): Handle nullptr arguments.
15741 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15742 (print_stop_event): Don't pass a ptid to get_last_target_status.
15743 (normal_stop): Don't pass a ptid to get_last_target_status.
15744 * infrun.h (get_last_target_status, set_last_target_status): Move
15745 comments here and update.
15746 (nullify_last_target_wait_ptid): Declare.
15747 * linux-fork.c (fork_load_infrun_state): Remove local extern
15748 declaration of nullify_last_target_wait_ptid.
15749 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15750 to get_last_target_status.
15751
15752 2020-01-10 Pedro Alves <palves@redhat.com>
15753
15754 * gdbthread.h (scoped_restore_current_thread)
15755 <dont_restore, restore, m_dont_restore>: Declare.
15756 * thread.c (thread_alive): Add assertion. Return bool.
15757 (switch_to_thread_if_alive): New.
15758 (prune_threads): Switch inferior/thread.
15759 (print_thread_info_1): Switch thread before calling target methods.
15760 (scoped_restore_current_thread::restore): New, factored out from
15761 ...
15762 (scoped_restore_current_thread::~scoped_restore_current_thread):
15763 ... this.
15764 (scoped_restore_current_thread::scoped_restore_current_thread):
15765 Add assertion.
15766 (thread_apply_all_command, thread_select): Use
15767 switch_to_thread_if_alive.
15768 * infrun.c (proceed, restart_threads, handle_signal_stop)
15769 (switch_back_to_stepped_thread): Switch current thread before
15770 calling target methods.
15771
15772 2020-01-10 Pedro Alves <palves@redhat.com>
15773
15774 * inferior.c (switch_to_inferior_no_thread): New function,
15775 factored out from ...
15776 (inferior_command): ... here.
15777 * inferior.h (switch_to_inferior_no_thread): Declare.
15778 * mi/mi-main.c (run_one_inferior): Use
15779 switch_to_inferior_no_thread.
15780
15781 2020-01-10 Pedro Alves <palves@redhat.com>
15782
15783 * infcmd.c (kill_command): Remove dead code.
15784
15785 2020-01-10 Pedro Alves <palves@redhat.com>
15786
15787 * remote.c (remote_target::mourn_inferior): No longer check
15788 whether the target is running.
15789
15790 2020-01-10 Pedro Alves <palves@redhat.com>
15791
15792 * corelow.c (core_target::has_execution): Change parameter type to
15793 inferior pointer.
15794 * inferior.c (number_of_live_inferiors): Use
15795 inferior::has_execution instead of target_has_execution_1.
15796 * inferior.h (inferior::has_execution): New.
15797 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15798 inferior::has_execution instead of target_has_execution_1.
15799 * process-stratum-target.c
15800 (process_stratum_target::has_execution): Change parameter type to
15801 inferior pointer. Check the inferior's PID instead of
15802 inferior_ptid.
15803 * process-stratum-target.h
15804 (process_stratum_target::has_execution): Change parameter type to
15805 inferior pointer.
15806 * record-full.c (record_full_core_target::has_execution): Change
15807 parameter type to inferior pointer.
15808 * target.c (target_has_execution_1): Change parameter type to
15809 inferior pointer.
15810 (target_has_execution_current): Adjust.
15811 * target.h (target_ops::has_execution): Change parameter type to
15812 inferior pointer.
15813 (target_has_execution_1): Change parameter type to inferior
15814 pointer. Change return type to bool.
15815 * tracefile.h (tracefile_target::has_execution): Change parameter
15816 type to inferior pointer.
15817
15818 2020-01-10 Pedro Alves <palves@redhat.com>
15819
15820 * exceptions.c (print_flush): Remove current_top_target() check.
15821
15822 2020-01-10 Pedro Alves <palves@redhat.com>
15823
15824 * remote.c (show_remote_exec_file): Show the current inferior's
15825 exec-file instead of the command variable's value.
15826
15827 2020-01-10 Pedro Alves <palves@redhat.com>
15828
15829 * record-full.c (record_full_resume_ptid): New global.
15830 (record_full_target::resume): Set it.
15831 (record_full_wait_1): Use record_full_resume_ptid instead of
15832 inferior_ptid.
15833
15834 2020-01-10 Pedro Alves <palves@redhat.com>
15835
15836 * gdbthread.h (scoped_restore_current_thread)
15837 <dont_restore, restore, m_dont_restore>: Declare.
15838 * thread.c (thread_alive): Add assertion. Return bool.
15839 (switch_to_thread_if_alive): New.
15840 (prune_threads): Switch inferior/thread.
15841 (print_thread_info_1): Switch thread before calling target methods.
15842 (scoped_restore_current_thread::restore): New, factored out from
15843 ...
15844 (scoped_restore_current_thread::~scoped_restore_current_thread):
15845 ... this.
15846 (scoped_restore_current_thread::scoped_restore_current_thread):
15847 Add assertion.
15848 (thread_apply_all_command, thread_select): Use
15849 switch_to_thread_if_alive.
15850
15851 2020-01-10 George Barrett <bob@bob131.so>
15852
15853 * stap-probe.c (stap_modify_semaphore): Don't check for null
15854 semaphores.
15855 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15856 for null semaphores.
15857
15858 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15859
15860 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15861 all source windows, and maintain horizontal scroll status while
15862 doing so.
15863
15864 2020-01-09 Tom Tromey <tom@tromey.com>
15865
15866 PR tui/18932:
15867 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15868 update_source_window, not print_source_lines.
15869
15870 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15871
15872 * tui/tui.c (tui_enable): Register tui hooks after calling
15873 tui_display_main.
15874
15875 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15876
15877 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15878
15879 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15880
15881 * thread.c (print_thread_info_1): Fix indentation.
15882
15883 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15884
15885 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15886 unique_xmalloc_ptr outside the if to always free the demangled name.
15887
15888 2020-01-08 Tom Tromey <tromey@adacore.com>
15889
15890 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15891 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15892 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15893 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15894 Remove.
15895 (section_offsets): New typedef.
15896 * symtab.c (fixup_section, get_msymbol_address): Update.
15897 * symmisc.c (dump_msymbols): Update.
15898 * symfile.h (relative_addr_info_to_section_offsets)
15899 (symfile_map_offsets_to_segments): Update.
15900 * symfile.c (build_section_addr_info_from_objfile)
15901 (init_objfile_sect_indices): Update.
15902 (struct place_section_arg): Change type of "offsets".
15903 (place_section): Update.
15904 (relative_addr_info_to_section_offsets): Change type of
15905 "section_offsets". Remove "num_sections" parameter.
15906 (default_symfile_offsets, syms_from_objfile_1)
15907 (set_objfile_default_section_offset): Update.
15908 (reread_symbols): No need to preserve section offsets by hand.
15909 (symfile_map_offsets_to_segments): Change type of "offsets".
15910 * stap-probe.c (relocate_address): Update.
15911 * stabsread.h (process_one_symbol): Update.
15912 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15913 (solib_target_relocate_section_addresses): Update.
15914 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15915 Update.
15916 * solib-frv.c (frv_relocate_main_executable): Update.
15917 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15918 * solib-aix.c (solib_aix_get_section_offsets): Change return
15919 type.
15920 (solib_aix_solib_create_inferior_hook): Update.
15921 * remote.c (remote_target::get_offsets): Update.
15922 * psymtab.c (find_pc_sect_psymtab): Update.
15923 * psympriv.h (struct partial_symbol) <address, text_low,
15924 text_high>: Update.
15925 * objfiles.h (obj_section_offset): Update.
15926 (struct objfile) <section_offsets>: Change type.
15927 <num_sections>: Remove.
15928 (objfile_relocate): Update.
15929 * objfiles.c (entry_point_address_query): Update
15930 (relocate_one_symbol): Change type of "section_offsets".
15931 (objfile_relocate1, objfile_relocate1): Change type of
15932 "new_offsets".
15933 (objfile_rebase1): Update.
15934 * mipsread.c (mipscoff_symfile_read): Update.
15935 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15936 parameter.
15937 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15938 (parse_external, psymtab_to_symtab_1): Update.
15939 * machoread.c (macho_symfile_offsets): Update.
15940 * ia64-tdep.c (ia64_find_unwind_table): Update.
15941 * hppa-tdep.c (read_unwind_info): Update.
15942 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15943 * dwarf2read.c (create_addrmap_from_index)
15944 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15945 (process_psymtab_comp_unit_reader, add_partial_symbol)
15946 (add_partial_subprogram, process_full_comp_unit)
15947 (read_file_scope, read_func_scope, read_lexical_block_scope)
15948 (read_call_site_scope, dwarf2_rnglists_process)
15949 (dwarf2_ranges_process, dwarf2_ranges_read)
15950 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15951 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15952 Update.
15953 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15954 Update.
15955 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15956 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15957 (process_one_symbol): Change type of "section_offsets".
15958 * ctfread.c (get_objfile_text_range): Update.
15959 * coffread.c (coff_symtab_read, enter_linenos)
15960 (process_coff_symbol): Update.
15961 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15962 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15963
15964 2020-01-08 Tom Tromey <tromey@adacore.com>
15965
15966 * dwarf2read.c (parse_macro_definition): Use std::string.
15967 (parse_macro_definition): Likewise.
15968
15969 2020-01-08 Tom Tromey <tromey@adacore.com>
15970
15971 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15972 (ATTR_ALLOC_CHUNK): Remove.
15973
15974 2020-01-08 Tom Tromey <tromey@adacore.com>
15975
15976 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15977
15978 2020-01-08 Tom Tromey <tromey@adacore.com>
15979
15980 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15981 (dwarf2_compute_name, open_dwo_file): Likewise.
15982 (process_enumeration_scope): Use std::vector.
15983 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15984 (partial_die_info::fixup, dwarf2_start_subfile)
15985 (guess_full_die_structure_name, dwarf2_name): Likewise.
15986 (determine_prefix): Update.
15987 (guess_full_die_structure_name): Make return type const.
15988 (partial_die_full_name): Return unique_xmalloc_ptr.
15989 (DW_FIELD_ALLOC_CHUNK): Remove.
15990
15991 2020-01-07 Tom Tromey <tromey@adacore.com>
15992
15993 PR build/24937:
15994 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15995
15996 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15997
15998 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15999
16000 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
16001
16002 * stack.c (print_frame_info): Move disassemble_next_line code
16003 inside source_print block.
16004
16005 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16006
16007 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
16008 gdb/signals.h, as we are now using native signal symbols.
16009
16010 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16011
16012 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
16013 overflow by an early check of content vs threshold.
16014 * tui/tui-source.c (tui_source_window::line_is_displayed):
16015 Likewise.
16016
16017 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16018
16019 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
16020
16021 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
16022
16023 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
16024 export table if no section contains it's RVA.
16025
16026 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16027
16028 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
16029
16030 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
16031
16032 * source.c (print_source_lines_base): Set last_line_listed.
16033
16034 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
16035
16036 * tui/tui-disasm.c: Remove trailing spaces.
16037
16038 2020-01-06 Eli Zaretskii <eliz@gnu.org>
16039 Pedro Alves <palves@redhat.com>
16040
16041 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
16042 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
16043 (windows_gdb_signal_to_target): New function, uses the above
16044 enumeration to convert GDB internal signal codes to equivalent
16045 Windows codes.
16046 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
16047 * windows-nat.c: Include "gdb_wait.h".
16048 (get_windows_debug_event): Extract the fatal exception from the
16049 exit status and convert to the equivalent Posix signal number.
16050 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
16051 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
16052 * gdbsupport/gdb_wait.c: New file, implements
16053 windows_status_to_termsig.
16054 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
16055 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
16056
16057 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
16058
16059 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
16060 show_layout.
16061
16062 2020-01-05 Luis Machado <luis.machado@linaro.org>
16063
16064 * aarch64-linux-nat.c
16065 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
16066 and bfd_mach_aarch64.
16067
16068 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16069
16070 * ui-file.c (stdio_file::can_emit_style_escape)
16071 (tee_file::can_emit_style_escape): Ensure style is used also on
16072 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
16073 to gdb_stdout.
16074 * main.c (set_gdb_data_directory): Use file style to output the
16075 warning that the given pathname is not a directory.
16076 * top.c (show_history_filename, gdb_safe_append_history)
16077 (show_gdb_datadir): Use file style.
16078
16079 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16080
16081 * solib-target.c (struct lm_info_target):
16082 Change offsets to be a unique_xmalloc_ptr.
16083 (solib_target_relocate_section_addresses): Update.
16084
16085 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
16086
16087 * windows-nat.c (windows_clear_solib): Free so_list linked list.
16088
16089 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16090
16091 * MAINTAINERS (Write After Approval): Add myself.
16092
16093 2020-01-02 Luis Machado <luis.machado@linaro.org>
16094
16095 * proc-service.c (get_ps_regcache): Remove reference to obsolete
16096 Cell BE architecture.
16097 * target.h (struct target_ops) <thread_architecture>: Likewise.
16098
16099 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16100
16101 * Makefile.in: Use INSTALL_PROGRAM_ENV.
16102
16103 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
16104
16105 * MAINTAINERS (Write After Approval): Add myself.
16106
16107 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16108
16109 * gdbarch.sh: Update copyright year range of generated files.
16110
16111 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16112
16113 Update copyright year range in all GDB files.
16114
16115 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16116
16117 * copyright.py: Convert to Python 3.
16118
16119 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16120
16121 * copyright.py: Adapt after move of gnulib directory from gdb
16122 directory to toplevel directory.
16123
16124 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16125
16126 * copyright.py (main): Exit if run from the wrong directory.
16127
16128 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16129
16130 * top.c (print_gdb_version): Change copyright year to 2020.
16131
16132 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16133
16134 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16135
16136 For older changes see ChangeLog-2019.
16137 \f
16138 Local Variables:
16139 mode: change-log
16140 left-margin: 8
16141 fill-column: 74
16142 version-control: never
16143 coding: utf-8
16144 End:
This page took 0.379891 seconds and 4 git commands to generate.