1 2020-10-29 Tom Tromey <tom@tromey.com>
3 * progspace.h (struct program_space) <remove_target_sections>:
5 * exec.c (program_space::remove_target_sections): Now a method.
6 * exec.h (remove_target_sections): Don't declare.
8 2020-10-29 Tom Tromey <tom@tromey.com>
10 * inferior.c (delete_inferior): Update.
11 * progspace.c (program_space::empty): Rename from
12 program_space_empty_p. Return bool.
13 * progspace.h (struct program_space) <empty>: New method.
14 (program_space_empty_p): Don't declare.
16 2020-10-29 Tom Tromey <tom@tromey.com>
18 * progspace.c (program_space::~program_space): Don't call
19 clear_program_space_solib_cache.
20 (program_space::clear_solib_cache): Rename from
22 * solib.c (handle_solib_event): Update.
23 * progspace.h (struct program_space) <clear_solib_cache>: New
25 (clear_program_space_solib_cache): Don't declare.
27 2020-10-29 Tom Tromey <tom@tromey.com>
29 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
30 * target.c (info_target_command): Update.
31 * symfile.c (syms_from_objfile_1, finish_new_objfile)
32 (symbol_file_clear, reread_symbols): Update.
33 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
34 * stabsread.c (scan_file_globals): Update.
35 * solib.c (update_solib_list): Update.
36 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
37 (svr4_fetch_objfile_link_map, enable_break)
38 (svr4_relocate_main_executable)
39 (svr4_iterate_over_objfiles_in_search_order): Update.
40 * solib-frv.c (lm_base, enable_break)
41 (frv_relocate_main_executable): Update.
42 (main_got, frv_fdpic_find_canonical_descriptor): Update.
43 (frv_fetch_objfile_link_map): Update.
44 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
45 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
46 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
47 * remote.c (remote_target::get_offsets): Update.
48 (remote_target::start_remote)
49 (extended_remote_target::post_attach): Update.
50 * objfiles.c (entry_point_address_query): Update.
51 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
52 * minsyms.c (get_symbol_leading_char): Update.
53 * frame.c (inside_main_func): Update.
54 * progspace.h (symfile_objfile): Remove macro.
56 2020-10-29 Tom Tromey <tom@tromey.com>
58 * exec.c (exec_file_attach): Update.
59 * progspace.c (program_space::exec_close): Update.
60 * progspace.h (struct program_space) <ebfd>: Now a
62 <set_exec_bfd>: Change argument type.
65 2020-10-29 Tom Tromey <tom@tromey.com>
67 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
68 * symfile.c (reread_symbols): Update.
69 * symfile-mem.c (add_symbol_file_from_memory_command)
70 (add_vsyscall_page): Update.
71 * source-cache.c (source_cache::get_plain_source_lines): Update.
72 * solib-svr4.c (find_program_interpreter, elf_locate_base)
73 (svr4_current_sos_direct, svr4_exec_displacement)
74 (svr4_relocate_main_executable): Update.
75 (svr4_iterate_over_objfiles_in_search_order): Update.
76 * solib-frv.c (enable_break2, enable_break): Update.
77 * solib-dsbt.c (lm_base, enable_break): Update.
78 * solib-darwin.c (find_program_interpreter)
79 (darwin_solib_create_inferior_hook): Update.
80 * sol-thread.c (rw_common, ps_pdmodel): Update.
81 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
82 * remote.c (compare_sections_command)
83 (remote_target::trace_set_readonly_regions): Update.
84 * remote-sim.c (get_sim_inferior_data)
85 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
86 (gdbsim_target_open, gdbsim_target::files_info): Update.
87 * exec.h (exec_bfd): Remove macro.
88 * progspace.c (initialize_progspace): Update.
89 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
91 * nto-procfs.c (nto_procfs_target::post_attach)
92 (nto_procfs_target::create_inferior): Update.
93 * maint.c (maintenance_info_sections): Update.
94 * linux-thread-db.c (thread_db_target::get_thread_local_address):
96 * infcmd.c (post_create_inferior): Update.
97 * gcore.c (default_gcore_arch, default_gcore_target): Update.
98 (objfile_find_memory_regions): Update.
99 * exec.c (validate_exec_file, exec_file_attach)
100 (exec_read_partial_read_only, print_section_info): Update.
101 * corelow.c (core_target_open): Update.
102 * corefile.c (reopen_exec_file, validate_files): Update.
103 * arm-tdep.c (gdb_print_insn_arm): Update.
104 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
105 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
108 2020-10-29 Tom Tromey <tom@tromey.com>
110 * progspace.h (current_target_sections): Remove macro.
111 * solib-svr4.c (scan_dyntag): Update.
112 * solib-dsbt.c (scan_dyntag): Update.
113 * exec.c (exec_target::close): Update.
114 (add_target_sections, add_target_sections_of_objfile)
115 (remove_target_sections, exec_target::get_section_table)
116 (exec_target::files_info, set_section_command)
117 (exec_set_section_address, exec_target::has_memory)
118 (exec_target::has_memory): Update.
120 2020-10-29 Tom Tromey <tom@tromey.com>
122 * source-cache.c (source_cache::get_plain_source_lines): Use
123 current_program_space.
124 * corefile.c (reopen_exec_file): Use current_program_space.
125 * exec.c (exec_file_attach): Use current_program_space.
126 * exec.h (exec_bfd_mtime): Remove.
128 2020-10-29 Tom Tromey <tom@tromey.com>
130 * gcore.c (default_gcore_mach): Remove.
131 (create_gcore_bfd): Update.
133 2020-10-29 Tom Tromey <tom@tromey.com>
135 * progspace.c (program_space::exec_close): New method, from
136 exec_close in exec.c.
137 * exec.c (exec_close): Move to progspace.c.
138 (exec_target::close, exec_file_attach): Update.
139 * progspace.h (struct program_space) <exec_close>: Declare
142 2020-10-29 Tom Tromey <tom@tromey.com>
144 * progspace.h (struct program_space) <exec_filename>: Rename from
145 pspace_exec_filename. Now a unique_xmalloc_ptr.
146 * inferior.c (print_selected_inferior): Update.
147 (print_inferior): Update.
148 * mi/mi-main.c (print_one_inferior): Update.
149 * exec.h (exec_filename): Remove macro.
150 * corefile.c (get_exec_file): Update.
151 * exec.c (exec_close): Update.
152 (exec_file_attach): Update.
153 * progspace.c (clone_program_space): Update.
154 (print_program_space): Update.
156 2020-10-29 Tom Tromey <tom@tromey.com>
158 * target-section.h (struct target_section): Add constructor.
159 * exec.c (build_section_table, add_target_sections_of_objfile):
161 * corelow.c (core_target::build_file_mappings): Update.
163 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
166 * inferior.c (detach_inferior_command): Restore the current thread.
167 (kill_inferior_command): Ditto.
169 2020-10-28 Tom de Vries <tdevries@suse.de>
172 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
173 map, check it in the "best match" loop.
175 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
177 * m32c-tdep.c: Remove unused includes.
179 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
181 * xtensa-tdep.c: Remove includes.
183 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
185 * breakpoint.c (struct condition_command_opts): New struct.
186 (condition_command_option_defs): New static global.
187 (make_condition_command_options_def_group): New function.
188 (condition_completer): Update to consider the '-force' flag.
189 (condition_command): Use gdb::option for the '-force' flag.
191 2020-10-27 Tom de Vries <tdevries@suse.de>
193 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
194 symbols in section check.
196 2020-10-27 Tom de Vries <tdevries@suse.de>
198 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
200 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
202 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
203 * breakpoint.c: Update the help text of the 'condition' and 'break'
205 (set_breakpoint_condition): Take a new bool parameter
206 to control whether condition definition should be forced even when
207 the condition expression is invalid in all of the current locations.
208 (condition_command): Update the call to 'set_breakpoint_condition'.
209 (find_condition_and_thread): Take the "-force-condition" flag into
211 * linespec.c (linespec_keywords): Add "-force-condition" as an
213 (FORCE_KEYWORD_INDEX): New #define.
214 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
216 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
217 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
218 * python/py-breakpoint.c (bppy_set_condition): Ditto.
219 * NEWS: Mention the changes to the 'break' and 'condition' commands.
221 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
223 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
224 * breakpoint.c (set_breakpoint_location_condition): New function.
225 (set_breakpoint_condition): Disable a breakpoint location if parsing
226 the condition string gives an error.
227 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
228 (build_target_condition_list): Ditto.
229 (build_target_command_list): Ditto.
230 (build_bpstat_chain): Ditto.
231 (print_one_breakpoint_location): Ditto.
232 (print_one_breakpoint): Ditto.
233 (breakpoint_1): Ditto.
234 (bp_location::bp_location): Ditto.
235 (locations_are_equal): Ditto.
236 (update_breakpoint_locations): Ditto.
237 (enable_disable_bp_num_loc): Ditto.
238 (init_breakpoint_sal): Use set_breakpoint_location_condition.
239 (find_condition_and_thread_for_sals): New static function.
240 (create_breakpoint): Call find_condition_and_thread_for_sals.
241 (location_to_sals): Call find_condition_and_thread_for_sals instead
242 of find_condition_and_thread.
244 2020-10-26 Tom de Vries <tdevries@suse.de>
246 * dwarf2/read.c (process_full_comp_unit): Call
247 dwarf2_find_base_address.
249 2020-10-26 Tom Tromey <tromey@adacore.com>
251 * gdbtypes.c (create_range_type): Revert previous patch. Add
254 2020-10-26 Pedro Alves <pedro@palves.net>
256 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
257 (my_waitpid): Use gdb::handle_eintr.
259 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
261 * acinclude.m4: Update ptrace.m4 path.
262 * ptrace.m4: Moved to gdbsupport.
264 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
266 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
267 instead of target_gdbarch.
269 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
271 * jit.c (jit_reader_load_command): Pass current inferior.
272 (jit_inferior_init): Change parameter type to inferior, use it.
273 (jit_inferior_created): Remove.
274 (jit_inferior_created_hook): Pass inferior parameter down.
275 (_initialize_jit): Use jit_inferior_created_hook instead of
276 jit_inferior_created.
277 * jit.h (jit_inferior_created_hook): Add inferior parameter.
278 * infrun.c (follow_exec): Pass inferior to
279 jit_inferior_created_hook.
281 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
283 * linux-thread-db.c (check_pid_namespace_match): Add inferior
284 parameter and use it.
285 (thread_db_inferior_created): Pass inferior argument.
287 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
289 * aix-thread.c (aix_thread_inferior_created): Add inferior
291 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
292 * dummy-frame.c (cleanup_dummy_frames): Likewise.
293 * jit.c (jit_inferior_created): Likewise.
294 * linux-thread-db.c (thread_db_inferior_created): Likewise.
295 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
296 * observable.h (inferior_created): Likewise.
297 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
298 * symfile-mem.c (add_vsyscall_page): Likewise.
299 * infcmd.c (post_create_inferior): Pass inferior argument.
301 2020-10-24 Joel Brobecker <brobecker@adacore.com>
305 2020-10-23 Joel Brobecker <brobecker@adacore.com>
307 * ada-typeprint.c (ada_print_type): Remove superfluous second call
308 to ada_check_typedef.
310 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
312 * f-exp.y (f_parse): Rename to...
313 (f_language::parser): ...this.
314 * f-lang.c (f_get_encoding): Rename to...
315 (f_language::get_encoding): ...this.
316 (f_op_print_tab): Rename to...
317 (f_language::op_print_tab): ...this.
318 (exp_descriptor_f): Rename to...
319 (f_language::exp_descriptor_tab): ...this.
320 (class f_language): Moved to f-lang.h.
321 (f_language::language_arch_info): New function, moved out of class
323 (f_language::search_name_hash): Likewise.
324 (f_language::lookup_symbol_nonlocal): Likewise.
325 (f_language::get_symbol_name_matcher_inner): Likewise.
326 * f-lang.h: Add 'valprint.h' include.
327 (class f_language): Moved here from f-lang.c.
328 * f-typeprint.c (f_type_print_args): Delete commented out
330 (f_print_typedef): Rename to...
331 (f_language::print_typedef): ...this.
332 (f_print_type): Rename to...
333 (f_language::print_type): ...this.
334 (f_type_print_varspec_prefix): Delete declaration and rename to...
335 (f_language::f_type_print_varspec_prefix): ...this.
336 (f_type_print_varspec_suffix): Delete declaration and rename to...
337 (f_language::f_type_print_varspec_suffix): ...this.
338 (f_type_print_base): Delete declaration and rename to...
339 (f_language::f_type_print_base): ...this.
340 * f-valprint.c (f_value_print_inner): Rename to...
341 (f_language::value_print_inner): ...this.
342 * parse.c: Delete 'f-lang.h' include.
344 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
346 * language.h (language_defn::print_type): Add variable names in
347 declaration, and update header comment.
349 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
351 * ada-lang.c (ada_language::demangle): Rename to...
352 (ada_language::demangle_symbol): ...this.
353 * c-lang.c (cplus_language::demangle): Rename to...
354 (cplus_language::demangle_symbol): ...this.
355 * d-lang.c (d_language::demangle): Rename to...
356 (d_language::demangle_symbol): ...this.
357 * f-lang.c (f_language::demangle): Rename to...
358 (f_language::demangle_symbol): ...this.
359 * go-lang.c (go_language::demangle): Rename to...
360 (go_language::demangle_symbol): ...this.
361 * language.c (language_demangle): Update call to demangle_symbol.
362 (auto_or_unknown_language::demangle): Rename to...
363 (auto_or_unknown_language::demangle_symbol): ...this.
364 * language.h (language_defn::demangle): Rename to...
365 (language_defn::demangle_symbol): ...this.
366 * objc-lang.c (objc_language::demangle): Rename to...
367 (objc_language::demangle_symbol): ...this.
368 * rust-lang.c (rust_language::demangle): Rename to...
369 (rust_language::demangle_symbol): ...this.
371 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
373 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
374 (iterate_over_file_blocks): Replace use of macro with the macros
377 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
379 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
380 * valprint.c (maybe_print_array_index): Replace use of macro with
381 the macros definition.
383 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
385 * ada-lang.c (ada_language::print_array_index): Call value_print
387 * language.c (language_defn::print_array_index): Likewise.
388 * language.h (LA_VALUE_PRINT): Delete.
389 * valprint.c (value_print): Call value_print on the
390 current_language directly.
392 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
394 * language.h (LA_PRINT_TYPEDEF): Delete.
395 * typeprint.c (typedef_print): Call print_typedef directly on the
396 current_language object.
398 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
400 * m2-exp.y (m2_parse): Rename to...
401 (m2_language::parser): ...this. Update function signature.
402 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
403 (m2_op_print): Rename to...
404 (m2_language::op_print_tab): ...this, and make const.
405 (exp_descriptor_modula2): Rename to...
406 (m2_language::exp_descriptor_modula2): ...this.
407 (class m2_language): Move to m2-lang.h.
408 (m2_language::language_arch_info): New function, moved out of
410 (m2_language::printchar): New function, body from m2_printchar.
411 (m2_language::printstr): New function, moved out of class
413 (m2_language::emitchar): Likewise.
414 * m2-lang.h (m2_parse): Delete declaration.
415 (m2_print_typedef): Delete declaration.
416 (m2_value_print_inner): Delete declaration.
417 (class m2_language): Class declaration moved from m2-lang.c,
418 larger functions are left in m2-lang.c.
419 * m2-typeprint.c (m2_print_typedef): Rename to...
420 (m2_language::print_typedef): ...this, and update function
422 * m2-valprint.c (m2_value_print_inner): Rename to...
423 (m2_language::value_print_inner): ...this, replace use of
424 LA_PRINT_STRING with a direct call to printstr member function,
425 and update recursive call.
427 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
429 * language.c (default_is_string_type_p): Delete, implementation
430 moved into auto_or_unknown_language::is_string_type_p.
431 (unk_op_print_tab): Moved into
432 auto_or_unknown_language::opcode_print_table.
433 (unknown_language_arch_info): Delete, implementation moved into
434 auto_or_unknown_language::language_arch_info.
435 (class auto_or_unknown_language): New class, member functions
436 copied from unknown_language class, with some updates.
437 (class unknown_language): Most member functions moved into
438 auto_or_unknown_language class. Inherit from
439 auto_or_unknown_language class.
440 (class auto_language): Inherit from auto_or_unknown_language.
441 Delete most member functions.
443 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
445 * stabsread.c (read_member_functions): Remove gdb_assert.
447 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
449 * gdbtypes.c (init_complex_type): Check target type name.
451 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
453 * target-debug.h (target_debug_print_struct_target_ops_p):
455 (target_debug_print_async_callback_ftype_p): Remove.
456 (target_debug_print_struct_trace_state_variable_p): Remove.
457 (target_debug_print_struct_traceframe_info_p): Remove.
458 (target_debug_print_VEC__btrace_block_s__pp): Remove.
459 (target_debug_print_enum_btrace_format): Remove.
460 (target_debug_print_enum_info_proc_what): Remove.
461 (target_debug_print_thread_info_pp): Remove.
463 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
465 * target.h (struct target_ops) <make_corefile_notes>:
466 Change return type to unique pointer.
467 * target.c (dummy_make_corefile_notes): Likewise.
468 * exec.c (struct exec_target) <make_corefile_notes>:
470 (exec_target::make_corefile_notes): Likewise.
471 * procfs.c (class procfs_target) <make_corefile_notes>:
473 (procfs_do_thread_registers): Adjust to unique pointer.
474 (struct procfs_corefile_thread_data): Add constructor.
475 <note_data>: Change type to unique pointer.
476 (procfs_corefile_thread_callback): Adjust to unique pointer.
477 (procfs_target::make_corefile_notes): Change return type to
479 * target-delegates.c: Re-generate.
480 * gcore.c (write_gcore_file_1): Adjust.
481 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
484 2020-10-22 Tom de Vries <tdevries@suse.de>
486 * block.c (find_block_in_blockvector): Make sure the returned block
489 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
492 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
494 (load_cu): Pass existing CU.
495 (process_imported_unit_die): Likewise.
496 (follow_die_offset): Likewise.
498 2020-10-22 Luis Machado <luis.machado@linaro.org>
500 * corelow.c (core_target::xfer_partial): Also check for an empty
501 m_core_unavailable_mappings vector.
503 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
505 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
506 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
507 * f-exp.y (arglist): Allow for a series of subranges.
508 (subrange): Add cases for subranges with strides.
509 * f-lang.c (value_f90_subarray): Catch use of array strides and
511 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
513 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
515 * expprint.c (print_subexp_standard): Change enum range_type to
516 range_flag and rename variables to match.
517 (dump_subexp_body_standard): Likewise.
518 * expression.h (enum range_type): Rename to...
519 (enum range_flag): ...this.
520 (range_types): Rename to...
521 (range_flags): ...this.
522 * f-lang.c (value_f90_subarray): Change enum range_type to
523 range_flag and rename variables to match.
524 * parse.c (operator_length_standard): Likewise.
525 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
526 range_type to range_flag.
527 * rust-lang.c (rust_evaluate_funcall): Likewise.
528 (rust_range): Likewise.
529 (rust_compute_range): Likewise.
530 (rust_subscript): Likewise.
532 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
534 * expprint.c (print_subexp_standard): Update to reflect changes to
536 (dump_subexp_body_standard): Likewise.
537 * expression.h (enum range_type): Convert to a bit field enum, and
538 make the enum unsigned.
539 * f-exp.y (subrange): Update to reflect changes to enum
541 * f-lang.c (value_f90_subarray): Likewise.
542 * parse.c (operator_length_standard): Likewise.
543 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
544 * rust-lang.c (rust_range): Likewise.
545 (rust_compute_range): Likewise.
546 (rust_subscript): Likewise.
548 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
550 * infrun.c (displaced_step_in_progress_thread): Fix comment.
551 (displaced_step_in_progress): Fix comment.
553 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
555 * gdbarch.sh (make_corefile_notes): Return unique pointer.
556 * gdbarch.c: Re-generate.
557 * gdbarch.h: Re-generate.
558 * gcore.c (write_gcore_file_1): Adjust.
559 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
561 <note_data>: Change type to unique pointer.
562 <abort_iteration>: Change type to bool.
563 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
564 (fbsd_collect_thread_registers): Return void, adjust.
565 (struct fbsd_corefile_thread_data): Add construtor.
566 <note_data>: Change type to unique pointer.
567 (fbsd_corefile_thread): Adjust.
568 (fbsd_make_corefile_notes): Return unique pointer, adjust.
569 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
570 to unique pointer, adjust.
571 (struct linux_collect_regset_section_cb_data): Add constructor.
572 <note_data>: Change type to unique pointer.
573 <abort_iteration>: Change type to bool.
574 (linux_collect_thread_registers): Return void, adjust.
575 (struct linux_corefile_thread_data): Add constructor.
576 <note_data>: Change type to unique pointer.
577 (linux_corefile_thread): Adjust.
578 (linux_make_corefile_notes): Return unique pointer, adjust.
580 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
582 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
583 * gdbarch.c: Re-generate.
584 * gdbarch.h: Re-generate.
585 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
587 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
589 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
590 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
591 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
592 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
594 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
596 * gdbarch.sh: Make generated predicates return bool.
597 * gdbarch.c: Re-generate.
598 * gdbarch.h: Re-generate.
600 2020-10-20 Tom Tromey <tom@tromey.com>
602 * varobj-iter.h (struct varobj_item): Remove typedef.
604 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
606 * infrun.c (currently_stepping): Change int to bool
607 (maybe_software_singlestep): Likewise.
608 (show_stop_on_solib_events): Likewise.
609 (stepping_past_nonsteppable_watchpoint): Likewise.
610 (displaced_step_in_progress_any_inferior): Likewise.
611 (displaced_step_in_progress_thread): Likewise.
612 (keep_going_stepped_thread): Likewise.
613 (thread_still_needs_step_over): Likewise.
614 (start_step_over): Likewise.
615 (do_target_resume): Likewise.
616 (resume_1): Likewise.
617 (clear_proceed_status): Likewise.
618 (thread_still_needs_step_over_bp): Likewise.
620 (switch_back_to_stepped_thread): Likewise.
621 (adjust_pc_after_break): Likewise.
622 (stepped_in_from): Likewise.
623 (handle_stop_requested): Likewise.
624 (handle_syscall_event): Likewise.
625 (handle_no_resumed): Likewise.
626 (handle_inferior_event): Likewise.
627 (finish_step_over): Likewise.
628 (handle_signal_stop): Likewise.
629 (process_event_stop_test): Likewise.
631 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
633 * infrun.c (get_displaced_stepping_state): Fix comment.
635 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
637 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
639 2020-10-19 Tom Tromey <tromey@adacore.com>
642 * tui/tui-winsource.h (struct tui_source_window_base)
643 <refresh_window>: Rename from refresh_pad.
644 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
645 Rename from refresh_pad.
646 (tui_source_window_base::show_source_content)
647 (tui_source_window_base::do_scroll_horizontal): Update.
649 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
651 * thread.c (_initialize_thread): Fine-tune the help text of
654 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
656 * frame.c: Remove the unused 'uinteger_option_def' type alias.
658 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
660 * breakpoint.c (handle_jit_event): Add an argument, change how
661 `jit_event_handler` is called.
663 2020-10-17 Tom Tromey <tom@tromey.com>
665 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
666 (scan_xcoff_symtab): Update.
667 * psymtab.h (class psymtab_storage) <global_psymbols,
668 static_psymbols, current_global_psymbols,
669 current_static_psymbols>: Remove.
670 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
671 (match_partial_symbol, lookup_partial_symbol): Update.
672 (print_partial_symbols): Change parameters.
673 (dump_psymtab, recursively_search_psymtabs)
674 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
675 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
677 (end_psymtab_common): Simplify.
678 (append_psymbol_to_list): Change parameters.
679 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
680 (init_psymbol_list): Simplify.
681 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
682 * psympriv.h (struct partial_symtab) <empty>: New method.
683 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
685 <global_psymbols, static_psymbols>: New members.
686 <add_psymbol>: New methods.
687 (add_psymbol_to_list): Don't declare.
688 (psymbol_placement): Move earlier.
689 * mdebugread.c (parse_partial_symbols): Update.
690 (handle_psymbol_enumerators): Change parameters.
691 (mdebug_expand_psymtab): Update.
692 * dwarf2/read.c (process_psymtab_comp_unit_reader)
693 (add_partial_symbol): Update.
694 * dwarf2/index-write.c (write_psymbols): Change parameters.
695 (write_one_signatured_type): Update.
696 (recursively_count_psymbols): Update.
697 (recursively_write_psymbols): Update.
698 (class debug_names) <recursively_write_psymbols>: Update.
699 <write_psymbols>: Change parameters.
700 <write_one_signatured_type>: Update.
701 * dbxread.c (read_dbx_symtab): Update.
702 (dbx_end_psymtab): Use partial_symtab::empty.
703 * ctfread.c (struct ctf_context) <pst>: New member.
704 (create_partial_symtab): Set it.
705 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
706 (scan_partial_symbols): Use the psymtab's context. Update.
708 2020-10-17 Tom Tromey <tom@tromey.com>
710 * valprint.c (generic_value_print): Remove comment.
711 * m2-valprint.c (m2_value_print_inner): Remove comment.
712 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
715 2020-10-17 Tom de Vries <tdevries@suse.de>
718 * source.c (select_source_symtab): Handling sal.symtab == NULL for
721 2020-10-14 Tom de Vries <tdevries@suse.de>
724 * solib.c (solib_contains_address_p): Handle
725 'solib->sections == nullptr'.
727 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
730 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
731 target can't do async.
732 * target.c (target_wait): Assert that we don't pass
733 TARGET_WNOHANG to a target that can't async.
735 2020-10-13 Kamil Rytarowski <n54@gmx.com>
737 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
738 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
739 * alpha-bsd-nat.c: Adjust include.
740 * alpha-bsd-tdep.h: Adjust comment.
741 * alpha-nbsd-tdep.c: Rename to ...
742 * alpha-netbsd-tdep.c: ... this, adjust include.
743 * amd64-nbsd-nat.c: Rename to ...
744 * amd64-netbsd-nat.c: ... this, adjust include.
745 * amd64-nbsd-tdep.c: Rename to ...
746 * amd64-netbsd-tdep.c: ... this, adjust include.
747 * amd64-tdep.h: Adjust include.
748 * arm-nbsd-nat.c: Rename to ...
749 * arm-netbsd-nat.c: ... this, adjust include.
750 * arm-nbsd-tdep.c: Rename to ...
751 * arm-netbsd-tdep.c: ... this, adjust include.
752 * arm-nbsd-tdep.h: Rename to ...
753 * arm-netbsd-tdep.h: ... this, adjust include.
754 * configure.nat: Adjust file lists.
755 * configure.tgt: Likewise.
756 * hppa-nbsd-nat.c: Rename to ...
757 * hppa-netbsd-nat.c: ... this, adjust include.
758 * hppa-nbsd-tdep.c: Rename to ...
759 * hppa-netbsd-tdep.c: ... this, adjust include.
760 * i386-nbsd-nat.c: Rename to ...
761 * i386-netbsd-nat.c: ... this, adjust include.
762 * i386-nbsd-tdep.c: Rename to ...
763 * i386-netbsd-tdep.c: ... this, adjust include.
764 * m68k-bsd-nat.c: Adjust include.
765 * mips-nbsd-nat.c: Rename to ...
766 * mips-netbsd-nat.c: ... this, adjust include.
767 * mips-nbsd-tdep.c: Rename to ...
768 * mips-netbsd-tdep.c: ... this, adjust include.
769 * mips-nbsd-tdep.h: Rename to ...
770 * mips-netbsd-tdep.h: ... this.
771 * nbsd-nat.c: Rename to ...
772 * netbsd-nat.c: ... this, adjust include.
773 * nbsd-nat.h: Rename to ...
774 * netbsd-nat.h: ... this, adjust include.
775 * nbsd-tdep.c: Rename to ...
776 * netbsd-tdep.c: ... this, adjust include.
777 * nbsd-tdep.h: Rename to ...
778 * netbsd-tdep.h: ... this.
779 * ppc-nbsd-nat.c: Rename to ...
780 * ppc-netbsd-nat.c: ... this, adjust include.
781 * ppc-nbsd-tdep.c: Rename to ...
782 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
783 * ppc-nbsd-tdep.h: Rename to ...
784 * ppc-netbsd-tdep.h: ... this.
785 * sh-nbsd-nat.c: Rename to ...
786 * sh-netbsd-nat.c: ... this, adjust include.
787 * sh-nbsd-tdep.c: Rename to ...
788 * sh-netbsd-tdep.c: ... this, adjust include.
789 * sparc-nbsd-nat.c: Rename to ...
790 * sparc-netbsd-nat.c: ... this.
791 * sparc-nbsd-tdep.c: Rename to ...
792 * sparc-netbsd-tdep.c: ... this, adjust include.
793 * sparc64-nbsd-nat.c: Rename to ...
794 * sparc64-netbsd-nat.c: ... this.
795 * sparc64-nbsd-tdep.c: Rename to ...
796 * sparc64-netbsd-tdep.c: ... this, adjust include.
797 * sparc64-tdep.h: Adjust comment.
798 * vax-bsd-nat.c: Adjust include.
799 * vax-nbsd-tdep.c: Rename to ...
800 * vax-netbsd-tdep.c: ... this, adjust include.
802 2020-10-12 Tom Tromey <tom@tromey.com>
804 * target.h (struct target_ops) <get_section_table>: Update.
805 (target_get_section_table): Update.
806 * target.c (target_get_section_table, target_section_by_addr)
807 (memory_xfer_partial_1): Update.
808 * target-section.h (target_section_table): Now an alias.
809 * target-delegates.c: Rebuild.
810 * target-debug.h (target_debug_print_target_section_table_p):
811 Rename from target_debug_print_struct_target_section_table_p.
812 * symfile.c (build_section_addr_info_from_section_table): Update.
813 * solib.c (solib_map_sections, solib_contains_address_p): Update.
814 * solib-svr4.c (scan_dyntag): Update.
815 * solib-dsbt.c (scan_dyntag): Update.
816 * remote.c (remote_target::remote_xfer_live_readonly_partial):
818 * record-full.c (record_full_core_target::xfer_partial): Update.
819 * progspace.h (struct program_space) <target_sections>: Update.
820 * exec.h (print_section_info): Update.
821 * exec.c (exec_target::close, build_section_table)
822 (add_target_sections, add_target_sections_of_objfile)
823 (remove_target_sections, exec_on_vfork)
824 (section_table_available_memory)
825 (section_table_xfer_memory_partial)
826 (exec_target::get_section_table, exec_target::xfer_partial)
827 (print_section_info, set_section_command)
828 (exec_set_section_address, exec_target::has_memory): Update.
829 * corelow.c (core_target::build_file_mappings)
830 (core_target::xfer_partial, core_target::info_proc_mappings)
831 (core_target::info_proc_mappings): Update.
832 * bfd-target.c (class target_bfd): Update
834 2020-10-12 Tom Tromey <tom@tromey.com>
836 * progspace.c (program_space::~program_space): Don't call
838 * exec.h (clear_section_table): Don't declare.
839 * exec.c (exec_target::close): Update.
840 (clear_section_table): Remove.
842 2020-10-12 Tom Tromey <tom@tromey.com>
844 * exec.c (add_target_sections_of_objfile): Simplify.
846 2020-10-12 Tom Tromey <tom@tromey.com>
848 * solib.c (solib_map_sections): Update.
849 * record-full.c (record_full_core_open_1): Update.
850 * exec.h (build_section_table): Return a target_section_table.
851 * exec.c (exec_file_attach): Update.
852 (build_section_table): Return a target_section_table.
853 * corelow.c (core_target::core_target): Update.
854 * bfd-target.c (target_bfd::target_bfd): Update.
856 2020-10-12 Tom Tromey <tom@tromey.com>
858 * target.c (target_section_by_addr, memory_xfer_partial_1):
860 * target-section.h (struct target_section_table): Use
862 * symfile.h (build_section_addr_info_from_section_table): Take a
863 target_section_table.
864 * symfile.c (build_section_addr_info_from_section_table): Take a
865 target_section_table.
866 * solist.h (struct so_list) <sections>: Change type.
867 <sections_end>: Remove.
868 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
869 (solib_contains_address_p): Update.
870 * solib-svr4.c (scan_dyntag): Update.
871 * solib-dsbt.c (scan_dyntag): Update.
872 * remote.c (remote_target::remote_xfer_live_readonly_partial):
874 * record-full.c (record_full_core_start, record_full_core_end):
876 (record_full_core_sections): New global.
877 (record_full_core_open_1, record_full_core_target::xfer_partial):
879 * exec.h (build_section_table, section_table_xfer_memory_partial)
880 (add_target_sections): Take a target_section_table.
881 * exec.c (exec_file_attach, clear_section_table): Update.
882 (resize_section_table): Remove.
883 (build_section_table, add_target_sections): Take a
884 target_section_table.
885 (add_target_sections_of_objfile, remove_target_sections)
886 (exec_on_vfork): Update.
887 (section_table_available_memory): Take a target_section_table.
888 (section_table_read_available_memory): Update.
889 (section_table_xfer_memory_partial): Take a target_section_table.
890 (print_section_info, set_section_command)
891 (exec_set_section_address, exec_target::has_memory): Update.
892 * corelow.c (class core_target) <m_core_section_table,
893 m_core_file_mappings>: Remove braces.
894 <~core_target>: Remove.
895 (core_target::core_target): Update.
896 (core_target::~core_target): Remove.
897 (core_target::build_file_mappings)
898 (core_target::xfer_memory_via_mappings)
899 (core_target::xfer_partial, core_target::info_proc_mappings):
901 * bfd-target.c (target_bfd::xfer_partial): Update.
902 (target_bfd::target_bfd): Update.
903 (target_bfd::~target_bfd): Remove.
905 2020-10-12 Tom Tromey <tom@tromey.com>
907 * target.h (struct target_section, struct target_section_table):
908 Move to target-section.h.
909 * target-section.h: New file.
911 2020-10-12 Pedro Alves <pedro@palves.net>
914 * valops.c (struct struct_field_searcher): New.
915 (update_search_result): Rename to ...
916 (struct_field_searcher::update_result): ... this. Simplify
917 prototype. Record all found fields.
918 (do_search_struct_field): Rename to ...
919 (struct_field_searcher::search): ... this. Simplify prototype.
920 Maintain stack of visited baseclass path. Call update_result for
921 fields too. Keep searching fields in baseclasses instead of
922 stopping at the first found field.
923 (search_struct_field): Use struct_field_searcher. When looking
924 for fields, report ambiguous access attempts.
926 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
928 * frame.c (inside_main_func): Check full symbols as well as
931 2020-10-09 Joel Brobecker <brobecker@adacore.com>
933 * ada-lang.c (advance_wild_match): Rewrite the function's
934 description. Change the type of target0, t0 and t1 to char.
936 2020-10-09 Tom Tromey <tromey@adacore.com>
938 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
940 2020-10-09 Tom Tromey <tromey@adacore.com>
942 * ada-lang.h (ada_encode): Return std::string.
943 * ada-lang.c (ada_encode_1): Return std::string.
944 (ada_encode): Likewise.
945 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
947 * ada-exp.y (block_lookup, write_var_or_type): Update.
949 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
952 * printcmd.c (print_formatted): Handle void results as
955 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
957 * arch/aarch32.c (aarch32_create_target_description): Release the
958 target_desc_up as late as possible.
959 * arch/aarch64.c (aarch64_create_target_description): Likewise.
960 * arch/amd64.c (amd64_create_target_description): Likewise.
961 * arch/arc.c (arc_create_target_description): Return a
962 target_desc_up, don't release it.
963 * arch/arc.h (arc_create_target_description): Update declaration.
964 (arc_lookup_target_description): Move target_desc_up into the
965 cache, and return a borrowed pointer.
966 * arch/arm.c (arm_create_target_description): Release the
967 target_desc_up as late as possible.
968 * arch/i386.c (i386_create_target_description): Likewise.
969 * arch/riscv.h (riscv_create_target_description): Update
970 declaration to match definition.
971 * arch/tic6x.c (tic6x_create_target_description): Release the
972 target_desc_up as late as possible.
974 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
976 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
977 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
979 2020-10-09 Jan Vrany <jan.vrany@labware.com>
981 * source.c (directory_command): Notify observers that "directories"
982 parameter has changed.
984 2020-10-08 Tom Tromey <tom@tromey.com>
986 * cli/cli-cmds.c (print_disassembly): Style function name and
987 addresses. Add _() wrappers.
989 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
991 * NEWS: Mention ARC support in GDBserver.
993 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
995 * arch/aarch32.c (aarch32_create_target_description): Release
996 unique_ptr returned from allocate_target_description.
997 * arch/aarch64.c (aarch64_create_target_description): Likewise.
998 * arch/amd64.c (amd64_create_target_description): Likewise.
999 * arch/arc.c (arc_create_target_description): Likewise.
1000 * arch/arm.c (arm_create_target_description): Likewise.
1001 * arch/i386.c (i386_create_target_description): Likewise.
1002 * arch/riscv.c (riscv_create_target_description): Update return
1003 type. Handle allocate_target_description returning a unique_ptr.
1004 (riscv_lookup_target_description): Update to handle unique_ptr.
1005 * arch/tic6x.c (tic6x_create_target_description): Release
1006 unique_ptr returned from allocate_target_description.
1007 * features/microblaze-with-stack-protect.c: Regenerate.
1008 * features/microblaze.c: Regenerate.
1009 * features/mips-dsp-linux.c: Regenerate.
1010 * features/mips-linux.c: Regenerate.
1011 * features/mips64-dsp-linux.c: Regenerate.
1012 * features/mips64-linux.c: Regenerate.
1013 * features/nds32.c: Regenerate.
1014 * features/nios2.c: Regenerate.
1015 * features/or1k.c: Regenerate.
1016 * features/rs6000/powerpc-32.c: Regenerate.
1017 * features/rs6000/powerpc-32l.c: Regenerate.
1018 * features/rs6000/powerpc-403.c: Regenerate.
1019 * features/rs6000/powerpc-403gc.c: Regenerate.
1020 * features/rs6000/powerpc-405.c: Regenerate.
1021 * features/rs6000/powerpc-505.c: Regenerate.
1022 * features/rs6000/powerpc-601.c: Regenerate.
1023 * features/rs6000/powerpc-602.c: Regenerate.
1024 * features/rs6000/powerpc-603.c: Regenerate.
1025 * features/rs6000/powerpc-604.c: Regenerate.
1026 * features/rs6000/powerpc-64.c: Regenerate.
1027 * features/rs6000/powerpc-64l.c: Regenerate.
1028 * features/rs6000/powerpc-7400.c: Regenerate.
1029 * features/rs6000/powerpc-750.c: Regenerate.
1030 * features/rs6000/powerpc-860.c: Regenerate.
1031 * features/rs6000/powerpc-altivec32.c: Regenerate.
1032 * features/rs6000/powerpc-altivec32l.c: Regenerate.
1033 * features/rs6000/powerpc-altivec64.c: Regenerate.
1034 * features/rs6000/powerpc-altivec64l.c: Regenerate.
1035 * features/rs6000/powerpc-e500.c: Regenerate.
1036 * features/rs6000/powerpc-e500l.c: Regenerate.
1037 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
1038 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
1039 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
1040 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
1041 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
1042 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
1043 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
1044 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
1045 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
1046 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
1047 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
1048 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
1049 * features/rs6000/powerpc-vsx32.c: Regenerate.
1050 * features/rs6000/powerpc-vsx32l.c: Regenerate.
1051 * features/rs6000/powerpc-vsx64.c: Regenerate.
1052 * features/rs6000/powerpc-vsx64l.c: Regenerate.
1053 * features/rs6000/rs6000.c: Regenerate.
1054 * features/rx.c: Regenerate.
1055 * features/s390-gs-linux64.c: Regenerate.
1056 * features/s390-linux32.c: Regenerate.
1057 * features/s390-linux32v1.c: Regenerate.
1058 * features/s390-linux32v2.c: Regenerate.
1059 * features/s390-linux64.c: Regenerate.
1060 * features/s390-linux64v1.c: Regenerate.
1061 * features/s390-linux64v2.c: Regenerate.
1062 * features/s390-te-linux64.c: Regenerate.
1063 * features/s390-tevx-linux64.c: Regenerate.
1064 * features/s390-vx-linux64.c: Regenerate.
1065 * features/s390x-gs-linux64.c: Regenerate.
1066 * features/s390x-linux64.c: Regenerate.
1067 * features/s390x-linux64v1.c: Regenerate.
1068 * features/s390x-linux64v2.c: Regenerate.
1069 * features/s390x-te-linux64.c: Regenerate.
1070 * features/s390x-tevx-linux64.c: Regenerate.
1071 * features/s390x-vx-linux64.c: Regenerate.
1072 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
1073 from allocate_target_description.
1074 * target-descriptions.c (allocate_target_description): Update
1076 (print_c_tdesc::visit_pre): Release unique_ptr returned from
1077 allocate_target_description.
1079 2020-10-07 Tom Tromey <tromey@adacore.com>
1081 * unittests/search-memory-selftests.c: New file.
1082 * Makefile.in (SELFTESTS_SRCS): Add
1083 unittests/search-memory-selftests.c.
1085 2020-10-07 Tom Tromey <tromey@adacore.com>
1088 * findcmd.c (_initialize_mem_search): Mention that the range is
1091 2020-10-07 Tom Tromey <tromey@adacore.com>
1093 * target.h (simple_search_memory): Don't declare.
1094 * target.c (simple_search_memory): Move to gdbsupport.
1095 (default_search_memory): Update.
1096 * remote.c (remote_target::search_memory): Update.
1098 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
1100 * Makefile.in (COMPILE): Add CXXFLAGS.
1101 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
1102 (check-headers): Add CXXFLAGS.
1104 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
1106 * arc-linux-tdep.h: New file.
1107 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
1108 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
1109 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
1110 arc_linux_gregset, arc_linux_v2_regset,
1111 arc_linux_iterate_over_regset_sections,
1112 arc_linux_core_read_description): Implement.
1113 (arc_linux_init_osabi): Set iterate_over_regset_sections.
1114 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
1115 (arc_gdbarch_features_create): Add.
1116 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
1118 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
1120 * arch/arc.h: Rename "arc_gdbarch_features" to
1121 "arc_arch_features".
1122 * arc-tdep.h: Likewise.
1123 * arc-tdep.c: Likewise.
1125 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1127 * infcmd.c (attach_command): Remove the redundant call to
1128 `clear_proceed_status`.
1130 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1132 * nat/netbsd-nat.c (write_memory, read_memory): Update.
1134 2020-10-07 Kamil Rytarowski <n54@gmx.com>
1136 * nat/netbsd-nat.c (write_memory, read_memory): Add.
1137 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
1138 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
1140 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
1142 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
1143 (_initialize_break_catch_sig): Don't allocate array.
1145 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
1147 * symtab.c (find_pc_line): Return unmapped addresses when the
1148 requested address is also unmapped.
1150 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1152 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
1155 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1157 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1158 type::is_vector instead of TYPE_VECTOR.
1160 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1162 * auto-load.c (auto_load_objfile_script_1): Don't use
1163 debugfile_holder as temporary variable when stripping drive
1166 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1168 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1169 Add TYPE_CODE_COMPLEX.
1170 (amd64_windows_return_value): Fix types returned via XMM0.
1172 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1174 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1175 AArch64/ARM maintainers.
1177 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1179 * NEWS: Mention set/show debug event-loop.
1181 2020-10-02 Tom Tromey <tromey@adacore.com>
1183 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1186 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1188 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1189 * procfs.c (procfs_inferior_created): Remove.
1190 (_initialize_procfs): Don't register procfs_inferior_created.
1192 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1194 * async-event.c (invoke_async_signal_handlers): Add debug
1196 (check_async_event_handlers): Likewise.
1197 * event-top.c (show_debug_event_loop): New function.
1198 (_initialize_event_top): Register "set debug event-loop"
1201 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1203 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1205 * infrun.c: Include gdbsupport/common-debug.h.
1206 * linux-nat.c: Likewise.
1208 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1210 * async-event.h (create_async_signal_handler): Add name
1212 (create_async_event_handler): Likewise.
1213 * async-event.c (struct async_signal_handler) <name>: New field.
1214 (struct async_event_handler) <name>: New field.
1215 (create_async_signal_handler): Assign name.
1216 (create_async_event_handler): Assign name.
1217 * event-top.c (async_init_signals): Pass name when creating
1219 * infrun.c (_initialize_infrun): Likewise.
1220 * record-btrace.c (record_btrace_push_target): Likewise.
1221 * record-full.c (record_full_open): Likewise.
1222 * remote-notif.c (remote_notif_state_allocate): Likewise.
1223 * remote.c (remote_target::open_1): Likewise.
1224 * tui/tui-win.c (tui_initialize_win): Likewise.
1226 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1228 * async-event.c (initialize_async_signal_handlers): Pass name to
1230 * event-top.c (ui_register_input_event_handler): Likewise.
1231 * linux-nat.c (linux_nat_target::async): Likewise.
1232 * run-on-main-thread.c (_initialize_run_on_main_thread):
1234 * ser-base.c (reschedule): Likewise.
1235 (ser_base_async): Likewise.
1236 * tui/tui-io.c: Likewise.
1237 * top.h (struct ui) <num>: New field.
1238 * top.c (highest_ui_num): New variable.
1239 (ui::ui): Initialize num.
1241 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1243 * observable.h <inferior_created>: Remove parameters. Update all
1245 * inferior.h (post_create_inferior): Remove target parameter.
1248 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1250 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1251 and DW_MACRO_undef_strx.
1252 (dwarf_decode_macros): Likewise
1253 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1254 which is the value of DW_AT_str_offsets_base.
1255 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1258 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1260 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1262 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1264 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1265 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1267 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1269 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1271 2020-09-30 Tom de Vries <tdevries@suse.de>
1274 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1276 2020-09-30 Tom Tromey <tromey@adacore.com>
1278 * dwarf2/read.c (handle_variant): Use constant_value.
1280 2020-09-29 Tom Tromey <tom@tromey.com>
1282 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1283 (read_file_scope, dwarf2_get_pc_bounds)
1284 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1285 (read_structure_type, handle_struct_member_die)
1286 (read_enumeration_type, read_array_type, read_set_type)
1287 (read_tag_pointer_type, read_tag_reference_type)
1288 (read_subroutine_type, read_base_type, read_subrange_type)
1289 (read_full_die_1, partial_die_info::read)
1290 (partial_die_info::read, by, new_symbol)
1291 (dwarf2_const_value_data, dwarf2_const_value_attr)
1292 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1293 (prepare_one_comp_unit): Update.
1294 * dwarf2/attribute.h (DW_UNSND): Remove.
1296 2020-09-29 Tom Tromey <tom@tromey.com>
1298 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1299 (read_subroutine_type, partial_die_info::read)
1300 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1301 (dwarf2_add_member_fn): Update.
1302 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1303 * dwarf2/attribute.c (attribute::as_boolean): New method.
1305 2020-09-29 Tom Tromey <tom@tromey.com>
1307 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1308 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1310 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1312 2020-09-29 Tom Tromey <tom@tromey.com>
1314 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1315 the attribute's form.
1317 2020-09-29 Tom Tromey <tom@tromey.com>
1319 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1320 (dwarf2_add_member_fn): Update.
1321 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1322 * dwarf2/attribute.c (attribute::defaulted): New method, from
1323 is_valid_DW_AT_defaulted.
1325 2020-09-29 Tom Tromey <tom@tromey.com>
1327 * dwarf2/read.c (dw2_get_file_names_reader)
1328 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1329 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1330 (dwarf2_symbol_mark_computed): Use as_unsigned.
1331 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1333 <form_is_section_offset>: Update comment.
1335 2020-09-29 Tom Tromey <tom@tromey.com>
1337 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1338 dwarf2_default_access_attribute. Look up attribute.
1339 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1342 2020-09-29 Tom Tromey <tom@tromey.com>
1344 * dwarf2/read.c (skip_one_die): Update.
1345 (read_full_die_1): Change how reprocessing is done.
1346 (partial_die_info::read): Update.
1347 (read_attribute_value): Remove need_reprocess parameter.
1348 (read_attribute): Likewise.
1349 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1352 2020-09-29 Tom Tromey <tom@tromey.com>
1354 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1355 (dwarf2_const_value_attr, dump_die_shallow)
1356 (dwarf2_fetch_constant_bytes): Update.
1357 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1359 <set_address>: New method.
1361 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1362 (attribute::as_string, attribute::as_address): Add assert.
1364 2020-09-29 Tom Tromey <tom@tromey.com>
1366 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1367 (read_attribute_reprocess, read_attribute_value): Update.
1368 (read_attribute): Clear requires_reprocessing.
1369 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1370 form_requires_reprocessing>: New methods.
1371 <string_init>: Clear requires_reprocessing.
1372 <set_unsigned_reprocess>: New method.
1373 <name>: Shrink by one bit.
1374 <requires_reprocessing>: New member.
1375 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1378 2020-09-29 Tom Tromey <tom@tromey.com>
1380 * dwarf2/read.c (read_attribute_value): Update.
1381 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1382 set_unsigned>: New methods.
1383 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1385 2020-09-29 Tom Tromey <tom@tromey.com>
1387 * dwarf2/read.c (get_alignment, read_array_order)
1388 (read_attribute_value, dwarf2_const_value_attr)
1389 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1390 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1394 2020-09-29 Tom Tromey <tom@tromey.com>
1396 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1397 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1399 * dwarf2/attribute.h (struct attribute) <as_signature,
1400 set_signature>: New methods.
1401 (DW_SIGNATURE): Remove.
1403 2020-09-29 Tom Tromey <tom@tromey.com>
1405 * dwarf2/read.c (read_call_site_scope)
1406 (handle_data_member_location, dwarf2_add_member_fn)
1407 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1408 (partial_die_info::read, read_attribute_value)
1409 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1410 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1411 (dwarf2_symbol_mark_computed): Update.
1412 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1415 * dwarf2/attribute.c (attribute::form_is_block): Add
1418 2020-09-29 Tom Tromey <tom@tromey.com>
1420 * dwarf2/read.c (read_cutu_die_from_dwo)
1421 (read_attribute_reprocess, read_attribute_value, read_attribute)
1422 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1423 (dwarf2_fetch_constant_bytes): Update.
1424 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1425 <set_string_noncanonical, set_string_canonical>: New methods.
1426 <string_is_canonical>: Update comment.
1427 <canonical_string_p>: Add assert.
1428 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1429 * dwarf2/attribute.c (attribute::form_is_string): New method.
1430 (attribute::string): Use it.
1432 2020-09-29 Tom Tromey <tom@tromey.com>
1434 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1435 (dump_die_shallow): Use canonical_string_p.
1436 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1439 2020-09-29 Tom Tromey <tom@tromey.com>
1441 * dwarf2/read.c (partial_die_info::read)
1442 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1443 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1444 attribute::as_string.
1446 2020-09-29 Tom Tromey <tom@tromey.com>
1448 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1450 (attribute::string): Don't use DW_STRING.
1451 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1452 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1454 2020-09-29 Tom Tromey <tom@tromey.com>
1456 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1457 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1458 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1459 * dwarf2/attribute.h (struct attribute): Rename methods.
1460 * dwarf2/attribute.c (attribute::as_address): Rename from
1462 (attribute::as_string): Rename from value_as_string.
1464 2020-09-29 Tom Tromey <tom@tromey.com>
1466 * dwarf2/read.c (partial_die_info::read) <case
1467 DW_AT_linkage_name>: Use value_as_string.
1468 (dwarf2_string_attr): Use value_as_string.
1469 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1471 * dwarf2/attribute.c (attribute::value_as_string): New method.
1473 2020-09-29 Pedro Alves <pedro@palves.net>
1475 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1476 defined before using '#pragma GCC diagnostic' instead of checking
1479 2020-09-28 Tom Tromey <tom@tromey.com>
1481 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1482 (handle_signal_stop): Update.
1483 * procfs.c (procfs_target::insert_watchpoint): Update.
1484 * target.h (target_have_steppable_watchpoint): Now a function.
1486 2020-09-28 Tom Tromey <tom@tromey.com>
1488 * infrun.c (set_schedlock_func): Update.
1489 * target.h (target_can_lock_scheduler): Now a function.
1491 2020-09-28 Tom Tromey <tom@tromey.com>
1493 * inferior.h (class inferior) <has_execution>: Update.
1494 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1495 * valops.c (find_function_in_inferior)
1496 (value_allocate_space_in_inferior): Update.
1497 * top.c (kill_or_detach): Update.
1498 * target.c (target_preopen, set_target_permissions): Update.
1499 (target_has_execution_current): Remove.
1500 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1502 * solib.c (update_solib_list, reload_shared_libraries): Update.
1503 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1504 * solib-dsbt.c (enable_break): Update.
1505 * score-tdep.c (score7_fetch_inst): Update.
1506 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1508 * remote.c (remote_target::start_remote)
1509 (remote_target::remote_check_symbols, remote_target::open_1)
1510 (remote_target::remote_detach_1, remote_target::verify_memory)
1511 (remote_target::xfer_partial, remote_target::read_description)
1512 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1513 * record-full.c (record_full_open_1): Update.
1514 * record-btrace.c (record_btrace_target_open): Update.
1515 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1516 (value_nsstring): Update.
1517 * linux-thread-db.c (add_thread_db_info)
1518 (thread_db_find_new_threads_silently, check_thread_db_callback)
1519 (try_thread_db_load_1, record_thread): Update.
1520 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1522 * linux-fork.c (checkpoint_command): Update.
1523 * infrun.c (set_non_stop, set_observer_mode)
1524 (check_multi_target_resumption, for_each_just_stopped_thread)
1525 (maybe_remove_breakpoints, normal_stop)
1526 (class infcall_suspend_state): Update.
1527 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1528 (info_program_command, attach_command): Update.
1529 * infcall.c (call_function_by_hand_dummy): Update.
1530 * inf-loop.c (inferior_event_handler): Update.
1531 * gcore.c (gcore_command, derive_heap_segment): Update.
1532 * exec.c (exec_file_command): Update.
1533 * eval.c (evaluate_subexp): Update.
1534 * compile/compile.c (compile_to_object): Update.
1535 * cli/cli-dump.c (restore_command): Update.
1536 * breakpoint.c (update_watchpoint)
1537 (update_inserted_breakpoint_locations)
1538 (insert_breakpoint_locations, get_bpstat_thread): Update.
1539 * target.h (target_has_execution): Remove macro.
1540 (target_has_execution_current): Don't declare.
1541 (target_has_execution): Rename from target_has_execution_1. Add
1544 2020-09-28 Tom Tromey <tom@tromey.com>
1546 * mi/mi-main.c (exec_reverse_continue)
1547 (mi_cmd_list_target_features): Update.
1548 * infrun.c (set_exec_direction_func): Update.
1549 * target.c (default_execution_direction): Update.
1550 * reverse.c (exec_reverse_once): Update.
1551 * target.h (target_can_execute_reverse): Now a function.
1553 2020-09-28 Tom Tromey <tom@tromey.com>
1555 * tui/tui-regs.c (tui_get_register)
1556 (tui_data_window::show_registers): Update.
1557 * thread.c (scoped_restore_current_thread::restore)
1558 (scoped_restore_current_thread::scoped_restore_current_thread):
1560 * regcache-dump.c (regcache_print): Update.
1561 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1563 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1564 * mep-tdep.c (current_me_module, current_options): Update.
1565 * linux-thread-db.c (thread_db_load): Update.
1566 * infcmd.c (registers_info, info_vector_command)
1567 (info_float_command): Update.
1568 * ia64-tdep.c (ia64_frame_prev_register)
1569 (ia64_sigtramp_frame_prev_register): Update.
1570 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1571 * gcore.c (derive_stack_segment): Update.
1572 * frame.c (get_current_frame, has_stack_frames): Update.
1573 * findvar.c (language_defn::read_var_value): Update.
1574 * arm-tdep.c (arm_pc_is_thumb): Update.
1575 * target.c (target_has_registers): Rename from
1576 target_has_registers_1.
1577 * target.h (target_has_registers): Remove macro.
1578 (target_has_registers): Rename from target_has_registers_1.
1580 2020-09-28 Tom Tromey <tom@tromey.com>
1582 * windows-tdep.c (tlb_make_value): Update.
1583 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1584 * thread.c (scoped_restore_current_thread::restore)
1585 (scoped_restore_current_thread::scoped_restore_current_thread)
1586 (thread_command): Update.
1587 * stack.c (backtrace_command_1, frame_apply_level_command)
1588 (frame_apply_all_command, frame_apply_command): Update.
1589 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1591 * gcore.c (derive_stack_segment): Update.
1592 * frame.c (get_current_frame, has_stack_frames): Update.
1593 * auxv.c (info_auxv_command): Update.
1594 * ada-tasks.c (ada_build_task_list): Update.
1595 * target.c (target_has_stack): Rename from target_has_stack_1.
1596 * target.h (target_has_stack): Remove macro.
1597 (target_has_stack): Rename from target_has_stack_1.
1599 2020-09-28 Tom Tromey <tom@tromey.com>
1601 * target.c (target_has_memory): Rename from target_has_memory_1.
1602 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1603 * thread.c (scoped_restore_current_thread::restore)
1604 (scoped_restore_current_thread::scoped_restore_current_thread):
1606 * frame.c (get_current_frame, has_stack_frames): Update.
1607 * target.h (target_has_memory): Remove macro.
1608 (target_has_memory): Rename from target_has_memory_1.
1610 2020-09-28 Tom Tromey <tom@tromey.com>
1612 * target.c (target_has_all_memory_1): Remove.
1613 * target.h (target_has_all_memory): Remove define.
1614 (target_has_all_memory_1): Don't declare.
1616 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1618 * ser-base.c: Adjust comments formatting.
1620 2020-09-27 Tom Tromey <tom@tromey.com>
1623 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1625 2020-09-27 Tom Tromey <tom@tromey.com>
1628 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1630 2020-09-27 Tom Tromey <tom@tromey.com>
1632 * unittests/tui-selftests.c: Update.
1633 * tui/tui-winsource.h (struct tui_source_window_base)
1634 <extra_margin, show_line_number, refresh_pad>: New methods.
1635 <m_max_length, m_pad>: New members.
1636 (tui_copy_source_line): Update.
1637 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1638 first_col, line_width, ndigits parameters. Add length.
1639 (tui_source_window_base::show_source_line): Write to pad. Line
1641 (tui_source_window_base::refresh_pad): New method.
1642 (tui_source_window_base::show_source_content): Write to pad. Call
1644 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1646 (tui_source_window_base::update_exec_info): Call
1648 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1650 <m_digits>: New member.
1651 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1653 (tui_source_window::show_line_number): New method.
1654 * tui/tui-io.h (tui_puts): Fix comment.
1655 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1658 2020-09-27 Tom Tromey <tom@tromey.com>
1660 * tui/tui-winsource.c
1661 (tui_source_window_base::set_is_exec_point_at): Don't call
1664 2020-09-27 Tom Tromey <tom@tromey.com>
1666 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1669 <cursor_x, cursor_y>: Remove.
1670 <m_inner_window>: New member.
1671 (tui_py_window::rerender): Create inner window.
1672 (tui_py_window::output): Write to inner window.
1674 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1677 * cli/cli-script.c (execute_control_commands): don't set
1678 instream to nullptr here as this breaks the from_tty argument
1679 to gdb.execute in Python.
1680 (execute_user_command): set instream to nullptr here instead.
1682 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1684 * infrun.h (infrun_debug_printf): Fix formatting.
1685 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1687 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1689 * compile/compile-object-load.h (struct munmap_list): Add
1690 explicitly-defined move constructor.
1692 2020-09-24 Tom Tromey <tromey@adacore.com>
1695 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1697 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1698 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1699 (tui_prev_win): Rewrite.
1701 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1703 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1704 in WOW64 processes as SIGINT.
1705 * nat/windows-nat.h: Make wow64_process a shared variable.
1706 * windows-nat.c: Remove static wow64_process variable.
1708 2020-09-23 Tom Tromey <tom@tromey.com>
1711 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1712 offset and bit size.
1713 * printcmd.c (print_scalar_formatted): Handle zero-length
1715 (print_scalar_formatted): Use bit_size_differs_p.
1716 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1718 (union type_specific): <int_stuff>: New member.
1719 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1721 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1722 TYPE_SPECIFIC_FIELD.
1723 (recursive_dump_type, copy_type_recursive): Update.
1724 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1725 DW_AT_data_bit_offset.
1727 2020-09-23 Tom Tromey <tom@tromey.com>
1729 * utils.h (class gdb_argv): Add move operators.
1730 <append>: New methods.
1731 * compile/compile.c (build_argc_argv): Remove.
1732 (compile_args_argc): Remove.
1733 (compile_args_argv): Change type.
1734 (set_compile_args): Simplify.
1735 (append_args): Remove.
1736 (filter_args): Remove argcp parameter.
1737 (get_args): Return gdb_argv. Simplify.
1738 (compile_to_object): Update.
1740 2020-09-23 Tom Tromey <tom@tromey.com>
1742 * compile/compile-object-run.c (do_module_cleanup)
1743 <~do_module_cleanup> :Remove.
1744 (do_module_cleanup): Update.
1745 * compile/compile-object-load.h (struct munmap_list): Add move
1746 assignment operator.
1747 <source_file>: Now a std::string.
1748 <munmap_list>: Rename. No longer a pointer.
1749 * compile/compile-object-load.c (struct setup_sections_data): Add
1751 <setup_one_section>: Declare.
1752 <munmap_list>: Move earlier.
1753 <m_bfd>: New member.
1754 <m_last_size, m_last_section_first, m_last_prot,
1755 m_last_max_alignment>: Rename, add initializers where needed.
1756 (setup_sections_data::setup_one_section): Rename from
1757 setup_sections. Update.
1758 (compile_object_load): Update. Don't use bfd_map_over_sections.
1760 2020-09-23 Tom Tromey <tom@tromey.com>
1762 * compile/compile-object-run.c (struct do_module_cleanup): Add
1763 parameters to constructor. Update destructor.
1764 <source_file, scope, scope_data, out_value_type, out_value_addr,
1765 munmap_list_head, objfile_name_string>: Remove.
1766 <module>: New member.
1767 (do_module_cleanup): Update.
1768 (compile_object_run): Update.
1770 2020-09-23 Tom Tromey <tom@tromey.com>
1772 * compile/compile.c (eval_compile_command): Update.
1773 * compile/compile-object-run.h (compile_object_run): Take a
1775 * compile/compile-object-run.c (compile_object_run): Take a
1777 * compile/compile-object-load.h (struct compile_module): Add
1778 constructor, destructor.
1779 (compile_module_up): New typedef.
1780 (compile_object_load): Return compile_object_up.
1781 * compile/compile-object-load.c (compile_object_load): Return
1784 2020-09-23 Tom Tromey <tom@tromey.com>
1786 * compile/compile-object-run.c (struct do_module_cleanup): Add
1787 constructor, destructor.
1788 <objfile_name_string>: Don't use struct hack.
1789 (do_module_cleanup): Use delete.
1790 (compile_object_run): Use new.
1792 2020-09-23 Tom Tromey <tom@tromey.com>
1794 * compile/compile-cplus-types.c
1795 (compile_cplus_convert_struct_or_union): Use std::vector.
1796 (compile_cplus_convert_func): Likewise.
1797 * compile/compile-c-types.c (convert_func): Use std::vector.
1799 2020-09-21 Tom Tromey <tromey@adacore.com>
1801 * sparc-tdep.c (sparc32_skip_prologue): Use
1802 skip_prologue_using_sal.
1804 2020-09-19 Tom Tromey <tom@tromey.com>
1806 * symfile.c (add_section_size_callback): Remove.
1807 (load_one_section): Rename from load_section_callback. Change
1809 (generic_load): Use foreach.
1811 2020-09-19 Tom Tromey <tom@tromey.com>
1813 * exec.c (add_to_section_table): Remove.
1814 (build_section_table): Use foreach.
1816 2020-09-19 Tom Tromey <tom@tromey.com>
1818 * elfread.c (elf_locate_sections): Change parameters.
1819 (elf_symfile_read): Use foreach.
1821 2020-09-19 Tom Tromey <tom@tromey.com>
1823 * cli/cli-dump.c (struct callback_data): Remove.
1824 (restore_one_section): Rename from restore_section_callback.
1826 (restore_binary_file): Change parameters.
1827 (restore_command): Use foreach.
1829 2020-09-19 Tom Tromey <tom@tromey.com>
1831 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1832 (gcore_copy_callback): Likewise.
1833 (gcore_memory_sections): Use foreach.
1835 2020-09-19 Tom Tromey <tom@tromey.com>
1837 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1838 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1840 (generic_elf_osabi_sniffer): Use foreach.
1841 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1842 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1844 2020-09-19 Tom Tromey <tom@tromey.com>
1846 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1847 (dwarf2_get_dwz_file): Use foreach.
1848 (dwarf2_locate_dwo_sections): Change parameters.
1849 (open_and_init_dwo_file): Use foreach.
1850 (dwarf2_locate_common_dwp_sections): Change parameters.
1851 (open_and_init_dwp_file): Use foreach.
1853 2020-09-19 Tom Tromey <tom@tromey.com>
1855 * symfile.h: (find_lowest_section): Don't declare.
1856 * symfile.c (find_lowest_section): Now static. Change
1858 (struct place_section_arg): Remove.
1859 (place_section): Change parameters.
1860 (addr_info_make_relative): Use foreach.
1861 (symfile_dummy_outputs): Remove.
1862 (default_symfile_relocate): Use foreach.
1864 2020-09-19 Tom Tromey <tom@tromey.com>
1866 * objfiles.c (add_to_objfile_sections): Rename from
1867 add_to_objfile_sections_full.
1868 (add_to_objfile_sections): Remove.
1869 (build_objfile_section_table): Use foreach.
1871 2020-09-19 Tom Tromey <tom@tromey.com>
1873 * stap-probe.c (get_stap_base_address_1): Remove.
1874 (get_stap_base_address): Use foreach.
1876 2020-09-19 Tom Tromey <tom@tromey.com>
1878 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1880 (gdb_bfd_close_or_warn): Use foreach.
1882 2020-09-19 Tom Tromey <tom@tromey.com>
1884 * corelow.c (add_to_thread_list): Change parameters.
1885 (core_target_open): Use foreach.
1887 2020-09-19 Tom Tromey <tom@tromey.com>
1889 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1892 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1897 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * eval.c: Remove 'f-lang.h' include.
1900 (value_f90_subarray): Moved to f-lang.c.
1901 (eval_call): Renamed to...
1902 (evaluate_subexp_do_call): ...this, is no longer static, header
1903 comment moved into header file.
1904 (evaluate_funcall): Update call to eval_call.
1905 (skip_undetermined_arglist): Moved to f-lang.c.
1906 (fortran_value_subarray): Likewise.
1907 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1908 moved to evaluate_subexp_f.
1909 (calc_f77_array_dims): Moved to f-lang.c
1910 * expprint.c (print_subexp_funcall): New function.
1911 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1912 moved to print_subexp_f, OP_FUNCALL uses new function.
1913 (dump_subexp_body_funcall): New function.
1914 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1915 moved to dump_subexp_f, OP_FUNCALL uses new function.
1916 * expression.h (evaluate_subexp_do_call): Declare.
1917 * f-lang.c (value_f90_subarray): Moved from eval.c.
1918 (skip_undetermined_arglist): Likewise.
1919 (calc_f77_array_dims): Likewise.
1920 (fortran_value_subarray): Likewise.
1921 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1922 (operator_length_f): Likewise.
1923 (print_subexp_f): Likewise.
1924 (dump_subexp_body_f): Likewise.
1925 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1926 declaration of this operation to here.
1927 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1928 support moved to operator_length_f.
1929 * parser-defs.h (dump_subexp_body_funcall): Declare.
1930 (print_subexp_funcall): Declare.
1931 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1932 fortran-operator.def.
1934 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1936 * eval.c (fortran_value_subarray): New function, content is taken
1938 (evaluate_subexp_standard): ...here, in two places. Now arrays
1939 and strings both call the new function.
1940 (calc_f77_array_dims): Add header comment, handle strings.
1942 2020-09-18 Victor Collod <vcollod@nvidia.com>
1945 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1946 (i386_analyze_prologue): Call i386_skip_endbr.
1948 2020-09-18 Tom Tromey <tromey@adacore.com>
1950 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1951 (windows_nat_target::wait): Update.
1952 * target/wait.h (enum target_wait_flag): New. Use
1953 DEF_ENUM_FLAGS_TYPE.
1954 * target/target.h (target_wait): Change type of options.
1955 * target.h (target_options_to_string, default_target_wait):
1957 (struct target_ops) <wait>: Change type of options.
1958 * target.c (target_wait, default_target_wait, do_option): Change
1960 (target_options_to_string): Likewise.
1961 * target-delegates.c: Rebuild.
1962 * target-debug.h (target_debug_print_target_wait_flags): Rename
1963 from target_debug_print_options.
1964 * sol-thread.c (class sol_thread_target) <wait>: Update.
1965 (sol_thread_target::wait): Update.
1966 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1967 (rs6000_nat_target::wait): Update.
1968 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1970 (remote_target::wait_ns, remote_target::wait_as): Change type of
1972 (remote_target::wait): Update.
1973 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1974 (gdbsim_target::wait): Update.
1975 * record-full.c (class record_full_base_target) <wait>: Update.
1976 (record_full_wait_1): Change type of "options".
1977 (record_full_base_target::wait): Update.
1978 * record-btrace.c (class record_btrace_target) <wait>: Update.
1979 (record_btrace_target::wait): Update.
1980 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1982 (ravenscar_thread_target::wait): Update.
1983 * procfs.c (class procfs_target) <wait>: Update.
1984 (procfs_target::wait): Update.
1985 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1986 * obsd-nat.c (obsd_nat_target::wait): Update.
1987 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1988 (nto_procfs_target::wait): Update.
1989 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1990 * nbsd-nat.c (nbsd_wait): Change type of "options".
1991 (nbsd_nat_target::wait): Update.
1992 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1993 (thread_db_target::wait): Update.
1994 * linux-nat.h (class linux_nat_target) <wait>: Update.
1995 * linux-nat.c (linux_nat_target::wait): Update.
1996 (linux_nat_wait_1): Update.
1997 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1999 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
2000 * inf-ptrace.c (inf_ptrace_target::wait): Update.
2001 * go32-nat.c (struct go32_nat_target) <wait>: Update.
2002 (go32_nat_target::wait): Update.
2003 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
2004 * gnu-nat.c (gnu_nat_target::wait): Update.
2005 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
2006 * fbsd-nat.c (fbsd_nat_target::wait): Update.
2007 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
2008 * darwin-nat.c (darwin_nat_target::wait): Update.
2009 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
2010 (bsd_uthread_target::wait): Update.
2011 * aix-thread.c (class aix_thread_target) <wait>: Update.
2012 (aix_thread_target::wait): Update.
2014 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * compile/compile-object-run.c (create_copied_type_recursive): New
2018 (compile_object_run): Use new function.
2020 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
2022 * NEWS: Mention x86_64 Cygwin core file support.
2024 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2026 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
2027 (core_process_module_section): Handle NOTE_INFO_MODULE64.
2029 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2031 * windows-tdep.h: Add prototypes.
2032 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
2033 (i386_windows_core_pid_to_str): Move and rename ...
2034 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
2035 (windows_core_pid_to_str): ... and here.
2036 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
2038 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2039 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
2040 (amd64_windows_init_abi_common): ... and register.
2042 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
2044 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
2045 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
2047 2020-09-18 Pedro Alves <pedro@palves.net>
2050 * thread.c (thread_find_command): Switch inferior before calling
2053 2020-09-17 Tom Tromey <tromey@adacore.com>
2055 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
2056 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
2057 (tdesc_arch_data_up): New typedef.
2058 (tdesc_use_registers, tdesc_data_alloc): Update.
2059 (tdesc_data_cleanup): Don't declare.
2060 * target-descriptions.c (tdesc_data_alloc): Return a
2062 (tdesc_arch_data_deleter::operator()): Rename from
2063 tdesc_data_cleanup. Change argument type.
2064 (tdesc_use_registers): Change early_data to an rvalue reference.
2065 (tdesc_use_registers): Don't use delete.
2066 * sparc-tdep.c (sparc32_gdbarch_init): Update.
2067 * s390-tdep.c (s390_gdbarch_init): Update.
2068 * rx-tdep.c (rx_gdbarch_init): Update.
2069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2070 * riscv-tdep.c (riscv_gdbarch_init): Update.
2071 * or1k-tdep.c (or1k_gdbarch_init): Update.
2072 * nios2-tdep.c (nios2_gdbarch_init): Update.
2073 * nds32-tdep.c (nds32_gdbarch_init): Update.
2074 * mips-tdep.c (mips_gdbarch_init): Update.
2075 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
2076 * m68k-tdep.c (m68k_gdbarch_init): Update.
2077 * i386-tdep.c (i386_gdbarch_init): Update.
2078 * arm-tdep.c (arm_gdbarch_init): Update.
2079 * arc-tdep.c (arc_tdesc_init): Update.
2080 (arc_gdbarch_init): Update.
2081 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
2083 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
2085 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
2086 for WOW64 processes.
2088 2020-09-17 Tom Tromey <tom@tromey.com>
2090 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
2092 2020-09-17 Tom Tromey <tom@tromey.com>
2094 * value.c (preserve_values): Update.
2095 * python/py-type.c (save_objfile_types): Update.
2096 * guile/scm-type.c (save_objfile_types): Update.
2097 * gdbtypes.h (create_copied_types_hash): Return htab_up.
2098 * gdbtypes.c (create_copied_types_hash): Return htab_up.
2099 * compile/compile-object-run.c (compile_object_run): Update.
2101 2020-09-17 Tom Tromey <tom@tromey.com>
2103 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
2105 <m_table>: Now htab_up.
2106 * typeprint.c (typedef_hash_table::recursively_update)
2107 (typedef_hash_table::add_template_parameters)
2108 (typedef_hash_table::typedef_hash_table): Update.
2109 (typedef_hash_table::~typedef_hash_table): Remove.
2110 (typedef_hash_table::typedef_hash_table)
2111 (typedef_hash_table::find_global_typedef)
2112 (typedef_hash_table::find_typedef): Update.
2114 2020-09-17 Tom Tromey <tom@tromey.com>
2116 * target-descriptions.c (tdesc_use_registers): Use htab_up.
2118 2020-09-17 Tom Tromey <tom@tromey.com>
2120 * linespec.c (class decode_compound_collector)
2121 <~decode_compound_collector>: Remove.
2122 <m_unique_syms>: Now htab_up.
2123 (decode_compound_collector::operator ()): Update.
2124 (class symtab_collector) <~symtab_collector>: Remove.
2125 <m_symtab_table>: Now htab_up.
2126 (symtab_collector::operator ()): Update.
2128 2020-09-17 Tom Tromey <tom@tromey.com>
2130 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
2131 (filename_seen_cache::clear): Update.
2132 (~filename_seen_cache): Remove.
2133 (filename_seen_cache::seen): Update.
2134 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
2136 <~filename_seen_cache>: Remove.
2139 2020-09-17 Tom Tromey <tom@tromey.com>
2141 * completer.c (completion_tracker::discard_completions)
2142 (completion_tracker::~completion_tracker)
2143 (completion_tracker::maybe_add_completion)
2144 (completion_tracker::remove_completion)
2145 (completion_tracker::recompute_lowest_common_denominator)
2146 (completion_tracker::build_completion_result): Update.
2147 * completer.h (class completion_tracker) <have_completions>:
2149 <m_entries_hash>: Now htab_up.
2151 2020-09-17 Tom Tromey <tom@tromey.com>
2153 * breakpoint.c (ambiguous_names_p): Use htab_up.
2155 2020-09-17 Tom Tromey <tom@tromey.com>
2157 * auto-load.c (struct auto_load_pspace_info)
2158 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2159 <loaded_script_files, loaded_script_texts>: Change type to
2161 (~auto_load_pspace_info) Remove.
2162 (init_loaded_scripts_info, maybe_add_script_file)
2163 (maybe_add_script_text, auto_load_info_scripts): Update.
2165 2020-09-17 Tom Tromey <tromey@adacore.com>
2167 * c-exp.y (name_obstack): Now static.
2169 2020-09-17 Chungyi Chi <demonic@csie.io>
2171 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2173 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2175 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2176 (add_solib_catchpoint): Likewise.
2177 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2179 (add_solib_catchpoint): Change int parameter/variable to bool.
2180 (catch_load_or_unload): Likewise.
2181 (init_catchpoint): Likewise.
2182 (create_fork_vfork_event_catchpoint): Likewise.
2183 (catch_fork_command_1): Likewise.
2184 (catch_exec_command_1): Likewise.
2186 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2188 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2189 Change instance_flags to m_instance_flags.
2191 2020-09-16 Tom Tromey <tromey@adacore.com>
2194 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2196 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2198 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2200 (fbsd_nat_target::insert_exec_catchpoint)
2201 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2202 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2203 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2205 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2207 * configure.ac: Remove check for kinfo_getvmmap().
2208 * configure, config.in: Regenerate.
2209 * fbsd-nat.c (fbsd_read_mapping): Remove
2210 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2211 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2212 kinfo_get_vmmap() are always present.
2214 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2216 * fbsd-nat.c: Always include support for
2217 TARGET_OBJECT_SIGNAL_INFO.
2219 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2221 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2222 sysctl and remove procfs fallback.
2224 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2226 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2227 * fbsd-nat.h: Likewise.
2229 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2234 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2236 * ada-lang.c (ada_language_data): Delete.
2237 (ada_language): Remove references to ada_language_data.
2238 * c-lang.c (c_language_data): Delete.
2239 (c_language): Remove references to c_language_data.
2240 (cplus_language_data): Delete.
2241 (cplus_language): Remove references to cplus_language_data.
2242 (asm_language_data): Delete.
2243 (asm_language): Remove references to asm_language_data.
2244 (minimal_language_data): Delete.
2245 (minimal_language): Remove references to minimal_language_data.
2246 * d-lang.c (d_language_data): Delete.
2247 (d_language): Remove references to d_language_data.
2248 * f-lang.c (f_language_data): Delete.
2249 (f_language): Remove references to f_language_data.
2250 * go-lang.c (go_language_data): Delete.
2251 (go_language): Remove references to go_language_data.
2252 * language.c (unknown_language_data): Delete.
2253 (unknown_language): Remove references to unknown_language_data.
2254 (auto_language_data): Delete.
2255 (auto_language): Remove references to auto_language_data.
2256 * language.h (language_data): Delete struct.
2257 (language_defn): No longer inherit from language_data.
2258 * m2-lang.c (m2_language_data): Delete.
2259 (m2_language): Remove references to m2_language_data.
2260 * objc-lang.c (objc_language_data): Delete.
2261 (objc_language): Remove references to objc_language_data.
2262 * opencl-lang.c (opencl_language_data): Delete.
2263 (opencl_language): Remove references to opencl_language_data.
2264 * p-lang.c (pascal_language_data): Delete.
2265 (pascal_language): Remove references to pascal_language_data.
2266 * rust-lang.c (rust_language_data): Delete.
2267 (rust_language): Remove references to rust_language_data.
2269 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2271 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2273 (ada_language::opcode_print_table): New member function.
2274 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2275 (c_language::opcode_print_table): New member function.
2276 (cplus_language_data): Remove la_op_print_tab initializer.
2277 (cplus_language::opcode_print_table): New member function.
2278 (asm_language_data): Remove la_op_print_tab initializer.
2279 (asm_language::opcode_print_table): New member function.
2280 (minimal_language_data): Remove la_op_print_tab initializer.
2281 (minimal_language::opcode_print_table): New member function.
2282 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2283 (d_language::opcode_print_table): New member function.
2284 * expprint.c (print_subexp_standard): Update call to
2286 (op_string): Likewise.
2287 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2288 (f_language::opcode_print_table): New member function.
2289 * go-lang.c (go_language_data): Remove la_op_print_tab
2291 (go_language::opcode_print_table): New member function.
2292 * language.c (unknown_language_data): Remove la_op_print_tab
2294 (unknown_language::opcode_print_table): New member function.
2295 (auto_language_data): Remove la_op_print_tab initializer.
2296 (auto_language::opcode_print_table): New member function.
2297 * language.h (language_data): Remove la_op_print_tab field.
2298 (language_defn::opcode_print_table): Declare new member function.
2299 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2301 (m2_language::opcode_print_table): New member function.
2302 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2304 (objc_language::opcode_print_table): New member function.
2305 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2307 (opencl_language::opcode_print_table): New member function.
2308 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2310 (pascal_language::opcode_print_table): New member function.
2311 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2313 (rust_language::opcode_print_table): New member function.
2315 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2317 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2318 (ada_language::expression_ops): New member function.
2319 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2320 (c_language::expression_ops): New member function.
2321 (cplus_language_data): Remove la_exp_desc initializer.
2322 (cplus_language::expression_ops): New member function.
2323 (asm_language_data): Remove la_exp_desc initializer.
2324 (asm_language::expression_ops): New member function.
2325 (minimal_language_data): Remove la_exp_desc initializer.
2326 (minimal_language::expression_ops): New member function.
2327 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2328 (d_language::expression_ops): New member function.
2329 * eval.c (evaluate_subexp): Update call to expression_ops.
2330 * expprint.c (print_subexp): Likewise.
2331 (op_name): Likewise.
2332 (dump_subexp_body): Likewise.
2333 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2334 (f_language::expression_ops): New member function.
2335 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2336 (go_language::expression_ops): New member function.
2337 * language.c (language_defn::expression_ops): New function.
2338 (unknown_language_data): Remove la_exp_desc initializer.
2339 (auto_language_data): Likewise.
2340 * language.h (language_data): Remove la_exp_desc field.
2341 (language_defn::expression_ops): Declare new member function.
2342 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2343 (m2_language::expression_ops): New member function.
2344 * objc-lang.c (objc_language_data): Remove la_exp_desc
2346 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2348 (opencl_language::expression_ops): New member function.
2349 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2350 * parse.c (operator_length): Update call to expression_ops.
2351 (exp_iterate): Likewise.
2352 * rust-lang.c (rust_language_data): Remove la_exp_desc
2354 (ruse_language::expression_ops): New member function.
2356 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2358 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2360 (ada_language::varobj_ops): New member function.
2361 * c-lang.c (c_language_data): Remove la_varobj_ops
2363 (cplus_language_data): Likewise.
2364 (cplus_language::varobj_ops): New member function.
2365 (asm_language_data): Remove la_varobj_ops initializer.
2366 (minimal_language_data): Likewise.
2367 * d-lang.c (d_language_data): Likewise.
2368 * f-lang.c (f_language_data): Likewise.
2369 * go-lang.c (go_language_data): Likewise.
2370 * language.c (language_defn::varobj_ops): New function.
2371 (unknown_language_data): Remove la_varobj_ops
2373 (auto_language_data): Likewise.
2374 * language.h (language_data): Remove la_varobj_ops field.
2375 (language_defn::varobj_ops): Declare new member function.
2376 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2377 * objc-lang.c (objc_language_data): Likewise.
2378 * opencl-lang.c (opencl_language_data): Likewise.
2379 * p-lang.c (pascal_language_data): Likewise.
2380 * rust-lang.c (rust_language_data): Likewise.
2381 * varobj.c (varobj_create): Update call to varobj_ops.
2382 * varobj.h (default_varobj_ops): Delete define.
2384 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2386 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2388 * c-lang.c (c_language_data): Likewise.
2389 (c_language::macro_expansion): New member function.
2390 (cplus_language_data): Likewise.
2391 (cplus_language::macro_expansion): New member function.
2392 (asm_language_data): Likewise.
2393 (asm_language::macro_expansion): New member function.
2394 (minimal_language_data): Likewise.
2395 (minimal_language::macro_expansion): New member function.
2396 * d-lang.c (d_language_data): Remove la_macro_expansion
2398 * f-lang.c (f_language_data): Likewise.
2399 * go-lang.c (go_language_data): Likewise.
2400 * language.c (unknown_language_data): Likewise.
2401 (auto_language_data): Likewise.
2402 * language.h (language_data): Remove la_macro_expansion field.
2403 (language_defn::macro_expansion): New member function.
2404 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2406 * objc-lang.c (objc_language_data): Likewise.
2407 (objc_language::macro_expansion): New member function.
2408 * opencl-lang.c (opencl_language_data): Likewise.
2409 (opencl_language::macro_expansion): New member function.
2410 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2412 * rust-lang.c (rust_language_data): Likewise.
2413 * symtab.c (default_collect_symbol_completion_matches_break_on):
2414 Update call to macro_expansion.
2416 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2418 * ada-lang.c (ada_language_data): Remove la_array_ordering
2420 * c-lang.c (c_language_data): Likewise.
2421 (cplus_language_data): Likewise.
2422 (asm_language_data): Likewise.
2423 (minimal_language_data): Likewise.
2424 * d-lang.c (d_language_data): Likewise.
2425 * dwarf2/read.c (read_array_order): Update for call to
2427 * f-lang.c (f_language_data): Remove la_array_ordering
2429 (f_language::array_ordering): New member function.
2430 * go-lang.c (go_language_data): Remove la_array_ordering
2432 * language.c (unknown_language_data): Likewise.
2433 (auto_language_data): Likewise.
2434 * language.h (language_data): Delete la_array_ordering field.
2435 (language_defn::array_ordering): New member function.
2436 * m2-lang.c (m2_language_data): Remove la_array_ordering
2438 * objc-lang.c (objc_language_data): Likewise.
2439 * opencl-lang.c (opencl_language_data): Likewise.
2440 * p-lang.c (pascal_language_data): Likewise.
2441 * rust-lang.c (rust_language_data): Likewise.
2443 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2445 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2447 * c-lang.c (c_language_data): Likewise.
2448 (cplus_language_data): Likewise.
2449 (asm_language_data): Likewise.
2450 (minimal_language_data): Likewise.
2451 * d-lang.c (d_language_data): Likewise.
2452 * f-lang.c (f_language_data): Likewise.
2453 (f_language::case_sensitivity): New member function.
2454 * go-lang.c (go_language_data): Remove la_case_sensitivity
2456 * language.c (enum case_mode): Moved here from language.h.
2457 (case_mode): Make static.
2458 (show_case_command): Update for case_sensitivity being a method.
2459 (set_case_command): Likewise.
2460 (set_range_case): Likewise.
2461 (unknown_language_data): Remove la_case_sensitivity initializer.
2462 (auto_language_data): Likewise.
2463 * language.h (case_mode): Delete, move enum declaration to
2465 (language_data): Delete la_case_sensitivity field.
2466 (language_defn::case_sensitivity): New member function.
2467 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2469 * objc-lang.c (objc_language_data): Likewise.
2470 * opencl-lang.c (opencl_language_data): Likewise.
2471 * p-lang.c (pascal_language_data): Likewise.
2472 * rust-lang.c (rust_language_data): Likewise.
2474 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2476 * ada-lang.c (ada_language_data): Remove la_range_check
2478 * c-lang.c (c_language_data): Likewise.
2479 (cplus_language_data): Likewise.
2480 (asm_language_data): Likewise.
2481 (minimal_language_data): Likewise.
2482 * d-lang.c (d_language_data): Likewise.
2483 * f-lang.c (f_language_data): Likewise.
2484 (f_language::range_checking_on_by_default): New member function.
2485 * go-lang.c (go_language_data): Remove la_range_check initializer.
2486 * language.c (enum range_mode): Moved here from language.h.
2487 (range_mode): Made static.
2488 (show_range_command): Update to use
2489 range_checking_on_by_default.
2490 (set_range_command): Likewise.
2491 (set_range_case): Likewise.
2492 (unknown_language_data): Remove la_range_check initializer.
2493 (auto_language_data): Likewise.
2494 * language.h (range_mode): Delete. Enum definition moved to
2496 (language_data): Remove la_range_check field.
2497 (language_defn::range_checking_on_by_default): New member
2499 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2500 (m2_language::range_checking_on_by_default): New member function.
2501 * objc-lang.c (objc_language_data): Remove la_range_check
2503 * opencl-lang.c (opencl_language_data): Likewise.
2504 * p-lang.c (pascal_language_data): Likewise.
2505 (pascal_language::range_checking_on_by_default): New member
2507 * rust-lang.c (rust_language_data): Remove la_range_check
2509 (rust_language::range_checking_on_by_default): New member
2512 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2514 * dwarf2/read.c (dwarf2_physname): Remove special case for
2516 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2519 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2521 * ada-lang.c (ada_language_data): Remove
2522 la_store_sym_names_in_linkage_form_p initializer.
2523 (ada_language::store_sym_names_in_linkage_form_p): New member
2525 * c-lang.c (c_language_data): Remove
2526 la_store_sym_names_in_linkage_form_p initializer.
2527 (c_language::store_sym_names_in_linkage_form_p): New member
2529 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2531 (asm_language_data): Likewise.
2532 (asm_language::store_sym_names_in_linkage_form_p): New member
2534 (minimal_language_data): Remove
2535 la_store_sym_names_in_linkage_form_p initializer.
2536 (minimal_language::store_sym_names_in_linkage_form_p): New member
2538 * d-lang.c (d_language_data): Remove
2539 la_store_sym_names_in_linkage_form_p initializer.
2540 * dwarf2/read.c (dwarf2_physname): Update call to
2541 store_sym_names_in_linkage_form_p.
2542 * f-lang.c (f_language_data): Remove
2543 la_store_sym_names_in_linkage_form_p initializer.
2544 * go-lang.c (go_language_data): Remove
2545 la_store_sym_names_in_linkage_form_p initializer.
2546 * language.c (unknown_language_data): Remove
2547 la_store_sym_names_in_linkage_form_p initializer.
2548 (unknown_language::store_sym_names_in_linkage_form_p): New member
2550 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2552 (auto_language::store_sym_names_in_linkage_form_p): New member
2554 * language.h (language_data): Remove
2555 la_store_sym_names_in_linkage_form_p member variable.
2556 (language_defn::store_sym_names_in_linkage_form_p): New member
2558 * m2-lang.c (m2_language_data): Remove
2559 la_store_sym_names_in_linkage_form_p initializer.
2560 * objc-lang.c (objc_language_data): Likewise.
2561 * opencl-lang.c (opencl_language_data): Likewise.
2562 * p-lang.c (pascal_language_data): Likewise.
2563 * rust-lang.c (rust_language_data): Likewise.
2565 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2567 * ada-lang.c (ada_language_data): Remove string_lower_bound
2569 * c-lang.c (c_language_data): Likewise.
2570 (cplus_language_data): Likewise.
2571 (asm_language_data): Likewise.
2572 (minimal_language_data): Likewise.
2573 * d-lang.c (d_language_data): Likewise.
2574 * f-lang.c (f_language_data): Likewise.
2575 * go-lang.c (go_language_data): Likewise.
2576 * language.c (unknown_language_data): Likewise.
2577 (auto_language_data): Likewise.
2578 * language.h (language_data): Remove string_lower_bound field.
2579 (language_defn::string_lower_bound): New member function.
2580 * m2-lang.c (m2_language_data): Remove string_lower_bound
2582 (m2_language::string_lower_bound): New member function.
2583 * objc-lang.c (objc_language_data): Remove string_lower_bound
2585 * opencl-lang.c (opencl_language_data): Likewise.
2586 * p-lang.c (pascal_language_data): Likewise.
2587 * rust-lang.c (rust_language_data): Likewise.
2588 * valops.c (value_cstring): Update call to string_lower_bound.
2589 (value_string): Likewise.
2590 * value.c (allocate_repeated_value): Likewise.
2592 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2594 * valops.c (value_repeat): Fix incorrect argument name in comment.
2596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2598 * ada-lang.c (ada_language_data): Remove c_style_arrays
2600 (ada_language::c_style_arrays_p): New member fuction.
2601 * c-lang.c (c_language_data): Remove c_style_arrays
2603 (cplus_language_data): Likewise.
2604 (asm_language_data): Likewise.
2605 (minimal_language_data): Likewise.
2606 * d-lang.c (d_language_data): Likewise.
2607 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2608 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2609 (f_language::c_style_arrays_p): New member function.
2610 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2611 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2612 * language.c (unknown_language_data): Remove c_style_arrays
2614 (auto_language_data): Likewise.
2615 * language.h (language_data): Remove c_style_arrays field.
2616 (language_defn::c_style_arrays_p): New member function.
2617 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2618 (m2_language::c_style_arrays_p): New member function.
2619 * objc-lang.c (objc_language_data): Remove c_style_arrays
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2625 and update local variable to a bool.
2626 * valops.c (value_cast): Update call to c_style_arrays_p.
2627 (value_array): Likewise.
2628 * value.c (coerce_array): Likewise.
2630 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2632 * ada-lang.c (ada_language_data): Remove la_language initializer.
2633 * c-lang.c (c_language_data): Likewise.
2634 (cplus_language_data): Likewise.
2635 (asm_language_data): Likewise.
2636 (minimal_language_data): Likewise.
2637 * d-lang.c (d_language_data): Likewise.
2638 * f-lang.c (f_language_data): Likewise.
2639 * go-lang.c (go_language_data): Likewise.
2640 * language.c (unknown_language_data): Likewise.
2641 (auto_language_data): Likewise.
2642 * language.h (language_data): Remove la_language field.
2643 (language_defn::language_defn): Initialise la_language field.
2644 (language_defn::la_language): New member variable.
2645 * m2-lang.c (m2_language_data): Remove la_language field.
2646 * objc-lang.c (objc_language_data): Likewise.
2647 * opencl-lang.c (opencl_language_data): Likewise.
2648 * p-lang.c (pascal_language_data): Likewise.
2649 * rust-lang.c (rust_language_data): Likewise.
2651 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * ada-lang.c (ada_extensions): Delete, moved into
2654 ada_language::filename_extensions.
2655 (ada_language_data): Remove la_filename_extensions initializer.
2656 (ada_language::filename_extensions): New member function.
2657 * c-lang.c (c_extensions): Delete, moved into
2658 c_language::filename_extensions.
2659 (c_language_data): Remove la_filename_extensions initializer.
2660 (c_language::filename_extensions): New member function.
2661 (cplus_extensions): Delete, moved into
2662 cplus_language::filename_extensions.
2663 (cplus_language_data): Remove la_filename_extensions initializer.
2664 (cplus_language::filename_extensions): New member function.
2665 (asm_extensions): Delete, moved into
2666 asm_language::filename_extensions.
2667 (asm_language_data): Remove la_filename_extensions initializer.
2668 (asm_language::filename_extensions): New member function.
2669 (minimal_language_data): Remove la_filename_extensions
2671 * d-lang.c (d_extensions): Delete, moved into
2672 d_language::filename_extensions.
2673 (d_language_data): Remove la_filename_extensions initializer.
2674 (d_language::filename_extensions): New member function.
2675 * f-lang.c (f_extensions): Delete, moved into
2676 f_language::filename_extensions.
2677 (f_language_data): Remove la_filename_extensions initializer.
2678 (f_language::filename_extensions): New member function.
2679 * go-lang.c (go_language_data): Remove la_filename_extensions
2681 * language.c (add_set_language_command): Update now that
2682 filename_extensions returns a vector.
2683 (unknown_language_data): Remove la_filename_extensions
2685 (auto_language_data): Likewise.
2686 * language.h (language_data): Remove la_filename_extensions field.
2687 (language_defn::filename_extensions): New member function.
2688 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2690 * objc-lang.c (objc_extensions): Delete, moved into
2691 objc_language::filename_extensions.
2692 (objc_language_data): Remove la_filename_extensions initializer.
2693 (objc_language::filename_extensions): New member function.
2694 * opencl-lang.c (opencl_language_data): Remove
2695 la_filename_extensions initializer.
2696 * p-lang.c (pascal_extensions): Delete, moved into
2697 pascal_language::filename_extensions.
2698 (pascal_language_data): Remove la_filename_extensions initializer.
2699 (pascal_language::filename_extensions): New member function.
2700 * rust-lang.c (rust_extensions): Delete, moved into
2701 rust_language::filename_extensions.
2702 (rust_language_data): Remove la_filename_extensions initializer.
2703 (rust_language::filename_extensions): New member function.
2704 * symfile.c (add_filename_language): Add new assert.
2706 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2708 * ada-lang.c (ada_language_data): Remove la_name and
2709 la_natural_name initializers.
2710 (ada_language::name): New member function.
2711 (ada_language::natural_name): New member function.
2712 * c-lang.c (c_language_data): Remove la_name and
2713 la_natural_name initializers.
2714 (c_language::name): New member function.
2715 (c_language::natural_name): New member function.
2716 (cplus_language_data): Remove la_name and
2717 la_natural_name initializers.
2718 (cplus_language::name): New member function.
2719 (cplus_language::natural_name): New member function.
2720 (asm_language_data): Remove la_name and
2721 la_natural_name initializers.
2722 (asm_language::name): New member function.
2723 (asm_language::natural_name): New member function.
2724 (minimal_language_data): Remove la_name and
2725 la_natural_name initializers.
2726 (minimal_language::name): New member function.
2727 (minimal_language::natural_name): New member function.
2728 * compile/compile.c (compile_to_object): Update call to
2729 lanugage_defn::name.
2730 * d-lang.c (d_language_data): Remove la_name and
2731 la_natural_name initializers.
2732 (d_language::name): New member function.
2733 (d_language::natural_name): New member function.
2734 * expprint.c (print_subexp_standard): Update call to
2735 language_defn::name.
2736 (dump_raw_expression): Likewise
2737 (dump_prefix_expression): Likewise.
2738 * f-lang.c (f_language_data): Remove la_name and
2739 la_natural_name initializers.
2740 (f_language::name): New member function.
2741 (f_language::natural_name): New member function.
2742 * go-lang.c (go_language_data): Remove la_name and
2743 la_natural_name initializers.
2744 (go_language::name): New member function.
2745 (go_language::natural_name): New member function.
2746 * language.c (show_language_command): Update call to
2747 language_defn::name.
2748 (set_language_command): Likewise.
2749 (language_enum): Likewise.
2750 (language_str): Likewise.
2751 (add_set_language_command): Likewise, use
2752 language_defn::natural_name in the doc string.
2753 (unknown_language_data): Remove la_name and
2754 la_natural_name initializers.
2755 (unknown_language::name): New member function.
2756 (unknown_language::natural_name): New member function.
2757 (auto_language_data): Remove la_name and
2758 la_natural_name initializers.
2759 (auto_language::name): New member function.
2760 (auto_language::natural_name): New member function.
2761 (language_lookup_primitive_type_as_symbol): Update call to
2762 language_defn::name.
2763 * language.h (language_data): Remove la_name and la_natural_name
2765 (language_defn::name): New member function.
2766 (language_defn::natural_name): New member function.
2767 * m2-lang.c (m2_language_data): Remove la_name and
2768 la_natural_name initializers.
2769 (m2_language::name): New member function.
2770 (m2_language::natural_name): New member function.
2771 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2772 language_defn::natural_name.
2773 * objc-lang.c (objc_language_data): Remove la_name and
2774 la_natural_name initializers.
2775 (objc_language::name): New member function.
2776 (objc_language::natural_name): New member function.
2777 * opencl-lang.c (opencl_language_data): Remove la_name and
2778 la_natural_name initializers.
2779 (opencl_language::name): New member function.
2780 (opencl_language::natural_name): New member function.
2781 * p-lang.c (pascal_language_data): Remove la_name and
2782 la_natural_name initializers.
2783 (pascal_language::name): New member function.
2784 (pascal_language::natural_name): New member function.
2785 * rust-lang.c (rust_language_data): Remove la_name and
2786 la_natural_name initializers.
2787 (rust_language::name): New member function.
2788 (rust_language::natural_name): New member function.
2789 * symtab.c (lookup_language_this): Update call to
2790 language_defn::name.
2792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2794 * ada-lang.c (ada_language_data): Remove la_name_of_this
2796 * ax-gdb.c (gen_expr): Update call to name_of_this.
2797 * c-exp.y (classify_name): Likewise.
2798 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2799 (cplus_language_data): Likewise.
2800 (cplus_language::name_of_this): New member function.
2801 (asm_language_data): Remove la_name_of_this initializer.
2802 (minimal_language_data): Likewise.
2803 * d-lang.c (d_language_data): Likewise.
2804 (d_language::name_of_this): New member function.
2805 * expprint.c (print_subexp_standard): Update call to name_of_this.
2806 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2807 * go-lang.c (go_language_data): Likewise.
2808 * language.c (unknown_language_data): Likewise.
2809 (unknown_language::name_of_this): New member function.
2810 (auto_language_data): Remove la_name_of_this initializer.
2811 (auto_language::name_of_this): New member function.
2812 * language.h (language_data): Delete la_name_of_this member
2814 (language_defn::name_of_this): New member function.
2815 * m2-lang.c (m2_language_data): Remove la_name_of_this
2817 * objc-lang.c (objc_language_data): Likewise.
2818 (objc_language::name_of_this): New member function.
2819 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2821 * p-lang.c (pascal_language_data): Likewise.
2822 (pascal_language::name_of_this): New member function.
2823 * rust-lang.c (rust_language_data): Remove la_name_of_this
2825 * symtab.c (lookup_language_this): Update call to name_of_this.
2826 (lookup_symbol_aux): Likewise.
2827 * valops.c (value_of_this): Likewise.
2829 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2831 * ada-lang.c (ada_language_data): Remove
2832 la_struct_too_deep_ellipsis initializer.
2833 (ada_language::struct_too_deep_ellipsis): New member function.
2834 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2836 (cplus_language_data): Likewise.
2837 (asm_language_data): Likewise.
2838 (minimal_language_data): Likewise.
2839 * cp-valprint.c (cp_print_value): Update call to
2840 struct_too_deep_ellipsis.
2841 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2843 * f-lang.c (f_language_data): Likewise.
2844 (f_language::struct_too_deep_ellipsis): New member function.
2845 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2847 * language.c (unknown_language_data): Likewise.
2848 (auto_language_data): Likewise.
2849 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2851 (language_defn::struct_too_deep_ellipsis): New member function.
2852 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2854 * objc-lang.c (objc_language_data): Likewise.
2855 * opencl-lang.c (opencl_language_data): Likewise.
2856 * p-lang.c (pascal_language_data): Likewise.
2857 * rust-lang.c (rust_language_data): Likewise.
2858 * valprint.c (val_print_check_max_depth): Update call to
2859 struct_too_deep_ellipsis.
2861 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2863 * MAINTAINERS (Write After Approval): Add myself.
2865 2020-09-15 Tom Tromey <tom@tromey.com>
2867 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2870 2020-09-15 Tom Tromey <tom@tromey.com>
2872 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2873 and TYPE_CODE_METHODPTR cases.
2874 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2875 (c_value_print_inner): Update.
2876 * valprint.c (generic_value_print_memberptr): New function, from
2877 c_value_print_memberptr.
2878 (generic_value_print): Use it. Call cplus_print_method_ptr.
2880 2020-09-15 Tom Tromey <tromey@adacore.com>
2882 * python/python-internal.h (PyInt_FromLong): Remove define.
2883 * python/py-value.c (convert_value_from_python): Use
2884 gdb_py_object_from_longest.
2885 * python/py-type.c (typy_get_code): Use
2886 gdb_py_object_from_longest.
2887 * python/py-symtab.c (salpy_get_line): Use
2888 gdb_py_object_from_longest.
2889 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2890 gdb_py_object_from_longest.
2891 * python/py-record.c (recpy_gap_reason_code): Use
2892 gdb_py_object_from_longest.
2893 * python/py-record-btrace.c (recpy_bt_insn_size)
2894 (recpy_bt_func_level, btpy_list_count): Use
2895 gdb_py_object_from_longest.
2896 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2897 gdb_py_object_from_longest. Fix error handling.
2898 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2899 gdb_py_object_from_longest.
2900 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2901 gdb_py_object_from_longest.
2902 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2903 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2904 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2906 2020-09-15 Tom Tromey <tromey@adacore.com>
2908 * python/python.c (gdbpy_parameter_value): Use
2909 gdb_py_object_from_ulongest.
2911 2020-09-15 Tom Tromey <tromey@adacore.com>
2913 * python/py-infevents.c (create_register_changed_event_object):
2914 Use gdb_py_object_from_longest.
2915 * python/py-exitedevent.c (create_exited_event_object): Use
2916 gdb_py_object_from_longest.
2918 2020-09-15 Tom Tromey <tromey@adacore.com>
2920 * python/python.c (gdbpy_parameter_value): Use
2921 gdb_py_object_from_longest.
2922 * python/py-type.c (convert_field, typy_range): Use
2923 gdb_py_object_from_longest.
2924 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2925 gdb_py_object_from_longest.
2926 * python/py-lazy-string.c (stpy_get_length): Use
2927 gdb_py_object_from_longest.
2928 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2929 gdb_py_object_from_longest.
2930 * python/py-infevents.c (create_memory_changed_event_object): Use
2931 gdb_py_object_from_longest.
2932 * python/py-inferior.c (infpy_get_num): Use
2933 gdb_py_object_from_longest.
2934 (infpy_get_pid): Likewise.
2936 2020-09-15 Tom Tromey <tromey@adacore.com>
2938 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2940 * python/py-value.c (valpy_long): Use
2941 gdb_py_object_from_ulongest.
2942 * python/py-symtab.c (salpy_get_pc): Use
2943 gdb_py_object_from_ulongest.
2944 (salpy_get_last): Likewise.
2945 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2946 gdb_py_object_from_ulongest.
2947 * python/py-lazy-string.c (stpy_get_address): Use
2948 gdb_py_object_from_ulongest.
2949 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2950 * python/py-arch.c (archpy_disassemble): Use
2951 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2954 2020-09-15 Tom Tromey <tromey@adacore.com>
2956 * python/python-internal.h (gdb_py_long_from_longest): Remove
2958 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2959 * python/py-type.c (convert_field, typy_get_sizeof): Use
2960 gdb_py_object_from_longest.
2961 * python/py-record-btrace.c (btpy_list_index): Use
2962 gdb_py_object_from_longest.
2964 2020-09-15 Tom Tromey <tromey@adacore.com>
2966 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2967 * python/py-record.c (recpy_element_number): Use
2968 gdb_py_object_from_longest.
2969 (recpy_gap_number): Likewise.
2971 2020-09-15 Tom Tromey <tromey@adacore.com>
2973 * top.c (ui::ui): Update.
2974 (highest_ui_num): Remove.
2975 * top.h (struct ui) <num>: Remove.
2977 2020-09-15 Tom Tromey <tromey@adacore.com>
2979 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2980 * ui-style.c (ansi_regex_text): Now array.
2981 * rust-exp.y (number_regex_text): Now array.
2982 * linespec.c (linespec_quote_characters): Now array.
2983 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2986 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2988 * debuginfod-support.c (debuginfod_client_deleter): New.
2989 (debuginfod_client_up): New.
2990 (debuginfod_init): Return debuginfod_client_up.
2991 (debuginfod_source_query): Adjust.
2992 (debuginfod_debuginfo_query): Adjust.
2994 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2996 * debuginfod-support.c (debuginfod_source_query): Use
2997 make_unique_xstrdup.
2999 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3001 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
3002 with `type::instance_flags`.
3004 2020-09-14 Michael Mullin <masmullin@gmail.com>
3006 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
3007 Remove baton parameter.
3009 2020-09-14 Pedro Alves <pedro@palves.net>
3011 * Makefile.in (SELFTESTS_SRCS): Add
3012 unittests/enum-flags-selftests.c.
3013 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
3014 btrace_function_flags instead of enum btrace_function_flag.
3015 * compile/compile-c-types.c (convert_qualified): Use
3017 * compile/compile-cplus-symbols.c (convert_one_symbol)
3018 (convert_symbol_bmsym):
3019 * compile/compile-cplus-types.c (compile_cplus_convert_method)
3020 (compile_cplus_convert_struct_or_union_methods)
3021 (compile_cplus_instance::convert_qualified_base):
3022 * go-exp.y (parse_string_or_char): Add cast to int.
3023 * unittests/enum-flags-selftests.c: New file.
3024 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
3025 type to btrace_thread_flags from btrace_thread_flag.
3026 (record_btrace_cancel_resume, record_btrace_step_thread): Change
3027 local's type to btrace_thread_flags from btrace_thread_flag. Add
3030 2020-09-14 Pedro Alves <pedro@palves.net>
3032 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
3033 * gdbtypes.c (address_space_name_to_int): Rename to ...
3034 (address_space_name_to_type_instance_flags): ... this.
3035 (address_space_int_to_name): Rename to ...
3036 (address_space_type_instance_flags_to_name): ... this.
3037 * gdbtypes.h (address_space_name_to_int): Rename to ...
3038 (address_space_name_to_type_instance_flags): ... this.
3039 (address_space_int_to_name): Rename to ...
3040 (address_space_type_instance_flags_to_name): ... this.
3041 * type-stack.c (type_stack::insert): Adjust to rename.
3042 * type-stack.h (type_stack::insert): Likewise.
3044 2020-09-14 Pedro Alves <pedro@palves.net>
3045 Andrew Burgess <andrew.burgess@embecosm.com>
3047 * avr-tdep.c (avr_address_class_type_flags): Return
3048 type_instance_flags.
3049 (avr_address_class_type_flags_to_name): Take a
3050 type_instance_flags.
3051 (avr_address_class_name_to_type_flags): Return bool and take a
3052 type_instance_flags.
3053 * d-lang.c (build_d_types): Use type::set_instance_flags.
3054 * ft32-tdep.c (ft32_address_class_type_flags): Return
3055 type_instance_flags.
3056 (ft32_address_class_type_flags_to_name): Take a
3057 type_instance_flags.
3058 (ft32_address_class_name_to_type_flags): Return bool and take a
3059 type_instance_flags.
3060 (ft32_gdbarch_init): Use type::set_instance_flags.
3061 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
3062 * gdbarch.h, gdbarch.c: Regenerate.
3063 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
3064 (address_class_name_to_type_flags): Use type_instance_flags and
3066 * gdbtypes.c (address_space_name_to_int)
3067 (address_space_int_to_name, make_qualified_type): Use
3068 type_instance_flags.
3069 (make_qualified_type): Use type_instance_flags and
3070 type::set_instance_flags.
3071 (make_type_with_address_space, make_cv_type, make_vector_type)
3072 (check_typedef): Use type_instance_flags.
3073 (recursive_dump_type): Cast type_instance_flags to unsigned for
3075 (copy_type_recursive): Use type::set_instance_flags.
3076 (gdbtypes_post_init): Use type::set_instance_flags.
3077 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
3078 <m_instance_flags>: ... this.
3079 <instance_flags, set_instance_flags>: New methods.
3080 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
3081 (SET_TYPE_INSTANCE_FLAGS): New.
3082 (address_space_name_to_int, address_space_int_to_name)
3083 (make_type_with_address_space): Pass flags using
3084 type_instance_flags instead of int.
3085 * stabsread.c (cleanup_undefined_types_noname): Use
3086 type::set_instance_flags.
3087 * s390-tdep.c (s390_address_class_type_flags): Return
3088 type_instance_flags.
3089 (s390_address_class_type_flags_to_name): Take a
3090 type_instance_flags.
3091 (s390_address_class_name_to_type_flags): Return bool and take a
3092 type_instance_flags.
3093 * type-stack.c (type_stack::follow_types): Use
3094 type_instance_flags.
3095 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
3097 2020-09-14 Tom Tromey <tromey@adacore.com>
3099 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
3100 * x86-tdep.c (x86_is_thunk_register_name)
3101 (x86_in_indirect_branch_thunk): Update.
3102 * sparc64-tdep.c (sparc64_fpu_register_names)
3103 (sparc64_cp0_register_names, sparc64_register_names)
3104 (sparc64_pseudo_register_names): Now const.
3105 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
3106 cp0_registers_num>: Now const.
3107 * sparc-tdep.c (sparc_core_register_names)
3108 (sparc32_fpu_register_names, sparc32_cp0_register_names)
3109 (sparc32_pseudo_register_names): Now const.
3110 (validate_tdesc_registers): Update.
3111 * rust-lang.c (rust_extensions): Now const.
3112 * p-lang.c (p_extensions): Now const.
3113 * objc-lang.c (objc_extensions): Now const.
3114 * nto-tdep.c (nto_thread_state_str): Now const.
3115 * moxie-tdep.c (moxie_register_names): Now const.
3116 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
3118 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
3119 (mips_linux_reg_names): Now const.
3120 (mips_gdbarch_init): Update.
3121 * microblaze-tdep.c (microblaze_register_names): Now const.
3122 * m68k-tdep.c (m68k_register_names): Now const.
3123 * m32r-tdep.c (m32r_register_names): Now const.
3124 * ia64-tdep.c (ia64_register_names): Now const.
3125 * i386-tdep.h (struct gdbarch_tdep) <register_names,
3126 ymmh_register_names, ymm16h_regnum, mpx_register_names,
3127 k_register_names, zmmh_register_names, xmm_avx512_register_names,
3128 ymm_avx512_register_names, pkeys_register_names>: Now const.
3129 * i386-tdep.c (i386_register_names, i386_zmm_names)
3130 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
3131 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
3132 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
3133 * f-lang.c (f_extensions): Now const.
3134 * d-lang.c (d_extensions): Now const.
3135 * csky-tdep.c (csky_register_names): Now const.
3136 * charset.c (default_charset_names, charset_enum): Now const.
3137 (_initialize_charset): Update.
3138 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
3140 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
3141 (bsd_uthread_solib_loaded): Update.
3142 (bsd_uthread_state): Now const.
3143 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
3144 (amd64_ymm_avx512_names, amd64_ymmh_names)
3145 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
3146 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
3147 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
3148 (amd64_dword_names): Now const.
3149 * agent.c (can_use_agent_enum): Now const.
3150 * ada-tasks.c (task_states, long_task_states): Now const.
3151 * ada-lang.c (known_runtime_file_name_patterns)
3152 (known_auxiliary_function_name_patterns, attribute_names)
3153 (standard_exc, ada_extensions): Now const.
3155 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3157 * bcache.h (struct bcache) <bcache>: Remove constructor.
3158 <m_hash_function, m_compare_function>: Remove.
3159 <~bcache>: Make virtual.
3160 <compare>: Remove static method, introduce virtual method.
3161 <default_hash>: Remove.
3162 <hash>: New virtual method.
3163 * bcache.c (bcache::expand_hash_table): Update.
3164 (bcache::insert): Update.
3165 (bcache::hash): New.
3166 (bcache::compare): Update comment and parameter names.
3167 * gdbtypes.c (types_deeply_equal): Update.
3168 * psymtab.h (struct psymbol_bcache): New struct.
3169 (class psymtab_storage) <psymtab_storage>: Make default.
3170 <psymbol_cache>: Change type to psymbol_bcache.
3171 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3172 (psymbol_hash): Change to...
3173 (psymbol_bcache::hash): ... this.
3174 (psymbol_compare): Change to...
3175 (psymbol_bcache::compare): ... this.
3177 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3179 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3180 checking for initial lwp.
3182 2020-09-14 Tom Tromey <tromey@adacore.com>
3184 * m68k-tdep.c (m68k_extract_return_value): Use
3185 pointer_result_regnum.
3186 (m68k_store_return_value): Likewise.
3187 (m68k_reg_struct_return_p): Handle vectors and arrays.
3188 (m68k_return_value): Handle arrays.
3189 (m68k_svr4_return_value): Fix single-element aggregate handling.
3190 Handle long double. Adjust for embedded ABI.
3191 (m68k_svr4_init_abi): Set pointer_result_regnum.
3192 (m68k_embedded_init_abi): New function.
3193 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3194 (m68k_osabi_sniffer): New function.
3195 (_initialize_m68k_tdep): Register osabi sniffer.
3196 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3199 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3201 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3202 with gdb::unique_xmalloc_ptr<char>.
3204 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3206 * xml-support.h (xml_fetch_another): Change type to be a
3208 (xml_process_xincludes): Remove baton parameter.
3209 (xml_fetch_content_from_file): Change baton parameter to
3211 * xml-support.c (struct xinclude_parsing_data)
3212 <xinclude_parsing_data>: Remove baton parameter.
3213 <fetcher_baton>: Remove.
3214 (xinclude_start_include): Adjust.
3215 (xml_process_xincludes): Adjust.
3216 (xml_fetch_content_from_file): Replace baton parameter with
3218 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3219 (xml_init_syscalls_info): Use a lambda.
3220 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3221 (file_read_description_xml): Use a lambda.
3222 (fetch_available_features_from_target): Change baton parameter
3224 (target_read_description_xml): Use a lambda.
3225 (target_fetch_description_xml): Use a lambda.
3226 (string_read_description_xml): Update.
3228 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3230 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3231 uses with type::endianity_is_not_default.
3233 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3235 * gdbtypes.h (struct type) <endianity_is_not_default,
3236 set_endianity_is_not_default>: New methods.
3237 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3238 type::endianity_is_not_default, change all write call sites to
3239 use type::set_endianity_is_not_default.
3241 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3243 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3244 uses with type::is_fixed_instance.
3246 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3248 * gdbtypes.h (struct type) <is_fixed_instance,
3249 set_is_fixed_instance>: New methods.
3250 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3251 write call sites to use type::set_is_fixed_instance.
3253 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3255 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3256 uses with type::is_gnu_ifunc.
3258 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3260 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3261 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3262 use type::set_is_gnu_ifunc.
3264 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3266 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3267 uses with type::stub_is_supported.
3269 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3271 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3272 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3273 use type::set_stub_is_supported.
3275 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3277 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3278 uses with type::is_vector.
3280 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3282 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3283 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3284 use type::set_is_vector.
3286 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3288 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3289 uses with type::has_varargs.
3291 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3293 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3294 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3295 use type::set_has_varargs.
3297 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3299 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3300 uses with type::is_prototyped.
3302 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3304 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3306 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3307 call sites to use type::set_is_prototyped.
3309 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3311 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3312 uses with type::target_is_stub.
3314 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3316 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3318 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3319 sites to use type::set_target_is_stub.
3321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3323 * gdbtypes.h (TYPE_STUB): Remove, replace all
3324 uses with type::is_stub.
3326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3328 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3329 (TYPE_STUB): Use type::is_stub, change all write call sites to
3330 use type::set_is_stub.
3332 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3334 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3335 type::has_no_signedness.
3337 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3339 * gdbtypes.h (struct type) <has_no_signedness,
3340 set_has_no_signedness>: New methods.
3341 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3342 call sites to use type::set_has_no_signedness.
3344 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3346 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3349 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3351 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3353 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3354 sites to use type::set_is_unsigned.
3356 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3357 Adam Renquinha <arenquinha@cimeq.qc.ca>
3359 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3360 pointer and stack frame offset when unwinding.
3362 2020-09-13 Pedro Alves <pedro@palves.net>
3364 * NEWS: Document "-break-insert --qualified".
3365 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3367 2020-09-13 Pedro Alves <pedro@palves.net>
3369 * linespec.c (classify_mtype, compare_msyms): Delete.
3370 (search_minsyms_for_name): Remove classification logic. Instead
3371 filter out trampoline symbols if we also found an external
3372 function of the same name.
3374 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3376 * NEWS: Create a new section for the next release branch.
3377 Rename the section of the current branch, now that it has
3380 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3382 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3383 * version.in: Bump version to 11.0.50.DATE-git.
3385 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3387 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3389 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3390 Felix Willgerodt <Felix.Willgerodt@intel.com>
3392 * gdbarch.sh: Added bfloat16 type.
3393 * gdbarch.c: Regenerated.
3394 * gdbarch.h: Regenerated.
3395 * gdbtypes.c (floatformats_bfloat16): New struct.
3396 (gdbtypes_post_init): Add builtin_bfloat16.
3397 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3398 (floatformats_bfloat16): New struct.
3399 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3400 (i386_ymm_type): Add field "v16_bfloat16"
3401 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3402 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3403 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3404 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3405 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3406 * features/i386/64bit-avx512.c: Regenerated.
3407 * features/i386/64bit-sse.xml: Add bfloat16 type.
3408 * features/i386/64bit-sse.c: Regenerated.
3410 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3412 * i386-tdep.c (i386_zmm_type): Fix field names.
3413 (i386_ymm_type): Fix field names.
3415 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3417 * breakpoint.c: Fix typo in the help message of the
3418 "set breakpoint condition-evaluation" command.
3420 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3422 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3423 * (nbsd_nat_target::pid_to_exec_file)
3424 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3425 (nbsd_nat_target::post_startup_inferior)
3426 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3427 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3428 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3429 * (nbsd_thread_lister): Remove.
3431 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3433 * fork-inferior.c (startup_inferior): Avoid double free.
3435 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3437 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3438 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3440 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3442 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3443 * netbsd-nat.c: Include <sys/ptrace.h>.
3444 * (netbsd_nat::enable_proc_events): Add.
3446 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3448 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3449 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3450 (netbsd_nat::for_each_thread): Add.
3451 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3452 "gdbsupport/common-debug.h".
3453 * (netbsd_nat::netbsd_thread_lister)
3454 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3455 (netbsd_nat::for_each_thread): Add.
3457 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3459 * netbsd-nat.h: Include <unistd.h>.
3460 * (netbsd_nat::pid_to_exec_file): Add.
3461 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3462 * (netbsd_nat::pid_to_exec_file) Add.
3464 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3466 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3468 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3470 * netbsd-nat.h: New file.
3471 * netbsd-nat.c: Likewise.
3473 2020-09-09 Tom Tromey <tromey@adacore.com>
3475 * ada-lang.c (remove_extra_symbols): Do not increment when
3478 2020-09-08 Tom Tromey <tromey@adacore.com>
3480 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3482 2020-09-08 Tom Tromey <tromey@adacore.com>
3485 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3486 (gdb_bfd_init_data): New function.
3487 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3489 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3491 * infrun.c (fetch_inferior_event): Use
3492 `switch_to_target_no_thread` to switch the target.
3494 2020-09-06 Tom Tromey <tom@tromey.com>
3496 * symfile.h (dwarf2_free_objfile): Don't declare.
3498 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3500 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3501 to match 16 byte real/complex type generated by Flang compiler.
3503 2020-09-03 Tom de Vries <tdevries@suse.de>
3506 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3507 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3509 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3511 * maint.c (index_digits): New function.
3512 (struct maint_print_section_data): Remove.
3513 (print_bfd_section_info): Remove print_data parameter, add arg
3515 (print_objfile_section_info): Likewise.
3516 (print_bfd_section_info_maybe_relocated): Likewise (plus
3518 (maintenance_info_sections): Adjust calls.
3520 2020-09-02 Tom Tromey <tromey@adacore.com>
3522 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3524 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3526 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3528 * bcache.h (struct bcache) <insert>: Change type of `added` to
3530 * bcache.c (bcache::insert): Likewise.
3531 * gdbtypes.c (check_types_worklist): Adjust.
3532 * psymtab.c (add_psymbol_to_bcache): Adjust.
3534 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3536 * corelow.c (unordered_set): Include.
3537 (class core_target): Add field 'm_core_unavailable_mappings'.
3538 (core_target::build_file_mappings): Print only one warning
3539 per inaccessible file. Add unavailable/broken mappings
3540 to m_core_unavailable_mappings.
3541 (core_target::xfer_partial): Call...
3542 (core_target::xfer_memory_via_mappings): New method.
3544 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3546 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3549 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3551 * dwarf2/read.c (struct field_info): Fix indentation.
3553 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3555 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3556 ordering in comment.
3557 * frame.c (frame_id_eq): Fix indentation.
3559 2020-08-31 Scott Linder <scott@scottlinder.com>
3560 Simon Marchi <simon.marchi@efficios.com>
3562 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3563 inline frame ids in outer frame.
3565 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3567 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3568 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3569 (outer_frame_id): Use FID_STACK_OUTER instead of
3571 (frame_id_p): Don't check for outer_frame_id.
3573 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3575 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3576 regnum/frame in value. Call allocate_value_lazy.
3577 * frame.c (frame_unwind_register_value): Use
3578 val_print_not_saved.
3580 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3582 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3584 2020-08-29 Pedro Alves <pedro@palves.net>
3586 * progspace.c (print_program_space): Use all_inferiors. Switch to
3587 the inferior before calling target_pid_to_str.
3589 2020-08-28 Tom Tromey <tom@tromey.com>
3591 * xcoffread.c (xcoff_end_psymtab): Update comment.
3592 * dbxread.c (dbx_end_psymtab): Update comment.
3594 2020-08-28 Tom de Vries <tdevries@suse.de>
3597 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3599 (create_breakpoint): Same.
3600 (base_breakpoint_decode_location): Same.
3601 (bkpt_create_sals_from_location): Same.
3602 (bkpt_decode_location): Same.
3603 (bkpt_probe_create_sals_from_location): Same.
3604 (bkpt_probe_decode_location): Same.
3605 (tracepoint_create_sals_from_location): Same.
3606 (tracepoint_decode_location): Same.
3607 (tracepoint_probe_decode_location): Same.
3608 (strace_marker_create_sals_from_location): Same.
3609 (strace_marker_decode_location): Same.
3610 (create_sals_from_location_default): Same.
3611 (decode_location_default): Same.
3612 * breakpoint.h (struct breakpoint_ops): Same.
3613 (create_breakpoint): Same.
3614 * linespec.h (decode_line_full): Same.
3615 * linespec.c (decode_line_full): Same. Throw error if
3616 result.size () == 0.
3618 2020-08-27 Pedro Alves <pedro@palves.net>
3621 * breakpoint.c (until_break_fsm) <location_breakpoint,
3622 caller_breakpoint>: Delete fields.
3623 <breakpoints>: New field.
3624 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3625 two individual breakpoints.
3626 (until_break_fsm::should_stop): Loop over breakpoints in the
3628 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3630 (until_break_command): Handle location expanding into multiple
3633 2020-08-27 Pedro Alves <pedro@palves.net>
3636 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3637 bp_until breakpoints user-specified locations. Update intro
3640 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3642 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3643 gdb_bfd_sections): New.
3644 * maint.c (print_bfd_section_info): Change param type to
3645 maint_print_section_data.
3646 (print_objfile_section_info): Likewise.
3647 (print_bfd_section_info_maybe_relocated): Likewise.
3648 (maintenance_info_sections): Use gdb_bfd_sections.
3650 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3652 * MAINTAINERS: Add ARC target and maintainer.
3654 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3656 * configure.tgt: ARC support for GNU/Linux.
3657 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3658 * arc-linux-tdep.c: New file.
3659 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3660 * arc-tdep.c (arc_write_pc): Use it.
3662 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3664 * arc-tdep.c (arc_check_for_hardware_loop): New.
3665 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3667 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3669 * arc-tdep.h: Include "gdbarch.h".
3671 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3674 (arc_gdbarch_features): New class to stir the selection of target XML.
3675 (arc_create_target_description): Use FEATURES to choose XML target.
3676 (arc_lookup_target_description): Use arc_create_target_description
3677 to create _new_ target descriptions or return the already created
3678 ones if the FEATURES is the same.
3679 * arch/arc.c: Implementation of prototypes described above.
3680 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3681 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3682 * arc-tdep.c (*_feature_name): Make feature names consistent.
3683 (arc_register_feature): A new struct to hold information about
3684 registers of a particular target/feature.
3685 (arc_check_tdesc_feature): Check if XML provides registers in
3686 compliance with ARC_REGISTER_FEATURE structs.
3687 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3688 (determine_*_reg_feature_set): Which feature name to look for.
3689 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3690 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3691 to expected ISA enums to be used in arc_gdbarch_features structs.
3692 * features/Makefile (FEATURE_XMLFILES): Add new files.
3693 * gdb/features/arc/v1-aux.c: New file.
3694 * gdb/features/arc/v1-aux.xml: Likewise.
3695 * gdb/features/arc/v1-core.c: Likewise.
3696 * gdb/features/arc/v1-core.xml: Likewise.
3697 * gdb/features/arc/v2-aux.c: Likewise.
3698 * gdb/features/arc/v2-aux.xml: Likewise.
3699 * gdb/features/arc/v2-core.c: Likewise.
3700 * gdb/features/arc/v2-core.xml: Likewise.
3701 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3703 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3704 Andrew Burgess <andrew.burgess@embecosm.com>
3707 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3708 an assert. Remove single element array indexing pattern as the
3709 MULTI_SUBSCRIPT support will handle this case too.
3711 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3713 * value.h (valprint_check_validity): Move declaration from
3715 * valprint.h (valprint_check_validity): ... to here.
3717 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3719 * debug.h: New file.
3720 * debug.c (debug_prefixed_vprintf): New function.
3721 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3722 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3724 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3726 * infrun.h (infrun_debug_printf_1): New function declaration.
3727 (infrun_debug_printf): New macro.
3728 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3730 (infrun_debug_printf): New function.
3731 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3732 (handle_jit_event): Likewise.
3734 2020-08-21 Mark Wielaard <mark@klomp.org>
3736 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3738 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3740 * frame.c (enum class frame_id_status): New.
3741 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3742 (fprintf_frame): Update.
3743 (compute_frame_id): Set frame id status to "computing" on entry.
3744 Set it back to "not_computed" on failure and to "computed" on
3746 (get_frame_id): Assert the frame id is not being computed.
3747 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3748 (create_new_frame): Likewise.
3749 (frame_cleanup_after_sniffer): Update assert.
3751 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3753 * regcache.c (pid_ptid_regcache_map): New type.
3754 (target_ptid_regcache_map): Remove.
3755 (target_pid_ptid_regcache_map): New type.
3756 (regcaches): Change type to target_pid_ptid_regcache_map.
3757 (get_thread_arch_aspace_regcache): Update.
3758 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3760 (regcaches_size): Update.
3761 (regcache_count): Update.
3762 (registers_changed_ptid_target_pid_test): New.
3763 (_initialize_regcache): Register new test.
3765 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3767 * regcache.c (regcache_count): New.
3768 (struct regcache_test_data): New.
3769 (regcache_test_data_up): New.
3770 (populate_regcaches_for_test): New.
3771 (regcaches_test): Remove.
3772 (get_thread_arch_aspace_regcache_test): New.
3773 (registers_changed_ptid_all_test): New.
3774 (registers_changed_ptid_target_test): New.
3775 (registers_changed_ptid_target_ptid_test): New.
3776 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3777 (_initialize_regcache): Register new tests.
3779 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3781 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3782 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3783 gdbarch and aspace parameter. Use current inferior's aspace.
3784 Validate regcache's arch value.
3785 (regcaches_test): Update.
3787 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3789 * regcache.c (regcaches_test): Call registers_changed.
3791 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3793 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3795 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3797 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3798 to find the end of prologue for flang compiled binaries.
3799 * arm-tdep.c (arm_skip_prologue): Likewise.
3800 * i386-tdep.c (i386_skip_prologue): Likewise.
3801 * producer.c (producer_is_llvm): New function.
3802 (producer_parsing_tests): Added new tests for clang/flang.
3803 * producer.h (producer_is_llvm): New declaration.
3805 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3807 * linux-nat.c (linux_nat_debug_printf): New function.
3808 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3810 2020-08-18 Aaron Merey <amerey@redhat.com>
3812 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3813 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3814 (CLIBS): Add DEBUGINFOD_LIBS.
3816 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3818 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3821 2020-08-17 Tom Tromey <tromey@adacore.com>
3823 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3824 ada_get_decoded_value returns NULL.
3826 2020-08-17 Tom Tromey <tromey@adacore.com>
3828 * python/py-inferior.c (infpy_search_memory): Use
3829 gdb_py_object_from_ulongest.
3830 * python/py-infevents.c (create_inferior_call_event_object)
3831 (create_memory_changed_event_object): Use
3832 gdb_py_object_from_ulongest.
3833 * python/py-linetable.c (ltpy_entry_get_pc): Use
3834 gdb_py_object_from_ulongest.
3836 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3838 * loc.c (class symbol_needs_eval_context): Fix indentation.
3840 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3842 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3845 2020-08-17 Tom de Vries <tdevries@suse.de>
3848 * gdbtypes.c (dump_dynamic_prop): New function.
3849 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3851 2020-08-15 Tom de Vries <tdevries@suse.de>
3854 * stack.c (print_frame_args): Temporarily set the selected
3855 frame to FRAME while printing the frame's arguments.
3857 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3859 PR breakpoints/26385
3860 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3861 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3863 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3865 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3866 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3867 and >= to check return value instead of == -1 and != -1.
3869 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3871 * utils.h (class gdb_argv) <as_array_view>: New method.
3872 * utils.c (gdb_argv_as_array_view_test): New.
3873 (_initialize_utils): Register selftest.
3874 * maint.c (maintenance_selftest): Use the new method.
3876 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3878 * target.h (supports_dumpcore, dumpcore): New
3879 function declarations.
3880 * target.c (supports_dumpcore, dumpcore): New
3882 * target-delegates.c: Rebuild.
3883 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3884 and target_dumpcore ().
3886 2020-08-13 Aaron Merey <amerey@redhat.com>
3888 * debuginfod-support.c: Replace global variables with user_data.
3890 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3892 * maint.c (maintenance_selftest): Split args and pass array_view
3895 2020-08-12 Luis Machado <luis.machado@linaro.org>
3897 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3899 Use %s and pulongest to print the length.
3901 2020-08-12 Pedro Alves <palves@redhat.com>
3903 * NEWS: Move "Multi-target debugging support" item to the
3904 "Changes since GDB 9" section.
3906 2020-08-12 Pedro Alves <palves@redhat.com>
3909 * progspace.c (program_space::remove_objfile): Invalidate the
3912 2020-08-11 Tom de Vries <tdevries@suse.de>
3914 * MAINTAINERS: Mark ms1 as deleted.
3916 2020-08-10 Luis Machado <luis.machado@linaro.org>
3920 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3922 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3923 movz/str/stur/stp skipping behavior.
3925 2020-08-10 Luis Machado <luis.machado@linaro.org>
3927 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3928 struct user_sve_header instead of struct sve_context.
3930 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3932 * read.h (dwarf2_fetch_die_loc_sect_off,
3933 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3934 `void *` parameter with function_view.
3935 * read.c (dwarf2_fetch_die_loc_sect_off,
3936 dwarf2_fetch_die_loc_cu_off): Likewise.
3937 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3938 (per_cu_dwarf_call): Adjust.
3939 (get_frame_address_in_block_wrapper): Remove.
3940 (indirect_synthetic_pointer): Adjust.
3941 (get_ax_pc): Remove.
3942 (dwarf2_compile_expr_to_ax): Adjust.
3944 2020-08-08 Tom de Vries <tdevries@suse.de>
3947 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3949 * regcache.c (get_thread_arch_aspace_regcache): Same.
3951 2020-08-07 Tom Tromey <tromey@adacore.com>
3953 * ravenscar-thread.c
3954 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3956 (ravenscar_thread_target::wait): Check
3957 runtime_initialized.
3958 (ravenscar_thread_target::prepare_to_store)
3959 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3960 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3961 (ravenscar_thread_target::stopped_by_watchpoint)
3962 (ravenscar_thread_target::stopped_data_address)
3963 (ravenscar_thread_target::core_of_thread): Use
3964 scoped_restore_current_thread and
3965 set_base_thread_from_ravenscar_task.
3967 2020-08-07 Tom Tromey <tromey@adacore.com>
3969 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3971 2020-08-07 Tom Tromey <tromey@adacore.com>
3973 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3974 update_inferior_ptid before update_thread_list.
3975 (temporarily_change_regcache_ptid): New class.
3976 (ravenscar_thread_target::fetch_registers)
3977 (ravenscar_thread_target::store_registers)
3978 (ravenscar_thread_target::prepare_to_store): Use base thread when
3979 forwarding operation.
3981 2020-08-07 Tom Tromey <tromey@adacore.com>
3983 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3986 2020-08-07 Tom Tromey <tromey@adacore.com>
3988 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3990 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3992 (ravenscar_thread_target::add_thread): Rename from
3993 ravenscar_add_thread.
3994 (ravenscar_thread_target::update_thread_list): Use a lambda.
3995 (ravenscar_thread_target::xfer_partial): New method.
3997 2020-08-07 Tom Tromey <tromey@adacore.com>
3999 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4001 (iterate_over_live_ada_tasks): Change type of argument.
4002 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
4005 2020-08-07 Tom Tromey <tromey@adacore.com>
4007 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4009 (ravenscar_thread_target::extra_thread_info): Remove.
4010 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
4011 defer to target beneath for non-Ravenscar threads.
4013 2020-08-07 Tom Tromey <tromey@adacore.com>
4015 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4016 get_base_thread_from_ravenscar_task>: Now methods.
4017 <m_cpu_map>: New member.
4018 (ravenscar_thread_target::get_thread_base_cpu): Rename from
4019 ravenscar_get_thread_base_cpu. Check m_cpu_map.
4020 (ravenscar_thread_target::task_is_currently_active): Update.
4021 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
4023 (ravenscar_thread_target::add_active_thread): Put initial thread
4026 2020-08-07 Tom Tromey <tromey@adacore.com>
4028 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
4031 2020-08-07 Tom Tromey <tromey@adacore.com>
4033 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
4034 runtime_initialized.
4036 2020-08-07 Tom Tromey <tromey@adacore.com>
4038 * ravenscar-thread.c (ravenscar_thread_target): Don't call
4040 (ravenscar_thread_target::add_active_thread): Now public.
4041 (ravenscar_inferior_created): Call add_active_thread after pushing
4044 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4046 * regcache.c (ptid_regcache_map): New type.
4047 (target_ptid_regcache_map): New type.
4048 (regcaches): Change type to target_ptid_regcache_map.
4049 (get_thread_arch_aspace_regcache): Update to regcaches' new
4051 (regcache_thread_ptid_changed): Likewise.
4052 (registers_changed_ptid): Likewise.
4053 (regcaches_size): Likewise.
4054 (regcaches_test): Update.
4055 (regcache_thread_ptid_changed): Update.
4056 * regcache.h (regcache_up): New type.
4057 * gdbsupport/ptid.h (hash_ptid): New struct.
4059 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
4061 * observable.h (thread_ptid_changed): Add parameter
4062 `process_stratum_target *`.
4063 * infrun.c (infrun_thread_ptid_changed): Add parameter
4064 `process_stratum_target *` and use it.
4065 (selftests): New namespace.
4066 (infrun_thread_ptid_changed): New function.
4067 (_initialize_infrun): Register selftest.
4068 * regcache.c (regcache_thread_ptid_changed): Add parameter
4069 `process_stratum_target *` and use it.
4070 (regcache_thread_ptid_changed): New function.
4071 (_initialize_regcache): Register selftest.
4072 * thread.c (thread_change_ptid): Pass target to
4073 thread_ptid_changed observable.
4075 2020-08-06 Caroline Tice <cmtice@google.com>
4077 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
4078 (struct dwp_sections): Update field comments. Add loclists and
4080 (struct virtual_v2_dwo_sections): Rename struct to
4081 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
4082 size & offset fields for loclists and rnglists.
4083 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
4084 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
4085 skipping dummy type units.
4086 (create_dwp_hash_table): Update the large comment above the function to
4087 discuss Version 5 DWP files as well, with references. Update all the
4088 version checks in the function to check for version 5 as well. Add new
4089 section at the end to create dwp hash table for version 5.
4090 (create_dwp_v2_section): Rename function to
4091 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
4092 Add V5 to error message text.
4093 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
4094 into calls to create_dwp_v2_or_v5_section.
4095 (create_dwo_unit_in_dwp_v5): New function.
4096 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
4097 check for version2; add else clause to handle version 5.
4098 (open_and_init_dwo_file): Add code to check dwarf version & only call
4099 create_debug_types_hash_table (with sections.types) if version is not 5;
4100 else call create_debug_type_hash_table, with sections.info.
4101 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
4103 (dwarf2_locate_v5_dwp_sections): New function.
4104 (open_and_init_dwp_file): Add else-if clause for version 5 to call
4105 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
4107 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4109 * regcache.h (class regcache): Remove friend
4110 registers_changed_ptid.
4111 <regcache_thread_ptid_changed>: Remove.
4112 <regcaches>: Remove.
4113 * regcache.c (regcache::regcaches): Rename to...
4114 (regcaches): ... this. Make static.
4115 (get_thread_arch_aspace_regcache): Update.
4116 (regcache::regcache_thread_ptid_changed): Rename to...
4117 (regcache_thread_ptid_changed): ... this. Update.
4118 (class regcache_access): Remove.
4119 (regcaches_test): Update.
4120 (_initialize_regcache): Update.
4121 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
4124 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
4126 * regcache.h (class regcache) <current_regcache>: Rename to...
4127 <regcaches>: ... this. Move doc here.
4128 * regcache.c (regcache::current_regcache) Rename to...
4129 (regcache::regcaches): ... this. Move doc to header.
4130 (get_thread_arch_aspace_regcache): Update.
4131 (regcache::regcache_thread_ptid_changed): Update.
4132 (registers_changed_ptid): Update.
4133 (class regcache_access) <current_regcache_size>: Rename to...
4134 <regcaches_size>: ... this.
4135 (current_regcache_test): Rename to...
4136 (regcaches_test): ... this.
4137 (_initialize_regcache): Update.
4139 2020-08-06 Victor Collod <vcollod@nvidia.com>
4141 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4143 2020-08-05 Kevin Buettner <kevinb@redhat.com>
4145 * corelow.c (core_target::build_file_mappings): Don't output
4146 null pathname in warning.
4148 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
4150 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4151 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
4152 gdb.dwarf2/dw2-single-line-discriminators.exp,
4153 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
4155 2020-08-05 Tom Tromey <tromey@adacore.com>
4158 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4159 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4160 Fix off-by-one and type size errors in ordinary case.
4162 2020-08-05 Tom de Vries <tdevries@suse.de>
4164 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4165 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4167 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4169 * frame.h (frame_id_p): Return bool.
4170 (frame_id_artificial_p): Return bool.
4171 (frame_id_eq): Return bool.
4172 (has_stack_frames): Return bool.
4173 (get_selected_frame): Fix typo in comment.
4174 (get_frame_pc_if_available): Return bool.
4175 (get_frame_address_in_block_if_available): Return bool.
4176 (get_frame_func_if_available): Return bool.
4177 (read_frame_register_unsigned): Return bool.
4178 (get_frame_register_bytes): Return bool.
4179 (safe_frame_unwind_memory): Return bool.
4180 (deprecated_frame_register_read): Return bool.
4181 (frame_unwinder_is): Return bool.
4182 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4184 <this_id::p>: Likewise.
4186 (frame_stash_add): Return bool.
4187 (get_frame_id): Use bool.
4188 (frame_id_build_special) Use bool.
4189 (frame_id_build_unavailable_stack): Use bool.
4190 (frame_id_build): Use bool.
4191 (frame_id_p): Return bool, use true/false instead of 1/0.
4192 (frame_id_artificial_p): Likewise.
4193 (frame_id_eq): Likewise.
4194 (frame_id_inner): Likewise.
4195 (get_frame_func_if_available): Likewise.
4196 (read_frame_register_unsigned): Likewise.
4197 (deprecated_frame_register_read): Likewise.
4198 (get_frame_register_bytes): Likewise.
4199 (has_stack_frames): Likewise.
4200 (inside_main_func): Likewise.
4201 (inside_entry_func): Likewise.
4202 (get_frame_pc_if_available): Likewise.
4203 (get_frame_address_in_block_if_available): Likewise.
4204 (frame_unwinder_is): Likewise.
4205 (safe_frame_unwind_memory): Likewise.
4206 (frame_unwind_arch): Likewise.
4208 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4210 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4211 type to cached_copy_status.
4212 (fprintf_frame): Adjust.
4213 (get_frame_func_if_available): Adjust.
4214 (frame_cleanup_after_sniffer): Adjust.
4216 2020-08-04 Mark Wielaard <mark@klomp.org>
4218 * MAINTAINERS (Write After Approval): Update email address.
4220 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4222 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4223 dynamic_prop::const_val.
4225 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4227 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4230 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4232 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4234 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4236 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4238 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4239 Jose E. Marchesi <jose.marchesi@oracle.com>
4241 * configure.tgt: Add entry for bpf-*-*.
4242 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4243 (ALLDEPFILES): Add bpf-tdep.c.
4244 * bpf-tdep.c: New file.
4245 * MAINTAINERS: Add bpf target and maintainer.
4246 * NEWS: Mention the support for the new target.
4248 2020-08-04 Tom de Vries <tdevries@suse.de>
4251 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4254 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4256 * syscalls/freebsd.xml: Regenerate.
4258 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4260 * syscalls/update-freebsd.sh: Fix usage and year range.
4262 2020-08-03 Tom de Vries <tdevries@suse.de>
4265 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4266 DW_LNE_lo_user/DW_LNE_hi_user range.
4268 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4271 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4274 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4276 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4278 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4280 * breakpoint.c (set_breakpoint_condition): Update the condition
4281 expressions after checking that the input condition string parses
4282 successfully and does not contain junk at the end.
4284 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4286 * breakpoint.c (set_breakpoint_condition): Update the
4287 condition string after parsing the new condition successfully.
4289 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4291 * proc-api.c (_STRUCTURED_PROC): Don't define.
4292 * proc-events.c: Likewise.
4293 * proc-flags.c: Likewise.
4294 * proc-why.c: Likewise.
4295 * procfs.c: Likewise.
4297 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4298 * configure, config.in: Regenerate.
4300 2020-07-30 Tom de Vries <tdevries@suse.de>
4303 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4304 m_red/m_green/m_blue in a union.
4306 2020-07-29 Tom de Vries <tdevries@suse.de>
4309 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4311 2020-07-28 Tom Tromey <tromey@adacore.com>
4314 * symtab.h (find_pc_partial_function_sym): Declare.
4315 * cli/cli-cmds.c (disassemble_command): Use
4316 find_pc_partial_function_sym. Check asm_demangle.
4317 * blockframe.c (cache_pc_function_sym): New global.
4318 (cache_pc_function_name): Remove.
4319 (clear_pc_function_cache): Update.
4320 (find_pc_partial_function_sym): New function, from
4321 find_pc_partial_function.
4322 (find_pc_partial_function): Rewrite using
4323 find_pc_partial_function_sym.
4325 2020-07-28 Tom Tromey <tromey@adacore.com>
4327 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4330 2020-07-28 Tom Tromey <tromey@adacore.com>
4332 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4333 <DW_OP_GNU_variable_value>: Cast to address type.
4335 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4337 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4338 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4339 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4340 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4341 (nbsd_get_siginfo_type): New.
4342 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4343 (_initialize_nbsd_tdep): New.
4345 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4348 * configure: Regenerated.
4350 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4353 * configure: Regenerated.
4355 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4357 * python/py-frame.c: Remove 'user-regs.h' include.
4358 (frapy_read_register): Rewrite to make use of
4359 gdbpy_parse_register_id.
4360 * python/py-registers.c (gdbpy_parse_register_id): New function,
4361 moved here from python/py-unwind.c. Updated the return type, and
4362 also accepts register descriptor objects.
4363 * python/py-unwind.c: Remove 'user-regs.h' include.
4364 (pyuw_parse_register_id): Moved to python/py-registers.c.
4365 (unwind_infopy_add_saved_register): Update to use
4366 gdbpy_parse_register_id.
4367 (pending_framepy_read_register): Likewise.
4368 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4370 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4372 * python/py-registers.c: Add 'user-regs.h' include.
4373 (register_descriptor_iter_find): New function.
4374 (register_descriptor_iterator_object_methods): New static global
4376 (register_descriptor_iterator_object_type): Add pointer to methods
4379 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4381 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4382 for all architectures on FreeBSD 11.3 and later.
4384 2020-07-27 Tom Tromey <tromey@adacore.com>
4386 * gcore.h (load_corefile): Don't declare.
4388 2020-07-27 Tom de Vries <tdevries@suse.de>
4390 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4391 * config.in: Regenerate.
4392 * configure: Regenerate.
4394 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4396 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4397 ws2tcpip.h. When checking whether socklen_t type is defined, use
4398 ws2tcpip.h if it is available and sys/socket.h isn't.
4399 * configure: Regenerate.
4400 * config.in: Regenerate.
4402 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4406 * valops.c (value_ind): Pass address to
4407 readjust_indirect_value_type.
4408 * value.c (readjust_indirect_value_type): Make parameter
4409 non-const, and add extra address parameter. Resolve original type
4411 * value.h (readjust_indirect_value_type): Update function
4412 signature and comment.
4414 2020-07-25 Tom de Vries <tdevries@suse.de>
4417 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4420 2020-07-24 Aaron Merey <amerey@redhat.com>
4422 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4423 * configure: Rebuild.
4425 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4428 * corelow.c (_initialize_corelow): Add period to help text
4429 for "maintenance print core-file-backed-mappings".
4431 2020-07-23 Pedro Alves <pedro@palves.net>
4433 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4434 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4436 * frame.c (frame_cache_generation, get_frame_cache_generation):
4438 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4439 (get_prev_frame_if_no_cycle): On exception, don't touch
4440 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4441 * frame.h (get_frame_cache_generation): Declare.
4443 2020-07-23 Tom de Vries <tdevries@suse.de>
4446 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4447 New default constructor.
4449 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4451 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4452 exclude non-statement entries.
4454 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4456 * NEWS (New commands): Mention new command
4457 "maintenance print core-file-backed-mappings".
4459 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4461 * corelow.c (gdbcmd.h): Include.
4462 (core_target::info_proc_mappings): New method.
4463 (get_current_core_target): New function.
4464 (maintenance_print_core_file_backed_mappings): New function.
4465 (_initialize_corelow): Add core-file-backed-mappings to
4466 "maint print" commands.
4468 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4470 * linux-tdep.c (dump_note_entry_p): New function.
4471 (linux_dump_mapping_p_ftype): New typedef.
4472 (linux_find_memory_regions_full): Add new parameter,
4473 should_dump_mapping_p.
4474 (linux_find_memory_regions): Adjust call to
4475 linux_find_memory_regions_full.
4476 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4477 call to linux_find_memory_regions_full.
4479 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4481 * corelow.c (solist.h, unordered_map): Include.
4482 (class core_target): Add field m_core_file_mappings and
4483 method build_file_mappings.
4484 (core_target::core_target): Call build_file_mappings.
4485 (core_target::~core_target): Free memory associated with
4486 m_core_file_mappings.
4487 (core_target::build_file_mappings): New method.
4488 (core_target::xfer_partial): Use m_core_file_mappings
4489 for memory transfers.
4490 * linux-tdep.c (linux_read_core_file_mappings): New
4492 (linux_core_info_proc_mappings): Rewrite to use
4493 linux_read_core_file_mappings.
4494 (linux_init_abi): Register linux_read_core_file_mappings.
4496 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4498 * arch-utils.c (default_read_core_file_mappings): New function.
4499 * arch-utils.c (default_read_core_file_mappings): Declare.
4500 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4501 * gdbarch.h, gdbarch.c: Regenerate.
4503 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4506 * corelow.c (core_target:xfer_partial): Revise
4507 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4508 case after first checking the stratum beneath the core
4510 (has_all_memory): Return true.
4511 * target.c (raw_memory_xfer_partial): Revise comment
4512 regarding use of has_all_memory.
4514 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4516 * exec.h (section_table_xfer_memory): Revise declaration,
4517 replacing section name parameter with an optional callback
4519 * exec.c (section_table_xfer_memory): Likewise.
4520 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4521 of section_table_xfer_memory.
4523 2020-07-22 Tom Tromey <tromey@adacore.com>
4525 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4526 lookup_symbol_search_name.
4528 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4530 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4531 redundant local variable.
4532 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4533 reference, not pointer, update code accordingly.
4535 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4536 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4538 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4539 * jit.c (jit_breakpoint_re_set_internal): Use the
4540 `skip_jit_symbol_lookup` field.
4542 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4543 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545 * jit.c (jit_read_descriptor): Define the descriptor address once,
4547 (jit_breakpoint_deleted): Move the declaration of the loop variable
4548 `iter` into the loop header.
4549 (jit_breakpoint_re_set_internal): Move the declaration of the local
4550 variable `objf_data` to the first point of definition.
4551 (jit_event_handler): Move the declaration of local variables
4552 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4553 Rename `objf` to `jited`.
4555 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4557 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4559 * jit.c (get_jiter_objfile_data): Update.
4561 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4562 Simon Marchi <simon.marchi@polymtl.ca>
4564 * jit.c (struct jit_program_space_data): Remove.
4565 (jit_program_space_key): Remove.
4566 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4568 (get_jit_program_space_data): Remove.
4569 (jit_breakpoint_deleted): Iterate on all of the program space's
4571 (jit_inferior_init): Likewise.
4572 (jit_breakpoint_re_set_internal): Likewise. Also change return
4574 (jit_breakpoint_re_set): Pass current_program_space to
4575 jit_breakpoint_re_set_internal.
4577 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4579 * jit.h (struct jiter_objfile_data) <cached_code_address,
4580 jit_breakpoint>: Move to here from ...
4581 * jit.c (jit_program_space_data): ... here.
4582 (jiter_objfile_data::~jiter_objfile_data): Update.
4583 (jit_breakpoint_deleted): Update.
4584 (jit_breakpoint_re_set_internal): Update.
4586 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4588 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4590 (jit_read_descriptor): Remove NULL check.
4591 (jit_event_handler): Add an assertion.
4593 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4595 * jit.h (struct jit_objfile_data): Split into...
4596 (struct jiter_objfile_data): ... this ...
4597 (struct jited_objfile_data): ... and this.
4598 * objfiles.h (struct objfile) <jit_data>: Remove.
4599 <jiter_data, jited_data>: New fields.
4600 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4601 (jiter_objfile_data::~jiter_objfile_data): ... this.
4602 (get_jit_objfile_data): Rename to ...
4603 (get_jiter_objfile_data): ... this.
4604 (add_objfile_entry): Update.
4605 (jit_read_descriptor): Use get_jiter_objfile_data.
4606 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4607 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4608 (jit_inferior_exit_hook): Use objfile's jited_data field.
4610 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4612 * jit.h: Forward-declare `struct minimal_symbol`.
4613 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4614 constructor, destructor, and an objfile* field.
4615 * jit.c (jit_objfile_data): Remove.
4616 (struct jit_objfile_data): Migrate from here to jit.h.
4617 (jit_objfile_data::~jit_objfile_data): New destructor
4618 implementation with code moved from free_objfile_data.
4619 (free_objfile_data): Delete.
4620 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4621 (jit_find_objf_with_entry_addr): Ditto.
4622 (jit_inferior_exit_hook): Ditto.
4623 (_initialize_jit): Remove the call to
4624 register_objfile_data_with_cleanup.
4625 * objfiles.h (struct objfile) <jit_data>: New field.
4627 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4629 * jit.h: Forward-declare `struct objfile`.
4630 (jit_event_handler): Add a second parameter, the JITer objfile.
4631 * jit.c (jit_read_descriptor): Change the signature to take the
4632 JITer objfile as an argument instead of the jit_program_space_data.
4633 (jit_inferior_init): Update the call to jit_read_descriptor.
4634 (jit_event_handler): Use the new JITer objfile argument when calling
4635 jit_read_descriptor.
4636 * breakpoint.c (handle_jit_event): Update the call to
4637 jit_event_handler to pass the JITer objfile.
4639 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4641 * gdbarch.c: Regenerate.
4642 * gdbarch.h: Regenerate.
4643 * gdbarch.sh (handle_segmentation_fault): Remove method.
4644 * infrun.c (handle_segmentation_fault): Remove.
4645 (print_signal_received_reason): Remove call to
4646 handle_segmentation_fault.
4648 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4650 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4651 Rename to sparc64_linux_report_signal_info and add siggnal
4653 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4654 instead of sparc64_linux_handle_segmentation_fault.
4656 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4658 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4659 i386_linux_report_signal_info instead of
4660 i386_linux_handle_segmentation_fault.
4661 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4662 to i386_linux_report_signal_info and add siggnal argument.
4663 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4664 of i386_linux_handle_segmentation_fault.
4665 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4666 to i386_linux_report_signal_info and add siggnal argument.
4668 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4670 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4673 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4675 * gdbarch.c: Regenerate.
4676 * gdbarch.h: Regenerate.
4677 * gdbarch.sh (report_signal_info): New method.
4678 * infrun.c (print_signal_received_reason): Invoke gdbarch
4679 report_signal_info hook if present.
4681 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * python/py-registers.c : Add 'unordered_map' include.
4684 (gdbpy_new_reggroup): Renamed to...
4685 (gdbpy_get_reggroup): ...this. Update to only create register
4686 group descriptors when needed.
4687 (gdbpy_reggroup_iter_next): Update.
4689 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4691 * python/py-registers.c (gdbpy_register_object_data): New static
4693 (gdbpy_register_object_data_init): New function.
4694 (gdbpy_new_register_descriptor): Renamed to...
4695 (gdbpy_get_register_descriptor): ...this, and update to reuse
4696 existing register descriptors where possible.
4697 (gdbpy_register_descriptor_iter_next): Update.
4698 (gdbpy_initialize_registers): Register new gdbarch data.
4700 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4702 * linux-nat.c (stopped_pids): Make static.
4704 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4707 * gdbtypes.c (ada_discrete_type_low_bound,
4708 ada_discrete_type_high_bound): Handle undefined bounds.
4710 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4712 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4714 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4717 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4719 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4720 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4721 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4722 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4723 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4726 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4728 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4729 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4730 which are deprecated in Guile 3.0.
4731 * configure.ac (try_guile_versions): Add "guile-3.0".
4732 * configure (try_guile_versions): Regenerate.
4733 * NEWS: Update entry.
4735 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4736 Doug Evans <dje@google.com>
4739 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4740 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4741 USING_GUILE_BEFORE_2_2.
4742 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4743 Change type to 'scm_t_port_type *'.
4744 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4745 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4746 parameter and honor it. Update callers.
4747 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4748 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4750 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4751 USING_GUILE_BEFORE_2_2.
4752 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4753 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4754 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4755 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4756 and 'SCM_PORT_TYPE'.
4757 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4758 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4759 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4760 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4761 [!USING_GUILE_BEFORE_2_2]: New functions.
4762 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4763 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4764 'gdbscm_memory_port_read'.
4765 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4766 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4767 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4769 (ioscm_init_memory_port): Remove.
4770 (ioscm_init_memory_port_stream): New function
4771 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4773 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4774 Return scm_from_uint (0).
4775 (gdbscm_set_memory_port_read_buffer_size_x)
4776 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4777 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4778 Return scm_from_uint (0).
4779 (gdbscm_set_memory_port_write_buffer_size_x)
4780 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4781 * configure.ac (try_guile_versions): Add "guile-2.2".
4782 * configure: Regenerate.
4785 2020-07-18 Tom Tromey <tom@tromey.com>
4787 * linux-nat.c (linux_multi_process): Remove.
4788 (linux_nat_target::supports_multi_process): Return true.
4790 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4792 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4793 (riscv_lookup_target_description): Return pointer out of
4795 * target-descriptions.c (allocate_target_description): Add
4797 (target_desc_deleter::operator()): Likewise.
4798 * target-descriptions.h (struct target_desc_deleter): Moved to
4800 (target_desc_up): Likewise.
4802 2020-07-17 Tom Tromey <tromey@adacore.com>
4804 * linux-nat.c (linux_nat_target::supports_non_stop)
4805 (linux_nat_target::always_non_stop_p): Use "true".
4806 (linux_nat_target::supports_disable_randomization): Use "true" and
4809 2020-07-16 Caroline Tice <cmtice@google.com>
4811 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4812 (RNGLIST_HEADER_SIZE64): New constant definition.
4813 (struct dwop_section_names): Add rnglists_dwo.
4814 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4815 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4816 (struct dwo_sections): Add rnglists field.
4817 (read_attribut_reprocess): Add tag parameter.
4818 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4819 (cu_debug_rnglists_section): New function (decl & definition).
4820 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4821 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4822 die whose range is being checked; get rnglist section from
4823 cu_debug_rnglists_section, to get from either objfile or dwo file as
4824 appropriate. Add cases for DW_RLE_base_addressx,
4825 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4826 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4827 test inside if-condition and updating complaint message.
4828 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4829 dwarf2_rnglists_process.
4830 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4831 dwarf2_ranges_process.
4832 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4833 need_ranges_base and update comment appropriately. Also pass die tag
4834 to dwarf2_ranges_read.
4835 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4836 need_ranges_base and update comment appropriately. Also pass die tag
4837 to dwarf2_ranges_process.
4838 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4839 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4840 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4841 need_ranges_base and update comment appropriately. Also pass die tag
4842 to read_attribute_reprocess and dwarf2_ranges_read.
4843 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4844 and update function comment appropriately.
4845 (read_loclist_index): Call read_loclists_rnglists_header instead of
4846 read_loclist_header.
4847 (read_rnglist_index): New function.
4848 (read_attribute_reprocess): Add tag parameter. Add code for
4849 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4850 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4852 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4854 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4857 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4859 * arch-utils.c (show_architecture): Update formatting of messages.
4861 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4863 * gdbtypes.h (struct type) <bounds>: Handle array and string
4865 * ada-lang.c (assign_aggregate): Use type::bounds on
4867 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4868 * c-varobj.c (c_number_of_children): Likewise.
4869 (c_describe_child): Likewise.
4870 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4871 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4872 (f_type_print_base): Likewise.
4873 * f-valprint.c (f77_array_offset_tbl): Likewise.
4874 (f77_get_upperbound): Likewise.
4875 (f77_print_array_1): Likewise.
4876 * guile/scm-type.c (gdbscm_type_range): Likewise.
4877 * m2-typeprint.c (m2_array): Likewise.
4878 (m2_is_long_set_of_type): Likewise.
4879 * m2-valprint.c (get_long_set_bounds): Likewise.
4880 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4881 * python/py-type.c (typy_range): Likewise.
4882 * rust-lang.c (rust_internal_print_type): Likewise.
4883 * type-stack.c (type_stack::follow_types): Likewise.
4884 * valarith.c (value_subscripted_rvalue): Likewise.
4885 * valops.c (value_cast): Likewise.
4887 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4889 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4890 callers to use the equivalent accessor methods.
4892 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4894 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4895 (struct type) <bit_stride>: New method.
4896 (TYPE_BIT_STRIDE): Remove.
4897 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4899 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4901 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4902 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4903 callers to use the equivalent accessor methods instead.
4905 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4907 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4908 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4909 callers to use the equivalent accessor methods instead.
4911 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4913 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4914 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4915 to use dynamic_prop::kind.
4917 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4919 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4920 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4921 to get the bound property's kind and check against
4924 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4926 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4927 all callers to use type::range_bounds followed by
4928 dynamic_prop::{low,high}.
4930 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4932 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4933 const_val, set_const_val, baton, set_locexpr, set_loclist,
4934 set_addr_offset, variant_parts, set_variant_parts,
4935 original_type, set_original_type>: New methods.
4936 <kind>: Rename to...
4937 <m_kind>: ... this. Update all users to use the new methods
4939 <data>: Rename to...
4940 <m_data>: ... this. Update all users to use the new methods
4943 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4945 * gdbtypes.c (get_discrete_bounds): Return failure if
4946 the range type's bounds are not both defined and constant
4948 (get_array_bounds): Update comment. Remove undefined bound check.
4950 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4952 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4953 the type::bounds method directly.
4955 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4957 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4958 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4959 are used to set the range type's bounds to use set_bounds.
4961 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4963 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4965 2020-07-10 Pedro Alves <pedro@palves.net>
4967 * gdbthread.h (inferior_ref): Define.
4968 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4969 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4971 (scoped_restore_current_thread::restore):
4972 Adjust to gdb::ref_ptr.
4973 (scoped_restore_current_thread::~scoped_restore_current_thread):
4974 Remove manual decref handling.
4975 (scoped_restore_current_thread::scoped_restore_current_thread):
4977 inferior_ref::new_reference/thread_info_ref::new_reference.
4978 Incref the thread before calling get_frame_id instead of after.
4979 Let TARGET_CLOSE_ERROR propagate.
4981 2020-07-10 Pedro Alves <pedro@palves.net>
4983 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4984 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4985 NOT_AVAILABLE_ERROR.
4986 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4987 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4989 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4990 Pedro Alves <pedro@palves.net>
4993 * infrun.c (threads_are_resumed_pending_p): Delete.
4994 (do_target_wait): Remove threads_are_executing and
4995 threads_are_resumed_pending_p checks from the inferior_matches
4996 lambda. Update comments.
4998 2020-07-10 Pedro Alves <pedro@palves.net>
5001 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
5004 2020-07-10 Pedro Alves <pedro@palves.net>
5007 * infrun.c (handle_no_resumed): Handle multiple targets.
5009 2020-07-10 Pedro Alves <pedro@palves.net>
5012 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
5015 2020-07-10 Pedro Alves <pedro@palves.net>
5018 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
5019 threads, not all threads.
5021 2020-07-10 Pedro Alves <pedro@palves.net>
5024 * remote.c (remote_target::open_1): Pass remote target pointer as
5025 data to create_async_event_handler.
5026 (remote_async_inferior_event_handler): Mark async event handler
5027 before returning if the remote target still has either pending
5028 events or unacknowledged notifications.
5030 2020-07-10 John Baldwin <jhb@FreeBSD.org>
5032 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
5034 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
5037 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5039 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
5042 2020-07-09 John Baldwin <jhb@FreeBSD.org>
5044 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
5045 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
5046 AT_FREEBSD_PS_STRINGS.
5048 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
5050 * auto-load.c (auto_load_objfile_script_1): Convert drive part
5051 of debugfile path on Windows.
5053 2020-07-08 John Baldwin <jhb@FreeBSD.org>
5055 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
5058 2020-07-08 Tom Tromey <tromey@adacore.com>
5060 * ada-lang.c (ada_exception_message_1): Use read_memory.
5062 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5065 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
5066 special handling for inline frames.
5067 * findvar.c (value_of_register_lazy): Skip inline frames when
5068 creating lazy register values.
5069 * frame.c (frame_id_computed_p): Delete definition.
5070 * frame.h (frame_id_computed_p): Delete declaration.
5072 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5074 * NEWS: Mention additions to Python API.
5075 * python/py-arch.c (archpy_register_groups): New function.
5076 (arch_object_methods): Add 'register_groups' method.
5077 * python/py-registers.c (reggroup_iterator_object): New struct.
5078 (reggroup_object): New struct.
5079 (gdbpy_new_reggroup): New function.
5080 (gdbpy_reggroup_to_string): New function.
5081 (gdbpy_reggroup_name): New function.
5082 (gdbpy_reggroup_iter): New function.
5083 (gdbpy_reggroup_iter_next): New function.
5084 (gdbpy_new_reggroup_iterator): New function
5085 (gdbpy_initialize_registers): Register new types.
5086 (reggroup_iterator_object_type): Define new Python type.
5087 (gdbpy_reggroup_getset): New static global.
5088 (reggroup_object_type): Define new Python type.
5089 * python/python-internal.h
5091 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5093 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
5094 * python/py-arch.c (archpy_registers): New function.
5095 (arch_object_methods): Add 'registers' method.
5096 * python/py-registers.c: New file.
5097 * python/python-internal.h
5098 (gdbpy_new_register_descriptor_iterator): Declare.
5099 (gdbpy_initialize_registers): Declare.
5100 * python/python.c (do_start_initialization): Call
5101 gdbpy_initialize_registers.
5102 * NEWS: Mention additions to the Python API.
5104 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5106 * NEWS: Mention new Python API method.
5107 * python/py-unwind.c (pending_framepy_architecture): New function.
5108 (pending_frame_object_methods): Add architecture method.
5110 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5112 * gdbarch.c: Regenerate.
5113 * gdbarch.h: Regenerate.
5114 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
5115 (gdbarch_data): Use internal_error for the case where
5116 deprecated_set_gdbarch_data was originally needed.
5117 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
5118 and use passed in obstack.
5119 (libunwind_frame_set_descr): Should no longer get back NULL from
5121 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
5123 * user-regs.c (user_regs_init): Update parameters, and use passed
5125 (user_reg_add): Should no longer get back NULL from gdbarch_data.
5126 (_initialize_user_regs): Register as a pre-init gdbarch data type.
5128 2020-07-06 Tom de Vries <tdevries@suse.de>
5130 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
5131 End-Of-Sequence in lte_is_less_than.
5132 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
5133 "gdb: Don't reorder line table entries too much when sorting".
5135 2020-07-06 Tom de Vries <tdevries@suse.de>
5138 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
5140 2020-07-05 Tom de Vries <tdevries@suse.de>
5143 * inferior.h (struct infcall_suspend_state_deleter): If available, use
5144 std::uncaught_exceptions instead of deprecated
5145 std::uncaught_exception.
5147 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5149 * macroexp.h (macro_stringify): Return
5150 gdb::unique_xmalloc_ptr<char>.
5151 * macroexp.c (macro_stringify): Likewise.
5152 * macrotab.c (fixup_definition): Update.
5154 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5156 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5157 (lex_one_token): Update.
5158 * macroexp.c (struct macro_buffer) <release>: Return
5159 gdb::unique_xmalloc_ptr<char>.
5160 (macro_stringify): Update.
5161 (macro_expand): Update.
5162 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5163 * macroexp.h (macro_expand_next): Likewise.
5165 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5167 * macroexp.h (macro_lookup_ftype): Remove.
5168 (macro_expand, macro_expand_once, macro_expand_next): Remove
5169 lookup function parameters, add scope parameter.
5170 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5171 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5172 * macroscope.h (standard_macro_lookup): Change parameter type
5174 * macroscope.c (standard_macro_lookup): Likewise.
5175 * c-exp.y (lex_one_token): Update.
5176 * macrocmd.c (macro_expand_command): Likewise.
5177 (macro_expand_once_command): Likewise.
5179 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5181 * inf-loop.c (inferior_event_handler): Remove client_data param.
5182 * inf-loop.h (inferior_event_handler): Likewise.
5183 * infcmd.c (step_1): Adjust.
5184 * infrun.c (proceed): Adjust.
5185 (fetch_inferior_event): Remove client_data param.
5186 (infrun_async_inferior_event_handler): Adjust.
5187 * infrun.h (fetch_inferior_event): Remove `void *` param.
5188 * linux-nat.c (handle_target_event): Adjust.
5189 * record-btrace.c (record_btrace_handle_async_inferior_event):
5191 * record-full.c (record_full_async_inferior_event_handler):
5193 * remote.c (remote_async_inferior_event_handler): Adjust.
5195 2020-07-01 Tom Tromey <tom@tromey.com>
5197 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5198 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5200 2020-07-01 Tom Tromey <tom@tromey.com>
5202 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5204 (tui_win_info::make_window): Merge with
5205 tui_gen_win_info::make_window.
5206 (tui_win_info::make_visible): Move from tui_gen_win_info.
5207 * tui/tui-win.c (tui_win_info::max_width): Move from
5209 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5211 <window_factory>: Likewise.
5212 * tui/tui-layout.c (tui_win_info::resize): Move from
5214 (make_standard_window): Change return type.
5215 (get_locator_window, tui_get_window_by_name): Likewise.
5216 (tui_layout_window::apply): Remove a cast.
5217 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5218 (struct tui_win_info): Merge with tui_gen_win_info.
5219 (struct tui_gen_win_info): Remove.
5221 2020-07-01 Tom Tromey <tom@tromey.com>
5223 * tui/tui-stack.h (struct tui_locator_window): Derive from
5225 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5226 <can_box>: New method.
5228 2020-07-01 Tom Tromey <tom@tromey.com>
5230 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5232 2020-07-01 Tom Tromey <tom@tromey.com>
5234 * tui/tui-regs.c (tui_data_window::display_registers_from)
5235 (tui_data_window::display_registers_from)
5236 (tui_data_window::first_data_item_displayed)
5237 (tui_data_window::delete_data_content_windows): Update.
5238 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5240 (tui_data_window::check_register_values): Update.
5241 (tui_data_item_window::rerender): Add parameters. Update.
5242 (tui_data_item_window::refresh_window): Remove.
5243 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5245 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5247 <refresh_window, max_height, min_height>: Remove.
5248 <rerender>: Add parameters.
5249 <x, y, visible>: New members.
5250 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5251 <m_item_width>: New member.
5253 2020-07-01 Tom Tromey <tom@tromey.com>
5255 * tui/tui-regs.c (tui_data_window::show_register_group)
5256 (tui_data_window::check_register_values): Update.
5257 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5260 2020-07-01 Tom Tromey <tom@tromey.com>
5262 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5265 2020-07-01 Tom Tromey <tom@tromey.com>
5267 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5268 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5270 2020-07-01 Tom Tromey <tom@tromey.com>
5272 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5273 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5274 (struct tui_line_or_address): Move from tui-data.h.
5275 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5276 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5277 (tui_cmd_window, tui_source_window_base, tui_source_window)
5278 (tui_disasm_window): Don't declare.
5279 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5281 (SINGLE_KEY): Move to tui-stack.c.
5283 2020-07-01 Tom Tromey <tom@tromey.com>
5285 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5287 * tui/tui-regs.c (class tab_expansion_file): New.
5288 (tab_expansion_file::write): New method.
5289 (tui_register_format): Change return type. Use
5291 (tui_get_register, tui_data_window::display_registers_from)
5292 (tui_data_item_window::rerender): Update.
5293 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5294 * tui/tui-io.c (tui_expand_tabs): Remove.
5296 2020-07-01 Tom Tromey <tom@tromey.com>
5298 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5300 2020-07-01 Fangrui Song <maskray@google.com>
5302 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5304 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5306 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5307 forms for DW_AT_associated and DW_AT_allocated attributes,
5308 which is already checked in function attr_to_dynamic_prop.
5310 2020-06-30 Tom Tromey <tromey@adacore.com>
5312 * dwarf2/read.c (quirk_rust_enum): Correctly call
5313 alloc_rust_variant for default-less enum.
5315 2020-06-30 Tom Tromey <tromey@adacore.com>
5318 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5321 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5323 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5324 * gdbarch.h: Re-generate.
5326 2020-06-28 Tom Tromey <tom@tromey.com>
5328 * command.h (cmd_types): Remove.
5329 (cmd_type): Don't declare.
5330 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5332 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5333 * cli/cli-decode.c (cmd_type): Remove.
5335 2020-06-27 Pedro Alves <palves@redhat.com>
5337 * fork-child.c (prefork_hook): Adjust.
5338 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5340 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5341 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5342 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5343 Remove declarations.
5344 (struct inferior) <set_tty, tty>: New methods.
5345 (struct inferior) <terminal>: Rename to ...
5346 (struct inferior) <m_terminal>: ... this and make private.
5347 * main.c (captured_main_1): Adjust.
5348 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5349 (mi_cmd_inferior_tty_show): Adjust.
5350 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5351 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5353 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5355 * configure.ac: Add --enable-libctf: handle --disable-static
5357 * acinclude.m4: sinclude ../config/enable.m4.
5358 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5359 (LIBCTF): Substitute in.
5360 (CTF_DEPS): New, likewise.
5361 (CLIBS): libctf needs symbols from libbfd: move earlier.
5362 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5364 * ctfread.c: Surround in ENABLE_LIBCTF.
5365 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5366 * configure: Regenerate.
5367 * config.in: Likewise.
5369 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5371 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5373 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5375 * inferior.h (struct inferior) <terminal>: Change type to
5376 gdb::unique_xmalloc_ptr<char>.
5377 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5378 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5379 field, adjust to unique pointer.
5380 (get_inferior_io_terminal): Adjust to unique pointer.
5382 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5384 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5385 registers, not just the known core set of registers.
5387 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5389 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5390 fflags, frm, and fcsr registers.
5391 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5393 (riscv_tdesc_unknown_reg): New function.
5394 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5395 tdesc_use_registers.
5396 * riscv-tdep.h (struct gdbarch_tdep): Add
5397 unknown_csrs_first_regnum, unknown_csrs_count,
5398 duplicate_fflags_regnum, duplicate_frm_regnum, and
5399 duplicate_fcsr_regnum fields.
5401 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5403 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5404 callback, use the callback (when not null) to help number unknown
5406 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5407 (tdesc_use_registers): Add extra parameter to declaration.
5409 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5411 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5413 (class riscv_pending_register_alias): Likewise.
5414 (riscv_register_feature::register_info): Change 'required_p' field
5415 to 'required', and change its type. Add 'check' member function.
5416 (riscv_register_feature::register_info::check): Define new member
5418 (riscv_xreg_feature): Change initialisation of 'required' field.
5419 (riscv_freg_feature): Likewise.
5420 (riscv_virtual_feature): Likewise.
5421 (riscv_csr_feature): Likewise.
5422 (riscv_check_tdesc_feature): Take extra parameter, the csr
5423 tdesc_feature, rewrite the function to use the new
5424 riscv_register_feature::register_info::check function.
5425 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5427 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5429 * features/Makefile: Remove all references to the deleted files
5431 * features/riscv/32bit-csr.c: Deleted.
5432 * features/riscv/32bit-csr.xml: Deleted.
5433 * features/riscv/64bit-csr.c: Deleted.
5434 * features/riscv/64bit-csr.xml: Deleted.
5435 * features/riscv/rebuild-csr-xml.sh: Deleted.
5437 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5439 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5440 whitespace error for declaration of names member variable.
5441 (struct riscv_register_feature): Add new prefer_first_name member
5442 variable, and fix whitespace error in declaration of registers.
5443 (riscv_xreg_feature): Initialize prefer_first_name field.
5444 (riscv_freg_feature): Likewise.
5445 (riscv_virtual_feature): Likewise.
5446 (riscv_csr_feature): Likewise.
5447 (riscv_register_name): Expand on comments. Remove register name
5448 modifications for CSR and virtual registers.
5450 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5452 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5455 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5457 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5459 (class riscv_pending_register_alias): New class.
5460 (riscv_check_tdesc_feature): Take vector of pending aliases and
5461 populate it as appropriate.
5462 (riscv_setup_register_aliases): Delete.
5463 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5464 to riscv_check_tdesc_feature in all cases. Use the vector to
5465 create the register aliases.
5467 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5469 * sol2-tdep.c (sol2_static_transform_name): Remove.
5470 (sol2_init_abi): Don't register it.
5471 * gdbarch.sh (static_transform_name): Remove.
5472 * gdbarch.c, gdbarch.h: Regenerate.
5474 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5475 gdbarch_static_transform_name.
5476 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5477 * stabsread.c (define_symbol) <'X'>: Remove.
5478 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5481 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5482 <'S'>: Remove call to gdbarch_static_transform_name.
5484 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5486 * procfs.c (procfs_pre_trace): New function.
5487 (procfs_target::create_inferior): Pass it to fork_inferior.
5489 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5491 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5492 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5493 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5494 sol2-tdep.o, sparc-sol2-tdep.o.
5495 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5496 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5497 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5498 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5500 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5502 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5503 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5505 Remove calls to set_gdbarch_skip_solib_resolver,
5506 set_gdbarch_core_pid_to_str.
5507 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5508 (i386_sol2_static_transform_name): Remove.
5509 (i386_sol2_init_abi): Call sol2_init_abi.
5510 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5511 set_gdbarch_static_transform_name,
5512 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5513 Use sol2_sigtramp_p.
5514 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5515 (sol2_sigtramp_p): New function.
5516 (sol2_static_transform_name): New function.
5517 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5518 (sol2_init_abi): New function.
5519 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5520 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5521 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5522 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5523 (sparc_sol2_static_transform_name): Remove.
5524 (sparc32_sol2_init_abi): Call sol2_init_abi.
5525 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5526 set_gdbarch_static_transform_name,
5527 set_gdbarch_skip_solib_resolver,
5528 set_gdbarch_core_pid_to_str.
5529 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5530 (sparc_sol2_static_transform_name): Remove
5531 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5532 call sol2_sigtramp_p.
5533 (sparc64_sol2_init_abi): Call sol2_init_abi.
5534 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5535 set_gdbarch_static_transform_name,
5536 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5538 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5540 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5541 * exec.c (validate_exec_file): If from_tty, set both
5542 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5543 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5544 and from_tty, unconditionally ask a confirmation.
5546 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5548 * target-descriptions.c (tdesc_architecture_name): Protect against
5549 NULL pointer dereference.
5550 (maint_print_xml_tdesc_cmd): New function.
5551 (_initialize_target_descriptions): Register new 'maint print
5552 xml-tdesc' command and give it the filename completer.
5553 * NEWS: Mention new 'maint print xml-tdesc' command.
5555 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5557 * target-descriptions.c (class tdesc_compatible_info): New class.
5558 (struct target_desc): Change type of compatible vector.
5559 (tdesc_compatible_p): Update for change in type of
5560 target_desc::compatible.
5561 (tdesc_compatible_info_list): New function.
5562 (tdesc_compatible_info_arch_name): New function.
5563 (tdesc_add_compatible): Update for change in type of
5564 target_desc::compatible.
5565 (print_c_tdesc::visit_pre): Likewise.
5567 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5569 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5570 whitespace to underscore.
5571 (maint_print_c_tdesc_cmd): Use fake filename for target
5572 descriptions that came from the target.
5573 (_initialize_target_descriptions): Add filename command completion
5574 for 'maint print c-tdesc'.
5576 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5578 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5581 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5583 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5585 (dwarf2_find_location_expression): Likewise.
5586 (call_site_parameter_matches): Likewise.
5587 (dwarf2_compile_expr_to_ax): Likewise.
5588 (disassemble_dwarf_expression): Likewise.
5589 (loclist_describe_location): Likewise.
5591 2020-06-23 Pedro Alves <palves@redhat.com>
5593 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5594 progspace-and-thread.h. Include scoped-mock-context.h instead.
5595 (register_to_value_test): Use scoped_mock_context.
5596 * regcache.c: Include "scoped-mock-context.h".
5597 (cooked_read_test): Don't error out if a target is already pushed.
5598 Use scoped_mock_context. Adjust.
5599 * scoped-mock-context.h: New file.
5601 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5603 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5605 (ada_language::is_string_type_p): New member function.
5606 * c-lang.c (c_language_data): Delete la_is_string_type_p
5608 (cplus_language_data): Likewise.
5609 (asm_language_data): Likewise.
5610 (minimal_language_data): Likewise.
5611 * d-lang.c (d_language_data): Likewise.
5612 * f-lang.c (f_is_string_type_p): Delete function, implementation
5613 moved to f_language::is_string_type_p.
5614 (f_language_data): Delete la_is_string_type_p initializer.
5615 (f_language::is_string_type_p): New member function,
5616 implementation from f_is_string_type_p.
5617 * go-lang.c (go_is_string_type_p): Delete function, implementation
5618 moved to go_language::is_string_type_p.
5619 (go_language_data): Delete la_is_string_type_p initializer.
5620 (go_language::is_string_type_p): New member function,
5621 implementation from go_is_string_type_p.
5622 * language.c (language_defn::is_string_type_p): Define new member
5624 (default_is_string_type_p): Make static, add comment copied from
5626 (unknown_language_data): Delete la_is_string_type_p initializer.
5627 (unknown_language::is_string_type_p): New member function.
5628 (auto_language_data): Delete la_is_string_type_p initializer.
5629 (auto_language::is_string_type_p): New member function.
5630 * language.h (language_data): Delete la_is_string_type_p field.
5631 (language_defn::is_string_type_p): Declare new function.
5632 (default_is_string_type_p): Delete desclaration, move comment to
5634 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5635 moved to m2_language::is_string_type_p.
5636 (m2_language_data): Delete la_is_string_type_p initializer.
5637 (m2_language::is_string_type_p): New member function,
5638 implementation from m2_is_string_type_p.
5639 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5641 * opencl-lang.c (opencl_language_data): Likewise.
5642 * p-lang.c (pascal_is_string_type_p): Delete function,
5643 implementation moved to pascal_language::is_string_type_p.
5644 (pascal_language_data): Delete la_is_string_type_p initializer.
5645 (pascal_language::is_string_type_p): New member function,
5646 implementation from pascal_is_string_type_p.
5647 * rust-lang.c (rust_is_string_type_p): Delete function,
5648 implementation moved to rust_language::is_string_type_p.
5649 (rust_language_data): Delete la_is_string_type_p initializer.
5650 (rust_language::is_string_type_p): New member function,
5651 implementation from rust_is_string_type_p.
5652 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5655 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5657 * ada-lang.c (ada_language_data): Delete la_print_typedef
5659 (ada_language::print_typedef): New member function.
5660 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5661 (cplus_language_data): Likewise.
5662 (asm_language_data): Likewise.
5663 (minimal_language_data): Likewise.
5664 * d-lang.c (d_language_data): Likewise.
5665 * f-lang.c (f_language_data): Likewise.
5666 (f_language::print_typedef): New member function.
5667 * go-lang.c (go_language_data): Delete la_print_typedef
5669 * language.c (language_defn::print_typedef): Define member
5671 (unknown_language_data): Delete la_print_typedef initializer.
5672 (unknown_language::print_typedef): New member function.
5673 (auto_language_data): Delete la_print_typedef initializer.
5674 (auto_language::print_typedef): New member function.
5675 * language.h (language_data): Delete la_print_typedef field.
5676 (language_defn::print_typedef): Declare new member function.
5677 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5678 (default_print_typedef): Delete declaration.
5679 * m2-lang.c (m2_language_data): Delete la_print_typedef
5681 (m2_language::print_typedef): New member function.
5682 * objc-lang.c (objc_language_data): Delete la_print_typedef
5684 * opencl-lang.c (opencl_language_data): Likewise.
5685 * p-lang.c (pascal_language_data): Likewise.
5686 (pascal_language::print_typedef): New member function.
5687 * rust-lang.c (rust_print_typedef): Delete function,
5688 implementation moved to rust_language::print_typedef.
5689 (rust_language): Delete la_print_typedef initializer.
5690 (rust_language::print_typedef): New member function,
5691 implementation from rust_print_typedef.
5692 * typeprint.c (default_print_typedef): Delete.
5694 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5696 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5697 (ada_language::printstr): New member function.
5698 * c-lang.c (c_language_data): Delete la_printstr initializer.
5699 (cplus_language_data): Likewise.
5700 (asm_language_data): Likewise.
5701 (minimal_language_data): Likewise.
5702 * d-lang.c (d_language_data): Likewise.
5703 * f-lang.c (f_printstr): Rename to f_language::printstr.
5704 (f_language_data): Delete la_printstr initializer.
5705 (f_language::printstr): New member function, implementation from
5707 * go-lang.c (go_language_data): Delete la_printstr initializer.
5708 * language.c (language_defn::printstr): Define new member
5710 (unk_lang_printstr): Delete.
5711 (unknown_language_data): Delete la_printstr initializer.
5712 (unknown_language::printstr): New member function.
5713 (auto_language_data): Delete la_printstr initializer.
5714 (auto_language::printstr): New member function.
5715 * language.h (language_data): Delete la_printstr field.
5716 (language_defn::printstr): Declare new member function.
5717 (LA_PRINT_STRING): Update call to printstr.
5718 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5719 (m2_language_data): Delete la_printstr initializer.
5720 (m2_language::printstr): New member function, implementation from
5722 * objc-lang.c (objc_language_data): Delete la_printstr
5724 * opencl-lang.c (opencl_language_data): Likewise.
5725 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5726 (pascal_language_data): Delete la_printstr initializer.
5727 (pascal_language::printstr): New member function, implementation
5728 from pascal_printstr.
5729 * p-lang.h (pascal_printstr): Delete declaration.
5730 * rust-lang.c (rust_printstr): Update header comment.
5731 (rust_language_data): Delete la_printstr initializer.
5732 (rust_language::printstr): New member function.
5734 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5736 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5737 (ada_language::printchar): New member function.
5738 * c-lang.c (c_language_data): Delete la_printchar initializer.
5739 (cplus_language_data): Likewise.
5740 (asm_language_data): Likewise.
5741 (minimal_language_data): Likewise.
5742 * d-lang.c (d_language_data): Likewise.
5743 * f-lang.c (f_printchar): Rename to f_language::printchar.
5744 (f_language_data): Delete la_printchar initializer.
5745 (f_language::printchar): New member function, implementation from
5747 * go-lang.c (go_language_data): Delete la_printchar initializer.
5748 * language.c (unk_lang_printchar): Delete.
5749 (language_defn::printchar): Define new member function.
5750 (unknown_language_data): Delete la_printchar initializer.
5751 (unknown_language::printchar): New member function.
5752 (auto_language_data): Delete la_printchar initializer.
5753 (auto_language::printchar): New member function.
5754 * language.h (language_data): Delete la_printchar field.
5755 (language_defn::printchar): Declare new member function.
5756 (LA_PRINT_CHAR): Update call to printchar.
5757 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5758 (m2_language::printchar): New member function.
5759 * objc-lang.c (objc_language_data): Delete la_printchar
5761 * opencl-lang.c (opencl_language_data): Likewise.
5762 * p-lang.c (pascal_language_data): Delete la_printchar
5764 (pascal_language::printchar): New member function.
5765 * rust-lang.c (rust_printchar): Rename to
5766 rust_language::printchar.
5767 (rust_language_data): Delete la_printchar initializer.
5768 (rust_language::printchar): New member function, implementation
5769 from rust_printchar.
5771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5773 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5774 (ada_language_data): Delete la_emitchar initializer.
5775 (ada_language::emitchar): New member function, implementation from
5777 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5778 (cplus_language_data): Likewise.
5779 (asm_language_data): Likewise.
5780 (minimal_language_data): Likewise.
5781 * d-lang.c (d_language_data): Likewise.
5782 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5783 (f_language_data): Delete la_emitchar initializer.
5784 (f_language::emitchar): New member function, implementation from
5786 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5787 * language.c (unk_lang_emit_char): Delete.
5788 (language_defn::emitchar): New member function definition.
5789 (unknown_language_data): Delete la_emitchar initializer.
5790 (unknown_language::emitchar): New member function.
5791 (auto_language_data): Delete la_emitchar initializer.
5792 (auto_language::emitchar): New member function.
5793 * language.h (language_data): Delete la_emitchar field.
5794 (language_defn::emitchar): New member field declaration.
5795 (LA_EMIT_CHAR): Update call to emitchar.
5796 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5797 (m2_language_data): Delete la_emitchar initializer.
5798 (m2_language::emitchar): New member function, implementation from
5800 * objc-lang.c (objc_language_data): Delete la_emitchar
5802 * opencl-lang.c (opencl_language_data): Likewise.
5803 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5804 (pascal_language_data): Delete la_emitchar initializer.
5805 (pascal_language::emitchar): New member function, implementation
5806 from pascal_emit_char.
5807 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5808 (rust_language_data): Delete la_emitchar initializer.
5809 (rust_language::emitchar): New member function, implementation
5812 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5814 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5815 (ada_language_data): Delete la_post_parser initializer.
5816 (ada_language::post_parser): New member function.
5817 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5818 (cplus_language_data): Likewise.
5819 (asm_language_data): Likewise.
5820 (minimal_language_data): Likewise.
5821 * d-lang.c (d_language_data): Likewise.
5822 * f-lang.c (f_language_data): Likewise.
5823 * go-lang.c (go_language_data): Likewise.
5824 * language.c (unknown_language_data): Likewise.
5825 (auto_language_data): Likewise.
5826 * language.h (language_data): Delete la_post_parser field.
5827 (language_defn::post_parser): New member function.
5828 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5829 * objc-lang.c (objc_language_data): Likewise.
5830 * opencl-lang.c (opencl_language_data): Likewise.
5831 * p-lang.c (pascal_language_data): Likewise.
5832 * parse.c (parse_exp_in_context): Update call to post_parser.
5833 (null_post_parser): Delete definition.
5834 * parser-defs.h (null_post_parser): Delete declaration.
5835 * rust-lang.c (rust_language_data): Delete la_post_parser
5838 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5840 * ada-lang.c (parse): Rename to ada_language::parser.
5841 (ada_language_data): Delete la_parser initializer.
5842 (ada_language::parser): New member function, implementation from
5844 * c-lang.c (c_language_data): Delete la_parser initializer.
5845 (cplus_language_data): Likewise.
5846 (asm_language_data): Likewise.
5847 (minimal_language_data): Likewise.
5848 * d-lang.c (d_language_data): Likewise.
5849 (d_language::parser): New member function.
5850 * f-lang.c (f_language_data): Delete la_parser initializer.
5851 (f_language::parser): New member function.
5852 * go-lang.c (go_language_data): Delete la_parser initializer.
5853 (go_language::parser): New member function.
5854 * language.c (unk_lang_parser): Delete.
5855 (language_defn::parser): Define new member function.
5856 (unknown_language_data): Delete la_parser initializer.
5857 (unknown_language::parser): New member function.
5858 (auto_language_data): Delete la_parser initializer.
5859 (auto_language::parser): New member function.
5860 * language.h (language_data): Delete la_parser field.
5861 (language_defn::parser): Declare new member function.
5862 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5863 (m2_language::parser): New member function.
5864 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5865 * opencl-lang.c (opencl_language_data): Likewise.
5866 * p-lang.c (pascal_language_data): Likewise.
5867 (pascal_language::parser): New member function.
5868 * parse.c (parse_exp_in_context): Update call to parser.
5869 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5870 (rust_language::parser): New member function.
5872 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5874 * top.c (print_gdb_configuration): Print --with-python-libdir
5875 configuration value.
5877 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5879 * NEWS: Mention change to the alias command.
5881 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5884 (alias_command_completer)
5885 (make_alias_options_def_group): New functions.
5886 (alias_opts, alias_option_defs): New struct and array.
5887 (alias_usage_error): Update usage.
5888 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5889 Use option framework.
5890 (_initialize_cli_cmds): Update alias command help.
5891 Update aliases command help.
5893 Add NULL for new default_args lookup_cmd argument.
5894 (valid_command_p): Rename to validate_aliased_command.
5895 Add NULL for new default_args lookup_cmd argument. Verify that the
5896 aliased_command has no default args.
5897 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5898 (lookup_cmd_1, lookup_cmd): New argument default_args.
5900 Add NULL for new default_args lookup_cmd argument.
5901 (print_help_for_command): Show default args under the layout
5902 alias some_alias = some_aliased_cmd some_alias_default_arg.
5903 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5904 xfree default_args in destructor.
5905 * cli/cli-script.c (process_next_line, do_define_command):
5906 Add NULL for new default_args lookup_cmd argument.
5907 * command.h: Declare new default_args argument in lookup_cmd
5909 * completer.c (complete_line_internal_1):
5910 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5911 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5912 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5914 * infcmd.c (_initialize_infcmd): Likewise.
5915 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5916 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5917 * python/py-param.c (add_setshow_generic): Likewise.
5918 * remote.c (_initialize_remote): Likewise.
5919 * top.c (execute_command): Prepend default_args if command has some.
5921 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5922 * tracepoint.c (validate_actionline, encode_actions_1):
5923 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5925 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5927 * jit.c (jit_read_descriptor): Use bool as the return type.
5928 (jit_breakpoint_re_set_internal): Use bool as the return type.
5929 Invert the return value logic; return true if the jit breakpoint
5930 has been successfully initialized.
5931 (jit_inferior_init): Update the call to
5932 jit_breakpoint_re_set_internal.
5934 2020-06-22 Pedro Alves <palves@redhat.com>
5937 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5938 Use the current inferior instead. Don't return
5939 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5941 * sol-thread.c (sol_thread_target::wait): Don't reference
5943 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5944 (sol_update_thread_list_callback): Use the current inferior's pid
5945 instead of inferior_ptid.
5947 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5949 * procfs.c: Cleanup many comments.
5951 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5952 (AFTER_WATCHFLAG): Replace by value.
5954 (MAIN_PROC_NAME_FORMAT): Inline ...
5955 (create_procinfo): ... here.
5957 (procfs_debug_inferior): Remove SYS_exec handling.
5958 (syscall_is_exec): Likewise.
5959 (procfs_set_exec_trap): Likewise.
5961 (syscall_is_lwp_exit): Inline in callers.
5962 (syscall_is_exit): Likewise.
5963 (syscall_is_exec): Likewise.
5964 (syscall_is_lwp_create): Likewise.
5966 (invalidate_cache): Remove #if 0 code.
5968 (make_signal_thread_runnable): Remove.
5969 (procfs_target::resume): Remove #if 0 code.
5971 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5974 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5976 (procfs_target::create_inferior): ... here.
5978 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980 * exec.c (validate_exec_file): Ensure the build-id is up to
5981 date by calling reopen_exec_file (that checks file timestamp
5982 to decide to re-read the file).
5984 2020-06-18 Pedro Alves <palves@redhat.com>
5987 * gdbthread.h (delete_thread, delete_thread_silent)
5988 (find_thread_ptid): Update comments.
5989 * thread.c (current_thread_): New global.
5990 (is_current_thread): Move higher, and reimplement.
5991 (inferior_thread): Reimplement.
5992 (set_thread_exited): Use bool. Add assertions.
5993 (add_thread_silent): Simplify thread-reuse handling by always
5994 calling delete_thread.
5995 (delete_thread): Remove intro comment.
5996 (find_thread_ptid): Skip exited threads.
5997 (switch_to_thread_no_regs): Write to current_thread_.
5998 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5999 INFERIOR_PTID. Clear current_thread_.
6001 2020-06-18 Pedro Alves <palves@redhat.com>
6003 * aix-thread.c (pd_update): Use switch_to_thread.
6005 2020-06-18 Pedro Alves <palves@redhat.com>
6007 * ravenscar-thread.c (ravenscar_thread_target): Update.
6008 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
6009 (ravenscar_thread_target::add_active_thread): ... this. Don't
6010 set m_base_ptid here. Update to avoid referencing inferior_ptid.
6011 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
6013 2020-06-18 Pedro Alves <palves@redhat.com>
6015 * nat/windows-nat.c (current_windows_thread): Remove.
6016 * nat/windows-nat.h (current_windows_thread): Remove.
6017 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
6019 (display_selectors): Adjust to fetch the current
6020 windows_thread_info based on inferior_ptid.
6021 (fake_create_process): No longer write to current_windows_thread.
6022 (windows_nat_target::get_windows_debug_event):
6023 Don't set inferior_ptid or current_windows_thread.
6024 (windows_nat_target::wait): Adjust to not rely on
6025 current_windows_thread.
6026 (do_initial_windows_stuff): Now a method of windows_nat_target.
6027 Switch to the last_ptid thread.
6028 (windows_nat_target::attach): Adjust.
6029 (windows_nat_target::detach): Use switch_to_no_thread instead of
6030 writing to inferior_ptid directly.
6031 (windows_nat_target::create_inferior): Adjust.
6033 2020-06-18 Pedro Alves <palves@redhat.com>
6035 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
6037 2020-06-18 Pedro Alves <palves@redhat.com>
6039 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
6040 after creating it, instead of writing to inferior_ptid. Don't
6041 write to inferior_ptid.
6043 2020-06-18 Pedro Alves <palves@redhat.com>
6045 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
6047 2020-06-18 Pedro Alves <palves@redhat.com>
6049 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
6050 it, instead of writing to inferior_ptid.
6052 2020-06-18 Pedro Alves <palves@redhat.com>
6054 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
6057 2020-06-18 Pedro Alves <palves@redhat.com>
6059 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
6060 instead of writing to inferior_ptid directly.
6062 2020-06-18 Pedro Alves <palves@redhat.com>
6064 * corelow.c (core_target::close): Use switch_to_no_thread instead
6065 of writing to inferior_ptid directly.
6066 (add_to_thread_list, core_target_open): Use switch_to_thread
6067 instead of writing to inferior_ptid directly.
6069 2020-06-18 Pedro Alves <palves@redhat.com>
6071 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
6073 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
6075 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
6076 inferior_ptid directly.
6077 (darwin_nat_target::init_thread_list): Switch to thread, instead
6078 of writing to inferior_ptid.
6079 (darwin_nat_target::attach): Don't write to inferior_ptid.
6080 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
6082 2020-06-18 Pedro Alves <palves@redhat.com>
6084 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
6086 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
6087 Instead use switch_to_thread.
6088 (gnu_nat_target::detach): Use switch_to_no_thread
6089 instead of writing to inferior_ptid directly. Used passed-in
6090 inferior instead of looking up the inferior by pid.
6092 2020-06-18 Pedro Alves <palves@redhat.com>
6094 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
6097 2020-06-18 Pedro Alves <palves@redhat.com>
6099 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
6101 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
6103 (nto_procfs_target::detach): Avoid referencing
6104 inferior_ptid. Use switch_to_no_thread instead of writing to
6105 inferior_ptid directly.
6106 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
6107 instead of writing to inferior_ptid directly.
6108 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
6111 2020-06-18 Pedro Alves <palves@redhat.com>
6113 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
6114 after creating it, instead of writing to inferior_ptid.
6115 (gdbsim_target_open): Use switch_to_no_thread instead of writing
6116 to inferior_ptid directly.
6117 (gdbsim_target::wait): Don't write to inferior_ptid.
6119 2020-06-18 Pedro Alves <palves@redhat.com>
6121 * remote.c (remote_target::remote_notice_new_inferior): Use
6122 switch_to_thread instead of writing to inferior_ptid directly.
6123 (remote_target::add_current_inferior_and_thread): Use
6124 switch_to_no_thread instead of writing to inferior_ptid directly.
6125 (extended_remote_target::attach): Use switch_to_inferior_no_thread
6126 and switch_to_thread instead of using set_current_inferior or
6127 writing to inferior_ptid directly.
6129 2020-06-18 Pedro Alves <palves@redhat.com>
6131 * tracectf.c (ctf_target_open): Switch to added thread instead of
6132 writing to inferior_ptid directly.
6133 (ctf_target::close): Use switch_to_no_thread instead of writing to
6134 inferior_ptid directly.
6136 2020-06-18 Pedro Alves <palves@redhat.com>
6138 * tracefile-tfile.c (tfile_target_open): Don't write to
6139 inferior_ptid directly, instead switch to added thread.
6140 (tfile_target::close): Use switch_to_no_thread instead of writing
6141 to inferior_ptid directly.
6143 2020-06-18 Pedro Alves <palves@redhat.com>
6145 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
6146 (procfs_target::detach): Use switch_to_no_thread
6147 instead of writing to inferior_ptid directly.
6148 (do_attach): Change return type to void. Switch to the added
6150 (procfs_target::create_inferior): Switch to the added thread.
6151 (procfs_do_thread_registers): Don't write to inferior_ptid.
6153 2020-06-18 Pedro Alves <palves@redhat.com>
6155 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6156 of writing to inferior_ptid.
6157 (scoped_restore_exited_inferior): Delete.
6158 (handle_vfork_child_exec_or_exit): Simplify using
6159 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6160 instead of writing to inferior_ptid.
6161 (THREAD_STOPPED_BY): Delete.
6162 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6163 (thread_stopped_by_hw_breakpoint): Delete.
6164 (save_waitstatus): Use
6165 scoped_restore_current_thread+switch_to_thread, and call
6166 target_stopped_by_watchpoint instead of
6167 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6168 instead of thread_stopped_by_sw_breakpoint, and
6169 target_stopped_by_hw_breakpoint instead of
6170 thread_stopped_by_hw_breakpoint.
6171 (handle_inferior_event)
6172 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6173 inferior_ptid directly, nor
6174 set_current_inferior/set_current_program_space. Use
6175 switch_to_thread / switch_to_inferior_no_thread instead.
6177 2020-06-18 Pedro Alves <palves@redhat.com>
6179 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6180 instead of writing to inferior_ptid.
6182 2020-06-18 Pedro Alves <palves@redhat.com>
6184 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6186 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6187 to the added thread.
6188 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6189 instead of writing to inferior_ptid.
6191 2020-06-18 Pedro Alves <palves@redhat.com>
6193 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6194 (register_to_value_test): Mock a program_space too. Heap-allocate
6195 the address space. Don't write to inferior_ptid. Use
6196 switch_to_thread instead.
6198 2020-06-18 Pedro Alves <palves@redhat.com>
6200 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6202 (find_signalled_thread()): New, factored out from
6203 linux_make_corefile_notes and adjusted to handle exited threads.
6204 (linux_make_corefile_notes): Adjust to use the new
6205 find_signalled_thread.
6207 2020-06-18 Pedro Alves <palves@redhat.com>
6209 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6210 of saving/restoring inferior_ptid.
6212 2020-06-17 Tom Tromey <tom@tromey.com>
6214 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6215 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6217 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6219 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6221 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6224 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6226 * regformats/reg-arm.dat: Remove.
6227 * regformats/reg-bfin.dat: Remove.
6228 * regformats/reg-cris.dat: Remove.
6229 * regformats/reg-crisv32.dat: Remove.
6230 * regformats/reg-m32r.dat: Remove.
6231 * regformats/reg-tilegx.dat: Remove.
6232 * regformats/reg-tilegx32.dat: Remove.
6234 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6236 * features/Makefile (WHICH): Remove arm files.
6237 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6238 * regformats/arm/arm-with-neon.dat: Remove.
6239 * regformats/arm/arm-with-vfpv2.dat: Remove.
6240 * regformats/arm/arm-with-vfpv3.dat: Remove.
6242 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6244 * features/Makefile (XMLTOC): Remove rx.xml.
6246 2020-06-17 Pedro Alves <palves@redhat.com>
6248 * gdbthread.h (thread_control_state) <trap_expected> Update
6251 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6253 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6254 ada_language::lookup_symbol_nonlocal.
6255 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6256 (ada_language::lookup_symbol_nonlocal): New member function,
6257 implementation from ada_lookup_symbol_nonlocal.
6258 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6260 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6262 (cplus_language::lookup_symbol_nonlocal): New member function.
6263 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6264 (minimal_language_data) Likewise.
6265 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6266 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6268 (d_language::lookup_symbol_nonlocal): New member function.
6269 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6271 (f_language::lookup_symbol_nonlocal): New member function.
6272 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6274 * language.c (unknown_language_data): Likewise.
6275 (auto_language_data): Likewise.
6276 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6278 (language_defn::lookup_symbol_nonlocal): New member function.
6279 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6281 * objc-lang.c (objc_language_data): Likewise.
6282 * opencl-lang.c (opencl_language_data): Likewise.
6283 * p-lang.c (pascal_language_data): Likewise.
6284 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6285 rust_language::lookup_symbol_nonlocal.
6286 (rust_language_data): Delete la_lookup_symbol_nonlocal
6288 (rust_language::lookup_symbol_nonlocal): New member function,
6289 implementation from rust_lookup_symbol_nonlocal.
6290 * symtab.c (lookup_symbol_aux): Update call to
6291 lookup_symbol_nonlocal.
6292 (basic_lookup_symbol_nonlocal): Rename to...
6293 (language_defn::lookup_symbol_nonlocal): ...this, and update
6294 header comment. Remove language_defn parameter, and replace with
6296 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6298 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6300 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6302 (ada_language::value_print_inner): New member function.
6303 * c-lang.c (c_language_data): Delete la_value_print_inner
6305 (cplus_language_data): Likewise.
6306 (asm_language_data): Likewise.
6307 (minimal_language_data): Likewise.
6308 * d-lang.c (d_language_data): Likewise.
6309 (d_language::value_print_inner): New member function.
6310 * f-lang.c (f_language_data): Delete la_value_print_inner
6312 (f_language::value_print_inner): New member function.
6313 * f-lang.h (f_value_print_innner): Rename to...
6314 (f_value_print_inner): ...this (note spelling of 'inner').
6315 * f-valprint.c (f_value_print_innner): Rename to...
6316 (f_value_print_inner): ...this (note spelling of 'inner').
6317 * go-lang.c (go_language_data): Delete la_value_print_inner
6319 (go_language::value_print_inner): New member function.
6320 * language.c (language_defn::value_print_inner): Define new member
6322 (unk_lang_value_print_inner): Delete.
6323 (unknown_language_data): Delete la_value_print_inner initializer.
6324 (unknown_language::value_print_inner): New member function.
6325 (auto_language_data): Delete la_value_print_inner initializer.
6326 (auto_language::value_print_inner): New member function.
6327 * language.h (language_data): Delete la_value_print_inner field.
6328 (language_defn::value_print_inner): Delcare new member function.
6329 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6331 (m2_language::value_print_inner): New member function.
6332 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6334 * opencl-lang.c (opencl_language_data): Likewise.
6335 * p-lang.c (pascal_language_data): Likewise.
6336 (pascal_language::value_print_inner): New member function.
6337 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6339 (rust_language::value_print_inner): New member function.
6340 * valprint.c (do_val_print): Update call to value_print_inner.
6342 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6344 * ada-lang.c (ada_language_data): Delete la_value_print
6346 (ada_language::value_print): New member function.
6347 * c-lang.c (c_language_data): Delete la_value_print initializer.
6348 (cplus_language_data): Likewise.
6349 (asm_language_data): Likewise.
6350 (minimal_language_data): Likewise.
6351 * d-lang.c (d_language_data): Likewise.
6352 * f-lang.c (f_language_data): Likewise.
6353 * go-lang.c (go_language_data): Likewise.
6354 * language.c (unk_lang_value_print): Delete.
6355 (language_defn::value_print): Define new member function.
6356 (unknown_language_data): Delete la_value_print initializer.
6357 (unknown_language::value_print): New member function.
6358 (auto_language_data): Delete la_value_print initializer.
6359 (auto_language::value_print): New member function.
6360 * language.h (language_data): Delete la_value_print field.
6361 (language_defn::value_print): Declare new member function.
6362 (LA_VALUE_PRINT): Update call to value_print.
6363 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6364 * objc-lang.c (objc_language_data): Likewise.
6365 * opencl-lang.c (opencl_language_data): Likewise.
6366 * p-lang.c (pascal_language_data): Likewise.
6367 (pascal_language::value_print): New member function.
6368 * rust-lang.c (rust_language_data): Delete la_value_print
6371 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6373 * ada-lang.c (ada_watch_location_expression): Rename to
6374 ada_language::watch_location_expression.
6375 (ada_language_data): Delete la_watch_location_expression
6377 (ada_language::watch_location_expression): New member function,
6378 implementation from ada_watch_location_expression.
6379 * breakpoint.c (watch_command_1): Update call to
6380 watch_location_expression.
6381 * c-lang.c (c_watch_location_expression): Rename to
6382 language_defn::watch_location_expression.
6383 (c_language_data): Delete la_watch_location_expression
6385 (cplus_language_data): Likewise.
6386 (asm_language_data): Likewise.
6387 (minimal_language_data): Likewise.
6388 * c-lang.h (c_watch_location_expression): Delete declaration.
6389 * d-lang.c (d_language_data): Delete la_watch_location_expression
6391 * f-lang.c (f_language_data): Likewise.
6392 * go-lang.c (go_language_data): Likewise.
6393 * language.c (language_defn::watch_location_expression): Member
6394 function implementation from c_watch_location_expression.
6395 (unknown_language_data): Delete la_watch_location_expression
6397 (auto_language_data): Likewise.
6398 * language.h (language_data): Delete la_watch_location_expression
6400 (language_defn::watch_location_expression): Declare new member
6402 * m2-lang.c (m2_language_data): Delete
6403 la_watch_location_expression initializer.
6404 * objc-lang.c (objc_language_data): Likewise.
6405 * opencl-lang.c (opencl_language_data): Likewise.
6406 * p-lang.c (pascal_language_data): Likewise.
6407 * rust-lang.c (rust_watch_location_expression): Rename to
6408 rust_language::watch_location_expression.
6409 (rust_language_data): Delete la_watch_location_expression
6411 (rust_language::watch_location_expression): New member function,
6412 implementation from rust_watch_location_expression.
6414 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6416 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6417 ada_language::collect_symbol_completion_matches.
6418 (ada_language_data): Delete la_collect_symbol_completion_matches
6420 (ada_language::collect_symbol_completion_matches): New member
6421 function, implementation from
6422 ada_collect_symbol_completion_matches.
6423 * c-lang.c (c_language_data): Delete
6424 la_collect_symbol_completion_matches initializer.
6425 (cplus_language_data): Likewise.
6426 (asm_language_data): Likewise.
6427 (minimal_language_data): Likewise.
6428 * d-lang.c (d_language_data): Likewise.
6429 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6430 f_language::collect_symbol_completion_matches.
6431 (f_language_data): Delete la_collect_symbol_completion_matches
6433 (f_language::collect_symbol_completion_matches) New member
6434 function, implementation from f_collect_symbol_completion_matches.
6435 * go-lang.c (go_language_data): Delete
6436 la_collect_symbol_completion_matches initializer.
6437 * language.c (unknown_language_data): Likewise.
6438 (auto_language_data): Likewise.
6439 * language.h (language_data): Delete
6440 la_collect_symbol_completion_matches field.
6441 (language_defn::collect_symbol_completion_matches): New member
6443 * m2-lang.c (m2_language_data): Delete
6444 la_collect_symbol_completion_matches initializer.
6445 * objc-lang.c (objc_language_data): Likewise.
6446 * opencl-lang.c (opencl_language_data): Likewise.
6447 * p-lang.c (pascal_language_data): Likewise.
6448 * rust-lang.c (rust_language_data): Likewise.
6449 * symtab.c (default_collect_symbol_completion_matches): Delete.
6450 (collect_symbol_completion_matches): Update call to
6451 collect_symbol_completion_matches.
6452 (collect_symbol_completion_matches_type): Likewise.
6453 * symtab.h (default_collect_symbol_completion_matches): Delete
6456 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6458 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6459 (ada_language_data): Delete la_word_break_characters initializer.
6460 (ada_language::word_break_characters): New member function.
6461 * c-lang.c (c_language_data): Delete la_word_break_characters
6463 (cplus_language_data): Likewise.
6464 (asm_language_data): Likewise.
6465 (minimal_language_data): Likewise.
6466 * completer.c: Update global comment.
6467 (advance_to_expression_complete_word_point): Update call to
6468 word_break_characters.
6469 (complete_files_symbols): Likewise.
6470 (complete_line_internal_1): Likewise.
6471 (default_completer_handle_brkchars): Likewise.
6472 (skip_quoted_chars): Likewise.
6473 * d-lang.c (d_language_data): Delete la_word_break_characters
6475 * f-lang.c (f_word_break_characters): Delete.
6476 (f_language_data): Delete la_word_break_characters initializer.
6477 (f_language::word_break_characters): New member function.
6478 * go-lang.c (go_language_data): Delete la_word_break_characters
6480 * language.c (unknown_language_data): Likewise.
6481 (auto_language_data): Likewise.
6482 * language.h (default_word_break_characters): Move declaration to
6483 earlier in the file.
6484 (language_data): Delete la_word_break_characters field.
6485 (language_defn::word_break_characters): New member function.
6486 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6488 * objc-lang.c (objc_language_data): Likewise.
6489 * opencl-lang.c (opencl_language_data): Likewise.
6490 * p-lang.c (pascal_language_data): Likewise.
6491 * rust-lang.c (rust_language_data): Likewise.
6493 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6495 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6496 (ada_language_data): Delete la_get_symbol_name_matcher
6498 (language_defn::get_symbol_name_matcher_inner): New member
6500 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6502 (cplus_language_data): Likewise.
6503 (cplus_language::get_symbol_name_matcher_inner): New member
6505 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6506 (minimal_language_data): Likewise.
6507 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6508 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6510 * dictionary.c (iter_match_first_hashed): Update call to
6511 get_symbol_name_matcher.
6512 (iter_match_next_hashed): Likewise.
6513 (iter_match_next_linear): Likewise.
6514 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6515 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6517 (f_language::get_symbol_name_matcher_inner): New member function.
6518 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6520 * language.c (default_symbol_name_matcher): Update header comment,
6522 (language_defn::get_symbol_name_matcher): New definition.
6523 (language_defn::get_symbol_name_matcher_inner): Likewise.
6524 (get_symbol_name_matcher): Delete.
6525 (unknown_language_data): Delete la_get_symbol_name_matcher
6527 (auto_language_data): Likewise.
6528 * language.h (language_data): Delete la_get_symbol_name_matcher
6530 (language_defn::get_symbol_name_matcher): New member function.
6531 (language_defn::get_symbol_name_matcher_inner): Likewise.
6532 (default_symbol_name_matcher): Delete declaration.
6533 * linespec.c (find_methods): Update call to
6534 get_symbol_name_matcher.
6535 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6537 * minsyms.c (lookup_minimal_symbol): Update call to
6538 get_symbol_name_matcher.
6539 (iterate_over_minimal_symbols): Likewise.
6540 * objc-lang.c (objc_language_data): Delete
6541 la_get_symbol_name_matcher initializer.
6542 * opencl-lang.c (opencl_language_data): Likewise.
6543 * p-lang.c (pascal_language_data): Likewise.
6544 * psymtab.c (psymbol_name_matches): Update call to
6545 get_symbol_name_matcher.
6546 * rust-lang.c (rust_language_data): Delete
6547 la_get_symbol_name_matcher initializer.
6548 * symtab.c (symbol_matches_search_name): Update call to
6549 get_symbol_name_matcher.
6550 (compare_symbol_name): Likewise.
6552 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6554 * ada-lang.c (ada_language_data): Delete la_compute_program
6556 * c-lang.c (c_language_data): Likewise.
6557 (c_language::compute_program): New member function.
6558 (cplus_language_data): Delete la_compute_program initializer.
6559 (cplus_language::compute_program): New member function.
6560 (asm_language_data): Delete la_compute_program initializer.
6561 (minimal_language_data): Likewise.
6562 * c-lang.h (c_compute_program): Update comment.
6563 (cplus_compute_program): Likewise.
6564 * compile/compile-c-support.c (c_compute_program): Likewise.
6565 (cplus_compute_program): Likewise.
6566 * compile/compile.c (compile_to_object): Update call to
6568 * d-lang.c (d_language_data): Delete la_compute_program
6570 * f-lang.c (f_language_data): Likewise.
6571 * go-lang.c (go_language_data): Likewise.
6572 * language.c (unknown_language_data): Likewise.
6573 (auto_language_data): Likewise.
6574 * language.h (language_data): Delete la_compute_program field.
6575 (language_defn::compute_program): New member function.
6576 * m2-lang.c (m2_language_data): Delete la_compute_program
6578 * objc-lang.c (objc_language_data): Likewise.
6579 * opencl-lang.c (opencl_language_data): Likewise.
6580 * p-lang.c (pascal_language_data): Likewise.
6581 * rust-lang.c (rust_language_data): Likewise.
6583 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6585 * ada-lang.c (ada_language_data) Delete
6586 la_class_name_from_physname initializer.
6587 * c-lang.c (c_language_data): Likewise.
6588 (cplus_language_data): Likewise.
6589 (cplus_language::class_name_from_physname): New member function.
6590 (asm_language_data): Delete la_class_name_from_physname
6592 (minimal_language_data): Likewise.
6593 * d-lang.c (d_language_data): Likewise.
6594 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6595 method on language_defn class.
6596 (guess_full_die_structure_name): Likewise.
6597 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6599 * go-lang.c (go_language_data): Likewise.
6600 * language.c (language_class_name_from_physname): Delete.
6601 (unk_lang_class_name): Delete.
6602 (unknown_language_data): Delete la_class_name_from_physname
6604 (auto_language_data): Likewise.
6605 * language.h (language_data): Delete la_class_name_from_physname
6607 (language_defn::class_name_from_physname): New function.
6608 (language_class_name_from_physname): Delete declaration.
6609 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6611 * objc-lang.c (objc_language_data): Likewise.
6612 * opencl-lang.c (opencl_language_data): Likewise.
6613 * p-lang.c (pascal_language_data): Likewise.
6614 * rust-lang.c (rust_language_data): Likewise.
6616 2020-06-16 Tom Tromey <tom@tromey.com>
6618 * tui/tui-data.h (STATUS_NAME): New macro.
6619 * tui/tui-layout.c (tui_remove_some_windows)
6620 (initialize_known_windows, tui_register_window)
6621 (tui_layout_split::remove_windows, initialize_layouts)
6622 (tui_new_layout_command): Don't use hard-coded window names.
6624 2020-06-16 Tom Tromey <tom@tromey.com>
6627 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6628 tui_initialize_readline. Only run once. Call rl_initialize.
6629 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6630 tui_initialize_readline.
6631 * tui/tui-io.c (tui_setup_io): Call
6632 tui_ensure_readline_initialized.
6633 * tui/tui-interp.c (tui_interp::init): Update.
6635 2020-06-16 Tom Tromey <tom@tromey.com>
6637 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6638 Also preserve the status window.
6640 2020-06-16 Tom Tromey <tom@tromey.com>
6642 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6643 where m_window==nullptr.
6645 2020-06-15 Tom Tromey <tromey@adacore.com>
6647 * windows-nat.c (windows_nat::handle_output_debug_string):
6649 (windows_nat::handle_ms_vc_exception): Update.
6650 * target.h (target_read_string): Change API.
6651 * target.c (target_read_string): Change API.
6652 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6654 * solib-frv.c (frv_current_sos): Update.
6655 * solib-dsbt.c (dsbt_current_sos): Update.
6656 * solib-darwin.c (darwin_current_sos): Update.
6657 * linux-thread-db.c (inferior_has_bug): Update.
6658 * expprint.c (print_subexp_standard): Update.
6659 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6660 (ada_exception_message_1): Update.
6662 2020-06-15 Tom Tromey <tromey@adacore.com>
6664 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6666 2020-06-15 Tom Tromey <tromey@adacore.com>
6668 * valprint.c (read_string): Update comment.
6669 * target.c (MIN): Remove.
6670 (target_read_string): Rewrite.
6672 2020-06-15 Tom Tromey <tromey@adacore.com>
6674 * corefile.c (read_memory_string): Remove.
6675 * ada-valprint.c (ada_value_print_ptr): Update.
6676 * ada-lang.h (ada_tag_name): Change return type.
6677 * ada-lang.c (type_from_tag): Update.
6678 (ada_tag_name_from_tsd): Change return type. Use
6680 (ada_tag_name): Likewise.
6681 * gdbcore.h (read_memory_string): Don't declare.
6683 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6685 * symtab.c (rbreak_command): Ignore Windows drive colon.
6687 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6689 * NEWS: Mention removed GDBserver host support.
6691 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6693 * features/riscv/rebuild-csr-xml.sh: Updated.
6695 2020-06-11 Tom Tromey <tom@tromey.com>
6698 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6700 2020-06-09 Jonny Grant <jg@jguk.org>
6701 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6703 * main.c (captured_main_1): Don't print new line after help.
6704 (print_gdb_help): add mailing list and IRC channel information
6705 to --help. Add new lines between items in the footer. Remove
6706 quotes around bug url.
6708 2020-06-11 Keith Seitz <keiths@redhat.com>
6711 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6712 Resolve typedefs for type length calculations.
6714 2020-06-10 Tom de Vries <tdevries@suse.de>
6717 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6718 (write_psymbols): Enable .gdb_index for ada.
6719 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6722 2020-06-10 Tom de Vries <tdevries@suse.de>
6724 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6725 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6726 namei" instead of "const char *name" argument.
6727 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6728 dw2_symtab_iter_init.
6730 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6732 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6733 to use type::field and field::type instead.
6735 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6737 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6738 to use field::type instead.
6740 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6742 * gdbtypes.h (struct field) <type, set_type>: New methods.
6743 Rename `type` field to...
6744 <m_type>: ... this. Change references throughout to use type or
6746 (FIELD_TYPE): Use field::type. Change call sites that modify
6747 the field's type to use field::set_type instead.
6749 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6751 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6752 to use type::index_type instead.
6754 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6756 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6758 (TYPE_INDEX_TYPE): Use type::index_type.
6759 * gdbtypes.c (create_array_type_with_stride): Likewise.
6761 2020-06-07 Tom Tromey <tom@tromey.com>
6763 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6765 (generic_value_print): Update.
6767 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6769 Revert commit 982a38f60b0.
6770 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6772 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6774 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6775 avoid use after free.
6777 2020-06-05 Tom de Vries <tdevries@suse.de>
6781 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6783 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6785 (dwarf2_read_debug_names): Likewise.
6786 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6787 object when re-using a per_bfd object with an index.
6789 2020-06-03 Tom de Vries <tdevries@suse.de>
6792 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6794 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6799 * ada-lang.c (ada_language_data): Delete skip_trampoline
6801 * c-lang.c (c_language_data): Likewise.
6802 (cplus_language_data): Likewise.
6803 (cplus_language::skip_trampoline): New member function.
6804 (asm_language_data): Delete skip_trampoline initializer.
6805 (minimal_language_data): Likewise.
6806 * d-lang.c (d_language_data): Likewise.
6807 * f-lang.c (f_language_data): Likewise.
6808 * go-lang.c (go_language_data): Likewise.
6809 * language.c (unk_lang_trampoline): Delete function.
6810 (skip_language_trampoline): Update.
6811 (unknown_language_data): Delete skip_trampoline initializer.
6812 (auto_language_data): Likewise.
6813 * language.h (language_data): Delete skip_trampoline field.
6814 (language_defn::skip_trampoline): New function.
6815 * m2-lang.c (m2_language_data): Delete skip_trampoline
6817 * objc-lang.c (objc_skip_trampoline): Delete function, move
6818 implementation to objc_language::skip_trampoline.
6819 (objc_language_data): Delete skip_trampoline initializer.
6820 (objc_language::skip_trampoline): New member function with
6821 implementation from objc_skip_trampoline.
6822 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6824 * p-lang.c (pascal_language_data): Likewise.
6825 * rust-lang.c (rust_language_data): Likewise.
6827 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6829 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6830 (ada_language::demangle): New member function.
6831 * c-lang.c (c_language_data): Delete la_demangle initializer.
6832 (cplus_language_data): Delete la_demangle initializer.
6833 (cplus_language::demangle): New member function.
6834 (asm_language_data): Delete la_demangle initializer.
6835 (minimal_language_data): Delete la_demangle initializer.
6836 * d-lang.c (d_language_data): Delete la_demangle initializer.
6837 (d_language::demangle): New member function.
6838 * f-lang.c (f_language_data): Delete la_demangle initializer.
6839 (f_language::demangle): New member function.
6840 * go-lang.c (go_language_data): Delete la_demangle initializer.
6841 (go_language::demangle): New member function.
6842 * language.c (language_demangle): Update.
6843 (unk_lang_demangle): Delete.
6844 (unknown_language_data): Delete la_demangle initializer.
6845 (unknown_language::demangle): New member function.
6846 (auto_language_data): Delete la_demangle initializer.
6847 (auto_language::demangle): New member function.
6848 * language.h (language_data): Delete la_demangle field.
6849 (language_defn::demangle): New function.
6850 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6851 * objc-lang.c (objc_language_data): Delete la_demangle
6853 (objc_language::demangle): New member function.
6854 * opencl-lang.c (opencl_language_data): Delete la_demangle
6856 * p-lang.c (pascal_language_data): Likewise.
6857 * rust-lang.c (rust_language_data): Likewise.
6858 (rust_language::demangle): New member function.
6860 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6862 * ada-lang.c (ada_language_data): Delete la_print_type
6864 (ada_language::print_type): New member function.
6865 * c-lang.c (c_language_data): Delete la_print_type initializer.
6866 (c_language::print_type): New member function.
6867 (cplus_language_data): Delete la_print_type initializer.
6868 (cplus_language::print_type): New member function.
6869 (asm_language_data): Delete la_print_type initializer.
6870 (asm_language::print_type): New member function.
6871 (minimal_language_data): Delete la_print_type initializer.
6872 (minimal_language::print_type): New member function.
6873 * d-lang.c (d_language_data): Delete la_print_type initializer.
6874 (d_language::print_type): New member function.
6875 * f-lang.c (f_language_data): Delete la_print_type initializer.
6876 (f_language::print_type): New member function.
6877 * go-lang.c (go_language_data): Delete la_print_type initializer.
6878 (go_language::print_type): New member function.
6879 * language.c (unk_lang_print_type): Delete.
6880 (unknown_language_data): Delete la_print_type initializer.
6881 (unknown_language::print_type): New member function.
6882 (auto_language_data): Delete la_print_type initializer.
6883 (auto_language::print_type): New member function.
6884 * language.h (language_data): Delete la_print_type field.
6885 (language_defn::print_type): New function.
6886 (LA_PRINT_TYPE): Update.
6887 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6888 (m2_language::print_type): New member function.
6889 * objc-lang.c (objc_language_data): Delete la_print_type
6891 (objc_language::print_type): New member function.
6892 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6893 to opencl_language::print_type.
6894 (opencl_language_data): Delete la_print_type initializer.
6895 (opencl_language::print_type): New member function, implementation
6896 from opencl_print_type.
6897 * p-lang.c (pascal_language_data): Delete la_print_type
6899 (pascal_language::print_type): New member function.
6900 * rust-lang.c (rust_print_type): Delete, implementation moved to
6901 rust_language::print_type.
6902 (rust_language_data): Delete la_print_type initializer.
6903 (rust_language::print_type): New member function, implementation
6904 from rust_print_type.
6906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6908 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6909 implementation moves to...
6910 (ada_language::sniff_from_mangled_name): ...here. Update return
6912 (ada_language_data): Delete la_sniff_from_mangled_name
6914 * c-lang.c (c_language_data): Likewise.
6915 (cplus_language_data): Likewise.
6916 (cplus_language::sniff_from_mangled_name): New member function,
6917 implementation taken from gdb_sniff_from_mangled_name.
6918 (asm_language_data): Delete la_sniff_from_mangled_name
6920 (minimal_language_data): Likewise.
6921 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6922 implementation moves to cplus_language::sniff_from_mangled_name.
6923 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6924 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6926 (d_language::sniff_from_mangled_name): ...here.
6927 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6928 * f-lang.c (f_language_data): Likewise.
6929 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6931 (go_language::sniff_from_mangled_name): ...here.
6932 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6933 * language.c (language_sniff_from_mangled_name): Delete.
6934 (unknown_language_data): Delete la_sniff_from_mangled_name
6936 (auto_language_data): Likewise.
6937 * language.h (language_data): Delete la_sniff_from_mangled_name
6939 (language_defn::sniff_from_mangled_name): New function.
6940 (language_sniff_from_mangled_name): Delete declaration.
6941 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6943 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6944 implementation moves to...
6945 (objc_language::sniff_from_mangled_name): ...here.
6946 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6947 * opencl-lang.c (opencl_language_data): Likewise.
6948 * p-lang.c (pascal_language_data): Likewise.
6949 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6950 implementation moves to...
6951 (rust_language::sniff_from_mangled_name): ...here.
6952 (rust_language_data): Delete la_sniff_from_mangled_name
6954 * symtab.c (symbol_find_demangled_name): Call
6955 sniff_from_mangled_name member function.
6957 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6959 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6961 * c-lang.c (c_language_data): Likewise.
6962 (cplus_language_data): Likewise.
6963 (cplus_language::search_name_hash): New member function.
6964 (asm_language_data): Delete la_search_name_hash initializer.
6965 (minimal_language_data): Likewise.
6966 * d-lang.c (d_language_data): Likewise.
6967 * dictionary.c (default_search_name_hash): Rename to...
6968 (language_defn::search_name_hash): ...this.
6969 * f-lang.c (f_language_data): Likewise.
6970 (f_language::search_name_hash): New member function.
6971 * go-lang.c (go_language_data): Delete la_search_name_hash
6973 * language.c (unknown_language_data): Likewise.
6974 (auto_language_data): Likewise.
6975 * language.h (struct language_data): Delete la_search_name_hash
6977 (language_defn::search_name_hash): Declare new member function.
6978 (default_search_name_hash): Delete declaration.
6979 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6981 * objc-lang.c (objc_language_data): Likewise.
6982 * opencl-lang.c (opencl_language_data): Likewise.
6983 * p-lang.c (pascal_language_data): Likewise.
6984 * rust-lang.c (rust_language_data): Likewise.
6985 * symtab.c (search_name_hash): Update call.
6987 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6989 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6991 * c-lang.c (class compile_instance): Declare.
6992 (c_language_data): Delete la_get_compile_instance initializer.
6993 (c_language::get_compile_instance): New member function.
6994 (cplus_language_data): Delete la_get_compile_instance initializer.
6995 (cplus_language::get_compile_instance): New member function.
6996 (asm_language_data): Delete la_get_compile_instance initializer.
6997 (minimal_language_data): Likewise.
6998 * c-lang.h (c_get_compile_context): Update comment.
6999 (cplus_get_compile_context): Update comment.
7000 * compile/compile.c (compile_to_object): Update calls, don't rely
7001 on function pointer being NULL.
7002 * d-lang.c (d_language_data): Delete la_get_compile_instance
7004 * f-lang.c (f_language_data): Likewise.
7005 * go-lang.c (go_language_data): Likewise.
7006 * language.c (unknown_language_data): Likewise.
7007 (auto_language_data): Likewise.
7008 * language.h (language_data): Delete la_get_compile_instance field.
7009 (language_defn::get_compile_instance): New member function.
7010 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
7012 * objc-lang.c (objc_language_data): Likewise.
7013 * opencl-lang.c (opencl_language_data): Likewise.
7014 * p-lang.c (pascal_language_data): Likewise.
7015 * rust-lang.c (rust_language_data): Likewise.
7017 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7019 * ada-lang.c (ada_add_all_symbols): Update comment.
7020 (ada_iterate_over_symbols): Delete, move implementation to...
7021 (ada_language::iterate_over_symbols): ...here, a new member
7022 function, rewrite to use range based for loop.
7023 (ada_language_data): Delete la_iterate_over_symbols initializer.
7024 * c-lang.c (c_language_data): Likewise.
7025 (cplus_language_data): Likewise.
7026 (asm_language_data): Likewise.
7027 (minimal_language_data): Likewise.
7028 * d-lang.c (d_language_data): Likewise.
7029 * f-lang.c (f_language_data): Likewise.
7030 * go-lang.c (go_language_data): Likewise.
7031 * language.c (unknown_language_data): Likewise.
7032 (auto_language_data): Likewise.
7033 * language.h (language_data): Delete la_iterate_over_symbols field.
7034 (language_defn::iterate_over_symbols): New member function.
7035 (LA_ITERATE_OVER_SYMBOLS): Update.
7036 * linespec.c (iterate_over_all_matching_symtabs): Update.
7037 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
7039 * objc-lang.c (objc_language_data): Likewise.
7040 * opencl-lang.c (opencl_language_data): Likewise.
7041 * p-lang.c (pascal_language_data): Likewise.
7042 * rust-lang.c (rust_language_data): Likewise.
7044 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7046 * ada-lang.c (ada_language_data): Delete
7047 la_lookup_transparent_type initializer.
7048 * c-lang.c (c_language_data): Likewise.
7049 (cplus_language_data): Likewise.
7050 (cplus_language::lookup_transparent_type): New member function.
7051 (asm_language_data): Delete la_lookup_transparent_type
7053 (minimal_language_data): Likewise.
7054 * d-lang.c (d_language_data): Likewise.
7055 * f-lang.c (f_language_data): Likewise.
7056 * go-lang.c (go_language_data): Likewise.
7057 * language.c (unknown_language_data): Likewise.
7058 (auto_language_data): Likewise.
7059 * language.h (struct language_data): Delete
7060 la_lookup_transparent_type field.
7061 (language_defn::lookup_transparent_type): New member function.
7062 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
7064 * objc-lang.c (objc_language_data): Likewise.
7065 * opencl-lang.c (opencl_language_data): Likewise.
7066 * p-lang.c (pascal_language_data): Likewise.
7067 * rust-lang.c (rust_language_data): Likewise.
7068 * symtab.c (symbol_matches_domain): Update call.
7070 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7072 * ada-lang.c (ada_language_arch_info): Delete function, move
7073 implementation to...
7074 (ada_language::language_arch_info): ...here, a new member
7076 (ada_language_data): Delete la_language_arch_info.
7077 * c-lang.c (c_language_data): Likewise.
7078 (c_language::language_arch_info): New member function.
7079 (cplus_language_arch_info): Delete function, move
7080 implementation to...
7081 (cplus_language::language_arch_info): ...here, a new member
7083 (cplus_language_data): Delete la_language_arch_info.
7084 (asm_language_data): Likewise.
7085 (asm_language::language_arch_info): New member function.
7086 (minimal_language_data): Delete la_language_arch_info.
7087 (minimal_language::language_arch_info): New member function.
7088 * d-lang.c (d_language_arch_info): Delete function, move
7089 implementation to...
7090 (d_language::language_arch_info): ...here, a new member
7092 (d_language_data): Delete la_language_arch_info.
7093 * f-lang.c (f_language_arch_info): Delete function, move
7094 implementation to...
7095 (f_language::language_arch_info): ...here, a new member
7097 (f_language_data): Delete la_language_arch_info.
7098 * go-lang.c (go_language_arch_info): Delete function, move
7099 implementation to...
7100 (go_language::language_arch_info): ...here, a new member
7102 (go_language_data): Delete la_language_arch_info.
7103 * language.c (unknown_language_data): Likewise.
7104 (unknown_language::language_arch_info): New member function.
7105 (auto_language_data): Delete la_language_arch_info.
7106 (auto_language::language_arch_info): New member function.
7107 (language_gdbarch_post_init): Update call to
7108 la_language_arch_info.
7109 * language.h (language_data): Delete la_language_arch_info
7111 (language_defn::language_arch_info): New function.
7112 * m2-lang.c (m2_language_arch_info): Delete function, move
7113 implementation to...
7114 (m2_language::language_arch_info): ...here, a new member
7116 (m2_language_data): Delete la_language_arch_info.
7117 * objc-lang.c (objc_language_arch_info): Delete function, move
7118 implementation to...
7119 (objc_language::language_arch_info): ...here, a new member
7121 (objc_language_data): Delete la_language_arch_info.
7122 * opencl-lang.c (opencl_language_arch_info): Delete function, move
7123 implementation to...
7124 (opencl_language::language_arch_info): ...here, a new member
7126 (opencl_language_data): Delete la_language_arch_info.
7127 * p-lang.c (pascal_language_arch_info): Delete function, move
7128 implementation to...
7129 (pascal_language::language_arch_info): ...here, a new member
7131 (pascal_language_data): Delete la_language_arch_info.
7132 * rust-lang.c (rust_language_arch_info): Delete function, move
7133 implementation to...
7134 (rust_language::language_arch_info): ...here, a new member
7136 (rust_language_data): Delete la_language_arch_info.
7138 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7140 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
7142 * c-lang.c (c_language_data): Likewise.
7143 (cplus_language_data): Likewise.
7144 (cplus_language::pass_by_reference_info): New method.
7145 (asm_language_data): Delete la_pass_by_reference initializer.
7146 (minimal_language_data): Likewise.
7147 * cp-abi.c (cp_pass_by_reference): Remove use of
7148 default_pass_by_reference.
7149 * d-lang.c (d_language_data): Likewise.
7150 * f-lang.c (f_language_data): Likewise.
7151 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
7152 default_pass_by_reference.
7153 * go-lang.c (go_language_data): Likewise.
7154 * language.c (language_pass_by_reference): Update.
7155 (default_pass_by_reference): Delete.
7156 (unknown_language_data): Delete la_pass_by_reference
7158 (auto_language_data): Likewise.
7159 * language.h (struct language_data): Delete la_pass_by_reference
7161 (language_defn::pass_by_reference_info): New member function.
7162 (default_pass_by_reference): Delete declaration.
7163 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7165 * objc-lang.c (objc_language_data): Likewise.
7166 * opencl-lang.c (opencl_language_data): Likewise.
7167 * p-lang.c (pascal_language_data): Likewise.
7168 * rust-lang.c (rust_language_data): Likewise.
7170 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7172 * ada-lang.c (ada_read_var_value): Delete function, move
7173 implementation to...
7174 (ada_language::read_var_value): ...here.
7175 (ada_language_data): Delete la_read_var_value initializer.
7176 * c-lang.c (c_language_data): Likewise.
7177 (cplus_language_data): Likewise.
7178 (minimal_language_data): Likewise.
7179 * d-lang.c (d_language_data): Likewise.
7180 * f-lang.c (f_language_data): Likewise.
7181 * findvar.c (default_read_var_value): Rename to...
7182 (language_defn::read_var_value): ...this.
7183 * findvar.c (read_var_value): Update header comment, and change to
7184 call member function instead of function pointer.
7185 * go-lang.c (go_language_data): Likewise.
7186 * language.c (unknown_language_data): Delete la_read_var_value
7188 (auto_language_data): Likewise.
7189 * language.h (struct language_data): Delete la_read_var_value
7191 (language_defn::read_var_value): New member function.
7192 (default_read_var_value): Delete declaration.
7193 * m2-lang.c (m2_language_data): Delete la_read_var_value
7195 * objc-lang.c (objc_language_data): Likewise.
7196 * opencl-lang.c (opencl_language_data): Likewise.
7197 * p-lang.c (pascal_language_data): Likewise.
7198 * rust-lang.c (rust_language_data): Likewise.
7199 * value.h (default_read_var_value): Delete declaration.
7201 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7203 * ada-lang.c (ada_print_array_index): Delete function, move
7204 implementation to...
7205 (ada_language::print_array_index): ...here.
7206 (ada_language_data): Delete la_print_array_index initializer.
7207 * c-lang.c (c_language_data): Likewise.
7208 (cplus_language_data): Likewise.
7209 (minimal_language_data): Likewise.
7210 * d-lang.c (d_language_data): Likewise.
7211 * f-lang.c (f_language_data): Likewise.
7212 * go-lang.c (go_language_data): Likewise.
7213 * language.c (default_print_array_index): Delete function, move
7214 implementation to...
7215 (language_defn::print_array_index): ...here.
7216 (unknown_language_data): Delete la_print_array_index initializer.
7217 (auto_language_data): Likewise.
7218 * language.h (struct language_data): Delete la_print_array_index
7220 (language_defn::print_array_index): New member function.
7221 (LA_PRINT_ARRAY_INDEX): Update.
7222 (default_print_array_index): Delete declaration.
7223 * m2-lang.c (m2_language_data): Delete la_print_array_index
7225 * objc-lang.c (objc_language_data): Likewise.
7226 * opencl-lang.c (opencl_language_data): Likewise.
7227 * p-lang.c (pascal_language_data): Likewise.
7228 * rust-lang.c (rust_language_data): Likewise.
7230 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7232 * gdb/ada-lang.c (ada_language_defn): Convert to...
7233 (ada_language_data): ...this.
7234 (class ada_language): New class.
7235 (ada_language_defn): New static global.
7236 * gdb/c-lang.c (c_language_defn): Convert to...
7237 (c_language_data): ...this.
7238 (class c_language): New class.
7239 (c_language_defn): New static global.
7240 (cplus_language_defn): Convert to...
7241 (cplus_language_data): ...this.
7242 (class cplus_language): New class.
7243 (cplus_language_defn): New static global.
7244 (asm_language_defn): Convert to...
7245 (asm_language_data): ...this.
7246 (class asm_language): New class.
7247 (asm_language_defn): New static global.
7248 (minimal_language_defn): Convert to...
7249 (minimal_language_data): ...this.
7250 (class minimal_language): New class.
7251 (minimal_language_defn): New static global.
7252 * gdb/d-lang.c (d_language_defn): Convert to...
7253 (d_language_data): ...this.
7254 (class d_language): New class.
7255 (d_language_defn): New static global.
7256 * gdb/f-lang.c (f_language_defn): Convert to...
7257 (f_language_data): ...this.
7258 (class f_language): New class.
7259 (f_language_defn): New static global.
7260 * gdb/go-lang.c (go_language_defn): Convert to...
7261 (go_language_data): ...this.
7262 (class go_language): New class.
7263 (go_language_defn): New static global.
7264 * gdb/language.c (unknown_language_defn): Remove declaration.
7265 (current_language): Initialize to nullptr, real initialization is
7266 moved to _initialize_language.
7267 (languages): Delete global.
7268 (language_defn::languages): Define.
7269 (set_language_command): Use language_defn::languages.
7270 (set_language): Likewise.
7271 (range_error): Likewise.
7272 (language_enum): Likewise.
7273 (language_def): Likewise.
7274 (add_set_language_command): Use language_def::languages for the
7275 language list, and language_def to lookup language pointers.
7276 (skip_language_trampoline): Use language_defn::languages.
7277 (unknown_language_defn): Convert to...
7278 (unknown_language_data): ...this.
7279 (class unknown_language): New class.
7280 (unknown_language_defn): New static global.
7281 (auto_language_defn): Convert to...
7282 (auto_language_data): ...this.
7283 (class auto_language): New class.
7284 (auto_language_defn): New static global.
7285 (language_gdbarch_post_init): Use language_defn::languages.
7286 (_initialize_language): Initialize current_language.
7287 * gdb/language.h (struct language_defn): Rename to...
7288 (struct language_data): ...this.
7289 (struct language_defn): New.
7290 (auto_language_defn): Delete.
7291 (unknown_language_defn): Delete.
7292 (minimal_language_defn): Delete.
7293 (ada_language_defn): Delete.
7294 (asm_language_defn): Delete.
7295 (c_language_defn): Delete.
7296 (cplus_language_defn): Delete.
7297 (d_language_defn): Delete.
7298 (f_language_defn): Delete.
7299 (go_language_defn): Delete.
7300 (m2_language_defn): Delete.
7301 (objc_language_defn): Delete.
7302 (opencl_language_defn): Delete.
7303 (pascal_language_defn): Delete.
7304 (rust_language_defn): Delete.
7305 * gdb/m2-lang.c (m2_language_defn): Convert to...
7306 (m2_language_data): ...this.
7307 (class m2_language): New class.
7308 (m2_language_defn): New static global.
7309 * gdb/objc-lang.c (objc_language_defn): Convert to...
7310 (objc_language_data): ...this.
7311 (class objc_language): New class.
7312 (objc_language_defn): New static global.
7313 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7314 (opencl_language_data): ...this.
7315 (class opencl_language): New class.
7316 (opencl_language_defn): New static global.
7317 * gdb/p-lang.c (pascal_language_defn): Convert to...
7318 (pascal_language_data): ...this.
7319 (class pascal_language): New class.
7320 (pascal_language_defn): New static global.
7321 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7322 language pointer, update comment format.
7323 * gdb/rust-lang.c (rust_language_defn): Convert to...
7324 (rust_language_data): ...this.
7325 (class rust_language): New class.
7326 (rust_language_defn): New static global.
7328 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7330 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7332 <m_stmt_at_address>: New member variable.
7333 (lnp_state_machine::record_line): Don't record some lines, update
7334 tracking of is_stmt at the same address.
7335 (lnp_state_machine::lnp_state_machine): Initialise new member
7338 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7340 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7341 "-include gnu-nat-mig.h".
7342 * gnu-nat-mig.h: New file.
7343 * gnu-nat.c: Include "gnu-nat-mig.h".
7344 (exc_server, msg_reply_server, notify_server,
7345 process_reply_server): Remove declarations.
7347 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7349 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7350 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7351 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7352 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7353 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7354 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7355 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7356 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7357 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7358 to gnu_nat_target class.
7359 * gnu-nat.c: Likewise.
7360 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7361 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7362 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7364 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7365 instead of `gnu_target'.
7367 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7369 * i386-gnu-tdep.c: Include "gdbcore.h"
7370 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7371 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7372 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7373 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7374 i386_gnu_sigcontext_addr): New functions
7375 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7376 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7379 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7381 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7382 before fork_inferior call. Avoid calling it if target_is_pushed returns
7385 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7387 * gnu-nat.h (gnu_target): New variable declaration.
7388 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7390 * gnu-nat.c (gnu_target): New variable.
7391 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7392 add_thread_silent, and add_thread calls.
7393 (gnu_nat_target::create_inferior): Pass gnu_target to
7394 add_thread_silent, thread_change_ptid call.
7395 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7398 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7400 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7401 (gnu_nat_target::find_memory_regions): Remove unused
7402 `old_address' variable.
7404 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7406 * gnu-nat.c: Include "gdbarch.h".
7408 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7410 * reply_mig_hack.awk (Error return): Cast function through
7411 void *, to bypass compiler function call check.
7413 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7415 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7416 $(srcdir)/reply_mig_hack.awk.
7418 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7420 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7422 2020-05-30 Jonny Grant <jg@jguk.org>
7424 * configure.ac (ACX_BUGURL): change bug URL to https.
7426 2020-05-30 Pedro Alves <palves@redhat.com>
7428 * cp-support.c (replace_typedefs_template): New.
7429 (replace_typedefs_qualified_name): Handle
7430 DEMANGLE_COMPONENT_TEMPLATE.
7432 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7434 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7435 dwarf2/index-cache.h, dwarf2/index-write.c,
7436 dwarf2/index-write.h, dwarf2/line-header.c,
7437 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7438 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7439 variables and fields from `dwarf2_per_objfile` to just
7440 `per_objfile` throughout.
7442 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7444 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7445 <push_dwarf_reg_entry_value>: Add comment.
7447 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7448 Keith Seitz <keiths@redhat.com>
7450 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7451 instead of PyEval_ReleaseLock.
7452 (class gdbpy_gil): Move to earlier in file.
7453 (finalize_python): Set gdb_python_initialized.
7454 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7455 when not initialized.
7457 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7459 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7460 <push_dwarf_reg_entry_value>: Remove assert. Override
7461 per_objfile with caller_per_objfile.
7463 2020-05-28 Tom de Vries <tdevries@suse.de>
7465 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7466 PR gold/15646 workaround to symbol kind "type".
7468 2020-05-27 Tom Tromey <tromey@adacore.com>
7470 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7472 2020-05-27 Tom Tromey <tromey@adacore.com>
7474 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7475 Use htab_find_with_hash.
7476 <add_abbrev>: Remove "abbrev_number" parameter.
7477 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7478 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7479 (hash_abbrev): Add comment.
7480 (abbrev_table::lookup_abbrev): Move to header file.
7481 (abbrev_table::read): Update.
7483 2020-05-27 Tom Tromey <tromey@adacore.com>
7485 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7487 <canonical_name>: New member.
7488 <raw_name>: Rename from "name".
7489 (partial_die_info): Initialize canonical_name.
7490 (scan_partial_symbols): Check raw_name.
7491 (partial_die_parent_scope, partial_die_full_name)
7492 (add_partial_symbol, add_partial_subprogram)
7493 (add_partial_enumeration, load_partial_dies): Use "name" method.
7494 (partial_die_info::name): New method.
7495 (partial_die_info::read, guess_partial_die_structure_name)
7496 (partial_die_info::fixup): Update.
7498 2020-05-27 Tom Tromey <tromey@adacore.com>
7500 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7501 <get_ref_die_offset>: Inline.
7502 <get_ref_die_offset_complaint>: New method.
7503 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7504 (attribute::get_ref_die_offset_complaint): Rename from
7505 get_ref_die_offset. Just issue complaint.
7507 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7509 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7511 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7513 * exec.c (exec_file_attach): Use errno value of first openp failure.
7515 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7517 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7518 Don't close thread handle.
7520 2020-05-27 Tom Tromey <tom@tromey.com>
7521 Simon Marchi <simon.marchi@efficios.com>
7523 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7525 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7527 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7528 dwarf2_per_bfd_objfile_data_key>: New globals.
7529 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7530 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7531 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7533 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7534 short-circuit when sharing.
7535 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7536 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7538 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7540 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7542 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7543 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7547 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7548 build_name_components, find_name_components_bounds>:
7549 Add per_objfile parameter.
7550 (struct mapped_index) <symbol_name_at>: Likewise.
7551 (struct mapped_debug_names): Remove constructor.
7552 <dwarf2_per_objfile>: Remove field.
7553 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7554 (mapped_index_base::find_name_components_bounds,
7555 mapped_index_base::build_name_components,
7556 dw2_expand_symtabs_matching_symbol): Likewise.
7557 (class mock_mapped_index) <symbol_name_at>: Likewise.
7558 (check_match): Likewise.
7559 (check_find_bounds_finds): Likewise.
7560 (test_mapped_index_find_name_component_bounds): Update.
7561 (CHECK_MATCH): Update.
7562 (dw2_expand_symtabs_matching): Update.
7563 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7564 per_objfile parameter.
7565 <find_vec_in_debug_names>: Likewise.
7566 <m_per_objfile>: New field.
7567 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7569 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7570 (dw2_debug_names_iterator::next): Update.
7571 (dw2_debug_names_lookup_symbol): Update.
7572 (dw2_debug_names_expand_symtabs_for_function): Update.
7573 (dw2_debug_names_map_matching_symbols): Update.
7574 (dw2_debug_names_expand_symtabs_matching): Update.
7575 (dwarf2_read_debug_names): Update.
7577 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7579 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7580 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7581 move to dwarf2_per_objfile.
7582 <read_in_chain>: Remove.
7583 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7584 remove_all_cus, age_comp_units>: New methods.
7585 <m_dwarf2_cus>: New member.
7586 (struct dwarf2_per_cu_data) <cu>: Remove.
7587 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7588 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7589 moved to methods of dwarf2_per_objfile.
7590 (dwarf2_clear_marks): Remove.
7591 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7592 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7593 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7594 (dwarf2_per_objfile::remove_all_cus): New.
7595 (class free_cached_comp_units) <~free_cached_comp_units>:
7598 (dw2_do_instantiate_symtab): Adjust.
7599 (fill_in_sig_entry_from_dwo_entry): Adjust.
7600 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7601 (cutu_reader::cutu_reader): Likewise.
7602 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7603 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7604 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7605 and dwarf2_per_objfile::age_comp_units.
7606 (load_partial_comp_unit): Update.
7607 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7608 (process_queue): Likewise.
7609 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7611 (dwarf2_read_addr_index): Likewise.
7612 (follow_die_offset): Likewise.
7613 (dwarf2_fetch_die_loc_sect_off): Likewise.
7614 (dwarf2_fetch_constant_bytes): Likewise.
7615 (dwarf2_fetch_die_type_sect_off): Likewise.
7616 (follow_die_sig_1): Likewise.
7617 (load_full_type_unit): Likewise.
7618 (read_signatured_type): Likewise.
7619 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7620 (dwarf2_cu::~dwarf2_cu): Remove.
7621 (dwarf2_per_objfile::get_cu): New.
7622 (dwarf2_per_objfile::set_cu): New.
7623 (age_cached_comp_units): Rename to...
7624 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7625 to std::unordered_map.
7626 (free_one_cached_comp_unit): Rename to...
7627 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7628 to std::unordered_map.
7629 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7630 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7631 a dwarf2_per_objfile in data.
7632 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7633 (dwarf2_clear_marks): Remove.
7635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7637 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7638 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7639 (init_tu_and_read_dwo_dies): Likewise.
7640 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7641 (cutu_reader::cutu_reader): Likewise.
7642 (load_partial_comp_unit): Likewise.
7643 (process_psymtab_comp_unit): Update.
7644 (build_type_psymtabs_1): Update.
7645 (process_skeletonless_type_unit): Update.
7646 (load_full_comp_unit): Update.
7647 (find_partial_die): Update.
7648 (dwarf2_read_addr_index): Update.
7649 (read_signatured_type): Update.
7651 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7653 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7654 m_header_read_in>: New fields.
7655 <get_header>: New method.
7656 * dwarf2/read.c (per_cu_header_read_in): Remove.
7657 (dwarf2_per_cu_data::get_header): New.
7658 (dwarf2_per_cu_data::addr_size): Update.
7659 (dwarf2_per_cu_data::offset_size): Update.
7660 (dwarf2_per_cu_data::ref_addr_size): Update.
7662 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7664 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7665 (dw2_do_instantiate_symtab): Update.
7666 (queue_and_load_all_dwo_tus): Change parameter from
7667 dwarf2_per_cu_data to dwarf2_cu.
7668 (dwarf2_fetch_die_loc_sect_off): Update.
7669 (dwarf2_fetch_constant_bytes): Update.
7670 (dwarf2_fetch_die_type_sect_off): Update.
7672 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7674 * dwarf2/read.c (process_full_comp_unit,
7675 process_full_type_unit): Remove per_cu, per_objfile paramters.
7676 Add dwarf2_cu parameter.
7677 (process_queue): Update.
7679 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7681 * dwarf2/read.c (create_cu_from_index_list): Replace
7682 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7683 (create_cus_from_index_list): Likewise.
7684 (create_cus_from_index): Likewise.
7685 (create_signatured_type_table_from_index): Likewise.
7686 (create_cus_from_debug_names_list): Likewise.
7687 (create_cus_from_debug_names): Likewise.
7688 (dwarf2_read_gdb_index): Update.
7689 (dwarf2_read_debug_names): Update.
7691 2020-05-27 Tom Tromey <tom@tromey.com>
7692 Simon Marchi <simon.marchi@efficios.com>
7694 * dwarf2/read.h (struct dwarf2_per_objfile)
7695 <get_type_for_signatured_type, set_type_for_signatured_type>:
7697 <m_type_map>: New member.
7698 (struct signatured_type) <type>: Remove.
7700 (dwarf2_per_objfile::get_type_for_signatured_type,
7701 dwarf2_per_objfile::set_type_for_signatured_type): New.
7702 (get_signatured_type): Use new methods.
7704 2020-05-27 Tom Tromey <tom@tromey.com>
7705 Simon Marchi <simon.marchi@efficios.com>
7707 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7708 (struct dwarf2_per_objfile) <type_units>: New member.
7709 <get_type_unit_group_unshareable>: New method.
7710 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7711 num_symtabs, symtabs>: Remove; move to
7712 type_unit_group_unshareable.
7713 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7714 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7715 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7719 * dwarf2/read.h (struct dwarf2_per_cu_data):
7720 <dwarf2_per_objfile>: Remove.
7721 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7723 (create_signatured_type_table_from_index): Likewise.
7724 (create_signatured_type_table_from_debug_names): Likewise.
7725 (create_debug_type_hash_table): Likewise.
7726 (fill_in_sig_entry_from_dwo_entry): Likewise.
7727 (create_type_unit_group): Likewise.
7728 (read_comp_units_from_section): Likewise.
7729 (create_cus_hash_table): Likewise.
7731 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7733 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7734 dwarf2_per_cu_data::dwarf2_per_objfile.
7735 (compute_compunit_symtab_includes): Likewise.
7736 (dwarf2_cu::start_symtab): Likewise.
7738 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7740 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7742 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7743 (read_namespace_alias): Update.
7744 (lookup_die_type): Update.
7745 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7746 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7748 (disassemble_dwarf_expression): Update.
7750 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7752 * dwarf2/read.h (struct dwarf2_queue_item): Add
7753 dwarf2_per_objfile parameter, assign new parameter.
7754 <per_objfile>: New field.
7755 * dwarf2/read.c (free_one_cached_comp_unit): Add
7756 dwarf2_per_objfile parameter.
7757 (queue_comp_unit): Likewise.
7758 (dw2_do_instantiate_symtab): Update.
7759 (process_psymtab_comp_unit): Update.
7760 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7761 (process_imported_unit_die): Update.
7762 (queue_and_load_dwo_tu): Update.
7763 (follow_die_offset): Update.
7764 (follow_die_sig_1): Update.
7766 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7768 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7769 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7770 (read_call_site_scope): Assign per_objfile.
7771 (dwarf2_per_cu_data::objfile): Remove.
7772 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7773 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7774 dwarf2_per_objfile parameter.
7775 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7776 dwarf2_per_objfile parameter.
7777 (dwarf_expr_reg_to_entry_parameter): Add output
7778 dwarf2_per_objfile parameter.
7779 (locexpr_get_frame_base): Update.
7780 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7781 <push_dwarf_reg_entry_value>: Update.
7782 <call_site_to_target_addr>: Update.
7783 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7785 (value_of_dwarf_reg_entry): Update.
7786 (rw_pieced_value): Update.
7787 (indirect_synthetic_pointer): Update.
7788 (dwarf2_evaluate_property): Update.
7789 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7791 (locexpr_read_variable): Update.
7792 (locexpr_get_symbol_read_needs): Update.
7793 (loclist_read_variable): Update.
7795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7797 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7798 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7799 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7801 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7802 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7803 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7805 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7806 sect_variable_value): Add dwarf2_per_objfile parameter.
7807 (class dwarf_evaluate_loc_desc) <dwarf_call,
7808 dwarf_variable_value>: Update.
7809 (fetch_const_value_from_synthetic_pointer): Add
7810 dwarf2_per_objfile parameter.
7811 (fetch_const_value_from_synthetic_pointer): Update.
7812 (coerced_pieced_ref): Update.
7813 (class symbol_needs_eval_context) <dwarf_call,
7814 dwarf_variable_value>: Update.
7815 (dwarf2_compile_expr_to_ax): Update.
7817 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7819 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7821 (dwarf2_evaluate_loc_desc_full): Update.
7823 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7825 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7827 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7828 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7829 dwarf2_per_objfile parameter.
7830 (decode_debug_loc_dwo_addresses): Likewise.
7831 (dwarf2_find_location_expression): Update.
7832 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7833 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7835 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7837 (locexpr_describe_location_1): Likewise.
7838 (locexpr_describe_location): Update.
7840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7842 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7844 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7845 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7846 (dwarf2_compile_property_to_c): Update.
7847 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7848 use text offset from objfile.
7849 (locexpr_tracepoint_var_ref): Update.
7850 (locexpr_generate_c_location): Update.
7851 (loclist_describe_location): Update.
7852 (loclist_tracepoint_var_ref): Update.
7853 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7854 dwarf2_per_objfile parameter.
7855 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7856 use text offset from objfile.
7857 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7861 * dwarf2/expr.h (struct dwarf_expr_context)
7862 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7864 <per_objfile>: New member.
7865 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7866 dwarf2_per_objfile parameter. Don't set offset, set
7868 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7869 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7870 a dwarf2_per_objfile object instead of an offset.
7871 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7873 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7874 to dwarf2_expr_executor constructor. Don't set offset.
7875 (dwarf2_fetch_cfa_info): Update.
7876 (struct dwarf2_frame_cache) <text_offset>: Remove.
7877 <per_objfile>: New field.
7878 (dwarf2_frame_cache): Update.
7879 (dwarf2_frame_prev_register): Update.
7880 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7881 <dwarf_evaluate_loc_desc>: Add constructor.
7882 (dwarf2_evaluate_loc_desc_full): Update.
7883 (dwarf2_locexpr_baton_eval): Update.
7884 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7886 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7890 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7891 addr_sized_int_type>: Move to dwarf2_cu.
7892 <int_type>: Move to dwarf2_per_objfile.
7893 (struct dwarf2_per_objfile) <int_type>: Move here.
7894 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7895 addr_sized_int_type>: Move here.
7896 (read_func_scope): Update.
7897 (read_array_type): Update.
7898 (read_tag_string_type): Update.
7899 (attr_to_dynamic_prop): Update.
7900 (dwarf2_per_cu_data::int_type): Rename to...
7901 (dwarf2_per_objfile::int_type): ... this.
7902 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7903 (dwarf2_cu::addr_sized_int_type): ... this.
7904 (read_subrange_type): Update.
7905 (dwarf2_per_cu_data::addr_type): Rename to...
7906 (dwarf2_cu::addr_type): ... this.
7907 (set_die_type): Update.
7909 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7911 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7912 data through per_cu->cu.
7914 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7916 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7917 dwarf2_per_cu_data parameter fo dwarf2_cu.
7918 (lookup_dwo_type_unit): Likewise.
7919 (read_cutu_die_from_dwo): Likewise.
7920 (lookup_dwo_unit): Likewise.
7921 (open_and_init_dwo_file): Likewise.
7922 (lookup_dwo_cutu): Likewise.
7923 (lookup_dwo_comp_unit): Likewise.
7924 (lookup_dwo_type_unit): Likewise.
7925 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7926 (cutu_reader::cutu_reader): Update.
7928 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7930 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7932 (process_full_type_unit): Likewise.
7933 (process_queue): Update.
7935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7937 * dwarf2/read.c (recursively_compute_inclusions): Add
7938 dwarf2_per_objfile parameter.
7939 (compute_compunit_symtab_includes): Likewise.
7940 (process_cu_includes): Update.
7942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7944 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7946 (create_type_unit_group): Update.
7947 (process_psymtab_comp_unit_reader): Update.
7948 (build_type_psymtabs_reader): Update.
7950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7952 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7953 object through m_this_cu->cu.
7955 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7957 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7959 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7961 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7963 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7964 per_objfile parameter.
7965 (load_full_type_unit): Add per_objfile parameter.
7966 (read_signatured_type): Likewise.
7967 (load_full_comp_unit): Likewise.
7968 (load_cu): Likewise.
7969 (dw2_do_instantiate_symtab): Likewise.
7970 (dw2_get_file_names): Likewise.
7971 (dw2_map_symtabs_matching_filename): Update.
7972 (dw_expand_symtabs_matching_file_matcher): Update.
7973 (dw2_map_symbol_filenames): Update.
7974 (process_psymtab_comp_unit): Add per_objfile parameter.
7975 (build_type_psymtabs_1): Update.
7976 (process_skeletonless_type_unit): Update.
7977 (dwarf2_build_psymtabs_hard): Update.
7978 (load_partial_comp_unit): Add per_objfile parameter.
7979 (scan_partial_symbols): Update.
7980 (load_full_comp_unit): Add per_objfile parameter.
7981 (process_imported_unit_die): Update.
7982 (create_cus_hash_table): Update.
7983 (find_partial_die): Update.
7984 (dwarf2_read_addr_index): Update.
7985 (follow_die_offset): Update.
7986 (dwarf2_fetch_die_loc_sect_off): Update.
7987 (dwarf2_fetch_constant_bytes): Update.
7988 (dwarf2_fetch_die_type_sect_off): Update.
7989 (follow_die_sig_1): Update.
7990 (load_full_type_unit): Add per_objfile parameter.
7991 (read_signatured_type): Likewise.
7993 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7995 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8000 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
8001 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8002 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
8004 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
8005 (create_cus_from_index): Update.
8006 (dwarf2_read_gdb_index): Update.
8007 (create_cus_from_debug_names): Update.
8008 (dwarf2_read_debug_names): Update.
8009 (get_abbrev_section_for_cu): Update.
8010 (create_all_comp_units): Update.
8011 (read_attribute_value): Update.
8012 (get_debug_line_section): Update.
8013 * dwarf2/index-cache.c (index_cache::store): Update.
8014 * dwarf2/index-write.c (save_gdb_index_command): Update.
8015 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
8017 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8019 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
8021 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
8022 dwarf2_per_cu_data::per_bfd.
8023 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
8024 (create_type_unit_group): Likewise.
8025 (queue_comp_unit): Remove reference to
8026 per_cu->dwarf2_per_objfile.
8027 (maybe_queue_comp_unit): Likewise.
8028 (fill_in_sig_entry_from_dwo_entry): Assign new field.
8029 (create_cus_hash_table): Assign new field.
8031 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8033 * dwarf2/read.c: Replace
8034 dwarf2_cu->per_cu->dwarf2_per_objfile references with
8035 dwarf2_cu->per_objfile throughout.
8037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8039 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
8040 parameter, don't use per_cu->dwarf2_per_objfile.
8041 (dw2_instantiate_symtab): Likewise.
8042 (dw2_find_last_source_symtab): Update.
8043 (dw2_map_expand_apply): Update.
8044 (dw2_lookup_symbol): Update.
8045 (dw2_expand_symtabs_for_function): Update.
8046 (dw2_expand_all_symtabs): Update.
8047 (dw2_expand_symtabs_with_fullname): Update.
8048 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
8049 don't use per_cu->dwarf2_per_objfile.
8050 (dw2_expand_marked_cus): Update.
8051 (dw2_find_pc_sect_compunit_symtab): Update.
8052 (dw2_debug_names_lookup_symbol): Update.
8053 (dw2_debug_names_expand_symtabs_for_function): Update.
8054 (dw2_debug_names_map_matching_symbols): Update.
8055 (dwarf2_psymtab::expand_psymtab): Update.
8057 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8059 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
8060 <per_objfile>: New member.
8061 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
8062 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
8064 (cutu_reader::cutu_reader): Update.
8065 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
8067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
8069 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
8070 struct dwarf2_per_objfile.
8071 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
8073 * dwarf2/read.c (set_die_type): Update.
8074 (get_die_type_at_offset): Update.
8076 2020-05-27 Tom Tromey <tom@tromey.com>
8077 Simon Marchi <simon.marchi@efficios.com>
8079 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
8081 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
8082 get_symtab, set_symtab>: New methods.
8083 <m_symtabs>: New field.
8084 (struct dwarf2_psymtab): Derive from partial_symtab.
8085 <readin_p, get_compunit_symtab>: Declare methods.
8086 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
8087 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
8089 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
8090 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
8091 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
8092 (dw2_symtab_iter_next, dw2_print_stats)
8093 (dw2_expand_symtabs_with_fullname)
8094 (dw2_expand_symtabs_matching_one)
8095 (dw_expand_symtabs_matching_file_matcher)
8096 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
8097 (dw2_debug_names_iterator::next)
8098 (dw2_debug_names_map_matching_symbols)
8099 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
8100 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
8101 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
8103 (get_compunit_symtab, process_full_comp_unit)
8104 (process_full_type_unit): Update.
8105 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
8107 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8109 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
8110 then introduce a new dwarf2_per_objfile type.
8111 <read_line_string>: Move to the new dwarf2_per_objfile type.
8112 <objfile>: Likewise.
8113 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
8114 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
8115 dwarf2_per_objfile->per_bfd.
8116 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
8117 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
8118 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
8119 (dwarf2_per_bfd::free_cached_comp_units): ... this.
8120 (dwarf2_has_info): Allocate dwarf2_per_bfd.
8121 (dwarf2_per_objfile::locate_sections): Rename to...
8122 (dwarf2_per_bfd::locate_sections): ... this.
8123 (dwarf2_per_objfile::get_cutu): Rename to...
8124 (dwarf2_per_bfd::get_cutu): ... this.
8125 (dwarf2_per_objfile::get_cu): Rename to...
8126 (dwarf2_per_bfd::get_cu): ... this.
8127 (dwarf2_per_objfile::get_tu): Rename to...
8128 (dwarf2_per_bfd::get_tu): ... this.
8129 (dwarf2_per_objfile::allocate_per_cu): Rename to...
8130 (dwarf2_per_bfd::allocate_per_cu): ... this.
8131 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
8132 (dwarf2_per_bfd::allocate_signatured_type): ... this.
8133 (get_gdb_index_contents_ftype): Change parameter from
8134 dwarf2_per_objfile to dwarf2_per_bfd.
8135 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
8136 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
8138 2020-05-27 Tom Tromey <tom@tromey.com>
8139 Simon Marchi <simon.marchi@efficios.com>
8141 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
8142 (allocate_piece_closure): Set "per_objfile" member.
8143 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
8144 (locexpr_describe_location, loclist_describe_location): Use new
8146 * dwarf2/read.c (read_call_site_scope)
8147 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
8148 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
8149 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
8150 handle_data_member_location): Set per_objfile member.
8151 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
8153 (struct dwarf2_loclist_baton) <per_objfile>: New member.
8155 2020-05-27 Tom Tromey <tom@tromey.com>
8157 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8158 allocate_signatured_type>: Declare new methods.
8159 <m_num_psymtabs>: New member.
8160 (struct dwarf2_per_cu_data) <index>: New member.
8161 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8162 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8163 (create_cu_from_index_list): Use allocate_per_cu.
8164 (create_signatured_type_table_from_index)
8165 (create_signatured_type_table_from_debug_names)
8166 (create_debug_type_hash_table, add_type_unit)
8167 (read_comp_units_from_section): Use allocate_signatured_type.
8169 2020-05-27 Tom Tromey <tom@tromey.com>
8171 * psymtab.c (partial_map_expand_apply)
8172 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8173 (psym_lookup_global_symbol_language)
8174 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8175 (psym_print_stats, psym_expand_symtabs_for_function)
8176 (psym_map_symbol_filenames, psym_map_matching_symbols)
8177 (psym_expand_symtabs_matching)
8178 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8179 (maintenance_check_psymtabs): Update.
8180 * psympriv.h (struct partial_symtab) <readin_p,
8181 get_compunit_symtab>: Add objfile parameter.
8182 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8184 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8185 get_compunit_symtab>: Likewise.
8186 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8188 2020-05-27 Tom Tromey <tom@tromey.com>
8190 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8192 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8193 (create_cu_from_index_list)
8194 (create_signatured_type_table_from_index)
8195 (create_signatured_type_table_from_debug_names)
8196 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8197 (dwarf2_create_include_psymtab)
8198 (create_debug_type_hash_table, add_type_unit)
8199 (create_type_unit_group, read_comp_units_from_section)
8200 (dwarf2_compute_name, create_cus_hash_table)
8201 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8202 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8204 (dw2_get_real_path): Likewise. Change argument to
8207 2020-05-27 Luis Machado <luis.machado@linaro.org>
8210 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8211 for ldrd (immediate).
8213 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8215 * command.h: Add comment giving the name of class_tui.
8216 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8217 create the fake command for the help for class_tui.
8219 2020-05-26 Tom Tromey <tromey@adacore.com>
8221 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8222 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8223 (val_atr): New function.
8224 (value_val_atr): Use it.
8225 * ada-valprint.c (print_optional_low_bound): Change low bound
8227 (val_print_packed_array_elements): Don't call discrete_position.
8228 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8229 discrete_position for enum types.
8230 * language.c (default_print_array_index): Change type.
8231 * language.h (struct language_defn) <la_print_array_index>: Add
8232 index_type parameter, change type of index_value.
8233 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8234 (default_print_array_index): Update.
8235 * valprint.c (maybe_print_array_index): Don't call
8236 value_from_longest. Update.
8237 (value_print_array_elements): Don't call discrete_position.
8239 2020-05-26 Tom Tromey <tromey@adacore.com>
8241 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8242 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8244 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8247 * avr-tdep.c (avr_integer_to_address): Return data or code
8248 address accordingly to the second 'type' argument of the
8251 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8253 * infcmd.c, inferior.h: (construct_inferior_arguments):
8254 Moved function from here to gdbsupport/common-inferior.{h,cc}
8256 2020-05-23 Tom Tromey <tom@tromey.com>
8258 Revert commit eca1f90c:
8259 * NEWS: Remove entry for completion styling.
8260 * completer.c (_rl_completion_prefix_display_length): Move
8262 (gdb_fnprint): Revert.
8263 (gdb_display_match_list_1): Likewise.
8264 * cli/cli-style.c (completion_prefix_style)
8265 (completion_difference_style, completion_suffix_style): Remove.
8266 (_initialize_cli_style): Revert.
8267 * cli/cli-style.h (completion_prefix_style)
8268 (completion_difference_style, completion_suffix_style): Don't
8271 2020-05-24 Pedro Alves <palves@redhat.com>
8273 * symtab.c (completion_list_add_name): Return boolean indication
8274 of whether the symbol matched.
8275 (completion_list_add_symbol): Don't try to remove C++ aliases if
8276 the symbol didn't match in the first place.
8277 * symtab.h (completion_list_add_name): Return bool.
8279 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8281 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8284 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8288 2020-05-23 Tom Tromey <tom@tromey.com>
8290 * NEWS: Add entry for completion styling.
8291 * completer.c (_rl_completion_prefix_display_length): Move
8292 declaration earlier.
8293 (gdb_fnprint): Use completion_style.
8294 (gdb_display_match_list_1): Likewise.
8295 * cli/cli-style.c (completion_prefix_style)
8296 (completion_difference_style, completion_suffix_style): New
8298 (_initialize_cli_style): Register new globals.
8299 * cli/cli-style.h (completion_prefix_style)
8300 (completion_difference_style, completion_suffix_style): Declare.
8302 2020-05-23 Pedro Alves <palves@redhat.com>
8304 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8305 (parse_escape): Use ISDIGIT instead of isdigit.
8306 (puts_debug): Use gdb_isprint instead of isprint.
8307 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8308 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8309 ISSPACE instead of isspace.
8310 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8312 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8313 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8314 instead of isxdigit and ISDIGIT instead of isdigit.
8316 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8318 * gdbtypes.h (struct type) <field>: New method.
8319 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8322 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8324 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8325 (TYPE_FIELDS): Use type::fields. Change all call sites that
8326 modify the propery to use type::set_fields instead.
8328 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8330 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8331 type::num_fields instead.
8333 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8335 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8337 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8338 that modify the number of fields to use type::set_num_fields
8341 2020-05-22 Tom Tromey <tromey@adacore.com>
8343 * compile/compile-object-load.h (munmap_list_free): Don't
8346 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8348 * annotate.c (annotate_source_line): Update return type, add call
8349 to update current symtab and line.
8350 * annotate.h (annotate_source_line): Update return type, and
8351 extend header comment.
8352 * source.c (info_line_command): Check annotation_level before
8353 calling annotate_source_line.
8354 * stack.c (print_frame_info): If calling annotate_source_line
8355 returns true, then don't print any other source line information.
8357 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8359 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8361 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8363 * coffread.c (patch_type): Remove NULL check before xfree.
8364 * corefile.c (set_gnutarget): Likewise.
8365 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8366 * exec.c (build_section_table): Likewise.
8367 * remote.c (remote_target::pass_signals): Likewise.
8368 * utils.c (n_spaces): Likewise.
8369 * cli/cli-script.c (document_command): Likewise.
8370 * i386-windows-tdep.c (core_process_module_section): Likewise.
8371 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8373 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8375 * symfile.c (reread_symbols): Clear objfile's section_offsets
8376 vector and section indices, re-compute them by calling
8379 2020-05-20 Tom Tromey <tromey@adacore.com>
8381 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8382 (desc_one_bound, desc_index_type): Compute field name.
8384 2020-05-20 Tom de Vries <tdevries@suse.de>
8387 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8389 2020-05-20 Alan Modra <amodra@gmail.com>
8392 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8394 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8395 passed to bfd_set_filename.
8396 * symfile-mem.c (add_vsyscall_page): Likewise for string
8397 passed to symbol_file_add_from_memory.
8398 (symbol_file_add_from_memory): Make name param a const char* and
8401 2020-05-20 Alan Modra <amodra@gmail.com>
8403 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8404 rather than accessing bfd->filename directly.
8405 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8406 and use bfd_section_name.
8407 * dwarf2/frame.c (decode_frame_entry): Likewise.
8408 * exec.c (exec_set_section_address): Likewise.
8409 * solib-aix.c (solib_aix_bfd_open): Likewise.
8410 * stap-probe.c (get_stap_base_address): Likewise.
8411 * symfile.c (reread_symbols): Likewise.
8413 2020-05-19 Tom Tromey <tromey@adacore.com>
8415 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8417 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8419 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8421 2020-05-19 Pedro Alves <palves@redhat.com>
8423 * NEWS (set exec-file-mismatch): Adjust entry.
8424 * exec.c: Include "build-id.h".
8425 (validate_exec_file): Try to match build IDs instead of filenames.
8426 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8427 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8428 and pass down 'warn_if_slow'.
8429 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8430 gdb_bfd_open_closure to pass it down.
8431 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8433 2020-05-19 Pedro Alves <palves@redhat.com>
8435 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8436 * target.c (target_fileio_open_1): Rename to target_fileio_open
8437 and make extern. Use bool.
8438 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8439 (target_fileio_read_alloc_1): Adjust.
8440 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8441 (target_fileio_open_warn_if_slow): Delete declaration.
8443 2020-05-19 Pedro Alves <palves@redhat.com>
8445 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8448 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8450 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8451 whether disp is negative.
8453 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8455 * symfile.h (struct symfile_segment_data)
8456 <~symfile_segment_data>: Remove.
8457 <segment_info>: Change to std::vector.
8458 * symfile.c (default_symfile_segments): Update.
8459 * elfread.c (elf_symfile_segments): Update.
8461 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8463 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8465 <segment_bases, segment_sizes>: Remove.
8466 * symfile.c (default_symfile_segments): Update.
8467 * elfread.c (elf_symfile_segments): Update.
8468 * remote.c (remote_target::get_offsets): Update.
8469 * solib-target.c (solib_target_relocate_section_addresses):
8472 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8474 * symfile.h (struct symfile_segment_data): Initialize fields.
8475 <~symfile_segment_data>: Add.
8476 (symfile_segment_data_up): New.
8477 (struct sym_fns) <sym_segments>: Return a
8478 symfile_segment_data_up.
8479 (default_symfile_segments): Return a symfile_segment_data_up.
8480 (free_symfile_segment_data): Remove.
8481 (get_symfile_segment_data): Return a symfile_segment_data_up.
8482 * symfile.c (default_symfile_segments): Likewise.
8483 (get_symfile_segment_data): Likewise.
8484 (free_symfile_segment_data): Remove.
8485 (symfile_find_segment_sections): Update.
8486 * elfread.c (elf_symfile_segments): Return a
8487 symfile_segment_data_up.
8488 * remote.c (remote_target::get_offsets): Update.
8489 * solib-target.c (solib_target_relocate_section_addresses):
8491 * symfile-debug.c (debug_sym_segments): Return a
8492 symfile_segment_data_up.
8494 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8497 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8498 Hardcode register numbers.
8501 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8502 procfs_find_LDT_entry): Remove.
8503 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8504 procfs_find_LDT_entry): Remove.
8505 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8508 2020-05-17 Pedro Alves <palves@redhat.com>
8509 Andrew Burgess <andrew.burgess@embecosm.com>
8510 Keno Fischer <keno@juliacomputing.com>
8513 * breakpoint.c (build_target_condition_list): Update comments.
8514 (build_target_command_list): Update comments and skip matching
8516 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8517 a separate function. Simplify "set breakpoint auto-hw off"
8519 (insert_breakpoints): Update comment.
8520 (tracepoint_locations_match): New parameter. For breakpoints,
8521 compare location types too, if the caller wants to.
8522 (handle_automatic_hardware_breakpoints): New functions.
8523 (bp_location_is_less_than): Also sort by location type and
8524 hardware breakpoint length.
8525 (update_global_location_list): Handle "set breakpoint auto-hw on"
8527 (update_breakpoint_locations): Ask breakpoint_locations_match to
8528 ignore location types.
8530 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8532 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8535 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8537 * gdbtypes.h (struct type) <name, set_name>: New methods.
8538 (TYPE_CODE): Use type::name. Change all call sites used to set
8539 the name to use type::set_name instead.
8541 2020-05-16 Tom Tromey <tom@tromey.com>
8543 * top.c (quit_force): Update.
8544 * infrun.c (handle_no_resumed): Update.
8545 * top.h (all_uis): New function.
8548 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8550 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8552 2020-05-16 Pedro Alves <palves@redhat.com>
8555 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8557 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8559 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8561 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8562 (sparc64_adi_info): Likewise.
8564 2020-05-15 Tom Tromey <tom@tromey.com>
8566 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8568 (lookup_objfile_from_block): Remove.
8569 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8570 (lookup_global_symbol): Use block_objfile.
8571 * symtab.h (lookup_objfile_from_block): Don't declare.
8572 * printcmd.c (clear_dangling_display_expressions): Use
8574 * parse.c (operator_check_standard): Use block_objfile.
8576 2020-05-15 Tom Tromey <tom@tromey.com>
8578 * language.c (language_alloc_type_symbol): Set
8580 * symtab.c (initialize_objfile_symbol): Remove.
8581 (allocate_symbol): Remove.
8582 (allocate_template_symbol): Remove.
8583 * dwarf2/read.c (fixup_go_packaging): Use "new".
8584 (new_symbol): Use "new".
8585 (read_variable): Don't call initialize_objfile_symbol. Use
8587 (read_func_scope): Use "new".
8588 * xcoffread.c (process_xcoff_symbol): Don't call
8589 initialize_objfile_symbol.
8590 (SYMBOL_DUP): Remove.
8591 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8593 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8594 (allocate_template_symbol): Don't declare.
8595 (struct symbol): Add copy constructor. Change defaults.
8596 * jit.c (finalize_symtab): Use "new".
8597 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8599 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8600 (common_block_end): Use "new".
8601 * mdebugread.c (parse_symbol): Use "new".
8602 (new_symbol): Likewise.
8604 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8606 * NEWS: Mention changes to help and apropos.
8608 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8610 * command.h (enum command_class): Improve comments, document
8611 that class_alias is for user-defined aliases, give the class
8612 name for each class, remove unused class_xdb.
8613 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8614 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8616 * infcmd.c (_initialize_infcmd): Likewise.
8617 * reverse.c (_initialize_reverse): Likewise.
8618 * stack.c (_initialize_stack): Likewise.
8619 * symfile.c (_initialize_symfile): Likewise.
8620 * tracepoint.c (_initialize_tracepoint): Likewise.
8622 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8624 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8625 when their aliased command is traversed.
8626 (help_cmd): Add fput_command_names_styled call to
8627 output command name and aliases when command has an alias.
8629 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8631 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8632 * cli/cli-decode.c (help_cmd_list): Declare as static,
8633 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8634 a command together with the command.
8635 (fput_command_name_styled, fput_command_names_styled): New functions.
8636 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8637 fput_command_name_styled.
8638 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8639 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8641 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8643 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8644 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8645 * command.h (cmd_show_list): Likewise.
8646 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8647 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8649 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8651 * unittests/command-def-selftests.c (traverse_command_structure):
8652 Verify all commands of a list have the same prefix command and
8653 that only the top cmdlist commands have a null prefix.
8655 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8657 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8658 as prefix, not one of its aliases.
8659 (set_cmd_prefix): Remove.
8660 (do_add_cmd): Centralize the setting of the prefix of a command, when
8661 command is defined after its full chain of prefix commands.
8662 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8663 (add_setshow_cmd_full): Likewise.
8664 (update_prefix_field_of_prefixed_commands): New function.
8665 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8666 update_prefix_field_of_prefixed_commands.
8667 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8668 addresses of remote_set_cmdlist and remote_show_cmdlist given
8669 as argument, not the address of an argument.
8670 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8671 * gdb/remote.c (_initialize_remote): Likewise.
8673 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8675 * cli/cli-cmds.c (alias_command): Check for an existing alias
8676 using lookup_cmd_composition, as valid_command_p is too strict
8677 and forbids aliases that are the prefix of an existing alias
8679 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8680 command is properly recognised as a valid command.
8682 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8684 * unittests/help-doc-selftests.c: Rename to
8685 unittests/command-def-selftests.c
8686 * unittests/command-def-selftests.c (help_doc_tests): Update some
8688 (command_structure_tests, traverse_command_structure): New namespace
8690 (command_structure_invariants_tests): New function.
8691 (_initialize_command_def_selftests) Renamed from
8692 _initialize_help_doc_selftests, register command_structure_invariants
8695 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8697 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8700 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8702 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8703 ada_is_fixed_point_type. Update all callers.
8704 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8706 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8708 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8709 print_fixed_point_type. Update all callers.
8710 * ada-valprint.c (ada_value_print_num): Replace call to
8711 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8713 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8715 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8717 (cpu_supports_bts): Add CV_AMD case.
8719 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8720 Simon Marchi <simon.marchi@efficios.com>
8722 * infrun.c (stop_all_threads): Collect multiple wait events at
8725 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8727 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8730 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8732 * gdbtypes.h (struct type) <code, set_code>: New methods.
8733 (TYPE_CODE): Use type::code. Change all call sites used to set
8734 the code to use type::set_code instead.
8736 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8737 Tom de Vries <tdevries@suse.de>
8738 Pedro Alves <palves@redhat.com>
8741 * infrun.c (stop_all_threads): Do NOT ignore
8742 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8743 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8745 (handle_no_resumed): Remove code handling a live inferior with no
8747 * remote.c (has_single_non_exited_thread): New.
8748 (remote_target::update_thread_list): Do not delete a thread if is
8749 the last thread of the process.
8750 * thread.c (thread_select): Call delete_exited_threads instead of
8753 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8755 * infrun.c (stop_all_threads): Enable/disable thread events of all
8756 targets. Move a debug message denoting the end of the function
8757 into the SCOPED_EXIT block.
8759 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8761 * process-stratum-target.h: Include <set>.
8762 (all_non_exited_process_targets, switch_to_target_no_thread): New
8763 function declarations.
8764 * process-stratum-target.c (all_non_exited_process_targets)
8765 (switch_to_target_no_thread): New function implementations.
8767 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8769 * infrun.c (handle_inferior_event): Extract out a piece of code
8771 (mark_non_executing_threads): ...this new function.
8773 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8775 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8778 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8780 * regcache.c (regcache_read_pc_protected): New function
8781 implementation that returns 0 if the PC cannot read via
8783 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8784 instead of 'regcache_read_pc'.
8785 (keep_going_pass_signal): Ditto.
8787 2020-05-13 Tom Tromey <tromey@adacore.com>
8789 * ada-lang.c (align_value): Remove.
8790 (ada_template_to_fixed_record_type_1): Use align_up.
8792 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8794 * async-event.c: Update the copyright year.
8795 * async-event.h: Update the copyright year.
8797 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8799 * objfiles.h (is_addr_in_objfile,
8800 shared_objfile_contains_address_p): Return bool.
8801 * objfile.c (is_addr_in_objfile,
8802 shared_objfile_contains_address_p): Return bool.
8804 2020-05-11 Tom Tromey <tromey@adacore.com>
8806 * cli/cli-cmds.c (info_command): Restore.
8807 (_initialize_cli_cmds): Use add_prefix_command for "info".
8808 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8810 2020-05-11 Tom Tromey <tromey@adacore.com>
8812 * ada-lang.c (ada_value_primitive_field): Now public.
8813 * ada-lang.h (ada_value_primitive_field): Declare.
8814 * ada-valprint.c (print_field_values): Use
8815 ada_value_primitive_field for wrapper fields.
8817 2020-05-11 Tom de Vries <tdevries@suse.de>
8819 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8822 2020-05-11 Tom de Vries <tdevries@suse.de>
8825 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8826 with length 0, if not gdb-produced.
8827 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8829 2020-05-09 Tom de Vries <tdevries@suse.de>
8832 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8835 2020-05-09 Tom Tromey <tom@tromey.com>
8837 * top.c (server_command): Now bool.
8838 * top.h (server_command): Now bool.
8840 2020-05-08 Tom Tromey <tromey@adacore.com>
8842 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8843 already being processed.
8845 2020-05-08 Tom Tromey <tom@tromey.com>
8847 * printcmd.c (struct display) <next>: Remove.
8848 <display>: New constructor.
8849 <exp_string>: Now a std::string.
8850 <enabled_p>: Now a bool.
8851 (display_number): Move definition earlier.
8852 (displays): Rename from display_chain. Now a std::vector.
8853 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8854 (display_command): Update.
8855 (do_one_display, disable_display)
8856 (enable_disable_display_command, do_enable_disable_display):
8858 (free_display): Remove.
8859 (clear_displays): Rewrite.
8860 (delete_display): Update.
8861 (map_display_numbers): Use function_view. Remove "data"
8863 (do_delete_display): Remove.
8864 (undisplay_command): Update.
8865 (do_one_display, do_displays, disable_display)
8866 (info_display_command): Update.
8867 (do_enable_disable_display): Remove.
8868 (enable_disable_display_command)
8869 (clear_dangling_display_expressions): Update.
8871 2020-05-08 Tom Tromey <tom@tromey.com>
8873 * symtab.c (set_symbol_cache_size)
8874 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8875 (maintenance_print_symbol_cache_statistics): Update.
8876 * symmisc.c (print_symbol_bcache_statistics)
8877 (print_objfile_statistics, maintenance_print_objfiles)
8878 (maintenance_info_symtabs, maintenance_check_symtabs)
8879 (maintenance_expand_symtabs, maintenance_info_line_tables):
8881 * symfile-debug.c (set_debug_symfile): Update.
8882 * source.c (forget_cached_source_info): Update.
8883 * python/python.c (gdbpy_progspaces): Update.
8884 * psymtab.c (maintenance_info_psymtabs): Update.
8885 * probe.c (parse_probes): Update.
8886 * linespec.c (iterate_over_all_matching_symtabs)
8887 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8888 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8889 * exec.c (exec_target::close): Update.
8890 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8891 * breakpoint.c (print_one_breakpoint_location)
8892 (create_longjmp_master_breakpoint)
8893 (create_std_terminate_master_breakpoint): Update.
8894 * progspace.c (program_spaces): Now a std::vector.
8895 (maybe_new_address_space): Update.
8896 (add_program_space): Remove.
8897 (program_space::program_space): Update.
8898 (remove_program_space): Update.
8899 (number_of_program_spaces): Remove.
8900 (print_program_space, update_address_spaces): Update.
8901 * progspace.h (program_spaces): Change type.
8902 (ALL_PSPACES): Remove.
8903 (number_of_program_spaces): Don't declare.
8904 (struct program_space) <next>: Remove.
8906 2020-05-08 Tom Tromey <tom@tromey.com>
8908 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8909 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8910 (enable_break): Update.
8911 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8912 (frv_fdpic_find_canonical_descriptor): Update.
8913 (frv_fetch_objfile_link_map): Update.
8914 * progspace.c (program_space::free_all_objfiles): Update.
8915 (program_space::solibs): New method.
8916 * progspace.h (struct program_space) <solibs>: New method.
8917 * solist.h (master_so_list): Don't declare.
8918 (ALL_SO_LIBS): Remove.
8919 * solib.h (so_list_head): Remove.
8920 (update_solib_list): Update comment.
8921 * solib.c (master_so_list): Remove.
8922 (solib_used, update_solib_list, solib_add)
8923 (info_sharedlibrary_command, clear_solib)
8924 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8926 2020-05-08 Tom Tromey <tom@tromey.com>
8928 * extension.c (extension_languages): Now a std::array.
8929 (ALL_EXTENSION_LANGUAGES): Remove.
8930 (get_ext_lang_defn, get_ext_lang_of_file)
8931 (eval_ext_lang_from_control_command): Update.
8932 (finish_ext_lang_initialization)
8933 (auto_load_ext_lang_scripts_for_objfile)
8934 (ext_lang_type_printers::ext_lang_type_printers)
8935 (apply_ext_lang_type_printers)
8936 (ext_lang_type_printers::~ext_lang_type_printers)
8937 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8938 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8939 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8940 (get_matching_xmethod_workers, ext_lang_colorize)
8941 (ext_lang_before_prompt): Update.
8942 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8944 2020-05-08 Tom Tromey <tom@tromey.com>
8946 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8948 <swap_string, m_string>: Remove.
8949 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8951 * stabsread.c (define_symbol, read_type): Update.
8952 * linespec.c (find_linespec_symbols): Update.
8953 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8954 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8955 * dbxread.c (read_dbx_symtab): Update.
8956 * cp-support.h (cp_canonicalize_string_full)
8957 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8958 Return unique_xmalloc_ptr.
8959 * cp-support.c (inspect_type): Update.
8960 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8961 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8963 * c-typeprint.c (print_name_maybe_canonical): Update.
8964 * break-catch-throw.c (check_status_exception_catchpoint):
8967 2020-05-08 Tom de Vries <tdevries@suse.de>
8969 * infrun.c (follow_fork): Copy current_line and current_symtab to
8972 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8974 * async-event.c (struct async_signal_handler, struct
8975 async_event_handler): Reformat, remove typedef.
8977 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8979 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8980 access thistype->main_type->dyn_prop_list directly.
8982 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8984 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8985 (remove_dyn_prop): Remove. Update all users to use
8986 type::remove_dyn_prop.
8987 * gdbtypes.c (remove_dyn_prop): Rename to...
8988 (type::remove_dyn_prop): ... this.
8990 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8992 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8993 (add_dyn_prop): Remove. Update all users to use
8995 * gdbtypes.c (add_dyn_prop): Rename to...
8996 (type::add_dyn_prop): ... this.
8998 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
9000 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
9001 (get_dyn_prop): Remove. Update all users to use
9003 * gdbtypes.c (get_dyn_prop): Rename to...
9004 (type::dyn_prop): ... this.
9006 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9008 * gdbtypes.h (struct main_type) <flag_static>: Remove.
9010 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
9012 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
9013 instruction, skip it if it's there.
9015 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
9017 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
9019 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
9021 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
9022 * gdbtypes.c (recursive_dump_type): Remove use of
9025 2020-05-03 Tom Tromey <tom@tromey.com>
9027 * breakpoint.c (catch_command, tcatch_command): Remove.
9028 (_initialize_breakpoint): Use add_basic_prefix_cmd,
9029 add_show_prefix_cmd.
9030 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
9031 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
9033 (add_internal_problem_command): Use add_basic_prefix_cmd,
9034 add_show_prefix_cmd.
9035 * mips-tdep.c (set_mipsfpu_command): Remove.
9036 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
9037 * dwarf2/index-cache.c (set_index_cache_command): Remove.
9038 (_initialize_index_cache): Use add_basic_prefix_cmd.
9039 * memattr.c (dummy_cmd): Remove.
9040 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
9041 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
9042 (_initialize_tui_win): Use add_basic_prefix_cmd,
9043 add_show_prefix_cmd.
9044 * cli/cli-logging.c (set_logging_command): Remove.
9045 (_initialize_cli_logging): Use add_basic_prefix_cmd,
9046 add_show_prefix_cmd.
9047 (show_logging_command): Remove.
9048 * target.c (target_command): Remove.
9049 (add_target): Use add_basic_prefix_cmd.
9051 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
9053 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
9055 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9057 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
9060 2020-04-30 Kamil Rytarowski <n54@gmx.com>
9062 * nbsd-nat.c (nbsd_enable_proc_events)
9063 (nbsd_nat_target::post_startup_inferior): Add.
9064 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
9065 (nbsd_nat_target::update_thread_list): Rewrite.
9066 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
9067 "PTRACE_LWP_CREATE".
9068 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
9070 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9072 * stack.c (_initialize_stack): Remove duplicated creation
9073 of "frame" command and "f" alias.
9075 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9078 * gdbtypes.c (check_typedef): Calculate size of array of
9081 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
9084 * i386-tdep.c (i386_push_dummy_call): Call
9085 i386_thiscall_push_dummy_call.
9086 (i386_thiscall_push_dummy_call): New function.
9087 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
9088 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
9089 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
9091 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9093 * gdbarch.sh (do_read): Add shellcheck disable directive for
9096 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9098 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
9099 "referenced but not assigned" warning.
9101 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9103 * gdbarch.sh: Remove code that sets fallbackdefault.
9105 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9107 * gdbarch.sh: Use shell operators && and || instead of
9110 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9112 * gdbarch.sh: Use $(...) instead of `...`.
9114 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9116 * gdbarch.sh: Use double quotes around variables.
9118 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
9120 * gdbarch.sh: Use %s with printf, instead of variables in the
9123 2020-04-29 Tom Tromey <tromey@adacore.com>
9126 * dwarf2/read.c (update_enumeration_type_from_children): Compute
9128 (read_enumeration_type): Call
9129 update_enumeration_type_from_children later. Update comments.
9130 (process_enumeration_scope): Don't create type fields.
9132 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9134 * nbsd-tdep.c: Include "xml-syscall.h".
9135 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
9137 2020-04-29 Kamil Rytarowski <n54@gmx.com>
9139 * nbsd-nat.c: Include "sys/wait.h".
9140 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
9141 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
9142 (nbsd_nat_target::remove_exec_catchpoint)
9143 (nbsd_nat_target::set_syscall_catchpoint): Add.
9144 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
9145 (nbsd_nat_target::insert_exec_catchpoint)
9146 (nbsd_nat_target::remove_exec_catchpoint)
9147 (nbsd_nat_target::set_syscall_catchpoint): Add.
9148 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
9149 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
9150 `nbsd_get_syscall_number'.
9152 2020-04-29 Tom Tromey <tom@tromey.com>
9154 * stack.c (print_block_frame_labels): Remove.
9156 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9159 * ada-valprint.c (val_print_packed_array_elements): Move array
9160 end bracket to new line.
9161 (ada_val_print_string): Remove extra spaces before first array
9163 * c-valprint.c (c_value_print_array): Likewise.
9164 * m2-valprint.c (m2_print_array_contents): Likewise.
9165 (m2_value_print_inner): Likewise.
9166 * p-valprint.c (pascal_value_print_inner): Likewise.
9167 * valprint.c (generic_val_print_array): Likewise.
9168 (value_print_array_elements): Move first array element and array
9169 end bracket to new line.
9171 2020-04-29 Tom de Vries <tdevries@suse.de>
9174 * linespec.c (find_method): Fix ix calculation.
9176 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9178 * syscalls/update-netbsd.sh: New file.
9179 * syscalls/netbsd.xml: Regenerate.
9180 * data-directory/Makefile.in: Register `netbsd.xml' in
9183 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9185 * syscalls/update-freebsd.sh: Add double quotes.
9187 2020-04-28 Tom Tromey <tom@tromey.com>
9190 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9191 (cmdpy_init): Allow class_tui.
9193 2020-04-28 Mark Williams <mark@myosotissp.com>
9196 * dwarf2read.c: Add missing assingments to list_in_scope when
9197 start_symtab was already called.
9199 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9202 * dwarf2/read.c (offset_map_type): Use
9203 gdb:hash_enum<sect_offset> as hash function.
9205 2020-04-28 Tom de Vries <tdevries@suse.de>
9207 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9208 with DW_AT_signature.
9210 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9212 * configure.ac: Remove check for fs_base/gs_base in
9214 * configure: Re-generate.
9215 * config.in: Re-generate.
9216 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9217 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9218 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9220 2020-04-27 Luis Machado <luis.machado@linaro.org>
9222 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9223 problematic inline frame unwinding situation.
9224 * frame.c (frame_id_computed_p): New function.
9225 * frame.h (frame_id_computed_p): New prototype.
9227 2020-04-26 Tom Tromey <tom@tromey.com>
9229 * command.h (enum command_class) <class_pseudo>: Remove.
9231 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9233 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9236 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9238 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9239 `PT_GET_PROCESS_STATE' block.
9241 2020-04-24 Tom Tromey <tom@tromey.com>
9243 * symtab.h (symbol_get_demangled_name): Don't declare.
9244 * symtab.c (symbol_get_demangled_name): Remove.
9245 (general_symbol_info::natural_name)
9246 (general_symbol_info::demangled_name): Update.
9248 2020-04-24 Tom Tromey <tom@tromey.com>
9251 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9253 2020-04-24 Tom Tromey <tom@tromey.com>
9256 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9258 (new_symbol): Likewise.
9259 * compile/compile-object-load.c (get_out_value_type): Use
9260 symbol_matches_search_name.
9262 2020-04-24 Tom Tromey <tom@tromey.com>
9264 * dwarf2/read.c (add_partial_symbol): Do not call
9265 compute_and_set_names.
9267 2020-04-24 Tom Tromey <tom@tromey.com>
9269 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9272 2020-04-24 Tom Tromey <tom@tromey.com>
9274 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9275 (add_psymbol_to_list): New overload. Make old overload call new
9277 * psympriv.h (add_psymbol_to_list): New overload.
9279 2020-04-24 Tom Tromey <tom@tromey.com>
9281 * dwarf2/read.c (partial_die_info::read) <case
9282 DW_AT_linkage_name>: Use value_as_string.
9283 (dwarf2_string_attr): Use value_as_string.
9284 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9286 * dwarf2/attribute.c (attribute::value_as_string): New method.
9288 2020-04-24 Tom Tromey <tom@tromey.com>
9290 * symtab.c (general_symbol_info::natural_name)
9291 (general_symbol_info::demangled_name): Check for language_rust.
9293 2020-04-24 Tom Tromey <tom@tromey.com>
9295 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9296 (dwarf2_physname): ... from here.
9297 (partial_die_info::read): Add Rust "{" hack.
9299 2020-04-24 Tom Tromey <tom@tromey.com>
9301 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9303 (symbol_set_demangled_name): Don't declare.
9304 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9305 symbol_set_demangled_name.
9306 (general_symbol_info::set_language)
9307 (general_symbol_info::compute_and_set_names): Update.
9308 * minsyms.c (minimal_symbol_reader::install): Update.
9309 * dwarf2/read.c (new_symbol): Update.
9311 2020-04-24 Tom Tromey <tromey@adacore.com>
9314 * python/py-type.c (convert_field): Handle
9315 FIELD_LOC_KIND_DWARF_BLOCK.
9316 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9317 (typy_get_dynamic): Nw function.
9318 (type_object_getset): Add "dynamic".
9321 2020-04-24 Tom Tromey <tromey@adacore.com>
9323 * ada-typeprint.c (print_choices, print_variant_part)
9324 (print_record_field_types_dynamic): New functions.
9325 (print_record_field_types): Use print_record_field_types_dynamic.
9327 2020-04-24 Tom Tromey <tromey@adacore.com>
9329 * dwarf2/read.c (handle_data_member_location): New overload.
9330 (dwarf2_add_field): Use it.
9331 (decode_locdesc): Add "computed" parameter. Update comment.
9332 * gdbtypes.c (is_dynamic_type_internal): Also look for
9333 FIELD_LOC_KIND_DWARF_BLOCK.
9334 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9335 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9336 virtual base classes.
9337 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9338 FIELD_LOC_KIND_DWARF_BLOCK.
9340 2020-04-24 Tom Tromey <tromey@adacore.com>
9342 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9343 * gdbtypes.c (is_dynamic_type_internal): Check
9344 TYPE_HAS_DYNAMIC_LENGTH.
9345 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9346 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9348 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9351 2020-04-24 Tom Tromey <tromey@adacore.com>
9353 * dwarf2/read.c (struct variant_field): Rewrite.
9354 (struct variant_part_builder): New.
9355 (struct nextfield): Remove "variant" field. Add "offset".
9356 (struct field_info): Add "current_variant_part" and
9358 (alloc_discriminant_info): Remove.
9359 (alloc_rust_variant): New function.
9360 (quirk_rust_enum): Update.
9361 (dwarf2_add_field): Set "offset" member. Don't handle
9362 DW_TAG_variant_part.
9363 (offset_map_type): New typedef.
9364 (convert_variant_range, create_one_variant)
9365 (create_one_variant_part, create_variant_parts)
9366 (add_variant_property): New functions.
9367 (dwarf2_attach_fields_to_type): Call add_variant_property.
9368 (read_structure_type): Don't handle DW_TAG_variant_part.
9369 (handle_variant_part, handle_variant): New functions.
9370 (handle_struct_member_die): Use them.
9371 (process_structure_scope): Don't handle variant parts.
9372 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9373 (struct discriminant_info): Remove.
9374 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9375 (struct main_type) <flag_discriminated_union>: Remove.
9376 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9377 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9378 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9380 * valops.c (value_union_variant): Remove.
9381 * value.h (value_union_variant): Don't declare.
9383 2020-04-24 Tom Tromey <tromey@adacore.com>
9385 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9386 (ada_value_primitive_packed_val): Update.
9387 * ada-valprint.c (ada_value_print_1): Update.
9388 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9389 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9390 just an address. Use evaluate_for_locexpr_baton.
9391 (dwarf2_evaluate_property): Update.
9392 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9394 * findvar.c (default_read_var_value): Update.
9395 * gdbtypes.c (compute_variant_fields_inner)
9396 (resolve_dynamic_type_internal): Update.
9397 (resolve_dynamic_type): Change type of valaddr parameter.
9398 * gdbtypes.h (resolve_dynamic_type): Update.
9399 * valarith.c (value_subscripted_rvalue): Update.
9400 * value.c (value_from_contents_and_address): Update.
9402 2020-04-24 Tom Tromey <tromey@adacore.com>
9404 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9405 "push_initial_value" parameter.
9406 (dwarf2_evaluate_property): Likewise.
9407 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9409 2020-04-24 Tom Tromey <tromey@adacore.com>
9411 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9412 (variant::matches, compute_variant_fields_recurse)
9413 (compute_variant_fields_inner, compute_variant_fields): New
9415 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9416 Use resolved_type after type is made.
9417 (operator==): Add new cases.
9418 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9419 (struct discriminant_range, struct variant, struct variant_part):
9421 (union dynamic_prop_data) <variant_parts, original_type>: New
9423 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9424 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9426 * value.c (unpack_bits_as_long): Now public.
9427 * value.h (unpack_bits_as_long): Declare.
9429 2020-04-24 Tom Tromey <tromey@adacore.com>
9431 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9432 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9434 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9436 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9438 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9440 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9441 (remove_fork_catchpoint, post_startup_inferior)
9442 (post_attach): Move...
9443 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9444 (remove_fork_catchpoint, post_startup_inferior)
9445 (post_attach): ...here.
9446 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9447 (remove_fork_catchpoint, post_startup_inferior)
9448 (post_attach): Move...
9449 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9450 (remove_fork_catchpoint, post_startup_inferior)
9451 (post_attach): ...here.
9453 2020-04-24 Tom Tromey <tromey@adacore.com>
9455 * nat/windows-nat.h (struct windows_thread_info)
9456 <pc_adjusted>: New member.
9457 * windows-nat.c (windows_fetch_one_register): Check
9459 (windows_nat_target::get_windows_debug_event)
9460 (windows_nat_target::wait): Set pc_adjusted.
9462 2020-04-24 Tom de Vries <tdevries@suse.de>
9464 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9465 Run gdb-add-index inside temp dir.
9467 2020-04-23 Tom Tromey <tromey@adacore.com>
9469 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9472 2020-04-23 Luis Machado <luis.machado@linaro.org>
9474 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9475 get_frame_register instead of gdbarch_unwind_pc.
9477 2020-04-23 Tom de Vries <tdevries@suse.de>
9479 * symtab.c (lookup_global_symbol): Prefer def over decl.
9481 2020-04-23 Tom de Vries <tdevries@suse.de>
9484 * block.c (best_symbol, better_symbol): Promote to external.
9485 * block.h (best_symbol, better_symbol): Declare.
9486 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9489 2020-04-23 Tom Tromey <tromey@adacore.com>
9492 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9493 "const char *", not a "const std::string &".
9494 <name_and_matcher::operator==>: Update.
9495 * unittests/lookup_name_info-selftests.c: Change type of
9498 2020-04-23 Tom Tromey <tom@tromey.com>
9500 * inferior.h (iterate_over_inferiors): Don't declare.
9501 * inferior.c (iterate_over_inferiors): Remove.
9502 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9504 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9505 use iterate_over_inferiors.
9506 (darwin_resume_inferior_it)
9507 (struct resume_inferior_threads_param)
9508 (darwin_resume_inferior_threads_it): Remove.
9509 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9511 2020-04-23 Tom de Vries <tdevries@suse.de>
9513 * blockframe.c (find_pc_partial_function): Use
9514 find_pc_sect_compunit_symtab rather than
9515 objfile->sf->qf->find_pc_sect_compunit_symtab.
9517 2020-04-22 Tom de Vries <tdevries@suse.de>
9520 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9523 2020-04-22 Tom de Vries <tdevries@suse.de>
9526 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9529 2020-04-22 Tom de Vries <tdevries@suse.de>
9532 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9533 CU if already created.
9535 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9537 * infrun.c (displaced_step_fixup): Switch to the event_thread
9538 before calling displaced_step_restore, not after.
9540 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9542 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9543 its inferior is not recorded by us.
9544 (record_btrace_target_open): Replace call to
9545 all_non_exited_threads () with call to current_inferior
9546 ()->non_exited_threads ().
9547 (record_btrace_target::stop_recording): Likewise.
9548 (record_btrace_target::close): Likewise.
9549 (record_btrace_target::wait): Likewise.
9550 (record_btrace_target::record_stop_replaying): Likewise.
9552 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9554 * btrace.c (btrace_enable): Throw an error on double enables and
9555 when enabling recording fails.
9556 (btrace_disable): Throw an error if the thread is not recorded.
9558 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9560 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9561 request if we do not have a thread_info.
9563 2020-04-21 Tom de Vries <tdevries@suse.de>
9567 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9568 exception in get_frame_id.
9570 2020-04-20 Tom Tromey <tromey@adacore.com>
9572 * python/python.c (struct gdbpy_event): Mark move constructor as
9574 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9575 constructor as noexcept.
9576 * completer.h (struct completion_result): Mark move constructor as
9578 * completer.c (completion_result::completion_result): Use
9579 initialization style. Don't call reset_match_list.
9581 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9583 * MAINTAINERS (Write After Approval): Add myself.
9585 2020-04-18 Tom Tromey <tom@tromey.com>
9587 * windows-tdep.c (init_w32_command_list)
9588 (w32_prefix_command_valid): Restore.
9589 (_initialize_windows_tdep): Call init_w32_command_list.
9591 2020-04-18 Tom Tromey <tom@tromey.com>
9593 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9594 * value.c (value_fn_field): Update.
9595 * valops.c (find_function_in_inferior)
9596 (value_allocate_space_in_inferior): Update.
9597 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9599 * tui/tui-source.c (tui_source_window::set_contents): Update.
9600 * symtab.c (lookup_global_or_static_symbol)
9601 (find_function_start_sal_1, skip_prologue_sal)
9602 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9603 * symmisc.c (dump_msymbols, dump_symtab_1)
9604 (maintenance_print_one_line_table): Update.
9605 * symfile.c (init_entry_point_info, section_is_mapped)
9606 (list_overlays_command, simple_read_overlay_table)
9607 (simple_overlay_update_1): Update.
9608 * stap-probe.c (handle_stap_probe): Update.
9609 * stabsread.c (dbx_init_float_type, define_symbol)
9610 (read_one_struct_field, read_enum_type, read_range_type): Update.
9611 * source.c (info_line_command): Update.
9612 * python/python.c (gdbpy_source_objfile_script)
9613 (gdbpy_execute_objfile_script): Update.
9614 * python/py-type.c (save_objfile_types): Update.
9615 * python/py-objfile.c (py_free_objfile): Update.
9616 * python/py-inferior.c (python_new_objfile): Update.
9617 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9618 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9619 (maintenance_check_psymtabs): Update.
9620 * printcmd.c (info_address_command): Update.
9621 * objfiles.h (struct objfile) <arch>: New method, from
9623 (get_objfile_arch): Don't declare.
9624 * objfiles.c (get_objfile_arch): Remove.
9625 (filter_overlapping_sections): Update.
9626 * minsyms.c (msymbol_is_function): Update.
9627 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9628 (output_nondebug_symbol): Update.
9629 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9630 (mdebug_expand_psymtab): Update.
9631 * machoread.c (macho_add_oso_symfile): Update.
9632 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9634 * linux-fork.c (checkpoint_command): Update.
9635 * linespec.c (convert_linespec_to_sals): Update.
9636 * jit.c (finalize_symtab): Update.
9637 * infrun.c (insert_exception_resume_from_probe): Update.
9638 * ia64-tdep.c (ia64_find_unwind_table): Update.
9639 * hppa-tdep.c (internalize_unwinds): Update.
9640 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9642 * gcore.c (call_target_sbrk): Update.
9643 * elfread.c (record_minimal_symbol, elf_symtab_read)
9644 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9645 (elf_gnu_ifunc_resolve_by_got): Update.
9646 * dwarf2/read.c (create_addrmap_from_index)
9647 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9648 (read_debug_names_from_section)
9649 (process_psymtab_comp_unit_reader, add_partial_symbol)
9650 (add_partial_subprogram, process_full_comp_unit)
9651 (read_file_scope, read_func_scope, read_lexical_block_scope)
9652 (read_call_site_scope, dwarf2_ranges_read)
9653 (dwarf2_record_block_ranges, dwarf2_add_field)
9654 (mark_common_block_symbol_computed, read_tag_pointer_type)
9655 (read_tag_string_type, dwarf2_init_float_type)
9656 (dwarf2_init_complex_target_type, read_base_type)
9657 (partial_die_info::read, partial_die_info::read)
9658 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9659 (dwarf2_fetch_die_loc_sect_off): Update.
9660 * dwarf2/loc.c (dwarf2_find_location_expression)
9661 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9662 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9663 (dwarf2_loc_desc_get_symbol_read_needs)
9664 (locexpr_describe_location_piece, locexpr_describe_location_1)
9665 (loclist_describe_location): Update.
9666 * dwarf2/index-write.c (write_debug_names): Update.
9667 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9668 * dtrace-probe.c (dtrace_process_dof): Update.
9669 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9670 (process_one_symbol): Update.
9671 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9672 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9673 (coff_read_enum_type): Update.
9674 * cli/cli-cmds.c (edit_command, list_command): Update.
9675 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9676 * breakpoint.c (create_overlay_event_breakpoint)
9677 (create_longjmp_master_breakpoint)
9678 (create_std_terminate_master_breakpoint)
9679 (create_exception_master_breakpoint, get_sal_arch): Update.
9680 * block.c (block_gdbarch): Update.
9681 * annotate.c (annotate_source_line): Update.
9683 2020-04-17 Tom Tromey <tromey@adacore.com>
9685 * auto-load.c (show_auto_load_cmd): Remove.
9686 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9687 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9688 (maintenance_print_arc_command): Remove.
9689 * tui/tui-win.c (tui_command): Remove.
9690 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9691 * tui/tui-layout.c (tui_layout_command): Remove.
9692 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9693 * python/python.c (user_set_python, user_show_python): Remove.
9694 (_initialize_python): Use add_basic_prefix_cmd,
9695 add_show_prefix_cmd.
9696 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9697 (install_gdb_commands): Use add_basic_prefix_cmd,
9698 add_show_prefix_cmd.
9699 (info_guile_command): Remove.
9700 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9701 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9702 add_show_prefix_cmd.
9703 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9704 Remove do_set and do_show parameters.
9705 * cli/cli-style.c (set_style, show_style): Remove.
9706 (_initialize_cli_style): Use add_basic_prefix_cmd,
9707 add_show_prefix_cmd.
9708 (cli_style_option::add_setshow_commands): Remove do_set and
9710 (cli_style_option::add_setshow_commands): Use
9711 add_basic_prefix_cmd, add_show_prefix_cmd.
9712 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9713 (set_style_name): Remove.
9714 * cli/cli-dump.c (dump_command, append_command): Remove.
9715 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9716 (tekhex_dump_command, binary_dump_command)
9717 (binary_append_command): Remove.
9718 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9719 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9720 (init_w32_command_list): Remove; move into ...
9721 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9722 * valprint.c (set_print, show_print, set_print_raw)
9723 (show_print_raw): Remove.
9724 (_initialize_valprint): Use add_basic_prefix_cmd,
9725 add_show_prefix_cmd.
9726 * typeprint.c (set_print_type, show_print_type): Remove.
9727 (_initialize_typeprint): Use add_basic_prefix_cmd,
9728 add_show_prefix_cmd.
9729 * record.c (set_record_command, show_record_command): Remove.
9730 (_initialize_record): Use add_basic_prefix_cmd,
9731 add_show_prefix_cmd.
9732 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9733 add_show_prefix_cmd.
9734 (info_command, show_command, set_debug, show_debug): Remove.
9735 * top.h (set_history, show_history): Don't declare.
9736 * top.c (set_history, show_history): Remove.
9737 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9738 (unset_tdesc_cmd): Remove.
9739 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9740 add_show_prefix_cmd.
9741 * symtab.c (info_module_command): Remove.
9742 (_initialize_symtab): Use add_basic_prefix_cmd.
9743 * symfile.c (overlay_command): Remove.
9744 (_initialize_symfile): Use add_basic_prefix_cmd.
9745 * sparc64-tdep.c (info_adi_command): Remove.
9746 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9747 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9748 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9749 add_show_prefix_cmd.
9750 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9751 (_initialize_serial): Use add_basic_prefix_cmd,
9752 add_show_prefix_cmd.
9753 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9754 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9755 add_show_prefix_cmd.
9756 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9757 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9758 add_show_prefix_cmd.
9759 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9760 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9761 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9762 add_show_prefix_cmd.
9763 * remote.c (remote_command, set_remote_cmd): Remove.
9764 (_initialize_remote): Use add_basic_prefix_cmd.
9765 * record-full.c (set_record_full_command)
9766 (show_record_full_command): Remove.
9767 (_initialize_record_full): Use add_basic_prefix_cmd,
9768 add_show_prefix_cmd.
9769 * record-btrace.c (cmd_set_record_btrace)
9770 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9771 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9772 (cmd_show_record_btrace_pt): Remove.
9773 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9774 add_show_prefix_cmd.
9775 * ravenscar-thread.c (set_ravenscar_command)
9776 (show_ravenscar_command): Remove.
9777 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9778 add_show_prefix_cmd.
9779 * mips-tdep.c (show_mips_command, set_mips_command)
9780 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9781 add_show_prefix_cmd.
9782 * maint.c (maintenance_command, maintenance_info_command)
9783 (maintenance_check_command, maintenance_print_command)
9784 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9785 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9786 add_show_prefix_cmd.
9787 (show_per_command_cmd): Remove.
9788 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9790 (maintenance_show_test_settings_cmd): Remove.
9791 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9792 add_show_prefix_cmd.
9793 * maint-test-options.c (maintenance_test_options_command):
9795 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9796 * macrocmd.c (macro_command): Remove
9797 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9798 * language.c (set_check, show_check): Remove.
9799 (_initialize_language): Use add_basic_prefix_cmd,
9800 add_show_prefix_cmd.
9801 * infcmd.c (unset_command): Remove.
9802 (_initialize_infcmd): Use add_basic_prefix_cmd.
9803 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9804 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9805 add_show_prefix_cmd.
9806 * go32-nat.c (go32_info_dos_command): Remove.
9807 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9808 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9809 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9810 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9811 (_initialize_frame): Use add_basic_prefix_cmd,
9812 add_show_prefix_cmd.
9813 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9814 (_initialize_dcache): Use add_basic_prefix_cmd,
9815 add_show_prefix_cmd.
9816 * cp-support.c (maint_cplus_command): Remove.
9817 (_initialize_cp_support): Use add_basic_prefix_cmd.
9818 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9819 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9820 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9821 add_basic_prefix_cmd, add_show_prefix_cmd.
9822 * breakpoint.c (save_command): Remove.
9823 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9824 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9825 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9826 add_show_prefix_cmd.
9827 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9828 (set_ada_command, show_ada_command): Remove.
9829 (_initialize_ada_language): Use add_basic_prefix_cmd,
9830 add_show_prefix_cmd.
9831 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9833 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9835 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9836 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9838 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9840 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9843 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9845 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9846 import table is not at beginning of .idata section.
9848 2020-04-16 Pedro Alves <palves@redhat.com>
9850 * inferior.c (delete_inferior): Use delete operator directly
9851 instead of delete_program_space.
9852 * progspace.c (add_program_space): New, factored out from
9853 program_space::program_space.
9854 (remove_program_space): New, factored out from
9855 delete_program_space.
9856 (program_space::program_space): Remove intro comment. Rewrite.
9857 (program_space::~program_space): Remove intro comment. Call
9858 remove_program_space.
9859 (delete_program_space): Delete.
9860 * progspace.h (program_space::program_space): Make explicit. Move
9861 intro comment here, adjusted.
9862 (program_space::~program_space): Move intro comment here,
9864 (delete_program_space): Remove.
9866 2020-04-16 Tom Tromey <tromey@adacore.com>
9868 * windows-nat.c (windows_nat::handle_access_violation): New
9870 * nat/windows-nat.h (handle_access_violation): Declare.
9871 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9872 windows-nat.c. Call handle_access_violation.
9874 2020-04-16 Tom de Vries <tdevries@suse.de>
9877 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9878 CUs without psymtab.
9880 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9882 * python/python.c (do_start_initialization): Don't call
9883 PyEval_InitThreads for Python 3.9 and beyond.
9885 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9887 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9889 (obsd_nat_target::wait): Likewise.
9891 2020-04-15 Tom Tromey <tromey@adacore.com>
9893 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9894 (DEBUG_EXCEPT): Use debug_printf.
9896 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9898 * completer.c (class completion_tracker::completion_hash_entry)
9899 <hash_name>: New member function.
9900 (completion_tracker::discard_completions): New callback to hash a
9901 completion_hash_entry, pass this to htab_create_alloc.
9903 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9905 * windows-nat.c (windows_make_so): Warn rather than stopping with
9906 an error if realpath() fails.
9908 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9910 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9911 (nbsd_nat_target::info_proc): Add do_status.
9913 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9914 Tom de Vries <tdevries@suse.de>
9917 * psympriv.h (struct partial_symtab::read_symtab)
9918 (struct partial_symtab::expand_psymtab)
9919 (struct partial_symtab::read_dependencies): Update comments.
9920 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9921 read_symtab for includer.
9922 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9923 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9924 (struct dwarf2_include_psymtab::m_readin): Remove.
9925 (struct dwarf2_include_psymtab::includer): New member function.
9926 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9928 2020-04-14 Tom de Vries <tdevries@suse.de>
9931 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9932 with NULL symbol_matcher and lookup_name.
9933 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9935 * dwarf2/read.c (dw2_expand_symtabs_matching)
9936 (dw2_debug_names_expand_symtabs_matching): Same.
9937 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9938 Make lookup_name a pointer. Update comment.
9939 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9940 lookup_name being a pointer.
9941 * symfile.c (expand_symtabs_matching): Same.
9942 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9943 * linespec.c (iterate_over_all_matching_symtabs): Same.
9945 2020-04-13 Tom Tromey <tom@tromey.com>
9947 * run-on-main-thread.c: Update include.
9948 * unittests/main-thread-selftests.c: Update include.
9949 * tui/tui-win.c: Update include.
9950 * tui/tui-io.c: Update include.
9951 * tui/tui-interp.c: Update include.
9952 * tui/tui-hooks.c: Update include.
9953 * top.h: Update include.
9954 * top.c: Update include.
9955 * ser-base.c: Update include.
9956 * remote.c: Update include.
9957 * remote-notif.c: Update include.
9958 * remote-fileio.c: Update include.
9959 * record-full.c: Update include.
9960 * record-btrace.c: Update include.
9961 * python/python.c: Update include.
9962 * posix-hdep.c: Update include.
9963 * mingw-hdep.c: Update include.
9964 * mi/mi-main.c: Update include.
9965 * mi/mi-interp.c: Update include.
9966 * main.c: Update include.
9967 * linux-nat.c: Update include.
9968 * interps.c: Update include.
9969 * infrun.c: Update include.
9970 * inf-loop.c: Update include.
9971 * event-top.c: Update include.
9972 * event-loop.c: Move to ../gdbsupport/.
9973 * event-loop.h: Move to ../gdbsupport/.
9974 * async-event.h: Update include.
9975 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9977 2020-04-13 Tom Tromey <tom@tromey.com>
9979 * tui/tui-win.c: Include async-event.h.
9980 * remote.c: Include async-event.h.
9981 * remote-notif.c: Include async-event.h.
9982 * record-full.c: Include async-event.h.
9983 * record-btrace.c: Include async-event.h.
9984 * infrun.c: Include async-event.h.
9985 * event-top.c: Include async-event.h.
9986 * event-loop.h: Move some declarations to async-event.h.
9987 * event-loop.c: Don't include ser-event.h or top.h. Move some
9988 code to async-event.c.
9989 * async-event.h: New file.
9990 * async-event.c: New file.
9991 * Makefile.in (COMMON_SFILES): Add async-event.c.
9992 (HFILES_NO_SRCDIR): Add async-event.h.
9994 2020-04-13 Tom Tromey <tom@tromey.com>
9996 * utils.c (flush_streams): New function.
9997 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9999 2020-04-13 Tom Tromey <tom@tromey.com>
10001 * event-loop.c (handle_file_event): Use warning, not
10004 2020-04-13 Tom Tromey <tom@tromey.com>
10006 * event-loop.c: Include <chrono>.
10008 2020-04-13 Tom Tromey <tom@tromey.com>
10010 * gdb_select.h: Move to ../gdbsupport/.
10011 * event-loop.c: Update include path.
10012 * top.c: Update include path.
10013 * ser-base.c: Update include path.
10014 * ui-file.c: Update include path.
10015 * ser-tcp.c: Update include path.
10016 * guile/scm-ports.c: Update include path.
10017 * posix-hdep.c: Update include path.
10018 * ser-unix.c: Update include path.
10019 * gdb_usleep.c: Update include path.
10020 * mingw-hdep.c: Update include path.
10021 * inflow.c: Update include path.
10022 * infrun.c: Update include path.
10023 * event-top.c: Update include path.
10025 2020-04-13 Tom Tromey <tom@tromey.com>
10027 * configure: Rebuild.
10028 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
10030 2020-04-13 Tom Tromey <tom@tromey.com>
10032 * event-loop.h (start_event_loop): Don't declare.
10033 * event-loop.c (start_event_loop): Move...
10034 * main.c (start_event_loop): ...here. Now static.
10036 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
10038 * MAINTAINERS: Update my email address.
10040 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10042 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
10045 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10047 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
10048 (nbsd_nat_target::info_proc): Add do_cmdline.
10050 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10052 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
10053 (nbsd_nat_target::info_proc): Add do_cwd.
10055 2020-04-12 Kamil Rytarowski <n54@gmx.com>
10057 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
10059 2020-04-11 Kamil Rytarowski <n54@gmx.com>
10061 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
10062 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
10063 (nbsd_nat_target::info_proc): New functions.
10064 * nbsd-nat.c (kinfo_get_vmmap): New function.
10065 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
10066 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
10067 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
10068 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
10070 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
10071 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
10072 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
10073 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
10074 (KINFO_VME_FLAG_GROWS_DOWN): New.
10076 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
10078 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
10081 2020-04-10 Tom Tromey <tromey@adacore.com>
10083 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
10085 2020-04-10 Tom Tromey <tromey@adacore.com>
10087 * symtab.c (get_symbol_address, get_msymbol_address): Skip
10088 separate debug files.
10090 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
10092 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10094 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
10096 * windows-nat.c (windows_nat_target::get_windows_debug_event):
10097 Check for STATUS_WX86_BREAKPOINT.
10098 (windows_nat_target::wait): Same.
10100 2020-04-10 Tom de Vries <tdevries@suse.de>
10103 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
10105 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10107 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
10108 (Write After Approval): Remove Tom de Vries.
10110 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10113 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10115 * buildsym.c (record_line): Fix undefined behavior and preserve
10118 2020-04-09 Kamil Rytarowski <n54@gmx.com>
10120 * auxv.h (svr4_auxv_parse): New.
10121 * auxv.c (default_auxv_parse): Split into default_auxv_parse
10122 and generic_auxv_parse.
10123 (svr4_auxv_parse): Add.
10124 * obsd-tdep.c: Include "auxv.h".
10125 (obsd_auxv_parse): Remove.
10126 (obsd_init_abi): Remove comment.
10127 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
10128 from `obsd_auxv_parse' to `svr4_auxv_parse'.
10129 * nbsd-tdep.c: Include "auxv.h".
10130 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
10132 2020-04-08 Tom Tromey <tromey@adacore.com>
10134 * nat/windows-nat.h (last_wait_event): Don't declare.
10135 (wait_for_debug_event): Update comment.
10136 * nat/windows-nat.c (last_wait_event): Now static.
10138 2020-04-08 Tom Tromey <tromey@adacore.com>
10140 * windows-nat.c (wait_for_debug_event): Move to
10142 * nat/windows-nat.h (wait_for_debug_event): Declare.
10143 * nat/windows-nat.c (wait_for_debug_event): Move from
10144 windows-nat.c. No longer static.
10146 2020-04-08 Tom Tromey <tromey@adacore.com>
10148 * windows-nat.c (get_windows_debug_event): Use
10149 fetch_pending_stop.
10150 * nat/windows-nat.h (fetch_pending_stop): Declare.
10151 * nat/windows-nat.c (fetch_pending_stop): New function.
10153 2020-04-08 Tom Tromey <tromey@adacore.com>
10155 * windows-nat.c (windows_continue): Use matching_pending_stop and
10156 continue_last_debug_event.
10157 * nat/windows-nat.h (matching_pending_stop)
10158 (continue_last_debug_event): Declare.
10159 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10160 (matching_pending_stop, continue_last_debug_event): New
10163 2020-04-08 Tom Tromey <tromey@adacore.com>
10165 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10166 (handle_exception_result): Move to nat/windows-nat.h.
10167 (DEBUG_EXCEPTION_SIMPLE): Remove.
10168 (windows_nat::handle_ms_vc_exception): New function.
10169 (handle_exception): Move to nat/windows-nat.c.
10170 (get_windows_debug_event): Update.
10171 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10173 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10174 (handle_exception_result): Move from windows-nat.c.
10175 (handle_exception): Declare.
10176 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10177 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10180 2020-04-08 Tom Tromey <tromey@adacore.com>
10182 * windows-nat.c (exception_count, event_count): Remove.
10183 (handle_exception, get_windows_debug_event)
10184 (do_initial_windows_stuff): Update.
10186 2020-04-08 Tom Tromey <tromey@adacore.com>
10188 * windows-nat.c (windows_nat::handle_load_dll)
10189 (windows_nat::handle_unload_dll): Rename. No longer static.
10190 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10193 2020-04-08 Tom Tromey <tromey@adacore.com>
10195 * complaints.h (stop_whining): Declare at top-level.
10196 (complaint): Don't declare stop_whining.
10198 2020-04-08 Tom Tromey <tromey@adacore.com>
10200 * windows-nat.c (windows_nat::handle_output_debug_string):
10201 Rename. No longer static.
10202 * nat/windows-nat.h (handle_output_debug_string): Declare.
10204 2020-04-08 Tom Tromey <tromey@adacore.com>
10206 * windows-nat.c (current_process_handle, current_process_id)
10207 (main_thread_id, last_sig, current_event, last_wait_event)
10208 (current_windows_thread, desired_stop_thread_id, pending_stops)
10209 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10210 (display_selectors, fake_create_process)
10211 (get_windows_debug_event): Update.
10212 * nat/windows-nat.h (current_process_handle, current_process_id)
10213 (main_thread_id, last_sig, current_event, last_wait_event)
10214 (current_windows_thread, desired_stop_thread_id, pending_stops)
10215 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10216 * nat/windows-nat.c (current_process_handle, current_process_id)
10217 (main_thread_id, last_sig, current_event, last_wait_event)
10218 (current_windows_thread, desired_stop_thread_id, pending_stops)
10219 (siginfo_er): New globals. Move from windows-nat.c.
10221 2020-04-08 Tom Tromey <tromey@adacore.com>
10223 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10224 (handle_load_dll): Update.
10225 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10227 2020-04-08 Tom Tromey <tromey@adacore.com>
10229 * windows-nat.c (enum thread_disposition_type): Move to
10231 (windows_nat::thread_rec): Rename from thread_rec. No longer
10233 (windows_add_thread, windows_nat_target::fetch_registers)
10234 (windows_nat_target::store_registers, handle_exception)
10235 (windows_nat_target::resume, get_windows_debug_event)
10236 (windows_nat_target::get_tib_address)
10237 (windows_nat_target::thread_name)
10238 (windows_nat_target::thread_alive): Update.
10239 * nat/windows-nat.h (enum thread_disposition_type): Move from
10241 (thread_rec): Declare.
10243 2020-04-08 Tom Tromey <tromey@adacore.com>
10245 * windows-nat.c: Add "using namespace".
10246 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10247 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10249 2020-04-08 Tom Tromey <tromey@adacore.com>
10251 * nat/windows-nat.h (struct windows_thread_info): Declare
10253 * nat/windows-nat.c (~windows_thread_info): New.
10255 2020-04-08 Tom Tromey <tromey@adacore.com>
10258 * windows-nat.c (current_event): Update comment.
10259 (last_wait_event, desired_stop_thread_id): New globals.
10260 (struct pending_stop): New.
10261 (pending_stops): New global.
10262 (windows_nat_target) <stopped_by_sw_breakpoint>
10263 <supports_stopped_by_sw_breakpoint>: New methods.
10264 (windows_fetch_one_register): Add assertions. Adjust PC.
10265 (windows_continue): Handle pending stops. Suspend other threads
10266 when stepping. Use last_wait_event
10267 (wait_for_debug_event): New function.
10268 (get_windows_debug_event): Use wait_for_debug_event. Handle
10269 pending stops. Queue spurious stops.
10270 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10271 (windows_nat_target::kill): Use wait_for_debug_event.
10272 * nat/windows-nat.h (struct windows_thread_info)
10273 <stopped_at_software_breakpoint>: New field.
10274 * nat/windows-nat.c (windows_thread_info::resume): Clear
10275 stopped_at_software_breakpoint.
10277 2020-04-08 Tom Tromey <tromey@adacore.com>
10279 * windows-nat.c (enum thread_disposition_type): New.
10280 (thread_rec): Replace "get_context" parameter with "disposition";
10282 (windows_add_thread, windows_nat_target::fetch_registers)
10283 (windows_nat_target::store_registers, handle_exception)
10284 (windows_nat_target::resume, get_windows_debug_event)
10285 (windows_nat_target::get_tib_address)
10286 (windows_nat_target::thread_name)
10287 (windows_nat_target::thread_alive): Update.
10289 2020-04-08 Tom Tromey <tromey@adacore.com>
10291 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10292 (windows_continue): Use windows_continue::resume.
10293 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10294 resume>: Declare new methods.
10295 * nat/windows-nat.c: New file.
10296 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10298 2020-04-08 Tom Tromey <tromey@adacore.com>
10300 * windows-nat.c (windows_add_thread, windows_delete_thread)
10301 (windows_nat_target::fetch_registers)
10302 (windows_nat_target::store_registers, fake_create_process)
10303 (windows_nat_target::resume, windows_nat_target::resume)
10304 (get_windows_debug_event, windows_nat_target::wait)
10305 (windows_nat_target::pid_to_str)
10306 (windows_nat_target::get_tib_address)
10307 (windows_nat_target::get_ada_task_ptid)
10308 (windows_nat_target::thread_name)
10309 (windows_nat_target::thread_alive): Use lwp, not tid.
10311 2020-04-08 Tom Tromey <tromey@adacore.com>
10313 * windows-nat.c (handle_exception)
10314 (windows_nat_target::thread_name): Update.
10315 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10316 <name>: Now unique_xmalloc_ptr.
10318 2020-04-08 Tom Tromey <tromey@adacore.com>
10320 * windows-nat.c (thread_rec)
10321 (windows_nat_target::fetch_registers): Update.
10322 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10324 <debug_registers_changed, reload_context>: Now bool.
10326 2020-04-08 Tom Tromey <tromey@adacore.com>
10328 * windows-nat.c (windows_add_thread): Use new.
10329 (windows_init_thread_list, windows_delete_thread): Use delete.
10330 (get_windows_debug_event): Update.
10331 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10332 destructor, and initializers.
10334 2020-04-08 Tom Tromey <tromey@adacore.com>
10336 * windows-nat.c (struct windows_thread_info): Remove.
10337 * nat/windows-nat.h: New file.
10339 2020-04-08 Tom Tromey <tromey@adacore.com>
10341 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10342 (thread_rec, windows_add_thread, windows_delete_thread)
10343 (windows_continue): Update.
10345 2020-04-08 Tom Tromey <tromey@adacore.com>
10347 * windows-nat.c (struct windows_thread_info): Remove typedef.
10348 (thread_head): Remove.
10349 (thread_list): New global.
10350 (thread_rec, windows_add_thread, windows_init_thread_list)
10351 (windows_delete_thread, windows_continue): Update.
10353 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10355 * windows-tdep.h (windows_init_abi): Add comment.
10356 (cygwin_init_abi): New declaration.
10357 * windows-tdep.c: Split signal enumeration in two, one for
10358 Windows and one for Cygwin.
10359 (windows_gdb_signal_to_target): Only deal with signal of the
10361 (cygwin_gdb_signal_to_target): New function.
10362 (windows_init_abi): Rename to windows_init_abi_common, don't set
10363 gdb_signal_to_target gdbarch method. Add new new function with
10365 (cygwin_init_abi): New function.
10366 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10367 comment. Don't call windows_init_abi.
10368 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10369 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10370 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10371 i386_windows_init_abi_common, don't call windows_init_abi. Add
10372 a new function of this name.
10373 (i386_cygwin_init_abi): New function.
10374 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10377 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10379 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10381 (dwarf2_read_gdb_index): Update.
10383 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10385 * nbsd-tdep.c: Include "objfiles.h".
10386 (nbsd_skip_solib_resolver): New.
10387 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10389 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10391 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10392 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10393 with DW_LLE_base_addressx are being emitted in DWARFv5.
10394 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10395 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10398 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10400 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10401 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10402 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10403 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10404 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10405 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10406 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10409 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10411 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10412 (read_loclist_index): New function definition.
10413 (lookup_loclist_base): New function definition.
10414 (read_loclist_header): New function definition.
10415 (dwarf2_cu): Add loclist_base and loclist_header field.
10416 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10417 (read_full_die_1): Read the value of DW_AT_loclists_base.
10418 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10419 (read_attribute_value): Handle DW_FORM_loclistx.
10420 (skip_one_die): Handle DW_FORM_loclistx.
10421 (loclist_header): New structure declaration.
10422 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10424 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10426 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10427 constructor. Remove `addr` parameter from other constructor and
10428 add `per_cu` parameter.
10429 * dwarf2/read.c (create_partial_symtab): Update.
10431 2020-04-07 Tom de Vries <tdevries@suse.de>
10434 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10435 (partial_die_info::fixup): Inherit has_const_value.
10437 2020-04-07 Tom de Vries <tdevries@suse.de>
10439 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10440 symbols without address.
10442 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10444 * nbsd-nat.h (struct thread_info): Add forward declaration.
10445 (nbsd_nat_target::thread_alive): Add.
10446 (nbsd_nat_target::thread_name): Likewise.
10447 (nbsd_nat_target::update_thread_list): Likewise.
10448 (update_thread_list::post_attach): Likewise.
10449 (post_attach::pid_to_str): Likewise.
10450 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10451 (nbsd_thread_lister): Add.
10452 (nbsd_nat_target::thread_alive): Likewise.
10453 (nbsd_nat_target::thread_name): Likewise.
10454 (nbsd_add_threads): Likewise.
10455 (update_thread_list::post_attach): Likewise.
10456 (nbsd_nat_target::update_thread_list): Likewise.
10457 (post_attach::pid_to_str): Likewise.
10459 2020-04-06 Tom Tromey <tromey@adacore.com>
10461 * ada-valprint.c (print_variant_part): Extract the variant field.
10462 (print_field_values): Use the field as the outer value when
10465 2020-04-06 Tom Tromey <tromey@adacore.com>
10467 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10468 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10469 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10470 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10471 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10473 2020-04-06 Tom Tromey <tromey@adacore.com>
10475 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10478 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10480 * nbsd-tdep.c: Include "gdbarch.h".
10481 Define enum with NetBSD signal numbers.
10482 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10483 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10484 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10485 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10486 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10487 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10488 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10489 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10490 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10491 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10492 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10493 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10495 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10498 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10500 2020-04-03 Tom Tromey <tromey@adacore.com>
10502 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10503 Read constant block.
10505 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10507 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10508 (gdb_bfd_get_full_section_contents): New declaration.
10509 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10510 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10511 gdb_bfd_get_full_section_contents.
10513 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10515 * exec.c (build_section_table): Replace internal_error with
10517 (section_table_xfer_memory_partial): Likewise.
10518 * mdebugread.c (parse_partial_symbols): Likewise.
10519 * psymtab.c (lookup_partial_symbol): Likewise.
10520 * utils.c (wrap_here): Likewise.
10522 2020-04-02 Tom Tromey <tromey@adacore.com>
10524 * f-lang.c (build_fortran_types): Use arch_type to initialize
10525 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10527 2020-04-02 Tom Tromey <tromey@adacore.com>
10529 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10532 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10533 Bernd Edlinger <bernd.edlinger@hotmail.de>
10534 Tom Tromey <tromey@adacore.com>
10536 * buildsym.c (buildsym_compunit::record_line): Remove
10537 deduplication code.
10539 2020-04-02 Tom de Vries <tdevries@suse.de>
10542 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10544 2020-04-02 Tom de Vries <tdevries@suse.de>
10546 * dwarf2/read.c (dwarf2_gdb_index_functions,
10547 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10549 * psymtab.c (psym_lookup_global_symbol_language): New function.
10550 (psym_functions): Init psym_lookup_global_symbol_language with
10551 psym_lookup_global_symbol_language.
10552 * symfile-debug.c (debug_sym_quick_functions): Init
10553 lookup_global_symbol_language with NULL.
10554 * symfile.c (set_initial_language): Remove fixme comment.
10555 * symfile.h (struct quick_symbol_functions): Add
10556 lookup_global_symbol_language.
10557 * symtab.c (find_quick_global_symbol_language): New function.
10558 (find_main_name): Use find_quick_global_symbol_language.
10560 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10562 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10564 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10566 * buildsym.c (record_line): Fix undefined behavior and preserve
10569 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10571 * buildsym.c (record_line): Fix the resizing condition.
10573 2020-04-01 Tom Tromey <tom@tromey.com>
10575 * value.h (value_literal_complex): Add comment.
10576 * valops.c (value_literal_complex): Refer to value.h.
10578 2020-04-01 Tom Tromey <tom@tromey.com>
10580 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10581 (scalar_type): New rule, from typebase.
10582 (typebase): Use scalar_type. Recognize complex types.
10583 (field_name): Handle FLOAT_KEYWORD.
10584 (ident_tokens): Add _Complex and __complex__.
10586 2020-04-01 Tom Tromey <tom@tromey.com>
10589 * valarith.c (promotion_type, complex_binop): New functions.
10590 (scalar_binop): Handle complex numbers. Use promotion_type.
10591 (value_pos, value_neg, value_complement): Handle complex numbers.
10593 2020-04-01 Tom Tromey <tom@tromey.com>
10595 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10596 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10597 (parse_number): Handle complex numbers.
10599 2020-04-01 Tom Tromey <tom@tromey.com>
10601 * c-valprint.c (c_decorations): Change complex suffix to "i".
10603 2020-04-01 Tom Tromey <tom@tromey.com>
10605 * valprint.c (generic_value_print_complex): Use accessors.
10606 * value.h (value_real_part, value_imaginary_part): Declare.
10607 * valops.c (value_real_part, value_imaginary_part): New
10609 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10611 2020-04-01 Tom Tromey <tom@tromey.com>
10613 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10614 (read_range_type): Update.
10615 * mdebugread.c (basic_type): Update.
10616 * go-lang.c (build_go_types): Use init_complex_type.
10617 * gdbtypes.h (struct main_type) <complex_type>: New member.
10618 (init_complex_type): Update.
10619 (arch_complex_type): Don't declare.
10620 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10621 Make name if none given. Use alloc_type_copy. Look for cached
10623 (arch_complex_type): Remove.
10624 (gdbtypes_post_init): Use init_complex_type.
10625 * f-lang.c (build_fortran_types): Use init_complex_type.
10626 * dwarf2/read.c (read_base_type): Update.
10627 * d-lang.c (build_d_types): Use init_complex_type.
10628 * ctfread.c (read_base_type): Update.
10630 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10632 * infrun.c (stop_all_threads): Update assertion, plus when
10633 stopping threads, take into account that we might be trying
10634 to stop an all-stop target.
10635 (stop_waiting): Call 'stop_all_threads' if there exists a
10638 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10640 * target.h (exists_non_stop_target): New function declaration.
10641 * target.c (exists_non_stop_target): New function.
10643 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10646 * eval.c (is_integral_or_integral_reference): New function.
10647 (evaluate_subexp_standard): Allow integer references in
10648 pointer arithmetic.
10650 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10652 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10653 check for no ptid in the stop reply when the target is non-stop.
10655 2020-04-01 Tom Tromey <tromey@adacore.com>
10657 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10658 "name" parameter to rvalue reference. Initialize m_name_holder.
10659 <lookup_name_info>: New overloads.
10660 <name>: Return gdb::string_view.
10661 <c_str>: New method.
10662 <make_ignore_params>: Update.
10663 <search_name_hash>: Update.
10664 <language_lookup_name>: Return const char *.
10665 <m_name>: Change type.
10666 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10667 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10668 (lookup_name_info::match_any): Update.
10669 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10671 * minsyms.c (linkage_name_str): Update.
10672 * language.c (default_symbol_name_matcher): Update.
10673 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10675 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10676 (ada_lookup_name_info::ada_lookup_name_info): Update.
10677 (literal_symbol_name_matcher): Update.
10679 2020-04-01 Tom Tromey <tromey@adacore.com>
10681 * psymtab.c (psymtab_search_name): Remove function.
10682 (psym_lookup_symbol): Create search name and lookup name here.
10683 (lookup_partial_symbol): Remove "name" parameter; add
10685 (psym_expand_symtabs_for_function): Update.
10687 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10690 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10692 2020-03-31 Tom Tromey <tromey@adacore.com>
10694 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10697 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10699 * features/riscv/32bit-csr.xml: Regenerated.
10700 * features/riscv/64bit-csr.xml: Regenerated.
10702 2020-03-30 Tom Tromey <tromey@adacore.com>
10704 * ada-valprint.c (print_variant_part): Update.
10705 * ada-lang.h (ada_which_variant_applies): Update.
10706 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10707 outer_valaddr parameters; replace with "outer" value parameter.
10708 (to_fixed_variant_branch_type): Update.
10710 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10712 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10713 <list>. Remove inclusion of observable.h.
10714 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10715 (struct arch_lwp_info): New struct.
10716 (class ppc_linux_dreg_interface): New class.
10717 (struct ppc_linux_process_info): New struct.
10718 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10719 <low_new_clone, low_forget_process, low_prepare_to_resume>
10720 <copy_thread_dreg_state, mark_thread_stale>
10721 <mark_debug_registers_changed, register_hw_breakpoint>
10722 <clear_hw_breakpoint, register_wp, clear_wp>
10723 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10724 <num_memory_accesses, get_trigger_type>
10725 <create_watchpoint_request, hwdebug_point_cmp>
10726 <init_arch_lwp_info, get_arch_lwp_info>
10727 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10729 <struct ptid_hash>: New inner struct.
10730 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10732 (saved_dabr_value, hwdebug_info, max_slots_number)
10733 (struct hw_break_tuple, struct thread_points, ppc_threads)
10734 (have_ptrace_hwdebug_interface)
10735 (hwdebug_find_thread_points_by_tid)
10736 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10737 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10738 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10739 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10740 use m_dreg_interface.
10741 (hwdebug_point_cmp): Change to...
10742 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10743 reference arguments instead of pointers.
10744 (ppc_linux_nat_target::ranged_break_num_registers): Use
10746 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10747 m_dreg_interface. Call register_hw_breakpoint.
10748 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10749 m_dreg_interface. Call clear_hw_breakpoint.
10750 (get_trigger_type): Change to...
10751 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10753 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10754 use m_dreg_interface. Call register_hw_breakpoint.
10755 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10756 use m_dreg_interface. Call clear_hw_breakpoint.
10757 (can_use_watchpoint_cond_accel): Change to...
10758 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10759 method. Update comment, use m_dreg_interface and
10761 (calculate_dvc): Change to...
10762 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10764 (num_memory_accesses): Change to...
10765 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10766 (check_condition): Change to...
10767 (ppc_linux_nat_target::check_condition): ...this method.
10768 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10769 comment, use m_dreg_interface.
10770 (create_watchpoint_request): Change to...
10771 (ppc_linux_nat_target::create_watchpoint_request): ...this
10772 method. Use m_dreg_interface.
10773 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10774 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10775 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10776 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10777 (ppc_linux_nat_target::low_forget_process)
10778 (ppc_linux_nat_target::low_new_fork)
10779 (ppc_linux_nat_target::low_new_clone)
10780 (ppc_linux_nat_target::low_delete_thread)
10781 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10782 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10783 only call mark_thread_stale.
10784 (ppc_linux_thread_exit): Remove.
10785 (ppc_linux_nat_target::stopped_data_address): Change to...
10786 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10787 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10788 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10789 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10790 comment. Call low_stopped_data_address.
10791 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10793 (ppc_linux_nat_target::masked_watch_num_registers): Use
10795 (ppc_linux_nat_target::copy_thread_dreg_state)
10796 (ppc_linux_nat_target::mark_thread_stale)
10797 (ppc_linux_nat_target::mark_debug_registers_changed)
10798 (ppc_linux_nat_target::register_hw_breakpoint)
10799 (ppc_linux_nat_target::clear_hw_breakpoint)
10800 (ppc_linux_nat_target::register_wp)
10801 (ppc_linux_nat_target::clear_wp)
10802 (ppc_linux_nat_target::init_arch_lwp_info)
10803 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10804 (_initialize_ppc_linux_nat): Remove observer callback.
10806 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10808 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10809 (ppc_linux_nat_target::auxv_parse)
10810 (ppc_linux_nat_target::read_description)
10811 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10814 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10816 * linux-nat.h (low_new_clone): New method.
10817 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10819 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10821 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10822 (dbx_expand_psymtab): ... this.
10823 (start_psymtab): Update.
10824 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10825 (mdebug_expand_psymtab): ... this.
10826 (parse_partial_symbols): Update.
10827 (new_psymtab): Update.
10828 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10829 (xcoff_expand_psymtab): ... this.
10830 (xcoff_start_psymtab): Update.
10832 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10834 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10835 <expand_dependencies>: ... this.
10836 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10837 (partial_symtab::expand_dependencies): ... this.
10838 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10840 (dwarf2_psymtab::expand_psymtab): Update.
10841 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10842 * mdebugread.c (psymtab_to_symtab_1): Update.
10843 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10845 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10847 * psympriv.h (discard_psymtab): Remove.
10848 * dbxread.c (dbx_end_psymtab): Update.
10849 * xcoffread.c (xcoff_end_psymtab): Update.
10851 2020-03-28 Tom Tromey <tom@tromey.com>
10853 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10856 2020-03-28 Tom Tromey <tom@tromey.com>
10858 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10860 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10862 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10864 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10866 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10868 2020-03-26 Tom Tromey <tom@tromey.com>
10870 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10871 (mark_common_block_symbol_computed, read_tag_string_type)
10872 (attr_to_dynamic_prop, read_subrange_type): Update.
10873 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10874 to be methods on struct attribute.
10875 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10876 (read_call_site_scope, partial_die_info::read)
10877 (partial_die_info::read, lookup_die_type, follow_die_ref):
10879 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10880 from dwarf2_get_ref_die_offset.
10881 (attribute::constant_value): New method, from
10882 dwarf2_get_attr_constant_value.
10883 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10885 <constant_value>: New method.
10887 2020-03-26 Tom Tromey <tom@tromey.com>
10889 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10890 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10891 (dwarf_type_encoding_name): Move to stringify.c.
10892 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10893 * dwarf2/stringify.c: New file.
10894 * dwarf2/stringify.h: New file.
10896 2020-03-26 Tom Tromey <tom@tromey.com>
10898 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10901 2020-03-26 Tom Tromey <tom@tromey.com>
10903 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10905 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10906 (lookup_ranges_base): Likewise.
10907 (read_cutu_die_from_dwo, read_full_die_1): Update.
10909 2020-03-26 Tom Tromey <tom@tromey.com>
10911 * dwarf2/read.c (read_import_statement, read_file_scope)
10912 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10913 (read_lexical_block_scope, read_call_site_scope)
10914 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10915 (handle_struct_member_die, process_structure_scope)
10916 (update_enumeration_type_from_children)
10917 (process_enumeration_scope, read_array_type, read_common_block)
10918 (read_namespace, read_module, read_subroutine_type): Update.
10919 (sibling_die): Remove.
10921 2020-03-26 Tom Tromey <tom@tromey.com>
10923 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10924 (build_type_psymtabs_reader, read_structure_type)
10925 (read_enumeration_type, read_full_die_1): Update.
10926 (dwarf2_attr_no_follow): Move to die.h.
10927 * dwarf2/die.h (struct die_info) <attr>: New method.
10929 2020-03-26 Tom Tromey <tom@tromey.com>
10931 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10932 <base_address>: Now an optional.
10933 (dwarf2_find_base_address, dwarf2_rnglists_process)
10934 (dwarf2_ranges_process, fill_in_loclist_baton)
10935 (dwarf2_symbol_mark_computed): Update.
10937 2020-03-26 Tom Tromey <tom@tromey.com>
10939 * dwarf2/read.c (struct die_info): Move to die.h.
10940 * dwarf2/die.h: New file.
10942 2020-03-26 Tom Tromey <tom@tromey.com>
10944 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10946 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10947 Move to line-header.c.
10948 (read_checked_initial_length_and_offset, read_formatted_entries):
10950 (dwarf_decode_line_header): Split into two.
10951 * dwarf2/line-header.c
10952 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10954 (read_checked_initial_length_and_offset, read_formatted_entries):
10956 (dwarf_decode_line_header): New function, split from read.c.
10958 2020-03-26 Tom Tromey <tom@tromey.com>
10960 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10962 * dwarf2/read.c (read_attribute_value): Update.
10963 (dwarf2_per_objfile::read_line_string): Rename from
10964 read_indirect_line_string.
10965 (read_formatted_entries): Update.
10967 2020-03-26 Tom Tromey <tom@tromey.com>
10969 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10972 2020-03-26 Tom Tromey <tom@tromey.com>
10974 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10976 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10977 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10980 2020-03-26 Tom Tromey <tom@tromey.com>
10982 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10983 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10984 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10985 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10987 2020-03-26 Tom Tromey <tom@tromey.com>
10989 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10990 file_names_size, file_full_name, file_file_name>: Use const.
10991 <file_name_at, file_names>: Add const overload.
10992 * dwarf2/line-header.c (line_header::file_file_name)
10993 (line_header::file_full_name): Update.
10995 2020-03-26 Tom Tromey <tom@tromey.com>
10997 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10998 (macro_start_file, consume_improper_spaces)
10999 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
11000 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
11001 (dwarf_decode_macros): Move to macro.c.
11002 * dwarf2/macro.c: New file.
11003 * dwarf2/macro.h: New file.
11004 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
11006 2020-03-26 Tom Tromey <tom@tromey.com>
11008 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
11010 * dwarf2/section.c: New method. From
11011 read_indirect_string_at_offset_from.
11012 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
11013 (read_indirect_string_at_offset_from): Move to section.c.
11014 (read_indirect_string_at_offset): Rewrite.
11015 (read_indirect_line_string_at_offset): Remove.
11016 (read_indirect_string, read_indirect_line_string)
11017 (dwarf_decode_macro_bytes): Update.
11019 2020-03-26 Tom Tromey <tom@tromey.com>
11021 * dwarf2/section.h (struct dwarf2_section_info)
11022 <overload_complaint>: Declare.
11023 (dwarf2_section_buffer_overflow_complaint): Don't declare.
11024 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
11025 Rename from dwarf2_section_buffer_overflow_complaint.
11026 * dwarf2/read.c (skip_one_die, partial_die_info::read)
11027 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
11029 2020-03-26 Tom Tromey <tom@tromey.com>
11031 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
11033 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
11035 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
11038 2020-03-26 Tom Tromey <tom@tromey.com>
11040 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
11042 2020-03-26 Tom Tromey <tom@tromey.com>
11044 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
11046 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
11048 (dwarf_decode_macros): Update.
11050 2020-03-26 Tom Tromey <tom@tromey.com>
11052 * dwarf2/read.c (read_attribute_value): Update.
11053 (read_indirect_string_from_dwz): Move to dwz.c; change into
11055 (dwarf_decode_macro_bytes): Update.
11056 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
11057 * dwarf2/dwz.c: New file.
11058 * Makefile.in (COMMON_SFILES): Add dwz.c.
11060 2020-03-26 Tom Tromey <tom@tromey.com>
11062 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
11063 * dwarf2/read.c: Add include.
11064 * dwarf2/index-write.c: Add include.
11065 * dwarf2/index-cache.c: Add include.
11066 * dwarf2/dwz.h: New file.
11068 2020-03-25 Tom Tromey <tom@tromey.com>
11070 * compile/compile-object-load.c (get_out_value_type): Mention
11071 correct symbol name in error message.
11073 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
11075 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
11077 2020-03-25 Tom de Vries <tdevries@suse.de>
11079 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
11080 * symmisc.c (dump_symtab_1): Print user and includes fields.
11081 (maintenance_info_symtabs): Same.
11083 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
11086 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
11087 (riscv_regcache_cooked_write): New function.
11088 (riscv_push_dummy_call): Use new function.
11089 (riscv_return_value): Likewise.
11091 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
11093 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
11094 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
11095 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
11096 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
11097 * infrun.c (follow_fork): Likewise.
11098 (follow_fork_inferior): Likewise.
11099 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
11100 * linux-nat.h (class linux_nat_target): Likewise.
11101 * remote.c (class remote_target) <follow_fork>: Likewise.
11102 (remote_target::follow_fork): Likewise.
11103 * target-delegates.c: Re-generate.
11104 * target.c (default_follow_fork): Likewise.
11105 (target_follow_fork): Likewise.
11106 * target.h (struct target_ops) <follow_fork>: Likewise.
11107 (target_follow_fork): Likewise.
11109 2020-03-24 Tom de Vries <tdevries@suse.de>
11111 * psymtab.c (maintenance_info_psymtabs): Print user field.
11113 2020-03-20 Tom Tromey <tromey@adacore.com>
11115 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
11117 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
11120 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
11122 * ptrace.m4: Don't check for ptrace declaration.
11123 * config.in: Re-generate.
11124 * configure: Re-generate.
11125 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
11128 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11130 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
11132 * i386-bsd-nat.c (gdb_ptrace): Likewise.
11133 * sparc-nat.c (gdb_ptrace): Likewise.
11134 * x86-bsd-nat.c (gdb_ptrace): Likewise.
11136 2020-03-20 Tom Tromey <tromey@adacore.com>
11138 * c-exp.y (lex_one_token): Fix assert.
11140 2020-03-20 Tom Tromey <tromey@adacore.com>
11142 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
11143 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
11146 2020-03-20 Tom Tromey <tromey@adacore.com>
11148 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
11150 2020-03-20 Tom Tromey <tromey@adacore.com>
11152 * ada-valprint.c (print_variant_part): Remove parameters; switch
11153 to value-based API.
11154 (print_field_values): Likewise.
11155 (ada_val_print_struct_union): Likewise.
11156 (ada_value_print_1): Update.
11158 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11160 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11161 nbsd_nat_target instead of inf_ptrace_target.
11162 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11165 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11167 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11168 it to the ptrace call.
11169 * (store_registers): Likewise.
11171 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11173 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11174 it to the ptrace call.
11175 * (store_registers): Likewise.
11177 2020-03-19 Luis Machado <luis.machado@linaro.org>
11179 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11180 valid, fetch vg value from ptrace.
11182 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11183 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11184 * inf-ptrace.c: Likewise.
11185 * (gdb_ptrace): Add.
11186 * (inf_ptrace_target::resume): Update.
11187 * (inf_ptrace_target::xfer_partial): Likewise.
11188 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11189 * (inf_ptrace_peek_poke): Update.
11191 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11193 * x86-bsd-nat.c (gdb_ptrace): New.
11194 * (x86bsd_dr_set): Add new argument `ptid'.
11195 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11196 x86bsd_dr_set_addr): Update.
11198 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11200 * remote.c (remote_target::process_stop_reply): Handle events for
11201 all threads differently.
11203 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11205 * completer.c (completion_tracker::remove_completion): Define new
11207 * completer.h (completion_tracker::remove_completion): Declare new
11209 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11210 when adding a C++ function symbol.
11212 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11214 * completer.c (completion_tracker::completion_hash_entry): Define
11216 (advance_to_filename_complete_word_point): Call
11217 recompute_lowest_common_denominator.
11218 (completion_tracker::completion_tracker): Call discard_completions
11219 to setup the hash table.
11220 (completion_tracker::discard_completions): Allow for being called
11221 from the constructor, pass new equal function, and element deleter
11222 when constructing the hash table. Initialise new class member
11224 (completion_tracker::maybe_add_completion): Remove use of
11225 m_entries_vec, and store more information into m_entries_hash.
11226 (completion_tracker::recompute_lcd_visitor): New function, most
11227 content taken from...
11228 (completion_tracker::recompute_lowest_common_denominator):
11229 ...here, this now just visits each item in the hash calling the
11231 (completion_tracker::build_completion_result): Remove use of
11232 m_entries_vec, call recompute_lowest_common_denominator.
11233 * completer.h (completion_tracker::have_completions): Remove use
11235 (completion_tracker::completion_hash_entry): Declare new class.
11236 (completion_tracker::recompute_lowest_common_denominator): Change
11237 function signature.
11238 (completion_tracker::recompute_lcd_visitor): Declare new function.
11239 (completion_tracker::m_entries_vec): Delete.
11240 (completion_tracker::m_entries_hash): Initialize to NULL.
11241 (completion_tracker::m_lowest_common_denominator_valid): New
11243 (completion_tracker::m_lowest_common_denominator_max_length): New
11246 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11248 * regformats/regdef.h: Put reg in gdb namespace.
11250 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11252 * i386-bsd-nat.c (gdb_ptrace): New.
11253 * (i386bsd_fetch_inferior_registers,
11254 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11255 * (i386bsd_fetch_inferior_registers,
11256 i386bsd_store_inferior_registers) Use gdb_ptrace.
11258 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11260 * amd64-bsd-nat.c (gdb_ptrace): New.
11261 * (amd64bsd_fetch_inferior_registers,
11262 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11263 * (amd64bsd_fetch_inferior_registers,
11264 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11266 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11268 * user-regs.c (user_reg::read): Rename to...
11269 (user_reg::xread): ...this.
11270 * (append_user_reg): Rename argument `read' to `xread'.
11271 * (user_reg_add_builtin): Likewise.
11272 * (user_reg_add): Likewise.
11273 * (value_of_user_reg): Likewise.
11275 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11277 * sparc-nat.c (gdb_ptrace): New.
11278 * sparc-nat.c (sparc_fetch_inferior_registers)
11279 (sparc_store_inferior_registers) Remove obsolete comment.
11280 * sparc-nat.c (sparc_fetch_inferior_registers)
11281 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11282 * sparc-nat.c (sparc_fetch_inferior_registers)
11283 (sparc_store_inferior_registers) Use gdb_ptrace.
11285 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11287 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11288 it to the ptrace call.
11289 * sh-nbsd-nat.c (store_registers): Likewise.
11291 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11293 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11294 nbsd_nat_target instead of inf_ptrace_target.
11295 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11298 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11300 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11302 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11304 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11306 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11308 2020-03-17 Tom de Vries <tdevries@suse.de>
11311 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11313 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11315 (process_imported_unit_die): Skip import of c++ CUs.
11317 2020-03-16 Tom Tromey <tom@tromey.com>
11319 * p-valprint.c (pascal_object_print_value): Initialize
11322 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11323 Shahab Vahedi <shahab@synopsys.com>
11325 * Makefile.in: Add arch/arc.o
11326 * configure.tgt: Likewise.
11327 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11328 (_initialize_arc_tdep): Don't initialize old target descriptions.
11329 (arc_read_description): New function to cache target descriptions.
11330 * arc-tdep.h (arc_read_description): Add proto type.
11331 * arch/arc.c: New file.
11332 * arch/arc.h: Likewise.
11333 * features/Makefile: Replace old target descriptions with new.
11334 * features/arc-arcompact.c: Remove.
11335 * features/arc-arcompact.xml: Likewise.
11336 * features/arc-v2.c: Likewise
11337 * features/arc-v2.xml: Likewise
11338 * features/arc/aux-arcompact.xml: New file.
11339 * features/arc/aux-v2.xml: Likewise.
11340 * features/arc/core-arcompact.xml: Likewise.
11341 * features/arc/core-v2.xml: Likewise.
11342 * features/arc/aux-arcompact.c: Generate.
11343 * features/arc/aux-v2.c: Likewise.
11344 * features/arc/core-arcompact.c: Likewise.
11345 * features/arc/core-v2.c: Likewise.
11346 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11348 2020-03-16 Tom Tromey <tromey@adacore.com>
11351 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11352 putting value into bcache.
11354 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11357 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11359 (amd64_windows_init_abi_common): ... this. Don't set size of
11361 (amd64_windows_init_abi): New function.
11362 (amd64_cygwin_init_abi): New function.
11363 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11365 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11368 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11370 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11371 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11372 (pe_import_directory_entry): New struct type.
11373 (is_linked_with_cygwin_dll): New function.
11374 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11375 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11376 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11378 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11380 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11381 i386_cygwin_core_osabi_sniffer.
11383 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11385 * i386-cygwin-tdep.c: Rename to...
11386 * i386-windows-tdep.c: ... this.
11387 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11388 i386-windows-tdep.c.
11389 * configure.tgt: Likewise.
11391 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11393 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11394 * osabi.c (gdb_osabi_names): Add "Windows".
11395 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11396 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11397 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11398 i386_cygwin_osabi_sniffer.
11399 (_initialize_i386_cygwin_tdep): Register OS ABI
11400 GDB_OSABI_WINDOWS for i386.
11401 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11402 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11403 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11405 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11406 when the target matches '*-*-mingw*'.
11408 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11410 * defs.h (enum gdb_osabi): Move to...
11411 * osabi.h (enum gdb_osabi): ... here.
11412 * gdbarch.sh: Include osabi.h in gdbarch.h.
11413 * gdbarch.h: Re-generate.
11415 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11417 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11419 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11421 2020-03-14 Tom Tromey <tom@tromey.com>
11423 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11425 (c_type_print_modifier): Likewise. Add "language" parameter.
11426 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11427 (c_type_print_base_1): Update.
11428 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11430 * type-stack.c (type_stack::insert): Handle tp_atomic and
11432 (type_stack::follow_type_instance_flags): Likewise.
11433 (type_stack::follow_types): Likewise. Merge type-following code.
11434 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11435 (space_identifier, cv_with_space_id)
11436 (const_or_volatile_or_space_identifier_noopt)
11437 (const_or_volatile_or_space_identifier): Remove.
11438 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11440 (ptr_operator, typebase): Update.
11441 (enum token_flag) <FLAG_C>: New constant.
11442 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11444 (lex_one_token): Handle FLAG_C.
11446 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11448 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11449 it to the ptrace call.
11450 * m68k-bsd-nat.c (store_registers): Likewise.
11452 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11454 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11456 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11457 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11458 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11460 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11462 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11463 nbsd_nat_target instead of inf_ptrace_target.
11464 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11467 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11469 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11472 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11474 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11475 it to the ptrace call.
11476 * alpha-bsd-nat.c (store_registers): Likewise.
11478 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11480 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11482 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11483 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11484 fill_fpregset): Likewise.
11486 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11488 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11489 nbsd_nat_target instead of inf_ptrace_target.
11490 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11495 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11498 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11500 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11501 it to the ptrace call.
11502 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11503 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11504 * arm-nbsd-nat.c (store_register): Likewise.
11505 * arm-nbsd-nat.c (store_regs): Likewise.
11506 * arm-nbsd-nat.c (store_fp_register): Likewise.
11507 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11509 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11511 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11512 nbsd_nat_target instead of inf_ptrace_target.
11513 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11516 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11518 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11519 it to the ptrace call.
11520 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11522 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11524 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11525 it to the ptrace call.
11526 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11530 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11532 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11534 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11536 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11537 instead of inf_ptrace_target.
11538 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11541 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11543 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11546 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11548 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11551 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11553 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11556 2020-03-13 Tom Tromey <tom@tromey.com>
11558 * value.h (val_print): Don't declare.
11559 * valprint.h (val_print_array_elements)
11560 (val_print_scalar_formatted, generic_val_print): Don't declare.
11561 * valprint.c (generic_val_print_array): Take a struct value.
11562 (generic_val_print_ptr, generic_val_print_memberptr)
11563 (generic_val_print_bool, generic_val_print_int)
11564 (generic_val_print_char, generic_val_print_complex)
11565 (generic_val_print): Remove.
11566 (generic_value_print): Update.
11567 (do_val_print): Remove unused parameters. Don't call
11569 (val_print): Remove.
11570 (common_val_print): Update. Don't call value_check_printable.
11571 (val_print_scalar_formatted, val_print_array_elements): Remove.
11572 * rust-lang.c (rust_val_print): Remove.
11573 (rust_language_defn): Update.
11574 * p-valprint.c (pascal_val_print): Remove.
11575 (pascal_value_print_inner): Update.
11576 (pascal_object_print_val_fields, pascal_object_print_val):
11578 (pascal_object_print_static_field): Update.
11579 * p-lang.h (pascal_val_print): Don't declare.
11580 * p-lang.c (pascal_language_defn): Update.
11581 * opencl-lang.c (opencl_language_defn): Update.
11582 * objc-lang.c (objc_language_defn): Update.
11583 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11584 * m2-lang.h (m2_val_print): Don't declare.
11585 * m2-lang.c (m2_language_defn): Update.
11586 * language.h (struct language_defn) <la_val_print>: Remove.
11587 * language.c (unk_lang_value_print_inner): Rename. Change
11589 (unknown_language_defn, auto_language_defn): Update.
11590 * go-valprint.c (go_val_print): Remove.
11591 * go-lang.h (go_val_print): Don't declare.
11592 * go-lang.c (go_language_defn): Update.
11593 * f-valprint.c (f_val_print): Remove.
11594 * f-lang.h (f_value_print): Don't declare.
11595 * f-lang.c (f_language_defn): Update.
11596 * d-valprint.c (d_val_print): Remove.
11597 * d-lang.h (d_value_print): Don't declare.
11598 * d-lang.c (d_language_defn): Update.
11599 * cp-valprint.c (cp_print_value_fields)
11600 (cp_print_value_fields_rtti, cp_print_value): Remove.
11601 (cp_print_static_field): Update.
11602 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11603 (c_val_print_struct, c_val_print_union, c_val_print_int)
11604 (c_val_print_memberptr, c_val_print): Remove.
11605 * c-lang.h (c_val_print_array, cp_print_value_fields)
11606 (cp_print_value_fields_rtti): Don't declare.
11607 * c-lang.c (c_language_defn, cplus_language_defn)
11608 (asm_language_defn, minimal_language_defn): Update.
11609 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11610 (ada_val_print_enum): Take a struct value.
11611 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11612 (ada_val_print): Remove.
11613 (ada_value_print_1): Update.
11614 (printable_val_type): Remove.
11615 * ada-lang.h (ada_val_print): Don't declare.
11616 * ada-lang.c (ada_language_defn): Update.
11618 2020-03-13 Tom Tromey <tom@tromey.com>
11620 * valprint.c (do_val_print): Update.
11621 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11623 (value_to_value_object_no_release): Declare.
11624 * python/py-value.c (value_to_value_object_no_release): New
11626 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11628 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11630 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11632 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11634 (gdbscm_apply_val_pretty_printer): Take a struct value.
11635 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11637 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11639 * extension-priv.h (struct extension_language_ops)
11640 <apply_val_pretty_printer>: Take a struct value.
11641 * cp-valprint.c (cp_print_value): Create a struct value.
11642 (cp_print_value): Update.
11644 2020-03-13 Tom Tromey <tom@tromey.com>
11646 * ada-valprint.c (print_field_values): Call common_val_print.
11648 2020-03-13 Tom Tromey <tom@tromey.com>
11650 * ada-valprint.c (val_print_packed_array_elements): Remove
11651 bitoffset and val parameters. Call common_val_print.
11652 (ada_val_print_string): Remove offset, address, and original_value
11654 (ada_val_print_array): Update.
11655 (ada_value_print_array): New function.
11656 (ada_value_print_1): Call it.
11658 2020-03-13 Tom Tromey <tom@tromey.com>
11660 * ada-valprint.c (ada_value_print): Use common_val_print.
11662 2020-03-13 Tom Tromey <tom@tromey.com>
11664 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11666 2020-03-13 Tom Tromey <tom@tromey.com>
11668 * ada-valprint.c (ada_value_print_num): New function.
11669 (ada_value_print_1): Use it.
11671 2020-03-13 Tom Tromey <tom@tromey.com>
11673 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11675 2020-03-13 Tom Tromey <tom@tromey.com>
11677 * ada-valprint.c (ada_value_print_ptr): New function.
11678 (ada_value_print_1): Use it.
11680 2020-03-13 Tom Tromey <tom@tromey.com>
11682 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11683 call common_val_print.
11684 (ada_val_print_1): Update.
11685 (ada_value_print_1): New function.
11686 (ada_value_print_inner): Rewrite.
11688 2020-03-13 Tom Tromey <tom@tromey.com>
11690 * cp-valprint.c (cp_print_value_fields): Update.
11691 (cp_print_value): New function.
11693 2020-03-13 Tom Tromey <tom@tromey.com>
11695 * m2-valprint.c (m2_value_print_inner): Use
11696 cp_print_value_fields.
11697 * cp-valprint.c (cp_print_value_fields): New function.
11698 * c-valprint.c (c_value_print_struct): New function.
11699 (c_value_print_inner): Use c_value_print_struct.
11700 * c-lang.h (cp_print_value_fields): Declare.
11702 2020-03-13 Tom Tromey <tom@tromey.com>
11704 * c-valprint.c (c_value_print_array): New function.
11705 (c_value_print_inner): Use it.
11707 2020-03-13 Tom Tromey <tom@tromey.com>
11709 * c-valprint.c (c_value_print_memberptr): New function.
11710 (c_value_print_inner): Use it.
11712 2020-03-13 Tom Tromey <tom@tromey.com>
11714 * c-valprint.c (c_value_print_int): New function.
11715 (c_value_print_inner): Use it.
11717 2020-03-13 Tom Tromey <tom@tromey.com>
11719 * c-valprint.c (c_value_print_ptr): New function.
11720 (c_value_print_inner): Use it.
11722 2020-03-13 Tom Tromey <tom@tromey.com>
11724 * c-valprint.c (c_value_print_inner): Rewrite.
11726 2020-03-13 Tom Tromey <tom@tromey.com>
11728 * valprint.c (generic_value_print_complex): New function.
11729 (generic_value_print): Use it.
11731 2020-03-13 Tom Tromey <tom@tromey.com>
11733 * valprint.c (generic_val_print_float): Don't call
11734 val_print_scalar_formatted.
11735 (generic_val_print, generic_value_print): Update.
11737 2020-03-13 Tom Tromey <tom@tromey.com>
11739 * valprint.c (generic_value_print_char): New function
11740 (generic_value_print): Use it.
11742 2020-03-13 Tom Tromey <tom@tromey.com>
11744 * valprint.c (generic_value_print_int): New function.
11745 (generic_value_print): Use it.
11747 2020-03-13 Tom Tromey <tom@tromey.com>
11749 * valprint.c (generic_value_print_bool): New function.
11750 (generic_value_print): Use it.
11752 2020-03-13 Tom Tromey <tom@tromey.com>
11754 * valprint.c (generic_val_print_func): Simplify.
11755 (generic_val_print, generic_value_print): Update.
11757 2020-03-13 Tom Tromey <tom@tromey.com>
11759 * valprint.c (generic_val_print_flags): Remove.
11760 (generic_val_print, generic_value_print): Update.
11761 (val_print_type_code_flags): Add original_value parameter.
11763 2020-03-13 Tom Tromey <tom@tromey.com>
11765 * valprint.c (generic_val_print): Update.
11766 (generic_value_print): Update.
11767 * valprint.c (generic_val_print_enum): Don't call
11768 val_print_scalar_formatted.
11770 2020-03-13 Tom Tromey <tom@tromey.com>
11772 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11773 * valprint.c (generic_value_print_ptr): New function.
11775 2020-03-13 Tom Tromey <tom@tromey.com>
11777 * valprint.c (generic_value_print): Rewrite.
11779 2020-03-13 Tom Tromey <tom@tromey.com>
11781 * p-valprint.c (pascal_object_print_value_fields)
11782 (pascal_object_print_value): New functions.
11784 2020-03-13 Tom Tromey <tom@tromey.com>
11786 * p-valprint.c (pascal_value_print_inner): Rewrite.
11788 2020-03-13 Tom Tromey <tom@tromey.com>
11790 * f-valprint.c (f_value_print_innner): Rewrite.
11792 2020-03-13 Tom Tromey <tom@tromey.com>
11794 * m2-valprint.c (m2_print_unbounded_array): New overload.
11795 (m2_print_unbounded_array): Update.
11796 (m2_print_array_contents): Take a struct value.
11797 (m2_value_print_inner): Rewrite.
11799 2020-03-13 Tom Tromey <tom@tromey.com>
11801 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11802 (d_value_print_inner): New function.
11803 * d-lang.h (d_value_print_inner): Declare.
11804 * d-lang.c (d_language_defn): Use d_value_print_inner.
11806 2020-03-13 Tom Tromey <tom@tromey.com>
11808 * go-valprint.c (go_value_print_inner): New function.
11809 * go-lang.h (go_value_print_inner): Declare.
11810 * go-lang.c (go_language_defn): Use go_value_print_inner.
11812 2020-03-13 Tom Tromey <tom@tromey.com>
11814 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11816 (rust_val_print): Rewrite.
11817 (rust_value_print_inner): New function, from rust_val_print.
11818 (rust_language_defn): Use rust_value_print_inner.
11820 2020-03-13 Tom Tromey <tom@tromey.com>
11822 * ada-valprint.c (ada_value_print_inner): New function.
11823 * ada-lang.h (ada_value_print_inner): Declare.
11824 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11826 2020-03-13 Tom Tromey <tom@tromey.com>
11828 * f-valprint.c (f_value_print_innner): New function.
11829 * f-lang.h (f_value_print_innner): Declare.
11830 * f-lang.c (f_language_defn): Use f_value_print_innner.
11832 2020-03-13 Tom Tromey <tom@tromey.com>
11834 * p-valprint.c (pascal_value_print_inner): New function.
11835 * p-lang.h (pascal_value_print_inner): Declare.
11836 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11838 2020-03-13 Tom Tromey <tom@tromey.com>
11840 * m2-valprint.c (m2_value_print_inner): New function.
11841 * m2-lang.h (m2_value_print_inner): Declare.
11842 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11844 2020-03-13 Tom Tromey <tom@tromey.com>
11846 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11847 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11848 * c-valprint.c (c_value_print_inner): New function.
11849 * c-lang.h (c_value_print_inner): Declare.
11850 * c-lang.c (c_language_defn, cplus_language_defn)
11851 (asm_language_defn, minimal_language_defn): Use
11852 c_value_print_inner.
11854 2020-03-13 Tom Tromey <tom@tromey.com>
11856 * p-valprint.c (pascal_object_print_value_fields): Now static.
11857 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11859 2020-03-13 Tom Tromey <tom@tromey.com>
11861 * c-valprint.c (c_val_print_array): Simplify.
11863 2020-03-13 Tom Tromey <tom@tromey.com>
11865 * valprint.c (value_print_array_elements): New function.
11866 * valprint.h (value_print_array_elements): Declare.
11868 2020-03-13 Tom Tromey <tom@tromey.com>
11870 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11871 * mips-tdep.c (mips_print_register): Use
11872 value_print_scalar_formatted.
11874 2020-03-13 Tom Tromey <tom@tromey.com>
11876 * valprint.h (value_print_scalar_formatted): Declare.
11877 * valprint.c (value_print_scalar_formatted): New function.
11879 2020-03-13 Tom Tromey <tom@tromey.com>
11881 * valprint.h (generic_value_print): Declare.
11882 * valprint.c (generic_value_print): New function.
11884 2020-03-13 Tom Tromey <tom@tromey.com>
11886 * valprint.c (do_val_print): Call la_value_print_inner, if
11888 * rust-lang.c (rust_language_defn): Update.
11889 * p-lang.c (pascal_language_defn): Update.
11890 * opencl-lang.c (opencl_language_defn): Update.
11891 * objc-lang.c (objc_language_defn): Update.
11892 * m2-lang.c (m2_language_defn): Update.
11893 * language.h (struct language_defn) <la_value_print_inner>: New
11895 * language.c (unknown_language_defn, auto_language_defn): Update.
11896 * go-lang.c (go_language_defn): Update.
11897 * f-lang.c (f_language_defn): Update.
11898 * d-lang.c (d_language_defn): Update.
11899 * c-lang.c (c_language_defn, cplus_language_defn)
11900 (asm_language_defn, minimal_language_defn): Update.
11901 * ada-lang.c (ada_language_defn): Update.
11903 2020-03-13 Tom Tromey <tom@tromey.com>
11905 * c-valprint.c (c_value_print): Use common_val_print.
11907 2020-03-13 Tom Tromey <tom@tromey.com>
11909 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11911 2020-03-13 Tom Tromey <tom@tromey.com>
11913 * f-valprint.c (f77_print_array_1, f_val_print): Use
11916 2020-03-13 Tom Tromey <tom@tromey.com>
11918 * riscv-tdep.c (riscv_print_one_register_info): Use
11921 2020-03-13 Tom Tromey <tom@tromey.com>
11923 * mi/mi-main.c (output_register): Use common_val_print.
11925 2020-03-13 Tom Tromey <tom@tromey.com>
11927 * infcmd.c (default_print_one_register_info): Use
11930 2020-03-13 Tom Tromey <tom@tromey.com>
11932 * valprint.h (common_val_print_checked): Declare.
11933 * valprint.c (common_val_print_checked): New function.
11934 * stack.c (print_frame_arg): Use common_val_print_checked.
11936 2020-03-13 Tom Tromey <tom@tromey.com>
11938 * valprint.c (do_val_print): New function, from val_print.
11939 (val_print): Use do_val_print.
11940 (common_val_print): Use do_val_print.
11942 2020-03-13 Tom Tromey <tom@tromey.com>
11944 * valprint.c (value_print): Use scoped_value_mark.
11946 2020-03-13 Tom de Vries <tdevries@suse.de>
11949 * psymtab.c (partial_symtab::partial_symtab): Don't set
11950 globals_offset and statics_offset. Push element onto
11951 current_global_psymbols and current_static_psymbols stacks.
11952 (concat): New function.
11953 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11954 element from current_global_psymbols and current_static_psymbols
11955 stacks. Concat popped elements to global_psymbols and
11957 (add_psymbol_to_list): Use current_global_psymbols and
11958 current_static_psymbols stacks.
11959 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11960 current_static_psymbols fields.
11962 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11964 * corelow.c (sniff_core_bfd): Remove.
11965 (class core_target) <m_core_vec>: Remove.
11966 (core_target::core_target): Update.
11967 (core_file_fns): Remove.
11968 (deprecated_add_core_fns): Remove.
11969 (default_core_sniffer): Remove.
11970 (sniff_core_bfd): Remove.
11971 (default_check_format): Remove.
11972 (gdb_check_format): Remove.
11973 (core_target_open): Update.
11974 (core_target::get_core_register_section): Update.
11975 (get_core_registers_cb): Update.
11976 (core_target::fetch_registers): Update.
11977 * gdbcore.h (struct core_fns): Remove.
11978 (deprecated_add_core_fns): Remove.
11979 (default_core_sniffer): Remove.
11980 (default_check_format): Remove.
11982 2020-03-12 Tom Tromey <tom@tromey.com>
11984 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11986 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11988 2020-03-12 Tom Tromey <tom@tromey.com>
11990 * remote.c (remote_target::download_tracepoint)
11991 (remote_target::enable_tracepoint)
11992 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11993 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11996 2020-03-12 Tom Tromey <tom@tromey.com>
11998 * symfile-mem.c: Update CORE_ADDR size assert.
12000 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12002 * selftest.m4: Move to gdbsupport/.
12003 * acinclude.m4: Update path to selftest.m4.
12005 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
12008 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
12009 gdbarch-selfselftests.c and selftest-arch.c.
12010 (SUBDIR_UNITTESTS_OBS): Rename to...
12011 (SELFTESTS_OBS): ... this.
12012 (COMMON_SFILES): Remove disasm-selftests.c and
12013 gdbarch-selftests.c.
12014 * configure.ac: Don't add selftest-arch.{c,o} to
12016 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
12017 preprocessor conditions.
12019 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12021 * configure.ac: Don't source bfd/development.sh.
12022 * selftest.m4: Modify comment.
12023 * configure: Re-generate.
12025 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
12027 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
12028 not "true" or "false".
12029 * configure: Re-generate.
12031 2020-03-12 Christian Biesinger <cbiesinger@google.com>
12033 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
12034 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
12035 renamed to arm_nbsd_supply_gregset.
12036 (fetch_register): Update to call arm_nbsd_supply_gregset.
12037 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
12038 (arm_netbsd_nat_target::fetch_registers): Update.
12039 (fetch_elfcore_registers): Removed.
12040 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
12041 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
12042 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
12043 not require NetBSD system headers.
12044 (arm_nbsd_regset): New struct.
12045 (arm_nbsd_iterate_over_regset_sections): New function.
12046 (arm_netbsd_init_abi_common): Updated to call
12047 set_gdbarch_iterate_over_regset_sections.
12048 * arm-nbsd-tdep.h: New file.
12050 2020-03-11 Kevin Buettner <kevinb@redhat.com>
12052 * symtab.c (find_pc_sect_line): Add check which prevents infinite
12055 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
12057 * configure: Re-generate.
12059 2020-03-11 Tom Tromey <tromey@adacore.com>
12061 * ada-typeprint.c (print_choices): Fix comment.
12063 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
12065 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
12066 previous item in the list, when the list has no items.
12068 2020-03-11 Tom de Vries <tdevries@suse.de>
12070 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
12071 PROP_LOCLIST handling code.
12073 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
12075 * buildsym-legacy.c (record_line): Pass extra parameter to
12077 * buildsym.c (buildsym_compunit::record_line): Take an extra
12078 parameter, reduce duplication in the line table, and record the
12079 is_stmt flag in the line table.
12080 * buildsym.h (buildsym_compunit::record_line): Add extra
12082 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
12083 non-statement lines.
12084 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
12085 this to the symtab builder.
12086 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
12087 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
12088 through to dwarf_record_line_1.
12089 * infrun.c (process_event_stop_test): When stepping, don't stop at
12090 a non-statement instruction, and only refresh the step info when
12091 we land in the middle of a line's range. Also add an extra
12093 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
12095 * record-btrace.c (btrace_find_line_range): Only record lines
12096 marked as is-statement.
12097 * stack.c (frame_show_address): Show the frame address if we are
12098 in a non-statement sal.
12099 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
12100 (maintenance_print_one_line_table): Print a header for the is_stmt
12101 column, and include is_stmt information in the output.
12102 * symtab.c (find_pc_sect_line): Find lines marked as statements in
12103 preference to non-statements.
12104 (find_pcs_for_symtab_line): Prefer is-statement entries.
12105 (find_line_common): Likewise.
12106 * symtab.h (struct linetable_entry): Add is_stmt field.
12107 (struct symtab_and_line): Likewise.
12108 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
12109 arranging the line table.
12111 2020-03-07 Tom de Vries <tdevries@suse.de>
12113 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
12116 2020-03-07 Tom Tromey <tom@tromey.com>
12118 * valops.c (value_literal_complex): Remove obsolete comment.
12119 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
12122 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12124 * infrun.h: Forward-declare thread_info.
12125 (set_step_info): Add thread_info parameter, add doc.
12126 * infrun.c (set_step_info): Add thread_info parameter, move doc
12128 * infrun.c (process_event_stop_test): Pass thread to
12129 set_step_info call.
12130 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
12132 (prepare_one_step): Add thread_info parameter, pass it to
12133 set_step_frame and prepare_one_step (recursive) call.
12134 (step_1): Pass thread to prepare_one_step call.
12135 (step_command_fsm::should_stop): Pass thread to
12137 (until_next_fsm): Pass thread to set_step_frame call.
12138 (finish_command): Pass thread to set_step_info call.
12140 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
12142 * windows-tdep.c (windows_solib_create_inferior_hook):
12143 Check if inferior is running.
12145 2020-03-06 Tom de Vries <tdevries@suse.de>
12147 * NEWS: Fix "the the".
12150 2020-03-06 Tom de Vries <tdevries@suse.de>
12152 * psymtab.c (psymtab_to_symtab): Don't print "done.".
12154 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12156 * .dir-locals.el: Add a comment referencing the other copies of
12159 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12161 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12164 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12166 * .gitattributes: New file.
12168 2020-03-04 Tom Tromey <tom@tromey.com>
12170 * symmisc.c (print_symbol_bcache_statistics)
12171 (print_objfile_statistics): Update.
12172 * symfile.c (allocate_symtab): Use intern.
12173 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12174 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12175 macro_cache>: Remove.
12176 <string_cache>: New member.
12177 (struct objfile) <intern>: New methods.
12178 * elfread.c (elf_symtab_read): Use intern.
12179 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12180 (dwarf2_compute_name, dwarf2_physname)
12181 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12183 (guess_partial_die_structure_name): Update.
12184 (partial_die_info::fixup): Intern name.
12185 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12187 (dwarf2_name): Intern name. Update.
12188 * buildsym.c (buildsym_compunit::get_macro_table): Use
12191 2020-03-04 Tom Tromey <tom@tromey.com>
12193 * jit.c (bfd_open_from_target_memory): Make "target" const.
12194 * corefile.c (gnutarget): Now const.
12195 * gdbcore.h (gnutarget): Now const.
12197 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12199 * NEWS: Mention support for WOW64 processes.
12200 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12201 (amd64_windows_segment_register_p): Remove static.
12202 (_initialize_amd64_windows_nat): Update.
12203 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12204 * i386-windows-nat.c (context_offset): Update.
12205 (i386_mappings): Rename and remove static.
12206 (i386_windows_segment_register_p): Remove static.
12207 (_initialize_i386_windows_nat): Update.
12208 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12209 (STATUS_WX86_SINGLE_STEP): New macro.
12210 (EnumProcessModulesEx): New macro.
12211 (Wow64SuspendThread): New macro.
12212 (Wow64GetThreadContext): New macro.
12213 (Wow64SetThreadContext): New macro.
12214 (Wow64GetThreadSelectorEntry): New macro.
12215 (windows_set_context_register_offsets): Add static.
12216 (windows_set_segment_register_p): Likewise.
12217 (windows_add_thread): Adapt for WOW64 processes.
12218 (windows_fetch_one_register): Likewise.
12219 (windows_nat_target::fetch_registers): Likewise.
12220 (windows_store_one_register): Likewise.
12221 (display_selector): Likewise.
12222 (display_selectors): Likewise.
12223 (handle_exception): Likewise.
12224 (windows_continue): Likewise.
12225 (windows_nat_target::resume): Likewise.
12226 (windows_add_all_dlls): Likewise.
12227 (do_initial_windows_stuff): Likewise.
12228 (windows_nat_target::attach): Likewise.
12229 (windows_get_exec_module_filename): Likewise.
12230 (windows_nat_target::create_inferior): Likewise.
12231 (windows_xfer_siginfo): Likewise.
12232 (_initialize_loadable): Initialize Wow64SuspendThread,
12233 Wow64GetThreadContext, Wow64SetThreadContext,
12234 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12235 * windows-nat.h (windows_set_context_register_offsets):
12236 Remove declaration.
12237 (windows_set_segment_register_p): Likewise.
12238 (i386_windows_segment_register_p): Add declaration.
12239 (amd64_windows_segment_register_p): Likewise.
12241 2020-03-04 Luis Machado <luis.machado@linaro.org>
12243 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12244 in "info registers" for AArch64/ARM.
12246 The change caused "info registers" to not print GPR's.
12250 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12252 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12253 when reg->group is empty and reggroup is not.
12255 2020-03-03 Tom Tromey <tromey@adacore.com>
12257 * dwarf2/frame.c (struct dwarf2_frame_cache)
12258 <checked_tailcall_bottom, entry_cfa_sp_offset,
12259 entry_cfa_sp_offset_p>: Remove members.
12260 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12261 (dwarf2_frame_prev_register): Don't call
12262 dwarf2_tailcall_sniffer_first.
12263 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12264 * frame-unwind.c (add_unwinder): New fuction.
12265 (frame_unwind_init): Use it. Add tailcall unwinder.
12267 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12268 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12270 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12271 value should be printed as true.
12273 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12275 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12276 (windows_init_abi): Set and use windows_so_ops.
12278 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12280 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12281 when verifying if dealing with a convenience variable.
12283 2020-03-03 Luis Machado <luis.machado@linaro.org>
12285 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12287 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12289 * infrun.c (gdbarch_supports_displaced_stepping): New.
12290 (use_displaced_stepping): Break up conditions in smaller pieces.
12291 Use gdbarch_supports_displaced_stepping.
12292 (displaced_step_prepare_throw): Use
12293 gdbarch_supports_displaced_stepping.
12295 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12297 * NEWS: Mention new behaviour of the history filename.
12298 * top.c (write_history_p): Add comment.
12299 (show_write_history_p): Add header comment, give a different
12300 message when history writing is on, but the history filename is
12302 (history_filename): Add comment.
12303 (history_filename_empty): New function.
12304 (show_history_filename): Add header comment, give a different
12305 message when the filename is empty.
12306 (init_history): Compare history_filename against nullptr, and only
12307 read history if the filename is not empty.
12308 (set_history_filename): Add header comment, and only make
12309 non-empty filenames absolute.
12310 (init_main): Make the filename argument to 'set history filename'
12313 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12315 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12316 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12317 (fetch_fp_register): Update.
12318 (fetch_fp_regs): Update.
12319 (store_fp_register): Update.
12320 (store_fp_regs): Update.
12321 (arm_netbsd_nat_target::read_description): New function.
12322 (fetch_elfcore_registers): Update.
12324 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12326 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12327 general_thread if the stop reply is missing a thread-id.
12328 (remote_target::process_stop_reply): Use the first non-exited
12329 thread if the target didn't pass a thread-id.
12330 * infrun.c (do_target_wait): Move call to
12331 switch_to_inferior_no_thread to ....
12332 (do_target_wait_1): ... here.
12334 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12336 * debuginfod-support.c: Include defs.h first.
12338 2020-02-28 Tom de Vries <tdevries@suse.de>
12340 * symfile.c (set_initial_language): Use default language for lookup.
12342 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12344 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12345 reader variable, pass `this` to read_cutu_die_from_dwo.
12347 2020-02-27 Aaron Merey <amerey@redhat.com>
12349 * source.c (open_source_file): Check for nullptr when computing
12352 2020-02-27 Tom Tromey <tromey@adacore.com>
12354 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12356 (dwarf2_add_field): Don't update nfields.
12357 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12359 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12361 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12364 2020-02-26 Tom Tromey <tom@tromey.com>
12366 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12367 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12368 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12369 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12372 2020-02-26 Tom Tromey <tom@tromey.com>
12374 * dwarf2/index-write.c (psym_index_map): Change type.
12375 (add_address_entry_worker, write_one_signatured_type)
12376 (recursively_count_psymbols, recursively_write_psymbols)
12377 (class debug_names, psyms_seen_size, write_gdbindex)
12378 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12380 2020-02-26 Aaron Merey <amerey@redhat.com>
12382 * Makefile.in: Handle optional debuginfod support.
12384 * README: Add --with-debuginfod summary.
12385 * config.in: Regenerate.
12386 * configure: Regenerate.
12387 * configure.ac: Handle optional debuginfod support.
12388 * debuginfod-support.c: debuginfod helper functions.
12389 * debuginfod-support.h: Ditto.
12390 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12392 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12393 when a dwz file cannot be found.
12394 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12395 debuginfo file cannot be found.
12396 * source.c (open_source_file): Query debuginfod servers when a
12397 source file cannot be found.
12398 * top.c (print_gdb_configuration): Include
12399 --{with,without}-debuginfod in the output.
12401 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12403 * thread.c (thr_try_catch_cmd): Print thread name.
12405 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12407 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12408 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12409 dwarf2_fetch_die_type_sect_off): Move to...
12410 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12412 dwarf2_fetch_die_type_sect_off): ... here.
12413 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12414 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12415 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12417 2020-02-26 Tom de Vries <tdevries@suse.de>
12420 * symfile.c (set_initial_language): Exit-early if
12421 language_mode == language_mode_manual.
12423 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12425 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12426 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12427 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12429 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12431 * gdbtypes.c (create_array_type_with_stride): Handle negative
12433 * valarith.c (value_subscripted_rvalue): Likewise.
12435 2020-02-25 Luis Machado <luis.machado@linaro.org>
12437 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12439 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12441 * loc.h (dwarf2_get_die_type): Move to...
12442 * read.h (dwarf2_get_die_type): ... here.
12443 * read.c (dwarf2_get_die_type): Move doc to header.
12445 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12447 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12448 'gnulib/Makefile.in' to the list.
12450 2020-02-24 Tom Tromey <tom@tromey.com>
12452 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12454 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12457 2020-02-24 Tom Tromey <tom@tromey.com>
12459 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12461 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12462 (dw2_do_instantiate_symtab, dw2_get_file_names)
12463 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12465 2020-02-24 Tom Tromey <tom@tromey.com>
12467 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12468 make_scoped_restore.
12469 (dwarf2_psymtab::read_symtab): Don't clear
12470 reading_partial_symbols.
12472 2020-02-24 Tom de Vries <tdevries@suse.de>
12475 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12477 2020-02-24 Tom de Vries <tdevries@suse.de>
12479 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12480 commands layout next/prev/regs.
12482 2020-02-22 Tom Tromey <tom@tromey.com>
12484 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12485 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12487 2020-02-22 Tom Tromey <tom@tromey.com>
12489 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12491 2020-02-22 Tom Tromey <tom@tromey.com>
12493 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12494 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12495 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12496 * tui/tui.c (_initialize_tui): Add usage text.
12498 2020-02-22 Tom Tromey <tom@tromey.com>
12500 * tui/tui-win.c (tui_set_focus_command)
12501 (tui_set_win_height_command): Use error_no_arg.
12502 (_initialize_tui_win): Update help text.
12503 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12505 2020-02-22 Tom Tromey <tom@tromey.com>
12507 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12508 * tui/tui-disasm.h (struct tui_disasm_window)
12509 <display_start_addr>: Declare.
12510 * tui/tui-source.h (struct tui_source_window)
12511 <display_start_addr>: Declare.
12512 * tui/tui-winsource.h (struct tui_source_window_base)
12513 <show_source_line, display_start_addr>: New methods.
12514 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12515 Rename and move to protected section.
12516 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12517 (tui_source_window_base::do_erase_source_content): Update.
12518 (tui_source_window_base::show_source_line): Now a method.
12519 (tui_source_window_base::show_source_content)
12520 (tui_source_window_base::tui_source_window_base)
12521 (tui_source_window_base::rerender)
12522 (tui_source_window_base::refill)
12523 (tui_source_window_base::do_scroll_horizontal)
12524 (tui_source_window_base::set_is_exec_point_at)
12525 (tui_source_window_base::update_breakpoint_info)
12526 (tui_source_window_base::update_exec_info): Update.
12527 * tui/tui-source.c (tui_source_window::set_contents)
12528 (tui_source_window::showing_source_p)
12529 (tui_source_window::do_scroll_vertical)
12530 (tui_source_window::location_matches_p)
12531 (tui_source_window::line_is_displayed): Update.
12532 (tui_source_window::display_start_addr): New method.
12533 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12534 (tui_disasm_window::do_scroll_vertical)
12535 (tui_disasm_window::location_matches_p): Update.
12536 (tui_disasm_window::display_start_addr): New method.
12538 2020-02-22 Tom Tromey <tom@tromey.com>
12540 * NEWS: Add entry for gdb.register_window_type.
12541 * tui/tui-layout.h (window_factory): New typedef.
12542 (tui_register_window): Declare.
12543 * tui/tui-layout.c (saved_tui_windows): New global.
12544 (tui_apply_current_layout): Use it.
12545 (tui_register_window): New function.
12546 * python/python.c (do_start_initialization): Call
12547 gdbpy_initialize_tui.
12548 (python_GdbMethods): Add "register_window_type" function.
12549 * python/python-internal.h (gdbpy_register_tui_window)
12550 (gdbpy_initialize_tui): Declare.
12551 * python/py-tui.c: New file.
12552 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12554 2020-02-22 Tom Tromey <tom@tromey.com>
12556 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12558 2020-02-22 Tom Tromey <tom@tromey.com>
12560 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12561 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12562 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12563 (tui_set_win_focus_to): Move from tui-win.c.
12565 2020-02-22 Tom Tromey <tom@tromey.com>
12567 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12569 (known_window_types): New global.
12570 (tui_get_window_by_name): Reimplement.
12571 (initialize_known_windows): New function.
12572 (validate_window_name): Rewrite.
12573 (_initialize_tui_layout): Call initialize_known_windows.
12575 2020-02-22 Tom Tromey <tom@tromey.com>
12577 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12579 * tui/tui-winsource.h (struct tui_source_window_base)
12580 <tui_source_window_base>: Remove parameter.
12581 * tui/tui-winsource.c
12582 (tui_source_window_base::tui_source_window_base): Remove
12584 (tui_source_window_base::refill): Update.
12585 * tui/tui-stack.h (struct tui_locator_window)
12586 <tui_locator_window>: Update.
12587 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12588 Default the constructor.
12589 * tui/tui-regs.h (struct tui_data_item_window)
12590 <tui_data_item_window>: Default the constructor.
12591 (struct tui_data_window) <tui_data_window>: Likewise.
12592 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12593 Default the constructor.
12594 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12595 Default the constructor.
12597 (struct tui_win_info) <tui_win_info>: Default the constructor.
12598 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12599 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12600 Default the constructor.
12602 2020-02-22 Tom Tromey <tom@tromey.com>
12604 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12605 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12606 * tui/tui-win.c (tui_resize_all): Don't call
12607 tui_delete_invisible_windows.
12608 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12610 (tui_set_layout): Update.
12611 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12612 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12613 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12615 2020-02-22 Tom Tromey <tom@tromey.com>
12617 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12620 2020-02-22 Tom Tromey <tom@tromey.com>
12622 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12624 2020-02-22 Tom Tromey <tom@tromey.com>
12626 * tui/tui-winsource.h (struct tui_source_window_iterator)
12627 <inner_iterator>: New etytypedef.
12628 <tui_source_window_iterator>: Take "end" parameter.
12629 <tui_source_window_iterator>: Take iterator.
12630 <operator*, advance>: Update.
12631 <m_iter>: Change type.
12632 <m_end>: New field.
12633 (struct tui_source_windows) <begin, end>: Update.
12634 * tui/tui-layout.c (tui_windows): New global.
12635 (tui_apply_current_layout): Clear tui_windows.
12636 (tui_layout_window::apply): Update tui_windows.
12637 * tui/tui-data.h (tui_windows): Declare.
12638 (all_tui_windows): Now inline function.
12639 (class tui_window_iterator, struct all_tui_windows): Remove.
12641 2020-02-22 Tom Tromey <tom@tromey.com>
12644 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12645 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12647 (class tui_layout_window) <get_sizes>: Likewise.
12648 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12650 <get_sizes>: Add "height" argument.
12651 <m_vertical>: New field.
12652 * tui/tui-layout.c (tui_layout_split::clone): Update.
12653 (tui_layout_split::get_sizes): Add "height" argument.
12654 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12655 (tui_new_layout_command): Parse "-horizontal".
12656 (_initialize_tui_layout): Update help string.
12657 (tui_layout_split::specification): Add "-horizontal" when needed.
12658 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12660 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12663 2020-02-22 Tom Tromey <tom@tromey.com>
12665 * tui/tui-layout.h (enum tui_adjust_result): New.
12666 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12667 (class tui_layout_window) <adjust_size>: Return
12668 tui_adjust_result. Rewrite.
12669 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12670 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12672 2020-02-22 Tom Tromey <tom@tromey.com>
12674 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12675 parameter and return types.
12676 (class tui_layout_base) <specification>: Add "depth".
12677 (class tui_layout_window) <specification>: Add "depth".
12678 (class tui_layout_split) <specification>: Add "depth".
12679 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12681 (tui_new_layout_command): Parse sub-layouts.
12682 (_initialize_tui_layout): Update help string.
12683 (tui_layout_window::specification): Add "depth".
12684 (add_layout_command): Update.
12686 2020-02-22 Tom Tromey <tom@tromey.com>
12688 * NEWS: Add "tui new-layout" item.
12689 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12690 Add new-layout command to help text.
12691 (validate_window_name): New function.
12692 (tui_new_layout_command): New function.
12693 (_initialize_tui_layout): Register "new-layout".
12694 (tui_layout_window::specification): New method.
12695 (tui_layout_window::specification): New method.
12696 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12698 (class tui_layout_window) <specification>: New method.
12699 (class tui_layout_split) <specification>: New method.
12701 2020-02-22 Tom Tromey <tom@tromey.com>
12703 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12704 * tui/tui-win.c (window_name_completer): Update comment.
12705 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12707 (class tui_layout_window) <replace_window>: Likewise.
12708 (class tui_layout_split) <replace_window>: Likewise.
12709 (tui_set_layout): Don't declare.
12710 (tui_set_initial_layout): Declare function.
12711 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12712 (asm_regs_layout): New globals.
12713 (tui_current_layout, show_layout): Remove.
12714 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12715 (find_layout, tui_apply_layout): New function.
12716 (layout_completer): Remove.
12717 (tui_next_layout): Reimplement.
12718 (tui_next_layout_command): New function.
12719 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12720 (tui_regs_layout): Reimplement.
12721 (tui_regs_layout_command): New function.
12722 (extract_display_start_addr): Rewrite.
12723 (next_layout, prev_layout): Remove.
12724 (tui_layout_window::replace_window): New method.
12725 (tui_layout_split::replace_window): New method.
12726 (destroy_layout): New function.
12727 (layout_list): New global.
12728 (add_layout_command): New function.
12729 (initialize_layouts): Update.
12730 (tui_layout_command): New function.
12731 (_initialize_tui_layout): Install "layout" commands.
12732 * tui/tui-data.h (enum tui_layout_type): Remove.
12733 (tui_current_layout): Don't declare.
12735 2020-02-22 Tom Tromey <tom@tromey.com>
12737 * tui/tui-regs.c (tui_reg_layout): Remove.
12738 (tui_reg_command): Use tui_regs_layout.
12739 * tui/tui-layout.h (tui_reg_command): Declare.
12740 * tui/tui-layout.c (tui_reg_command): New function.
12742 2020-02-22 Tom Tromey <tom@tromey.com>
12744 * tui/tui.c (tui_rl_delete_other_windows): Call
12745 tui_remove_some_windows.
12746 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12748 (class tui_layout_window) <remove_windows>: New method.
12749 (class tui_layout_split) <remove_windows>: Declare.
12750 (tui_remove_some_windows): Declare.
12751 * tui/tui-layout.c (tui_remove_some_windows): New function.
12752 (tui_layout_split::remove_windows): New method.
12754 2020-02-22 Tom Tromey <tom@tromey.com>
12756 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12757 * tui/tui-layout.h (tui_next_layout): Declare.
12758 * tui/tui-layout.c (tui_next_layout): New function.
12760 2020-02-22 Tom Tromey <tom@tromey.com>
12762 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12763 correct coordinates.
12765 2020-02-22 Tom Tromey <tom@tromey.com>
12767 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12768 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12771 2020-02-22 Tom Tromey <tom@tromey.com>
12773 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12774 TUI_DISASM_WIN, not tui_win_list.
12776 2020-02-22 Tom Tromey <tom@tromey.com>
12778 * valprint.c (generic_val_print_enum_1)
12779 (val_print_type_code_flags): Style member names.
12780 * rust-lang.c (val_print_struct, rust_print_enum)
12781 (rust_print_struct_def, rust_internal_print_type): Style member
12783 * p-valprint.c (pascal_object_print_value_fields): Style member
12784 names. Only call fprintf_symbol_filtered for static members.
12785 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12786 * f-valprint.c (f_val_print): Style member names.
12787 * f-typeprint.c (f_type_print_base): Style member names.
12788 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12789 call fprintf_symbol_filtered for static members.
12790 (cp_print_class_member): Style member names.
12791 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12793 * ada-valprint.c (ada_print_scalar): Style enum names.
12794 (ada_val_print_enum): Likewise.
12795 * ada-typeprint.c (print_enum_type): Style enum names.
12797 2020-02-21 Tom Tromey <tom@tromey.com>
12799 * psympriv.h (struct partial_symtab): Update comment.
12801 2020-02-21 Tom Tromey <tromey@adacore.com>
12803 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12806 2020-02-21 Tom de Vries <tdevries@suse.de>
12809 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12810 if dependencies[i]->user != NULL.
12812 2020-02-21 Ali Tamur <tamur@google.com>
12814 * dwarf2/read.c (dwarf2_name): Add null check.
12816 2020-02-20 Tom Tromey <tom@tromey.com>
12818 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12819 ">=", in binary search.
12820 (dwarf2_find_containing_comp_unit): New overload.
12821 (run_test): New self-test.
12822 (_initialize_dwarf2_read): Register new test.
12824 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12826 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12827 * riscv-tdep.h: Likewise.
12828 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12830 * features/riscv/64bit-csr.xml: Regenerated.
12832 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12833 Tom Tromey <tom@tromey.com>
12835 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12836 of 'fputc_unfiltered'.
12837 (putchar_unfiltered): Call 'fputc_unfiltered'.
12838 (fputc_unfiltered): Call 'fputs_unfiltered'.
12840 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12842 * config.in: Regenerate.
12843 * configure: Regenerate.
12844 * configure.ac: Add --with-python-libdir option.
12845 * main.c: Use WITH_PYTHON_LIBDIR.
12847 2020-02-19 Tom Tromey <tom@tromey.com>
12849 * symtab.c (general_symbol_info::compute_and_set_names): Use
12850 obstack_strndup. Simplify call to symbol_set_demangled_name.
12852 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12854 * dwarf2/read.c (allocate_signatured_type_table,
12855 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12856 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12857 Remove objfile parameter, update all callers.
12859 2020-02-19 Doug Evans <dje@google.com>
12862 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12863 rust_enum_variant calculation.
12865 2020-02-19 Tom Tromey <tromey@adacore.com>
12867 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12869 2020-02-19 Tom Tromey <tromey@adacore.com>
12871 * ada-lang.c (cache_symbol): Use obstack_strdup.
12873 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12875 * configure: Regenerate.
12877 2020-02-19 Tom Tromey <tromey@adacore.com>
12879 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12882 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12884 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12886 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12888 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12889 if GDBSERVER is not defined.
12890 (riscv_tdesc_cache): Likewise, also store const target_desc.
12891 (STATIC_IN_GDB): Define.
12892 (riscv_create_target_description): Update declaration with
12894 (riscv_lookup_target_description): New function, only define if
12895 GDBSERVER is not defined.
12896 * arch/riscv.h (riscv_create_target_description): Declare only
12897 when GDBSERVER is defined.
12898 (riscv_lookup_target_description): New declaration when GDBSERVER
12900 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12901 (riscv_linux_read_features): ...this, and return
12902 riscv_gdbarch_features instead of target_desc.
12903 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12904 (riscv_linux_read_description): Rename to...
12905 (riscv_linux_read_features): ...this.
12906 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12907 Update to use riscv_gdbarch_features and
12908 riscv_lookup_target_description.
12909 * riscv-tdep.c (riscv_find_default_target_description): Use
12910 riscv_lookup_target_description instead of
12911 riscv_create_target_description.
12913 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12915 * valprint.c (generic_val_print_enum_1): When printing a flag
12916 enum with value 0 and there is no enumerator with value 0, print
12917 just "0" instead of "(unknown: 0x0)".
12919 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12921 * valprint.c (generic_val_print_enum_1): Print unknown part of
12924 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12926 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12927 flag enums to contain duplicate enumerators.
12928 * valprint.c (generic_val_print_enum_1): Update comment.
12930 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12932 * dwarf2/read.c: Include "count-one-bits.h".
12933 (update_enumeration_type_from_children): If an enumerator has
12934 multiple bits set, don't treat the enumeration as a "flag enum".
12935 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12936 of flag enums have 0 or 1 bit set.
12938 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12940 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12942 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12943 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12944 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12945 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12946 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12948 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12950 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12952 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12954 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12955 displaced_step_closure_up.
12956 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12957 (struct displaced_step_closure_up):
12958 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12959 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12960 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12962 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12963 * gdbarch.c, gdbarch.h: Re-generate.
12964 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12965 displaced_step_closure_up.
12966 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12967 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12968 * infrun.h (displaced_step_closure_up): New type alias.
12969 (struct displaced_step_inferior_state) <step_closure>: Change
12970 type to displaced_step_closure_up.
12971 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12972 displaced_step_closure_up.
12973 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12975 2020-02-14 Tom Tromey <tom@tromey.com>
12977 * minidebug.c (gnu_debug_key): New global.
12978 (find_separate_debug_file_in_section): Use it.
12980 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12982 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12984 * gdbarch.c: Re-generate.
12985 * gdbarch.h: Re-generate.
12986 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12988 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12989 type to std::unique_ptr.
12990 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12991 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12992 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12993 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12994 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12995 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12996 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12997 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12998 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
13000 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13002 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
13004 (displaced_step_clear): Rename to...
13005 (displaced_step_reset): ... this. Just call displaced->reset ().
13006 (displaced_step_clear_cleanup): Rename to...
13007 (displaced_step_reset_cleanup): ... this.
13008 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
13009 (displaced_step_fixup): Likewise.
13010 (resume_1): Likewise.
13011 (handle_inferior_event): Restore child's memory before calling
13012 displaced_step_fixup on the parent.
13013 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
13014 to std::unique_ptr.
13015 <step_closure>: Change type to std::unique_ptr.
13017 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
13019 * arm-tdep.c: Include count-one-bits.h.
13020 (cleanup_block_store_pc): Use count_one_bits.
13021 (cleanup_block_load_pc): Use count_one_bits.
13022 (arm_copy_block_xfer): Use count_one_bits.
13023 (thumb2_copy_block_xfer): Use count_one_bits.
13024 (thumb_copy_pop_pc_16bit): Use count_one_bits.
13025 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
13026 (thumb_get_next_pcs_raw): Use count_one_bits.
13027 (arm_get_next_pcs_raw): Use count_one_bits_l.
13028 * arch/arm.c (bitcount): Remove.
13029 * arch/arm.h (bitcount): Remove.
13031 2020-02-14 Tom Tromey <tromey@adacore.com>
13033 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
13035 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
13036 * dwarf2/loc.c (call_site_find_chain_1): Return
13037 unique_xmalloc_ptr.
13038 (call_site_find_chain): Likewise.
13040 2020-02-14 Richard Biener <rguenther@suse.de>
13042 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
13043 on expression with division operators.
13045 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13047 * MAINTAINERS (Write After Approval): Adding myself.
13049 2020-02-12 Tom Tromey <tom@tromey.com>
13051 * event-loop.c (event_data, gdb_event, event_handler_func):
13054 2020-02-12 Tom Tromey <tom@tromey.com>
13056 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
13057 (dwarf2_frame_objfile_data): Add comment.
13058 (find_comp_unit, set_comp_unit): New functions.
13059 (dwarf2_frame_find_fde): Use find_comp_unit.
13060 (dwarf2_build_frame_info): Use set_comp_unit.
13062 2020-02-12 Tom Tromey <tom@tromey.com>
13064 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
13065 (comp_unit): Don't initialize objfile.
13066 (execute_cfa_program): Add text_offset parameter.
13067 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
13068 (dwarf2_frame_cache): Update.
13069 (dwarf2_build_frame_info): Don't set "objfile" member.
13071 2020-02-12 Tom Tromey <tom@tromey.com>
13073 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
13074 (decode_frame_entry): Likewise.
13075 (dwarf2_build_frame_info): Update.
13077 2020-02-12 Tom Tromey <tom@tromey.com>
13079 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
13080 (decode_frame_entry_1): Use the comp_unit obstack.
13082 2020-02-12 Tom Tromey <tom@tromey.com>
13084 * dwarf2/frame.c (struct comp_unit): Add initializers and
13086 (dwarf2_frame_objfile_data): Store a comp_unit.
13087 (dwarf2_frame_find_fde): Update.
13088 (dwarf2_build_frame_info): Use "new".
13090 2020-02-12 Tom Tromey <tom@tromey.com>
13092 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
13093 (dwarf2_fde_table): Typedef for std::vector.
13094 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
13095 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
13096 (decode_frame_entry): Update.
13097 (dwarf2_build_frame_info): Use "new".
13099 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13101 * arm-tdep.c (arm_gdbarch_init): Update.
13102 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
13103 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
13104 have_neon, is_m>: Change to bool.
13106 2020-02-12 Christian Biesinger <cbiesinger@google.com>
13108 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
13110 2020-02-12 Tom Tromey <tom@tromey.com>
13112 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
13114 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
13116 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
13117 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
13119 2020-02-11 Tom Tromey <tom@tromey.com>
13121 * psymtab.h: Update comment.
13123 2020-02-11 Tom Tromey <tom@tromey.com>
13125 * gdb_obstack.h (struct auto_obstack): Use
13126 DISABLE_COPY_AND_ASSIGN.
13128 2020-02-11 Tom Tromey <tom@tromey.com>
13130 * dwarf2/frame.h (struct objfile): Don't forward declare.
13132 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13134 * cris-tdep.c (cris_supply_gregset): Change signature to match
13135 what struct regset expects.
13136 (cris_regset): New struct.
13137 (fetch_core_registers): Remove.
13138 (cris_iterate_over_regset_sections): New function.
13139 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
13140 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
13142 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13144 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
13147 2020-02-11 Christian Biesinger <cbiesinger@google.com>
13149 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
13151 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13153 * configure: Re-generate.
13155 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13157 * configure: Re-generate.
13159 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13161 * acinclude: Update warning.m4 path.
13162 * warning.m4: Move to gdbsupport.
13164 2020-02-11 Tom Tromey <tromey@adacore.com>
13166 * remote.c (remote_console_output): Update.
13167 * printcmd.c (printf_command): Update.
13168 * event-loop.c (gdb_wait_for_event): Update.
13169 * linux-nat.c (sigchld_handler): Update.
13170 * remote-sim.c (gdb_os_write_stdout): Update.
13171 (gdb_os_flush_stdout): Update.
13172 (gdb_os_flush_stderr): Update.
13173 (gdb_os_write_stderr): Update.
13174 * exceptions.c (print_exception): Update.
13175 * remote-fileio.c (remote_fileio_func_read): Update.
13176 (remote_fileio_func_write): Update.
13177 * tui/tui.c (tui_enable): Update.
13178 * tui/tui-interp.c (tui_interp::init): Update.
13179 * utils.c (init_page_info): Update.
13180 (putchar_unfiltered, fputc_unfiltered): Update.
13181 (gdb_flush): Update.
13182 (emit_style_escape): Update.
13183 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13184 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13185 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13186 (stderr_file::write): Update.
13187 (stderr_file::puts): Update.
13188 * ui-file.h (ui_file_isatty, ui_file_write)
13189 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13190 (ui_file_puts): Don't declare.
13192 2020-02-10 Tom de Vries <tdevries@suse.de>
13194 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13195 sentinel to char *.
13197 2020-02-09 Tom de Vries <tdevries@suse.de>
13199 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13200 filename if it matches "<artificial>".
13202 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13204 * windows-tdep.c (struct enum_value_name): New struct.
13205 (create_enum): New function.
13206 (windows_get_siginfo_type): Create and use enum types.
13208 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13210 * NEWS: Mention $_siginfo support for Windows.
13211 * windows-nat.c (handle_exception): Set siginfo_er.
13212 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13213 (windows_xfer_siginfo): New function.
13214 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13215 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13216 (init_windows_gdbarch_data): New function.
13217 (get_windows_gdbarch_data): New function.
13218 (windows_get_siginfo_type): New function.
13219 (windows_init_abi): Register windows_get_siginfo_type.
13220 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13222 2020-02-08 Tom Tromey <tom@tromey.com>
13224 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13225 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13226 <keep>: Declare method.
13227 <m_keep>: Remove member.
13228 <~cutu_reader>: Remove.
13229 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13230 (cutu_reader::cutu_reader): Update.
13231 (cutu_reader::keep): Rename from ~cutu_reader.
13232 (process_psymtab_comp_unit, build_type_psymtabs_1)
13233 (process_skeletonless_type_unit, load_partial_comp_unit)
13234 (load_full_comp_unit, dwarf2_read_addr_index)
13235 (read_signatured_type): Update.
13237 2020-02-08 Tom Tromey <tom@tromey.com>
13239 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13240 "want_partial_unit" parameter.
13241 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13242 Inline check for DW_TAG_partial_unit.
13243 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13245 2020-02-08 Tom Tromey <tom@tromey.com>
13247 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13249 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13252 2020-02-08 Tom Tromey <tom@tromey.com>
13254 * dwarf2/read.c (read_address): Move to comp-unit.c.
13255 (dwarf2_rnglists_process, dwarf2_ranges_process)
13256 (read_attribute_value, dwarf_decode_lines_1)
13257 (var_decode_location, decode_locdesc): Update.
13258 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13259 read.c. Remove "cu" parameter.
13260 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13263 2020-02-08 Tom Tromey <tom@tromey.com>
13265 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13266 (read_indirect_line_string): Update.
13267 * dwarf2/comp-unit.c (read_offset): Remove.
13268 (read_comp_unit_head): Update.
13269 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13271 (read_offset): Don't declare.
13273 2020-02-08 Tom Tromey <tom@tromey.com>
13275 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13276 * dwarf2/read.c (struct comp_unit_head): Move to
13277 dwarf2/comp-unit.h.
13278 (enum class rcuh_kind): Move to comp-unit.h.
13279 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13280 (read_comp_unit_head, error_check_comp_unit_head)
13281 (read_and_check_comp_unit_head): Move to comp-unit.c.
13282 (read_offset, dwarf_unit_type_name): Likewise.
13283 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13284 (cutu_reader::cutu_reader, read_call_site_scope)
13285 (find_partial_die, follow_die_offset): Update.
13286 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13288 2020-02-08 Tom Tromey <tom@tromey.com>
13290 * dwarf2/read.c (read_offset_1): Move to leb.c.
13291 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13292 (dwarf_decode_macro_bytes): Update.
13293 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13294 * dwarf2/leb.h (read_offset): Declare.
13296 2020-02-08 Tom Tromey <tom@tromey.com>
13298 * dwarf2/read.c (dwarf2_section_size): Remove.
13299 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13301 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13303 2020-02-08 Tom Tromey <tom@tromey.com>
13305 * dwarf2/read.c (read_initial_length): Move to leb.c.
13306 * dwarf2/leb.h (read_initial_length): Declare.
13307 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13308 handle_nonstd parameter.
13309 * dwarf2/frame.c (read_initial_length): Remove.
13310 (decode_frame_entry_1): Update.
13312 2020-02-08 Tom Tromey <tom@tromey.com>
13314 * dwarf2/loc.c (dwarf2_find_location_expression)
13315 (dwarf_evaluate_loc_desc::get_tls_address)
13316 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13317 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13318 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13319 (dwarf2_compile_property_to_c)
13320 (dwarf2_loc_desc_get_symbol_read_needs)
13321 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13322 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13323 (loclist_describe_location, loclist_tracepoint_var_ref)
13324 (loclist_generate_c_location): Update.
13325 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13326 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13327 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13328 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13329 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13330 (dwarf2_per_cu_data::addr_size)
13331 (dwarf2_per_cu_data::ref_addr_size)
13332 (dwarf2_per_cu_data::text_offset)
13333 (dwarf2_per_cu_data::addr_type): Now methods.
13334 (per_cu_header_read_in): Make per_cu "const".
13335 (dwarf2_version): Remove.
13336 (dwarf2_per_cu_data::int_type): Now a method.
13337 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13338 (set_die_type, read_array_type, read_subrange_index_type)
13339 (read_tag_string_type, read_subrange_type): Update.
13340 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13341 offset_size, ref_addr_size, text_offset, addr_type, version,
13342 objfile, int_type, addr_sized_int_type>: Declare methods.
13344 2020-02-08 Tom Tromey <tom@tromey.com>
13346 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13349 2020-02-08 Tom Tromey <tom@tromey.com>
13351 * dwarf2/read.h (dwarf_line_debug): Declare.
13352 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13353 * dwarf2/read.c: Move line_header code to new files.
13354 (dwarf_line_debug): No longer static.
13355 * dwarf2/line-header.c: New file.
13356 * dwarf2/line-header.h: New file.
13358 2020-02-08 Tom Tromey <tom@tromey.com>
13360 * dwarf2/read.c (struct line_header) <file_full_name,
13361 file_file_name>: Return unique_xmalloc_ptr.
13362 (line_header::file_file_name): Update.
13363 (line_header::file_full_name): Update.
13364 (dw2_get_file_names_reader): Update.
13365 (macro_start_file): Update.
13367 2020-02-08 Tom Tromey <tom@tromey.com>
13369 * dwarf2/read.c (struct line_header) <file_full_name,
13370 file_file_name>: Declare methods.
13371 (dw2_get_file_names_reader): Update.
13372 (file_file_name): Now a method.
13373 (file_full_name): Likewise.
13374 (macro_start_file): Update.
13376 2020-02-08 Tom Tromey <tom@tromey.com>
13378 * dwarf2/read.c (dwarf_always_disassemble)
13379 (show_dwarf_always_disassemble): Move to loc.c.
13380 (_initialize_dwarf2_read): Move "always-disassemble" registration
13382 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13383 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13385 (show_dwarf_always_disassemble): Move from read.c.
13386 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13388 2020-02-08 Tom Tromey <tom@tromey.com>
13390 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13391 (create_quick_file_names_table): Return htab_up.
13392 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13394 * dwarf2/read.h (struct dwarf2_per_objfile)
13395 <quick_file_names_table>: Now htab_up.
13397 2020-02-08 Tom Tromey <tom@tromey.com>
13399 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13401 2020-02-08 Tom Tromey <tom@tromey.com>
13403 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13405 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13406 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13407 (abbrev_table::abbrev_table): No longer inline.
13408 (ABBREV_HASH_SIZE): Remove.
13409 (abbrev_table::m_abbrevs): Now an htab_up.
13411 2020-02-08 Tom Tromey <tom@tromey.com>
13413 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13414 (cutu_reader): Update.
13415 (build_type_psymtabs_1): Update.
13416 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13417 (abbrev_table::alloc_abbrev): Update.
13418 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13419 (abbrev_table::read): New static method, renamed from
13420 abbrev_table_read_table.
13421 (abbrev_table::alloc_abbrev)
13422 (abbrev_table::add_abbrev): Now private.
13423 (abbrev_table::abbrev_table): Now private.
13424 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13426 2020-02-08 Tom Tromey <tom@tromey.com>
13428 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13429 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13432 2020-02-08 Tom Tromey <tom@tromey.com>
13434 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13436 (lookup_dwo_unit_in_dwp): Update.
13437 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13440 2020-02-08 Tom Tromey <tom@tromey.com>
13442 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13445 2020-02-08 Tom Tromey <tom@tromey.com>
13447 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13449 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13450 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13451 Change type to htab_up.
13453 2020-02-08 Tom Tromey <tom@tromey.com>
13455 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13456 htab_up. Don't allocate on obstack.
13457 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13458 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13459 Change type to htab_up.
13461 2020-02-08 Tom Tromey <tom@tromey.com>
13463 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13464 Change type to htab_up.
13465 * dwarf2/read.c (create_signatured_type_table_from_index)
13466 (create_signatured_type_table_from_debug_names)
13467 (create_all_type_units, add_type_unit)
13468 (lookup_dwo_signatured_type, lookup_signatured_type)
13469 (process_skeletonless_type_unit): Update.
13470 (create_debug_type_hash_table, create_debug_types_hash_table):
13471 Change type of types_htab.
13472 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13473 htab_up. Don't allocate on obstack.
13474 (create_cus_hash_table): Change type of cus_htab parameter.
13475 (struct dwo_file) <cus, tus>: Now htab_up.
13476 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13477 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13478 (queue_and_load_all_dwo_tus): Update.
13479 * dwarf2/index-write.c (write_gdbindex): Update.
13480 (write_debug_names): Update.
13482 2020-02-08 Tom Tromey <tom@tromey.com>
13484 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13485 dwarf2/read.c. Remove "next" member. Add constructor ntad
13487 (struct dwarf2_per_objfile) <queue>: New member.
13488 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13490 (dwarf2_queue, dwarf2_queue_tail): Remove.
13491 (class dwarf2_queue_guard): Add parameter to constructor. Use
13492 DISABLE_COPY_AND_ASSIGN.
13493 <m_per_objfile>: New member.
13494 <~dwarf2_queue_guard>: Rewrite.
13495 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13497 (~dwarf2_queue_item): New.
13499 2020-02-08 Tom Tromey <tom@tromey.com>
13501 * dwarf2/read.c (struct die_info) <has_children>: New member.
13502 (dw2_get_file_names_reader): Remove has_children.
13503 (dw2_get_file_names): Update.
13504 (read_cutu_die_from_dwo): Remove has_children.
13505 (cutu_reader::init_tu_and_read_dwo_dies)
13506 (cutu_reader::cutu_reader): Update.
13507 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13508 Remove has_children.
13509 (build_type_psymtabs_1, process_skeletonless_type_unit)
13510 (load_partial_comp_unit, load_full_comp_unit): Update.
13511 (create_dwo_cu_reader): Remove has_children.
13512 (create_cus_hash_table, read_die_and_children): Update.
13513 (read_full_die_1,read_full_die): Remove has_children.
13514 (read_signatured_type): Update.
13515 (class cutu_reader) <has_children>: Remove.
13517 2020-02-08 Tom Tromey <tom@tromey.com>
13519 * dwarf2/expr.c: Rename from dwarf2expr.c.
13520 * dwarf2/expr.h: Rename from dwarf2expr.h.
13521 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13522 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13523 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13524 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13525 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13526 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13527 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13528 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13529 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13530 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13531 * dwarf2/loc.c: Rename from dwarf2loc.c.
13532 * dwarf2/loc.h: Rename from dwarf2loc.h.
13533 * dwarf2/read.c: Rename from dwarf2read.c.
13534 * dwarf2/read.h: Rename from dwarf2read.h.
13535 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13536 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13537 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13538 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13539 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13540 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13541 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13542 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13543 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13544 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13545 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13546 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13547 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13549 * Makefile.in (COMMON_SFILES): Update.
13550 (HFILES_NO_SRCDIR): Update.
13552 2020-02-08 Tom Tromey <tom@tromey.com>
13554 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13555 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13557 2020-02-08 Tom Tromey <tom@tromey.com>
13559 * dwarf2read.h (struct die_info): Don't declare.
13561 2020-02-08 Tom Tromey <tom@tromey.com>
13563 * dwarf2read.h (die_info_ptr): Remove typedef.
13565 2020-02-08 Tom Tromey <tom@tromey.com>
13567 * dwarf2read.c (read_call_site_scope)
13568 (handle_data_member_location, dwarf2_add_member_fn)
13569 (mark_common_block_symbol_computed, read_common_block)
13570 (attr_to_dynamic_prop, partial_die_info::read)
13571 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13572 (dwarf2_symbol_mark_computed, set_die_type): Update.
13573 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13575 (attr_form_is_block): Don't declare.
13576 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13578 2020-02-08 Tom Tromey <tom@tromey.com>
13580 * dwarf2read.c (dwarf2_find_base_address, )
13581 (read_call_site_scope, rust_containing_type)
13582 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13583 (handle_data_member_location, dwarf2_add_member_fn)
13584 (get_alignment, read_structure_type, process_structure_scope)
13585 (mark_common_block_symbol_computed, read_common_block)
13586 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13587 (partial_die_info::read, read_attribute_value, new_symbol)
13588 (lookup_die_type, dwarf2_get_ref_die_offset)
13589 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13590 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13591 (dwarf2_symbol_mark_computed): Update.
13592 * dwarf2/attribute.h (struct attribute) <value_as_address,
13593 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13595 (value_as_address, attr_form_is_section_offset)
13596 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13597 * dwarf2/attribute.c (attribute::value_as_address)
13598 (attribute::form_is_section_offset, attribute::form_is_constant)
13599 (attribute::form_is_ref): Now methods.
13601 2020-02-08 Tom Tromey <tom@tromey.com>
13603 * dwarf2read.c (struct attribute, DW_STRING)
13604 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13605 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13606 (attr_form_is_block, attr_form_is_section_offset)
13607 (attr_form_is_constant, attr_form_is_ref): Move.
13608 * dwarf2/attribute.h: New file.
13609 * dwarf2/attribute.c: New file, from dwarf2read.c.
13610 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13612 2020-02-08 Tom Tromey <tom@tromey.com>
13614 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13615 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13617 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13618 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13619 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13621 * dwarf2/abbrev.h: New file.
13622 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13623 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13625 2020-02-08 Tom Tromey <tom@tromey.com>
13627 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13628 (dwarf2_section_size, dwarf2_get_section_info)
13629 (create_signatured_type_table_from_debug_names)
13630 (create_addrmap_from_aranges, read_debug_names_from_section)
13631 (get_gdb_index_contents_from_section, read_comp_unit_head)
13632 (error_check_comp_unit_head, read_abbrev_offset)
13633 (create_debug_type_hash_table, init_cu_die_reader)
13634 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13635 (read_comp_units_from_section, create_cus_hash_table)
13636 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13637 (create_dwp_v2_section, dwarf2_rnglists_process)
13638 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13639 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13640 (read_indirect_string_from_dwz, read_addr_index_1)
13641 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13642 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13643 (fill_in_loclist_baton): Update.
13644 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13645 get_containing_section, get_bfd_owner, get_bfd_section,
13646 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13647 (dwarf2_read_section, get_section_name, get_section_file_name)
13648 (get_containing_section, get_section_bfd_owner)
13649 (get_section_bfd_section, get_section_name, get_section_file_name)
13650 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13652 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13653 (dwarf2_section_info::get_bfd_owner)
13654 (dwarf2_section_info::get_bfd_section)
13655 (dwarf2_section_info::get_name)
13656 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13657 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13658 (dwarf2_section_info::read): Now methods.
13659 * dwarf-index-write.c (class debug_names): Update.
13661 2020-02-08 Tom Tromey <tom@tromey.com>
13663 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13664 Move to dwarf2/section.h.
13665 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13666 (get_section_bfd_section, get_section_name)
13667 (get_section_file_name, get_section_id, get_section_flags)
13668 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13670 * dwarf2/section.h: New file.
13671 * dwarf2/section.c: New file, from dwarf2read.c.
13672 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13674 2020-02-08 Tom Tromey <tom@tromey.com>
13676 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13677 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13678 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13679 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13680 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13681 * dwarf2/leb.h: New file, from dwarf2read.c.
13682 * dwarf2/leb.c: New file, from dwarf2read.c.
13683 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13685 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13686 (COMMON_SFILES): Add dwarf2/leb.c.
13688 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13692 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13695 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13696 * gdb/remote.c (remote_console_output): Update.
13697 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13698 (ui_file_puts): ...this.
13699 * gdb/ui-file.h (ui_file_puts): Add declaration.
13700 * gdb/utils.c (emit_style_escape): Update.
13701 (flush_wrap_buffer): Update.
13702 (fputs_maybe_filtered): Update.
13703 (fputs_unfiltered): Add function.
13705 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13707 * gdb/event-loop.c (gdb_wait_for_event): Update.
13708 * gdb/printcmd.c (printf_command): Update.
13709 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13710 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13711 (gdb_os_flush_stderr): Update.
13712 * gdb/remote.c (remote_console_output): Update.
13713 * gdb/ui-file.c (gdb_flush): Rename to...
13714 (ui_file_flush): ...this.
13715 (stderr_file::write): Update.
13716 (stderr_file::puts): Update.
13717 * gdb/ui-file.h (gdb_flush): Rename to...
13718 (ui_file_flush): ...this.
13719 * gdb/utils.c (gdb_flush): Add function.
13720 * gdb/utils.h (gdb_flush): Add declaration.
13722 2020-02-07 Tom Tromey <tromey@adacore.com>
13724 PR breakpoints/24915:
13725 * source.c (find_and_open_source): Do not check basenames_may_differ.
13727 2020-02-07 Tom Tromey <tom@tromey.com>
13729 * README: Update gdbserver documentation.
13730 * gdbserver: Move to top level.
13731 * configure.tgt (build_gdbserver): Remove.
13732 * configure.ac: Remove --enable-gdbserver.
13733 * configure: Rebuild.
13734 * Makefile.in (distclean): Don't mention gdbserver.
13736 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13738 * source-cache.c (source_cache::ensure): Surround
13739 get_plain_source_lines with a try/catch.
13740 (source_cache::get_line_charpos): Get rid of try/catch
13741 and only check for the return value of "ensure".
13742 * tui/tui-source.c (tui_source_window::set_contents):
13743 Simplify "nlines" calculation.
13745 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13747 * MAINTAINERS (Write After Approval): Add myself.
13749 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13751 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13754 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13756 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13758 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13760 * nat/riscv-linux-tdesc.h: New file.
13761 * nat/riscv-linux-tdesc.c: New file, taking code from...
13762 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13764 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13767 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13769 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13770 we don't set the fake simulator ptid to the null_ptid.
13772 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13774 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13775 * gdbthread.h (class thread_info) <resumed>: Likewise.
13776 * infrun.c (resume_1): Likewise.
13777 (proceed): Likewise.
13778 (infrun_thread_stop_requested): Likewise.
13779 (stop_all_threads): Likewise.
13780 (handle_inferior_event): Likewise.
13781 (restart_threads): Likewise.
13782 (finish_step_over): Likewise.
13783 (keep_going_stepped_thread): Likewise.
13784 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13785 (linux_handle_extended_wait): Likewise.
13786 * record-btrace.c (get_thread_current_frame_id): Likewise.
13787 * record-full.c (record_full_wait_1): Likewise.
13788 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13789 * target.c (target_resume): Likewise.
13790 * thread.c (set_running_thread): Likewise.
13792 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13794 * f-valprint.c (f77_print_array_1): Changed datatype of index
13795 variable to LONGEST from int to enable it to contain bound
13798 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13800 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13801 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13802 offsets according to FLEN determined.
13803 (riscv_linux_nat_target::read_description): Determine FLEN
13805 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13806 according to FLEN determined.
13807 (riscv_linux_nat_target::store_registers): Likewise.
13809 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13811 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13812 when reg->group is empty and reggroup is not.
13814 2020-01-31 Tom Tromey <tromey@adacore.com>
13816 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13817 Call beneath target's mourn_inferior after unpushing.
13819 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13822 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13823 have enough lines to fill the screen, still return the lowest
13826 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13828 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13829 '-', '<', and '>' commands.
13831 2020-01-29 Pedro Alves <palves@redhat.com>
13832 Sergio Durigan Junior <sergiodj@redhat.com>
13834 * infcmd.c (construct_inferior_arguments): Assert that
13835 'argc' is greater than 0.
13837 2020-01-29 Luis Machado <luis.machado@linaro.org>
13839 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13840 (BRK_INSN_MASK): Define to 0xd4200000.
13841 (aarch64_program_breakpoint_here_p): New function.
13842 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13843 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13845 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13847 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13848 call gdbarch_program_breakpoint_here_p.
13849 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13850 default_program_breakpoint_here_p, changed return type to bool and
13852 * breakpoint.h (program_breakpoint_here): Moved prototype to
13853 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13854 return type to bool.
13855 * gdbarch.c: Regenerate.
13856 * gdbarch.h: Regenerate.
13857 * gdbarch.sh (program_breakpoint_here_p): New method.
13858 * infrun.c (handle_signal_stop): Call
13859 gdbarch_program_breakpoint_here_p.
13861 2020-01-26 Tom Tromey <tom@tromey.com>
13863 * ctfread.c (struct ctf_fp_info): Reindent.
13864 (_initialize_ctfread): Remove.
13866 2020-01-26 Tom Tromey <tom@tromey.com>
13868 * psymtab.c (partial_map_expand_apply)
13869 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13870 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13871 (psym_print_stats, psym_expand_symtabs_for_function)
13872 (psym_map_symbol_filenames, psym_map_matching_symbols)
13873 (psym_expand_symtabs_matching)
13874 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13875 (maintenance_check_psymtabs): Use new methods.
13876 * psympriv.h (struct partial_symtab) <readin_p,
13877 get_compunit_symtab>: New methods.
13878 <readin, compunit_symtab>: Remove members.
13879 (struct standard_psymtab): New.
13880 (struct legacy_psymtab): Derive from standard_psymtab.
13881 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13883 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13885 2020-01-26 Tom Tromey <tom@tromey.com>
13887 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13888 read_dependencies. Add assert.
13889 * psymtab.c (partial_symtab::read_dependencies): New method.
13890 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13892 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13893 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13895 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13898 2020-01-26 Tom Tromey <tom@tromey.com>
13900 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13901 Call expand_psymtab.
13902 (xcoff_read_symtab): Call expand_psymtab.
13903 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13904 legacy_expand_psymtab.
13905 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13907 (struct legacy_psymtab) <expand_psymtab>: Implement.
13908 <legacy_expand_psymtab>: New member.
13909 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13910 (parse_partial_symbols): Set legacy_expand_psymtab.
13911 (psymtab_to_symtab_1): Change argument order. Call
13913 (new_psymtab): Set legacy_expand_psymtab.
13914 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13915 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13917 (dwarf2_psymtab::expand_psymtab): Rename from
13918 psymtab_to_symtab_1. Call expand_psymtab.
13919 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13920 (dbx_end_psymtab): Likewise.
13921 (dbx_psymtab_to_symtab_1): Change argument order. Call
13923 (dbx_read_symtab): Call expand_psymtab.
13924 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13925 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13926 (ctf_psymtab::read_symtab): Call expand_psymtab.
13928 2020-01-26 Tom Tromey <tom@tromey.com>
13930 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13931 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13933 * mdebugread.c (mdebug_read_symtab): Remove prints.
13934 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13936 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13938 2020-01-26 Tom Tromey <tom@tromey.com>
13940 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13941 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13942 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13944 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13945 * psymtab.c (psymtab_to_symtab): Call method.
13946 (dump_psymtab): Update.
13947 * psympriv.h (struct partial_symtab): Add virtual destructor.
13948 <read_symtab>: New method.
13949 (struct legacy_symtab): New.
13950 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13951 (struct pst_map) <pst>: Now a legacy_psymtab.
13952 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13953 (new_psymtab): Use legacy_psymtab.
13954 * dwarf2read.h (struct dwarf2_psymtab): New.
13955 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13956 * dwarf2read.c (dwarf2_create_include_psymtab)
13957 (dwarf2_build_include_psymtabs, create_type_unit_group)
13958 (create_partial_symtab, process_psymtab_comp_unit_reader)
13959 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13960 (set_partial_user): Use dwarf2_psymtab.
13961 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13962 (psymtab_to_symtab_1, process_full_comp_unit)
13963 (process_full_type_unit, dwarf2_ranges_read)
13964 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13965 (dwarf_decode_lines): Use dwarf2_psymtab.
13966 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13967 (add_address_entry_worker, write_one_signatured_type)
13968 (recursively_count_psymbols, recursively_write_psymbols)
13969 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13970 (write_debug_names): Likewise.
13971 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13972 <pst>: Now a legacy_psymtab.
13973 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13974 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13975 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13976 * ctfread.c (struct ctf_psymtab): New.
13977 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13979 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13980 (create_partial_symtab): Return a ctf_psymtab.
13981 (scan_partial_symbols): Update.
13983 2020-01-26 Tom Tromey <tom@tromey.com>
13985 * xcoffread.c (xcoff_start_psymtab): Use new.
13986 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13987 renamed from start_psymtab_common.
13988 * psympriv.h (struct partial_symtab): Add new constructor.
13989 (start_psymtab_common): Don't declare.
13990 * mdebugread.c (parse_partial_symbols): Use new.
13991 * dwarf2read.c (create_partial_symtab): Use new.
13992 * dbxread.c (start_psymtab): Use new.
13993 * ctfread.c (create_partial_symtab): Use new.
13995 2020-01-26 Tom Tromey <tom@tromey.com>
13997 * xcoffread.c (xcoff_end_psymtab): Use new.
13998 * psymtab.c (start_psymtab_common): Use new.
13999 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
14001 * psympriv.h (struct partial_symtab): Add parameters to
14002 constructor. Don't inline.
14003 (allocate_psymtab): Don't declare.
14004 * mdebugread.c (new_psymtab): Use new.
14005 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
14006 * dbxread.c (dbx_end_psymtab): Use new.
14008 2020-01-26 Tom Tromey <tom@tromey.com>
14010 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
14011 allocate_psymtab. Update documentation.
14012 * psymtab.c (psymtab_storage::install_psymtab): Rename from
14013 allocate_psymtab. Do not use new.
14014 (allocate_psymtab): Use new. Update.
14016 2020-01-26 Tom Tromey <tom@tromey.com>
14018 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
14019 * psymtab.c (psym_print_stats): Update.
14020 * psympriv.h (struct partial_symtab) <readin,
14021 psymtabs_addrmap_supported, anonymous>: Now bool.
14022 * mdebugread.c (psymtab_to_symtab_1): Update.
14023 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
14024 (build_type_psymtabs_reader, psymtab_to_symtab_1)
14025 (process_full_comp_unit, process_full_type_unit): Update.
14026 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
14027 * ctfread.c (psymtab_to_symtab): Update.
14029 2020-01-26 Tom Tromey <tom@tromey.com>
14031 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
14032 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
14033 * psymtab.c (psymtab_storage): Delete psymtabs.
14034 (psymtab_storage::allocate_psymtab): Use new.
14035 (psymtab_storage::discard_psymtab): Use delete.
14036 * psympriv.h (struct partial_symtab): Add constructor and
14039 2020-01-26 Tom Tromey <tom@tromey.com>
14041 * machoread.c: Do not include psympriv.h.
14043 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14045 * NEWS: Mention the new option and the set/show commands.
14047 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14049 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
14050 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
14051 (validate_exec_file): New variables, enums, functions.
14052 (exec_file_locate_attach, print_section_info): Style the filenames.
14053 (_initialize_exec): Install show_exec_file_mismatch_command and
14054 set_exec_file_mismatch_command.
14055 * gdbcore.h (validate_exec_file): Declare.
14056 * infcmd.c (attach_command): Call validate_exec_file.
14057 * remote.c ( remote_target::remote_add_inferior): Likewise.
14059 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14061 * frame.c (find_frame_sal): Move call to get_next_frame into more
14063 * inline-frame.c (inilne_state) <inline_state>: Update argument
14065 (inilne_state) <skipped_symbol>: Rename to...
14066 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
14067 (skip_inline_frames): Build vector of skipped symbols and use this
14068 to reate the inline_state.
14069 (inline_skipped_symbol): Add a comment and some assertions, fetch
14070 skipped symbol from the list.
14072 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14074 * buildsym.c (lte_is_less_than): Delete.
14075 (buildsym_compunit::end_symtab_with_blockvector): Create local
14076 lambda function to sort line table entries, and use
14077 std::stable_sort instead of std::sort.
14078 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
14079 markers when looking for a previous line.
14081 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14083 * dwarf2read.c (lnp_state_machine::record_line): Include
14084 end_sequence parameter in debug print out. Record the line if we
14085 are at an end_sequence marker even if it's not the start of a
14087 * symmisc.c (maintenance_print_one_line_table): Print end of
14088 sequence markers with 'END' not '0'.
14090 2020-01-24 Pedro Alves <palves@redhat.com>
14093 * thread.c (scoped_restore_current_thread::restore): Use
14094 switch_to_inferior_no_thread.
14095 * exec.c: Include "progspace-and-thread.h".
14096 (add_target_sections, remove_target_sections):
14097 scoped_restore_current_pspace_and_thread instead of
14098 scoped_restore_current_thread.
14099 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
14100 and aspace to the inferior before calling clone_program_space.
14101 Remove stale comment.
14103 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14105 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
14106 (arm_netbsd_nat_target::fetch_registers): ...this.
14107 (arm_nbsd_nat_target::store_registers): Rename to...
14108 (arm_netbsd_nat_target::store_registers): ...this.
14110 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14112 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14115 2020-01-24 Christian Biesinger <cbiesinger@google.com>
14117 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
14119 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
14121 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
14122 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
14123 the correct replacement (iterate_over_regset_sections).
14124 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
14127 2020-01-24 Graham Markall <graham.markall@embecosm.com>
14130 * gdb/python/python.c (execute_gdb_command): Call
14131 async_enable_stdin in catch block.
14133 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14135 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
14136 SWITCH_THRU_ALL_UIS.
14138 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
14141 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
14142 comment, add extra parameter, and update to store previous symbol
14144 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
14145 add extra parameter.
14146 * tui/tui-disasm.c (tui_disassemble): Update header comment,
14147 remove unneeded parameter, add try/catch around gdb_print_insn,
14148 rewrite to add items to asm_lines vector.
14149 (tui_find_backward_disassembly_start_address): New function.
14150 (tui_find_disassembly_address): Updated throughout.
14151 (tui_disasm_window::set_contents): Update for changes to
14153 (tui_disasm_window::do_scroll_vertical): No need to adjust the
14154 number of lines to scroll.
14156 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14158 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14159 (SECT_OFF_DATA): Likewise.
14160 (SECT_OFF_RODATA): Likewise.
14161 (SECT_OFF_TEXT): Likewise.
14162 (SECT_OFF_BSS): Likewise.
14163 (struct objfile) <text_section_offset, data_section_offset>: New
14165 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14166 objfile::text_section_offset.
14167 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14168 * coffread.c (coff_symtab_read): Likewise.
14169 (enter_linenos): Likewise.
14170 (process_coff_symbol): Likewise.
14171 * ctfread.c (get_objfile_text_range): Likewise.
14172 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14173 Use objfile::data_section_offset.
14174 * dwarf2-frame.c (execute_cfa_program): Use
14175 objfile::text_section_offset.
14176 (dwarf2_frame_find_fde): Likewise.
14177 * dwarf2read.c (create_addrmap_from_index): Likewise.
14178 (create_addrmap_from_aranges): Likewise.
14179 (dw2_find_pc_sect_compunit_symtab): Likewise.
14180 (process_psymtab_comp_unit_reader): Likewise.
14181 (add_partial_symbol): Likewise.
14182 (add_partial_subprogram): Likewise.
14183 (process_full_comp_unit): Likewise.
14184 (read_file_scope): Likewise.
14185 (read_func_scope): Likewise.
14186 (read_lexical_block_scope): Likewise.
14187 (read_call_site_scope): Likewise.
14188 (dwarf2_rnglists_process): Likewise.
14189 (dwarf2_ranges_process): Likewise.
14190 (dwarf2_ranges_read): Likewise.
14191 (dwarf_decode_lines_1): Likewise.
14192 (new_symbol): Likewise.
14193 (dwarf2_fetch_die_loc_sect_off): Likewise.
14194 (dwarf2_per_cu_text_offset): Likewise.
14195 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14196 * hppa-tdep.c (read_unwind_info): Likewise.
14197 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14198 * psympriv.h (struct partial_symtab): Likewise.
14199 * psymtab.c (find_pc_sect_psymtab): Likewise.
14200 * solib-svr4.c (enable_break): Likewise.
14201 * stap-probe.c (relocate_address): Use
14202 objfile::data_section_offset.
14203 * xcoffread.c (enter_line_range): Use
14204 objfile::text_section_offset.
14205 (read_xcoff_symtab): Likewise.
14207 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14209 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14210 declaration to narrower scopes.
14212 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14214 * darwin-nat.h (struct darwin_exception_msg, enum
14215 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14217 (class darwin_nat_target) <wait_1, check_new_threads,
14218 decode_exception_message, decode_message, stop_inferior,
14219 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14220 * darwin-nat.c (darwin_check_new_threads): Rename to...
14221 (darwin_nat_target::check_new_threads): ... this.
14222 (darwin_suspend_inferior_it): Remove.
14223 (darwin_decode_exception_message): Rename to...
14224 (darwin_nat_target::decode_exception_message): ... this.
14225 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14226 (darwin_decode_message): Rename to...
14227 (darwin_nat_target::decode_message): ... this.
14228 (cancel_breakpoint): Rename to...
14229 (darwin_nat_target::cancel_breakpoint): ... this.
14230 (darwin_wait): Rename to...
14231 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14232 instead of iterate_over_inferiors.
14233 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14234 (darwin_stop_inferior): Rename to...
14235 (darwin_nat_target::stop_inferior): ... this.
14236 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14237 (darwin_init_thread_list): Rename to...
14238 (darwin_nat_target::init_thread_list): ... this.
14239 (darwin_ptrace_him): Rename to...
14240 (darwin_nat_target::ptrace_him): ... this.
14241 (darwin_nat_target::create_inferior): Pass lambda function to
14243 (darwin_nat_target::detach): Call stop_inferior instead of
14244 darwin_stop_inferior.
14245 * fork-inferior.h (fork_inferior): Change init_trace_fun
14246 parameter to gdb::function_view.
14247 * fork-inferior.c (fork_inferior): Likewise.
14249 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14251 * i386-cygwin-tdep.c (core_process_module_section): Update.
14252 * windows-nat.c (struct lm_info_windows): Add text_offset.
14253 (windows_xfer_shared_libraries): Update.
14254 * windows-tdep.c (windows_xfer_shared_library):
14255 Add text_offset_cached argument.
14256 * windows-tdep.h (windows_xfer_shared_library): Update.
14258 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14260 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14262 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14264 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14265 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14266 replace with range-based for.
14267 (gdbsim_interrupt_inferior): Remove.
14268 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14269 with a range-based for. Inline code from
14270 gdbsim_interrupt_inferior.
14272 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14274 * infrun.c (proceed): Fix indentation.
14276 2020-01-21 Tom Tromey <tromey@adacore.com>
14278 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14279 * python/python.c (python_extension_ops): Update.
14280 (gdbpy_colorize): New function.
14281 * python/lib/gdb/__init__.py (colorize): New function.
14282 * extension.h (ext_lang_colorize): Declare.
14283 * extension.c (ext_lang_colorize): New function.
14284 * extension-priv.h (struct extension_language_ops) <colorize>: New
14286 * cli/cli-style.c (_initialize_cli_style): Update help text.
14288 2020-01-21 Luis Machado <luis.machado@linaro.org>
14290 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14291 <cond>: Change type to bool.
14292 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14293 (aarch64_displaced_step_cb): Likewise.
14294 (aarch64_displaced_step_tb): Likewise.
14296 2020-01-21 Luis Machado <luis.machado@linaro.org>
14298 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14301 2020-01-21 Luis Machado <luis.machado@linaro.org>
14303 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14304 <pc_adjust>: Adjust the documentation.
14305 (aarch64_displaced_step_fixup): Check if PC really moved before
14308 2020-01-19 Tom Tromey <tom@tromey.com>
14310 * disasm.c (~gdb_disassembler): New destructor.
14311 (gdb_buffered_insn_length): Call disassemble_free_target.
14312 * disasm.h (class gdb_disassembler): Declare destructor. Use
14313 DISABLE_COPY_AND_ASSIGN.
14315 2020-01-19 Tom Tromey <tom@tromey.com>
14317 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14318 (die_reader_func_ftype): Remove.
14319 (cutu_reader): New class.
14320 (dw2_get_file_names_reader): Remove "data" parameter.
14321 (dw2_get_file_names): Use cutu_reader.
14322 (create_debug_type_hash_table): Update.
14323 (read_cutu_die_from_dwo): Update comment.
14324 (lookup_dwo_unit): Add dwo_name parameter.
14325 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14326 die_reader_func_ftype and data parameters.
14327 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14328 Remove die_reader_func_ftype and data parameters.
14329 (~cutu_reader): New; from init_cutu_and_read_dies.
14330 (cutu_reader::cutu_reader): Rename from
14331 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14332 and data parameters.
14333 (init_cutu_and_read_dies_simple): Remove.
14334 (struct process_psymtab_comp_unit_data): Remove.
14335 (process_psymtab_comp_unit_reader): Remove data parameter; add
14336 want_partial_unit and pretend_language parameters.
14337 (process_psymtab_comp_unit): Use cutu_reader.
14338 (build_type_psymtabs_reader): Remove data parameter.
14339 (build_type_psymtabs_1): Use cutu_reader.
14340 (process_skeletonless_type_unit): Likewise.
14341 (load_partial_comp_unit_reader): Remove.
14342 (load_partial_comp_unit): Use cutu_reader.
14343 (load_full_comp_unit_reader): Remove.
14344 (load_full_comp_unit): Use cutu_reader.
14345 (struct create_dwo_cu_data): Remove.
14346 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14347 dwo_unit parameters.
14348 (create_cus_hash_table): Use cutu_reader.
14349 (struct dwarf2_read_addr_index_data): Remove.
14350 (dwarf2_read_addr_index_reader): Remove.
14351 (dwarf2_read_addr_index): Use cutu_reader.
14352 (read_signatured_type_reader): Remove.
14353 (read_signatured_type): Use cutu_reader.
14355 2020-01-19 Tom Tromey <tom@tromey.com>
14357 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14358 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14359 (tui_wrefresh): Declare.
14360 * tui/tui-wingeneral.c (suppress_output): New global.
14361 (tui_suppress_output, ~tui_suppress_output): New constructor and
14363 (tui_wrefresh): New function.
14364 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14365 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14366 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14368 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14370 (tui_data_window::no_refresh): New method.
14371 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14372 (tui_reg_command): Use tui_suppress_output
14373 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14374 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14376 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14378 2020-01-19 Tom Tromey <tom@tromey.com>
14380 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14381 Handle case where symtab is null.
14383 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14385 * linux-fork.c (one_fork_p): Simplify.
14387 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14389 * top.c (struct qt_args): Remove.
14390 (kill_or_detach): Change return type to void, replace `void *`
14391 parameter with a proper one.
14392 (print_inferior_quit_action): Likewise.
14393 (quit_confirm): Use range-based for loop to iterate over inferiors.
14394 (quit_force): Likewise.
14396 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14398 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14399 `void *` parameter with proper parameters.
14400 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14401 (print_one_inferior): Change return type to void, replace `void *`
14402 parameter with proper parameters.
14403 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14405 (get_other_inferior): Remove.
14406 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14409 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14411 * mi/mi-interp.c (report_initial_inferior): Remove.
14412 (mi_interp::init): Use range-based for to iterate over inferiors.
14414 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14416 * python/py-inferior.c (build_inferior_list): Remove.
14417 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14419 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14421 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14422 (btrace_stitch_trace): Likewise.
14423 * charset.c (intermediate_encoding): Likewise (vaild).
14424 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14425 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14426 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14428 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14430 * windows-tdep.c (windows_get_tlb_type):
14431 Add rtl_user_process_parameters type.
14433 2020-01-16 Pedro Alves <palves@redhat.com>
14434 Norbert Lange <nolange79@gmail.com>
14437 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14438 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14439 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14440 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14441 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14442 (ps_plog): Redeclare exported functions with default visibility.
14444 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14446 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14447 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14449 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14451 * infcmd.c (post_create_inferior): Use get_thread_regcache
14452 instead of get_current_regcache.
14454 2020-01-14 Tom Tromey <tom@tromey.com>
14457 * python/python.c (gdbpy_decode_line): Treat empty string the same
14460 2020-01-14 Tom Tromey <tom@tromey.com>
14462 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14464 2020-01-14 Tom Tromey <tom@tromey.com>
14466 * nat/linux-btrace.c: Don't include <config.h>.
14467 * nat/linux-ptrace.c: Don't include <config.h>.
14468 * nat/x86-linux-dregs.c: Don't include <config.h>.
14470 2020-01-14 Tom Tromey <tom@tromey.com>
14472 * configure: Rebuild.
14473 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14475 2020-01-14 Tom Tromey <tom@tromey.com>
14477 * nat/x86-linux-dregs.c: Include configh.h.
14478 * nat/linux-ptrace.c: Include configh.h.
14479 * nat/linux-btrace.c: Include configh.h.
14480 * defs.h: Include config.h, bfd.h.
14481 * configure.ac: Don't source common.host.
14482 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14483 * configure: Rebuild.
14484 * acinclude.m4: Update path.
14485 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14486 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14487 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14488 (CLIBS): Add LIBSUPPORT.
14490 (COMMON_SFILES): Remove gdbsupport files.
14491 (HFILES_NO_SRCDIR): Likewise.
14492 (stamp-version): Update path to create-version.sh.
14493 (ALLDEPFILES): Remove gdbsupport files.
14495 2020-01-14 Tom Tromey <tom@tromey.com>
14497 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14498 USE_WIN32API when needed.
14499 * configure.ac (USE_WIN32API): Don't define.
14500 (WIN32LIBS): Use WIN32APILIBS.
14501 * configure: Rebuild.
14503 2020-01-14 Tom Tromey <tom@tromey.com>
14505 * configure: Rebuild.
14506 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14508 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14510 * skip.c (skip_function_command): Make skip w/o arguments use the
14511 name of the inlined function if pc is inside any inlined function.
14513 2020-01-14 Luis Machado <luis.machado@linaro.org>
14515 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14516 * infrun.c (resume_1): Likewise.
14517 (handle_inferior_event): Remove stale comment.
14518 * linux-nat.c (linux_nat_target::resume): Update comments.
14519 (save_stop_reason): Likewise.
14520 (linux_nat_filter_event): Likewise.
14521 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14523 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14525 * elfread.c (record_minimal_symbol): Set section index to 0 for
14526 non-allocatable sections.
14529 2020-01-13 Ali Tamur <tamur@google.com>
14531 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14532 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14533 to gdb::optional. Update comments.
14534 (dwo_file): Update comments.
14535 (read_attribute): Update API to take an additional out parameter,
14536 need_reprocess. This is used to mark attributes that need other
14537 attributes (e.g. str_offsets_base) for correct computation which may not
14538 have been read yet.
14539 (read_attribute_reprocess): New function declaration.
14540 (read_addr_index): Likewise.
14541 (read_dwo_str_index): Likewise.
14542 (read_stub_str_index): Likewise.
14543 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14544 (lookup_addr_base): New function definition.
14545 (lookup_ranges_base): Likewise.
14546 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14547 lookup_ranges_base.
14548 (init_cutu_and_read_dies): Update comments.
14549 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14550 unit. This is used to inherit parent's str_offsets_base and addr_base.
14552 (init_cutu_and_read_dies_simple): Reflect API changes.
14553 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14554 (create_cus_hash_table): Change API to take parent compile unit.
14555 Reflect API changes.
14556 (open_and_init_dwo_file): Reflect API changes.
14557 (dwarf2_get_pc_bounds): Update comments.
14558 (dwarf2_record_block_ranges): Likewise.
14559 (read_full_die_1): Change implementation to reprocess attributes that
14560 need str_offsets_base and addr_base.
14561 (partial_die_info::read): Likewise.
14562 (read_attribute_reprocess): New function definition.
14563 (read_attribute_value): Change API to take an additional out parameter,
14564 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14565 when a non-dwo compile unit has index based attributes.
14566 (read_attribute): Reflect API changes.
14567 (read_addr_index_1): Reflect API changes. Update comments.
14568 (dwarf2_read_addr_index_data): Reflect API changes.
14569 (dwarf2_read_addr_index): Likewise.
14570 (read_str_index): Change API and implementation. This becomes a helper
14571 to be used by the new string index related methods. Update error
14572 message and comments.
14573 (read_dwo_str_index): New function definition.
14574 (read_stub_str_index): Likewise.
14575 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14576 * symfile.h (dwarf2_debug_sections): Likewise.
14577 * xcoffread.c (dwarf2_debug_sections): Likewise.
14579 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14581 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14582 core_reg_sect type to gdb_byte *.
14583 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14584 * cris-tdep.c (fetch_core_registers): Likewise.
14585 * corelow.c (core_target::get_core_register_section): Change
14586 type of `contents` to gdb::byte_vector.
14588 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14590 * tui/tui-wingeneral.c (box_win): Position the title in the center
14593 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14595 * corelow.c (core_target::get_core_register_section): Use
14596 std::vector instead of alloca.
14598 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14600 * warning.m4: Add -Wmissing-declarations to build_warnings.
14601 * configure: Re-generate.
14603 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14605 * python/python.c (init__gdb_module): Add declaration.
14607 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14609 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14610 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14611 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14612 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14613 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14614 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14615 * ada-exp.y (_initialize_ada_exp): Add declaration.
14616 * ada-lang.c (_initialize_ada_language): Add declaration.
14617 * ada-tasks.c (_initialize_tasks): Add declaration.
14618 * agent.c (_initialize_agent): Add declaration.
14619 * aix-thread.c (_initialize_aix_thread): Add declaration.
14620 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14621 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14622 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14623 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14624 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14625 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14626 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14627 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14628 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14629 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14630 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14631 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14632 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14633 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14634 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14635 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14636 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14637 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14638 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14639 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14640 * annotate.c (_initialize_annotate): Add declaration.
14641 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14642 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14643 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14644 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14645 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14646 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14647 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14648 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14649 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14650 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14651 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14652 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14653 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14654 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14655 * auto-load.c (_initialize_auto_load): Add declaration.
14656 * auxv.c (_initialize_auxv): Add declaration.
14657 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14658 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14659 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14660 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14661 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14662 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14663 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14664 * breakpoint.c (_initialize_breakpoint): Add declaration.
14665 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14666 * btrace.c (_initialize_btrace): Add declaration.
14667 * charset.c (_initialize_charset): Add declaration.
14668 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14669 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14670 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14671 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14672 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14673 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14674 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14675 * coffread.c (_initialize_coffread): Add declaration.
14676 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14677 * compile/compile.c (_initialize_compile): Add declaration.
14678 * complaints.c (_initialize_complaints): Add declaration.
14679 * completer.c (_initialize_completer): Add declaration.
14680 * copying.c (_initialize_copying): Add declaration.
14681 * corefile.c (_initialize_core): Add declaration.
14682 * corelow.c (_initialize_corelow): Add declaration.
14683 * cp-abi.c (_initialize_cp_abi): Add declaration.
14684 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14685 * cp-support.c (_initialize_cp_support): Add declaration.
14686 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14687 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14688 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14689 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14690 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14691 * ctfread.c (_initialize_ctfread): Add declaration.
14692 * d-lang.c (_initialize_d_language): Add declaration.
14693 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14694 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14695 * dbxread.c (_initialize_dbxread): Add declaration.
14696 * dcache.c (_initialize_dcache): Add declaration.
14697 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14698 * disasm.c (_initialize_disasm): Add declaration.
14699 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14700 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14701 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14702 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14703 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14704 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14705 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14706 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14707 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14708 * elfread.c (_initialize_elfread): Add declaration.
14709 * exec.c (_initialize_exec): Add declaration.
14710 * extension.c (_initialize_extension): Add declaration.
14711 * f-lang.c (_initialize_f_language): Add declaration.
14712 * f-valprint.c (_initialize_f_valprint): Add declaration.
14713 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14714 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14715 * filesystem.c (_initialize_filesystem): Add declaration.
14716 * findcmd.c (_initialize_mem_search): Add declaration.
14717 * findvar.c (_initialize_findvar): Add declaration.
14718 * fork-child.c (_initialize_fork_child): Add declaration.
14719 * frame-base.c (_initialize_frame_base): Add declaration.
14720 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14721 * frame.c (_initialize_frame): Add declaration.
14722 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14723 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14724 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14725 * gcore.c (_initialize_gcore): Add declaration.
14726 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14727 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14728 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14729 * gdbarch.c (_initialize_gdbarch): Add declaration.
14730 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14731 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14732 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14733 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14734 * go-lang.c (_initialize_go_language): Add declaration.
14735 * go32-nat.c (_initialize_go32_nat): Add declaration.
14736 * guile/guile.c (_initialize_guile): Add declaration.
14737 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14738 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14739 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14740 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14741 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14742 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14743 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14744 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14745 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14746 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14747 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14748 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14749 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14750 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14751 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14752 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14753 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14754 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14755 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14756 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14757 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14758 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14759 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14760 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14761 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14762 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14763 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14764 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14765 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14766 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14767 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14768 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14769 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14770 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14771 * infcall.c (_initialize_infcall): Add declaration.
14772 * infcmd.c (_initialize_infcmd): Add declaration.
14773 * inflow.c (_initialize_inflow): Add declaration.
14774 * infrun.c (_initialize_infrun): Add declaration.
14775 * interps.c (_initialize_interpreter): Add declaration.
14776 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14777 * jit.c (_initialize_jit): Add declaration.
14778 * language.c (_initialize_language): Add declaration.
14779 * linux-fork.c (_initialize_linux_fork): Add declaration.
14780 * linux-nat.c (_initialize_linux_nat): Add declaration.
14781 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14782 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14783 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14784 * m2-lang.c (_initialize_m2_language): Add declaration.
14785 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14786 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14787 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14788 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14789 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14790 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14791 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14792 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14793 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14794 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14795 * machoread.c (_initialize_machoread): Add declaration.
14796 * macrocmd.c (_initialize_macrocmd): Add declaration.
14797 * macroscope.c (_initialize_macroscope): Add declaration.
14798 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14799 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14800 * maint.c (_initialize_maint_cmds): Add declaration.
14801 * mdebugread.c (_initialize_mdebugread): Add declaration.
14802 * memattr.c (_initialize_mem): Add declaration.
14803 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14804 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14805 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14806 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14807 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14808 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14809 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14810 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14811 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14812 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14813 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14814 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14815 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14816 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14817 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14818 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14819 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14820 * mipsread.c (_initialize_mipsread): Add declaration.
14821 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14822 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14823 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14824 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14825 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14826 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14827 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14828 * nto-procfs.c (_initialize_procfs): Add declaration.
14829 * objc-lang.c (_initialize_objc_language): Add declaration.
14830 * observable.c (_initialize_observer): Add declaration.
14831 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14832 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14833 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14834 * osabi.c (_initialize_gdb_osabi): Add declaration.
14835 * osdata.c (_initialize_osdata): Add declaration.
14836 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14837 * parse.c (_initialize_parse): Add declaration.
14838 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14839 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14840 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14841 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14842 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14843 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14844 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14845 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14846 * printcmd.c (_initialize_printcmd): Add declaration.
14847 * probe.c (_initialize_probe): Add declaration.
14848 * proc-api.c (_initialize_proc_api): Add declaration.
14849 * proc-events.c (_initialize_proc_events): Add declaration.
14850 * proc-service.c (_initialize_proc_service): Add declaration.
14851 * procfs.c (_initialize_procfs): Add declaration.
14852 * producer.c (_initialize_producer): Add declaration.
14853 * psymtab.c (_initialize_psymtab): Add declaration.
14854 * python/python.c (_initialize_python): Add declaration.
14855 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14856 * record-btrace.c (_initialize_record_btrace): Add declaration.
14857 * record-full.c (_initialize_record_full): Add declaration.
14858 * record.c (_initialize_record): Add declaration.
14859 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14860 * regcache.c (_initialize_regcache): Add declaration.
14861 * reggroups.c (_initialize_reggroup): Add declaration.
14862 * remote-notif.c (_initialize_notif): Add declaration.
14863 * remote-sim.c (_initialize_remote_sim): Add declaration.
14864 * remote.c (_initialize_remote): Add declaration.
14865 * reverse.c (_initialize_reverse): Add declaration.
14866 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14867 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14868 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14869 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14870 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14871 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14872 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14873 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14875 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14876 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14877 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14878 * rust-exp.y (_initialize_rust_exp): Add declaration.
14879 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14880 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14881 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14882 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14883 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14884 * score-tdep.c (_initialize_score_tdep): Add declaration.
14885 * ser-go32.c (_initialize_ser_dos): Add declaration.
14886 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14887 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14888 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14889 * ser-uds.c (_initialize_ser_socket): Add declaration.
14890 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14891 * serial.c (_initialize_serial): Add declaration.
14892 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14893 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14894 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14895 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14896 * skip.c (_initialize_step_skip): Add declaration.
14897 * sol-thread.c (_initialize_sol_thread): Add declaration.
14898 * solib-aix.c (_initialize_solib_aix): Add declaration.
14899 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14900 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14901 * solib-frv.c (_initialize_frv_solib): Add declaration.
14902 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14903 * solib-target.c (_initialize_solib_target): Add declaration.
14904 * solib.c (_initialize_solib): Add declaration.
14905 * source-cache.c (_initialize_source_cache): Add declaration.
14906 * source.c (_initialize_source): Add declaration.
14907 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14908 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14909 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14910 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14911 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14912 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14913 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14914 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14915 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14916 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14917 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14918 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14919 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14920 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14921 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14922 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14923 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14924 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14925 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14926 * stabsread.c (_initialize_stabsread): Add declaration.
14927 * stack.c (_initialize_stack): Add declaration.
14928 * stap-probe.c (_initialize_stap_probe): Add declaration.
14929 * std-regs.c (_initialize_frame_reg): Add declaration.
14930 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14931 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14932 * symfile.c (_initialize_symfile): Add declaration.
14933 * symmisc.c (_initialize_symmisc): Add declaration.
14934 * symtab.c (_initialize_symtab): Add declaration.
14935 * target.c (_initialize_target): Add declaration.
14936 * target-connection.c (_initialize_target_connection): Add
14938 * target-dcache.c (_initialize_target_dcache): Add declaration.
14939 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14940 * thread.c (_initialize_thread): Add declaration.
14941 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14942 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14943 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14944 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14945 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14946 * tracectf.c (_initialize_ctf): Add declaration.
14947 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14948 * tracefile.c (_initialize_tracefile): Add declaration.
14949 * tracepoint.c (_initialize_tracepoint): Add declaration.
14950 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14951 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14952 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14953 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14954 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14955 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14956 * tui/tui.c (_initialize_tui): Add declaration.
14957 * typeprint.c (_initialize_typeprint): Add declaration.
14958 * ui-style.c (_initialize_ui_style): Add declaration.
14959 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14960 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14961 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14962 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14963 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14964 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14965 * unittests/filtered_iterator-selftests.c
14966 (_initialize_filtered_iterator_selftests): Add declaration.
14967 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14968 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14969 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14970 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14971 * unittests/main-thread-selftests.c
14972 (_initialize_main_thread_selftests): Add declaration.
14973 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14974 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14975 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14976 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14977 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14978 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14979 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14980 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14981 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14982 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14983 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14984 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14985 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14986 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14987 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14989 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14990 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14991 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14992 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14993 * user-regs.c (_initialize_user_regs): Add declaration.
14994 * utils.c (_initialize_utils): Add declaration.
14995 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14996 * valops.c (_initialize_valops): Add declaration.
14997 * valprint.c (_initialize_valprint): Add declaration.
14998 * value.c (_initialize_values): Add declaration.
14999 * varobj.c (_initialize_varobj): Add declaration.
15000 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
15001 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
15002 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
15003 * windows-nat.c (_initialize_windows_nat): Add declaration.
15004 (_initialize_check_for_gdb_ini): Add declaration.
15005 (_initialize_loadable): Add declaration.
15006 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
15007 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
15008 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
15009 * xcoffread.c (_initialize_xcoffread): Add declaration.
15010 * xml-support.c (_initialize_xml_support): Add declaration.
15011 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
15012 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
15013 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
15014 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
15016 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15018 * regformats/regdat.sh: Generate declaration for init function.
15020 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15022 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
15024 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
15025 close_one_inferior>: New methods.
15026 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
15027 pass down target to find_inferior_pid.
15028 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
15029 Pass down target to find_inferior_ptid.
15030 (gdbsim_target::create_inferior): Pass down target to
15032 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
15033 target down to find_inferior_ptid and switch_to_thread.
15034 (gdbsim_target::close): Update to call close_one_inferior.
15035 (struct resume_data): Remove.
15036 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
15037 directly, rather than through a void pointer.
15038 (gdbsim_target::resume): Update to call resume_one_inferior.
15040 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
15042 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
15044 2020-01-12 Pedro Alves <palves@redhat.com>
15046 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
15047 directly for the current inferior instead of
15048 discard_all_inferiors.
15049 (discard_all_inferiors): Delete.
15051 2020-01-11 Tom Tromey <tom@tromey.com>
15053 * tui/tui-wingeneral.c (box_win): Check cli_styling.
15054 * tui/tui-winsource.c (tui_source_window_base::refill): Use
15055 deprecated_safe_get_selected_frame.
15057 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15059 * inferior.c (print_inferior): Switch inferior before printing it.
15061 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
15062 Pedro Alves <palves@redhat.com>
15064 * progspace-and-thread.c (switch_to_program_space_and_thread):
15065 Assert there's an inferior for PSPACE. Use
15066 switch_to_inferior_no_thread to switch the inferior too.
15067 * progspace.c (program_space::~program_space): Call
15068 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
15069 (program_space::free_all_objfiles): Don't call clear_symtab_users
15071 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
15073 2020-01-10 Pedro Alves <palves@redhat.com>
15075 * NEWS: Mention multi-target debugging, "info connections", and
15076 "add-inferior -no-connection".
15078 2020-01-10 Pedro Alves <palves@redhat.com>
15080 * infrun.c: Include "target-connection.h".
15081 (check_multi_target_resumption): New.
15082 (proceed): Call it.
15083 * target-connection.c (make_target_connection_string): Make
15085 * target-connection.h (make_target_connection_string): Declare.
15087 2020-01-10 Pedro Alves <palves@redhat.com>
15089 * Makefile.in (COMMON_SFILES): Add target-connection.c.
15090 * inferior.c (uiout_field_connection): New function.
15091 (print_inferior): Add new "connection-id" column.
15092 (add_inferior_command): Show connection number/string of added
15094 * process-stratum-target.h
15095 (process_stratum_target::connection_string): New virtual method.
15096 (process_stratum_target::connection_number): New field.
15097 * remote.c (remote_target::connection_string): New override.
15098 * target-connection.c: New file.
15099 * target-connection.h: New file.
15100 * target.c (decref_target): Remove process_stratum targets from
15101 the connection list.
15102 (target_stack::push): Add process_stratum targets to the
15105 2020-01-10 Pedro Alves <palves@redhat.com>
15108 2016-04-12 Pedro Alves <palves@redhat.com>
15109 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
15110 Remove references to name.
15111 * serial.h (struct serial) <name>: Delete.
15113 2020-01-10 Pedro Alves <palves@redhat.com>
15115 * gdbarch-selftests.c (register_to_value_test): Remove "target
15116 already pushed" check.
15118 2020-01-10 Pedro Alves <palves@redhat.com>
15119 John Baldwin <jhb@FreeBSD.org>
15121 * aarch64-linux-nat.c
15122 (aarch64_linux_nat_target::thread_architecture): Adjust.
15123 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
15124 (task_command_1): Likewise.
15125 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
15126 (aix_thread_target::wait, aix_thread_target::fetch_registers)
15127 (aix_thread_target::store_registers)
15128 (aix_thread_target::thread_alive): Adjust.
15129 * amd64-fbsd-tdep.c: Include "inferior.h".
15130 (amd64fbsd_get_thread_local_address): Pass down target.
15131 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
15132 thread's gdbarch instead of target_gdbarch.
15133 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
15134 get_last_target_status.
15135 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
15136 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
15138 (update_inserted_breakpoint_locations): Skip if inferiors with no
15140 (update_global_location_list): When handling moribund locations,
15141 find representative inferior for location's pspace, and use thread
15142 count of its process_stratum target.
15143 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
15144 * bsd-uthread.c (bsd_uthread_target::wait): Use
15145 as_process_stratum_target and adjust thread_change_ptid and
15147 (bsd_uthread_target::update_thread_list): Use
15148 as_process_stratum_target and adjust find_thread_ptid,
15149 thread_change_ptid and add_thread calls.
15150 * btrace.c (maint_btrace_packet_history_cmd): Adjust
15151 find_thread_ptid call.
15152 * corelow.c (add_to_thread_list): Adjust add_thread call.
15153 (core_target_open): Adjust add_thread_silent and thread_count
15155 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15156 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15157 * event-top.c (async_disconnect): Pop targets from all inferiors.
15158 * exec.c (add_target_sections): Push exec target on all inferiors
15159 sharing the program space.
15160 (remove_target_sections): Remove the exec target from all
15161 inferiors sharing the program space.
15162 (exec_on_vfork): New.
15163 * exec.h (exec_on_vfork): Declare.
15164 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15166 (fbsd_nat_target::update_thread_list): Adjust.
15167 (fbsd_nat_target::resume): Adjust.
15168 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15170 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15171 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15172 get_thread_arch_regcache call.
15173 * fork-child.c (gdb_startup_inferior): Pass target down to
15174 startup_inferior and set_executing.
15175 * gdbthread.h (struct process_stratum_target): Forward declare.
15176 (add_thread, add_thread_silent, add_thread_with_info)
15177 (in_thread_list): Add process_stratum_target parameter.
15178 (find_thread_ptid(inferior*, ptid_t)): New overload.
15179 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15181 (all_threads()): Delete overload.
15182 (all_threads, all_non_exited_threads): Add process_stratum_target
15184 (all_threads_safe): Use brace initialization.
15185 (thread_count): Add process_stratum_target parameter.
15186 (set_resumed, set_running, set_stop_requested, set_executing)
15187 (threads_are_executing, finish_thread_state): Add
15188 process_stratum_target parameter.
15189 (switch_to_thread): Use is_current_thread.
15190 * i386-fbsd-tdep.c: Include "inferior.h".
15191 (i386fbsd_get_thread_local_address): Pass down target.
15192 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15193 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15194 have_inferiors check.
15195 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15196 (inf_ptrace_target::attach): Adjust.
15197 * infcall.c (run_inferior_call): Adjust.
15198 * infcmd.c (run_command_1): Pass target to
15199 scoped_finish_thread_state.
15200 (proceed_thread_callback): Skip inferiors with no execution.
15201 (continue_command): Rename 'all_threads' local to avoid hiding
15202 'all_threads' function. Adjust get_last_target_status call.
15203 (prepare_one_step): Adjust set_running call.
15204 (signal_command): Use user_visible_resume_target. Compare thread
15205 pointers instead of inferior_ptid.
15206 (info_program_command): Adjust to pass down target.
15207 (attach_command): Mark target's 'thread_executing' flag.
15208 (stop_current_target_threads_ns): New, factored out from ...
15209 (interrupt_target_1): ... this. Switch inferior before making
15212 (struct all_inferiors_iterator, struct all_inferiors_range)
15213 (struct all_inferiors_safe_range)
15214 (struct all_non_exited_inferiors_range): Filter on
15215 process_stratum_target too. Remove explicit.
15216 * inferior.c (inferior::inferior): Push dummy target on target
15218 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15219 Add process_stratum_target parameter, and pass it down.
15220 (have_live_inferiors): Adjust.
15221 (switch_to_inferior_and_push_target): New.
15222 (add_inferior_command, clone_inferior_command): Handle
15223 "-no-connection" parameter. Use
15224 switch_to_inferior_and_push_target.
15225 (_initialize_inferior): Mention "-no-connection" option in
15226 the help of "add-inferior" and "clone-inferior" commands.
15227 * inferior.h: Include "process-stratum-target.h".
15228 (interrupt_target_1): Use bool.
15229 (struct inferior) <push_target, unpush_target, target_is_pushed,
15230 find_target_beneath, top_target, process_target, target_at,
15232 (discard_all_inferiors): Delete.
15233 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15234 (all_inferiors, all_non_exited_inferiors): Add
15235 process_stratum_target parameter.
15236 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15237 (target_last_proc_target): New global.
15238 (follow_fork_inferior): Push target on new inferior. Pass target
15239 to add_thread_silent. Call exec_on_vfork. Handle target's
15241 (follow_fork): Adjust get_last_target_status call. Also consider
15243 (follow_exec): Push target on new inferior.
15244 (struct execution_control_state) <target>: New field.
15245 (user_visible_resume_target): New.
15246 (do_target_resume): Call target_async.
15247 (resume_1): Set target's threads_executing flag. Consider resume
15249 (commit_resume_all_targets): New.
15250 (proceed): Also consider resume target. Skip threads of inferiors
15251 with no execution. Commit resumtion in all targets.
15252 (start_remote): Pass current inferior to wait_for_inferior.
15253 (infrun_thread_stop_requested): Consider target as well. Pass
15254 thread_info pointer to clear_inline_frame_state instead of ptid.
15255 (infrun_thread_thread_exit): Consider target as well.
15256 (random_pending_event_thread): New inferior parameter. Use it.
15257 (do_target_wait): Rename to ...
15258 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15260 (threads_are_resumed_pending_p, do_target_wait): New.
15261 (prepare_for_detach): Adjust calls.
15262 (wait_for_inferior): New inferior parameter. Handle it. Use
15263 do_target_wait_1 instead of do_target_wait.
15264 (fetch_inferior_event): Adjust. Switch to representative
15265 inferior. Pass target down.
15266 (set_last_target_status): Add process_stratum_target parameter.
15267 Save target in global.
15268 (get_last_target_status): Add process_stratum_target parameter and
15270 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15271 (context_switch): Check inferior_ptid == null_ptid before calling
15273 (get_inferior_stop_soon): Pass down target.
15274 (wait_one): Rename to ...
15275 (poll_one_curr_target): ... this.
15276 (struct wait_one_event): New.
15278 (stop_all_threads): Adjust.
15279 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15281 (switch_back_to_stepped_thread): Also consider target.
15282 (print_stop_event): Update.
15283 (normal_stop): Update. Also consider the resume target.
15284 * infrun.h (wait_for_inferior): Remove declaration.
15285 (user_visible_resume_target): New declaration.
15286 (get_last_target_status, set_last_target_status): New
15287 process_stratum_target parameter.
15288 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15289 process_stratum_target parameter, and use it.
15290 (clear_inline_frame_state (thread_info*)): New.
15291 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15292 process_stratum_target parameter.
15293 (clear_inline_frame_state (thread_info*)): Declare.
15294 * linux-fork.c (delete_checkpoint_command): Pass target down to
15296 (checkpoint_command): Adjust.
15297 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15298 instead of just tweaking inferior_ptid.
15299 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15300 (exit_lwp): Pass target down to find_thread_ptid.
15301 (attach_proc_task_lwp_callback): Pass target down to
15302 add_thread/set_running/set_executing.
15303 (linux_nat_target::attach): Pass target down to
15304 thread_change_ptid.
15305 (get_detach_signal): Pass target down to find_thread_ptid.
15306 Consider last target status's target.
15307 (linux_resume_one_lwp_throw, resume_lwp)
15308 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15309 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15310 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15311 (linux_nat_target::async_wait_fd): New.
15312 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15314 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15315 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15316 * linux-thread-db.c (struct thread_db_info::process_target): New
15318 (add_thread_db_info): Save target.
15319 (get_thread_db_info): New process_stratum_target parameter. Also
15321 (delete_thread_db_info): New process_stratum_target parameter.
15323 (thread_from_lwp): Adjust to pass down target.
15324 (thread_db_notice_clone): Pass down target.
15325 (check_thread_db_callback): Pass down target.
15326 (try_thread_db_load_1): Always push the thread_db target.
15327 (try_thread_db_load, record_thread): Pass target down.
15328 (thread_db_target::detach): Pass target down. Always unpush the
15330 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15331 target down. Always unpush the thread_db target.
15332 (find_new_threads_callback, thread_db_find_new_threads_2)
15333 (thread_db_target::update_thread_list): Pass target down.
15334 (thread_db_target::pid_to_str): Pass current inferior down.
15335 (thread_db_target::get_thread_local_address): Pass target down.
15336 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15338 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15339 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15340 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15341 (procfs_init_inferior): Rename to ...
15342 (procfs_target::procfs_init_inferior): ... this and adjust.
15343 (procfs_target::create_inferior, procfs_notice_thread)
15344 (procfs_do_thread_registers): Adjust.
15345 * ppc-fbsd-tdep.c: Include "inferior.h".
15346 (ppcfbsd_get_thread_local_address): Pass down target.
15347 * proc-service.c (ps_xfer_memory): Switch current inferior and
15348 program space as well.
15349 (get_ps_regcache): Pass target down.
15350 * process-stratum-target.c
15351 (process_stratum_target::thread_address_space)
15352 (process_stratum_target::thread_architecture): Pass target down.
15353 * process-stratum-target.h
15354 (process_stratum_target::threads_executing): New field.
15355 (as_process_stratum_target): New.
15356 * ravenscar-thread.c
15357 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15358 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15360 * record-btrace.c (record_btrace_target::info_record): Adjust.
15361 (record_btrace_target::record_method)
15362 (record_btrace_target::record_is_replaying)
15363 (record_btrace_target::fetch_registers)
15364 (get_thread_current_frame_id, record_btrace_target::resume)
15365 (record_btrace_target::wait, record_btrace_target::stop): Pass
15367 * record-full.c (record_full_wait_1): Switch to event thread.
15369 * regcache.c (regcache::regcache)
15370 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15371 process_stratum_target parameter and handle it.
15372 (current_thread_target): New global.
15373 (get_thread_regcache): Add process_stratum_target parameter and
15374 handle it. Switch inferior before calling target method.
15375 (get_thread_regcache): Pass target down.
15376 (get_thread_regcache_for_ptid): Pass target down.
15377 (registers_changed_ptid): Add process_stratum_target parameter and
15379 (registers_changed_thread, registers_changed): Pass target down.
15380 (test_get_thread_arch_aspace_regcache): New.
15381 (current_regcache_test): Define a couple local test_target_ops
15382 instances and use them for testing.
15383 (readwrite_regcache): Pass process_stratum_target parameter.
15384 (cooked_read_test, cooked_write_test): Pass mock_target down.
15385 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15386 (get_thread_arch_aspace_regcache): Add process_stratum_target
15388 (regcache::target): New method.
15389 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15390 (regcache::registers_changed_ptid): Add process_stratum_target
15392 (regcache::m_target): New field.
15393 (registers_changed_ptid): Add process_stratum_target parameter.
15394 * remote.c (remote_state::supports_vCont_probed): New field.
15395 (remote_target::async_wait_fd): New method.
15396 (remote_unpush_and_throw): Add remote_target parameter.
15397 (get_current_remote_target): Adjust.
15398 (remote_target::remote_add_inferior): Push target.
15399 (remote_target::remote_add_thread)
15400 (remote_target::remote_notice_new_inferior)
15401 (get_remote_thread_info): Pass target down.
15402 (remote_target::update_thread_list): Skip threads of inferiors
15403 bound to other targets. (remote_target::close): Don't discard
15404 inferiors. (remote_target::add_current_inferior_and_thread)
15405 (remote_target::process_initial_stop_replies)
15406 (remote_target::start_remote)
15407 (remote_target::remote_serial_quit_handler): Pass down target.
15408 (remote_target::remote_unpush_target): New remote_target
15409 parameter. Unpush the target from all inferiors.
15410 (remote_target::remote_unpush_and_throw): New remote_target
15411 parameter. Pass it down.
15412 (remote_target::open_1): Check whether the current inferior has
15413 execution instead of checking whether any inferior is live. Pass
15415 (remote_target::remote_detach_1): Pass down target. Use
15416 remote_unpush_target.
15417 (extended_remote_target::attach): Pass down target.
15418 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15419 (remote_target::append_resumption): Pass down target.
15420 (remote_target::append_pending_thread_resumptions)
15421 (remote_target::remote_resume_with_hc, remote_target::resume)
15422 (remote_target::commit_resume): Pass down target.
15423 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15424 (remote_target::interrupt_query)
15425 (remote_target::remove_new_fork_children)
15426 (remote_target::check_pending_events_prevent_wildcard_vcont)
15427 (remote_target::remote_parse_stop_reply)
15428 (remote_target::process_stop_reply): Pass down target.
15429 (first_remote_resumed_thread): New remote_target parameter. Pass
15431 (remote_target::wait_as): Pass down target.
15432 (unpush_and_perror): New remote_target parameter. Pass it down.
15433 (remote_target::readchar, remote_target::remote_serial_write)
15434 (remote_target::getpkt_or_notif_sane_1)
15435 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15437 (remote_target::mourn_inferior): Pass down target. Use
15438 remote_unpush_target.
15439 (remote_target::core_of_thread)
15440 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15441 (remote_target::pid_to_exec_file)
15442 (remote_target::thread_handle_to_thread_info): Pass down target.
15443 (remote_target::async_wait_fd): New.
15444 * riscv-fbsd-tdep.c: Include "inferior.h".
15445 (riscv_fbsd_get_thread_local_address): Pass down target.
15446 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15447 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15448 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15450 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15451 * solib-svr4.c (enable_break): Pass down target.
15452 * spu-multiarch.c (parse_spufs_run): Pass down target.
15453 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15454 * target-delegates.c: Regenerate.
15455 * target.c (g_target_stack): Delete.
15456 (current_top_target): Return the current inferior's top target.
15457 (target_has_execution_1): Refer to the passed-in inferior's top
15459 (target_supports_terminal_ours): Check whether the initial
15460 inferior was already created.
15461 (decref_target): New.
15462 (target_stack::push): Incref/decref the target.
15463 (push_target, push_target, unpush_target): Adjust.
15464 (target_stack::unpush): Defref target.
15465 (target_is_pushed): Return bool. Adjust to refer to the current
15466 inferior's target stack.
15467 (dispose_inferior): Delete, and inline parts ...
15468 (target_preopen): ... here. Only dispose of the current inferior.
15469 (target_detach): Hold strong target reference while detaching.
15471 (target_thread_name): Add assertion.
15472 (target_resume): Pass down target.
15473 (target_ops::beneath, find_target_at): Adjust to refer to the
15474 current inferior's target stack.
15475 (get_dummy_target): New.
15476 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15477 has a thread running.
15478 (initialize_targets): Rename to ...
15479 (_initialize_target): ... this.
15480 * target.h: Include "gdbsupport/refcounted-object.h".
15481 (struct target_ops): Inherit refcounted_object.
15482 (target_ops::shortname, target_ops::longname): Make const.
15483 (target_ops::async_wait_fd): New method.
15484 (decref_target): Declare.
15485 (struct target_ops_ref_policy): New.
15486 (target_ops_ref): New typedef.
15487 (get_dummy_target): Declare function.
15488 (target_is_pushed): Return bool.
15489 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15490 (all_matching_threads_iterator::all_matching_threads_iterator):
15491 Handle filter target.
15492 * thread-iter.h (struct all_matching_threads_iterator, struct
15493 all_matching_threads_range, class all_non_exited_threads_range):
15494 Filter by target too. Remove explicit.
15495 * thread.c (threads_executing): Delete.
15496 (inferior_thread): Pass down current inferior.
15497 (clear_thread_inferior_resources): Pass down thread pointer
15499 (add_thread_silent, add_thread_with_info, add_thread): Add
15500 process_stratum_target parameter. Use it for thread and inferior
15502 (is_current_thread): New.
15503 (thread_info::deletable): Use it.
15504 (find_thread_ptid, thread_count, in_thread_list)
15505 (thread_change_ptid, set_resumed, set_running): New
15506 process_stratum_target parameter. Pass it down.
15507 (set_executing): New process_stratum_target parameter. Pass it
15508 down. Adjust reference to 'threads_executing'.
15509 (threads_are_executing): New process_stratum_target parameter.
15510 Adjust reference to 'threads_executing'.
15511 (set_stop_requested, finish_thread_state): New
15512 process_stratum_target parameter. Pass it down.
15513 (switch_to_thread): Also match inferior.
15514 (switch_to_thread): New process_stratum_target parameter. Pass it
15516 (update_threads_executing): Reimplement.
15517 * top.c (quit_force): Pop targets from all inferior.
15518 (gdb_init): Don't call initialize_targets.
15519 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15521 (windows_add_thread, windows_delete_thread): Adjust.
15522 (get_windows_debug_event): Rename to ...
15523 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15524 * tracefile-tfile.c (tfile_target_open): Pass down target.
15525 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15527 (switch_to_thread): Add process_stratum_target parameter.
15528 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15530 (mi_on_resume): Pass target down.
15531 * nat/fork-inferior.c (startup_inferior): Add
15532 process_stratum_target parameter. Pass it down.
15533 * nat/fork-inferior.h (startup_inferior): Add
15534 process_stratum_target parameter.
15535 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15537 2020-01-10 Pedro Alves <palves@redhat.com>
15539 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15540 directly. Instead find the first thread in the thread list and
15541 use switch_to_thread.
15543 2020-01-10 Pedro Alves <palves@redhat.com>
15545 * remote.c (remote_target::remote_add_inferior): Don't bind a
15546 process to the current inferior if the current inferior is already
15547 bound to a process.
15549 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15550 Pedro Alves <palves@redhat.com>
15552 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15553 If no process is specified, return null_ptid instead of
15555 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15556 TARGET_WAITKIND_SIGNALLED with no pid.
15558 2020-01-10 Pedro Alves <palves@redhat.com>
15560 * remote.c (first_remote_resumed_thread): New.
15561 (remote_target::wait_as): Use it as default event_ptid instead of
15564 2020-01-10 Pedro Alves <palves@redhat.com>
15566 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15568 2020-01-10 Pedro Alves <palves@redhat.com>
15570 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15573 2020-01-10 Pedro Alves <palves@redhat.com>
15575 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15576 ptid to get_last_target_status.
15577 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15578 ptid to get_last_target_status.
15579 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15580 get_last_target_status.
15581 (info_program_command): Don't pass a target_waitstatus to
15582 get_last_target_status.
15583 * infrun.c (init_wait_for_inferior): Use
15584 nullify_last_target_wait_ptid.
15585 (get_last_target_status): Handle nullptr arguments.
15586 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15587 (print_stop_event): Don't pass a ptid to get_last_target_status.
15588 (normal_stop): Don't pass a ptid to get_last_target_status.
15589 * infrun.h (get_last_target_status, set_last_target_status): Move
15590 comments here and update.
15591 (nullify_last_target_wait_ptid): Declare.
15592 * linux-fork.c (fork_load_infrun_state): Remove local extern
15593 declaration of nullify_last_target_wait_ptid.
15594 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15595 to get_last_target_status.
15597 2020-01-10 Pedro Alves <palves@redhat.com>
15599 * gdbthread.h (scoped_restore_current_thread)
15600 <dont_restore, restore, m_dont_restore>: Declare.
15601 * thread.c (thread_alive): Add assertion. Return bool.
15602 (switch_to_thread_if_alive): New.
15603 (prune_threads): Switch inferior/thread.
15604 (print_thread_info_1): Switch thread before calling target methods.
15605 (scoped_restore_current_thread::restore): New, factored out from
15607 (scoped_restore_current_thread::~scoped_restore_current_thread):
15609 (scoped_restore_current_thread::scoped_restore_current_thread):
15611 (thread_apply_all_command, thread_select): Use
15612 switch_to_thread_if_alive.
15613 * infrun.c (proceed, restart_threads, handle_signal_stop)
15614 (switch_back_to_stepped_thread): Switch current thread before
15615 calling target methods.
15617 2020-01-10 Pedro Alves <palves@redhat.com>
15619 * inferior.c (switch_to_inferior_no_thread): New function,
15620 factored out from ...
15621 (inferior_command): ... here.
15622 * inferior.h (switch_to_inferior_no_thread): Declare.
15623 * mi/mi-main.c (run_one_inferior): Use
15624 switch_to_inferior_no_thread.
15626 2020-01-10 Pedro Alves <palves@redhat.com>
15628 * infcmd.c (kill_command): Remove dead code.
15630 2020-01-10 Pedro Alves <palves@redhat.com>
15632 * remote.c (remote_target::mourn_inferior): No longer check
15633 whether the target is running.
15635 2020-01-10 Pedro Alves <palves@redhat.com>
15637 * corelow.c (core_target::has_execution): Change parameter type to
15639 * inferior.c (number_of_live_inferiors): Use
15640 inferior::has_execution instead of target_has_execution_1.
15641 * inferior.h (inferior::has_execution): New.
15642 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15643 inferior::has_execution instead of target_has_execution_1.
15644 * process-stratum-target.c
15645 (process_stratum_target::has_execution): Change parameter type to
15646 inferior pointer. Check the inferior's PID instead of
15648 * process-stratum-target.h
15649 (process_stratum_target::has_execution): Change parameter type to
15651 * record-full.c (record_full_core_target::has_execution): Change
15652 parameter type to inferior pointer.
15653 * target.c (target_has_execution_1): Change parameter type to
15655 (target_has_execution_current): Adjust.
15656 * target.h (target_ops::has_execution): Change parameter type to
15658 (target_has_execution_1): Change parameter type to inferior
15659 pointer. Change return type to bool.
15660 * tracefile.h (tracefile_target::has_execution): Change parameter
15661 type to inferior pointer.
15663 2020-01-10 Pedro Alves <palves@redhat.com>
15665 * exceptions.c (print_flush): Remove current_top_target() check.
15667 2020-01-10 Pedro Alves <palves@redhat.com>
15669 * remote.c (show_remote_exec_file): Show the current inferior's
15670 exec-file instead of the command variable's value.
15672 2020-01-10 Pedro Alves <palves@redhat.com>
15674 * record-full.c (record_full_resume_ptid): New global.
15675 (record_full_target::resume): Set it.
15676 (record_full_wait_1): Use record_full_resume_ptid instead of
15679 2020-01-10 Pedro Alves <palves@redhat.com>
15681 * gdbthread.h (scoped_restore_current_thread)
15682 <dont_restore, restore, m_dont_restore>: Declare.
15683 * thread.c (thread_alive): Add assertion. Return bool.
15684 (switch_to_thread_if_alive): New.
15685 (prune_threads): Switch inferior/thread.
15686 (print_thread_info_1): Switch thread before calling target methods.
15687 (scoped_restore_current_thread::restore): New, factored out from
15689 (scoped_restore_current_thread::~scoped_restore_current_thread):
15691 (scoped_restore_current_thread::scoped_restore_current_thread):
15693 (thread_apply_all_command, thread_select): Use
15694 switch_to_thread_if_alive.
15696 2020-01-10 George Barrett <bob@bob131.so>
15698 * stap-probe.c (stap_modify_semaphore): Don't check for null
15700 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15701 for null semaphores.
15703 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15705 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15706 all source windows, and maintain horizontal scroll status while
15709 2020-01-09 Tom Tromey <tom@tromey.com>
15712 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15713 update_source_window, not print_source_lines.
15715 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15717 * tui/tui.c (tui_enable): Register tui hooks after calling
15720 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15722 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15724 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15726 * thread.c (print_thread_info_1): Fix indentation.
15728 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15730 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15731 unique_xmalloc_ptr outside the if to always free the demangled name.
15733 2020-01-08 Tom Tromey <tromey@adacore.com>
15735 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15736 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15737 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15738 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15740 (section_offsets): New typedef.
15741 * symtab.c (fixup_section, get_msymbol_address): Update.
15742 * symmisc.c (dump_msymbols): Update.
15743 * symfile.h (relative_addr_info_to_section_offsets)
15744 (symfile_map_offsets_to_segments): Update.
15745 * symfile.c (build_section_addr_info_from_objfile)
15746 (init_objfile_sect_indices): Update.
15747 (struct place_section_arg): Change type of "offsets".
15748 (place_section): Update.
15749 (relative_addr_info_to_section_offsets): Change type of
15750 "section_offsets". Remove "num_sections" parameter.
15751 (default_symfile_offsets, syms_from_objfile_1)
15752 (set_objfile_default_section_offset): Update.
15753 (reread_symbols): No need to preserve section offsets by hand.
15754 (symfile_map_offsets_to_segments): Change type of "offsets".
15755 * stap-probe.c (relocate_address): Update.
15756 * stabsread.h (process_one_symbol): Update.
15757 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15758 (solib_target_relocate_section_addresses): Update.
15759 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15761 * solib-frv.c (frv_relocate_main_executable): Update.
15762 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15763 * solib-aix.c (solib_aix_get_section_offsets): Change return
15765 (solib_aix_solib_create_inferior_hook): Update.
15766 * remote.c (remote_target::get_offsets): Update.
15767 * psymtab.c (find_pc_sect_psymtab): Update.
15768 * psympriv.h (struct partial_symbol) <address, text_low,
15769 text_high>: Update.
15770 * objfiles.h (obj_section_offset): Update.
15771 (struct objfile) <section_offsets>: Change type.
15772 <num_sections>: Remove.
15773 (objfile_relocate): Update.
15774 * objfiles.c (entry_point_address_query): Update
15775 (relocate_one_symbol): Change type of "section_offsets".
15776 (objfile_relocate1, objfile_relocate1): Change type of
15778 (objfile_rebase1): Update.
15779 * mipsread.c (mipscoff_symfile_read): Update.
15780 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15782 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15783 (parse_external, psymtab_to_symtab_1): Update.
15784 * machoread.c (macho_symfile_offsets): Update.
15785 * ia64-tdep.c (ia64_find_unwind_table): Update.
15786 * hppa-tdep.c (read_unwind_info): Update.
15787 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15788 * dwarf2read.c (create_addrmap_from_index)
15789 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15790 (process_psymtab_comp_unit_reader, add_partial_symbol)
15791 (add_partial_subprogram, process_full_comp_unit)
15792 (read_file_scope, read_func_scope, read_lexical_block_scope)
15793 (read_call_site_scope, dwarf2_rnglists_process)
15794 (dwarf2_ranges_process, dwarf2_ranges_read)
15795 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15796 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15798 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15800 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15801 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15802 (process_one_symbol): Change type of "section_offsets".
15803 * ctfread.c (get_objfile_text_range): Update.
15804 * coffread.c (coff_symtab_read, enter_linenos)
15805 (process_coff_symbol): Update.
15806 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15807 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15809 2020-01-08 Tom Tromey <tromey@adacore.com>
15811 * dwarf2read.c (parse_macro_definition): Use std::string.
15812 (parse_macro_definition): Likewise.
15814 2020-01-08 Tom Tromey <tromey@adacore.com>
15816 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15817 (ATTR_ALLOC_CHUNK): Remove.
15819 2020-01-08 Tom Tromey <tromey@adacore.com>
15821 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15823 2020-01-08 Tom Tromey <tromey@adacore.com>
15825 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15826 (dwarf2_compute_name, open_dwo_file): Likewise.
15827 (process_enumeration_scope): Use std::vector.
15828 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15829 (partial_die_info::fixup, dwarf2_start_subfile)
15830 (guess_full_die_structure_name, dwarf2_name): Likewise.
15831 (determine_prefix): Update.
15832 (guess_full_die_structure_name): Make return type const.
15833 (partial_die_full_name): Return unique_xmalloc_ptr.
15834 (DW_FIELD_ALLOC_CHUNK): Remove.
15836 2020-01-07 Tom Tromey <tromey@adacore.com>
15839 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15841 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15843 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15845 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15847 * stack.c (print_frame_info): Move disassemble_next_line code
15848 inside source_print block.
15850 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15852 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15853 gdb/signals.h, as we are now using native signal symbols.
15855 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15857 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15858 overflow by an early check of content vs threshold.
15859 * tui/tui-source.c (tui_source_window::line_is_displayed):
15862 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15864 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15866 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15868 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15869 export table if no section contains it's RVA.
15871 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15873 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15875 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15877 * source.c (print_source_lines_base): Set last_line_listed.
15879 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15881 * tui/tui-disasm.c: Remove trailing spaces.
15883 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15884 Pedro Alves <palves@redhat.com>
15886 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15887 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15888 (windows_gdb_signal_to_target): New function, uses the above
15889 enumeration to convert GDB internal signal codes to equivalent
15891 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15892 * windows-nat.c: Include "gdb_wait.h".
15893 (get_windows_debug_event): Extract the fatal exception from the
15894 exit status and convert to the equivalent Posix signal number.
15895 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15896 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15897 * gdbsupport/gdb_wait.c: New file, implements
15898 windows_status_to_termsig.
15899 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15900 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15902 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15904 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15907 2020-01-05 Luis Machado <luis.machado@linaro.org>
15909 * aarch64-linux-nat.c
15910 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15911 and bfd_mach_aarch64.
15913 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15915 * ui-file.c (stdio_file::can_emit_style_escape)
15916 (tee_file::can_emit_style_escape): Ensure style is used also on
15917 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15919 * main.c (set_gdb_data_directory): Use file style to output the
15920 warning that the given pathname is not a directory.
15921 * top.c (show_history_filename, gdb_safe_append_history)
15922 (show_gdb_datadir): Use file style.
15924 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15926 * solib-target.c (struct lm_info_target):
15927 Change offsets to be a unique_xmalloc_ptr.
15928 (solib_target_relocate_section_addresses): Update.
15930 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15932 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15934 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15936 * MAINTAINERS (Write After Approval): Add myself.
15938 2020-01-02 Luis Machado <luis.machado@linaro.org>
15940 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15941 Cell BE architecture.
15942 * target.h (struct target_ops) <thread_architecture>: Likewise.
15944 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15946 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15948 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15950 * MAINTAINERS (Write After Approval): Add myself.
15952 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15954 * gdbarch.sh: Update copyright year range of generated files.
15956 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15958 Update copyright year range in all GDB files.
15960 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15962 * copyright.py: Convert to Python 3.
15964 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15966 * copyright.py: Adapt after move of gnulib directory from gdb
15967 directory to toplevel directory.
15969 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15971 * copyright.py (main): Exit if run from the wrong directory.
15973 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15975 * top.c (print_gdb_version): Change copyright year to 2020.
15977 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15979 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15981 For older changes see ChangeLog-2019.
15987 version-control: never