1 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
3 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
5 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
7 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
9 * arch-utils.c (default_displaced_step_hw_singlestep):
11 * arch-utils.h (default_displaced_step_hw_singlestep):
13 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
15 * s390-tdep.c (s390_displaced_step_hw_singlestep):
17 * gdbarch.c: Re-generate.
18 * gdbarch.h: Re-generate.
19 * infrun.c (resume_1): Adjust.
21 2020-10-29 Tom Tromey <tom@tromey.com>
23 * progspace.c (program_space::~program_space): Don't call
26 2020-10-29 Tom Tromey <tom@tromey.com>
28 * exec.c (exec_target::close): Don't change current program
31 2020-10-29 Tom Tromey <tom@tromey.com>
33 * symfile.c (add_symbol_file_command): Update.
34 * exec.c (program_space::add_target_sections): Rename.
35 * symfile-mem.c (symbol_file_add_from_memory): Update.
36 * progspace.h (struct program_space) <add_target_sections>:
38 * exec.h (add_target_sections_of_objfile): Don't declare.
40 2020-10-29 Tom Tromey <tom@tromey.com>
42 * solib.c (solib_map_sections): Update.
43 * exec.c (program_space::add_target_sections): Now a method.
44 (exec_file_attach): Update.
45 * exec.h (add_target_sections): Don't declare.
46 * progspace.h (struct program_space) <add_target_sections>:
49 2020-10-29 Tom Tromey <tom@tromey.com>
51 * progspace.h (struct program_space) <remove_target_sections>:
53 * exec.c (program_space::remove_target_sections): Now a method.
54 * exec.h (remove_target_sections): Don't declare.
56 2020-10-29 Tom Tromey <tom@tromey.com>
58 * inferior.c (delete_inferior): Update.
59 * progspace.c (program_space::empty): Rename from
60 program_space_empty_p. Return bool.
61 * progspace.h (struct program_space) <empty>: New method.
62 (program_space_empty_p): Don't declare.
64 2020-10-29 Tom Tromey <tom@tromey.com>
66 * progspace.c (program_space::~program_space): Don't call
67 clear_program_space_solib_cache.
68 (program_space::clear_solib_cache): Rename from
70 * solib.c (handle_solib_event): Update.
71 * progspace.h (struct program_space) <clear_solib_cache>: New
73 (clear_program_space_solib_cache): Don't declare.
75 2020-10-29 Tom Tromey <tom@tromey.com>
77 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
78 * target.c (info_target_command): Update.
79 * symfile.c (syms_from_objfile_1, finish_new_objfile)
80 (symbol_file_clear, reread_symbols): Update.
81 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
82 * stabsread.c (scan_file_globals): Update.
83 * solib.c (update_solib_list): Update.
84 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
85 (svr4_fetch_objfile_link_map, enable_break)
86 (svr4_relocate_main_executable)
87 (svr4_iterate_over_objfiles_in_search_order): Update.
88 * solib-frv.c (lm_base, enable_break)
89 (frv_relocate_main_executable): Update.
90 (main_got, frv_fdpic_find_canonical_descriptor): Update.
91 (frv_fetch_objfile_link_map): Update.
92 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
93 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
94 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
95 * remote.c (remote_target::get_offsets): Update.
96 (remote_target::start_remote)
97 (extended_remote_target::post_attach): Update.
98 * objfiles.c (entry_point_address_query): Update.
99 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
100 * minsyms.c (get_symbol_leading_char): Update.
101 * frame.c (inside_main_func): Update.
102 * progspace.h (symfile_objfile): Remove macro.
104 2020-10-29 Tom Tromey <tom@tromey.com>
106 * exec.c (exec_file_attach): Update.
107 * progspace.c (program_space::exec_close): Update.
108 * progspace.h (struct program_space) <ebfd>: Now a
110 <set_exec_bfd>: Change argument type.
113 2020-10-29 Tom Tromey <tom@tromey.com>
115 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
116 * symfile.c (reread_symbols): Update.
117 * symfile-mem.c (add_symbol_file_from_memory_command)
118 (add_vsyscall_page): Update.
119 * source-cache.c (source_cache::get_plain_source_lines): Update.
120 * solib-svr4.c (find_program_interpreter, elf_locate_base)
121 (svr4_current_sos_direct, svr4_exec_displacement)
122 (svr4_relocate_main_executable): Update.
123 (svr4_iterate_over_objfiles_in_search_order): Update.
124 * solib-frv.c (enable_break2, enable_break): Update.
125 * solib-dsbt.c (lm_base, enable_break): Update.
126 * solib-darwin.c (find_program_interpreter)
127 (darwin_solib_create_inferior_hook): Update.
128 * sol-thread.c (rw_common, ps_pdmodel): Update.
129 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
130 * remote.c (compare_sections_command)
131 (remote_target::trace_set_readonly_regions): Update.
132 * remote-sim.c (get_sim_inferior_data)
133 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
134 (gdbsim_target_open, gdbsim_target::files_info): Update.
135 * exec.h (exec_bfd): Remove macro.
136 * progspace.c (initialize_progspace): Update.
137 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
139 * nto-procfs.c (nto_procfs_target::post_attach)
140 (nto_procfs_target::create_inferior): Update.
141 * maint.c (maintenance_info_sections): Update.
142 * linux-thread-db.c (thread_db_target::get_thread_local_address):
144 * infcmd.c (post_create_inferior): Update.
145 * gcore.c (default_gcore_arch, default_gcore_target): Update.
146 (objfile_find_memory_regions): Update.
147 * exec.c (validate_exec_file, exec_file_attach)
148 (exec_read_partial_read_only, print_section_info): Update.
149 * corelow.c (core_target_open): Update.
150 * corefile.c (reopen_exec_file, validate_files): Update.
151 * arm-tdep.c (gdb_print_insn_arm): Update.
152 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
153 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
156 2020-10-29 Tom Tromey <tom@tromey.com>
158 * progspace.h (current_target_sections): Remove macro.
159 * solib-svr4.c (scan_dyntag): Update.
160 * solib-dsbt.c (scan_dyntag): Update.
161 * exec.c (exec_target::close): Update.
162 (add_target_sections, add_target_sections_of_objfile)
163 (remove_target_sections, exec_target::get_section_table)
164 (exec_target::files_info, set_section_command)
165 (exec_set_section_address, exec_target::has_memory)
166 (exec_target::has_memory): Update.
168 2020-10-29 Tom Tromey <tom@tromey.com>
170 * source-cache.c (source_cache::get_plain_source_lines): Use
171 current_program_space.
172 * corefile.c (reopen_exec_file): Use current_program_space.
173 * exec.c (exec_file_attach): Use current_program_space.
174 * exec.h (exec_bfd_mtime): Remove.
176 2020-10-29 Tom Tromey <tom@tromey.com>
178 * gcore.c (default_gcore_mach): Remove.
179 (create_gcore_bfd): Update.
181 2020-10-29 Tom Tromey <tom@tromey.com>
183 * progspace.c (program_space::exec_close): New method, from
184 exec_close in exec.c.
185 * exec.c (exec_close): Move to progspace.c.
186 (exec_target::close, exec_file_attach): Update.
187 * progspace.h (struct program_space) <exec_close>: Declare
190 2020-10-29 Tom Tromey <tom@tromey.com>
192 * progspace.h (struct program_space) <exec_filename>: Rename from
193 pspace_exec_filename. Now a unique_xmalloc_ptr.
194 * inferior.c (print_selected_inferior): Update.
195 (print_inferior): Update.
196 * mi/mi-main.c (print_one_inferior): Update.
197 * exec.h (exec_filename): Remove macro.
198 * corefile.c (get_exec_file): Update.
199 * exec.c (exec_close): Update.
200 (exec_file_attach): Update.
201 * progspace.c (clone_program_space): Update.
202 (print_program_space): Update.
204 2020-10-29 Tom Tromey <tom@tromey.com>
206 * target-section.h (struct target_section): Add constructor.
207 * exec.c (build_section_table, add_target_sections_of_objfile):
209 * corelow.c (core_target::build_file_mappings): Update.
211 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214 * inferior.c (detach_inferior_command): Restore the current thread.
215 (kill_inferior_command): Ditto.
217 2020-10-28 Tom de Vries <tdevries@suse.de>
220 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
221 map, check it in the "best match" loop.
223 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
225 * m32c-tdep.c: Remove unused includes.
227 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
229 * xtensa-tdep.c: Remove includes.
231 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233 * breakpoint.c (struct condition_command_opts): New struct.
234 (condition_command_option_defs): New static global.
235 (make_condition_command_options_def_group): New function.
236 (condition_completer): Update to consider the '-force' flag.
237 (condition_command): Use gdb::option for the '-force' flag.
239 2020-10-27 Tom de Vries <tdevries@suse.de>
241 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
242 symbols in section check.
244 2020-10-27 Tom de Vries <tdevries@suse.de>
246 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
248 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
251 * breakpoint.c: Update the help text of the 'condition' and 'break'
253 (set_breakpoint_condition): Take a new bool parameter
254 to control whether condition definition should be forced even when
255 the condition expression is invalid in all of the current locations.
256 (condition_command): Update the call to 'set_breakpoint_condition'.
257 (find_condition_and_thread): Take the "-force-condition" flag into
259 * linespec.c (linespec_keywords): Add "-force-condition" as an
261 (FORCE_KEYWORD_INDEX): New #define.
262 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
264 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
265 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
266 * python/py-breakpoint.c (bppy_set_condition): Ditto.
267 * NEWS: Mention the changes to the 'break' and 'condition' commands.
269 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
271 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
272 * breakpoint.c (set_breakpoint_location_condition): New function.
273 (set_breakpoint_condition): Disable a breakpoint location if parsing
274 the condition string gives an error.
275 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
276 (build_target_condition_list): Ditto.
277 (build_target_command_list): Ditto.
278 (build_bpstat_chain): Ditto.
279 (print_one_breakpoint_location): Ditto.
280 (print_one_breakpoint): Ditto.
281 (breakpoint_1): Ditto.
282 (bp_location::bp_location): Ditto.
283 (locations_are_equal): Ditto.
284 (update_breakpoint_locations): Ditto.
285 (enable_disable_bp_num_loc): Ditto.
286 (init_breakpoint_sal): Use set_breakpoint_location_condition.
287 (find_condition_and_thread_for_sals): New static function.
288 (create_breakpoint): Call find_condition_and_thread_for_sals.
289 (location_to_sals): Call find_condition_and_thread_for_sals instead
290 of find_condition_and_thread.
292 2020-10-26 Tom de Vries <tdevries@suse.de>
294 * dwarf2/read.c (process_full_comp_unit): Call
295 dwarf2_find_base_address.
297 2020-10-26 Tom Tromey <tromey@adacore.com>
299 * gdbtypes.c (create_range_type): Revert previous patch. Add
302 2020-10-26 Pedro Alves <pedro@palves.net>
304 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
305 (my_waitpid): Use gdb::handle_eintr.
307 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
309 * acinclude.m4: Update ptrace.m4 path.
310 * ptrace.m4: Moved to gdbsupport.
312 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
314 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
315 instead of target_gdbarch.
317 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
319 * jit.c (jit_reader_load_command): Pass current inferior.
320 (jit_inferior_init): Change parameter type to inferior, use it.
321 (jit_inferior_created): Remove.
322 (jit_inferior_created_hook): Pass inferior parameter down.
323 (_initialize_jit): Use jit_inferior_created_hook instead of
324 jit_inferior_created.
325 * jit.h (jit_inferior_created_hook): Add inferior parameter.
326 * infrun.c (follow_exec): Pass inferior to
327 jit_inferior_created_hook.
329 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
331 * linux-thread-db.c (check_pid_namespace_match): Add inferior
332 parameter and use it.
333 (thread_db_inferior_created): Pass inferior argument.
335 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
337 * aix-thread.c (aix_thread_inferior_created): Add inferior
339 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
340 * dummy-frame.c (cleanup_dummy_frames): Likewise.
341 * jit.c (jit_inferior_created): Likewise.
342 * linux-thread-db.c (thread_db_inferior_created): Likewise.
343 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
344 * observable.h (inferior_created): Likewise.
345 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
346 * symfile-mem.c (add_vsyscall_page): Likewise.
347 * infcmd.c (post_create_inferior): Pass inferior argument.
349 2020-10-24 Joel Brobecker <brobecker@adacore.com>
353 2020-10-23 Joel Brobecker <brobecker@adacore.com>
355 * ada-typeprint.c (ada_print_type): Remove superfluous second call
356 to ada_check_typedef.
358 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
360 * f-exp.y (f_parse): Rename to...
361 (f_language::parser): ...this.
362 * f-lang.c (f_get_encoding): Rename to...
363 (f_language::get_encoding): ...this.
364 (f_op_print_tab): Rename to...
365 (f_language::op_print_tab): ...this.
366 (exp_descriptor_f): Rename to...
367 (f_language::exp_descriptor_tab): ...this.
368 (class f_language): Moved to f-lang.h.
369 (f_language::language_arch_info): New function, moved out of class
371 (f_language::search_name_hash): Likewise.
372 (f_language::lookup_symbol_nonlocal): Likewise.
373 (f_language::get_symbol_name_matcher_inner): Likewise.
374 * f-lang.h: Add 'valprint.h' include.
375 (class f_language): Moved here from f-lang.c.
376 * f-typeprint.c (f_type_print_args): Delete commented out
378 (f_print_typedef): Rename to...
379 (f_language::print_typedef): ...this.
380 (f_print_type): Rename to...
381 (f_language::print_type): ...this.
382 (f_type_print_varspec_prefix): Delete declaration and rename to...
383 (f_language::f_type_print_varspec_prefix): ...this.
384 (f_type_print_varspec_suffix): Delete declaration and rename to...
385 (f_language::f_type_print_varspec_suffix): ...this.
386 (f_type_print_base): Delete declaration and rename to...
387 (f_language::f_type_print_base): ...this.
388 * f-valprint.c (f_value_print_inner): Rename to...
389 (f_language::value_print_inner): ...this.
390 * parse.c: Delete 'f-lang.h' include.
392 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
394 * language.h (language_defn::print_type): Add variable names in
395 declaration, and update header comment.
397 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
399 * ada-lang.c (ada_language::demangle): Rename to...
400 (ada_language::demangle_symbol): ...this.
401 * c-lang.c (cplus_language::demangle): Rename to...
402 (cplus_language::demangle_symbol): ...this.
403 * d-lang.c (d_language::demangle): Rename to...
404 (d_language::demangle_symbol): ...this.
405 * f-lang.c (f_language::demangle): Rename to...
406 (f_language::demangle_symbol): ...this.
407 * go-lang.c (go_language::demangle): Rename to...
408 (go_language::demangle_symbol): ...this.
409 * language.c (language_demangle): Update call to demangle_symbol.
410 (auto_or_unknown_language::demangle): Rename to...
411 (auto_or_unknown_language::demangle_symbol): ...this.
412 * language.h (language_defn::demangle): Rename to...
413 (language_defn::demangle_symbol): ...this.
414 * objc-lang.c (objc_language::demangle): Rename to...
415 (objc_language::demangle_symbol): ...this.
416 * rust-lang.c (rust_language::demangle): Rename to...
417 (rust_language::demangle_symbol): ...this.
419 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
421 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
422 (iterate_over_file_blocks): Replace use of macro with the macros
425 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
427 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
428 * valprint.c (maybe_print_array_index): Replace use of macro with
429 the macros definition.
431 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
433 * ada-lang.c (ada_language::print_array_index): Call value_print
435 * language.c (language_defn::print_array_index): Likewise.
436 * language.h (LA_VALUE_PRINT): Delete.
437 * valprint.c (value_print): Call value_print on the
438 current_language directly.
440 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
442 * language.h (LA_PRINT_TYPEDEF): Delete.
443 * typeprint.c (typedef_print): Call print_typedef directly on the
444 current_language object.
446 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
448 * m2-exp.y (m2_parse): Rename to...
449 (m2_language::parser): ...this. Update function signature.
450 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
451 (m2_op_print): Rename to...
452 (m2_language::op_print_tab): ...this, and make const.
453 (exp_descriptor_modula2): Rename to...
454 (m2_language::exp_descriptor_modula2): ...this.
455 (class m2_language): Move to m2-lang.h.
456 (m2_language::language_arch_info): New function, moved out of
458 (m2_language::printchar): New function, body from m2_printchar.
459 (m2_language::printstr): New function, moved out of class
461 (m2_language::emitchar): Likewise.
462 * m2-lang.h (m2_parse): Delete declaration.
463 (m2_print_typedef): Delete declaration.
464 (m2_value_print_inner): Delete declaration.
465 (class m2_language): Class declaration moved from m2-lang.c,
466 larger functions are left in m2-lang.c.
467 * m2-typeprint.c (m2_print_typedef): Rename to...
468 (m2_language::print_typedef): ...this, and update function
470 * m2-valprint.c (m2_value_print_inner): Rename to...
471 (m2_language::value_print_inner): ...this, replace use of
472 LA_PRINT_STRING with a direct call to printstr member function,
473 and update recursive call.
475 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
477 * language.c (default_is_string_type_p): Delete, implementation
478 moved into auto_or_unknown_language::is_string_type_p.
479 (unk_op_print_tab): Moved into
480 auto_or_unknown_language::opcode_print_table.
481 (unknown_language_arch_info): Delete, implementation moved into
482 auto_or_unknown_language::language_arch_info.
483 (class auto_or_unknown_language): New class, member functions
484 copied from unknown_language class, with some updates.
485 (class unknown_language): Most member functions moved into
486 auto_or_unknown_language class. Inherit from
487 auto_or_unknown_language class.
488 (class auto_language): Inherit from auto_or_unknown_language.
489 Delete most member functions.
491 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
493 * stabsread.c (read_member_functions): Remove gdb_assert.
495 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
497 * gdbtypes.c (init_complex_type): Check target type name.
499 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
501 * target-debug.h (target_debug_print_struct_target_ops_p):
503 (target_debug_print_async_callback_ftype_p): Remove.
504 (target_debug_print_struct_trace_state_variable_p): Remove.
505 (target_debug_print_struct_traceframe_info_p): Remove.
506 (target_debug_print_VEC__btrace_block_s__pp): Remove.
507 (target_debug_print_enum_btrace_format): Remove.
508 (target_debug_print_enum_info_proc_what): Remove.
509 (target_debug_print_thread_info_pp): Remove.
511 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
513 * target.h (struct target_ops) <make_corefile_notes>:
514 Change return type to unique pointer.
515 * target.c (dummy_make_corefile_notes): Likewise.
516 * exec.c (struct exec_target) <make_corefile_notes>:
518 (exec_target::make_corefile_notes): Likewise.
519 * procfs.c (class procfs_target) <make_corefile_notes>:
521 (procfs_do_thread_registers): Adjust to unique pointer.
522 (struct procfs_corefile_thread_data): Add constructor.
523 <note_data>: Change type to unique pointer.
524 (procfs_corefile_thread_callback): Adjust to unique pointer.
525 (procfs_target::make_corefile_notes): Change return type to
527 * target-delegates.c: Re-generate.
528 * gcore.c (write_gcore_file_1): Adjust.
529 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
532 2020-10-22 Tom de Vries <tdevries@suse.de>
534 * block.c (find_block_in_blockvector): Make sure the returned block
537 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
540 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
542 (load_cu): Pass existing CU.
543 (process_imported_unit_die): Likewise.
544 (follow_die_offset): Likewise.
546 2020-10-22 Luis Machado <luis.machado@linaro.org>
548 * corelow.c (core_target::xfer_partial): Also check for an empty
549 m_core_unavailable_mappings vector.
551 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
553 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
554 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
555 * f-exp.y (arglist): Allow for a series of subranges.
556 (subrange): Add cases for subranges with strides.
557 * f-lang.c (value_f90_subarray): Catch use of array strides and
559 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
561 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
563 * expprint.c (print_subexp_standard): Change enum range_type to
564 range_flag and rename variables to match.
565 (dump_subexp_body_standard): Likewise.
566 * expression.h (enum range_type): Rename to...
567 (enum range_flag): ...this.
568 (range_types): Rename to...
569 (range_flags): ...this.
570 * f-lang.c (value_f90_subarray): Change enum range_type to
571 range_flag and rename variables to match.
572 * parse.c (operator_length_standard): Likewise.
573 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
574 range_type to range_flag.
575 * rust-lang.c (rust_evaluate_funcall): Likewise.
576 (rust_range): Likewise.
577 (rust_compute_range): Likewise.
578 (rust_subscript): Likewise.
580 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
582 * expprint.c (print_subexp_standard): Update to reflect changes to
584 (dump_subexp_body_standard): Likewise.
585 * expression.h (enum range_type): Convert to a bit field enum, and
586 make the enum unsigned.
587 * f-exp.y (subrange): Update to reflect changes to enum
589 * f-lang.c (value_f90_subarray): Likewise.
590 * parse.c (operator_length_standard): Likewise.
591 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
592 * rust-lang.c (rust_range): Likewise.
593 (rust_compute_range): Likewise.
594 (rust_subscript): Likewise.
596 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
598 * infrun.c (displaced_step_in_progress_thread): Fix comment.
599 (displaced_step_in_progress): Fix comment.
601 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
603 * gdbarch.sh (make_corefile_notes): Return unique pointer.
604 * gdbarch.c: Re-generate.
605 * gdbarch.h: Re-generate.
606 * gcore.c (write_gcore_file_1): Adjust.
607 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
609 <note_data>: Change type to unique pointer.
610 <abort_iteration>: Change type to bool.
611 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
612 (fbsd_collect_thread_registers): Return void, adjust.
613 (struct fbsd_corefile_thread_data): Add construtor.
614 <note_data>: Change type to unique pointer.
615 (fbsd_corefile_thread): Adjust.
616 (fbsd_make_corefile_notes): Return unique pointer, adjust.
617 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
618 to unique pointer, adjust.
619 (struct linux_collect_regset_section_cb_data): Add constructor.
620 <note_data>: Change type to unique pointer.
621 <abort_iteration>: Change type to bool.
622 (linux_collect_thread_registers): Return void, adjust.
623 (struct linux_corefile_thread_data): Add constructor.
624 <note_data>: Change type to unique pointer.
625 (linux_corefile_thread): Adjust.
626 (linux_make_corefile_notes): Return unique pointer, adjust.
628 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
630 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
631 * gdbarch.c: Re-generate.
632 * gdbarch.h: Re-generate.
633 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
635 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
637 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
638 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
639 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
640 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
642 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
644 * gdbarch.sh: Make generated predicates return bool.
645 * gdbarch.c: Re-generate.
646 * gdbarch.h: Re-generate.
648 2020-10-20 Tom Tromey <tom@tromey.com>
650 * varobj-iter.h (struct varobj_item): Remove typedef.
652 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
654 * infrun.c (currently_stepping): Change int to bool
655 (maybe_software_singlestep): Likewise.
656 (show_stop_on_solib_events): Likewise.
657 (stepping_past_nonsteppable_watchpoint): Likewise.
658 (displaced_step_in_progress_any_inferior): Likewise.
659 (displaced_step_in_progress_thread): Likewise.
660 (keep_going_stepped_thread): Likewise.
661 (thread_still_needs_step_over): Likewise.
662 (start_step_over): Likewise.
663 (do_target_resume): Likewise.
664 (resume_1): Likewise.
665 (clear_proceed_status): Likewise.
666 (thread_still_needs_step_over_bp): Likewise.
668 (switch_back_to_stepped_thread): Likewise.
669 (adjust_pc_after_break): Likewise.
670 (stepped_in_from): Likewise.
671 (handle_stop_requested): Likewise.
672 (handle_syscall_event): Likewise.
673 (handle_no_resumed): Likewise.
674 (handle_inferior_event): Likewise.
675 (finish_step_over): Likewise.
676 (handle_signal_stop): Likewise.
677 (process_event_stop_test): Likewise.
679 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
681 * infrun.c (get_displaced_stepping_state): Fix comment.
683 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
685 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
687 2020-10-19 Tom Tromey <tromey@adacore.com>
690 * tui/tui-winsource.h (struct tui_source_window_base)
691 <refresh_window>: Rename from refresh_pad.
692 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
693 Rename from refresh_pad.
694 (tui_source_window_base::show_source_content)
695 (tui_source_window_base::do_scroll_horizontal): Update.
697 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699 * thread.c (_initialize_thread): Fine-tune the help text of
702 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
704 * frame.c: Remove the unused 'uinteger_option_def' type alias.
706 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
708 * breakpoint.c (handle_jit_event): Add an argument, change how
709 `jit_event_handler` is called.
711 2020-10-17 Tom Tromey <tom@tromey.com>
713 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
714 (scan_xcoff_symtab): Update.
715 * psymtab.h (class psymtab_storage) <global_psymbols,
716 static_psymbols, current_global_psymbols,
717 current_static_psymbols>: Remove.
718 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
719 (match_partial_symbol, lookup_partial_symbol): Update.
720 (print_partial_symbols): Change parameters.
721 (dump_psymtab, recursively_search_psymtabs)
722 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
723 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
725 (end_psymtab_common): Simplify.
726 (append_psymbol_to_list): Change parameters.
727 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
728 (init_psymbol_list): Simplify.
729 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
730 * psympriv.h (struct partial_symtab) <empty>: New method.
731 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
733 <global_psymbols, static_psymbols>: New members.
734 <add_psymbol>: New methods.
735 (add_psymbol_to_list): Don't declare.
736 (psymbol_placement): Move earlier.
737 * mdebugread.c (parse_partial_symbols): Update.
738 (handle_psymbol_enumerators): Change parameters.
739 (mdebug_expand_psymtab): Update.
740 * dwarf2/read.c (process_psymtab_comp_unit_reader)
741 (add_partial_symbol): Update.
742 * dwarf2/index-write.c (write_psymbols): Change parameters.
743 (write_one_signatured_type): Update.
744 (recursively_count_psymbols): Update.
745 (recursively_write_psymbols): Update.
746 (class debug_names) <recursively_write_psymbols>: Update.
747 <write_psymbols>: Change parameters.
748 <write_one_signatured_type>: Update.
749 * dbxread.c (read_dbx_symtab): Update.
750 (dbx_end_psymtab): Use partial_symtab::empty.
751 * ctfread.c (struct ctf_context) <pst>: New member.
752 (create_partial_symtab): Set it.
753 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
754 (scan_partial_symbols): Use the psymtab's context. Update.
756 2020-10-17 Tom Tromey <tom@tromey.com>
758 * valprint.c (generic_value_print): Remove comment.
759 * m2-valprint.c (m2_value_print_inner): Remove comment.
760 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
763 2020-10-17 Tom de Vries <tdevries@suse.de>
766 * source.c (select_source_symtab): Handling sal.symtab == NULL for
769 2020-10-14 Tom de Vries <tdevries@suse.de>
772 * solib.c (solib_contains_address_p): Handle
773 'solib->sections == nullptr'.
775 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
778 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
779 target can't do async.
780 * target.c (target_wait): Assert that we don't pass
781 TARGET_WNOHANG to a target that can't async.
783 2020-10-13 Kamil Rytarowski <n54@gmx.com>
785 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
786 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
787 * alpha-bsd-nat.c: Adjust include.
788 * alpha-bsd-tdep.h: Adjust comment.
789 * alpha-nbsd-tdep.c: Rename to ...
790 * alpha-netbsd-tdep.c: ... this, adjust include.
791 * amd64-nbsd-nat.c: Rename to ...
792 * amd64-netbsd-nat.c: ... this, adjust include.
793 * amd64-nbsd-tdep.c: Rename to ...
794 * amd64-netbsd-tdep.c: ... this, adjust include.
795 * amd64-tdep.h: Adjust include.
796 * arm-nbsd-nat.c: Rename to ...
797 * arm-netbsd-nat.c: ... this, adjust include.
798 * arm-nbsd-tdep.c: Rename to ...
799 * arm-netbsd-tdep.c: ... this, adjust include.
800 * arm-nbsd-tdep.h: Rename to ...
801 * arm-netbsd-tdep.h: ... this, adjust include.
802 * configure.nat: Adjust file lists.
803 * configure.tgt: Likewise.
804 * hppa-nbsd-nat.c: Rename to ...
805 * hppa-netbsd-nat.c: ... this, adjust include.
806 * hppa-nbsd-tdep.c: Rename to ...
807 * hppa-netbsd-tdep.c: ... this, adjust include.
808 * i386-nbsd-nat.c: Rename to ...
809 * i386-netbsd-nat.c: ... this, adjust include.
810 * i386-nbsd-tdep.c: Rename to ...
811 * i386-netbsd-tdep.c: ... this, adjust include.
812 * m68k-bsd-nat.c: Adjust include.
813 * mips-nbsd-nat.c: Rename to ...
814 * mips-netbsd-nat.c: ... this, adjust include.
815 * mips-nbsd-tdep.c: Rename to ...
816 * mips-netbsd-tdep.c: ... this, adjust include.
817 * mips-nbsd-tdep.h: Rename to ...
818 * mips-netbsd-tdep.h: ... this.
819 * nbsd-nat.c: Rename to ...
820 * netbsd-nat.c: ... this, adjust include.
821 * nbsd-nat.h: Rename to ...
822 * netbsd-nat.h: ... this, adjust include.
823 * nbsd-tdep.c: Rename to ...
824 * netbsd-tdep.c: ... this, adjust include.
825 * nbsd-tdep.h: Rename to ...
826 * netbsd-tdep.h: ... this.
827 * ppc-nbsd-nat.c: Rename to ...
828 * ppc-netbsd-nat.c: ... this, adjust include.
829 * ppc-nbsd-tdep.c: Rename to ...
830 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
831 * ppc-nbsd-tdep.h: Rename to ...
832 * ppc-netbsd-tdep.h: ... this.
833 * sh-nbsd-nat.c: Rename to ...
834 * sh-netbsd-nat.c: ... this, adjust include.
835 * sh-nbsd-tdep.c: Rename to ...
836 * sh-netbsd-tdep.c: ... this, adjust include.
837 * sparc-nbsd-nat.c: Rename to ...
838 * sparc-netbsd-nat.c: ... this.
839 * sparc-nbsd-tdep.c: Rename to ...
840 * sparc-netbsd-tdep.c: ... this, adjust include.
841 * sparc64-nbsd-nat.c: Rename to ...
842 * sparc64-netbsd-nat.c: ... this.
843 * sparc64-nbsd-tdep.c: Rename to ...
844 * sparc64-netbsd-tdep.c: ... this, adjust include.
845 * sparc64-tdep.h: Adjust comment.
846 * vax-bsd-nat.c: Adjust include.
847 * vax-nbsd-tdep.c: Rename to ...
848 * vax-netbsd-tdep.c: ... this, adjust include.
850 2020-10-12 Tom Tromey <tom@tromey.com>
852 * target.h (struct target_ops) <get_section_table>: Update.
853 (target_get_section_table): Update.
854 * target.c (target_get_section_table, target_section_by_addr)
855 (memory_xfer_partial_1): Update.
856 * target-section.h (target_section_table): Now an alias.
857 * target-delegates.c: Rebuild.
858 * target-debug.h (target_debug_print_target_section_table_p):
859 Rename from target_debug_print_struct_target_section_table_p.
860 * symfile.c (build_section_addr_info_from_section_table): Update.
861 * solib.c (solib_map_sections, solib_contains_address_p): Update.
862 * solib-svr4.c (scan_dyntag): Update.
863 * solib-dsbt.c (scan_dyntag): Update.
864 * remote.c (remote_target::remote_xfer_live_readonly_partial):
866 * record-full.c (record_full_core_target::xfer_partial): Update.
867 * progspace.h (struct program_space) <target_sections>: Update.
868 * exec.h (print_section_info): Update.
869 * exec.c (exec_target::close, build_section_table)
870 (add_target_sections, add_target_sections_of_objfile)
871 (remove_target_sections, exec_on_vfork)
872 (section_table_available_memory)
873 (section_table_xfer_memory_partial)
874 (exec_target::get_section_table, exec_target::xfer_partial)
875 (print_section_info, set_section_command)
876 (exec_set_section_address, exec_target::has_memory): Update.
877 * corelow.c (core_target::build_file_mappings)
878 (core_target::xfer_partial, core_target::info_proc_mappings)
879 (core_target::info_proc_mappings): Update.
880 * bfd-target.c (class target_bfd): Update
882 2020-10-12 Tom Tromey <tom@tromey.com>
884 * progspace.c (program_space::~program_space): Don't call
886 * exec.h (clear_section_table): Don't declare.
887 * exec.c (exec_target::close): Update.
888 (clear_section_table): Remove.
890 2020-10-12 Tom Tromey <tom@tromey.com>
892 * exec.c (add_target_sections_of_objfile): Simplify.
894 2020-10-12 Tom Tromey <tom@tromey.com>
896 * solib.c (solib_map_sections): Update.
897 * record-full.c (record_full_core_open_1): Update.
898 * exec.h (build_section_table): Return a target_section_table.
899 * exec.c (exec_file_attach): Update.
900 (build_section_table): Return a target_section_table.
901 * corelow.c (core_target::core_target): Update.
902 * bfd-target.c (target_bfd::target_bfd): Update.
904 2020-10-12 Tom Tromey <tom@tromey.com>
906 * target.c (target_section_by_addr, memory_xfer_partial_1):
908 * target-section.h (struct target_section_table): Use
910 * symfile.h (build_section_addr_info_from_section_table): Take a
911 target_section_table.
912 * symfile.c (build_section_addr_info_from_section_table): Take a
913 target_section_table.
914 * solist.h (struct so_list) <sections>: Change type.
915 <sections_end>: Remove.
916 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
917 (solib_contains_address_p): Update.
918 * solib-svr4.c (scan_dyntag): Update.
919 * solib-dsbt.c (scan_dyntag): Update.
920 * remote.c (remote_target::remote_xfer_live_readonly_partial):
922 * record-full.c (record_full_core_start, record_full_core_end):
924 (record_full_core_sections): New global.
925 (record_full_core_open_1, record_full_core_target::xfer_partial):
927 * exec.h (build_section_table, section_table_xfer_memory_partial)
928 (add_target_sections): Take a target_section_table.
929 * exec.c (exec_file_attach, clear_section_table): Update.
930 (resize_section_table): Remove.
931 (build_section_table, add_target_sections): Take a
932 target_section_table.
933 (add_target_sections_of_objfile, remove_target_sections)
934 (exec_on_vfork): Update.
935 (section_table_available_memory): Take a target_section_table.
936 (section_table_read_available_memory): Update.
937 (section_table_xfer_memory_partial): Take a target_section_table.
938 (print_section_info, set_section_command)
939 (exec_set_section_address, exec_target::has_memory): Update.
940 * corelow.c (class core_target) <m_core_section_table,
941 m_core_file_mappings>: Remove braces.
942 <~core_target>: Remove.
943 (core_target::core_target): Update.
944 (core_target::~core_target): Remove.
945 (core_target::build_file_mappings)
946 (core_target::xfer_memory_via_mappings)
947 (core_target::xfer_partial, core_target::info_proc_mappings):
949 * bfd-target.c (target_bfd::xfer_partial): Update.
950 (target_bfd::target_bfd): Update.
951 (target_bfd::~target_bfd): Remove.
953 2020-10-12 Tom Tromey <tom@tromey.com>
955 * target.h (struct target_section, struct target_section_table):
956 Move to target-section.h.
957 * target-section.h: New file.
959 2020-10-12 Pedro Alves <pedro@palves.net>
962 * valops.c (struct struct_field_searcher): New.
963 (update_search_result): Rename to ...
964 (struct_field_searcher::update_result): ... this. Simplify
965 prototype. Record all found fields.
966 (do_search_struct_field): Rename to ...
967 (struct_field_searcher::search): ... this. Simplify prototype.
968 Maintain stack of visited baseclass path. Call update_result for
969 fields too. Keep searching fields in baseclasses instead of
970 stopping at the first found field.
971 (search_struct_field): Use struct_field_searcher. When looking
972 for fields, report ambiguous access attempts.
974 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
976 * frame.c (inside_main_func): Check full symbols as well as
979 2020-10-09 Joel Brobecker <brobecker@adacore.com>
981 * ada-lang.c (advance_wild_match): Rewrite the function's
982 description. Change the type of target0, t0 and t1 to char.
984 2020-10-09 Tom Tromey <tromey@adacore.com>
986 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
988 2020-10-09 Tom Tromey <tromey@adacore.com>
990 * ada-lang.h (ada_encode): Return std::string.
991 * ada-lang.c (ada_encode_1): Return std::string.
992 (ada_encode): Likewise.
993 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
995 * ada-exp.y (block_lookup, write_var_or_type): Update.
997 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
1000 * printcmd.c (print_formatted): Handle void results as
1003 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1005 * arch/aarch32.c (aarch32_create_target_description): Release the
1006 target_desc_up as late as possible.
1007 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1008 * arch/amd64.c (amd64_create_target_description): Likewise.
1009 * arch/arc.c (arc_create_target_description): Return a
1010 target_desc_up, don't release it.
1011 * arch/arc.h (arc_create_target_description): Update declaration.
1012 (arc_lookup_target_description): Move target_desc_up into the
1013 cache, and return a borrowed pointer.
1014 * arch/arm.c (arm_create_target_description): Release the
1015 target_desc_up as late as possible.
1016 * arch/i386.c (i386_create_target_description): Likewise.
1017 * arch/riscv.h (riscv_create_target_description): Update
1018 declaration to match definition.
1019 * arch/tic6x.c (tic6x_create_target_description): Release the
1020 target_desc_up as late as possible.
1022 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
1024 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
1025 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
1027 2020-10-09 Jan Vrany <jan.vrany@labware.com>
1029 * source.c (directory_command): Notify observers that "directories"
1030 parameter has changed.
1032 2020-10-08 Tom Tromey <tom@tromey.com>
1034 * cli/cli-cmds.c (print_disassembly): Style function name and
1035 addresses. Add _() wrappers.
1037 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
1039 * NEWS: Mention ARC support in GDBserver.
1041 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
1043 * arch/aarch32.c (aarch32_create_target_description): Release
1044 unique_ptr returned from allocate_target_description.
1045 * arch/aarch64.c (aarch64_create_target_description): Likewise.
1046 * arch/amd64.c (amd64_create_target_description): Likewise.
1047 * arch/arc.c (arc_create_target_description): Likewise.
1048 * arch/arm.c (arm_create_target_description): Likewise.
1049 * arch/i386.c (i386_create_target_description): Likewise.
1050 * arch/riscv.c (riscv_create_target_description): Update return
1051 type. Handle allocate_target_description returning a unique_ptr.
1052 (riscv_lookup_target_description): Update to handle unique_ptr.
1053 * arch/tic6x.c (tic6x_create_target_description): Release
1054 unique_ptr returned from allocate_target_description.
1055 * features/microblaze-with-stack-protect.c: Regenerate.
1056 * features/microblaze.c: Regenerate.
1057 * features/mips-dsp-linux.c: Regenerate.
1058 * features/mips-linux.c: Regenerate.
1059 * features/mips64-dsp-linux.c: Regenerate.
1060 * features/mips64-linux.c: Regenerate.
1061 * features/nds32.c: Regenerate.
1062 * features/nios2.c: Regenerate.
1063 * features/or1k.c: Regenerate.
1064 * features/rs6000/powerpc-32.c: Regenerate.
1065 * features/rs6000/powerpc-32l.c: Regenerate.
1066 * features/rs6000/powerpc-403.c: Regenerate.
1067 * features/rs6000/powerpc-403gc.c: Regenerate.
1068 * features/rs6000/powerpc-405.c: Regenerate.
1069 * features/rs6000/powerpc-505.c: Regenerate.
1070 * features/rs6000/powerpc-601.c: Regenerate.
1071 * features/rs6000/powerpc-602.c: Regenerate.
1072 * features/rs6000/powerpc-603.c: Regenerate.
1073 * features/rs6000/powerpc-604.c: Regenerate.
1074 * features/rs6000/powerpc-64.c: Regenerate.
1075 * features/rs6000/powerpc-64l.c: Regenerate.
1076 * features/rs6000/powerpc-7400.c: Regenerate.
1077 * features/rs6000/powerpc-750.c: Regenerate.
1078 * features/rs6000/powerpc-860.c: Regenerate.
1079 * features/rs6000/powerpc-altivec32.c: Regenerate.
1080 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1081 * features/rs6000/powerpc-altivec64.c: Regenerate.
1082 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1083 * features/rs6000/powerpc-e500.c: Regenerate.
1084 * features/rs6000/powerpc-e500l.c: Regenerate.
1085 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1086 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1087 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1088 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1089 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1090 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1091 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1092 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1093 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1094 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1095 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1096 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1097 * features/rs6000/powerpc-vsx32.c: Regenerate.
1098 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1099 * features/rs6000/powerpc-vsx64.c: Regenerate.
1100 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1101 * features/rs6000/rs6000.c: Regenerate.
1102 * features/rx.c: Regenerate.
1103 * features/s390-gs-linux64.c: Regenerate.
1104 * features/s390-linux32.c: Regenerate.
1105 * features/s390-linux32v1.c: Regenerate.
1106 * features/s390-linux32v2.c: Regenerate.
1107 * features/s390-linux64.c: Regenerate.
1108 * features/s390-linux64v1.c: Regenerate.
1109 * features/s390-linux64v2.c: Regenerate.
1110 * features/s390-te-linux64.c: Regenerate.
1111 * features/s390-tevx-linux64.c: Regenerate.
1112 * features/s390-vx-linux64.c: Regenerate.
1113 * features/s390x-gs-linux64.c: Regenerate.
1114 * features/s390x-linux64.c: Regenerate.
1115 * features/s390x-linux64v1.c: Regenerate.
1116 * features/s390x-linux64v2.c: Regenerate.
1117 * features/s390x-te-linux64.c: Regenerate.
1118 * features/s390x-tevx-linux64.c: Regenerate.
1119 * features/s390x-vx-linux64.c: Regenerate.
1120 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1121 from allocate_target_description.
1122 * target-descriptions.c (allocate_target_description): Update
1124 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1125 allocate_target_description.
1127 2020-10-07 Tom Tromey <tromey@adacore.com>
1129 * unittests/search-memory-selftests.c: New file.
1130 * Makefile.in (SELFTESTS_SRCS): Add
1131 unittests/search-memory-selftests.c.
1133 2020-10-07 Tom Tromey <tromey@adacore.com>
1136 * findcmd.c (_initialize_mem_search): Mention that the range is
1139 2020-10-07 Tom Tromey <tromey@adacore.com>
1141 * target.h (simple_search_memory): Don't declare.
1142 * target.c (simple_search_memory): Move to gdbsupport.
1143 (default_search_memory): Update.
1144 * remote.c (remote_target::search_memory): Update.
1146 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1148 * Makefile.in (COMPILE): Add CXXFLAGS.
1149 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1150 (check-headers): Add CXXFLAGS.
1152 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1154 * arc-linux-tdep.h: New file.
1155 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1156 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1157 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1158 arc_linux_gregset, arc_linux_v2_regset,
1159 arc_linux_iterate_over_regset_sections,
1160 arc_linux_core_read_description): Implement.
1161 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1162 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1163 (arc_gdbarch_features_create): Add.
1164 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1166 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1168 * arch/arc.h: Rename "arc_gdbarch_features" to
1169 "arc_arch_features".
1170 * arc-tdep.h: Likewise.
1171 * arc-tdep.c: Likewise.
1173 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1175 * infcmd.c (attach_command): Remove the redundant call to
1176 `clear_proceed_status`.
1178 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1180 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1182 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1184 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1185 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1186 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1188 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1190 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1191 (_initialize_break_catch_sig): Don't allocate array.
1193 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1195 * symtab.c (find_pc_line): Return unmapped addresses when the
1196 requested address is also unmapped.
1198 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1200 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1203 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1205 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1206 type::is_vector instead of TYPE_VECTOR.
1208 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1210 * auto-load.c (auto_load_objfile_script_1): Don't use
1211 debugfile_holder as temporary variable when stripping drive
1214 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1216 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1217 Add TYPE_CODE_COMPLEX.
1218 (amd64_windows_return_value): Fix types returned via XMM0.
1220 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1222 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1223 AArch64/ARM maintainers.
1225 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1227 * NEWS: Mention set/show debug event-loop.
1229 2020-10-02 Tom Tromey <tromey@adacore.com>
1231 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1234 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1236 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1237 * procfs.c (procfs_inferior_created): Remove.
1238 (_initialize_procfs): Don't register procfs_inferior_created.
1240 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1242 * async-event.c (invoke_async_signal_handlers): Add debug
1244 (check_async_event_handlers): Likewise.
1245 * event-top.c (show_debug_event_loop): New function.
1246 (_initialize_event_top): Register "set debug event-loop"
1249 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1251 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1253 * infrun.c: Include gdbsupport/common-debug.h.
1254 * linux-nat.c: Likewise.
1256 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1258 * async-event.h (create_async_signal_handler): Add name
1260 (create_async_event_handler): Likewise.
1261 * async-event.c (struct async_signal_handler) <name>: New field.
1262 (struct async_event_handler) <name>: New field.
1263 (create_async_signal_handler): Assign name.
1264 (create_async_event_handler): Assign name.
1265 * event-top.c (async_init_signals): Pass name when creating
1267 * infrun.c (_initialize_infrun): Likewise.
1268 * record-btrace.c (record_btrace_push_target): Likewise.
1269 * record-full.c (record_full_open): Likewise.
1270 * remote-notif.c (remote_notif_state_allocate): Likewise.
1271 * remote.c (remote_target::open_1): Likewise.
1272 * tui/tui-win.c (tui_initialize_win): Likewise.
1274 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1276 * async-event.c (initialize_async_signal_handlers): Pass name to
1278 * event-top.c (ui_register_input_event_handler): Likewise.
1279 * linux-nat.c (linux_nat_target::async): Likewise.
1280 * run-on-main-thread.c (_initialize_run_on_main_thread):
1282 * ser-base.c (reschedule): Likewise.
1283 (ser_base_async): Likewise.
1284 * tui/tui-io.c: Likewise.
1285 * top.h (struct ui) <num>: New field.
1286 * top.c (highest_ui_num): New variable.
1287 (ui::ui): Initialize num.
1289 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1291 * observable.h <inferior_created>: Remove parameters. Update all
1293 * inferior.h (post_create_inferior): Remove target parameter.
1296 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1298 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1299 and DW_MACRO_undef_strx.
1300 (dwarf_decode_macros): Likewise
1301 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1302 which is the value of DW_AT_str_offsets_base.
1303 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1306 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1308 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1310 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1312 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1313 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1315 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1317 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1319 2020-09-30 Tom de Vries <tdevries@suse.de>
1322 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1324 2020-09-30 Tom Tromey <tromey@adacore.com>
1326 * dwarf2/read.c (handle_variant): Use constant_value.
1328 2020-09-29 Tom Tromey <tom@tromey.com>
1330 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1331 (read_file_scope, dwarf2_get_pc_bounds)
1332 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1333 (read_structure_type, handle_struct_member_die)
1334 (read_enumeration_type, read_array_type, read_set_type)
1335 (read_tag_pointer_type, read_tag_reference_type)
1336 (read_subroutine_type, read_base_type, read_subrange_type)
1337 (read_full_die_1, partial_die_info::read)
1338 (partial_die_info::read, by, new_symbol)
1339 (dwarf2_const_value_data, dwarf2_const_value_attr)
1340 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1341 (prepare_one_comp_unit): Update.
1342 * dwarf2/attribute.h (DW_UNSND): Remove.
1344 2020-09-29 Tom Tromey <tom@tromey.com>
1346 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1347 (read_subroutine_type, partial_die_info::read)
1348 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1349 (dwarf2_add_member_fn): Update.
1350 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1351 * dwarf2/attribute.c (attribute::as_boolean): New method.
1353 2020-09-29 Tom Tromey <tom@tromey.com>
1355 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1356 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1358 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1360 2020-09-29 Tom Tromey <tom@tromey.com>
1362 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1363 the attribute's form.
1365 2020-09-29 Tom Tromey <tom@tromey.com>
1367 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1368 (dwarf2_add_member_fn): Update.
1369 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1370 * dwarf2/attribute.c (attribute::defaulted): New method, from
1371 is_valid_DW_AT_defaulted.
1373 2020-09-29 Tom Tromey <tom@tromey.com>
1375 * dwarf2/read.c (dw2_get_file_names_reader)
1376 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1377 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1378 (dwarf2_symbol_mark_computed): Use as_unsigned.
1379 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1381 <form_is_section_offset>: Update comment.
1383 2020-09-29 Tom Tromey <tom@tromey.com>
1385 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1386 dwarf2_default_access_attribute. Look up attribute.
1387 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1390 2020-09-29 Tom Tromey <tom@tromey.com>
1392 * dwarf2/read.c (skip_one_die): Update.
1393 (read_full_die_1): Change how reprocessing is done.
1394 (partial_die_info::read): Update.
1395 (read_attribute_value): Remove need_reprocess parameter.
1396 (read_attribute): Likewise.
1397 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1400 2020-09-29 Tom Tromey <tom@tromey.com>
1402 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1403 (dwarf2_const_value_attr, dump_die_shallow)
1404 (dwarf2_fetch_constant_bytes): Update.
1405 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1407 <set_address>: New method.
1409 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1410 (attribute::as_string, attribute::as_address): Add assert.
1412 2020-09-29 Tom Tromey <tom@tromey.com>
1414 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1415 (read_attribute_reprocess, read_attribute_value): Update.
1416 (read_attribute): Clear requires_reprocessing.
1417 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1418 form_requires_reprocessing>: New methods.
1419 <string_init>: Clear requires_reprocessing.
1420 <set_unsigned_reprocess>: New method.
1421 <name>: Shrink by one bit.
1422 <requires_reprocessing>: New member.
1423 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1426 2020-09-29 Tom Tromey <tom@tromey.com>
1428 * dwarf2/read.c (read_attribute_value): Update.
1429 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1430 set_unsigned>: New methods.
1431 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1433 2020-09-29 Tom Tromey <tom@tromey.com>
1435 * dwarf2/read.c (get_alignment, read_array_order)
1436 (read_attribute_value, dwarf2_const_value_attr)
1437 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1438 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1442 2020-09-29 Tom Tromey <tom@tromey.com>
1444 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1445 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1447 * dwarf2/attribute.h (struct attribute) <as_signature,
1448 set_signature>: New methods.
1449 (DW_SIGNATURE): Remove.
1451 2020-09-29 Tom Tromey <tom@tromey.com>
1453 * dwarf2/read.c (read_call_site_scope)
1454 (handle_data_member_location, dwarf2_add_member_fn)
1455 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1456 (partial_die_info::read, read_attribute_value)
1457 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1458 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1459 (dwarf2_symbol_mark_computed): Update.
1460 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1463 * dwarf2/attribute.c (attribute::form_is_block): Add
1466 2020-09-29 Tom Tromey <tom@tromey.com>
1468 * dwarf2/read.c (read_cutu_die_from_dwo)
1469 (read_attribute_reprocess, read_attribute_value, read_attribute)
1470 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1471 (dwarf2_fetch_constant_bytes): Update.
1472 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1473 <set_string_noncanonical, set_string_canonical>: New methods.
1474 <string_is_canonical>: Update comment.
1475 <canonical_string_p>: Add assert.
1476 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1477 * dwarf2/attribute.c (attribute::form_is_string): New method.
1478 (attribute::string): Use it.
1480 2020-09-29 Tom Tromey <tom@tromey.com>
1482 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1483 (dump_die_shallow): Use canonical_string_p.
1484 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1487 2020-09-29 Tom Tromey <tom@tromey.com>
1489 * dwarf2/read.c (partial_die_info::read)
1490 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1491 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1492 attribute::as_string.
1494 2020-09-29 Tom Tromey <tom@tromey.com>
1496 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1498 (attribute::string): Don't use DW_STRING.
1499 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1500 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1502 2020-09-29 Tom Tromey <tom@tromey.com>
1504 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1505 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1506 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1507 * dwarf2/attribute.h (struct attribute): Rename methods.
1508 * dwarf2/attribute.c (attribute::as_address): Rename from
1510 (attribute::as_string): Rename from value_as_string.
1512 2020-09-29 Tom Tromey <tom@tromey.com>
1514 * dwarf2/read.c (partial_die_info::read) <case
1515 DW_AT_linkage_name>: Use value_as_string.
1516 (dwarf2_string_attr): Use value_as_string.
1517 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1519 * dwarf2/attribute.c (attribute::value_as_string): New method.
1521 2020-09-29 Pedro Alves <pedro@palves.net>
1523 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1524 defined before using '#pragma GCC diagnostic' instead of checking
1527 2020-09-28 Tom Tromey <tom@tromey.com>
1529 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1530 (handle_signal_stop): Update.
1531 * procfs.c (procfs_target::insert_watchpoint): Update.
1532 * target.h (target_have_steppable_watchpoint): Now a function.
1534 2020-09-28 Tom Tromey <tom@tromey.com>
1536 * infrun.c (set_schedlock_func): Update.
1537 * target.h (target_can_lock_scheduler): Now a function.
1539 2020-09-28 Tom Tromey <tom@tromey.com>
1541 * inferior.h (class inferior) <has_execution>: Update.
1542 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1543 * valops.c (find_function_in_inferior)
1544 (value_allocate_space_in_inferior): Update.
1545 * top.c (kill_or_detach): Update.
1546 * target.c (target_preopen, set_target_permissions): Update.
1547 (target_has_execution_current): Remove.
1548 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1550 * solib.c (update_solib_list, reload_shared_libraries): Update.
1551 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1552 * solib-dsbt.c (enable_break): Update.
1553 * score-tdep.c (score7_fetch_inst): Update.
1554 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1556 * remote.c (remote_target::start_remote)
1557 (remote_target::remote_check_symbols, remote_target::open_1)
1558 (remote_target::remote_detach_1, remote_target::verify_memory)
1559 (remote_target::xfer_partial, remote_target::read_description)
1560 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1561 * record-full.c (record_full_open_1): Update.
1562 * record-btrace.c (record_btrace_target_open): Update.
1563 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1564 (value_nsstring): Update.
1565 * linux-thread-db.c (add_thread_db_info)
1566 (thread_db_find_new_threads_silently, check_thread_db_callback)
1567 (try_thread_db_load_1, record_thread): Update.
1568 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1570 * linux-fork.c (checkpoint_command): Update.
1571 * infrun.c (set_non_stop, set_observer_mode)
1572 (check_multi_target_resumption, for_each_just_stopped_thread)
1573 (maybe_remove_breakpoints, normal_stop)
1574 (class infcall_suspend_state): Update.
1575 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1576 (info_program_command, attach_command): Update.
1577 * infcall.c (call_function_by_hand_dummy): Update.
1578 * inf-loop.c (inferior_event_handler): Update.
1579 * gcore.c (gcore_command, derive_heap_segment): Update.
1580 * exec.c (exec_file_command): Update.
1581 * eval.c (evaluate_subexp): Update.
1582 * compile/compile.c (compile_to_object): Update.
1583 * cli/cli-dump.c (restore_command): Update.
1584 * breakpoint.c (update_watchpoint)
1585 (update_inserted_breakpoint_locations)
1586 (insert_breakpoint_locations, get_bpstat_thread): Update.
1587 * target.h (target_has_execution): Remove macro.
1588 (target_has_execution_current): Don't declare.
1589 (target_has_execution): Rename from target_has_execution_1. Add
1592 2020-09-28 Tom Tromey <tom@tromey.com>
1594 * mi/mi-main.c (exec_reverse_continue)
1595 (mi_cmd_list_target_features): Update.
1596 * infrun.c (set_exec_direction_func): Update.
1597 * target.c (default_execution_direction): Update.
1598 * reverse.c (exec_reverse_once): Update.
1599 * target.h (target_can_execute_reverse): Now a function.
1601 2020-09-28 Tom Tromey <tom@tromey.com>
1603 * tui/tui-regs.c (tui_get_register)
1604 (tui_data_window::show_registers): Update.
1605 * thread.c (scoped_restore_current_thread::restore)
1606 (scoped_restore_current_thread::scoped_restore_current_thread):
1608 * regcache-dump.c (regcache_print): Update.
1609 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1611 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1612 * mep-tdep.c (current_me_module, current_options): Update.
1613 * linux-thread-db.c (thread_db_load): Update.
1614 * infcmd.c (registers_info, info_vector_command)
1615 (info_float_command): Update.
1616 * ia64-tdep.c (ia64_frame_prev_register)
1617 (ia64_sigtramp_frame_prev_register): Update.
1618 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1619 * gcore.c (derive_stack_segment): Update.
1620 * frame.c (get_current_frame, has_stack_frames): Update.
1621 * findvar.c (language_defn::read_var_value): Update.
1622 * arm-tdep.c (arm_pc_is_thumb): Update.
1623 * target.c (target_has_registers): Rename from
1624 target_has_registers_1.
1625 * target.h (target_has_registers): Remove macro.
1626 (target_has_registers): Rename from target_has_registers_1.
1628 2020-09-28 Tom Tromey <tom@tromey.com>
1630 * windows-tdep.c (tlb_make_value): Update.
1631 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1632 * thread.c (scoped_restore_current_thread::restore)
1633 (scoped_restore_current_thread::scoped_restore_current_thread)
1634 (thread_command): Update.
1635 * stack.c (backtrace_command_1, frame_apply_level_command)
1636 (frame_apply_all_command, frame_apply_command): Update.
1637 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1639 * gcore.c (derive_stack_segment): Update.
1640 * frame.c (get_current_frame, has_stack_frames): Update.
1641 * auxv.c (info_auxv_command): Update.
1642 * ada-tasks.c (ada_build_task_list): Update.
1643 * target.c (target_has_stack): Rename from target_has_stack_1.
1644 * target.h (target_has_stack): Remove macro.
1645 (target_has_stack): Rename from target_has_stack_1.
1647 2020-09-28 Tom Tromey <tom@tromey.com>
1649 * target.c (target_has_memory): Rename from target_has_memory_1.
1650 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1651 * thread.c (scoped_restore_current_thread::restore)
1652 (scoped_restore_current_thread::scoped_restore_current_thread):
1654 * frame.c (get_current_frame, has_stack_frames): Update.
1655 * target.h (target_has_memory): Remove macro.
1656 (target_has_memory): Rename from target_has_memory_1.
1658 2020-09-28 Tom Tromey <tom@tromey.com>
1660 * target.c (target_has_all_memory_1): Remove.
1661 * target.h (target_has_all_memory): Remove define.
1662 (target_has_all_memory_1): Don't declare.
1664 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1666 * ser-base.c: Adjust comments formatting.
1668 2020-09-27 Tom Tromey <tom@tromey.com>
1671 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1673 2020-09-27 Tom Tromey <tom@tromey.com>
1676 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1678 2020-09-27 Tom Tromey <tom@tromey.com>
1680 * unittests/tui-selftests.c: Update.
1681 * tui/tui-winsource.h (struct tui_source_window_base)
1682 <extra_margin, show_line_number, refresh_pad>: New methods.
1683 <m_max_length, m_pad>: New members.
1684 (tui_copy_source_line): Update.
1685 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1686 first_col, line_width, ndigits parameters. Add length.
1687 (tui_source_window_base::show_source_line): Write to pad. Line
1689 (tui_source_window_base::refresh_pad): New method.
1690 (tui_source_window_base::show_source_content): Write to pad. Call
1692 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1694 (tui_source_window_base::update_exec_info): Call
1696 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1698 <m_digits>: New member.
1699 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1701 (tui_source_window::show_line_number): New method.
1702 * tui/tui-io.h (tui_puts): Fix comment.
1703 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1706 2020-09-27 Tom Tromey <tom@tromey.com>
1708 * tui/tui-winsource.c
1709 (tui_source_window_base::set_is_exec_point_at): Don't call
1712 2020-09-27 Tom Tromey <tom@tromey.com>
1714 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1717 <cursor_x, cursor_y>: Remove.
1718 <m_inner_window>: New member.
1719 (tui_py_window::rerender): Create inner window.
1720 (tui_py_window::output): Write to inner window.
1722 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1725 * cli/cli-script.c (execute_control_commands): don't set
1726 instream to nullptr here as this breaks the from_tty argument
1727 to gdb.execute in Python.
1728 (execute_user_command): set instream to nullptr here instead.
1730 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1732 * infrun.h (infrun_debug_printf): Fix formatting.
1733 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1735 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1737 * compile/compile-object-load.h (struct munmap_list): Add
1738 explicitly-defined move constructor.
1740 2020-09-24 Tom Tromey <tromey@adacore.com>
1743 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1745 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1746 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1747 (tui_prev_win): Rewrite.
1749 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1751 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1752 in WOW64 processes as SIGINT.
1753 * nat/windows-nat.h: Make wow64_process a shared variable.
1754 * windows-nat.c: Remove static wow64_process variable.
1756 2020-09-23 Tom Tromey <tom@tromey.com>
1759 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1760 offset and bit size.
1761 * printcmd.c (print_scalar_formatted): Handle zero-length
1763 (print_scalar_formatted): Use bit_size_differs_p.
1764 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1766 (union type_specific): <int_stuff>: New member.
1767 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1769 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1770 TYPE_SPECIFIC_FIELD.
1771 (recursive_dump_type, copy_type_recursive): Update.
1772 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1773 DW_AT_data_bit_offset.
1775 2020-09-23 Tom Tromey <tom@tromey.com>
1777 * utils.h (class gdb_argv): Add move operators.
1778 <append>: New methods.
1779 * compile/compile.c (build_argc_argv): Remove.
1780 (compile_args_argc): Remove.
1781 (compile_args_argv): Change type.
1782 (set_compile_args): Simplify.
1783 (append_args): Remove.
1784 (filter_args): Remove argcp parameter.
1785 (get_args): Return gdb_argv. Simplify.
1786 (compile_to_object): Update.
1788 2020-09-23 Tom Tromey <tom@tromey.com>
1790 * compile/compile-object-run.c (do_module_cleanup)
1791 <~do_module_cleanup> :Remove.
1792 (do_module_cleanup): Update.
1793 * compile/compile-object-load.h (struct munmap_list): Add move
1794 assignment operator.
1795 <source_file>: Now a std::string.
1796 <munmap_list>: Rename. No longer a pointer.
1797 * compile/compile-object-load.c (struct setup_sections_data): Add
1799 <setup_one_section>: Declare.
1800 <munmap_list>: Move earlier.
1801 <m_bfd>: New member.
1802 <m_last_size, m_last_section_first, m_last_prot,
1803 m_last_max_alignment>: Rename, add initializers where needed.
1804 (setup_sections_data::setup_one_section): Rename from
1805 setup_sections. Update.
1806 (compile_object_load): Update. Don't use bfd_map_over_sections.
1808 2020-09-23 Tom Tromey <tom@tromey.com>
1810 * compile/compile-object-run.c (struct do_module_cleanup): Add
1811 parameters to constructor. Update destructor.
1812 <source_file, scope, scope_data, out_value_type, out_value_addr,
1813 munmap_list_head, objfile_name_string>: Remove.
1814 <module>: New member.
1815 (do_module_cleanup): Update.
1816 (compile_object_run): Update.
1818 2020-09-23 Tom Tromey <tom@tromey.com>
1820 * compile/compile.c (eval_compile_command): Update.
1821 * compile/compile-object-run.h (compile_object_run): Take a
1823 * compile/compile-object-run.c (compile_object_run): Take a
1825 * compile/compile-object-load.h (struct compile_module): Add
1826 constructor, destructor.
1827 (compile_module_up): New typedef.
1828 (compile_object_load): Return compile_object_up.
1829 * compile/compile-object-load.c (compile_object_load): Return
1832 2020-09-23 Tom Tromey <tom@tromey.com>
1834 * compile/compile-object-run.c (struct do_module_cleanup): Add
1835 constructor, destructor.
1836 <objfile_name_string>: Don't use struct hack.
1837 (do_module_cleanup): Use delete.
1838 (compile_object_run): Use new.
1840 2020-09-23 Tom Tromey <tom@tromey.com>
1842 * compile/compile-cplus-types.c
1843 (compile_cplus_convert_struct_or_union): Use std::vector.
1844 (compile_cplus_convert_func): Likewise.
1845 * compile/compile-c-types.c (convert_func): Use std::vector.
1847 2020-09-21 Tom Tromey <tromey@adacore.com>
1849 * sparc-tdep.c (sparc32_skip_prologue): Use
1850 skip_prologue_using_sal.
1852 2020-09-19 Tom Tromey <tom@tromey.com>
1854 * symfile.c (add_section_size_callback): Remove.
1855 (load_one_section): Rename from load_section_callback. Change
1857 (generic_load): Use foreach.
1859 2020-09-19 Tom Tromey <tom@tromey.com>
1861 * exec.c (add_to_section_table): Remove.
1862 (build_section_table): Use foreach.
1864 2020-09-19 Tom Tromey <tom@tromey.com>
1866 * elfread.c (elf_locate_sections): Change parameters.
1867 (elf_symfile_read): Use foreach.
1869 2020-09-19 Tom Tromey <tom@tromey.com>
1871 * cli/cli-dump.c (struct callback_data): Remove.
1872 (restore_one_section): Rename from restore_section_callback.
1874 (restore_binary_file): Change parameters.
1875 (restore_command): Use foreach.
1877 2020-09-19 Tom Tromey <tom@tromey.com>
1879 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1880 (gcore_copy_callback): Likewise.
1881 (gcore_memory_sections): Use foreach.
1883 2020-09-19 Tom Tromey <tom@tromey.com>
1885 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1886 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1888 (generic_elf_osabi_sniffer): Use foreach.
1889 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1890 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1892 2020-09-19 Tom Tromey <tom@tromey.com>
1894 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1895 (dwarf2_get_dwz_file): Use foreach.
1896 (dwarf2_locate_dwo_sections): Change parameters.
1897 (open_and_init_dwo_file): Use foreach.
1898 (dwarf2_locate_common_dwp_sections): Change parameters.
1899 (open_and_init_dwp_file): Use foreach.
1901 2020-09-19 Tom Tromey <tom@tromey.com>
1903 * symfile.h: (find_lowest_section): Don't declare.
1904 * symfile.c (find_lowest_section): Now static. Change
1906 (struct place_section_arg): Remove.
1907 (place_section): Change parameters.
1908 (addr_info_make_relative): Use foreach.
1909 (symfile_dummy_outputs): Remove.
1910 (default_symfile_relocate): Use foreach.
1912 2020-09-19 Tom Tromey <tom@tromey.com>
1914 * objfiles.c (add_to_objfile_sections): Rename from
1915 add_to_objfile_sections_full.
1916 (add_to_objfile_sections): Remove.
1917 (build_objfile_section_table): Use foreach.
1919 2020-09-19 Tom Tromey <tom@tromey.com>
1921 * stap-probe.c (get_stap_base_address_1): Remove.
1922 (get_stap_base_address): Use foreach.
1924 2020-09-19 Tom Tromey <tom@tromey.com>
1926 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1928 (gdb_bfd_close_or_warn): Use foreach.
1930 2020-09-19 Tom Tromey <tom@tromey.com>
1932 * corelow.c (add_to_thread_list): Change parameters.
1933 (core_target_open): Use foreach.
1935 2020-09-19 Tom Tromey <tom@tromey.com>
1937 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1940 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1942 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1945 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1947 * eval.c: Remove 'f-lang.h' include.
1948 (value_f90_subarray): Moved to f-lang.c.
1949 (eval_call): Renamed to...
1950 (evaluate_subexp_do_call): ...this, is no longer static, header
1951 comment moved into header file.
1952 (evaluate_funcall): Update call to eval_call.
1953 (skip_undetermined_arglist): Moved to f-lang.c.
1954 (fortran_value_subarray): Likewise.
1955 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1956 moved to evaluate_subexp_f.
1957 (calc_f77_array_dims): Moved to f-lang.c
1958 * expprint.c (print_subexp_funcall): New function.
1959 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1960 moved to print_subexp_f, OP_FUNCALL uses new function.
1961 (dump_subexp_body_funcall): New function.
1962 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1963 moved to dump_subexp_f, OP_FUNCALL uses new function.
1964 * expression.h (evaluate_subexp_do_call): Declare.
1965 * f-lang.c (value_f90_subarray): Moved from eval.c.
1966 (skip_undetermined_arglist): Likewise.
1967 (calc_f77_array_dims): Likewise.
1968 (fortran_value_subarray): Likewise.
1969 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1970 (operator_length_f): Likewise.
1971 (print_subexp_f): Likewise.
1972 (dump_subexp_body_f): Likewise.
1973 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1974 declaration of this operation to here.
1975 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1976 support moved to operator_length_f.
1977 * parser-defs.h (dump_subexp_body_funcall): Declare.
1978 (print_subexp_funcall): Declare.
1979 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1980 fortran-operator.def.
1982 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1984 * eval.c (fortran_value_subarray): New function, content is taken
1986 (evaluate_subexp_standard): ...here, in two places. Now arrays
1987 and strings both call the new function.
1988 (calc_f77_array_dims): Add header comment, handle strings.
1990 2020-09-18 Victor Collod <vcollod@nvidia.com>
1993 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1994 (i386_analyze_prologue): Call i386_skip_endbr.
1996 2020-09-18 Tom Tromey <tromey@adacore.com>
1998 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1999 (windows_nat_target::wait): Update.
2000 * target/wait.h (enum target_wait_flag): New. Use
2001 DEF_ENUM_FLAGS_TYPE.
2002 * target/target.h (target_wait): Change type of options.
2003 * target.h (target_options_to_string, default_target_wait):
2005 (struct target_ops) <wait>: Change type of options.
2006 * target.c (target_wait, default_target_wait, do_option): Change
2008 (target_options_to_string): Likewise.
2009 * target-delegates.c: Rebuild.
2010 * target-debug.h (target_debug_print_target_wait_flags): Rename
2011 from target_debug_print_options.
2012 * sol-thread.c (class sol_thread_target) <wait>: Update.
2013 (sol_thread_target::wait): Update.
2014 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
2015 (rs6000_nat_target::wait): Update.
2016 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
2018 (remote_target::wait_ns, remote_target::wait_as): Change type of
2020 (remote_target::wait): Update.
2021 * remote-sim.c (struct gdbsim_target) <wait>: Update.
2022 (gdbsim_target::wait): Update.
2023 * record-full.c (class record_full_base_target) <wait>: Update.
2024 (record_full_wait_1): Change type of "options".
2025 (record_full_base_target::wait): Update.
2026 * record-btrace.c (class record_btrace_target) <wait>: Update.
2027 (record_btrace_target::wait): Update.
2028 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
2030 (ravenscar_thread_target::wait): Update.
2031 * procfs.c (class procfs_target) <wait>: Update.
2032 (procfs_target::wait): Update.
2033 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
2034 * obsd-nat.c (obsd_nat_target::wait): Update.
2035 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
2036 (nto_procfs_target::wait): Update.
2037 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
2038 * nbsd-nat.c (nbsd_wait): Change type of "options".
2039 (nbsd_nat_target::wait): Update.
2040 * linux-thread-db.c (class thread_db_target) <wait>: Update.
2041 (thread_db_target::wait): Update.
2042 * linux-nat.h (class linux_nat_target) <wait>: Update.
2043 * linux-nat.c (linux_nat_target::wait): Update.
2044 (linux_nat_wait_1): Update.
2045 * infrun.c (do_target_wait_1, do_target_wait): Change type of
2047 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2048 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2049 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2050 (go32_nat_target::wait): Update.
2051 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2052 * gnu-nat.c (gnu_nat_target::wait): Update.
2053 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2054 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2055 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2056 * darwin-nat.c (darwin_nat_target::wait): Update.
2057 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2058 (bsd_uthread_target::wait): Update.
2059 * aix-thread.c (class aix_thread_target) <wait>: Update.
2060 (aix_thread_target::wait): Update.
2062 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * compile/compile-object-run.c (create_copied_type_recursive): New
2066 (compile_object_run): Use new function.
2068 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2070 * NEWS: Mention x86_64 Cygwin core file support.
2072 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2074 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2075 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2077 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2079 * windows-tdep.h: Add prototypes.
2080 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2081 (i386_windows_core_pid_to_str): Move and rename ...
2082 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2083 (windows_core_pid_to_str): ... and here.
2084 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2086 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2087 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2088 (amd64_windows_init_abi_common): ... and register.
2090 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2092 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2093 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2095 2020-09-18 Pedro Alves <pedro@palves.net>
2098 * thread.c (thread_find_command): Switch inferior before calling
2101 2020-09-17 Tom Tromey <tromey@adacore.com>
2103 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2104 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2105 (tdesc_arch_data_up): New typedef.
2106 (tdesc_use_registers, tdesc_data_alloc): Update.
2107 (tdesc_data_cleanup): Don't declare.
2108 * target-descriptions.c (tdesc_data_alloc): Return a
2110 (tdesc_arch_data_deleter::operator()): Rename from
2111 tdesc_data_cleanup. Change argument type.
2112 (tdesc_use_registers): Change early_data to an rvalue reference.
2113 (tdesc_use_registers): Don't use delete.
2114 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2115 * s390-tdep.c (s390_gdbarch_init): Update.
2116 * rx-tdep.c (rx_gdbarch_init): Update.
2117 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2118 * riscv-tdep.c (riscv_gdbarch_init): Update.
2119 * or1k-tdep.c (or1k_gdbarch_init): Update.
2120 * nios2-tdep.c (nios2_gdbarch_init): Update.
2121 * nds32-tdep.c (nds32_gdbarch_init): Update.
2122 * mips-tdep.c (mips_gdbarch_init): Update.
2123 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2124 * m68k-tdep.c (m68k_gdbarch_init): Update.
2125 * i386-tdep.c (i386_gdbarch_init): Update.
2126 * arm-tdep.c (arm_gdbarch_init): Update.
2127 * arc-tdep.c (arc_tdesc_init): Update.
2128 (arc_gdbarch_init): Update.
2129 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2131 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2133 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2134 for WOW64 processes.
2136 2020-09-17 Tom Tromey <tom@tromey.com>
2138 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2140 2020-09-17 Tom Tromey <tom@tromey.com>
2142 * value.c (preserve_values): Update.
2143 * python/py-type.c (save_objfile_types): Update.
2144 * guile/scm-type.c (save_objfile_types): Update.
2145 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2146 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2147 * compile/compile-object-run.c (compile_object_run): Update.
2149 2020-09-17 Tom Tromey <tom@tromey.com>
2151 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2153 <m_table>: Now htab_up.
2154 * typeprint.c (typedef_hash_table::recursively_update)
2155 (typedef_hash_table::add_template_parameters)
2156 (typedef_hash_table::typedef_hash_table): Update.
2157 (typedef_hash_table::~typedef_hash_table): Remove.
2158 (typedef_hash_table::typedef_hash_table)
2159 (typedef_hash_table::find_global_typedef)
2160 (typedef_hash_table::find_typedef): Update.
2162 2020-09-17 Tom Tromey <tom@tromey.com>
2164 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2166 2020-09-17 Tom Tromey <tom@tromey.com>
2168 * linespec.c (class decode_compound_collector)
2169 <~decode_compound_collector>: Remove.
2170 <m_unique_syms>: Now htab_up.
2171 (decode_compound_collector::operator ()): Update.
2172 (class symtab_collector) <~symtab_collector>: Remove.
2173 <m_symtab_table>: Now htab_up.
2174 (symtab_collector::operator ()): Update.
2176 2020-09-17 Tom Tromey <tom@tromey.com>
2178 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2179 (filename_seen_cache::clear): Update.
2180 (~filename_seen_cache): Remove.
2181 (filename_seen_cache::seen): Update.
2182 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2184 <~filename_seen_cache>: Remove.
2187 2020-09-17 Tom Tromey <tom@tromey.com>
2189 * completer.c (completion_tracker::discard_completions)
2190 (completion_tracker::~completion_tracker)
2191 (completion_tracker::maybe_add_completion)
2192 (completion_tracker::remove_completion)
2193 (completion_tracker::recompute_lowest_common_denominator)
2194 (completion_tracker::build_completion_result): Update.
2195 * completer.h (class completion_tracker) <have_completions>:
2197 <m_entries_hash>: Now htab_up.
2199 2020-09-17 Tom Tromey <tom@tromey.com>
2201 * breakpoint.c (ambiguous_names_p): Use htab_up.
2203 2020-09-17 Tom Tromey <tom@tromey.com>
2205 * auto-load.c (struct auto_load_pspace_info)
2206 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2207 <loaded_script_files, loaded_script_texts>: Change type to
2209 (~auto_load_pspace_info) Remove.
2210 (init_loaded_scripts_info, maybe_add_script_file)
2211 (maybe_add_script_text, auto_load_info_scripts): Update.
2213 2020-09-17 Tom Tromey <tromey@adacore.com>
2215 * c-exp.y (name_obstack): Now static.
2217 2020-09-17 Chungyi Chi <demonic@csie.io>
2219 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2221 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2223 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2224 (add_solib_catchpoint): Likewise.
2225 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2227 (add_solib_catchpoint): Change int parameter/variable to bool.
2228 (catch_load_or_unload): Likewise.
2229 (init_catchpoint): Likewise.
2230 (create_fork_vfork_event_catchpoint): Likewise.
2231 (catch_fork_command_1): Likewise.
2232 (catch_exec_command_1): Likewise.
2234 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2236 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2237 Change instance_flags to m_instance_flags.
2239 2020-09-16 Tom Tromey <tromey@adacore.com>
2242 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2244 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2246 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2248 (fbsd_nat_target::insert_exec_catchpoint)
2249 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2250 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2251 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2253 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2255 * configure.ac: Remove check for kinfo_getvmmap().
2256 * configure, config.in: Regenerate.
2257 * fbsd-nat.c (fbsd_read_mapping): Remove
2258 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2259 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2260 kinfo_get_vmmap() are always present.
2262 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2264 * fbsd-nat.c: Always include support for
2265 TARGET_OBJECT_SIGNAL_INFO.
2267 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2269 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2270 sysctl and remove procfs fallback.
2272 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2274 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2275 * fbsd-nat.h: Likewise.
2277 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2279 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2282 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2284 * ada-lang.c (ada_language_data): Delete.
2285 (ada_language): Remove references to ada_language_data.
2286 * c-lang.c (c_language_data): Delete.
2287 (c_language): Remove references to c_language_data.
2288 (cplus_language_data): Delete.
2289 (cplus_language): Remove references to cplus_language_data.
2290 (asm_language_data): Delete.
2291 (asm_language): Remove references to asm_language_data.
2292 (minimal_language_data): Delete.
2293 (minimal_language): Remove references to minimal_language_data.
2294 * d-lang.c (d_language_data): Delete.
2295 (d_language): Remove references to d_language_data.
2296 * f-lang.c (f_language_data): Delete.
2297 (f_language): Remove references to f_language_data.
2298 * go-lang.c (go_language_data): Delete.
2299 (go_language): Remove references to go_language_data.
2300 * language.c (unknown_language_data): Delete.
2301 (unknown_language): Remove references to unknown_language_data.
2302 (auto_language_data): Delete.
2303 (auto_language): Remove references to auto_language_data.
2304 * language.h (language_data): Delete struct.
2305 (language_defn): No longer inherit from language_data.
2306 * m2-lang.c (m2_language_data): Delete.
2307 (m2_language): Remove references to m2_language_data.
2308 * objc-lang.c (objc_language_data): Delete.
2309 (objc_language): Remove references to objc_language_data.
2310 * opencl-lang.c (opencl_language_data): Delete.
2311 (opencl_language): Remove references to opencl_language_data.
2312 * p-lang.c (pascal_language_data): Delete.
2313 (pascal_language): Remove references to pascal_language_data.
2314 * rust-lang.c (rust_language_data): Delete.
2315 (rust_language): Remove references to rust_language_data.
2317 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2319 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2321 (ada_language::opcode_print_table): New member function.
2322 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2323 (c_language::opcode_print_table): New member function.
2324 (cplus_language_data): Remove la_op_print_tab initializer.
2325 (cplus_language::opcode_print_table): New member function.
2326 (asm_language_data): Remove la_op_print_tab initializer.
2327 (asm_language::opcode_print_table): New member function.
2328 (minimal_language_data): Remove la_op_print_tab initializer.
2329 (minimal_language::opcode_print_table): New member function.
2330 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2331 (d_language::opcode_print_table): New member function.
2332 * expprint.c (print_subexp_standard): Update call to
2334 (op_string): Likewise.
2335 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2336 (f_language::opcode_print_table): New member function.
2337 * go-lang.c (go_language_data): Remove la_op_print_tab
2339 (go_language::opcode_print_table): New member function.
2340 * language.c (unknown_language_data): Remove la_op_print_tab
2342 (unknown_language::opcode_print_table): New member function.
2343 (auto_language_data): Remove la_op_print_tab initializer.
2344 (auto_language::opcode_print_table): New member function.
2345 * language.h (language_data): Remove la_op_print_tab field.
2346 (language_defn::opcode_print_table): Declare new member function.
2347 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2349 (m2_language::opcode_print_table): New member function.
2350 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2352 (objc_language::opcode_print_table): New member function.
2353 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2355 (opencl_language::opcode_print_table): New member function.
2356 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2358 (pascal_language::opcode_print_table): New member function.
2359 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2361 (rust_language::opcode_print_table): New member function.
2363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2365 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2366 (ada_language::expression_ops): New member function.
2367 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2368 (c_language::expression_ops): New member function.
2369 (cplus_language_data): Remove la_exp_desc initializer.
2370 (cplus_language::expression_ops): New member function.
2371 (asm_language_data): Remove la_exp_desc initializer.
2372 (asm_language::expression_ops): New member function.
2373 (minimal_language_data): Remove la_exp_desc initializer.
2374 (minimal_language::expression_ops): New member function.
2375 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2376 (d_language::expression_ops): New member function.
2377 * eval.c (evaluate_subexp): Update call to expression_ops.
2378 * expprint.c (print_subexp): Likewise.
2379 (op_name): Likewise.
2380 (dump_subexp_body): Likewise.
2381 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2382 (f_language::expression_ops): New member function.
2383 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2384 (go_language::expression_ops): New member function.
2385 * language.c (language_defn::expression_ops): New function.
2386 (unknown_language_data): Remove la_exp_desc initializer.
2387 (auto_language_data): Likewise.
2388 * language.h (language_data): Remove la_exp_desc field.
2389 (language_defn::expression_ops): Declare new member function.
2390 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2391 (m2_language::expression_ops): New member function.
2392 * objc-lang.c (objc_language_data): Remove la_exp_desc
2394 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2396 (opencl_language::expression_ops): New member function.
2397 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2398 * parse.c (operator_length): Update call to expression_ops.
2399 (exp_iterate): Likewise.
2400 * rust-lang.c (rust_language_data): Remove la_exp_desc
2402 (ruse_language::expression_ops): New member function.
2404 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2406 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2408 (ada_language::varobj_ops): New member function.
2409 * c-lang.c (c_language_data): Remove la_varobj_ops
2411 (cplus_language_data): Likewise.
2412 (cplus_language::varobj_ops): New member function.
2413 (asm_language_data): Remove la_varobj_ops initializer.
2414 (minimal_language_data): Likewise.
2415 * d-lang.c (d_language_data): Likewise.
2416 * f-lang.c (f_language_data): Likewise.
2417 * go-lang.c (go_language_data): Likewise.
2418 * language.c (language_defn::varobj_ops): New function.
2419 (unknown_language_data): Remove la_varobj_ops
2421 (auto_language_data): Likewise.
2422 * language.h (language_data): Remove la_varobj_ops field.
2423 (language_defn::varobj_ops): Declare new member function.
2424 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2425 * objc-lang.c (objc_language_data): Likewise.
2426 * opencl-lang.c (opencl_language_data): Likewise.
2427 * p-lang.c (pascal_language_data): Likewise.
2428 * rust-lang.c (rust_language_data): Likewise.
2429 * varobj.c (varobj_create): Update call to varobj_ops.
2430 * varobj.h (default_varobj_ops): Delete define.
2432 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2434 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2436 * c-lang.c (c_language_data): Likewise.
2437 (c_language::macro_expansion): New member function.
2438 (cplus_language_data): Likewise.
2439 (cplus_language::macro_expansion): New member function.
2440 (asm_language_data): Likewise.
2441 (asm_language::macro_expansion): New member function.
2442 (minimal_language_data): Likewise.
2443 (minimal_language::macro_expansion): New member function.
2444 * d-lang.c (d_language_data): Remove la_macro_expansion
2446 * f-lang.c (f_language_data): Likewise.
2447 * go-lang.c (go_language_data): Likewise.
2448 * language.c (unknown_language_data): Likewise.
2449 (auto_language_data): Likewise.
2450 * language.h (language_data): Remove la_macro_expansion field.
2451 (language_defn::macro_expansion): New member function.
2452 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2454 * objc-lang.c (objc_language_data): Likewise.
2455 (objc_language::macro_expansion): New member function.
2456 * opencl-lang.c (opencl_language_data): Likewise.
2457 (opencl_language::macro_expansion): New member function.
2458 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2460 * rust-lang.c (rust_language_data): Likewise.
2461 * symtab.c (default_collect_symbol_completion_matches_break_on):
2462 Update call to macro_expansion.
2464 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2466 * ada-lang.c (ada_language_data): Remove la_array_ordering
2468 * c-lang.c (c_language_data): Likewise.
2469 (cplus_language_data): Likewise.
2470 (asm_language_data): Likewise.
2471 (minimal_language_data): Likewise.
2472 * d-lang.c (d_language_data): Likewise.
2473 * dwarf2/read.c (read_array_order): Update for call to
2475 * f-lang.c (f_language_data): Remove la_array_ordering
2477 (f_language::array_ordering): New member function.
2478 * go-lang.c (go_language_data): Remove la_array_ordering
2480 * language.c (unknown_language_data): Likewise.
2481 (auto_language_data): Likewise.
2482 * language.h (language_data): Delete la_array_ordering field.
2483 (language_defn::array_ordering): New member function.
2484 * m2-lang.c (m2_language_data): Remove la_array_ordering
2486 * objc-lang.c (objc_language_data): Likewise.
2487 * opencl-lang.c (opencl_language_data): Likewise.
2488 * p-lang.c (pascal_language_data): Likewise.
2489 * rust-lang.c (rust_language_data): Likewise.
2491 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2493 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2495 * c-lang.c (c_language_data): Likewise.
2496 (cplus_language_data): Likewise.
2497 (asm_language_data): Likewise.
2498 (minimal_language_data): Likewise.
2499 * d-lang.c (d_language_data): Likewise.
2500 * f-lang.c (f_language_data): Likewise.
2501 (f_language::case_sensitivity): New member function.
2502 * go-lang.c (go_language_data): Remove la_case_sensitivity
2504 * language.c (enum case_mode): Moved here from language.h.
2505 (case_mode): Make static.
2506 (show_case_command): Update for case_sensitivity being a method.
2507 (set_case_command): Likewise.
2508 (set_range_case): Likewise.
2509 (unknown_language_data): Remove la_case_sensitivity initializer.
2510 (auto_language_data): Likewise.
2511 * language.h (case_mode): Delete, move enum declaration to
2513 (language_data): Delete la_case_sensitivity field.
2514 (language_defn::case_sensitivity): New member function.
2515 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2517 * objc-lang.c (objc_language_data): Likewise.
2518 * opencl-lang.c (opencl_language_data): Likewise.
2519 * p-lang.c (pascal_language_data): Likewise.
2520 * rust-lang.c (rust_language_data): Likewise.
2522 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2524 * ada-lang.c (ada_language_data): Remove la_range_check
2526 * c-lang.c (c_language_data): Likewise.
2527 (cplus_language_data): Likewise.
2528 (asm_language_data): Likewise.
2529 (minimal_language_data): Likewise.
2530 * d-lang.c (d_language_data): Likewise.
2531 * f-lang.c (f_language_data): Likewise.
2532 (f_language::range_checking_on_by_default): New member function.
2533 * go-lang.c (go_language_data): Remove la_range_check initializer.
2534 * language.c (enum range_mode): Moved here from language.h.
2535 (range_mode): Made static.
2536 (show_range_command): Update to use
2537 range_checking_on_by_default.
2538 (set_range_command): Likewise.
2539 (set_range_case): Likewise.
2540 (unknown_language_data): Remove la_range_check initializer.
2541 (auto_language_data): Likewise.
2542 * language.h (range_mode): Delete. Enum definition moved to
2544 (language_data): Remove la_range_check field.
2545 (language_defn::range_checking_on_by_default): New member
2547 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2548 (m2_language::range_checking_on_by_default): New member function.
2549 * objc-lang.c (objc_language_data): Remove la_range_check
2551 * opencl-lang.c (opencl_language_data): Likewise.
2552 * p-lang.c (pascal_language_data): Likewise.
2553 (pascal_language::range_checking_on_by_default): New member
2555 * rust-lang.c (rust_language_data): Remove la_range_check
2557 (rust_language::range_checking_on_by_default): New member
2560 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2562 * dwarf2/read.c (dwarf2_physname): Remove special case for
2564 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2567 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2569 * ada-lang.c (ada_language_data): Remove
2570 la_store_sym_names_in_linkage_form_p initializer.
2571 (ada_language::store_sym_names_in_linkage_form_p): New member
2573 * c-lang.c (c_language_data): Remove
2574 la_store_sym_names_in_linkage_form_p initializer.
2575 (c_language::store_sym_names_in_linkage_form_p): New member
2577 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2579 (asm_language_data): Likewise.
2580 (asm_language::store_sym_names_in_linkage_form_p): New member
2582 (minimal_language_data): Remove
2583 la_store_sym_names_in_linkage_form_p initializer.
2584 (minimal_language::store_sym_names_in_linkage_form_p): New member
2586 * d-lang.c (d_language_data): Remove
2587 la_store_sym_names_in_linkage_form_p initializer.
2588 * dwarf2/read.c (dwarf2_physname): Update call to
2589 store_sym_names_in_linkage_form_p.
2590 * f-lang.c (f_language_data): Remove
2591 la_store_sym_names_in_linkage_form_p initializer.
2592 * go-lang.c (go_language_data): Remove
2593 la_store_sym_names_in_linkage_form_p initializer.
2594 * language.c (unknown_language_data): Remove
2595 la_store_sym_names_in_linkage_form_p initializer.
2596 (unknown_language::store_sym_names_in_linkage_form_p): New member
2598 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2600 (auto_language::store_sym_names_in_linkage_form_p): New member
2602 * language.h (language_data): Remove
2603 la_store_sym_names_in_linkage_form_p member variable.
2604 (language_defn::store_sym_names_in_linkage_form_p): New member
2606 * m2-lang.c (m2_language_data): Remove
2607 la_store_sym_names_in_linkage_form_p initializer.
2608 * objc-lang.c (objc_language_data): Likewise.
2609 * opencl-lang.c (opencl_language_data): Likewise.
2610 * p-lang.c (pascal_language_data): Likewise.
2611 * rust-lang.c (rust_language_data): Likewise.
2613 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2615 * ada-lang.c (ada_language_data): Remove string_lower_bound
2617 * c-lang.c (c_language_data): Likewise.
2618 (cplus_language_data): Likewise.
2619 (asm_language_data): Likewise.
2620 (minimal_language_data): Likewise.
2621 * d-lang.c (d_language_data): Likewise.
2622 * f-lang.c (f_language_data): Likewise.
2623 * go-lang.c (go_language_data): Likewise.
2624 * language.c (unknown_language_data): Likewise.
2625 (auto_language_data): Likewise.
2626 * language.h (language_data): Remove string_lower_bound field.
2627 (language_defn::string_lower_bound): New member function.
2628 * m2-lang.c (m2_language_data): Remove string_lower_bound
2630 (m2_language::string_lower_bound): New member function.
2631 * objc-lang.c (objc_language_data): Remove string_lower_bound
2633 * opencl-lang.c (opencl_language_data): Likewise.
2634 * p-lang.c (pascal_language_data): Likewise.
2635 * rust-lang.c (rust_language_data): Likewise.
2636 * valops.c (value_cstring): Update call to string_lower_bound.
2637 (value_string): Likewise.
2638 * value.c (allocate_repeated_value): Likewise.
2640 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2642 * valops.c (value_repeat): Fix incorrect argument name in comment.
2644 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2646 * ada-lang.c (ada_language_data): Remove c_style_arrays
2648 (ada_language::c_style_arrays_p): New member fuction.
2649 * c-lang.c (c_language_data): Remove c_style_arrays
2651 (cplus_language_data): Likewise.
2652 (asm_language_data): Likewise.
2653 (minimal_language_data): Likewise.
2654 * d-lang.c (d_language_data): Likewise.
2655 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2656 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2657 (f_language::c_style_arrays_p): New member function.
2658 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2659 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2660 * language.c (unknown_language_data): Remove c_style_arrays
2662 (auto_language_data): Likewise.
2663 * language.h (language_data): Remove c_style_arrays field.
2664 (language_defn::c_style_arrays_p): New member function.
2665 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2666 (m2_language::c_style_arrays_p): New member function.
2667 * objc-lang.c (objc_language_data): Remove c_style_arrays
2669 * opencl-lang.c (opencl_language_data): Likewise.
2670 * p-lang.c (pascal_language_data): Likewise.
2671 * rust-lang.c (rust_language_data): Likewise.
2672 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2673 and update local variable to a bool.
2674 * valops.c (value_cast): Update call to c_style_arrays_p.
2675 (value_array): Likewise.
2676 * value.c (coerce_array): Likewise.
2678 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2680 * ada-lang.c (ada_language_data): Remove la_language initializer.
2681 * c-lang.c (c_language_data): Likewise.
2682 (cplus_language_data): Likewise.
2683 (asm_language_data): Likewise.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_language_data): Likewise.
2687 * go-lang.c (go_language_data): Likewise.
2688 * language.c (unknown_language_data): Likewise.
2689 (auto_language_data): Likewise.
2690 * language.h (language_data): Remove la_language field.
2691 (language_defn::language_defn): Initialise la_language field.
2692 (language_defn::la_language): New member variable.
2693 * m2-lang.c (m2_language_data): Remove la_language field.
2694 * objc-lang.c (objc_language_data): Likewise.
2695 * opencl-lang.c (opencl_language_data): Likewise.
2696 * p-lang.c (pascal_language_data): Likewise.
2697 * rust-lang.c (rust_language_data): Likewise.
2699 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2701 * ada-lang.c (ada_extensions): Delete, moved into
2702 ada_language::filename_extensions.
2703 (ada_language_data): Remove la_filename_extensions initializer.
2704 (ada_language::filename_extensions): New member function.
2705 * c-lang.c (c_extensions): Delete, moved into
2706 c_language::filename_extensions.
2707 (c_language_data): Remove la_filename_extensions initializer.
2708 (c_language::filename_extensions): New member function.
2709 (cplus_extensions): Delete, moved into
2710 cplus_language::filename_extensions.
2711 (cplus_language_data): Remove la_filename_extensions initializer.
2712 (cplus_language::filename_extensions): New member function.
2713 (asm_extensions): Delete, moved into
2714 asm_language::filename_extensions.
2715 (asm_language_data): Remove la_filename_extensions initializer.
2716 (asm_language::filename_extensions): New member function.
2717 (minimal_language_data): Remove la_filename_extensions
2719 * d-lang.c (d_extensions): Delete, moved into
2720 d_language::filename_extensions.
2721 (d_language_data): Remove la_filename_extensions initializer.
2722 (d_language::filename_extensions): New member function.
2723 * f-lang.c (f_extensions): Delete, moved into
2724 f_language::filename_extensions.
2725 (f_language_data): Remove la_filename_extensions initializer.
2726 (f_language::filename_extensions): New member function.
2727 * go-lang.c (go_language_data): Remove la_filename_extensions
2729 * language.c (add_set_language_command): Update now that
2730 filename_extensions returns a vector.
2731 (unknown_language_data): Remove la_filename_extensions
2733 (auto_language_data): Likewise.
2734 * language.h (language_data): Remove la_filename_extensions field.
2735 (language_defn::filename_extensions): New member function.
2736 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2738 * objc-lang.c (objc_extensions): Delete, moved into
2739 objc_language::filename_extensions.
2740 (objc_language_data): Remove la_filename_extensions initializer.
2741 (objc_language::filename_extensions): New member function.
2742 * opencl-lang.c (opencl_language_data): Remove
2743 la_filename_extensions initializer.
2744 * p-lang.c (pascal_extensions): Delete, moved into
2745 pascal_language::filename_extensions.
2746 (pascal_language_data): Remove la_filename_extensions initializer.
2747 (pascal_language::filename_extensions): New member function.
2748 * rust-lang.c (rust_extensions): Delete, moved into
2749 rust_language::filename_extensions.
2750 (rust_language_data): Remove la_filename_extensions initializer.
2751 (rust_language::filename_extensions): New member function.
2752 * symfile.c (add_filename_language): Add new assert.
2754 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2756 * ada-lang.c (ada_language_data): Remove la_name and
2757 la_natural_name initializers.
2758 (ada_language::name): New member function.
2759 (ada_language::natural_name): New member function.
2760 * c-lang.c (c_language_data): Remove la_name and
2761 la_natural_name initializers.
2762 (c_language::name): New member function.
2763 (c_language::natural_name): New member function.
2764 (cplus_language_data): Remove la_name and
2765 la_natural_name initializers.
2766 (cplus_language::name): New member function.
2767 (cplus_language::natural_name): New member function.
2768 (asm_language_data): Remove la_name and
2769 la_natural_name initializers.
2770 (asm_language::name): New member function.
2771 (asm_language::natural_name): New member function.
2772 (minimal_language_data): Remove la_name and
2773 la_natural_name initializers.
2774 (minimal_language::name): New member function.
2775 (minimal_language::natural_name): New member function.
2776 * compile/compile.c (compile_to_object): Update call to
2777 lanugage_defn::name.
2778 * d-lang.c (d_language_data): Remove la_name and
2779 la_natural_name initializers.
2780 (d_language::name): New member function.
2781 (d_language::natural_name): New member function.
2782 * expprint.c (print_subexp_standard): Update call to
2783 language_defn::name.
2784 (dump_raw_expression): Likewise
2785 (dump_prefix_expression): Likewise.
2786 * f-lang.c (f_language_data): Remove la_name and
2787 la_natural_name initializers.
2788 (f_language::name): New member function.
2789 (f_language::natural_name): New member function.
2790 * go-lang.c (go_language_data): Remove la_name and
2791 la_natural_name initializers.
2792 (go_language::name): New member function.
2793 (go_language::natural_name): New member function.
2794 * language.c (show_language_command): Update call to
2795 language_defn::name.
2796 (set_language_command): Likewise.
2797 (language_enum): Likewise.
2798 (language_str): Likewise.
2799 (add_set_language_command): Likewise, use
2800 language_defn::natural_name in the doc string.
2801 (unknown_language_data): Remove la_name and
2802 la_natural_name initializers.
2803 (unknown_language::name): New member function.
2804 (unknown_language::natural_name): New member function.
2805 (auto_language_data): Remove la_name and
2806 la_natural_name initializers.
2807 (auto_language::name): New member function.
2808 (auto_language::natural_name): New member function.
2809 (language_lookup_primitive_type_as_symbol): Update call to
2810 language_defn::name.
2811 * language.h (language_data): Remove la_name and la_natural_name
2813 (language_defn::name): New member function.
2814 (language_defn::natural_name): New member function.
2815 * m2-lang.c (m2_language_data): Remove la_name and
2816 la_natural_name initializers.
2817 (m2_language::name): New member function.
2818 (m2_language::natural_name): New member function.
2819 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2820 language_defn::natural_name.
2821 * objc-lang.c (objc_language_data): Remove la_name and
2822 la_natural_name initializers.
2823 (objc_language::name): New member function.
2824 (objc_language::natural_name): New member function.
2825 * opencl-lang.c (opencl_language_data): Remove la_name and
2826 la_natural_name initializers.
2827 (opencl_language::name): New member function.
2828 (opencl_language::natural_name): New member function.
2829 * p-lang.c (pascal_language_data): Remove la_name and
2830 la_natural_name initializers.
2831 (pascal_language::name): New member function.
2832 (pascal_language::natural_name): New member function.
2833 * rust-lang.c (rust_language_data): Remove la_name and
2834 la_natural_name initializers.
2835 (rust_language::name): New member function.
2836 (rust_language::natural_name): New member function.
2837 * symtab.c (lookup_language_this): Update call to
2838 language_defn::name.
2840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2842 * ada-lang.c (ada_language_data): Remove la_name_of_this
2844 * ax-gdb.c (gen_expr): Update call to name_of_this.
2845 * c-exp.y (classify_name): Likewise.
2846 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2847 (cplus_language_data): Likewise.
2848 (cplus_language::name_of_this): New member function.
2849 (asm_language_data): Remove la_name_of_this initializer.
2850 (minimal_language_data): Likewise.
2851 * d-lang.c (d_language_data): Likewise.
2852 (d_language::name_of_this): New member function.
2853 * expprint.c (print_subexp_standard): Update call to name_of_this.
2854 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2855 * go-lang.c (go_language_data): Likewise.
2856 * language.c (unknown_language_data): Likewise.
2857 (unknown_language::name_of_this): New member function.
2858 (auto_language_data): Remove la_name_of_this initializer.
2859 (auto_language::name_of_this): New member function.
2860 * language.h (language_data): Delete la_name_of_this member
2862 (language_defn::name_of_this): New member function.
2863 * m2-lang.c (m2_language_data): Remove la_name_of_this
2865 * objc-lang.c (objc_language_data): Likewise.
2866 (objc_language::name_of_this): New member function.
2867 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2869 * p-lang.c (pascal_language_data): Likewise.
2870 (pascal_language::name_of_this): New member function.
2871 * rust-lang.c (rust_language_data): Remove la_name_of_this
2873 * symtab.c (lookup_language_this): Update call to name_of_this.
2874 (lookup_symbol_aux): Likewise.
2875 * valops.c (value_of_this): Likewise.
2877 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2879 * ada-lang.c (ada_language_data): Remove
2880 la_struct_too_deep_ellipsis initializer.
2881 (ada_language::struct_too_deep_ellipsis): New member function.
2882 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2884 (cplus_language_data): Likewise.
2885 (asm_language_data): Likewise.
2886 (minimal_language_data): Likewise.
2887 * cp-valprint.c (cp_print_value): Update call to
2888 struct_too_deep_ellipsis.
2889 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2891 * f-lang.c (f_language_data): Likewise.
2892 (f_language::struct_too_deep_ellipsis): New member function.
2893 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2895 * language.c (unknown_language_data): Likewise.
2896 (auto_language_data): Likewise.
2897 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2899 (language_defn::struct_too_deep_ellipsis): New member function.
2900 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2902 * objc-lang.c (objc_language_data): Likewise.
2903 * opencl-lang.c (opencl_language_data): Likewise.
2904 * p-lang.c (pascal_language_data): Likewise.
2905 * rust-lang.c (rust_language_data): Likewise.
2906 * valprint.c (val_print_check_max_depth): Update call to
2907 struct_too_deep_ellipsis.
2909 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2911 * MAINTAINERS (Write After Approval): Add myself.
2913 2020-09-15 Tom Tromey <tom@tromey.com>
2915 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2918 2020-09-15 Tom Tromey <tom@tromey.com>
2920 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2921 and TYPE_CODE_METHODPTR cases.
2922 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2923 (c_value_print_inner): Update.
2924 * valprint.c (generic_value_print_memberptr): New function, from
2925 c_value_print_memberptr.
2926 (generic_value_print): Use it. Call cplus_print_method_ptr.
2928 2020-09-15 Tom Tromey <tromey@adacore.com>
2930 * python/python-internal.h (PyInt_FromLong): Remove define.
2931 * python/py-value.c (convert_value_from_python): Use
2932 gdb_py_object_from_longest.
2933 * python/py-type.c (typy_get_code): Use
2934 gdb_py_object_from_longest.
2935 * python/py-symtab.c (salpy_get_line): Use
2936 gdb_py_object_from_longest.
2937 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2938 gdb_py_object_from_longest.
2939 * python/py-record.c (recpy_gap_reason_code): Use
2940 gdb_py_object_from_longest.
2941 * python/py-record-btrace.c (recpy_bt_insn_size)
2942 (recpy_bt_func_level, btpy_list_count): Use
2943 gdb_py_object_from_longest.
2944 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2945 gdb_py_object_from_longest. Fix error handling.
2946 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2947 gdb_py_object_from_longest.
2948 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2949 gdb_py_object_from_longest.
2950 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2951 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2952 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2954 2020-09-15 Tom Tromey <tromey@adacore.com>
2956 * python/python.c (gdbpy_parameter_value): Use
2957 gdb_py_object_from_ulongest.
2959 2020-09-15 Tom Tromey <tromey@adacore.com>
2961 * python/py-infevents.c (create_register_changed_event_object):
2962 Use gdb_py_object_from_longest.
2963 * python/py-exitedevent.c (create_exited_event_object): Use
2964 gdb_py_object_from_longest.
2966 2020-09-15 Tom Tromey <tromey@adacore.com>
2968 * python/python.c (gdbpy_parameter_value): Use
2969 gdb_py_object_from_longest.
2970 * python/py-type.c (convert_field, typy_range): Use
2971 gdb_py_object_from_longest.
2972 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2973 gdb_py_object_from_longest.
2974 * python/py-lazy-string.c (stpy_get_length): Use
2975 gdb_py_object_from_longest.
2976 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2977 gdb_py_object_from_longest.
2978 * python/py-infevents.c (create_memory_changed_event_object): Use
2979 gdb_py_object_from_longest.
2980 * python/py-inferior.c (infpy_get_num): Use
2981 gdb_py_object_from_longest.
2982 (infpy_get_pid): Likewise.
2984 2020-09-15 Tom Tromey <tromey@adacore.com>
2986 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2988 * python/py-value.c (valpy_long): Use
2989 gdb_py_object_from_ulongest.
2990 * python/py-symtab.c (salpy_get_pc): Use
2991 gdb_py_object_from_ulongest.
2992 (salpy_get_last): Likewise.
2993 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2994 gdb_py_object_from_ulongest.
2995 * python/py-lazy-string.c (stpy_get_address): Use
2996 gdb_py_object_from_ulongest.
2997 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2998 * python/py-arch.c (archpy_disassemble): Use
2999 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
3002 2020-09-15 Tom Tromey <tromey@adacore.com>
3004 * python/python-internal.h (gdb_py_long_from_longest): Remove
3006 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
3007 * python/py-type.c (convert_field, typy_get_sizeof): Use
3008 gdb_py_object_from_longest.
3009 * python/py-record-btrace.c (btpy_list_index): Use
3010 gdb_py_object_from_longest.
3012 2020-09-15 Tom Tromey <tromey@adacore.com>
3014 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
3015 * python/py-record.c (recpy_element_number): Use
3016 gdb_py_object_from_longest.
3017 (recpy_gap_number): Likewise.
3019 2020-09-15 Tom Tromey <tromey@adacore.com>
3021 * top.c (ui::ui): Update.
3022 (highest_ui_num): Remove.
3023 * top.h (struct ui) <num>: Remove.
3025 2020-09-15 Tom Tromey <tromey@adacore.com>
3027 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
3028 * ui-style.c (ansi_regex_text): Now array.
3029 * rust-exp.y (number_regex_text): Now array.
3030 * linespec.c (linespec_quote_characters): Now array.
3031 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
3034 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3036 * debuginfod-support.c (debuginfod_client_deleter): New.
3037 (debuginfod_client_up): New.
3038 (debuginfod_init): Return debuginfod_client_up.
3039 (debuginfod_source_query): Adjust.
3040 (debuginfod_debuginfo_query): Adjust.
3042 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3044 * debuginfod-support.c (debuginfod_source_query): Use
3045 make_unique_xstrdup.
3047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3049 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3050 with `type::instance_flags`.
3052 2020-09-14 Michael Mullin <masmullin@gmail.com>
3054 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3055 Remove baton parameter.
3057 2020-09-14 Pedro Alves <pedro@palves.net>
3059 * Makefile.in (SELFTESTS_SRCS): Add
3060 unittests/enum-flags-selftests.c.
3061 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3062 btrace_function_flags instead of enum btrace_function_flag.
3063 * compile/compile-c-types.c (convert_qualified): Use
3065 * compile/compile-cplus-symbols.c (convert_one_symbol)
3066 (convert_symbol_bmsym):
3067 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3068 (compile_cplus_convert_struct_or_union_methods)
3069 (compile_cplus_instance::convert_qualified_base):
3070 * go-exp.y (parse_string_or_char): Add cast to int.
3071 * unittests/enum-flags-selftests.c: New file.
3072 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3073 type to btrace_thread_flags from btrace_thread_flag.
3074 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3075 local's type to btrace_thread_flags from btrace_thread_flag. Add
3078 2020-09-14 Pedro Alves <pedro@palves.net>
3080 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3081 * gdbtypes.c (address_space_name_to_int): Rename to ...
3082 (address_space_name_to_type_instance_flags): ... this.
3083 (address_space_int_to_name): Rename to ...
3084 (address_space_type_instance_flags_to_name): ... this.
3085 * gdbtypes.h (address_space_name_to_int): Rename to ...
3086 (address_space_name_to_type_instance_flags): ... this.
3087 (address_space_int_to_name): Rename to ...
3088 (address_space_type_instance_flags_to_name): ... this.
3089 * type-stack.c (type_stack::insert): Adjust to rename.
3090 * type-stack.h (type_stack::insert): Likewise.
3092 2020-09-14 Pedro Alves <pedro@palves.net>
3093 Andrew Burgess <andrew.burgess@embecosm.com>
3095 * avr-tdep.c (avr_address_class_type_flags): Return
3096 type_instance_flags.
3097 (avr_address_class_type_flags_to_name): Take a
3098 type_instance_flags.
3099 (avr_address_class_name_to_type_flags): Return bool and take a
3100 type_instance_flags.
3101 * d-lang.c (build_d_types): Use type::set_instance_flags.
3102 * ft32-tdep.c (ft32_address_class_type_flags): Return
3103 type_instance_flags.
3104 (ft32_address_class_type_flags_to_name): Take a
3105 type_instance_flags.
3106 (ft32_address_class_name_to_type_flags): Return bool and take a
3107 type_instance_flags.
3108 (ft32_gdbarch_init): Use type::set_instance_flags.
3109 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3110 * gdbarch.h, gdbarch.c: Regenerate.
3111 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3112 (address_class_name_to_type_flags): Use type_instance_flags and
3114 * gdbtypes.c (address_space_name_to_int)
3115 (address_space_int_to_name, make_qualified_type): Use
3116 type_instance_flags.
3117 (make_qualified_type): Use type_instance_flags and
3118 type::set_instance_flags.
3119 (make_type_with_address_space, make_cv_type, make_vector_type)
3120 (check_typedef): Use type_instance_flags.
3121 (recursive_dump_type): Cast type_instance_flags to unsigned for
3123 (copy_type_recursive): Use type::set_instance_flags.
3124 (gdbtypes_post_init): Use type::set_instance_flags.
3125 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3126 <m_instance_flags>: ... this.
3127 <instance_flags, set_instance_flags>: New methods.
3128 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3129 (SET_TYPE_INSTANCE_FLAGS): New.
3130 (address_space_name_to_int, address_space_int_to_name)
3131 (make_type_with_address_space): Pass flags using
3132 type_instance_flags instead of int.
3133 * stabsread.c (cleanup_undefined_types_noname): Use
3134 type::set_instance_flags.
3135 * s390-tdep.c (s390_address_class_type_flags): Return
3136 type_instance_flags.
3137 (s390_address_class_type_flags_to_name): Take a
3138 type_instance_flags.
3139 (s390_address_class_name_to_type_flags): Return bool and take a
3140 type_instance_flags.
3141 * type-stack.c (type_stack::follow_types): Use
3142 type_instance_flags.
3143 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3145 2020-09-14 Tom Tromey <tromey@adacore.com>
3147 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3148 * x86-tdep.c (x86_is_thunk_register_name)
3149 (x86_in_indirect_branch_thunk): Update.
3150 * sparc64-tdep.c (sparc64_fpu_register_names)
3151 (sparc64_cp0_register_names, sparc64_register_names)
3152 (sparc64_pseudo_register_names): Now const.
3153 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3154 cp0_registers_num>: Now const.
3155 * sparc-tdep.c (sparc_core_register_names)
3156 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3157 (sparc32_pseudo_register_names): Now const.
3158 (validate_tdesc_registers): Update.
3159 * rust-lang.c (rust_extensions): Now const.
3160 * p-lang.c (p_extensions): Now const.
3161 * objc-lang.c (objc_extensions): Now const.
3162 * nto-tdep.c (nto_thread_state_str): Now const.
3163 * moxie-tdep.c (moxie_register_names): Now const.
3164 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3166 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3167 (mips_linux_reg_names): Now const.
3168 (mips_gdbarch_init): Update.
3169 * microblaze-tdep.c (microblaze_register_names): Now const.
3170 * m68k-tdep.c (m68k_register_names): Now const.
3171 * m32r-tdep.c (m32r_register_names): Now const.
3172 * ia64-tdep.c (ia64_register_names): Now const.
3173 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3174 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3175 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3176 ymm_avx512_register_names, pkeys_register_names>: Now const.
3177 * i386-tdep.c (i386_register_names, i386_zmm_names)
3178 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3179 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3180 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3181 * f-lang.c (f_extensions): Now const.
3182 * d-lang.c (d_extensions): Now const.
3183 * csky-tdep.c (csky_register_names): Now const.
3184 * charset.c (default_charset_names, charset_enum): Now const.
3185 (_initialize_charset): Update.
3186 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3188 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3189 (bsd_uthread_solib_loaded): Update.
3190 (bsd_uthread_state): Now const.
3191 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3192 (amd64_ymm_avx512_names, amd64_ymmh_names)
3193 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3194 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3195 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3196 (amd64_dword_names): Now const.
3197 * agent.c (can_use_agent_enum): Now const.
3198 * ada-tasks.c (task_states, long_task_states): Now const.
3199 * ada-lang.c (known_runtime_file_name_patterns)
3200 (known_auxiliary_function_name_patterns, attribute_names)
3201 (standard_exc, ada_extensions): Now const.
3203 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3205 * bcache.h (struct bcache) <bcache>: Remove constructor.
3206 <m_hash_function, m_compare_function>: Remove.
3207 <~bcache>: Make virtual.
3208 <compare>: Remove static method, introduce virtual method.
3209 <default_hash>: Remove.
3210 <hash>: New virtual method.
3211 * bcache.c (bcache::expand_hash_table): Update.
3212 (bcache::insert): Update.
3213 (bcache::hash): New.
3214 (bcache::compare): Update comment and parameter names.
3215 * gdbtypes.c (types_deeply_equal): Update.
3216 * psymtab.h (struct psymbol_bcache): New struct.
3217 (class psymtab_storage) <psymtab_storage>: Make default.
3218 <psymbol_cache>: Change type to psymbol_bcache.
3219 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3220 (psymbol_hash): Change to...
3221 (psymbol_bcache::hash): ... this.
3222 (psymbol_compare): Change to...
3223 (psymbol_bcache::compare): ... this.
3225 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3227 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3228 checking for initial lwp.
3230 2020-09-14 Tom Tromey <tromey@adacore.com>
3232 * m68k-tdep.c (m68k_extract_return_value): Use
3233 pointer_result_regnum.
3234 (m68k_store_return_value): Likewise.
3235 (m68k_reg_struct_return_p): Handle vectors and arrays.
3236 (m68k_return_value): Handle arrays.
3237 (m68k_svr4_return_value): Fix single-element aggregate handling.
3238 Handle long double. Adjust for embedded ABI.
3239 (m68k_svr4_init_abi): Set pointer_result_regnum.
3240 (m68k_embedded_init_abi): New function.
3241 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3242 (m68k_osabi_sniffer): New function.
3243 (_initialize_m68k_tdep): Register osabi sniffer.
3244 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3247 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3249 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3250 with gdb::unique_xmalloc_ptr<char>.
3252 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3254 * xml-support.h (xml_fetch_another): Change type to be a
3256 (xml_process_xincludes): Remove baton parameter.
3257 (xml_fetch_content_from_file): Change baton parameter to
3259 * xml-support.c (struct xinclude_parsing_data)
3260 <xinclude_parsing_data>: Remove baton parameter.
3261 <fetcher_baton>: Remove.
3262 (xinclude_start_include): Adjust.
3263 (xml_process_xincludes): Adjust.
3264 (xml_fetch_content_from_file): Replace baton parameter with
3266 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3267 (xml_init_syscalls_info): Use a lambda.
3268 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3269 (file_read_description_xml): Use a lambda.
3270 (fetch_available_features_from_target): Change baton parameter
3272 (target_read_description_xml): Use a lambda.
3273 (target_fetch_description_xml): Use a lambda.
3274 (string_read_description_xml): Update.
3276 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3278 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3279 uses with type::endianity_is_not_default.
3281 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3283 * gdbtypes.h (struct type) <endianity_is_not_default,
3284 set_endianity_is_not_default>: New methods.
3285 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3286 type::endianity_is_not_default, change all write call sites to
3287 use type::set_endianity_is_not_default.
3289 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3291 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3292 uses with type::is_fixed_instance.
3294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3296 * gdbtypes.h (struct type) <is_fixed_instance,
3297 set_is_fixed_instance>: New methods.
3298 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3299 write call sites to use type::set_is_fixed_instance.
3301 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3303 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3304 uses with type::is_gnu_ifunc.
3306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3308 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3309 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3310 use type::set_is_gnu_ifunc.
3312 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3314 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3315 uses with type::stub_is_supported.
3317 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3319 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3320 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3321 use type::set_stub_is_supported.
3323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3325 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3326 uses with type::is_vector.
3328 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3330 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3331 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3332 use type::set_is_vector.
3334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3336 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3337 uses with type::has_varargs.
3339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3341 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3342 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3343 use type::set_has_varargs.
3345 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3347 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3348 uses with type::is_prototyped.
3350 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3352 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3354 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3355 call sites to use type::set_is_prototyped.
3357 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3359 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3360 uses with type::target_is_stub.
3362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3364 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3366 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3367 sites to use type::set_target_is_stub.
3369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3371 * gdbtypes.h (TYPE_STUB): Remove, replace all
3372 uses with type::is_stub.
3374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3376 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3377 (TYPE_STUB): Use type::is_stub, change all write call sites to
3378 use type::set_is_stub.
3380 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3382 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3383 type::has_no_signedness.
3385 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3387 * gdbtypes.h (struct type) <has_no_signedness,
3388 set_has_no_signedness>: New methods.
3389 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3390 call sites to use type::set_has_no_signedness.
3392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3394 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3399 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3401 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3402 sites to use type::set_is_unsigned.
3404 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3405 Adam Renquinha <arenquinha@cimeq.qc.ca>
3407 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3408 pointer and stack frame offset when unwinding.
3410 2020-09-13 Pedro Alves <pedro@palves.net>
3412 * NEWS: Document "-break-insert --qualified".
3413 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3415 2020-09-13 Pedro Alves <pedro@palves.net>
3417 * linespec.c (classify_mtype, compare_msyms): Delete.
3418 (search_minsyms_for_name): Remove classification logic. Instead
3419 filter out trampoline symbols if we also found an external
3420 function of the same name.
3422 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3424 * NEWS: Create a new section for the next release branch.
3425 Rename the section of the current branch, now that it has
3428 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3430 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3431 * version.in: Bump version to 11.0.50.DATE-git.
3433 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3435 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3437 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3438 Felix Willgerodt <Felix.Willgerodt@intel.com>
3440 * gdbarch.sh: Added bfloat16 type.
3441 * gdbarch.c: Regenerated.
3442 * gdbarch.h: Regenerated.
3443 * gdbtypes.c (floatformats_bfloat16): New struct.
3444 (gdbtypes_post_init): Add builtin_bfloat16.
3445 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3446 (floatformats_bfloat16): New struct.
3447 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3448 (i386_ymm_type): Add field "v16_bfloat16"
3449 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3450 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3451 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3452 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3453 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3454 * features/i386/64bit-avx512.c: Regenerated.
3455 * features/i386/64bit-sse.xml: Add bfloat16 type.
3456 * features/i386/64bit-sse.c: Regenerated.
3458 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3460 * i386-tdep.c (i386_zmm_type): Fix field names.
3461 (i386_ymm_type): Fix field names.
3463 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465 * breakpoint.c: Fix typo in the help message of the
3466 "set breakpoint condition-evaluation" command.
3468 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3470 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3471 * (nbsd_nat_target::pid_to_exec_file)
3472 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3473 (nbsd_nat_target::post_startup_inferior)
3474 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3475 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3476 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3477 * (nbsd_thread_lister): Remove.
3479 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3481 * fork-inferior.c (startup_inferior): Avoid double free.
3483 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3485 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3486 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3488 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3490 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3491 * netbsd-nat.c: Include <sys/ptrace.h>.
3492 * (netbsd_nat::enable_proc_events): Add.
3494 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3496 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3497 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3498 (netbsd_nat::for_each_thread): Add.
3499 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3500 "gdbsupport/common-debug.h".
3501 * (netbsd_nat::netbsd_thread_lister)
3502 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3503 (netbsd_nat::for_each_thread): Add.
3505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3507 * netbsd-nat.h: Include <unistd.h>.
3508 * (netbsd_nat::pid_to_exec_file): Add.
3509 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3510 * (netbsd_nat::pid_to_exec_file) Add.
3512 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3514 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3516 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3518 * netbsd-nat.h: New file.
3519 * netbsd-nat.c: Likewise.
3521 2020-09-09 Tom Tromey <tromey@adacore.com>
3523 * ada-lang.c (remove_extra_symbols): Do not increment when
3526 2020-09-08 Tom Tromey <tromey@adacore.com>
3528 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3530 2020-09-08 Tom Tromey <tromey@adacore.com>
3533 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3534 (gdb_bfd_init_data): New function.
3535 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3537 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539 * infrun.c (fetch_inferior_event): Use
3540 `switch_to_target_no_thread` to switch the target.
3542 2020-09-06 Tom Tromey <tom@tromey.com>
3544 * symfile.h (dwarf2_free_objfile): Don't declare.
3546 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3548 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3549 to match 16 byte real/complex type generated by Flang compiler.
3551 2020-09-03 Tom de Vries <tdevries@suse.de>
3554 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3555 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3557 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3559 * maint.c (index_digits): New function.
3560 (struct maint_print_section_data): Remove.
3561 (print_bfd_section_info): Remove print_data parameter, add arg
3563 (print_objfile_section_info): Likewise.
3564 (print_bfd_section_info_maybe_relocated): Likewise (plus
3566 (maintenance_info_sections): Adjust calls.
3568 2020-09-02 Tom Tromey <tromey@adacore.com>
3570 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3572 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3574 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3576 * bcache.h (struct bcache) <insert>: Change type of `added` to
3578 * bcache.c (bcache::insert): Likewise.
3579 * gdbtypes.c (check_types_worklist): Adjust.
3580 * psymtab.c (add_psymbol_to_bcache): Adjust.
3582 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3584 * corelow.c (unordered_set): Include.
3585 (class core_target): Add field 'm_core_unavailable_mappings'.
3586 (core_target::build_file_mappings): Print only one warning
3587 per inaccessible file. Add unavailable/broken mappings
3588 to m_core_unavailable_mappings.
3589 (core_target::xfer_partial): Call...
3590 (core_target::xfer_memory_via_mappings): New method.
3592 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3594 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3597 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3599 * dwarf2/read.c (struct field_info): Fix indentation.
3601 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3603 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3604 ordering in comment.
3605 * frame.c (frame_id_eq): Fix indentation.
3607 2020-08-31 Scott Linder <scott@scottlinder.com>
3608 Simon Marchi <simon.marchi@efficios.com>
3610 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3611 inline frame ids in outer frame.
3613 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3615 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3616 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3617 (outer_frame_id): Use FID_STACK_OUTER instead of
3619 (frame_id_p): Don't check for outer_frame_id.
3621 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3623 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3624 regnum/frame in value. Call allocate_value_lazy.
3625 * frame.c (frame_unwind_register_value): Use
3626 val_print_not_saved.
3628 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3630 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3632 2020-08-29 Pedro Alves <pedro@palves.net>
3634 * progspace.c (print_program_space): Use all_inferiors. Switch to
3635 the inferior before calling target_pid_to_str.
3637 2020-08-28 Tom Tromey <tom@tromey.com>
3639 * xcoffread.c (xcoff_end_psymtab): Update comment.
3640 * dbxread.c (dbx_end_psymtab): Update comment.
3642 2020-08-28 Tom de Vries <tdevries@suse.de>
3645 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3647 (create_breakpoint): Same.
3648 (base_breakpoint_decode_location): Same.
3649 (bkpt_create_sals_from_location): Same.
3650 (bkpt_decode_location): Same.
3651 (bkpt_probe_create_sals_from_location): Same.
3652 (bkpt_probe_decode_location): Same.
3653 (tracepoint_create_sals_from_location): Same.
3654 (tracepoint_decode_location): Same.
3655 (tracepoint_probe_decode_location): Same.
3656 (strace_marker_create_sals_from_location): Same.
3657 (strace_marker_decode_location): Same.
3658 (create_sals_from_location_default): Same.
3659 (decode_location_default): Same.
3660 * breakpoint.h (struct breakpoint_ops): Same.
3661 (create_breakpoint): Same.
3662 * linespec.h (decode_line_full): Same.
3663 * linespec.c (decode_line_full): Same. Throw error if
3664 result.size () == 0.
3666 2020-08-27 Pedro Alves <pedro@palves.net>
3669 * breakpoint.c (until_break_fsm) <location_breakpoint,
3670 caller_breakpoint>: Delete fields.
3671 <breakpoints>: New field.
3672 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3673 two individual breakpoints.
3674 (until_break_fsm::should_stop): Loop over breakpoints in the
3676 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3678 (until_break_command): Handle location expanding into multiple
3681 2020-08-27 Pedro Alves <pedro@palves.net>
3684 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3685 bp_until breakpoints user-specified locations. Update intro
3688 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3690 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3691 gdb_bfd_sections): New.
3692 * maint.c (print_bfd_section_info): Change param type to
3693 maint_print_section_data.
3694 (print_objfile_section_info): Likewise.
3695 (print_bfd_section_info_maybe_relocated): Likewise.
3696 (maintenance_info_sections): Use gdb_bfd_sections.
3698 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3700 * MAINTAINERS: Add ARC target and maintainer.
3702 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3704 * configure.tgt: ARC support for GNU/Linux.
3705 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3706 * arc-linux-tdep.c: New file.
3707 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3708 * arc-tdep.c (arc_write_pc): Use it.
3710 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3712 * arc-tdep.c (arc_check_for_hardware_loop): New.
3713 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3715 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3717 * arc-tdep.h: Include "gdbarch.h".
3719 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3722 (arc_gdbarch_features): New class to stir the selection of target XML.
3723 (arc_create_target_description): Use FEATURES to choose XML target.
3724 (arc_lookup_target_description): Use arc_create_target_description
3725 to create _new_ target descriptions or return the already created
3726 ones if the FEATURES is the same.
3727 * arch/arc.c: Implementation of prototypes described above.
3728 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3729 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3730 * arc-tdep.c (*_feature_name): Make feature names consistent.
3731 (arc_register_feature): A new struct to hold information about
3732 registers of a particular target/feature.
3733 (arc_check_tdesc_feature): Check if XML provides registers in
3734 compliance with ARC_REGISTER_FEATURE structs.
3735 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3736 (determine_*_reg_feature_set): Which feature name to look for.
3737 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3738 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3739 to expected ISA enums to be used in arc_gdbarch_features structs.
3740 * features/Makefile (FEATURE_XMLFILES): Add new files.
3741 * gdb/features/arc/v1-aux.c: New file.
3742 * gdb/features/arc/v1-aux.xml: Likewise.
3743 * gdb/features/arc/v1-core.c: Likewise.
3744 * gdb/features/arc/v1-core.xml: Likewise.
3745 * gdb/features/arc/v2-aux.c: Likewise.
3746 * gdb/features/arc/v2-aux.xml: Likewise.
3747 * gdb/features/arc/v2-core.c: Likewise.
3748 * gdb/features/arc/v2-core.xml: Likewise.
3749 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3751 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3752 Andrew Burgess <andrew.burgess@embecosm.com>
3755 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3756 an assert. Remove single element array indexing pattern as the
3757 MULTI_SUBSCRIPT support will handle this case too.
3759 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3761 * value.h (valprint_check_validity): Move declaration from
3763 * valprint.h (valprint_check_validity): ... to here.
3765 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3767 * debug.h: New file.
3768 * debug.c (debug_prefixed_vprintf): New function.
3769 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3770 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3772 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3774 * infrun.h (infrun_debug_printf_1): New function declaration.
3775 (infrun_debug_printf): New macro.
3776 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3778 (infrun_debug_printf): New function.
3779 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3780 (handle_jit_event): Likewise.
3782 2020-08-21 Mark Wielaard <mark@klomp.org>
3784 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3786 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3788 * frame.c (enum class frame_id_status): New.
3789 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3790 (fprintf_frame): Update.
3791 (compute_frame_id): Set frame id status to "computing" on entry.
3792 Set it back to "not_computed" on failure and to "computed" on
3794 (get_frame_id): Assert the frame id is not being computed.
3795 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3796 (create_new_frame): Likewise.
3797 (frame_cleanup_after_sniffer): Update assert.
3799 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3801 * regcache.c (pid_ptid_regcache_map): New type.
3802 (target_ptid_regcache_map): Remove.
3803 (target_pid_ptid_regcache_map): New type.
3804 (regcaches): Change type to target_pid_ptid_regcache_map.
3805 (get_thread_arch_aspace_regcache): Update.
3806 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3808 (regcaches_size): Update.
3809 (regcache_count): Update.
3810 (registers_changed_ptid_target_pid_test): New.
3811 (_initialize_regcache): Register new test.
3813 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3815 * regcache.c (regcache_count): New.
3816 (struct regcache_test_data): New.
3817 (regcache_test_data_up): New.
3818 (populate_regcaches_for_test): New.
3819 (regcaches_test): Remove.
3820 (get_thread_arch_aspace_regcache_test): New.
3821 (registers_changed_ptid_all_test): New.
3822 (registers_changed_ptid_target_test): New.
3823 (registers_changed_ptid_target_ptid_test): New.
3824 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3825 (_initialize_regcache): Register new tests.
3827 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3829 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3830 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3831 gdbarch and aspace parameter. Use current inferior's aspace.
3832 Validate regcache's arch value.
3833 (regcaches_test): Update.
3835 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3837 * regcache.c (regcaches_test): Call registers_changed.
3839 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3841 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3843 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3845 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3846 to find the end of prologue for flang compiled binaries.
3847 * arm-tdep.c (arm_skip_prologue): Likewise.
3848 * i386-tdep.c (i386_skip_prologue): Likewise.
3849 * producer.c (producer_is_llvm): New function.
3850 (producer_parsing_tests): Added new tests for clang/flang.
3851 * producer.h (producer_is_llvm): New declaration.
3853 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3855 * linux-nat.c (linux_nat_debug_printf): New function.
3856 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3858 2020-08-18 Aaron Merey <amerey@redhat.com>
3860 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3861 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3862 (CLIBS): Add DEBUGINFOD_LIBS.
3864 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3866 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3869 2020-08-17 Tom Tromey <tromey@adacore.com>
3871 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3872 ada_get_decoded_value returns NULL.
3874 2020-08-17 Tom Tromey <tromey@adacore.com>
3876 * python/py-inferior.c (infpy_search_memory): Use
3877 gdb_py_object_from_ulongest.
3878 * python/py-infevents.c (create_inferior_call_event_object)
3879 (create_memory_changed_event_object): Use
3880 gdb_py_object_from_ulongest.
3881 * python/py-linetable.c (ltpy_entry_get_pc): Use
3882 gdb_py_object_from_ulongest.
3884 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3886 * loc.c (class symbol_needs_eval_context): Fix indentation.
3888 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3890 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3893 2020-08-17 Tom de Vries <tdevries@suse.de>
3896 * gdbtypes.c (dump_dynamic_prop): New function.
3897 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3899 2020-08-15 Tom de Vries <tdevries@suse.de>
3902 * stack.c (print_frame_args): Temporarily set the selected
3903 frame to FRAME while printing the frame's arguments.
3905 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3907 PR breakpoints/26385
3908 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3909 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3911 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3913 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3914 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3915 and >= to check return value instead of == -1 and != -1.
3917 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3919 * utils.h (class gdb_argv) <as_array_view>: New method.
3920 * utils.c (gdb_argv_as_array_view_test): New.
3921 (_initialize_utils): Register selftest.
3922 * maint.c (maintenance_selftest): Use the new method.
3924 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3926 * target.h (supports_dumpcore, dumpcore): New
3927 function declarations.
3928 * target.c (supports_dumpcore, dumpcore): New
3930 * target-delegates.c: Rebuild.
3931 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3932 and target_dumpcore ().
3934 2020-08-13 Aaron Merey <amerey@redhat.com>
3936 * debuginfod-support.c: Replace global variables with user_data.
3938 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3940 * maint.c (maintenance_selftest): Split args and pass array_view
3943 2020-08-12 Luis Machado <luis.machado@linaro.org>
3945 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3947 Use %s and pulongest to print the length.
3949 2020-08-12 Pedro Alves <palves@redhat.com>
3951 * NEWS: Move "Multi-target debugging support" item to the
3952 "Changes since GDB 9" section.
3954 2020-08-12 Pedro Alves <palves@redhat.com>
3957 * progspace.c (program_space::remove_objfile): Invalidate the
3960 2020-08-11 Tom de Vries <tdevries@suse.de>
3962 * MAINTAINERS: Mark ms1 as deleted.
3964 2020-08-10 Luis Machado <luis.machado@linaro.org>
3968 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3970 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3971 movz/str/stur/stp skipping behavior.
3973 2020-08-10 Luis Machado <luis.machado@linaro.org>
3975 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3976 struct user_sve_header instead of struct sve_context.
3978 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3980 * read.h (dwarf2_fetch_die_loc_sect_off,
3981 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3982 `void *` parameter with function_view.
3983 * read.c (dwarf2_fetch_die_loc_sect_off,
3984 dwarf2_fetch_die_loc_cu_off): Likewise.
3985 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3986 (per_cu_dwarf_call): Adjust.
3987 (get_frame_address_in_block_wrapper): Remove.
3988 (indirect_synthetic_pointer): Adjust.
3989 (get_ax_pc): Remove.
3990 (dwarf2_compile_expr_to_ax): Adjust.
3992 2020-08-08 Tom de Vries <tdevries@suse.de>
3995 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3997 * regcache.c (get_thread_arch_aspace_regcache): Same.
3999 2020-08-07 Tom Tromey <tromey@adacore.com>
4001 * ravenscar-thread.c
4002 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
4004 (ravenscar_thread_target::wait): Check
4005 runtime_initialized.
4006 (ravenscar_thread_target::prepare_to_store)
4007 (ravenscar_thread_target::stopped_by_sw_breakpoint)
4008 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4009 (ravenscar_thread_target::stopped_by_watchpoint)
4010 (ravenscar_thread_target::stopped_data_address)
4011 (ravenscar_thread_target::core_of_thread): Use
4012 scoped_restore_current_thread and
4013 set_base_thread_from_ravenscar_task.
4015 2020-08-07 Tom Tromey <tromey@adacore.com>
4017 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
4019 2020-08-07 Tom Tromey <tromey@adacore.com>
4021 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
4022 update_inferior_ptid before update_thread_list.
4023 (temporarily_change_regcache_ptid): New class.
4024 (ravenscar_thread_target::fetch_registers)
4025 (ravenscar_thread_target::store_registers)
4026 (ravenscar_thread_target::prepare_to_store): Use base thread when
4027 forwarding operation.
4029 2020-08-07 Tom Tromey <tromey@adacore.com>
4031 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
4034 2020-08-07 Tom Tromey <tromey@adacore.com>
4036 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4038 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
4040 (ravenscar_thread_target::add_thread): Rename from
4041 ravenscar_add_thread.
4042 (ravenscar_thread_target::update_thread_list): Use a lambda.
4043 (ravenscar_thread_target::xfer_partial): New method.
4045 2020-08-07 Tom Tromey <tromey@adacore.com>
4047 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4049 (iterate_over_live_ada_tasks): Change type of argument.
4050 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4053 2020-08-07 Tom Tromey <tromey@adacore.com>
4055 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4057 (ravenscar_thread_target::extra_thread_info): Remove.
4058 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4059 defer to target beneath for non-Ravenscar threads.
4061 2020-08-07 Tom Tromey <tromey@adacore.com>
4063 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4064 get_base_thread_from_ravenscar_task>: Now methods.
4065 <m_cpu_map>: New member.
4066 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4067 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4068 (ravenscar_thread_target::task_is_currently_active): Update.
4069 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4071 (ravenscar_thread_target::add_active_thread): Put initial thread
4074 2020-08-07 Tom Tromey <tromey@adacore.com>
4076 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4079 2020-08-07 Tom Tromey <tromey@adacore.com>
4081 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4082 runtime_initialized.
4084 2020-08-07 Tom Tromey <tromey@adacore.com>
4086 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4088 (ravenscar_thread_target::add_active_thread): Now public.
4089 (ravenscar_inferior_created): Call add_active_thread after pushing
4092 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4094 * regcache.c (ptid_regcache_map): New type.
4095 (target_ptid_regcache_map): New type.
4096 (regcaches): Change type to target_ptid_regcache_map.
4097 (get_thread_arch_aspace_regcache): Update to regcaches' new
4099 (regcache_thread_ptid_changed): Likewise.
4100 (registers_changed_ptid): Likewise.
4101 (regcaches_size): Likewise.
4102 (regcaches_test): Update.
4103 (regcache_thread_ptid_changed): Update.
4104 * regcache.h (regcache_up): New type.
4105 * gdbsupport/ptid.h (hash_ptid): New struct.
4107 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4109 * observable.h (thread_ptid_changed): Add parameter
4110 `process_stratum_target *`.
4111 * infrun.c (infrun_thread_ptid_changed): Add parameter
4112 `process_stratum_target *` and use it.
4113 (selftests): New namespace.
4114 (infrun_thread_ptid_changed): New function.
4115 (_initialize_infrun): Register selftest.
4116 * regcache.c (regcache_thread_ptid_changed): Add parameter
4117 `process_stratum_target *` and use it.
4118 (regcache_thread_ptid_changed): New function.
4119 (_initialize_regcache): Register selftest.
4120 * thread.c (thread_change_ptid): Pass target to
4121 thread_ptid_changed observable.
4123 2020-08-06 Caroline Tice <cmtice@google.com>
4125 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4126 (struct dwp_sections): Update field comments. Add loclists and
4128 (struct virtual_v2_dwo_sections): Rename struct to
4129 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4130 size & offset fields for loclists and rnglists.
4131 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4132 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4133 skipping dummy type units.
4134 (create_dwp_hash_table): Update the large comment above the function to
4135 discuss Version 5 DWP files as well, with references. Update all the
4136 version checks in the function to check for version 5 as well. Add new
4137 section at the end to create dwp hash table for version 5.
4138 (create_dwp_v2_section): Rename function to
4139 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4140 Add V5 to error message text.
4141 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4142 into calls to create_dwp_v2_or_v5_section.
4143 (create_dwo_unit_in_dwp_v5): New function.
4144 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4145 check for version2; add else clause to handle version 5.
4146 (open_and_init_dwo_file): Add code to check dwarf version & only call
4147 create_debug_types_hash_table (with sections.types) if version is not 5;
4148 else call create_debug_type_hash_table, with sections.info.
4149 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4151 (dwarf2_locate_v5_dwp_sections): New function.
4152 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4153 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4155 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4157 * regcache.h (class regcache): Remove friend
4158 registers_changed_ptid.
4159 <regcache_thread_ptid_changed>: Remove.
4160 <regcaches>: Remove.
4161 * regcache.c (regcache::regcaches): Rename to...
4162 (regcaches): ... this. Make static.
4163 (get_thread_arch_aspace_regcache): Update.
4164 (regcache::regcache_thread_ptid_changed): Rename to...
4165 (regcache_thread_ptid_changed): ... this. Update.
4166 (class regcache_access): Remove.
4167 (regcaches_test): Update.
4168 (_initialize_regcache): Update.
4169 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4172 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4174 * regcache.h (class regcache) <current_regcache>: Rename to...
4175 <regcaches>: ... this. Move doc here.
4176 * regcache.c (regcache::current_regcache) Rename to...
4177 (regcache::regcaches): ... this. Move doc to header.
4178 (get_thread_arch_aspace_regcache): Update.
4179 (regcache::regcache_thread_ptid_changed): Update.
4180 (registers_changed_ptid): Update.
4181 (class regcache_access) <current_regcache_size>: Rename to...
4182 <regcaches_size>: ... this.
4183 (current_regcache_test): Rename to...
4184 (regcaches_test): ... this.
4185 (_initialize_regcache): Update.
4187 2020-08-06 Victor Collod <vcollod@nvidia.com>
4189 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4191 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4193 * corelow.c (core_target::build_file_mappings): Don't output
4194 null pathname in warning.
4196 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4198 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4199 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4200 gdb.dwarf2/dw2-single-line-discriminators.exp,
4201 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4203 2020-08-05 Tom Tromey <tromey@adacore.com>
4206 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4207 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4208 Fix off-by-one and type size errors in ordinary case.
4210 2020-08-05 Tom de Vries <tdevries@suse.de>
4212 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4213 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4215 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4217 * frame.h (frame_id_p): Return bool.
4218 (frame_id_artificial_p): Return bool.
4219 (frame_id_eq): Return bool.
4220 (has_stack_frames): Return bool.
4221 (get_selected_frame): Fix typo in comment.
4222 (get_frame_pc_if_available): Return bool.
4223 (get_frame_address_in_block_if_available): Return bool.
4224 (get_frame_func_if_available): Return bool.
4225 (read_frame_register_unsigned): Return bool.
4226 (get_frame_register_bytes): Return bool.
4227 (safe_frame_unwind_memory): Return bool.
4228 (deprecated_frame_register_read): Return bool.
4229 (frame_unwinder_is): Return bool.
4230 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4232 <this_id::p>: Likewise.
4234 (frame_stash_add): Return bool.
4235 (get_frame_id): Use bool.
4236 (frame_id_build_special) Use bool.
4237 (frame_id_build_unavailable_stack): Use bool.
4238 (frame_id_build): Use bool.
4239 (frame_id_p): Return bool, use true/false instead of 1/0.
4240 (frame_id_artificial_p): Likewise.
4241 (frame_id_eq): Likewise.
4242 (frame_id_inner): Likewise.
4243 (get_frame_func_if_available): Likewise.
4244 (read_frame_register_unsigned): Likewise.
4245 (deprecated_frame_register_read): Likewise.
4246 (get_frame_register_bytes): Likewise.
4247 (has_stack_frames): Likewise.
4248 (inside_main_func): Likewise.
4249 (inside_entry_func): Likewise.
4250 (get_frame_pc_if_available): Likewise.
4251 (get_frame_address_in_block_if_available): Likewise.
4252 (frame_unwinder_is): Likewise.
4253 (safe_frame_unwind_memory): Likewise.
4254 (frame_unwind_arch): Likewise.
4256 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4258 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4259 type to cached_copy_status.
4260 (fprintf_frame): Adjust.
4261 (get_frame_func_if_available): Adjust.
4262 (frame_cleanup_after_sniffer): Adjust.
4264 2020-08-04 Mark Wielaard <mark@klomp.org>
4266 * MAINTAINERS (Write After Approval): Update email address.
4268 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4270 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4271 dynamic_prop::const_val.
4273 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4275 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4278 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4280 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4282 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4284 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4286 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4287 Jose E. Marchesi <jose.marchesi@oracle.com>
4289 * configure.tgt: Add entry for bpf-*-*.
4290 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4291 (ALLDEPFILES): Add bpf-tdep.c.
4292 * bpf-tdep.c: New file.
4293 * MAINTAINERS: Add bpf target and maintainer.
4294 * NEWS: Mention the support for the new target.
4296 2020-08-04 Tom de Vries <tdevries@suse.de>
4299 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4302 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4304 * syscalls/freebsd.xml: Regenerate.
4306 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4308 * syscalls/update-freebsd.sh: Fix usage and year range.
4310 2020-08-03 Tom de Vries <tdevries@suse.de>
4313 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4314 DW_LNE_lo_user/DW_LNE_hi_user range.
4316 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4319 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4322 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4326 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4328 * breakpoint.c (set_breakpoint_condition): Update the condition
4329 expressions after checking that the input condition string parses
4330 successfully and does not contain junk at the end.
4332 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4334 * breakpoint.c (set_breakpoint_condition): Update the
4335 condition string after parsing the new condition successfully.
4337 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4339 * proc-api.c (_STRUCTURED_PROC): Don't define.
4340 * proc-events.c: Likewise.
4341 * proc-flags.c: Likewise.
4342 * proc-why.c: Likewise.
4343 * procfs.c: Likewise.
4345 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4346 * configure, config.in: Regenerate.
4348 2020-07-30 Tom de Vries <tdevries@suse.de>
4351 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4352 m_red/m_green/m_blue in a union.
4354 2020-07-29 Tom de Vries <tdevries@suse.de>
4357 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4359 2020-07-28 Tom Tromey <tromey@adacore.com>
4362 * symtab.h (find_pc_partial_function_sym): Declare.
4363 * cli/cli-cmds.c (disassemble_command): Use
4364 find_pc_partial_function_sym. Check asm_demangle.
4365 * blockframe.c (cache_pc_function_sym): New global.
4366 (cache_pc_function_name): Remove.
4367 (clear_pc_function_cache): Update.
4368 (find_pc_partial_function_sym): New function, from
4369 find_pc_partial_function.
4370 (find_pc_partial_function): Rewrite using
4371 find_pc_partial_function_sym.
4373 2020-07-28 Tom Tromey <tromey@adacore.com>
4375 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4378 2020-07-28 Tom Tromey <tromey@adacore.com>
4380 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4381 <DW_OP_GNU_variable_value>: Cast to address type.
4383 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4385 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4386 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4387 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4388 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4389 (nbsd_get_siginfo_type): New.
4390 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4391 (_initialize_nbsd_tdep): New.
4393 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4396 * configure: Regenerated.
4398 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4401 * configure: Regenerated.
4403 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4405 * python/py-frame.c: Remove 'user-regs.h' include.
4406 (frapy_read_register): Rewrite to make use of
4407 gdbpy_parse_register_id.
4408 * python/py-registers.c (gdbpy_parse_register_id): New function,
4409 moved here from python/py-unwind.c. Updated the return type, and
4410 also accepts register descriptor objects.
4411 * python/py-unwind.c: Remove 'user-regs.h' include.
4412 (pyuw_parse_register_id): Moved to python/py-registers.c.
4413 (unwind_infopy_add_saved_register): Update to use
4414 gdbpy_parse_register_id.
4415 (pending_framepy_read_register): Likewise.
4416 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4418 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4420 * python/py-registers.c: Add 'user-regs.h' include.
4421 (register_descriptor_iter_find): New function.
4422 (register_descriptor_iterator_object_methods): New static global
4424 (register_descriptor_iterator_object_type): Add pointer to methods
4427 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4429 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4430 for all architectures on FreeBSD 11.3 and later.
4432 2020-07-27 Tom Tromey <tromey@adacore.com>
4434 * gcore.h (load_corefile): Don't declare.
4436 2020-07-27 Tom de Vries <tdevries@suse.de>
4438 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4439 * config.in: Regenerate.
4440 * configure: Regenerate.
4442 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4444 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4445 ws2tcpip.h. When checking whether socklen_t type is defined, use
4446 ws2tcpip.h if it is available and sys/socket.h isn't.
4447 * configure: Regenerate.
4448 * config.in: Regenerate.
4450 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4454 * valops.c (value_ind): Pass address to
4455 readjust_indirect_value_type.
4456 * value.c (readjust_indirect_value_type): Make parameter
4457 non-const, and add extra address parameter. Resolve original type
4459 * value.h (readjust_indirect_value_type): Update function
4460 signature and comment.
4462 2020-07-25 Tom de Vries <tdevries@suse.de>
4465 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4468 2020-07-24 Aaron Merey <amerey@redhat.com>
4470 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4471 * configure: Rebuild.
4473 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4476 * corelow.c (_initialize_corelow): Add period to help text
4477 for "maintenance print core-file-backed-mappings".
4479 2020-07-23 Pedro Alves <pedro@palves.net>
4481 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4482 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4484 * frame.c (frame_cache_generation, get_frame_cache_generation):
4486 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4487 (get_prev_frame_if_no_cycle): On exception, don't touch
4488 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4489 * frame.h (get_frame_cache_generation): Declare.
4491 2020-07-23 Tom de Vries <tdevries@suse.de>
4494 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4495 New default constructor.
4497 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4499 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4500 exclude non-statement entries.
4502 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4504 * NEWS (New commands): Mention new command
4505 "maintenance print core-file-backed-mappings".
4507 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4509 * corelow.c (gdbcmd.h): Include.
4510 (core_target::info_proc_mappings): New method.
4511 (get_current_core_target): New function.
4512 (maintenance_print_core_file_backed_mappings): New function.
4513 (_initialize_corelow): Add core-file-backed-mappings to
4514 "maint print" commands.
4516 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4518 * linux-tdep.c (dump_note_entry_p): New function.
4519 (linux_dump_mapping_p_ftype): New typedef.
4520 (linux_find_memory_regions_full): Add new parameter,
4521 should_dump_mapping_p.
4522 (linux_find_memory_regions): Adjust call to
4523 linux_find_memory_regions_full.
4524 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4525 call to linux_find_memory_regions_full.
4527 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4529 * corelow.c (solist.h, unordered_map): Include.
4530 (class core_target): Add field m_core_file_mappings and
4531 method build_file_mappings.
4532 (core_target::core_target): Call build_file_mappings.
4533 (core_target::~core_target): Free memory associated with
4534 m_core_file_mappings.
4535 (core_target::build_file_mappings): New method.
4536 (core_target::xfer_partial): Use m_core_file_mappings
4537 for memory transfers.
4538 * linux-tdep.c (linux_read_core_file_mappings): New
4540 (linux_core_info_proc_mappings): Rewrite to use
4541 linux_read_core_file_mappings.
4542 (linux_init_abi): Register linux_read_core_file_mappings.
4544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4546 * arch-utils.c (default_read_core_file_mappings): New function.
4547 * arch-utils.c (default_read_core_file_mappings): Declare.
4548 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4549 * gdbarch.h, gdbarch.c: Regenerate.
4551 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4554 * corelow.c (core_target:xfer_partial): Revise
4555 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4556 case after first checking the stratum beneath the core
4558 (has_all_memory): Return true.
4559 * target.c (raw_memory_xfer_partial): Revise comment
4560 regarding use of has_all_memory.
4562 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4564 * exec.h (section_table_xfer_memory): Revise declaration,
4565 replacing section name parameter with an optional callback
4567 * exec.c (section_table_xfer_memory): Likewise.
4568 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4569 of section_table_xfer_memory.
4571 2020-07-22 Tom Tromey <tromey@adacore.com>
4573 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4574 lookup_symbol_search_name.
4576 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4579 redundant local variable.
4580 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4581 reference, not pointer, update code accordingly.
4583 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4584 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4586 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4587 * jit.c (jit_breakpoint_re_set_internal): Use the
4588 `skip_jit_symbol_lookup` field.
4590 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4591 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4593 * jit.c (jit_read_descriptor): Define the descriptor address once,
4595 (jit_breakpoint_deleted): Move the declaration of the loop variable
4596 `iter` into the loop header.
4597 (jit_breakpoint_re_set_internal): Move the declaration of the local
4598 variable `objf_data` to the first point of definition.
4599 (jit_event_handler): Move the declaration of local variables
4600 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4601 Rename `objf` to `jited`.
4603 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4605 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4607 * jit.c (get_jiter_objfile_data): Update.
4609 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4610 Simon Marchi <simon.marchi@polymtl.ca>
4612 * jit.c (struct jit_program_space_data): Remove.
4613 (jit_program_space_key): Remove.
4614 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4616 (get_jit_program_space_data): Remove.
4617 (jit_breakpoint_deleted): Iterate on all of the program space's
4619 (jit_inferior_init): Likewise.
4620 (jit_breakpoint_re_set_internal): Likewise. Also change return
4622 (jit_breakpoint_re_set): Pass current_program_space to
4623 jit_breakpoint_re_set_internal.
4625 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4627 * jit.h (struct jiter_objfile_data) <cached_code_address,
4628 jit_breakpoint>: Move to here from ...
4629 * jit.c (jit_program_space_data): ... here.
4630 (jiter_objfile_data::~jiter_objfile_data): Update.
4631 (jit_breakpoint_deleted): Update.
4632 (jit_breakpoint_re_set_internal): Update.
4634 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4636 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4638 (jit_read_descriptor): Remove NULL check.
4639 (jit_event_handler): Add an assertion.
4641 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4643 * jit.h (struct jit_objfile_data): Split into...
4644 (struct jiter_objfile_data): ... this ...
4645 (struct jited_objfile_data): ... and this.
4646 * objfiles.h (struct objfile) <jit_data>: Remove.
4647 <jiter_data, jited_data>: New fields.
4648 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4649 (jiter_objfile_data::~jiter_objfile_data): ... this.
4650 (get_jit_objfile_data): Rename to ...
4651 (get_jiter_objfile_data): ... this.
4652 (add_objfile_entry): Update.
4653 (jit_read_descriptor): Use get_jiter_objfile_data.
4654 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4655 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4656 (jit_inferior_exit_hook): Use objfile's jited_data field.
4658 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4660 * jit.h: Forward-declare `struct minimal_symbol`.
4661 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4662 constructor, destructor, and an objfile* field.
4663 * jit.c (jit_objfile_data): Remove.
4664 (struct jit_objfile_data): Migrate from here to jit.h.
4665 (jit_objfile_data::~jit_objfile_data): New destructor
4666 implementation with code moved from free_objfile_data.
4667 (free_objfile_data): Delete.
4668 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4669 (jit_find_objf_with_entry_addr): Ditto.
4670 (jit_inferior_exit_hook): Ditto.
4671 (_initialize_jit): Remove the call to
4672 register_objfile_data_with_cleanup.
4673 * objfiles.h (struct objfile) <jit_data>: New field.
4675 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4677 * jit.h: Forward-declare `struct objfile`.
4678 (jit_event_handler): Add a second parameter, the JITer objfile.
4679 * jit.c (jit_read_descriptor): Change the signature to take the
4680 JITer objfile as an argument instead of the jit_program_space_data.
4681 (jit_inferior_init): Update the call to jit_read_descriptor.
4682 (jit_event_handler): Use the new JITer objfile argument when calling
4683 jit_read_descriptor.
4684 * breakpoint.c (handle_jit_event): Update the call to
4685 jit_event_handler to pass the JITer objfile.
4687 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4689 * gdbarch.c: Regenerate.
4690 * gdbarch.h: Regenerate.
4691 * gdbarch.sh (handle_segmentation_fault): Remove method.
4692 * infrun.c (handle_segmentation_fault): Remove.
4693 (print_signal_received_reason): Remove call to
4694 handle_segmentation_fault.
4696 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4698 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4699 Rename to sparc64_linux_report_signal_info and add siggnal
4701 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4702 instead of sparc64_linux_handle_segmentation_fault.
4704 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4706 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4707 i386_linux_report_signal_info instead of
4708 i386_linux_handle_segmentation_fault.
4709 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4710 to i386_linux_report_signal_info and add siggnal argument.
4711 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4712 of i386_linux_handle_segmentation_fault.
4713 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4714 to i386_linux_report_signal_info and add siggnal argument.
4716 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4718 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4721 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4723 * gdbarch.c: Regenerate.
4724 * gdbarch.h: Regenerate.
4725 * gdbarch.sh (report_signal_info): New method.
4726 * infrun.c (print_signal_received_reason): Invoke gdbarch
4727 report_signal_info hook if present.
4729 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4731 * python/py-registers.c : Add 'unordered_map' include.
4732 (gdbpy_new_reggroup): Renamed to...
4733 (gdbpy_get_reggroup): ...this. Update to only create register
4734 group descriptors when needed.
4735 (gdbpy_reggroup_iter_next): Update.
4737 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4739 * python/py-registers.c (gdbpy_register_object_data): New static
4741 (gdbpy_register_object_data_init): New function.
4742 (gdbpy_new_register_descriptor): Renamed to...
4743 (gdbpy_get_register_descriptor): ...this, and update to reuse
4744 existing register descriptors where possible.
4745 (gdbpy_register_descriptor_iter_next): Update.
4746 (gdbpy_initialize_registers): Register new gdbarch data.
4748 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4750 * linux-nat.c (stopped_pids): Make static.
4752 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4755 * gdbtypes.c (ada_discrete_type_low_bound,
4756 ada_discrete_type_high_bound): Handle undefined bounds.
4758 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4760 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4762 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4765 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4767 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4768 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4769 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4770 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4771 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4774 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4776 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4777 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4778 which are deprecated in Guile 3.0.
4779 * configure.ac (try_guile_versions): Add "guile-3.0".
4780 * configure (try_guile_versions): Regenerate.
4781 * NEWS: Update entry.
4783 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4784 Doug Evans <dje@google.com>
4787 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4788 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4789 USING_GUILE_BEFORE_2_2.
4790 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4791 Change type to 'scm_t_port_type *'.
4792 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4793 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4794 parameter and honor it. Update callers.
4795 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4796 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4798 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4799 USING_GUILE_BEFORE_2_2.
4800 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4801 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4802 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4803 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4804 and 'SCM_PORT_TYPE'.
4805 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4806 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4807 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4808 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4809 [!USING_GUILE_BEFORE_2_2]: New functions.
4810 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4811 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4812 'gdbscm_memory_port_read'.
4813 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4814 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4815 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4817 (ioscm_init_memory_port): Remove.
4818 (ioscm_init_memory_port_stream): New function
4819 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4821 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4822 Return scm_from_uint (0).
4823 (gdbscm_set_memory_port_read_buffer_size_x)
4824 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4825 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4826 Return scm_from_uint (0).
4827 (gdbscm_set_memory_port_write_buffer_size_x)
4828 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4829 * configure.ac (try_guile_versions): Add "guile-2.2".
4830 * configure: Regenerate.
4833 2020-07-18 Tom Tromey <tom@tromey.com>
4835 * linux-nat.c (linux_multi_process): Remove.
4836 (linux_nat_target::supports_multi_process): Return true.
4838 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4840 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4841 (riscv_lookup_target_description): Return pointer out of
4843 * target-descriptions.c (allocate_target_description): Add
4845 (target_desc_deleter::operator()): Likewise.
4846 * target-descriptions.h (struct target_desc_deleter): Moved to
4848 (target_desc_up): Likewise.
4850 2020-07-17 Tom Tromey <tromey@adacore.com>
4852 * linux-nat.c (linux_nat_target::supports_non_stop)
4853 (linux_nat_target::always_non_stop_p): Use "true".
4854 (linux_nat_target::supports_disable_randomization): Use "true" and
4857 2020-07-16 Caroline Tice <cmtice@google.com>
4859 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4860 (RNGLIST_HEADER_SIZE64): New constant definition.
4861 (struct dwop_section_names): Add rnglists_dwo.
4862 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4863 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4864 (struct dwo_sections): Add rnglists field.
4865 (read_attribut_reprocess): Add tag parameter.
4866 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4867 (cu_debug_rnglists_section): New function (decl & definition).
4868 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4869 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4870 die whose range is being checked; get rnglist section from
4871 cu_debug_rnglists_section, to get from either objfile or dwo file as
4872 appropriate. Add cases for DW_RLE_base_addressx,
4873 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4874 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4875 test inside if-condition and updating complaint message.
4876 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4877 dwarf2_rnglists_process.
4878 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4879 dwarf2_ranges_process.
4880 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4881 need_ranges_base and update comment appropriately. Also pass die tag
4882 to dwarf2_ranges_read.
4883 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4884 need_ranges_base and update comment appropriately. Also pass die tag
4885 to dwarf2_ranges_process.
4886 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4887 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4888 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4889 need_ranges_base and update comment appropriately. Also pass die tag
4890 to read_attribute_reprocess and dwarf2_ranges_read.
4891 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4892 and update function comment appropriately.
4893 (read_loclist_index): Call read_loclists_rnglists_header instead of
4894 read_loclist_header.
4895 (read_rnglist_index): New function.
4896 (read_attribute_reprocess): Add tag parameter. Add code for
4897 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4898 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4900 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4902 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4905 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4907 * arch-utils.c (show_architecture): Update formatting of messages.
4909 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4911 * gdbtypes.h (struct type) <bounds>: Handle array and string
4913 * ada-lang.c (assign_aggregate): Use type::bounds on
4915 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4916 * c-varobj.c (c_number_of_children): Likewise.
4917 (c_describe_child): Likewise.
4918 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4919 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4920 (f_type_print_base): Likewise.
4921 * f-valprint.c (f77_array_offset_tbl): Likewise.
4922 (f77_get_upperbound): Likewise.
4923 (f77_print_array_1): Likewise.
4924 * guile/scm-type.c (gdbscm_type_range): Likewise.
4925 * m2-typeprint.c (m2_array): Likewise.
4926 (m2_is_long_set_of_type): Likewise.
4927 * m2-valprint.c (get_long_set_bounds): Likewise.
4928 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4929 * python/py-type.c (typy_range): Likewise.
4930 * rust-lang.c (rust_internal_print_type): Likewise.
4931 * type-stack.c (type_stack::follow_types): Likewise.
4932 * valarith.c (value_subscripted_rvalue): Likewise.
4933 * valops.c (value_cast): Likewise.
4935 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4937 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4938 callers to use the equivalent accessor methods.
4940 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4942 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4943 (struct type) <bit_stride>: New method.
4944 (TYPE_BIT_STRIDE): Remove.
4945 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4947 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4949 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4950 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4951 callers to use the equivalent accessor methods instead.
4953 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4955 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4956 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4957 callers to use the equivalent accessor methods instead.
4959 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4961 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4962 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4963 to use dynamic_prop::kind.
4965 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4967 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4968 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4969 to get the bound property's kind and check against
4972 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4974 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4975 all callers to use type::range_bounds followed by
4976 dynamic_prop::{low,high}.
4978 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4980 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4981 const_val, set_const_val, baton, set_locexpr, set_loclist,
4982 set_addr_offset, variant_parts, set_variant_parts,
4983 original_type, set_original_type>: New methods.
4984 <kind>: Rename to...
4985 <m_kind>: ... this. Update all users to use the new methods
4987 <data>: Rename to...
4988 <m_data>: ... this. Update all users to use the new methods
4991 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4993 * gdbtypes.c (get_discrete_bounds): Return failure if
4994 the range type's bounds are not both defined and constant
4996 (get_array_bounds): Update comment. Remove undefined bound check.
4998 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
5000 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
5001 the type::bounds method directly.
5003 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
5005 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
5006 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
5007 are used to set the range type's bounds to use set_bounds.
5009 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5011 * exec.c (_initialize_exec): Update exec-file-mismatch help.
5013 2020-07-10 Pedro Alves <pedro@palves.net>
5015 * gdbthread.h (inferior_ref): Define.
5016 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
5017 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
5019 (scoped_restore_current_thread::restore):
5020 Adjust to gdb::ref_ptr.
5021 (scoped_restore_current_thread::~scoped_restore_current_thread):
5022 Remove manual decref handling.
5023 (scoped_restore_current_thread::scoped_restore_current_thread):
5025 inferior_ref::new_reference/thread_info_ref::new_reference.
5026 Incref the thread before calling get_frame_id instead of after.
5027 Let TARGET_CLOSE_ERROR propagate.
5029 2020-07-10 Pedro Alves <pedro@palves.net>
5031 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
5032 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
5033 NOT_AVAILABLE_ERROR.
5034 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
5035 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
5037 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5038 Pedro Alves <pedro@palves.net>
5041 * infrun.c (threads_are_resumed_pending_p): Delete.
5042 (do_target_wait): Remove threads_are_executing and
5043 threads_are_resumed_pending_p checks from the inferior_matches
5044 lambda. Update comments.
5046 2020-07-10 Pedro Alves <pedro@palves.net>
5049 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5052 2020-07-10 Pedro Alves <pedro@palves.net>
5055 * infrun.c (handle_no_resumed): Handle multiple targets.
5057 2020-07-10 Pedro Alves <pedro@palves.net>
5060 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5063 2020-07-10 Pedro Alves <pedro@palves.net>
5066 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5067 threads, not all threads.
5069 2020-07-10 Pedro Alves <pedro@palves.net>
5072 * remote.c (remote_target::open_1): Pass remote target pointer as
5073 data to create_async_event_handler.
5074 (remote_async_inferior_event_handler): Mark async event handler
5075 before returning if the remote target still has either pending
5076 events or unacknowledged notifications.
5078 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5080 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5082 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5085 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5087 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5090 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5092 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5093 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5094 AT_FREEBSD_PS_STRINGS.
5096 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5098 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5099 of debugfile path on Windows.
5101 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5103 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5106 2020-07-08 Tom Tromey <tromey@adacore.com>
5108 * ada-lang.c (ada_exception_message_1): Use read_memory.
5110 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5113 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5114 special handling for inline frames.
5115 * findvar.c (value_of_register_lazy): Skip inline frames when
5116 creating lazy register values.
5117 * frame.c (frame_id_computed_p): Delete definition.
5118 * frame.h (frame_id_computed_p): Delete declaration.
5120 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5122 * NEWS: Mention additions to Python API.
5123 * python/py-arch.c (archpy_register_groups): New function.
5124 (arch_object_methods): Add 'register_groups' method.
5125 * python/py-registers.c (reggroup_iterator_object): New struct.
5126 (reggroup_object): New struct.
5127 (gdbpy_new_reggroup): New function.
5128 (gdbpy_reggroup_to_string): New function.
5129 (gdbpy_reggroup_name): New function.
5130 (gdbpy_reggroup_iter): New function.
5131 (gdbpy_reggroup_iter_next): New function.
5132 (gdbpy_new_reggroup_iterator): New function
5133 (gdbpy_initialize_registers): Register new types.
5134 (reggroup_iterator_object_type): Define new Python type.
5135 (gdbpy_reggroup_getset): New static global.
5136 (reggroup_object_type): Define new Python type.
5137 * python/python-internal.h
5139 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5141 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5142 * python/py-arch.c (archpy_registers): New function.
5143 (arch_object_methods): Add 'registers' method.
5144 * python/py-registers.c: New file.
5145 * python/python-internal.h
5146 (gdbpy_new_register_descriptor_iterator): Declare.
5147 (gdbpy_initialize_registers): Declare.
5148 * python/python.c (do_start_initialization): Call
5149 gdbpy_initialize_registers.
5150 * NEWS: Mention additions to the Python API.
5152 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5154 * NEWS: Mention new Python API method.
5155 * python/py-unwind.c (pending_framepy_architecture): New function.
5156 (pending_frame_object_methods): Add architecture method.
5158 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * gdbarch.c: Regenerate.
5161 * gdbarch.h: Regenerate.
5162 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5163 (gdbarch_data): Use internal_error for the case where
5164 deprecated_set_gdbarch_data was originally needed.
5165 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5166 and use passed in obstack.
5167 (libunwind_frame_set_descr): Should no longer get back NULL from
5169 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5171 * user-regs.c (user_regs_init): Update parameters, and use passed
5173 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5174 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5176 2020-07-06 Tom de Vries <tdevries@suse.de>
5178 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5179 End-Of-Sequence in lte_is_less_than.
5180 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5181 "gdb: Don't reorder line table entries too much when sorting".
5183 2020-07-06 Tom de Vries <tdevries@suse.de>
5186 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5188 2020-07-05 Tom de Vries <tdevries@suse.de>
5191 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5192 std::uncaught_exceptions instead of deprecated
5193 std::uncaught_exception.
5195 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5197 * macroexp.h (macro_stringify): Return
5198 gdb::unique_xmalloc_ptr<char>.
5199 * macroexp.c (macro_stringify): Likewise.
5200 * macrotab.c (fixup_definition): Update.
5202 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5204 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5205 (lex_one_token): Update.
5206 * macroexp.c (struct macro_buffer) <release>: Return
5207 gdb::unique_xmalloc_ptr<char>.
5208 (macro_stringify): Update.
5209 (macro_expand): Update.
5210 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5211 * macroexp.h (macro_expand_next): Likewise.
5213 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5215 * macroexp.h (macro_lookup_ftype): Remove.
5216 (macro_expand, macro_expand_once, macro_expand_next): Remove
5217 lookup function parameters, add scope parameter.
5218 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5219 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5220 * macroscope.h (standard_macro_lookup): Change parameter type
5222 * macroscope.c (standard_macro_lookup): Likewise.
5223 * c-exp.y (lex_one_token): Update.
5224 * macrocmd.c (macro_expand_command): Likewise.
5225 (macro_expand_once_command): Likewise.
5227 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5229 * inf-loop.c (inferior_event_handler): Remove client_data param.
5230 * inf-loop.h (inferior_event_handler): Likewise.
5231 * infcmd.c (step_1): Adjust.
5232 * infrun.c (proceed): Adjust.
5233 (fetch_inferior_event): Remove client_data param.
5234 (infrun_async_inferior_event_handler): Adjust.
5235 * infrun.h (fetch_inferior_event): Remove `void *` param.
5236 * linux-nat.c (handle_target_event): Adjust.
5237 * record-btrace.c (record_btrace_handle_async_inferior_event):
5239 * record-full.c (record_full_async_inferior_event_handler):
5241 * remote.c (remote_async_inferior_event_handler): Adjust.
5243 2020-07-01 Tom Tromey <tom@tromey.com>
5245 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5246 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5248 2020-07-01 Tom Tromey <tom@tromey.com>
5250 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5252 (tui_win_info::make_window): Merge with
5253 tui_gen_win_info::make_window.
5254 (tui_win_info::make_visible): Move from tui_gen_win_info.
5255 * tui/tui-win.c (tui_win_info::max_width): Move from
5257 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5259 <window_factory>: Likewise.
5260 * tui/tui-layout.c (tui_win_info::resize): Move from
5262 (make_standard_window): Change return type.
5263 (get_locator_window, tui_get_window_by_name): Likewise.
5264 (tui_layout_window::apply): Remove a cast.
5265 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5266 (struct tui_win_info): Merge with tui_gen_win_info.
5267 (struct tui_gen_win_info): Remove.
5269 2020-07-01 Tom Tromey <tom@tromey.com>
5271 * tui/tui-stack.h (struct tui_locator_window): Derive from
5273 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5274 <can_box>: New method.
5276 2020-07-01 Tom Tromey <tom@tromey.com>
5278 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5280 2020-07-01 Tom Tromey <tom@tromey.com>
5282 * tui/tui-regs.c (tui_data_window::display_registers_from)
5283 (tui_data_window::display_registers_from)
5284 (tui_data_window::first_data_item_displayed)
5285 (tui_data_window::delete_data_content_windows): Update.
5286 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5288 (tui_data_window::check_register_values): Update.
5289 (tui_data_item_window::rerender): Add parameters. Update.
5290 (tui_data_item_window::refresh_window): Remove.
5291 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5293 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5295 <refresh_window, max_height, min_height>: Remove.
5296 <rerender>: Add parameters.
5297 <x, y, visible>: New members.
5298 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5299 <m_item_width>: New member.
5301 2020-07-01 Tom Tromey <tom@tromey.com>
5303 * tui/tui-regs.c (tui_data_window::show_register_group)
5304 (tui_data_window::check_register_values): Update.
5305 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5308 2020-07-01 Tom Tromey <tom@tromey.com>
5310 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5313 2020-07-01 Tom Tromey <tom@tromey.com>
5315 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5316 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5318 2020-07-01 Tom Tromey <tom@tromey.com>
5320 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5321 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5322 (struct tui_line_or_address): Move from tui-data.h.
5323 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5324 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5325 (tui_cmd_window, tui_source_window_base, tui_source_window)
5326 (tui_disasm_window): Don't declare.
5327 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5329 (SINGLE_KEY): Move to tui-stack.c.
5331 2020-07-01 Tom Tromey <tom@tromey.com>
5333 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5335 * tui/tui-regs.c (class tab_expansion_file): New.
5336 (tab_expansion_file::write): New method.
5337 (tui_register_format): Change return type. Use
5339 (tui_get_register, tui_data_window::display_registers_from)
5340 (tui_data_item_window::rerender): Update.
5341 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5342 * tui/tui-io.c (tui_expand_tabs): Remove.
5344 2020-07-01 Tom Tromey <tom@tromey.com>
5346 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5348 2020-07-01 Fangrui Song <maskray@google.com>
5350 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5352 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5354 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5355 forms for DW_AT_associated and DW_AT_allocated attributes,
5356 which is already checked in function attr_to_dynamic_prop.
5358 2020-06-30 Tom Tromey <tromey@adacore.com>
5360 * dwarf2/read.c (quirk_rust_enum): Correctly call
5361 alloc_rust_variant for default-less enum.
5363 2020-06-30 Tom Tromey <tromey@adacore.com>
5366 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5369 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5371 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5372 * gdbarch.h: Re-generate.
5374 2020-06-28 Tom Tromey <tom@tromey.com>
5376 * command.h (cmd_types): Remove.
5377 (cmd_type): Don't declare.
5378 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5380 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5381 * cli/cli-decode.c (cmd_type): Remove.
5383 2020-06-27 Pedro Alves <palves@redhat.com>
5385 * fork-child.c (prefork_hook): Adjust.
5386 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5388 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5389 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5390 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5391 Remove declarations.
5392 (struct inferior) <set_tty, tty>: New methods.
5393 (struct inferior) <terminal>: Rename to ...
5394 (struct inferior) <m_terminal>: ... this and make private.
5395 * main.c (captured_main_1): Adjust.
5396 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5397 (mi_cmd_inferior_tty_show): Adjust.
5398 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5399 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5401 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5403 * configure.ac: Add --enable-libctf: handle --disable-static
5405 * acinclude.m4: sinclude ../config/enable.m4.
5406 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5407 (LIBCTF): Substitute in.
5408 (CTF_DEPS): New, likewise.
5409 (CLIBS): libctf needs symbols from libbfd: move earlier.
5410 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5412 * ctfread.c: Surround in ENABLE_LIBCTF.
5413 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5414 * configure: Regenerate.
5415 * config.in: Likewise.
5417 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5419 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5421 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5423 * inferior.h (struct inferior) <terminal>: Change type to
5424 gdb::unique_xmalloc_ptr<char>.
5425 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5426 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5427 field, adjust to unique pointer.
5428 (get_inferior_io_terminal): Adjust to unique pointer.
5430 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5432 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5433 registers, not just the known core set of registers.
5435 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5437 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5438 fflags, frm, and fcsr registers.
5439 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5441 (riscv_tdesc_unknown_reg): New function.
5442 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5443 tdesc_use_registers.
5444 * riscv-tdep.h (struct gdbarch_tdep): Add
5445 unknown_csrs_first_regnum, unknown_csrs_count,
5446 duplicate_fflags_regnum, duplicate_frm_regnum, and
5447 duplicate_fcsr_regnum fields.
5449 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5451 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5452 callback, use the callback (when not null) to help number unknown
5454 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5455 (tdesc_use_registers): Add extra parameter to declaration.
5457 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5459 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5461 (class riscv_pending_register_alias): Likewise.
5462 (riscv_register_feature::register_info): Change 'required_p' field
5463 to 'required', and change its type. Add 'check' member function.
5464 (riscv_register_feature::register_info::check): Define new member
5466 (riscv_xreg_feature): Change initialisation of 'required' field.
5467 (riscv_freg_feature): Likewise.
5468 (riscv_virtual_feature): Likewise.
5469 (riscv_csr_feature): Likewise.
5470 (riscv_check_tdesc_feature): Take extra parameter, the csr
5471 tdesc_feature, rewrite the function to use the new
5472 riscv_register_feature::register_info::check function.
5473 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5475 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5477 * features/Makefile: Remove all references to the deleted files
5479 * features/riscv/32bit-csr.c: Deleted.
5480 * features/riscv/32bit-csr.xml: Deleted.
5481 * features/riscv/64bit-csr.c: Deleted.
5482 * features/riscv/64bit-csr.xml: Deleted.
5483 * features/riscv/rebuild-csr-xml.sh: Deleted.
5485 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5487 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5488 whitespace error for declaration of names member variable.
5489 (struct riscv_register_feature): Add new prefer_first_name member
5490 variable, and fix whitespace error in declaration of registers.
5491 (riscv_xreg_feature): Initialize prefer_first_name field.
5492 (riscv_freg_feature): Likewise.
5493 (riscv_virtual_feature): Likewise.
5494 (riscv_csr_feature): Likewise.
5495 (riscv_register_name): Expand on comments. Remove register name
5496 modifications for CSR and virtual registers.
5498 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5500 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5503 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5505 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5507 (class riscv_pending_register_alias): New class.
5508 (riscv_check_tdesc_feature): Take vector of pending aliases and
5509 populate it as appropriate.
5510 (riscv_setup_register_aliases): Delete.
5511 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5512 to riscv_check_tdesc_feature in all cases. Use the vector to
5513 create the register aliases.
5515 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5517 * sol2-tdep.c (sol2_static_transform_name): Remove.
5518 (sol2_init_abi): Don't register it.
5519 * gdbarch.sh (static_transform_name): Remove.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5522 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5523 gdbarch_static_transform_name.
5524 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5525 * stabsread.c (define_symbol) <'X'>: Remove.
5526 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5529 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5530 <'S'>: Remove call to gdbarch_static_transform_name.
5532 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5534 * procfs.c (procfs_pre_trace): New function.
5535 (procfs_target::create_inferior): Pass it to fork_inferior.
5537 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5539 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5540 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5541 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5542 sol2-tdep.o, sparc-sol2-tdep.o.
5543 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5544 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5545 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5546 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5548 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5550 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5551 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5553 Remove calls to set_gdbarch_skip_solib_resolver,
5554 set_gdbarch_core_pid_to_str.
5555 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5556 (i386_sol2_static_transform_name): Remove.
5557 (i386_sol2_init_abi): Call sol2_init_abi.
5558 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5559 set_gdbarch_static_transform_name,
5560 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5561 Use sol2_sigtramp_p.
5562 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5563 (sol2_sigtramp_p): New function.
5564 (sol2_static_transform_name): New function.
5565 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5566 (sol2_init_abi): New function.
5567 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5568 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5569 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5570 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5571 (sparc_sol2_static_transform_name): Remove.
5572 (sparc32_sol2_init_abi): Call sol2_init_abi.
5573 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5574 set_gdbarch_static_transform_name,
5575 set_gdbarch_skip_solib_resolver,
5576 set_gdbarch_core_pid_to_str.
5577 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5578 (sparc_sol2_static_transform_name): Remove
5579 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5580 call sol2_sigtramp_p.
5581 (sparc64_sol2_init_abi): Call sol2_init_abi.
5582 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5583 set_gdbarch_static_transform_name,
5584 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5586 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5588 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5589 * exec.c (validate_exec_file): If from_tty, set both
5590 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5591 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5592 and from_tty, unconditionally ask a confirmation.
5594 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5596 * target-descriptions.c (tdesc_architecture_name): Protect against
5597 NULL pointer dereference.
5598 (maint_print_xml_tdesc_cmd): New function.
5599 (_initialize_target_descriptions): Register new 'maint print
5600 xml-tdesc' command and give it the filename completer.
5601 * NEWS: Mention new 'maint print xml-tdesc' command.
5603 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5605 * target-descriptions.c (class tdesc_compatible_info): New class.
5606 (struct target_desc): Change type of compatible vector.
5607 (tdesc_compatible_p): Update for change in type of
5608 target_desc::compatible.
5609 (tdesc_compatible_info_list): New function.
5610 (tdesc_compatible_info_arch_name): New function.
5611 (tdesc_add_compatible): Update for change in type of
5612 target_desc::compatible.
5613 (print_c_tdesc::visit_pre): Likewise.
5615 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5617 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5618 whitespace to underscore.
5619 (maint_print_c_tdesc_cmd): Use fake filename for target
5620 descriptions that came from the target.
5621 (_initialize_target_descriptions): Add filename command completion
5622 for 'maint print c-tdesc'.
5624 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5626 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5629 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5631 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5633 (dwarf2_find_location_expression): Likewise.
5634 (call_site_parameter_matches): Likewise.
5635 (dwarf2_compile_expr_to_ax): Likewise.
5636 (disassemble_dwarf_expression): Likewise.
5637 (loclist_describe_location): Likewise.
5639 2020-06-23 Pedro Alves <palves@redhat.com>
5641 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5642 progspace-and-thread.h. Include scoped-mock-context.h instead.
5643 (register_to_value_test): Use scoped_mock_context.
5644 * regcache.c: Include "scoped-mock-context.h".
5645 (cooked_read_test): Don't error out if a target is already pushed.
5646 Use scoped_mock_context. Adjust.
5647 * scoped-mock-context.h: New file.
5649 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5651 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5653 (ada_language::is_string_type_p): New member function.
5654 * c-lang.c (c_language_data): Delete la_is_string_type_p
5656 (cplus_language_data): Likewise.
5657 (asm_language_data): Likewise.
5658 (minimal_language_data): Likewise.
5659 * d-lang.c (d_language_data): Likewise.
5660 * f-lang.c (f_is_string_type_p): Delete function, implementation
5661 moved to f_language::is_string_type_p.
5662 (f_language_data): Delete la_is_string_type_p initializer.
5663 (f_language::is_string_type_p): New member function,
5664 implementation from f_is_string_type_p.
5665 * go-lang.c (go_is_string_type_p): Delete function, implementation
5666 moved to go_language::is_string_type_p.
5667 (go_language_data): Delete la_is_string_type_p initializer.
5668 (go_language::is_string_type_p): New member function,
5669 implementation from go_is_string_type_p.
5670 * language.c (language_defn::is_string_type_p): Define new member
5672 (default_is_string_type_p): Make static, add comment copied from
5674 (unknown_language_data): Delete la_is_string_type_p initializer.
5675 (unknown_language::is_string_type_p): New member function.
5676 (auto_language_data): Delete la_is_string_type_p initializer.
5677 (auto_language::is_string_type_p): New member function.
5678 * language.h (language_data): Delete la_is_string_type_p field.
5679 (language_defn::is_string_type_p): Declare new function.
5680 (default_is_string_type_p): Delete desclaration, move comment to
5682 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5683 moved to m2_language::is_string_type_p.
5684 (m2_language_data): Delete la_is_string_type_p initializer.
5685 (m2_language::is_string_type_p): New member function,
5686 implementation from m2_is_string_type_p.
5687 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5689 * opencl-lang.c (opencl_language_data): Likewise.
5690 * p-lang.c (pascal_is_string_type_p): Delete function,
5691 implementation moved to pascal_language::is_string_type_p.
5692 (pascal_language_data): Delete la_is_string_type_p initializer.
5693 (pascal_language::is_string_type_p): New member function,
5694 implementation from pascal_is_string_type_p.
5695 * rust-lang.c (rust_is_string_type_p): Delete function,
5696 implementation moved to rust_language::is_string_type_p.
5697 (rust_language_data): Delete la_is_string_type_p initializer.
5698 (rust_language::is_string_type_p): New member function,
5699 implementation from rust_is_string_type_p.
5700 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5703 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5705 * ada-lang.c (ada_language_data): Delete la_print_typedef
5707 (ada_language::print_typedef): New member function.
5708 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5709 (cplus_language_data): Likewise.
5710 (asm_language_data): Likewise.
5711 (minimal_language_data): Likewise.
5712 * d-lang.c (d_language_data): Likewise.
5713 * f-lang.c (f_language_data): Likewise.
5714 (f_language::print_typedef): New member function.
5715 * go-lang.c (go_language_data): Delete la_print_typedef
5717 * language.c (language_defn::print_typedef): Define member
5719 (unknown_language_data): Delete la_print_typedef initializer.
5720 (unknown_language::print_typedef): New member function.
5721 (auto_language_data): Delete la_print_typedef initializer.
5722 (auto_language::print_typedef): New member function.
5723 * language.h (language_data): Delete la_print_typedef field.
5724 (language_defn::print_typedef): Declare new member function.
5725 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5726 (default_print_typedef): Delete declaration.
5727 * m2-lang.c (m2_language_data): Delete la_print_typedef
5729 (m2_language::print_typedef): New member function.
5730 * objc-lang.c (objc_language_data): Delete la_print_typedef
5732 * opencl-lang.c (opencl_language_data): Likewise.
5733 * p-lang.c (pascal_language_data): Likewise.
5734 (pascal_language::print_typedef): New member function.
5735 * rust-lang.c (rust_print_typedef): Delete function,
5736 implementation moved to rust_language::print_typedef.
5737 (rust_language): Delete la_print_typedef initializer.
5738 (rust_language::print_typedef): New member function,
5739 implementation from rust_print_typedef.
5740 * typeprint.c (default_print_typedef): Delete.
5742 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5744 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5745 (ada_language::printstr): New member function.
5746 * c-lang.c (c_language_data): Delete la_printstr initializer.
5747 (cplus_language_data): Likewise.
5748 (asm_language_data): Likewise.
5749 (minimal_language_data): Likewise.
5750 * d-lang.c (d_language_data): Likewise.
5751 * f-lang.c (f_printstr): Rename to f_language::printstr.
5752 (f_language_data): Delete la_printstr initializer.
5753 (f_language::printstr): New member function, implementation from
5755 * go-lang.c (go_language_data): Delete la_printstr initializer.
5756 * language.c (language_defn::printstr): Define new member
5758 (unk_lang_printstr): Delete.
5759 (unknown_language_data): Delete la_printstr initializer.
5760 (unknown_language::printstr): New member function.
5761 (auto_language_data): Delete la_printstr initializer.
5762 (auto_language::printstr): New member function.
5763 * language.h (language_data): Delete la_printstr field.
5764 (language_defn::printstr): Declare new member function.
5765 (LA_PRINT_STRING): Update call to printstr.
5766 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5767 (m2_language_data): Delete la_printstr initializer.
5768 (m2_language::printstr): New member function, implementation from
5770 * objc-lang.c (objc_language_data): Delete la_printstr
5772 * opencl-lang.c (opencl_language_data): Likewise.
5773 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5774 (pascal_language_data): Delete la_printstr initializer.
5775 (pascal_language::printstr): New member function, implementation
5776 from pascal_printstr.
5777 * p-lang.h (pascal_printstr): Delete declaration.
5778 * rust-lang.c (rust_printstr): Update header comment.
5779 (rust_language_data): Delete la_printstr initializer.
5780 (rust_language::printstr): New member function.
5782 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5784 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5785 (ada_language::printchar): New member function.
5786 * c-lang.c (c_language_data): Delete la_printchar initializer.
5787 (cplus_language_data): Likewise.
5788 (asm_language_data): Likewise.
5789 (minimal_language_data): Likewise.
5790 * d-lang.c (d_language_data): Likewise.
5791 * f-lang.c (f_printchar): Rename to f_language::printchar.
5792 (f_language_data): Delete la_printchar initializer.
5793 (f_language::printchar): New member function, implementation from
5795 * go-lang.c (go_language_data): Delete la_printchar initializer.
5796 * language.c (unk_lang_printchar): Delete.
5797 (language_defn::printchar): Define new member function.
5798 (unknown_language_data): Delete la_printchar initializer.
5799 (unknown_language::printchar): New member function.
5800 (auto_language_data): Delete la_printchar initializer.
5801 (auto_language::printchar): New member function.
5802 * language.h (language_data): Delete la_printchar field.
5803 (language_defn::printchar): Declare new member function.
5804 (LA_PRINT_CHAR): Update call to printchar.
5805 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5806 (m2_language::printchar): New member function.
5807 * objc-lang.c (objc_language_data): Delete la_printchar
5809 * opencl-lang.c (opencl_language_data): Likewise.
5810 * p-lang.c (pascal_language_data): Delete la_printchar
5812 (pascal_language::printchar): New member function.
5813 * rust-lang.c (rust_printchar): Rename to
5814 rust_language::printchar.
5815 (rust_language_data): Delete la_printchar initializer.
5816 (rust_language::printchar): New member function, implementation
5817 from rust_printchar.
5819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5821 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5822 (ada_language_data): Delete la_emitchar initializer.
5823 (ada_language::emitchar): New member function, implementation from
5825 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5826 (cplus_language_data): Likewise.
5827 (asm_language_data): Likewise.
5828 (minimal_language_data): Likewise.
5829 * d-lang.c (d_language_data): Likewise.
5830 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5831 (f_language_data): Delete la_emitchar initializer.
5832 (f_language::emitchar): New member function, implementation from
5834 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5835 * language.c (unk_lang_emit_char): Delete.
5836 (language_defn::emitchar): New member function definition.
5837 (unknown_language_data): Delete la_emitchar initializer.
5838 (unknown_language::emitchar): New member function.
5839 (auto_language_data): Delete la_emitchar initializer.
5840 (auto_language::emitchar): New member function.
5841 * language.h (language_data): Delete la_emitchar field.
5842 (language_defn::emitchar): New member field declaration.
5843 (LA_EMIT_CHAR): Update call to emitchar.
5844 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5845 (m2_language_data): Delete la_emitchar initializer.
5846 (m2_language::emitchar): New member function, implementation from
5848 * objc-lang.c (objc_language_data): Delete la_emitchar
5850 * opencl-lang.c (opencl_language_data): Likewise.
5851 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5852 (pascal_language_data): Delete la_emitchar initializer.
5853 (pascal_language::emitchar): New member function, implementation
5854 from pascal_emit_char.
5855 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5856 (rust_language_data): Delete la_emitchar initializer.
5857 (rust_language::emitchar): New member function, implementation
5860 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5862 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5863 (ada_language_data): Delete la_post_parser initializer.
5864 (ada_language::post_parser): New member function.
5865 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5866 (cplus_language_data): Likewise.
5867 (asm_language_data): Likewise.
5868 (minimal_language_data): Likewise.
5869 * d-lang.c (d_language_data): Likewise.
5870 * f-lang.c (f_language_data): Likewise.
5871 * go-lang.c (go_language_data): Likewise.
5872 * language.c (unknown_language_data): Likewise.
5873 (auto_language_data): Likewise.
5874 * language.h (language_data): Delete la_post_parser field.
5875 (language_defn::post_parser): New member function.
5876 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5877 * objc-lang.c (objc_language_data): Likewise.
5878 * opencl-lang.c (opencl_language_data): Likewise.
5879 * p-lang.c (pascal_language_data): Likewise.
5880 * parse.c (parse_exp_in_context): Update call to post_parser.
5881 (null_post_parser): Delete definition.
5882 * parser-defs.h (null_post_parser): Delete declaration.
5883 * rust-lang.c (rust_language_data): Delete la_post_parser
5886 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5888 * ada-lang.c (parse): Rename to ada_language::parser.
5889 (ada_language_data): Delete la_parser initializer.
5890 (ada_language::parser): New member function, implementation from
5892 * c-lang.c (c_language_data): Delete la_parser initializer.
5893 (cplus_language_data): Likewise.
5894 (asm_language_data): Likewise.
5895 (minimal_language_data): Likewise.
5896 * d-lang.c (d_language_data): Likewise.
5897 (d_language::parser): New member function.
5898 * f-lang.c (f_language_data): Delete la_parser initializer.
5899 (f_language::parser): New member function.
5900 * go-lang.c (go_language_data): Delete la_parser initializer.
5901 (go_language::parser): New member function.
5902 * language.c (unk_lang_parser): Delete.
5903 (language_defn::parser): Define new member function.
5904 (unknown_language_data): Delete la_parser initializer.
5905 (unknown_language::parser): New member function.
5906 (auto_language_data): Delete la_parser initializer.
5907 (auto_language::parser): New member function.
5908 * language.h (language_data): Delete la_parser field.
5909 (language_defn::parser): Declare new member function.
5910 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5911 (m2_language::parser): New member function.
5912 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5913 * opencl-lang.c (opencl_language_data): Likewise.
5914 * p-lang.c (pascal_language_data): Likewise.
5915 (pascal_language::parser): New member function.
5916 * parse.c (parse_exp_in_context): Update call to parser.
5917 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5918 (rust_language::parser): New member function.
5920 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5922 * top.c (print_gdb_configuration): Print --with-python-libdir
5923 configuration value.
5925 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5927 * NEWS: Mention change to the alias command.
5929 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5931 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5932 (alias_command_completer)
5933 (make_alias_options_def_group): New functions.
5934 (alias_opts, alias_option_defs): New struct and array.
5935 (alias_usage_error): Update usage.
5936 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5937 Use option framework.
5938 (_initialize_cli_cmds): Update alias command help.
5939 Update aliases command help.
5941 Add NULL for new default_args lookup_cmd argument.
5942 (valid_command_p): Rename to validate_aliased_command.
5943 Add NULL for new default_args lookup_cmd argument. Verify that the
5944 aliased_command has no default args.
5945 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5946 (lookup_cmd_1, lookup_cmd): New argument default_args.
5948 Add NULL for new default_args lookup_cmd argument.
5949 (print_help_for_command): Show default args under the layout
5950 alias some_alias = some_aliased_cmd some_alias_default_arg.
5951 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5952 xfree default_args in destructor.
5953 * cli/cli-script.c (process_next_line, do_define_command):
5954 Add NULL for new default_args lookup_cmd argument.
5955 * command.h: Declare new default_args argument in lookup_cmd
5957 * completer.c (complete_line_internal_1):
5958 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5959 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5960 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5962 * infcmd.c (_initialize_infcmd): Likewise.
5963 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5964 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5965 * python/py-param.c (add_setshow_generic): Likewise.
5966 * remote.c (_initialize_remote): Likewise.
5967 * top.c (execute_command): Prepend default_args if command has some.
5969 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5970 * tracepoint.c (validate_actionline, encode_actions_1):
5971 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5973 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5975 * jit.c (jit_read_descriptor): Use bool as the return type.
5976 (jit_breakpoint_re_set_internal): Use bool as the return type.
5977 Invert the return value logic; return true if the jit breakpoint
5978 has been successfully initialized.
5979 (jit_inferior_init): Update the call to
5980 jit_breakpoint_re_set_internal.
5982 2020-06-22 Pedro Alves <palves@redhat.com>
5985 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5986 Use the current inferior instead. Don't return
5987 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5989 * sol-thread.c (sol_thread_target::wait): Don't reference
5991 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5992 (sol_update_thread_list_callback): Use the current inferior's pid
5993 instead of inferior_ptid.
5995 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5997 * procfs.c: Cleanup many comments.
5999 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
6000 (AFTER_WATCHFLAG): Replace by value.
6002 (MAIN_PROC_NAME_FORMAT): Inline ...
6003 (create_procinfo): ... here.
6005 (procfs_debug_inferior): Remove SYS_exec handling.
6006 (syscall_is_exec): Likewise.
6007 (procfs_set_exec_trap): Likewise.
6009 (syscall_is_lwp_exit): Inline in callers.
6010 (syscall_is_exit): Likewise.
6011 (syscall_is_exec): Likewise.
6012 (syscall_is_lwp_create): Likewise.
6014 (invalidate_cache): Remove #if 0 code.
6016 (make_signal_thread_runnable): Remove.
6017 (procfs_target::resume): Remove #if 0 code.
6019 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6022 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
6024 (procfs_target::create_inferior): ... here.
6026 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6028 * exec.c (validate_exec_file): Ensure the build-id is up to
6029 date by calling reopen_exec_file (that checks file timestamp
6030 to decide to re-read the file).
6032 2020-06-18 Pedro Alves <palves@redhat.com>
6035 * gdbthread.h (delete_thread, delete_thread_silent)
6036 (find_thread_ptid): Update comments.
6037 * thread.c (current_thread_): New global.
6038 (is_current_thread): Move higher, and reimplement.
6039 (inferior_thread): Reimplement.
6040 (set_thread_exited): Use bool. Add assertions.
6041 (add_thread_silent): Simplify thread-reuse handling by always
6042 calling delete_thread.
6043 (delete_thread): Remove intro comment.
6044 (find_thread_ptid): Skip exited threads.
6045 (switch_to_thread_no_regs): Write to current_thread_.
6046 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
6047 INFERIOR_PTID. Clear current_thread_.
6049 2020-06-18 Pedro Alves <palves@redhat.com>
6051 * aix-thread.c (pd_update): Use switch_to_thread.
6053 2020-06-18 Pedro Alves <palves@redhat.com>
6055 * ravenscar-thread.c (ravenscar_thread_target): Update.
6056 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6057 (ravenscar_thread_target::add_active_thread): ... this. Don't
6058 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6059 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6061 2020-06-18 Pedro Alves <palves@redhat.com>
6063 * nat/windows-nat.c (current_windows_thread): Remove.
6064 * nat/windows-nat.h (current_windows_thread): Remove.
6065 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6067 (display_selectors): Adjust to fetch the current
6068 windows_thread_info based on inferior_ptid.
6069 (fake_create_process): No longer write to current_windows_thread.
6070 (windows_nat_target::get_windows_debug_event):
6071 Don't set inferior_ptid or current_windows_thread.
6072 (windows_nat_target::wait): Adjust to not rely on
6073 current_windows_thread.
6074 (do_initial_windows_stuff): Now a method of windows_nat_target.
6075 Switch to the last_ptid thread.
6076 (windows_nat_target::attach): Adjust.
6077 (windows_nat_target::detach): Use switch_to_no_thread instead of
6078 writing to inferior_ptid directly.
6079 (windows_nat_target::create_inferior): Adjust.
6081 2020-06-18 Pedro Alves <palves@redhat.com>
6083 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6085 2020-06-18 Pedro Alves <palves@redhat.com>
6087 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6088 after creating it, instead of writing to inferior_ptid. Don't
6089 write to inferior_ptid.
6091 2020-06-18 Pedro Alves <palves@redhat.com>
6093 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6095 2020-06-18 Pedro Alves <palves@redhat.com>
6097 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6098 it, instead of writing to inferior_ptid.
6100 2020-06-18 Pedro Alves <palves@redhat.com>
6102 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6105 2020-06-18 Pedro Alves <palves@redhat.com>
6107 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6108 instead of writing to inferior_ptid directly.
6110 2020-06-18 Pedro Alves <palves@redhat.com>
6112 * corelow.c (core_target::close): Use switch_to_no_thread instead
6113 of writing to inferior_ptid directly.
6114 (add_to_thread_list, core_target_open): Use switch_to_thread
6115 instead of writing to inferior_ptid directly.
6117 2020-06-18 Pedro Alves <palves@redhat.com>
6119 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6121 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6123 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6124 inferior_ptid directly.
6125 (darwin_nat_target::init_thread_list): Switch to thread, instead
6126 of writing to inferior_ptid.
6127 (darwin_nat_target::attach): Don't write to inferior_ptid.
6128 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6130 2020-06-18 Pedro Alves <palves@redhat.com>
6132 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6134 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6135 Instead use switch_to_thread.
6136 (gnu_nat_target::detach): Use switch_to_no_thread
6137 instead of writing to inferior_ptid directly. Used passed-in
6138 inferior instead of looking up the inferior by pid.
6140 2020-06-18 Pedro Alves <palves@redhat.com>
6142 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6145 2020-06-18 Pedro Alves <palves@redhat.com>
6147 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6149 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6151 (nto_procfs_target::detach): Avoid referencing
6152 inferior_ptid. Use switch_to_no_thread instead of writing to
6153 inferior_ptid directly.
6154 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6155 instead of writing to inferior_ptid directly.
6156 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6159 2020-06-18 Pedro Alves <palves@redhat.com>
6161 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6162 after creating it, instead of writing to inferior_ptid.
6163 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6164 to inferior_ptid directly.
6165 (gdbsim_target::wait): Don't write to inferior_ptid.
6167 2020-06-18 Pedro Alves <palves@redhat.com>
6169 * remote.c (remote_target::remote_notice_new_inferior): Use
6170 switch_to_thread instead of writing to inferior_ptid directly.
6171 (remote_target::add_current_inferior_and_thread): Use
6172 switch_to_no_thread instead of writing to inferior_ptid directly.
6173 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6174 and switch_to_thread instead of using set_current_inferior or
6175 writing to inferior_ptid directly.
6177 2020-06-18 Pedro Alves <palves@redhat.com>
6179 * tracectf.c (ctf_target_open): Switch to added thread instead of
6180 writing to inferior_ptid directly.
6181 (ctf_target::close): Use switch_to_no_thread instead of writing to
6182 inferior_ptid directly.
6184 2020-06-18 Pedro Alves <palves@redhat.com>
6186 * tracefile-tfile.c (tfile_target_open): Don't write to
6187 inferior_ptid directly, instead switch to added thread.
6188 (tfile_target::close): Use switch_to_no_thread instead of writing
6189 to inferior_ptid directly.
6191 2020-06-18 Pedro Alves <palves@redhat.com>
6193 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6194 (procfs_target::detach): Use switch_to_no_thread
6195 instead of writing to inferior_ptid directly.
6196 (do_attach): Change return type to void. Switch to the added
6198 (procfs_target::create_inferior): Switch to the added thread.
6199 (procfs_do_thread_registers): Don't write to inferior_ptid.
6201 2020-06-18 Pedro Alves <palves@redhat.com>
6203 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6204 of writing to inferior_ptid.
6205 (scoped_restore_exited_inferior): Delete.
6206 (handle_vfork_child_exec_or_exit): Simplify using
6207 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6208 instead of writing to inferior_ptid.
6209 (THREAD_STOPPED_BY): Delete.
6210 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6211 (thread_stopped_by_hw_breakpoint): Delete.
6212 (save_waitstatus): Use
6213 scoped_restore_current_thread+switch_to_thread, and call
6214 target_stopped_by_watchpoint instead of
6215 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6216 instead of thread_stopped_by_sw_breakpoint, and
6217 target_stopped_by_hw_breakpoint instead of
6218 thread_stopped_by_hw_breakpoint.
6219 (handle_inferior_event)
6220 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6221 inferior_ptid directly, nor
6222 set_current_inferior/set_current_program_space. Use
6223 switch_to_thread / switch_to_inferior_no_thread instead.
6225 2020-06-18 Pedro Alves <palves@redhat.com>
6227 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6228 instead of writing to inferior_ptid.
6230 2020-06-18 Pedro Alves <palves@redhat.com>
6232 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6234 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6235 to the added thread.
6236 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6237 instead of writing to inferior_ptid.
6239 2020-06-18 Pedro Alves <palves@redhat.com>
6241 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6242 (register_to_value_test): Mock a program_space too. Heap-allocate
6243 the address space. Don't write to inferior_ptid. Use
6244 switch_to_thread instead.
6246 2020-06-18 Pedro Alves <palves@redhat.com>
6248 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6250 (find_signalled_thread()): New, factored out from
6251 linux_make_corefile_notes and adjusted to handle exited threads.
6252 (linux_make_corefile_notes): Adjust to use the new
6253 find_signalled_thread.
6255 2020-06-18 Pedro Alves <palves@redhat.com>
6257 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6258 of saving/restoring inferior_ptid.
6260 2020-06-17 Tom Tromey <tom@tromey.com>
6262 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6263 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6265 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6267 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6269 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6272 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6274 * regformats/reg-arm.dat: Remove.
6275 * regformats/reg-bfin.dat: Remove.
6276 * regformats/reg-cris.dat: Remove.
6277 * regformats/reg-crisv32.dat: Remove.
6278 * regformats/reg-m32r.dat: Remove.
6279 * regformats/reg-tilegx.dat: Remove.
6280 * regformats/reg-tilegx32.dat: Remove.
6282 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6284 * features/Makefile (WHICH): Remove arm files.
6285 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6286 * regformats/arm/arm-with-neon.dat: Remove.
6287 * regformats/arm/arm-with-vfpv2.dat: Remove.
6288 * regformats/arm/arm-with-vfpv3.dat: Remove.
6290 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6292 * features/Makefile (XMLTOC): Remove rx.xml.
6294 2020-06-17 Pedro Alves <palves@redhat.com>
6296 * gdbthread.h (thread_control_state) <trap_expected> Update
6299 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6301 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6302 ada_language::lookup_symbol_nonlocal.
6303 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6304 (ada_language::lookup_symbol_nonlocal): New member function,
6305 implementation from ada_lookup_symbol_nonlocal.
6306 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6308 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6310 (cplus_language::lookup_symbol_nonlocal): New member function.
6311 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6312 (minimal_language_data) Likewise.
6313 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6314 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6316 (d_language::lookup_symbol_nonlocal): New member function.
6317 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6319 (f_language::lookup_symbol_nonlocal): New member function.
6320 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6322 * language.c (unknown_language_data): Likewise.
6323 (auto_language_data): Likewise.
6324 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6326 (language_defn::lookup_symbol_nonlocal): New member function.
6327 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6329 * objc-lang.c (objc_language_data): Likewise.
6330 * opencl-lang.c (opencl_language_data): Likewise.
6331 * p-lang.c (pascal_language_data): Likewise.
6332 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6333 rust_language::lookup_symbol_nonlocal.
6334 (rust_language_data): Delete la_lookup_symbol_nonlocal
6336 (rust_language::lookup_symbol_nonlocal): New member function,
6337 implementation from rust_lookup_symbol_nonlocal.
6338 * symtab.c (lookup_symbol_aux): Update call to
6339 lookup_symbol_nonlocal.
6340 (basic_lookup_symbol_nonlocal): Rename to...
6341 (language_defn::lookup_symbol_nonlocal): ...this, and update
6342 header comment. Remove language_defn parameter, and replace with
6344 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6346 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6348 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6350 (ada_language::value_print_inner): New member function.
6351 * c-lang.c (c_language_data): Delete la_value_print_inner
6353 (cplus_language_data): Likewise.
6354 (asm_language_data): Likewise.
6355 (minimal_language_data): Likewise.
6356 * d-lang.c (d_language_data): Likewise.
6357 (d_language::value_print_inner): New member function.
6358 * f-lang.c (f_language_data): Delete la_value_print_inner
6360 (f_language::value_print_inner): New member function.
6361 * f-lang.h (f_value_print_innner): Rename to...
6362 (f_value_print_inner): ...this (note spelling of 'inner').
6363 * f-valprint.c (f_value_print_innner): Rename to...
6364 (f_value_print_inner): ...this (note spelling of 'inner').
6365 * go-lang.c (go_language_data): Delete la_value_print_inner
6367 (go_language::value_print_inner): New member function.
6368 * language.c (language_defn::value_print_inner): Define new member
6370 (unk_lang_value_print_inner): Delete.
6371 (unknown_language_data): Delete la_value_print_inner initializer.
6372 (unknown_language::value_print_inner): New member function.
6373 (auto_language_data): Delete la_value_print_inner initializer.
6374 (auto_language::value_print_inner): New member function.
6375 * language.h (language_data): Delete la_value_print_inner field.
6376 (language_defn::value_print_inner): Delcare new member function.
6377 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6379 (m2_language::value_print_inner): New member function.
6380 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6382 * opencl-lang.c (opencl_language_data): Likewise.
6383 * p-lang.c (pascal_language_data): Likewise.
6384 (pascal_language::value_print_inner): New member function.
6385 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6387 (rust_language::value_print_inner): New member function.
6388 * valprint.c (do_val_print): Update call to value_print_inner.
6390 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6392 * ada-lang.c (ada_language_data): Delete la_value_print
6394 (ada_language::value_print): New member function.
6395 * c-lang.c (c_language_data): Delete la_value_print initializer.
6396 (cplus_language_data): Likewise.
6397 (asm_language_data): Likewise.
6398 (minimal_language_data): Likewise.
6399 * d-lang.c (d_language_data): Likewise.
6400 * f-lang.c (f_language_data): Likewise.
6401 * go-lang.c (go_language_data): Likewise.
6402 * language.c (unk_lang_value_print): Delete.
6403 (language_defn::value_print): Define new member function.
6404 (unknown_language_data): Delete la_value_print initializer.
6405 (unknown_language::value_print): New member function.
6406 (auto_language_data): Delete la_value_print initializer.
6407 (auto_language::value_print): New member function.
6408 * language.h (language_data): Delete la_value_print field.
6409 (language_defn::value_print): Declare new member function.
6410 (LA_VALUE_PRINT): Update call to value_print.
6411 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6412 * objc-lang.c (objc_language_data): Likewise.
6413 * opencl-lang.c (opencl_language_data): Likewise.
6414 * p-lang.c (pascal_language_data): Likewise.
6415 (pascal_language::value_print): New member function.
6416 * rust-lang.c (rust_language_data): Delete la_value_print
6419 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6421 * ada-lang.c (ada_watch_location_expression): Rename to
6422 ada_language::watch_location_expression.
6423 (ada_language_data): Delete la_watch_location_expression
6425 (ada_language::watch_location_expression): New member function,
6426 implementation from ada_watch_location_expression.
6427 * breakpoint.c (watch_command_1): Update call to
6428 watch_location_expression.
6429 * c-lang.c (c_watch_location_expression): Rename to
6430 language_defn::watch_location_expression.
6431 (c_language_data): Delete la_watch_location_expression
6433 (cplus_language_data): Likewise.
6434 (asm_language_data): Likewise.
6435 (minimal_language_data): Likewise.
6436 * c-lang.h (c_watch_location_expression): Delete declaration.
6437 * d-lang.c (d_language_data): Delete la_watch_location_expression
6439 * f-lang.c (f_language_data): Likewise.
6440 * go-lang.c (go_language_data): Likewise.
6441 * language.c (language_defn::watch_location_expression): Member
6442 function implementation from c_watch_location_expression.
6443 (unknown_language_data): Delete la_watch_location_expression
6445 (auto_language_data): Likewise.
6446 * language.h (language_data): Delete la_watch_location_expression
6448 (language_defn::watch_location_expression): Declare new member
6450 * m2-lang.c (m2_language_data): Delete
6451 la_watch_location_expression initializer.
6452 * objc-lang.c (objc_language_data): Likewise.
6453 * opencl-lang.c (opencl_language_data): Likewise.
6454 * p-lang.c (pascal_language_data): Likewise.
6455 * rust-lang.c (rust_watch_location_expression): Rename to
6456 rust_language::watch_location_expression.
6457 (rust_language_data): Delete la_watch_location_expression
6459 (rust_language::watch_location_expression): New member function,
6460 implementation from rust_watch_location_expression.
6462 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6464 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6465 ada_language::collect_symbol_completion_matches.
6466 (ada_language_data): Delete la_collect_symbol_completion_matches
6468 (ada_language::collect_symbol_completion_matches): New member
6469 function, implementation from
6470 ada_collect_symbol_completion_matches.
6471 * c-lang.c (c_language_data): Delete
6472 la_collect_symbol_completion_matches initializer.
6473 (cplus_language_data): Likewise.
6474 (asm_language_data): Likewise.
6475 (minimal_language_data): Likewise.
6476 * d-lang.c (d_language_data): Likewise.
6477 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6478 f_language::collect_symbol_completion_matches.
6479 (f_language_data): Delete la_collect_symbol_completion_matches
6481 (f_language::collect_symbol_completion_matches) New member
6482 function, implementation from f_collect_symbol_completion_matches.
6483 * go-lang.c (go_language_data): Delete
6484 la_collect_symbol_completion_matches initializer.
6485 * language.c (unknown_language_data): Likewise.
6486 (auto_language_data): Likewise.
6487 * language.h (language_data): Delete
6488 la_collect_symbol_completion_matches field.
6489 (language_defn::collect_symbol_completion_matches): New member
6491 * m2-lang.c (m2_language_data): Delete
6492 la_collect_symbol_completion_matches initializer.
6493 * objc-lang.c (objc_language_data): Likewise.
6494 * opencl-lang.c (opencl_language_data): Likewise.
6495 * p-lang.c (pascal_language_data): Likewise.
6496 * rust-lang.c (rust_language_data): Likewise.
6497 * symtab.c (default_collect_symbol_completion_matches): Delete.
6498 (collect_symbol_completion_matches): Update call to
6499 collect_symbol_completion_matches.
6500 (collect_symbol_completion_matches_type): Likewise.
6501 * symtab.h (default_collect_symbol_completion_matches): Delete
6504 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6506 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6507 (ada_language_data): Delete la_word_break_characters initializer.
6508 (ada_language::word_break_characters): New member function.
6509 * c-lang.c (c_language_data): Delete la_word_break_characters
6511 (cplus_language_data): Likewise.
6512 (asm_language_data): Likewise.
6513 (minimal_language_data): Likewise.
6514 * completer.c: Update global comment.
6515 (advance_to_expression_complete_word_point): Update call to
6516 word_break_characters.
6517 (complete_files_symbols): Likewise.
6518 (complete_line_internal_1): Likewise.
6519 (default_completer_handle_brkchars): Likewise.
6520 (skip_quoted_chars): Likewise.
6521 * d-lang.c (d_language_data): Delete la_word_break_characters
6523 * f-lang.c (f_word_break_characters): Delete.
6524 (f_language_data): Delete la_word_break_characters initializer.
6525 (f_language::word_break_characters): New member function.
6526 * go-lang.c (go_language_data): Delete la_word_break_characters
6528 * language.c (unknown_language_data): Likewise.
6529 (auto_language_data): Likewise.
6530 * language.h (default_word_break_characters): Move declaration to
6531 earlier in the file.
6532 (language_data): Delete la_word_break_characters field.
6533 (language_defn::word_break_characters): New member function.
6534 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6536 * objc-lang.c (objc_language_data): Likewise.
6537 * opencl-lang.c (opencl_language_data): Likewise.
6538 * p-lang.c (pascal_language_data): Likewise.
6539 * rust-lang.c (rust_language_data): Likewise.
6541 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6543 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6544 (ada_language_data): Delete la_get_symbol_name_matcher
6546 (language_defn::get_symbol_name_matcher_inner): New member
6548 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6550 (cplus_language_data): Likewise.
6551 (cplus_language::get_symbol_name_matcher_inner): New member
6553 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6554 (minimal_language_data): Likewise.
6555 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6556 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6558 * dictionary.c (iter_match_first_hashed): Update call to
6559 get_symbol_name_matcher.
6560 (iter_match_next_hashed): Likewise.
6561 (iter_match_next_linear): Likewise.
6562 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6563 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6565 (f_language::get_symbol_name_matcher_inner): New member function.
6566 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6568 * language.c (default_symbol_name_matcher): Update header comment,
6570 (language_defn::get_symbol_name_matcher): New definition.
6571 (language_defn::get_symbol_name_matcher_inner): Likewise.
6572 (get_symbol_name_matcher): Delete.
6573 (unknown_language_data): Delete la_get_symbol_name_matcher
6575 (auto_language_data): Likewise.
6576 * language.h (language_data): Delete la_get_symbol_name_matcher
6578 (language_defn::get_symbol_name_matcher): New member function.
6579 (language_defn::get_symbol_name_matcher_inner): Likewise.
6580 (default_symbol_name_matcher): Delete declaration.
6581 * linespec.c (find_methods): Update call to
6582 get_symbol_name_matcher.
6583 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6585 * minsyms.c (lookup_minimal_symbol): Update call to
6586 get_symbol_name_matcher.
6587 (iterate_over_minimal_symbols): Likewise.
6588 * objc-lang.c (objc_language_data): Delete
6589 la_get_symbol_name_matcher initializer.
6590 * opencl-lang.c (opencl_language_data): Likewise.
6591 * p-lang.c (pascal_language_data): Likewise.
6592 * psymtab.c (psymbol_name_matches): Update call to
6593 get_symbol_name_matcher.
6594 * rust-lang.c (rust_language_data): Delete
6595 la_get_symbol_name_matcher initializer.
6596 * symtab.c (symbol_matches_search_name): Update call to
6597 get_symbol_name_matcher.
6598 (compare_symbol_name): Likewise.
6600 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6602 * ada-lang.c (ada_language_data): Delete la_compute_program
6604 * c-lang.c (c_language_data): Likewise.
6605 (c_language::compute_program): New member function.
6606 (cplus_language_data): Delete la_compute_program initializer.
6607 (cplus_language::compute_program): New member function.
6608 (asm_language_data): Delete la_compute_program initializer.
6609 (minimal_language_data): Likewise.
6610 * c-lang.h (c_compute_program): Update comment.
6611 (cplus_compute_program): Likewise.
6612 * compile/compile-c-support.c (c_compute_program): Likewise.
6613 (cplus_compute_program): Likewise.
6614 * compile/compile.c (compile_to_object): Update call to
6616 * d-lang.c (d_language_data): Delete la_compute_program
6618 * f-lang.c (f_language_data): Likewise.
6619 * go-lang.c (go_language_data): Likewise.
6620 * language.c (unknown_language_data): Likewise.
6621 (auto_language_data): Likewise.
6622 * language.h (language_data): Delete la_compute_program field.
6623 (language_defn::compute_program): New member function.
6624 * m2-lang.c (m2_language_data): Delete la_compute_program
6626 * objc-lang.c (objc_language_data): Likewise.
6627 * opencl-lang.c (opencl_language_data): Likewise.
6628 * p-lang.c (pascal_language_data): Likewise.
6629 * rust-lang.c (rust_language_data): Likewise.
6631 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6633 * ada-lang.c (ada_language_data) Delete
6634 la_class_name_from_physname initializer.
6635 * c-lang.c (c_language_data): Likewise.
6636 (cplus_language_data): Likewise.
6637 (cplus_language::class_name_from_physname): New member function.
6638 (asm_language_data): Delete la_class_name_from_physname
6640 (minimal_language_data): Likewise.
6641 * d-lang.c (d_language_data): Likewise.
6642 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6643 method on language_defn class.
6644 (guess_full_die_structure_name): Likewise.
6645 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6647 * go-lang.c (go_language_data): Likewise.
6648 * language.c (language_class_name_from_physname): Delete.
6649 (unk_lang_class_name): Delete.
6650 (unknown_language_data): Delete la_class_name_from_physname
6652 (auto_language_data): Likewise.
6653 * language.h (language_data): Delete la_class_name_from_physname
6655 (language_defn::class_name_from_physname): New function.
6656 (language_class_name_from_physname): Delete declaration.
6657 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6659 * objc-lang.c (objc_language_data): Likewise.
6660 * opencl-lang.c (opencl_language_data): Likewise.
6661 * p-lang.c (pascal_language_data): Likewise.
6662 * rust-lang.c (rust_language_data): Likewise.
6664 2020-06-16 Tom Tromey <tom@tromey.com>
6666 * tui/tui-data.h (STATUS_NAME): New macro.
6667 * tui/tui-layout.c (tui_remove_some_windows)
6668 (initialize_known_windows, tui_register_window)
6669 (tui_layout_split::remove_windows, initialize_layouts)
6670 (tui_new_layout_command): Don't use hard-coded window names.
6672 2020-06-16 Tom Tromey <tom@tromey.com>
6675 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6676 tui_initialize_readline. Only run once. Call rl_initialize.
6677 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6678 tui_initialize_readline.
6679 * tui/tui-io.c (tui_setup_io): Call
6680 tui_ensure_readline_initialized.
6681 * tui/tui-interp.c (tui_interp::init): Update.
6683 2020-06-16 Tom Tromey <tom@tromey.com>
6685 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6686 Also preserve the status window.
6688 2020-06-16 Tom Tromey <tom@tromey.com>
6690 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6691 where m_window==nullptr.
6693 2020-06-15 Tom Tromey <tromey@adacore.com>
6695 * windows-nat.c (windows_nat::handle_output_debug_string):
6697 (windows_nat::handle_ms_vc_exception): Update.
6698 * target.h (target_read_string): Change API.
6699 * target.c (target_read_string): Change API.
6700 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6702 * solib-frv.c (frv_current_sos): Update.
6703 * solib-dsbt.c (dsbt_current_sos): Update.
6704 * solib-darwin.c (darwin_current_sos): Update.
6705 * linux-thread-db.c (inferior_has_bug): Update.
6706 * expprint.c (print_subexp_standard): Update.
6707 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6708 (ada_exception_message_1): Update.
6710 2020-06-15 Tom Tromey <tromey@adacore.com>
6712 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6714 2020-06-15 Tom Tromey <tromey@adacore.com>
6716 * valprint.c (read_string): Update comment.
6717 * target.c (MIN): Remove.
6718 (target_read_string): Rewrite.
6720 2020-06-15 Tom Tromey <tromey@adacore.com>
6722 * corefile.c (read_memory_string): Remove.
6723 * ada-valprint.c (ada_value_print_ptr): Update.
6724 * ada-lang.h (ada_tag_name): Change return type.
6725 * ada-lang.c (type_from_tag): Update.
6726 (ada_tag_name_from_tsd): Change return type. Use
6728 (ada_tag_name): Likewise.
6729 * gdbcore.h (read_memory_string): Don't declare.
6731 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6733 * symtab.c (rbreak_command): Ignore Windows drive colon.
6735 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6737 * NEWS: Mention removed GDBserver host support.
6739 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6741 * features/riscv/rebuild-csr-xml.sh: Updated.
6743 2020-06-11 Tom Tromey <tom@tromey.com>
6746 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6748 2020-06-09 Jonny Grant <jg@jguk.org>
6749 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6751 * main.c (captured_main_1): Don't print new line after help.
6752 (print_gdb_help): add mailing list and IRC channel information
6753 to --help. Add new lines between items in the footer. Remove
6754 quotes around bug url.
6756 2020-06-11 Keith Seitz <keiths@redhat.com>
6759 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6760 Resolve typedefs for type length calculations.
6762 2020-06-10 Tom de Vries <tdevries@suse.de>
6765 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6766 (write_psymbols): Enable .gdb_index for ada.
6767 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6770 2020-06-10 Tom de Vries <tdevries@suse.de>
6772 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6773 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6774 namei" instead of "const char *name" argument.
6775 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6776 dw2_symtab_iter_init.
6778 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6780 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6781 to use type::field and field::type instead.
6783 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6785 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6786 to use field::type instead.
6788 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6790 * gdbtypes.h (struct field) <type, set_type>: New methods.
6791 Rename `type` field to...
6792 <m_type>: ... this. Change references throughout to use type or
6794 (FIELD_TYPE): Use field::type. Change call sites that modify
6795 the field's type to use field::set_type instead.
6797 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6799 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6800 to use type::index_type instead.
6802 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6804 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6806 (TYPE_INDEX_TYPE): Use type::index_type.
6807 * gdbtypes.c (create_array_type_with_stride): Likewise.
6809 2020-06-07 Tom Tromey <tom@tromey.com>
6811 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6813 (generic_value_print): Update.
6815 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6817 Revert commit 982a38f60b0.
6818 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6820 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6822 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6823 avoid use after free.
6825 2020-06-05 Tom de Vries <tdevries@suse.de>
6829 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6831 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6833 (dwarf2_read_debug_names): Likewise.
6834 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6835 object when re-using a per_bfd object with an index.
6837 2020-06-03 Tom de Vries <tdevries@suse.de>
6840 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6842 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6845 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6847 * ada-lang.c (ada_language_data): Delete skip_trampoline
6849 * c-lang.c (c_language_data): Likewise.
6850 (cplus_language_data): Likewise.
6851 (cplus_language::skip_trampoline): New member function.
6852 (asm_language_data): Delete skip_trampoline initializer.
6853 (minimal_language_data): Likewise.
6854 * d-lang.c (d_language_data): Likewise.
6855 * f-lang.c (f_language_data): Likewise.
6856 * go-lang.c (go_language_data): Likewise.
6857 * language.c (unk_lang_trampoline): Delete function.
6858 (skip_language_trampoline): Update.
6859 (unknown_language_data): Delete skip_trampoline initializer.
6860 (auto_language_data): Likewise.
6861 * language.h (language_data): Delete skip_trampoline field.
6862 (language_defn::skip_trampoline): New function.
6863 * m2-lang.c (m2_language_data): Delete skip_trampoline
6865 * objc-lang.c (objc_skip_trampoline): Delete function, move
6866 implementation to objc_language::skip_trampoline.
6867 (objc_language_data): Delete skip_trampoline initializer.
6868 (objc_language::skip_trampoline): New member function with
6869 implementation from objc_skip_trampoline.
6870 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6872 * p-lang.c (pascal_language_data): Likewise.
6873 * rust-lang.c (rust_language_data): Likewise.
6875 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6877 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6878 (ada_language::demangle): New member function.
6879 * c-lang.c (c_language_data): Delete la_demangle initializer.
6880 (cplus_language_data): Delete la_demangle initializer.
6881 (cplus_language::demangle): New member function.
6882 (asm_language_data): Delete la_demangle initializer.
6883 (minimal_language_data): Delete la_demangle initializer.
6884 * d-lang.c (d_language_data): Delete la_demangle initializer.
6885 (d_language::demangle): New member function.
6886 * f-lang.c (f_language_data): Delete la_demangle initializer.
6887 (f_language::demangle): New member function.
6888 * go-lang.c (go_language_data): Delete la_demangle initializer.
6889 (go_language::demangle): New member function.
6890 * language.c (language_demangle): Update.
6891 (unk_lang_demangle): Delete.
6892 (unknown_language_data): Delete la_demangle initializer.
6893 (unknown_language::demangle): New member function.
6894 (auto_language_data): Delete la_demangle initializer.
6895 (auto_language::demangle): New member function.
6896 * language.h (language_data): Delete la_demangle field.
6897 (language_defn::demangle): New function.
6898 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6899 * objc-lang.c (objc_language_data): Delete la_demangle
6901 (objc_language::demangle): New member function.
6902 * opencl-lang.c (opencl_language_data): Delete la_demangle
6904 * p-lang.c (pascal_language_data): Likewise.
6905 * rust-lang.c (rust_language_data): Likewise.
6906 (rust_language::demangle): New member function.
6908 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6910 * ada-lang.c (ada_language_data): Delete la_print_type
6912 (ada_language::print_type): New member function.
6913 * c-lang.c (c_language_data): Delete la_print_type initializer.
6914 (c_language::print_type): New member function.
6915 (cplus_language_data): Delete la_print_type initializer.
6916 (cplus_language::print_type): New member function.
6917 (asm_language_data): Delete la_print_type initializer.
6918 (asm_language::print_type): New member function.
6919 (minimal_language_data): Delete la_print_type initializer.
6920 (minimal_language::print_type): New member function.
6921 * d-lang.c (d_language_data): Delete la_print_type initializer.
6922 (d_language::print_type): New member function.
6923 * f-lang.c (f_language_data): Delete la_print_type initializer.
6924 (f_language::print_type): New member function.
6925 * go-lang.c (go_language_data): Delete la_print_type initializer.
6926 (go_language::print_type): New member function.
6927 * language.c (unk_lang_print_type): Delete.
6928 (unknown_language_data): Delete la_print_type initializer.
6929 (unknown_language::print_type): New member function.
6930 (auto_language_data): Delete la_print_type initializer.
6931 (auto_language::print_type): New member function.
6932 * language.h (language_data): Delete la_print_type field.
6933 (language_defn::print_type): New function.
6934 (LA_PRINT_TYPE): Update.
6935 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6936 (m2_language::print_type): New member function.
6937 * objc-lang.c (objc_language_data): Delete la_print_type
6939 (objc_language::print_type): New member function.
6940 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6941 to opencl_language::print_type.
6942 (opencl_language_data): Delete la_print_type initializer.
6943 (opencl_language::print_type): New member function, implementation
6944 from opencl_print_type.
6945 * p-lang.c (pascal_language_data): Delete la_print_type
6947 (pascal_language::print_type): New member function.
6948 * rust-lang.c (rust_print_type): Delete, implementation moved to
6949 rust_language::print_type.
6950 (rust_language_data): Delete la_print_type initializer.
6951 (rust_language::print_type): New member function, implementation
6952 from rust_print_type.
6954 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6956 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6957 implementation moves to...
6958 (ada_language::sniff_from_mangled_name): ...here. Update return
6960 (ada_language_data): Delete la_sniff_from_mangled_name
6962 * c-lang.c (c_language_data): Likewise.
6963 (cplus_language_data): Likewise.
6964 (cplus_language::sniff_from_mangled_name): New member function,
6965 implementation taken from gdb_sniff_from_mangled_name.
6966 (asm_language_data): Delete la_sniff_from_mangled_name
6968 (minimal_language_data): Likewise.
6969 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6970 implementation moves to cplus_language::sniff_from_mangled_name.
6971 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6972 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6974 (d_language::sniff_from_mangled_name): ...here.
6975 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6976 * f-lang.c (f_language_data): Likewise.
6977 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6979 (go_language::sniff_from_mangled_name): ...here.
6980 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6981 * language.c (language_sniff_from_mangled_name): Delete.
6982 (unknown_language_data): Delete la_sniff_from_mangled_name
6984 (auto_language_data): Likewise.
6985 * language.h (language_data): Delete la_sniff_from_mangled_name
6987 (language_defn::sniff_from_mangled_name): New function.
6988 (language_sniff_from_mangled_name): Delete declaration.
6989 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6991 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6992 implementation moves to...
6993 (objc_language::sniff_from_mangled_name): ...here.
6994 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6995 * opencl-lang.c (opencl_language_data): Likewise.
6996 * p-lang.c (pascal_language_data): Likewise.
6997 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6998 implementation moves to...
6999 (rust_language::sniff_from_mangled_name): ...here.
7000 (rust_language_data): Delete la_sniff_from_mangled_name
7002 * symtab.c (symbol_find_demangled_name): Call
7003 sniff_from_mangled_name member function.
7005 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7007 * ada-lang.c (ada_language_data): Delete la_search_name_hash
7009 * c-lang.c (c_language_data): Likewise.
7010 (cplus_language_data): Likewise.
7011 (cplus_language::search_name_hash): New member function.
7012 (asm_language_data): Delete la_search_name_hash initializer.
7013 (minimal_language_data): Likewise.
7014 * d-lang.c (d_language_data): Likewise.
7015 * dictionary.c (default_search_name_hash): Rename to...
7016 (language_defn::search_name_hash): ...this.
7017 * f-lang.c (f_language_data): Likewise.
7018 (f_language::search_name_hash): New member function.
7019 * go-lang.c (go_language_data): Delete la_search_name_hash
7021 * language.c (unknown_language_data): Likewise.
7022 (auto_language_data): Likewise.
7023 * language.h (struct language_data): Delete la_search_name_hash
7025 (language_defn::search_name_hash): Declare new member function.
7026 (default_search_name_hash): Delete declaration.
7027 * m2-lang.c (m2_language_data): Delete la_search_name_hash
7029 * objc-lang.c (objc_language_data): Likewise.
7030 * opencl-lang.c (opencl_language_data): Likewise.
7031 * p-lang.c (pascal_language_data): Likewise.
7032 * rust-lang.c (rust_language_data): Likewise.
7033 * symtab.c (search_name_hash): Update call.
7035 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7037 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
7039 * c-lang.c (class compile_instance): Declare.
7040 (c_language_data): Delete la_get_compile_instance initializer.
7041 (c_language::get_compile_instance): New member function.
7042 (cplus_language_data): Delete la_get_compile_instance initializer.
7043 (cplus_language::get_compile_instance): New member function.
7044 (asm_language_data): Delete la_get_compile_instance initializer.
7045 (minimal_language_data): Likewise.
7046 * c-lang.h (c_get_compile_context): Update comment.
7047 (cplus_get_compile_context): Update comment.
7048 * compile/compile.c (compile_to_object): Update calls, don't rely
7049 on function pointer being NULL.
7050 * d-lang.c (d_language_data): Delete la_get_compile_instance
7052 * f-lang.c (f_language_data): Likewise.
7053 * go-lang.c (go_language_data): Likewise.
7054 * language.c (unknown_language_data): Likewise.
7055 (auto_language_data): Likewise.
7056 * language.h (language_data): Delete la_get_compile_instance field.
7057 (language_defn::get_compile_instance): New member function.
7058 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7060 * objc-lang.c (objc_language_data): Likewise.
7061 * opencl-lang.c (opencl_language_data): Likewise.
7062 * p-lang.c (pascal_language_data): Likewise.
7063 * rust-lang.c (rust_language_data): Likewise.
7065 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7067 * ada-lang.c (ada_add_all_symbols): Update comment.
7068 (ada_iterate_over_symbols): Delete, move implementation to...
7069 (ada_language::iterate_over_symbols): ...here, a new member
7070 function, rewrite to use range based for loop.
7071 (ada_language_data): Delete la_iterate_over_symbols initializer.
7072 * c-lang.c (c_language_data): Likewise.
7073 (cplus_language_data): Likewise.
7074 (asm_language_data): Likewise.
7075 (minimal_language_data): Likewise.
7076 * d-lang.c (d_language_data): Likewise.
7077 * f-lang.c (f_language_data): Likewise.
7078 * go-lang.c (go_language_data): Likewise.
7079 * language.c (unknown_language_data): Likewise.
7080 (auto_language_data): Likewise.
7081 * language.h (language_data): Delete la_iterate_over_symbols field.
7082 (language_defn::iterate_over_symbols): New member function.
7083 (LA_ITERATE_OVER_SYMBOLS): Update.
7084 * linespec.c (iterate_over_all_matching_symtabs): Update.
7085 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7087 * objc-lang.c (objc_language_data): Likewise.
7088 * opencl-lang.c (opencl_language_data): Likewise.
7089 * p-lang.c (pascal_language_data): Likewise.
7090 * rust-lang.c (rust_language_data): Likewise.
7092 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7094 * ada-lang.c (ada_language_data): Delete
7095 la_lookup_transparent_type initializer.
7096 * c-lang.c (c_language_data): Likewise.
7097 (cplus_language_data): Likewise.
7098 (cplus_language::lookup_transparent_type): New member function.
7099 (asm_language_data): Delete la_lookup_transparent_type
7101 (minimal_language_data): Likewise.
7102 * d-lang.c (d_language_data): Likewise.
7103 * f-lang.c (f_language_data): Likewise.
7104 * go-lang.c (go_language_data): Likewise.
7105 * language.c (unknown_language_data): Likewise.
7106 (auto_language_data): Likewise.
7107 * language.h (struct language_data): Delete
7108 la_lookup_transparent_type field.
7109 (language_defn::lookup_transparent_type): New member function.
7110 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7112 * objc-lang.c (objc_language_data): Likewise.
7113 * opencl-lang.c (opencl_language_data): Likewise.
7114 * p-lang.c (pascal_language_data): Likewise.
7115 * rust-lang.c (rust_language_data): Likewise.
7116 * symtab.c (symbol_matches_domain): Update call.
7118 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7120 * ada-lang.c (ada_language_arch_info): Delete function, move
7121 implementation to...
7122 (ada_language::language_arch_info): ...here, a new member
7124 (ada_language_data): Delete la_language_arch_info.
7125 * c-lang.c (c_language_data): Likewise.
7126 (c_language::language_arch_info): New member function.
7127 (cplus_language_arch_info): Delete function, move
7128 implementation to...
7129 (cplus_language::language_arch_info): ...here, a new member
7131 (cplus_language_data): Delete la_language_arch_info.
7132 (asm_language_data): Likewise.
7133 (asm_language::language_arch_info): New member function.
7134 (minimal_language_data): Delete la_language_arch_info.
7135 (minimal_language::language_arch_info): New member function.
7136 * d-lang.c (d_language_arch_info): Delete function, move
7137 implementation to...
7138 (d_language::language_arch_info): ...here, a new member
7140 (d_language_data): Delete la_language_arch_info.
7141 * f-lang.c (f_language_arch_info): Delete function, move
7142 implementation to...
7143 (f_language::language_arch_info): ...here, a new member
7145 (f_language_data): Delete la_language_arch_info.
7146 * go-lang.c (go_language_arch_info): Delete function, move
7147 implementation to...
7148 (go_language::language_arch_info): ...here, a new member
7150 (go_language_data): Delete la_language_arch_info.
7151 * language.c (unknown_language_data): Likewise.
7152 (unknown_language::language_arch_info): New member function.
7153 (auto_language_data): Delete la_language_arch_info.
7154 (auto_language::language_arch_info): New member function.
7155 (language_gdbarch_post_init): Update call to
7156 la_language_arch_info.
7157 * language.h (language_data): Delete la_language_arch_info
7159 (language_defn::language_arch_info): New function.
7160 * m2-lang.c (m2_language_arch_info): Delete function, move
7161 implementation to...
7162 (m2_language::language_arch_info): ...here, a new member
7164 (m2_language_data): Delete la_language_arch_info.
7165 * objc-lang.c (objc_language_arch_info): Delete function, move
7166 implementation to...
7167 (objc_language::language_arch_info): ...here, a new member
7169 (objc_language_data): Delete la_language_arch_info.
7170 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7171 implementation to...
7172 (opencl_language::language_arch_info): ...here, a new member
7174 (opencl_language_data): Delete la_language_arch_info.
7175 * p-lang.c (pascal_language_arch_info): Delete function, move
7176 implementation to...
7177 (pascal_language::language_arch_info): ...here, a new member
7179 (pascal_language_data): Delete la_language_arch_info.
7180 * rust-lang.c (rust_language_arch_info): Delete function, move
7181 implementation to...
7182 (rust_language::language_arch_info): ...here, a new member
7184 (rust_language_data): Delete la_language_arch_info.
7186 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7188 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7190 * c-lang.c (c_language_data): Likewise.
7191 (cplus_language_data): Likewise.
7192 (cplus_language::pass_by_reference_info): New method.
7193 (asm_language_data): Delete la_pass_by_reference initializer.
7194 (minimal_language_data): Likewise.
7195 * cp-abi.c (cp_pass_by_reference): Remove use of
7196 default_pass_by_reference.
7197 * d-lang.c (d_language_data): Likewise.
7198 * f-lang.c (f_language_data): Likewise.
7199 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7200 default_pass_by_reference.
7201 * go-lang.c (go_language_data): Likewise.
7202 * language.c (language_pass_by_reference): Update.
7203 (default_pass_by_reference): Delete.
7204 (unknown_language_data): Delete la_pass_by_reference
7206 (auto_language_data): Likewise.
7207 * language.h (struct language_data): Delete la_pass_by_reference
7209 (language_defn::pass_by_reference_info): New member function.
7210 (default_pass_by_reference): Delete declaration.
7211 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7213 * objc-lang.c (objc_language_data): Likewise.
7214 * opencl-lang.c (opencl_language_data): Likewise.
7215 * p-lang.c (pascal_language_data): Likewise.
7216 * rust-lang.c (rust_language_data): Likewise.
7218 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7220 * ada-lang.c (ada_read_var_value): Delete function, move
7221 implementation to...
7222 (ada_language::read_var_value): ...here.
7223 (ada_language_data): Delete la_read_var_value initializer.
7224 * c-lang.c (c_language_data): Likewise.
7225 (cplus_language_data): Likewise.
7226 (minimal_language_data): Likewise.
7227 * d-lang.c (d_language_data): Likewise.
7228 * f-lang.c (f_language_data): Likewise.
7229 * findvar.c (default_read_var_value): Rename to...
7230 (language_defn::read_var_value): ...this.
7231 * findvar.c (read_var_value): Update header comment, and change to
7232 call member function instead of function pointer.
7233 * go-lang.c (go_language_data): Likewise.
7234 * language.c (unknown_language_data): Delete la_read_var_value
7236 (auto_language_data): Likewise.
7237 * language.h (struct language_data): Delete la_read_var_value
7239 (language_defn::read_var_value): New member function.
7240 (default_read_var_value): Delete declaration.
7241 * m2-lang.c (m2_language_data): Delete la_read_var_value
7243 * objc-lang.c (objc_language_data): Likewise.
7244 * opencl-lang.c (opencl_language_data): Likewise.
7245 * p-lang.c (pascal_language_data): Likewise.
7246 * rust-lang.c (rust_language_data): Likewise.
7247 * value.h (default_read_var_value): Delete declaration.
7249 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7251 * ada-lang.c (ada_print_array_index): Delete function, move
7252 implementation to...
7253 (ada_language::print_array_index): ...here.
7254 (ada_language_data): Delete la_print_array_index initializer.
7255 * c-lang.c (c_language_data): Likewise.
7256 (cplus_language_data): Likewise.
7257 (minimal_language_data): Likewise.
7258 * d-lang.c (d_language_data): Likewise.
7259 * f-lang.c (f_language_data): Likewise.
7260 * go-lang.c (go_language_data): Likewise.
7261 * language.c (default_print_array_index): Delete function, move
7262 implementation to...
7263 (language_defn::print_array_index): ...here.
7264 (unknown_language_data): Delete la_print_array_index initializer.
7265 (auto_language_data): Likewise.
7266 * language.h (struct language_data): Delete la_print_array_index
7268 (language_defn::print_array_index): New member function.
7269 (LA_PRINT_ARRAY_INDEX): Update.
7270 (default_print_array_index): Delete declaration.
7271 * m2-lang.c (m2_language_data): Delete la_print_array_index
7273 * objc-lang.c (objc_language_data): Likewise.
7274 * opencl-lang.c (opencl_language_data): Likewise.
7275 * p-lang.c (pascal_language_data): Likewise.
7276 * rust-lang.c (rust_language_data): Likewise.
7278 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7280 * gdb/ada-lang.c (ada_language_defn): Convert to...
7281 (ada_language_data): ...this.
7282 (class ada_language): New class.
7283 (ada_language_defn): New static global.
7284 * gdb/c-lang.c (c_language_defn): Convert to...
7285 (c_language_data): ...this.
7286 (class c_language): New class.
7287 (c_language_defn): New static global.
7288 (cplus_language_defn): Convert to...
7289 (cplus_language_data): ...this.
7290 (class cplus_language): New class.
7291 (cplus_language_defn): New static global.
7292 (asm_language_defn): Convert to...
7293 (asm_language_data): ...this.
7294 (class asm_language): New class.
7295 (asm_language_defn): New static global.
7296 (minimal_language_defn): Convert to...
7297 (minimal_language_data): ...this.
7298 (class minimal_language): New class.
7299 (minimal_language_defn): New static global.
7300 * gdb/d-lang.c (d_language_defn): Convert to...
7301 (d_language_data): ...this.
7302 (class d_language): New class.
7303 (d_language_defn): New static global.
7304 * gdb/f-lang.c (f_language_defn): Convert to...
7305 (f_language_data): ...this.
7306 (class f_language): New class.
7307 (f_language_defn): New static global.
7308 * gdb/go-lang.c (go_language_defn): Convert to...
7309 (go_language_data): ...this.
7310 (class go_language): New class.
7311 (go_language_defn): New static global.
7312 * gdb/language.c (unknown_language_defn): Remove declaration.
7313 (current_language): Initialize to nullptr, real initialization is
7314 moved to _initialize_language.
7315 (languages): Delete global.
7316 (language_defn::languages): Define.
7317 (set_language_command): Use language_defn::languages.
7318 (set_language): Likewise.
7319 (range_error): Likewise.
7320 (language_enum): Likewise.
7321 (language_def): Likewise.
7322 (add_set_language_command): Use language_def::languages for the
7323 language list, and language_def to lookup language pointers.
7324 (skip_language_trampoline): Use language_defn::languages.
7325 (unknown_language_defn): Convert to...
7326 (unknown_language_data): ...this.
7327 (class unknown_language): New class.
7328 (unknown_language_defn): New static global.
7329 (auto_language_defn): Convert to...
7330 (auto_language_data): ...this.
7331 (class auto_language): New class.
7332 (auto_language_defn): New static global.
7333 (language_gdbarch_post_init): Use language_defn::languages.
7334 (_initialize_language): Initialize current_language.
7335 * gdb/language.h (struct language_defn): Rename to...
7336 (struct language_data): ...this.
7337 (struct language_defn): New.
7338 (auto_language_defn): Delete.
7339 (unknown_language_defn): Delete.
7340 (minimal_language_defn): Delete.
7341 (ada_language_defn): Delete.
7342 (asm_language_defn): Delete.
7343 (c_language_defn): Delete.
7344 (cplus_language_defn): Delete.
7345 (d_language_defn): Delete.
7346 (f_language_defn): Delete.
7347 (go_language_defn): Delete.
7348 (m2_language_defn): Delete.
7349 (objc_language_defn): Delete.
7350 (opencl_language_defn): Delete.
7351 (pascal_language_defn): Delete.
7352 (rust_language_defn): Delete.
7353 * gdb/m2-lang.c (m2_language_defn): Convert to...
7354 (m2_language_data): ...this.
7355 (class m2_language): New class.
7356 (m2_language_defn): New static global.
7357 * gdb/objc-lang.c (objc_language_defn): Convert to...
7358 (objc_language_data): ...this.
7359 (class objc_language): New class.
7360 (objc_language_defn): New static global.
7361 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7362 (opencl_language_data): ...this.
7363 (class opencl_language): New class.
7364 (opencl_language_defn): New static global.
7365 * gdb/p-lang.c (pascal_language_defn): Convert to...
7366 (pascal_language_data): ...this.
7367 (class pascal_language): New class.
7368 (pascal_language_defn): New static global.
7369 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7370 language pointer, update comment format.
7371 * gdb/rust-lang.c (rust_language_defn): Convert to...
7372 (rust_language_data): ...this.
7373 (class rust_language): New class.
7374 (rust_language_defn): New static global.
7376 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7378 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7380 <m_stmt_at_address>: New member variable.
7381 (lnp_state_machine::record_line): Don't record some lines, update
7382 tracking of is_stmt at the same address.
7383 (lnp_state_machine::lnp_state_machine): Initialise new member
7386 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7388 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7389 "-include gnu-nat-mig.h".
7390 * gnu-nat-mig.h: New file.
7391 * gnu-nat.c: Include "gnu-nat-mig.h".
7392 (exc_server, msg_reply_server, notify_server,
7393 process_reply_server): Remove declarations.
7395 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7397 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7398 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7399 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7400 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7401 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7402 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7403 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7404 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7405 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7406 to gnu_nat_target class.
7407 * gnu-nat.c: Likewise.
7408 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7409 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7410 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7412 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7413 instead of `gnu_target'.
7415 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7417 * i386-gnu-tdep.c: Include "gdbcore.h"
7418 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7419 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7420 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7421 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7422 i386_gnu_sigcontext_addr): New functions
7423 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7424 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7427 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7429 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7430 before fork_inferior call. Avoid calling it if target_is_pushed returns
7433 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7435 * gnu-nat.h (gnu_target): New variable declaration.
7436 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7438 * gnu-nat.c (gnu_target): New variable.
7439 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7440 add_thread_silent, and add_thread calls.
7441 (gnu_nat_target::create_inferior): Pass gnu_target to
7442 add_thread_silent, thread_change_ptid call.
7443 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7446 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7448 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7449 (gnu_nat_target::find_memory_regions): Remove unused
7450 `old_address' variable.
7452 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7454 * gnu-nat.c: Include "gdbarch.h".
7456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7458 * reply_mig_hack.awk (Error return): Cast function through
7459 void *, to bypass compiler function call check.
7461 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7463 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7464 $(srcdir)/reply_mig_hack.awk.
7466 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7468 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7470 2020-05-30 Jonny Grant <jg@jguk.org>
7472 * configure.ac (ACX_BUGURL): change bug URL to https.
7474 2020-05-30 Pedro Alves <palves@redhat.com>
7476 * cp-support.c (replace_typedefs_template): New.
7477 (replace_typedefs_qualified_name): Handle
7478 DEMANGLE_COMPONENT_TEMPLATE.
7480 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7482 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7483 dwarf2/index-cache.h, dwarf2/index-write.c,
7484 dwarf2/index-write.h, dwarf2/line-header.c,
7485 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7486 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7487 variables and fields from `dwarf2_per_objfile` to just
7488 `per_objfile` throughout.
7490 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7492 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7493 <push_dwarf_reg_entry_value>: Add comment.
7495 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7496 Keith Seitz <keiths@redhat.com>
7498 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7499 instead of PyEval_ReleaseLock.
7500 (class gdbpy_gil): Move to earlier in file.
7501 (finalize_python): Set gdb_python_initialized.
7502 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7503 when not initialized.
7505 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7507 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7508 <push_dwarf_reg_entry_value>: Remove assert. Override
7509 per_objfile with caller_per_objfile.
7511 2020-05-28 Tom de Vries <tdevries@suse.de>
7513 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7514 PR gold/15646 workaround to symbol kind "type".
7516 2020-05-27 Tom Tromey <tromey@adacore.com>
7518 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7520 2020-05-27 Tom Tromey <tromey@adacore.com>
7522 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7523 Use htab_find_with_hash.
7524 <add_abbrev>: Remove "abbrev_number" parameter.
7525 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7526 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7527 (hash_abbrev): Add comment.
7528 (abbrev_table::lookup_abbrev): Move to header file.
7529 (abbrev_table::read): Update.
7531 2020-05-27 Tom Tromey <tromey@adacore.com>
7533 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7535 <canonical_name>: New member.
7536 <raw_name>: Rename from "name".
7537 (partial_die_info): Initialize canonical_name.
7538 (scan_partial_symbols): Check raw_name.
7539 (partial_die_parent_scope, partial_die_full_name)
7540 (add_partial_symbol, add_partial_subprogram)
7541 (add_partial_enumeration, load_partial_dies): Use "name" method.
7542 (partial_die_info::name): New method.
7543 (partial_die_info::read, guess_partial_die_structure_name)
7544 (partial_die_info::fixup): Update.
7546 2020-05-27 Tom Tromey <tromey@adacore.com>
7548 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7549 <get_ref_die_offset>: Inline.
7550 <get_ref_die_offset_complaint>: New method.
7551 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7552 (attribute::get_ref_die_offset_complaint): Rename from
7553 get_ref_die_offset. Just issue complaint.
7555 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7557 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7559 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7561 * exec.c (exec_file_attach): Use errno value of first openp failure.
7563 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7565 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7566 Don't close thread handle.
7568 2020-05-27 Tom Tromey <tom@tromey.com>
7569 Simon Marchi <simon.marchi@efficios.com>
7571 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7573 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7575 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7576 dwarf2_per_bfd_objfile_data_key>: New globals.
7577 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7578 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7579 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7581 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7582 short-circuit when sharing.
7583 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7584 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7586 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7588 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7590 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7591 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7595 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7596 build_name_components, find_name_components_bounds>:
7597 Add per_objfile parameter.
7598 (struct mapped_index) <symbol_name_at>: Likewise.
7599 (struct mapped_debug_names): Remove constructor.
7600 <dwarf2_per_objfile>: Remove field.
7601 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7602 (mapped_index_base::find_name_components_bounds,
7603 mapped_index_base::build_name_components,
7604 dw2_expand_symtabs_matching_symbol): Likewise.
7605 (class mock_mapped_index) <symbol_name_at>: Likewise.
7606 (check_match): Likewise.
7607 (check_find_bounds_finds): Likewise.
7608 (test_mapped_index_find_name_component_bounds): Update.
7609 (CHECK_MATCH): Update.
7610 (dw2_expand_symtabs_matching): Update.
7611 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7612 per_objfile parameter.
7613 <find_vec_in_debug_names>: Likewise.
7614 <m_per_objfile>: New field.
7615 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7617 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7618 (dw2_debug_names_iterator::next): Update.
7619 (dw2_debug_names_lookup_symbol): Update.
7620 (dw2_debug_names_expand_symtabs_for_function): Update.
7621 (dw2_debug_names_map_matching_symbols): Update.
7622 (dw2_debug_names_expand_symtabs_matching): Update.
7623 (dwarf2_read_debug_names): Update.
7625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7627 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7628 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7629 move to dwarf2_per_objfile.
7630 <read_in_chain>: Remove.
7631 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7632 remove_all_cus, age_comp_units>: New methods.
7633 <m_dwarf2_cus>: New member.
7634 (struct dwarf2_per_cu_data) <cu>: Remove.
7635 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7636 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7637 moved to methods of dwarf2_per_objfile.
7638 (dwarf2_clear_marks): Remove.
7639 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7640 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7641 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7642 (dwarf2_per_objfile::remove_all_cus): New.
7643 (class free_cached_comp_units) <~free_cached_comp_units>:
7646 (dw2_do_instantiate_symtab): Adjust.
7647 (fill_in_sig_entry_from_dwo_entry): Adjust.
7648 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7649 (cutu_reader::cutu_reader): Likewise.
7650 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7651 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7652 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7653 and dwarf2_per_objfile::age_comp_units.
7654 (load_partial_comp_unit): Update.
7655 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7656 (process_queue): Likewise.
7657 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7659 (dwarf2_read_addr_index): Likewise.
7660 (follow_die_offset): Likewise.
7661 (dwarf2_fetch_die_loc_sect_off): Likewise.
7662 (dwarf2_fetch_constant_bytes): Likewise.
7663 (dwarf2_fetch_die_type_sect_off): Likewise.
7664 (follow_die_sig_1): Likewise.
7665 (load_full_type_unit): Likewise.
7666 (read_signatured_type): Likewise.
7667 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7668 (dwarf2_cu::~dwarf2_cu): Remove.
7669 (dwarf2_per_objfile::get_cu): New.
7670 (dwarf2_per_objfile::set_cu): New.
7671 (age_cached_comp_units): Rename to...
7672 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7673 to std::unordered_map.
7674 (free_one_cached_comp_unit): Rename to...
7675 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7676 to std::unordered_map.
7677 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7678 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7679 a dwarf2_per_objfile in data.
7680 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7681 (dwarf2_clear_marks): Remove.
7683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7685 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7686 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7687 (init_tu_and_read_dwo_dies): Likewise.
7688 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7689 (cutu_reader::cutu_reader): Likewise.
7690 (load_partial_comp_unit): Likewise.
7691 (process_psymtab_comp_unit): Update.
7692 (build_type_psymtabs_1): Update.
7693 (process_skeletonless_type_unit): Update.
7694 (load_full_comp_unit): Update.
7695 (find_partial_die): Update.
7696 (dwarf2_read_addr_index): Update.
7697 (read_signatured_type): Update.
7699 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7701 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7702 m_header_read_in>: New fields.
7703 <get_header>: New method.
7704 * dwarf2/read.c (per_cu_header_read_in): Remove.
7705 (dwarf2_per_cu_data::get_header): New.
7706 (dwarf2_per_cu_data::addr_size): Update.
7707 (dwarf2_per_cu_data::offset_size): Update.
7708 (dwarf2_per_cu_data::ref_addr_size): Update.
7710 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7712 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7713 (dw2_do_instantiate_symtab): Update.
7714 (queue_and_load_all_dwo_tus): Change parameter from
7715 dwarf2_per_cu_data to dwarf2_cu.
7716 (dwarf2_fetch_die_loc_sect_off): Update.
7717 (dwarf2_fetch_constant_bytes): Update.
7718 (dwarf2_fetch_die_type_sect_off): Update.
7720 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7722 * dwarf2/read.c (process_full_comp_unit,
7723 process_full_type_unit): Remove per_cu, per_objfile paramters.
7724 Add dwarf2_cu parameter.
7725 (process_queue): Update.
7727 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7729 * dwarf2/read.c (create_cu_from_index_list): Replace
7730 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7731 (create_cus_from_index_list): Likewise.
7732 (create_cus_from_index): Likewise.
7733 (create_signatured_type_table_from_index): Likewise.
7734 (create_cus_from_debug_names_list): Likewise.
7735 (create_cus_from_debug_names): Likewise.
7736 (dwarf2_read_gdb_index): Update.
7737 (dwarf2_read_debug_names): Update.
7739 2020-05-27 Tom Tromey <tom@tromey.com>
7740 Simon Marchi <simon.marchi@efficios.com>
7742 * dwarf2/read.h (struct dwarf2_per_objfile)
7743 <get_type_for_signatured_type, set_type_for_signatured_type>:
7745 <m_type_map>: New member.
7746 (struct signatured_type) <type>: Remove.
7748 (dwarf2_per_objfile::get_type_for_signatured_type,
7749 dwarf2_per_objfile::set_type_for_signatured_type): New.
7750 (get_signatured_type): Use new methods.
7752 2020-05-27 Tom Tromey <tom@tromey.com>
7753 Simon Marchi <simon.marchi@efficios.com>
7755 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7756 (struct dwarf2_per_objfile) <type_units>: New member.
7757 <get_type_unit_group_unshareable>: New method.
7758 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7759 num_symtabs, symtabs>: Remove; move to
7760 type_unit_group_unshareable.
7761 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7762 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7763 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7765 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7767 * dwarf2/read.h (struct dwarf2_per_cu_data):
7768 <dwarf2_per_objfile>: Remove.
7769 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7771 (create_signatured_type_table_from_index): Likewise.
7772 (create_signatured_type_table_from_debug_names): Likewise.
7773 (create_debug_type_hash_table): Likewise.
7774 (fill_in_sig_entry_from_dwo_entry): Likewise.
7775 (create_type_unit_group): Likewise.
7776 (read_comp_units_from_section): Likewise.
7777 (create_cus_hash_table): Likewise.
7779 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7781 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7782 dwarf2_per_cu_data::dwarf2_per_objfile.
7783 (compute_compunit_symtab_includes): Likewise.
7784 (dwarf2_cu::start_symtab): Likewise.
7786 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7788 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7790 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7791 (read_namespace_alias): Update.
7792 (lookup_die_type): Update.
7793 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7794 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7796 (disassemble_dwarf_expression): Update.
7798 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7800 * dwarf2/read.h (struct dwarf2_queue_item): Add
7801 dwarf2_per_objfile parameter, assign new parameter.
7802 <per_objfile>: New field.
7803 * dwarf2/read.c (free_one_cached_comp_unit): Add
7804 dwarf2_per_objfile parameter.
7805 (queue_comp_unit): Likewise.
7806 (dw2_do_instantiate_symtab): Update.
7807 (process_psymtab_comp_unit): Update.
7808 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7809 (process_imported_unit_die): Update.
7810 (queue_and_load_dwo_tu): Update.
7811 (follow_die_offset): Update.
7812 (follow_die_sig_1): Update.
7814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7816 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7817 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7818 (read_call_site_scope): Assign per_objfile.
7819 (dwarf2_per_cu_data::objfile): Remove.
7820 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7821 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7822 dwarf2_per_objfile parameter.
7823 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7824 dwarf2_per_objfile parameter.
7825 (dwarf_expr_reg_to_entry_parameter): Add output
7826 dwarf2_per_objfile parameter.
7827 (locexpr_get_frame_base): Update.
7828 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7829 <push_dwarf_reg_entry_value>: Update.
7830 <call_site_to_target_addr>: Update.
7831 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7833 (value_of_dwarf_reg_entry): Update.
7834 (rw_pieced_value): Update.
7835 (indirect_synthetic_pointer): Update.
7836 (dwarf2_evaluate_property): Update.
7837 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7839 (locexpr_read_variable): Update.
7840 (locexpr_get_symbol_read_needs): Update.
7841 (loclist_read_variable): Update.
7843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7845 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7846 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7847 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7849 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7851 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7853 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7854 sect_variable_value): Add dwarf2_per_objfile parameter.
7855 (class dwarf_evaluate_loc_desc) <dwarf_call,
7856 dwarf_variable_value>: Update.
7857 (fetch_const_value_from_synthetic_pointer): Add
7858 dwarf2_per_objfile parameter.
7859 (fetch_const_value_from_synthetic_pointer): Update.
7860 (coerced_pieced_ref): Update.
7861 (class symbol_needs_eval_context) <dwarf_call,
7862 dwarf_variable_value>: Update.
7863 (dwarf2_compile_expr_to_ax): Update.
7865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7867 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7869 (dwarf2_evaluate_loc_desc_full): Update.
7871 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7873 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7875 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7876 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7877 dwarf2_per_objfile parameter.
7878 (decode_debug_loc_dwo_addresses): Likewise.
7879 (dwarf2_find_location_expression): Update.
7880 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7881 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7883 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7885 (locexpr_describe_location_1): Likewise.
7886 (locexpr_describe_location): Update.
7888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7890 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7892 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7893 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7894 (dwarf2_compile_property_to_c): Update.
7895 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7896 use text offset from objfile.
7897 (locexpr_tracepoint_var_ref): Update.
7898 (locexpr_generate_c_location): Update.
7899 (loclist_describe_location): Update.
7900 (loclist_tracepoint_var_ref): Update.
7901 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7902 dwarf2_per_objfile parameter.
7903 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7904 use text offset from objfile.
7905 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7909 * dwarf2/expr.h (struct dwarf_expr_context)
7910 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7912 <per_objfile>: New member.
7913 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7914 dwarf2_per_objfile parameter. Don't set offset, set
7916 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7917 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7918 a dwarf2_per_objfile object instead of an offset.
7919 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7921 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7922 to dwarf2_expr_executor constructor. Don't set offset.
7923 (dwarf2_fetch_cfa_info): Update.
7924 (struct dwarf2_frame_cache) <text_offset>: Remove.
7925 <per_objfile>: New field.
7926 (dwarf2_frame_cache): Update.
7927 (dwarf2_frame_prev_register): Update.
7928 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7929 <dwarf_evaluate_loc_desc>: Add constructor.
7930 (dwarf2_evaluate_loc_desc_full): Update.
7931 (dwarf2_locexpr_baton_eval): Update.
7932 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7934 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7936 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7938 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7939 addr_sized_int_type>: Move to dwarf2_cu.
7940 <int_type>: Move to dwarf2_per_objfile.
7941 (struct dwarf2_per_objfile) <int_type>: Move here.
7942 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7943 addr_sized_int_type>: Move here.
7944 (read_func_scope): Update.
7945 (read_array_type): Update.
7946 (read_tag_string_type): Update.
7947 (attr_to_dynamic_prop): Update.
7948 (dwarf2_per_cu_data::int_type): Rename to...
7949 (dwarf2_per_objfile::int_type): ... this.
7950 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7951 (dwarf2_cu::addr_sized_int_type): ... this.
7952 (read_subrange_type): Update.
7953 (dwarf2_per_cu_data::addr_type): Rename to...
7954 (dwarf2_cu::addr_type): ... this.
7955 (set_die_type): Update.
7957 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7959 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7960 data through per_cu->cu.
7962 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7964 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7965 dwarf2_per_cu_data parameter fo dwarf2_cu.
7966 (lookup_dwo_type_unit): Likewise.
7967 (read_cutu_die_from_dwo): Likewise.
7968 (lookup_dwo_unit): Likewise.
7969 (open_and_init_dwo_file): Likewise.
7970 (lookup_dwo_cutu): Likewise.
7971 (lookup_dwo_comp_unit): Likewise.
7972 (lookup_dwo_type_unit): Likewise.
7973 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7974 (cutu_reader::cutu_reader): Update.
7976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7978 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7980 (process_full_type_unit): Likewise.
7981 (process_queue): Update.
7983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7985 * dwarf2/read.c (recursively_compute_inclusions): Add
7986 dwarf2_per_objfile parameter.
7987 (compute_compunit_symtab_includes): Likewise.
7988 (process_cu_includes): Update.
7990 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7992 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7994 (create_type_unit_group): Update.
7995 (process_psymtab_comp_unit_reader): Update.
7996 (build_type_psymtabs_reader): Update.
7998 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8000 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
8001 object through m_this_cu->cu.
8003 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8005 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
8007 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
8009 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8011 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
8012 per_objfile parameter.
8013 (load_full_type_unit): Add per_objfile parameter.
8014 (read_signatured_type): Likewise.
8015 (load_full_comp_unit): Likewise.
8016 (load_cu): Likewise.
8017 (dw2_do_instantiate_symtab): Likewise.
8018 (dw2_get_file_names): Likewise.
8019 (dw2_map_symtabs_matching_filename): Update.
8020 (dw_expand_symtabs_matching_file_matcher): Update.
8021 (dw2_map_symbol_filenames): Update.
8022 (process_psymtab_comp_unit): Add per_objfile parameter.
8023 (build_type_psymtabs_1): Update.
8024 (process_skeletonless_type_unit): Update.
8025 (dwarf2_build_psymtabs_hard): Update.
8026 (load_partial_comp_unit): Add per_objfile parameter.
8027 (scan_partial_symbols): Update.
8028 (load_full_comp_unit): Add per_objfile parameter.
8029 (process_imported_unit_die): Update.
8030 (create_cus_hash_table): Update.
8031 (find_partial_die): Update.
8032 (dwarf2_read_addr_index): Update.
8033 (follow_die_offset): Update.
8034 (dwarf2_fetch_die_loc_sect_off): Update.
8035 (dwarf2_fetch_constant_bytes): Update.
8036 (dwarf2_fetch_die_type_sect_off): Update.
8037 (follow_die_sig_1): Update.
8038 (load_full_type_unit): Add per_objfile parameter.
8039 (read_signatured_type): Likewise.
8041 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8043 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
8046 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8048 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8049 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8050 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8052 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8053 (create_cus_from_index): Update.
8054 (dwarf2_read_gdb_index): Update.
8055 (create_cus_from_debug_names): Update.
8056 (dwarf2_read_debug_names): Update.
8057 (get_abbrev_section_for_cu): Update.
8058 (create_all_comp_units): Update.
8059 (read_attribute_value): Update.
8060 (get_debug_line_section): Update.
8061 * dwarf2/index-cache.c (index_cache::store): Update.
8062 * dwarf2/index-write.c (save_gdb_index_command): Update.
8063 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8065 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8067 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8069 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8070 dwarf2_per_cu_data::per_bfd.
8071 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8072 (create_type_unit_group): Likewise.
8073 (queue_comp_unit): Remove reference to
8074 per_cu->dwarf2_per_objfile.
8075 (maybe_queue_comp_unit): Likewise.
8076 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8077 (create_cus_hash_table): Assign new field.
8079 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8081 * dwarf2/read.c: Replace
8082 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8083 dwarf2_cu->per_objfile throughout.
8085 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8087 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8088 parameter, don't use per_cu->dwarf2_per_objfile.
8089 (dw2_instantiate_symtab): Likewise.
8090 (dw2_find_last_source_symtab): Update.
8091 (dw2_map_expand_apply): Update.
8092 (dw2_lookup_symbol): Update.
8093 (dw2_expand_symtabs_for_function): Update.
8094 (dw2_expand_all_symtabs): Update.
8095 (dw2_expand_symtabs_with_fullname): Update.
8096 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8097 don't use per_cu->dwarf2_per_objfile.
8098 (dw2_expand_marked_cus): Update.
8099 (dw2_find_pc_sect_compunit_symtab): Update.
8100 (dw2_debug_names_lookup_symbol): Update.
8101 (dw2_debug_names_expand_symtabs_for_function): Update.
8102 (dw2_debug_names_map_matching_symbols): Update.
8103 (dwarf2_psymtab::expand_psymtab): Update.
8105 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8107 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8108 <per_objfile>: New member.
8109 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8110 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8112 (cutu_reader::cutu_reader): Update.
8113 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8115 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8117 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8118 struct dwarf2_per_objfile.
8119 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8121 * dwarf2/read.c (set_die_type): Update.
8122 (get_die_type_at_offset): Update.
8124 2020-05-27 Tom Tromey <tom@tromey.com>
8125 Simon Marchi <simon.marchi@efficios.com>
8127 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8129 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8130 get_symtab, set_symtab>: New methods.
8131 <m_symtabs>: New field.
8132 (struct dwarf2_psymtab): Derive from partial_symtab.
8133 <readin_p, get_compunit_symtab>: Declare methods.
8134 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8135 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8137 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8138 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8139 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8140 (dw2_symtab_iter_next, dw2_print_stats)
8141 (dw2_expand_symtabs_with_fullname)
8142 (dw2_expand_symtabs_matching_one)
8143 (dw_expand_symtabs_matching_file_matcher)
8144 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8145 (dw2_debug_names_iterator::next)
8146 (dw2_debug_names_map_matching_symbols)
8147 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8148 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8149 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8151 (get_compunit_symtab, process_full_comp_unit)
8152 (process_full_type_unit): Update.
8153 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8155 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8157 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8158 then introduce a new dwarf2_per_objfile type.
8159 <read_line_string>: Move to the new dwarf2_per_objfile type.
8160 <objfile>: Likewise.
8161 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8162 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8163 dwarf2_per_objfile->per_bfd.
8164 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8165 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8166 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8167 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8168 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8169 (dwarf2_per_objfile::locate_sections): Rename to...
8170 (dwarf2_per_bfd::locate_sections): ... this.
8171 (dwarf2_per_objfile::get_cutu): Rename to...
8172 (dwarf2_per_bfd::get_cutu): ... this.
8173 (dwarf2_per_objfile::get_cu): Rename to...
8174 (dwarf2_per_bfd::get_cu): ... this.
8175 (dwarf2_per_objfile::get_tu): Rename to...
8176 (dwarf2_per_bfd::get_tu): ... this.
8177 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8178 (dwarf2_per_bfd::allocate_per_cu): ... this.
8179 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8180 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8181 (get_gdb_index_contents_ftype): Change parameter from
8182 dwarf2_per_objfile to dwarf2_per_bfd.
8183 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8184 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8186 2020-05-27 Tom Tromey <tom@tromey.com>
8187 Simon Marchi <simon.marchi@efficios.com>
8189 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8190 (allocate_piece_closure): Set "per_objfile" member.
8191 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8192 (locexpr_describe_location, loclist_describe_location): Use new
8194 * dwarf2/read.c (read_call_site_scope)
8195 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8196 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8197 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8198 handle_data_member_location): Set per_objfile member.
8199 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8201 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8203 2020-05-27 Tom Tromey <tom@tromey.com>
8205 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8206 allocate_signatured_type>: Declare new methods.
8207 <m_num_psymtabs>: New member.
8208 (struct dwarf2_per_cu_data) <index>: New member.
8209 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8210 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8211 (create_cu_from_index_list): Use allocate_per_cu.
8212 (create_signatured_type_table_from_index)
8213 (create_signatured_type_table_from_debug_names)
8214 (create_debug_type_hash_table, add_type_unit)
8215 (read_comp_units_from_section): Use allocate_signatured_type.
8217 2020-05-27 Tom Tromey <tom@tromey.com>
8219 * psymtab.c (partial_map_expand_apply)
8220 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8221 (psym_lookup_global_symbol_language)
8222 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8223 (psym_print_stats, psym_expand_symtabs_for_function)
8224 (psym_map_symbol_filenames, psym_map_matching_symbols)
8225 (psym_expand_symtabs_matching)
8226 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8227 (maintenance_check_psymtabs): Update.
8228 * psympriv.h (struct partial_symtab) <readin_p,
8229 get_compunit_symtab>: Add objfile parameter.
8230 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8232 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8233 get_compunit_symtab>: Likewise.
8234 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8236 2020-05-27 Tom Tromey <tom@tromey.com>
8238 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8240 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8241 (create_cu_from_index_list)
8242 (create_signatured_type_table_from_index)
8243 (create_signatured_type_table_from_debug_names)
8244 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8245 (dwarf2_create_include_psymtab)
8246 (create_debug_type_hash_table, add_type_unit)
8247 (create_type_unit_group, read_comp_units_from_section)
8248 (dwarf2_compute_name, create_cus_hash_table)
8249 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8250 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8252 (dw2_get_real_path): Likewise. Change argument to
8255 2020-05-27 Luis Machado <luis.machado@linaro.org>
8258 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8259 for ldrd (immediate).
8261 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8263 * command.h: Add comment giving the name of class_tui.
8264 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8265 create the fake command for the help for class_tui.
8267 2020-05-26 Tom Tromey <tromey@adacore.com>
8269 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8270 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8271 (val_atr): New function.
8272 (value_val_atr): Use it.
8273 * ada-valprint.c (print_optional_low_bound): Change low bound
8275 (val_print_packed_array_elements): Don't call discrete_position.
8276 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8277 discrete_position for enum types.
8278 * language.c (default_print_array_index): Change type.
8279 * language.h (struct language_defn) <la_print_array_index>: Add
8280 index_type parameter, change type of index_value.
8281 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8282 (default_print_array_index): Update.
8283 * valprint.c (maybe_print_array_index): Don't call
8284 value_from_longest. Update.
8285 (value_print_array_elements): Don't call discrete_position.
8287 2020-05-26 Tom Tromey <tromey@adacore.com>
8289 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8290 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8292 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8295 * avr-tdep.c (avr_integer_to_address): Return data or code
8296 address accordingly to the second 'type' argument of the
8299 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8301 * infcmd.c, inferior.h: (construct_inferior_arguments):
8302 Moved function from here to gdbsupport/common-inferior.{h,cc}
8304 2020-05-23 Tom Tromey <tom@tromey.com>
8306 Revert commit eca1f90c:
8307 * NEWS: Remove entry for completion styling.
8308 * completer.c (_rl_completion_prefix_display_length): Move
8310 (gdb_fnprint): Revert.
8311 (gdb_display_match_list_1): Likewise.
8312 * cli/cli-style.c (completion_prefix_style)
8313 (completion_difference_style, completion_suffix_style): Remove.
8314 (_initialize_cli_style): Revert.
8315 * cli/cli-style.h (completion_prefix_style)
8316 (completion_difference_style, completion_suffix_style): Don't
8319 2020-05-24 Pedro Alves <palves@redhat.com>
8321 * symtab.c (completion_list_add_name): Return boolean indication
8322 of whether the symbol matched.
8323 (completion_list_add_symbol): Don't try to remove C++ aliases if
8324 the symbol didn't match in the first place.
8325 * symtab.h (completion_list_add_name): Return bool.
8327 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8329 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8332 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8336 2020-05-23 Tom Tromey <tom@tromey.com>
8338 * NEWS: Add entry for completion styling.
8339 * completer.c (_rl_completion_prefix_display_length): Move
8340 declaration earlier.
8341 (gdb_fnprint): Use completion_style.
8342 (gdb_display_match_list_1): Likewise.
8343 * cli/cli-style.c (completion_prefix_style)
8344 (completion_difference_style, completion_suffix_style): New
8346 (_initialize_cli_style): Register new globals.
8347 * cli/cli-style.h (completion_prefix_style)
8348 (completion_difference_style, completion_suffix_style): Declare.
8350 2020-05-23 Pedro Alves <palves@redhat.com>
8352 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8353 (parse_escape): Use ISDIGIT instead of isdigit.
8354 (puts_debug): Use gdb_isprint instead of isprint.
8355 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8356 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8357 ISSPACE instead of isspace.
8358 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8360 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8361 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8362 instead of isxdigit and ISDIGIT instead of isdigit.
8364 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8366 * gdbtypes.h (struct type) <field>: New method.
8367 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8370 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8372 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8373 (TYPE_FIELDS): Use type::fields. Change all call sites that
8374 modify the propery to use type::set_fields instead.
8376 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8378 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8379 type::num_fields instead.
8381 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8383 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8385 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8386 that modify the number of fields to use type::set_num_fields
8389 2020-05-22 Tom Tromey <tromey@adacore.com>
8391 * compile/compile-object-load.h (munmap_list_free): Don't
8394 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8396 * annotate.c (annotate_source_line): Update return type, add call
8397 to update current symtab and line.
8398 * annotate.h (annotate_source_line): Update return type, and
8399 extend header comment.
8400 * source.c (info_line_command): Check annotation_level before
8401 calling annotate_source_line.
8402 * stack.c (print_frame_info): If calling annotate_source_line
8403 returns true, then don't print any other source line information.
8405 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8407 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8409 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8411 * coffread.c (patch_type): Remove NULL check before xfree.
8412 * corefile.c (set_gnutarget): Likewise.
8413 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8414 * exec.c (build_section_table): Likewise.
8415 * remote.c (remote_target::pass_signals): Likewise.
8416 * utils.c (n_spaces): Likewise.
8417 * cli/cli-script.c (document_command): Likewise.
8418 * i386-windows-tdep.c (core_process_module_section): Likewise.
8419 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8421 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8423 * symfile.c (reread_symbols): Clear objfile's section_offsets
8424 vector and section indices, re-compute them by calling
8427 2020-05-20 Tom Tromey <tromey@adacore.com>
8429 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8430 (desc_one_bound, desc_index_type): Compute field name.
8432 2020-05-20 Tom de Vries <tdevries@suse.de>
8435 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8437 2020-05-20 Alan Modra <amodra@gmail.com>
8440 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8442 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8443 passed to bfd_set_filename.
8444 * symfile-mem.c (add_vsyscall_page): Likewise for string
8445 passed to symbol_file_add_from_memory.
8446 (symbol_file_add_from_memory): Make name param a const char* and
8449 2020-05-20 Alan Modra <amodra@gmail.com>
8451 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8452 rather than accessing bfd->filename directly.
8453 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8454 and use bfd_section_name.
8455 * dwarf2/frame.c (decode_frame_entry): Likewise.
8456 * exec.c (exec_set_section_address): Likewise.
8457 * solib-aix.c (solib_aix_bfd_open): Likewise.
8458 * stap-probe.c (get_stap_base_address): Likewise.
8459 * symfile.c (reread_symbols): Likewise.
8461 2020-05-19 Tom Tromey <tromey@adacore.com>
8463 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8465 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8467 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8469 2020-05-19 Pedro Alves <palves@redhat.com>
8471 * NEWS (set exec-file-mismatch): Adjust entry.
8472 * exec.c: Include "build-id.h".
8473 (validate_exec_file): Try to match build IDs instead of filenames.
8474 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8475 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8476 and pass down 'warn_if_slow'.
8477 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8478 gdb_bfd_open_closure to pass it down.
8479 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8481 2020-05-19 Pedro Alves <palves@redhat.com>
8483 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8484 * target.c (target_fileio_open_1): Rename to target_fileio_open
8485 and make extern. Use bool.
8486 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8487 (target_fileio_read_alloc_1): Adjust.
8488 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8489 (target_fileio_open_warn_if_slow): Delete declaration.
8491 2020-05-19 Pedro Alves <palves@redhat.com>
8493 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8496 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8498 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8499 whether disp is negative.
8501 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8503 * symfile.h (struct symfile_segment_data)
8504 <~symfile_segment_data>: Remove.
8505 <segment_info>: Change to std::vector.
8506 * symfile.c (default_symfile_segments): Update.
8507 * elfread.c (elf_symfile_segments): Update.
8509 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8511 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8513 <segment_bases, segment_sizes>: Remove.
8514 * symfile.c (default_symfile_segments): Update.
8515 * elfread.c (elf_symfile_segments): Update.
8516 * remote.c (remote_target::get_offsets): Update.
8517 * solib-target.c (solib_target_relocate_section_addresses):
8520 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8522 * symfile.h (struct symfile_segment_data): Initialize fields.
8523 <~symfile_segment_data>: Add.
8524 (symfile_segment_data_up): New.
8525 (struct sym_fns) <sym_segments>: Return a
8526 symfile_segment_data_up.
8527 (default_symfile_segments): Return a symfile_segment_data_up.
8528 (free_symfile_segment_data): Remove.
8529 (get_symfile_segment_data): Return a symfile_segment_data_up.
8530 * symfile.c (default_symfile_segments): Likewise.
8531 (get_symfile_segment_data): Likewise.
8532 (free_symfile_segment_data): Remove.
8533 (symfile_find_segment_sections): Update.
8534 * elfread.c (elf_symfile_segments): Return a
8535 symfile_segment_data_up.
8536 * remote.c (remote_target::get_offsets): Update.
8537 * solib-target.c (solib_target_relocate_section_addresses):
8539 * symfile-debug.c (debug_sym_segments): Return a
8540 symfile_segment_data_up.
8542 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8545 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8546 Hardcode register numbers.
8549 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8550 procfs_find_LDT_entry): Remove.
8551 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8552 procfs_find_LDT_entry): Remove.
8553 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8556 2020-05-17 Pedro Alves <palves@redhat.com>
8557 Andrew Burgess <andrew.burgess@embecosm.com>
8558 Keno Fischer <keno@juliacomputing.com>
8561 * breakpoint.c (build_target_condition_list): Update comments.
8562 (build_target_command_list): Update comments and skip matching
8564 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8565 a separate function. Simplify "set breakpoint auto-hw off"
8567 (insert_breakpoints): Update comment.
8568 (tracepoint_locations_match): New parameter. For breakpoints,
8569 compare location types too, if the caller wants to.
8570 (handle_automatic_hardware_breakpoints): New functions.
8571 (bp_location_is_less_than): Also sort by location type and
8572 hardware breakpoint length.
8573 (update_global_location_list): Handle "set breakpoint auto-hw on"
8575 (update_breakpoint_locations): Ask breakpoint_locations_match to
8576 ignore location types.
8578 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8580 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8583 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8585 * gdbtypes.h (struct type) <name, set_name>: New methods.
8586 (TYPE_CODE): Use type::name. Change all call sites used to set
8587 the name to use type::set_name instead.
8589 2020-05-16 Tom Tromey <tom@tromey.com>
8591 * top.c (quit_force): Update.
8592 * infrun.c (handle_no_resumed): Update.
8593 * top.h (all_uis): New function.
8596 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8598 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8600 2020-05-16 Pedro Alves <palves@redhat.com>
8603 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8605 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8607 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8609 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8610 (sparc64_adi_info): Likewise.
8612 2020-05-15 Tom Tromey <tom@tromey.com>
8614 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8616 (lookup_objfile_from_block): Remove.
8617 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8618 (lookup_global_symbol): Use block_objfile.
8619 * symtab.h (lookup_objfile_from_block): Don't declare.
8620 * printcmd.c (clear_dangling_display_expressions): Use
8622 * parse.c (operator_check_standard): Use block_objfile.
8624 2020-05-15 Tom Tromey <tom@tromey.com>
8626 * language.c (language_alloc_type_symbol): Set
8628 * symtab.c (initialize_objfile_symbol): Remove.
8629 (allocate_symbol): Remove.
8630 (allocate_template_symbol): Remove.
8631 * dwarf2/read.c (fixup_go_packaging): Use "new".
8632 (new_symbol): Use "new".
8633 (read_variable): Don't call initialize_objfile_symbol. Use
8635 (read_func_scope): Use "new".
8636 * xcoffread.c (process_xcoff_symbol): Don't call
8637 initialize_objfile_symbol.
8638 (SYMBOL_DUP): Remove.
8639 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8641 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8642 (allocate_template_symbol): Don't declare.
8643 (struct symbol): Add copy constructor. Change defaults.
8644 * jit.c (finalize_symtab): Use "new".
8645 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8647 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8648 (common_block_end): Use "new".
8649 * mdebugread.c (parse_symbol): Use "new".
8650 (new_symbol): Likewise.
8652 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8654 * NEWS: Mention changes to help and apropos.
8656 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8658 * command.h (enum command_class): Improve comments, document
8659 that class_alias is for user-defined aliases, give the class
8660 name for each class, remove unused class_xdb.
8661 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8662 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8664 * infcmd.c (_initialize_infcmd): Likewise.
8665 * reverse.c (_initialize_reverse): Likewise.
8666 * stack.c (_initialize_stack): Likewise.
8667 * symfile.c (_initialize_symfile): Likewise.
8668 * tracepoint.c (_initialize_tracepoint): Likewise.
8670 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8672 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8673 when their aliased command is traversed.
8674 (help_cmd): Add fput_command_names_styled call to
8675 output command name and aliases when command has an alias.
8677 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8679 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8680 * cli/cli-decode.c (help_cmd_list): Declare as static,
8681 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8682 a command together with the command.
8683 (fput_command_name_styled, fput_command_names_styled): New functions.
8684 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8685 fput_command_name_styled.
8686 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8687 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8689 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8691 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8692 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8693 * command.h (cmd_show_list): Likewise.
8694 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8695 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8697 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8699 * unittests/command-def-selftests.c (traverse_command_structure):
8700 Verify all commands of a list have the same prefix command and
8701 that only the top cmdlist commands have a null prefix.
8703 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8705 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8706 as prefix, not one of its aliases.
8707 (set_cmd_prefix): Remove.
8708 (do_add_cmd): Centralize the setting of the prefix of a command, when
8709 command is defined after its full chain of prefix commands.
8710 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8711 (add_setshow_cmd_full): Likewise.
8712 (update_prefix_field_of_prefixed_commands): New function.
8713 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8714 update_prefix_field_of_prefixed_commands.
8715 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8716 addresses of remote_set_cmdlist and remote_show_cmdlist given
8717 as argument, not the address of an argument.
8718 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8719 * gdb/remote.c (_initialize_remote): Likewise.
8721 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8723 * cli/cli-cmds.c (alias_command): Check for an existing alias
8724 using lookup_cmd_composition, as valid_command_p is too strict
8725 and forbids aliases that are the prefix of an existing alias
8727 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8728 command is properly recognised as a valid command.
8730 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8732 * unittests/help-doc-selftests.c: Rename to
8733 unittests/command-def-selftests.c
8734 * unittests/command-def-selftests.c (help_doc_tests): Update some
8736 (command_structure_tests, traverse_command_structure): New namespace
8738 (command_structure_invariants_tests): New function.
8739 (_initialize_command_def_selftests) Renamed from
8740 _initialize_help_doc_selftests, register command_structure_invariants
8743 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8745 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8748 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8750 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8751 ada_is_fixed_point_type. Update all callers.
8752 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8754 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8756 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8757 print_fixed_point_type. Update all callers.
8758 * ada-valprint.c (ada_value_print_num): Replace call to
8759 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8761 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8763 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8765 (cpu_supports_bts): Add CV_AMD case.
8767 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8768 Simon Marchi <simon.marchi@efficios.com>
8770 * infrun.c (stop_all_threads): Collect multiple wait events at
8773 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8775 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8778 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8780 * gdbtypes.h (struct type) <code, set_code>: New methods.
8781 (TYPE_CODE): Use type::code. Change all call sites used to set
8782 the code to use type::set_code instead.
8784 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8785 Tom de Vries <tdevries@suse.de>
8786 Pedro Alves <palves@redhat.com>
8789 * infrun.c (stop_all_threads): Do NOT ignore
8790 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8791 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8793 (handle_no_resumed): Remove code handling a live inferior with no
8795 * remote.c (has_single_non_exited_thread): New.
8796 (remote_target::update_thread_list): Do not delete a thread if is
8797 the last thread of the process.
8798 * thread.c (thread_select): Call delete_exited_threads instead of
8801 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8803 * infrun.c (stop_all_threads): Enable/disable thread events of all
8804 targets. Move a debug message denoting the end of the function
8805 into the SCOPED_EXIT block.
8807 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8809 * process-stratum-target.h: Include <set>.
8810 (all_non_exited_process_targets, switch_to_target_no_thread): New
8811 function declarations.
8812 * process-stratum-target.c (all_non_exited_process_targets)
8813 (switch_to_target_no_thread): New function implementations.
8815 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8817 * infrun.c (handle_inferior_event): Extract out a piece of code
8819 (mark_non_executing_threads): ...this new function.
8821 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8823 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8826 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8828 * regcache.c (regcache_read_pc_protected): New function
8829 implementation that returns 0 if the PC cannot read via
8831 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8832 instead of 'regcache_read_pc'.
8833 (keep_going_pass_signal): Ditto.
8835 2020-05-13 Tom Tromey <tromey@adacore.com>
8837 * ada-lang.c (align_value): Remove.
8838 (ada_template_to_fixed_record_type_1): Use align_up.
8840 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8842 * async-event.c: Update the copyright year.
8843 * async-event.h: Update the copyright year.
8845 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8847 * objfiles.h (is_addr_in_objfile,
8848 shared_objfile_contains_address_p): Return bool.
8849 * objfile.c (is_addr_in_objfile,
8850 shared_objfile_contains_address_p): Return bool.
8852 2020-05-11 Tom Tromey <tromey@adacore.com>
8854 * cli/cli-cmds.c (info_command): Restore.
8855 (_initialize_cli_cmds): Use add_prefix_command for "info".
8856 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8858 2020-05-11 Tom Tromey <tromey@adacore.com>
8860 * ada-lang.c (ada_value_primitive_field): Now public.
8861 * ada-lang.h (ada_value_primitive_field): Declare.
8862 * ada-valprint.c (print_field_values): Use
8863 ada_value_primitive_field for wrapper fields.
8865 2020-05-11 Tom de Vries <tdevries@suse.de>
8867 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8870 2020-05-11 Tom de Vries <tdevries@suse.de>
8873 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8874 with length 0, if not gdb-produced.
8875 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8877 2020-05-09 Tom de Vries <tdevries@suse.de>
8880 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8883 2020-05-09 Tom Tromey <tom@tromey.com>
8885 * top.c (server_command): Now bool.
8886 * top.h (server_command): Now bool.
8888 2020-05-08 Tom Tromey <tromey@adacore.com>
8890 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8891 already being processed.
8893 2020-05-08 Tom Tromey <tom@tromey.com>
8895 * printcmd.c (struct display) <next>: Remove.
8896 <display>: New constructor.
8897 <exp_string>: Now a std::string.
8898 <enabled_p>: Now a bool.
8899 (display_number): Move definition earlier.
8900 (displays): Rename from display_chain. Now a std::vector.
8901 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8902 (display_command): Update.
8903 (do_one_display, disable_display)
8904 (enable_disable_display_command, do_enable_disable_display):
8906 (free_display): Remove.
8907 (clear_displays): Rewrite.
8908 (delete_display): Update.
8909 (map_display_numbers): Use function_view. Remove "data"
8911 (do_delete_display): Remove.
8912 (undisplay_command): Update.
8913 (do_one_display, do_displays, disable_display)
8914 (info_display_command): Update.
8915 (do_enable_disable_display): Remove.
8916 (enable_disable_display_command)
8917 (clear_dangling_display_expressions): Update.
8919 2020-05-08 Tom Tromey <tom@tromey.com>
8921 * symtab.c (set_symbol_cache_size)
8922 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8923 (maintenance_print_symbol_cache_statistics): Update.
8924 * symmisc.c (print_symbol_bcache_statistics)
8925 (print_objfile_statistics, maintenance_print_objfiles)
8926 (maintenance_info_symtabs, maintenance_check_symtabs)
8927 (maintenance_expand_symtabs, maintenance_info_line_tables):
8929 * symfile-debug.c (set_debug_symfile): Update.
8930 * source.c (forget_cached_source_info): Update.
8931 * python/python.c (gdbpy_progspaces): Update.
8932 * psymtab.c (maintenance_info_psymtabs): Update.
8933 * probe.c (parse_probes): Update.
8934 * linespec.c (iterate_over_all_matching_symtabs)
8935 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8936 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8937 * exec.c (exec_target::close): Update.
8938 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8939 * breakpoint.c (print_one_breakpoint_location)
8940 (create_longjmp_master_breakpoint)
8941 (create_std_terminate_master_breakpoint): Update.
8942 * progspace.c (program_spaces): Now a std::vector.
8943 (maybe_new_address_space): Update.
8944 (add_program_space): Remove.
8945 (program_space::program_space): Update.
8946 (remove_program_space): Update.
8947 (number_of_program_spaces): Remove.
8948 (print_program_space, update_address_spaces): Update.
8949 * progspace.h (program_spaces): Change type.
8950 (ALL_PSPACES): Remove.
8951 (number_of_program_spaces): Don't declare.
8952 (struct program_space) <next>: Remove.
8954 2020-05-08 Tom Tromey <tom@tromey.com>
8956 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8957 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8958 (enable_break): Update.
8959 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8960 (frv_fdpic_find_canonical_descriptor): Update.
8961 (frv_fetch_objfile_link_map): Update.
8962 * progspace.c (program_space::free_all_objfiles): Update.
8963 (program_space::solibs): New method.
8964 * progspace.h (struct program_space) <solibs>: New method.
8965 * solist.h (master_so_list): Don't declare.
8966 (ALL_SO_LIBS): Remove.
8967 * solib.h (so_list_head): Remove.
8968 (update_solib_list): Update comment.
8969 * solib.c (master_so_list): Remove.
8970 (solib_used, update_solib_list, solib_add)
8971 (info_sharedlibrary_command, clear_solib)
8972 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8974 2020-05-08 Tom Tromey <tom@tromey.com>
8976 * extension.c (extension_languages): Now a std::array.
8977 (ALL_EXTENSION_LANGUAGES): Remove.
8978 (get_ext_lang_defn, get_ext_lang_of_file)
8979 (eval_ext_lang_from_control_command): Update.
8980 (finish_ext_lang_initialization)
8981 (auto_load_ext_lang_scripts_for_objfile)
8982 (ext_lang_type_printers::ext_lang_type_printers)
8983 (apply_ext_lang_type_printers)
8984 (ext_lang_type_printers::~ext_lang_type_printers)
8985 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8986 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8987 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8988 (get_matching_xmethod_workers, ext_lang_colorize)
8989 (ext_lang_before_prompt): Update.
8990 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8992 2020-05-08 Tom Tromey <tom@tromey.com>
8994 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8996 <swap_string, m_string>: Remove.
8997 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8999 * stabsread.c (define_symbol, read_type): Update.
9000 * linespec.c (find_linespec_symbols): Update.
9001 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
9002 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
9003 * dbxread.c (read_dbx_symtab): Update.
9004 * cp-support.h (cp_canonicalize_string_full)
9005 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
9006 Return unique_xmalloc_ptr.
9007 * cp-support.c (inspect_type): Update.
9008 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
9009 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
9011 * c-typeprint.c (print_name_maybe_canonical): Update.
9012 * break-catch-throw.c (check_status_exception_catchpoint):
9015 2020-05-08 Tom de Vries <tdevries@suse.de>
9017 * infrun.c (follow_fork): Copy current_line and current_symtab to
9020 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9022 * async-event.c (struct async_signal_handler, struct
9023 async_event_handler): Reformat, remove typedef.
9025 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9027 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
9028 access thistype->main_type->dyn_prop_list directly.
9030 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9032 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
9033 (remove_dyn_prop): Remove. Update all users to use
9034 type::remove_dyn_prop.
9035 * gdbtypes.c (remove_dyn_prop): Rename to...
9036 (type::remove_dyn_prop): ... this.
9038 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
9040 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
9041 (add_dyn_prop): Remove. Update all users to use
9043 * gdbtypes.c (add_dyn_prop): Rename to...
9044 (type::add_dyn_prop): ... this.
9046 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9048 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9049 (get_dyn_prop): Remove. Update all users to use
9051 * gdbtypes.c (get_dyn_prop): Rename to...
9052 (type::dyn_prop): ... this.
9054 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9056 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9058 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9060 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9061 instruction, skip it if it's there.
9063 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9065 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9067 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9069 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9070 * gdbtypes.c (recursive_dump_type): Remove use of
9073 2020-05-03 Tom Tromey <tom@tromey.com>
9075 * breakpoint.c (catch_command, tcatch_command): Remove.
9076 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9077 add_show_prefix_cmd.
9078 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9079 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9081 (add_internal_problem_command): Use add_basic_prefix_cmd,
9082 add_show_prefix_cmd.
9083 * mips-tdep.c (set_mipsfpu_command): Remove.
9084 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9085 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9086 (_initialize_index_cache): Use add_basic_prefix_cmd.
9087 * memattr.c (dummy_cmd): Remove.
9088 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9089 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9090 (_initialize_tui_win): Use add_basic_prefix_cmd,
9091 add_show_prefix_cmd.
9092 * cli/cli-logging.c (set_logging_command): Remove.
9093 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9094 add_show_prefix_cmd.
9095 (show_logging_command): Remove.
9096 * target.c (target_command): Remove.
9097 (add_target): Use add_basic_prefix_cmd.
9099 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9101 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9103 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9105 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9108 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9110 * nbsd-nat.c (nbsd_enable_proc_events)
9111 (nbsd_nat_target::post_startup_inferior): Add.
9112 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9113 (nbsd_nat_target::update_thread_list): Rewrite.
9114 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9115 "PTRACE_LWP_CREATE".
9116 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9118 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9120 * stack.c (_initialize_stack): Remove duplicated creation
9121 of "frame" command and "f" alias.
9123 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9126 * gdbtypes.c (check_typedef): Calculate size of array of
9129 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9132 * i386-tdep.c (i386_push_dummy_call): Call
9133 i386_thiscall_push_dummy_call.
9134 (i386_thiscall_push_dummy_call): New function.
9135 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9136 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9137 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9139 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9141 * gdbarch.sh (do_read): Add shellcheck disable directive for
9144 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9146 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9147 "referenced but not assigned" warning.
9149 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9151 * gdbarch.sh: Remove code that sets fallbackdefault.
9153 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9155 * gdbarch.sh: Use shell operators && and || instead of
9158 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9160 * gdbarch.sh: Use $(...) instead of `...`.
9162 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9164 * gdbarch.sh: Use double quotes around variables.
9166 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9168 * gdbarch.sh: Use %s with printf, instead of variables in the
9171 2020-04-29 Tom Tromey <tromey@adacore.com>
9174 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9176 (read_enumeration_type): Call
9177 update_enumeration_type_from_children later. Update comments.
9178 (process_enumeration_scope): Don't create type fields.
9180 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9182 * nbsd-tdep.c: Include "xml-syscall.h".
9183 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9185 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9187 * nbsd-nat.c: Include "sys/wait.h".
9188 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9189 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9190 (nbsd_nat_target::remove_exec_catchpoint)
9191 (nbsd_nat_target::set_syscall_catchpoint): Add.
9192 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9193 (nbsd_nat_target::insert_exec_catchpoint)
9194 (nbsd_nat_target::remove_exec_catchpoint)
9195 (nbsd_nat_target::set_syscall_catchpoint): Add.
9196 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9197 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9198 `nbsd_get_syscall_number'.
9200 2020-04-29 Tom Tromey <tom@tromey.com>
9202 * stack.c (print_block_frame_labels): Remove.
9204 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9207 * ada-valprint.c (val_print_packed_array_elements): Move array
9208 end bracket to new line.
9209 (ada_val_print_string): Remove extra spaces before first array
9211 * c-valprint.c (c_value_print_array): Likewise.
9212 * m2-valprint.c (m2_print_array_contents): Likewise.
9213 (m2_value_print_inner): Likewise.
9214 * p-valprint.c (pascal_value_print_inner): Likewise.
9215 * valprint.c (generic_val_print_array): Likewise.
9216 (value_print_array_elements): Move first array element and array
9217 end bracket to new line.
9219 2020-04-29 Tom de Vries <tdevries@suse.de>
9222 * linespec.c (find_method): Fix ix calculation.
9224 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9226 * syscalls/update-netbsd.sh: New file.
9227 * syscalls/netbsd.xml: Regenerate.
9228 * data-directory/Makefile.in: Register `netbsd.xml' in
9231 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9233 * syscalls/update-freebsd.sh: Add double quotes.
9235 2020-04-28 Tom Tromey <tom@tromey.com>
9238 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9239 (cmdpy_init): Allow class_tui.
9241 2020-04-28 Mark Williams <mark@myosotissp.com>
9244 * dwarf2read.c: Add missing assingments to list_in_scope when
9245 start_symtab was already called.
9247 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9250 * dwarf2/read.c (offset_map_type): Use
9251 gdb:hash_enum<sect_offset> as hash function.
9253 2020-04-28 Tom de Vries <tdevries@suse.de>
9255 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9256 with DW_AT_signature.
9258 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9260 * configure.ac: Remove check for fs_base/gs_base in
9262 * configure: Re-generate.
9263 * config.in: Re-generate.
9264 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9265 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9266 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9268 2020-04-27 Luis Machado <luis.machado@linaro.org>
9270 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9271 problematic inline frame unwinding situation.
9272 * frame.c (frame_id_computed_p): New function.
9273 * frame.h (frame_id_computed_p): New prototype.
9275 2020-04-26 Tom Tromey <tom@tromey.com>
9277 * command.h (enum command_class) <class_pseudo>: Remove.
9279 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9281 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9284 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9286 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9287 `PT_GET_PROCESS_STATE' block.
9289 2020-04-24 Tom Tromey <tom@tromey.com>
9291 * symtab.h (symbol_get_demangled_name): Don't declare.
9292 * symtab.c (symbol_get_demangled_name): Remove.
9293 (general_symbol_info::natural_name)
9294 (general_symbol_info::demangled_name): Update.
9296 2020-04-24 Tom Tromey <tom@tromey.com>
9299 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9301 2020-04-24 Tom Tromey <tom@tromey.com>
9304 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9306 (new_symbol): Likewise.
9307 * compile/compile-object-load.c (get_out_value_type): Use
9308 symbol_matches_search_name.
9310 2020-04-24 Tom Tromey <tom@tromey.com>
9312 * dwarf2/read.c (add_partial_symbol): Do not call
9313 compute_and_set_names.
9315 2020-04-24 Tom Tromey <tom@tromey.com>
9317 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9320 2020-04-24 Tom Tromey <tom@tromey.com>
9322 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9323 (add_psymbol_to_list): New overload. Make old overload call new
9325 * psympriv.h (add_psymbol_to_list): New overload.
9327 2020-04-24 Tom Tromey <tom@tromey.com>
9329 * dwarf2/read.c (partial_die_info::read) <case
9330 DW_AT_linkage_name>: Use value_as_string.
9331 (dwarf2_string_attr): Use value_as_string.
9332 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9334 * dwarf2/attribute.c (attribute::value_as_string): New method.
9336 2020-04-24 Tom Tromey <tom@tromey.com>
9338 * symtab.c (general_symbol_info::natural_name)
9339 (general_symbol_info::demangled_name): Check for language_rust.
9341 2020-04-24 Tom Tromey <tom@tromey.com>
9343 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9344 (dwarf2_physname): ... from here.
9345 (partial_die_info::read): Add Rust "{" hack.
9347 2020-04-24 Tom Tromey <tom@tromey.com>
9349 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9351 (symbol_set_demangled_name): Don't declare.
9352 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9353 symbol_set_demangled_name.
9354 (general_symbol_info::set_language)
9355 (general_symbol_info::compute_and_set_names): Update.
9356 * minsyms.c (minimal_symbol_reader::install): Update.
9357 * dwarf2/read.c (new_symbol): Update.
9359 2020-04-24 Tom Tromey <tromey@adacore.com>
9362 * python/py-type.c (convert_field): Handle
9363 FIELD_LOC_KIND_DWARF_BLOCK.
9364 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9365 (typy_get_dynamic): Nw function.
9366 (type_object_getset): Add "dynamic".
9369 2020-04-24 Tom Tromey <tromey@adacore.com>
9371 * ada-typeprint.c (print_choices, print_variant_part)
9372 (print_record_field_types_dynamic): New functions.
9373 (print_record_field_types): Use print_record_field_types_dynamic.
9375 2020-04-24 Tom Tromey <tromey@adacore.com>
9377 * dwarf2/read.c (handle_data_member_location): New overload.
9378 (dwarf2_add_field): Use it.
9379 (decode_locdesc): Add "computed" parameter. Update comment.
9380 * gdbtypes.c (is_dynamic_type_internal): Also look for
9381 FIELD_LOC_KIND_DWARF_BLOCK.
9382 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9383 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9384 virtual base classes.
9385 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9386 FIELD_LOC_KIND_DWARF_BLOCK.
9388 2020-04-24 Tom Tromey <tromey@adacore.com>
9390 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9391 * gdbtypes.c (is_dynamic_type_internal): Check
9392 TYPE_HAS_DYNAMIC_LENGTH.
9393 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9394 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9396 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9399 2020-04-24 Tom Tromey <tromey@adacore.com>
9401 * dwarf2/read.c (struct variant_field): Rewrite.
9402 (struct variant_part_builder): New.
9403 (struct nextfield): Remove "variant" field. Add "offset".
9404 (struct field_info): Add "current_variant_part" and
9406 (alloc_discriminant_info): Remove.
9407 (alloc_rust_variant): New function.
9408 (quirk_rust_enum): Update.
9409 (dwarf2_add_field): Set "offset" member. Don't handle
9410 DW_TAG_variant_part.
9411 (offset_map_type): New typedef.
9412 (convert_variant_range, create_one_variant)
9413 (create_one_variant_part, create_variant_parts)
9414 (add_variant_property): New functions.
9415 (dwarf2_attach_fields_to_type): Call add_variant_property.
9416 (read_structure_type): Don't handle DW_TAG_variant_part.
9417 (handle_variant_part, handle_variant): New functions.
9418 (handle_struct_member_die): Use them.
9419 (process_structure_scope): Don't handle variant parts.
9420 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9421 (struct discriminant_info): Remove.
9422 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9423 (struct main_type) <flag_discriminated_union>: Remove.
9424 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9425 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9426 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9428 * valops.c (value_union_variant): Remove.
9429 * value.h (value_union_variant): Don't declare.
9431 2020-04-24 Tom Tromey <tromey@adacore.com>
9433 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9434 (ada_value_primitive_packed_val): Update.
9435 * ada-valprint.c (ada_value_print_1): Update.
9436 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9437 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9438 just an address. Use evaluate_for_locexpr_baton.
9439 (dwarf2_evaluate_property): Update.
9440 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9442 * findvar.c (default_read_var_value): Update.
9443 * gdbtypes.c (compute_variant_fields_inner)
9444 (resolve_dynamic_type_internal): Update.
9445 (resolve_dynamic_type): Change type of valaddr parameter.
9446 * gdbtypes.h (resolve_dynamic_type): Update.
9447 * valarith.c (value_subscripted_rvalue): Update.
9448 * value.c (value_from_contents_and_address): Update.
9450 2020-04-24 Tom Tromey <tromey@adacore.com>
9452 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9453 "push_initial_value" parameter.
9454 (dwarf2_evaluate_property): Likewise.
9455 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9457 2020-04-24 Tom Tromey <tromey@adacore.com>
9459 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9460 (variant::matches, compute_variant_fields_recurse)
9461 (compute_variant_fields_inner, compute_variant_fields): New
9463 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9464 Use resolved_type after type is made.
9465 (operator==): Add new cases.
9466 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9467 (struct discriminant_range, struct variant, struct variant_part):
9469 (union dynamic_prop_data) <variant_parts, original_type>: New
9471 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9472 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9474 * value.c (unpack_bits_as_long): Now public.
9475 * value.h (unpack_bits_as_long): Declare.
9477 2020-04-24 Tom Tromey <tromey@adacore.com>
9479 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9480 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9482 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9484 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9486 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9488 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9489 (remove_fork_catchpoint, post_startup_inferior)
9490 (post_attach): Move...
9491 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9492 (remove_fork_catchpoint, post_startup_inferior)
9493 (post_attach): ...here.
9494 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9495 (remove_fork_catchpoint, post_startup_inferior)
9496 (post_attach): Move...
9497 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9498 (remove_fork_catchpoint, post_startup_inferior)
9499 (post_attach): ...here.
9501 2020-04-24 Tom Tromey <tromey@adacore.com>
9503 * nat/windows-nat.h (struct windows_thread_info)
9504 <pc_adjusted>: New member.
9505 * windows-nat.c (windows_fetch_one_register): Check
9507 (windows_nat_target::get_windows_debug_event)
9508 (windows_nat_target::wait): Set pc_adjusted.
9510 2020-04-24 Tom de Vries <tdevries@suse.de>
9512 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9513 Run gdb-add-index inside temp dir.
9515 2020-04-23 Tom Tromey <tromey@adacore.com>
9517 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9520 2020-04-23 Luis Machado <luis.machado@linaro.org>
9522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9523 get_frame_register instead of gdbarch_unwind_pc.
9525 2020-04-23 Tom de Vries <tdevries@suse.de>
9527 * symtab.c (lookup_global_symbol): Prefer def over decl.
9529 2020-04-23 Tom de Vries <tdevries@suse.de>
9532 * block.c (best_symbol, better_symbol): Promote to external.
9533 * block.h (best_symbol, better_symbol): Declare.
9534 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9537 2020-04-23 Tom Tromey <tromey@adacore.com>
9540 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9541 "const char *", not a "const std::string &".
9542 <name_and_matcher::operator==>: Update.
9543 * unittests/lookup_name_info-selftests.c: Change type of
9546 2020-04-23 Tom Tromey <tom@tromey.com>
9548 * inferior.h (iterate_over_inferiors): Don't declare.
9549 * inferior.c (iterate_over_inferiors): Remove.
9550 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9552 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9553 use iterate_over_inferiors.
9554 (darwin_resume_inferior_it)
9555 (struct resume_inferior_threads_param)
9556 (darwin_resume_inferior_threads_it): Remove.
9557 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9559 2020-04-23 Tom de Vries <tdevries@suse.de>
9561 * blockframe.c (find_pc_partial_function): Use
9562 find_pc_sect_compunit_symtab rather than
9563 objfile->sf->qf->find_pc_sect_compunit_symtab.
9565 2020-04-22 Tom de Vries <tdevries@suse.de>
9568 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9571 2020-04-22 Tom de Vries <tdevries@suse.de>
9574 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9577 2020-04-22 Tom de Vries <tdevries@suse.de>
9580 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9581 CU if already created.
9583 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9585 * infrun.c (displaced_step_fixup): Switch to the event_thread
9586 before calling displaced_step_restore, not after.
9588 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9590 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9591 its inferior is not recorded by us.
9592 (record_btrace_target_open): Replace call to
9593 all_non_exited_threads () with call to current_inferior
9594 ()->non_exited_threads ().
9595 (record_btrace_target::stop_recording): Likewise.
9596 (record_btrace_target::close): Likewise.
9597 (record_btrace_target::wait): Likewise.
9598 (record_btrace_target::record_stop_replaying): Likewise.
9600 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9602 * btrace.c (btrace_enable): Throw an error on double enables and
9603 when enabling recording fails.
9604 (btrace_disable): Throw an error if the thread is not recorded.
9606 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9608 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9609 request if we do not have a thread_info.
9611 2020-04-21 Tom de Vries <tdevries@suse.de>
9615 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9616 exception in get_frame_id.
9618 2020-04-20 Tom Tromey <tromey@adacore.com>
9620 * python/python.c (struct gdbpy_event): Mark move constructor as
9622 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9623 constructor as noexcept.
9624 * completer.h (struct completion_result): Mark move constructor as
9626 * completer.c (completion_result::completion_result): Use
9627 initialization style. Don't call reset_match_list.
9629 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9631 * MAINTAINERS (Write After Approval): Add myself.
9633 2020-04-18 Tom Tromey <tom@tromey.com>
9635 * windows-tdep.c (init_w32_command_list)
9636 (w32_prefix_command_valid): Restore.
9637 (_initialize_windows_tdep): Call init_w32_command_list.
9639 2020-04-18 Tom Tromey <tom@tromey.com>
9641 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9642 * value.c (value_fn_field): Update.
9643 * valops.c (find_function_in_inferior)
9644 (value_allocate_space_in_inferior): Update.
9645 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9647 * tui/tui-source.c (tui_source_window::set_contents): Update.
9648 * symtab.c (lookup_global_or_static_symbol)
9649 (find_function_start_sal_1, skip_prologue_sal)
9650 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9651 * symmisc.c (dump_msymbols, dump_symtab_1)
9652 (maintenance_print_one_line_table): Update.
9653 * symfile.c (init_entry_point_info, section_is_mapped)
9654 (list_overlays_command, simple_read_overlay_table)
9655 (simple_overlay_update_1): Update.
9656 * stap-probe.c (handle_stap_probe): Update.
9657 * stabsread.c (dbx_init_float_type, define_symbol)
9658 (read_one_struct_field, read_enum_type, read_range_type): Update.
9659 * source.c (info_line_command): Update.
9660 * python/python.c (gdbpy_source_objfile_script)
9661 (gdbpy_execute_objfile_script): Update.
9662 * python/py-type.c (save_objfile_types): Update.
9663 * python/py-objfile.c (py_free_objfile): Update.
9664 * python/py-inferior.c (python_new_objfile): Update.
9665 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9666 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9667 (maintenance_check_psymtabs): Update.
9668 * printcmd.c (info_address_command): Update.
9669 * objfiles.h (struct objfile) <arch>: New method, from
9671 (get_objfile_arch): Don't declare.
9672 * objfiles.c (get_objfile_arch): Remove.
9673 (filter_overlapping_sections): Update.
9674 * minsyms.c (msymbol_is_function): Update.
9675 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9676 (output_nondebug_symbol): Update.
9677 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9678 (mdebug_expand_psymtab): Update.
9679 * machoread.c (macho_add_oso_symfile): Update.
9680 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9682 * linux-fork.c (checkpoint_command): Update.
9683 * linespec.c (convert_linespec_to_sals): Update.
9684 * jit.c (finalize_symtab): Update.
9685 * infrun.c (insert_exception_resume_from_probe): Update.
9686 * ia64-tdep.c (ia64_find_unwind_table): Update.
9687 * hppa-tdep.c (internalize_unwinds): Update.
9688 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9690 * gcore.c (call_target_sbrk): Update.
9691 * elfread.c (record_minimal_symbol, elf_symtab_read)
9692 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9693 (elf_gnu_ifunc_resolve_by_got): Update.
9694 * dwarf2/read.c (create_addrmap_from_index)
9695 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9696 (read_debug_names_from_section)
9697 (process_psymtab_comp_unit_reader, add_partial_symbol)
9698 (add_partial_subprogram, process_full_comp_unit)
9699 (read_file_scope, read_func_scope, read_lexical_block_scope)
9700 (read_call_site_scope, dwarf2_ranges_read)
9701 (dwarf2_record_block_ranges, dwarf2_add_field)
9702 (mark_common_block_symbol_computed, read_tag_pointer_type)
9703 (read_tag_string_type, dwarf2_init_float_type)
9704 (dwarf2_init_complex_target_type, read_base_type)
9705 (partial_die_info::read, partial_die_info::read)
9706 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9707 (dwarf2_fetch_die_loc_sect_off): Update.
9708 * dwarf2/loc.c (dwarf2_find_location_expression)
9709 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9710 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9711 (dwarf2_loc_desc_get_symbol_read_needs)
9712 (locexpr_describe_location_piece, locexpr_describe_location_1)
9713 (loclist_describe_location): Update.
9714 * dwarf2/index-write.c (write_debug_names): Update.
9715 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9716 * dtrace-probe.c (dtrace_process_dof): Update.
9717 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9718 (process_one_symbol): Update.
9719 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9720 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9721 (coff_read_enum_type): Update.
9722 * cli/cli-cmds.c (edit_command, list_command): Update.
9723 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9724 * breakpoint.c (create_overlay_event_breakpoint)
9725 (create_longjmp_master_breakpoint)
9726 (create_std_terminate_master_breakpoint)
9727 (create_exception_master_breakpoint, get_sal_arch): Update.
9728 * block.c (block_gdbarch): Update.
9729 * annotate.c (annotate_source_line): Update.
9731 2020-04-17 Tom Tromey <tromey@adacore.com>
9733 * auto-load.c (show_auto_load_cmd): Remove.
9734 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9735 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9736 (maintenance_print_arc_command): Remove.
9737 * tui/tui-win.c (tui_command): Remove.
9738 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9739 * tui/tui-layout.c (tui_layout_command): Remove.
9740 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9741 * python/python.c (user_set_python, user_show_python): Remove.
9742 (_initialize_python): Use add_basic_prefix_cmd,
9743 add_show_prefix_cmd.
9744 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9745 (install_gdb_commands): Use add_basic_prefix_cmd,
9746 add_show_prefix_cmd.
9747 (info_guile_command): Remove.
9748 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9749 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9750 add_show_prefix_cmd.
9751 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9752 Remove do_set and do_show parameters.
9753 * cli/cli-style.c (set_style, show_style): Remove.
9754 (_initialize_cli_style): Use add_basic_prefix_cmd,
9755 add_show_prefix_cmd.
9756 (cli_style_option::add_setshow_commands): Remove do_set and
9758 (cli_style_option::add_setshow_commands): Use
9759 add_basic_prefix_cmd, add_show_prefix_cmd.
9760 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9761 (set_style_name): Remove.
9762 * cli/cli-dump.c (dump_command, append_command): Remove.
9763 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9764 (tekhex_dump_command, binary_dump_command)
9765 (binary_append_command): Remove.
9766 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9767 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9768 (init_w32_command_list): Remove; move into ...
9769 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9770 * valprint.c (set_print, show_print, set_print_raw)
9771 (show_print_raw): Remove.
9772 (_initialize_valprint): Use add_basic_prefix_cmd,
9773 add_show_prefix_cmd.
9774 * typeprint.c (set_print_type, show_print_type): Remove.
9775 (_initialize_typeprint): Use add_basic_prefix_cmd,
9776 add_show_prefix_cmd.
9777 * record.c (set_record_command, show_record_command): Remove.
9778 (_initialize_record): Use add_basic_prefix_cmd,
9779 add_show_prefix_cmd.
9780 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9781 add_show_prefix_cmd.
9782 (info_command, show_command, set_debug, show_debug): Remove.
9783 * top.h (set_history, show_history): Don't declare.
9784 * top.c (set_history, show_history): Remove.
9785 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9786 (unset_tdesc_cmd): Remove.
9787 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9788 add_show_prefix_cmd.
9789 * symtab.c (info_module_command): Remove.
9790 (_initialize_symtab): Use add_basic_prefix_cmd.
9791 * symfile.c (overlay_command): Remove.
9792 (_initialize_symfile): Use add_basic_prefix_cmd.
9793 * sparc64-tdep.c (info_adi_command): Remove.
9794 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9795 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9796 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9797 add_show_prefix_cmd.
9798 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9799 (_initialize_serial): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9802 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9803 add_show_prefix_cmd.
9804 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9805 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9806 add_show_prefix_cmd.
9807 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9808 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9809 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9810 add_show_prefix_cmd.
9811 * remote.c (remote_command, set_remote_cmd): Remove.
9812 (_initialize_remote): Use add_basic_prefix_cmd.
9813 * record-full.c (set_record_full_command)
9814 (show_record_full_command): Remove.
9815 (_initialize_record_full): Use add_basic_prefix_cmd,
9816 add_show_prefix_cmd.
9817 * record-btrace.c (cmd_set_record_btrace)
9818 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9819 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9820 (cmd_show_record_btrace_pt): Remove.
9821 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9822 add_show_prefix_cmd.
9823 * ravenscar-thread.c (set_ravenscar_command)
9824 (show_ravenscar_command): Remove.
9825 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 * mips-tdep.c (show_mips_command, set_mips_command)
9828 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9829 add_show_prefix_cmd.
9830 * maint.c (maintenance_command, maintenance_info_command)
9831 (maintenance_check_command, maintenance_print_command)
9832 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9833 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9834 add_show_prefix_cmd.
9835 (show_per_command_cmd): Remove.
9836 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9838 (maintenance_show_test_settings_cmd): Remove.
9839 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9840 add_show_prefix_cmd.
9841 * maint-test-options.c (maintenance_test_options_command):
9843 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9844 * macrocmd.c (macro_command): Remove
9845 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9846 * language.c (set_check, show_check): Remove.
9847 (_initialize_language): Use add_basic_prefix_cmd,
9848 add_show_prefix_cmd.
9849 * infcmd.c (unset_command): Remove.
9850 (_initialize_infcmd): Use add_basic_prefix_cmd.
9851 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9852 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9853 add_show_prefix_cmd.
9854 * go32-nat.c (go32_info_dos_command): Remove.
9855 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9856 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9857 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9858 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9859 (_initialize_frame): Use add_basic_prefix_cmd,
9860 add_show_prefix_cmd.
9861 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9862 (_initialize_dcache): Use add_basic_prefix_cmd,
9863 add_show_prefix_cmd.
9864 * cp-support.c (maint_cplus_command): Remove.
9865 (_initialize_cp_support): Use add_basic_prefix_cmd.
9866 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9867 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9868 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9869 add_basic_prefix_cmd, add_show_prefix_cmd.
9870 * breakpoint.c (save_command): Remove.
9871 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9872 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9873 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9874 add_show_prefix_cmd.
9875 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9876 (set_ada_command, show_ada_command): Remove.
9877 (_initialize_ada_language): Use add_basic_prefix_cmd,
9878 add_show_prefix_cmd.
9879 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9881 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9883 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9884 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9886 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9888 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9891 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9893 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9894 import table is not at beginning of .idata section.
9896 2020-04-16 Pedro Alves <palves@redhat.com>
9898 * inferior.c (delete_inferior): Use delete operator directly
9899 instead of delete_program_space.
9900 * progspace.c (add_program_space): New, factored out from
9901 program_space::program_space.
9902 (remove_program_space): New, factored out from
9903 delete_program_space.
9904 (program_space::program_space): Remove intro comment. Rewrite.
9905 (program_space::~program_space): Remove intro comment. Call
9906 remove_program_space.
9907 (delete_program_space): Delete.
9908 * progspace.h (program_space::program_space): Make explicit. Move
9909 intro comment here, adjusted.
9910 (program_space::~program_space): Move intro comment here,
9912 (delete_program_space): Remove.
9914 2020-04-16 Tom Tromey <tromey@adacore.com>
9916 * windows-nat.c (windows_nat::handle_access_violation): New
9918 * nat/windows-nat.h (handle_access_violation): Declare.
9919 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9920 windows-nat.c. Call handle_access_violation.
9922 2020-04-16 Tom de Vries <tdevries@suse.de>
9925 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9926 CUs without psymtab.
9928 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9930 * python/python.c (do_start_initialization): Don't call
9931 PyEval_InitThreads for Python 3.9 and beyond.
9933 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9935 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9937 (obsd_nat_target::wait): Likewise.
9939 2020-04-15 Tom Tromey <tromey@adacore.com>
9941 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9942 (DEBUG_EXCEPT): Use debug_printf.
9944 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9946 * completer.c (class completion_tracker::completion_hash_entry)
9947 <hash_name>: New member function.
9948 (completion_tracker::discard_completions): New callback to hash a
9949 completion_hash_entry, pass this to htab_create_alloc.
9951 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9953 * windows-nat.c (windows_make_so): Warn rather than stopping with
9954 an error if realpath() fails.
9956 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9958 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9959 (nbsd_nat_target::info_proc): Add do_status.
9961 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9962 Tom de Vries <tdevries@suse.de>
9965 * psympriv.h (struct partial_symtab::read_symtab)
9966 (struct partial_symtab::expand_psymtab)
9967 (struct partial_symtab::read_dependencies): Update comments.
9968 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9969 read_symtab for includer.
9970 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9971 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9972 (struct dwarf2_include_psymtab::m_readin): Remove.
9973 (struct dwarf2_include_psymtab::includer): New member function.
9974 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9976 2020-04-14 Tom de Vries <tdevries@suse.de>
9979 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9980 with NULL symbol_matcher and lookup_name.
9981 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9983 * dwarf2/read.c (dw2_expand_symtabs_matching)
9984 (dw2_debug_names_expand_symtabs_matching): Same.
9985 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9986 Make lookup_name a pointer. Update comment.
9987 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9988 lookup_name being a pointer.
9989 * symfile.c (expand_symtabs_matching): Same.
9990 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9991 * linespec.c (iterate_over_all_matching_symtabs): Same.
9993 2020-04-13 Tom Tromey <tom@tromey.com>
9995 * run-on-main-thread.c: Update include.
9996 * unittests/main-thread-selftests.c: Update include.
9997 * tui/tui-win.c: Update include.
9998 * tui/tui-io.c: Update include.
9999 * tui/tui-interp.c: Update include.
10000 * tui/tui-hooks.c: Update include.
10001 * top.h: Update include.
10002 * top.c: Update include.
10003 * ser-base.c: Update include.
10004 * remote.c: Update include.
10005 * remote-notif.c: Update include.
10006 * remote-fileio.c: Update include.
10007 * record-full.c: Update include.
10008 * record-btrace.c: Update include.
10009 * python/python.c: Update include.
10010 * posix-hdep.c: Update include.
10011 * mingw-hdep.c: Update include.
10012 * mi/mi-main.c: Update include.
10013 * mi/mi-interp.c: Update include.
10014 * main.c: Update include.
10015 * linux-nat.c: Update include.
10016 * interps.c: Update include.
10017 * infrun.c: Update include.
10018 * inf-loop.c: Update include.
10019 * event-top.c: Update include.
10020 * event-loop.c: Move to ../gdbsupport/.
10021 * event-loop.h: Move to ../gdbsupport/.
10022 * async-event.h: Update include.
10023 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
10025 2020-04-13 Tom Tromey <tom@tromey.com>
10027 * tui/tui-win.c: Include async-event.h.
10028 * remote.c: Include async-event.h.
10029 * remote-notif.c: Include async-event.h.
10030 * record-full.c: Include async-event.h.
10031 * record-btrace.c: Include async-event.h.
10032 * infrun.c: Include async-event.h.
10033 * event-top.c: Include async-event.h.
10034 * event-loop.h: Move some declarations to async-event.h.
10035 * event-loop.c: Don't include ser-event.h or top.h. Move some
10036 code to async-event.c.
10037 * async-event.h: New file.
10038 * async-event.c: New file.
10039 * Makefile.in (COMMON_SFILES): Add async-event.c.
10040 (HFILES_NO_SRCDIR): Add async-event.h.
10042 2020-04-13 Tom Tromey <tom@tromey.com>
10044 * utils.c (flush_streams): New function.
10045 * event-loop.c (gdb_wait_for_event): Call flush_streams.
10047 2020-04-13 Tom Tromey <tom@tromey.com>
10049 * event-loop.c (handle_file_event): Use warning, not
10052 2020-04-13 Tom Tromey <tom@tromey.com>
10054 * event-loop.c: Include <chrono>.
10056 2020-04-13 Tom Tromey <tom@tromey.com>
10058 * gdb_select.h: Move to ../gdbsupport/.
10059 * event-loop.c: Update include path.
10060 * top.c: Update include path.
10061 * ser-base.c: Update include path.
10062 * ui-file.c: Update include path.
10063 * ser-tcp.c: Update include path.
10064 * guile/scm-ports.c: Update include path.
10065 * posix-hdep.c: Update include path.
10066 * ser-unix.c: Update include path.
10067 * gdb_usleep.c: Update include path.
10068 * mingw-hdep.c: Update include path.
10069 * inflow.c: Update include path.
10070 * infrun.c: Update include path.
10071 * event-top.c: Update include path.
10073 2020-04-13 Tom Tromey <tom@tromey.com>
10075 * configure: Rebuild.
10076 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10078 2020-04-13 Tom Tromey <tom@tromey.com>
10080 * event-loop.h (start_event_loop): Don't declare.
10081 * event-loop.c (start_event_loop): Move...
10082 * main.c (start_event_loop): ...here. Now static.
10084 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10086 * MAINTAINERS: Update my email address.
10088 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10090 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10093 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10095 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10096 (nbsd_nat_target::info_proc): Add do_cmdline.
10098 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10100 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10101 (nbsd_nat_target::info_proc): Add do_cwd.
10103 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10105 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10107 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10109 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10110 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10111 (nbsd_nat_target::info_proc): New functions.
10112 * nbsd-nat.c (kinfo_get_vmmap): New function.
10113 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10114 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10115 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10116 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10118 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10119 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10120 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10121 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10122 (KINFO_VME_FLAG_GROWS_DOWN): New.
10124 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10126 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10129 2020-04-10 Tom Tromey <tromey@adacore.com>
10131 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10133 2020-04-10 Tom Tromey <tromey@adacore.com>
10135 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10136 separate debug files.
10138 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10140 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10142 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10144 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10145 Check for STATUS_WX86_BREAKPOINT.
10146 (windows_nat_target::wait): Same.
10148 2020-04-10 Tom de Vries <tdevries@suse.de>
10151 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10153 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10155 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10156 (Write After Approval): Remove Tom de Vries.
10158 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10161 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10163 * buildsym.c (record_line): Fix undefined behavior and preserve
10166 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10168 * auxv.h (svr4_auxv_parse): New.
10169 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10170 and generic_auxv_parse.
10171 (svr4_auxv_parse): Add.
10172 * obsd-tdep.c: Include "auxv.h".
10173 (obsd_auxv_parse): Remove.
10174 (obsd_init_abi): Remove comment.
10175 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10176 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10177 * nbsd-tdep.c: Include "auxv.h".
10178 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10180 2020-04-08 Tom Tromey <tromey@adacore.com>
10182 * nat/windows-nat.h (last_wait_event): Don't declare.
10183 (wait_for_debug_event): Update comment.
10184 * nat/windows-nat.c (last_wait_event): Now static.
10186 2020-04-08 Tom Tromey <tromey@adacore.com>
10188 * windows-nat.c (wait_for_debug_event): Move to
10190 * nat/windows-nat.h (wait_for_debug_event): Declare.
10191 * nat/windows-nat.c (wait_for_debug_event): Move from
10192 windows-nat.c. No longer static.
10194 2020-04-08 Tom Tromey <tromey@adacore.com>
10196 * windows-nat.c (get_windows_debug_event): Use
10197 fetch_pending_stop.
10198 * nat/windows-nat.h (fetch_pending_stop): Declare.
10199 * nat/windows-nat.c (fetch_pending_stop): New function.
10201 2020-04-08 Tom Tromey <tromey@adacore.com>
10203 * windows-nat.c (windows_continue): Use matching_pending_stop and
10204 continue_last_debug_event.
10205 * nat/windows-nat.h (matching_pending_stop)
10206 (continue_last_debug_event): Declare.
10207 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10208 (matching_pending_stop, continue_last_debug_event): New
10211 2020-04-08 Tom Tromey <tromey@adacore.com>
10213 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10214 (handle_exception_result): Move to nat/windows-nat.h.
10215 (DEBUG_EXCEPTION_SIMPLE): Remove.
10216 (windows_nat::handle_ms_vc_exception): New function.
10217 (handle_exception): Move to nat/windows-nat.c.
10218 (get_windows_debug_event): Update.
10219 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10221 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10222 (handle_exception_result): Move from windows-nat.c.
10223 (handle_exception): Declare.
10224 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10225 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10228 2020-04-08 Tom Tromey <tromey@adacore.com>
10230 * windows-nat.c (exception_count, event_count): Remove.
10231 (handle_exception, get_windows_debug_event)
10232 (do_initial_windows_stuff): Update.
10234 2020-04-08 Tom Tromey <tromey@adacore.com>
10236 * windows-nat.c (windows_nat::handle_load_dll)
10237 (windows_nat::handle_unload_dll): Rename. No longer static.
10238 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10241 2020-04-08 Tom Tromey <tromey@adacore.com>
10243 * complaints.h (stop_whining): Declare at top-level.
10244 (complaint): Don't declare stop_whining.
10246 2020-04-08 Tom Tromey <tromey@adacore.com>
10248 * windows-nat.c (windows_nat::handle_output_debug_string):
10249 Rename. No longer static.
10250 * nat/windows-nat.h (handle_output_debug_string): Declare.
10252 2020-04-08 Tom Tromey <tromey@adacore.com>
10254 * windows-nat.c (current_process_handle, current_process_id)
10255 (main_thread_id, last_sig, current_event, last_wait_event)
10256 (current_windows_thread, desired_stop_thread_id, pending_stops)
10257 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10258 (display_selectors, fake_create_process)
10259 (get_windows_debug_event): Update.
10260 * nat/windows-nat.h (current_process_handle, current_process_id)
10261 (main_thread_id, last_sig, current_event, last_wait_event)
10262 (current_windows_thread, desired_stop_thread_id, pending_stops)
10263 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10264 * nat/windows-nat.c (current_process_handle, current_process_id)
10265 (main_thread_id, last_sig, current_event, last_wait_event)
10266 (current_windows_thread, desired_stop_thread_id, pending_stops)
10267 (siginfo_er): New globals. Move from windows-nat.c.
10269 2020-04-08 Tom Tromey <tromey@adacore.com>
10271 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10272 (handle_load_dll): Update.
10273 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10275 2020-04-08 Tom Tromey <tromey@adacore.com>
10277 * windows-nat.c (enum thread_disposition_type): Move to
10279 (windows_nat::thread_rec): Rename from thread_rec. No longer
10281 (windows_add_thread, windows_nat_target::fetch_registers)
10282 (windows_nat_target::store_registers, handle_exception)
10283 (windows_nat_target::resume, get_windows_debug_event)
10284 (windows_nat_target::get_tib_address)
10285 (windows_nat_target::thread_name)
10286 (windows_nat_target::thread_alive): Update.
10287 * nat/windows-nat.h (enum thread_disposition_type): Move from
10289 (thread_rec): Declare.
10291 2020-04-08 Tom Tromey <tromey@adacore.com>
10293 * windows-nat.c: Add "using namespace".
10294 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10295 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10297 2020-04-08 Tom Tromey <tromey@adacore.com>
10299 * nat/windows-nat.h (struct windows_thread_info): Declare
10301 * nat/windows-nat.c (~windows_thread_info): New.
10303 2020-04-08 Tom Tromey <tromey@adacore.com>
10306 * windows-nat.c (current_event): Update comment.
10307 (last_wait_event, desired_stop_thread_id): New globals.
10308 (struct pending_stop): New.
10309 (pending_stops): New global.
10310 (windows_nat_target) <stopped_by_sw_breakpoint>
10311 <supports_stopped_by_sw_breakpoint>: New methods.
10312 (windows_fetch_one_register): Add assertions. Adjust PC.
10313 (windows_continue): Handle pending stops. Suspend other threads
10314 when stepping. Use last_wait_event
10315 (wait_for_debug_event): New function.
10316 (get_windows_debug_event): Use wait_for_debug_event. Handle
10317 pending stops. Queue spurious stops.
10318 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10319 (windows_nat_target::kill): Use wait_for_debug_event.
10320 * nat/windows-nat.h (struct windows_thread_info)
10321 <stopped_at_software_breakpoint>: New field.
10322 * nat/windows-nat.c (windows_thread_info::resume): Clear
10323 stopped_at_software_breakpoint.
10325 2020-04-08 Tom Tromey <tromey@adacore.com>
10327 * windows-nat.c (enum thread_disposition_type): New.
10328 (thread_rec): Replace "get_context" parameter with "disposition";
10330 (windows_add_thread, windows_nat_target::fetch_registers)
10331 (windows_nat_target::store_registers, handle_exception)
10332 (windows_nat_target::resume, get_windows_debug_event)
10333 (windows_nat_target::get_tib_address)
10334 (windows_nat_target::thread_name)
10335 (windows_nat_target::thread_alive): Update.
10337 2020-04-08 Tom Tromey <tromey@adacore.com>
10339 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10340 (windows_continue): Use windows_continue::resume.
10341 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10342 resume>: Declare new methods.
10343 * nat/windows-nat.c: New file.
10344 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10346 2020-04-08 Tom Tromey <tromey@adacore.com>
10348 * windows-nat.c (windows_add_thread, windows_delete_thread)
10349 (windows_nat_target::fetch_registers)
10350 (windows_nat_target::store_registers, fake_create_process)
10351 (windows_nat_target::resume, windows_nat_target::resume)
10352 (get_windows_debug_event, windows_nat_target::wait)
10353 (windows_nat_target::pid_to_str)
10354 (windows_nat_target::get_tib_address)
10355 (windows_nat_target::get_ada_task_ptid)
10356 (windows_nat_target::thread_name)
10357 (windows_nat_target::thread_alive): Use lwp, not tid.
10359 2020-04-08 Tom Tromey <tromey@adacore.com>
10361 * windows-nat.c (handle_exception)
10362 (windows_nat_target::thread_name): Update.
10363 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10364 <name>: Now unique_xmalloc_ptr.
10366 2020-04-08 Tom Tromey <tromey@adacore.com>
10368 * windows-nat.c (thread_rec)
10369 (windows_nat_target::fetch_registers): Update.
10370 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10372 <debug_registers_changed, reload_context>: Now bool.
10374 2020-04-08 Tom Tromey <tromey@adacore.com>
10376 * windows-nat.c (windows_add_thread): Use new.
10377 (windows_init_thread_list, windows_delete_thread): Use delete.
10378 (get_windows_debug_event): Update.
10379 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10380 destructor, and initializers.
10382 2020-04-08 Tom Tromey <tromey@adacore.com>
10384 * windows-nat.c (struct windows_thread_info): Remove.
10385 * nat/windows-nat.h: New file.
10387 2020-04-08 Tom Tromey <tromey@adacore.com>
10389 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10390 (thread_rec, windows_add_thread, windows_delete_thread)
10391 (windows_continue): Update.
10393 2020-04-08 Tom Tromey <tromey@adacore.com>
10395 * windows-nat.c (struct windows_thread_info): Remove typedef.
10396 (thread_head): Remove.
10397 (thread_list): New global.
10398 (thread_rec, windows_add_thread, windows_init_thread_list)
10399 (windows_delete_thread, windows_continue): Update.
10401 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10403 * windows-tdep.h (windows_init_abi): Add comment.
10404 (cygwin_init_abi): New declaration.
10405 * windows-tdep.c: Split signal enumeration in two, one for
10406 Windows and one for Cygwin.
10407 (windows_gdb_signal_to_target): Only deal with signal of the
10409 (cygwin_gdb_signal_to_target): New function.
10410 (windows_init_abi): Rename to windows_init_abi_common, don't set
10411 gdb_signal_to_target gdbarch method. Add new new function with
10413 (cygwin_init_abi): New function.
10414 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10415 comment. Don't call windows_init_abi.
10416 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10417 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10418 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10419 i386_windows_init_abi_common, don't call windows_init_abi. Add
10420 a new function of this name.
10421 (i386_cygwin_init_abi): New function.
10422 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10425 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10427 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10429 (dwarf2_read_gdb_index): Update.
10431 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10433 * nbsd-tdep.c: Include "objfiles.h".
10434 (nbsd_skip_solib_resolver): New.
10435 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10437 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10439 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10440 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10441 with DW_LLE_base_addressx are being emitted in DWARFv5.
10442 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10443 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10446 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10448 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10449 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10450 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10451 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10452 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10453 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10454 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10457 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10459 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10460 (read_loclist_index): New function definition.
10461 (lookup_loclist_base): New function definition.
10462 (read_loclist_header): New function definition.
10463 (dwarf2_cu): Add loclist_base and loclist_header field.
10464 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10465 (read_full_die_1): Read the value of DW_AT_loclists_base.
10466 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10467 (read_attribute_value): Handle DW_FORM_loclistx.
10468 (skip_one_die): Handle DW_FORM_loclistx.
10469 (loclist_header): New structure declaration.
10470 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10472 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10474 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10475 constructor. Remove `addr` parameter from other constructor and
10476 add `per_cu` parameter.
10477 * dwarf2/read.c (create_partial_symtab): Update.
10479 2020-04-07 Tom de Vries <tdevries@suse.de>
10482 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10483 (partial_die_info::fixup): Inherit has_const_value.
10485 2020-04-07 Tom de Vries <tdevries@suse.de>
10487 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10488 symbols without address.
10490 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10492 * nbsd-nat.h (struct thread_info): Add forward declaration.
10493 (nbsd_nat_target::thread_alive): Add.
10494 (nbsd_nat_target::thread_name): Likewise.
10495 (nbsd_nat_target::update_thread_list): Likewise.
10496 (update_thread_list::post_attach): Likewise.
10497 (post_attach::pid_to_str): Likewise.
10498 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10499 (nbsd_thread_lister): Add.
10500 (nbsd_nat_target::thread_alive): Likewise.
10501 (nbsd_nat_target::thread_name): Likewise.
10502 (nbsd_add_threads): Likewise.
10503 (update_thread_list::post_attach): Likewise.
10504 (nbsd_nat_target::update_thread_list): Likewise.
10505 (post_attach::pid_to_str): Likewise.
10507 2020-04-06 Tom Tromey <tromey@adacore.com>
10509 * ada-valprint.c (print_variant_part): Extract the variant field.
10510 (print_field_values): Use the field as the outer value when
10513 2020-04-06 Tom Tromey <tromey@adacore.com>
10515 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10516 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10517 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10518 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10519 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10521 2020-04-06 Tom Tromey <tromey@adacore.com>
10523 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10526 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10528 * nbsd-tdep.c: Include "gdbarch.h".
10529 Define enum with NetBSD signal numbers.
10530 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10531 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10532 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10533 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10534 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10535 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10536 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10537 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10538 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10539 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10540 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10541 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10543 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10546 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10548 2020-04-03 Tom Tromey <tromey@adacore.com>
10550 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10551 Read constant block.
10553 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10555 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10556 (gdb_bfd_get_full_section_contents): New declaration.
10557 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10558 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10559 gdb_bfd_get_full_section_contents.
10561 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10563 * exec.c (build_section_table): Replace internal_error with
10565 (section_table_xfer_memory_partial): Likewise.
10566 * mdebugread.c (parse_partial_symbols): Likewise.
10567 * psymtab.c (lookup_partial_symbol): Likewise.
10568 * utils.c (wrap_here): Likewise.
10570 2020-04-02 Tom Tromey <tromey@adacore.com>
10572 * f-lang.c (build_fortran_types): Use arch_type to initialize
10573 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10575 2020-04-02 Tom Tromey <tromey@adacore.com>
10577 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10580 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10581 Bernd Edlinger <bernd.edlinger@hotmail.de>
10582 Tom Tromey <tromey@adacore.com>
10584 * buildsym.c (buildsym_compunit::record_line): Remove
10585 deduplication code.
10587 2020-04-02 Tom de Vries <tdevries@suse.de>
10590 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10592 2020-04-02 Tom de Vries <tdevries@suse.de>
10594 * dwarf2/read.c (dwarf2_gdb_index_functions,
10595 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10597 * psymtab.c (psym_lookup_global_symbol_language): New function.
10598 (psym_functions): Init psym_lookup_global_symbol_language with
10599 psym_lookup_global_symbol_language.
10600 * symfile-debug.c (debug_sym_quick_functions): Init
10601 lookup_global_symbol_language with NULL.
10602 * symfile.c (set_initial_language): Remove fixme comment.
10603 * symfile.h (struct quick_symbol_functions): Add
10604 lookup_global_symbol_language.
10605 * symtab.c (find_quick_global_symbol_language): New function.
10606 (find_main_name): Use find_quick_global_symbol_language.
10608 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10610 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10612 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10614 * buildsym.c (record_line): Fix undefined behavior and preserve
10617 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10619 * buildsym.c (record_line): Fix the resizing condition.
10621 2020-04-01 Tom Tromey <tom@tromey.com>
10623 * value.h (value_literal_complex): Add comment.
10624 * valops.c (value_literal_complex): Refer to value.h.
10626 2020-04-01 Tom Tromey <tom@tromey.com>
10628 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10629 (scalar_type): New rule, from typebase.
10630 (typebase): Use scalar_type. Recognize complex types.
10631 (field_name): Handle FLOAT_KEYWORD.
10632 (ident_tokens): Add _Complex and __complex__.
10634 2020-04-01 Tom Tromey <tom@tromey.com>
10637 * valarith.c (promotion_type, complex_binop): New functions.
10638 (scalar_binop): Handle complex numbers. Use promotion_type.
10639 (value_pos, value_neg, value_complement): Handle complex numbers.
10641 2020-04-01 Tom Tromey <tom@tromey.com>
10643 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10644 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10645 (parse_number): Handle complex numbers.
10647 2020-04-01 Tom Tromey <tom@tromey.com>
10649 * c-valprint.c (c_decorations): Change complex suffix to "i".
10651 2020-04-01 Tom Tromey <tom@tromey.com>
10653 * valprint.c (generic_value_print_complex): Use accessors.
10654 * value.h (value_real_part, value_imaginary_part): Declare.
10655 * valops.c (value_real_part, value_imaginary_part): New
10657 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10659 2020-04-01 Tom Tromey <tom@tromey.com>
10661 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10662 (read_range_type): Update.
10663 * mdebugread.c (basic_type): Update.
10664 * go-lang.c (build_go_types): Use init_complex_type.
10665 * gdbtypes.h (struct main_type) <complex_type>: New member.
10666 (init_complex_type): Update.
10667 (arch_complex_type): Don't declare.
10668 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10669 Make name if none given. Use alloc_type_copy. Look for cached
10671 (arch_complex_type): Remove.
10672 (gdbtypes_post_init): Use init_complex_type.
10673 * f-lang.c (build_fortran_types): Use init_complex_type.
10674 * dwarf2/read.c (read_base_type): Update.
10675 * d-lang.c (build_d_types): Use init_complex_type.
10676 * ctfread.c (read_base_type): Update.
10678 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10680 * infrun.c (stop_all_threads): Update assertion, plus when
10681 stopping threads, take into account that we might be trying
10682 to stop an all-stop target.
10683 (stop_waiting): Call 'stop_all_threads' if there exists a
10686 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10688 * target.h (exists_non_stop_target): New function declaration.
10689 * target.c (exists_non_stop_target): New function.
10691 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10694 * eval.c (is_integral_or_integral_reference): New function.
10695 (evaluate_subexp_standard): Allow integer references in
10696 pointer arithmetic.
10698 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10700 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10701 check for no ptid in the stop reply when the target is non-stop.
10703 2020-04-01 Tom Tromey <tromey@adacore.com>
10705 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10706 "name" parameter to rvalue reference. Initialize m_name_holder.
10707 <lookup_name_info>: New overloads.
10708 <name>: Return gdb::string_view.
10709 <c_str>: New method.
10710 <make_ignore_params>: Update.
10711 <search_name_hash>: Update.
10712 <language_lookup_name>: Return const char *.
10713 <m_name>: Change type.
10714 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10715 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10716 (lookup_name_info::match_any): Update.
10717 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10719 * minsyms.c (linkage_name_str): Update.
10720 * language.c (default_symbol_name_matcher): Update.
10721 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10723 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10724 (ada_lookup_name_info::ada_lookup_name_info): Update.
10725 (literal_symbol_name_matcher): Update.
10727 2020-04-01 Tom Tromey <tromey@adacore.com>
10729 * psymtab.c (psymtab_search_name): Remove function.
10730 (psym_lookup_symbol): Create search name and lookup name here.
10731 (lookup_partial_symbol): Remove "name" parameter; add
10733 (psym_expand_symtabs_for_function): Update.
10735 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10738 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10740 2020-03-31 Tom Tromey <tromey@adacore.com>
10742 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10745 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10747 * features/riscv/32bit-csr.xml: Regenerated.
10748 * features/riscv/64bit-csr.xml: Regenerated.
10750 2020-03-30 Tom Tromey <tromey@adacore.com>
10752 * ada-valprint.c (print_variant_part): Update.
10753 * ada-lang.h (ada_which_variant_applies): Update.
10754 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10755 outer_valaddr parameters; replace with "outer" value parameter.
10756 (to_fixed_variant_branch_type): Update.
10758 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10760 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10761 <list>. Remove inclusion of observable.h.
10762 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10763 (struct arch_lwp_info): New struct.
10764 (class ppc_linux_dreg_interface): New class.
10765 (struct ppc_linux_process_info): New struct.
10766 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10767 <low_new_clone, low_forget_process, low_prepare_to_resume>
10768 <copy_thread_dreg_state, mark_thread_stale>
10769 <mark_debug_registers_changed, register_hw_breakpoint>
10770 <clear_hw_breakpoint, register_wp, clear_wp>
10771 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10772 <num_memory_accesses, get_trigger_type>
10773 <create_watchpoint_request, hwdebug_point_cmp>
10774 <init_arch_lwp_info, get_arch_lwp_info>
10775 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10777 <struct ptid_hash>: New inner struct.
10778 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10780 (saved_dabr_value, hwdebug_info, max_slots_number)
10781 (struct hw_break_tuple, struct thread_points, ppc_threads)
10782 (have_ptrace_hwdebug_interface)
10783 (hwdebug_find_thread_points_by_tid)
10784 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10785 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10786 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10787 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10788 use m_dreg_interface.
10789 (hwdebug_point_cmp): Change to...
10790 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10791 reference arguments instead of pointers.
10792 (ppc_linux_nat_target::ranged_break_num_registers): Use
10794 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10795 m_dreg_interface. Call register_hw_breakpoint.
10796 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10797 m_dreg_interface. Call clear_hw_breakpoint.
10798 (get_trigger_type): Change to...
10799 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10801 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10802 use m_dreg_interface. Call register_hw_breakpoint.
10803 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10804 use m_dreg_interface. Call clear_hw_breakpoint.
10805 (can_use_watchpoint_cond_accel): Change to...
10806 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10807 method. Update comment, use m_dreg_interface and
10809 (calculate_dvc): Change to...
10810 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10812 (num_memory_accesses): Change to...
10813 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10814 (check_condition): Change to...
10815 (ppc_linux_nat_target::check_condition): ...this method.
10816 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10817 comment, use m_dreg_interface.
10818 (create_watchpoint_request): Change to...
10819 (ppc_linux_nat_target::create_watchpoint_request): ...this
10820 method. Use m_dreg_interface.
10821 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10822 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10823 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10824 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10825 (ppc_linux_nat_target::low_forget_process)
10826 (ppc_linux_nat_target::low_new_fork)
10827 (ppc_linux_nat_target::low_new_clone)
10828 (ppc_linux_nat_target::low_delete_thread)
10829 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10830 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10831 only call mark_thread_stale.
10832 (ppc_linux_thread_exit): Remove.
10833 (ppc_linux_nat_target::stopped_data_address): Change to...
10834 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10835 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10836 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10837 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10838 comment. Call low_stopped_data_address.
10839 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10841 (ppc_linux_nat_target::masked_watch_num_registers): Use
10843 (ppc_linux_nat_target::copy_thread_dreg_state)
10844 (ppc_linux_nat_target::mark_thread_stale)
10845 (ppc_linux_nat_target::mark_debug_registers_changed)
10846 (ppc_linux_nat_target::register_hw_breakpoint)
10847 (ppc_linux_nat_target::clear_hw_breakpoint)
10848 (ppc_linux_nat_target::register_wp)
10849 (ppc_linux_nat_target::clear_wp)
10850 (ppc_linux_nat_target::init_arch_lwp_info)
10851 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10852 (_initialize_ppc_linux_nat): Remove observer callback.
10854 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10856 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10857 (ppc_linux_nat_target::auxv_parse)
10858 (ppc_linux_nat_target::read_description)
10859 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10862 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10864 * linux-nat.h (low_new_clone): New method.
10865 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10867 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10869 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10870 (dbx_expand_psymtab): ... this.
10871 (start_psymtab): Update.
10872 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10873 (mdebug_expand_psymtab): ... this.
10874 (parse_partial_symbols): Update.
10875 (new_psymtab): Update.
10876 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10877 (xcoff_expand_psymtab): ... this.
10878 (xcoff_start_psymtab): Update.
10880 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10882 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10883 <expand_dependencies>: ... this.
10884 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10885 (partial_symtab::expand_dependencies): ... this.
10886 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10888 (dwarf2_psymtab::expand_psymtab): Update.
10889 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10890 * mdebugread.c (psymtab_to_symtab_1): Update.
10891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10893 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10895 * psympriv.h (discard_psymtab): Remove.
10896 * dbxread.c (dbx_end_psymtab): Update.
10897 * xcoffread.c (xcoff_end_psymtab): Update.
10899 2020-03-28 Tom Tromey <tom@tromey.com>
10901 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10904 2020-03-28 Tom Tromey <tom@tromey.com>
10906 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10908 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10910 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10912 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10914 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10916 2020-03-26 Tom Tromey <tom@tromey.com>
10918 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10919 (mark_common_block_symbol_computed, read_tag_string_type)
10920 (attr_to_dynamic_prop, read_subrange_type): Update.
10921 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10922 to be methods on struct attribute.
10923 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10924 (read_call_site_scope, partial_die_info::read)
10925 (partial_die_info::read, lookup_die_type, follow_die_ref):
10927 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10928 from dwarf2_get_ref_die_offset.
10929 (attribute::constant_value): New method, from
10930 dwarf2_get_attr_constant_value.
10931 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10933 <constant_value>: New method.
10935 2020-03-26 Tom Tromey <tom@tromey.com>
10937 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10938 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10939 (dwarf_type_encoding_name): Move to stringify.c.
10940 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10941 * dwarf2/stringify.c: New file.
10942 * dwarf2/stringify.h: New file.
10944 2020-03-26 Tom Tromey <tom@tromey.com>
10946 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10949 2020-03-26 Tom Tromey <tom@tromey.com>
10951 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10953 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10954 (lookup_ranges_base): Likewise.
10955 (read_cutu_die_from_dwo, read_full_die_1): Update.
10957 2020-03-26 Tom Tromey <tom@tromey.com>
10959 * dwarf2/read.c (read_import_statement, read_file_scope)
10960 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10961 (read_lexical_block_scope, read_call_site_scope)
10962 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10963 (handle_struct_member_die, process_structure_scope)
10964 (update_enumeration_type_from_children)
10965 (process_enumeration_scope, read_array_type, read_common_block)
10966 (read_namespace, read_module, read_subroutine_type): Update.
10967 (sibling_die): Remove.
10969 2020-03-26 Tom Tromey <tom@tromey.com>
10971 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10972 (build_type_psymtabs_reader, read_structure_type)
10973 (read_enumeration_type, read_full_die_1): Update.
10974 (dwarf2_attr_no_follow): Move to die.h.
10975 * dwarf2/die.h (struct die_info) <attr>: New method.
10977 2020-03-26 Tom Tromey <tom@tromey.com>
10979 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10980 <base_address>: Now an optional.
10981 (dwarf2_find_base_address, dwarf2_rnglists_process)
10982 (dwarf2_ranges_process, fill_in_loclist_baton)
10983 (dwarf2_symbol_mark_computed): Update.
10985 2020-03-26 Tom Tromey <tom@tromey.com>
10987 * dwarf2/read.c (struct die_info): Move to die.h.
10988 * dwarf2/die.h: New file.
10990 2020-03-26 Tom Tromey <tom@tromey.com>
10992 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10994 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10995 Move to line-header.c.
10996 (read_checked_initial_length_and_offset, read_formatted_entries):
10998 (dwarf_decode_line_header): Split into two.
10999 * dwarf2/line-header.c
11000 (dwarf2_statement_list_fits_in_line_number_section_complaint):
11002 (read_checked_initial_length_and_offset, read_formatted_entries):
11004 (dwarf_decode_line_header): New function, split from read.c.
11006 2020-03-26 Tom Tromey <tom@tromey.com>
11008 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
11010 * dwarf2/read.c (read_attribute_value): Update.
11011 (dwarf2_per_objfile::read_line_string): Rename from
11012 read_indirect_line_string.
11013 (read_formatted_entries): Update.
11015 2020-03-26 Tom Tromey <tom@tromey.com>
11017 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
11020 2020-03-26 Tom Tromey <tom@tromey.com>
11022 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
11024 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
11025 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
11028 2020-03-26 Tom Tromey <tom@tromey.com>
11030 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
11031 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
11032 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
11033 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
11035 2020-03-26 Tom Tromey <tom@tromey.com>
11037 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
11038 file_names_size, file_full_name, file_file_name>: Use const.
11039 <file_name_at, file_names>: Add const overload.
11040 * dwarf2/line-header.c (line_header::file_file_name)
11041 (line_header::file_full_name): Update.
11043 2020-03-26 Tom Tromey <tom@tromey.com>
11045 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
11046 (macro_start_file, consume_improper_spaces)
11047 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11048 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11049 (dwarf_decode_macros): Move to macro.c.
11050 * dwarf2/macro.c: New file.
11051 * dwarf2/macro.h: New file.
11052 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11054 2020-03-26 Tom Tromey <tom@tromey.com>
11056 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11058 * dwarf2/section.c: New method. From
11059 read_indirect_string_at_offset_from.
11060 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11061 (read_indirect_string_at_offset_from): Move to section.c.
11062 (read_indirect_string_at_offset): Rewrite.
11063 (read_indirect_line_string_at_offset): Remove.
11064 (read_indirect_string, read_indirect_line_string)
11065 (dwarf_decode_macro_bytes): Update.
11067 2020-03-26 Tom Tromey <tom@tromey.com>
11069 * dwarf2/section.h (struct dwarf2_section_info)
11070 <overload_complaint>: Declare.
11071 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11072 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11073 Rename from dwarf2_section_buffer_overflow_complaint.
11074 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11075 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11077 2020-03-26 Tom Tromey <tom@tromey.com>
11079 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11081 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11083 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11086 2020-03-26 Tom Tromey <tom@tromey.com>
11088 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11090 2020-03-26 Tom Tromey <tom@tromey.com>
11092 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11094 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11096 (dwarf_decode_macros): Update.
11098 2020-03-26 Tom Tromey <tom@tromey.com>
11100 * dwarf2/read.c (read_attribute_value): Update.
11101 (read_indirect_string_from_dwz): Move to dwz.c; change into
11103 (dwarf_decode_macro_bytes): Update.
11104 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11105 * dwarf2/dwz.c: New file.
11106 * Makefile.in (COMMON_SFILES): Add dwz.c.
11108 2020-03-26 Tom Tromey <tom@tromey.com>
11110 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11111 * dwarf2/read.c: Add include.
11112 * dwarf2/index-write.c: Add include.
11113 * dwarf2/index-cache.c: Add include.
11114 * dwarf2/dwz.h: New file.
11116 2020-03-25 Tom Tromey <tom@tromey.com>
11118 * compile/compile-object-load.c (get_out_value_type): Mention
11119 correct symbol name in error message.
11121 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11123 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11125 2020-03-25 Tom de Vries <tdevries@suse.de>
11127 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11128 * symmisc.c (dump_symtab_1): Print user and includes fields.
11129 (maintenance_info_symtabs): Same.
11131 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11134 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11135 (riscv_regcache_cooked_write): New function.
11136 (riscv_push_dummy_call): Use new function.
11137 (riscv_return_value): Likewise.
11139 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11141 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11142 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11143 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11144 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11145 * infrun.c (follow_fork): Likewise.
11146 (follow_fork_inferior): Likewise.
11147 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11148 * linux-nat.h (class linux_nat_target): Likewise.
11149 * remote.c (class remote_target) <follow_fork>: Likewise.
11150 (remote_target::follow_fork): Likewise.
11151 * target-delegates.c: Re-generate.
11152 * target.c (default_follow_fork): Likewise.
11153 (target_follow_fork): Likewise.
11154 * target.h (struct target_ops) <follow_fork>: Likewise.
11155 (target_follow_fork): Likewise.
11157 2020-03-24 Tom de Vries <tdevries@suse.de>
11159 * psymtab.c (maintenance_info_psymtabs): Print user field.
11161 2020-03-20 Tom Tromey <tromey@adacore.com>
11163 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11165 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11168 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11170 * ptrace.m4: Don't check for ptrace declaration.
11171 * config.in: Re-generate.
11172 * configure: Re-generate.
11173 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11176 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11178 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11180 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11181 * sparc-nat.c (gdb_ptrace): Likewise.
11182 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11184 2020-03-20 Tom Tromey <tromey@adacore.com>
11186 * c-exp.y (lex_one_token): Fix assert.
11188 2020-03-20 Tom Tromey <tromey@adacore.com>
11190 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11191 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11194 2020-03-20 Tom Tromey <tromey@adacore.com>
11196 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11198 2020-03-20 Tom Tromey <tromey@adacore.com>
11200 * ada-valprint.c (print_variant_part): Remove parameters; switch
11201 to value-based API.
11202 (print_field_values): Likewise.
11203 (ada_val_print_struct_union): Likewise.
11204 (ada_value_print_1): Update.
11206 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11208 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11209 nbsd_nat_target instead of inf_ptrace_target.
11210 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11213 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11215 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11216 it to the ptrace call.
11217 * (store_registers): Likewise.
11219 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11221 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11222 it to the ptrace call.
11223 * (store_registers): Likewise.
11225 2020-03-19 Luis Machado <luis.machado@linaro.org>
11227 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11228 valid, fetch vg value from ptrace.
11230 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11231 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11232 * inf-ptrace.c: Likewise.
11233 * (gdb_ptrace): Add.
11234 * (inf_ptrace_target::resume): Update.
11235 * (inf_ptrace_target::xfer_partial): Likewise.
11236 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11237 * (inf_ptrace_peek_poke): Update.
11239 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11241 * x86-bsd-nat.c (gdb_ptrace): New.
11242 * (x86bsd_dr_set): Add new argument `ptid'.
11243 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11244 x86bsd_dr_set_addr): Update.
11246 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11248 * remote.c (remote_target::process_stop_reply): Handle events for
11249 all threads differently.
11251 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11253 * completer.c (completion_tracker::remove_completion): Define new
11255 * completer.h (completion_tracker::remove_completion): Declare new
11257 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11258 when adding a C++ function symbol.
11260 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11262 * completer.c (completion_tracker::completion_hash_entry): Define
11264 (advance_to_filename_complete_word_point): Call
11265 recompute_lowest_common_denominator.
11266 (completion_tracker::completion_tracker): Call discard_completions
11267 to setup the hash table.
11268 (completion_tracker::discard_completions): Allow for being called
11269 from the constructor, pass new equal function, and element deleter
11270 when constructing the hash table. Initialise new class member
11272 (completion_tracker::maybe_add_completion): Remove use of
11273 m_entries_vec, and store more information into m_entries_hash.
11274 (completion_tracker::recompute_lcd_visitor): New function, most
11275 content taken from...
11276 (completion_tracker::recompute_lowest_common_denominator):
11277 ...here, this now just visits each item in the hash calling the
11279 (completion_tracker::build_completion_result): Remove use of
11280 m_entries_vec, call recompute_lowest_common_denominator.
11281 * completer.h (completion_tracker::have_completions): Remove use
11283 (completion_tracker::completion_hash_entry): Declare new class.
11284 (completion_tracker::recompute_lowest_common_denominator): Change
11285 function signature.
11286 (completion_tracker::recompute_lcd_visitor): Declare new function.
11287 (completion_tracker::m_entries_vec): Delete.
11288 (completion_tracker::m_entries_hash): Initialize to NULL.
11289 (completion_tracker::m_lowest_common_denominator_valid): New
11291 (completion_tracker::m_lowest_common_denominator_max_length): New
11294 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11296 * regformats/regdef.h: Put reg in gdb namespace.
11298 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11300 * i386-bsd-nat.c (gdb_ptrace): New.
11301 * (i386bsd_fetch_inferior_registers,
11302 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11303 * (i386bsd_fetch_inferior_registers,
11304 i386bsd_store_inferior_registers) Use gdb_ptrace.
11306 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11308 * amd64-bsd-nat.c (gdb_ptrace): New.
11309 * (amd64bsd_fetch_inferior_registers,
11310 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11311 * (amd64bsd_fetch_inferior_registers,
11312 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11314 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11316 * user-regs.c (user_reg::read): Rename to...
11317 (user_reg::xread): ...this.
11318 * (append_user_reg): Rename argument `read' to `xread'.
11319 * (user_reg_add_builtin): Likewise.
11320 * (user_reg_add): Likewise.
11321 * (value_of_user_reg): Likewise.
11323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11325 * sparc-nat.c (gdb_ptrace): New.
11326 * sparc-nat.c (sparc_fetch_inferior_registers)
11327 (sparc_store_inferior_registers) Remove obsolete comment.
11328 * sparc-nat.c (sparc_fetch_inferior_registers)
11329 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11330 * sparc-nat.c (sparc_fetch_inferior_registers)
11331 (sparc_store_inferior_registers) Use gdb_ptrace.
11333 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11335 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11336 it to the ptrace call.
11337 * sh-nbsd-nat.c (store_registers): Likewise.
11339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11341 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11342 nbsd_nat_target instead of inf_ptrace_target.
11343 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11346 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11348 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11350 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11352 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11354 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11356 2020-03-17 Tom de Vries <tdevries@suse.de>
11359 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11361 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11363 (process_imported_unit_die): Skip import of c++ CUs.
11365 2020-03-16 Tom Tromey <tom@tromey.com>
11367 * p-valprint.c (pascal_object_print_value): Initialize
11370 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11371 Shahab Vahedi <shahab@synopsys.com>
11373 * Makefile.in: Add arch/arc.o
11374 * configure.tgt: Likewise.
11375 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11376 (_initialize_arc_tdep): Don't initialize old target descriptions.
11377 (arc_read_description): New function to cache target descriptions.
11378 * arc-tdep.h (arc_read_description): Add proto type.
11379 * arch/arc.c: New file.
11380 * arch/arc.h: Likewise.
11381 * features/Makefile: Replace old target descriptions with new.
11382 * features/arc-arcompact.c: Remove.
11383 * features/arc-arcompact.xml: Likewise.
11384 * features/arc-v2.c: Likewise
11385 * features/arc-v2.xml: Likewise
11386 * features/arc/aux-arcompact.xml: New file.
11387 * features/arc/aux-v2.xml: Likewise.
11388 * features/arc/core-arcompact.xml: Likewise.
11389 * features/arc/core-v2.xml: Likewise.
11390 * features/arc/aux-arcompact.c: Generate.
11391 * features/arc/aux-v2.c: Likewise.
11392 * features/arc/core-arcompact.c: Likewise.
11393 * features/arc/core-v2.c: Likewise.
11394 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11396 2020-03-16 Tom Tromey <tromey@adacore.com>
11399 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11400 putting value into bcache.
11402 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11405 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11407 (amd64_windows_init_abi_common): ... this. Don't set size of
11409 (amd64_windows_init_abi): New function.
11410 (amd64_cygwin_init_abi): New function.
11411 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11413 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11416 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11418 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11419 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11420 (pe_import_directory_entry): New struct type.
11421 (is_linked_with_cygwin_dll): New function.
11422 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11423 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11424 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11426 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11428 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11429 i386_cygwin_core_osabi_sniffer.
11431 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11433 * i386-cygwin-tdep.c: Rename to...
11434 * i386-windows-tdep.c: ... this.
11435 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11436 i386-windows-tdep.c.
11437 * configure.tgt: Likewise.
11439 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11441 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11442 * osabi.c (gdb_osabi_names): Add "Windows".
11443 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11444 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11445 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11446 i386_cygwin_osabi_sniffer.
11447 (_initialize_i386_cygwin_tdep): Register OS ABI
11448 GDB_OSABI_WINDOWS for i386.
11449 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11450 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11451 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11453 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11454 when the target matches '*-*-mingw*'.
11456 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11458 * defs.h (enum gdb_osabi): Move to...
11459 * osabi.h (enum gdb_osabi): ... here.
11460 * gdbarch.sh: Include osabi.h in gdbarch.h.
11461 * gdbarch.h: Re-generate.
11463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11465 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11467 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11469 2020-03-14 Tom Tromey <tom@tromey.com>
11471 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11473 (c_type_print_modifier): Likewise. Add "language" parameter.
11474 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11475 (c_type_print_base_1): Update.
11476 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11478 * type-stack.c (type_stack::insert): Handle tp_atomic and
11480 (type_stack::follow_type_instance_flags): Likewise.
11481 (type_stack::follow_types): Likewise. Merge type-following code.
11482 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11483 (space_identifier, cv_with_space_id)
11484 (const_or_volatile_or_space_identifier_noopt)
11485 (const_or_volatile_or_space_identifier): Remove.
11486 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11488 (ptr_operator, typebase): Update.
11489 (enum token_flag) <FLAG_C>: New constant.
11490 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11492 (lex_one_token): Handle FLAG_C.
11494 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11496 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11497 it to the ptrace call.
11498 * m68k-bsd-nat.c (store_registers): Likewise.
11500 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11502 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11504 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11505 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11506 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11508 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11510 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11511 nbsd_nat_target instead of inf_ptrace_target.
11512 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11515 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11517 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11520 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11522 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11523 it to the ptrace call.
11524 * alpha-bsd-nat.c (store_registers): Likewise.
11526 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11528 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11530 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11531 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11532 fill_fpregset): Likewise.
11534 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11536 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11537 nbsd_nat_target instead of inf_ptrace_target.
11538 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11541 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11543 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11546 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11548 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11549 it to the ptrace call.
11550 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11551 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11552 * arm-nbsd-nat.c (store_register): Likewise.
11553 * arm-nbsd-nat.c (store_regs): Likewise.
11554 * arm-nbsd-nat.c (store_fp_register): Likewise.
11555 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11559 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11560 nbsd_nat_target instead of inf_ptrace_target.
11561 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11564 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11566 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11567 it to the ptrace call.
11568 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11570 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11572 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11573 it to the ptrace call.
11574 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11578 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11580 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11584 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11585 instead of inf_ptrace_target.
11586 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11589 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11591 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11594 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11596 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11601 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11604 2020-03-13 Tom Tromey <tom@tromey.com>
11606 * value.h (val_print): Don't declare.
11607 * valprint.h (val_print_array_elements)
11608 (val_print_scalar_formatted, generic_val_print): Don't declare.
11609 * valprint.c (generic_val_print_array): Take a struct value.
11610 (generic_val_print_ptr, generic_val_print_memberptr)
11611 (generic_val_print_bool, generic_val_print_int)
11612 (generic_val_print_char, generic_val_print_complex)
11613 (generic_val_print): Remove.
11614 (generic_value_print): Update.
11615 (do_val_print): Remove unused parameters. Don't call
11617 (val_print): Remove.
11618 (common_val_print): Update. Don't call value_check_printable.
11619 (val_print_scalar_formatted, val_print_array_elements): Remove.
11620 * rust-lang.c (rust_val_print): Remove.
11621 (rust_language_defn): Update.
11622 * p-valprint.c (pascal_val_print): Remove.
11623 (pascal_value_print_inner): Update.
11624 (pascal_object_print_val_fields, pascal_object_print_val):
11626 (pascal_object_print_static_field): Update.
11627 * p-lang.h (pascal_val_print): Don't declare.
11628 * p-lang.c (pascal_language_defn): Update.
11629 * opencl-lang.c (opencl_language_defn): Update.
11630 * objc-lang.c (objc_language_defn): Update.
11631 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11632 * m2-lang.h (m2_val_print): Don't declare.
11633 * m2-lang.c (m2_language_defn): Update.
11634 * language.h (struct language_defn) <la_val_print>: Remove.
11635 * language.c (unk_lang_value_print_inner): Rename. Change
11637 (unknown_language_defn, auto_language_defn): Update.
11638 * go-valprint.c (go_val_print): Remove.
11639 * go-lang.h (go_val_print): Don't declare.
11640 * go-lang.c (go_language_defn): Update.
11641 * f-valprint.c (f_val_print): Remove.
11642 * f-lang.h (f_value_print): Don't declare.
11643 * f-lang.c (f_language_defn): Update.
11644 * d-valprint.c (d_val_print): Remove.
11645 * d-lang.h (d_value_print): Don't declare.
11646 * d-lang.c (d_language_defn): Update.
11647 * cp-valprint.c (cp_print_value_fields)
11648 (cp_print_value_fields_rtti, cp_print_value): Remove.
11649 (cp_print_static_field): Update.
11650 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11651 (c_val_print_struct, c_val_print_union, c_val_print_int)
11652 (c_val_print_memberptr, c_val_print): Remove.
11653 * c-lang.h (c_val_print_array, cp_print_value_fields)
11654 (cp_print_value_fields_rtti): Don't declare.
11655 * c-lang.c (c_language_defn, cplus_language_defn)
11656 (asm_language_defn, minimal_language_defn): Update.
11657 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11658 (ada_val_print_enum): Take a struct value.
11659 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11660 (ada_val_print): Remove.
11661 (ada_value_print_1): Update.
11662 (printable_val_type): Remove.
11663 * ada-lang.h (ada_val_print): Don't declare.
11664 * ada-lang.c (ada_language_defn): Update.
11666 2020-03-13 Tom Tromey <tom@tromey.com>
11668 * valprint.c (do_val_print): Update.
11669 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11671 (value_to_value_object_no_release): Declare.
11672 * python/py-value.c (value_to_value_object_no_release): New
11674 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11676 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11678 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11680 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11682 (gdbscm_apply_val_pretty_printer): Take a struct value.
11683 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11685 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11687 * extension-priv.h (struct extension_language_ops)
11688 <apply_val_pretty_printer>: Take a struct value.
11689 * cp-valprint.c (cp_print_value): Create a struct value.
11690 (cp_print_value): Update.
11692 2020-03-13 Tom Tromey <tom@tromey.com>
11694 * ada-valprint.c (print_field_values): Call common_val_print.
11696 2020-03-13 Tom Tromey <tom@tromey.com>
11698 * ada-valprint.c (val_print_packed_array_elements): Remove
11699 bitoffset and val parameters. Call common_val_print.
11700 (ada_val_print_string): Remove offset, address, and original_value
11702 (ada_val_print_array): Update.
11703 (ada_value_print_array): New function.
11704 (ada_value_print_1): Call it.
11706 2020-03-13 Tom Tromey <tom@tromey.com>
11708 * ada-valprint.c (ada_value_print): Use common_val_print.
11710 2020-03-13 Tom Tromey <tom@tromey.com>
11712 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11714 2020-03-13 Tom Tromey <tom@tromey.com>
11716 * ada-valprint.c (ada_value_print_num): New function.
11717 (ada_value_print_1): Use it.
11719 2020-03-13 Tom Tromey <tom@tromey.com>
11721 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11723 2020-03-13 Tom Tromey <tom@tromey.com>
11725 * ada-valprint.c (ada_value_print_ptr): New function.
11726 (ada_value_print_1): Use it.
11728 2020-03-13 Tom Tromey <tom@tromey.com>
11730 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11731 call common_val_print.
11732 (ada_val_print_1): Update.
11733 (ada_value_print_1): New function.
11734 (ada_value_print_inner): Rewrite.
11736 2020-03-13 Tom Tromey <tom@tromey.com>
11738 * cp-valprint.c (cp_print_value_fields): Update.
11739 (cp_print_value): New function.
11741 2020-03-13 Tom Tromey <tom@tromey.com>
11743 * m2-valprint.c (m2_value_print_inner): Use
11744 cp_print_value_fields.
11745 * cp-valprint.c (cp_print_value_fields): New function.
11746 * c-valprint.c (c_value_print_struct): New function.
11747 (c_value_print_inner): Use c_value_print_struct.
11748 * c-lang.h (cp_print_value_fields): Declare.
11750 2020-03-13 Tom Tromey <tom@tromey.com>
11752 * c-valprint.c (c_value_print_array): New function.
11753 (c_value_print_inner): Use it.
11755 2020-03-13 Tom Tromey <tom@tromey.com>
11757 * c-valprint.c (c_value_print_memberptr): New function.
11758 (c_value_print_inner): Use it.
11760 2020-03-13 Tom Tromey <tom@tromey.com>
11762 * c-valprint.c (c_value_print_int): New function.
11763 (c_value_print_inner): Use it.
11765 2020-03-13 Tom Tromey <tom@tromey.com>
11767 * c-valprint.c (c_value_print_ptr): New function.
11768 (c_value_print_inner): Use it.
11770 2020-03-13 Tom Tromey <tom@tromey.com>
11772 * c-valprint.c (c_value_print_inner): Rewrite.
11774 2020-03-13 Tom Tromey <tom@tromey.com>
11776 * valprint.c (generic_value_print_complex): New function.
11777 (generic_value_print): Use it.
11779 2020-03-13 Tom Tromey <tom@tromey.com>
11781 * valprint.c (generic_val_print_float): Don't call
11782 val_print_scalar_formatted.
11783 (generic_val_print, generic_value_print): Update.
11785 2020-03-13 Tom Tromey <tom@tromey.com>
11787 * valprint.c (generic_value_print_char): New function
11788 (generic_value_print): Use it.
11790 2020-03-13 Tom Tromey <tom@tromey.com>
11792 * valprint.c (generic_value_print_int): New function.
11793 (generic_value_print): Use it.
11795 2020-03-13 Tom Tromey <tom@tromey.com>
11797 * valprint.c (generic_value_print_bool): New function.
11798 (generic_value_print): Use it.
11800 2020-03-13 Tom Tromey <tom@tromey.com>
11802 * valprint.c (generic_val_print_func): Simplify.
11803 (generic_val_print, generic_value_print): Update.
11805 2020-03-13 Tom Tromey <tom@tromey.com>
11807 * valprint.c (generic_val_print_flags): Remove.
11808 (generic_val_print, generic_value_print): Update.
11809 (val_print_type_code_flags): Add original_value parameter.
11811 2020-03-13 Tom Tromey <tom@tromey.com>
11813 * valprint.c (generic_val_print): Update.
11814 (generic_value_print): Update.
11815 * valprint.c (generic_val_print_enum): Don't call
11816 val_print_scalar_formatted.
11818 2020-03-13 Tom Tromey <tom@tromey.com>
11820 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11821 * valprint.c (generic_value_print_ptr): New function.
11823 2020-03-13 Tom Tromey <tom@tromey.com>
11825 * valprint.c (generic_value_print): Rewrite.
11827 2020-03-13 Tom Tromey <tom@tromey.com>
11829 * p-valprint.c (pascal_object_print_value_fields)
11830 (pascal_object_print_value): New functions.
11832 2020-03-13 Tom Tromey <tom@tromey.com>
11834 * p-valprint.c (pascal_value_print_inner): Rewrite.
11836 2020-03-13 Tom Tromey <tom@tromey.com>
11838 * f-valprint.c (f_value_print_innner): Rewrite.
11840 2020-03-13 Tom Tromey <tom@tromey.com>
11842 * m2-valprint.c (m2_print_unbounded_array): New overload.
11843 (m2_print_unbounded_array): Update.
11844 (m2_print_array_contents): Take a struct value.
11845 (m2_value_print_inner): Rewrite.
11847 2020-03-13 Tom Tromey <tom@tromey.com>
11849 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11850 (d_value_print_inner): New function.
11851 * d-lang.h (d_value_print_inner): Declare.
11852 * d-lang.c (d_language_defn): Use d_value_print_inner.
11854 2020-03-13 Tom Tromey <tom@tromey.com>
11856 * go-valprint.c (go_value_print_inner): New function.
11857 * go-lang.h (go_value_print_inner): Declare.
11858 * go-lang.c (go_language_defn): Use go_value_print_inner.
11860 2020-03-13 Tom Tromey <tom@tromey.com>
11862 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11864 (rust_val_print): Rewrite.
11865 (rust_value_print_inner): New function, from rust_val_print.
11866 (rust_language_defn): Use rust_value_print_inner.
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11870 * ada-valprint.c (ada_value_print_inner): New function.
11871 * ada-lang.h (ada_value_print_inner): Declare.
11872 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11874 2020-03-13 Tom Tromey <tom@tromey.com>
11876 * f-valprint.c (f_value_print_innner): New function.
11877 * f-lang.h (f_value_print_innner): Declare.
11878 * f-lang.c (f_language_defn): Use f_value_print_innner.
11880 2020-03-13 Tom Tromey <tom@tromey.com>
11882 * p-valprint.c (pascal_value_print_inner): New function.
11883 * p-lang.h (pascal_value_print_inner): Declare.
11884 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11886 2020-03-13 Tom Tromey <tom@tromey.com>
11888 * m2-valprint.c (m2_value_print_inner): New function.
11889 * m2-lang.h (m2_value_print_inner): Declare.
11890 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11892 2020-03-13 Tom Tromey <tom@tromey.com>
11894 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11895 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11896 * c-valprint.c (c_value_print_inner): New function.
11897 * c-lang.h (c_value_print_inner): Declare.
11898 * c-lang.c (c_language_defn, cplus_language_defn)
11899 (asm_language_defn, minimal_language_defn): Use
11900 c_value_print_inner.
11902 2020-03-13 Tom Tromey <tom@tromey.com>
11904 * p-valprint.c (pascal_object_print_value_fields): Now static.
11905 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11907 2020-03-13 Tom Tromey <tom@tromey.com>
11909 * c-valprint.c (c_val_print_array): Simplify.
11911 2020-03-13 Tom Tromey <tom@tromey.com>
11913 * valprint.c (value_print_array_elements): New function.
11914 * valprint.h (value_print_array_elements): Declare.
11916 2020-03-13 Tom Tromey <tom@tromey.com>
11918 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11919 * mips-tdep.c (mips_print_register): Use
11920 value_print_scalar_formatted.
11922 2020-03-13 Tom Tromey <tom@tromey.com>
11924 * valprint.h (value_print_scalar_formatted): Declare.
11925 * valprint.c (value_print_scalar_formatted): New function.
11927 2020-03-13 Tom Tromey <tom@tromey.com>
11929 * valprint.h (generic_value_print): Declare.
11930 * valprint.c (generic_value_print): New function.
11932 2020-03-13 Tom Tromey <tom@tromey.com>
11934 * valprint.c (do_val_print): Call la_value_print_inner, if
11936 * rust-lang.c (rust_language_defn): Update.
11937 * p-lang.c (pascal_language_defn): Update.
11938 * opencl-lang.c (opencl_language_defn): Update.
11939 * objc-lang.c (objc_language_defn): Update.
11940 * m2-lang.c (m2_language_defn): Update.
11941 * language.h (struct language_defn) <la_value_print_inner>: New
11943 * language.c (unknown_language_defn, auto_language_defn): Update.
11944 * go-lang.c (go_language_defn): Update.
11945 * f-lang.c (f_language_defn): Update.
11946 * d-lang.c (d_language_defn): Update.
11947 * c-lang.c (c_language_defn, cplus_language_defn)
11948 (asm_language_defn, minimal_language_defn): Update.
11949 * ada-lang.c (ada_language_defn): Update.
11951 2020-03-13 Tom Tromey <tom@tromey.com>
11953 * c-valprint.c (c_value_print): Use common_val_print.
11955 2020-03-13 Tom Tromey <tom@tromey.com>
11957 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11959 2020-03-13 Tom Tromey <tom@tromey.com>
11961 * f-valprint.c (f77_print_array_1, f_val_print): Use
11964 2020-03-13 Tom Tromey <tom@tromey.com>
11966 * riscv-tdep.c (riscv_print_one_register_info): Use
11969 2020-03-13 Tom Tromey <tom@tromey.com>
11971 * mi/mi-main.c (output_register): Use common_val_print.
11973 2020-03-13 Tom Tromey <tom@tromey.com>
11975 * infcmd.c (default_print_one_register_info): Use
11978 2020-03-13 Tom Tromey <tom@tromey.com>
11980 * valprint.h (common_val_print_checked): Declare.
11981 * valprint.c (common_val_print_checked): New function.
11982 * stack.c (print_frame_arg): Use common_val_print_checked.
11984 2020-03-13 Tom Tromey <tom@tromey.com>
11986 * valprint.c (do_val_print): New function, from val_print.
11987 (val_print): Use do_val_print.
11988 (common_val_print): Use do_val_print.
11990 2020-03-13 Tom Tromey <tom@tromey.com>
11992 * valprint.c (value_print): Use scoped_value_mark.
11994 2020-03-13 Tom de Vries <tdevries@suse.de>
11997 * psymtab.c (partial_symtab::partial_symtab): Don't set
11998 globals_offset and statics_offset. Push element onto
11999 current_global_psymbols and current_static_psymbols stacks.
12000 (concat): New function.
12001 (end_psymtab_common): Set globals_offset and statics_offset. Pop
12002 element from current_global_psymbols and current_static_psymbols
12003 stacks. Concat popped elements to global_psymbols and
12005 (add_psymbol_to_list): Use current_global_psymbols and
12006 current_static_psymbols stacks.
12007 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
12008 current_static_psymbols fields.
12010 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12012 * corelow.c (sniff_core_bfd): Remove.
12013 (class core_target) <m_core_vec>: Remove.
12014 (core_target::core_target): Update.
12015 (core_file_fns): Remove.
12016 (deprecated_add_core_fns): Remove.
12017 (default_core_sniffer): Remove.
12018 (sniff_core_bfd): Remove.
12019 (default_check_format): Remove.
12020 (gdb_check_format): Remove.
12021 (core_target_open): Update.
12022 (core_target::get_core_register_section): Update.
12023 (get_core_registers_cb): Update.
12024 (core_target::fetch_registers): Update.
12025 * gdbcore.h (struct core_fns): Remove.
12026 (deprecated_add_core_fns): Remove.
12027 (default_core_sniffer): Remove.
12028 (default_check_format): Remove.
12030 2020-03-12 Tom Tromey <tom@tromey.com>
12032 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
12034 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
12036 2020-03-12 Tom Tromey <tom@tromey.com>
12038 * remote.c (remote_target::download_tracepoint)
12039 (remote_target::enable_tracepoint)
12040 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
12041 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
12044 2020-03-12 Tom Tromey <tom@tromey.com>
12046 * symfile-mem.c: Update CORE_ADDR size assert.
12048 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12050 * selftest.m4: Move to gdbsupport/.
12051 * acinclude.m4: Update path to selftest.m4.
12053 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12055 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12056 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12057 gdbarch-selfselftests.c and selftest-arch.c.
12058 (SUBDIR_UNITTESTS_OBS): Rename to...
12059 (SELFTESTS_OBS): ... this.
12060 (COMMON_SFILES): Remove disasm-selftests.c and
12061 gdbarch-selftests.c.
12062 * configure.ac: Don't add selftest-arch.{c,o} to
12064 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12065 preprocessor conditions.
12067 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12069 * configure.ac: Don't source bfd/development.sh.
12070 * selftest.m4: Modify comment.
12071 * configure: Re-generate.
12073 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12075 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12076 not "true" or "false".
12077 * configure: Re-generate.
12079 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12081 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12082 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12083 renamed to arm_nbsd_supply_gregset.
12084 (fetch_register): Update to call arm_nbsd_supply_gregset.
12085 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12086 (arm_netbsd_nat_target::fetch_registers): Update.
12087 (fetch_elfcore_registers): Removed.
12088 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12089 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12090 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12091 not require NetBSD system headers.
12092 (arm_nbsd_regset): New struct.
12093 (arm_nbsd_iterate_over_regset_sections): New function.
12094 (arm_netbsd_init_abi_common): Updated to call
12095 set_gdbarch_iterate_over_regset_sections.
12096 * arm-nbsd-tdep.h: New file.
12098 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12100 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12103 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12105 * configure: Re-generate.
12107 2020-03-11 Tom Tromey <tromey@adacore.com>
12109 * ada-typeprint.c (print_choices): Fix comment.
12111 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12113 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12114 previous item in the list, when the list has no items.
12116 2020-03-11 Tom de Vries <tdevries@suse.de>
12118 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12119 PROP_LOCLIST handling code.
12121 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12123 * buildsym-legacy.c (record_line): Pass extra parameter to
12125 * buildsym.c (buildsym_compunit::record_line): Take an extra
12126 parameter, reduce duplication in the line table, and record the
12127 is_stmt flag in the line table.
12128 * buildsym.h (buildsym_compunit::record_line): Add extra
12130 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12131 non-statement lines.
12132 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12133 this to the symtab builder.
12134 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12135 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12136 through to dwarf_record_line_1.
12137 * infrun.c (process_event_stop_test): When stepping, don't stop at
12138 a non-statement instruction, and only refresh the step info when
12139 we land in the middle of a line's range. Also add an extra
12141 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12143 * record-btrace.c (btrace_find_line_range): Only record lines
12144 marked as is-statement.
12145 * stack.c (frame_show_address): Show the frame address if we are
12146 in a non-statement sal.
12147 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12148 (maintenance_print_one_line_table): Print a header for the is_stmt
12149 column, and include is_stmt information in the output.
12150 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12151 preference to non-statements.
12152 (find_pcs_for_symtab_line): Prefer is-statement entries.
12153 (find_line_common): Likewise.
12154 * symtab.h (struct linetable_entry): Add is_stmt field.
12155 (struct symtab_and_line): Likewise.
12156 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12157 arranging the line table.
12159 2020-03-07 Tom de Vries <tdevries@suse.de>
12161 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12164 2020-03-07 Tom Tromey <tom@tromey.com>
12166 * valops.c (value_literal_complex): Remove obsolete comment.
12167 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12170 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12172 * infrun.h: Forward-declare thread_info.
12173 (set_step_info): Add thread_info parameter, add doc.
12174 * infrun.c (set_step_info): Add thread_info parameter, move doc
12176 * infrun.c (process_event_stop_test): Pass thread to
12177 set_step_info call.
12178 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12180 (prepare_one_step): Add thread_info parameter, pass it to
12181 set_step_frame and prepare_one_step (recursive) call.
12182 (step_1): Pass thread to prepare_one_step call.
12183 (step_command_fsm::should_stop): Pass thread to
12185 (until_next_fsm): Pass thread to set_step_frame call.
12186 (finish_command): Pass thread to set_step_info call.
12188 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12190 * windows-tdep.c (windows_solib_create_inferior_hook):
12191 Check if inferior is running.
12193 2020-03-06 Tom de Vries <tdevries@suse.de>
12195 * NEWS: Fix "the the".
12198 2020-03-06 Tom de Vries <tdevries@suse.de>
12200 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12202 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12204 * .dir-locals.el: Add a comment referencing the other copies of
12207 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12209 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12212 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12214 * .gitattributes: New file.
12216 2020-03-04 Tom Tromey <tom@tromey.com>
12218 * symmisc.c (print_symbol_bcache_statistics)
12219 (print_objfile_statistics): Update.
12220 * symfile.c (allocate_symtab): Use intern.
12221 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12222 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12223 macro_cache>: Remove.
12224 <string_cache>: New member.
12225 (struct objfile) <intern>: New methods.
12226 * elfread.c (elf_symtab_read): Use intern.
12227 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12228 (dwarf2_compute_name, dwarf2_physname)
12229 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12231 (guess_partial_die_structure_name): Update.
12232 (partial_die_info::fixup): Intern name.
12233 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12235 (dwarf2_name): Intern name. Update.
12236 * buildsym.c (buildsym_compunit::get_macro_table): Use
12239 2020-03-04 Tom Tromey <tom@tromey.com>
12241 * jit.c (bfd_open_from_target_memory): Make "target" const.
12242 * corefile.c (gnutarget): Now const.
12243 * gdbcore.h (gnutarget): Now const.
12245 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12247 * NEWS: Mention support for WOW64 processes.
12248 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12249 (amd64_windows_segment_register_p): Remove static.
12250 (_initialize_amd64_windows_nat): Update.
12251 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12252 * i386-windows-nat.c (context_offset): Update.
12253 (i386_mappings): Rename and remove static.
12254 (i386_windows_segment_register_p): Remove static.
12255 (_initialize_i386_windows_nat): Update.
12256 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12257 (STATUS_WX86_SINGLE_STEP): New macro.
12258 (EnumProcessModulesEx): New macro.
12259 (Wow64SuspendThread): New macro.
12260 (Wow64GetThreadContext): New macro.
12261 (Wow64SetThreadContext): New macro.
12262 (Wow64GetThreadSelectorEntry): New macro.
12263 (windows_set_context_register_offsets): Add static.
12264 (windows_set_segment_register_p): Likewise.
12265 (windows_add_thread): Adapt for WOW64 processes.
12266 (windows_fetch_one_register): Likewise.
12267 (windows_nat_target::fetch_registers): Likewise.
12268 (windows_store_one_register): Likewise.
12269 (display_selector): Likewise.
12270 (display_selectors): Likewise.
12271 (handle_exception): Likewise.
12272 (windows_continue): Likewise.
12273 (windows_nat_target::resume): Likewise.
12274 (windows_add_all_dlls): Likewise.
12275 (do_initial_windows_stuff): Likewise.
12276 (windows_nat_target::attach): Likewise.
12277 (windows_get_exec_module_filename): Likewise.
12278 (windows_nat_target::create_inferior): Likewise.
12279 (windows_xfer_siginfo): Likewise.
12280 (_initialize_loadable): Initialize Wow64SuspendThread,
12281 Wow64GetThreadContext, Wow64SetThreadContext,
12282 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12283 * windows-nat.h (windows_set_context_register_offsets):
12284 Remove declaration.
12285 (windows_set_segment_register_p): Likewise.
12286 (i386_windows_segment_register_p): Add declaration.
12287 (amd64_windows_segment_register_p): Likewise.
12289 2020-03-04 Luis Machado <luis.machado@linaro.org>
12291 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12292 in "info registers" for AArch64/ARM.
12294 The change caused "info registers" to not print GPR's.
12298 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12300 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12301 when reg->group is empty and reggroup is not.
12303 2020-03-03 Tom Tromey <tromey@adacore.com>
12305 * dwarf2/frame.c (struct dwarf2_frame_cache)
12306 <checked_tailcall_bottom, entry_cfa_sp_offset,
12307 entry_cfa_sp_offset_p>: Remove members.
12308 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12309 (dwarf2_frame_prev_register): Don't call
12310 dwarf2_tailcall_sniffer_first.
12311 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12312 * frame-unwind.c (add_unwinder): New fuction.
12313 (frame_unwind_init): Use it. Add tailcall unwinder.
12315 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12316 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12318 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12319 value should be printed as true.
12321 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12323 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12324 (windows_init_abi): Set and use windows_so_ops.
12326 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12328 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12329 when verifying if dealing with a convenience variable.
12331 2020-03-03 Luis Machado <luis.machado@linaro.org>
12333 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12335 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12337 * infrun.c (gdbarch_supports_displaced_stepping): New.
12338 (use_displaced_stepping): Break up conditions in smaller pieces.
12339 Use gdbarch_supports_displaced_stepping.
12340 (displaced_step_prepare_throw): Use
12341 gdbarch_supports_displaced_stepping.
12343 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12345 * NEWS: Mention new behaviour of the history filename.
12346 * top.c (write_history_p): Add comment.
12347 (show_write_history_p): Add header comment, give a different
12348 message when history writing is on, but the history filename is
12350 (history_filename): Add comment.
12351 (history_filename_empty): New function.
12352 (show_history_filename): Add header comment, give a different
12353 message when the filename is empty.
12354 (init_history): Compare history_filename against nullptr, and only
12355 read history if the filename is not empty.
12356 (set_history_filename): Add header comment, and only make
12357 non-empty filenames absolute.
12358 (init_main): Make the filename argument to 'set history filename'
12361 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12363 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12364 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12365 (fetch_fp_register): Update.
12366 (fetch_fp_regs): Update.
12367 (store_fp_register): Update.
12368 (store_fp_regs): Update.
12369 (arm_netbsd_nat_target::read_description): New function.
12370 (fetch_elfcore_registers): Update.
12372 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12374 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12375 general_thread if the stop reply is missing a thread-id.
12376 (remote_target::process_stop_reply): Use the first non-exited
12377 thread if the target didn't pass a thread-id.
12378 * infrun.c (do_target_wait): Move call to
12379 switch_to_inferior_no_thread to ....
12380 (do_target_wait_1): ... here.
12382 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12384 * debuginfod-support.c: Include defs.h first.
12386 2020-02-28 Tom de Vries <tdevries@suse.de>
12388 * symfile.c (set_initial_language): Use default language for lookup.
12390 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12392 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12393 reader variable, pass `this` to read_cutu_die_from_dwo.
12395 2020-02-27 Aaron Merey <amerey@redhat.com>
12397 * source.c (open_source_file): Check for nullptr when computing
12400 2020-02-27 Tom Tromey <tromey@adacore.com>
12402 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12404 (dwarf2_add_field): Don't update nfields.
12405 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12407 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12409 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12412 2020-02-26 Tom Tromey <tom@tromey.com>
12414 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12415 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12416 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12417 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12420 2020-02-26 Tom Tromey <tom@tromey.com>
12422 * dwarf2/index-write.c (psym_index_map): Change type.
12423 (add_address_entry_worker, write_one_signatured_type)
12424 (recursively_count_psymbols, recursively_write_psymbols)
12425 (class debug_names, psyms_seen_size, write_gdbindex)
12426 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12428 2020-02-26 Aaron Merey <amerey@redhat.com>
12430 * Makefile.in: Handle optional debuginfod support.
12432 * README: Add --with-debuginfod summary.
12433 * config.in: Regenerate.
12434 * configure: Regenerate.
12435 * configure.ac: Handle optional debuginfod support.
12436 * debuginfod-support.c: debuginfod helper functions.
12437 * debuginfod-support.h: Ditto.
12438 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12440 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12441 when a dwz file cannot be found.
12442 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12443 debuginfo file cannot be found.
12444 * source.c (open_source_file): Query debuginfod servers when a
12445 source file cannot be found.
12446 * top.c (print_gdb_configuration): Include
12447 --{with,without}-debuginfod in the output.
12449 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12451 * thread.c (thr_try_catch_cmd): Print thread name.
12453 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12455 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12456 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12457 dwarf2_fetch_die_type_sect_off): Move to...
12458 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12459 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12460 dwarf2_fetch_die_type_sect_off): ... here.
12461 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12462 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12463 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12465 2020-02-26 Tom de Vries <tdevries@suse.de>
12468 * symfile.c (set_initial_language): Exit-early if
12469 language_mode == language_mode_manual.
12471 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12473 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12474 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12475 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12477 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12479 * gdbtypes.c (create_array_type_with_stride): Handle negative
12481 * valarith.c (value_subscripted_rvalue): Likewise.
12483 2020-02-25 Luis Machado <luis.machado@linaro.org>
12485 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12487 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12489 * loc.h (dwarf2_get_die_type): Move to...
12490 * read.h (dwarf2_get_die_type): ... here.
12491 * read.c (dwarf2_get_die_type): Move doc to header.
12493 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12495 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12496 'gnulib/Makefile.in' to the list.
12498 2020-02-24 Tom Tromey <tom@tromey.com>
12500 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12502 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12505 2020-02-24 Tom Tromey <tom@tromey.com>
12507 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12509 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12510 (dw2_do_instantiate_symtab, dw2_get_file_names)
12511 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12513 2020-02-24 Tom Tromey <tom@tromey.com>
12515 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12516 make_scoped_restore.
12517 (dwarf2_psymtab::read_symtab): Don't clear
12518 reading_partial_symbols.
12520 2020-02-24 Tom de Vries <tdevries@suse.de>
12523 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12525 2020-02-24 Tom de Vries <tdevries@suse.de>
12527 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12528 commands layout next/prev/regs.
12530 2020-02-22 Tom Tromey <tom@tromey.com>
12532 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12533 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12535 2020-02-22 Tom Tromey <tom@tromey.com>
12537 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12539 2020-02-22 Tom Tromey <tom@tromey.com>
12541 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12542 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12543 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12544 * tui/tui.c (_initialize_tui): Add usage text.
12546 2020-02-22 Tom Tromey <tom@tromey.com>
12548 * tui/tui-win.c (tui_set_focus_command)
12549 (tui_set_win_height_command): Use error_no_arg.
12550 (_initialize_tui_win): Update help text.
12551 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12553 2020-02-22 Tom Tromey <tom@tromey.com>
12555 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12556 * tui/tui-disasm.h (struct tui_disasm_window)
12557 <display_start_addr>: Declare.
12558 * tui/tui-source.h (struct tui_source_window)
12559 <display_start_addr>: Declare.
12560 * tui/tui-winsource.h (struct tui_source_window_base)
12561 <show_source_line, display_start_addr>: New methods.
12562 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12563 Rename and move to protected section.
12564 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12565 (tui_source_window_base::do_erase_source_content): Update.
12566 (tui_source_window_base::show_source_line): Now a method.
12567 (tui_source_window_base::show_source_content)
12568 (tui_source_window_base::tui_source_window_base)
12569 (tui_source_window_base::rerender)
12570 (tui_source_window_base::refill)
12571 (tui_source_window_base::do_scroll_horizontal)
12572 (tui_source_window_base::set_is_exec_point_at)
12573 (tui_source_window_base::update_breakpoint_info)
12574 (tui_source_window_base::update_exec_info): Update.
12575 * tui/tui-source.c (tui_source_window::set_contents)
12576 (tui_source_window::showing_source_p)
12577 (tui_source_window::do_scroll_vertical)
12578 (tui_source_window::location_matches_p)
12579 (tui_source_window::line_is_displayed): Update.
12580 (tui_source_window::display_start_addr): New method.
12581 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12582 (tui_disasm_window::do_scroll_vertical)
12583 (tui_disasm_window::location_matches_p): Update.
12584 (tui_disasm_window::display_start_addr): New method.
12586 2020-02-22 Tom Tromey <tom@tromey.com>
12588 * NEWS: Add entry for gdb.register_window_type.
12589 * tui/tui-layout.h (window_factory): New typedef.
12590 (tui_register_window): Declare.
12591 * tui/tui-layout.c (saved_tui_windows): New global.
12592 (tui_apply_current_layout): Use it.
12593 (tui_register_window): New function.
12594 * python/python.c (do_start_initialization): Call
12595 gdbpy_initialize_tui.
12596 (python_GdbMethods): Add "register_window_type" function.
12597 * python/python-internal.h (gdbpy_register_tui_window)
12598 (gdbpy_initialize_tui): Declare.
12599 * python/py-tui.c: New file.
12600 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12602 2020-02-22 Tom Tromey <tom@tromey.com>
12604 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12606 2020-02-22 Tom Tromey <tom@tromey.com>
12608 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12609 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12610 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12611 (tui_set_win_focus_to): Move from tui-win.c.
12613 2020-02-22 Tom Tromey <tom@tromey.com>
12615 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12617 (known_window_types): New global.
12618 (tui_get_window_by_name): Reimplement.
12619 (initialize_known_windows): New function.
12620 (validate_window_name): Rewrite.
12621 (_initialize_tui_layout): Call initialize_known_windows.
12623 2020-02-22 Tom Tromey <tom@tromey.com>
12625 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12627 * tui/tui-winsource.h (struct tui_source_window_base)
12628 <tui_source_window_base>: Remove parameter.
12629 * tui/tui-winsource.c
12630 (tui_source_window_base::tui_source_window_base): Remove
12632 (tui_source_window_base::refill): Update.
12633 * tui/tui-stack.h (struct tui_locator_window)
12634 <tui_locator_window>: Update.
12635 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12636 Default the constructor.
12637 * tui/tui-regs.h (struct tui_data_item_window)
12638 <tui_data_item_window>: Default the constructor.
12639 (struct tui_data_window) <tui_data_window>: Likewise.
12640 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12641 Default the constructor.
12642 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12643 Default the constructor.
12645 (struct tui_win_info) <tui_win_info>: Default the constructor.
12646 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12647 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12648 Default the constructor.
12650 2020-02-22 Tom Tromey <tom@tromey.com>
12652 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12653 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12654 * tui/tui-win.c (tui_resize_all): Don't call
12655 tui_delete_invisible_windows.
12656 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12658 (tui_set_layout): Update.
12659 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12660 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12661 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12663 2020-02-22 Tom Tromey <tom@tromey.com>
12665 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12668 2020-02-22 Tom Tromey <tom@tromey.com>
12670 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12672 2020-02-22 Tom Tromey <tom@tromey.com>
12674 * tui/tui-winsource.h (struct tui_source_window_iterator)
12675 <inner_iterator>: New etytypedef.
12676 <tui_source_window_iterator>: Take "end" parameter.
12677 <tui_source_window_iterator>: Take iterator.
12678 <operator*, advance>: Update.
12679 <m_iter>: Change type.
12680 <m_end>: New field.
12681 (struct tui_source_windows) <begin, end>: Update.
12682 * tui/tui-layout.c (tui_windows): New global.
12683 (tui_apply_current_layout): Clear tui_windows.
12684 (tui_layout_window::apply): Update tui_windows.
12685 * tui/tui-data.h (tui_windows): Declare.
12686 (all_tui_windows): Now inline function.
12687 (class tui_window_iterator, struct all_tui_windows): Remove.
12689 2020-02-22 Tom Tromey <tom@tromey.com>
12692 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12693 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12695 (class tui_layout_window) <get_sizes>: Likewise.
12696 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12698 <get_sizes>: Add "height" argument.
12699 <m_vertical>: New field.
12700 * tui/tui-layout.c (tui_layout_split::clone): Update.
12701 (tui_layout_split::get_sizes): Add "height" argument.
12702 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12703 (tui_new_layout_command): Parse "-horizontal".
12704 (_initialize_tui_layout): Update help string.
12705 (tui_layout_split::specification): Add "-horizontal" when needed.
12706 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12708 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12711 2020-02-22 Tom Tromey <tom@tromey.com>
12713 * tui/tui-layout.h (enum tui_adjust_result): New.
12714 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12715 (class tui_layout_window) <adjust_size>: Return
12716 tui_adjust_result. Rewrite.
12717 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12718 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12720 2020-02-22 Tom Tromey <tom@tromey.com>
12722 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12723 parameter and return types.
12724 (class tui_layout_base) <specification>: Add "depth".
12725 (class tui_layout_window) <specification>: Add "depth".
12726 (class tui_layout_split) <specification>: Add "depth".
12727 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12729 (tui_new_layout_command): Parse sub-layouts.
12730 (_initialize_tui_layout): Update help string.
12731 (tui_layout_window::specification): Add "depth".
12732 (add_layout_command): Update.
12734 2020-02-22 Tom Tromey <tom@tromey.com>
12736 * NEWS: Add "tui new-layout" item.
12737 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12738 Add new-layout command to help text.
12739 (validate_window_name): New function.
12740 (tui_new_layout_command): New function.
12741 (_initialize_tui_layout): Register "new-layout".
12742 (tui_layout_window::specification): New method.
12743 (tui_layout_window::specification): New method.
12744 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12746 (class tui_layout_window) <specification>: New method.
12747 (class tui_layout_split) <specification>: New method.
12749 2020-02-22 Tom Tromey <tom@tromey.com>
12751 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12752 * tui/tui-win.c (window_name_completer): Update comment.
12753 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12755 (class tui_layout_window) <replace_window>: Likewise.
12756 (class tui_layout_split) <replace_window>: Likewise.
12757 (tui_set_layout): Don't declare.
12758 (tui_set_initial_layout): Declare function.
12759 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12760 (asm_regs_layout): New globals.
12761 (tui_current_layout, show_layout): Remove.
12762 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12763 (find_layout, tui_apply_layout): New function.
12764 (layout_completer): Remove.
12765 (tui_next_layout): Reimplement.
12766 (tui_next_layout_command): New function.
12767 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12768 (tui_regs_layout): Reimplement.
12769 (tui_regs_layout_command): New function.
12770 (extract_display_start_addr): Rewrite.
12771 (next_layout, prev_layout): Remove.
12772 (tui_layout_window::replace_window): New method.
12773 (tui_layout_split::replace_window): New method.
12774 (destroy_layout): New function.
12775 (layout_list): New global.
12776 (add_layout_command): New function.
12777 (initialize_layouts): Update.
12778 (tui_layout_command): New function.
12779 (_initialize_tui_layout): Install "layout" commands.
12780 * tui/tui-data.h (enum tui_layout_type): Remove.
12781 (tui_current_layout): Don't declare.
12783 2020-02-22 Tom Tromey <tom@tromey.com>
12785 * tui/tui-regs.c (tui_reg_layout): Remove.
12786 (tui_reg_command): Use tui_regs_layout.
12787 * tui/tui-layout.h (tui_reg_command): Declare.
12788 * tui/tui-layout.c (tui_reg_command): New function.
12790 2020-02-22 Tom Tromey <tom@tromey.com>
12792 * tui/tui.c (tui_rl_delete_other_windows): Call
12793 tui_remove_some_windows.
12794 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12796 (class tui_layout_window) <remove_windows>: New method.
12797 (class tui_layout_split) <remove_windows>: Declare.
12798 (tui_remove_some_windows): Declare.
12799 * tui/tui-layout.c (tui_remove_some_windows): New function.
12800 (tui_layout_split::remove_windows): New method.
12802 2020-02-22 Tom Tromey <tom@tromey.com>
12804 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12805 * tui/tui-layout.h (tui_next_layout): Declare.
12806 * tui/tui-layout.c (tui_next_layout): New function.
12808 2020-02-22 Tom Tromey <tom@tromey.com>
12810 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12811 correct coordinates.
12813 2020-02-22 Tom Tromey <tom@tromey.com>
12815 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12816 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12819 2020-02-22 Tom Tromey <tom@tromey.com>
12821 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12822 TUI_DISASM_WIN, not tui_win_list.
12824 2020-02-22 Tom Tromey <tom@tromey.com>
12826 * valprint.c (generic_val_print_enum_1)
12827 (val_print_type_code_flags): Style member names.
12828 * rust-lang.c (val_print_struct, rust_print_enum)
12829 (rust_print_struct_def, rust_internal_print_type): Style member
12831 * p-valprint.c (pascal_object_print_value_fields): Style member
12832 names. Only call fprintf_symbol_filtered for static members.
12833 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12834 * f-valprint.c (f_val_print): Style member names.
12835 * f-typeprint.c (f_type_print_base): Style member names.
12836 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12837 call fprintf_symbol_filtered for static members.
12838 (cp_print_class_member): Style member names.
12839 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12841 * ada-valprint.c (ada_print_scalar): Style enum names.
12842 (ada_val_print_enum): Likewise.
12843 * ada-typeprint.c (print_enum_type): Style enum names.
12845 2020-02-21 Tom Tromey <tom@tromey.com>
12847 * psympriv.h (struct partial_symtab): Update comment.
12849 2020-02-21 Tom Tromey <tromey@adacore.com>
12851 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12854 2020-02-21 Tom de Vries <tdevries@suse.de>
12857 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12858 if dependencies[i]->user != NULL.
12860 2020-02-21 Ali Tamur <tamur@google.com>
12862 * dwarf2/read.c (dwarf2_name): Add null check.
12864 2020-02-20 Tom Tromey <tom@tromey.com>
12866 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12867 ">=", in binary search.
12868 (dwarf2_find_containing_comp_unit): New overload.
12869 (run_test): New self-test.
12870 (_initialize_dwarf2_read): Register new test.
12872 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12874 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12875 * riscv-tdep.h: Likewise.
12876 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12878 * features/riscv/64bit-csr.xml: Regenerated.
12880 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12881 Tom Tromey <tom@tromey.com>
12883 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12884 of 'fputc_unfiltered'.
12885 (putchar_unfiltered): Call 'fputc_unfiltered'.
12886 (fputc_unfiltered): Call 'fputs_unfiltered'.
12888 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12890 * config.in: Regenerate.
12891 * configure: Regenerate.
12892 * configure.ac: Add --with-python-libdir option.
12893 * main.c: Use WITH_PYTHON_LIBDIR.
12895 2020-02-19 Tom Tromey <tom@tromey.com>
12897 * symtab.c (general_symbol_info::compute_and_set_names): Use
12898 obstack_strndup. Simplify call to symbol_set_demangled_name.
12900 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12902 * dwarf2/read.c (allocate_signatured_type_table,
12903 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12904 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12905 Remove objfile parameter, update all callers.
12907 2020-02-19 Doug Evans <dje@google.com>
12910 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12911 rust_enum_variant calculation.
12913 2020-02-19 Tom Tromey <tromey@adacore.com>
12915 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12917 2020-02-19 Tom Tromey <tromey@adacore.com>
12919 * ada-lang.c (cache_symbol): Use obstack_strdup.
12921 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12923 * configure: Regenerate.
12925 2020-02-19 Tom Tromey <tromey@adacore.com>
12927 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12930 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12932 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12934 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12936 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12937 if GDBSERVER is not defined.
12938 (riscv_tdesc_cache): Likewise, also store const target_desc.
12939 (STATIC_IN_GDB): Define.
12940 (riscv_create_target_description): Update declaration with
12942 (riscv_lookup_target_description): New function, only define if
12943 GDBSERVER is not defined.
12944 * arch/riscv.h (riscv_create_target_description): Declare only
12945 when GDBSERVER is defined.
12946 (riscv_lookup_target_description): New declaration when GDBSERVER
12948 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12949 (riscv_linux_read_features): ...this, and return
12950 riscv_gdbarch_features instead of target_desc.
12951 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12952 (riscv_linux_read_description): Rename to...
12953 (riscv_linux_read_features): ...this.
12954 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12955 Update to use riscv_gdbarch_features and
12956 riscv_lookup_target_description.
12957 * riscv-tdep.c (riscv_find_default_target_description): Use
12958 riscv_lookup_target_description instead of
12959 riscv_create_target_description.
12961 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12963 * valprint.c (generic_val_print_enum_1): When printing a flag
12964 enum with value 0 and there is no enumerator with value 0, print
12965 just "0" instead of "(unknown: 0x0)".
12967 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12969 * valprint.c (generic_val_print_enum_1): Print unknown part of
12972 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12974 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12975 flag enums to contain duplicate enumerators.
12976 * valprint.c (generic_val_print_enum_1): Update comment.
12978 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12980 * dwarf2/read.c: Include "count-one-bits.h".
12981 (update_enumeration_type_from_children): If an enumerator has
12982 multiple bits set, don't treat the enumeration as a "flag enum".
12983 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12984 of flag enums have 0 or 1 bit set.
12986 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12988 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12990 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12991 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12993 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12994 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12996 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12998 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
13000 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13002 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
13003 displaced_step_closure_up.
13004 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13005 (struct displaced_step_closure_up):
13006 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13007 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13008 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
13010 * gdbarch.sh (displaced_step_copy_insn): Likewise.
13011 * gdbarch.c, gdbarch.h: Re-generate.
13012 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
13013 displaced_step_closure_up.
13014 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13015 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13016 * infrun.h (displaced_step_closure_up): New type alias.
13017 (struct displaced_step_inferior_state) <step_closure>: Change
13018 type to displaced_step_closure_up.
13019 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
13020 displaced_step_closure_up.
13021 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13023 2020-02-14 Tom Tromey <tom@tromey.com>
13025 * minidebug.c (gnu_debug_key): New global.
13026 (find_separate_debug_file_in_section): Use it.
13028 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13030 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
13032 * gdbarch.c: Re-generate.
13033 * gdbarch.h: Re-generate.
13034 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
13036 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
13037 type to std::unique_ptr.
13038 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
13039 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13040 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
13041 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
13042 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
13043 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
13044 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
13045 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
13046 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13048 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13050 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13052 (displaced_step_clear): Rename to...
13053 (displaced_step_reset): ... this. Just call displaced->reset ().
13054 (displaced_step_clear_cleanup): Rename to...
13055 (displaced_step_reset_cleanup): ... this.
13056 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13057 (displaced_step_fixup): Likewise.
13058 (resume_1): Likewise.
13059 (handle_inferior_event): Restore child's memory before calling
13060 displaced_step_fixup on the parent.
13061 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13062 to std::unique_ptr.
13063 <step_closure>: Change type to std::unique_ptr.
13065 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13067 * arm-tdep.c: Include count-one-bits.h.
13068 (cleanup_block_store_pc): Use count_one_bits.
13069 (cleanup_block_load_pc): Use count_one_bits.
13070 (arm_copy_block_xfer): Use count_one_bits.
13071 (thumb2_copy_block_xfer): Use count_one_bits.
13072 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13073 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13074 (thumb_get_next_pcs_raw): Use count_one_bits.
13075 (arm_get_next_pcs_raw): Use count_one_bits_l.
13076 * arch/arm.c (bitcount): Remove.
13077 * arch/arm.h (bitcount): Remove.
13079 2020-02-14 Tom Tromey <tromey@adacore.com>
13081 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13083 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13084 * dwarf2/loc.c (call_site_find_chain_1): Return
13085 unique_xmalloc_ptr.
13086 (call_site_find_chain): Likewise.
13088 2020-02-14 Richard Biener <rguenther@suse.de>
13090 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13091 on expression with division operators.
13093 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13095 * MAINTAINERS (Write After Approval): Adding myself.
13097 2020-02-12 Tom Tromey <tom@tromey.com>
13099 * event-loop.c (event_data, gdb_event, event_handler_func):
13102 2020-02-12 Tom Tromey <tom@tromey.com>
13104 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13105 (dwarf2_frame_objfile_data): Add comment.
13106 (find_comp_unit, set_comp_unit): New functions.
13107 (dwarf2_frame_find_fde): Use find_comp_unit.
13108 (dwarf2_build_frame_info): Use set_comp_unit.
13110 2020-02-12 Tom Tromey <tom@tromey.com>
13112 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13113 (comp_unit): Don't initialize objfile.
13114 (execute_cfa_program): Add text_offset parameter.
13115 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13116 (dwarf2_frame_cache): Update.
13117 (dwarf2_build_frame_info): Don't set "objfile" member.
13119 2020-02-12 Tom Tromey <tom@tromey.com>
13121 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13122 (decode_frame_entry): Likewise.
13123 (dwarf2_build_frame_info): Update.
13125 2020-02-12 Tom Tromey <tom@tromey.com>
13127 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13128 (decode_frame_entry_1): Use the comp_unit obstack.
13130 2020-02-12 Tom Tromey <tom@tromey.com>
13132 * dwarf2/frame.c (struct comp_unit): Add initializers and
13134 (dwarf2_frame_objfile_data): Store a comp_unit.
13135 (dwarf2_frame_find_fde): Update.
13136 (dwarf2_build_frame_info): Use "new".
13138 2020-02-12 Tom Tromey <tom@tromey.com>
13140 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13141 (dwarf2_fde_table): Typedef for std::vector.
13142 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13143 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13144 (decode_frame_entry): Update.
13145 (dwarf2_build_frame_info): Use "new".
13147 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13149 * arm-tdep.c (arm_gdbarch_init): Update.
13150 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13151 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13152 have_neon, is_m>: Change to bool.
13154 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13156 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13158 2020-02-12 Tom Tromey <tom@tromey.com>
13160 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13162 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13164 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13165 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13167 2020-02-11 Tom Tromey <tom@tromey.com>
13169 * psymtab.h: Update comment.
13171 2020-02-11 Tom Tromey <tom@tromey.com>
13173 * gdb_obstack.h (struct auto_obstack): Use
13174 DISABLE_COPY_AND_ASSIGN.
13176 2020-02-11 Tom Tromey <tom@tromey.com>
13178 * dwarf2/frame.h (struct objfile): Don't forward declare.
13180 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13182 * cris-tdep.c (cris_supply_gregset): Change signature to match
13183 what struct regset expects.
13184 (cris_regset): New struct.
13185 (fetch_core_registers): Remove.
13186 (cris_iterate_over_regset_sections): New function.
13187 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13188 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13190 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13192 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13195 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13197 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13199 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13201 * configure: Re-generate.
13203 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13205 * configure: Re-generate.
13207 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13209 * acinclude: Update warning.m4 path.
13210 * warning.m4: Move to gdbsupport.
13212 2020-02-11 Tom Tromey <tromey@adacore.com>
13214 * remote.c (remote_console_output): Update.
13215 * printcmd.c (printf_command): Update.
13216 * event-loop.c (gdb_wait_for_event): Update.
13217 * linux-nat.c (sigchld_handler): Update.
13218 * remote-sim.c (gdb_os_write_stdout): Update.
13219 (gdb_os_flush_stdout): Update.
13220 (gdb_os_flush_stderr): Update.
13221 (gdb_os_write_stderr): Update.
13222 * exceptions.c (print_exception): Update.
13223 * remote-fileio.c (remote_fileio_func_read): Update.
13224 (remote_fileio_func_write): Update.
13225 * tui/tui.c (tui_enable): Update.
13226 * tui/tui-interp.c (tui_interp::init): Update.
13227 * utils.c (init_page_info): Update.
13228 (putchar_unfiltered, fputc_unfiltered): Update.
13229 (gdb_flush): Update.
13230 (emit_style_escape): Update.
13231 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13232 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13233 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13234 (stderr_file::write): Update.
13235 (stderr_file::puts): Update.
13236 * ui-file.h (ui_file_isatty, ui_file_write)
13237 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13238 (ui_file_puts): Don't declare.
13240 2020-02-10 Tom de Vries <tdevries@suse.de>
13242 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13243 sentinel to char *.
13245 2020-02-09 Tom de Vries <tdevries@suse.de>
13247 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13248 filename if it matches "<artificial>".
13250 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13252 * windows-tdep.c (struct enum_value_name): New struct.
13253 (create_enum): New function.
13254 (windows_get_siginfo_type): Create and use enum types.
13256 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13258 * NEWS: Mention $_siginfo support for Windows.
13259 * windows-nat.c (handle_exception): Set siginfo_er.
13260 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13261 (windows_xfer_siginfo): New function.
13262 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13263 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13264 (init_windows_gdbarch_data): New function.
13265 (get_windows_gdbarch_data): New function.
13266 (windows_get_siginfo_type): New function.
13267 (windows_init_abi): Register windows_get_siginfo_type.
13268 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13270 2020-02-08 Tom Tromey <tom@tromey.com>
13272 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13273 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13274 <keep>: Declare method.
13275 <m_keep>: Remove member.
13276 <~cutu_reader>: Remove.
13277 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13278 (cutu_reader::cutu_reader): Update.
13279 (cutu_reader::keep): Rename from ~cutu_reader.
13280 (process_psymtab_comp_unit, build_type_psymtabs_1)
13281 (process_skeletonless_type_unit, load_partial_comp_unit)
13282 (load_full_comp_unit, dwarf2_read_addr_index)
13283 (read_signatured_type): Update.
13285 2020-02-08 Tom Tromey <tom@tromey.com>
13287 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13288 "want_partial_unit" parameter.
13289 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13290 Inline check for DW_TAG_partial_unit.
13291 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13293 2020-02-08 Tom Tromey <tom@tromey.com>
13295 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13297 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13300 2020-02-08 Tom Tromey <tom@tromey.com>
13302 * dwarf2/read.c (read_address): Move to comp-unit.c.
13303 (dwarf2_rnglists_process, dwarf2_ranges_process)
13304 (read_attribute_value, dwarf_decode_lines_1)
13305 (var_decode_location, decode_locdesc): Update.
13306 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13307 read.c. Remove "cu" parameter.
13308 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13311 2020-02-08 Tom Tromey <tom@tromey.com>
13313 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13314 (read_indirect_line_string): Update.
13315 * dwarf2/comp-unit.c (read_offset): Remove.
13316 (read_comp_unit_head): Update.
13317 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13319 (read_offset): Don't declare.
13321 2020-02-08 Tom Tromey <tom@tromey.com>
13323 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13324 * dwarf2/read.c (struct comp_unit_head): Move to
13325 dwarf2/comp-unit.h.
13326 (enum class rcuh_kind): Move to comp-unit.h.
13327 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13328 (read_comp_unit_head, error_check_comp_unit_head)
13329 (read_and_check_comp_unit_head): Move to comp-unit.c.
13330 (read_offset, dwarf_unit_type_name): Likewise.
13331 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13332 (cutu_reader::cutu_reader, read_call_site_scope)
13333 (find_partial_die, follow_die_offset): Update.
13334 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13336 2020-02-08 Tom Tromey <tom@tromey.com>
13338 * dwarf2/read.c (read_offset_1): Move to leb.c.
13339 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13340 (dwarf_decode_macro_bytes): Update.
13341 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13342 * dwarf2/leb.h (read_offset): Declare.
13344 2020-02-08 Tom Tromey <tom@tromey.com>
13346 * dwarf2/read.c (dwarf2_section_size): Remove.
13347 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13349 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13351 2020-02-08 Tom Tromey <tom@tromey.com>
13353 * dwarf2/read.c (read_initial_length): Move to leb.c.
13354 * dwarf2/leb.h (read_initial_length): Declare.
13355 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13356 handle_nonstd parameter.
13357 * dwarf2/frame.c (read_initial_length): Remove.
13358 (decode_frame_entry_1): Update.
13360 2020-02-08 Tom Tromey <tom@tromey.com>
13362 * dwarf2/loc.c (dwarf2_find_location_expression)
13363 (dwarf_evaluate_loc_desc::get_tls_address)
13364 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13365 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13366 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13367 (dwarf2_compile_property_to_c)
13368 (dwarf2_loc_desc_get_symbol_read_needs)
13369 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13370 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13371 (loclist_describe_location, loclist_tracepoint_var_ref)
13372 (loclist_generate_c_location): Update.
13373 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13374 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13375 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13376 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13377 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13378 (dwarf2_per_cu_data::addr_size)
13379 (dwarf2_per_cu_data::ref_addr_size)
13380 (dwarf2_per_cu_data::text_offset)
13381 (dwarf2_per_cu_data::addr_type): Now methods.
13382 (per_cu_header_read_in): Make per_cu "const".
13383 (dwarf2_version): Remove.
13384 (dwarf2_per_cu_data::int_type): Now a method.
13385 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13386 (set_die_type, read_array_type, read_subrange_index_type)
13387 (read_tag_string_type, read_subrange_type): Update.
13388 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13389 offset_size, ref_addr_size, text_offset, addr_type, version,
13390 objfile, int_type, addr_sized_int_type>: Declare methods.
13392 2020-02-08 Tom Tromey <tom@tromey.com>
13394 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13397 2020-02-08 Tom Tromey <tom@tromey.com>
13399 * dwarf2/read.h (dwarf_line_debug): Declare.
13400 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13401 * dwarf2/read.c: Move line_header code to new files.
13402 (dwarf_line_debug): No longer static.
13403 * dwarf2/line-header.c: New file.
13404 * dwarf2/line-header.h: New file.
13406 2020-02-08 Tom Tromey <tom@tromey.com>
13408 * dwarf2/read.c (struct line_header) <file_full_name,
13409 file_file_name>: Return unique_xmalloc_ptr.
13410 (line_header::file_file_name): Update.
13411 (line_header::file_full_name): Update.
13412 (dw2_get_file_names_reader): Update.
13413 (macro_start_file): Update.
13415 2020-02-08 Tom Tromey <tom@tromey.com>
13417 * dwarf2/read.c (struct line_header) <file_full_name,
13418 file_file_name>: Declare methods.
13419 (dw2_get_file_names_reader): Update.
13420 (file_file_name): Now a method.
13421 (file_full_name): Likewise.
13422 (macro_start_file): Update.
13424 2020-02-08 Tom Tromey <tom@tromey.com>
13426 * dwarf2/read.c (dwarf_always_disassemble)
13427 (show_dwarf_always_disassemble): Move to loc.c.
13428 (_initialize_dwarf2_read): Move "always-disassemble" registration
13430 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13431 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13433 (show_dwarf_always_disassemble): Move from read.c.
13434 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13436 2020-02-08 Tom Tromey <tom@tromey.com>
13438 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13439 (create_quick_file_names_table): Return htab_up.
13440 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13442 * dwarf2/read.h (struct dwarf2_per_objfile)
13443 <quick_file_names_table>: Now htab_up.
13445 2020-02-08 Tom Tromey <tom@tromey.com>
13447 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13449 2020-02-08 Tom Tromey <tom@tromey.com>
13451 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13453 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13454 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13455 (abbrev_table::abbrev_table): No longer inline.
13456 (ABBREV_HASH_SIZE): Remove.
13457 (abbrev_table::m_abbrevs): Now an htab_up.
13459 2020-02-08 Tom Tromey <tom@tromey.com>
13461 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13462 (cutu_reader): Update.
13463 (build_type_psymtabs_1): Update.
13464 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13465 (abbrev_table::alloc_abbrev): Update.
13466 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13467 (abbrev_table::read): New static method, renamed from
13468 abbrev_table_read_table.
13469 (abbrev_table::alloc_abbrev)
13470 (abbrev_table::add_abbrev): Now private.
13471 (abbrev_table::abbrev_table): Now private.
13472 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13474 2020-02-08 Tom Tromey <tom@tromey.com>
13476 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13477 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13480 2020-02-08 Tom Tromey <tom@tromey.com>
13482 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13484 (lookup_dwo_unit_in_dwp): Update.
13485 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13488 2020-02-08 Tom Tromey <tom@tromey.com>
13490 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13493 2020-02-08 Tom Tromey <tom@tromey.com>
13495 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13497 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13498 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13499 Change type to htab_up.
13501 2020-02-08 Tom Tromey <tom@tromey.com>
13503 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13504 htab_up. Don't allocate on obstack.
13505 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13506 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13507 Change type to htab_up.
13509 2020-02-08 Tom Tromey <tom@tromey.com>
13511 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13512 Change type to htab_up.
13513 * dwarf2/read.c (create_signatured_type_table_from_index)
13514 (create_signatured_type_table_from_debug_names)
13515 (create_all_type_units, add_type_unit)
13516 (lookup_dwo_signatured_type, lookup_signatured_type)
13517 (process_skeletonless_type_unit): Update.
13518 (create_debug_type_hash_table, create_debug_types_hash_table):
13519 Change type of types_htab.
13520 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13521 htab_up. Don't allocate on obstack.
13522 (create_cus_hash_table): Change type of cus_htab parameter.
13523 (struct dwo_file) <cus, tus>: Now htab_up.
13524 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13525 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13526 (queue_and_load_all_dwo_tus): Update.
13527 * dwarf2/index-write.c (write_gdbindex): Update.
13528 (write_debug_names): Update.
13530 2020-02-08 Tom Tromey <tom@tromey.com>
13532 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13533 dwarf2/read.c. Remove "next" member. Add constructor ntad
13535 (struct dwarf2_per_objfile) <queue>: New member.
13536 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13538 (dwarf2_queue, dwarf2_queue_tail): Remove.
13539 (class dwarf2_queue_guard): Add parameter to constructor. Use
13540 DISABLE_COPY_AND_ASSIGN.
13541 <m_per_objfile>: New member.
13542 <~dwarf2_queue_guard>: Rewrite.
13543 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13545 (~dwarf2_queue_item): New.
13547 2020-02-08 Tom Tromey <tom@tromey.com>
13549 * dwarf2/read.c (struct die_info) <has_children>: New member.
13550 (dw2_get_file_names_reader): Remove has_children.
13551 (dw2_get_file_names): Update.
13552 (read_cutu_die_from_dwo): Remove has_children.
13553 (cutu_reader::init_tu_and_read_dwo_dies)
13554 (cutu_reader::cutu_reader): Update.
13555 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13556 Remove has_children.
13557 (build_type_psymtabs_1, process_skeletonless_type_unit)
13558 (load_partial_comp_unit, load_full_comp_unit): Update.
13559 (create_dwo_cu_reader): Remove has_children.
13560 (create_cus_hash_table, read_die_and_children): Update.
13561 (read_full_die_1,read_full_die): Remove has_children.
13562 (read_signatured_type): Update.
13563 (class cutu_reader) <has_children>: Remove.
13565 2020-02-08 Tom Tromey <tom@tromey.com>
13567 * dwarf2/expr.c: Rename from dwarf2expr.c.
13568 * dwarf2/expr.h: Rename from dwarf2expr.h.
13569 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13570 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13571 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13572 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13573 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13574 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13575 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13576 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13577 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13578 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13579 * dwarf2/loc.c: Rename from dwarf2loc.c.
13580 * dwarf2/loc.h: Rename from dwarf2loc.h.
13581 * dwarf2/read.c: Rename from dwarf2read.c.
13582 * dwarf2/read.h: Rename from dwarf2read.h.
13583 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13584 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13585 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13586 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13587 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13588 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13589 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13590 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13591 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13592 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13593 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13594 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13595 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13597 * Makefile.in (COMMON_SFILES): Update.
13598 (HFILES_NO_SRCDIR): Update.
13600 2020-02-08 Tom Tromey <tom@tromey.com>
13602 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13603 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13605 2020-02-08 Tom Tromey <tom@tromey.com>
13607 * dwarf2read.h (struct die_info): Don't declare.
13609 2020-02-08 Tom Tromey <tom@tromey.com>
13611 * dwarf2read.h (die_info_ptr): Remove typedef.
13613 2020-02-08 Tom Tromey <tom@tromey.com>
13615 * dwarf2read.c (read_call_site_scope)
13616 (handle_data_member_location, dwarf2_add_member_fn)
13617 (mark_common_block_symbol_computed, read_common_block)
13618 (attr_to_dynamic_prop, partial_die_info::read)
13619 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13620 (dwarf2_symbol_mark_computed, set_die_type): Update.
13621 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13623 (attr_form_is_block): Don't declare.
13624 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13626 2020-02-08 Tom Tromey <tom@tromey.com>
13628 * dwarf2read.c (dwarf2_find_base_address, )
13629 (read_call_site_scope, rust_containing_type)
13630 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13631 (handle_data_member_location, dwarf2_add_member_fn)
13632 (get_alignment, read_structure_type, process_structure_scope)
13633 (mark_common_block_symbol_computed, read_common_block)
13634 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13635 (partial_die_info::read, read_attribute_value, new_symbol)
13636 (lookup_die_type, dwarf2_get_ref_die_offset)
13637 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13638 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13639 (dwarf2_symbol_mark_computed): Update.
13640 * dwarf2/attribute.h (struct attribute) <value_as_address,
13641 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13643 (value_as_address, attr_form_is_section_offset)
13644 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13645 * dwarf2/attribute.c (attribute::value_as_address)
13646 (attribute::form_is_section_offset, attribute::form_is_constant)
13647 (attribute::form_is_ref): Now methods.
13649 2020-02-08 Tom Tromey <tom@tromey.com>
13651 * dwarf2read.c (struct attribute, DW_STRING)
13652 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13653 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13654 (attr_form_is_block, attr_form_is_section_offset)
13655 (attr_form_is_constant, attr_form_is_ref): Move.
13656 * dwarf2/attribute.h: New file.
13657 * dwarf2/attribute.c: New file, from dwarf2read.c.
13658 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13660 2020-02-08 Tom Tromey <tom@tromey.com>
13662 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13663 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13665 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13666 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13667 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13669 * dwarf2/abbrev.h: New file.
13670 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13671 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13673 2020-02-08 Tom Tromey <tom@tromey.com>
13675 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13676 (dwarf2_section_size, dwarf2_get_section_info)
13677 (create_signatured_type_table_from_debug_names)
13678 (create_addrmap_from_aranges, read_debug_names_from_section)
13679 (get_gdb_index_contents_from_section, read_comp_unit_head)
13680 (error_check_comp_unit_head, read_abbrev_offset)
13681 (create_debug_type_hash_table, init_cu_die_reader)
13682 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13683 (read_comp_units_from_section, create_cus_hash_table)
13684 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13685 (create_dwp_v2_section, dwarf2_rnglists_process)
13686 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13687 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13688 (read_indirect_string_from_dwz, read_addr_index_1)
13689 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13690 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13691 (fill_in_loclist_baton): Update.
13692 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13693 get_containing_section, get_bfd_owner, get_bfd_section,
13694 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13695 (dwarf2_read_section, get_section_name, get_section_file_name)
13696 (get_containing_section, get_section_bfd_owner)
13697 (get_section_bfd_section, get_section_name, get_section_file_name)
13698 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13700 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13701 (dwarf2_section_info::get_bfd_owner)
13702 (dwarf2_section_info::get_bfd_section)
13703 (dwarf2_section_info::get_name)
13704 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13705 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13706 (dwarf2_section_info::read): Now methods.
13707 * dwarf-index-write.c (class debug_names): Update.
13709 2020-02-08 Tom Tromey <tom@tromey.com>
13711 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13712 Move to dwarf2/section.h.
13713 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13714 (get_section_bfd_section, get_section_name)
13715 (get_section_file_name, get_section_id, get_section_flags)
13716 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13718 * dwarf2/section.h: New file.
13719 * dwarf2/section.c: New file, from dwarf2read.c.
13720 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13722 2020-02-08 Tom Tromey <tom@tromey.com>
13724 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13725 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13726 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13727 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13728 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13729 * dwarf2/leb.h: New file, from dwarf2read.c.
13730 * dwarf2/leb.c: New file, from dwarf2read.c.
13731 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13733 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13734 (COMMON_SFILES): Add dwarf2/leb.c.
13736 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13740 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13743 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13744 * gdb/remote.c (remote_console_output): Update.
13745 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13746 (ui_file_puts): ...this.
13747 * gdb/ui-file.h (ui_file_puts): Add declaration.
13748 * gdb/utils.c (emit_style_escape): Update.
13749 (flush_wrap_buffer): Update.
13750 (fputs_maybe_filtered): Update.
13751 (fputs_unfiltered): Add function.
13753 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13755 * gdb/event-loop.c (gdb_wait_for_event): Update.
13756 * gdb/printcmd.c (printf_command): Update.
13757 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13758 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13759 (gdb_os_flush_stderr): Update.
13760 * gdb/remote.c (remote_console_output): Update.
13761 * gdb/ui-file.c (gdb_flush): Rename to...
13762 (ui_file_flush): ...this.
13763 (stderr_file::write): Update.
13764 (stderr_file::puts): Update.
13765 * gdb/ui-file.h (gdb_flush): Rename to...
13766 (ui_file_flush): ...this.
13767 * gdb/utils.c (gdb_flush): Add function.
13768 * gdb/utils.h (gdb_flush): Add declaration.
13770 2020-02-07 Tom Tromey <tromey@adacore.com>
13772 PR breakpoints/24915:
13773 * source.c (find_and_open_source): Do not check basenames_may_differ.
13775 2020-02-07 Tom Tromey <tom@tromey.com>
13777 * README: Update gdbserver documentation.
13778 * gdbserver: Move to top level.
13779 * configure.tgt (build_gdbserver): Remove.
13780 * configure.ac: Remove --enable-gdbserver.
13781 * configure: Rebuild.
13782 * Makefile.in (distclean): Don't mention gdbserver.
13784 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13786 * source-cache.c (source_cache::ensure): Surround
13787 get_plain_source_lines with a try/catch.
13788 (source_cache::get_line_charpos): Get rid of try/catch
13789 and only check for the return value of "ensure".
13790 * tui/tui-source.c (tui_source_window::set_contents):
13791 Simplify "nlines" calculation.
13793 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13795 * MAINTAINERS (Write After Approval): Add myself.
13797 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13799 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13802 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13804 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13806 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13808 * nat/riscv-linux-tdesc.h: New file.
13809 * nat/riscv-linux-tdesc.c: New file, taking code from...
13810 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13812 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13815 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13817 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13818 we don't set the fake simulator ptid to the null_ptid.
13820 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13822 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13823 * gdbthread.h (class thread_info) <resumed>: Likewise.
13824 * infrun.c (resume_1): Likewise.
13825 (proceed): Likewise.
13826 (infrun_thread_stop_requested): Likewise.
13827 (stop_all_threads): Likewise.
13828 (handle_inferior_event): Likewise.
13829 (restart_threads): Likewise.
13830 (finish_step_over): Likewise.
13831 (keep_going_stepped_thread): Likewise.
13832 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13833 (linux_handle_extended_wait): Likewise.
13834 * record-btrace.c (get_thread_current_frame_id): Likewise.
13835 * record-full.c (record_full_wait_1): Likewise.
13836 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13837 * target.c (target_resume): Likewise.
13838 * thread.c (set_running_thread): Likewise.
13840 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13842 * f-valprint.c (f77_print_array_1): Changed datatype of index
13843 variable to LONGEST from int to enable it to contain bound
13846 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13848 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13849 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13850 offsets according to FLEN determined.
13851 (riscv_linux_nat_target::read_description): Determine FLEN
13853 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13854 according to FLEN determined.
13855 (riscv_linux_nat_target::store_registers): Likewise.
13857 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13859 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13860 when reg->group is empty and reggroup is not.
13862 2020-01-31 Tom Tromey <tromey@adacore.com>
13864 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13865 Call beneath target's mourn_inferior after unpushing.
13867 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13870 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13871 have enough lines to fill the screen, still return the lowest
13874 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13876 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13877 '-', '<', and '>' commands.
13879 2020-01-29 Pedro Alves <palves@redhat.com>
13880 Sergio Durigan Junior <sergiodj@redhat.com>
13882 * infcmd.c (construct_inferior_arguments): Assert that
13883 'argc' is greater than 0.
13885 2020-01-29 Luis Machado <luis.machado@linaro.org>
13887 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13888 (BRK_INSN_MASK): Define to 0xd4200000.
13889 (aarch64_program_breakpoint_here_p): New function.
13890 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13891 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13893 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13895 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13896 call gdbarch_program_breakpoint_here_p.
13897 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13898 default_program_breakpoint_here_p, changed return type to bool and
13900 * breakpoint.h (program_breakpoint_here): Moved prototype to
13901 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13902 return type to bool.
13903 * gdbarch.c: Regenerate.
13904 * gdbarch.h: Regenerate.
13905 * gdbarch.sh (program_breakpoint_here_p): New method.
13906 * infrun.c (handle_signal_stop): Call
13907 gdbarch_program_breakpoint_here_p.
13909 2020-01-26 Tom Tromey <tom@tromey.com>
13911 * ctfread.c (struct ctf_fp_info): Reindent.
13912 (_initialize_ctfread): Remove.
13914 2020-01-26 Tom Tromey <tom@tromey.com>
13916 * psymtab.c (partial_map_expand_apply)
13917 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13918 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13919 (psym_print_stats, psym_expand_symtabs_for_function)
13920 (psym_map_symbol_filenames, psym_map_matching_symbols)
13921 (psym_expand_symtabs_matching)
13922 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13923 (maintenance_check_psymtabs): Use new methods.
13924 * psympriv.h (struct partial_symtab) <readin_p,
13925 get_compunit_symtab>: New methods.
13926 <readin, compunit_symtab>: Remove members.
13927 (struct standard_psymtab): New.
13928 (struct legacy_psymtab): Derive from standard_psymtab.
13929 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13931 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13933 2020-01-26 Tom Tromey <tom@tromey.com>
13935 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13936 read_dependencies. Add assert.
13937 * psymtab.c (partial_symtab::read_dependencies): New method.
13938 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13940 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13941 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13943 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13946 2020-01-26 Tom Tromey <tom@tromey.com>
13948 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13949 Call expand_psymtab.
13950 (xcoff_read_symtab): Call expand_psymtab.
13951 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13952 legacy_expand_psymtab.
13953 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13955 (struct legacy_psymtab) <expand_psymtab>: Implement.
13956 <legacy_expand_psymtab>: New member.
13957 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13958 (parse_partial_symbols): Set legacy_expand_psymtab.
13959 (psymtab_to_symtab_1): Change argument order. Call
13961 (new_psymtab): Set legacy_expand_psymtab.
13962 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13963 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13965 (dwarf2_psymtab::expand_psymtab): Rename from
13966 psymtab_to_symtab_1. Call expand_psymtab.
13967 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13968 (dbx_end_psymtab): Likewise.
13969 (dbx_psymtab_to_symtab_1): Change argument order. Call
13971 (dbx_read_symtab): Call expand_psymtab.
13972 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13973 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13974 (ctf_psymtab::read_symtab): Call expand_psymtab.
13976 2020-01-26 Tom Tromey <tom@tromey.com>
13978 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13979 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13981 * mdebugread.c (mdebug_read_symtab): Remove prints.
13982 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13984 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13986 2020-01-26 Tom Tromey <tom@tromey.com>
13988 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13989 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13990 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13992 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13993 * psymtab.c (psymtab_to_symtab): Call method.
13994 (dump_psymtab): Update.
13995 * psympriv.h (struct partial_symtab): Add virtual destructor.
13996 <read_symtab>: New method.
13997 (struct legacy_symtab): New.
13998 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13999 (struct pst_map) <pst>: Now a legacy_psymtab.
14000 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
14001 (new_psymtab): Use legacy_psymtab.
14002 * dwarf2read.h (struct dwarf2_psymtab): New.
14003 (struct dwarf2_per_cu_data) <psymtab>: Use it.
14004 * dwarf2read.c (dwarf2_create_include_psymtab)
14005 (dwarf2_build_include_psymtabs, create_type_unit_group)
14006 (create_partial_symtab, process_psymtab_comp_unit_reader)
14007 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
14008 (set_partial_user): Use dwarf2_psymtab.
14009 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
14010 (psymtab_to_symtab_1, process_full_comp_unit)
14011 (process_full_type_unit, dwarf2_ranges_read)
14012 (dwarf2_get_pc_bounds, psymtab_include_file_name)
14013 (dwarf_decode_lines): Use dwarf2_psymtab.
14014 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
14015 (add_address_entry_worker, write_one_signatured_type)
14016 (recursively_count_psymbols, recursively_write_psymbols)
14017 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
14018 (write_debug_names): Likewise.
14019 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
14020 <pst>: Now a legacy_psymtab.
14021 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
14022 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
14023 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
14024 * ctfread.c (struct ctf_psymtab): New.
14025 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
14027 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
14028 (create_partial_symtab): Return a ctf_psymtab.
14029 (scan_partial_symbols): Update.
14031 2020-01-26 Tom Tromey <tom@tromey.com>
14033 * xcoffread.c (xcoff_start_psymtab): Use new.
14034 * psymtab.c (partial_symtab::partial_symtab): New constructor,
14035 renamed from start_psymtab_common.
14036 * psympriv.h (struct partial_symtab): Add new constructor.
14037 (start_psymtab_common): Don't declare.
14038 * mdebugread.c (parse_partial_symbols): Use new.
14039 * dwarf2read.c (create_partial_symtab): Use new.
14040 * dbxread.c (start_psymtab): Use new.
14041 * ctfread.c (create_partial_symtab): Use new.
14043 2020-01-26 Tom Tromey <tom@tromey.com>
14045 * xcoffread.c (xcoff_end_psymtab): Use new.
14046 * psymtab.c (start_psymtab_common): Use new.
14047 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14049 * psympriv.h (struct partial_symtab): Add parameters to
14050 constructor. Don't inline.
14051 (allocate_psymtab): Don't declare.
14052 * mdebugread.c (new_psymtab): Use new.
14053 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14054 * dbxread.c (dbx_end_psymtab): Use new.
14056 2020-01-26 Tom Tromey <tom@tromey.com>
14058 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14059 allocate_psymtab. Update documentation.
14060 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14061 allocate_psymtab. Do not use new.
14062 (allocate_psymtab): Use new. Update.
14064 2020-01-26 Tom Tromey <tom@tromey.com>
14066 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14067 * psymtab.c (psym_print_stats): Update.
14068 * psympriv.h (struct partial_symtab) <readin,
14069 psymtabs_addrmap_supported, anonymous>: Now bool.
14070 * mdebugread.c (psymtab_to_symtab_1): Update.
14071 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14072 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14073 (process_full_comp_unit, process_full_type_unit): Update.
14074 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14075 * ctfread.c (psymtab_to_symtab): Update.
14077 2020-01-26 Tom Tromey <tom@tromey.com>
14079 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14080 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14081 * psymtab.c (psymtab_storage): Delete psymtabs.
14082 (psymtab_storage::allocate_psymtab): Use new.
14083 (psymtab_storage::discard_psymtab): Use delete.
14084 * psympriv.h (struct partial_symtab): Add constructor and
14087 2020-01-26 Tom Tromey <tom@tromey.com>
14089 * machoread.c: Do not include psympriv.h.
14091 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14093 * NEWS: Mention the new option and the set/show commands.
14095 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14097 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14098 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14099 (validate_exec_file): New variables, enums, functions.
14100 (exec_file_locate_attach, print_section_info): Style the filenames.
14101 (_initialize_exec): Install show_exec_file_mismatch_command and
14102 set_exec_file_mismatch_command.
14103 * gdbcore.h (validate_exec_file): Declare.
14104 * infcmd.c (attach_command): Call validate_exec_file.
14105 * remote.c ( remote_target::remote_add_inferior): Likewise.
14107 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14109 * frame.c (find_frame_sal): Move call to get_next_frame into more
14111 * inline-frame.c (inilne_state) <inline_state>: Update argument
14113 (inilne_state) <skipped_symbol>: Rename to...
14114 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14115 (skip_inline_frames): Build vector of skipped symbols and use this
14116 to reate the inline_state.
14117 (inline_skipped_symbol): Add a comment and some assertions, fetch
14118 skipped symbol from the list.
14120 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14122 * buildsym.c (lte_is_less_than): Delete.
14123 (buildsym_compunit::end_symtab_with_blockvector): Create local
14124 lambda function to sort line table entries, and use
14125 std::stable_sort instead of std::sort.
14126 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14127 markers when looking for a previous line.
14129 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14131 * dwarf2read.c (lnp_state_machine::record_line): Include
14132 end_sequence parameter in debug print out. Record the line if we
14133 are at an end_sequence marker even if it's not the start of a
14135 * symmisc.c (maintenance_print_one_line_table): Print end of
14136 sequence markers with 'END' not '0'.
14138 2020-01-24 Pedro Alves <palves@redhat.com>
14141 * thread.c (scoped_restore_current_thread::restore): Use
14142 switch_to_inferior_no_thread.
14143 * exec.c: Include "progspace-and-thread.h".
14144 (add_target_sections, remove_target_sections):
14145 scoped_restore_current_pspace_and_thread instead of
14146 scoped_restore_current_thread.
14147 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14148 and aspace to the inferior before calling clone_program_space.
14149 Remove stale comment.
14151 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14153 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14154 (arm_netbsd_nat_target::fetch_registers): ...this.
14155 (arm_nbsd_nat_target::store_registers): Rename to...
14156 (arm_netbsd_nat_target::store_registers): ...this.
14158 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14160 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14163 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14165 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14167 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14169 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14170 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14171 the correct replacement (iterate_over_regset_sections).
14172 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14175 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14178 * gdb/python/python.c (execute_gdb_command): Call
14179 async_enable_stdin in catch block.
14181 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14183 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14184 SWITCH_THRU_ALL_UIS.
14186 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14189 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14190 comment, add extra parameter, and update to store previous symbol
14192 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14193 add extra parameter.
14194 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14195 remove unneeded parameter, add try/catch around gdb_print_insn,
14196 rewrite to add items to asm_lines vector.
14197 (tui_find_backward_disassembly_start_address): New function.
14198 (tui_find_disassembly_address): Updated throughout.
14199 (tui_disasm_window::set_contents): Update for changes to
14201 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14202 number of lines to scroll.
14204 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14206 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14207 (SECT_OFF_DATA): Likewise.
14208 (SECT_OFF_RODATA): Likewise.
14209 (SECT_OFF_TEXT): Likewise.
14210 (SECT_OFF_BSS): Likewise.
14211 (struct objfile) <text_section_offset, data_section_offset>: New
14213 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14214 objfile::text_section_offset.
14215 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14216 * coffread.c (coff_symtab_read): Likewise.
14217 (enter_linenos): Likewise.
14218 (process_coff_symbol): Likewise.
14219 * ctfread.c (get_objfile_text_range): Likewise.
14220 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14221 Use objfile::data_section_offset.
14222 * dwarf2-frame.c (execute_cfa_program): Use
14223 objfile::text_section_offset.
14224 (dwarf2_frame_find_fde): Likewise.
14225 * dwarf2read.c (create_addrmap_from_index): Likewise.
14226 (create_addrmap_from_aranges): Likewise.
14227 (dw2_find_pc_sect_compunit_symtab): Likewise.
14228 (process_psymtab_comp_unit_reader): Likewise.
14229 (add_partial_symbol): Likewise.
14230 (add_partial_subprogram): Likewise.
14231 (process_full_comp_unit): Likewise.
14232 (read_file_scope): Likewise.
14233 (read_func_scope): Likewise.
14234 (read_lexical_block_scope): Likewise.
14235 (read_call_site_scope): Likewise.
14236 (dwarf2_rnglists_process): Likewise.
14237 (dwarf2_ranges_process): Likewise.
14238 (dwarf2_ranges_read): Likewise.
14239 (dwarf_decode_lines_1): Likewise.
14240 (new_symbol): Likewise.
14241 (dwarf2_fetch_die_loc_sect_off): Likewise.
14242 (dwarf2_per_cu_text_offset): Likewise.
14243 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14244 * hppa-tdep.c (read_unwind_info): Likewise.
14245 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14246 * psympriv.h (struct partial_symtab): Likewise.
14247 * psymtab.c (find_pc_sect_psymtab): Likewise.
14248 * solib-svr4.c (enable_break): Likewise.
14249 * stap-probe.c (relocate_address): Use
14250 objfile::data_section_offset.
14251 * xcoffread.c (enter_line_range): Use
14252 objfile::text_section_offset.
14253 (read_xcoff_symtab): Likewise.
14255 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14257 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14258 declaration to narrower scopes.
14260 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14262 * darwin-nat.h (struct darwin_exception_msg, enum
14263 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14265 (class darwin_nat_target) <wait_1, check_new_threads,
14266 decode_exception_message, decode_message, stop_inferior,
14267 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14268 * darwin-nat.c (darwin_check_new_threads): Rename to...
14269 (darwin_nat_target::check_new_threads): ... this.
14270 (darwin_suspend_inferior_it): Remove.
14271 (darwin_decode_exception_message): Rename to...
14272 (darwin_nat_target::decode_exception_message): ... this.
14273 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14274 (darwin_decode_message): Rename to...
14275 (darwin_nat_target::decode_message): ... this.
14276 (cancel_breakpoint): Rename to...
14277 (darwin_nat_target::cancel_breakpoint): ... this.
14278 (darwin_wait): Rename to...
14279 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14280 instead of iterate_over_inferiors.
14281 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14282 (darwin_stop_inferior): Rename to...
14283 (darwin_nat_target::stop_inferior): ... this.
14284 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14285 (darwin_init_thread_list): Rename to...
14286 (darwin_nat_target::init_thread_list): ... this.
14287 (darwin_ptrace_him): Rename to...
14288 (darwin_nat_target::ptrace_him): ... this.
14289 (darwin_nat_target::create_inferior): Pass lambda function to
14291 (darwin_nat_target::detach): Call stop_inferior instead of
14292 darwin_stop_inferior.
14293 * fork-inferior.h (fork_inferior): Change init_trace_fun
14294 parameter to gdb::function_view.
14295 * fork-inferior.c (fork_inferior): Likewise.
14297 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14299 * i386-cygwin-tdep.c (core_process_module_section): Update.
14300 * windows-nat.c (struct lm_info_windows): Add text_offset.
14301 (windows_xfer_shared_libraries): Update.
14302 * windows-tdep.c (windows_xfer_shared_library):
14303 Add text_offset_cached argument.
14304 * windows-tdep.h (windows_xfer_shared_library): Update.
14306 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14308 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14310 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14312 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14313 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14314 replace with range-based for.
14315 (gdbsim_interrupt_inferior): Remove.
14316 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14317 with a range-based for. Inline code from
14318 gdbsim_interrupt_inferior.
14320 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14322 * infrun.c (proceed): Fix indentation.
14324 2020-01-21 Tom Tromey <tromey@adacore.com>
14326 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14327 * python/python.c (python_extension_ops): Update.
14328 (gdbpy_colorize): New function.
14329 * python/lib/gdb/__init__.py (colorize): New function.
14330 * extension.h (ext_lang_colorize): Declare.
14331 * extension.c (ext_lang_colorize): New function.
14332 * extension-priv.h (struct extension_language_ops) <colorize>: New
14334 * cli/cli-style.c (_initialize_cli_style): Update help text.
14336 2020-01-21 Luis Machado <luis.machado@linaro.org>
14338 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14339 <cond>: Change type to bool.
14340 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14341 (aarch64_displaced_step_cb): Likewise.
14342 (aarch64_displaced_step_tb): Likewise.
14344 2020-01-21 Luis Machado <luis.machado@linaro.org>
14346 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14349 2020-01-21 Luis Machado <luis.machado@linaro.org>
14351 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14352 <pc_adjust>: Adjust the documentation.
14353 (aarch64_displaced_step_fixup): Check if PC really moved before
14356 2020-01-19 Tom Tromey <tom@tromey.com>
14358 * disasm.c (~gdb_disassembler): New destructor.
14359 (gdb_buffered_insn_length): Call disassemble_free_target.
14360 * disasm.h (class gdb_disassembler): Declare destructor. Use
14361 DISABLE_COPY_AND_ASSIGN.
14363 2020-01-19 Tom Tromey <tom@tromey.com>
14365 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14366 (die_reader_func_ftype): Remove.
14367 (cutu_reader): New class.
14368 (dw2_get_file_names_reader): Remove "data" parameter.
14369 (dw2_get_file_names): Use cutu_reader.
14370 (create_debug_type_hash_table): Update.
14371 (read_cutu_die_from_dwo): Update comment.
14372 (lookup_dwo_unit): Add dwo_name parameter.
14373 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14374 die_reader_func_ftype and data parameters.
14375 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14376 Remove die_reader_func_ftype and data parameters.
14377 (~cutu_reader): New; from init_cutu_and_read_dies.
14378 (cutu_reader::cutu_reader): Rename from
14379 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14380 and data parameters.
14381 (init_cutu_and_read_dies_simple): Remove.
14382 (struct process_psymtab_comp_unit_data): Remove.
14383 (process_psymtab_comp_unit_reader): Remove data parameter; add
14384 want_partial_unit and pretend_language parameters.
14385 (process_psymtab_comp_unit): Use cutu_reader.
14386 (build_type_psymtabs_reader): Remove data parameter.
14387 (build_type_psymtabs_1): Use cutu_reader.
14388 (process_skeletonless_type_unit): Likewise.
14389 (load_partial_comp_unit_reader): Remove.
14390 (load_partial_comp_unit): Use cutu_reader.
14391 (load_full_comp_unit_reader): Remove.
14392 (load_full_comp_unit): Use cutu_reader.
14393 (struct create_dwo_cu_data): Remove.
14394 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14395 dwo_unit parameters.
14396 (create_cus_hash_table): Use cutu_reader.
14397 (struct dwarf2_read_addr_index_data): Remove.
14398 (dwarf2_read_addr_index_reader): Remove.
14399 (dwarf2_read_addr_index): Use cutu_reader.
14400 (read_signatured_type_reader): Remove.
14401 (read_signatured_type): Use cutu_reader.
14403 2020-01-19 Tom Tromey <tom@tromey.com>
14405 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14406 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14407 (tui_wrefresh): Declare.
14408 * tui/tui-wingeneral.c (suppress_output): New global.
14409 (tui_suppress_output, ~tui_suppress_output): New constructor and
14411 (tui_wrefresh): New function.
14412 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14413 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14414 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14416 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14418 (tui_data_window::no_refresh): New method.
14419 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14420 (tui_reg_command): Use tui_suppress_output
14421 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14422 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14424 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14426 2020-01-19 Tom Tromey <tom@tromey.com>
14428 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14429 Handle case where symtab is null.
14431 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14433 * linux-fork.c (one_fork_p): Simplify.
14435 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14437 * top.c (struct qt_args): Remove.
14438 (kill_or_detach): Change return type to void, replace `void *`
14439 parameter with a proper one.
14440 (print_inferior_quit_action): Likewise.
14441 (quit_confirm): Use range-based for loop to iterate over inferiors.
14442 (quit_force): Likewise.
14444 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14446 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14447 `void *` parameter with proper parameters.
14448 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14449 (print_one_inferior): Change return type to void, replace `void *`
14450 parameter with proper parameters.
14451 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14453 (get_other_inferior): Remove.
14454 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14457 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14459 * mi/mi-interp.c (report_initial_inferior): Remove.
14460 (mi_interp::init): Use range-based for to iterate over inferiors.
14462 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14464 * python/py-inferior.c (build_inferior_list): Remove.
14465 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14467 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14469 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14470 (btrace_stitch_trace): Likewise.
14471 * charset.c (intermediate_encoding): Likewise (vaild).
14472 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14473 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14474 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14476 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14478 * windows-tdep.c (windows_get_tlb_type):
14479 Add rtl_user_process_parameters type.
14481 2020-01-16 Pedro Alves <palves@redhat.com>
14482 Norbert Lange <nolange79@gmail.com>
14485 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14486 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14487 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14488 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14489 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14490 (ps_plog): Redeclare exported functions with default visibility.
14492 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14494 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14495 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14497 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14499 * infcmd.c (post_create_inferior): Use get_thread_regcache
14500 instead of get_current_regcache.
14502 2020-01-14 Tom Tromey <tom@tromey.com>
14505 * python/python.c (gdbpy_decode_line): Treat empty string the same
14508 2020-01-14 Tom Tromey <tom@tromey.com>
14510 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14512 2020-01-14 Tom Tromey <tom@tromey.com>
14514 * nat/linux-btrace.c: Don't include <config.h>.
14515 * nat/linux-ptrace.c: Don't include <config.h>.
14516 * nat/x86-linux-dregs.c: Don't include <config.h>.
14518 2020-01-14 Tom Tromey <tom@tromey.com>
14520 * configure: Rebuild.
14521 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14523 2020-01-14 Tom Tromey <tom@tromey.com>
14525 * nat/x86-linux-dregs.c: Include configh.h.
14526 * nat/linux-ptrace.c: Include configh.h.
14527 * nat/linux-btrace.c: Include configh.h.
14528 * defs.h: Include config.h, bfd.h.
14529 * configure.ac: Don't source common.host.
14530 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14531 * configure: Rebuild.
14532 * acinclude.m4: Update path.
14533 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14534 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14535 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14536 (CLIBS): Add LIBSUPPORT.
14538 (COMMON_SFILES): Remove gdbsupport files.
14539 (HFILES_NO_SRCDIR): Likewise.
14540 (stamp-version): Update path to create-version.sh.
14541 (ALLDEPFILES): Remove gdbsupport files.
14543 2020-01-14 Tom Tromey <tom@tromey.com>
14545 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14546 USE_WIN32API when needed.
14547 * configure.ac (USE_WIN32API): Don't define.
14548 (WIN32LIBS): Use WIN32APILIBS.
14549 * configure: Rebuild.
14551 2020-01-14 Tom Tromey <tom@tromey.com>
14553 * configure: Rebuild.
14554 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14556 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14558 * skip.c (skip_function_command): Make skip w/o arguments use the
14559 name of the inlined function if pc is inside any inlined function.
14561 2020-01-14 Luis Machado <luis.machado@linaro.org>
14563 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14564 * infrun.c (resume_1): Likewise.
14565 (handle_inferior_event): Remove stale comment.
14566 * linux-nat.c (linux_nat_target::resume): Update comments.
14567 (save_stop_reason): Likewise.
14568 (linux_nat_filter_event): Likewise.
14569 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14571 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14573 * elfread.c (record_minimal_symbol): Set section index to 0 for
14574 non-allocatable sections.
14577 2020-01-13 Ali Tamur <tamur@google.com>
14579 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14580 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14581 to gdb::optional. Update comments.
14582 (dwo_file): Update comments.
14583 (read_attribute): Update API to take an additional out parameter,
14584 need_reprocess. This is used to mark attributes that need other
14585 attributes (e.g. str_offsets_base) for correct computation which may not
14586 have been read yet.
14587 (read_attribute_reprocess): New function declaration.
14588 (read_addr_index): Likewise.
14589 (read_dwo_str_index): Likewise.
14590 (read_stub_str_index): Likewise.
14591 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14592 (lookup_addr_base): New function definition.
14593 (lookup_ranges_base): Likewise.
14594 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14595 lookup_ranges_base.
14596 (init_cutu_and_read_dies): Update comments.
14597 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14598 unit. This is used to inherit parent's str_offsets_base and addr_base.
14600 (init_cutu_and_read_dies_simple): Reflect API changes.
14601 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14602 (create_cus_hash_table): Change API to take parent compile unit.
14603 Reflect API changes.
14604 (open_and_init_dwo_file): Reflect API changes.
14605 (dwarf2_get_pc_bounds): Update comments.
14606 (dwarf2_record_block_ranges): Likewise.
14607 (read_full_die_1): Change implementation to reprocess attributes that
14608 need str_offsets_base and addr_base.
14609 (partial_die_info::read): Likewise.
14610 (read_attribute_reprocess): New function definition.
14611 (read_attribute_value): Change API to take an additional out parameter,
14612 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14613 when a non-dwo compile unit has index based attributes.
14614 (read_attribute): Reflect API changes.
14615 (read_addr_index_1): Reflect API changes. Update comments.
14616 (dwarf2_read_addr_index_data): Reflect API changes.
14617 (dwarf2_read_addr_index): Likewise.
14618 (read_str_index): Change API and implementation. This becomes a helper
14619 to be used by the new string index related methods. Update error
14620 message and comments.
14621 (read_dwo_str_index): New function definition.
14622 (read_stub_str_index): Likewise.
14623 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14624 * symfile.h (dwarf2_debug_sections): Likewise.
14625 * xcoffread.c (dwarf2_debug_sections): Likewise.
14627 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14629 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14630 core_reg_sect type to gdb_byte *.
14631 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14632 * cris-tdep.c (fetch_core_registers): Likewise.
14633 * corelow.c (core_target::get_core_register_section): Change
14634 type of `contents` to gdb::byte_vector.
14636 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14638 * tui/tui-wingeneral.c (box_win): Position the title in the center
14641 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14643 * corelow.c (core_target::get_core_register_section): Use
14644 std::vector instead of alloca.
14646 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14648 * warning.m4: Add -Wmissing-declarations to build_warnings.
14649 * configure: Re-generate.
14651 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14653 * python/python.c (init__gdb_module): Add declaration.
14655 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14657 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14658 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14659 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14660 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14661 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14662 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14663 * ada-exp.y (_initialize_ada_exp): Add declaration.
14664 * ada-lang.c (_initialize_ada_language): Add declaration.
14665 * ada-tasks.c (_initialize_tasks): Add declaration.
14666 * agent.c (_initialize_agent): Add declaration.
14667 * aix-thread.c (_initialize_aix_thread): Add declaration.
14668 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14669 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14670 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14671 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14672 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14673 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14674 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14675 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14676 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14677 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14678 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14679 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14680 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14681 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14682 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14683 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14684 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14685 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14686 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14687 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14688 * annotate.c (_initialize_annotate): Add declaration.
14689 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14690 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14691 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14692 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14693 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14694 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14695 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14696 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14697 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14698 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14699 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14700 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14701 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14702 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14703 * auto-load.c (_initialize_auto_load): Add declaration.
14704 * auxv.c (_initialize_auxv): Add declaration.
14705 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14706 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14707 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14708 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14709 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14710 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14711 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14712 * breakpoint.c (_initialize_breakpoint): Add declaration.
14713 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14714 * btrace.c (_initialize_btrace): Add declaration.
14715 * charset.c (_initialize_charset): Add declaration.
14716 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14717 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14718 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14719 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14720 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14721 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14722 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14723 * coffread.c (_initialize_coffread): Add declaration.
14724 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14725 * compile/compile.c (_initialize_compile): Add declaration.
14726 * complaints.c (_initialize_complaints): Add declaration.
14727 * completer.c (_initialize_completer): Add declaration.
14728 * copying.c (_initialize_copying): Add declaration.
14729 * corefile.c (_initialize_core): Add declaration.
14730 * corelow.c (_initialize_corelow): Add declaration.
14731 * cp-abi.c (_initialize_cp_abi): Add declaration.
14732 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14733 * cp-support.c (_initialize_cp_support): Add declaration.
14734 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14735 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14736 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14737 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14738 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14739 * ctfread.c (_initialize_ctfread): Add declaration.
14740 * d-lang.c (_initialize_d_language): Add declaration.
14741 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14742 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14743 * dbxread.c (_initialize_dbxread): Add declaration.
14744 * dcache.c (_initialize_dcache): Add declaration.
14745 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14746 * disasm.c (_initialize_disasm): Add declaration.
14747 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14748 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14749 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14750 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14751 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14752 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14753 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14754 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14755 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14756 * elfread.c (_initialize_elfread): Add declaration.
14757 * exec.c (_initialize_exec): Add declaration.
14758 * extension.c (_initialize_extension): Add declaration.
14759 * f-lang.c (_initialize_f_language): Add declaration.
14760 * f-valprint.c (_initialize_f_valprint): Add declaration.
14761 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14762 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14763 * filesystem.c (_initialize_filesystem): Add declaration.
14764 * findcmd.c (_initialize_mem_search): Add declaration.
14765 * findvar.c (_initialize_findvar): Add declaration.
14766 * fork-child.c (_initialize_fork_child): Add declaration.
14767 * frame-base.c (_initialize_frame_base): Add declaration.
14768 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14769 * frame.c (_initialize_frame): Add declaration.
14770 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14771 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14772 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14773 * gcore.c (_initialize_gcore): Add declaration.
14774 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14775 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14776 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14777 * gdbarch.c (_initialize_gdbarch): Add declaration.
14778 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14779 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14780 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14781 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14782 * go-lang.c (_initialize_go_language): Add declaration.
14783 * go32-nat.c (_initialize_go32_nat): Add declaration.
14784 * guile/guile.c (_initialize_guile): Add declaration.
14785 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14786 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14787 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14788 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14789 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14790 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14791 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14792 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14793 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14794 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14795 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14796 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14797 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14798 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14799 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14800 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14801 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14802 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14803 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14804 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14805 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14806 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14807 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14808 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14809 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14810 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14811 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14812 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14813 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14814 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14815 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14816 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14817 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14818 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14819 * infcall.c (_initialize_infcall): Add declaration.
14820 * infcmd.c (_initialize_infcmd): Add declaration.
14821 * inflow.c (_initialize_inflow): Add declaration.
14822 * infrun.c (_initialize_infrun): Add declaration.
14823 * interps.c (_initialize_interpreter): Add declaration.
14824 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14825 * jit.c (_initialize_jit): Add declaration.
14826 * language.c (_initialize_language): Add declaration.
14827 * linux-fork.c (_initialize_linux_fork): Add declaration.
14828 * linux-nat.c (_initialize_linux_nat): Add declaration.
14829 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14830 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14831 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14832 * m2-lang.c (_initialize_m2_language): Add declaration.
14833 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14834 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14835 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14836 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14837 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14838 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14839 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14840 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14841 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14842 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14843 * machoread.c (_initialize_machoread): Add declaration.
14844 * macrocmd.c (_initialize_macrocmd): Add declaration.
14845 * macroscope.c (_initialize_macroscope): Add declaration.
14846 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14847 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14848 * maint.c (_initialize_maint_cmds): Add declaration.
14849 * mdebugread.c (_initialize_mdebugread): Add declaration.
14850 * memattr.c (_initialize_mem): Add declaration.
14851 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14852 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14853 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14854 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14855 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14856 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14857 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14858 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14859 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14860 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14861 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14862 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14863 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14864 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14865 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14866 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14867 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14868 * mipsread.c (_initialize_mipsread): Add declaration.
14869 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14870 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14871 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14872 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14873 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14874 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14875 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14876 * nto-procfs.c (_initialize_procfs): Add declaration.
14877 * objc-lang.c (_initialize_objc_language): Add declaration.
14878 * observable.c (_initialize_observer): Add declaration.
14879 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14880 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14881 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14882 * osabi.c (_initialize_gdb_osabi): Add declaration.
14883 * osdata.c (_initialize_osdata): Add declaration.
14884 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14885 * parse.c (_initialize_parse): Add declaration.
14886 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14887 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14888 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14889 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14890 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14891 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14892 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14893 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14894 * printcmd.c (_initialize_printcmd): Add declaration.
14895 * probe.c (_initialize_probe): Add declaration.
14896 * proc-api.c (_initialize_proc_api): Add declaration.
14897 * proc-events.c (_initialize_proc_events): Add declaration.
14898 * proc-service.c (_initialize_proc_service): Add declaration.
14899 * procfs.c (_initialize_procfs): Add declaration.
14900 * producer.c (_initialize_producer): Add declaration.
14901 * psymtab.c (_initialize_psymtab): Add declaration.
14902 * python/python.c (_initialize_python): Add declaration.
14903 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14904 * record-btrace.c (_initialize_record_btrace): Add declaration.
14905 * record-full.c (_initialize_record_full): Add declaration.
14906 * record.c (_initialize_record): Add declaration.
14907 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14908 * regcache.c (_initialize_regcache): Add declaration.
14909 * reggroups.c (_initialize_reggroup): Add declaration.
14910 * remote-notif.c (_initialize_notif): Add declaration.
14911 * remote-sim.c (_initialize_remote_sim): Add declaration.
14912 * remote.c (_initialize_remote): Add declaration.
14913 * reverse.c (_initialize_reverse): Add declaration.
14914 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14915 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14916 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14917 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14918 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14919 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14920 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14921 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14923 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14924 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14925 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14926 * rust-exp.y (_initialize_rust_exp): Add declaration.
14927 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14928 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14929 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14930 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14931 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14932 * score-tdep.c (_initialize_score_tdep): Add declaration.
14933 * ser-go32.c (_initialize_ser_dos): Add declaration.
14934 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14935 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14936 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14937 * ser-uds.c (_initialize_ser_socket): Add declaration.
14938 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14939 * serial.c (_initialize_serial): Add declaration.
14940 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14941 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14942 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14943 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14944 * skip.c (_initialize_step_skip): Add declaration.
14945 * sol-thread.c (_initialize_sol_thread): Add declaration.
14946 * solib-aix.c (_initialize_solib_aix): Add declaration.
14947 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14948 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14949 * solib-frv.c (_initialize_frv_solib): Add declaration.
14950 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14951 * solib-target.c (_initialize_solib_target): Add declaration.
14952 * solib.c (_initialize_solib): Add declaration.
14953 * source-cache.c (_initialize_source_cache): Add declaration.
14954 * source.c (_initialize_source): Add declaration.
14955 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14956 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14957 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14958 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14959 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14960 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14961 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14962 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14963 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14964 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14965 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14966 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14967 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14968 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14969 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14970 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14971 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14972 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14973 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14974 * stabsread.c (_initialize_stabsread): Add declaration.
14975 * stack.c (_initialize_stack): Add declaration.
14976 * stap-probe.c (_initialize_stap_probe): Add declaration.
14977 * std-regs.c (_initialize_frame_reg): Add declaration.
14978 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14979 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14980 * symfile.c (_initialize_symfile): Add declaration.
14981 * symmisc.c (_initialize_symmisc): Add declaration.
14982 * symtab.c (_initialize_symtab): Add declaration.
14983 * target.c (_initialize_target): Add declaration.
14984 * target-connection.c (_initialize_target_connection): Add
14986 * target-dcache.c (_initialize_target_dcache): Add declaration.
14987 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14988 * thread.c (_initialize_thread): Add declaration.
14989 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14990 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14991 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14992 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14993 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14994 * tracectf.c (_initialize_ctf): Add declaration.
14995 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14996 * tracefile.c (_initialize_tracefile): Add declaration.
14997 * tracepoint.c (_initialize_tracepoint): Add declaration.
14998 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14999 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
15000 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
15001 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
15002 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
15003 * tui/tui-win.c (_initialize_tui_win): Add declaration.
15004 * tui/tui.c (_initialize_tui): Add declaration.
15005 * typeprint.c (_initialize_typeprint): Add declaration.
15006 * ui-style.c (_initialize_ui_style): Add declaration.
15007 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
15008 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
15009 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
15010 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
15011 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
15012 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
15013 * unittests/filtered_iterator-selftests.c
15014 (_initialize_filtered_iterator_selftests): Add declaration.
15015 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
15016 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
15017 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
15018 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
15019 * unittests/main-thread-selftests.c
15020 (_initialize_main_thread_selftests): Add declaration.
15021 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
15022 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
15023 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
15024 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
15025 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
15026 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
15027 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
15028 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
15029 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
15030 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
15031 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
15032 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
15033 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
15034 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
15035 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
15037 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
15038 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
15039 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
15040 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
15041 * user-regs.c (_initialize_user_regs): Add declaration.
15042 * utils.c (_initialize_utils): Add declaration.
15043 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
15044 * valops.c (_initialize_valops): Add declaration.
15045 * valprint.c (_initialize_valprint): Add declaration.
15046 * value.c (_initialize_values): Add declaration.
15047 * varobj.c (_initialize_varobj): Add declaration.
15048 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15049 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15050 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15051 * windows-nat.c (_initialize_windows_nat): Add declaration.
15052 (_initialize_check_for_gdb_ini): Add declaration.
15053 (_initialize_loadable): Add declaration.
15054 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15055 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15056 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15057 * xcoffread.c (_initialize_xcoffread): Add declaration.
15058 * xml-support.c (_initialize_xml_support): Add declaration.
15059 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15060 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15061 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15062 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15064 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15066 * regformats/regdat.sh: Generate declaration for init function.
15068 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15070 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15072 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15073 close_one_inferior>: New methods.
15074 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15075 pass down target to find_inferior_pid.
15076 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15077 Pass down target to find_inferior_ptid.
15078 (gdbsim_target::create_inferior): Pass down target to
15080 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15081 target down to find_inferior_ptid and switch_to_thread.
15082 (gdbsim_target::close): Update to call close_one_inferior.
15083 (struct resume_data): Remove.
15084 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15085 directly, rather than through a void pointer.
15086 (gdbsim_target::resume): Update to call resume_one_inferior.
15088 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15090 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15092 2020-01-12 Pedro Alves <palves@redhat.com>
15094 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15095 directly for the current inferior instead of
15096 discard_all_inferiors.
15097 (discard_all_inferiors): Delete.
15099 2020-01-11 Tom Tromey <tom@tromey.com>
15101 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15102 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15103 deprecated_safe_get_selected_frame.
15105 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15107 * inferior.c (print_inferior): Switch inferior before printing it.
15109 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15110 Pedro Alves <palves@redhat.com>
15112 * progspace-and-thread.c (switch_to_program_space_and_thread):
15113 Assert there's an inferior for PSPACE. Use
15114 switch_to_inferior_no_thread to switch the inferior too.
15115 * progspace.c (program_space::~program_space): Call
15116 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15117 (program_space::free_all_objfiles): Don't call clear_symtab_users
15119 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15121 2020-01-10 Pedro Alves <palves@redhat.com>
15123 * NEWS: Mention multi-target debugging, "info connections", and
15124 "add-inferior -no-connection".
15126 2020-01-10 Pedro Alves <palves@redhat.com>
15128 * infrun.c: Include "target-connection.h".
15129 (check_multi_target_resumption): New.
15130 (proceed): Call it.
15131 * target-connection.c (make_target_connection_string): Make
15133 * target-connection.h (make_target_connection_string): Declare.
15135 2020-01-10 Pedro Alves <palves@redhat.com>
15137 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15138 * inferior.c (uiout_field_connection): New function.
15139 (print_inferior): Add new "connection-id" column.
15140 (add_inferior_command): Show connection number/string of added
15142 * process-stratum-target.h
15143 (process_stratum_target::connection_string): New virtual method.
15144 (process_stratum_target::connection_number): New field.
15145 * remote.c (remote_target::connection_string): New override.
15146 * target-connection.c: New file.
15147 * target-connection.h: New file.
15148 * target.c (decref_target): Remove process_stratum targets from
15149 the connection list.
15150 (target_stack::push): Add process_stratum targets to the
15153 2020-01-10 Pedro Alves <palves@redhat.com>
15156 2016-04-12 Pedro Alves <palves@redhat.com>
15157 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15158 Remove references to name.
15159 * serial.h (struct serial) <name>: Delete.
15161 2020-01-10 Pedro Alves <palves@redhat.com>
15163 * gdbarch-selftests.c (register_to_value_test): Remove "target
15164 already pushed" check.
15166 2020-01-10 Pedro Alves <palves@redhat.com>
15167 John Baldwin <jhb@FreeBSD.org>
15169 * aarch64-linux-nat.c
15170 (aarch64_linux_nat_target::thread_architecture): Adjust.
15171 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15172 (task_command_1): Likewise.
15173 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15174 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15175 (aix_thread_target::store_registers)
15176 (aix_thread_target::thread_alive): Adjust.
15177 * amd64-fbsd-tdep.c: Include "inferior.h".
15178 (amd64fbsd_get_thread_local_address): Pass down target.
15179 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15180 thread's gdbarch instead of target_gdbarch.
15181 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15182 get_last_target_status.
15183 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15184 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15186 (update_inserted_breakpoint_locations): Skip if inferiors with no
15188 (update_global_location_list): When handling moribund locations,
15189 find representative inferior for location's pspace, and use thread
15190 count of its process_stratum target.
15191 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15192 * bsd-uthread.c (bsd_uthread_target::wait): Use
15193 as_process_stratum_target and adjust thread_change_ptid and
15195 (bsd_uthread_target::update_thread_list): Use
15196 as_process_stratum_target and adjust find_thread_ptid,
15197 thread_change_ptid and add_thread calls.
15198 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15199 find_thread_ptid call.
15200 * corelow.c (add_to_thread_list): Adjust add_thread call.
15201 (core_target_open): Adjust add_thread_silent and thread_count
15203 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15204 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15205 * event-top.c (async_disconnect): Pop targets from all inferiors.
15206 * exec.c (add_target_sections): Push exec target on all inferiors
15207 sharing the program space.
15208 (remove_target_sections): Remove the exec target from all
15209 inferiors sharing the program space.
15210 (exec_on_vfork): New.
15211 * exec.h (exec_on_vfork): Declare.
15212 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15214 (fbsd_nat_target::update_thread_list): Adjust.
15215 (fbsd_nat_target::resume): Adjust.
15216 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15218 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15219 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15220 get_thread_arch_regcache call.
15221 * fork-child.c (gdb_startup_inferior): Pass target down to
15222 startup_inferior and set_executing.
15223 * gdbthread.h (struct process_stratum_target): Forward declare.
15224 (add_thread, add_thread_silent, add_thread_with_info)
15225 (in_thread_list): Add process_stratum_target parameter.
15226 (find_thread_ptid(inferior*, ptid_t)): New overload.
15227 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15229 (all_threads()): Delete overload.
15230 (all_threads, all_non_exited_threads): Add process_stratum_target
15232 (all_threads_safe): Use brace initialization.
15233 (thread_count): Add process_stratum_target parameter.
15234 (set_resumed, set_running, set_stop_requested, set_executing)
15235 (threads_are_executing, finish_thread_state): Add
15236 process_stratum_target parameter.
15237 (switch_to_thread): Use is_current_thread.
15238 * i386-fbsd-tdep.c: Include "inferior.h".
15239 (i386fbsd_get_thread_local_address): Pass down target.
15240 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15241 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15242 have_inferiors check.
15243 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15244 (inf_ptrace_target::attach): Adjust.
15245 * infcall.c (run_inferior_call): Adjust.
15246 * infcmd.c (run_command_1): Pass target to
15247 scoped_finish_thread_state.
15248 (proceed_thread_callback): Skip inferiors with no execution.
15249 (continue_command): Rename 'all_threads' local to avoid hiding
15250 'all_threads' function. Adjust get_last_target_status call.
15251 (prepare_one_step): Adjust set_running call.
15252 (signal_command): Use user_visible_resume_target. Compare thread
15253 pointers instead of inferior_ptid.
15254 (info_program_command): Adjust to pass down target.
15255 (attach_command): Mark target's 'thread_executing' flag.
15256 (stop_current_target_threads_ns): New, factored out from ...
15257 (interrupt_target_1): ... this. Switch inferior before making
15260 (struct all_inferiors_iterator, struct all_inferiors_range)
15261 (struct all_inferiors_safe_range)
15262 (struct all_non_exited_inferiors_range): Filter on
15263 process_stratum_target too. Remove explicit.
15264 * inferior.c (inferior::inferior): Push dummy target on target
15266 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15267 Add process_stratum_target parameter, and pass it down.
15268 (have_live_inferiors): Adjust.
15269 (switch_to_inferior_and_push_target): New.
15270 (add_inferior_command, clone_inferior_command): Handle
15271 "-no-connection" parameter. Use
15272 switch_to_inferior_and_push_target.
15273 (_initialize_inferior): Mention "-no-connection" option in
15274 the help of "add-inferior" and "clone-inferior" commands.
15275 * inferior.h: Include "process-stratum-target.h".
15276 (interrupt_target_1): Use bool.
15277 (struct inferior) <push_target, unpush_target, target_is_pushed,
15278 find_target_beneath, top_target, process_target, target_at,
15280 (discard_all_inferiors): Delete.
15281 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15282 (all_inferiors, all_non_exited_inferiors): Add
15283 process_stratum_target parameter.
15284 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15285 (target_last_proc_target): New global.
15286 (follow_fork_inferior): Push target on new inferior. Pass target
15287 to add_thread_silent. Call exec_on_vfork. Handle target's
15289 (follow_fork): Adjust get_last_target_status call. Also consider
15291 (follow_exec): Push target on new inferior.
15292 (struct execution_control_state) <target>: New field.
15293 (user_visible_resume_target): New.
15294 (do_target_resume): Call target_async.
15295 (resume_1): Set target's threads_executing flag. Consider resume
15297 (commit_resume_all_targets): New.
15298 (proceed): Also consider resume target. Skip threads of inferiors
15299 with no execution. Commit resumtion in all targets.
15300 (start_remote): Pass current inferior to wait_for_inferior.
15301 (infrun_thread_stop_requested): Consider target as well. Pass
15302 thread_info pointer to clear_inline_frame_state instead of ptid.
15303 (infrun_thread_thread_exit): Consider target as well.
15304 (random_pending_event_thread): New inferior parameter. Use it.
15305 (do_target_wait): Rename to ...
15306 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15308 (threads_are_resumed_pending_p, do_target_wait): New.
15309 (prepare_for_detach): Adjust calls.
15310 (wait_for_inferior): New inferior parameter. Handle it. Use
15311 do_target_wait_1 instead of do_target_wait.
15312 (fetch_inferior_event): Adjust. Switch to representative
15313 inferior. Pass target down.
15314 (set_last_target_status): Add process_stratum_target parameter.
15315 Save target in global.
15316 (get_last_target_status): Add process_stratum_target parameter and
15318 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15319 (context_switch): Check inferior_ptid == null_ptid before calling
15321 (get_inferior_stop_soon): Pass down target.
15322 (wait_one): Rename to ...
15323 (poll_one_curr_target): ... this.
15324 (struct wait_one_event): New.
15326 (stop_all_threads): Adjust.
15327 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15329 (switch_back_to_stepped_thread): Also consider target.
15330 (print_stop_event): Update.
15331 (normal_stop): Update. Also consider the resume target.
15332 * infrun.h (wait_for_inferior): Remove declaration.
15333 (user_visible_resume_target): New declaration.
15334 (get_last_target_status, set_last_target_status): New
15335 process_stratum_target parameter.
15336 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15337 process_stratum_target parameter, and use it.
15338 (clear_inline_frame_state (thread_info*)): New.
15339 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15340 process_stratum_target parameter.
15341 (clear_inline_frame_state (thread_info*)): Declare.
15342 * linux-fork.c (delete_checkpoint_command): Pass target down to
15344 (checkpoint_command): Adjust.
15345 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15346 instead of just tweaking inferior_ptid.
15347 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15348 (exit_lwp): Pass target down to find_thread_ptid.
15349 (attach_proc_task_lwp_callback): Pass target down to
15350 add_thread/set_running/set_executing.
15351 (linux_nat_target::attach): Pass target down to
15352 thread_change_ptid.
15353 (get_detach_signal): Pass target down to find_thread_ptid.
15354 Consider last target status's target.
15355 (linux_resume_one_lwp_throw, resume_lwp)
15356 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15357 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15358 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15359 (linux_nat_target::async_wait_fd): New.
15360 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15362 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15363 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15364 * linux-thread-db.c (struct thread_db_info::process_target): New
15366 (add_thread_db_info): Save target.
15367 (get_thread_db_info): New process_stratum_target parameter. Also
15369 (delete_thread_db_info): New process_stratum_target parameter.
15371 (thread_from_lwp): Adjust to pass down target.
15372 (thread_db_notice_clone): Pass down target.
15373 (check_thread_db_callback): Pass down target.
15374 (try_thread_db_load_1): Always push the thread_db target.
15375 (try_thread_db_load, record_thread): Pass target down.
15376 (thread_db_target::detach): Pass target down. Always unpush the
15378 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15379 target down. Always unpush the thread_db target.
15380 (find_new_threads_callback, thread_db_find_new_threads_2)
15381 (thread_db_target::update_thread_list): Pass target down.
15382 (thread_db_target::pid_to_str): Pass current inferior down.
15383 (thread_db_target::get_thread_local_address): Pass target down.
15384 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15386 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15387 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15388 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15389 (procfs_init_inferior): Rename to ...
15390 (procfs_target::procfs_init_inferior): ... this and adjust.
15391 (procfs_target::create_inferior, procfs_notice_thread)
15392 (procfs_do_thread_registers): Adjust.
15393 * ppc-fbsd-tdep.c: Include "inferior.h".
15394 (ppcfbsd_get_thread_local_address): Pass down target.
15395 * proc-service.c (ps_xfer_memory): Switch current inferior and
15396 program space as well.
15397 (get_ps_regcache): Pass target down.
15398 * process-stratum-target.c
15399 (process_stratum_target::thread_address_space)
15400 (process_stratum_target::thread_architecture): Pass target down.
15401 * process-stratum-target.h
15402 (process_stratum_target::threads_executing): New field.
15403 (as_process_stratum_target): New.
15404 * ravenscar-thread.c
15405 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15406 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15408 * record-btrace.c (record_btrace_target::info_record): Adjust.
15409 (record_btrace_target::record_method)
15410 (record_btrace_target::record_is_replaying)
15411 (record_btrace_target::fetch_registers)
15412 (get_thread_current_frame_id, record_btrace_target::resume)
15413 (record_btrace_target::wait, record_btrace_target::stop): Pass
15415 * record-full.c (record_full_wait_1): Switch to event thread.
15417 * regcache.c (regcache::regcache)
15418 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15419 process_stratum_target parameter and handle it.
15420 (current_thread_target): New global.
15421 (get_thread_regcache): Add process_stratum_target parameter and
15422 handle it. Switch inferior before calling target method.
15423 (get_thread_regcache): Pass target down.
15424 (get_thread_regcache_for_ptid): Pass target down.
15425 (registers_changed_ptid): Add process_stratum_target parameter and
15427 (registers_changed_thread, registers_changed): Pass target down.
15428 (test_get_thread_arch_aspace_regcache): New.
15429 (current_regcache_test): Define a couple local test_target_ops
15430 instances and use them for testing.
15431 (readwrite_regcache): Pass process_stratum_target parameter.
15432 (cooked_read_test, cooked_write_test): Pass mock_target down.
15433 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15434 (get_thread_arch_aspace_regcache): Add process_stratum_target
15436 (regcache::target): New method.
15437 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15438 (regcache::registers_changed_ptid): Add process_stratum_target
15440 (regcache::m_target): New field.
15441 (registers_changed_ptid): Add process_stratum_target parameter.
15442 * remote.c (remote_state::supports_vCont_probed): New field.
15443 (remote_target::async_wait_fd): New method.
15444 (remote_unpush_and_throw): Add remote_target parameter.
15445 (get_current_remote_target): Adjust.
15446 (remote_target::remote_add_inferior): Push target.
15447 (remote_target::remote_add_thread)
15448 (remote_target::remote_notice_new_inferior)
15449 (get_remote_thread_info): Pass target down.
15450 (remote_target::update_thread_list): Skip threads of inferiors
15451 bound to other targets. (remote_target::close): Don't discard
15452 inferiors. (remote_target::add_current_inferior_and_thread)
15453 (remote_target::process_initial_stop_replies)
15454 (remote_target::start_remote)
15455 (remote_target::remote_serial_quit_handler): Pass down target.
15456 (remote_target::remote_unpush_target): New remote_target
15457 parameter. Unpush the target from all inferiors.
15458 (remote_target::remote_unpush_and_throw): New remote_target
15459 parameter. Pass it down.
15460 (remote_target::open_1): Check whether the current inferior has
15461 execution instead of checking whether any inferior is live. Pass
15463 (remote_target::remote_detach_1): Pass down target. Use
15464 remote_unpush_target.
15465 (extended_remote_target::attach): Pass down target.
15466 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15467 (remote_target::append_resumption): Pass down target.
15468 (remote_target::append_pending_thread_resumptions)
15469 (remote_target::remote_resume_with_hc, remote_target::resume)
15470 (remote_target::commit_resume): Pass down target.
15471 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15472 (remote_target::interrupt_query)
15473 (remote_target::remove_new_fork_children)
15474 (remote_target::check_pending_events_prevent_wildcard_vcont)
15475 (remote_target::remote_parse_stop_reply)
15476 (remote_target::process_stop_reply): Pass down target.
15477 (first_remote_resumed_thread): New remote_target parameter. Pass
15479 (remote_target::wait_as): Pass down target.
15480 (unpush_and_perror): New remote_target parameter. Pass it down.
15481 (remote_target::readchar, remote_target::remote_serial_write)
15482 (remote_target::getpkt_or_notif_sane_1)
15483 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15485 (remote_target::mourn_inferior): Pass down target. Use
15486 remote_unpush_target.
15487 (remote_target::core_of_thread)
15488 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15489 (remote_target::pid_to_exec_file)
15490 (remote_target::thread_handle_to_thread_info): Pass down target.
15491 (remote_target::async_wait_fd): New.
15492 * riscv-fbsd-tdep.c: Include "inferior.h".
15493 (riscv_fbsd_get_thread_local_address): Pass down target.
15494 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15495 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15496 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15498 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15499 * solib-svr4.c (enable_break): Pass down target.
15500 * spu-multiarch.c (parse_spufs_run): Pass down target.
15501 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15502 * target-delegates.c: Regenerate.
15503 * target.c (g_target_stack): Delete.
15504 (current_top_target): Return the current inferior's top target.
15505 (target_has_execution_1): Refer to the passed-in inferior's top
15507 (target_supports_terminal_ours): Check whether the initial
15508 inferior was already created.
15509 (decref_target): New.
15510 (target_stack::push): Incref/decref the target.
15511 (push_target, push_target, unpush_target): Adjust.
15512 (target_stack::unpush): Defref target.
15513 (target_is_pushed): Return bool. Adjust to refer to the current
15514 inferior's target stack.
15515 (dispose_inferior): Delete, and inline parts ...
15516 (target_preopen): ... here. Only dispose of the current inferior.
15517 (target_detach): Hold strong target reference while detaching.
15519 (target_thread_name): Add assertion.
15520 (target_resume): Pass down target.
15521 (target_ops::beneath, find_target_at): Adjust to refer to the
15522 current inferior's target stack.
15523 (get_dummy_target): New.
15524 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15525 has a thread running.
15526 (initialize_targets): Rename to ...
15527 (_initialize_target): ... this.
15528 * target.h: Include "gdbsupport/refcounted-object.h".
15529 (struct target_ops): Inherit refcounted_object.
15530 (target_ops::shortname, target_ops::longname): Make const.
15531 (target_ops::async_wait_fd): New method.
15532 (decref_target): Declare.
15533 (struct target_ops_ref_policy): New.
15534 (target_ops_ref): New typedef.
15535 (get_dummy_target): Declare function.
15536 (target_is_pushed): Return bool.
15537 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15538 (all_matching_threads_iterator::all_matching_threads_iterator):
15539 Handle filter target.
15540 * thread-iter.h (struct all_matching_threads_iterator, struct
15541 all_matching_threads_range, class all_non_exited_threads_range):
15542 Filter by target too. Remove explicit.
15543 * thread.c (threads_executing): Delete.
15544 (inferior_thread): Pass down current inferior.
15545 (clear_thread_inferior_resources): Pass down thread pointer
15547 (add_thread_silent, add_thread_with_info, add_thread): Add
15548 process_stratum_target parameter. Use it for thread and inferior
15550 (is_current_thread): New.
15551 (thread_info::deletable): Use it.
15552 (find_thread_ptid, thread_count, in_thread_list)
15553 (thread_change_ptid, set_resumed, set_running): New
15554 process_stratum_target parameter. Pass it down.
15555 (set_executing): New process_stratum_target parameter. Pass it
15556 down. Adjust reference to 'threads_executing'.
15557 (threads_are_executing): New process_stratum_target parameter.
15558 Adjust reference to 'threads_executing'.
15559 (set_stop_requested, finish_thread_state): New
15560 process_stratum_target parameter. Pass it down.
15561 (switch_to_thread): Also match inferior.
15562 (switch_to_thread): New process_stratum_target parameter. Pass it
15564 (update_threads_executing): Reimplement.
15565 * top.c (quit_force): Pop targets from all inferior.
15566 (gdb_init): Don't call initialize_targets.
15567 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15569 (windows_add_thread, windows_delete_thread): Adjust.
15570 (get_windows_debug_event): Rename to ...
15571 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15572 * tracefile-tfile.c (tfile_target_open): Pass down target.
15573 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15575 (switch_to_thread): Add process_stratum_target parameter.
15576 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15578 (mi_on_resume): Pass target down.
15579 * nat/fork-inferior.c (startup_inferior): Add
15580 process_stratum_target parameter. Pass it down.
15581 * nat/fork-inferior.h (startup_inferior): Add
15582 process_stratum_target parameter.
15583 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15585 2020-01-10 Pedro Alves <palves@redhat.com>
15587 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15588 directly. Instead find the first thread in the thread list and
15589 use switch_to_thread.
15591 2020-01-10 Pedro Alves <palves@redhat.com>
15593 * remote.c (remote_target::remote_add_inferior): Don't bind a
15594 process to the current inferior if the current inferior is already
15595 bound to a process.
15597 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15598 Pedro Alves <palves@redhat.com>
15600 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15601 If no process is specified, return null_ptid instead of
15603 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15604 TARGET_WAITKIND_SIGNALLED with no pid.
15606 2020-01-10 Pedro Alves <palves@redhat.com>
15608 * remote.c (first_remote_resumed_thread): New.
15609 (remote_target::wait_as): Use it as default event_ptid instead of
15612 2020-01-10 Pedro Alves <palves@redhat.com>
15614 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15616 2020-01-10 Pedro Alves <palves@redhat.com>
15618 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15621 2020-01-10 Pedro Alves <palves@redhat.com>
15623 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15624 ptid to get_last_target_status.
15625 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15626 ptid to get_last_target_status.
15627 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15628 get_last_target_status.
15629 (info_program_command): Don't pass a target_waitstatus to
15630 get_last_target_status.
15631 * infrun.c (init_wait_for_inferior): Use
15632 nullify_last_target_wait_ptid.
15633 (get_last_target_status): Handle nullptr arguments.
15634 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15635 (print_stop_event): Don't pass a ptid to get_last_target_status.
15636 (normal_stop): Don't pass a ptid to get_last_target_status.
15637 * infrun.h (get_last_target_status, set_last_target_status): Move
15638 comments here and update.
15639 (nullify_last_target_wait_ptid): Declare.
15640 * linux-fork.c (fork_load_infrun_state): Remove local extern
15641 declaration of nullify_last_target_wait_ptid.
15642 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15643 to get_last_target_status.
15645 2020-01-10 Pedro Alves <palves@redhat.com>
15647 * gdbthread.h (scoped_restore_current_thread)
15648 <dont_restore, restore, m_dont_restore>: Declare.
15649 * thread.c (thread_alive): Add assertion. Return bool.
15650 (switch_to_thread_if_alive): New.
15651 (prune_threads): Switch inferior/thread.
15652 (print_thread_info_1): Switch thread before calling target methods.
15653 (scoped_restore_current_thread::restore): New, factored out from
15655 (scoped_restore_current_thread::~scoped_restore_current_thread):
15657 (scoped_restore_current_thread::scoped_restore_current_thread):
15659 (thread_apply_all_command, thread_select): Use
15660 switch_to_thread_if_alive.
15661 * infrun.c (proceed, restart_threads, handle_signal_stop)
15662 (switch_back_to_stepped_thread): Switch current thread before
15663 calling target methods.
15665 2020-01-10 Pedro Alves <palves@redhat.com>
15667 * inferior.c (switch_to_inferior_no_thread): New function,
15668 factored out from ...
15669 (inferior_command): ... here.
15670 * inferior.h (switch_to_inferior_no_thread): Declare.
15671 * mi/mi-main.c (run_one_inferior): Use
15672 switch_to_inferior_no_thread.
15674 2020-01-10 Pedro Alves <palves@redhat.com>
15676 * infcmd.c (kill_command): Remove dead code.
15678 2020-01-10 Pedro Alves <palves@redhat.com>
15680 * remote.c (remote_target::mourn_inferior): No longer check
15681 whether the target is running.
15683 2020-01-10 Pedro Alves <palves@redhat.com>
15685 * corelow.c (core_target::has_execution): Change parameter type to
15687 * inferior.c (number_of_live_inferiors): Use
15688 inferior::has_execution instead of target_has_execution_1.
15689 * inferior.h (inferior::has_execution): New.
15690 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15691 inferior::has_execution instead of target_has_execution_1.
15692 * process-stratum-target.c
15693 (process_stratum_target::has_execution): Change parameter type to
15694 inferior pointer. Check the inferior's PID instead of
15696 * process-stratum-target.h
15697 (process_stratum_target::has_execution): Change parameter type to
15699 * record-full.c (record_full_core_target::has_execution): Change
15700 parameter type to inferior pointer.
15701 * target.c (target_has_execution_1): Change parameter type to
15703 (target_has_execution_current): Adjust.
15704 * target.h (target_ops::has_execution): Change parameter type to
15706 (target_has_execution_1): Change parameter type to inferior
15707 pointer. Change return type to bool.
15708 * tracefile.h (tracefile_target::has_execution): Change parameter
15709 type to inferior pointer.
15711 2020-01-10 Pedro Alves <palves@redhat.com>
15713 * exceptions.c (print_flush): Remove current_top_target() check.
15715 2020-01-10 Pedro Alves <palves@redhat.com>
15717 * remote.c (show_remote_exec_file): Show the current inferior's
15718 exec-file instead of the command variable's value.
15720 2020-01-10 Pedro Alves <palves@redhat.com>
15722 * record-full.c (record_full_resume_ptid): New global.
15723 (record_full_target::resume): Set it.
15724 (record_full_wait_1): Use record_full_resume_ptid instead of
15727 2020-01-10 Pedro Alves <palves@redhat.com>
15729 * gdbthread.h (scoped_restore_current_thread)
15730 <dont_restore, restore, m_dont_restore>: Declare.
15731 * thread.c (thread_alive): Add assertion. Return bool.
15732 (switch_to_thread_if_alive): New.
15733 (prune_threads): Switch inferior/thread.
15734 (print_thread_info_1): Switch thread before calling target methods.
15735 (scoped_restore_current_thread::restore): New, factored out from
15737 (scoped_restore_current_thread::~scoped_restore_current_thread):
15739 (scoped_restore_current_thread::scoped_restore_current_thread):
15741 (thread_apply_all_command, thread_select): Use
15742 switch_to_thread_if_alive.
15744 2020-01-10 George Barrett <bob@bob131.so>
15746 * stap-probe.c (stap_modify_semaphore): Don't check for null
15748 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15749 for null semaphores.
15751 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15753 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15754 all source windows, and maintain horizontal scroll status while
15757 2020-01-09 Tom Tromey <tom@tromey.com>
15760 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15761 update_source_window, not print_source_lines.
15763 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15765 * tui/tui.c (tui_enable): Register tui hooks after calling
15768 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15770 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15772 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15774 * thread.c (print_thread_info_1): Fix indentation.
15776 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15778 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15779 unique_xmalloc_ptr outside the if to always free the demangled name.
15781 2020-01-08 Tom Tromey <tromey@adacore.com>
15783 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15784 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15785 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15786 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15788 (section_offsets): New typedef.
15789 * symtab.c (fixup_section, get_msymbol_address): Update.
15790 * symmisc.c (dump_msymbols): Update.
15791 * symfile.h (relative_addr_info_to_section_offsets)
15792 (symfile_map_offsets_to_segments): Update.
15793 * symfile.c (build_section_addr_info_from_objfile)
15794 (init_objfile_sect_indices): Update.
15795 (struct place_section_arg): Change type of "offsets".
15796 (place_section): Update.
15797 (relative_addr_info_to_section_offsets): Change type of
15798 "section_offsets". Remove "num_sections" parameter.
15799 (default_symfile_offsets, syms_from_objfile_1)
15800 (set_objfile_default_section_offset): Update.
15801 (reread_symbols): No need to preserve section offsets by hand.
15802 (symfile_map_offsets_to_segments): Change type of "offsets".
15803 * stap-probe.c (relocate_address): Update.
15804 * stabsread.h (process_one_symbol): Update.
15805 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15806 (solib_target_relocate_section_addresses): Update.
15807 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15809 * solib-frv.c (frv_relocate_main_executable): Update.
15810 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15811 * solib-aix.c (solib_aix_get_section_offsets): Change return
15813 (solib_aix_solib_create_inferior_hook): Update.
15814 * remote.c (remote_target::get_offsets): Update.
15815 * psymtab.c (find_pc_sect_psymtab): Update.
15816 * psympriv.h (struct partial_symbol) <address, text_low,
15817 text_high>: Update.
15818 * objfiles.h (obj_section_offset): Update.
15819 (struct objfile) <section_offsets>: Change type.
15820 <num_sections>: Remove.
15821 (objfile_relocate): Update.
15822 * objfiles.c (entry_point_address_query): Update
15823 (relocate_one_symbol): Change type of "section_offsets".
15824 (objfile_relocate1, objfile_relocate1): Change type of
15826 (objfile_rebase1): Update.
15827 * mipsread.c (mipscoff_symfile_read): Update.
15828 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15830 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15831 (parse_external, psymtab_to_symtab_1): Update.
15832 * machoread.c (macho_symfile_offsets): Update.
15833 * ia64-tdep.c (ia64_find_unwind_table): Update.
15834 * hppa-tdep.c (read_unwind_info): Update.
15835 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15836 * dwarf2read.c (create_addrmap_from_index)
15837 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15838 (process_psymtab_comp_unit_reader, add_partial_symbol)
15839 (add_partial_subprogram, process_full_comp_unit)
15840 (read_file_scope, read_func_scope, read_lexical_block_scope)
15841 (read_call_site_scope, dwarf2_rnglists_process)
15842 (dwarf2_ranges_process, dwarf2_ranges_read)
15843 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15844 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15846 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15848 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15849 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15850 (process_one_symbol): Change type of "section_offsets".
15851 * ctfread.c (get_objfile_text_range): Update.
15852 * coffread.c (coff_symtab_read, enter_linenos)
15853 (process_coff_symbol): Update.
15854 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15855 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15857 2020-01-08 Tom Tromey <tromey@adacore.com>
15859 * dwarf2read.c (parse_macro_definition): Use std::string.
15860 (parse_macro_definition): Likewise.
15862 2020-01-08 Tom Tromey <tromey@adacore.com>
15864 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15865 (ATTR_ALLOC_CHUNK): Remove.
15867 2020-01-08 Tom Tromey <tromey@adacore.com>
15869 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15871 2020-01-08 Tom Tromey <tromey@adacore.com>
15873 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15874 (dwarf2_compute_name, open_dwo_file): Likewise.
15875 (process_enumeration_scope): Use std::vector.
15876 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15877 (partial_die_info::fixup, dwarf2_start_subfile)
15878 (guess_full_die_structure_name, dwarf2_name): Likewise.
15879 (determine_prefix): Update.
15880 (guess_full_die_structure_name): Make return type const.
15881 (partial_die_full_name): Return unique_xmalloc_ptr.
15882 (DW_FIELD_ALLOC_CHUNK): Remove.
15884 2020-01-07 Tom Tromey <tromey@adacore.com>
15887 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15889 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15891 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15893 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15895 * stack.c (print_frame_info): Move disassemble_next_line code
15896 inside source_print block.
15898 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15900 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15901 gdb/signals.h, as we are now using native signal symbols.
15903 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15905 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15906 overflow by an early check of content vs threshold.
15907 * tui/tui-source.c (tui_source_window::line_is_displayed):
15910 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15912 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15914 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15916 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15917 export table if no section contains it's RVA.
15919 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15921 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15923 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15925 * source.c (print_source_lines_base): Set last_line_listed.
15927 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15929 * tui/tui-disasm.c: Remove trailing spaces.
15931 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15932 Pedro Alves <palves@redhat.com>
15934 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15935 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15936 (windows_gdb_signal_to_target): New function, uses the above
15937 enumeration to convert GDB internal signal codes to equivalent
15939 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15940 * windows-nat.c: Include "gdb_wait.h".
15941 (get_windows_debug_event): Extract the fatal exception from the
15942 exit status and convert to the equivalent Posix signal number.
15943 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15944 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15945 * gdbsupport/gdb_wait.c: New file, implements
15946 windows_status_to_termsig.
15947 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15948 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15950 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15952 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15955 2020-01-05 Luis Machado <luis.machado@linaro.org>
15957 * aarch64-linux-nat.c
15958 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15959 and bfd_mach_aarch64.
15961 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15963 * ui-file.c (stdio_file::can_emit_style_escape)
15964 (tee_file::can_emit_style_escape): Ensure style is used also on
15965 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15967 * main.c (set_gdb_data_directory): Use file style to output the
15968 warning that the given pathname is not a directory.
15969 * top.c (show_history_filename, gdb_safe_append_history)
15970 (show_gdb_datadir): Use file style.
15972 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15974 * solib-target.c (struct lm_info_target):
15975 Change offsets to be a unique_xmalloc_ptr.
15976 (solib_target_relocate_section_addresses): Update.
15978 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15980 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15982 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15984 * MAINTAINERS (Write After Approval): Add myself.
15986 2020-01-02 Luis Machado <luis.machado@linaro.org>
15988 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15989 Cell BE architecture.
15990 * target.h (struct target_ops) <thread_architecture>: Likewise.
15992 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15994 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15996 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15998 * MAINTAINERS (Write After Approval): Add myself.
16000 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16002 * gdbarch.sh: Update copyright year range of generated files.
16004 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16006 Update copyright year range in all GDB files.
16008 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16010 * copyright.py: Convert to Python 3.
16012 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16014 * copyright.py: Adapt after move of gnulib directory from gdb
16015 directory to toplevel directory.
16017 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16019 * copyright.py (main): Exit if run from the wrong directory.
16021 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16023 * top.c (print_gdb_version): Change copyright year to 2020.
16025 2020-01-01 Joel Brobecker <brobecker@adacore.com>
16027 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
16029 For older changes see ChangeLog-2019.
16035 version-control: never