1 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * breakpoint.c (struct condition_command_opts): New struct.
4 (condition_command_option_defs): New static global.
5 (make_condition_command_options_def_group): New function.
6 (condition_completer): Update to consider the '-force' flag.
7 (condition_command): Use gdb::option for the '-force' flag.
9 2020-10-27 Tom de Vries <tdevries@suse.de>
11 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
12 symbols in section check.
14 2020-10-27 Tom de Vries <tdevries@suse.de>
16 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
18 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
20 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
21 * breakpoint.c: Update the help text of the 'condition' and 'break'
23 (set_breakpoint_condition): Take a new bool parameter
24 to control whether condition definition should be forced even when
25 the condition expression is invalid in all of the current locations.
26 (condition_command): Update the call to 'set_breakpoint_condition'.
27 (find_condition_and_thread): Take the "-force-condition" flag into
29 * linespec.c (linespec_keywords): Add "-force-condition" as an
31 (FORCE_KEYWORD_INDEX): New #define.
32 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
34 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
35 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
36 * python/py-breakpoint.c (bppy_set_condition): Ditto.
37 * NEWS: Mention the changes to the 'break' and 'condition' commands.
39 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
41 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
42 * breakpoint.c (set_breakpoint_location_condition): New function.
43 (set_breakpoint_condition): Disable a breakpoint location if parsing
44 the condition string gives an error.
45 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
46 (build_target_condition_list): Ditto.
47 (build_target_command_list): Ditto.
48 (build_bpstat_chain): Ditto.
49 (print_one_breakpoint_location): Ditto.
50 (print_one_breakpoint): Ditto.
51 (breakpoint_1): Ditto.
52 (bp_location::bp_location): Ditto.
53 (locations_are_equal): Ditto.
54 (update_breakpoint_locations): Ditto.
55 (enable_disable_bp_num_loc): Ditto.
56 (init_breakpoint_sal): Use set_breakpoint_location_condition.
57 (find_condition_and_thread_for_sals): New static function.
58 (create_breakpoint): Call find_condition_and_thread_for_sals.
59 (location_to_sals): Call find_condition_and_thread_for_sals instead
60 of find_condition_and_thread.
62 2020-10-26 Tom de Vries <tdevries@suse.de>
64 * dwarf2/read.c (process_full_comp_unit): Call
65 dwarf2_find_base_address.
67 2020-10-26 Tom Tromey <tromey@adacore.com>
69 * gdbtypes.c (create_range_type): Revert previous patch. Add
72 2020-10-26 Pedro Alves <pedro@palves.net>
74 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
75 (my_waitpid): Use gdb::handle_eintr.
77 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
79 * acinclude.m4: Update ptrace.m4 path.
80 * ptrace.m4: Moved to gdbsupport.
82 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
84 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
85 instead of target_gdbarch.
87 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
89 * jit.c (jit_reader_load_command): Pass current inferior.
90 (jit_inferior_init): Change parameter type to inferior, use it.
91 (jit_inferior_created): Remove.
92 (jit_inferior_created_hook): Pass inferior parameter down.
93 (_initialize_jit): Use jit_inferior_created_hook instead of
95 * jit.h (jit_inferior_created_hook): Add inferior parameter.
96 * infrun.c (follow_exec): Pass inferior to
97 jit_inferior_created_hook.
99 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
101 * linux-thread-db.c (check_pid_namespace_match): Add inferior
102 parameter and use it.
103 (thread_db_inferior_created): Pass inferior argument.
105 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
107 * aix-thread.c (aix_thread_inferior_created): Add inferior
109 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
110 * dummy-frame.c (cleanup_dummy_frames): Likewise.
111 * jit.c (jit_inferior_created): Likewise.
112 * linux-thread-db.c (thread_db_inferior_created): Likewise.
113 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
114 * observable.h (inferior_created): Likewise.
115 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
116 * symfile-mem.c (add_vsyscall_page): Likewise.
117 * infcmd.c (post_create_inferior): Pass inferior argument.
119 2020-10-24 Joel Brobecker <brobecker@adacore.com>
123 2020-10-23 Joel Brobecker <brobecker@adacore.com>
125 * ada-typeprint.c (ada_print_type): Remove superfluous second call
126 to ada_check_typedef.
128 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
130 * f-exp.y (f_parse): Rename to...
131 (f_language::parser): ...this.
132 * f-lang.c (f_get_encoding): Rename to...
133 (f_language::get_encoding): ...this.
134 (f_op_print_tab): Rename to...
135 (f_language::op_print_tab): ...this.
136 (exp_descriptor_f): Rename to...
137 (f_language::exp_descriptor_tab): ...this.
138 (class f_language): Moved to f-lang.h.
139 (f_language::language_arch_info): New function, moved out of class
141 (f_language::search_name_hash): Likewise.
142 (f_language::lookup_symbol_nonlocal): Likewise.
143 (f_language::get_symbol_name_matcher_inner): Likewise.
144 * f-lang.h: Add 'valprint.h' include.
145 (class f_language): Moved here from f-lang.c.
146 * f-typeprint.c (f_type_print_args): Delete commented out
148 (f_print_typedef): Rename to...
149 (f_language::print_typedef): ...this.
150 (f_print_type): Rename to...
151 (f_language::print_type): ...this.
152 (f_type_print_varspec_prefix): Delete declaration and rename to...
153 (f_language::f_type_print_varspec_prefix): ...this.
154 (f_type_print_varspec_suffix): Delete declaration and rename to...
155 (f_language::f_type_print_varspec_suffix): ...this.
156 (f_type_print_base): Delete declaration and rename to...
157 (f_language::f_type_print_base): ...this.
158 * f-valprint.c (f_value_print_inner): Rename to...
159 (f_language::value_print_inner): ...this.
160 * parse.c: Delete 'f-lang.h' include.
162 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
164 * language.h (language_defn::print_type): Add variable names in
165 declaration, and update header comment.
167 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
169 * ada-lang.c (ada_language::demangle): Rename to...
170 (ada_language::demangle_symbol): ...this.
171 * c-lang.c (cplus_language::demangle): Rename to...
172 (cplus_language::demangle_symbol): ...this.
173 * d-lang.c (d_language::demangle): Rename to...
174 (d_language::demangle_symbol): ...this.
175 * f-lang.c (f_language::demangle): Rename to...
176 (f_language::demangle_symbol): ...this.
177 * go-lang.c (go_language::demangle): Rename to...
178 (go_language::demangle_symbol): ...this.
179 * language.c (language_demangle): Update call to demangle_symbol.
180 (auto_or_unknown_language::demangle): Rename to...
181 (auto_or_unknown_language::demangle_symbol): ...this.
182 * language.h (language_defn::demangle): Rename to...
183 (language_defn::demangle_symbol): ...this.
184 * objc-lang.c (objc_language::demangle): Rename to...
185 (objc_language::demangle_symbol): ...this.
186 * rust-lang.c (rust_language::demangle): Rename to...
187 (rust_language::demangle_symbol): ...this.
189 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
191 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
192 (iterate_over_file_blocks): Replace use of macro with the macros
195 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
197 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
198 * valprint.c (maybe_print_array_index): Replace use of macro with
199 the macros definition.
201 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
203 * ada-lang.c (ada_language::print_array_index): Call value_print
205 * language.c (language_defn::print_array_index): Likewise.
206 * language.h (LA_VALUE_PRINT): Delete.
207 * valprint.c (value_print): Call value_print on the
208 current_language directly.
210 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
212 * language.h (LA_PRINT_TYPEDEF): Delete.
213 * typeprint.c (typedef_print): Call print_typedef directly on the
214 current_language object.
216 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
218 * m2-exp.y (m2_parse): Rename to...
219 (m2_language::parser): ...this. Update function signature.
220 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
221 (m2_op_print): Rename to...
222 (m2_language::op_print_tab): ...this, and make const.
223 (exp_descriptor_modula2): Rename to...
224 (m2_language::exp_descriptor_modula2): ...this.
225 (class m2_language): Move to m2-lang.h.
226 (m2_language::language_arch_info): New function, moved out of
228 (m2_language::printchar): New function, body from m2_printchar.
229 (m2_language::printstr): New function, moved out of class
231 (m2_language::emitchar): Likewise.
232 * m2-lang.h (m2_parse): Delete declaration.
233 (m2_print_typedef): Delete declaration.
234 (m2_value_print_inner): Delete declaration.
235 (class m2_language): Class declaration moved from m2-lang.c,
236 larger functions are left in m2-lang.c.
237 * m2-typeprint.c (m2_print_typedef): Rename to...
238 (m2_language::print_typedef): ...this, and update function
240 * m2-valprint.c (m2_value_print_inner): Rename to...
241 (m2_language::value_print_inner): ...this, replace use of
242 LA_PRINT_STRING with a direct call to printstr member function,
243 and update recursive call.
245 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
247 * language.c (default_is_string_type_p): Delete, implementation
248 moved into auto_or_unknown_language::is_string_type_p.
249 (unk_op_print_tab): Moved into
250 auto_or_unknown_language::opcode_print_table.
251 (unknown_language_arch_info): Delete, implementation moved into
252 auto_or_unknown_language::language_arch_info.
253 (class auto_or_unknown_language): New class, member functions
254 copied from unknown_language class, with some updates.
255 (class unknown_language): Most member functions moved into
256 auto_or_unknown_language class. Inherit from
257 auto_or_unknown_language class.
258 (class auto_language): Inherit from auto_or_unknown_language.
259 Delete most member functions.
261 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
263 * stabsread.c (read_member_functions): Remove gdb_assert.
265 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
267 * gdbtypes.c (init_complex_type): Check target type name.
269 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
271 * target-debug.h (target_debug_print_struct_target_ops_p):
273 (target_debug_print_async_callback_ftype_p): Remove.
274 (target_debug_print_struct_trace_state_variable_p): Remove.
275 (target_debug_print_struct_traceframe_info_p): Remove.
276 (target_debug_print_VEC__btrace_block_s__pp): Remove.
277 (target_debug_print_enum_btrace_format): Remove.
278 (target_debug_print_enum_info_proc_what): Remove.
279 (target_debug_print_thread_info_pp): Remove.
281 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
283 * target.h (struct target_ops) <make_corefile_notes>:
284 Change return type to unique pointer.
285 * target.c (dummy_make_corefile_notes): Likewise.
286 * exec.c (struct exec_target) <make_corefile_notes>:
288 (exec_target::make_corefile_notes): Likewise.
289 * procfs.c (class procfs_target) <make_corefile_notes>:
291 (procfs_do_thread_registers): Adjust to unique pointer.
292 (struct procfs_corefile_thread_data): Add constructor.
293 <note_data>: Change type to unique pointer.
294 (procfs_corefile_thread_callback): Adjust to unique pointer.
295 (procfs_target::make_corefile_notes): Change return type to
297 * target-delegates.c: Re-generate.
298 * gcore.c (write_gcore_file_1): Adjust.
299 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
302 2020-10-22 Tom de Vries <tdevries@suse.de>
304 * block.c (find_block_in_blockvector): Make sure the returned block
307 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
310 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
312 (load_cu): Pass existing CU.
313 (process_imported_unit_die): Likewise.
314 (follow_die_offset): Likewise.
316 2020-10-22 Luis Machado <luis.machado@linaro.org>
318 * corelow.c (core_target::xfer_partial): Also check for an empty
319 m_core_unavailable_mappings vector.
321 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
323 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
324 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
325 * f-exp.y (arglist): Allow for a series of subranges.
326 (subrange): Add cases for subranges with strides.
327 * f-lang.c (value_f90_subarray): Catch use of array strides and
329 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
331 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
333 * expprint.c (print_subexp_standard): Change enum range_type to
334 range_flag and rename variables to match.
335 (dump_subexp_body_standard): Likewise.
336 * expression.h (enum range_type): Rename to...
337 (enum range_flag): ...this.
338 (range_types): Rename to...
339 (range_flags): ...this.
340 * f-lang.c (value_f90_subarray): Change enum range_type to
341 range_flag and rename variables to match.
342 * parse.c (operator_length_standard): Likewise.
343 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
344 range_type to range_flag.
345 * rust-lang.c (rust_evaluate_funcall): Likewise.
346 (rust_range): Likewise.
347 (rust_compute_range): Likewise.
348 (rust_subscript): Likewise.
350 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
352 * expprint.c (print_subexp_standard): Update to reflect changes to
354 (dump_subexp_body_standard): Likewise.
355 * expression.h (enum range_type): Convert to a bit field enum, and
356 make the enum unsigned.
357 * f-exp.y (subrange): Update to reflect changes to enum
359 * f-lang.c (value_f90_subarray): Likewise.
360 * parse.c (operator_length_standard): Likewise.
361 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
362 * rust-lang.c (rust_range): Likewise.
363 (rust_compute_range): Likewise.
364 (rust_subscript): Likewise.
366 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
368 * infrun.c (displaced_step_in_progress_thread): Fix comment.
369 (displaced_step_in_progress): Fix comment.
371 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
373 * gdbarch.sh (make_corefile_notes): Return unique pointer.
374 * gdbarch.c: Re-generate.
375 * gdbarch.h: Re-generate.
376 * gcore.c (write_gcore_file_1): Adjust.
377 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
379 <note_data>: Change type to unique pointer.
380 <abort_iteration>: Change type to bool.
381 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
382 (fbsd_collect_thread_registers): Return void, adjust.
383 (struct fbsd_corefile_thread_data): Add construtor.
384 <note_data>: Change type to unique pointer.
385 (fbsd_corefile_thread): Adjust.
386 (fbsd_make_corefile_notes): Return unique pointer, adjust.
387 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
388 to unique pointer, adjust.
389 (struct linux_collect_regset_section_cb_data): Add constructor.
390 <note_data>: Change type to unique pointer.
391 <abort_iteration>: Change type to bool.
392 (linux_collect_thread_registers): Return void, adjust.
393 (struct linux_corefile_thread_data): Add constructor.
394 <note_data>: Change type to unique pointer.
395 (linux_corefile_thread): Adjust.
396 (linux_make_corefile_notes): Return unique pointer, adjust.
398 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
400 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
401 * gdbarch.c: Re-generate.
402 * gdbarch.h: Re-generate.
403 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
405 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
407 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
408 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
409 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
410 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
412 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
414 * gdbarch.sh: Make generated predicates return bool.
415 * gdbarch.c: Re-generate.
416 * gdbarch.h: Re-generate.
418 2020-10-20 Tom Tromey <tom@tromey.com>
420 * varobj-iter.h (struct varobj_item): Remove typedef.
422 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
424 * infrun.c (currently_stepping): Change int to bool
425 (maybe_software_singlestep): Likewise.
426 (show_stop_on_solib_events): Likewise.
427 (stepping_past_nonsteppable_watchpoint): Likewise.
428 (displaced_step_in_progress_any_inferior): Likewise.
429 (displaced_step_in_progress_thread): Likewise.
430 (keep_going_stepped_thread): Likewise.
431 (thread_still_needs_step_over): Likewise.
432 (start_step_over): Likewise.
433 (do_target_resume): Likewise.
434 (resume_1): Likewise.
435 (clear_proceed_status): Likewise.
436 (thread_still_needs_step_over_bp): Likewise.
438 (switch_back_to_stepped_thread): Likewise.
439 (adjust_pc_after_break): Likewise.
440 (stepped_in_from): Likewise.
441 (handle_stop_requested): Likewise.
442 (handle_syscall_event): Likewise.
443 (handle_no_resumed): Likewise.
444 (handle_inferior_event): Likewise.
445 (finish_step_over): Likewise.
446 (handle_signal_stop): Likewise.
447 (process_event_stop_test): Likewise.
449 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
451 * infrun.c (get_displaced_stepping_state): Fix comment.
453 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
455 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
457 2020-10-19 Tom Tromey <tromey@adacore.com>
460 * tui/tui-winsource.h (struct tui_source_window_base)
461 <refresh_window>: Rename from refresh_pad.
462 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
463 Rename from refresh_pad.
464 (tui_source_window_base::show_source_content)
465 (tui_source_window_base::do_scroll_horizontal): Update.
467 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
469 * thread.c (_initialize_thread): Fine-tune the help text of
472 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
474 * frame.c: Remove the unused 'uinteger_option_def' type alias.
476 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
478 * breakpoint.c (handle_jit_event): Add an argument, change how
479 `jit_event_handler` is called.
481 2020-10-17 Tom Tromey <tom@tromey.com>
483 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
484 (scan_xcoff_symtab): Update.
485 * psymtab.h (class psymtab_storage) <global_psymbols,
486 static_psymbols, current_global_psymbols,
487 current_static_psymbols>: Remove.
488 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
489 (match_partial_symbol, lookup_partial_symbol): Update.
490 (print_partial_symbols): Change parameters.
491 (dump_psymtab, recursively_search_psymtabs)
492 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
493 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
495 (end_psymtab_common): Simplify.
496 (append_psymbol_to_list): Change parameters.
497 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
498 (init_psymbol_list): Simplify.
499 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
500 * psympriv.h (struct partial_symtab) <empty>: New method.
501 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
503 <global_psymbols, static_psymbols>: New members.
504 <add_psymbol>: New methods.
505 (add_psymbol_to_list): Don't declare.
506 (psymbol_placement): Move earlier.
507 * mdebugread.c (parse_partial_symbols): Update.
508 (handle_psymbol_enumerators): Change parameters.
509 (mdebug_expand_psymtab): Update.
510 * dwarf2/read.c (process_psymtab_comp_unit_reader)
511 (add_partial_symbol): Update.
512 * dwarf2/index-write.c (write_psymbols): Change parameters.
513 (write_one_signatured_type): Update.
514 (recursively_count_psymbols): Update.
515 (recursively_write_psymbols): Update.
516 (class debug_names) <recursively_write_psymbols>: Update.
517 <write_psymbols>: Change parameters.
518 <write_one_signatured_type>: Update.
519 * dbxread.c (read_dbx_symtab): Update.
520 (dbx_end_psymtab): Use partial_symtab::empty.
521 * ctfread.c (struct ctf_context) <pst>: New member.
522 (create_partial_symtab): Set it.
523 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
524 (scan_partial_symbols): Use the psymtab's context. Update.
526 2020-10-17 Tom Tromey <tom@tromey.com>
528 * valprint.c (generic_value_print): Remove comment.
529 * m2-valprint.c (m2_value_print_inner): Remove comment.
530 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
533 2020-10-17 Tom de Vries <tdevries@suse.de>
536 * source.c (select_source_symtab): Handling sal.symtab == NULL for
539 2020-10-14 Tom de Vries <tdevries@suse.de>
542 * solib.c (solib_contains_address_p): Handle
543 'solib->sections == nullptr'.
545 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
548 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
549 target can't do async.
550 * target.c (target_wait): Assert that we don't pass
551 TARGET_WNOHANG to a target that can't async.
553 2020-10-13 Kamil Rytarowski <n54@gmx.com>
555 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
556 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
557 * alpha-bsd-nat.c: Adjust include.
558 * alpha-bsd-tdep.h: Adjust comment.
559 * alpha-nbsd-tdep.c: Rename to ...
560 * alpha-netbsd-tdep.c: ... this, adjust include.
561 * amd64-nbsd-nat.c: Rename to ...
562 * amd64-netbsd-nat.c: ... this, adjust include.
563 * amd64-nbsd-tdep.c: Rename to ...
564 * amd64-netbsd-tdep.c: ... this, adjust include.
565 * amd64-tdep.h: Adjust include.
566 * arm-nbsd-nat.c: Rename to ...
567 * arm-netbsd-nat.c: ... this, adjust include.
568 * arm-nbsd-tdep.c: Rename to ...
569 * arm-netbsd-tdep.c: ... this, adjust include.
570 * arm-nbsd-tdep.h: Rename to ...
571 * arm-netbsd-tdep.h: ... this, adjust include.
572 * configure.nat: Adjust file lists.
573 * configure.tgt: Likewise.
574 * hppa-nbsd-nat.c: Rename to ...
575 * hppa-netbsd-nat.c: ... this, adjust include.
576 * hppa-nbsd-tdep.c: Rename to ...
577 * hppa-netbsd-tdep.c: ... this, adjust include.
578 * i386-nbsd-nat.c: Rename to ...
579 * i386-netbsd-nat.c: ... this, adjust include.
580 * i386-nbsd-tdep.c: Rename to ...
581 * i386-netbsd-tdep.c: ... this, adjust include.
582 * m68k-bsd-nat.c: Adjust include.
583 * mips-nbsd-nat.c: Rename to ...
584 * mips-netbsd-nat.c: ... this, adjust include.
585 * mips-nbsd-tdep.c: Rename to ...
586 * mips-netbsd-tdep.c: ... this, adjust include.
587 * mips-nbsd-tdep.h: Rename to ...
588 * mips-netbsd-tdep.h: ... this.
589 * nbsd-nat.c: Rename to ...
590 * netbsd-nat.c: ... this, adjust include.
591 * nbsd-nat.h: Rename to ...
592 * netbsd-nat.h: ... this, adjust include.
593 * nbsd-tdep.c: Rename to ...
594 * netbsd-tdep.c: ... this, adjust include.
595 * nbsd-tdep.h: Rename to ...
596 * netbsd-tdep.h: ... this.
597 * ppc-nbsd-nat.c: Rename to ...
598 * ppc-netbsd-nat.c: ... this, adjust include.
599 * ppc-nbsd-tdep.c: Rename to ...
600 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
601 * ppc-nbsd-tdep.h: Rename to ...
602 * ppc-netbsd-tdep.h: ... this.
603 * sh-nbsd-nat.c: Rename to ...
604 * sh-netbsd-nat.c: ... this, adjust include.
605 * sh-nbsd-tdep.c: Rename to ...
606 * sh-netbsd-tdep.c: ... this, adjust include.
607 * sparc-nbsd-nat.c: Rename to ...
608 * sparc-netbsd-nat.c: ... this.
609 * sparc-nbsd-tdep.c: Rename to ...
610 * sparc-netbsd-tdep.c: ... this, adjust include.
611 * sparc64-nbsd-nat.c: Rename to ...
612 * sparc64-netbsd-nat.c: ... this.
613 * sparc64-nbsd-tdep.c: Rename to ...
614 * sparc64-netbsd-tdep.c: ... this, adjust include.
615 * sparc64-tdep.h: Adjust comment.
616 * vax-bsd-nat.c: Adjust include.
617 * vax-nbsd-tdep.c: Rename to ...
618 * vax-netbsd-tdep.c: ... this, adjust include.
620 2020-10-12 Tom Tromey <tom@tromey.com>
622 * target.h (struct target_ops) <get_section_table>: Update.
623 (target_get_section_table): Update.
624 * target.c (target_get_section_table, target_section_by_addr)
625 (memory_xfer_partial_1): Update.
626 * target-section.h (target_section_table): Now an alias.
627 * target-delegates.c: Rebuild.
628 * target-debug.h (target_debug_print_target_section_table_p):
629 Rename from target_debug_print_struct_target_section_table_p.
630 * symfile.c (build_section_addr_info_from_section_table): Update.
631 * solib.c (solib_map_sections, solib_contains_address_p): Update.
632 * solib-svr4.c (scan_dyntag): Update.
633 * solib-dsbt.c (scan_dyntag): Update.
634 * remote.c (remote_target::remote_xfer_live_readonly_partial):
636 * record-full.c (record_full_core_target::xfer_partial): Update.
637 * progspace.h (struct program_space) <target_sections>: Update.
638 * exec.h (print_section_info): Update.
639 * exec.c (exec_target::close, build_section_table)
640 (add_target_sections, add_target_sections_of_objfile)
641 (remove_target_sections, exec_on_vfork)
642 (section_table_available_memory)
643 (section_table_xfer_memory_partial)
644 (exec_target::get_section_table, exec_target::xfer_partial)
645 (print_section_info, set_section_command)
646 (exec_set_section_address, exec_target::has_memory): Update.
647 * corelow.c (core_target::build_file_mappings)
648 (core_target::xfer_partial, core_target::info_proc_mappings)
649 (core_target::info_proc_mappings): Update.
650 * bfd-target.c (class target_bfd): Update
652 2020-10-12 Tom Tromey <tom@tromey.com>
654 * progspace.c (program_space::~program_space): Don't call
656 * exec.h (clear_section_table): Don't declare.
657 * exec.c (exec_target::close): Update.
658 (clear_section_table): Remove.
660 2020-10-12 Tom Tromey <tom@tromey.com>
662 * exec.c (add_target_sections_of_objfile): Simplify.
664 2020-10-12 Tom Tromey <tom@tromey.com>
666 * solib.c (solib_map_sections): Update.
667 * record-full.c (record_full_core_open_1): Update.
668 * exec.h (build_section_table): Return a target_section_table.
669 * exec.c (exec_file_attach): Update.
670 (build_section_table): Return a target_section_table.
671 * corelow.c (core_target::core_target): Update.
672 * bfd-target.c (target_bfd::target_bfd): Update.
674 2020-10-12 Tom Tromey <tom@tromey.com>
676 * target.c (target_section_by_addr, memory_xfer_partial_1):
678 * target-section.h (struct target_section_table): Use
680 * symfile.h (build_section_addr_info_from_section_table): Take a
681 target_section_table.
682 * symfile.c (build_section_addr_info_from_section_table): Take a
683 target_section_table.
684 * solist.h (struct so_list) <sections>: Change type.
685 <sections_end>: Remove.
686 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
687 (solib_contains_address_p): Update.
688 * solib-svr4.c (scan_dyntag): Update.
689 * solib-dsbt.c (scan_dyntag): Update.
690 * remote.c (remote_target::remote_xfer_live_readonly_partial):
692 * record-full.c (record_full_core_start, record_full_core_end):
694 (record_full_core_sections): New global.
695 (record_full_core_open_1, record_full_core_target::xfer_partial):
697 * exec.h (build_section_table, section_table_xfer_memory_partial)
698 (add_target_sections): Take a target_section_table.
699 * exec.c (exec_file_attach, clear_section_table): Update.
700 (resize_section_table): Remove.
701 (build_section_table, add_target_sections): Take a
702 target_section_table.
703 (add_target_sections_of_objfile, remove_target_sections)
704 (exec_on_vfork): Update.
705 (section_table_available_memory): Take a target_section_table.
706 (section_table_read_available_memory): Update.
707 (section_table_xfer_memory_partial): Take a target_section_table.
708 (print_section_info, set_section_command)
709 (exec_set_section_address, exec_target::has_memory): Update.
710 * corelow.c (class core_target) <m_core_section_table,
711 m_core_file_mappings>: Remove braces.
712 <~core_target>: Remove.
713 (core_target::core_target): Update.
714 (core_target::~core_target): Remove.
715 (core_target::build_file_mappings)
716 (core_target::xfer_memory_via_mappings)
717 (core_target::xfer_partial, core_target::info_proc_mappings):
719 * bfd-target.c (target_bfd::xfer_partial): Update.
720 (target_bfd::target_bfd): Update.
721 (target_bfd::~target_bfd): Remove.
723 2020-10-12 Tom Tromey <tom@tromey.com>
725 * target.h (struct target_section, struct target_section_table):
726 Move to target-section.h.
727 * target-section.h: New file.
729 2020-10-12 Pedro Alves <pedro@palves.net>
732 * valops.c (struct struct_field_searcher): New.
733 (update_search_result): Rename to ...
734 (struct_field_searcher::update_result): ... this. Simplify
735 prototype. Record all found fields.
736 (do_search_struct_field): Rename to ...
737 (struct_field_searcher::search): ... this. Simplify prototype.
738 Maintain stack of visited baseclass path. Call update_result for
739 fields too. Keep searching fields in baseclasses instead of
740 stopping at the first found field.
741 (search_struct_field): Use struct_field_searcher. When looking
742 for fields, report ambiguous access attempts.
744 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
746 * frame.c (inside_main_func): Check full symbols as well as
749 2020-10-09 Joel Brobecker <brobecker@adacore.com>
751 * ada-lang.c (advance_wild_match): Rewrite the function's
752 description. Change the type of target0, t0 and t1 to char.
754 2020-10-09 Tom Tromey <tromey@adacore.com>
756 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
758 2020-10-09 Tom Tromey <tromey@adacore.com>
760 * ada-lang.h (ada_encode): Return std::string.
761 * ada-lang.c (ada_encode_1): Return std::string.
762 (ada_encode): Likewise.
763 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
765 * ada-exp.y (block_lookup, write_var_or_type): Update.
767 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
770 * printcmd.c (print_formatted): Handle void results as
773 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
775 * arch/aarch32.c (aarch32_create_target_description): Release the
776 target_desc_up as late as possible.
777 * arch/aarch64.c (aarch64_create_target_description): Likewise.
778 * arch/amd64.c (amd64_create_target_description): Likewise.
779 * arch/arc.c (arc_create_target_description): Return a
780 target_desc_up, don't release it.
781 * arch/arc.h (arc_create_target_description): Update declaration.
782 (arc_lookup_target_description): Move target_desc_up into the
783 cache, and return a borrowed pointer.
784 * arch/arm.c (arm_create_target_description): Release the
785 target_desc_up as late as possible.
786 * arch/i386.c (i386_create_target_description): Likewise.
787 * arch/riscv.h (riscv_create_target_description): Update
788 declaration to match definition.
789 * arch/tic6x.c (tic6x_create_target_description): Release the
790 target_desc_up as late as possible.
792 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
794 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
795 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
797 2020-10-09 Jan Vrany <jan.vrany@labware.com>
799 * source.c (directory_command): Notify observers that "directories"
800 parameter has changed.
802 2020-10-08 Tom Tromey <tom@tromey.com>
804 * cli/cli-cmds.c (print_disassembly): Style function name and
805 addresses. Add _() wrappers.
807 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
809 * NEWS: Mention ARC support in GDBserver.
811 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
813 * arch/aarch32.c (aarch32_create_target_description): Release
814 unique_ptr returned from allocate_target_description.
815 * arch/aarch64.c (aarch64_create_target_description): Likewise.
816 * arch/amd64.c (amd64_create_target_description): Likewise.
817 * arch/arc.c (arc_create_target_description): Likewise.
818 * arch/arm.c (arm_create_target_description): Likewise.
819 * arch/i386.c (i386_create_target_description): Likewise.
820 * arch/riscv.c (riscv_create_target_description): Update return
821 type. Handle allocate_target_description returning a unique_ptr.
822 (riscv_lookup_target_description): Update to handle unique_ptr.
823 * arch/tic6x.c (tic6x_create_target_description): Release
824 unique_ptr returned from allocate_target_description.
825 * features/microblaze-with-stack-protect.c: Regenerate.
826 * features/microblaze.c: Regenerate.
827 * features/mips-dsp-linux.c: Regenerate.
828 * features/mips-linux.c: Regenerate.
829 * features/mips64-dsp-linux.c: Regenerate.
830 * features/mips64-linux.c: Regenerate.
831 * features/nds32.c: Regenerate.
832 * features/nios2.c: Regenerate.
833 * features/or1k.c: Regenerate.
834 * features/rs6000/powerpc-32.c: Regenerate.
835 * features/rs6000/powerpc-32l.c: Regenerate.
836 * features/rs6000/powerpc-403.c: Regenerate.
837 * features/rs6000/powerpc-403gc.c: Regenerate.
838 * features/rs6000/powerpc-405.c: Regenerate.
839 * features/rs6000/powerpc-505.c: Regenerate.
840 * features/rs6000/powerpc-601.c: Regenerate.
841 * features/rs6000/powerpc-602.c: Regenerate.
842 * features/rs6000/powerpc-603.c: Regenerate.
843 * features/rs6000/powerpc-604.c: Regenerate.
844 * features/rs6000/powerpc-64.c: Regenerate.
845 * features/rs6000/powerpc-64l.c: Regenerate.
846 * features/rs6000/powerpc-7400.c: Regenerate.
847 * features/rs6000/powerpc-750.c: Regenerate.
848 * features/rs6000/powerpc-860.c: Regenerate.
849 * features/rs6000/powerpc-altivec32.c: Regenerate.
850 * features/rs6000/powerpc-altivec32l.c: Regenerate.
851 * features/rs6000/powerpc-altivec64.c: Regenerate.
852 * features/rs6000/powerpc-altivec64l.c: Regenerate.
853 * features/rs6000/powerpc-e500.c: Regenerate.
854 * features/rs6000/powerpc-e500l.c: Regenerate.
855 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
856 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
857 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
858 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
859 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
860 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
861 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
862 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
863 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
864 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
865 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
866 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
867 * features/rs6000/powerpc-vsx32.c: Regenerate.
868 * features/rs6000/powerpc-vsx32l.c: Regenerate.
869 * features/rs6000/powerpc-vsx64.c: Regenerate.
870 * features/rs6000/powerpc-vsx64l.c: Regenerate.
871 * features/rs6000/rs6000.c: Regenerate.
872 * features/rx.c: Regenerate.
873 * features/s390-gs-linux64.c: Regenerate.
874 * features/s390-linux32.c: Regenerate.
875 * features/s390-linux32v1.c: Regenerate.
876 * features/s390-linux32v2.c: Regenerate.
877 * features/s390-linux64.c: Regenerate.
878 * features/s390-linux64v1.c: Regenerate.
879 * features/s390-linux64v2.c: Regenerate.
880 * features/s390-te-linux64.c: Regenerate.
881 * features/s390-tevx-linux64.c: Regenerate.
882 * features/s390-vx-linux64.c: Regenerate.
883 * features/s390x-gs-linux64.c: Regenerate.
884 * features/s390x-linux64.c: Regenerate.
885 * features/s390x-linux64v1.c: Regenerate.
886 * features/s390x-linux64v2.c: Regenerate.
887 * features/s390x-te-linux64.c: Regenerate.
888 * features/s390x-tevx-linux64.c: Regenerate.
889 * features/s390x-vx-linux64.c: Regenerate.
890 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
891 from allocate_target_description.
892 * target-descriptions.c (allocate_target_description): Update
894 (print_c_tdesc::visit_pre): Release unique_ptr returned from
895 allocate_target_description.
897 2020-10-07 Tom Tromey <tromey@adacore.com>
899 * unittests/search-memory-selftests.c: New file.
900 * Makefile.in (SELFTESTS_SRCS): Add
901 unittests/search-memory-selftests.c.
903 2020-10-07 Tom Tromey <tromey@adacore.com>
906 * findcmd.c (_initialize_mem_search): Mention that the range is
909 2020-10-07 Tom Tromey <tromey@adacore.com>
911 * target.h (simple_search_memory): Don't declare.
912 * target.c (simple_search_memory): Move to gdbsupport.
913 (default_search_memory): Update.
914 * remote.c (remote_target::search_memory): Update.
916 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
918 * Makefile.in (COMPILE): Add CXXFLAGS.
919 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
920 (check-headers): Add CXXFLAGS.
922 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
924 * arc-linux-tdep.h: New file.
925 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
926 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
927 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
928 arc_linux_gregset, arc_linux_v2_regset,
929 arc_linux_iterate_over_regset_sections,
930 arc_linux_core_read_description): Implement.
931 (arc_linux_init_osabi): Set iterate_over_regset_sections.
932 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
933 (arc_gdbarch_features_create): Add.
934 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
936 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
938 * arch/arc.h: Rename "arc_gdbarch_features" to
940 * arc-tdep.h: Likewise.
941 * arc-tdep.c: Likewise.
943 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
945 * infcmd.c (attach_command): Remove the redundant call to
946 `clear_proceed_status`.
948 2020-10-07 Kamil Rytarowski <n54@gmx.com>
950 * nat/netbsd-nat.c (write_memory, read_memory): Update.
952 2020-10-07 Kamil Rytarowski <n54@gmx.com>
954 * nat/netbsd-nat.c (write_memory, read_memory): Add.
955 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
956 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
958 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
960 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
961 (_initialize_break_catch_sig): Don't allocate array.
963 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
965 * symtab.c (find_pc_line): Return unmapped addresses when the
966 requested address is also unmapped.
968 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
970 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
973 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
975 * amd64-windows-tdep.c (amd64_windows_return_value): Use
976 type::is_vector instead of TYPE_VECTOR.
978 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
980 * auto-load.c (auto_load_objfile_script_1): Don't use
981 debugfile_holder as temporary variable when stripping drive
984 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
986 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
987 Add TYPE_CODE_COMPLEX.
988 (amd64_windows_return_value): Fix types returned via XMM0.
990 2020-10-05 Alan Hayward <alan.hayward@arm.com>
992 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
993 AArch64/ARM maintainers.
995 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
997 * NEWS: Mention set/show debug event-loop.
999 2020-10-02 Tom Tromey <tromey@adacore.com>
1001 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1004 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1006 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1007 * procfs.c (procfs_inferior_created): Remove.
1008 (_initialize_procfs): Don't register procfs_inferior_created.
1010 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1012 * async-event.c (invoke_async_signal_handlers): Add debug
1014 (check_async_event_handlers): Likewise.
1015 * event-top.c (show_debug_event_loop): New function.
1016 (_initialize_event_top): Register "set debug event-loop"
1019 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1021 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1023 * infrun.c: Include gdbsupport/common-debug.h.
1024 * linux-nat.c: Likewise.
1026 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1028 * async-event.h (create_async_signal_handler): Add name
1030 (create_async_event_handler): Likewise.
1031 * async-event.c (struct async_signal_handler) <name>: New field.
1032 (struct async_event_handler) <name>: New field.
1033 (create_async_signal_handler): Assign name.
1034 (create_async_event_handler): Assign name.
1035 * event-top.c (async_init_signals): Pass name when creating
1037 * infrun.c (_initialize_infrun): Likewise.
1038 * record-btrace.c (record_btrace_push_target): Likewise.
1039 * record-full.c (record_full_open): Likewise.
1040 * remote-notif.c (remote_notif_state_allocate): Likewise.
1041 * remote.c (remote_target::open_1): Likewise.
1042 * tui/tui-win.c (tui_initialize_win): Likewise.
1044 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1046 * async-event.c (initialize_async_signal_handlers): Pass name to
1048 * event-top.c (ui_register_input_event_handler): Likewise.
1049 * linux-nat.c (linux_nat_target::async): Likewise.
1050 * run-on-main-thread.c (_initialize_run_on_main_thread):
1052 * ser-base.c (reschedule): Likewise.
1053 (ser_base_async): Likewise.
1054 * tui/tui-io.c: Likewise.
1055 * top.h (struct ui) <num>: New field.
1056 * top.c (highest_ui_num): New variable.
1057 (ui::ui): Initialize num.
1059 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1061 * observable.h <inferior_created>: Remove parameters. Update all
1063 * inferior.h (post_create_inferior): Remove target parameter.
1066 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1068 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1069 and DW_MACRO_undef_strx.
1070 (dwarf_decode_macros): Likewise
1071 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1072 which is the value of DW_AT_str_offsets_base.
1073 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1076 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1078 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1080 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1082 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1083 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1085 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1087 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1089 2020-09-30 Tom de Vries <tdevries@suse.de>
1092 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1094 2020-09-30 Tom Tromey <tromey@adacore.com>
1096 * dwarf2/read.c (handle_variant): Use constant_value.
1098 2020-09-29 Tom Tromey <tom@tromey.com>
1100 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1101 (read_file_scope, dwarf2_get_pc_bounds)
1102 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1103 (read_structure_type, handle_struct_member_die)
1104 (read_enumeration_type, read_array_type, read_set_type)
1105 (read_tag_pointer_type, read_tag_reference_type)
1106 (read_subroutine_type, read_base_type, read_subrange_type)
1107 (read_full_die_1, partial_die_info::read)
1108 (partial_die_info::read, by, new_symbol)
1109 (dwarf2_const_value_data, dwarf2_const_value_attr)
1110 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1111 (prepare_one_comp_unit): Update.
1112 * dwarf2/attribute.h (DW_UNSND): Remove.
1114 2020-09-29 Tom Tromey <tom@tromey.com>
1116 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1117 (read_subroutine_type, partial_die_info::read)
1118 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1119 (dwarf2_add_member_fn): Update.
1120 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1121 * dwarf2/attribute.c (attribute::as_boolean): New method.
1123 2020-09-29 Tom Tromey <tom@tromey.com>
1125 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1126 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1128 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1130 2020-09-29 Tom Tromey <tom@tromey.com>
1132 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1133 the attribute's form.
1135 2020-09-29 Tom Tromey <tom@tromey.com>
1137 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1138 (dwarf2_add_member_fn): Update.
1139 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1140 * dwarf2/attribute.c (attribute::defaulted): New method, from
1141 is_valid_DW_AT_defaulted.
1143 2020-09-29 Tom Tromey <tom@tromey.com>
1145 * dwarf2/read.c (dw2_get_file_names_reader)
1146 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1147 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1148 (dwarf2_symbol_mark_computed): Use as_unsigned.
1149 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1151 <form_is_section_offset>: Update comment.
1153 2020-09-29 Tom Tromey <tom@tromey.com>
1155 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1156 dwarf2_default_access_attribute. Look up attribute.
1157 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1160 2020-09-29 Tom Tromey <tom@tromey.com>
1162 * dwarf2/read.c (skip_one_die): Update.
1163 (read_full_die_1): Change how reprocessing is done.
1164 (partial_die_info::read): Update.
1165 (read_attribute_value): Remove need_reprocess parameter.
1166 (read_attribute): Likewise.
1167 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1170 2020-09-29 Tom Tromey <tom@tromey.com>
1172 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1173 (dwarf2_const_value_attr, dump_die_shallow)
1174 (dwarf2_fetch_constant_bytes): Update.
1175 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1177 <set_address>: New method.
1179 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1180 (attribute::as_string, attribute::as_address): Add assert.
1182 2020-09-29 Tom Tromey <tom@tromey.com>
1184 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1185 (read_attribute_reprocess, read_attribute_value): Update.
1186 (read_attribute): Clear requires_reprocessing.
1187 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1188 form_requires_reprocessing>: New methods.
1189 <string_init>: Clear requires_reprocessing.
1190 <set_unsigned_reprocess>: New method.
1191 <name>: Shrink by one bit.
1192 <requires_reprocessing>: New member.
1193 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1196 2020-09-29 Tom Tromey <tom@tromey.com>
1198 * dwarf2/read.c (read_attribute_value): Update.
1199 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1200 set_unsigned>: New methods.
1201 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1203 2020-09-29 Tom Tromey <tom@tromey.com>
1205 * dwarf2/read.c (get_alignment, read_array_order)
1206 (read_attribute_value, dwarf2_const_value_attr)
1207 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1208 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1212 2020-09-29 Tom Tromey <tom@tromey.com>
1214 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1215 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1217 * dwarf2/attribute.h (struct attribute) <as_signature,
1218 set_signature>: New methods.
1219 (DW_SIGNATURE): Remove.
1221 2020-09-29 Tom Tromey <tom@tromey.com>
1223 * dwarf2/read.c (read_call_site_scope)
1224 (handle_data_member_location, dwarf2_add_member_fn)
1225 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1226 (partial_die_info::read, read_attribute_value)
1227 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1228 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1229 (dwarf2_symbol_mark_computed): Update.
1230 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1233 * dwarf2/attribute.c (attribute::form_is_block): Add
1236 2020-09-29 Tom Tromey <tom@tromey.com>
1238 * dwarf2/read.c (read_cutu_die_from_dwo)
1239 (read_attribute_reprocess, read_attribute_value, read_attribute)
1240 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1241 (dwarf2_fetch_constant_bytes): Update.
1242 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1243 <set_string_noncanonical, set_string_canonical>: New methods.
1244 <string_is_canonical>: Update comment.
1245 <canonical_string_p>: Add assert.
1246 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1247 * dwarf2/attribute.c (attribute::form_is_string): New method.
1248 (attribute::string): Use it.
1250 2020-09-29 Tom Tromey <tom@tromey.com>
1252 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1253 (dump_die_shallow): Use canonical_string_p.
1254 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1257 2020-09-29 Tom Tromey <tom@tromey.com>
1259 * dwarf2/read.c (partial_die_info::read)
1260 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1261 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1262 attribute::as_string.
1264 2020-09-29 Tom Tromey <tom@tromey.com>
1266 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1268 (attribute::string): Don't use DW_STRING.
1269 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1270 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1272 2020-09-29 Tom Tromey <tom@tromey.com>
1274 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1275 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1276 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1277 * dwarf2/attribute.h (struct attribute): Rename methods.
1278 * dwarf2/attribute.c (attribute::as_address): Rename from
1280 (attribute::as_string): Rename from value_as_string.
1282 2020-09-29 Tom Tromey <tom@tromey.com>
1284 * dwarf2/read.c (partial_die_info::read) <case
1285 DW_AT_linkage_name>: Use value_as_string.
1286 (dwarf2_string_attr): Use value_as_string.
1287 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1289 * dwarf2/attribute.c (attribute::value_as_string): New method.
1291 2020-09-29 Pedro Alves <pedro@palves.net>
1293 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1294 defined before using '#pragma GCC diagnostic' instead of checking
1297 2020-09-28 Tom Tromey <tom@tromey.com>
1299 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1300 (handle_signal_stop): Update.
1301 * procfs.c (procfs_target::insert_watchpoint): Update.
1302 * target.h (target_have_steppable_watchpoint): Now a function.
1304 2020-09-28 Tom Tromey <tom@tromey.com>
1306 * infrun.c (set_schedlock_func): Update.
1307 * target.h (target_can_lock_scheduler): Now a function.
1309 2020-09-28 Tom Tromey <tom@tromey.com>
1311 * inferior.h (class inferior) <has_execution>: Update.
1312 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1313 * valops.c (find_function_in_inferior)
1314 (value_allocate_space_in_inferior): Update.
1315 * top.c (kill_or_detach): Update.
1316 * target.c (target_preopen, set_target_permissions): Update.
1317 (target_has_execution_current): Remove.
1318 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1320 * solib.c (update_solib_list, reload_shared_libraries): Update.
1321 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1322 * solib-dsbt.c (enable_break): Update.
1323 * score-tdep.c (score7_fetch_inst): Update.
1324 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1326 * remote.c (remote_target::start_remote)
1327 (remote_target::remote_check_symbols, remote_target::open_1)
1328 (remote_target::remote_detach_1, remote_target::verify_memory)
1329 (remote_target::xfer_partial, remote_target::read_description)
1330 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1331 * record-full.c (record_full_open_1): Update.
1332 * record-btrace.c (record_btrace_target_open): Update.
1333 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1334 (value_nsstring): Update.
1335 * linux-thread-db.c (add_thread_db_info)
1336 (thread_db_find_new_threads_silently, check_thread_db_callback)
1337 (try_thread_db_load_1, record_thread): Update.
1338 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1340 * linux-fork.c (checkpoint_command): Update.
1341 * infrun.c (set_non_stop, set_observer_mode)
1342 (check_multi_target_resumption, for_each_just_stopped_thread)
1343 (maybe_remove_breakpoints, normal_stop)
1344 (class infcall_suspend_state): Update.
1345 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1346 (info_program_command, attach_command): Update.
1347 * infcall.c (call_function_by_hand_dummy): Update.
1348 * inf-loop.c (inferior_event_handler): Update.
1349 * gcore.c (gcore_command, derive_heap_segment): Update.
1350 * exec.c (exec_file_command): Update.
1351 * eval.c (evaluate_subexp): Update.
1352 * compile/compile.c (compile_to_object): Update.
1353 * cli/cli-dump.c (restore_command): Update.
1354 * breakpoint.c (update_watchpoint)
1355 (update_inserted_breakpoint_locations)
1356 (insert_breakpoint_locations, get_bpstat_thread): Update.
1357 * target.h (target_has_execution): Remove macro.
1358 (target_has_execution_current): Don't declare.
1359 (target_has_execution): Rename from target_has_execution_1. Add
1362 2020-09-28 Tom Tromey <tom@tromey.com>
1364 * mi/mi-main.c (exec_reverse_continue)
1365 (mi_cmd_list_target_features): Update.
1366 * infrun.c (set_exec_direction_func): Update.
1367 * target.c (default_execution_direction): Update.
1368 * reverse.c (exec_reverse_once): Update.
1369 * target.h (target_can_execute_reverse): Now a function.
1371 2020-09-28 Tom Tromey <tom@tromey.com>
1373 * tui/tui-regs.c (tui_get_register)
1374 (tui_data_window::show_registers): Update.
1375 * thread.c (scoped_restore_current_thread::restore)
1376 (scoped_restore_current_thread::scoped_restore_current_thread):
1378 * regcache-dump.c (regcache_print): Update.
1379 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1381 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1382 * mep-tdep.c (current_me_module, current_options): Update.
1383 * linux-thread-db.c (thread_db_load): Update.
1384 * infcmd.c (registers_info, info_vector_command)
1385 (info_float_command): Update.
1386 * ia64-tdep.c (ia64_frame_prev_register)
1387 (ia64_sigtramp_frame_prev_register): Update.
1388 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1389 * gcore.c (derive_stack_segment): Update.
1390 * frame.c (get_current_frame, has_stack_frames): Update.
1391 * findvar.c (language_defn::read_var_value): Update.
1392 * arm-tdep.c (arm_pc_is_thumb): Update.
1393 * target.c (target_has_registers): Rename from
1394 target_has_registers_1.
1395 * target.h (target_has_registers): Remove macro.
1396 (target_has_registers): Rename from target_has_registers_1.
1398 2020-09-28 Tom Tromey <tom@tromey.com>
1400 * windows-tdep.c (tlb_make_value): Update.
1401 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1402 * thread.c (scoped_restore_current_thread::restore)
1403 (scoped_restore_current_thread::scoped_restore_current_thread)
1404 (thread_command): Update.
1405 * stack.c (backtrace_command_1, frame_apply_level_command)
1406 (frame_apply_all_command, frame_apply_command): Update.
1407 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1409 * gcore.c (derive_stack_segment): Update.
1410 * frame.c (get_current_frame, has_stack_frames): Update.
1411 * auxv.c (info_auxv_command): Update.
1412 * ada-tasks.c (ada_build_task_list): Update.
1413 * target.c (target_has_stack): Rename from target_has_stack_1.
1414 * target.h (target_has_stack): Remove macro.
1415 (target_has_stack): Rename from target_has_stack_1.
1417 2020-09-28 Tom Tromey <tom@tromey.com>
1419 * target.c (target_has_memory): Rename from target_has_memory_1.
1420 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1421 * thread.c (scoped_restore_current_thread::restore)
1422 (scoped_restore_current_thread::scoped_restore_current_thread):
1424 * frame.c (get_current_frame, has_stack_frames): Update.
1425 * target.h (target_has_memory): Remove macro.
1426 (target_has_memory): Rename from target_has_memory_1.
1428 2020-09-28 Tom Tromey <tom@tromey.com>
1430 * target.c (target_has_all_memory_1): Remove.
1431 * target.h (target_has_all_memory): Remove define.
1432 (target_has_all_memory_1): Don't declare.
1434 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1436 * ser-base.c: Adjust comments formatting.
1438 2020-09-27 Tom Tromey <tom@tromey.com>
1441 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1443 2020-09-27 Tom Tromey <tom@tromey.com>
1446 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1448 2020-09-27 Tom Tromey <tom@tromey.com>
1450 * unittests/tui-selftests.c: Update.
1451 * tui/tui-winsource.h (struct tui_source_window_base)
1452 <extra_margin, show_line_number, refresh_pad>: New methods.
1453 <m_max_length, m_pad>: New members.
1454 (tui_copy_source_line): Update.
1455 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1456 first_col, line_width, ndigits parameters. Add length.
1457 (tui_source_window_base::show_source_line): Write to pad. Line
1459 (tui_source_window_base::refresh_pad): New method.
1460 (tui_source_window_base::show_source_content): Write to pad. Call
1462 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1464 (tui_source_window_base::update_exec_info): Call
1466 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1468 <m_digits>: New member.
1469 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1471 (tui_source_window::show_line_number): New method.
1472 * tui/tui-io.h (tui_puts): Fix comment.
1473 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1476 2020-09-27 Tom Tromey <tom@tromey.com>
1478 * tui/tui-winsource.c
1479 (tui_source_window_base::set_is_exec_point_at): Don't call
1482 2020-09-27 Tom Tromey <tom@tromey.com>
1484 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1487 <cursor_x, cursor_y>: Remove.
1488 <m_inner_window>: New member.
1489 (tui_py_window::rerender): Create inner window.
1490 (tui_py_window::output): Write to inner window.
1492 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1495 * cli/cli-script.c (execute_control_commands): don't set
1496 instream to nullptr here as this breaks the from_tty argument
1497 to gdb.execute in Python.
1498 (execute_user_command): set instream to nullptr here instead.
1500 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1502 * infrun.h (infrun_debug_printf): Fix formatting.
1503 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1505 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1507 * compile/compile-object-load.h (struct munmap_list): Add
1508 explicitly-defined move constructor.
1510 2020-09-24 Tom Tromey <tromey@adacore.com>
1513 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1515 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1516 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1517 (tui_prev_win): Rewrite.
1519 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1521 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1522 in WOW64 processes as SIGINT.
1523 * nat/windows-nat.h: Make wow64_process a shared variable.
1524 * windows-nat.c: Remove static wow64_process variable.
1526 2020-09-23 Tom Tromey <tom@tromey.com>
1529 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1530 offset and bit size.
1531 * printcmd.c (print_scalar_formatted): Handle zero-length
1533 (print_scalar_formatted): Use bit_size_differs_p.
1534 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1536 (union type_specific): <int_stuff>: New member.
1537 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1539 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1540 TYPE_SPECIFIC_FIELD.
1541 (recursive_dump_type, copy_type_recursive): Update.
1542 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1543 DW_AT_data_bit_offset.
1545 2020-09-23 Tom Tromey <tom@tromey.com>
1547 * utils.h (class gdb_argv): Add move operators.
1548 <append>: New methods.
1549 * compile/compile.c (build_argc_argv): Remove.
1550 (compile_args_argc): Remove.
1551 (compile_args_argv): Change type.
1552 (set_compile_args): Simplify.
1553 (append_args): Remove.
1554 (filter_args): Remove argcp parameter.
1555 (get_args): Return gdb_argv. Simplify.
1556 (compile_to_object): Update.
1558 2020-09-23 Tom Tromey <tom@tromey.com>
1560 * compile/compile-object-run.c (do_module_cleanup)
1561 <~do_module_cleanup> :Remove.
1562 (do_module_cleanup): Update.
1563 * compile/compile-object-load.h (struct munmap_list): Add move
1564 assignment operator.
1565 <source_file>: Now a std::string.
1566 <munmap_list>: Rename. No longer a pointer.
1567 * compile/compile-object-load.c (struct setup_sections_data): Add
1569 <setup_one_section>: Declare.
1570 <munmap_list>: Move earlier.
1571 <m_bfd>: New member.
1572 <m_last_size, m_last_section_first, m_last_prot,
1573 m_last_max_alignment>: Rename, add initializers where needed.
1574 (setup_sections_data::setup_one_section): Rename from
1575 setup_sections. Update.
1576 (compile_object_load): Update. Don't use bfd_map_over_sections.
1578 2020-09-23 Tom Tromey <tom@tromey.com>
1580 * compile/compile-object-run.c (struct do_module_cleanup): Add
1581 parameters to constructor. Update destructor.
1582 <source_file, scope, scope_data, out_value_type, out_value_addr,
1583 munmap_list_head, objfile_name_string>: Remove.
1584 <module>: New member.
1585 (do_module_cleanup): Update.
1586 (compile_object_run): Update.
1588 2020-09-23 Tom Tromey <tom@tromey.com>
1590 * compile/compile.c (eval_compile_command): Update.
1591 * compile/compile-object-run.h (compile_object_run): Take a
1593 * compile/compile-object-run.c (compile_object_run): Take a
1595 * compile/compile-object-load.h (struct compile_module): Add
1596 constructor, destructor.
1597 (compile_module_up): New typedef.
1598 (compile_object_load): Return compile_object_up.
1599 * compile/compile-object-load.c (compile_object_load): Return
1602 2020-09-23 Tom Tromey <tom@tromey.com>
1604 * compile/compile-object-run.c (struct do_module_cleanup): Add
1605 constructor, destructor.
1606 <objfile_name_string>: Don't use struct hack.
1607 (do_module_cleanup): Use delete.
1608 (compile_object_run): Use new.
1610 2020-09-23 Tom Tromey <tom@tromey.com>
1612 * compile/compile-cplus-types.c
1613 (compile_cplus_convert_struct_or_union): Use std::vector.
1614 (compile_cplus_convert_func): Likewise.
1615 * compile/compile-c-types.c (convert_func): Use std::vector.
1617 2020-09-21 Tom Tromey <tromey@adacore.com>
1619 * sparc-tdep.c (sparc32_skip_prologue): Use
1620 skip_prologue_using_sal.
1622 2020-09-19 Tom Tromey <tom@tromey.com>
1624 * symfile.c (add_section_size_callback): Remove.
1625 (load_one_section): Rename from load_section_callback. Change
1627 (generic_load): Use foreach.
1629 2020-09-19 Tom Tromey <tom@tromey.com>
1631 * exec.c (add_to_section_table): Remove.
1632 (build_section_table): Use foreach.
1634 2020-09-19 Tom Tromey <tom@tromey.com>
1636 * elfread.c (elf_locate_sections): Change parameters.
1637 (elf_symfile_read): Use foreach.
1639 2020-09-19 Tom Tromey <tom@tromey.com>
1641 * cli/cli-dump.c (struct callback_data): Remove.
1642 (restore_one_section): Rename from restore_section_callback.
1644 (restore_binary_file): Change parameters.
1645 (restore_command): Use foreach.
1647 2020-09-19 Tom Tromey <tom@tromey.com>
1649 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1650 (gcore_copy_callback): Likewise.
1651 (gcore_memory_sections): Use foreach.
1653 2020-09-19 Tom Tromey <tom@tromey.com>
1655 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1656 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1658 (generic_elf_osabi_sniffer): Use foreach.
1659 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1660 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1662 2020-09-19 Tom Tromey <tom@tromey.com>
1664 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1665 (dwarf2_get_dwz_file): Use foreach.
1666 (dwarf2_locate_dwo_sections): Change parameters.
1667 (open_and_init_dwo_file): Use foreach.
1668 (dwarf2_locate_common_dwp_sections): Change parameters.
1669 (open_and_init_dwp_file): Use foreach.
1671 2020-09-19 Tom Tromey <tom@tromey.com>
1673 * symfile.h: (find_lowest_section): Don't declare.
1674 * symfile.c (find_lowest_section): Now static. Change
1676 (struct place_section_arg): Remove.
1677 (place_section): Change parameters.
1678 (addr_info_make_relative): Use foreach.
1679 (symfile_dummy_outputs): Remove.
1680 (default_symfile_relocate): Use foreach.
1682 2020-09-19 Tom Tromey <tom@tromey.com>
1684 * objfiles.c (add_to_objfile_sections): Rename from
1685 add_to_objfile_sections_full.
1686 (add_to_objfile_sections): Remove.
1687 (build_objfile_section_table): Use foreach.
1689 2020-09-19 Tom Tromey <tom@tromey.com>
1691 * stap-probe.c (get_stap_base_address_1): Remove.
1692 (get_stap_base_address): Use foreach.
1694 2020-09-19 Tom Tromey <tom@tromey.com>
1696 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1698 (gdb_bfd_close_or_warn): Use foreach.
1700 2020-09-19 Tom Tromey <tom@tromey.com>
1702 * corelow.c (add_to_thread_list): Change parameters.
1703 (core_target_open): Use foreach.
1705 2020-09-19 Tom Tromey <tom@tromey.com>
1707 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1710 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1712 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1715 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1717 * eval.c: Remove 'f-lang.h' include.
1718 (value_f90_subarray): Moved to f-lang.c.
1719 (eval_call): Renamed to...
1720 (evaluate_subexp_do_call): ...this, is no longer static, header
1721 comment moved into header file.
1722 (evaluate_funcall): Update call to eval_call.
1723 (skip_undetermined_arglist): Moved to f-lang.c.
1724 (fortran_value_subarray): Likewise.
1725 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1726 moved to evaluate_subexp_f.
1727 (calc_f77_array_dims): Moved to f-lang.c
1728 * expprint.c (print_subexp_funcall): New function.
1729 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1730 moved to print_subexp_f, OP_FUNCALL uses new function.
1731 (dump_subexp_body_funcall): New function.
1732 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1733 moved to dump_subexp_f, OP_FUNCALL uses new function.
1734 * expression.h (evaluate_subexp_do_call): Declare.
1735 * f-lang.c (value_f90_subarray): Moved from eval.c.
1736 (skip_undetermined_arglist): Likewise.
1737 (calc_f77_array_dims): Likewise.
1738 (fortran_value_subarray): Likewise.
1739 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1740 (operator_length_f): Likewise.
1741 (print_subexp_f): Likewise.
1742 (dump_subexp_body_f): Likewise.
1743 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1744 declaration of this operation to here.
1745 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1746 support moved to operator_length_f.
1747 * parser-defs.h (dump_subexp_body_funcall): Declare.
1748 (print_subexp_funcall): Declare.
1749 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1750 fortran-operator.def.
1752 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1754 * eval.c (fortran_value_subarray): New function, content is taken
1756 (evaluate_subexp_standard): ...here, in two places. Now arrays
1757 and strings both call the new function.
1758 (calc_f77_array_dims): Add header comment, handle strings.
1760 2020-09-18 Victor Collod <vcollod@nvidia.com>
1763 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1764 (i386_analyze_prologue): Call i386_skip_endbr.
1766 2020-09-18 Tom Tromey <tromey@adacore.com>
1768 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1769 (windows_nat_target::wait): Update.
1770 * target/wait.h (enum target_wait_flag): New. Use
1771 DEF_ENUM_FLAGS_TYPE.
1772 * target/target.h (target_wait): Change type of options.
1773 * target.h (target_options_to_string, default_target_wait):
1775 (struct target_ops) <wait>: Change type of options.
1776 * target.c (target_wait, default_target_wait, do_option): Change
1778 (target_options_to_string): Likewise.
1779 * target-delegates.c: Rebuild.
1780 * target-debug.h (target_debug_print_target_wait_flags): Rename
1781 from target_debug_print_options.
1782 * sol-thread.c (class sol_thread_target) <wait>: Update.
1783 (sol_thread_target::wait): Update.
1784 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1785 (rs6000_nat_target::wait): Update.
1786 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1788 (remote_target::wait_ns, remote_target::wait_as): Change type of
1790 (remote_target::wait): Update.
1791 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1792 (gdbsim_target::wait): Update.
1793 * record-full.c (class record_full_base_target) <wait>: Update.
1794 (record_full_wait_1): Change type of "options".
1795 (record_full_base_target::wait): Update.
1796 * record-btrace.c (class record_btrace_target) <wait>: Update.
1797 (record_btrace_target::wait): Update.
1798 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1800 (ravenscar_thread_target::wait): Update.
1801 * procfs.c (class procfs_target) <wait>: Update.
1802 (procfs_target::wait): Update.
1803 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1804 * obsd-nat.c (obsd_nat_target::wait): Update.
1805 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1806 (nto_procfs_target::wait): Update.
1807 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1808 * nbsd-nat.c (nbsd_wait): Change type of "options".
1809 (nbsd_nat_target::wait): Update.
1810 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1811 (thread_db_target::wait): Update.
1812 * linux-nat.h (class linux_nat_target) <wait>: Update.
1813 * linux-nat.c (linux_nat_target::wait): Update.
1814 (linux_nat_wait_1): Update.
1815 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1817 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1818 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1819 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1820 (go32_nat_target::wait): Update.
1821 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1822 * gnu-nat.c (gnu_nat_target::wait): Update.
1823 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1824 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1825 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1826 * darwin-nat.c (darwin_nat_target::wait): Update.
1827 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1828 (bsd_uthread_target::wait): Update.
1829 * aix-thread.c (class aix_thread_target) <wait>: Update.
1830 (aix_thread_target::wait): Update.
1832 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1834 * compile/compile-object-run.c (create_copied_type_recursive): New
1836 (compile_object_run): Use new function.
1838 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1840 * NEWS: Mention x86_64 Cygwin core file support.
1842 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1844 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1845 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1847 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1849 * windows-tdep.h: Add prototypes.
1850 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1851 (i386_windows_core_pid_to_str): Move and rename ...
1852 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1853 (windows_core_pid_to_str): ... and here.
1854 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1856 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1857 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1858 (amd64_windows_init_abi_common): ... and register.
1860 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1862 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1863 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1865 2020-09-18 Pedro Alves <pedro@palves.net>
1868 * thread.c (thread_find_command): Switch inferior before calling
1871 2020-09-17 Tom Tromey <tromey@adacore.com>
1873 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1874 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1875 (tdesc_arch_data_up): New typedef.
1876 (tdesc_use_registers, tdesc_data_alloc): Update.
1877 (tdesc_data_cleanup): Don't declare.
1878 * target-descriptions.c (tdesc_data_alloc): Return a
1880 (tdesc_arch_data_deleter::operator()): Rename from
1881 tdesc_data_cleanup. Change argument type.
1882 (tdesc_use_registers): Change early_data to an rvalue reference.
1883 (tdesc_use_registers): Don't use delete.
1884 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1885 * s390-tdep.c (s390_gdbarch_init): Update.
1886 * rx-tdep.c (rx_gdbarch_init): Update.
1887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1888 * riscv-tdep.c (riscv_gdbarch_init): Update.
1889 * or1k-tdep.c (or1k_gdbarch_init): Update.
1890 * nios2-tdep.c (nios2_gdbarch_init): Update.
1891 * nds32-tdep.c (nds32_gdbarch_init): Update.
1892 * mips-tdep.c (mips_gdbarch_init): Update.
1893 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1894 * m68k-tdep.c (m68k_gdbarch_init): Update.
1895 * i386-tdep.c (i386_gdbarch_init): Update.
1896 * arm-tdep.c (arm_gdbarch_init): Update.
1897 * arc-tdep.c (arc_tdesc_init): Update.
1898 (arc_gdbarch_init): Update.
1899 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1901 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1903 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1904 for WOW64 processes.
1906 2020-09-17 Tom Tromey <tom@tromey.com>
1908 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1910 2020-09-17 Tom Tromey <tom@tromey.com>
1912 * value.c (preserve_values): Update.
1913 * python/py-type.c (save_objfile_types): Update.
1914 * guile/scm-type.c (save_objfile_types): Update.
1915 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1916 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1917 * compile/compile-object-run.c (compile_object_run): Update.
1919 2020-09-17 Tom Tromey <tom@tromey.com>
1921 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1923 <m_table>: Now htab_up.
1924 * typeprint.c (typedef_hash_table::recursively_update)
1925 (typedef_hash_table::add_template_parameters)
1926 (typedef_hash_table::typedef_hash_table): Update.
1927 (typedef_hash_table::~typedef_hash_table): Remove.
1928 (typedef_hash_table::typedef_hash_table)
1929 (typedef_hash_table::find_global_typedef)
1930 (typedef_hash_table::find_typedef): Update.
1932 2020-09-17 Tom Tromey <tom@tromey.com>
1934 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1936 2020-09-17 Tom Tromey <tom@tromey.com>
1938 * linespec.c (class decode_compound_collector)
1939 <~decode_compound_collector>: Remove.
1940 <m_unique_syms>: Now htab_up.
1941 (decode_compound_collector::operator ()): Update.
1942 (class symtab_collector) <~symtab_collector>: Remove.
1943 <m_symtab_table>: Now htab_up.
1944 (symtab_collector::operator ()): Update.
1946 2020-09-17 Tom Tromey <tom@tromey.com>
1948 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1949 (filename_seen_cache::clear): Update.
1950 (~filename_seen_cache): Remove.
1951 (filename_seen_cache::seen): Update.
1952 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1954 <~filename_seen_cache>: Remove.
1957 2020-09-17 Tom Tromey <tom@tromey.com>
1959 * completer.c (completion_tracker::discard_completions)
1960 (completion_tracker::~completion_tracker)
1961 (completion_tracker::maybe_add_completion)
1962 (completion_tracker::remove_completion)
1963 (completion_tracker::recompute_lowest_common_denominator)
1964 (completion_tracker::build_completion_result): Update.
1965 * completer.h (class completion_tracker) <have_completions>:
1967 <m_entries_hash>: Now htab_up.
1969 2020-09-17 Tom Tromey <tom@tromey.com>
1971 * breakpoint.c (ambiguous_names_p): Use htab_up.
1973 2020-09-17 Tom Tromey <tom@tromey.com>
1975 * auto-load.c (struct auto_load_pspace_info)
1976 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1977 <loaded_script_files, loaded_script_texts>: Change type to
1979 (~auto_load_pspace_info) Remove.
1980 (init_loaded_scripts_info, maybe_add_script_file)
1981 (maybe_add_script_text, auto_load_info_scripts): Update.
1983 2020-09-17 Tom Tromey <tromey@adacore.com>
1985 * c-exp.y (name_obstack): Now static.
1987 2020-09-17 Chungyi Chi <demonic@csie.io>
1989 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1991 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1993 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1994 (add_solib_catchpoint): Likewise.
1995 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1997 (add_solib_catchpoint): Change int parameter/variable to bool.
1998 (catch_load_or_unload): Likewise.
1999 (init_catchpoint): Likewise.
2000 (create_fork_vfork_event_catchpoint): Likewise.
2001 (catch_fork_command_1): Likewise.
2002 (catch_exec_command_1): Likewise.
2004 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2006 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2007 Change instance_flags to m_instance_flags.
2009 2020-09-16 Tom Tromey <tromey@adacore.com>
2012 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2014 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2016 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2018 (fbsd_nat_target::insert_exec_catchpoint)
2019 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2020 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2021 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2023 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2025 * configure.ac: Remove check for kinfo_getvmmap().
2026 * configure, config.in: Regenerate.
2027 * fbsd-nat.c (fbsd_read_mapping): Remove
2028 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2029 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2030 kinfo_get_vmmap() are always present.
2032 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2034 * fbsd-nat.c: Always include support for
2035 TARGET_OBJECT_SIGNAL_INFO.
2037 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2039 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2040 sysctl and remove procfs fallback.
2042 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2044 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2045 * fbsd-nat.h: Likewise.
2047 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2049 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2052 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2054 * ada-lang.c (ada_language_data): Delete.
2055 (ada_language): Remove references to ada_language_data.
2056 * c-lang.c (c_language_data): Delete.
2057 (c_language): Remove references to c_language_data.
2058 (cplus_language_data): Delete.
2059 (cplus_language): Remove references to cplus_language_data.
2060 (asm_language_data): Delete.
2061 (asm_language): Remove references to asm_language_data.
2062 (minimal_language_data): Delete.
2063 (minimal_language): Remove references to minimal_language_data.
2064 * d-lang.c (d_language_data): Delete.
2065 (d_language): Remove references to d_language_data.
2066 * f-lang.c (f_language_data): Delete.
2067 (f_language): Remove references to f_language_data.
2068 * go-lang.c (go_language_data): Delete.
2069 (go_language): Remove references to go_language_data.
2070 * language.c (unknown_language_data): Delete.
2071 (unknown_language): Remove references to unknown_language_data.
2072 (auto_language_data): Delete.
2073 (auto_language): Remove references to auto_language_data.
2074 * language.h (language_data): Delete struct.
2075 (language_defn): No longer inherit from language_data.
2076 * m2-lang.c (m2_language_data): Delete.
2077 (m2_language): Remove references to m2_language_data.
2078 * objc-lang.c (objc_language_data): Delete.
2079 (objc_language): Remove references to objc_language_data.
2080 * opencl-lang.c (opencl_language_data): Delete.
2081 (opencl_language): Remove references to opencl_language_data.
2082 * p-lang.c (pascal_language_data): Delete.
2083 (pascal_language): Remove references to pascal_language_data.
2084 * rust-lang.c (rust_language_data): Delete.
2085 (rust_language): Remove references to rust_language_data.
2087 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2089 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2091 (ada_language::opcode_print_table): New member function.
2092 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2093 (c_language::opcode_print_table): New member function.
2094 (cplus_language_data): Remove la_op_print_tab initializer.
2095 (cplus_language::opcode_print_table): New member function.
2096 (asm_language_data): Remove la_op_print_tab initializer.
2097 (asm_language::opcode_print_table): New member function.
2098 (minimal_language_data): Remove la_op_print_tab initializer.
2099 (minimal_language::opcode_print_table): New member function.
2100 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2101 (d_language::opcode_print_table): New member function.
2102 * expprint.c (print_subexp_standard): Update call to
2104 (op_string): Likewise.
2105 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2106 (f_language::opcode_print_table): New member function.
2107 * go-lang.c (go_language_data): Remove la_op_print_tab
2109 (go_language::opcode_print_table): New member function.
2110 * language.c (unknown_language_data): Remove la_op_print_tab
2112 (unknown_language::opcode_print_table): New member function.
2113 (auto_language_data): Remove la_op_print_tab initializer.
2114 (auto_language::opcode_print_table): New member function.
2115 * language.h (language_data): Remove la_op_print_tab field.
2116 (language_defn::opcode_print_table): Declare new member function.
2117 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2119 (m2_language::opcode_print_table): New member function.
2120 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2122 (objc_language::opcode_print_table): New member function.
2123 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2125 (opencl_language::opcode_print_table): New member function.
2126 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2128 (pascal_language::opcode_print_table): New member function.
2129 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2131 (rust_language::opcode_print_table): New member function.
2133 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2135 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2136 (ada_language::expression_ops): New member function.
2137 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2138 (c_language::expression_ops): New member function.
2139 (cplus_language_data): Remove la_exp_desc initializer.
2140 (cplus_language::expression_ops): New member function.
2141 (asm_language_data): Remove la_exp_desc initializer.
2142 (asm_language::expression_ops): New member function.
2143 (minimal_language_data): Remove la_exp_desc initializer.
2144 (minimal_language::expression_ops): New member function.
2145 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2146 (d_language::expression_ops): New member function.
2147 * eval.c (evaluate_subexp): Update call to expression_ops.
2148 * expprint.c (print_subexp): Likewise.
2149 (op_name): Likewise.
2150 (dump_subexp_body): Likewise.
2151 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2152 (f_language::expression_ops): New member function.
2153 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2154 (go_language::expression_ops): New member function.
2155 * language.c (language_defn::expression_ops): New function.
2156 (unknown_language_data): Remove la_exp_desc initializer.
2157 (auto_language_data): Likewise.
2158 * language.h (language_data): Remove la_exp_desc field.
2159 (language_defn::expression_ops): Declare new member function.
2160 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2161 (m2_language::expression_ops): New member function.
2162 * objc-lang.c (objc_language_data): Remove la_exp_desc
2164 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2166 (opencl_language::expression_ops): New member function.
2167 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2168 * parse.c (operator_length): Update call to expression_ops.
2169 (exp_iterate): Likewise.
2170 * rust-lang.c (rust_language_data): Remove la_exp_desc
2172 (ruse_language::expression_ops): New member function.
2174 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2176 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2178 (ada_language::varobj_ops): New member function.
2179 * c-lang.c (c_language_data): Remove la_varobj_ops
2181 (cplus_language_data): Likewise.
2182 (cplus_language::varobj_ops): New member function.
2183 (asm_language_data): Remove la_varobj_ops initializer.
2184 (minimal_language_data): Likewise.
2185 * d-lang.c (d_language_data): Likewise.
2186 * f-lang.c (f_language_data): Likewise.
2187 * go-lang.c (go_language_data): Likewise.
2188 * language.c (language_defn::varobj_ops): New function.
2189 (unknown_language_data): Remove la_varobj_ops
2191 (auto_language_data): Likewise.
2192 * language.h (language_data): Remove la_varobj_ops field.
2193 (language_defn::varobj_ops): Declare new member function.
2194 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2195 * objc-lang.c (objc_language_data): Likewise.
2196 * opencl-lang.c (opencl_language_data): Likewise.
2197 * p-lang.c (pascal_language_data): Likewise.
2198 * rust-lang.c (rust_language_data): Likewise.
2199 * varobj.c (varobj_create): Update call to varobj_ops.
2200 * varobj.h (default_varobj_ops): Delete define.
2202 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2204 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2206 * c-lang.c (c_language_data): Likewise.
2207 (c_language::macro_expansion): New member function.
2208 (cplus_language_data): Likewise.
2209 (cplus_language::macro_expansion): New member function.
2210 (asm_language_data): Likewise.
2211 (asm_language::macro_expansion): New member function.
2212 (minimal_language_data): Likewise.
2213 (minimal_language::macro_expansion): New member function.
2214 * d-lang.c (d_language_data): Remove la_macro_expansion
2216 * f-lang.c (f_language_data): Likewise.
2217 * go-lang.c (go_language_data): Likewise.
2218 * language.c (unknown_language_data): Likewise.
2219 (auto_language_data): Likewise.
2220 * language.h (language_data): Remove la_macro_expansion field.
2221 (language_defn::macro_expansion): New member function.
2222 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2224 * objc-lang.c (objc_language_data): Likewise.
2225 (objc_language::macro_expansion): New member function.
2226 * opencl-lang.c (opencl_language_data): Likewise.
2227 (opencl_language::macro_expansion): New member function.
2228 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2230 * rust-lang.c (rust_language_data): Likewise.
2231 * symtab.c (default_collect_symbol_completion_matches_break_on):
2232 Update call to macro_expansion.
2234 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2236 * ada-lang.c (ada_language_data): Remove la_array_ordering
2238 * c-lang.c (c_language_data): Likewise.
2239 (cplus_language_data): Likewise.
2240 (asm_language_data): Likewise.
2241 (minimal_language_data): Likewise.
2242 * d-lang.c (d_language_data): Likewise.
2243 * dwarf2/read.c (read_array_order): Update for call to
2245 * f-lang.c (f_language_data): Remove la_array_ordering
2247 (f_language::array_ordering): New member function.
2248 * go-lang.c (go_language_data): Remove la_array_ordering
2250 * language.c (unknown_language_data): Likewise.
2251 (auto_language_data): Likewise.
2252 * language.h (language_data): Delete la_array_ordering field.
2253 (language_defn::array_ordering): New member function.
2254 * m2-lang.c (m2_language_data): Remove la_array_ordering
2256 * objc-lang.c (objc_language_data): Likewise.
2257 * opencl-lang.c (opencl_language_data): Likewise.
2258 * p-lang.c (pascal_language_data): Likewise.
2259 * rust-lang.c (rust_language_data): Likewise.
2261 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2265 * c-lang.c (c_language_data): Likewise.
2266 (cplus_language_data): Likewise.
2267 (asm_language_data): Likewise.
2268 (minimal_language_data): Likewise.
2269 * d-lang.c (d_language_data): Likewise.
2270 * f-lang.c (f_language_data): Likewise.
2271 (f_language::case_sensitivity): New member function.
2272 * go-lang.c (go_language_data): Remove la_case_sensitivity
2274 * language.c (enum case_mode): Moved here from language.h.
2275 (case_mode): Make static.
2276 (show_case_command): Update for case_sensitivity being a method.
2277 (set_case_command): Likewise.
2278 (set_range_case): Likewise.
2279 (unknown_language_data): Remove la_case_sensitivity initializer.
2280 (auto_language_data): Likewise.
2281 * language.h (case_mode): Delete, move enum declaration to
2283 (language_data): Delete la_case_sensitivity field.
2284 (language_defn::case_sensitivity): New member function.
2285 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2287 * objc-lang.c (objc_language_data): Likewise.
2288 * opencl-lang.c (opencl_language_data): Likewise.
2289 * p-lang.c (pascal_language_data): Likewise.
2290 * rust-lang.c (rust_language_data): Likewise.
2292 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2294 * ada-lang.c (ada_language_data): Remove la_range_check
2296 * c-lang.c (c_language_data): Likewise.
2297 (cplus_language_data): Likewise.
2298 (asm_language_data): Likewise.
2299 (minimal_language_data): Likewise.
2300 * d-lang.c (d_language_data): Likewise.
2301 * f-lang.c (f_language_data): Likewise.
2302 (f_language::range_checking_on_by_default): New member function.
2303 * go-lang.c (go_language_data): Remove la_range_check initializer.
2304 * language.c (enum range_mode): Moved here from language.h.
2305 (range_mode): Made static.
2306 (show_range_command): Update to use
2307 range_checking_on_by_default.
2308 (set_range_command): Likewise.
2309 (set_range_case): Likewise.
2310 (unknown_language_data): Remove la_range_check initializer.
2311 (auto_language_data): Likewise.
2312 * language.h (range_mode): Delete. Enum definition moved to
2314 (language_data): Remove la_range_check field.
2315 (language_defn::range_checking_on_by_default): New member
2317 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2318 (m2_language::range_checking_on_by_default): New member function.
2319 * objc-lang.c (objc_language_data): Remove la_range_check
2321 * opencl-lang.c (opencl_language_data): Likewise.
2322 * p-lang.c (pascal_language_data): Likewise.
2323 (pascal_language::range_checking_on_by_default): New member
2325 * rust-lang.c (rust_language_data): Remove la_range_check
2327 (rust_language::range_checking_on_by_default): New member
2330 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2332 * dwarf2/read.c (dwarf2_physname): Remove special case for
2334 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2337 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2339 * ada-lang.c (ada_language_data): Remove
2340 la_store_sym_names_in_linkage_form_p initializer.
2341 (ada_language::store_sym_names_in_linkage_form_p): New member
2343 * c-lang.c (c_language_data): Remove
2344 la_store_sym_names_in_linkage_form_p initializer.
2345 (c_language::store_sym_names_in_linkage_form_p): New member
2347 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2349 (asm_language_data): Likewise.
2350 (asm_language::store_sym_names_in_linkage_form_p): New member
2352 (minimal_language_data): Remove
2353 la_store_sym_names_in_linkage_form_p initializer.
2354 (minimal_language::store_sym_names_in_linkage_form_p): New member
2356 * d-lang.c (d_language_data): Remove
2357 la_store_sym_names_in_linkage_form_p initializer.
2358 * dwarf2/read.c (dwarf2_physname): Update call to
2359 store_sym_names_in_linkage_form_p.
2360 * f-lang.c (f_language_data): Remove
2361 la_store_sym_names_in_linkage_form_p initializer.
2362 * go-lang.c (go_language_data): Remove
2363 la_store_sym_names_in_linkage_form_p initializer.
2364 * language.c (unknown_language_data): Remove
2365 la_store_sym_names_in_linkage_form_p initializer.
2366 (unknown_language::store_sym_names_in_linkage_form_p): New member
2368 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2370 (auto_language::store_sym_names_in_linkage_form_p): New member
2372 * language.h (language_data): Remove
2373 la_store_sym_names_in_linkage_form_p member variable.
2374 (language_defn::store_sym_names_in_linkage_form_p): New member
2376 * m2-lang.c (m2_language_data): Remove
2377 la_store_sym_names_in_linkage_form_p initializer.
2378 * objc-lang.c (objc_language_data): Likewise.
2379 * opencl-lang.c (opencl_language_data): Likewise.
2380 * p-lang.c (pascal_language_data): Likewise.
2381 * rust-lang.c (rust_language_data): Likewise.
2383 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2385 * ada-lang.c (ada_language_data): Remove string_lower_bound
2387 * c-lang.c (c_language_data): Likewise.
2388 (cplus_language_data): Likewise.
2389 (asm_language_data): Likewise.
2390 (minimal_language_data): Likewise.
2391 * d-lang.c (d_language_data): Likewise.
2392 * f-lang.c (f_language_data): Likewise.
2393 * go-lang.c (go_language_data): Likewise.
2394 * language.c (unknown_language_data): Likewise.
2395 (auto_language_data): Likewise.
2396 * language.h (language_data): Remove string_lower_bound field.
2397 (language_defn::string_lower_bound): New member function.
2398 * m2-lang.c (m2_language_data): Remove string_lower_bound
2400 (m2_language::string_lower_bound): New member function.
2401 * objc-lang.c (objc_language_data): Remove string_lower_bound
2403 * opencl-lang.c (opencl_language_data): Likewise.
2404 * p-lang.c (pascal_language_data): Likewise.
2405 * rust-lang.c (rust_language_data): Likewise.
2406 * valops.c (value_cstring): Update call to string_lower_bound.
2407 (value_string): Likewise.
2408 * value.c (allocate_repeated_value): Likewise.
2410 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2412 * valops.c (value_repeat): Fix incorrect argument name in comment.
2414 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2416 * ada-lang.c (ada_language_data): Remove c_style_arrays
2418 (ada_language::c_style_arrays_p): New member fuction.
2419 * c-lang.c (c_language_data): Remove c_style_arrays
2421 (cplus_language_data): Likewise.
2422 (asm_language_data): Likewise.
2423 (minimal_language_data): Likewise.
2424 * d-lang.c (d_language_data): Likewise.
2425 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2426 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2427 (f_language::c_style_arrays_p): New member function.
2428 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2429 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2430 * language.c (unknown_language_data): Remove c_style_arrays
2432 (auto_language_data): Likewise.
2433 * language.h (language_data): Remove c_style_arrays field.
2434 (language_defn::c_style_arrays_p): New member function.
2435 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2436 (m2_language::c_style_arrays_p): New member function.
2437 * objc-lang.c (objc_language_data): Remove c_style_arrays
2439 * opencl-lang.c (opencl_language_data): Likewise.
2440 * p-lang.c (pascal_language_data): Likewise.
2441 * rust-lang.c (rust_language_data): Likewise.
2442 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2443 and update local variable to a bool.
2444 * valops.c (value_cast): Update call to c_style_arrays_p.
2445 (value_array): Likewise.
2446 * value.c (coerce_array): Likewise.
2448 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2450 * ada-lang.c (ada_language_data): Remove la_language initializer.
2451 * c-lang.c (c_language_data): Likewise.
2452 (cplus_language_data): Likewise.
2453 (asm_language_data): Likewise.
2454 (minimal_language_data): Likewise.
2455 * d-lang.c (d_language_data): Likewise.
2456 * f-lang.c (f_language_data): Likewise.
2457 * go-lang.c (go_language_data): Likewise.
2458 * language.c (unknown_language_data): Likewise.
2459 (auto_language_data): Likewise.
2460 * language.h (language_data): Remove la_language field.
2461 (language_defn::language_defn): Initialise la_language field.
2462 (language_defn::la_language): New member variable.
2463 * m2-lang.c (m2_language_data): Remove la_language field.
2464 * objc-lang.c (objc_language_data): Likewise.
2465 * opencl-lang.c (opencl_language_data): Likewise.
2466 * p-lang.c (pascal_language_data): Likewise.
2467 * rust-lang.c (rust_language_data): Likewise.
2469 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2471 * ada-lang.c (ada_extensions): Delete, moved into
2472 ada_language::filename_extensions.
2473 (ada_language_data): Remove la_filename_extensions initializer.
2474 (ada_language::filename_extensions): New member function.
2475 * c-lang.c (c_extensions): Delete, moved into
2476 c_language::filename_extensions.
2477 (c_language_data): Remove la_filename_extensions initializer.
2478 (c_language::filename_extensions): New member function.
2479 (cplus_extensions): Delete, moved into
2480 cplus_language::filename_extensions.
2481 (cplus_language_data): Remove la_filename_extensions initializer.
2482 (cplus_language::filename_extensions): New member function.
2483 (asm_extensions): Delete, moved into
2484 asm_language::filename_extensions.
2485 (asm_language_data): Remove la_filename_extensions initializer.
2486 (asm_language::filename_extensions): New member function.
2487 (minimal_language_data): Remove la_filename_extensions
2489 * d-lang.c (d_extensions): Delete, moved into
2490 d_language::filename_extensions.
2491 (d_language_data): Remove la_filename_extensions initializer.
2492 (d_language::filename_extensions): New member function.
2493 * f-lang.c (f_extensions): Delete, moved into
2494 f_language::filename_extensions.
2495 (f_language_data): Remove la_filename_extensions initializer.
2496 (f_language::filename_extensions): New member function.
2497 * go-lang.c (go_language_data): Remove la_filename_extensions
2499 * language.c (add_set_language_command): Update now that
2500 filename_extensions returns a vector.
2501 (unknown_language_data): Remove la_filename_extensions
2503 (auto_language_data): Likewise.
2504 * language.h (language_data): Remove la_filename_extensions field.
2505 (language_defn::filename_extensions): New member function.
2506 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2508 * objc-lang.c (objc_extensions): Delete, moved into
2509 objc_language::filename_extensions.
2510 (objc_language_data): Remove la_filename_extensions initializer.
2511 (objc_language::filename_extensions): New member function.
2512 * opencl-lang.c (opencl_language_data): Remove
2513 la_filename_extensions initializer.
2514 * p-lang.c (pascal_extensions): Delete, moved into
2515 pascal_language::filename_extensions.
2516 (pascal_language_data): Remove la_filename_extensions initializer.
2517 (pascal_language::filename_extensions): New member function.
2518 * rust-lang.c (rust_extensions): Delete, moved into
2519 rust_language::filename_extensions.
2520 (rust_language_data): Remove la_filename_extensions initializer.
2521 (rust_language::filename_extensions): New member function.
2522 * symfile.c (add_filename_language): Add new assert.
2524 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2526 * ada-lang.c (ada_language_data): Remove la_name and
2527 la_natural_name initializers.
2528 (ada_language::name): New member function.
2529 (ada_language::natural_name): New member function.
2530 * c-lang.c (c_language_data): Remove la_name and
2531 la_natural_name initializers.
2532 (c_language::name): New member function.
2533 (c_language::natural_name): New member function.
2534 (cplus_language_data): Remove la_name and
2535 la_natural_name initializers.
2536 (cplus_language::name): New member function.
2537 (cplus_language::natural_name): New member function.
2538 (asm_language_data): Remove la_name and
2539 la_natural_name initializers.
2540 (asm_language::name): New member function.
2541 (asm_language::natural_name): New member function.
2542 (minimal_language_data): Remove la_name and
2543 la_natural_name initializers.
2544 (minimal_language::name): New member function.
2545 (minimal_language::natural_name): New member function.
2546 * compile/compile.c (compile_to_object): Update call to
2547 lanugage_defn::name.
2548 * d-lang.c (d_language_data): Remove la_name and
2549 la_natural_name initializers.
2550 (d_language::name): New member function.
2551 (d_language::natural_name): New member function.
2552 * expprint.c (print_subexp_standard): Update call to
2553 language_defn::name.
2554 (dump_raw_expression): Likewise
2555 (dump_prefix_expression): Likewise.
2556 * f-lang.c (f_language_data): Remove la_name and
2557 la_natural_name initializers.
2558 (f_language::name): New member function.
2559 (f_language::natural_name): New member function.
2560 * go-lang.c (go_language_data): Remove la_name and
2561 la_natural_name initializers.
2562 (go_language::name): New member function.
2563 (go_language::natural_name): New member function.
2564 * language.c (show_language_command): Update call to
2565 language_defn::name.
2566 (set_language_command): Likewise.
2567 (language_enum): Likewise.
2568 (language_str): Likewise.
2569 (add_set_language_command): Likewise, use
2570 language_defn::natural_name in the doc string.
2571 (unknown_language_data): Remove la_name and
2572 la_natural_name initializers.
2573 (unknown_language::name): New member function.
2574 (unknown_language::natural_name): New member function.
2575 (auto_language_data): Remove la_name and
2576 la_natural_name initializers.
2577 (auto_language::name): New member function.
2578 (auto_language::natural_name): New member function.
2579 (language_lookup_primitive_type_as_symbol): Update call to
2580 language_defn::name.
2581 * language.h (language_data): Remove la_name and la_natural_name
2583 (language_defn::name): New member function.
2584 (language_defn::natural_name): New member function.
2585 * m2-lang.c (m2_language_data): Remove la_name and
2586 la_natural_name initializers.
2587 (m2_language::name): New member function.
2588 (m2_language::natural_name): New member function.
2589 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2590 language_defn::natural_name.
2591 * objc-lang.c (objc_language_data): Remove la_name and
2592 la_natural_name initializers.
2593 (objc_language::name): New member function.
2594 (objc_language::natural_name): New member function.
2595 * opencl-lang.c (opencl_language_data): Remove la_name and
2596 la_natural_name initializers.
2597 (opencl_language::name): New member function.
2598 (opencl_language::natural_name): New member function.
2599 * p-lang.c (pascal_language_data): Remove la_name and
2600 la_natural_name initializers.
2601 (pascal_language::name): New member function.
2602 (pascal_language::natural_name): New member function.
2603 * rust-lang.c (rust_language_data): Remove la_name and
2604 la_natural_name initializers.
2605 (rust_language::name): New member function.
2606 (rust_language::natural_name): New member function.
2607 * symtab.c (lookup_language_this): Update call to
2608 language_defn::name.
2610 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2612 * ada-lang.c (ada_language_data): Remove la_name_of_this
2614 * ax-gdb.c (gen_expr): Update call to name_of_this.
2615 * c-exp.y (classify_name): Likewise.
2616 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2617 (cplus_language_data): Likewise.
2618 (cplus_language::name_of_this): New member function.
2619 (asm_language_data): Remove la_name_of_this initializer.
2620 (minimal_language_data): Likewise.
2621 * d-lang.c (d_language_data): Likewise.
2622 (d_language::name_of_this): New member function.
2623 * expprint.c (print_subexp_standard): Update call to name_of_this.
2624 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2625 * go-lang.c (go_language_data): Likewise.
2626 * language.c (unknown_language_data): Likewise.
2627 (unknown_language::name_of_this): New member function.
2628 (auto_language_data): Remove la_name_of_this initializer.
2629 (auto_language::name_of_this): New member function.
2630 * language.h (language_data): Delete la_name_of_this member
2632 (language_defn::name_of_this): New member function.
2633 * m2-lang.c (m2_language_data): Remove la_name_of_this
2635 * objc-lang.c (objc_language_data): Likewise.
2636 (objc_language::name_of_this): New member function.
2637 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2639 * p-lang.c (pascal_language_data): Likewise.
2640 (pascal_language::name_of_this): New member function.
2641 * rust-lang.c (rust_language_data): Remove la_name_of_this
2643 * symtab.c (lookup_language_this): Update call to name_of_this.
2644 (lookup_symbol_aux): Likewise.
2645 * valops.c (value_of_this): Likewise.
2647 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2649 * ada-lang.c (ada_language_data): Remove
2650 la_struct_too_deep_ellipsis initializer.
2651 (ada_language::struct_too_deep_ellipsis): New member function.
2652 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2654 (cplus_language_data): Likewise.
2655 (asm_language_data): Likewise.
2656 (minimal_language_data): Likewise.
2657 * cp-valprint.c (cp_print_value): Update call to
2658 struct_too_deep_ellipsis.
2659 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2661 * f-lang.c (f_language_data): Likewise.
2662 (f_language::struct_too_deep_ellipsis): New member function.
2663 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2665 * language.c (unknown_language_data): Likewise.
2666 (auto_language_data): Likewise.
2667 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2669 (language_defn::struct_too_deep_ellipsis): New member function.
2670 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2672 * objc-lang.c (objc_language_data): Likewise.
2673 * opencl-lang.c (opencl_language_data): Likewise.
2674 * p-lang.c (pascal_language_data): Likewise.
2675 * rust-lang.c (rust_language_data): Likewise.
2676 * valprint.c (val_print_check_max_depth): Update call to
2677 struct_too_deep_ellipsis.
2679 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2681 * MAINTAINERS (Write After Approval): Add myself.
2683 2020-09-15 Tom Tromey <tom@tromey.com>
2685 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2688 2020-09-15 Tom Tromey <tom@tromey.com>
2690 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2691 and TYPE_CODE_METHODPTR cases.
2692 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2693 (c_value_print_inner): Update.
2694 * valprint.c (generic_value_print_memberptr): New function, from
2695 c_value_print_memberptr.
2696 (generic_value_print): Use it. Call cplus_print_method_ptr.
2698 2020-09-15 Tom Tromey <tromey@adacore.com>
2700 * python/python-internal.h (PyInt_FromLong): Remove define.
2701 * python/py-value.c (convert_value_from_python): Use
2702 gdb_py_object_from_longest.
2703 * python/py-type.c (typy_get_code): Use
2704 gdb_py_object_from_longest.
2705 * python/py-symtab.c (salpy_get_line): Use
2706 gdb_py_object_from_longest.
2707 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2708 gdb_py_object_from_longest.
2709 * python/py-record.c (recpy_gap_reason_code): Use
2710 gdb_py_object_from_longest.
2711 * python/py-record-btrace.c (recpy_bt_insn_size)
2712 (recpy_bt_func_level, btpy_list_count): Use
2713 gdb_py_object_from_longest.
2714 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2715 gdb_py_object_from_longest. Fix error handling.
2716 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2717 gdb_py_object_from_longest.
2718 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2719 gdb_py_object_from_longest.
2720 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2721 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2722 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2724 2020-09-15 Tom Tromey <tromey@adacore.com>
2726 * python/python.c (gdbpy_parameter_value): Use
2727 gdb_py_object_from_ulongest.
2729 2020-09-15 Tom Tromey <tromey@adacore.com>
2731 * python/py-infevents.c (create_register_changed_event_object):
2732 Use gdb_py_object_from_longest.
2733 * python/py-exitedevent.c (create_exited_event_object): Use
2734 gdb_py_object_from_longest.
2736 2020-09-15 Tom Tromey <tromey@adacore.com>
2738 * python/python.c (gdbpy_parameter_value): Use
2739 gdb_py_object_from_longest.
2740 * python/py-type.c (convert_field, typy_range): Use
2741 gdb_py_object_from_longest.
2742 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2743 gdb_py_object_from_longest.
2744 * python/py-lazy-string.c (stpy_get_length): Use
2745 gdb_py_object_from_longest.
2746 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2747 gdb_py_object_from_longest.
2748 * python/py-infevents.c (create_memory_changed_event_object): Use
2749 gdb_py_object_from_longest.
2750 * python/py-inferior.c (infpy_get_num): Use
2751 gdb_py_object_from_longest.
2752 (infpy_get_pid): Likewise.
2754 2020-09-15 Tom Tromey <tromey@adacore.com>
2756 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2758 * python/py-value.c (valpy_long): Use
2759 gdb_py_object_from_ulongest.
2760 * python/py-symtab.c (salpy_get_pc): Use
2761 gdb_py_object_from_ulongest.
2762 (salpy_get_last): Likewise.
2763 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2764 gdb_py_object_from_ulongest.
2765 * python/py-lazy-string.c (stpy_get_address): Use
2766 gdb_py_object_from_ulongest.
2767 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2768 * python/py-arch.c (archpy_disassemble): Use
2769 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2772 2020-09-15 Tom Tromey <tromey@adacore.com>
2774 * python/python-internal.h (gdb_py_long_from_longest): Remove
2776 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2777 * python/py-type.c (convert_field, typy_get_sizeof): Use
2778 gdb_py_object_from_longest.
2779 * python/py-record-btrace.c (btpy_list_index): Use
2780 gdb_py_object_from_longest.
2782 2020-09-15 Tom Tromey <tromey@adacore.com>
2784 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2785 * python/py-record.c (recpy_element_number): Use
2786 gdb_py_object_from_longest.
2787 (recpy_gap_number): Likewise.
2789 2020-09-15 Tom Tromey <tromey@adacore.com>
2791 * top.c (ui::ui): Update.
2792 (highest_ui_num): Remove.
2793 * top.h (struct ui) <num>: Remove.
2795 2020-09-15 Tom Tromey <tromey@adacore.com>
2797 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2798 * ui-style.c (ansi_regex_text): Now array.
2799 * rust-exp.y (number_regex_text): Now array.
2800 * linespec.c (linespec_quote_characters): Now array.
2801 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2804 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2806 * debuginfod-support.c (debuginfod_client_deleter): New.
2807 (debuginfod_client_up): New.
2808 (debuginfod_init): Return debuginfod_client_up.
2809 (debuginfod_source_query): Adjust.
2810 (debuginfod_debuginfo_query): Adjust.
2812 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2814 * debuginfod-support.c (debuginfod_source_query): Use
2815 make_unique_xstrdup.
2817 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2819 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2820 with `type::instance_flags`.
2822 2020-09-14 Michael Mullin <masmullin@gmail.com>
2824 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2825 Remove baton parameter.
2827 2020-09-14 Pedro Alves <pedro@palves.net>
2829 * Makefile.in (SELFTESTS_SRCS): Add
2830 unittests/enum-flags-selftests.c.
2831 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2832 btrace_function_flags instead of enum btrace_function_flag.
2833 * compile/compile-c-types.c (convert_qualified): Use
2835 * compile/compile-cplus-symbols.c (convert_one_symbol)
2836 (convert_symbol_bmsym):
2837 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2838 (compile_cplus_convert_struct_or_union_methods)
2839 (compile_cplus_instance::convert_qualified_base):
2840 * go-exp.y (parse_string_or_char): Add cast to int.
2841 * unittests/enum-flags-selftests.c: New file.
2842 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2843 type to btrace_thread_flags from btrace_thread_flag.
2844 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2845 local's type to btrace_thread_flags from btrace_thread_flag. Add
2848 2020-09-14 Pedro Alves <pedro@palves.net>
2850 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2851 * gdbtypes.c (address_space_name_to_int): Rename to ...
2852 (address_space_name_to_type_instance_flags): ... this.
2853 (address_space_int_to_name): Rename to ...
2854 (address_space_type_instance_flags_to_name): ... this.
2855 * gdbtypes.h (address_space_name_to_int): Rename to ...
2856 (address_space_name_to_type_instance_flags): ... this.
2857 (address_space_int_to_name): Rename to ...
2858 (address_space_type_instance_flags_to_name): ... this.
2859 * type-stack.c (type_stack::insert): Adjust to rename.
2860 * type-stack.h (type_stack::insert): Likewise.
2862 2020-09-14 Pedro Alves <pedro@palves.net>
2863 Andrew Burgess <andrew.burgess@embecosm.com>
2865 * avr-tdep.c (avr_address_class_type_flags): Return
2866 type_instance_flags.
2867 (avr_address_class_type_flags_to_name): Take a
2868 type_instance_flags.
2869 (avr_address_class_name_to_type_flags): Return bool and take a
2870 type_instance_flags.
2871 * d-lang.c (build_d_types): Use type::set_instance_flags.
2872 * ft32-tdep.c (ft32_address_class_type_flags): Return
2873 type_instance_flags.
2874 (ft32_address_class_type_flags_to_name): Take a
2875 type_instance_flags.
2876 (ft32_address_class_name_to_type_flags): Return bool and take a
2877 type_instance_flags.
2878 (ft32_gdbarch_init): Use type::set_instance_flags.
2879 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2880 * gdbarch.h, gdbarch.c: Regenerate.
2881 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2882 (address_class_name_to_type_flags): Use type_instance_flags and
2884 * gdbtypes.c (address_space_name_to_int)
2885 (address_space_int_to_name, make_qualified_type): Use
2886 type_instance_flags.
2887 (make_qualified_type): Use type_instance_flags and
2888 type::set_instance_flags.
2889 (make_type_with_address_space, make_cv_type, make_vector_type)
2890 (check_typedef): Use type_instance_flags.
2891 (recursive_dump_type): Cast type_instance_flags to unsigned for
2893 (copy_type_recursive): Use type::set_instance_flags.
2894 (gdbtypes_post_init): Use type::set_instance_flags.
2895 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2896 <m_instance_flags>: ... this.
2897 <instance_flags, set_instance_flags>: New methods.
2898 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2899 (SET_TYPE_INSTANCE_FLAGS): New.
2900 (address_space_name_to_int, address_space_int_to_name)
2901 (make_type_with_address_space): Pass flags using
2902 type_instance_flags instead of int.
2903 * stabsread.c (cleanup_undefined_types_noname): Use
2904 type::set_instance_flags.
2905 * s390-tdep.c (s390_address_class_type_flags): Return
2906 type_instance_flags.
2907 (s390_address_class_type_flags_to_name): Take a
2908 type_instance_flags.
2909 (s390_address_class_name_to_type_flags): Return bool and take a
2910 type_instance_flags.
2911 * type-stack.c (type_stack::follow_types): Use
2912 type_instance_flags.
2913 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2915 2020-09-14 Tom Tromey <tromey@adacore.com>
2917 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2918 * x86-tdep.c (x86_is_thunk_register_name)
2919 (x86_in_indirect_branch_thunk): Update.
2920 * sparc64-tdep.c (sparc64_fpu_register_names)
2921 (sparc64_cp0_register_names, sparc64_register_names)
2922 (sparc64_pseudo_register_names): Now const.
2923 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2924 cp0_registers_num>: Now const.
2925 * sparc-tdep.c (sparc_core_register_names)
2926 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2927 (sparc32_pseudo_register_names): Now const.
2928 (validate_tdesc_registers): Update.
2929 * rust-lang.c (rust_extensions): Now const.
2930 * p-lang.c (p_extensions): Now const.
2931 * objc-lang.c (objc_extensions): Now const.
2932 * nto-tdep.c (nto_thread_state_str): Now const.
2933 * moxie-tdep.c (moxie_register_names): Now const.
2934 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2936 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2937 (mips_linux_reg_names): Now const.
2938 (mips_gdbarch_init): Update.
2939 * microblaze-tdep.c (microblaze_register_names): Now const.
2940 * m68k-tdep.c (m68k_register_names): Now const.
2941 * m32r-tdep.c (m32r_register_names): Now const.
2942 * ia64-tdep.c (ia64_register_names): Now const.
2943 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2944 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2945 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2946 ymm_avx512_register_names, pkeys_register_names>: Now const.
2947 * i386-tdep.c (i386_register_names, i386_zmm_names)
2948 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2949 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2950 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2951 * f-lang.c (f_extensions): Now const.
2952 * d-lang.c (d_extensions): Now const.
2953 * csky-tdep.c (csky_register_names): Now const.
2954 * charset.c (default_charset_names, charset_enum): Now const.
2955 (_initialize_charset): Update.
2956 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2958 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2959 (bsd_uthread_solib_loaded): Update.
2960 (bsd_uthread_state): Now const.
2961 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2962 (amd64_ymm_avx512_names, amd64_ymmh_names)
2963 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2964 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2965 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2966 (amd64_dword_names): Now const.
2967 * agent.c (can_use_agent_enum): Now const.
2968 * ada-tasks.c (task_states, long_task_states): Now const.
2969 * ada-lang.c (known_runtime_file_name_patterns)
2970 (known_auxiliary_function_name_patterns, attribute_names)
2971 (standard_exc, ada_extensions): Now const.
2973 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2975 * bcache.h (struct bcache) <bcache>: Remove constructor.
2976 <m_hash_function, m_compare_function>: Remove.
2977 <~bcache>: Make virtual.
2978 <compare>: Remove static method, introduce virtual method.
2979 <default_hash>: Remove.
2980 <hash>: New virtual method.
2981 * bcache.c (bcache::expand_hash_table): Update.
2982 (bcache::insert): Update.
2983 (bcache::hash): New.
2984 (bcache::compare): Update comment and parameter names.
2985 * gdbtypes.c (types_deeply_equal): Update.
2986 * psymtab.h (struct psymbol_bcache): New struct.
2987 (class psymtab_storage) <psymtab_storage>: Make default.
2988 <psymbol_cache>: Change type to psymbol_bcache.
2989 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2990 (psymbol_hash): Change to...
2991 (psymbol_bcache::hash): ... this.
2992 (psymbol_compare): Change to...
2993 (psymbol_bcache::compare): ... this.
2995 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2997 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2998 checking for initial lwp.
3000 2020-09-14 Tom Tromey <tromey@adacore.com>
3002 * m68k-tdep.c (m68k_extract_return_value): Use
3003 pointer_result_regnum.
3004 (m68k_store_return_value): Likewise.
3005 (m68k_reg_struct_return_p): Handle vectors and arrays.
3006 (m68k_return_value): Handle arrays.
3007 (m68k_svr4_return_value): Fix single-element aggregate handling.
3008 Handle long double. Adjust for embedded ABI.
3009 (m68k_svr4_init_abi): Set pointer_result_regnum.
3010 (m68k_embedded_init_abi): New function.
3011 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3012 (m68k_osabi_sniffer): New function.
3013 (_initialize_m68k_tdep): Register osabi sniffer.
3014 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3017 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3019 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3020 with gdb::unique_xmalloc_ptr<char>.
3022 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3024 * xml-support.h (xml_fetch_another): Change type to be a
3026 (xml_process_xincludes): Remove baton parameter.
3027 (xml_fetch_content_from_file): Change baton parameter to
3029 * xml-support.c (struct xinclude_parsing_data)
3030 <xinclude_parsing_data>: Remove baton parameter.
3031 <fetcher_baton>: Remove.
3032 (xinclude_start_include): Adjust.
3033 (xml_process_xincludes): Adjust.
3034 (xml_fetch_content_from_file): Replace baton parameter with
3036 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3037 (xml_init_syscalls_info): Use a lambda.
3038 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3039 (file_read_description_xml): Use a lambda.
3040 (fetch_available_features_from_target): Change baton parameter
3042 (target_read_description_xml): Use a lambda.
3043 (target_fetch_description_xml): Use a lambda.
3044 (string_read_description_xml): Update.
3046 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3048 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3049 uses with type::endianity_is_not_default.
3051 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3053 * gdbtypes.h (struct type) <endianity_is_not_default,
3054 set_endianity_is_not_default>: New methods.
3055 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3056 type::endianity_is_not_default, change all write call sites to
3057 use type::set_endianity_is_not_default.
3059 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3061 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3062 uses with type::is_fixed_instance.
3064 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3066 * gdbtypes.h (struct type) <is_fixed_instance,
3067 set_is_fixed_instance>: New methods.
3068 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3069 write call sites to use type::set_is_fixed_instance.
3071 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3073 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3074 uses with type::is_gnu_ifunc.
3076 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3078 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3079 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3080 use type::set_is_gnu_ifunc.
3082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3084 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3085 uses with type::stub_is_supported.
3087 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3089 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3090 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3091 use type::set_stub_is_supported.
3093 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3095 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3096 uses with type::is_vector.
3098 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3100 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3101 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3102 use type::set_is_vector.
3104 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3106 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3107 uses with type::has_varargs.
3109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3111 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3112 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3113 use type::set_has_varargs.
3115 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3117 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3118 uses with type::is_prototyped.
3120 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3122 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3124 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3125 call sites to use type::set_is_prototyped.
3127 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3129 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3130 uses with type::target_is_stub.
3132 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3134 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3136 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3137 sites to use type::set_target_is_stub.
3139 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3141 * gdbtypes.h (TYPE_STUB): Remove, replace all
3142 uses with type::is_stub.
3144 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3146 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3147 (TYPE_STUB): Use type::is_stub, change all write call sites to
3148 use type::set_is_stub.
3150 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3152 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3153 type::has_no_signedness.
3155 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3157 * gdbtypes.h (struct type) <has_no_signedness,
3158 set_has_no_signedness>: New methods.
3159 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3160 call sites to use type::set_has_no_signedness.
3162 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3164 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3167 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3169 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3171 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3172 sites to use type::set_is_unsigned.
3174 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3175 Adam Renquinha <arenquinha@cimeq.qc.ca>
3177 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3178 pointer and stack frame offset when unwinding.
3180 2020-09-13 Pedro Alves <pedro@palves.net>
3182 * NEWS: Document "-break-insert --qualified".
3183 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3185 2020-09-13 Pedro Alves <pedro@palves.net>
3187 * linespec.c (classify_mtype, compare_msyms): Delete.
3188 (search_minsyms_for_name): Remove classification logic. Instead
3189 filter out trampoline symbols if we also found an external
3190 function of the same name.
3192 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3194 * NEWS: Create a new section for the next release branch.
3195 Rename the section of the current branch, now that it has
3198 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3200 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3201 * version.in: Bump version to 11.0.50.DATE-git.
3203 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3205 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3207 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3208 Felix Willgerodt <Felix.Willgerodt@intel.com>
3210 * gdbarch.sh: Added bfloat16 type.
3211 * gdbarch.c: Regenerated.
3212 * gdbarch.h: Regenerated.
3213 * gdbtypes.c (floatformats_bfloat16): New struct.
3214 (gdbtypes_post_init): Add builtin_bfloat16.
3215 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3216 (floatformats_bfloat16): New struct.
3217 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3218 (i386_ymm_type): Add field "v16_bfloat16"
3219 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3220 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3221 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3222 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3223 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3224 * features/i386/64bit-avx512.c: Regenerated.
3225 * features/i386/64bit-sse.xml: Add bfloat16 type.
3226 * features/i386/64bit-sse.c: Regenerated.
3228 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3230 * i386-tdep.c (i386_zmm_type): Fix field names.
3231 (i386_ymm_type): Fix field names.
3233 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3235 * breakpoint.c: Fix typo in the help message of the
3236 "set breakpoint condition-evaluation" command.
3238 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3240 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3241 * (nbsd_nat_target::pid_to_exec_file)
3242 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3243 (nbsd_nat_target::post_startup_inferior)
3244 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3245 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3246 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3247 * (nbsd_thread_lister): Remove.
3249 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3251 * fork-inferior.c (startup_inferior): Avoid double free.
3253 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3255 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3256 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3258 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3260 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3261 * netbsd-nat.c: Include <sys/ptrace.h>.
3262 * (netbsd_nat::enable_proc_events): Add.
3264 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3266 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3267 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3268 (netbsd_nat::for_each_thread): Add.
3269 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3270 "gdbsupport/common-debug.h".
3271 * (netbsd_nat::netbsd_thread_lister)
3272 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3273 (netbsd_nat::for_each_thread): Add.
3275 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3277 * netbsd-nat.h: Include <unistd.h>.
3278 * (netbsd_nat::pid_to_exec_file): Add.
3279 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3280 * (netbsd_nat::pid_to_exec_file) Add.
3282 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3284 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3286 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3288 * netbsd-nat.h: New file.
3289 * netbsd-nat.c: Likewise.
3291 2020-09-09 Tom Tromey <tromey@adacore.com>
3293 * ada-lang.c (remove_extra_symbols): Do not increment when
3296 2020-09-08 Tom Tromey <tromey@adacore.com>
3298 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3300 2020-09-08 Tom Tromey <tromey@adacore.com>
3303 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3304 (gdb_bfd_init_data): New function.
3305 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3307 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3309 * infrun.c (fetch_inferior_event): Use
3310 `switch_to_target_no_thread` to switch the target.
3312 2020-09-06 Tom Tromey <tom@tromey.com>
3314 * symfile.h (dwarf2_free_objfile): Don't declare.
3316 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3318 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3319 to match 16 byte real/complex type generated by Flang compiler.
3321 2020-09-03 Tom de Vries <tdevries@suse.de>
3324 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3325 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3327 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3329 * maint.c (index_digits): New function.
3330 (struct maint_print_section_data): Remove.
3331 (print_bfd_section_info): Remove print_data parameter, add arg
3333 (print_objfile_section_info): Likewise.
3334 (print_bfd_section_info_maybe_relocated): Likewise (plus
3336 (maintenance_info_sections): Adjust calls.
3338 2020-09-02 Tom Tromey <tromey@adacore.com>
3340 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3342 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3344 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3346 * bcache.h (struct bcache) <insert>: Change type of `added` to
3348 * bcache.c (bcache::insert): Likewise.
3349 * gdbtypes.c (check_types_worklist): Adjust.
3350 * psymtab.c (add_psymbol_to_bcache): Adjust.
3352 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3354 * corelow.c (unordered_set): Include.
3355 (class core_target): Add field 'm_core_unavailable_mappings'.
3356 (core_target::build_file_mappings): Print only one warning
3357 per inaccessible file. Add unavailable/broken mappings
3358 to m_core_unavailable_mappings.
3359 (core_target::xfer_partial): Call...
3360 (core_target::xfer_memory_via_mappings): New method.
3362 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3364 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3367 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3369 * dwarf2/read.c (struct field_info): Fix indentation.
3371 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3373 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3374 ordering in comment.
3375 * frame.c (frame_id_eq): Fix indentation.
3377 2020-08-31 Scott Linder <scott@scottlinder.com>
3378 Simon Marchi <simon.marchi@efficios.com>
3380 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3381 inline frame ids in outer frame.
3383 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3385 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3386 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3387 (outer_frame_id): Use FID_STACK_OUTER instead of
3389 (frame_id_p): Don't check for outer_frame_id.
3391 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3393 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3394 regnum/frame in value. Call allocate_value_lazy.
3395 * frame.c (frame_unwind_register_value): Use
3396 val_print_not_saved.
3398 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3400 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3402 2020-08-29 Pedro Alves <pedro@palves.net>
3404 * progspace.c (print_program_space): Use all_inferiors. Switch to
3405 the inferior before calling target_pid_to_str.
3407 2020-08-28 Tom Tromey <tom@tromey.com>
3409 * xcoffread.c (xcoff_end_psymtab): Update comment.
3410 * dbxread.c (dbx_end_psymtab): Update comment.
3412 2020-08-28 Tom de Vries <tdevries@suse.de>
3415 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3417 (create_breakpoint): Same.
3418 (base_breakpoint_decode_location): Same.
3419 (bkpt_create_sals_from_location): Same.
3420 (bkpt_decode_location): Same.
3421 (bkpt_probe_create_sals_from_location): Same.
3422 (bkpt_probe_decode_location): Same.
3423 (tracepoint_create_sals_from_location): Same.
3424 (tracepoint_decode_location): Same.
3425 (tracepoint_probe_decode_location): Same.
3426 (strace_marker_create_sals_from_location): Same.
3427 (strace_marker_decode_location): Same.
3428 (create_sals_from_location_default): Same.
3429 (decode_location_default): Same.
3430 * breakpoint.h (struct breakpoint_ops): Same.
3431 (create_breakpoint): Same.
3432 * linespec.h (decode_line_full): Same.
3433 * linespec.c (decode_line_full): Same. Throw error if
3434 result.size () == 0.
3436 2020-08-27 Pedro Alves <pedro@palves.net>
3439 * breakpoint.c (until_break_fsm) <location_breakpoint,
3440 caller_breakpoint>: Delete fields.
3441 <breakpoints>: New field.
3442 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3443 two individual breakpoints.
3444 (until_break_fsm::should_stop): Loop over breakpoints in the
3446 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3448 (until_break_command): Handle location expanding into multiple
3451 2020-08-27 Pedro Alves <pedro@palves.net>
3454 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3455 bp_until breakpoints user-specified locations. Update intro
3458 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3460 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3461 gdb_bfd_sections): New.
3462 * maint.c (print_bfd_section_info): Change param type to
3463 maint_print_section_data.
3464 (print_objfile_section_info): Likewise.
3465 (print_bfd_section_info_maybe_relocated): Likewise.
3466 (maintenance_info_sections): Use gdb_bfd_sections.
3468 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3470 * MAINTAINERS: Add ARC target and maintainer.
3472 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3474 * configure.tgt: ARC support for GNU/Linux.
3475 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3476 * arc-linux-tdep.c: New file.
3477 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3478 * arc-tdep.c (arc_write_pc): Use it.
3480 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3482 * arc-tdep.c (arc_check_for_hardware_loop): New.
3483 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3485 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3487 * arc-tdep.h: Include "gdbarch.h".
3489 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3492 (arc_gdbarch_features): New class to stir the selection of target XML.
3493 (arc_create_target_description): Use FEATURES to choose XML target.
3494 (arc_lookup_target_description): Use arc_create_target_description
3495 to create _new_ target descriptions or return the already created
3496 ones if the FEATURES is the same.
3497 * arch/arc.c: Implementation of prototypes described above.
3498 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3499 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3500 * arc-tdep.c (*_feature_name): Make feature names consistent.
3501 (arc_register_feature): A new struct to hold information about
3502 registers of a particular target/feature.
3503 (arc_check_tdesc_feature): Check if XML provides registers in
3504 compliance with ARC_REGISTER_FEATURE structs.
3505 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3506 (determine_*_reg_feature_set): Which feature name to look for.
3507 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3508 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3509 to expected ISA enums to be used in arc_gdbarch_features structs.
3510 * features/Makefile (FEATURE_XMLFILES): Add new files.
3511 * gdb/features/arc/v1-aux.c: New file.
3512 * gdb/features/arc/v1-aux.xml: Likewise.
3513 * gdb/features/arc/v1-core.c: Likewise.
3514 * gdb/features/arc/v1-core.xml: Likewise.
3515 * gdb/features/arc/v2-aux.c: Likewise.
3516 * gdb/features/arc/v2-aux.xml: Likewise.
3517 * gdb/features/arc/v2-core.c: Likewise.
3518 * gdb/features/arc/v2-core.xml: Likewise.
3519 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3521 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3522 Andrew Burgess <andrew.burgess@embecosm.com>
3525 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3526 an assert. Remove single element array indexing pattern as the
3527 MULTI_SUBSCRIPT support will handle this case too.
3529 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3531 * value.h (valprint_check_validity): Move declaration from
3533 * valprint.h (valprint_check_validity): ... to here.
3535 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3537 * debug.h: New file.
3538 * debug.c (debug_prefixed_vprintf): New function.
3539 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3540 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3542 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3544 * infrun.h (infrun_debug_printf_1): New function declaration.
3545 (infrun_debug_printf): New macro.
3546 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3548 (infrun_debug_printf): New function.
3549 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3550 (handle_jit_event): Likewise.
3552 2020-08-21 Mark Wielaard <mark@klomp.org>
3554 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3556 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3558 * frame.c (enum class frame_id_status): New.
3559 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3560 (fprintf_frame): Update.
3561 (compute_frame_id): Set frame id status to "computing" on entry.
3562 Set it back to "not_computed" on failure and to "computed" on
3564 (get_frame_id): Assert the frame id is not being computed.
3565 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3566 (create_new_frame): Likewise.
3567 (frame_cleanup_after_sniffer): Update assert.
3569 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3571 * regcache.c (pid_ptid_regcache_map): New type.
3572 (target_ptid_regcache_map): Remove.
3573 (target_pid_ptid_regcache_map): New type.
3574 (regcaches): Change type to target_pid_ptid_regcache_map.
3575 (get_thread_arch_aspace_regcache): Update.
3576 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3578 (regcaches_size): Update.
3579 (regcache_count): Update.
3580 (registers_changed_ptid_target_pid_test): New.
3581 (_initialize_regcache): Register new test.
3583 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3585 * regcache.c (regcache_count): New.
3586 (struct regcache_test_data): New.
3587 (regcache_test_data_up): New.
3588 (populate_regcaches_for_test): New.
3589 (regcaches_test): Remove.
3590 (get_thread_arch_aspace_regcache_test): New.
3591 (registers_changed_ptid_all_test): New.
3592 (registers_changed_ptid_target_test): New.
3593 (registers_changed_ptid_target_ptid_test): New.
3594 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3595 (_initialize_regcache): Register new tests.
3597 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3599 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3600 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3601 gdbarch and aspace parameter. Use current inferior's aspace.
3602 Validate regcache's arch value.
3603 (regcaches_test): Update.
3605 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3607 * regcache.c (regcaches_test): Call registers_changed.
3609 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3611 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3613 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3615 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3616 to find the end of prologue for flang compiled binaries.
3617 * arm-tdep.c (arm_skip_prologue): Likewise.
3618 * i386-tdep.c (i386_skip_prologue): Likewise.
3619 * producer.c (producer_is_llvm): New function.
3620 (producer_parsing_tests): Added new tests for clang/flang.
3621 * producer.h (producer_is_llvm): New declaration.
3623 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3625 * linux-nat.c (linux_nat_debug_printf): New function.
3626 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3628 2020-08-18 Aaron Merey <amerey@redhat.com>
3630 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3631 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3632 (CLIBS): Add DEBUGINFOD_LIBS.
3634 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3636 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3639 2020-08-17 Tom Tromey <tromey@adacore.com>
3641 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3642 ada_get_decoded_value returns NULL.
3644 2020-08-17 Tom Tromey <tromey@adacore.com>
3646 * python/py-inferior.c (infpy_search_memory): Use
3647 gdb_py_object_from_ulongest.
3648 * python/py-infevents.c (create_inferior_call_event_object)
3649 (create_memory_changed_event_object): Use
3650 gdb_py_object_from_ulongest.
3651 * python/py-linetable.c (ltpy_entry_get_pc): Use
3652 gdb_py_object_from_ulongest.
3654 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3656 * loc.c (class symbol_needs_eval_context): Fix indentation.
3658 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3660 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3663 2020-08-17 Tom de Vries <tdevries@suse.de>
3666 * gdbtypes.c (dump_dynamic_prop): New function.
3667 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3669 2020-08-15 Tom de Vries <tdevries@suse.de>
3672 * stack.c (print_frame_args): Temporarily set the selected
3673 frame to FRAME while printing the frame's arguments.
3675 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3677 PR breakpoints/26385
3678 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3679 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3681 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3683 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3684 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3685 and >= to check return value instead of == -1 and != -1.
3687 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3689 * utils.h (class gdb_argv) <as_array_view>: New method.
3690 * utils.c (gdb_argv_as_array_view_test): New.
3691 (_initialize_utils): Register selftest.
3692 * maint.c (maintenance_selftest): Use the new method.
3694 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3696 * target.h (supports_dumpcore, dumpcore): New
3697 function declarations.
3698 * target.c (supports_dumpcore, dumpcore): New
3700 * target-delegates.c: Rebuild.
3701 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3702 and target_dumpcore ().
3704 2020-08-13 Aaron Merey <amerey@redhat.com>
3706 * debuginfod-support.c: Replace global variables with user_data.
3708 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3710 * maint.c (maintenance_selftest): Split args and pass array_view
3713 2020-08-12 Luis Machado <luis.machado@linaro.org>
3715 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3717 Use %s and pulongest to print the length.
3719 2020-08-12 Pedro Alves <palves@redhat.com>
3721 * NEWS: Move "Multi-target debugging support" item to the
3722 "Changes since GDB 9" section.
3724 2020-08-12 Pedro Alves <palves@redhat.com>
3727 * progspace.c (program_space::remove_objfile): Invalidate the
3730 2020-08-11 Tom de Vries <tdevries@suse.de>
3732 * MAINTAINERS: Mark ms1 as deleted.
3734 2020-08-10 Luis Machado <luis.machado@linaro.org>
3738 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3740 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3741 movz/str/stur/stp skipping behavior.
3743 2020-08-10 Luis Machado <luis.machado@linaro.org>
3745 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3746 struct user_sve_header instead of struct sve_context.
3748 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3750 * read.h (dwarf2_fetch_die_loc_sect_off,
3751 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3752 `void *` parameter with function_view.
3753 * read.c (dwarf2_fetch_die_loc_sect_off,
3754 dwarf2_fetch_die_loc_cu_off): Likewise.
3755 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3756 (per_cu_dwarf_call): Adjust.
3757 (get_frame_address_in_block_wrapper): Remove.
3758 (indirect_synthetic_pointer): Adjust.
3759 (get_ax_pc): Remove.
3760 (dwarf2_compile_expr_to_ax): Adjust.
3762 2020-08-08 Tom de Vries <tdevries@suse.de>
3765 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3767 * regcache.c (get_thread_arch_aspace_regcache): Same.
3769 2020-08-07 Tom Tromey <tromey@adacore.com>
3771 * ravenscar-thread.c
3772 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3774 (ravenscar_thread_target::wait): Check
3775 runtime_initialized.
3776 (ravenscar_thread_target::prepare_to_store)
3777 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3778 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3779 (ravenscar_thread_target::stopped_by_watchpoint)
3780 (ravenscar_thread_target::stopped_data_address)
3781 (ravenscar_thread_target::core_of_thread): Use
3782 scoped_restore_current_thread and
3783 set_base_thread_from_ravenscar_task.
3785 2020-08-07 Tom Tromey <tromey@adacore.com>
3787 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3789 2020-08-07 Tom Tromey <tromey@adacore.com>
3791 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3792 update_inferior_ptid before update_thread_list.
3793 (temporarily_change_regcache_ptid): New class.
3794 (ravenscar_thread_target::fetch_registers)
3795 (ravenscar_thread_target::store_registers)
3796 (ravenscar_thread_target::prepare_to_store): Use base thread when
3797 forwarding operation.
3799 2020-08-07 Tom Tromey <tromey@adacore.com>
3801 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3804 2020-08-07 Tom Tromey <tromey@adacore.com>
3806 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3808 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3810 (ravenscar_thread_target::add_thread): Rename from
3811 ravenscar_add_thread.
3812 (ravenscar_thread_target::update_thread_list): Use a lambda.
3813 (ravenscar_thread_target::xfer_partial): New method.
3815 2020-08-07 Tom Tromey <tromey@adacore.com>
3817 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3819 (iterate_over_live_ada_tasks): Change type of argument.
3820 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3823 2020-08-07 Tom Tromey <tromey@adacore.com>
3825 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3827 (ravenscar_thread_target::extra_thread_info): Remove.
3828 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3829 defer to target beneath for non-Ravenscar threads.
3831 2020-08-07 Tom Tromey <tromey@adacore.com>
3833 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3834 get_base_thread_from_ravenscar_task>: Now methods.
3835 <m_cpu_map>: New member.
3836 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3837 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3838 (ravenscar_thread_target::task_is_currently_active): Update.
3839 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3841 (ravenscar_thread_target::add_active_thread): Put initial thread
3844 2020-08-07 Tom Tromey <tromey@adacore.com>
3846 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3849 2020-08-07 Tom Tromey <tromey@adacore.com>
3851 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3852 runtime_initialized.
3854 2020-08-07 Tom Tromey <tromey@adacore.com>
3856 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3858 (ravenscar_thread_target::add_active_thread): Now public.
3859 (ravenscar_inferior_created): Call add_active_thread after pushing
3862 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3864 * regcache.c (ptid_regcache_map): New type.
3865 (target_ptid_regcache_map): New type.
3866 (regcaches): Change type to target_ptid_regcache_map.
3867 (get_thread_arch_aspace_regcache): Update to regcaches' new
3869 (regcache_thread_ptid_changed): Likewise.
3870 (registers_changed_ptid): Likewise.
3871 (regcaches_size): Likewise.
3872 (regcaches_test): Update.
3873 (regcache_thread_ptid_changed): Update.
3874 * regcache.h (regcache_up): New type.
3875 * gdbsupport/ptid.h (hash_ptid): New struct.
3877 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3879 * observable.h (thread_ptid_changed): Add parameter
3880 `process_stratum_target *`.
3881 * infrun.c (infrun_thread_ptid_changed): Add parameter
3882 `process_stratum_target *` and use it.
3883 (selftests): New namespace.
3884 (infrun_thread_ptid_changed): New function.
3885 (_initialize_infrun): Register selftest.
3886 * regcache.c (regcache_thread_ptid_changed): Add parameter
3887 `process_stratum_target *` and use it.
3888 (regcache_thread_ptid_changed): New function.
3889 (_initialize_regcache): Register selftest.
3890 * thread.c (thread_change_ptid): Pass target to
3891 thread_ptid_changed observable.
3893 2020-08-06 Caroline Tice <cmtice@google.com>
3895 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3896 (struct dwp_sections): Update field comments. Add loclists and
3898 (struct virtual_v2_dwo_sections): Rename struct to
3899 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3900 size & offset fields for loclists and rnglists.
3901 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3902 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3903 skipping dummy type units.
3904 (create_dwp_hash_table): Update the large comment above the function to
3905 discuss Version 5 DWP files as well, with references. Update all the
3906 version checks in the function to check for version 5 as well. Add new
3907 section at the end to create dwp hash table for version 5.
3908 (create_dwp_v2_section): Rename function to
3909 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3910 Add V5 to error message text.
3911 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3912 into calls to create_dwp_v2_or_v5_section.
3913 (create_dwo_unit_in_dwp_v5): New function.
3914 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3915 check for version2; add else clause to handle version 5.
3916 (open_and_init_dwo_file): Add code to check dwarf version & only call
3917 create_debug_types_hash_table (with sections.types) if version is not 5;
3918 else call create_debug_type_hash_table, with sections.info.
3919 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3921 (dwarf2_locate_v5_dwp_sections): New function.
3922 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3923 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3925 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3927 * regcache.h (class regcache): Remove friend
3928 registers_changed_ptid.
3929 <regcache_thread_ptid_changed>: Remove.
3930 <regcaches>: Remove.
3931 * regcache.c (regcache::regcaches): Rename to...
3932 (regcaches): ... this. Make static.
3933 (get_thread_arch_aspace_regcache): Update.
3934 (regcache::regcache_thread_ptid_changed): Rename to...
3935 (regcache_thread_ptid_changed): ... this. Update.
3936 (class regcache_access): Remove.
3937 (regcaches_test): Update.
3938 (_initialize_regcache): Update.
3939 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3942 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3944 * regcache.h (class regcache) <current_regcache>: Rename to...
3945 <regcaches>: ... this. Move doc here.
3946 * regcache.c (regcache::current_regcache) Rename to...
3947 (regcache::regcaches): ... this. Move doc to header.
3948 (get_thread_arch_aspace_regcache): Update.
3949 (regcache::regcache_thread_ptid_changed): Update.
3950 (registers_changed_ptid): Update.
3951 (class regcache_access) <current_regcache_size>: Rename to...
3952 <regcaches_size>: ... this.
3953 (current_regcache_test): Rename to...
3954 (regcaches_test): ... this.
3955 (_initialize_regcache): Update.
3957 2020-08-06 Victor Collod <vcollod@nvidia.com>
3959 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3961 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3963 * corelow.c (core_target::build_file_mappings): Don't output
3964 null pathname in warning.
3966 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3968 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3969 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3970 gdb.dwarf2/dw2-single-line-discriminators.exp,
3971 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3973 2020-08-05 Tom Tromey <tromey@adacore.com>
3976 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3977 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3978 Fix off-by-one and type size errors in ordinary case.
3980 2020-08-05 Tom de Vries <tdevries@suse.de>
3982 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3983 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3985 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3987 * frame.h (frame_id_p): Return bool.
3988 (frame_id_artificial_p): Return bool.
3989 (frame_id_eq): Return bool.
3990 (has_stack_frames): Return bool.
3991 (get_selected_frame): Fix typo in comment.
3992 (get_frame_pc_if_available): Return bool.
3993 (get_frame_address_in_block_if_available): Return bool.
3994 (get_frame_func_if_available): Return bool.
3995 (read_frame_register_unsigned): Return bool.
3996 (get_frame_register_bytes): Return bool.
3997 (safe_frame_unwind_memory): Return bool.
3998 (deprecated_frame_register_read): Return bool.
3999 (frame_unwinder_is): Return bool.
4000 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4002 <this_id::p>: Likewise.
4004 (frame_stash_add): Return bool.
4005 (get_frame_id): Use bool.
4006 (frame_id_build_special) Use bool.
4007 (frame_id_build_unavailable_stack): Use bool.
4008 (frame_id_build): Use bool.
4009 (frame_id_p): Return bool, use true/false instead of 1/0.
4010 (frame_id_artificial_p): Likewise.
4011 (frame_id_eq): Likewise.
4012 (frame_id_inner): Likewise.
4013 (get_frame_func_if_available): Likewise.
4014 (read_frame_register_unsigned): Likewise.
4015 (deprecated_frame_register_read): Likewise.
4016 (get_frame_register_bytes): Likewise.
4017 (has_stack_frames): Likewise.
4018 (inside_main_func): Likewise.
4019 (inside_entry_func): Likewise.
4020 (get_frame_pc_if_available): Likewise.
4021 (get_frame_address_in_block_if_available): Likewise.
4022 (frame_unwinder_is): Likewise.
4023 (safe_frame_unwind_memory): Likewise.
4024 (frame_unwind_arch): Likewise.
4026 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4028 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4029 type to cached_copy_status.
4030 (fprintf_frame): Adjust.
4031 (get_frame_func_if_available): Adjust.
4032 (frame_cleanup_after_sniffer): Adjust.
4034 2020-08-04 Mark Wielaard <mark@klomp.org>
4036 * MAINTAINERS (Write After Approval): Update email address.
4038 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4040 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4041 dynamic_prop::const_val.
4043 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4045 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4048 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4050 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4052 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4054 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4056 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4057 Jose E. Marchesi <jose.marchesi@oracle.com>
4059 * configure.tgt: Add entry for bpf-*-*.
4060 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4061 (ALLDEPFILES): Add bpf-tdep.c.
4062 * bpf-tdep.c: New file.
4063 * MAINTAINERS: Add bpf target and maintainer.
4064 * NEWS: Mention the support for the new target.
4066 2020-08-04 Tom de Vries <tdevries@suse.de>
4069 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4072 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4074 * syscalls/freebsd.xml: Regenerate.
4076 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4078 * syscalls/update-freebsd.sh: Fix usage and year range.
4080 2020-08-03 Tom de Vries <tdevries@suse.de>
4083 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4084 DW_LNE_lo_user/DW_LNE_hi_user range.
4086 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4089 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4092 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4096 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4098 * breakpoint.c (set_breakpoint_condition): Update the condition
4099 expressions after checking that the input condition string parses
4100 successfully and does not contain junk at the end.
4102 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4104 * breakpoint.c (set_breakpoint_condition): Update the
4105 condition string after parsing the new condition successfully.
4107 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4109 * proc-api.c (_STRUCTURED_PROC): Don't define.
4110 * proc-events.c: Likewise.
4111 * proc-flags.c: Likewise.
4112 * proc-why.c: Likewise.
4113 * procfs.c: Likewise.
4115 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4116 * configure, config.in: Regenerate.
4118 2020-07-30 Tom de Vries <tdevries@suse.de>
4121 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4122 m_red/m_green/m_blue in a union.
4124 2020-07-29 Tom de Vries <tdevries@suse.de>
4127 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4129 2020-07-28 Tom Tromey <tromey@adacore.com>
4132 * symtab.h (find_pc_partial_function_sym): Declare.
4133 * cli/cli-cmds.c (disassemble_command): Use
4134 find_pc_partial_function_sym. Check asm_demangle.
4135 * blockframe.c (cache_pc_function_sym): New global.
4136 (cache_pc_function_name): Remove.
4137 (clear_pc_function_cache): Update.
4138 (find_pc_partial_function_sym): New function, from
4139 find_pc_partial_function.
4140 (find_pc_partial_function): Rewrite using
4141 find_pc_partial_function_sym.
4143 2020-07-28 Tom Tromey <tromey@adacore.com>
4145 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4148 2020-07-28 Tom Tromey <tromey@adacore.com>
4150 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4151 <DW_OP_GNU_variable_value>: Cast to address type.
4153 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4155 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4156 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4157 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4158 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4159 (nbsd_get_siginfo_type): New.
4160 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4161 (_initialize_nbsd_tdep): New.
4163 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4166 * configure: Regenerated.
4168 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4171 * configure: Regenerated.
4173 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4175 * python/py-frame.c: Remove 'user-regs.h' include.
4176 (frapy_read_register): Rewrite to make use of
4177 gdbpy_parse_register_id.
4178 * python/py-registers.c (gdbpy_parse_register_id): New function,
4179 moved here from python/py-unwind.c. Updated the return type, and
4180 also accepts register descriptor objects.
4181 * python/py-unwind.c: Remove 'user-regs.h' include.
4182 (pyuw_parse_register_id): Moved to python/py-registers.c.
4183 (unwind_infopy_add_saved_register): Update to use
4184 gdbpy_parse_register_id.
4185 (pending_framepy_read_register): Likewise.
4186 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4188 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4190 * python/py-registers.c: Add 'user-regs.h' include.
4191 (register_descriptor_iter_find): New function.
4192 (register_descriptor_iterator_object_methods): New static global
4194 (register_descriptor_iterator_object_type): Add pointer to methods
4197 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4199 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4200 for all architectures on FreeBSD 11.3 and later.
4202 2020-07-27 Tom Tromey <tromey@adacore.com>
4204 * gcore.h (load_corefile): Don't declare.
4206 2020-07-27 Tom de Vries <tdevries@suse.de>
4208 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4209 * config.in: Regenerate.
4210 * configure: Regenerate.
4212 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4214 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4215 ws2tcpip.h. When checking whether socklen_t type is defined, use
4216 ws2tcpip.h if it is available and sys/socket.h isn't.
4217 * configure: Regenerate.
4218 * config.in: Regenerate.
4220 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4224 * valops.c (value_ind): Pass address to
4225 readjust_indirect_value_type.
4226 * value.c (readjust_indirect_value_type): Make parameter
4227 non-const, and add extra address parameter. Resolve original type
4229 * value.h (readjust_indirect_value_type): Update function
4230 signature and comment.
4232 2020-07-25 Tom de Vries <tdevries@suse.de>
4235 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4238 2020-07-24 Aaron Merey <amerey@redhat.com>
4240 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4241 * configure: Rebuild.
4243 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4246 * corelow.c (_initialize_corelow): Add period to help text
4247 for "maintenance print core-file-backed-mappings".
4249 2020-07-23 Pedro Alves <pedro@palves.net>
4251 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4252 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4254 * frame.c (frame_cache_generation, get_frame_cache_generation):
4256 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4257 (get_prev_frame_if_no_cycle): On exception, don't touch
4258 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4259 * frame.h (get_frame_cache_generation): Declare.
4261 2020-07-23 Tom de Vries <tdevries@suse.de>
4264 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4265 New default constructor.
4267 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4269 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4270 exclude non-statement entries.
4272 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4274 * NEWS (New commands): Mention new command
4275 "maintenance print core-file-backed-mappings".
4277 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4279 * corelow.c (gdbcmd.h): Include.
4280 (core_target::info_proc_mappings): New method.
4281 (get_current_core_target): New function.
4282 (maintenance_print_core_file_backed_mappings): New function.
4283 (_initialize_corelow): Add core-file-backed-mappings to
4284 "maint print" commands.
4286 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4288 * linux-tdep.c (dump_note_entry_p): New function.
4289 (linux_dump_mapping_p_ftype): New typedef.
4290 (linux_find_memory_regions_full): Add new parameter,
4291 should_dump_mapping_p.
4292 (linux_find_memory_regions): Adjust call to
4293 linux_find_memory_regions_full.
4294 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4295 call to linux_find_memory_regions_full.
4297 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4299 * corelow.c (solist.h, unordered_map): Include.
4300 (class core_target): Add field m_core_file_mappings and
4301 method build_file_mappings.
4302 (core_target::core_target): Call build_file_mappings.
4303 (core_target::~core_target): Free memory associated with
4304 m_core_file_mappings.
4305 (core_target::build_file_mappings): New method.
4306 (core_target::xfer_partial): Use m_core_file_mappings
4307 for memory transfers.
4308 * linux-tdep.c (linux_read_core_file_mappings): New
4310 (linux_core_info_proc_mappings): Rewrite to use
4311 linux_read_core_file_mappings.
4312 (linux_init_abi): Register linux_read_core_file_mappings.
4314 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4316 * arch-utils.c (default_read_core_file_mappings): New function.
4317 * arch-utils.c (default_read_core_file_mappings): Declare.
4318 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4319 * gdbarch.h, gdbarch.c: Regenerate.
4321 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4324 * corelow.c (core_target:xfer_partial): Revise
4325 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4326 case after first checking the stratum beneath the core
4328 (has_all_memory): Return true.
4329 * target.c (raw_memory_xfer_partial): Revise comment
4330 regarding use of has_all_memory.
4332 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4334 * exec.h (section_table_xfer_memory): Revise declaration,
4335 replacing section name parameter with an optional callback
4337 * exec.c (section_table_xfer_memory): Likewise.
4338 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4339 of section_table_xfer_memory.
4341 2020-07-22 Tom Tromey <tromey@adacore.com>
4343 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4344 lookup_symbol_search_name.
4346 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4348 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4349 redundant local variable.
4350 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4351 reference, not pointer, update code accordingly.
4353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4354 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4356 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4357 * jit.c (jit_breakpoint_re_set_internal): Use the
4358 `skip_jit_symbol_lookup` field.
4360 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4361 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4363 * jit.c (jit_read_descriptor): Define the descriptor address once,
4365 (jit_breakpoint_deleted): Move the declaration of the loop variable
4366 `iter` into the loop header.
4367 (jit_breakpoint_re_set_internal): Move the declaration of the local
4368 variable `objf_data` to the first point of definition.
4369 (jit_event_handler): Move the declaration of local variables
4370 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4371 Rename `objf` to `jited`.
4373 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4375 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4377 * jit.c (get_jiter_objfile_data): Update.
4379 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4380 Simon Marchi <simon.marchi@polymtl.ca>
4382 * jit.c (struct jit_program_space_data): Remove.
4383 (jit_program_space_key): Remove.
4384 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4386 (get_jit_program_space_data): Remove.
4387 (jit_breakpoint_deleted): Iterate on all of the program space's
4389 (jit_inferior_init): Likewise.
4390 (jit_breakpoint_re_set_internal): Likewise. Also change return
4392 (jit_breakpoint_re_set): Pass current_program_space to
4393 jit_breakpoint_re_set_internal.
4395 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4397 * jit.h (struct jiter_objfile_data) <cached_code_address,
4398 jit_breakpoint>: Move to here from ...
4399 * jit.c (jit_program_space_data): ... here.
4400 (jiter_objfile_data::~jiter_objfile_data): Update.
4401 (jit_breakpoint_deleted): Update.
4402 (jit_breakpoint_re_set_internal): Update.
4404 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4406 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4408 (jit_read_descriptor): Remove NULL check.
4409 (jit_event_handler): Add an assertion.
4411 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4413 * jit.h (struct jit_objfile_data): Split into...
4414 (struct jiter_objfile_data): ... this ...
4415 (struct jited_objfile_data): ... and this.
4416 * objfiles.h (struct objfile) <jit_data>: Remove.
4417 <jiter_data, jited_data>: New fields.
4418 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4419 (jiter_objfile_data::~jiter_objfile_data): ... this.
4420 (get_jit_objfile_data): Rename to ...
4421 (get_jiter_objfile_data): ... this.
4422 (add_objfile_entry): Update.
4423 (jit_read_descriptor): Use get_jiter_objfile_data.
4424 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4425 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4426 (jit_inferior_exit_hook): Use objfile's jited_data field.
4428 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4430 * jit.h: Forward-declare `struct minimal_symbol`.
4431 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4432 constructor, destructor, and an objfile* field.
4433 * jit.c (jit_objfile_data): Remove.
4434 (struct jit_objfile_data): Migrate from here to jit.h.
4435 (jit_objfile_data::~jit_objfile_data): New destructor
4436 implementation with code moved from free_objfile_data.
4437 (free_objfile_data): Delete.
4438 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4439 (jit_find_objf_with_entry_addr): Ditto.
4440 (jit_inferior_exit_hook): Ditto.
4441 (_initialize_jit): Remove the call to
4442 register_objfile_data_with_cleanup.
4443 * objfiles.h (struct objfile) <jit_data>: New field.
4445 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4447 * jit.h: Forward-declare `struct objfile`.
4448 (jit_event_handler): Add a second parameter, the JITer objfile.
4449 * jit.c (jit_read_descriptor): Change the signature to take the
4450 JITer objfile as an argument instead of the jit_program_space_data.
4451 (jit_inferior_init): Update the call to jit_read_descriptor.
4452 (jit_event_handler): Use the new JITer objfile argument when calling
4453 jit_read_descriptor.
4454 * breakpoint.c (handle_jit_event): Update the call to
4455 jit_event_handler to pass the JITer objfile.
4457 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4459 * gdbarch.c: Regenerate.
4460 * gdbarch.h: Regenerate.
4461 * gdbarch.sh (handle_segmentation_fault): Remove method.
4462 * infrun.c (handle_segmentation_fault): Remove.
4463 (print_signal_received_reason): Remove call to
4464 handle_segmentation_fault.
4466 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4468 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4469 Rename to sparc64_linux_report_signal_info and add siggnal
4471 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4472 instead of sparc64_linux_handle_segmentation_fault.
4474 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4476 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4477 i386_linux_report_signal_info instead of
4478 i386_linux_handle_segmentation_fault.
4479 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4480 to i386_linux_report_signal_info and add siggnal argument.
4481 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4482 of i386_linux_handle_segmentation_fault.
4483 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4484 to i386_linux_report_signal_info and add siggnal argument.
4486 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4488 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4491 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4493 * gdbarch.c: Regenerate.
4494 * gdbarch.h: Regenerate.
4495 * gdbarch.sh (report_signal_info): New method.
4496 * infrun.c (print_signal_received_reason): Invoke gdbarch
4497 report_signal_info hook if present.
4499 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4501 * python/py-registers.c : Add 'unordered_map' include.
4502 (gdbpy_new_reggroup): Renamed to...
4503 (gdbpy_get_reggroup): ...this. Update to only create register
4504 group descriptors when needed.
4505 (gdbpy_reggroup_iter_next): Update.
4507 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4509 * python/py-registers.c (gdbpy_register_object_data): New static
4511 (gdbpy_register_object_data_init): New function.
4512 (gdbpy_new_register_descriptor): Renamed to...
4513 (gdbpy_get_register_descriptor): ...this, and update to reuse
4514 existing register descriptors where possible.
4515 (gdbpy_register_descriptor_iter_next): Update.
4516 (gdbpy_initialize_registers): Register new gdbarch data.
4518 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4520 * linux-nat.c (stopped_pids): Make static.
4522 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4525 * gdbtypes.c (ada_discrete_type_low_bound,
4526 ada_discrete_type_high_bound): Handle undefined bounds.
4528 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4530 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4532 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4535 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4537 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4538 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4539 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4540 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4541 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4544 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4546 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4547 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4548 which are deprecated in Guile 3.0.
4549 * configure.ac (try_guile_versions): Add "guile-3.0".
4550 * configure (try_guile_versions): Regenerate.
4551 * NEWS: Update entry.
4553 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4554 Doug Evans <dje@google.com>
4557 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4558 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4559 USING_GUILE_BEFORE_2_2.
4560 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4561 Change type to 'scm_t_port_type *'.
4562 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4563 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4564 parameter and honor it. Update callers.
4565 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4566 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4568 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4569 USING_GUILE_BEFORE_2_2.
4570 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4571 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4572 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4573 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4574 and 'SCM_PORT_TYPE'.
4575 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4576 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4577 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4578 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4579 [!USING_GUILE_BEFORE_2_2]: New functions.
4580 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4581 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4582 'gdbscm_memory_port_read'.
4583 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4584 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4585 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4587 (ioscm_init_memory_port): Remove.
4588 (ioscm_init_memory_port_stream): New function
4589 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4591 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4592 Return scm_from_uint (0).
4593 (gdbscm_set_memory_port_read_buffer_size_x)
4594 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4595 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4596 Return scm_from_uint (0).
4597 (gdbscm_set_memory_port_write_buffer_size_x)
4598 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4599 * configure.ac (try_guile_versions): Add "guile-2.2".
4600 * configure: Regenerate.
4603 2020-07-18 Tom Tromey <tom@tromey.com>
4605 * linux-nat.c (linux_multi_process): Remove.
4606 (linux_nat_target::supports_multi_process): Return true.
4608 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4610 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4611 (riscv_lookup_target_description): Return pointer out of
4613 * target-descriptions.c (allocate_target_description): Add
4615 (target_desc_deleter::operator()): Likewise.
4616 * target-descriptions.h (struct target_desc_deleter): Moved to
4618 (target_desc_up): Likewise.
4620 2020-07-17 Tom Tromey <tromey@adacore.com>
4622 * linux-nat.c (linux_nat_target::supports_non_stop)
4623 (linux_nat_target::always_non_stop_p): Use "true".
4624 (linux_nat_target::supports_disable_randomization): Use "true" and
4627 2020-07-16 Caroline Tice <cmtice@google.com>
4629 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4630 (RNGLIST_HEADER_SIZE64): New constant definition.
4631 (struct dwop_section_names): Add rnglists_dwo.
4632 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4633 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4634 (struct dwo_sections): Add rnglists field.
4635 (read_attribut_reprocess): Add tag parameter.
4636 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4637 (cu_debug_rnglists_section): New function (decl & definition).
4638 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4639 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4640 die whose range is being checked; get rnglist section from
4641 cu_debug_rnglists_section, to get from either objfile or dwo file as
4642 appropriate. Add cases for DW_RLE_base_addressx,
4643 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4644 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4645 test inside if-condition and updating complaint message.
4646 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4647 dwarf2_rnglists_process.
4648 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4649 dwarf2_ranges_process.
4650 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4651 need_ranges_base and update comment appropriately. Also pass die tag
4652 to dwarf2_ranges_read.
4653 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4654 need_ranges_base and update comment appropriately. Also pass die tag
4655 to dwarf2_ranges_process.
4656 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4657 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4658 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4659 need_ranges_base and update comment appropriately. Also pass die tag
4660 to read_attribute_reprocess and dwarf2_ranges_read.
4661 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4662 and update function comment appropriately.
4663 (read_loclist_index): Call read_loclists_rnglists_header instead of
4664 read_loclist_header.
4665 (read_rnglist_index): New function.
4666 (read_attribute_reprocess): Add tag parameter. Add code for
4667 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4668 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4670 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4672 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4675 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4677 * arch-utils.c (show_architecture): Update formatting of messages.
4679 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4681 * gdbtypes.h (struct type) <bounds>: Handle array and string
4683 * ada-lang.c (assign_aggregate): Use type::bounds on
4685 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4686 * c-varobj.c (c_number_of_children): Likewise.
4687 (c_describe_child): Likewise.
4688 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4689 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4690 (f_type_print_base): Likewise.
4691 * f-valprint.c (f77_array_offset_tbl): Likewise.
4692 (f77_get_upperbound): Likewise.
4693 (f77_print_array_1): Likewise.
4694 * guile/scm-type.c (gdbscm_type_range): Likewise.
4695 * m2-typeprint.c (m2_array): Likewise.
4696 (m2_is_long_set_of_type): Likewise.
4697 * m2-valprint.c (get_long_set_bounds): Likewise.
4698 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4699 * python/py-type.c (typy_range): Likewise.
4700 * rust-lang.c (rust_internal_print_type): Likewise.
4701 * type-stack.c (type_stack::follow_types): Likewise.
4702 * valarith.c (value_subscripted_rvalue): Likewise.
4703 * valops.c (value_cast): Likewise.
4705 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4707 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4708 callers to use the equivalent accessor methods.
4710 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4712 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4713 (struct type) <bit_stride>: New method.
4714 (TYPE_BIT_STRIDE): Remove.
4715 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4717 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4719 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4720 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4721 callers to use the equivalent accessor methods instead.
4723 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4725 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4726 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4727 callers to use the equivalent accessor methods instead.
4729 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4731 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4732 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4733 to use dynamic_prop::kind.
4735 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4737 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4738 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4739 to get the bound property's kind and check against
4742 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4744 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4745 all callers to use type::range_bounds followed by
4746 dynamic_prop::{low,high}.
4748 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4750 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4751 const_val, set_const_val, baton, set_locexpr, set_loclist,
4752 set_addr_offset, variant_parts, set_variant_parts,
4753 original_type, set_original_type>: New methods.
4754 <kind>: Rename to...
4755 <m_kind>: ... this. Update all users to use the new methods
4757 <data>: Rename to...
4758 <m_data>: ... this. Update all users to use the new methods
4761 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4763 * gdbtypes.c (get_discrete_bounds): Return failure if
4764 the range type's bounds are not both defined and constant
4766 (get_array_bounds): Update comment. Remove undefined bound check.
4768 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4770 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4771 the type::bounds method directly.
4773 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4775 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4776 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4777 are used to set the range type's bounds to use set_bounds.
4779 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4781 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4783 2020-07-10 Pedro Alves <pedro@palves.net>
4785 * gdbthread.h (inferior_ref): Define.
4786 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4787 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4789 (scoped_restore_current_thread::restore):
4790 Adjust to gdb::ref_ptr.
4791 (scoped_restore_current_thread::~scoped_restore_current_thread):
4792 Remove manual decref handling.
4793 (scoped_restore_current_thread::scoped_restore_current_thread):
4795 inferior_ref::new_reference/thread_info_ref::new_reference.
4796 Incref the thread before calling get_frame_id instead of after.
4797 Let TARGET_CLOSE_ERROR propagate.
4799 2020-07-10 Pedro Alves <pedro@palves.net>
4801 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4802 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4803 NOT_AVAILABLE_ERROR.
4804 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4805 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4807 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4808 Pedro Alves <pedro@palves.net>
4811 * infrun.c (threads_are_resumed_pending_p): Delete.
4812 (do_target_wait): Remove threads_are_executing and
4813 threads_are_resumed_pending_p checks from the inferior_matches
4814 lambda. Update comments.
4816 2020-07-10 Pedro Alves <pedro@palves.net>
4819 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4822 2020-07-10 Pedro Alves <pedro@palves.net>
4825 * infrun.c (handle_no_resumed): Handle multiple targets.
4827 2020-07-10 Pedro Alves <pedro@palves.net>
4830 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4833 2020-07-10 Pedro Alves <pedro@palves.net>
4836 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4837 threads, not all threads.
4839 2020-07-10 Pedro Alves <pedro@palves.net>
4842 * remote.c (remote_target::open_1): Pass remote target pointer as
4843 data to create_async_event_handler.
4844 (remote_async_inferior_event_handler): Mark async event handler
4845 before returning if the remote target still has either pending
4846 events or unacknowledged notifications.
4848 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4850 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4852 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4855 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4857 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4860 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4862 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4863 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4864 AT_FREEBSD_PS_STRINGS.
4866 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4868 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4869 of debugfile path on Windows.
4871 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4873 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4876 2020-07-08 Tom Tromey <tromey@adacore.com>
4878 * ada-lang.c (ada_exception_message_1): Use read_memory.
4880 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4883 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4884 special handling for inline frames.
4885 * findvar.c (value_of_register_lazy): Skip inline frames when
4886 creating lazy register values.
4887 * frame.c (frame_id_computed_p): Delete definition.
4888 * frame.h (frame_id_computed_p): Delete declaration.
4890 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4892 * NEWS: Mention additions to Python API.
4893 * python/py-arch.c (archpy_register_groups): New function.
4894 (arch_object_methods): Add 'register_groups' method.
4895 * python/py-registers.c (reggroup_iterator_object): New struct.
4896 (reggroup_object): New struct.
4897 (gdbpy_new_reggroup): New function.
4898 (gdbpy_reggroup_to_string): New function.
4899 (gdbpy_reggroup_name): New function.
4900 (gdbpy_reggroup_iter): New function.
4901 (gdbpy_reggroup_iter_next): New function.
4902 (gdbpy_new_reggroup_iterator): New function
4903 (gdbpy_initialize_registers): Register new types.
4904 (reggroup_iterator_object_type): Define new Python type.
4905 (gdbpy_reggroup_getset): New static global.
4906 (reggroup_object_type): Define new Python type.
4907 * python/python-internal.h
4909 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4911 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4912 * python/py-arch.c (archpy_registers): New function.
4913 (arch_object_methods): Add 'registers' method.
4914 * python/py-registers.c: New file.
4915 * python/python-internal.h
4916 (gdbpy_new_register_descriptor_iterator): Declare.
4917 (gdbpy_initialize_registers): Declare.
4918 * python/python.c (do_start_initialization): Call
4919 gdbpy_initialize_registers.
4920 * NEWS: Mention additions to the Python API.
4922 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4924 * NEWS: Mention new Python API method.
4925 * python/py-unwind.c (pending_framepy_architecture): New function.
4926 (pending_frame_object_methods): Add architecture method.
4928 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4930 * gdbarch.c: Regenerate.
4931 * gdbarch.h: Regenerate.
4932 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4933 (gdbarch_data): Use internal_error for the case where
4934 deprecated_set_gdbarch_data was originally needed.
4935 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4936 and use passed in obstack.
4937 (libunwind_frame_set_descr): Should no longer get back NULL from
4939 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4941 * user-regs.c (user_regs_init): Update parameters, and use passed
4943 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4944 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4946 2020-07-06 Tom de Vries <tdevries@suse.de>
4948 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4949 End-Of-Sequence in lte_is_less_than.
4950 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4951 "gdb: Don't reorder line table entries too much when sorting".
4953 2020-07-06 Tom de Vries <tdevries@suse.de>
4956 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4958 2020-07-05 Tom de Vries <tdevries@suse.de>
4961 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4962 std::uncaught_exceptions instead of deprecated
4963 std::uncaught_exception.
4965 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4967 * macroexp.h (macro_stringify): Return
4968 gdb::unique_xmalloc_ptr<char>.
4969 * macroexp.c (macro_stringify): Likewise.
4970 * macrotab.c (fixup_definition): Update.
4972 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4974 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4975 (lex_one_token): Update.
4976 * macroexp.c (struct macro_buffer) <release>: Return
4977 gdb::unique_xmalloc_ptr<char>.
4978 (macro_stringify): Update.
4979 (macro_expand): Update.
4980 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4981 * macroexp.h (macro_expand_next): Likewise.
4983 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4985 * macroexp.h (macro_lookup_ftype): Remove.
4986 (macro_expand, macro_expand_once, macro_expand_next): Remove
4987 lookup function parameters, add scope parameter.
4988 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4989 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4990 * macroscope.h (standard_macro_lookup): Change parameter type
4992 * macroscope.c (standard_macro_lookup): Likewise.
4993 * c-exp.y (lex_one_token): Update.
4994 * macrocmd.c (macro_expand_command): Likewise.
4995 (macro_expand_once_command): Likewise.
4997 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4999 * inf-loop.c (inferior_event_handler): Remove client_data param.
5000 * inf-loop.h (inferior_event_handler): Likewise.
5001 * infcmd.c (step_1): Adjust.
5002 * infrun.c (proceed): Adjust.
5003 (fetch_inferior_event): Remove client_data param.
5004 (infrun_async_inferior_event_handler): Adjust.
5005 * infrun.h (fetch_inferior_event): Remove `void *` param.
5006 * linux-nat.c (handle_target_event): Adjust.
5007 * record-btrace.c (record_btrace_handle_async_inferior_event):
5009 * record-full.c (record_full_async_inferior_event_handler):
5011 * remote.c (remote_async_inferior_event_handler): Adjust.
5013 2020-07-01 Tom Tromey <tom@tromey.com>
5015 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5016 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5018 2020-07-01 Tom Tromey <tom@tromey.com>
5020 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5022 (tui_win_info::make_window): Merge with
5023 tui_gen_win_info::make_window.
5024 (tui_win_info::make_visible): Move from tui_gen_win_info.
5025 * tui/tui-win.c (tui_win_info::max_width): Move from
5027 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5029 <window_factory>: Likewise.
5030 * tui/tui-layout.c (tui_win_info::resize): Move from
5032 (make_standard_window): Change return type.
5033 (get_locator_window, tui_get_window_by_name): Likewise.
5034 (tui_layout_window::apply): Remove a cast.
5035 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5036 (struct tui_win_info): Merge with tui_gen_win_info.
5037 (struct tui_gen_win_info): Remove.
5039 2020-07-01 Tom Tromey <tom@tromey.com>
5041 * tui/tui-stack.h (struct tui_locator_window): Derive from
5043 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5044 <can_box>: New method.
5046 2020-07-01 Tom Tromey <tom@tromey.com>
5048 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5050 2020-07-01 Tom Tromey <tom@tromey.com>
5052 * tui/tui-regs.c (tui_data_window::display_registers_from)
5053 (tui_data_window::display_registers_from)
5054 (tui_data_window::first_data_item_displayed)
5055 (tui_data_window::delete_data_content_windows): Update.
5056 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5058 (tui_data_window::check_register_values): Update.
5059 (tui_data_item_window::rerender): Add parameters. Update.
5060 (tui_data_item_window::refresh_window): Remove.
5061 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5063 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5065 <refresh_window, max_height, min_height>: Remove.
5066 <rerender>: Add parameters.
5067 <x, y, visible>: New members.
5068 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5069 <m_item_width>: New member.
5071 2020-07-01 Tom Tromey <tom@tromey.com>
5073 * tui/tui-regs.c (tui_data_window::show_register_group)
5074 (tui_data_window::check_register_values): Update.
5075 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5078 2020-07-01 Tom Tromey <tom@tromey.com>
5080 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5083 2020-07-01 Tom Tromey <tom@tromey.com>
5085 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5086 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5088 2020-07-01 Tom Tromey <tom@tromey.com>
5090 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5091 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5092 (struct tui_line_or_address): Move from tui-data.h.
5093 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5094 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5095 (tui_cmd_window, tui_source_window_base, tui_source_window)
5096 (tui_disasm_window): Don't declare.
5097 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5099 (SINGLE_KEY): Move to tui-stack.c.
5101 2020-07-01 Tom Tromey <tom@tromey.com>
5103 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5105 * tui/tui-regs.c (class tab_expansion_file): New.
5106 (tab_expansion_file::write): New method.
5107 (tui_register_format): Change return type. Use
5109 (tui_get_register, tui_data_window::display_registers_from)
5110 (tui_data_item_window::rerender): Update.
5111 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5112 * tui/tui-io.c (tui_expand_tabs): Remove.
5114 2020-07-01 Tom Tromey <tom@tromey.com>
5116 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5118 2020-07-01 Fangrui Song <maskray@google.com>
5120 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5122 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5124 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5125 forms for DW_AT_associated and DW_AT_allocated attributes,
5126 which is already checked in function attr_to_dynamic_prop.
5128 2020-06-30 Tom Tromey <tromey@adacore.com>
5130 * dwarf2/read.c (quirk_rust_enum): Correctly call
5131 alloc_rust_variant for default-less enum.
5133 2020-06-30 Tom Tromey <tromey@adacore.com>
5136 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5139 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5141 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5142 * gdbarch.h: Re-generate.
5144 2020-06-28 Tom Tromey <tom@tromey.com>
5146 * command.h (cmd_types): Remove.
5147 (cmd_type): Don't declare.
5148 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5150 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5151 * cli/cli-decode.c (cmd_type): Remove.
5153 2020-06-27 Pedro Alves <palves@redhat.com>
5155 * fork-child.c (prefork_hook): Adjust.
5156 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5158 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5159 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5160 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5161 Remove declarations.
5162 (struct inferior) <set_tty, tty>: New methods.
5163 (struct inferior) <terminal>: Rename to ...
5164 (struct inferior) <m_terminal>: ... this and make private.
5165 * main.c (captured_main_1): Adjust.
5166 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5167 (mi_cmd_inferior_tty_show): Adjust.
5168 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5169 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5171 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5173 * configure.ac: Add --enable-libctf: handle --disable-static
5175 * acinclude.m4: sinclude ../config/enable.m4.
5176 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5177 (LIBCTF): Substitute in.
5178 (CTF_DEPS): New, likewise.
5179 (CLIBS): libctf needs symbols from libbfd: move earlier.
5180 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5182 * ctfread.c: Surround in ENABLE_LIBCTF.
5183 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5184 * configure: Regenerate.
5185 * config.in: Likewise.
5187 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5189 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5191 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5193 * inferior.h (struct inferior) <terminal>: Change type to
5194 gdb::unique_xmalloc_ptr<char>.
5195 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5196 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5197 field, adjust to unique pointer.
5198 (get_inferior_io_terminal): Adjust to unique pointer.
5200 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5202 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5203 registers, not just the known core set of registers.
5205 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5207 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5208 fflags, frm, and fcsr registers.
5209 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5211 (riscv_tdesc_unknown_reg): New function.
5212 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5213 tdesc_use_registers.
5214 * riscv-tdep.h (struct gdbarch_tdep): Add
5215 unknown_csrs_first_regnum, unknown_csrs_count,
5216 duplicate_fflags_regnum, duplicate_frm_regnum, and
5217 duplicate_fcsr_regnum fields.
5219 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5221 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5222 callback, use the callback (when not null) to help number unknown
5224 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5225 (tdesc_use_registers): Add extra parameter to declaration.
5227 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5229 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5231 (class riscv_pending_register_alias): Likewise.
5232 (riscv_register_feature::register_info): Change 'required_p' field
5233 to 'required', and change its type. Add 'check' member function.
5234 (riscv_register_feature::register_info::check): Define new member
5236 (riscv_xreg_feature): Change initialisation of 'required' field.
5237 (riscv_freg_feature): Likewise.
5238 (riscv_virtual_feature): Likewise.
5239 (riscv_csr_feature): Likewise.
5240 (riscv_check_tdesc_feature): Take extra parameter, the csr
5241 tdesc_feature, rewrite the function to use the new
5242 riscv_register_feature::register_info::check function.
5243 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5245 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5247 * features/Makefile: Remove all references to the deleted files
5249 * features/riscv/32bit-csr.c: Deleted.
5250 * features/riscv/32bit-csr.xml: Deleted.
5251 * features/riscv/64bit-csr.c: Deleted.
5252 * features/riscv/64bit-csr.xml: Deleted.
5253 * features/riscv/rebuild-csr-xml.sh: Deleted.
5255 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5257 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5258 whitespace error for declaration of names member variable.
5259 (struct riscv_register_feature): Add new prefer_first_name member
5260 variable, and fix whitespace error in declaration of registers.
5261 (riscv_xreg_feature): Initialize prefer_first_name field.
5262 (riscv_freg_feature): Likewise.
5263 (riscv_virtual_feature): Likewise.
5264 (riscv_csr_feature): Likewise.
5265 (riscv_register_name): Expand on comments. Remove register name
5266 modifications for CSR and virtual registers.
5268 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5270 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5273 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5275 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5277 (class riscv_pending_register_alias): New class.
5278 (riscv_check_tdesc_feature): Take vector of pending aliases and
5279 populate it as appropriate.
5280 (riscv_setup_register_aliases): Delete.
5281 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5282 to riscv_check_tdesc_feature in all cases. Use the vector to
5283 create the register aliases.
5285 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5287 * sol2-tdep.c (sol2_static_transform_name): Remove.
5288 (sol2_init_abi): Don't register it.
5289 * gdbarch.sh (static_transform_name): Remove.
5290 * gdbarch.c, gdbarch.h: Regenerate.
5292 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5293 gdbarch_static_transform_name.
5294 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5295 * stabsread.c (define_symbol) <'X'>: Remove.
5296 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5299 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5300 <'S'>: Remove call to gdbarch_static_transform_name.
5302 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5304 * procfs.c (procfs_pre_trace): New function.
5305 (procfs_target::create_inferior): Pass it to fork_inferior.
5307 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5309 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5310 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5311 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5312 sol2-tdep.o, sparc-sol2-tdep.o.
5313 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5314 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5315 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5316 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5318 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5320 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5321 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5323 Remove calls to set_gdbarch_skip_solib_resolver,
5324 set_gdbarch_core_pid_to_str.
5325 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5326 (i386_sol2_static_transform_name): Remove.
5327 (i386_sol2_init_abi): Call sol2_init_abi.
5328 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5329 set_gdbarch_static_transform_name,
5330 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5331 Use sol2_sigtramp_p.
5332 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5333 (sol2_sigtramp_p): New function.
5334 (sol2_static_transform_name): New function.
5335 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5336 (sol2_init_abi): New function.
5337 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5338 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5339 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5340 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5341 (sparc_sol2_static_transform_name): Remove.
5342 (sparc32_sol2_init_abi): Call sol2_init_abi.
5343 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5344 set_gdbarch_static_transform_name,
5345 set_gdbarch_skip_solib_resolver,
5346 set_gdbarch_core_pid_to_str.
5347 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5348 (sparc_sol2_static_transform_name): Remove
5349 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5350 call sol2_sigtramp_p.
5351 (sparc64_sol2_init_abi): Call sol2_init_abi.
5352 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5353 set_gdbarch_static_transform_name,
5354 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5356 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5358 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5359 * exec.c (validate_exec_file): If from_tty, set both
5360 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5361 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5362 and from_tty, unconditionally ask a confirmation.
5364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5366 * target-descriptions.c (tdesc_architecture_name): Protect against
5367 NULL pointer dereference.
5368 (maint_print_xml_tdesc_cmd): New function.
5369 (_initialize_target_descriptions): Register new 'maint print
5370 xml-tdesc' command and give it the filename completer.
5371 * NEWS: Mention new 'maint print xml-tdesc' command.
5373 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5375 * target-descriptions.c (class tdesc_compatible_info): New class.
5376 (struct target_desc): Change type of compatible vector.
5377 (tdesc_compatible_p): Update for change in type of
5378 target_desc::compatible.
5379 (tdesc_compatible_info_list): New function.
5380 (tdesc_compatible_info_arch_name): New function.
5381 (tdesc_add_compatible): Update for change in type of
5382 target_desc::compatible.
5383 (print_c_tdesc::visit_pre): Likewise.
5385 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5387 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5388 whitespace to underscore.
5389 (maint_print_c_tdesc_cmd): Use fake filename for target
5390 descriptions that came from the target.
5391 (_initialize_target_descriptions): Add filename command completion
5392 for 'maint print c-tdesc'.
5394 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5396 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5399 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5401 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5403 (dwarf2_find_location_expression): Likewise.
5404 (call_site_parameter_matches): Likewise.
5405 (dwarf2_compile_expr_to_ax): Likewise.
5406 (disassemble_dwarf_expression): Likewise.
5407 (loclist_describe_location): Likewise.
5409 2020-06-23 Pedro Alves <palves@redhat.com>
5411 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5412 progspace-and-thread.h. Include scoped-mock-context.h instead.
5413 (register_to_value_test): Use scoped_mock_context.
5414 * regcache.c: Include "scoped-mock-context.h".
5415 (cooked_read_test): Don't error out if a target is already pushed.
5416 Use scoped_mock_context. Adjust.
5417 * scoped-mock-context.h: New file.
5419 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5421 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5423 (ada_language::is_string_type_p): New member function.
5424 * c-lang.c (c_language_data): Delete la_is_string_type_p
5426 (cplus_language_data): Likewise.
5427 (asm_language_data): Likewise.
5428 (minimal_language_data): Likewise.
5429 * d-lang.c (d_language_data): Likewise.
5430 * f-lang.c (f_is_string_type_p): Delete function, implementation
5431 moved to f_language::is_string_type_p.
5432 (f_language_data): Delete la_is_string_type_p initializer.
5433 (f_language::is_string_type_p): New member function,
5434 implementation from f_is_string_type_p.
5435 * go-lang.c (go_is_string_type_p): Delete function, implementation
5436 moved to go_language::is_string_type_p.
5437 (go_language_data): Delete la_is_string_type_p initializer.
5438 (go_language::is_string_type_p): New member function,
5439 implementation from go_is_string_type_p.
5440 * language.c (language_defn::is_string_type_p): Define new member
5442 (default_is_string_type_p): Make static, add comment copied from
5444 (unknown_language_data): Delete la_is_string_type_p initializer.
5445 (unknown_language::is_string_type_p): New member function.
5446 (auto_language_data): Delete la_is_string_type_p initializer.
5447 (auto_language::is_string_type_p): New member function.
5448 * language.h (language_data): Delete la_is_string_type_p field.
5449 (language_defn::is_string_type_p): Declare new function.
5450 (default_is_string_type_p): Delete desclaration, move comment to
5452 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5453 moved to m2_language::is_string_type_p.
5454 (m2_language_data): Delete la_is_string_type_p initializer.
5455 (m2_language::is_string_type_p): New member function,
5456 implementation from m2_is_string_type_p.
5457 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5459 * opencl-lang.c (opencl_language_data): Likewise.
5460 * p-lang.c (pascal_is_string_type_p): Delete function,
5461 implementation moved to pascal_language::is_string_type_p.
5462 (pascal_language_data): Delete la_is_string_type_p initializer.
5463 (pascal_language::is_string_type_p): New member function,
5464 implementation from pascal_is_string_type_p.
5465 * rust-lang.c (rust_is_string_type_p): Delete function,
5466 implementation moved to rust_language::is_string_type_p.
5467 (rust_language_data): Delete la_is_string_type_p initializer.
5468 (rust_language::is_string_type_p): New member function,
5469 implementation from rust_is_string_type_p.
5470 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5473 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5475 * ada-lang.c (ada_language_data): Delete la_print_typedef
5477 (ada_language::print_typedef): New member function.
5478 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5479 (cplus_language_data): Likewise.
5480 (asm_language_data): Likewise.
5481 (minimal_language_data): Likewise.
5482 * d-lang.c (d_language_data): Likewise.
5483 * f-lang.c (f_language_data): Likewise.
5484 (f_language::print_typedef): New member function.
5485 * go-lang.c (go_language_data): Delete la_print_typedef
5487 * language.c (language_defn::print_typedef): Define member
5489 (unknown_language_data): Delete la_print_typedef initializer.
5490 (unknown_language::print_typedef): New member function.
5491 (auto_language_data): Delete la_print_typedef initializer.
5492 (auto_language::print_typedef): New member function.
5493 * language.h (language_data): Delete la_print_typedef field.
5494 (language_defn::print_typedef): Declare new member function.
5495 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5496 (default_print_typedef): Delete declaration.
5497 * m2-lang.c (m2_language_data): Delete la_print_typedef
5499 (m2_language::print_typedef): New member function.
5500 * objc-lang.c (objc_language_data): Delete la_print_typedef
5502 * opencl-lang.c (opencl_language_data): Likewise.
5503 * p-lang.c (pascal_language_data): Likewise.
5504 (pascal_language::print_typedef): New member function.
5505 * rust-lang.c (rust_print_typedef): Delete function,
5506 implementation moved to rust_language::print_typedef.
5507 (rust_language): Delete la_print_typedef initializer.
5508 (rust_language::print_typedef): New member function,
5509 implementation from rust_print_typedef.
5510 * typeprint.c (default_print_typedef): Delete.
5512 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5514 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5515 (ada_language::printstr): New member function.
5516 * c-lang.c (c_language_data): Delete la_printstr initializer.
5517 (cplus_language_data): Likewise.
5518 (asm_language_data): Likewise.
5519 (minimal_language_data): Likewise.
5520 * d-lang.c (d_language_data): Likewise.
5521 * f-lang.c (f_printstr): Rename to f_language::printstr.
5522 (f_language_data): Delete la_printstr initializer.
5523 (f_language::printstr): New member function, implementation from
5525 * go-lang.c (go_language_data): Delete la_printstr initializer.
5526 * language.c (language_defn::printstr): Define new member
5528 (unk_lang_printstr): Delete.
5529 (unknown_language_data): Delete la_printstr initializer.
5530 (unknown_language::printstr): New member function.
5531 (auto_language_data): Delete la_printstr initializer.
5532 (auto_language::printstr): New member function.
5533 * language.h (language_data): Delete la_printstr field.
5534 (language_defn::printstr): Declare new member function.
5535 (LA_PRINT_STRING): Update call to printstr.
5536 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5537 (m2_language_data): Delete la_printstr initializer.
5538 (m2_language::printstr): New member function, implementation from
5540 * objc-lang.c (objc_language_data): Delete la_printstr
5542 * opencl-lang.c (opencl_language_data): Likewise.
5543 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5544 (pascal_language_data): Delete la_printstr initializer.
5545 (pascal_language::printstr): New member function, implementation
5546 from pascal_printstr.
5547 * p-lang.h (pascal_printstr): Delete declaration.
5548 * rust-lang.c (rust_printstr): Update header comment.
5549 (rust_language_data): Delete la_printstr initializer.
5550 (rust_language::printstr): New member function.
5552 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5554 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5555 (ada_language::printchar): New member function.
5556 * c-lang.c (c_language_data): Delete la_printchar initializer.
5557 (cplus_language_data): Likewise.
5558 (asm_language_data): Likewise.
5559 (minimal_language_data): Likewise.
5560 * d-lang.c (d_language_data): Likewise.
5561 * f-lang.c (f_printchar): Rename to f_language::printchar.
5562 (f_language_data): Delete la_printchar initializer.
5563 (f_language::printchar): New member function, implementation from
5565 * go-lang.c (go_language_data): Delete la_printchar initializer.
5566 * language.c (unk_lang_printchar): Delete.
5567 (language_defn::printchar): Define new member function.
5568 (unknown_language_data): Delete la_printchar initializer.
5569 (unknown_language::printchar): New member function.
5570 (auto_language_data): Delete la_printchar initializer.
5571 (auto_language::printchar): New member function.
5572 * language.h (language_data): Delete la_printchar field.
5573 (language_defn::printchar): Declare new member function.
5574 (LA_PRINT_CHAR): Update call to printchar.
5575 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5576 (m2_language::printchar): New member function.
5577 * objc-lang.c (objc_language_data): Delete la_printchar
5579 * opencl-lang.c (opencl_language_data): Likewise.
5580 * p-lang.c (pascal_language_data): Delete la_printchar
5582 (pascal_language::printchar): New member function.
5583 * rust-lang.c (rust_printchar): Rename to
5584 rust_language::printchar.
5585 (rust_language_data): Delete la_printchar initializer.
5586 (rust_language::printchar): New member function, implementation
5587 from rust_printchar.
5589 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5591 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5592 (ada_language_data): Delete la_emitchar initializer.
5593 (ada_language::emitchar): New member function, implementation from
5595 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5596 (cplus_language_data): Likewise.
5597 (asm_language_data): Likewise.
5598 (minimal_language_data): Likewise.
5599 * d-lang.c (d_language_data): Likewise.
5600 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5601 (f_language_data): Delete la_emitchar initializer.
5602 (f_language::emitchar): New member function, implementation from
5604 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5605 * language.c (unk_lang_emit_char): Delete.
5606 (language_defn::emitchar): New member function definition.
5607 (unknown_language_data): Delete la_emitchar initializer.
5608 (unknown_language::emitchar): New member function.
5609 (auto_language_data): Delete la_emitchar initializer.
5610 (auto_language::emitchar): New member function.
5611 * language.h (language_data): Delete la_emitchar field.
5612 (language_defn::emitchar): New member field declaration.
5613 (LA_EMIT_CHAR): Update call to emitchar.
5614 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5615 (m2_language_data): Delete la_emitchar initializer.
5616 (m2_language::emitchar): New member function, implementation from
5618 * objc-lang.c (objc_language_data): Delete la_emitchar
5620 * opencl-lang.c (opencl_language_data): Likewise.
5621 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5622 (pascal_language_data): Delete la_emitchar initializer.
5623 (pascal_language::emitchar): New member function, implementation
5624 from pascal_emit_char.
5625 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5626 (rust_language_data): Delete la_emitchar initializer.
5627 (rust_language::emitchar): New member function, implementation
5630 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5632 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5633 (ada_language_data): Delete la_post_parser initializer.
5634 (ada_language::post_parser): New member function.
5635 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5636 (cplus_language_data): Likewise.
5637 (asm_language_data): Likewise.
5638 (minimal_language_data): Likewise.
5639 * d-lang.c (d_language_data): Likewise.
5640 * f-lang.c (f_language_data): Likewise.
5641 * go-lang.c (go_language_data): Likewise.
5642 * language.c (unknown_language_data): Likewise.
5643 (auto_language_data): Likewise.
5644 * language.h (language_data): Delete la_post_parser field.
5645 (language_defn::post_parser): New member function.
5646 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5647 * objc-lang.c (objc_language_data): Likewise.
5648 * opencl-lang.c (opencl_language_data): Likewise.
5649 * p-lang.c (pascal_language_data): Likewise.
5650 * parse.c (parse_exp_in_context): Update call to post_parser.
5651 (null_post_parser): Delete definition.
5652 * parser-defs.h (null_post_parser): Delete declaration.
5653 * rust-lang.c (rust_language_data): Delete la_post_parser
5656 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5658 * ada-lang.c (parse): Rename to ada_language::parser.
5659 (ada_language_data): Delete la_parser initializer.
5660 (ada_language::parser): New member function, implementation from
5662 * c-lang.c (c_language_data): Delete la_parser initializer.
5663 (cplus_language_data): Likewise.
5664 (asm_language_data): Likewise.
5665 (minimal_language_data): Likewise.
5666 * d-lang.c (d_language_data): Likewise.
5667 (d_language::parser): New member function.
5668 * f-lang.c (f_language_data): Delete la_parser initializer.
5669 (f_language::parser): New member function.
5670 * go-lang.c (go_language_data): Delete la_parser initializer.
5671 (go_language::parser): New member function.
5672 * language.c (unk_lang_parser): Delete.
5673 (language_defn::parser): Define new member function.
5674 (unknown_language_data): Delete la_parser initializer.
5675 (unknown_language::parser): New member function.
5676 (auto_language_data): Delete la_parser initializer.
5677 (auto_language::parser): New member function.
5678 * language.h (language_data): Delete la_parser field.
5679 (language_defn::parser): Declare new member function.
5680 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5681 (m2_language::parser): New member function.
5682 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5683 * opencl-lang.c (opencl_language_data): Likewise.
5684 * p-lang.c (pascal_language_data): Likewise.
5685 (pascal_language::parser): New member function.
5686 * parse.c (parse_exp_in_context): Update call to parser.
5687 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5688 (rust_language::parser): New member function.
5690 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5692 * top.c (print_gdb_configuration): Print --with-python-libdir
5693 configuration value.
5695 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5697 * NEWS: Mention change to the alias command.
5699 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5701 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5702 (alias_command_completer)
5703 (make_alias_options_def_group): New functions.
5704 (alias_opts, alias_option_defs): New struct and array.
5705 (alias_usage_error): Update usage.
5706 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5707 Use option framework.
5708 (_initialize_cli_cmds): Update alias command help.
5709 Update aliases command help.
5711 Add NULL for new default_args lookup_cmd argument.
5712 (valid_command_p): Rename to validate_aliased_command.
5713 Add NULL for new default_args lookup_cmd argument. Verify that the
5714 aliased_command has no default args.
5715 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5716 (lookup_cmd_1, lookup_cmd): New argument default_args.
5718 Add NULL for new default_args lookup_cmd argument.
5719 (print_help_for_command): Show default args under the layout
5720 alias some_alias = some_aliased_cmd some_alias_default_arg.
5721 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5722 xfree default_args in destructor.
5723 * cli/cli-script.c (process_next_line, do_define_command):
5724 Add NULL for new default_args lookup_cmd argument.
5725 * command.h: Declare new default_args argument in lookup_cmd
5727 * completer.c (complete_line_internal_1):
5728 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5729 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5730 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5732 * infcmd.c (_initialize_infcmd): Likewise.
5733 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5734 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5735 * python/py-param.c (add_setshow_generic): Likewise.
5736 * remote.c (_initialize_remote): Likewise.
5737 * top.c (execute_command): Prepend default_args if command has some.
5739 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5740 * tracepoint.c (validate_actionline, encode_actions_1):
5741 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5743 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5745 * jit.c (jit_read_descriptor): Use bool as the return type.
5746 (jit_breakpoint_re_set_internal): Use bool as the return type.
5747 Invert the return value logic; return true if the jit breakpoint
5748 has been successfully initialized.
5749 (jit_inferior_init): Update the call to
5750 jit_breakpoint_re_set_internal.
5752 2020-06-22 Pedro Alves <palves@redhat.com>
5755 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5756 Use the current inferior instead. Don't return
5757 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5759 * sol-thread.c (sol_thread_target::wait): Don't reference
5761 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5762 (sol_update_thread_list_callback): Use the current inferior's pid
5763 instead of inferior_ptid.
5765 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5767 * procfs.c: Cleanup many comments.
5769 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5770 (AFTER_WATCHFLAG): Replace by value.
5772 (MAIN_PROC_NAME_FORMAT): Inline ...
5773 (create_procinfo): ... here.
5775 (procfs_debug_inferior): Remove SYS_exec handling.
5776 (syscall_is_exec): Likewise.
5777 (procfs_set_exec_trap): Likewise.
5779 (syscall_is_lwp_exit): Inline in callers.
5780 (syscall_is_exit): Likewise.
5781 (syscall_is_exec): Likewise.
5782 (syscall_is_lwp_create): Likewise.
5784 (invalidate_cache): Remove #if 0 code.
5786 (make_signal_thread_runnable): Remove.
5787 (procfs_target::resume): Remove #if 0 code.
5789 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5792 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5794 (procfs_target::create_inferior): ... here.
5796 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5798 * exec.c (validate_exec_file): Ensure the build-id is up to
5799 date by calling reopen_exec_file (that checks file timestamp
5800 to decide to re-read the file).
5802 2020-06-18 Pedro Alves <palves@redhat.com>
5805 * gdbthread.h (delete_thread, delete_thread_silent)
5806 (find_thread_ptid): Update comments.
5807 * thread.c (current_thread_): New global.
5808 (is_current_thread): Move higher, and reimplement.
5809 (inferior_thread): Reimplement.
5810 (set_thread_exited): Use bool. Add assertions.
5811 (add_thread_silent): Simplify thread-reuse handling by always
5812 calling delete_thread.
5813 (delete_thread): Remove intro comment.
5814 (find_thread_ptid): Skip exited threads.
5815 (switch_to_thread_no_regs): Write to current_thread_.
5816 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5817 INFERIOR_PTID. Clear current_thread_.
5819 2020-06-18 Pedro Alves <palves@redhat.com>
5821 * aix-thread.c (pd_update): Use switch_to_thread.
5823 2020-06-18 Pedro Alves <palves@redhat.com>
5825 * ravenscar-thread.c (ravenscar_thread_target): Update.
5826 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5827 (ravenscar_thread_target::add_active_thread): ... this. Don't
5828 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5829 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5831 2020-06-18 Pedro Alves <palves@redhat.com>
5833 * nat/windows-nat.c (current_windows_thread): Remove.
5834 * nat/windows-nat.h (current_windows_thread): Remove.
5835 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5837 (display_selectors): Adjust to fetch the current
5838 windows_thread_info based on inferior_ptid.
5839 (fake_create_process): No longer write to current_windows_thread.
5840 (windows_nat_target::get_windows_debug_event):
5841 Don't set inferior_ptid or current_windows_thread.
5842 (windows_nat_target::wait): Adjust to not rely on
5843 current_windows_thread.
5844 (do_initial_windows_stuff): Now a method of windows_nat_target.
5845 Switch to the last_ptid thread.
5846 (windows_nat_target::attach): Adjust.
5847 (windows_nat_target::detach): Use switch_to_no_thread instead of
5848 writing to inferior_ptid directly.
5849 (windows_nat_target::create_inferior): Adjust.
5851 2020-06-18 Pedro Alves <palves@redhat.com>
5853 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5855 2020-06-18 Pedro Alves <palves@redhat.com>
5857 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5858 after creating it, instead of writing to inferior_ptid. Don't
5859 write to inferior_ptid.
5861 2020-06-18 Pedro Alves <palves@redhat.com>
5863 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5865 2020-06-18 Pedro Alves <palves@redhat.com>
5867 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5868 it, instead of writing to inferior_ptid.
5870 2020-06-18 Pedro Alves <palves@redhat.com>
5872 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5875 2020-06-18 Pedro Alves <palves@redhat.com>
5877 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5878 instead of writing to inferior_ptid directly.
5880 2020-06-18 Pedro Alves <palves@redhat.com>
5882 * corelow.c (core_target::close): Use switch_to_no_thread instead
5883 of writing to inferior_ptid directly.
5884 (add_to_thread_list, core_target_open): Use switch_to_thread
5885 instead of writing to inferior_ptid directly.
5887 2020-06-18 Pedro Alves <palves@redhat.com>
5889 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5891 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5893 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5894 inferior_ptid directly.
5895 (darwin_nat_target::init_thread_list): Switch to thread, instead
5896 of writing to inferior_ptid.
5897 (darwin_nat_target::attach): Don't write to inferior_ptid.
5898 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5900 2020-06-18 Pedro Alves <palves@redhat.com>
5902 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5904 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5905 Instead use switch_to_thread.
5906 (gnu_nat_target::detach): Use switch_to_no_thread
5907 instead of writing to inferior_ptid directly. Used passed-in
5908 inferior instead of looking up the inferior by pid.
5910 2020-06-18 Pedro Alves <palves@redhat.com>
5912 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5915 2020-06-18 Pedro Alves <palves@redhat.com>
5917 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5919 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5921 (nto_procfs_target::detach): Avoid referencing
5922 inferior_ptid. Use switch_to_no_thread instead of writing to
5923 inferior_ptid directly.
5924 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5925 instead of writing to inferior_ptid directly.
5926 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5929 2020-06-18 Pedro Alves <palves@redhat.com>
5931 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5932 after creating it, instead of writing to inferior_ptid.
5933 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5934 to inferior_ptid directly.
5935 (gdbsim_target::wait): Don't write to inferior_ptid.
5937 2020-06-18 Pedro Alves <palves@redhat.com>
5939 * remote.c (remote_target::remote_notice_new_inferior): Use
5940 switch_to_thread instead of writing to inferior_ptid directly.
5941 (remote_target::add_current_inferior_and_thread): Use
5942 switch_to_no_thread instead of writing to inferior_ptid directly.
5943 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5944 and switch_to_thread instead of using set_current_inferior or
5945 writing to inferior_ptid directly.
5947 2020-06-18 Pedro Alves <palves@redhat.com>
5949 * tracectf.c (ctf_target_open): Switch to added thread instead of
5950 writing to inferior_ptid directly.
5951 (ctf_target::close): Use switch_to_no_thread instead of writing to
5952 inferior_ptid directly.
5954 2020-06-18 Pedro Alves <palves@redhat.com>
5956 * tracefile-tfile.c (tfile_target_open): Don't write to
5957 inferior_ptid directly, instead switch to added thread.
5958 (tfile_target::close): Use switch_to_no_thread instead of writing
5959 to inferior_ptid directly.
5961 2020-06-18 Pedro Alves <palves@redhat.com>
5963 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5964 (procfs_target::detach): Use switch_to_no_thread
5965 instead of writing to inferior_ptid directly.
5966 (do_attach): Change return type to void. Switch to the added
5968 (procfs_target::create_inferior): Switch to the added thread.
5969 (procfs_do_thread_registers): Don't write to inferior_ptid.
5971 2020-06-18 Pedro Alves <palves@redhat.com>
5973 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5974 of writing to inferior_ptid.
5975 (scoped_restore_exited_inferior): Delete.
5976 (handle_vfork_child_exec_or_exit): Simplify using
5977 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5978 instead of writing to inferior_ptid.
5979 (THREAD_STOPPED_BY): Delete.
5980 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5981 (thread_stopped_by_hw_breakpoint): Delete.
5982 (save_waitstatus): Use
5983 scoped_restore_current_thread+switch_to_thread, and call
5984 target_stopped_by_watchpoint instead of
5985 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5986 instead of thread_stopped_by_sw_breakpoint, and
5987 target_stopped_by_hw_breakpoint instead of
5988 thread_stopped_by_hw_breakpoint.
5989 (handle_inferior_event)
5990 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5991 inferior_ptid directly, nor
5992 set_current_inferior/set_current_program_space. Use
5993 switch_to_thread / switch_to_inferior_no_thread instead.
5995 2020-06-18 Pedro Alves <palves@redhat.com>
5997 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5998 instead of writing to inferior_ptid.
6000 2020-06-18 Pedro Alves <palves@redhat.com>
6002 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6004 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6005 to the added thread.
6006 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6007 instead of writing to inferior_ptid.
6009 2020-06-18 Pedro Alves <palves@redhat.com>
6011 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6012 (register_to_value_test): Mock a program_space too. Heap-allocate
6013 the address space. Don't write to inferior_ptid. Use
6014 switch_to_thread instead.
6016 2020-06-18 Pedro Alves <palves@redhat.com>
6018 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6020 (find_signalled_thread()): New, factored out from
6021 linux_make_corefile_notes and adjusted to handle exited threads.
6022 (linux_make_corefile_notes): Adjust to use the new
6023 find_signalled_thread.
6025 2020-06-18 Pedro Alves <palves@redhat.com>
6027 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6028 of saving/restoring inferior_ptid.
6030 2020-06-17 Tom Tromey <tom@tromey.com>
6032 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6033 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6035 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6037 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6039 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6042 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6044 * regformats/reg-arm.dat: Remove.
6045 * regformats/reg-bfin.dat: Remove.
6046 * regformats/reg-cris.dat: Remove.
6047 * regformats/reg-crisv32.dat: Remove.
6048 * regformats/reg-m32r.dat: Remove.
6049 * regformats/reg-tilegx.dat: Remove.
6050 * regformats/reg-tilegx32.dat: Remove.
6052 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6054 * features/Makefile (WHICH): Remove arm files.
6055 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6056 * regformats/arm/arm-with-neon.dat: Remove.
6057 * regformats/arm/arm-with-vfpv2.dat: Remove.
6058 * regformats/arm/arm-with-vfpv3.dat: Remove.
6060 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6062 * features/Makefile (XMLTOC): Remove rx.xml.
6064 2020-06-17 Pedro Alves <palves@redhat.com>
6066 * gdbthread.h (thread_control_state) <trap_expected> Update
6069 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6071 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6072 ada_language::lookup_symbol_nonlocal.
6073 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6074 (ada_language::lookup_symbol_nonlocal): New member function,
6075 implementation from ada_lookup_symbol_nonlocal.
6076 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6078 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6080 (cplus_language::lookup_symbol_nonlocal): New member function.
6081 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6082 (minimal_language_data) Likewise.
6083 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6084 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6086 (d_language::lookup_symbol_nonlocal): New member function.
6087 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6089 (f_language::lookup_symbol_nonlocal): New member function.
6090 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6092 * language.c (unknown_language_data): Likewise.
6093 (auto_language_data): Likewise.
6094 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6096 (language_defn::lookup_symbol_nonlocal): New member function.
6097 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6099 * objc-lang.c (objc_language_data): Likewise.
6100 * opencl-lang.c (opencl_language_data): Likewise.
6101 * p-lang.c (pascal_language_data): Likewise.
6102 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6103 rust_language::lookup_symbol_nonlocal.
6104 (rust_language_data): Delete la_lookup_symbol_nonlocal
6106 (rust_language::lookup_symbol_nonlocal): New member function,
6107 implementation from rust_lookup_symbol_nonlocal.
6108 * symtab.c (lookup_symbol_aux): Update call to
6109 lookup_symbol_nonlocal.
6110 (basic_lookup_symbol_nonlocal): Rename to...
6111 (language_defn::lookup_symbol_nonlocal): ...this, and update
6112 header comment. Remove language_defn parameter, and replace with
6114 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6116 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6118 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6120 (ada_language::value_print_inner): New member function.
6121 * c-lang.c (c_language_data): Delete la_value_print_inner
6123 (cplus_language_data): Likewise.
6124 (asm_language_data): Likewise.
6125 (minimal_language_data): Likewise.
6126 * d-lang.c (d_language_data): Likewise.
6127 (d_language::value_print_inner): New member function.
6128 * f-lang.c (f_language_data): Delete la_value_print_inner
6130 (f_language::value_print_inner): New member function.
6131 * f-lang.h (f_value_print_innner): Rename to...
6132 (f_value_print_inner): ...this (note spelling of 'inner').
6133 * f-valprint.c (f_value_print_innner): Rename to...
6134 (f_value_print_inner): ...this (note spelling of 'inner').
6135 * go-lang.c (go_language_data): Delete la_value_print_inner
6137 (go_language::value_print_inner): New member function.
6138 * language.c (language_defn::value_print_inner): Define new member
6140 (unk_lang_value_print_inner): Delete.
6141 (unknown_language_data): Delete la_value_print_inner initializer.
6142 (unknown_language::value_print_inner): New member function.
6143 (auto_language_data): Delete la_value_print_inner initializer.
6144 (auto_language::value_print_inner): New member function.
6145 * language.h (language_data): Delete la_value_print_inner field.
6146 (language_defn::value_print_inner): Delcare new member function.
6147 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6149 (m2_language::value_print_inner): New member function.
6150 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6152 * opencl-lang.c (opencl_language_data): Likewise.
6153 * p-lang.c (pascal_language_data): Likewise.
6154 (pascal_language::value_print_inner): New member function.
6155 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6157 (rust_language::value_print_inner): New member function.
6158 * valprint.c (do_val_print): Update call to value_print_inner.
6160 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6162 * ada-lang.c (ada_language_data): Delete la_value_print
6164 (ada_language::value_print): New member function.
6165 * c-lang.c (c_language_data): Delete la_value_print initializer.
6166 (cplus_language_data): Likewise.
6167 (asm_language_data): Likewise.
6168 (minimal_language_data): Likewise.
6169 * d-lang.c (d_language_data): Likewise.
6170 * f-lang.c (f_language_data): Likewise.
6171 * go-lang.c (go_language_data): Likewise.
6172 * language.c (unk_lang_value_print): Delete.
6173 (language_defn::value_print): Define new member function.
6174 (unknown_language_data): Delete la_value_print initializer.
6175 (unknown_language::value_print): New member function.
6176 (auto_language_data): Delete la_value_print initializer.
6177 (auto_language::value_print): New member function.
6178 * language.h (language_data): Delete la_value_print field.
6179 (language_defn::value_print): Declare new member function.
6180 (LA_VALUE_PRINT): Update call to value_print.
6181 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6182 * objc-lang.c (objc_language_data): Likewise.
6183 * opencl-lang.c (opencl_language_data): Likewise.
6184 * p-lang.c (pascal_language_data): Likewise.
6185 (pascal_language::value_print): New member function.
6186 * rust-lang.c (rust_language_data): Delete la_value_print
6189 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6191 * ada-lang.c (ada_watch_location_expression): Rename to
6192 ada_language::watch_location_expression.
6193 (ada_language_data): Delete la_watch_location_expression
6195 (ada_language::watch_location_expression): New member function,
6196 implementation from ada_watch_location_expression.
6197 * breakpoint.c (watch_command_1): Update call to
6198 watch_location_expression.
6199 * c-lang.c (c_watch_location_expression): Rename to
6200 language_defn::watch_location_expression.
6201 (c_language_data): Delete la_watch_location_expression
6203 (cplus_language_data): Likewise.
6204 (asm_language_data): Likewise.
6205 (minimal_language_data): Likewise.
6206 * c-lang.h (c_watch_location_expression): Delete declaration.
6207 * d-lang.c (d_language_data): Delete la_watch_location_expression
6209 * f-lang.c (f_language_data): Likewise.
6210 * go-lang.c (go_language_data): Likewise.
6211 * language.c (language_defn::watch_location_expression): Member
6212 function implementation from c_watch_location_expression.
6213 (unknown_language_data): Delete la_watch_location_expression
6215 (auto_language_data): Likewise.
6216 * language.h (language_data): Delete la_watch_location_expression
6218 (language_defn::watch_location_expression): Declare new member
6220 * m2-lang.c (m2_language_data): Delete
6221 la_watch_location_expression initializer.
6222 * objc-lang.c (objc_language_data): Likewise.
6223 * opencl-lang.c (opencl_language_data): Likewise.
6224 * p-lang.c (pascal_language_data): Likewise.
6225 * rust-lang.c (rust_watch_location_expression): Rename to
6226 rust_language::watch_location_expression.
6227 (rust_language_data): Delete la_watch_location_expression
6229 (rust_language::watch_location_expression): New member function,
6230 implementation from rust_watch_location_expression.
6232 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6234 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6235 ada_language::collect_symbol_completion_matches.
6236 (ada_language_data): Delete la_collect_symbol_completion_matches
6238 (ada_language::collect_symbol_completion_matches): New member
6239 function, implementation from
6240 ada_collect_symbol_completion_matches.
6241 * c-lang.c (c_language_data): Delete
6242 la_collect_symbol_completion_matches initializer.
6243 (cplus_language_data): Likewise.
6244 (asm_language_data): Likewise.
6245 (minimal_language_data): Likewise.
6246 * d-lang.c (d_language_data): Likewise.
6247 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6248 f_language::collect_symbol_completion_matches.
6249 (f_language_data): Delete la_collect_symbol_completion_matches
6251 (f_language::collect_symbol_completion_matches) New member
6252 function, implementation from f_collect_symbol_completion_matches.
6253 * go-lang.c (go_language_data): Delete
6254 la_collect_symbol_completion_matches initializer.
6255 * language.c (unknown_language_data): Likewise.
6256 (auto_language_data): Likewise.
6257 * language.h (language_data): Delete
6258 la_collect_symbol_completion_matches field.
6259 (language_defn::collect_symbol_completion_matches): New member
6261 * m2-lang.c (m2_language_data): Delete
6262 la_collect_symbol_completion_matches initializer.
6263 * objc-lang.c (objc_language_data): Likewise.
6264 * opencl-lang.c (opencl_language_data): Likewise.
6265 * p-lang.c (pascal_language_data): Likewise.
6266 * rust-lang.c (rust_language_data): Likewise.
6267 * symtab.c (default_collect_symbol_completion_matches): Delete.
6268 (collect_symbol_completion_matches): Update call to
6269 collect_symbol_completion_matches.
6270 (collect_symbol_completion_matches_type): Likewise.
6271 * symtab.h (default_collect_symbol_completion_matches): Delete
6274 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6276 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6277 (ada_language_data): Delete la_word_break_characters initializer.
6278 (ada_language::word_break_characters): New member function.
6279 * c-lang.c (c_language_data): Delete la_word_break_characters
6281 (cplus_language_data): Likewise.
6282 (asm_language_data): Likewise.
6283 (minimal_language_data): Likewise.
6284 * completer.c: Update global comment.
6285 (advance_to_expression_complete_word_point): Update call to
6286 word_break_characters.
6287 (complete_files_symbols): Likewise.
6288 (complete_line_internal_1): Likewise.
6289 (default_completer_handle_brkchars): Likewise.
6290 (skip_quoted_chars): Likewise.
6291 * d-lang.c (d_language_data): Delete la_word_break_characters
6293 * f-lang.c (f_word_break_characters): Delete.
6294 (f_language_data): Delete la_word_break_characters initializer.
6295 (f_language::word_break_characters): New member function.
6296 * go-lang.c (go_language_data): Delete la_word_break_characters
6298 * language.c (unknown_language_data): Likewise.
6299 (auto_language_data): Likewise.
6300 * language.h (default_word_break_characters): Move declaration to
6301 earlier in the file.
6302 (language_data): Delete la_word_break_characters field.
6303 (language_defn::word_break_characters): New member function.
6304 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6306 * objc-lang.c (objc_language_data): Likewise.
6307 * opencl-lang.c (opencl_language_data): Likewise.
6308 * p-lang.c (pascal_language_data): Likewise.
6309 * rust-lang.c (rust_language_data): Likewise.
6311 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6313 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6314 (ada_language_data): Delete la_get_symbol_name_matcher
6316 (language_defn::get_symbol_name_matcher_inner): New member
6318 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6320 (cplus_language_data): Likewise.
6321 (cplus_language::get_symbol_name_matcher_inner): New member
6323 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6324 (minimal_language_data): Likewise.
6325 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6326 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6328 * dictionary.c (iter_match_first_hashed): Update call to
6329 get_symbol_name_matcher.
6330 (iter_match_next_hashed): Likewise.
6331 (iter_match_next_linear): Likewise.
6332 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6333 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6335 (f_language::get_symbol_name_matcher_inner): New member function.
6336 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6338 * language.c (default_symbol_name_matcher): Update header comment,
6340 (language_defn::get_symbol_name_matcher): New definition.
6341 (language_defn::get_symbol_name_matcher_inner): Likewise.
6342 (get_symbol_name_matcher): Delete.
6343 (unknown_language_data): Delete la_get_symbol_name_matcher
6345 (auto_language_data): Likewise.
6346 * language.h (language_data): Delete la_get_symbol_name_matcher
6348 (language_defn::get_symbol_name_matcher): New member function.
6349 (language_defn::get_symbol_name_matcher_inner): Likewise.
6350 (default_symbol_name_matcher): Delete declaration.
6351 * linespec.c (find_methods): Update call to
6352 get_symbol_name_matcher.
6353 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6355 * minsyms.c (lookup_minimal_symbol): Update call to
6356 get_symbol_name_matcher.
6357 (iterate_over_minimal_symbols): Likewise.
6358 * objc-lang.c (objc_language_data): Delete
6359 la_get_symbol_name_matcher initializer.
6360 * opencl-lang.c (opencl_language_data): Likewise.
6361 * p-lang.c (pascal_language_data): Likewise.
6362 * psymtab.c (psymbol_name_matches): Update call to
6363 get_symbol_name_matcher.
6364 * rust-lang.c (rust_language_data): Delete
6365 la_get_symbol_name_matcher initializer.
6366 * symtab.c (symbol_matches_search_name): Update call to
6367 get_symbol_name_matcher.
6368 (compare_symbol_name): Likewise.
6370 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6372 * ada-lang.c (ada_language_data): Delete la_compute_program
6374 * c-lang.c (c_language_data): Likewise.
6375 (c_language::compute_program): New member function.
6376 (cplus_language_data): Delete la_compute_program initializer.
6377 (cplus_language::compute_program): New member function.
6378 (asm_language_data): Delete la_compute_program initializer.
6379 (minimal_language_data): Likewise.
6380 * c-lang.h (c_compute_program): Update comment.
6381 (cplus_compute_program): Likewise.
6382 * compile/compile-c-support.c (c_compute_program): Likewise.
6383 (cplus_compute_program): Likewise.
6384 * compile/compile.c (compile_to_object): Update call to
6386 * d-lang.c (d_language_data): Delete la_compute_program
6388 * f-lang.c (f_language_data): Likewise.
6389 * go-lang.c (go_language_data): Likewise.
6390 * language.c (unknown_language_data): Likewise.
6391 (auto_language_data): Likewise.
6392 * language.h (language_data): Delete la_compute_program field.
6393 (language_defn::compute_program): New member function.
6394 * m2-lang.c (m2_language_data): Delete la_compute_program
6396 * objc-lang.c (objc_language_data): Likewise.
6397 * opencl-lang.c (opencl_language_data): Likewise.
6398 * p-lang.c (pascal_language_data): Likewise.
6399 * rust-lang.c (rust_language_data): Likewise.
6401 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6403 * ada-lang.c (ada_language_data) Delete
6404 la_class_name_from_physname initializer.
6405 * c-lang.c (c_language_data): Likewise.
6406 (cplus_language_data): Likewise.
6407 (cplus_language::class_name_from_physname): New member function.
6408 (asm_language_data): Delete la_class_name_from_physname
6410 (minimal_language_data): Likewise.
6411 * d-lang.c (d_language_data): Likewise.
6412 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6413 method on language_defn class.
6414 (guess_full_die_structure_name): Likewise.
6415 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6417 * go-lang.c (go_language_data): Likewise.
6418 * language.c (language_class_name_from_physname): Delete.
6419 (unk_lang_class_name): Delete.
6420 (unknown_language_data): Delete la_class_name_from_physname
6422 (auto_language_data): Likewise.
6423 * language.h (language_data): Delete la_class_name_from_physname
6425 (language_defn::class_name_from_physname): New function.
6426 (language_class_name_from_physname): Delete declaration.
6427 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6429 * objc-lang.c (objc_language_data): Likewise.
6430 * opencl-lang.c (opencl_language_data): Likewise.
6431 * p-lang.c (pascal_language_data): Likewise.
6432 * rust-lang.c (rust_language_data): Likewise.
6434 2020-06-16 Tom Tromey <tom@tromey.com>
6436 * tui/tui-data.h (STATUS_NAME): New macro.
6437 * tui/tui-layout.c (tui_remove_some_windows)
6438 (initialize_known_windows, tui_register_window)
6439 (tui_layout_split::remove_windows, initialize_layouts)
6440 (tui_new_layout_command): Don't use hard-coded window names.
6442 2020-06-16 Tom Tromey <tom@tromey.com>
6445 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6446 tui_initialize_readline. Only run once. Call rl_initialize.
6447 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6448 tui_initialize_readline.
6449 * tui/tui-io.c (tui_setup_io): Call
6450 tui_ensure_readline_initialized.
6451 * tui/tui-interp.c (tui_interp::init): Update.
6453 2020-06-16 Tom Tromey <tom@tromey.com>
6455 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6456 Also preserve the status window.
6458 2020-06-16 Tom Tromey <tom@tromey.com>
6460 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6461 where m_window==nullptr.
6463 2020-06-15 Tom Tromey <tromey@adacore.com>
6465 * windows-nat.c (windows_nat::handle_output_debug_string):
6467 (windows_nat::handle_ms_vc_exception): Update.
6468 * target.h (target_read_string): Change API.
6469 * target.c (target_read_string): Change API.
6470 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6472 * solib-frv.c (frv_current_sos): Update.
6473 * solib-dsbt.c (dsbt_current_sos): Update.
6474 * solib-darwin.c (darwin_current_sos): Update.
6475 * linux-thread-db.c (inferior_has_bug): Update.
6476 * expprint.c (print_subexp_standard): Update.
6477 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6478 (ada_exception_message_1): Update.
6480 2020-06-15 Tom Tromey <tromey@adacore.com>
6482 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6484 2020-06-15 Tom Tromey <tromey@adacore.com>
6486 * valprint.c (read_string): Update comment.
6487 * target.c (MIN): Remove.
6488 (target_read_string): Rewrite.
6490 2020-06-15 Tom Tromey <tromey@adacore.com>
6492 * corefile.c (read_memory_string): Remove.
6493 * ada-valprint.c (ada_value_print_ptr): Update.
6494 * ada-lang.h (ada_tag_name): Change return type.
6495 * ada-lang.c (type_from_tag): Update.
6496 (ada_tag_name_from_tsd): Change return type. Use
6498 (ada_tag_name): Likewise.
6499 * gdbcore.h (read_memory_string): Don't declare.
6501 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6503 * symtab.c (rbreak_command): Ignore Windows drive colon.
6505 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6507 * NEWS: Mention removed GDBserver host support.
6509 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6511 * features/riscv/rebuild-csr-xml.sh: Updated.
6513 2020-06-11 Tom Tromey <tom@tromey.com>
6516 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6518 2020-06-09 Jonny Grant <jg@jguk.org>
6519 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6521 * main.c (captured_main_1): Don't print new line after help.
6522 (print_gdb_help): add mailing list and IRC channel information
6523 to --help. Add new lines between items in the footer. Remove
6524 quotes around bug url.
6526 2020-06-11 Keith Seitz <keiths@redhat.com>
6529 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6530 Resolve typedefs for type length calculations.
6532 2020-06-10 Tom de Vries <tdevries@suse.de>
6535 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6536 (write_psymbols): Enable .gdb_index for ada.
6537 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6540 2020-06-10 Tom de Vries <tdevries@suse.de>
6542 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6543 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6544 namei" instead of "const char *name" argument.
6545 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6546 dw2_symtab_iter_init.
6548 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6550 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6551 to use type::field and field::type instead.
6553 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6555 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6556 to use field::type instead.
6558 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6560 * gdbtypes.h (struct field) <type, set_type>: New methods.
6561 Rename `type` field to...
6562 <m_type>: ... this. Change references throughout to use type or
6564 (FIELD_TYPE): Use field::type. Change call sites that modify
6565 the field's type to use field::set_type instead.
6567 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6569 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6570 to use type::index_type instead.
6572 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6574 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6576 (TYPE_INDEX_TYPE): Use type::index_type.
6577 * gdbtypes.c (create_array_type_with_stride): Likewise.
6579 2020-06-07 Tom Tromey <tom@tromey.com>
6581 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6583 (generic_value_print): Update.
6585 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6587 Revert commit 982a38f60b0.
6588 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6590 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6592 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6593 avoid use after free.
6595 2020-06-05 Tom de Vries <tdevries@suse.de>
6599 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6601 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6603 (dwarf2_read_debug_names): Likewise.
6604 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6605 object when re-using a per_bfd object with an index.
6607 2020-06-03 Tom de Vries <tdevries@suse.de>
6610 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6612 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6615 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6617 * ada-lang.c (ada_language_data): Delete skip_trampoline
6619 * c-lang.c (c_language_data): Likewise.
6620 (cplus_language_data): Likewise.
6621 (cplus_language::skip_trampoline): New member function.
6622 (asm_language_data): Delete skip_trampoline initializer.
6623 (minimal_language_data): Likewise.
6624 * d-lang.c (d_language_data): Likewise.
6625 * f-lang.c (f_language_data): Likewise.
6626 * go-lang.c (go_language_data): Likewise.
6627 * language.c (unk_lang_trampoline): Delete function.
6628 (skip_language_trampoline): Update.
6629 (unknown_language_data): Delete skip_trampoline initializer.
6630 (auto_language_data): Likewise.
6631 * language.h (language_data): Delete skip_trampoline field.
6632 (language_defn::skip_trampoline): New function.
6633 * m2-lang.c (m2_language_data): Delete skip_trampoline
6635 * objc-lang.c (objc_skip_trampoline): Delete function, move
6636 implementation to objc_language::skip_trampoline.
6637 (objc_language_data): Delete skip_trampoline initializer.
6638 (objc_language::skip_trampoline): New member function with
6639 implementation from objc_skip_trampoline.
6640 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6642 * p-lang.c (pascal_language_data): Likewise.
6643 * rust-lang.c (rust_language_data): Likewise.
6645 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6647 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6648 (ada_language::demangle): New member function.
6649 * c-lang.c (c_language_data): Delete la_demangle initializer.
6650 (cplus_language_data): Delete la_demangle initializer.
6651 (cplus_language::demangle): New member function.
6652 (asm_language_data): Delete la_demangle initializer.
6653 (minimal_language_data): Delete la_demangle initializer.
6654 * d-lang.c (d_language_data): Delete la_demangle initializer.
6655 (d_language::demangle): New member function.
6656 * f-lang.c (f_language_data): Delete la_demangle initializer.
6657 (f_language::demangle): New member function.
6658 * go-lang.c (go_language_data): Delete la_demangle initializer.
6659 (go_language::demangle): New member function.
6660 * language.c (language_demangle): Update.
6661 (unk_lang_demangle): Delete.
6662 (unknown_language_data): Delete la_demangle initializer.
6663 (unknown_language::demangle): New member function.
6664 (auto_language_data): Delete la_demangle initializer.
6665 (auto_language::demangle): New member function.
6666 * language.h (language_data): Delete la_demangle field.
6667 (language_defn::demangle): New function.
6668 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6669 * objc-lang.c (objc_language_data): Delete la_demangle
6671 (objc_language::demangle): New member function.
6672 * opencl-lang.c (opencl_language_data): Delete la_demangle
6674 * p-lang.c (pascal_language_data): Likewise.
6675 * rust-lang.c (rust_language_data): Likewise.
6676 (rust_language::demangle): New member function.
6678 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6680 * ada-lang.c (ada_language_data): Delete la_print_type
6682 (ada_language::print_type): New member function.
6683 * c-lang.c (c_language_data): Delete la_print_type initializer.
6684 (c_language::print_type): New member function.
6685 (cplus_language_data): Delete la_print_type initializer.
6686 (cplus_language::print_type): New member function.
6687 (asm_language_data): Delete la_print_type initializer.
6688 (asm_language::print_type): New member function.
6689 (minimal_language_data): Delete la_print_type initializer.
6690 (minimal_language::print_type): New member function.
6691 * d-lang.c (d_language_data): Delete la_print_type initializer.
6692 (d_language::print_type): New member function.
6693 * f-lang.c (f_language_data): Delete la_print_type initializer.
6694 (f_language::print_type): New member function.
6695 * go-lang.c (go_language_data): Delete la_print_type initializer.
6696 (go_language::print_type): New member function.
6697 * language.c (unk_lang_print_type): Delete.
6698 (unknown_language_data): Delete la_print_type initializer.
6699 (unknown_language::print_type): New member function.
6700 (auto_language_data): Delete la_print_type initializer.
6701 (auto_language::print_type): New member function.
6702 * language.h (language_data): Delete la_print_type field.
6703 (language_defn::print_type): New function.
6704 (LA_PRINT_TYPE): Update.
6705 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6706 (m2_language::print_type): New member function.
6707 * objc-lang.c (objc_language_data): Delete la_print_type
6709 (objc_language::print_type): New member function.
6710 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6711 to opencl_language::print_type.
6712 (opencl_language_data): Delete la_print_type initializer.
6713 (opencl_language::print_type): New member function, implementation
6714 from opencl_print_type.
6715 * p-lang.c (pascal_language_data): Delete la_print_type
6717 (pascal_language::print_type): New member function.
6718 * rust-lang.c (rust_print_type): Delete, implementation moved to
6719 rust_language::print_type.
6720 (rust_language_data): Delete la_print_type initializer.
6721 (rust_language::print_type): New member function, implementation
6722 from rust_print_type.
6724 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6726 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6727 implementation moves to...
6728 (ada_language::sniff_from_mangled_name): ...here. Update return
6730 (ada_language_data): Delete la_sniff_from_mangled_name
6732 * c-lang.c (c_language_data): Likewise.
6733 (cplus_language_data): Likewise.
6734 (cplus_language::sniff_from_mangled_name): New member function,
6735 implementation taken from gdb_sniff_from_mangled_name.
6736 (asm_language_data): Delete la_sniff_from_mangled_name
6738 (minimal_language_data): Likewise.
6739 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6740 implementation moves to cplus_language::sniff_from_mangled_name.
6741 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6742 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6744 (d_language::sniff_from_mangled_name): ...here.
6745 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6746 * f-lang.c (f_language_data): Likewise.
6747 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6749 (go_language::sniff_from_mangled_name): ...here.
6750 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6751 * language.c (language_sniff_from_mangled_name): Delete.
6752 (unknown_language_data): Delete la_sniff_from_mangled_name
6754 (auto_language_data): Likewise.
6755 * language.h (language_data): Delete la_sniff_from_mangled_name
6757 (language_defn::sniff_from_mangled_name): New function.
6758 (language_sniff_from_mangled_name): Delete declaration.
6759 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6761 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6762 implementation moves to...
6763 (objc_language::sniff_from_mangled_name): ...here.
6764 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6765 * opencl-lang.c (opencl_language_data): Likewise.
6766 * p-lang.c (pascal_language_data): Likewise.
6767 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6768 implementation moves to...
6769 (rust_language::sniff_from_mangled_name): ...here.
6770 (rust_language_data): Delete la_sniff_from_mangled_name
6772 * symtab.c (symbol_find_demangled_name): Call
6773 sniff_from_mangled_name member function.
6775 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6777 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6779 * c-lang.c (c_language_data): Likewise.
6780 (cplus_language_data): Likewise.
6781 (cplus_language::search_name_hash): New member function.
6782 (asm_language_data): Delete la_search_name_hash initializer.
6783 (minimal_language_data): Likewise.
6784 * d-lang.c (d_language_data): Likewise.
6785 * dictionary.c (default_search_name_hash): Rename to...
6786 (language_defn::search_name_hash): ...this.
6787 * f-lang.c (f_language_data): Likewise.
6788 (f_language::search_name_hash): New member function.
6789 * go-lang.c (go_language_data): Delete la_search_name_hash
6791 * language.c (unknown_language_data): Likewise.
6792 (auto_language_data): Likewise.
6793 * language.h (struct language_data): Delete la_search_name_hash
6795 (language_defn::search_name_hash): Declare new member function.
6796 (default_search_name_hash): Delete declaration.
6797 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6799 * objc-lang.c (objc_language_data): Likewise.
6800 * opencl-lang.c (opencl_language_data): Likewise.
6801 * p-lang.c (pascal_language_data): Likewise.
6802 * rust-lang.c (rust_language_data): Likewise.
6803 * symtab.c (search_name_hash): Update call.
6805 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6807 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6809 * c-lang.c (class compile_instance): Declare.
6810 (c_language_data): Delete la_get_compile_instance initializer.
6811 (c_language::get_compile_instance): New member function.
6812 (cplus_language_data): Delete la_get_compile_instance initializer.
6813 (cplus_language::get_compile_instance): New member function.
6814 (asm_language_data): Delete la_get_compile_instance initializer.
6815 (minimal_language_data): Likewise.
6816 * c-lang.h (c_get_compile_context): Update comment.
6817 (cplus_get_compile_context): Update comment.
6818 * compile/compile.c (compile_to_object): Update calls, don't rely
6819 on function pointer being NULL.
6820 * d-lang.c (d_language_data): Delete la_get_compile_instance
6822 * f-lang.c (f_language_data): Likewise.
6823 * go-lang.c (go_language_data): Likewise.
6824 * language.c (unknown_language_data): Likewise.
6825 (auto_language_data): Likewise.
6826 * language.h (language_data): Delete la_get_compile_instance field.
6827 (language_defn::get_compile_instance): New member function.
6828 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6830 * objc-lang.c (objc_language_data): Likewise.
6831 * opencl-lang.c (opencl_language_data): Likewise.
6832 * p-lang.c (pascal_language_data): Likewise.
6833 * rust-lang.c (rust_language_data): Likewise.
6835 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6837 * ada-lang.c (ada_add_all_symbols): Update comment.
6838 (ada_iterate_over_symbols): Delete, move implementation to...
6839 (ada_language::iterate_over_symbols): ...here, a new member
6840 function, rewrite to use range based for loop.
6841 (ada_language_data): Delete la_iterate_over_symbols initializer.
6842 * c-lang.c (c_language_data): Likewise.
6843 (cplus_language_data): Likewise.
6844 (asm_language_data): Likewise.
6845 (minimal_language_data): Likewise.
6846 * d-lang.c (d_language_data): Likewise.
6847 * f-lang.c (f_language_data): Likewise.
6848 * go-lang.c (go_language_data): Likewise.
6849 * language.c (unknown_language_data): Likewise.
6850 (auto_language_data): Likewise.
6851 * language.h (language_data): Delete la_iterate_over_symbols field.
6852 (language_defn::iterate_over_symbols): New member function.
6853 (LA_ITERATE_OVER_SYMBOLS): Update.
6854 * linespec.c (iterate_over_all_matching_symtabs): Update.
6855 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6857 * objc-lang.c (objc_language_data): Likewise.
6858 * opencl-lang.c (opencl_language_data): Likewise.
6859 * p-lang.c (pascal_language_data): Likewise.
6860 * rust-lang.c (rust_language_data): Likewise.
6862 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6864 * ada-lang.c (ada_language_data): Delete
6865 la_lookup_transparent_type initializer.
6866 * c-lang.c (c_language_data): Likewise.
6867 (cplus_language_data): Likewise.
6868 (cplus_language::lookup_transparent_type): New member function.
6869 (asm_language_data): Delete la_lookup_transparent_type
6871 (minimal_language_data): Likewise.
6872 * d-lang.c (d_language_data): Likewise.
6873 * f-lang.c (f_language_data): Likewise.
6874 * go-lang.c (go_language_data): Likewise.
6875 * language.c (unknown_language_data): Likewise.
6876 (auto_language_data): Likewise.
6877 * language.h (struct language_data): Delete
6878 la_lookup_transparent_type field.
6879 (language_defn::lookup_transparent_type): New member function.
6880 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6882 * objc-lang.c (objc_language_data): Likewise.
6883 * opencl-lang.c (opencl_language_data): Likewise.
6884 * p-lang.c (pascal_language_data): Likewise.
6885 * rust-lang.c (rust_language_data): Likewise.
6886 * symtab.c (symbol_matches_domain): Update call.
6888 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6890 * ada-lang.c (ada_language_arch_info): Delete function, move
6891 implementation to...
6892 (ada_language::language_arch_info): ...here, a new member
6894 (ada_language_data): Delete la_language_arch_info.
6895 * c-lang.c (c_language_data): Likewise.
6896 (c_language::language_arch_info): New member function.
6897 (cplus_language_arch_info): Delete function, move
6898 implementation to...
6899 (cplus_language::language_arch_info): ...here, a new member
6901 (cplus_language_data): Delete la_language_arch_info.
6902 (asm_language_data): Likewise.
6903 (asm_language::language_arch_info): New member function.
6904 (minimal_language_data): Delete la_language_arch_info.
6905 (minimal_language::language_arch_info): New member function.
6906 * d-lang.c (d_language_arch_info): Delete function, move
6907 implementation to...
6908 (d_language::language_arch_info): ...here, a new member
6910 (d_language_data): Delete la_language_arch_info.
6911 * f-lang.c (f_language_arch_info): Delete function, move
6912 implementation to...
6913 (f_language::language_arch_info): ...here, a new member
6915 (f_language_data): Delete la_language_arch_info.
6916 * go-lang.c (go_language_arch_info): Delete function, move
6917 implementation to...
6918 (go_language::language_arch_info): ...here, a new member
6920 (go_language_data): Delete la_language_arch_info.
6921 * language.c (unknown_language_data): Likewise.
6922 (unknown_language::language_arch_info): New member function.
6923 (auto_language_data): Delete la_language_arch_info.
6924 (auto_language::language_arch_info): New member function.
6925 (language_gdbarch_post_init): Update call to
6926 la_language_arch_info.
6927 * language.h (language_data): Delete la_language_arch_info
6929 (language_defn::language_arch_info): New function.
6930 * m2-lang.c (m2_language_arch_info): Delete function, move
6931 implementation to...
6932 (m2_language::language_arch_info): ...here, a new member
6934 (m2_language_data): Delete la_language_arch_info.
6935 * objc-lang.c (objc_language_arch_info): Delete function, move
6936 implementation to...
6937 (objc_language::language_arch_info): ...here, a new member
6939 (objc_language_data): Delete la_language_arch_info.
6940 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6941 implementation to...
6942 (opencl_language::language_arch_info): ...here, a new member
6944 (opencl_language_data): Delete la_language_arch_info.
6945 * p-lang.c (pascal_language_arch_info): Delete function, move
6946 implementation to...
6947 (pascal_language::language_arch_info): ...here, a new member
6949 (pascal_language_data): Delete la_language_arch_info.
6950 * rust-lang.c (rust_language_arch_info): Delete function, move
6951 implementation to...
6952 (rust_language::language_arch_info): ...here, a new member
6954 (rust_language_data): Delete la_language_arch_info.
6956 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6958 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6960 * c-lang.c (c_language_data): Likewise.
6961 (cplus_language_data): Likewise.
6962 (cplus_language::pass_by_reference_info): New method.
6963 (asm_language_data): Delete la_pass_by_reference initializer.
6964 (minimal_language_data): Likewise.
6965 * cp-abi.c (cp_pass_by_reference): Remove use of
6966 default_pass_by_reference.
6967 * d-lang.c (d_language_data): Likewise.
6968 * f-lang.c (f_language_data): Likewise.
6969 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6970 default_pass_by_reference.
6971 * go-lang.c (go_language_data): Likewise.
6972 * language.c (language_pass_by_reference): Update.
6973 (default_pass_by_reference): Delete.
6974 (unknown_language_data): Delete la_pass_by_reference
6976 (auto_language_data): Likewise.
6977 * language.h (struct language_data): Delete la_pass_by_reference
6979 (language_defn::pass_by_reference_info): New member function.
6980 (default_pass_by_reference): Delete declaration.
6981 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6983 * objc-lang.c (objc_language_data): Likewise.
6984 * opencl-lang.c (opencl_language_data): Likewise.
6985 * p-lang.c (pascal_language_data): Likewise.
6986 * rust-lang.c (rust_language_data): Likewise.
6988 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6990 * ada-lang.c (ada_read_var_value): Delete function, move
6991 implementation to...
6992 (ada_language::read_var_value): ...here.
6993 (ada_language_data): Delete la_read_var_value initializer.
6994 * c-lang.c (c_language_data): Likewise.
6995 (cplus_language_data): Likewise.
6996 (minimal_language_data): Likewise.
6997 * d-lang.c (d_language_data): Likewise.
6998 * f-lang.c (f_language_data): Likewise.
6999 * findvar.c (default_read_var_value): Rename to...
7000 (language_defn::read_var_value): ...this.
7001 * findvar.c (read_var_value): Update header comment, and change to
7002 call member function instead of function pointer.
7003 * go-lang.c (go_language_data): Likewise.
7004 * language.c (unknown_language_data): Delete la_read_var_value
7006 (auto_language_data): Likewise.
7007 * language.h (struct language_data): Delete la_read_var_value
7009 (language_defn::read_var_value): New member function.
7010 (default_read_var_value): Delete declaration.
7011 * m2-lang.c (m2_language_data): Delete la_read_var_value
7013 * objc-lang.c (objc_language_data): Likewise.
7014 * opencl-lang.c (opencl_language_data): Likewise.
7015 * p-lang.c (pascal_language_data): Likewise.
7016 * rust-lang.c (rust_language_data): Likewise.
7017 * value.h (default_read_var_value): Delete declaration.
7019 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7021 * ada-lang.c (ada_print_array_index): Delete function, move
7022 implementation to...
7023 (ada_language::print_array_index): ...here.
7024 (ada_language_data): Delete la_print_array_index initializer.
7025 * c-lang.c (c_language_data): Likewise.
7026 (cplus_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 (default_print_array_index): Delete function, move
7032 implementation to...
7033 (language_defn::print_array_index): ...here.
7034 (unknown_language_data): Delete la_print_array_index initializer.
7035 (auto_language_data): Likewise.
7036 * language.h (struct language_data): Delete la_print_array_index
7038 (language_defn::print_array_index): New member function.
7039 (LA_PRINT_ARRAY_INDEX): Update.
7040 (default_print_array_index): Delete declaration.
7041 * m2-lang.c (m2_language_data): Delete la_print_array_index
7043 * objc-lang.c (objc_language_data): Likewise.
7044 * opencl-lang.c (opencl_language_data): Likewise.
7045 * p-lang.c (pascal_language_data): Likewise.
7046 * rust-lang.c (rust_language_data): Likewise.
7048 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7050 * gdb/ada-lang.c (ada_language_defn): Convert to...
7051 (ada_language_data): ...this.
7052 (class ada_language): New class.
7053 (ada_language_defn): New static global.
7054 * gdb/c-lang.c (c_language_defn): Convert to...
7055 (c_language_data): ...this.
7056 (class c_language): New class.
7057 (c_language_defn): New static global.
7058 (cplus_language_defn): Convert to...
7059 (cplus_language_data): ...this.
7060 (class cplus_language): New class.
7061 (cplus_language_defn): New static global.
7062 (asm_language_defn): Convert to...
7063 (asm_language_data): ...this.
7064 (class asm_language): New class.
7065 (asm_language_defn): New static global.
7066 (minimal_language_defn): Convert to...
7067 (minimal_language_data): ...this.
7068 (class minimal_language): New class.
7069 (minimal_language_defn): New static global.
7070 * gdb/d-lang.c (d_language_defn): Convert to...
7071 (d_language_data): ...this.
7072 (class d_language): New class.
7073 (d_language_defn): New static global.
7074 * gdb/f-lang.c (f_language_defn): Convert to...
7075 (f_language_data): ...this.
7076 (class f_language): New class.
7077 (f_language_defn): New static global.
7078 * gdb/go-lang.c (go_language_defn): Convert to...
7079 (go_language_data): ...this.
7080 (class go_language): New class.
7081 (go_language_defn): New static global.
7082 * gdb/language.c (unknown_language_defn): Remove declaration.
7083 (current_language): Initialize to nullptr, real initialization is
7084 moved to _initialize_language.
7085 (languages): Delete global.
7086 (language_defn::languages): Define.
7087 (set_language_command): Use language_defn::languages.
7088 (set_language): Likewise.
7089 (range_error): Likewise.
7090 (language_enum): Likewise.
7091 (language_def): Likewise.
7092 (add_set_language_command): Use language_def::languages for the
7093 language list, and language_def to lookup language pointers.
7094 (skip_language_trampoline): Use language_defn::languages.
7095 (unknown_language_defn): Convert to...
7096 (unknown_language_data): ...this.
7097 (class unknown_language): New class.
7098 (unknown_language_defn): New static global.
7099 (auto_language_defn): Convert to...
7100 (auto_language_data): ...this.
7101 (class auto_language): New class.
7102 (auto_language_defn): New static global.
7103 (language_gdbarch_post_init): Use language_defn::languages.
7104 (_initialize_language): Initialize current_language.
7105 * gdb/language.h (struct language_defn): Rename to...
7106 (struct language_data): ...this.
7107 (struct language_defn): New.
7108 (auto_language_defn): Delete.
7109 (unknown_language_defn): Delete.
7110 (minimal_language_defn): Delete.
7111 (ada_language_defn): Delete.
7112 (asm_language_defn): Delete.
7113 (c_language_defn): Delete.
7114 (cplus_language_defn): Delete.
7115 (d_language_defn): Delete.
7116 (f_language_defn): Delete.
7117 (go_language_defn): Delete.
7118 (m2_language_defn): Delete.
7119 (objc_language_defn): Delete.
7120 (opencl_language_defn): Delete.
7121 (pascal_language_defn): Delete.
7122 (rust_language_defn): Delete.
7123 * gdb/m2-lang.c (m2_language_defn): Convert to...
7124 (m2_language_data): ...this.
7125 (class m2_language): New class.
7126 (m2_language_defn): New static global.
7127 * gdb/objc-lang.c (objc_language_defn): Convert to...
7128 (objc_language_data): ...this.
7129 (class objc_language): New class.
7130 (objc_language_defn): New static global.
7131 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7132 (opencl_language_data): ...this.
7133 (class opencl_language): New class.
7134 (opencl_language_defn): New static global.
7135 * gdb/p-lang.c (pascal_language_defn): Convert to...
7136 (pascal_language_data): ...this.
7137 (class pascal_language): New class.
7138 (pascal_language_defn): New static global.
7139 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7140 language pointer, update comment format.
7141 * gdb/rust-lang.c (rust_language_defn): Convert to...
7142 (rust_language_data): ...this.
7143 (class rust_language): New class.
7144 (rust_language_defn): New static global.
7146 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7148 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7150 <m_stmt_at_address>: New member variable.
7151 (lnp_state_machine::record_line): Don't record some lines, update
7152 tracking of is_stmt at the same address.
7153 (lnp_state_machine::lnp_state_machine): Initialise new member
7156 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7158 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7159 "-include gnu-nat-mig.h".
7160 * gnu-nat-mig.h: New file.
7161 * gnu-nat.c: Include "gnu-nat-mig.h".
7162 (exc_server, msg_reply_server, notify_server,
7163 process_reply_server): Remove declarations.
7165 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7167 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7168 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7169 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7170 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7171 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7172 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7173 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7174 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7175 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7176 to gnu_nat_target class.
7177 * gnu-nat.c: Likewise.
7178 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7179 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7180 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7182 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7183 instead of `gnu_target'.
7185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7187 * i386-gnu-tdep.c: Include "gdbcore.h"
7188 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7189 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7190 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7191 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7192 i386_gnu_sigcontext_addr): New functions
7193 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7194 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7197 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7199 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7200 before fork_inferior call. Avoid calling it if target_is_pushed returns
7203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7205 * gnu-nat.h (gnu_target): New variable declaration.
7206 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7208 * gnu-nat.c (gnu_target): New variable.
7209 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7210 add_thread_silent, and add_thread calls.
7211 (gnu_nat_target::create_inferior): Pass gnu_target to
7212 add_thread_silent, thread_change_ptid call.
7213 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7216 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7218 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7219 (gnu_nat_target::find_memory_regions): Remove unused
7220 `old_address' variable.
7222 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7224 * gnu-nat.c: Include "gdbarch.h".
7226 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7228 * reply_mig_hack.awk (Error return): Cast function through
7229 void *, to bypass compiler function call check.
7231 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7233 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7234 $(srcdir)/reply_mig_hack.awk.
7236 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7238 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7240 2020-05-30 Jonny Grant <jg@jguk.org>
7242 * configure.ac (ACX_BUGURL): change bug URL to https.
7244 2020-05-30 Pedro Alves <palves@redhat.com>
7246 * cp-support.c (replace_typedefs_template): New.
7247 (replace_typedefs_qualified_name): Handle
7248 DEMANGLE_COMPONENT_TEMPLATE.
7250 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7252 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7253 dwarf2/index-cache.h, dwarf2/index-write.c,
7254 dwarf2/index-write.h, dwarf2/line-header.c,
7255 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7256 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7257 variables and fields from `dwarf2_per_objfile` to just
7258 `per_objfile` throughout.
7260 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7262 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7263 <push_dwarf_reg_entry_value>: Add comment.
7265 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7266 Keith Seitz <keiths@redhat.com>
7268 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7269 instead of PyEval_ReleaseLock.
7270 (class gdbpy_gil): Move to earlier in file.
7271 (finalize_python): Set gdb_python_initialized.
7272 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7273 when not initialized.
7275 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7277 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7278 <push_dwarf_reg_entry_value>: Remove assert. Override
7279 per_objfile with caller_per_objfile.
7281 2020-05-28 Tom de Vries <tdevries@suse.de>
7283 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7284 PR gold/15646 workaround to symbol kind "type".
7286 2020-05-27 Tom Tromey <tromey@adacore.com>
7288 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7290 2020-05-27 Tom Tromey <tromey@adacore.com>
7292 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7293 Use htab_find_with_hash.
7294 <add_abbrev>: Remove "abbrev_number" parameter.
7295 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7296 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7297 (hash_abbrev): Add comment.
7298 (abbrev_table::lookup_abbrev): Move to header file.
7299 (abbrev_table::read): Update.
7301 2020-05-27 Tom Tromey <tromey@adacore.com>
7303 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7305 <canonical_name>: New member.
7306 <raw_name>: Rename from "name".
7307 (partial_die_info): Initialize canonical_name.
7308 (scan_partial_symbols): Check raw_name.
7309 (partial_die_parent_scope, partial_die_full_name)
7310 (add_partial_symbol, add_partial_subprogram)
7311 (add_partial_enumeration, load_partial_dies): Use "name" method.
7312 (partial_die_info::name): New method.
7313 (partial_die_info::read, guess_partial_die_structure_name)
7314 (partial_die_info::fixup): Update.
7316 2020-05-27 Tom Tromey <tromey@adacore.com>
7318 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7319 <get_ref_die_offset>: Inline.
7320 <get_ref_die_offset_complaint>: New method.
7321 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7322 (attribute::get_ref_die_offset_complaint): Rename from
7323 get_ref_die_offset. Just issue complaint.
7325 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7327 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7329 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7331 * exec.c (exec_file_attach): Use errno value of first openp failure.
7333 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7335 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7336 Don't close thread handle.
7338 2020-05-27 Tom Tromey <tom@tromey.com>
7339 Simon Marchi <simon.marchi@efficios.com>
7341 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7343 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7345 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7346 dwarf2_per_bfd_objfile_data_key>: New globals.
7347 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7348 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7349 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7351 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7352 short-circuit when sharing.
7353 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7354 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7358 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7360 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7361 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7363 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7365 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7366 build_name_components, find_name_components_bounds>:
7367 Add per_objfile parameter.
7368 (struct mapped_index) <symbol_name_at>: Likewise.
7369 (struct mapped_debug_names): Remove constructor.
7370 <dwarf2_per_objfile>: Remove field.
7371 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7372 (mapped_index_base::find_name_components_bounds,
7373 mapped_index_base::build_name_components,
7374 dw2_expand_symtabs_matching_symbol): Likewise.
7375 (class mock_mapped_index) <symbol_name_at>: Likewise.
7376 (check_match): Likewise.
7377 (check_find_bounds_finds): Likewise.
7378 (test_mapped_index_find_name_component_bounds): Update.
7379 (CHECK_MATCH): Update.
7380 (dw2_expand_symtabs_matching): Update.
7381 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7382 per_objfile parameter.
7383 <find_vec_in_debug_names>: Likewise.
7384 <m_per_objfile>: New field.
7385 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7387 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7388 (dw2_debug_names_iterator::next): Update.
7389 (dw2_debug_names_lookup_symbol): Update.
7390 (dw2_debug_names_expand_symtabs_for_function): Update.
7391 (dw2_debug_names_map_matching_symbols): Update.
7392 (dw2_debug_names_expand_symtabs_matching): Update.
7393 (dwarf2_read_debug_names): Update.
7395 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7397 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7398 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7399 move to dwarf2_per_objfile.
7400 <read_in_chain>: Remove.
7401 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7402 remove_all_cus, age_comp_units>: New methods.
7403 <m_dwarf2_cus>: New member.
7404 (struct dwarf2_per_cu_data) <cu>: Remove.
7405 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7406 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7407 moved to methods of dwarf2_per_objfile.
7408 (dwarf2_clear_marks): Remove.
7409 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7410 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7411 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7412 (dwarf2_per_objfile::remove_all_cus): New.
7413 (class free_cached_comp_units) <~free_cached_comp_units>:
7416 (dw2_do_instantiate_symtab): Adjust.
7417 (fill_in_sig_entry_from_dwo_entry): Adjust.
7418 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7419 (cutu_reader::cutu_reader): Likewise.
7420 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7421 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7422 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7423 and dwarf2_per_objfile::age_comp_units.
7424 (load_partial_comp_unit): Update.
7425 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7426 (process_queue): Likewise.
7427 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7429 (dwarf2_read_addr_index): Likewise.
7430 (follow_die_offset): Likewise.
7431 (dwarf2_fetch_die_loc_sect_off): Likewise.
7432 (dwarf2_fetch_constant_bytes): Likewise.
7433 (dwarf2_fetch_die_type_sect_off): Likewise.
7434 (follow_die_sig_1): Likewise.
7435 (load_full_type_unit): Likewise.
7436 (read_signatured_type): Likewise.
7437 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7438 (dwarf2_cu::~dwarf2_cu): Remove.
7439 (dwarf2_per_objfile::get_cu): New.
7440 (dwarf2_per_objfile::set_cu): New.
7441 (age_cached_comp_units): Rename to...
7442 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7443 to std::unordered_map.
7444 (free_one_cached_comp_unit): Rename to...
7445 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7446 to std::unordered_map.
7447 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7448 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7449 a dwarf2_per_objfile in data.
7450 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7451 (dwarf2_clear_marks): Remove.
7453 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7455 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7456 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7457 (init_tu_and_read_dwo_dies): Likewise.
7458 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7459 (cutu_reader::cutu_reader): Likewise.
7460 (load_partial_comp_unit): Likewise.
7461 (process_psymtab_comp_unit): Update.
7462 (build_type_psymtabs_1): Update.
7463 (process_skeletonless_type_unit): Update.
7464 (load_full_comp_unit): Update.
7465 (find_partial_die): Update.
7466 (dwarf2_read_addr_index): Update.
7467 (read_signatured_type): Update.
7469 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7471 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7472 m_header_read_in>: New fields.
7473 <get_header>: New method.
7474 * dwarf2/read.c (per_cu_header_read_in): Remove.
7475 (dwarf2_per_cu_data::get_header): New.
7476 (dwarf2_per_cu_data::addr_size): Update.
7477 (dwarf2_per_cu_data::offset_size): Update.
7478 (dwarf2_per_cu_data::ref_addr_size): Update.
7480 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7482 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7483 (dw2_do_instantiate_symtab): Update.
7484 (queue_and_load_all_dwo_tus): Change parameter from
7485 dwarf2_per_cu_data to dwarf2_cu.
7486 (dwarf2_fetch_die_loc_sect_off): Update.
7487 (dwarf2_fetch_constant_bytes): Update.
7488 (dwarf2_fetch_die_type_sect_off): Update.
7490 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7492 * dwarf2/read.c (process_full_comp_unit,
7493 process_full_type_unit): Remove per_cu, per_objfile paramters.
7494 Add dwarf2_cu parameter.
7495 (process_queue): Update.
7497 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7499 * dwarf2/read.c (create_cu_from_index_list): Replace
7500 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7501 (create_cus_from_index_list): Likewise.
7502 (create_cus_from_index): Likewise.
7503 (create_signatured_type_table_from_index): Likewise.
7504 (create_cus_from_debug_names_list): Likewise.
7505 (create_cus_from_debug_names): Likewise.
7506 (dwarf2_read_gdb_index): Update.
7507 (dwarf2_read_debug_names): Update.
7509 2020-05-27 Tom Tromey <tom@tromey.com>
7510 Simon Marchi <simon.marchi@efficios.com>
7512 * dwarf2/read.h (struct dwarf2_per_objfile)
7513 <get_type_for_signatured_type, set_type_for_signatured_type>:
7515 <m_type_map>: New member.
7516 (struct signatured_type) <type>: Remove.
7518 (dwarf2_per_objfile::get_type_for_signatured_type,
7519 dwarf2_per_objfile::set_type_for_signatured_type): New.
7520 (get_signatured_type): Use new methods.
7522 2020-05-27 Tom Tromey <tom@tromey.com>
7523 Simon Marchi <simon.marchi@efficios.com>
7525 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7526 (struct dwarf2_per_objfile) <type_units>: New member.
7527 <get_type_unit_group_unshareable>: New method.
7528 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7529 num_symtabs, symtabs>: Remove; move to
7530 type_unit_group_unshareable.
7531 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7532 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7533 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7537 * dwarf2/read.h (struct dwarf2_per_cu_data):
7538 <dwarf2_per_objfile>: Remove.
7539 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7541 (create_signatured_type_table_from_index): Likewise.
7542 (create_signatured_type_table_from_debug_names): Likewise.
7543 (create_debug_type_hash_table): Likewise.
7544 (fill_in_sig_entry_from_dwo_entry): Likewise.
7545 (create_type_unit_group): Likewise.
7546 (read_comp_units_from_section): Likewise.
7547 (create_cus_hash_table): Likewise.
7549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7551 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7552 dwarf2_per_cu_data::dwarf2_per_objfile.
7553 (compute_compunit_symtab_includes): Likewise.
7554 (dwarf2_cu::start_symtab): Likewise.
7556 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7558 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7560 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7561 (read_namespace_alias): Update.
7562 (lookup_die_type): Update.
7563 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7564 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7566 (disassemble_dwarf_expression): Update.
7568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7570 * dwarf2/read.h (struct dwarf2_queue_item): Add
7571 dwarf2_per_objfile parameter, assign new parameter.
7572 <per_objfile>: New field.
7573 * dwarf2/read.c (free_one_cached_comp_unit): Add
7574 dwarf2_per_objfile parameter.
7575 (queue_comp_unit): Likewise.
7576 (dw2_do_instantiate_symtab): Update.
7577 (process_psymtab_comp_unit): Update.
7578 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7579 (process_imported_unit_die): Update.
7580 (queue_and_load_dwo_tu): Update.
7581 (follow_die_offset): Update.
7582 (follow_die_sig_1): Update.
7584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7586 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7587 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7588 (read_call_site_scope): Assign per_objfile.
7589 (dwarf2_per_cu_data::objfile): Remove.
7590 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7591 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7592 dwarf2_per_objfile parameter.
7593 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7594 dwarf2_per_objfile parameter.
7595 (dwarf_expr_reg_to_entry_parameter): Add output
7596 dwarf2_per_objfile parameter.
7597 (locexpr_get_frame_base): Update.
7598 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7599 <push_dwarf_reg_entry_value>: Update.
7600 <call_site_to_target_addr>: Update.
7601 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7603 (value_of_dwarf_reg_entry): Update.
7604 (rw_pieced_value): Update.
7605 (indirect_synthetic_pointer): Update.
7606 (dwarf2_evaluate_property): Update.
7607 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7609 (locexpr_read_variable): Update.
7610 (locexpr_get_symbol_read_needs): Update.
7611 (loclist_read_variable): Update.
7613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7615 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7616 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7617 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7619 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7621 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7623 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7624 sect_variable_value): Add dwarf2_per_objfile parameter.
7625 (class dwarf_evaluate_loc_desc) <dwarf_call,
7626 dwarf_variable_value>: Update.
7627 (fetch_const_value_from_synthetic_pointer): Add
7628 dwarf2_per_objfile parameter.
7629 (fetch_const_value_from_synthetic_pointer): Update.
7630 (coerced_pieced_ref): Update.
7631 (class symbol_needs_eval_context) <dwarf_call,
7632 dwarf_variable_value>: Update.
7633 (dwarf2_compile_expr_to_ax): Update.
7635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7637 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7639 (dwarf2_evaluate_loc_desc_full): Update.
7641 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7643 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7645 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7646 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7647 dwarf2_per_objfile parameter.
7648 (decode_debug_loc_dwo_addresses): Likewise.
7649 (dwarf2_find_location_expression): Update.
7650 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7651 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7653 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7655 (locexpr_describe_location_1): Likewise.
7656 (locexpr_describe_location): Update.
7658 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7660 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7662 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7663 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7664 (dwarf2_compile_property_to_c): Update.
7665 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7666 use text offset from objfile.
7667 (locexpr_tracepoint_var_ref): Update.
7668 (locexpr_generate_c_location): Update.
7669 (loclist_describe_location): Update.
7670 (loclist_tracepoint_var_ref): Update.
7671 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7672 dwarf2_per_objfile parameter.
7673 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7674 use text offset from objfile.
7675 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7677 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7679 * dwarf2/expr.h (struct dwarf_expr_context)
7680 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7682 <per_objfile>: New member.
7683 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7684 dwarf2_per_objfile parameter. Don't set offset, set
7686 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7687 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7688 a dwarf2_per_objfile object instead of an offset.
7689 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7691 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7692 to dwarf2_expr_executor constructor. Don't set offset.
7693 (dwarf2_fetch_cfa_info): Update.
7694 (struct dwarf2_frame_cache) <text_offset>: Remove.
7695 <per_objfile>: New field.
7696 (dwarf2_frame_cache): Update.
7697 (dwarf2_frame_prev_register): Update.
7698 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7699 <dwarf_evaluate_loc_desc>: Add constructor.
7700 (dwarf2_evaluate_loc_desc_full): Update.
7701 (dwarf2_locexpr_baton_eval): Update.
7702 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7704 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7706 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7708 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7709 addr_sized_int_type>: Move to dwarf2_cu.
7710 <int_type>: Move to dwarf2_per_objfile.
7711 (struct dwarf2_per_objfile) <int_type>: Move here.
7712 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7713 addr_sized_int_type>: Move here.
7714 (read_func_scope): Update.
7715 (read_array_type): Update.
7716 (read_tag_string_type): Update.
7717 (attr_to_dynamic_prop): Update.
7718 (dwarf2_per_cu_data::int_type): Rename to...
7719 (dwarf2_per_objfile::int_type): ... this.
7720 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7721 (dwarf2_cu::addr_sized_int_type): ... this.
7722 (read_subrange_type): Update.
7723 (dwarf2_per_cu_data::addr_type): Rename to...
7724 (dwarf2_cu::addr_type): ... this.
7725 (set_die_type): Update.
7727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7729 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7730 data through per_cu->cu.
7732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7734 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7735 dwarf2_per_cu_data parameter fo dwarf2_cu.
7736 (lookup_dwo_type_unit): Likewise.
7737 (read_cutu_die_from_dwo): Likewise.
7738 (lookup_dwo_unit): Likewise.
7739 (open_and_init_dwo_file): Likewise.
7740 (lookup_dwo_cutu): Likewise.
7741 (lookup_dwo_comp_unit): Likewise.
7742 (lookup_dwo_type_unit): Likewise.
7743 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7744 (cutu_reader::cutu_reader): Update.
7746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7748 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7750 (process_full_type_unit): Likewise.
7751 (process_queue): Update.
7753 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7755 * dwarf2/read.c (recursively_compute_inclusions): Add
7756 dwarf2_per_objfile parameter.
7757 (compute_compunit_symtab_includes): Likewise.
7758 (process_cu_includes): Update.
7760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7762 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7764 (create_type_unit_group): Update.
7765 (process_psymtab_comp_unit_reader): Update.
7766 (build_type_psymtabs_reader): Update.
7768 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7770 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7771 object through m_this_cu->cu.
7773 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7775 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7777 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7779 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7781 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7782 per_objfile parameter.
7783 (load_full_type_unit): Add per_objfile parameter.
7784 (read_signatured_type): Likewise.
7785 (load_full_comp_unit): Likewise.
7786 (load_cu): Likewise.
7787 (dw2_do_instantiate_symtab): Likewise.
7788 (dw2_get_file_names): Likewise.
7789 (dw2_map_symtabs_matching_filename): Update.
7790 (dw_expand_symtabs_matching_file_matcher): Update.
7791 (dw2_map_symbol_filenames): Update.
7792 (process_psymtab_comp_unit): Add per_objfile parameter.
7793 (build_type_psymtabs_1): Update.
7794 (process_skeletonless_type_unit): Update.
7795 (dwarf2_build_psymtabs_hard): Update.
7796 (load_partial_comp_unit): Add per_objfile parameter.
7797 (scan_partial_symbols): Update.
7798 (load_full_comp_unit): Add per_objfile parameter.
7799 (process_imported_unit_die): Update.
7800 (create_cus_hash_table): Update.
7801 (find_partial_die): Update.
7802 (dwarf2_read_addr_index): Update.
7803 (follow_die_offset): Update.
7804 (dwarf2_fetch_die_loc_sect_off): Update.
7805 (dwarf2_fetch_constant_bytes): Update.
7806 (dwarf2_fetch_die_type_sect_off): Update.
7807 (follow_die_sig_1): Update.
7808 (load_full_type_unit): Add per_objfile parameter.
7809 (read_signatured_type): Likewise.
7811 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7813 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7816 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7818 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7819 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7820 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7822 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7823 (create_cus_from_index): Update.
7824 (dwarf2_read_gdb_index): Update.
7825 (create_cus_from_debug_names): Update.
7826 (dwarf2_read_debug_names): Update.
7827 (get_abbrev_section_for_cu): Update.
7828 (create_all_comp_units): Update.
7829 (read_attribute_value): Update.
7830 (get_debug_line_section): Update.
7831 * dwarf2/index-cache.c (index_cache::store): Update.
7832 * dwarf2/index-write.c (save_gdb_index_command): Update.
7833 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7835 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7837 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7839 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7840 dwarf2_per_cu_data::per_bfd.
7841 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7842 (create_type_unit_group): Likewise.
7843 (queue_comp_unit): Remove reference to
7844 per_cu->dwarf2_per_objfile.
7845 (maybe_queue_comp_unit): Likewise.
7846 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7847 (create_cus_hash_table): Assign new field.
7849 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7851 * dwarf2/read.c: Replace
7852 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7853 dwarf2_cu->per_objfile throughout.
7855 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7857 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7858 parameter, don't use per_cu->dwarf2_per_objfile.
7859 (dw2_instantiate_symtab): Likewise.
7860 (dw2_find_last_source_symtab): Update.
7861 (dw2_map_expand_apply): Update.
7862 (dw2_lookup_symbol): Update.
7863 (dw2_expand_symtabs_for_function): Update.
7864 (dw2_expand_all_symtabs): Update.
7865 (dw2_expand_symtabs_with_fullname): Update.
7866 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7867 don't use per_cu->dwarf2_per_objfile.
7868 (dw2_expand_marked_cus): Update.
7869 (dw2_find_pc_sect_compunit_symtab): Update.
7870 (dw2_debug_names_lookup_symbol): Update.
7871 (dw2_debug_names_expand_symtabs_for_function): Update.
7872 (dw2_debug_names_map_matching_symbols): Update.
7873 (dwarf2_psymtab::expand_psymtab): Update.
7875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7877 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7878 <per_objfile>: New member.
7879 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7880 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7882 (cutu_reader::cutu_reader): Update.
7883 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7887 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7888 struct dwarf2_per_objfile.
7889 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7891 * dwarf2/read.c (set_die_type): Update.
7892 (get_die_type_at_offset): Update.
7894 2020-05-27 Tom Tromey <tom@tromey.com>
7895 Simon Marchi <simon.marchi@efficios.com>
7897 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7899 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7900 get_symtab, set_symtab>: New methods.
7901 <m_symtabs>: New field.
7902 (struct dwarf2_psymtab): Derive from partial_symtab.
7903 <readin_p, get_compunit_symtab>: Declare methods.
7904 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7905 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7907 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7908 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7909 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7910 (dw2_symtab_iter_next, dw2_print_stats)
7911 (dw2_expand_symtabs_with_fullname)
7912 (dw2_expand_symtabs_matching_one)
7913 (dw_expand_symtabs_matching_file_matcher)
7914 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7915 (dw2_debug_names_iterator::next)
7916 (dw2_debug_names_map_matching_symbols)
7917 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7918 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7919 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7921 (get_compunit_symtab, process_full_comp_unit)
7922 (process_full_type_unit): Update.
7923 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7925 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7927 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7928 then introduce a new dwarf2_per_objfile type.
7929 <read_line_string>: Move to the new dwarf2_per_objfile type.
7930 <objfile>: Likewise.
7931 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7932 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7933 dwarf2_per_objfile->per_bfd.
7934 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7935 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7936 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7937 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7938 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7939 (dwarf2_per_objfile::locate_sections): Rename to...
7940 (dwarf2_per_bfd::locate_sections): ... this.
7941 (dwarf2_per_objfile::get_cutu): Rename to...
7942 (dwarf2_per_bfd::get_cutu): ... this.
7943 (dwarf2_per_objfile::get_cu): Rename to...
7944 (dwarf2_per_bfd::get_cu): ... this.
7945 (dwarf2_per_objfile::get_tu): Rename to...
7946 (dwarf2_per_bfd::get_tu): ... this.
7947 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7948 (dwarf2_per_bfd::allocate_per_cu): ... this.
7949 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7950 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7951 (get_gdb_index_contents_ftype): Change parameter from
7952 dwarf2_per_objfile to dwarf2_per_bfd.
7953 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7954 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7956 2020-05-27 Tom Tromey <tom@tromey.com>
7957 Simon Marchi <simon.marchi@efficios.com>
7959 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7960 (allocate_piece_closure): Set "per_objfile" member.
7961 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7962 (locexpr_describe_location, loclist_describe_location): Use new
7964 * dwarf2/read.c (read_call_site_scope)
7965 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7966 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7967 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7968 handle_data_member_location): Set per_objfile member.
7969 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7971 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7973 2020-05-27 Tom Tromey <tom@tromey.com>
7975 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7976 allocate_signatured_type>: Declare new methods.
7977 <m_num_psymtabs>: New member.
7978 (struct dwarf2_per_cu_data) <index>: New member.
7979 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7980 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7981 (create_cu_from_index_list): Use allocate_per_cu.
7982 (create_signatured_type_table_from_index)
7983 (create_signatured_type_table_from_debug_names)
7984 (create_debug_type_hash_table, add_type_unit)
7985 (read_comp_units_from_section): Use allocate_signatured_type.
7987 2020-05-27 Tom Tromey <tom@tromey.com>
7989 * psymtab.c (partial_map_expand_apply)
7990 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7991 (psym_lookup_global_symbol_language)
7992 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7993 (psym_print_stats, psym_expand_symtabs_for_function)
7994 (psym_map_symbol_filenames, psym_map_matching_symbols)
7995 (psym_expand_symtabs_matching)
7996 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7997 (maintenance_check_psymtabs): Update.
7998 * psympriv.h (struct partial_symtab) <readin_p,
7999 get_compunit_symtab>: Add objfile parameter.
8000 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8002 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8003 get_compunit_symtab>: Likewise.
8004 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8006 2020-05-27 Tom Tromey <tom@tromey.com>
8008 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8010 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8011 (create_cu_from_index_list)
8012 (create_signatured_type_table_from_index)
8013 (create_signatured_type_table_from_debug_names)
8014 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8015 (dwarf2_create_include_psymtab)
8016 (create_debug_type_hash_table, add_type_unit)
8017 (create_type_unit_group, read_comp_units_from_section)
8018 (dwarf2_compute_name, create_cus_hash_table)
8019 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8020 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8022 (dw2_get_real_path): Likewise. Change argument to
8025 2020-05-27 Luis Machado <luis.machado@linaro.org>
8028 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8029 for ldrd (immediate).
8031 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8033 * command.h: Add comment giving the name of class_tui.
8034 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8035 create the fake command for the help for class_tui.
8037 2020-05-26 Tom Tromey <tromey@adacore.com>
8039 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8040 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8041 (val_atr): New function.
8042 (value_val_atr): Use it.
8043 * ada-valprint.c (print_optional_low_bound): Change low bound
8045 (val_print_packed_array_elements): Don't call discrete_position.
8046 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8047 discrete_position for enum types.
8048 * language.c (default_print_array_index): Change type.
8049 * language.h (struct language_defn) <la_print_array_index>: Add
8050 index_type parameter, change type of index_value.
8051 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8052 (default_print_array_index): Update.
8053 * valprint.c (maybe_print_array_index): Don't call
8054 value_from_longest. Update.
8055 (value_print_array_elements): Don't call discrete_position.
8057 2020-05-26 Tom Tromey <tromey@adacore.com>
8059 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8060 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8062 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8065 * avr-tdep.c (avr_integer_to_address): Return data or code
8066 address accordingly to the second 'type' argument of the
8069 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8071 * infcmd.c, inferior.h: (construct_inferior_arguments):
8072 Moved function from here to gdbsupport/common-inferior.{h,cc}
8074 2020-05-23 Tom Tromey <tom@tromey.com>
8076 Revert commit eca1f90c:
8077 * NEWS: Remove entry for completion styling.
8078 * completer.c (_rl_completion_prefix_display_length): Move
8080 (gdb_fnprint): Revert.
8081 (gdb_display_match_list_1): Likewise.
8082 * cli/cli-style.c (completion_prefix_style)
8083 (completion_difference_style, completion_suffix_style): Remove.
8084 (_initialize_cli_style): Revert.
8085 * cli/cli-style.h (completion_prefix_style)
8086 (completion_difference_style, completion_suffix_style): Don't
8089 2020-05-24 Pedro Alves <palves@redhat.com>
8091 * symtab.c (completion_list_add_name): Return boolean indication
8092 of whether the symbol matched.
8093 (completion_list_add_symbol): Don't try to remove C++ aliases if
8094 the symbol didn't match in the first place.
8095 * symtab.h (completion_list_add_name): Return bool.
8097 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8099 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8102 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8106 2020-05-23 Tom Tromey <tom@tromey.com>
8108 * NEWS: Add entry for completion styling.
8109 * completer.c (_rl_completion_prefix_display_length): Move
8110 declaration earlier.
8111 (gdb_fnprint): Use completion_style.
8112 (gdb_display_match_list_1): Likewise.
8113 * cli/cli-style.c (completion_prefix_style)
8114 (completion_difference_style, completion_suffix_style): New
8116 (_initialize_cli_style): Register new globals.
8117 * cli/cli-style.h (completion_prefix_style)
8118 (completion_difference_style, completion_suffix_style): Declare.
8120 2020-05-23 Pedro Alves <palves@redhat.com>
8122 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8123 (parse_escape): Use ISDIGIT instead of isdigit.
8124 (puts_debug): Use gdb_isprint instead of isprint.
8125 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8126 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8127 ISSPACE instead of isspace.
8128 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8130 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8131 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8132 instead of isxdigit and ISDIGIT instead of isdigit.
8134 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8136 * gdbtypes.h (struct type) <field>: New method.
8137 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8140 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8142 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8143 (TYPE_FIELDS): Use type::fields. Change all call sites that
8144 modify the propery to use type::set_fields instead.
8146 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8148 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8149 type::num_fields instead.
8151 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8153 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8155 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8156 that modify the number of fields to use type::set_num_fields
8159 2020-05-22 Tom Tromey <tromey@adacore.com>
8161 * compile/compile-object-load.h (munmap_list_free): Don't
8164 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8166 * annotate.c (annotate_source_line): Update return type, add call
8167 to update current symtab and line.
8168 * annotate.h (annotate_source_line): Update return type, and
8169 extend header comment.
8170 * source.c (info_line_command): Check annotation_level before
8171 calling annotate_source_line.
8172 * stack.c (print_frame_info): If calling annotate_source_line
8173 returns true, then don't print any other source line information.
8175 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8177 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8179 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8181 * coffread.c (patch_type): Remove NULL check before xfree.
8182 * corefile.c (set_gnutarget): Likewise.
8183 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8184 * exec.c (build_section_table): Likewise.
8185 * remote.c (remote_target::pass_signals): Likewise.
8186 * utils.c (n_spaces): Likewise.
8187 * cli/cli-script.c (document_command): Likewise.
8188 * i386-windows-tdep.c (core_process_module_section): Likewise.
8189 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8191 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8193 * symfile.c (reread_symbols): Clear objfile's section_offsets
8194 vector and section indices, re-compute them by calling
8197 2020-05-20 Tom Tromey <tromey@adacore.com>
8199 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8200 (desc_one_bound, desc_index_type): Compute field name.
8202 2020-05-20 Tom de Vries <tdevries@suse.de>
8205 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8207 2020-05-20 Alan Modra <amodra@gmail.com>
8210 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8212 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8213 passed to bfd_set_filename.
8214 * symfile-mem.c (add_vsyscall_page): Likewise for string
8215 passed to symbol_file_add_from_memory.
8216 (symbol_file_add_from_memory): Make name param a const char* and
8219 2020-05-20 Alan Modra <amodra@gmail.com>
8221 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8222 rather than accessing bfd->filename directly.
8223 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8224 and use bfd_section_name.
8225 * dwarf2/frame.c (decode_frame_entry): Likewise.
8226 * exec.c (exec_set_section_address): Likewise.
8227 * solib-aix.c (solib_aix_bfd_open): Likewise.
8228 * stap-probe.c (get_stap_base_address): Likewise.
8229 * symfile.c (reread_symbols): Likewise.
8231 2020-05-19 Tom Tromey <tromey@adacore.com>
8233 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8235 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8237 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8239 2020-05-19 Pedro Alves <palves@redhat.com>
8241 * NEWS (set exec-file-mismatch): Adjust entry.
8242 * exec.c: Include "build-id.h".
8243 (validate_exec_file): Try to match build IDs instead of filenames.
8244 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8245 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8246 and pass down 'warn_if_slow'.
8247 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8248 gdb_bfd_open_closure to pass it down.
8249 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8251 2020-05-19 Pedro Alves <palves@redhat.com>
8253 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8254 * target.c (target_fileio_open_1): Rename to target_fileio_open
8255 and make extern. Use bool.
8256 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8257 (target_fileio_read_alloc_1): Adjust.
8258 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8259 (target_fileio_open_warn_if_slow): Delete declaration.
8261 2020-05-19 Pedro Alves <palves@redhat.com>
8263 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8266 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8268 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8269 whether disp is negative.
8271 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8273 * symfile.h (struct symfile_segment_data)
8274 <~symfile_segment_data>: Remove.
8275 <segment_info>: Change to std::vector.
8276 * symfile.c (default_symfile_segments): Update.
8277 * elfread.c (elf_symfile_segments): Update.
8279 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8281 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8283 <segment_bases, segment_sizes>: Remove.
8284 * symfile.c (default_symfile_segments): Update.
8285 * elfread.c (elf_symfile_segments): Update.
8286 * remote.c (remote_target::get_offsets): Update.
8287 * solib-target.c (solib_target_relocate_section_addresses):
8290 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8292 * symfile.h (struct symfile_segment_data): Initialize fields.
8293 <~symfile_segment_data>: Add.
8294 (symfile_segment_data_up): New.
8295 (struct sym_fns) <sym_segments>: Return a
8296 symfile_segment_data_up.
8297 (default_symfile_segments): Return a symfile_segment_data_up.
8298 (free_symfile_segment_data): Remove.
8299 (get_symfile_segment_data): Return a symfile_segment_data_up.
8300 * symfile.c (default_symfile_segments): Likewise.
8301 (get_symfile_segment_data): Likewise.
8302 (free_symfile_segment_data): Remove.
8303 (symfile_find_segment_sections): Update.
8304 * elfread.c (elf_symfile_segments): Return a
8305 symfile_segment_data_up.
8306 * remote.c (remote_target::get_offsets): Update.
8307 * solib-target.c (solib_target_relocate_section_addresses):
8309 * symfile-debug.c (debug_sym_segments): Return a
8310 symfile_segment_data_up.
8312 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8315 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8316 Hardcode register numbers.
8319 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8320 procfs_find_LDT_entry): Remove.
8321 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8322 procfs_find_LDT_entry): Remove.
8323 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8326 2020-05-17 Pedro Alves <palves@redhat.com>
8327 Andrew Burgess <andrew.burgess@embecosm.com>
8328 Keno Fischer <keno@juliacomputing.com>
8331 * breakpoint.c (build_target_condition_list): Update comments.
8332 (build_target_command_list): Update comments and skip matching
8334 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8335 a separate function. Simplify "set breakpoint auto-hw off"
8337 (insert_breakpoints): Update comment.
8338 (tracepoint_locations_match): New parameter. For breakpoints,
8339 compare location types too, if the caller wants to.
8340 (handle_automatic_hardware_breakpoints): New functions.
8341 (bp_location_is_less_than): Also sort by location type and
8342 hardware breakpoint length.
8343 (update_global_location_list): Handle "set breakpoint auto-hw on"
8345 (update_breakpoint_locations): Ask breakpoint_locations_match to
8346 ignore location types.
8348 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8350 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8353 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8355 * gdbtypes.h (struct type) <name, set_name>: New methods.
8356 (TYPE_CODE): Use type::name. Change all call sites used to set
8357 the name to use type::set_name instead.
8359 2020-05-16 Tom Tromey <tom@tromey.com>
8361 * top.c (quit_force): Update.
8362 * infrun.c (handle_no_resumed): Update.
8363 * top.h (all_uis): New function.
8366 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8368 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8370 2020-05-16 Pedro Alves <palves@redhat.com>
8373 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8375 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8377 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8379 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8380 (sparc64_adi_info): Likewise.
8382 2020-05-15 Tom Tromey <tom@tromey.com>
8384 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8386 (lookup_objfile_from_block): Remove.
8387 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8388 (lookup_global_symbol): Use block_objfile.
8389 * symtab.h (lookup_objfile_from_block): Don't declare.
8390 * printcmd.c (clear_dangling_display_expressions): Use
8392 * parse.c (operator_check_standard): Use block_objfile.
8394 2020-05-15 Tom Tromey <tom@tromey.com>
8396 * language.c (language_alloc_type_symbol): Set
8398 * symtab.c (initialize_objfile_symbol): Remove.
8399 (allocate_symbol): Remove.
8400 (allocate_template_symbol): Remove.
8401 * dwarf2/read.c (fixup_go_packaging): Use "new".
8402 (new_symbol): Use "new".
8403 (read_variable): Don't call initialize_objfile_symbol. Use
8405 (read_func_scope): Use "new".
8406 * xcoffread.c (process_xcoff_symbol): Don't call
8407 initialize_objfile_symbol.
8408 (SYMBOL_DUP): Remove.
8409 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8411 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8412 (allocate_template_symbol): Don't declare.
8413 (struct symbol): Add copy constructor. Change defaults.
8414 * jit.c (finalize_symtab): Use "new".
8415 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8417 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8418 (common_block_end): Use "new".
8419 * mdebugread.c (parse_symbol): Use "new".
8420 (new_symbol): Likewise.
8422 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8424 * NEWS: Mention changes to help and apropos.
8426 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8428 * command.h (enum command_class): Improve comments, document
8429 that class_alias is for user-defined aliases, give the class
8430 name for each class, remove unused class_xdb.
8431 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8432 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8434 * infcmd.c (_initialize_infcmd): Likewise.
8435 * reverse.c (_initialize_reverse): Likewise.
8436 * stack.c (_initialize_stack): Likewise.
8437 * symfile.c (_initialize_symfile): Likewise.
8438 * tracepoint.c (_initialize_tracepoint): Likewise.
8440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8442 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8443 when their aliased command is traversed.
8444 (help_cmd): Add fput_command_names_styled call to
8445 output command name and aliases when command has an alias.
8447 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8449 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8450 * cli/cli-decode.c (help_cmd_list): Declare as static,
8451 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8452 a command together with the command.
8453 (fput_command_name_styled, fput_command_names_styled): New functions.
8454 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8455 fput_command_name_styled.
8456 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8457 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8459 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8461 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8462 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8463 * command.h (cmd_show_list): Likewise.
8464 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8465 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8467 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8469 * unittests/command-def-selftests.c (traverse_command_structure):
8470 Verify all commands of a list have the same prefix command and
8471 that only the top cmdlist commands have a null prefix.
8473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8475 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8476 as prefix, not one of its aliases.
8477 (set_cmd_prefix): Remove.
8478 (do_add_cmd): Centralize the setting of the prefix of a command, when
8479 command is defined after its full chain of prefix commands.
8480 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8481 (add_setshow_cmd_full): Likewise.
8482 (update_prefix_field_of_prefixed_commands): New function.
8483 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8484 update_prefix_field_of_prefixed_commands.
8485 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8486 addresses of remote_set_cmdlist and remote_show_cmdlist given
8487 as argument, not the address of an argument.
8488 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8489 * gdb/remote.c (_initialize_remote): Likewise.
8491 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493 * cli/cli-cmds.c (alias_command): Check for an existing alias
8494 using lookup_cmd_composition, as valid_command_p is too strict
8495 and forbids aliases that are the prefix of an existing alias
8497 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8498 command is properly recognised as a valid command.
8500 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8502 * unittests/help-doc-selftests.c: Rename to
8503 unittests/command-def-selftests.c
8504 * unittests/command-def-selftests.c (help_doc_tests): Update some
8506 (command_structure_tests, traverse_command_structure): New namespace
8508 (command_structure_invariants_tests): New function.
8509 (_initialize_command_def_selftests) Renamed from
8510 _initialize_help_doc_selftests, register command_structure_invariants
8513 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8515 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8518 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8520 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8521 ada_is_fixed_point_type. Update all callers.
8522 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8524 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8526 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8527 print_fixed_point_type. Update all callers.
8528 * ada-valprint.c (ada_value_print_num): Replace call to
8529 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8531 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8533 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8535 (cpu_supports_bts): Add CV_AMD case.
8537 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8538 Simon Marchi <simon.marchi@efficios.com>
8540 * infrun.c (stop_all_threads): Collect multiple wait events at
8543 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8545 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8548 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8550 * gdbtypes.h (struct type) <code, set_code>: New methods.
8551 (TYPE_CODE): Use type::code. Change all call sites used to set
8552 the code to use type::set_code instead.
8554 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8555 Tom de Vries <tdevries@suse.de>
8556 Pedro Alves <palves@redhat.com>
8559 * infrun.c (stop_all_threads): Do NOT ignore
8560 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8561 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8563 (handle_no_resumed): Remove code handling a live inferior with no
8565 * remote.c (has_single_non_exited_thread): New.
8566 (remote_target::update_thread_list): Do not delete a thread if is
8567 the last thread of the process.
8568 * thread.c (thread_select): Call delete_exited_threads instead of
8571 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8573 * infrun.c (stop_all_threads): Enable/disable thread events of all
8574 targets. Move a debug message denoting the end of the function
8575 into the SCOPED_EXIT block.
8577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8579 * process-stratum-target.h: Include <set>.
8580 (all_non_exited_process_targets, switch_to_target_no_thread): New
8581 function declarations.
8582 * process-stratum-target.c (all_non_exited_process_targets)
8583 (switch_to_target_no_thread): New function implementations.
8585 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8587 * infrun.c (handle_inferior_event): Extract out a piece of code
8589 (mark_non_executing_threads): ...this new function.
8591 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8593 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8596 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8598 * regcache.c (regcache_read_pc_protected): New function
8599 implementation that returns 0 if the PC cannot read via
8601 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8602 instead of 'regcache_read_pc'.
8603 (keep_going_pass_signal): Ditto.
8605 2020-05-13 Tom Tromey <tromey@adacore.com>
8607 * ada-lang.c (align_value): Remove.
8608 (ada_template_to_fixed_record_type_1): Use align_up.
8610 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8612 * async-event.c: Update the copyright year.
8613 * async-event.h: Update the copyright year.
8615 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8617 * objfiles.h (is_addr_in_objfile,
8618 shared_objfile_contains_address_p): Return bool.
8619 * objfile.c (is_addr_in_objfile,
8620 shared_objfile_contains_address_p): Return bool.
8622 2020-05-11 Tom Tromey <tromey@adacore.com>
8624 * cli/cli-cmds.c (info_command): Restore.
8625 (_initialize_cli_cmds): Use add_prefix_command for "info".
8626 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8628 2020-05-11 Tom Tromey <tromey@adacore.com>
8630 * ada-lang.c (ada_value_primitive_field): Now public.
8631 * ada-lang.h (ada_value_primitive_field): Declare.
8632 * ada-valprint.c (print_field_values): Use
8633 ada_value_primitive_field for wrapper fields.
8635 2020-05-11 Tom de Vries <tdevries@suse.de>
8637 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8640 2020-05-11 Tom de Vries <tdevries@suse.de>
8643 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8644 with length 0, if not gdb-produced.
8645 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8647 2020-05-09 Tom de Vries <tdevries@suse.de>
8650 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8653 2020-05-09 Tom Tromey <tom@tromey.com>
8655 * top.c (server_command): Now bool.
8656 * top.h (server_command): Now bool.
8658 2020-05-08 Tom Tromey <tromey@adacore.com>
8660 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8661 already being processed.
8663 2020-05-08 Tom Tromey <tom@tromey.com>
8665 * printcmd.c (struct display) <next>: Remove.
8666 <display>: New constructor.
8667 <exp_string>: Now a std::string.
8668 <enabled_p>: Now a bool.
8669 (display_number): Move definition earlier.
8670 (displays): Rename from display_chain. Now a std::vector.
8671 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8672 (display_command): Update.
8673 (do_one_display, disable_display)
8674 (enable_disable_display_command, do_enable_disable_display):
8676 (free_display): Remove.
8677 (clear_displays): Rewrite.
8678 (delete_display): Update.
8679 (map_display_numbers): Use function_view. Remove "data"
8681 (do_delete_display): Remove.
8682 (undisplay_command): Update.
8683 (do_one_display, do_displays, disable_display)
8684 (info_display_command): Update.
8685 (do_enable_disable_display): Remove.
8686 (enable_disable_display_command)
8687 (clear_dangling_display_expressions): Update.
8689 2020-05-08 Tom Tromey <tom@tromey.com>
8691 * symtab.c (set_symbol_cache_size)
8692 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8693 (maintenance_print_symbol_cache_statistics): Update.
8694 * symmisc.c (print_symbol_bcache_statistics)
8695 (print_objfile_statistics, maintenance_print_objfiles)
8696 (maintenance_info_symtabs, maintenance_check_symtabs)
8697 (maintenance_expand_symtabs, maintenance_info_line_tables):
8699 * symfile-debug.c (set_debug_symfile): Update.
8700 * source.c (forget_cached_source_info): Update.
8701 * python/python.c (gdbpy_progspaces): Update.
8702 * psymtab.c (maintenance_info_psymtabs): Update.
8703 * probe.c (parse_probes): Update.
8704 * linespec.c (iterate_over_all_matching_symtabs)
8705 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8706 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8707 * exec.c (exec_target::close): Update.
8708 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8709 * breakpoint.c (print_one_breakpoint_location)
8710 (create_longjmp_master_breakpoint)
8711 (create_std_terminate_master_breakpoint): Update.
8712 * progspace.c (program_spaces): Now a std::vector.
8713 (maybe_new_address_space): Update.
8714 (add_program_space): Remove.
8715 (program_space::program_space): Update.
8716 (remove_program_space): Update.
8717 (number_of_program_spaces): Remove.
8718 (print_program_space, update_address_spaces): Update.
8719 * progspace.h (program_spaces): Change type.
8720 (ALL_PSPACES): Remove.
8721 (number_of_program_spaces): Don't declare.
8722 (struct program_space) <next>: Remove.
8724 2020-05-08 Tom Tromey <tom@tromey.com>
8726 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8727 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8728 (enable_break): Update.
8729 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8730 (frv_fdpic_find_canonical_descriptor): Update.
8731 (frv_fetch_objfile_link_map): Update.
8732 * progspace.c (program_space::free_all_objfiles): Update.
8733 (program_space::solibs): New method.
8734 * progspace.h (struct program_space) <solibs>: New method.
8735 * solist.h (master_so_list): Don't declare.
8736 (ALL_SO_LIBS): Remove.
8737 * solib.h (so_list_head): Remove.
8738 (update_solib_list): Update comment.
8739 * solib.c (master_so_list): Remove.
8740 (solib_used, update_solib_list, solib_add)
8741 (info_sharedlibrary_command, clear_solib)
8742 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8744 2020-05-08 Tom Tromey <tom@tromey.com>
8746 * extension.c (extension_languages): Now a std::array.
8747 (ALL_EXTENSION_LANGUAGES): Remove.
8748 (get_ext_lang_defn, get_ext_lang_of_file)
8749 (eval_ext_lang_from_control_command): Update.
8750 (finish_ext_lang_initialization)
8751 (auto_load_ext_lang_scripts_for_objfile)
8752 (ext_lang_type_printers::ext_lang_type_printers)
8753 (apply_ext_lang_type_printers)
8754 (ext_lang_type_printers::~ext_lang_type_printers)
8755 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8756 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8757 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8758 (get_matching_xmethod_workers, ext_lang_colorize)
8759 (ext_lang_before_prompt): Update.
8760 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8762 2020-05-08 Tom Tromey <tom@tromey.com>
8764 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8766 <swap_string, m_string>: Remove.
8767 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8769 * stabsread.c (define_symbol, read_type): Update.
8770 * linespec.c (find_linespec_symbols): Update.
8771 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8772 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8773 * dbxread.c (read_dbx_symtab): Update.
8774 * cp-support.h (cp_canonicalize_string_full)
8775 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8776 Return unique_xmalloc_ptr.
8777 * cp-support.c (inspect_type): Update.
8778 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8779 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8781 * c-typeprint.c (print_name_maybe_canonical): Update.
8782 * break-catch-throw.c (check_status_exception_catchpoint):
8785 2020-05-08 Tom de Vries <tdevries@suse.de>
8787 * infrun.c (follow_fork): Copy current_line and current_symtab to
8790 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8792 * async-event.c (struct async_signal_handler, struct
8793 async_event_handler): Reformat, remove typedef.
8795 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8797 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8798 access thistype->main_type->dyn_prop_list directly.
8800 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8802 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8803 (remove_dyn_prop): Remove. Update all users to use
8804 type::remove_dyn_prop.
8805 * gdbtypes.c (remove_dyn_prop): Rename to...
8806 (type::remove_dyn_prop): ... this.
8808 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8810 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8811 (add_dyn_prop): Remove. Update all users to use
8813 * gdbtypes.c (add_dyn_prop): Rename to...
8814 (type::add_dyn_prop): ... this.
8816 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8818 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8819 (get_dyn_prop): Remove. Update all users to use
8821 * gdbtypes.c (get_dyn_prop): Rename to...
8822 (type::dyn_prop): ... this.
8824 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8826 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8828 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8830 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8831 instruction, skip it if it's there.
8833 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8835 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8837 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8839 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8840 * gdbtypes.c (recursive_dump_type): Remove use of
8843 2020-05-03 Tom Tromey <tom@tromey.com>
8845 * breakpoint.c (catch_command, tcatch_command): Remove.
8846 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8847 add_show_prefix_cmd.
8848 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8849 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8851 (add_internal_problem_command): Use add_basic_prefix_cmd,
8852 add_show_prefix_cmd.
8853 * mips-tdep.c (set_mipsfpu_command): Remove.
8854 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8855 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8856 (_initialize_index_cache): Use add_basic_prefix_cmd.
8857 * memattr.c (dummy_cmd): Remove.
8858 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8859 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8860 (_initialize_tui_win): Use add_basic_prefix_cmd,
8861 add_show_prefix_cmd.
8862 * cli/cli-logging.c (set_logging_command): Remove.
8863 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8864 add_show_prefix_cmd.
8865 (show_logging_command): Remove.
8866 * target.c (target_command): Remove.
8867 (add_target): Use add_basic_prefix_cmd.
8869 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8871 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8873 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8875 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8878 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8880 * nbsd-nat.c (nbsd_enable_proc_events)
8881 (nbsd_nat_target::post_startup_inferior): Add.
8882 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8883 (nbsd_nat_target::update_thread_list): Rewrite.
8884 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8885 "PTRACE_LWP_CREATE".
8886 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8888 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8890 * stack.c (_initialize_stack): Remove duplicated creation
8891 of "frame" command and "f" alias.
8893 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8896 * gdbtypes.c (check_typedef): Calculate size of array of
8899 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8902 * i386-tdep.c (i386_push_dummy_call): Call
8903 i386_thiscall_push_dummy_call.
8904 (i386_thiscall_push_dummy_call): New function.
8905 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8906 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8907 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8909 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8911 * gdbarch.sh (do_read): Add shellcheck disable directive for
8914 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8916 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8917 "referenced but not assigned" warning.
8919 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8921 * gdbarch.sh: Remove code that sets fallbackdefault.
8923 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8925 * gdbarch.sh: Use shell operators && and || instead of
8928 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8930 * gdbarch.sh: Use $(...) instead of `...`.
8932 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8934 * gdbarch.sh: Use double quotes around variables.
8936 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8938 * gdbarch.sh: Use %s with printf, instead of variables in the
8941 2020-04-29 Tom Tromey <tromey@adacore.com>
8944 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8946 (read_enumeration_type): Call
8947 update_enumeration_type_from_children later. Update comments.
8948 (process_enumeration_scope): Don't create type fields.
8950 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8952 * nbsd-tdep.c: Include "xml-syscall.h".
8953 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8955 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8957 * nbsd-nat.c: Include "sys/wait.h".
8958 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8959 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8960 (nbsd_nat_target::remove_exec_catchpoint)
8961 (nbsd_nat_target::set_syscall_catchpoint): Add.
8962 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8963 (nbsd_nat_target::insert_exec_catchpoint)
8964 (nbsd_nat_target::remove_exec_catchpoint)
8965 (nbsd_nat_target::set_syscall_catchpoint): Add.
8966 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8967 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8968 `nbsd_get_syscall_number'.
8970 2020-04-29 Tom Tromey <tom@tromey.com>
8972 * stack.c (print_block_frame_labels): Remove.
8974 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8977 * ada-valprint.c (val_print_packed_array_elements): Move array
8978 end bracket to new line.
8979 (ada_val_print_string): Remove extra spaces before first array
8981 * c-valprint.c (c_value_print_array): Likewise.
8982 * m2-valprint.c (m2_print_array_contents): Likewise.
8983 (m2_value_print_inner): Likewise.
8984 * p-valprint.c (pascal_value_print_inner): Likewise.
8985 * valprint.c (generic_val_print_array): Likewise.
8986 (value_print_array_elements): Move first array element and array
8987 end bracket to new line.
8989 2020-04-29 Tom de Vries <tdevries@suse.de>
8992 * linespec.c (find_method): Fix ix calculation.
8994 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8996 * syscalls/update-netbsd.sh: New file.
8997 * syscalls/netbsd.xml: Regenerate.
8998 * data-directory/Makefile.in: Register `netbsd.xml' in
9001 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9003 * syscalls/update-freebsd.sh: Add double quotes.
9005 2020-04-28 Tom Tromey <tom@tromey.com>
9008 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9009 (cmdpy_init): Allow class_tui.
9011 2020-04-28 Mark Williams <mark@myosotissp.com>
9014 * dwarf2read.c: Add missing assingments to list_in_scope when
9015 start_symtab was already called.
9017 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9020 * dwarf2/read.c (offset_map_type): Use
9021 gdb:hash_enum<sect_offset> as hash function.
9023 2020-04-28 Tom de Vries <tdevries@suse.de>
9025 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9026 with DW_AT_signature.
9028 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9030 * configure.ac: Remove check for fs_base/gs_base in
9032 * configure: Re-generate.
9033 * config.in: Re-generate.
9034 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9035 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9036 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9038 2020-04-27 Luis Machado <luis.machado@linaro.org>
9040 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9041 problematic inline frame unwinding situation.
9042 * frame.c (frame_id_computed_p): New function.
9043 * frame.h (frame_id_computed_p): New prototype.
9045 2020-04-26 Tom Tromey <tom@tromey.com>
9047 * command.h (enum command_class) <class_pseudo>: Remove.
9049 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9051 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9054 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9056 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9057 `PT_GET_PROCESS_STATE' block.
9059 2020-04-24 Tom Tromey <tom@tromey.com>
9061 * symtab.h (symbol_get_demangled_name): Don't declare.
9062 * symtab.c (symbol_get_demangled_name): Remove.
9063 (general_symbol_info::natural_name)
9064 (general_symbol_info::demangled_name): Update.
9066 2020-04-24 Tom Tromey <tom@tromey.com>
9069 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9071 2020-04-24 Tom Tromey <tom@tromey.com>
9074 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9076 (new_symbol): Likewise.
9077 * compile/compile-object-load.c (get_out_value_type): Use
9078 symbol_matches_search_name.
9080 2020-04-24 Tom Tromey <tom@tromey.com>
9082 * dwarf2/read.c (add_partial_symbol): Do not call
9083 compute_and_set_names.
9085 2020-04-24 Tom Tromey <tom@tromey.com>
9087 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9090 2020-04-24 Tom Tromey <tom@tromey.com>
9092 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9093 (add_psymbol_to_list): New overload. Make old overload call new
9095 * psympriv.h (add_psymbol_to_list): New overload.
9097 2020-04-24 Tom Tromey <tom@tromey.com>
9099 * dwarf2/read.c (partial_die_info::read) <case
9100 DW_AT_linkage_name>: Use value_as_string.
9101 (dwarf2_string_attr): Use value_as_string.
9102 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9104 * dwarf2/attribute.c (attribute::value_as_string): New method.
9106 2020-04-24 Tom Tromey <tom@tromey.com>
9108 * symtab.c (general_symbol_info::natural_name)
9109 (general_symbol_info::demangled_name): Check for language_rust.
9111 2020-04-24 Tom Tromey <tom@tromey.com>
9113 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9114 (dwarf2_physname): ... from here.
9115 (partial_die_info::read): Add Rust "{" hack.
9117 2020-04-24 Tom Tromey <tom@tromey.com>
9119 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9121 (symbol_set_demangled_name): Don't declare.
9122 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9123 symbol_set_demangled_name.
9124 (general_symbol_info::set_language)
9125 (general_symbol_info::compute_and_set_names): Update.
9126 * minsyms.c (minimal_symbol_reader::install): Update.
9127 * dwarf2/read.c (new_symbol): Update.
9129 2020-04-24 Tom Tromey <tromey@adacore.com>
9132 * python/py-type.c (convert_field): Handle
9133 FIELD_LOC_KIND_DWARF_BLOCK.
9134 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9135 (typy_get_dynamic): Nw function.
9136 (type_object_getset): Add "dynamic".
9139 2020-04-24 Tom Tromey <tromey@adacore.com>
9141 * ada-typeprint.c (print_choices, print_variant_part)
9142 (print_record_field_types_dynamic): New functions.
9143 (print_record_field_types): Use print_record_field_types_dynamic.
9145 2020-04-24 Tom Tromey <tromey@adacore.com>
9147 * dwarf2/read.c (handle_data_member_location): New overload.
9148 (dwarf2_add_field): Use it.
9149 (decode_locdesc): Add "computed" parameter. Update comment.
9150 * gdbtypes.c (is_dynamic_type_internal): Also look for
9151 FIELD_LOC_KIND_DWARF_BLOCK.
9152 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9153 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9154 virtual base classes.
9155 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9156 FIELD_LOC_KIND_DWARF_BLOCK.
9158 2020-04-24 Tom Tromey <tromey@adacore.com>
9160 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9161 * gdbtypes.c (is_dynamic_type_internal): Check
9162 TYPE_HAS_DYNAMIC_LENGTH.
9163 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9164 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9166 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9169 2020-04-24 Tom Tromey <tromey@adacore.com>
9171 * dwarf2/read.c (struct variant_field): Rewrite.
9172 (struct variant_part_builder): New.
9173 (struct nextfield): Remove "variant" field. Add "offset".
9174 (struct field_info): Add "current_variant_part" and
9176 (alloc_discriminant_info): Remove.
9177 (alloc_rust_variant): New function.
9178 (quirk_rust_enum): Update.
9179 (dwarf2_add_field): Set "offset" member. Don't handle
9180 DW_TAG_variant_part.
9181 (offset_map_type): New typedef.
9182 (convert_variant_range, create_one_variant)
9183 (create_one_variant_part, create_variant_parts)
9184 (add_variant_property): New functions.
9185 (dwarf2_attach_fields_to_type): Call add_variant_property.
9186 (read_structure_type): Don't handle DW_TAG_variant_part.
9187 (handle_variant_part, handle_variant): New functions.
9188 (handle_struct_member_die): Use them.
9189 (process_structure_scope): Don't handle variant parts.
9190 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9191 (struct discriminant_info): Remove.
9192 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9193 (struct main_type) <flag_discriminated_union>: Remove.
9194 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9195 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9196 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9198 * valops.c (value_union_variant): Remove.
9199 * value.h (value_union_variant): Don't declare.
9201 2020-04-24 Tom Tromey <tromey@adacore.com>
9203 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9204 (ada_value_primitive_packed_val): Update.
9205 * ada-valprint.c (ada_value_print_1): Update.
9206 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9207 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9208 just an address. Use evaluate_for_locexpr_baton.
9209 (dwarf2_evaluate_property): Update.
9210 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9212 * findvar.c (default_read_var_value): Update.
9213 * gdbtypes.c (compute_variant_fields_inner)
9214 (resolve_dynamic_type_internal): Update.
9215 (resolve_dynamic_type): Change type of valaddr parameter.
9216 * gdbtypes.h (resolve_dynamic_type): Update.
9217 * valarith.c (value_subscripted_rvalue): Update.
9218 * value.c (value_from_contents_and_address): Update.
9220 2020-04-24 Tom Tromey <tromey@adacore.com>
9222 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9223 "push_initial_value" parameter.
9224 (dwarf2_evaluate_property): Likewise.
9225 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9227 2020-04-24 Tom Tromey <tromey@adacore.com>
9229 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9230 (variant::matches, compute_variant_fields_recurse)
9231 (compute_variant_fields_inner, compute_variant_fields): New
9233 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9234 Use resolved_type after type is made.
9235 (operator==): Add new cases.
9236 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9237 (struct discriminant_range, struct variant, struct variant_part):
9239 (union dynamic_prop_data) <variant_parts, original_type>: New
9241 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9242 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9244 * value.c (unpack_bits_as_long): Now public.
9245 * value.h (unpack_bits_as_long): Declare.
9247 2020-04-24 Tom Tromey <tromey@adacore.com>
9249 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9250 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9252 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9254 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9256 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9258 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9259 (remove_fork_catchpoint, post_startup_inferior)
9260 (post_attach): Move...
9261 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9262 (remove_fork_catchpoint, post_startup_inferior)
9263 (post_attach): ...here.
9264 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9265 (remove_fork_catchpoint, post_startup_inferior)
9266 (post_attach): Move...
9267 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9268 (remove_fork_catchpoint, post_startup_inferior)
9269 (post_attach): ...here.
9271 2020-04-24 Tom Tromey <tromey@adacore.com>
9273 * nat/windows-nat.h (struct windows_thread_info)
9274 <pc_adjusted>: New member.
9275 * windows-nat.c (windows_fetch_one_register): Check
9277 (windows_nat_target::get_windows_debug_event)
9278 (windows_nat_target::wait): Set pc_adjusted.
9280 2020-04-24 Tom de Vries <tdevries@suse.de>
9282 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9283 Run gdb-add-index inside temp dir.
9285 2020-04-23 Tom Tromey <tromey@adacore.com>
9287 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9290 2020-04-23 Luis Machado <luis.machado@linaro.org>
9292 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9293 get_frame_register instead of gdbarch_unwind_pc.
9295 2020-04-23 Tom de Vries <tdevries@suse.de>
9297 * symtab.c (lookup_global_symbol): Prefer def over decl.
9299 2020-04-23 Tom de Vries <tdevries@suse.de>
9302 * block.c (best_symbol, better_symbol): Promote to external.
9303 * block.h (best_symbol, better_symbol): Declare.
9304 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9307 2020-04-23 Tom Tromey <tromey@adacore.com>
9310 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9311 "const char *", not a "const std::string &".
9312 <name_and_matcher::operator==>: Update.
9313 * unittests/lookup_name_info-selftests.c: Change type of
9316 2020-04-23 Tom Tromey <tom@tromey.com>
9318 * inferior.h (iterate_over_inferiors): Don't declare.
9319 * inferior.c (iterate_over_inferiors): Remove.
9320 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9322 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9323 use iterate_over_inferiors.
9324 (darwin_resume_inferior_it)
9325 (struct resume_inferior_threads_param)
9326 (darwin_resume_inferior_threads_it): Remove.
9327 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9329 2020-04-23 Tom de Vries <tdevries@suse.de>
9331 * blockframe.c (find_pc_partial_function): Use
9332 find_pc_sect_compunit_symtab rather than
9333 objfile->sf->qf->find_pc_sect_compunit_symtab.
9335 2020-04-22 Tom de Vries <tdevries@suse.de>
9338 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9341 2020-04-22 Tom de Vries <tdevries@suse.de>
9344 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9347 2020-04-22 Tom de Vries <tdevries@suse.de>
9350 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9351 CU if already created.
9353 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9355 * infrun.c (displaced_step_fixup): Switch to the event_thread
9356 before calling displaced_step_restore, not after.
9358 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9360 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9361 its inferior is not recorded by us.
9362 (record_btrace_target_open): Replace call to
9363 all_non_exited_threads () with call to current_inferior
9364 ()->non_exited_threads ().
9365 (record_btrace_target::stop_recording): Likewise.
9366 (record_btrace_target::close): Likewise.
9367 (record_btrace_target::wait): Likewise.
9368 (record_btrace_target::record_stop_replaying): Likewise.
9370 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9372 * btrace.c (btrace_enable): Throw an error on double enables and
9373 when enabling recording fails.
9374 (btrace_disable): Throw an error if the thread is not recorded.
9376 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9378 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9379 request if we do not have a thread_info.
9381 2020-04-21 Tom de Vries <tdevries@suse.de>
9385 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9386 exception in get_frame_id.
9388 2020-04-20 Tom Tromey <tromey@adacore.com>
9390 * python/python.c (struct gdbpy_event): Mark move constructor as
9392 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9393 constructor as noexcept.
9394 * completer.h (struct completion_result): Mark move constructor as
9396 * completer.c (completion_result::completion_result): Use
9397 initialization style. Don't call reset_match_list.
9399 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9401 * MAINTAINERS (Write After Approval): Add myself.
9403 2020-04-18 Tom Tromey <tom@tromey.com>
9405 * windows-tdep.c (init_w32_command_list)
9406 (w32_prefix_command_valid): Restore.
9407 (_initialize_windows_tdep): Call init_w32_command_list.
9409 2020-04-18 Tom Tromey <tom@tromey.com>
9411 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9412 * value.c (value_fn_field): Update.
9413 * valops.c (find_function_in_inferior)
9414 (value_allocate_space_in_inferior): Update.
9415 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9417 * tui/tui-source.c (tui_source_window::set_contents): Update.
9418 * symtab.c (lookup_global_or_static_symbol)
9419 (find_function_start_sal_1, skip_prologue_sal)
9420 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9421 * symmisc.c (dump_msymbols, dump_symtab_1)
9422 (maintenance_print_one_line_table): Update.
9423 * symfile.c (init_entry_point_info, section_is_mapped)
9424 (list_overlays_command, simple_read_overlay_table)
9425 (simple_overlay_update_1): Update.
9426 * stap-probe.c (handle_stap_probe): Update.
9427 * stabsread.c (dbx_init_float_type, define_symbol)
9428 (read_one_struct_field, read_enum_type, read_range_type): Update.
9429 * source.c (info_line_command): Update.
9430 * python/python.c (gdbpy_source_objfile_script)
9431 (gdbpy_execute_objfile_script): Update.
9432 * python/py-type.c (save_objfile_types): Update.
9433 * python/py-objfile.c (py_free_objfile): Update.
9434 * python/py-inferior.c (python_new_objfile): Update.
9435 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9436 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9437 (maintenance_check_psymtabs): Update.
9438 * printcmd.c (info_address_command): Update.
9439 * objfiles.h (struct objfile) <arch>: New method, from
9441 (get_objfile_arch): Don't declare.
9442 * objfiles.c (get_objfile_arch): Remove.
9443 (filter_overlapping_sections): Update.
9444 * minsyms.c (msymbol_is_function): Update.
9445 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9446 (output_nondebug_symbol): Update.
9447 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9448 (mdebug_expand_psymtab): Update.
9449 * machoread.c (macho_add_oso_symfile): Update.
9450 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9452 * linux-fork.c (checkpoint_command): Update.
9453 * linespec.c (convert_linespec_to_sals): Update.
9454 * jit.c (finalize_symtab): Update.
9455 * infrun.c (insert_exception_resume_from_probe): Update.
9456 * ia64-tdep.c (ia64_find_unwind_table): Update.
9457 * hppa-tdep.c (internalize_unwinds): Update.
9458 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9460 * gcore.c (call_target_sbrk): Update.
9461 * elfread.c (record_minimal_symbol, elf_symtab_read)
9462 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9463 (elf_gnu_ifunc_resolve_by_got): Update.
9464 * dwarf2/read.c (create_addrmap_from_index)
9465 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9466 (read_debug_names_from_section)
9467 (process_psymtab_comp_unit_reader, add_partial_symbol)
9468 (add_partial_subprogram, process_full_comp_unit)
9469 (read_file_scope, read_func_scope, read_lexical_block_scope)
9470 (read_call_site_scope, dwarf2_ranges_read)
9471 (dwarf2_record_block_ranges, dwarf2_add_field)
9472 (mark_common_block_symbol_computed, read_tag_pointer_type)
9473 (read_tag_string_type, dwarf2_init_float_type)
9474 (dwarf2_init_complex_target_type, read_base_type)
9475 (partial_die_info::read, partial_die_info::read)
9476 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9477 (dwarf2_fetch_die_loc_sect_off): Update.
9478 * dwarf2/loc.c (dwarf2_find_location_expression)
9479 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9480 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9481 (dwarf2_loc_desc_get_symbol_read_needs)
9482 (locexpr_describe_location_piece, locexpr_describe_location_1)
9483 (loclist_describe_location): Update.
9484 * dwarf2/index-write.c (write_debug_names): Update.
9485 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9486 * dtrace-probe.c (dtrace_process_dof): Update.
9487 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9488 (process_one_symbol): Update.
9489 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9490 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9491 (coff_read_enum_type): Update.
9492 * cli/cli-cmds.c (edit_command, list_command): Update.
9493 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9494 * breakpoint.c (create_overlay_event_breakpoint)
9495 (create_longjmp_master_breakpoint)
9496 (create_std_terminate_master_breakpoint)
9497 (create_exception_master_breakpoint, get_sal_arch): Update.
9498 * block.c (block_gdbarch): Update.
9499 * annotate.c (annotate_source_line): Update.
9501 2020-04-17 Tom Tromey <tromey@adacore.com>
9503 * auto-load.c (show_auto_load_cmd): Remove.
9504 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9505 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9506 (maintenance_print_arc_command): Remove.
9507 * tui/tui-win.c (tui_command): Remove.
9508 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9509 * tui/tui-layout.c (tui_layout_command): Remove.
9510 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9511 * python/python.c (user_set_python, user_show_python): Remove.
9512 (_initialize_python): Use add_basic_prefix_cmd,
9513 add_show_prefix_cmd.
9514 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9515 (install_gdb_commands): Use add_basic_prefix_cmd,
9516 add_show_prefix_cmd.
9517 (info_guile_command): Remove.
9518 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9519 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9520 add_show_prefix_cmd.
9521 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9522 Remove do_set and do_show parameters.
9523 * cli/cli-style.c (set_style, show_style): Remove.
9524 (_initialize_cli_style): Use add_basic_prefix_cmd,
9525 add_show_prefix_cmd.
9526 (cli_style_option::add_setshow_commands): Remove do_set and
9528 (cli_style_option::add_setshow_commands): Use
9529 add_basic_prefix_cmd, add_show_prefix_cmd.
9530 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9531 (set_style_name): Remove.
9532 * cli/cli-dump.c (dump_command, append_command): Remove.
9533 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9534 (tekhex_dump_command, binary_dump_command)
9535 (binary_append_command): Remove.
9536 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9537 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9538 (init_w32_command_list): Remove; move into ...
9539 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9540 * valprint.c (set_print, show_print, set_print_raw)
9541 (show_print_raw): Remove.
9542 (_initialize_valprint): Use add_basic_prefix_cmd,
9543 add_show_prefix_cmd.
9544 * typeprint.c (set_print_type, show_print_type): Remove.
9545 (_initialize_typeprint): Use add_basic_prefix_cmd,
9546 add_show_prefix_cmd.
9547 * record.c (set_record_command, show_record_command): Remove.
9548 (_initialize_record): Use add_basic_prefix_cmd,
9549 add_show_prefix_cmd.
9550 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9551 add_show_prefix_cmd.
9552 (info_command, show_command, set_debug, show_debug): Remove.
9553 * top.h (set_history, show_history): Don't declare.
9554 * top.c (set_history, show_history): Remove.
9555 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9556 (unset_tdesc_cmd): Remove.
9557 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9558 add_show_prefix_cmd.
9559 * symtab.c (info_module_command): Remove.
9560 (_initialize_symtab): Use add_basic_prefix_cmd.
9561 * symfile.c (overlay_command): Remove.
9562 (_initialize_symfile): Use add_basic_prefix_cmd.
9563 * sparc64-tdep.c (info_adi_command): Remove.
9564 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9565 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9566 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9567 add_show_prefix_cmd.
9568 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9569 (_initialize_serial): Use add_basic_prefix_cmd,
9570 add_show_prefix_cmd.
9571 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9572 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9573 add_show_prefix_cmd.
9574 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9575 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9576 add_show_prefix_cmd.
9577 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9578 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9579 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9580 add_show_prefix_cmd.
9581 * remote.c (remote_command, set_remote_cmd): Remove.
9582 (_initialize_remote): Use add_basic_prefix_cmd.
9583 * record-full.c (set_record_full_command)
9584 (show_record_full_command): Remove.
9585 (_initialize_record_full): Use add_basic_prefix_cmd,
9586 add_show_prefix_cmd.
9587 * record-btrace.c (cmd_set_record_btrace)
9588 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9589 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9590 (cmd_show_record_btrace_pt): Remove.
9591 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9592 add_show_prefix_cmd.
9593 * ravenscar-thread.c (set_ravenscar_command)
9594 (show_ravenscar_command): Remove.
9595 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9596 add_show_prefix_cmd.
9597 * mips-tdep.c (show_mips_command, set_mips_command)
9598 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9599 add_show_prefix_cmd.
9600 * maint.c (maintenance_command, maintenance_info_command)
9601 (maintenance_check_command, maintenance_print_command)
9602 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9603 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9604 add_show_prefix_cmd.
9605 (show_per_command_cmd): Remove.
9606 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9608 (maintenance_show_test_settings_cmd): Remove.
9609 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9610 add_show_prefix_cmd.
9611 * maint-test-options.c (maintenance_test_options_command):
9613 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9614 * macrocmd.c (macro_command): Remove
9615 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9616 * language.c (set_check, show_check): Remove.
9617 (_initialize_language): Use add_basic_prefix_cmd,
9618 add_show_prefix_cmd.
9619 * infcmd.c (unset_command): Remove.
9620 (_initialize_infcmd): Use add_basic_prefix_cmd.
9621 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9622 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9623 add_show_prefix_cmd.
9624 * go32-nat.c (go32_info_dos_command): Remove.
9625 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9626 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9627 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9628 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9629 (_initialize_frame): Use add_basic_prefix_cmd,
9630 add_show_prefix_cmd.
9631 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9632 (_initialize_dcache): Use add_basic_prefix_cmd,
9633 add_show_prefix_cmd.
9634 * cp-support.c (maint_cplus_command): Remove.
9635 (_initialize_cp_support): Use add_basic_prefix_cmd.
9636 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9637 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9638 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9639 add_basic_prefix_cmd, add_show_prefix_cmd.
9640 * breakpoint.c (save_command): Remove.
9641 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9642 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9643 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9644 add_show_prefix_cmd.
9645 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9646 (set_ada_command, show_ada_command): Remove.
9647 (_initialize_ada_language): Use add_basic_prefix_cmd,
9648 add_show_prefix_cmd.
9649 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9651 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9653 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9654 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9656 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9658 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9661 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9663 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9664 import table is not at beginning of .idata section.
9666 2020-04-16 Pedro Alves <palves@redhat.com>
9668 * inferior.c (delete_inferior): Use delete operator directly
9669 instead of delete_program_space.
9670 * progspace.c (add_program_space): New, factored out from
9671 program_space::program_space.
9672 (remove_program_space): New, factored out from
9673 delete_program_space.
9674 (program_space::program_space): Remove intro comment. Rewrite.
9675 (program_space::~program_space): Remove intro comment. Call
9676 remove_program_space.
9677 (delete_program_space): Delete.
9678 * progspace.h (program_space::program_space): Make explicit. Move
9679 intro comment here, adjusted.
9680 (program_space::~program_space): Move intro comment here,
9682 (delete_program_space): Remove.
9684 2020-04-16 Tom Tromey <tromey@adacore.com>
9686 * windows-nat.c (windows_nat::handle_access_violation): New
9688 * nat/windows-nat.h (handle_access_violation): Declare.
9689 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9690 windows-nat.c. Call handle_access_violation.
9692 2020-04-16 Tom de Vries <tdevries@suse.de>
9695 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9696 CUs without psymtab.
9698 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9700 * python/python.c (do_start_initialization): Don't call
9701 PyEval_InitThreads for Python 3.9 and beyond.
9703 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9705 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9707 (obsd_nat_target::wait): Likewise.
9709 2020-04-15 Tom Tromey <tromey@adacore.com>
9711 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9712 (DEBUG_EXCEPT): Use debug_printf.
9714 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9716 * completer.c (class completion_tracker::completion_hash_entry)
9717 <hash_name>: New member function.
9718 (completion_tracker::discard_completions): New callback to hash a
9719 completion_hash_entry, pass this to htab_create_alloc.
9721 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9723 * windows-nat.c (windows_make_so): Warn rather than stopping with
9724 an error if realpath() fails.
9726 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9728 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9729 (nbsd_nat_target::info_proc): Add do_status.
9731 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9732 Tom de Vries <tdevries@suse.de>
9735 * psympriv.h (struct partial_symtab::read_symtab)
9736 (struct partial_symtab::expand_psymtab)
9737 (struct partial_symtab::read_dependencies): Update comments.
9738 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9739 read_symtab for includer.
9740 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9741 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9742 (struct dwarf2_include_psymtab::m_readin): Remove.
9743 (struct dwarf2_include_psymtab::includer): New member function.
9744 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9746 2020-04-14 Tom de Vries <tdevries@suse.de>
9749 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9750 with NULL symbol_matcher and lookup_name.
9751 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9753 * dwarf2/read.c (dw2_expand_symtabs_matching)
9754 (dw2_debug_names_expand_symtabs_matching): Same.
9755 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9756 Make lookup_name a pointer. Update comment.
9757 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9758 lookup_name being a pointer.
9759 * symfile.c (expand_symtabs_matching): Same.
9760 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9761 * linespec.c (iterate_over_all_matching_symtabs): Same.
9763 2020-04-13 Tom Tromey <tom@tromey.com>
9765 * run-on-main-thread.c: Update include.
9766 * unittests/main-thread-selftests.c: Update include.
9767 * tui/tui-win.c: Update include.
9768 * tui/tui-io.c: Update include.
9769 * tui/tui-interp.c: Update include.
9770 * tui/tui-hooks.c: Update include.
9771 * top.h: Update include.
9772 * top.c: Update include.
9773 * ser-base.c: Update include.
9774 * remote.c: Update include.
9775 * remote-notif.c: Update include.
9776 * remote-fileio.c: Update include.
9777 * record-full.c: Update include.
9778 * record-btrace.c: Update include.
9779 * python/python.c: Update include.
9780 * posix-hdep.c: Update include.
9781 * mingw-hdep.c: Update include.
9782 * mi/mi-main.c: Update include.
9783 * mi/mi-interp.c: Update include.
9784 * main.c: Update include.
9785 * linux-nat.c: Update include.
9786 * interps.c: Update include.
9787 * infrun.c: Update include.
9788 * inf-loop.c: Update include.
9789 * event-top.c: Update include.
9790 * event-loop.c: Move to ../gdbsupport/.
9791 * event-loop.h: Move to ../gdbsupport/.
9792 * async-event.h: Update include.
9793 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9795 2020-04-13 Tom Tromey <tom@tromey.com>
9797 * tui/tui-win.c: Include async-event.h.
9798 * remote.c: Include async-event.h.
9799 * remote-notif.c: Include async-event.h.
9800 * record-full.c: Include async-event.h.
9801 * record-btrace.c: Include async-event.h.
9802 * infrun.c: Include async-event.h.
9803 * event-top.c: Include async-event.h.
9804 * event-loop.h: Move some declarations to async-event.h.
9805 * event-loop.c: Don't include ser-event.h or top.h. Move some
9806 code to async-event.c.
9807 * async-event.h: New file.
9808 * async-event.c: New file.
9809 * Makefile.in (COMMON_SFILES): Add async-event.c.
9810 (HFILES_NO_SRCDIR): Add async-event.h.
9812 2020-04-13 Tom Tromey <tom@tromey.com>
9814 * utils.c (flush_streams): New function.
9815 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9817 2020-04-13 Tom Tromey <tom@tromey.com>
9819 * event-loop.c (handle_file_event): Use warning, not
9822 2020-04-13 Tom Tromey <tom@tromey.com>
9824 * event-loop.c: Include <chrono>.
9826 2020-04-13 Tom Tromey <tom@tromey.com>
9828 * gdb_select.h: Move to ../gdbsupport/.
9829 * event-loop.c: Update include path.
9830 * top.c: Update include path.
9831 * ser-base.c: Update include path.
9832 * ui-file.c: Update include path.
9833 * ser-tcp.c: Update include path.
9834 * guile/scm-ports.c: Update include path.
9835 * posix-hdep.c: Update include path.
9836 * ser-unix.c: Update include path.
9837 * gdb_usleep.c: Update include path.
9838 * mingw-hdep.c: Update include path.
9839 * inflow.c: Update include path.
9840 * infrun.c: Update include path.
9841 * event-top.c: Update include path.
9843 2020-04-13 Tom Tromey <tom@tromey.com>
9845 * configure: Rebuild.
9846 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9848 2020-04-13 Tom Tromey <tom@tromey.com>
9850 * event-loop.h (start_event_loop): Don't declare.
9851 * event-loop.c (start_event_loop): Move...
9852 * main.c (start_event_loop): ...here. Now static.
9854 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9856 * MAINTAINERS: Update my email address.
9858 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9860 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9863 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9865 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9866 (nbsd_nat_target::info_proc): Add do_cmdline.
9868 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9870 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9871 (nbsd_nat_target::info_proc): Add do_cwd.
9873 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9875 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9877 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9879 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9880 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9881 (nbsd_nat_target::info_proc): New functions.
9882 * nbsd-nat.c (kinfo_get_vmmap): New function.
9883 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9884 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9885 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9886 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9888 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9889 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9890 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9891 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9892 (KINFO_VME_FLAG_GROWS_DOWN): New.
9894 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9896 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9899 2020-04-10 Tom Tromey <tromey@adacore.com>
9901 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9903 2020-04-10 Tom Tromey <tromey@adacore.com>
9905 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9906 separate debug files.
9908 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9910 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9912 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9914 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9915 Check for STATUS_WX86_BREAKPOINT.
9916 (windows_nat_target::wait): Same.
9918 2020-04-10 Tom de Vries <tdevries@suse.de>
9921 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9923 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9925 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9926 (Write After Approval): Remove Tom de Vries.
9928 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9931 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9933 * buildsym.c (record_line): Fix undefined behavior and preserve
9936 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9938 * auxv.h (svr4_auxv_parse): New.
9939 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9940 and generic_auxv_parse.
9941 (svr4_auxv_parse): Add.
9942 * obsd-tdep.c: Include "auxv.h".
9943 (obsd_auxv_parse): Remove.
9944 (obsd_init_abi): Remove comment.
9945 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9946 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9947 * nbsd-tdep.c: Include "auxv.h".
9948 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9950 2020-04-08 Tom Tromey <tromey@adacore.com>
9952 * nat/windows-nat.h (last_wait_event): Don't declare.
9953 (wait_for_debug_event): Update comment.
9954 * nat/windows-nat.c (last_wait_event): Now static.
9956 2020-04-08 Tom Tromey <tromey@adacore.com>
9958 * windows-nat.c (wait_for_debug_event): Move to
9960 * nat/windows-nat.h (wait_for_debug_event): Declare.
9961 * nat/windows-nat.c (wait_for_debug_event): Move from
9962 windows-nat.c. No longer static.
9964 2020-04-08 Tom Tromey <tromey@adacore.com>
9966 * windows-nat.c (get_windows_debug_event): Use
9968 * nat/windows-nat.h (fetch_pending_stop): Declare.
9969 * nat/windows-nat.c (fetch_pending_stop): New function.
9971 2020-04-08 Tom Tromey <tromey@adacore.com>
9973 * windows-nat.c (windows_continue): Use matching_pending_stop and
9974 continue_last_debug_event.
9975 * nat/windows-nat.h (matching_pending_stop)
9976 (continue_last_debug_event): Declare.
9977 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9978 (matching_pending_stop, continue_last_debug_event): New
9981 2020-04-08 Tom Tromey <tromey@adacore.com>
9983 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9984 (handle_exception_result): Move to nat/windows-nat.h.
9985 (DEBUG_EXCEPTION_SIMPLE): Remove.
9986 (windows_nat::handle_ms_vc_exception): New function.
9987 (handle_exception): Move to nat/windows-nat.c.
9988 (get_windows_debug_event): Update.
9989 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9991 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9992 (handle_exception_result): Move from windows-nat.c.
9993 (handle_exception): Declare.
9994 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9995 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9998 2020-04-08 Tom Tromey <tromey@adacore.com>
10000 * windows-nat.c (exception_count, event_count): Remove.
10001 (handle_exception, get_windows_debug_event)
10002 (do_initial_windows_stuff): Update.
10004 2020-04-08 Tom Tromey <tromey@adacore.com>
10006 * windows-nat.c (windows_nat::handle_load_dll)
10007 (windows_nat::handle_unload_dll): Rename. No longer static.
10008 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10011 2020-04-08 Tom Tromey <tromey@adacore.com>
10013 * complaints.h (stop_whining): Declare at top-level.
10014 (complaint): Don't declare stop_whining.
10016 2020-04-08 Tom Tromey <tromey@adacore.com>
10018 * windows-nat.c (windows_nat::handle_output_debug_string):
10019 Rename. No longer static.
10020 * nat/windows-nat.h (handle_output_debug_string): Declare.
10022 2020-04-08 Tom Tromey <tromey@adacore.com>
10024 * windows-nat.c (current_process_handle, current_process_id)
10025 (main_thread_id, last_sig, current_event, last_wait_event)
10026 (current_windows_thread, desired_stop_thread_id, pending_stops)
10027 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10028 (display_selectors, fake_create_process)
10029 (get_windows_debug_event): Update.
10030 * nat/windows-nat.h (current_process_handle, current_process_id)
10031 (main_thread_id, last_sig, current_event, last_wait_event)
10032 (current_windows_thread, desired_stop_thread_id, pending_stops)
10033 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10034 * nat/windows-nat.c (current_process_handle, current_process_id)
10035 (main_thread_id, last_sig, current_event, last_wait_event)
10036 (current_windows_thread, desired_stop_thread_id, pending_stops)
10037 (siginfo_er): New globals. Move from windows-nat.c.
10039 2020-04-08 Tom Tromey <tromey@adacore.com>
10041 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10042 (handle_load_dll): Update.
10043 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10045 2020-04-08 Tom Tromey <tromey@adacore.com>
10047 * windows-nat.c (enum thread_disposition_type): Move to
10049 (windows_nat::thread_rec): Rename from thread_rec. No longer
10051 (windows_add_thread, windows_nat_target::fetch_registers)
10052 (windows_nat_target::store_registers, handle_exception)
10053 (windows_nat_target::resume, get_windows_debug_event)
10054 (windows_nat_target::get_tib_address)
10055 (windows_nat_target::thread_name)
10056 (windows_nat_target::thread_alive): Update.
10057 * nat/windows-nat.h (enum thread_disposition_type): Move from
10059 (thread_rec): Declare.
10061 2020-04-08 Tom Tromey <tromey@adacore.com>
10063 * windows-nat.c: Add "using namespace".
10064 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10065 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10067 2020-04-08 Tom Tromey <tromey@adacore.com>
10069 * nat/windows-nat.h (struct windows_thread_info): Declare
10071 * nat/windows-nat.c (~windows_thread_info): New.
10073 2020-04-08 Tom Tromey <tromey@adacore.com>
10076 * windows-nat.c (current_event): Update comment.
10077 (last_wait_event, desired_stop_thread_id): New globals.
10078 (struct pending_stop): New.
10079 (pending_stops): New global.
10080 (windows_nat_target) <stopped_by_sw_breakpoint>
10081 <supports_stopped_by_sw_breakpoint>: New methods.
10082 (windows_fetch_one_register): Add assertions. Adjust PC.
10083 (windows_continue): Handle pending stops. Suspend other threads
10084 when stepping. Use last_wait_event
10085 (wait_for_debug_event): New function.
10086 (get_windows_debug_event): Use wait_for_debug_event. Handle
10087 pending stops. Queue spurious stops.
10088 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10089 (windows_nat_target::kill): Use wait_for_debug_event.
10090 * nat/windows-nat.h (struct windows_thread_info)
10091 <stopped_at_software_breakpoint>: New field.
10092 * nat/windows-nat.c (windows_thread_info::resume): Clear
10093 stopped_at_software_breakpoint.
10095 2020-04-08 Tom Tromey <tromey@adacore.com>
10097 * windows-nat.c (enum thread_disposition_type): New.
10098 (thread_rec): Replace "get_context" parameter with "disposition";
10100 (windows_add_thread, windows_nat_target::fetch_registers)
10101 (windows_nat_target::store_registers, handle_exception)
10102 (windows_nat_target::resume, get_windows_debug_event)
10103 (windows_nat_target::get_tib_address)
10104 (windows_nat_target::thread_name)
10105 (windows_nat_target::thread_alive): Update.
10107 2020-04-08 Tom Tromey <tromey@adacore.com>
10109 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10110 (windows_continue): Use windows_continue::resume.
10111 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10112 resume>: Declare new methods.
10113 * nat/windows-nat.c: New file.
10114 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10116 2020-04-08 Tom Tromey <tromey@adacore.com>
10118 * windows-nat.c (windows_add_thread, windows_delete_thread)
10119 (windows_nat_target::fetch_registers)
10120 (windows_nat_target::store_registers, fake_create_process)
10121 (windows_nat_target::resume, windows_nat_target::resume)
10122 (get_windows_debug_event, windows_nat_target::wait)
10123 (windows_nat_target::pid_to_str)
10124 (windows_nat_target::get_tib_address)
10125 (windows_nat_target::get_ada_task_ptid)
10126 (windows_nat_target::thread_name)
10127 (windows_nat_target::thread_alive): Use lwp, not tid.
10129 2020-04-08 Tom Tromey <tromey@adacore.com>
10131 * windows-nat.c (handle_exception)
10132 (windows_nat_target::thread_name): Update.
10133 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10134 <name>: Now unique_xmalloc_ptr.
10136 2020-04-08 Tom Tromey <tromey@adacore.com>
10138 * windows-nat.c (thread_rec)
10139 (windows_nat_target::fetch_registers): Update.
10140 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10142 <debug_registers_changed, reload_context>: Now bool.
10144 2020-04-08 Tom Tromey <tromey@adacore.com>
10146 * windows-nat.c (windows_add_thread): Use new.
10147 (windows_init_thread_list, windows_delete_thread): Use delete.
10148 (get_windows_debug_event): Update.
10149 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10150 destructor, and initializers.
10152 2020-04-08 Tom Tromey <tromey@adacore.com>
10154 * windows-nat.c (struct windows_thread_info): Remove.
10155 * nat/windows-nat.h: New file.
10157 2020-04-08 Tom Tromey <tromey@adacore.com>
10159 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10160 (thread_rec, windows_add_thread, windows_delete_thread)
10161 (windows_continue): Update.
10163 2020-04-08 Tom Tromey <tromey@adacore.com>
10165 * windows-nat.c (struct windows_thread_info): Remove typedef.
10166 (thread_head): Remove.
10167 (thread_list): New global.
10168 (thread_rec, windows_add_thread, windows_init_thread_list)
10169 (windows_delete_thread, windows_continue): Update.
10171 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10173 * windows-tdep.h (windows_init_abi): Add comment.
10174 (cygwin_init_abi): New declaration.
10175 * windows-tdep.c: Split signal enumeration in two, one for
10176 Windows and one for Cygwin.
10177 (windows_gdb_signal_to_target): Only deal with signal of the
10179 (cygwin_gdb_signal_to_target): New function.
10180 (windows_init_abi): Rename to windows_init_abi_common, don't set
10181 gdb_signal_to_target gdbarch method. Add new new function with
10183 (cygwin_init_abi): New function.
10184 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10185 comment. Don't call windows_init_abi.
10186 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10187 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10188 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10189 i386_windows_init_abi_common, don't call windows_init_abi. Add
10190 a new function of this name.
10191 (i386_cygwin_init_abi): New function.
10192 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10195 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10197 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10199 (dwarf2_read_gdb_index): Update.
10201 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10203 * nbsd-tdep.c: Include "objfiles.h".
10204 (nbsd_skip_solib_resolver): New.
10205 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10207 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10209 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10210 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10211 with DW_LLE_base_addressx are being emitted in DWARFv5.
10212 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10213 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10216 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10218 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10219 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10220 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10221 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10222 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10223 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10224 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10227 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10229 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10230 (read_loclist_index): New function definition.
10231 (lookup_loclist_base): New function definition.
10232 (read_loclist_header): New function definition.
10233 (dwarf2_cu): Add loclist_base and loclist_header field.
10234 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10235 (read_full_die_1): Read the value of DW_AT_loclists_base.
10236 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10237 (read_attribute_value): Handle DW_FORM_loclistx.
10238 (skip_one_die): Handle DW_FORM_loclistx.
10239 (loclist_header): New structure declaration.
10240 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10242 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10244 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10245 constructor. Remove `addr` parameter from other constructor and
10246 add `per_cu` parameter.
10247 * dwarf2/read.c (create_partial_symtab): Update.
10249 2020-04-07 Tom de Vries <tdevries@suse.de>
10252 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10253 (partial_die_info::fixup): Inherit has_const_value.
10255 2020-04-07 Tom de Vries <tdevries@suse.de>
10257 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10258 symbols without address.
10260 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10262 * nbsd-nat.h (struct thread_info): Add forward declaration.
10263 (nbsd_nat_target::thread_alive): Add.
10264 (nbsd_nat_target::thread_name): Likewise.
10265 (nbsd_nat_target::update_thread_list): Likewise.
10266 (update_thread_list::post_attach): Likewise.
10267 (post_attach::pid_to_str): Likewise.
10268 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10269 (nbsd_thread_lister): Add.
10270 (nbsd_nat_target::thread_alive): Likewise.
10271 (nbsd_nat_target::thread_name): Likewise.
10272 (nbsd_add_threads): Likewise.
10273 (update_thread_list::post_attach): Likewise.
10274 (nbsd_nat_target::update_thread_list): Likewise.
10275 (post_attach::pid_to_str): Likewise.
10277 2020-04-06 Tom Tromey <tromey@adacore.com>
10279 * ada-valprint.c (print_variant_part): Extract the variant field.
10280 (print_field_values): Use the field as the outer value when
10283 2020-04-06 Tom Tromey <tromey@adacore.com>
10285 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10286 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10287 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10288 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10289 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10291 2020-04-06 Tom Tromey <tromey@adacore.com>
10293 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10296 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10298 * nbsd-tdep.c: Include "gdbarch.h".
10299 Define enum with NetBSD signal numbers.
10300 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10301 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10302 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10303 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10304 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10305 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10306 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10307 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10308 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10309 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10310 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10311 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10313 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10316 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10318 2020-04-03 Tom Tromey <tromey@adacore.com>
10320 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10321 Read constant block.
10323 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10325 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10326 (gdb_bfd_get_full_section_contents): New declaration.
10327 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10328 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10329 gdb_bfd_get_full_section_contents.
10331 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10333 * exec.c (build_section_table): Replace internal_error with
10335 (section_table_xfer_memory_partial): Likewise.
10336 * mdebugread.c (parse_partial_symbols): Likewise.
10337 * psymtab.c (lookup_partial_symbol): Likewise.
10338 * utils.c (wrap_here): Likewise.
10340 2020-04-02 Tom Tromey <tromey@adacore.com>
10342 * f-lang.c (build_fortran_types): Use arch_type to initialize
10343 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10345 2020-04-02 Tom Tromey <tromey@adacore.com>
10347 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10350 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10351 Bernd Edlinger <bernd.edlinger@hotmail.de>
10352 Tom Tromey <tromey@adacore.com>
10354 * buildsym.c (buildsym_compunit::record_line): Remove
10355 deduplication code.
10357 2020-04-02 Tom de Vries <tdevries@suse.de>
10360 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10362 2020-04-02 Tom de Vries <tdevries@suse.de>
10364 * dwarf2/read.c (dwarf2_gdb_index_functions,
10365 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10367 * psymtab.c (psym_lookup_global_symbol_language): New function.
10368 (psym_functions): Init psym_lookup_global_symbol_language with
10369 psym_lookup_global_symbol_language.
10370 * symfile-debug.c (debug_sym_quick_functions): Init
10371 lookup_global_symbol_language with NULL.
10372 * symfile.c (set_initial_language): Remove fixme comment.
10373 * symfile.h (struct quick_symbol_functions): Add
10374 lookup_global_symbol_language.
10375 * symtab.c (find_quick_global_symbol_language): New function.
10376 (find_main_name): Use find_quick_global_symbol_language.
10378 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10380 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10382 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10384 * buildsym.c (record_line): Fix undefined behavior and preserve
10387 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10389 * buildsym.c (record_line): Fix the resizing condition.
10391 2020-04-01 Tom Tromey <tom@tromey.com>
10393 * value.h (value_literal_complex): Add comment.
10394 * valops.c (value_literal_complex): Refer to value.h.
10396 2020-04-01 Tom Tromey <tom@tromey.com>
10398 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10399 (scalar_type): New rule, from typebase.
10400 (typebase): Use scalar_type. Recognize complex types.
10401 (field_name): Handle FLOAT_KEYWORD.
10402 (ident_tokens): Add _Complex and __complex__.
10404 2020-04-01 Tom Tromey <tom@tromey.com>
10407 * valarith.c (promotion_type, complex_binop): New functions.
10408 (scalar_binop): Handle complex numbers. Use promotion_type.
10409 (value_pos, value_neg, value_complement): Handle complex numbers.
10411 2020-04-01 Tom Tromey <tom@tromey.com>
10413 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10414 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10415 (parse_number): Handle complex numbers.
10417 2020-04-01 Tom Tromey <tom@tromey.com>
10419 * c-valprint.c (c_decorations): Change complex suffix to "i".
10421 2020-04-01 Tom Tromey <tom@tromey.com>
10423 * valprint.c (generic_value_print_complex): Use accessors.
10424 * value.h (value_real_part, value_imaginary_part): Declare.
10425 * valops.c (value_real_part, value_imaginary_part): New
10427 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10429 2020-04-01 Tom Tromey <tom@tromey.com>
10431 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10432 (read_range_type): Update.
10433 * mdebugread.c (basic_type): Update.
10434 * go-lang.c (build_go_types): Use init_complex_type.
10435 * gdbtypes.h (struct main_type) <complex_type>: New member.
10436 (init_complex_type): Update.
10437 (arch_complex_type): Don't declare.
10438 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10439 Make name if none given. Use alloc_type_copy. Look for cached
10441 (arch_complex_type): Remove.
10442 (gdbtypes_post_init): Use init_complex_type.
10443 * f-lang.c (build_fortran_types): Use init_complex_type.
10444 * dwarf2/read.c (read_base_type): Update.
10445 * d-lang.c (build_d_types): Use init_complex_type.
10446 * ctfread.c (read_base_type): Update.
10448 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10450 * infrun.c (stop_all_threads): Update assertion, plus when
10451 stopping threads, take into account that we might be trying
10452 to stop an all-stop target.
10453 (stop_waiting): Call 'stop_all_threads' if there exists a
10456 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10458 * target.h (exists_non_stop_target): New function declaration.
10459 * target.c (exists_non_stop_target): New function.
10461 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10464 * eval.c (is_integral_or_integral_reference): New function.
10465 (evaluate_subexp_standard): Allow integer references in
10466 pointer arithmetic.
10468 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10470 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10471 check for no ptid in the stop reply when the target is non-stop.
10473 2020-04-01 Tom Tromey <tromey@adacore.com>
10475 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10476 "name" parameter to rvalue reference. Initialize m_name_holder.
10477 <lookup_name_info>: New overloads.
10478 <name>: Return gdb::string_view.
10479 <c_str>: New method.
10480 <make_ignore_params>: Update.
10481 <search_name_hash>: Update.
10482 <language_lookup_name>: Return const char *.
10483 <m_name>: Change type.
10484 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10485 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10486 (lookup_name_info::match_any): Update.
10487 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10489 * minsyms.c (linkage_name_str): Update.
10490 * language.c (default_symbol_name_matcher): Update.
10491 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10493 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10494 (ada_lookup_name_info::ada_lookup_name_info): Update.
10495 (literal_symbol_name_matcher): Update.
10497 2020-04-01 Tom Tromey <tromey@adacore.com>
10499 * psymtab.c (psymtab_search_name): Remove function.
10500 (psym_lookup_symbol): Create search name and lookup name here.
10501 (lookup_partial_symbol): Remove "name" parameter; add
10503 (psym_expand_symtabs_for_function): Update.
10505 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10508 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10510 2020-03-31 Tom Tromey <tromey@adacore.com>
10512 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10515 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10517 * features/riscv/32bit-csr.xml: Regenerated.
10518 * features/riscv/64bit-csr.xml: Regenerated.
10520 2020-03-30 Tom Tromey <tromey@adacore.com>
10522 * ada-valprint.c (print_variant_part): Update.
10523 * ada-lang.h (ada_which_variant_applies): Update.
10524 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10525 outer_valaddr parameters; replace with "outer" value parameter.
10526 (to_fixed_variant_branch_type): Update.
10528 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10530 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10531 <list>. Remove inclusion of observable.h.
10532 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10533 (struct arch_lwp_info): New struct.
10534 (class ppc_linux_dreg_interface): New class.
10535 (struct ppc_linux_process_info): New struct.
10536 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10537 <low_new_clone, low_forget_process, low_prepare_to_resume>
10538 <copy_thread_dreg_state, mark_thread_stale>
10539 <mark_debug_registers_changed, register_hw_breakpoint>
10540 <clear_hw_breakpoint, register_wp, clear_wp>
10541 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10542 <num_memory_accesses, get_trigger_type>
10543 <create_watchpoint_request, hwdebug_point_cmp>
10544 <init_arch_lwp_info, get_arch_lwp_info>
10545 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10547 <struct ptid_hash>: New inner struct.
10548 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10550 (saved_dabr_value, hwdebug_info, max_slots_number)
10551 (struct hw_break_tuple, struct thread_points, ppc_threads)
10552 (have_ptrace_hwdebug_interface)
10553 (hwdebug_find_thread_points_by_tid)
10554 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10555 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10556 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10557 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10558 use m_dreg_interface.
10559 (hwdebug_point_cmp): Change to...
10560 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10561 reference arguments instead of pointers.
10562 (ppc_linux_nat_target::ranged_break_num_registers): Use
10564 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10565 m_dreg_interface. Call register_hw_breakpoint.
10566 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10567 m_dreg_interface. Call clear_hw_breakpoint.
10568 (get_trigger_type): Change to...
10569 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10571 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10572 use m_dreg_interface. Call register_hw_breakpoint.
10573 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10574 use m_dreg_interface. Call clear_hw_breakpoint.
10575 (can_use_watchpoint_cond_accel): Change to...
10576 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10577 method. Update comment, use m_dreg_interface and
10579 (calculate_dvc): Change to...
10580 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10582 (num_memory_accesses): Change to...
10583 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10584 (check_condition): Change to...
10585 (ppc_linux_nat_target::check_condition): ...this method.
10586 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10587 comment, use m_dreg_interface.
10588 (create_watchpoint_request): Change to...
10589 (ppc_linux_nat_target::create_watchpoint_request): ...this
10590 method. Use m_dreg_interface.
10591 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10592 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10593 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10594 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10595 (ppc_linux_nat_target::low_forget_process)
10596 (ppc_linux_nat_target::low_new_fork)
10597 (ppc_linux_nat_target::low_new_clone)
10598 (ppc_linux_nat_target::low_delete_thread)
10599 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10600 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10601 only call mark_thread_stale.
10602 (ppc_linux_thread_exit): Remove.
10603 (ppc_linux_nat_target::stopped_data_address): Change to...
10604 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10605 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10606 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10607 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10608 comment. Call low_stopped_data_address.
10609 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10611 (ppc_linux_nat_target::masked_watch_num_registers): Use
10613 (ppc_linux_nat_target::copy_thread_dreg_state)
10614 (ppc_linux_nat_target::mark_thread_stale)
10615 (ppc_linux_nat_target::mark_debug_registers_changed)
10616 (ppc_linux_nat_target::register_hw_breakpoint)
10617 (ppc_linux_nat_target::clear_hw_breakpoint)
10618 (ppc_linux_nat_target::register_wp)
10619 (ppc_linux_nat_target::clear_wp)
10620 (ppc_linux_nat_target::init_arch_lwp_info)
10621 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10622 (_initialize_ppc_linux_nat): Remove observer callback.
10624 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10626 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10627 (ppc_linux_nat_target::auxv_parse)
10628 (ppc_linux_nat_target::read_description)
10629 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10632 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10634 * linux-nat.h (low_new_clone): New method.
10635 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10637 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10639 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10640 (dbx_expand_psymtab): ... this.
10641 (start_psymtab): Update.
10642 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10643 (mdebug_expand_psymtab): ... this.
10644 (parse_partial_symbols): Update.
10645 (new_psymtab): Update.
10646 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10647 (xcoff_expand_psymtab): ... this.
10648 (xcoff_start_psymtab): Update.
10650 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10652 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10653 <expand_dependencies>: ... this.
10654 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10655 (partial_symtab::expand_dependencies): ... this.
10656 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10658 (dwarf2_psymtab::expand_psymtab): Update.
10659 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10660 * mdebugread.c (psymtab_to_symtab_1): Update.
10661 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10663 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10665 * psympriv.h (discard_psymtab): Remove.
10666 * dbxread.c (dbx_end_psymtab): Update.
10667 * xcoffread.c (xcoff_end_psymtab): Update.
10669 2020-03-28 Tom Tromey <tom@tromey.com>
10671 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10674 2020-03-28 Tom Tromey <tom@tromey.com>
10676 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10678 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10680 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10682 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10684 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10686 2020-03-26 Tom Tromey <tom@tromey.com>
10688 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10689 (mark_common_block_symbol_computed, read_tag_string_type)
10690 (attr_to_dynamic_prop, read_subrange_type): Update.
10691 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10692 to be methods on struct attribute.
10693 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10694 (read_call_site_scope, partial_die_info::read)
10695 (partial_die_info::read, lookup_die_type, follow_die_ref):
10697 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10698 from dwarf2_get_ref_die_offset.
10699 (attribute::constant_value): New method, from
10700 dwarf2_get_attr_constant_value.
10701 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10703 <constant_value>: New method.
10705 2020-03-26 Tom Tromey <tom@tromey.com>
10707 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10708 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10709 (dwarf_type_encoding_name): Move to stringify.c.
10710 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10711 * dwarf2/stringify.c: New file.
10712 * dwarf2/stringify.h: New file.
10714 2020-03-26 Tom Tromey <tom@tromey.com>
10716 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10719 2020-03-26 Tom Tromey <tom@tromey.com>
10721 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10723 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10724 (lookup_ranges_base): Likewise.
10725 (read_cutu_die_from_dwo, read_full_die_1): Update.
10727 2020-03-26 Tom Tromey <tom@tromey.com>
10729 * dwarf2/read.c (read_import_statement, read_file_scope)
10730 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10731 (read_lexical_block_scope, read_call_site_scope)
10732 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10733 (handle_struct_member_die, process_structure_scope)
10734 (update_enumeration_type_from_children)
10735 (process_enumeration_scope, read_array_type, read_common_block)
10736 (read_namespace, read_module, read_subroutine_type): Update.
10737 (sibling_die): Remove.
10739 2020-03-26 Tom Tromey <tom@tromey.com>
10741 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10742 (build_type_psymtabs_reader, read_structure_type)
10743 (read_enumeration_type, read_full_die_1): Update.
10744 (dwarf2_attr_no_follow): Move to die.h.
10745 * dwarf2/die.h (struct die_info) <attr>: New method.
10747 2020-03-26 Tom Tromey <tom@tromey.com>
10749 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10750 <base_address>: Now an optional.
10751 (dwarf2_find_base_address, dwarf2_rnglists_process)
10752 (dwarf2_ranges_process, fill_in_loclist_baton)
10753 (dwarf2_symbol_mark_computed): Update.
10755 2020-03-26 Tom Tromey <tom@tromey.com>
10757 * dwarf2/read.c (struct die_info): Move to die.h.
10758 * dwarf2/die.h: New file.
10760 2020-03-26 Tom Tromey <tom@tromey.com>
10762 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10764 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10765 Move to line-header.c.
10766 (read_checked_initial_length_and_offset, read_formatted_entries):
10768 (dwarf_decode_line_header): Split into two.
10769 * dwarf2/line-header.c
10770 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10772 (read_checked_initial_length_and_offset, read_formatted_entries):
10774 (dwarf_decode_line_header): New function, split from read.c.
10776 2020-03-26 Tom Tromey <tom@tromey.com>
10778 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10780 * dwarf2/read.c (read_attribute_value): Update.
10781 (dwarf2_per_objfile::read_line_string): Rename from
10782 read_indirect_line_string.
10783 (read_formatted_entries): Update.
10785 2020-03-26 Tom Tromey <tom@tromey.com>
10787 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10790 2020-03-26 Tom Tromey <tom@tromey.com>
10792 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10794 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10795 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10798 2020-03-26 Tom Tromey <tom@tromey.com>
10800 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10801 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10802 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10803 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10805 2020-03-26 Tom Tromey <tom@tromey.com>
10807 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10808 file_names_size, file_full_name, file_file_name>: Use const.
10809 <file_name_at, file_names>: Add const overload.
10810 * dwarf2/line-header.c (line_header::file_file_name)
10811 (line_header::file_full_name): Update.
10813 2020-03-26 Tom Tromey <tom@tromey.com>
10815 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10816 (macro_start_file, consume_improper_spaces)
10817 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10818 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10819 (dwarf_decode_macros): Move to macro.c.
10820 * dwarf2/macro.c: New file.
10821 * dwarf2/macro.h: New file.
10822 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10824 2020-03-26 Tom Tromey <tom@tromey.com>
10826 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10828 * dwarf2/section.c: New method. From
10829 read_indirect_string_at_offset_from.
10830 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10831 (read_indirect_string_at_offset_from): Move to section.c.
10832 (read_indirect_string_at_offset): Rewrite.
10833 (read_indirect_line_string_at_offset): Remove.
10834 (read_indirect_string, read_indirect_line_string)
10835 (dwarf_decode_macro_bytes): Update.
10837 2020-03-26 Tom Tromey <tom@tromey.com>
10839 * dwarf2/section.h (struct dwarf2_section_info)
10840 <overload_complaint>: Declare.
10841 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10842 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10843 Rename from dwarf2_section_buffer_overflow_complaint.
10844 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10845 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10847 2020-03-26 Tom Tromey <tom@tromey.com>
10849 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10851 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10853 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10856 2020-03-26 Tom Tromey <tom@tromey.com>
10858 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10860 2020-03-26 Tom Tromey <tom@tromey.com>
10862 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10864 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10866 (dwarf_decode_macros): Update.
10868 2020-03-26 Tom Tromey <tom@tromey.com>
10870 * dwarf2/read.c (read_attribute_value): Update.
10871 (read_indirect_string_from_dwz): Move to dwz.c; change into
10873 (dwarf_decode_macro_bytes): Update.
10874 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10875 * dwarf2/dwz.c: New file.
10876 * Makefile.in (COMMON_SFILES): Add dwz.c.
10878 2020-03-26 Tom Tromey <tom@tromey.com>
10880 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10881 * dwarf2/read.c: Add include.
10882 * dwarf2/index-write.c: Add include.
10883 * dwarf2/index-cache.c: Add include.
10884 * dwarf2/dwz.h: New file.
10886 2020-03-25 Tom Tromey <tom@tromey.com>
10888 * compile/compile-object-load.c (get_out_value_type): Mention
10889 correct symbol name in error message.
10891 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10893 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10895 2020-03-25 Tom de Vries <tdevries@suse.de>
10897 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10898 * symmisc.c (dump_symtab_1): Print user and includes fields.
10899 (maintenance_info_symtabs): Same.
10901 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10904 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10905 (riscv_regcache_cooked_write): New function.
10906 (riscv_push_dummy_call): Use new function.
10907 (riscv_return_value): Likewise.
10909 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10911 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10912 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10913 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10914 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10915 * infrun.c (follow_fork): Likewise.
10916 (follow_fork_inferior): Likewise.
10917 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10918 * linux-nat.h (class linux_nat_target): Likewise.
10919 * remote.c (class remote_target) <follow_fork>: Likewise.
10920 (remote_target::follow_fork): Likewise.
10921 * target-delegates.c: Re-generate.
10922 * target.c (default_follow_fork): Likewise.
10923 (target_follow_fork): Likewise.
10924 * target.h (struct target_ops) <follow_fork>: Likewise.
10925 (target_follow_fork): Likewise.
10927 2020-03-24 Tom de Vries <tdevries@suse.de>
10929 * psymtab.c (maintenance_info_psymtabs): Print user field.
10931 2020-03-20 Tom Tromey <tromey@adacore.com>
10933 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10935 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10938 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10940 * ptrace.m4: Don't check for ptrace declaration.
10941 * config.in: Re-generate.
10942 * configure: Re-generate.
10943 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10946 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10948 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10950 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10951 * sparc-nat.c (gdb_ptrace): Likewise.
10952 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10954 2020-03-20 Tom Tromey <tromey@adacore.com>
10956 * c-exp.y (lex_one_token): Fix assert.
10958 2020-03-20 Tom Tromey <tromey@adacore.com>
10960 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10961 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10964 2020-03-20 Tom Tromey <tromey@adacore.com>
10966 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10968 2020-03-20 Tom Tromey <tromey@adacore.com>
10970 * ada-valprint.c (print_variant_part): Remove parameters; switch
10971 to value-based API.
10972 (print_field_values): Likewise.
10973 (ada_val_print_struct_union): Likewise.
10974 (ada_value_print_1): Update.
10976 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10978 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10979 nbsd_nat_target instead of inf_ptrace_target.
10980 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10983 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10985 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10986 it to the ptrace call.
10987 * (store_registers): Likewise.
10989 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10991 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10992 it to the ptrace call.
10993 * (store_registers): Likewise.
10995 2020-03-19 Luis Machado <luis.machado@linaro.org>
10997 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10998 valid, fetch vg value from ptrace.
11000 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11001 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11002 * inf-ptrace.c: Likewise.
11003 * (gdb_ptrace): Add.
11004 * (inf_ptrace_target::resume): Update.
11005 * (inf_ptrace_target::xfer_partial): Likewise.
11006 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11007 * (inf_ptrace_peek_poke): Update.
11009 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11011 * x86-bsd-nat.c (gdb_ptrace): New.
11012 * (x86bsd_dr_set): Add new argument `ptid'.
11013 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11014 x86bsd_dr_set_addr): Update.
11016 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11018 * remote.c (remote_target::process_stop_reply): Handle events for
11019 all threads differently.
11021 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11023 * completer.c (completion_tracker::remove_completion): Define new
11025 * completer.h (completion_tracker::remove_completion): Declare new
11027 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11028 when adding a C++ function symbol.
11030 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11032 * completer.c (completion_tracker::completion_hash_entry): Define
11034 (advance_to_filename_complete_word_point): Call
11035 recompute_lowest_common_denominator.
11036 (completion_tracker::completion_tracker): Call discard_completions
11037 to setup the hash table.
11038 (completion_tracker::discard_completions): Allow for being called
11039 from the constructor, pass new equal function, and element deleter
11040 when constructing the hash table. Initialise new class member
11042 (completion_tracker::maybe_add_completion): Remove use of
11043 m_entries_vec, and store more information into m_entries_hash.
11044 (completion_tracker::recompute_lcd_visitor): New function, most
11045 content taken from...
11046 (completion_tracker::recompute_lowest_common_denominator):
11047 ...here, this now just visits each item in the hash calling the
11049 (completion_tracker::build_completion_result): Remove use of
11050 m_entries_vec, call recompute_lowest_common_denominator.
11051 * completer.h (completion_tracker::have_completions): Remove use
11053 (completion_tracker::completion_hash_entry): Declare new class.
11054 (completion_tracker::recompute_lowest_common_denominator): Change
11055 function signature.
11056 (completion_tracker::recompute_lcd_visitor): Declare new function.
11057 (completion_tracker::m_entries_vec): Delete.
11058 (completion_tracker::m_entries_hash): Initialize to NULL.
11059 (completion_tracker::m_lowest_common_denominator_valid): New
11061 (completion_tracker::m_lowest_common_denominator_max_length): New
11064 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11066 * regformats/regdef.h: Put reg in gdb namespace.
11068 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11070 * i386-bsd-nat.c (gdb_ptrace): New.
11071 * (i386bsd_fetch_inferior_registers,
11072 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11073 * (i386bsd_fetch_inferior_registers,
11074 i386bsd_store_inferior_registers) Use gdb_ptrace.
11076 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11078 * amd64-bsd-nat.c (gdb_ptrace): New.
11079 * (amd64bsd_fetch_inferior_registers,
11080 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11081 * (amd64bsd_fetch_inferior_registers,
11082 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11084 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11086 * user-regs.c (user_reg::read): Rename to...
11087 (user_reg::xread): ...this.
11088 * (append_user_reg): Rename argument `read' to `xread'.
11089 * (user_reg_add_builtin): Likewise.
11090 * (user_reg_add): Likewise.
11091 * (value_of_user_reg): Likewise.
11093 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11095 * sparc-nat.c (gdb_ptrace): New.
11096 * sparc-nat.c (sparc_fetch_inferior_registers)
11097 (sparc_store_inferior_registers) Remove obsolete comment.
11098 * sparc-nat.c (sparc_fetch_inferior_registers)
11099 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11100 * sparc-nat.c (sparc_fetch_inferior_registers)
11101 (sparc_store_inferior_registers) Use gdb_ptrace.
11103 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11105 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11106 it to the ptrace call.
11107 * sh-nbsd-nat.c (store_registers): Likewise.
11109 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11111 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11112 nbsd_nat_target instead of inf_ptrace_target.
11113 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11116 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11118 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11120 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11122 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11124 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11126 2020-03-17 Tom de Vries <tdevries@suse.de>
11129 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11131 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11133 (process_imported_unit_die): Skip import of c++ CUs.
11135 2020-03-16 Tom Tromey <tom@tromey.com>
11137 * p-valprint.c (pascal_object_print_value): Initialize
11140 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11141 Shahab Vahedi <shahab@synopsys.com>
11143 * Makefile.in: Add arch/arc.o
11144 * configure.tgt: Likewise.
11145 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11146 (_initialize_arc_tdep): Don't initialize old target descriptions.
11147 (arc_read_description): New function to cache target descriptions.
11148 * arc-tdep.h (arc_read_description): Add proto type.
11149 * arch/arc.c: New file.
11150 * arch/arc.h: Likewise.
11151 * features/Makefile: Replace old target descriptions with new.
11152 * features/arc-arcompact.c: Remove.
11153 * features/arc-arcompact.xml: Likewise.
11154 * features/arc-v2.c: Likewise
11155 * features/arc-v2.xml: Likewise
11156 * features/arc/aux-arcompact.xml: New file.
11157 * features/arc/aux-v2.xml: Likewise.
11158 * features/arc/core-arcompact.xml: Likewise.
11159 * features/arc/core-v2.xml: Likewise.
11160 * features/arc/aux-arcompact.c: Generate.
11161 * features/arc/aux-v2.c: Likewise.
11162 * features/arc/core-arcompact.c: Likewise.
11163 * features/arc/core-v2.c: Likewise.
11164 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11166 2020-03-16 Tom Tromey <tromey@adacore.com>
11169 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11170 putting value into bcache.
11172 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11175 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11177 (amd64_windows_init_abi_common): ... this. Don't set size of
11179 (amd64_windows_init_abi): New function.
11180 (amd64_cygwin_init_abi): New function.
11181 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11183 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11186 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11188 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11189 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11190 (pe_import_directory_entry): New struct type.
11191 (is_linked_with_cygwin_dll): New function.
11192 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11193 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11194 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11196 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11198 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11199 i386_cygwin_core_osabi_sniffer.
11201 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11203 * i386-cygwin-tdep.c: Rename to...
11204 * i386-windows-tdep.c: ... this.
11205 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11206 i386-windows-tdep.c.
11207 * configure.tgt: Likewise.
11209 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11211 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11212 * osabi.c (gdb_osabi_names): Add "Windows".
11213 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11214 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11215 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11216 i386_cygwin_osabi_sniffer.
11217 (_initialize_i386_cygwin_tdep): Register OS ABI
11218 GDB_OSABI_WINDOWS for i386.
11219 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11220 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11221 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11223 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11224 when the target matches '*-*-mingw*'.
11226 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11228 * defs.h (enum gdb_osabi): Move to...
11229 * osabi.h (enum gdb_osabi): ... here.
11230 * gdbarch.sh: Include osabi.h in gdbarch.h.
11231 * gdbarch.h: Re-generate.
11233 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11235 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11237 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11239 2020-03-14 Tom Tromey <tom@tromey.com>
11241 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11243 (c_type_print_modifier): Likewise. Add "language" parameter.
11244 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11245 (c_type_print_base_1): Update.
11246 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11248 * type-stack.c (type_stack::insert): Handle tp_atomic and
11250 (type_stack::follow_type_instance_flags): Likewise.
11251 (type_stack::follow_types): Likewise. Merge type-following code.
11252 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11253 (space_identifier, cv_with_space_id)
11254 (const_or_volatile_or_space_identifier_noopt)
11255 (const_or_volatile_or_space_identifier): Remove.
11256 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11258 (ptr_operator, typebase): Update.
11259 (enum token_flag) <FLAG_C>: New constant.
11260 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11262 (lex_one_token): Handle FLAG_C.
11264 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11266 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11267 it to the ptrace call.
11268 * m68k-bsd-nat.c (store_registers): Likewise.
11270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11272 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11274 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11275 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11276 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11280 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11281 nbsd_nat_target instead of inf_ptrace_target.
11282 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11287 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11290 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11292 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11293 it to the ptrace call.
11294 * alpha-bsd-nat.c (store_registers): Likewise.
11296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11298 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11300 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11301 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11302 fill_fpregset): Likewise.
11304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11306 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11307 nbsd_nat_target instead of inf_ptrace_target.
11308 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11313 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11316 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11318 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11319 it to the ptrace call.
11320 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11321 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11322 * arm-nbsd-nat.c (store_register): Likewise.
11323 * arm-nbsd-nat.c (store_regs): Likewise.
11324 * arm-nbsd-nat.c (store_fp_register): Likewise.
11325 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11327 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11329 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11330 nbsd_nat_target instead of inf_ptrace_target.
11331 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11334 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11336 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11337 it to the ptrace call.
11338 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11340 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11342 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11343 it to the ptrace call.
11344 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11346 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11348 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11350 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11352 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11354 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11355 instead of inf_ptrace_target.
11356 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11359 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11361 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11364 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11366 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11369 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11371 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11374 2020-03-13 Tom Tromey <tom@tromey.com>
11376 * value.h (val_print): Don't declare.
11377 * valprint.h (val_print_array_elements)
11378 (val_print_scalar_formatted, generic_val_print): Don't declare.
11379 * valprint.c (generic_val_print_array): Take a struct value.
11380 (generic_val_print_ptr, generic_val_print_memberptr)
11381 (generic_val_print_bool, generic_val_print_int)
11382 (generic_val_print_char, generic_val_print_complex)
11383 (generic_val_print): Remove.
11384 (generic_value_print): Update.
11385 (do_val_print): Remove unused parameters. Don't call
11387 (val_print): Remove.
11388 (common_val_print): Update. Don't call value_check_printable.
11389 (val_print_scalar_formatted, val_print_array_elements): Remove.
11390 * rust-lang.c (rust_val_print): Remove.
11391 (rust_language_defn): Update.
11392 * p-valprint.c (pascal_val_print): Remove.
11393 (pascal_value_print_inner): Update.
11394 (pascal_object_print_val_fields, pascal_object_print_val):
11396 (pascal_object_print_static_field): Update.
11397 * p-lang.h (pascal_val_print): Don't declare.
11398 * p-lang.c (pascal_language_defn): Update.
11399 * opencl-lang.c (opencl_language_defn): Update.
11400 * objc-lang.c (objc_language_defn): Update.
11401 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11402 * m2-lang.h (m2_val_print): Don't declare.
11403 * m2-lang.c (m2_language_defn): Update.
11404 * language.h (struct language_defn) <la_val_print>: Remove.
11405 * language.c (unk_lang_value_print_inner): Rename. Change
11407 (unknown_language_defn, auto_language_defn): Update.
11408 * go-valprint.c (go_val_print): Remove.
11409 * go-lang.h (go_val_print): Don't declare.
11410 * go-lang.c (go_language_defn): Update.
11411 * f-valprint.c (f_val_print): Remove.
11412 * f-lang.h (f_value_print): Don't declare.
11413 * f-lang.c (f_language_defn): Update.
11414 * d-valprint.c (d_val_print): Remove.
11415 * d-lang.h (d_value_print): Don't declare.
11416 * d-lang.c (d_language_defn): Update.
11417 * cp-valprint.c (cp_print_value_fields)
11418 (cp_print_value_fields_rtti, cp_print_value): Remove.
11419 (cp_print_static_field): Update.
11420 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11421 (c_val_print_struct, c_val_print_union, c_val_print_int)
11422 (c_val_print_memberptr, c_val_print): Remove.
11423 * c-lang.h (c_val_print_array, cp_print_value_fields)
11424 (cp_print_value_fields_rtti): Don't declare.
11425 * c-lang.c (c_language_defn, cplus_language_defn)
11426 (asm_language_defn, minimal_language_defn): Update.
11427 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11428 (ada_val_print_enum): Take a struct value.
11429 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11430 (ada_val_print): Remove.
11431 (ada_value_print_1): Update.
11432 (printable_val_type): Remove.
11433 * ada-lang.h (ada_val_print): Don't declare.
11434 * ada-lang.c (ada_language_defn): Update.
11436 2020-03-13 Tom Tromey <tom@tromey.com>
11438 * valprint.c (do_val_print): Update.
11439 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11441 (value_to_value_object_no_release): Declare.
11442 * python/py-value.c (value_to_value_object_no_release): New
11444 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11446 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11448 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11450 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11452 (gdbscm_apply_val_pretty_printer): Take a struct value.
11453 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11455 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11457 * extension-priv.h (struct extension_language_ops)
11458 <apply_val_pretty_printer>: Take a struct value.
11459 * cp-valprint.c (cp_print_value): Create a struct value.
11460 (cp_print_value): Update.
11462 2020-03-13 Tom Tromey <tom@tromey.com>
11464 * ada-valprint.c (print_field_values): Call common_val_print.
11466 2020-03-13 Tom Tromey <tom@tromey.com>
11468 * ada-valprint.c (val_print_packed_array_elements): Remove
11469 bitoffset and val parameters. Call common_val_print.
11470 (ada_val_print_string): Remove offset, address, and original_value
11472 (ada_val_print_array): Update.
11473 (ada_value_print_array): New function.
11474 (ada_value_print_1): Call it.
11476 2020-03-13 Tom Tromey <tom@tromey.com>
11478 * ada-valprint.c (ada_value_print): Use common_val_print.
11480 2020-03-13 Tom Tromey <tom@tromey.com>
11482 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11484 2020-03-13 Tom Tromey <tom@tromey.com>
11486 * ada-valprint.c (ada_value_print_num): New function.
11487 (ada_value_print_1): Use it.
11489 2020-03-13 Tom Tromey <tom@tromey.com>
11491 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11493 2020-03-13 Tom Tromey <tom@tromey.com>
11495 * ada-valprint.c (ada_value_print_ptr): New function.
11496 (ada_value_print_1): Use it.
11498 2020-03-13 Tom Tromey <tom@tromey.com>
11500 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11501 call common_val_print.
11502 (ada_val_print_1): Update.
11503 (ada_value_print_1): New function.
11504 (ada_value_print_inner): Rewrite.
11506 2020-03-13 Tom Tromey <tom@tromey.com>
11508 * cp-valprint.c (cp_print_value_fields): Update.
11509 (cp_print_value): New function.
11511 2020-03-13 Tom Tromey <tom@tromey.com>
11513 * m2-valprint.c (m2_value_print_inner): Use
11514 cp_print_value_fields.
11515 * cp-valprint.c (cp_print_value_fields): New function.
11516 * c-valprint.c (c_value_print_struct): New function.
11517 (c_value_print_inner): Use c_value_print_struct.
11518 * c-lang.h (cp_print_value_fields): Declare.
11520 2020-03-13 Tom Tromey <tom@tromey.com>
11522 * c-valprint.c (c_value_print_array): New function.
11523 (c_value_print_inner): Use it.
11525 2020-03-13 Tom Tromey <tom@tromey.com>
11527 * c-valprint.c (c_value_print_memberptr): New function.
11528 (c_value_print_inner): Use it.
11530 2020-03-13 Tom Tromey <tom@tromey.com>
11532 * c-valprint.c (c_value_print_int): New function.
11533 (c_value_print_inner): Use it.
11535 2020-03-13 Tom Tromey <tom@tromey.com>
11537 * c-valprint.c (c_value_print_ptr): New function.
11538 (c_value_print_inner): Use it.
11540 2020-03-13 Tom Tromey <tom@tromey.com>
11542 * c-valprint.c (c_value_print_inner): Rewrite.
11544 2020-03-13 Tom Tromey <tom@tromey.com>
11546 * valprint.c (generic_value_print_complex): New function.
11547 (generic_value_print): Use it.
11549 2020-03-13 Tom Tromey <tom@tromey.com>
11551 * valprint.c (generic_val_print_float): Don't call
11552 val_print_scalar_formatted.
11553 (generic_val_print, generic_value_print): Update.
11555 2020-03-13 Tom Tromey <tom@tromey.com>
11557 * valprint.c (generic_value_print_char): New function
11558 (generic_value_print): Use it.
11560 2020-03-13 Tom Tromey <tom@tromey.com>
11562 * valprint.c (generic_value_print_int): New function.
11563 (generic_value_print): Use it.
11565 2020-03-13 Tom Tromey <tom@tromey.com>
11567 * valprint.c (generic_value_print_bool): New function.
11568 (generic_value_print): Use it.
11570 2020-03-13 Tom Tromey <tom@tromey.com>
11572 * valprint.c (generic_val_print_func): Simplify.
11573 (generic_val_print, generic_value_print): Update.
11575 2020-03-13 Tom Tromey <tom@tromey.com>
11577 * valprint.c (generic_val_print_flags): Remove.
11578 (generic_val_print, generic_value_print): Update.
11579 (val_print_type_code_flags): Add original_value parameter.
11581 2020-03-13 Tom Tromey <tom@tromey.com>
11583 * valprint.c (generic_val_print): Update.
11584 (generic_value_print): Update.
11585 * valprint.c (generic_val_print_enum): Don't call
11586 val_print_scalar_formatted.
11588 2020-03-13 Tom Tromey <tom@tromey.com>
11590 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11591 * valprint.c (generic_value_print_ptr): New function.
11593 2020-03-13 Tom Tromey <tom@tromey.com>
11595 * valprint.c (generic_value_print): Rewrite.
11597 2020-03-13 Tom Tromey <tom@tromey.com>
11599 * p-valprint.c (pascal_object_print_value_fields)
11600 (pascal_object_print_value): New functions.
11602 2020-03-13 Tom Tromey <tom@tromey.com>
11604 * p-valprint.c (pascal_value_print_inner): Rewrite.
11606 2020-03-13 Tom Tromey <tom@tromey.com>
11608 * f-valprint.c (f_value_print_innner): Rewrite.
11610 2020-03-13 Tom Tromey <tom@tromey.com>
11612 * m2-valprint.c (m2_print_unbounded_array): New overload.
11613 (m2_print_unbounded_array): Update.
11614 (m2_print_array_contents): Take a struct value.
11615 (m2_value_print_inner): Rewrite.
11617 2020-03-13 Tom Tromey <tom@tromey.com>
11619 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11620 (d_value_print_inner): New function.
11621 * d-lang.h (d_value_print_inner): Declare.
11622 * d-lang.c (d_language_defn): Use d_value_print_inner.
11624 2020-03-13 Tom Tromey <tom@tromey.com>
11626 * go-valprint.c (go_value_print_inner): New function.
11627 * go-lang.h (go_value_print_inner): Declare.
11628 * go-lang.c (go_language_defn): Use go_value_print_inner.
11630 2020-03-13 Tom Tromey <tom@tromey.com>
11632 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11634 (rust_val_print): Rewrite.
11635 (rust_value_print_inner): New function, from rust_val_print.
11636 (rust_language_defn): Use rust_value_print_inner.
11638 2020-03-13 Tom Tromey <tom@tromey.com>
11640 * ada-valprint.c (ada_value_print_inner): New function.
11641 * ada-lang.h (ada_value_print_inner): Declare.
11642 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11644 2020-03-13 Tom Tromey <tom@tromey.com>
11646 * f-valprint.c (f_value_print_innner): New function.
11647 * f-lang.h (f_value_print_innner): Declare.
11648 * f-lang.c (f_language_defn): Use f_value_print_innner.
11650 2020-03-13 Tom Tromey <tom@tromey.com>
11652 * p-valprint.c (pascal_value_print_inner): New function.
11653 * p-lang.h (pascal_value_print_inner): Declare.
11654 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11656 2020-03-13 Tom Tromey <tom@tromey.com>
11658 * m2-valprint.c (m2_value_print_inner): New function.
11659 * m2-lang.h (m2_value_print_inner): Declare.
11660 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11662 2020-03-13 Tom Tromey <tom@tromey.com>
11664 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11665 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11666 * c-valprint.c (c_value_print_inner): New function.
11667 * c-lang.h (c_value_print_inner): Declare.
11668 * c-lang.c (c_language_defn, cplus_language_defn)
11669 (asm_language_defn, minimal_language_defn): Use
11670 c_value_print_inner.
11672 2020-03-13 Tom Tromey <tom@tromey.com>
11674 * p-valprint.c (pascal_object_print_value_fields): Now static.
11675 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11677 2020-03-13 Tom Tromey <tom@tromey.com>
11679 * c-valprint.c (c_val_print_array): Simplify.
11681 2020-03-13 Tom Tromey <tom@tromey.com>
11683 * valprint.c (value_print_array_elements): New function.
11684 * valprint.h (value_print_array_elements): Declare.
11686 2020-03-13 Tom Tromey <tom@tromey.com>
11688 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11689 * mips-tdep.c (mips_print_register): Use
11690 value_print_scalar_formatted.
11692 2020-03-13 Tom Tromey <tom@tromey.com>
11694 * valprint.h (value_print_scalar_formatted): Declare.
11695 * valprint.c (value_print_scalar_formatted): New function.
11697 2020-03-13 Tom Tromey <tom@tromey.com>
11699 * valprint.h (generic_value_print): Declare.
11700 * valprint.c (generic_value_print): New function.
11702 2020-03-13 Tom Tromey <tom@tromey.com>
11704 * valprint.c (do_val_print): Call la_value_print_inner, if
11706 * rust-lang.c (rust_language_defn): Update.
11707 * p-lang.c (pascal_language_defn): Update.
11708 * opencl-lang.c (opencl_language_defn): Update.
11709 * objc-lang.c (objc_language_defn): Update.
11710 * m2-lang.c (m2_language_defn): Update.
11711 * language.h (struct language_defn) <la_value_print_inner>: New
11713 * language.c (unknown_language_defn, auto_language_defn): Update.
11714 * go-lang.c (go_language_defn): Update.
11715 * f-lang.c (f_language_defn): Update.
11716 * d-lang.c (d_language_defn): Update.
11717 * c-lang.c (c_language_defn, cplus_language_defn)
11718 (asm_language_defn, minimal_language_defn): Update.
11719 * ada-lang.c (ada_language_defn): Update.
11721 2020-03-13 Tom Tromey <tom@tromey.com>
11723 * c-valprint.c (c_value_print): Use common_val_print.
11725 2020-03-13 Tom Tromey <tom@tromey.com>
11727 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11729 2020-03-13 Tom Tromey <tom@tromey.com>
11731 * f-valprint.c (f77_print_array_1, f_val_print): Use
11734 2020-03-13 Tom Tromey <tom@tromey.com>
11736 * riscv-tdep.c (riscv_print_one_register_info): Use
11739 2020-03-13 Tom Tromey <tom@tromey.com>
11741 * mi/mi-main.c (output_register): Use common_val_print.
11743 2020-03-13 Tom Tromey <tom@tromey.com>
11745 * infcmd.c (default_print_one_register_info): Use
11748 2020-03-13 Tom Tromey <tom@tromey.com>
11750 * valprint.h (common_val_print_checked): Declare.
11751 * valprint.c (common_val_print_checked): New function.
11752 * stack.c (print_frame_arg): Use common_val_print_checked.
11754 2020-03-13 Tom Tromey <tom@tromey.com>
11756 * valprint.c (do_val_print): New function, from val_print.
11757 (val_print): Use do_val_print.
11758 (common_val_print): Use do_val_print.
11760 2020-03-13 Tom Tromey <tom@tromey.com>
11762 * valprint.c (value_print): Use scoped_value_mark.
11764 2020-03-13 Tom de Vries <tdevries@suse.de>
11767 * psymtab.c (partial_symtab::partial_symtab): Don't set
11768 globals_offset and statics_offset. Push element onto
11769 current_global_psymbols and current_static_psymbols stacks.
11770 (concat): New function.
11771 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11772 element from current_global_psymbols and current_static_psymbols
11773 stacks. Concat popped elements to global_psymbols and
11775 (add_psymbol_to_list): Use current_global_psymbols and
11776 current_static_psymbols stacks.
11777 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11778 current_static_psymbols fields.
11780 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11782 * corelow.c (sniff_core_bfd): Remove.
11783 (class core_target) <m_core_vec>: Remove.
11784 (core_target::core_target): Update.
11785 (core_file_fns): Remove.
11786 (deprecated_add_core_fns): Remove.
11787 (default_core_sniffer): Remove.
11788 (sniff_core_bfd): Remove.
11789 (default_check_format): Remove.
11790 (gdb_check_format): Remove.
11791 (core_target_open): Update.
11792 (core_target::get_core_register_section): Update.
11793 (get_core_registers_cb): Update.
11794 (core_target::fetch_registers): Update.
11795 * gdbcore.h (struct core_fns): Remove.
11796 (deprecated_add_core_fns): Remove.
11797 (default_core_sniffer): Remove.
11798 (default_check_format): Remove.
11800 2020-03-12 Tom Tromey <tom@tromey.com>
11802 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11804 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11806 2020-03-12 Tom Tromey <tom@tromey.com>
11808 * remote.c (remote_target::download_tracepoint)
11809 (remote_target::enable_tracepoint)
11810 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11811 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11814 2020-03-12 Tom Tromey <tom@tromey.com>
11816 * symfile-mem.c: Update CORE_ADDR size assert.
11818 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11820 * selftest.m4: Move to gdbsupport/.
11821 * acinclude.m4: Update path to selftest.m4.
11823 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11825 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11826 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11827 gdbarch-selfselftests.c and selftest-arch.c.
11828 (SUBDIR_UNITTESTS_OBS): Rename to...
11829 (SELFTESTS_OBS): ... this.
11830 (COMMON_SFILES): Remove disasm-selftests.c and
11831 gdbarch-selftests.c.
11832 * configure.ac: Don't add selftest-arch.{c,o} to
11834 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11835 preprocessor conditions.
11837 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11839 * configure.ac: Don't source bfd/development.sh.
11840 * selftest.m4: Modify comment.
11841 * configure: Re-generate.
11843 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11845 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11846 not "true" or "false".
11847 * configure: Re-generate.
11849 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11851 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11852 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11853 renamed to arm_nbsd_supply_gregset.
11854 (fetch_register): Update to call arm_nbsd_supply_gregset.
11855 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11856 (arm_netbsd_nat_target::fetch_registers): Update.
11857 (fetch_elfcore_registers): Removed.
11858 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11859 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11860 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11861 not require NetBSD system headers.
11862 (arm_nbsd_regset): New struct.
11863 (arm_nbsd_iterate_over_regset_sections): New function.
11864 (arm_netbsd_init_abi_common): Updated to call
11865 set_gdbarch_iterate_over_regset_sections.
11866 * arm-nbsd-tdep.h: New file.
11868 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11870 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11873 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11875 * configure: Re-generate.
11877 2020-03-11 Tom Tromey <tromey@adacore.com>
11879 * ada-typeprint.c (print_choices): Fix comment.
11881 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11883 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11884 previous item in the list, when the list has no items.
11886 2020-03-11 Tom de Vries <tdevries@suse.de>
11888 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11889 PROP_LOCLIST handling code.
11891 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11893 * buildsym-legacy.c (record_line): Pass extra parameter to
11895 * buildsym.c (buildsym_compunit::record_line): Take an extra
11896 parameter, reduce duplication in the line table, and record the
11897 is_stmt flag in the line table.
11898 * buildsym.h (buildsym_compunit::record_line): Add extra
11900 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11901 non-statement lines.
11902 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11903 this to the symtab builder.
11904 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11905 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11906 through to dwarf_record_line_1.
11907 * infrun.c (process_event_stop_test): When stepping, don't stop at
11908 a non-statement instruction, and only refresh the step info when
11909 we land in the middle of a line's range. Also add an extra
11911 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11913 * record-btrace.c (btrace_find_line_range): Only record lines
11914 marked as is-statement.
11915 * stack.c (frame_show_address): Show the frame address if we are
11916 in a non-statement sal.
11917 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11918 (maintenance_print_one_line_table): Print a header for the is_stmt
11919 column, and include is_stmt information in the output.
11920 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11921 preference to non-statements.
11922 (find_pcs_for_symtab_line): Prefer is-statement entries.
11923 (find_line_common): Likewise.
11924 * symtab.h (struct linetable_entry): Add is_stmt field.
11925 (struct symtab_and_line): Likewise.
11926 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11927 arranging the line table.
11929 2020-03-07 Tom de Vries <tdevries@suse.de>
11931 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11934 2020-03-07 Tom Tromey <tom@tromey.com>
11936 * valops.c (value_literal_complex): Remove obsolete comment.
11937 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11940 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11942 * infrun.h: Forward-declare thread_info.
11943 (set_step_info): Add thread_info parameter, add doc.
11944 * infrun.c (set_step_info): Add thread_info parameter, move doc
11946 * infrun.c (process_event_stop_test): Pass thread to
11947 set_step_info call.
11948 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11950 (prepare_one_step): Add thread_info parameter, pass it to
11951 set_step_frame and prepare_one_step (recursive) call.
11952 (step_1): Pass thread to prepare_one_step call.
11953 (step_command_fsm::should_stop): Pass thread to
11955 (until_next_fsm): Pass thread to set_step_frame call.
11956 (finish_command): Pass thread to set_step_info call.
11958 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11960 * windows-tdep.c (windows_solib_create_inferior_hook):
11961 Check if inferior is running.
11963 2020-03-06 Tom de Vries <tdevries@suse.de>
11965 * NEWS: Fix "the the".
11968 2020-03-06 Tom de Vries <tdevries@suse.de>
11970 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11972 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11974 * .dir-locals.el: Add a comment referencing the other copies of
11977 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11979 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11982 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11984 * .gitattributes: New file.
11986 2020-03-04 Tom Tromey <tom@tromey.com>
11988 * symmisc.c (print_symbol_bcache_statistics)
11989 (print_objfile_statistics): Update.
11990 * symfile.c (allocate_symtab): Use intern.
11991 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11992 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11993 macro_cache>: Remove.
11994 <string_cache>: New member.
11995 (struct objfile) <intern>: New methods.
11996 * elfread.c (elf_symtab_read): Use intern.
11997 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11998 (dwarf2_compute_name, dwarf2_physname)
11999 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12001 (guess_partial_die_structure_name): Update.
12002 (partial_die_info::fixup): Intern name.
12003 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12005 (dwarf2_name): Intern name. Update.
12006 * buildsym.c (buildsym_compunit::get_macro_table): Use
12009 2020-03-04 Tom Tromey <tom@tromey.com>
12011 * jit.c (bfd_open_from_target_memory): Make "target" const.
12012 * corefile.c (gnutarget): Now const.
12013 * gdbcore.h (gnutarget): Now const.
12015 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12017 * NEWS: Mention support for WOW64 processes.
12018 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12019 (amd64_windows_segment_register_p): Remove static.
12020 (_initialize_amd64_windows_nat): Update.
12021 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12022 * i386-windows-nat.c (context_offset): Update.
12023 (i386_mappings): Rename and remove static.
12024 (i386_windows_segment_register_p): Remove static.
12025 (_initialize_i386_windows_nat): Update.
12026 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12027 (STATUS_WX86_SINGLE_STEP): New macro.
12028 (EnumProcessModulesEx): New macro.
12029 (Wow64SuspendThread): New macro.
12030 (Wow64GetThreadContext): New macro.
12031 (Wow64SetThreadContext): New macro.
12032 (Wow64GetThreadSelectorEntry): New macro.
12033 (windows_set_context_register_offsets): Add static.
12034 (windows_set_segment_register_p): Likewise.
12035 (windows_add_thread): Adapt for WOW64 processes.
12036 (windows_fetch_one_register): Likewise.
12037 (windows_nat_target::fetch_registers): Likewise.
12038 (windows_store_one_register): Likewise.
12039 (display_selector): Likewise.
12040 (display_selectors): Likewise.
12041 (handle_exception): Likewise.
12042 (windows_continue): Likewise.
12043 (windows_nat_target::resume): Likewise.
12044 (windows_add_all_dlls): Likewise.
12045 (do_initial_windows_stuff): Likewise.
12046 (windows_nat_target::attach): Likewise.
12047 (windows_get_exec_module_filename): Likewise.
12048 (windows_nat_target::create_inferior): Likewise.
12049 (windows_xfer_siginfo): Likewise.
12050 (_initialize_loadable): Initialize Wow64SuspendThread,
12051 Wow64GetThreadContext, Wow64SetThreadContext,
12052 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12053 * windows-nat.h (windows_set_context_register_offsets):
12054 Remove declaration.
12055 (windows_set_segment_register_p): Likewise.
12056 (i386_windows_segment_register_p): Add declaration.
12057 (amd64_windows_segment_register_p): Likewise.
12059 2020-03-04 Luis Machado <luis.machado@linaro.org>
12061 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12062 in "info registers" for AArch64/ARM.
12064 The change caused "info registers" to not print GPR's.
12068 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12070 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12071 when reg->group is empty and reggroup is not.
12073 2020-03-03 Tom Tromey <tromey@adacore.com>
12075 * dwarf2/frame.c (struct dwarf2_frame_cache)
12076 <checked_tailcall_bottom, entry_cfa_sp_offset,
12077 entry_cfa_sp_offset_p>: Remove members.
12078 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12079 (dwarf2_frame_prev_register): Don't call
12080 dwarf2_tailcall_sniffer_first.
12081 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12082 * frame-unwind.c (add_unwinder): New fuction.
12083 (frame_unwind_init): Use it. Add tailcall unwinder.
12085 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12086 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12088 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12089 value should be printed as true.
12091 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12093 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12094 (windows_init_abi): Set and use windows_so_ops.
12096 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12098 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12099 when verifying if dealing with a convenience variable.
12101 2020-03-03 Luis Machado <luis.machado@linaro.org>
12103 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12105 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12107 * infrun.c (gdbarch_supports_displaced_stepping): New.
12108 (use_displaced_stepping): Break up conditions in smaller pieces.
12109 Use gdbarch_supports_displaced_stepping.
12110 (displaced_step_prepare_throw): Use
12111 gdbarch_supports_displaced_stepping.
12113 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12115 * NEWS: Mention new behaviour of the history filename.
12116 * top.c (write_history_p): Add comment.
12117 (show_write_history_p): Add header comment, give a different
12118 message when history writing is on, but the history filename is
12120 (history_filename): Add comment.
12121 (history_filename_empty): New function.
12122 (show_history_filename): Add header comment, give a different
12123 message when the filename is empty.
12124 (init_history): Compare history_filename against nullptr, and only
12125 read history if the filename is not empty.
12126 (set_history_filename): Add header comment, and only make
12127 non-empty filenames absolute.
12128 (init_main): Make the filename argument to 'set history filename'
12131 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12133 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12134 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12135 (fetch_fp_register): Update.
12136 (fetch_fp_regs): Update.
12137 (store_fp_register): Update.
12138 (store_fp_regs): Update.
12139 (arm_netbsd_nat_target::read_description): New function.
12140 (fetch_elfcore_registers): Update.
12142 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12144 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12145 general_thread if the stop reply is missing a thread-id.
12146 (remote_target::process_stop_reply): Use the first non-exited
12147 thread if the target didn't pass a thread-id.
12148 * infrun.c (do_target_wait): Move call to
12149 switch_to_inferior_no_thread to ....
12150 (do_target_wait_1): ... here.
12152 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12154 * debuginfod-support.c: Include defs.h first.
12156 2020-02-28 Tom de Vries <tdevries@suse.de>
12158 * symfile.c (set_initial_language): Use default language for lookup.
12160 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12162 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12163 reader variable, pass `this` to read_cutu_die_from_dwo.
12165 2020-02-27 Aaron Merey <amerey@redhat.com>
12167 * source.c (open_source_file): Check for nullptr when computing
12170 2020-02-27 Tom Tromey <tromey@adacore.com>
12172 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12174 (dwarf2_add_field): Don't update nfields.
12175 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12177 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12179 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12182 2020-02-26 Tom Tromey <tom@tromey.com>
12184 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12185 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12186 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12187 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12190 2020-02-26 Tom Tromey <tom@tromey.com>
12192 * dwarf2/index-write.c (psym_index_map): Change type.
12193 (add_address_entry_worker, write_one_signatured_type)
12194 (recursively_count_psymbols, recursively_write_psymbols)
12195 (class debug_names, psyms_seen_size, write_gdbindex)
12196 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12198 2020-02-26 Aaron Merey <amerey@redhat.com>
12200 * Makefile.in: Handle optional debuginfod support.
12202 * README: Add --with-debuginfod summary.
12203 * config.in: Regenerate.
12204 * configure: Regenerate.
12205 * configure.ac: Handle optional debuginfod support.
12206 * debuginfod-support.c: debuginfod helper functions.
12207 * debuginfod-support.h: Ditto.
12208 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12210 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12211 when a dwz file cannot be found.
12212 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12213 debuginfo file cannot be found.
12214 * source.c (open_source_file): Query debuginfod servers when a
12215 source file cannot be found.
12216 * top.c (print_gdb_configuration): Include
12217 --{with,without}-debuginfod in the output.
12219 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12221 * thread.c (thr_try_catch_cmd): Print thread name.
12223 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12225 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12226 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12227 dwarf2_fetch_die_type_sect_off): Move to...
12228 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12229 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12230 dwarf2_fetch_die_type_sect_off): ... here.
12231 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12232 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12233 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12235 2020-02-26 Tom de Vries <tdevries@suse.de>
12238 * symfile.c (set_initial_language): Exit-early if
12239 language_mode == language_mode_manual.
12241 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12243 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12244 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12245 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12247 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12249 * gdbtypes.c (create_array_type_with_stride): Handle negative
12251 * valarith.c (value_subscripted_rvalue): Likewise.
12253 2020-02-25 Luis Machado <luis.machado@linaro.org>
12255 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12257 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12259 * loc.h (dwarf2_get_die_type): Move to...
12260 * read.h (dwarf2_get_die_type): ... here.
12261 * read.c (dwarf2_get_die_type): Move doc to header.
12263 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12265 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12266 'gnulib/Makefile.in' to the list.
12268 2020-02-24 Tom Tromey <tom@tromey.com>
12270 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12272 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12275 2020-02-24 Tom Tromey <tom@tromey.com>
12277 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12279 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12280 (dw2_do_instantiate_symtab, dw2_get_file_names)
12281 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12283 2020-02-24 Tom Tromey <tom@tromey.com>
12285 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12286 make_scoped_restore.
12287 (dwarf2_psymtab::read_symtab): Don't clear
12288 reading_partial_symbols.
12290 2020-02-24 Tom de Vries <tdevries@suse.de>
12293 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12295 2020-02-24 Tom de Vries <tdevries@suse.de>
12297 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12298 commands layout next/prev/regs.
12300 2020-02-22 Tom Tromey <tom@tromey.com>
12302 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12303 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12305 2020-02-22 Tom Tromey <tom@tromey.com>
12307 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12309 2020-02-22 Tom Tromey <tom@tromey.com>
12311 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12312 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12313 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12314 * tui/tui.c (_initialize_tui): Add usage text.
12316 2020-02-22 Tom Tromey <tom@tromey.com>
12318 * tui/tui-win.c (tui_set_focus_command)
12319 (tui_set_win_height_command): Use error_no_arg.
12320 (_initialize_tui_win): Update help text.
12321 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12323 2020-02-22 Tom Tromey <tom@tromey.com>
12325 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12326 * tui/tui-disasm.h (struct tui_disasm_window)
12327 <display_start_addr>: Declare.
12328 * tui/tui-source.h (struct tui_source_window)
12329 <display_start_addr>: Declare.
12330 * tui/tui-winsource.h (struct tui_source_window_base)
12331 <show_source_line, display_start_addr>: New methods.
12332 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12333 Rename and move to protected section.
12334 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12335 (tui_source_window_base::do_erase_source_content): Update.
12336 (tui_source_window_base::show_source_line): Now a method.
12337 (tui_source_window_base::show_source_content)
12338 (tui_source_window_base::tui_source_window_base)
12339 (tui_source_window_base::rerender)
12340 (tui_source_window_base::refill)
12341 (tui_source_window_base::do_scroll_horizontal)
12342 (tui_source_window_base::set_is_exec_point_at)
12343 (tui_source_window_base::update_breakpoint_info)
12344 (tui_source_window_base::update_exec_info): Update.
12345 * tui/tui-source.c (tui_source_window::set_contents)
12346 (tui_source_window::showing_source_p)
12347 (tui_source_window::do_scroll_vertical)
12348 (tui_source_window::location_matches_p)
12349 (tui_source_window::line_is_displayed): Update.
12350 (tui_source_window::display_start_addr): New method.
12351 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12352 (tui_disasm_window::do_scroll_vertical)
12353 (tui_disasm_window::location_matches_p): Update.
12354 (tui_disasm_window::display_start_addr): New method.
12356 2020-02-22 Tom Tromey <tom@tromey.com>
12358 * NEWS: Add entry for gdb.register_window_type.
12359 * tui/tui-layout.h (window_factory): New typedef.
12360 (tui_register_window): Declare.
12361 * tui/tui-layout.c (saved_tui_windows): New global.
12362 (tui_apply_current_layout): Use it.
12363 (tui_register_window): New function.
12364 * python/python.c (do_start_initialization): Call
12365 gdbpy_initialize_tui.
12366 (python_GdbMethods): Add "register_window_type" function.
12367 * python/python-internal.h (gdbpy_register_tui_window)
12368 (gdbpy_initialize_tui): Declare.
12369 * python/py-tui.c: New file.
12370 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12372 2020-02-22 Tom Tromey <tom@tromey.com>
12374 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12376 2020-02-22 Tom Tromey <tom@tromey.com>
12378 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12379 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12380 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12381 (tui_set_win_focus_to): Move from tui-win.c.
12383 2020-02-22 Tom Tromey <tom@tromey.com>
12385 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12387 (known_window_types): New global.
12388 (tui_get_window_by_name): Reimplement.
12389 (initialize_known_windows): New function.
12390 (validate_window_name): Rewrite.
12391 (_initialize_tui_layout): Call initialize_known_windows.
12393 2020-02-22 Tom Tromey <tom@tromey.com>
12395 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12397 * tui/tui-winsource.h (struct tui_source_window_base)
12398 <tui_source_window_base>: Remove parameter.
12399 * tui/tui-winsource.c
12400 (tui_source_window_base::tui_source_window_base): Remove
12402 (tui_source_window_base::refill): Update.
12403 * tui/tui-stack.h (struct tui_locator_window)
12404 <tui_locator_window>: Update.
12405 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12406 Default the constructor.
12407 * tui/tui-regs.h (struct tui_data_item_window)
12408 <tui_data_item_window>: Default the constructor.
12409 (struct tui_data_window) <tui_data_window>: Likewise.
12410 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12411 Default the constructor.
12412 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12413 Default the constructor.
12415 (struct tui_win_info) <tui_win_info>: Default the constructor.
12416 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12417 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12418 Default the constructor.
12420 2020-02-22 Tom Tromey <tom@tromey.com>
12422 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12423 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12424 * tui/tui-win.c (tui_resize_all): Don't call
12425 tui_delete_invisible_windows.
12426 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12428 (tui_set_layout): Update.
12429 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12430 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12431 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12433 2020-02-22 Tom Tromey <tom@tromey.com>
12435 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12438 2020-02-22 Tom Tromey <tom@tromey.com>
12440 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12442 2020-02-22 Tom Tromey <tom@tromey.com>
12444 * tui/tui-winsource.h (struct tui_source_window_iterator)
12445 <inner_iterator>: New etytypedef.
12446 <tui_source_window_iterator>: Take "end" parameter.
12447 <tui_source_window_iterator>: Take iterator.
12448 <operator*, advance>: Update.
12449 <m_iter>: Change type.
12450 <m_end>: New field.
12451 (struct tui_source_windows) <begin, end>: Update.
12452 * tui/tui-layout.c (tui_windows): New global.
12453 (tui_apply_current_layout): Clear tui_windows.
12454 (tui_layout_window::apply): Update tui_windows.
12455 * tui/tui-data.h (tui_windows): Declare.
12456 (all_tui_windows): Now inline function.
12457 (class tui_window_iterator, struct all_tui_windows): Remove.
12459 2020-02-22 Tom Tromey <tom@tromey.com>
12462 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12463 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12465 (class tui_layout_window) <get_sizes>: Likewise.
12466 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12468 <get_sizes>: Add "height" argument.
12469 <m_vertical>: New field.
12470 * tui/tui-layout.c (tui_layout_split::clone): Update.
12471 (tui_layout_split::get_sizes): Add "height" argument.
12472 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12473 (tui_new_layout_command): Parse "-horizontal".
12474 (_initialize_tui_layout): Update help string.
12475 (tui_layout_split::specification): Add "-horizontal" when needed.
12476 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12478 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12481 2020-02-22 Tom Tromey <tom@tromey.com>
12483 * tui/tui-layout.h (enum tui_adjust_result): New.
12484 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12485 (class tui_layout_window) <adjust_size>: Return
12486 tui_adjust_result. Rewrite.
12487 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12488 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12490 2020-02-22 Tom Tromey <tom@tromey.com>
12492 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12493 parameter and return types.
12494 (class tui_layout_base) <specification>: Add "depth".
12495 (class tui_layout_window) <specification>: Add "depth".
12496 (class tui_layout_split) <specification>: Add "depth".
12497 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12499 (tui_new_layout_command): Parse sub-layouts.
12500 (_initialize_tui_layout): Update help string.
12501 (tui_layout_window::specification): Add "depth".
12502 (add_layout_command): Update.
12504 2020-02-22 Tom Tromey <tom@tromey.com>
12506 * NEWS: Add "tui new-layout" item.
12507 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12508 Add new-layout command to help text.
12509 (validate_window_name): New function.
12510 (tui_new_layout_command): New function.
12511 (_initialize_tui_layout): Register "new-layout".
12512 (tui_layout_window::specification): New method.
12513 (tui_layout_window::specification): New method.
12514 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12516 (class tui_layout_window) <specification>: New method.
12517 (class tui_layout_split) <specification>: New method.
12519 2020-02-22 Tom Tromey <tom@tromey.com>
12521 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12522 * tui/tui-win.c (window_name_completer): Update comment.
12523 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12525 (class tui_layout_window) <replace_window>: Likewise.
12526 (class tui_layout_split) <replace_window>: Likewise.
12527 (tui_set_layout): Don't declare.
12528 (tui_set_initial_layout): Declare function.
12529 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12530 (asm_regs_layout): New globals.
12531 (tui_current_layout, show_layout): Remove.
12532 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12533 (find_layout, tui_apply_layout): New function.
12534 (layout_completer): Remove.
12535 (tui_next_layout): Reimplement.
12536 (tui_next_layout_command): New function.
12537 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12538 (tui_regs_layout): Reimplement.
12539 (tui_regs_layout_command): New function.
12540 (extract_display_start_addr): Rewrite.
12541 (next_layout, prev_layout): Remove.
12542 (tui_layout_window::replace_window): New method.
12543 (tui_layout_split::replace_window): New method.
12544 (destroy_layout): New function.
12545 (layout_list): New global.
12546 (add_layout_command): New function.
12547 (initialize_layouts): Update.
12548 (tui_layout_command): New function.
12549 (_initialize_tui_layout): Install "layout" commands.
12550 * tui/tui-data.h (enum tui_layout_type): Remove.
12551 (tui_current_layout): Don't declare.
12553 2020-02-22 Tom Tromey <tom@tromey.com>
12555 * tui/tui-regs.c (tui_reg_layout): Remove.
12556 (tui_reg_command): Use tui_regs_layout.
12557 * tui/tui-layout.h (tui_reg_command): Declare.
12558 * tui/tui-layout.c (tui_reg_command): New function.
12560 2020-02-22 Tom Tromey <tom@tromey.com>
12562 * tui/tui.c (tui_rl_delete_other_windows): Call
12563 tui_remove_some_windows.
12564 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12566 (class tui_layout_window) <remove_windows>: New method.
12567 (class tui_layout_split) <remove_windows>: Declare.
12568 (tui_remove_some_windows): Declare.
12569 * tui/tui-layout.c (tui_remove_some_windows): New function.
12570 (tui_layout_split::remove_windows): New method.
12572 2020-02-22 Tom Tromey <tom@tromey.com>
12574 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12575 * tui/tui-layout.h (tui_next_layout): Declare.
12576 * tui/tui-layout.c (tui_next_layout): New function.
12578 2020-02-22 Tom Tromey <tom@tromey.com>
12580 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12581 correct coordinates.
12583 2020-02-22 Tom Tromey <tom@tromey.com>
12585 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12586 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12589 2020-02-22 Tom Tromey <tom@tromey.com>
12591 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12592 TUI_DISASM_WIN, not tui_win_list.
12594 2020-02-22 Tom Tromey <tom@tromey.com>
12596 * valprint.c (generic_val_print_enum_1)
12597 (val_print_type_code_flags): Style member names.
12598 * rust-lang.c (val_print_struct, rust_print_enum)
12599 (rust_print_struct_def, rust_internal_print_type): Style member
12601 * p-valprint.c (pascal_object_print_value_fields): Style member
12602 names. Only call fprintf_symbol_filtered for static members.
12603 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12604 * f-valprint.c (f_val_print): Style member names.
12605 * f-typeprint.c (f_type_print_base): Style member names.
12606 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12607 call fprintf_symbol_filtered for static members.
12608 (cp_print_class_member): Style member names.
12609 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12611 * ada-valprint.c (ada_print_scalar): Style enum names.
12612 (ada_val_print_enum): Likewise.
12613 * ada-typeprint.c (print_enum_type): Style enum names.
12615 2020-02-21 Tom Tromey <tom@tromey.com>
12617 * psympriv.h (struct partial_symtab): Update comment.
12619 2020-02-21 Tom Tromey <tromey@adacore.com>
12621 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12624 2020-02-21 Tom de Vries <tdevries@suse.de>
12627 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12628 if dependencies[i]->user != NULL.
12630 2020-02-21 Ali Tamur <tamur@google.com>
12632 * dwarf2/read.c (dwarf2_name): Add null check.
12634 2020-02-20 Tom Tromey <tom@tromey.com>
12636 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12637 ">=", in binary search.
12638 (dwarf2_find_containing_comp_unit): New overload.
12639 (run_test): New self-test.
12640 (_initialize_dwarf2_read): Register new test.
12642 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12644 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12645 * riscv-tdep.h: Likewise.
12646 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12648 * features/riscv/64bit-csr.xml: Regenerated.
12650 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12651 Tom Tromey <tom@tromey.com>
12653 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12654 of 'fputc_unfiltered'.
12655 (putchar_unfiltered): Call 'fputc_unfiltered'.
12656 (fputc_unfiltered): Call 'fputs_unfiltered'.
12658 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12660 * config.in: Regenerate.
12661 * configure: Regenerate.
12662 * configure.ac: Add --with-python-libdir option.
12663 * main.c: Use WITH_PYTHON_LIBDIR.
12665 2020-02-19 Tom Tromey <tom@tromey.com>
12667 * symtab.c (general_symbol_info::compute_and_set_names): Use
12668 obstack_strndup. Simplify call to symbol_set_demangled_name.
12670 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12672 * dwarf2/read.c (allocate_signatured_type_table,
12673 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12674 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12675 Remove objfile parameter, update all callers.
12677 2020-02-19 Doug Evans <dje@google.com>
12680 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12681 rust_enum_variant calculation.
12683 2020-02-19 Tom Tromey <tromey@adacore.com>
12685 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12687 2020-02-19 Tom Tromey <tromey@adacore.com>
12689 * ada-lang.c (cache_symbol): Use obstack_strdup.
12691 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12693 * configure: Regenerate.
12695 2020-02-19 Tom Tromey <tromey@adacore.com>
12697 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12700 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12702 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12704 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12706 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12707 if GDBSERVER is not defined.
12708 (riscv_tdesc_cache): Likewise, also store const target_desc.
12709 (STATIC_IN_GDB): Define.
12710 (riscv_create_target_description): Update declaration with
12712 (riscv_lookup_target_description): New function, only define if
12713 GDBSERVER is not defined.
12714 * arch/riscv.h (riscv_create_target_description): Declare only
12715 when GDBSERVER is defined.
12716 (riscv_lookup_target_description): New declaration when GDBSERVER
12718 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12719 (riscv_linux_read_features): ...this, and return
12720 riscv_gdbarch_features instead of target_desc.
12721 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12722 (riscv_linux_read_description): Rename to...
12723 (riscv_linux_read_features): ...this.
12724 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12725 Update to use riscv_gdbarch_features and
12726 riscv_lookup_target_description.
12727 * riscv-tdep.c (riscv_find_default_target_description): Use
12728 riscv_lookup_target_description instead of
12729 riscv_create_target_description.
12731 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12733 * valprint.c (generic_val_print_enum_1): When printing a flag
12734 enum with value 0 and there is no enumerator with value 0, print
12735 just "0" instead of "(unknown: 0x0)".
12737 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12739 * valprint.c (generic_val_print_enum_1): Print unknown part of
12742 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12744 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12745 flag enums to contain duplicate enumerators.
12746 * valprint.c (generic_val_print_enum_1): Update comment.
12748 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12750 * dwarf2/read.c: Include "count-one-bits.h".
12751 (update_enumeration_type_from_children): If an enumerator has
12752 multiple bits set, don't treat the enumeration as a "flag enum".
12753 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12754 of flag enums have 0 or 1 bit set.
12756 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12758 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12760 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12761 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12762 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12763 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12764 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12766 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12768 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12770 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12772 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12773 displaced_step_closure_up.
12774 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12775 (struct displaced_step_closure_up):
12776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12777 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12778 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12780 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12781 * gdbarch.c, gdbarch.h: Re-generate.
12782 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12783 displaced_step_closure_up.
12784 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12785 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12786 * infrun.h (displaced_step_closure_up): New type alias.
12787 (struct displaced_step_inferior_state) <step_closure>: Change
12788 type to displaced_step_closure_up.
12789 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12790 displaced_step_closure_up.
12791 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12793 2020-02-14 Tom Tromey <tom@tromey.com>
12795 * minidebug.c (gnu_debug_key): New global.
12796 (find_separate_debug_file_in_section): Use it.
12798 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12800 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12802 * gdbarch.c: Re-generate.
12803 * gdbarch.h: Re-generate.
12804 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12806 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12807 type to std::unique_ptr.
12808 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12809 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12810 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12811 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12812 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12813 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12814 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12815 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12816 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12818 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12820 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12822 (displaced_step_clear): Rename to...
12823 (displaced_step_reset): ... this. Just call displaced->reset ().
12824 (displaced_step_clear_cleanup): Rename to...
12825 (displaced_step_reset_cleanup): ... this.
12826 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12827 (displaced_step_fixup): Likewise.
12828 (resume_1): Likewise.
12829 (handle_inferior_event): Restore child's memory before calling
12830 displaced_step_fixup on the parent.
12831 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12832 to std::unique_ptr.
12833 <step_closure>: Change type to std::unique_ptr.
12835 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12837 * arm-tdep.c: Include count-one-bits.h.
12838 (cleanup_block_store_pc): Use count_one_bits.
12839 (cleanup_block_load_pc): Use count_one_bits.
12840 (arm_copy_block_xfer): Use count_one_bits.
12841 (thumb2_copy_block_xfer): Use count_one_bits.
12842 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12843 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12844 (thumb_get_next_pcs_raw): Use count_one_bits.
12845 (arm_get_next_pcs_raw): Use count_one_bits_l.
12846 * arch/arm.c (bitcount): Remove.
12847 * arch/arm.h (bitcount): Remove.
12849 2020-02-14 Tom Tromey <tromey@adacore.com>
12851 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12853 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12854 * dwarf2/loc.c (call_site_find_chain_1): Return
12855 unique_xmalloc_ptr.
12856 (call_site_find_chain): Likewise.
12858 2020-02-14 Richard Biener <rguenther@suse.de>
12860 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12861 on expression with division operators.
12863 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12865 * MAINTAINERS (Write After Approval): Adding myself.
12867 2020-02-12 Tom Tromey <tom@tromey.com>
12869 * event-loop.c (event_data, gdb_event, event_handler_func):
12872 2020-02-12 Tom Tromey <tom@tromey.com>
12874 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12875 (dwarf2_frame_objfile_data): Add comment.
12876 (find_comp_unit, set_comp_unit): New functions.
12877 (dwarf2_frame_find_fde): Use find_comp_unit.
12878 (dwarf2_build_frame_info): Use set_comp_unit.
12880 2020-02-12 Tom Tromey <tom@tromey.com>
12882 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12883 (comp_unit): Don't initialize objfile.
12884 (execute_cfa_program): Add text_offset parameter.
12885 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12886 (dwarf2_frame_cache): Update.
12887 (dwarf2_build_frame_info): Don't set "objfile" member.
12889 2020-02-12 Tom Tromey <tom@tromey.com>
12891 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12892 (decode_frame_entry): Likewise.
12893 (dwarf2_build_frame_info): Update.
12895 2020-02-12 Tom Tromey <tom@tromey.com>
12897 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12898 (decode_frame_entry_1): Use the comp_unit obstack.
12900 2020-02-12 Tom Tromey <tom@tromey.com>
12902 * dwarf2/frame.c (struct comp_unit): Add initializers and
12904 (dwarf2_frame_objfile_data): Store a comp_unit.
12905 (dwarf2_frame_find_fde): Update.
12906 (dwarf2_build_frame_info): Use "new".
12908 2020-02-12 Tom Tromey <tom@tromey.com>
12910 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12911 (dwarf2_fde_table): Typedef for std::vector.
12912 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12913 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12914 (decode_frame_entry): Update.
12915 (dwarf2_build_frame_info): Use "new".
12917 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12919 * arm-tdep.c (arm_gdbarch_init): Update.
12920 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12921 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12922 have_neon, is_m>: Change to bool.
12924 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12926 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12928 2020-02-12 Tom Tromey <tom@tromey.com>
12930 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12932 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12934 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12935 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12937 2020-02-11 Tom Tromey <tom@tromey.com>
12939 * psymtab.h: Update comment.
12941 2020-02-11 Tom Tromey <tom@tromey.com>
12943 * gdb_obstack.h (struct auto_obstack): Use
12944 DISABLE_COPY_AND_ASSIGN.
12946 2020-02-11 Tom Tromey <tom@tromey.com>
12948 * dwarf2/frame.h (struct objfile): Don't forward declare.
12950 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12952 * cris-tdep.c (cris_supply_gregset): Change signature to match
12953 what struct regset expects.
12954 (cris_regset): New struct.
12955 (fetch_core_registers): Remove.
12956 (cris_iterate_over_regset_sections): New function.
12957 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12958 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12960 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12962 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12965 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12967 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12969 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12971 * configure: Re-generate.
12973 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12975 * configure: Re-generate.
12977 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12979 * acinclude: Update warning.m4 path.
12980 * warning.m4: Move to gdbsupport.
12982 2020-02-11 Tom Tromey <tromey@adacore.com>
12984 * remote.c (remote_console_output): Update.
12985 * printcmd.c (printf_command): Update.
12986 * event-loop.c (gdb_wait_for_event): Update.
12987 * linux-nat.c (sigchld_handler): Update.
12988 * remote-sim.c (gdb_os_write_stdout): Update.
12989 (gdb_os_flush_stdout): Update.
12990 (gdb_os_flush_stderr): Update.
12991 (gdb_os_write_stderr): Update.
12992 * exceptions.c (print_exception): Update.
12993 * remote-fileio.c (remote_fileio_func_read): Update.
12994 (remote_fileio_func_write): Update.
12995 * tui/tui.c (tui_enable): Update.
12996 * tui/tui-interp.c (tui_interp::init): Update.
12997 * utils.c (init_page_info): Update.
12998 (putchar_unfiltered, fputc_unfiltered): Update.
12999 (gdb_flush): Update.
13000 (emit_style_escape): Update.
13001 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13002 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13003 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13004 (stderr_file::write): Update.
13005 (stderr_file::puts): Update.
13006 * ui-file.h (ui_file_isatty, ui_file_write)
13007 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13008 (ui_file_puts): Don't declare.
13010 2020-02-10 Tom de Vries <tdevries@suse.de>
13012 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13013 sentinel to char *.
13015 2020-02-09 Tom de Vries <tdevries@suse.de>
13017 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13018 filename if it matches "<artificial>".
13020 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13022 * windows-tdep.c (struct enum_value_name): New struct.
13023 (create_enum): New function.
13024 (windows_get_siginfo_type): Create and use enum types.
13026 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13028 * NEWS: Mention $_siginfo support for Windows.
13029 * windows-nat.c (handle_exception): Set siginfo_er.
13030 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13031 (windows_xfer_siginfo): New function.
13032 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13033 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13034 (init_windows_gdbarch_data): New function.
13035 (get_windows_gdbarch_data): New function.
13036 (windows_get_siginfo_type): New function.
13037 (windows_init_abi): Register windows_get_siginfo_type.
13038 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13040 2020-02-08 Tom Tromey <tom@tromey.com>
13042 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13043 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13044 <keep>: Declare method.
13045 <m_keep>: Remove member.
13046 <~cutu_reader>: Remove.
13047 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13048 (cutu_reader::cutu_reader): Update.
13049 (cutu_reader::keep): Rename from ~cutu_reader.
13050 (process_psymtab_comp_unit, build_type_psymtabs_1)
13051 (process_skeletonless_type_unit, load_partial_comp_unit)
13052 (load_full_comp_unit, dwarf2_read_addr_index)
13053 (read_signatured_type): Update.
13055 2020-02-08 Tom Tromey <tom@tromey.com>
13057 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13058 "want_partial_unit" parameter.
13059 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13060 Inline check for DW_TAG_partial_unit.
13061 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13063 2020-02-08 Tom Tromey <tom@tromey.com>
13065 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13067 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13070 2020-02-08 Tom Tromey <tom@tromey.com>
13072 * dwarf2/read.c (read_address): Move to comp-unit.c.
13073 (dwarf2_rnglists_process, dwarf2_ranges_process)
13074 (read_attribute_value, dwarf_decode_lines_1)
13075 (var_decode_location, decode_locdesc): Update.
13076 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13077 read.c. Remove "cu" parameter.
13078 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13081 2020-02-08 Tom Tromey <tom@tromey.com>
13083 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13084 (read_indirect_line_string): Update.
13085 * dwarf2/comp-unit.c (read_offset): Remove.
13086 (read_comp_unit_head): Update.
13087 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13089 (read_offset): Don't declare.
13091 2020-02-08 Tom Tromey <tom@tromey.com>
13093 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13094 * dwarf2/read.c (struct comp_unit_head): Move to
13095 dwarf2/comp-unit.h.
13096 (enum class rcuh_kind): Move to comp-unit.h.
13097 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13098 (read_comp_unit_head, error_check_comp_unit_head)
13099 (read_and_check_comp_unit_head): Move to comp-unit.c.
13100 (read_offset, dwarf_unit_type_name): Likewise.
13101 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13102 (cutu_reader::cutu_reader, read_call_site_scope)
13103 (find_partial_die, follow_die_offset): Update.
13104 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13106 2020-02-08 Tom Tromey <tom@tromey.com>
13108 * dwarf2/read.c (read_offset_1): Move to leb.c.
13109 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13110 (dwarf_decode_macro_bytes): Update.
13111 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13112 * dwarf2/leb.h (read_offset): Declare.
13114 2020-02-08 Tom Tromey <tom@tromey.com>
13116 * dwarf2/read.c (dwarf2_section_size): Remove.
13117 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13119 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13121 2020-02-08 Tom Tromey <tom@tromey.com>
13123 * dwarf2/read.c (read_initial_length): Move to leb.c.
13124 * dwarf2/leb.h (read_initial_length): Declare.
13125 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13126 handle_nonstd parameter.
13127 * dwarf2/frame.c (read_initial_length): Remove.
13128 (decode_frame_entry_1): Update.
13130 2020-02-08 Tom Tromey <tom@tromey.com>
13132 * dwarf2/loc.c (dwarf2_find_location_expression)
13133 (dwarf_evaluate_loc_desc::get_tls_address)
13134 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13135 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13136 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13137 (dwarf2_compile_property_to_c)
13138 (dwarf2_loc_desc_get_symbol_read_needs)
13139 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13140 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13141 (loclist_describe_location, loclist_tracepoint_var_ref)
13142 (loclist_generate_c_location): Update.
13143 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13144 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13145 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13146 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13147 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13148 (dwarf2_per_cu_data::addr_size)
13149 (dwarf2_per_cu_data::ref_addr_size)
13150 (dwarf2_per_cu_data::text_offset)
13151 (dwarf2_per_cu_data::addr_type): Now methods.
13152 (per_cu_header_read_in): Make per_cu "const".
13153 (dwarf2_version): Remove.
13154 (dwarf2_per_cu_data::int_type): Now a method.
13155 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13156 (set_die_type, read_array_type, read_subrange_index_type)
13157 (read_tag_string_type, read_subrange_type): Update.
13158 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13159 offset_size, ref_addr_size, text_offset, addr_type, version,
13160 objfile, int_type, addr_sized_int_type>: Declare methods.
13162 2020-02-08 Tom Tromey <tom@tromey.com>
13164 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13167 2020-02-08 Tom Tromey <tom@tromey.com>
13169 * dwarf2/read.h (dwarf_line_debug): Declare.
13170 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13171 * dwarf2/read.c: Move line_header code to new files.
13172 (dwarf_line_debug): No longer static.
13173 * dwarf2/line-header.c: New file.
13174 * dwarf2/line-header.h: New file.
13176 2020-02-08 Tom Tromey <tom@tromey.com>
13178 * dwarf2/read.c (struct line_header) <file_full_name,
13179 file_file_name>: Return unique_xmalloc_ptr.
13180 (line_header::file_file_name): Update.
13181 (line_header::file_full_name): Update.
13182 (dw2_get_file_names_reader): Update.
13183 (macro_start_file): Update.
13185 2020-02-08 Tom Tromey <tom@tromey.com>
13187 * dwarf2/read.c (struct line_header) <file_full_name,
13188 file_file_name>: Declare methods.
13189 (dw2_get_file_names_reader): Update.
13190 (file_file_name): Now a method.
13191 (file_full_name): Likewise.
13192 (macro_start_file): Update.
13194 2020-02-08 Tom Tromey <tom@tromey.com>
13196 * dwarf2/read.c (dwarf_always_disassemble)
13197 (show_dwarf_always_disassemble): Move to loc.c.
13198 (_initialize_dwarf2_read): Move "always-disassemble" registration
13200 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13201 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13203 (show_dwarf_always_disassemble): Move from read.c.
13204 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13206 2020-02-08 Tom Tromey <tom@tromey.com>
13208 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13209 (create_quick_file_names_table): Return htab_up.
13210 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13212 * dwarf2/read.h (struct dwarf2_per_objfile)
13213 <quick_file_names_table>: Now htab_up.
13215 2020-02-08 Tom Tromey <tom@tromey.com>
13217 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13219 2020-02-08 Tom Tromey <tom@tromey.com>
13221 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13223 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13224 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13225 (abbrev_table::abbrev_table): No longer inline.
13226 (ABBREV_HASH_SIZE): Remove.
13227 (abbrev_table::m_abbrevs): Now an htab_up.
13229 2020-02-08 Tom Tromey <tom@tromey.com>
13231 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13232 (cutu_reader): Update.
13233 (build_type_psymtabs_1): Update.
13234 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13235 (abbrev_table::alloc_abbrev): Update.
13236 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13237 (abbrev_table::read): New static method, renamed from
13238 abbrev_table_read_table.
13239 (abbrev_table::alloc_abbrev)
13240 (abbrev_table::add_abbrev): Now private.
13241 (abbrev_table::abbrev_table): Now private.
13242 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13244 2020-02-08 Tom Tromey <tom@tromey.com>
13246 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13247 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13250 2020-02-08 Tom Tromey <tom@tromey.com>
13252 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13254 (lookup_dwo_unit_in_dwp): Update.
13255 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13258 2020-02-08 Tom Tromey <tom@tromey.com>
13260 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13263 2020-02-08 Tom Tromey <tom@tromey.com>
13265 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13267 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13268 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13269 Change type to htab_up.
13271 2020-02-08 Tom Tromey <tom@tromey.com>
13273 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13274 htab_up. Don't allocate on obstack.
13275 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13276 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13277 Change type to htab_up.
13279 2020-02-08 Tom Tromey <tom@tromey.com>
13281 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13282 Change type to htab_up.
13283 * dwarf2/read.c (create_signatured_type_table_from_index)
13284 (create_signatured_type_table_from_debug_names)
13285 (create_all_type_units, add_type_unit)
13286 (lookup_dwo_signatured_type, lookup_signatured_type)
13287 (process_skeletonless_type_unit): Update.
13288 (create_debug_type_hash_table, create_debug_types_hash_table):
13289 Change type of types_htab.
13290 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13291 htab_up. Don't allocate on obstack.
13292 (create_cus_hash_table): Change type of cus_htab parameter.
13293 (struct dwo_file) <cus, tus>: Now htab_up.
13294 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13295 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13296 (queue_and_load_all_dwo_tus): Update.
13297 * dwarf2/index-write.c (write_gdbindex): Update.
13298 (write_debug_names): Update.
13300 2020-02-08 Tom Tromey <tom@tromey.com>
13302 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13303 dwarf2/read.c. Remove "next" member. Add constructor ntad
13305 (struct dwarf2_per_objfile) <queue>: New member.
13306 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13308 (dwarf2_queue, dwarf2_queue_tail): Remove.
13309 (class dwarf2_queue_guard): Add parameter to constructor. Use
13310 DISABLE_COPY_AND_ASSIGN.
13311 <m_per_objfile>: New member.
13312 <~dwarf2_queue_guard>: Rewrite.
13313 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13315 (~dwarf2_queue_item): New.
13317 2020-02-08 Tom Tromey <tom@tromey.com>
13319 * dwarf2/read.c (struct die_info) <has_children>: New member.
13320 (dw2_get_file_names_reader): Remove has_children.
13321 (dw2_get_file_names): Update.
13322 (read_cutu_die_from_dwo): Remove has_children.
13323 (cutu_reader::init_tu_and_read_dwo_dies)
13324 (cutu_reader::cutu_reader): Update.
13325 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13326 Remove has_children.
13327 (build_type_psymtabs_1, process_skeletonless_type_unit)
13328 (load_partial_comp_unit, load_full_comp_unit): Update.
13329 (create_dwo_cu_reader): Remove has_children.
13330 (create_cus_hash_table, read_die_and_children): Update.
13331 (read_full_die_1,read_full_die): Remove has_children.
13332 (read_signatured_type): Update.
13333 (class cutu_reader) <has_children>: Remove.
13335 2020-02-08 Tom Tromey <tom@tromey.com>
13337 * dwarf2/expr.c: Rename from dwarf2expr.c.
13338 * dwarf2/expr.h: Rename from dwarf2expr.h.
13339 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13340 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13341 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13342 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13343 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13344 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13345 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13346 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13347 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13348 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13349 * dwarf2/loc.c: Rename from dwarf2loc.c.
13350 * dwarf2/loc.h: Rename from dwarf2loc.h.
13351 * dwarf2/read.c: Rename from dwarf2read.c.
13352 * dwarf2/read.h: Rename from dwarf2read.h.
13353 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13354 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13355 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13356 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13357 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13358 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13359 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13360 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13361 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13362 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13363 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13364 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13365 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13367 * Makefile.in (COMMON_SFILES): Update.
13368 (HFILES_NO_SRCDIR): Update.
13370 2020-02-08 Tom Tromey <tom@tromey.com>
13372 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13373 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13375 2020-02-08 Tom Tromey <tom@tromey.com>
13377 * dwarf2read.h (struct die_info): Don't declare.
13379 2020-02-08 Tom Tromey <tom@tromey.com>
13381 * dwarf2read.h (die_info_ptr): Remove typedef.
13383 2020-02-08 Tom Tromey <tom@tromey.com>
13385 * dwarf2read.c (read_call_site_scope)
13386 (handle_data_member_location, dwarf2_add_member_fn)
13387 (mark_common_block_symbol_computed, read_common_block)
13388 (attr_to_dynamic_prop, partial_die_info::read)
13389 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13390 (dwarf2_symbol_mark_computed, set_die_type): Update.
13391 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13393 (attr_form_is_block): Don't declare.
13394 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13396 2020-02-08 Tom Tromey <tom@tromey.com>
13398 * dwarf2read.c (dwarf2_find_base_address, )
13399 (read_call_site_scope, rust_containing_type)
13400 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13401 (handle_data_member_location, dwarf2_add_member_fn)
13402 (get_alignment, read_structure_type, process_structure_scope)
13403 (mark_common_block_symbol_computed, read_common_block)
13404 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13405 (partial_die_info::read, read_attribute_value, new_symbol)
13406 (lookup_die_type, dwarf2_get_ref_die_offset)
13407 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13408 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13409 (dwarf2_symbol_mark_computed): Update.
13410 * dwarf2/attribute.h (struct attribute) <value_as_address,
13411 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13413 (value_as_address, attr_form_is_section_offset)
13414 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13415 * dwarf2/attribute.c (attribute::value_as_address)
13416 (attribute::form_is_section_offset, attribute::form_is_constant)
13417 (attribute::form_is_ref): Now methods.
13419 2020-02-08 Tom Tromey <tom@tromey.com>
13421 * dwarf2read.c (struct attribute, DW_STRING)
13422 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13423 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13424 (attr_form_is_block, attr_form_is_section_offset)
13425 (attr_form_is_constant, attr_form_is_ref): Move.
13426 * dwarf2/attribute.h: New file.
13427 * dwarf2/attribute.c: New file, from dwarf2read.c.
13428 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13430 2020-02-08 Tom Tromey <tom@tromey.com>
13432 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13433 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13435 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13436 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13437 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13439 * dwarf2/abbrev.h: New file.
13440 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13441 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13443 2020-02-08 Tom Tromey <tom@tromey.com>
13445 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13446 (dwarf2_section_size, dwarf2_get_section_info)
13447 (create_signatured_type_table_from_debug_names)
13448 (create_addrmap_from_aranges, read_debug_names_from_section)
13449 (get_gdb_index_contents_from_section, read_comp_unit_head)
13450 (error_check_comp_unit_head, read_abbrev_offset)
13451 (create_debug_type_hash_table, init_cu_die_reader)
13452 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13453 (read_comp_units_from_section, create_cus_hash_table)
13454 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13455 (create_dwp_v2_section, dwarf2_rnglists_process)
13456 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13457 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13458 (read_indirect_string_from_dwz, read_addr_index_1)
13459 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13460 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13461 (fill_in_loclist_baton): Update.
13462 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13463 get_containing_section, get_bfd_owner, get_bfd_section,
13464 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13465 (dwarf2_read_section, get_section_name, get_section_file_name)
13466 (get_containing_section, get_section_bfd_owner)
13467 (get_section_bfd_section, get_section_name, get_section_file_name)
13468 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13470 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13471 (dwarf2_section_info::get_bfd_owner)
13472 (dwarf2_section_info::get_bfd_section)
13473 (dwarf2_section_info::get_name)
13474 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13475 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13476 (dwarf2_section_info::read): Now methods.
13477 * dwarf-index-write.c (class debug_names): Update.
13479 2020-02-08 Tom Tromey <tom@tromey.com>
13481 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13482 Move to dwarf2/section.h.
13483 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13484 (get_section_bfd_section, get_section_name)
13485 (get_section_file_name, get_section_id, get_section_flags)
13486 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13488 * dwarf2/section.h: New file.
13489 * dwarf2/section.c: New file, from dwarf2read.c.
13490 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13492 2020-02-08 Tom Tromey <tom@tromey.com>
13494 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13495 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13496 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13497 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13498 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13499 * dwarf2/leb.h: New file, from dwarf2read.c.
13500 * dwarf2/leb.c: New file, from dwarf2read.c.
13501 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13503 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13504 (COMMON_SFILES): Add dwarf2/leb.c.
13506 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13510 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13513 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13514 * gdb/remote.c (remote_console_output): Update.
13515 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13516 (ui_file_puts): ...this.
13517 * gdb/ui-file.h (ui_file_puts): Add declaration.
13518 * gdb/utils.c (emit_style_escape): Update.
13519 (flush_wrap_buffer): Update.
13520 (fputs_maybe_filtered): Update.
13521 (fputs_unfiltered): Add function.
13523 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13525 * gdb/event-loop.c (gdb_wait_for_event): Update.
13526 * gdb/printcmd.c (printf_command): Update.
13527 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13528 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13529 (gdb_os_flush_stderr): Update.
13530 * gdb/remote.c (remote_console_output): Update.
13531 * gdb/ui-file.c (gdb_flush): Rename to...
13532 (ui_file_flush): ...this.
13533 (stderr_file::write): Update.
13534 (stderr_file::puts): Update.
13535 * gdb/ui-file.h (gdb_flush): Rename to...
13536 (ui_file_flush): ...this.
13537 * gdb/utils.c (gdb_flush): Add function.
13538 * gdb/utils.h (gdb_flush): Add declaration.
13540 2020-02-07 Tom Tromey <tromey@adacore.com>
13542 PR breakpoints/24915:
13543 * source.c (find_and_open_source): Do not check basenames_may_differ.
13545 2020-02-07 Tom Tromey <tom@tromey.com>
13547 * README: Update gdbserver documentation.
13548 * gdbserver: Move to top level.
13549 * configure.tgt (build_gdbserver): Remove.
13550 * configure.ac: Remove --enable-gdbserver.
13551 * configure: Rebuild.
13552 * Makefile.in (distclean): Don't mention gdbserver.
13554 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13556 * source-cache.c (source_cache::ensure): Surround
13557 get_plain_source_lines with a try/catch.
13558 (source_cache::get_line_charpos): Get rid of try/catch
13559 and only check for the return value of "ensure".
13560 * tui/tui-source.c (tui_source_window::set_contents):
13561 Simplify "nlines" calculation.
13563 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13565 * MAINTAINERS (Write After Approval): Add myself.
13567 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13569 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13572 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13574 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13576 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13578 * nat/riscv-linux-tdesc.h: New file.
13579 * nat/riscv-linux-tdesc.c: New file, taking code from...
13580 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13582 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13585 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13587 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13588 we don't set the fake simulator ptid to the null_ptid.
13590 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13592 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13593 * gdbthread.h (class thread_info) <resumed>: Likewise.
13594 * infrun.c (resume_1): Likewise.
13595 (proceed): Likewise.
13596 (infrun_thread_stop_requested): Likewise.
13597 (stop_all_threads): Likewise.
13598 (handle_inferior_event): Likewise.
13599 (restart_threads): Likewise.
13600 (finish_step_over): Likewise.
13601 (keep_going_stepped_thread): Likewise.
13602 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13603 (linux_handle_extended_wait): Likewise.
13604 * record-btrace.c (get_thread_current_frame_id): Likewise.
13605 * record-full.c (record_full_wait_1): Likewise.
13606 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13607 * target.c (target_resume): Likewise.
13608 * thread.c (set_running_thread): Likewise.
13610 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13612 * f-valprint.c (f77_print_array_1): Changed datatype of index
13613 variable to LONGEST from int to enable it to contain bound
13616 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13618 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13619 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13620 offsets according to FLEN determined.
13621 (riscv_linux_nat_target::read_description): Determine FLEN
13623 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13624 according to FLEN determined.
13625 (riscv_linux_nat_target::store_registers): Likewise.
13627 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13629 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13630 when reg->group is empty and reggroup is not.
13632 2020-01-31 Tom Tromey <tromey@adacore.com>
13634 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13635 Call beneath target's mourn_inferior after unpushing.
13637 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13640 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13641 have enough lines to fill the screen, still return the lowest
13644 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13646 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13647 '-', '<', and '>' commands.
13649 2020-01-29 Pedro Alves <palves@redhat.com>
13650 Sergio Durigan Junior <sergiodj@redhat.com>
13652 * infcmd.c (construct_inferior_arguments): Assert that
13653 'argc' is greater than 0.
13655 2020-01-29 Luis Machado <luis.machado@linaro.org>
13657 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13658 (BRK_INSN_MASK): Define to 0xd4200000.
13659 (aarch64_program_breakpoint_here_p): New function.
13660 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13661 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13663 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13665 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13666 call gdbarch_program_breakpoint_here_p.
13667 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13668 default_program_breakpoint_here_p, changed return type to bool and
13670 * breakpoint.h (program_breakpoint_here): Moved prototype to
13671 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13672 return type to bool.
13673 * gdbarch.c: Regenerate.
13674 * gdbarch.h: Regenerate.
13675 * gdbarch.sh (program_breakpoint_here_p): New method.
13676 * infrun.c (handle_signal_stop): Call
13677 gdbarch_program_breakpoint_here_p.
13679 2020-01-26 Tom Tromey <tom@tromey.com>
13681 * ctfread.c (struct ctf_fp_info): Reindent.
13682 (_initialize_ctfread): Remove.
13684 2020-01-26 Tom Tromey <tom@tromey.com>
13686 * psymtab.c (partial_map_expand_apply)
13687 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13688 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13689 (psym_print_stats, psym_expand_symtabs_for_function)
13690 (psym_map_symbol_filenames, psym_map_matching_symbols)
13691 (psym_expand_symtabs_matching)
13692 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13693 (maintenance_check_psymtabs): Use new methods.
13694 * psympriv.h (struct partial_symtab) <readin_p,
13695 get_compunit_symtab>: New methods.
13696 <readin, compunit_symtab>: Remove members.
13697 (struct standard_psymtab): New.
13698 (struct legacy_psymtab): Derive from standard_psymtab.
13699 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13701 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13703 2020-01-26 Tom Tromey <tom@tromey.com>
13705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13706 read_dependencies. Add assert.
13707 * psymtab.c (partial_symtab::read_dependencies): New method.
13708 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13710 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13711 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13713 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13716 2020-01-26 Tom Tromey <tom@tromey.com>
13718 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13719 Call expand_psymtab.
13720 (xcoff_read_symtab): Call expand_psymtab.
13721 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13722 legacy_expand_psymtab.
13723 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13725 (struct legacy_psymtab) <expand_psymtab>: Implement.
13726 <legacy_expand_psymtab>: New member.
13727 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13728 (parse_partial_symbols): Set legacy_expand_psymtab.
13729 (psymtab_to_symtab_1): Change argument order. Call
13731 (new_psymtab): Set legacy_expand_psymtab.
13732 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13733 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13735 (dwarf2_psymtab::expand_psymtab): Rename from
13736 psymtab_to_symtab_1. Call expand_psymtab.
13737 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13738 (dbx_end_psymtab): Likewise.
13739 (dbx_psymtab_to_symtab_1): Change argument order. Call
13741 (dbx_read_symtab): Call expand_psymtab.
13742 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13743 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13744 (ctf_psymtab::read_symtab): Call expand_psymtab.
13746 2020-01-26 Tom Tromey <tom@tromey.com>
13748 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13749 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13751 * mdebugread.c (mdebug_read_symtab): Remove prints.
13752 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13754 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13756 2020-01-26 Tom Tromey <tom@tromey.com>
13758 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13759 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13760 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13762 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13763 * psymtab.c (psymtab_to_symtab): Call method.
13764 (dump_psymtab): Update.
13765 * psympriv.h (struct partial_symtab): Add virtual destructor.
13766 <read_symtab>: New method.
13767 (struct legacy_symtab): New.
13768 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13769 (struct pst_map) <pst>: Now a legacy_psymtab.
13770 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13771 (new_psymtab): Use legacy_psymtab.
13772 * dwarf2read.h (struct dwarf2_psymtab): New.
13773 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13774 * dwarf2read.c (dwarf2_create_include_psymtab)
13775 (dwarf2_build_include_psymtabs, create_type_unit_group)
13776 (create_partial_symtab, process_psymtab_comp_unit_reader)
13777 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13778 (set_partial_user): Use dwarf2_psymtab.
13779 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13780 (psymtab_to_symtab_1, process_full_comp_unit)
13781 (process_full_type_unit, dwarf2_ranges_read)
13782 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13783 (dwarf_decode_lines): Use dwarf2_psymtab.
13784 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13785 (add_address_entry_worker, write_one_signatured_type)
13786 (recursively_count_psymbols, recursively_write_psymbols)
13787 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13788 (write_debug_names): Likewise.
13789 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13790 <pst>: Now a legacy_psymtab.
13791 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13792 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13793 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13794 * ctfread.c (struct ctf_psymtab): New.
13795 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13797 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13798 (create_partial_symtab): Return a ctf_psymtab.
13799 (scan_partial_symbols): Update.
13801 2020-01-26 Tom Tromey <tom@tromey.com>
13803 * xcoffread.c (xcoff_start_psymtab): Use new.
13804 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13805 renamed from start_psymtab_common.
13806 * psympriv.h (struct partial_symtab): Add new constructor.
13807 (start_psymtab_common): Don't declare.
13808 * mdebugread.c (parse_partial_symbols): Use new.
13809 * dwarf2read.c (create_partial_symtab): Use new.
13810 * dbxread.c (start_psymtab): Use new.
13811 * ctfread.c (create_partial_symtab): Use new.
13813 2020-01-26 Tom Tromey <tom@tromey.com>
13815 * xcoffread.c (xcoff_end_psymtab): Use new.
13816 * psymtab.c (start_psymtab_common): Use new.
13817 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13819 * psympriv.h (struct partial_symtab): Add parameters to
13820 constructor. Don't inline.
13821 (allocate_psymtab): Don't declare.
13822 * mdebugread.c (new_psymtab): Use new.
13823 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13824 * dbxread.c (dbx_end_psymtab): Use new.
13826 2020-01-26 Tom Tromey <tom@tromey.com>
13828 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13829 allocate_psymtab. Update documentation.
13830 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13831 allocate_psymtab. Do not use new.
13832 (allocate_psymtab): Use new. Update.
13834 2020-01-26 Tom Tromey <tom@tromey.com>
13836 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13837 * psymtab.c (psym_print_stats): Update.
13838 * psympriv.h (struct partial_symtab) <readin,
13839 psymtabs_addrmap_supported, anonymous>: Now bool.
13840 * mdebugread.c (psymtab_to_symtab_1): Update.
13841 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13842 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13843 (process_full_comp_unit, process_full_type_unit): Update.
13844 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13845 * ctfread.c (psymtab_to_symtab): Update.
13847 2020-01-26 Tom Tromey <tom@tromey.com>
13849 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13850 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13851 * psymtab.c (psymtab_storage): Delete psymtabs.
13852 (psymtab_storage::allocate_psymtab): Use new.
13853 (psymtab_storage::discard_psymtab): Use delete.
13854 * psympriv.h (struct partial_symtab): Add constructor and
13857 2020-01-26 Tom Tromey <tom@tromey.com>
13859 * machoread.c: Do not include psympriv.h.
13861 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13863 * NEWS: Mention the new option and the set/show commands.
13865 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13867 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13868 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13869 (validate_exec_file): New variables, enums, functions.
13870 (exec_file_locate_attach, print_section_info): Style the filenames.
13871 (_initialize_exec): Install show_exec_file_mismatch_command and
13872 set_exec_file_mismatch_command.
13873 * gdbcore.h (validate_exec_file): Declare.
13874 * infcmd.c (attach_command): Call validate_exec_file.
13875 * remote.c ( remote_target::remote_add_inferior): Likewise.
13877 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13879 * frame.c (find_frame_sal): Move call to get_next_frame into more
13881 * inline-frame.c (inilne_state) <inline_state>: Update argument
13883 (inilne_state) <skipped_symbol>: Rename to...
13884 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13885 (skip_inline_frames): Build vector of skipped symbols and use this
13886 to reate the inline_state.
13887 (inline_skipped_symbol): Add a comment and some assertions, fetch
13888 skipped symbol from the list.
13890 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13892 * buildsym.c (lte_is_less_than): Delete.
13893 (buildsym_compunit::end_symtab_with_blockvector): Create local
13894 lambda function to sort line table entries, and use
13895 std::stable_sort instead of std::sort.
13896 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13897 markers when looking for a previous line.
13899 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13901 * dwarf2read.c (lnp_state_machine::record_line): Include
13902 end_sequence parameter in debug print out. Record the line if we
13903 are at an end_sequence marker even if it's not the start of a
13905 * symmisc.c (maintenance_print_one_line_table): Print end of
13906 sequence markers with 'END' not '0'.
13908 2020-01-24 Pedro Alves <palves@redhat.com>
13911 * thread.c (scoped_restore_current_thread::restore): Use
13912 switch_to_inferior_no_thread.
13913 * exec.c: Include "progspace-and-thread.h".
13914 (add_target_sections, remove_target_sections):
13915 scoped_restore_current_pspace_and_thread instead of
13916 scoped_restore_current_thread.
13917 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13918 and aspace to the inferior before calling clone_program_space.
13919 Remove stale comment.
13921 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13923 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13924 (arm_netbsd_nat_target::fetch_registers): ...this.
13925 (arm_nbsd_nat_target::store_registers): Rename to...
13926 (arm_netbsd_nat_target::store_registers): ...this.
13928 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13930 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13933 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13935 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13937 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13939 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13940 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13941 the correct replacement (iterate_over_regset_sections).
13942 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13945 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13948 * gdb/python/python.c (execute_gdb_command): Call
13949 async_enable_stdin in catch block.
13951 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13953 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13954 SWITCH_THRU_ALL_UIS.
13956 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13959 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13960 comment, add extra parameter, and update to store previous symbol
13962 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13963 add extra parameter.
13964 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13965 remove unneeded parameter, add try/catch around gdb_print_insn,
13966 rewrite to add items to asm_lines vector.
13967 (tui_find_backward_disassembly_start_address): New function.
13968 (tui_find_disassembly_address): Updated throughout.
13969 (tui_disasm_window::set_contents): Update for changes to
13971 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13972 number of lines to scroll.
13974 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13976 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13977 (SECT_OFF_DATA): Likewise.
13978 (SECT_OFF_RODATA): Likewise.
13979 (SECT_OFF_TEXT): Likewise.
13980 (SECT_OFF_BSS): Likewise.
13981 (struct objfile) <text_section_offset, data_section_offset>: New
13983 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13984 objfile::text_section_offset.
13985 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13986 * coffread.c (coff_symtab_read): Likewise.
13987 (enter_linenos): Likewise.
13988 (process_coff_symbol): Likewise.
13989 * ctfread.c (get_objfile_text_range): Likewise.
13990 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13991 Use objfile::data_section_offset.
13992 * dwarf2-frame.c (execute_cfa_program): Use
13993 objfile::text_section_offset.
13994 (dwarf2_frame_find_fde): Likewise.
13995 * dwarf2read.c (create_addrmap_from_index): Likewise.
13996 (create_addrmap_from_aranges): Likewise.
13997 (dw2_find_pc_sect_compunit_symtab): Likewise.
13998 (process_psymtab_comp_unit_reader): Likewise.
13999 (add_partial_symbol): Likewise.
14000 (add_partial_subprogram): Likewise.
14001 (process_full_comp_unit): Likewise.
14002 (read_file_scope): Likewise.
14003 (read_func_scope): Likewise.
14004 (read_lexical_block_scope): Likewise.
14005 (read_call_site_scope): Likewise.
14006 (dwarf2_rnglists_process): Likewise.
14007 (dwarf2_ranges_process): Likewise.
14008 (dwarf2_ranges_read): Likewise.
14009 (dwarf_decode_lines_1): Likewise.
14010 (new_symbol): Likewise.
14011 (dwarf2_fetch_die_loc_sect_off): Likewise.
14012 (dwarf2_per_cu_text_offset): Likewise.
14013 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14014 * hppa-tdep.c (read_unwind_info): Likewise.
14015 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14016 * psympriv.h (struct partial_symtab): Likewise.
14017 * psymtab.c (find_pc_sect_psymtab): Likewise.
14018 * solib-svr4.c (enable_break): Likewise.
14019 * stap-probe.c (relocate_address): Use
14020 objfile::data_section_offset.
14021 * xcoffread.c (enter_line_range): Use
14022 objfile::text_section_offset.
14023 (read_xcoff_symtab): Likewise.
14025 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14027 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14028 declaration to narrower scopes.
14030 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14032 * darwin-nat.h (struct darwin_exception_msg, enum
14033 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14035 (class darwin_nat_target) <wait_1, check_new_threads,
14036 decode_exception_message, decode_message, stop_inferior,
14037 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14038 * darwin-nat.c (darwin_check_new_threads): Rename to...
14039 (darwin_nat_target::check_new_threads): ... this.
14040 (darwin_suspend_inferior_it): Remove.
14041 (darwin_decode_exception_message): Rename to...
14042 (darwin_nat_target::decode_exception_message): ... this.
14043 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14044 (darwin_decode_message): Rename to...
14045 (darwin_nat_target::decode_message): ... this.
14046 (cancel_breakpoint): Rename to...
14047 (darwin_nat_target::cancel_breakpoint): ... this.
14048 (darwin_wait): Rename to...
14049 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14050 instead of iterate_over_inferiors.
14051 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14052 (darwin_stop_inferior): Rename to...
14053 (darwin_nat_target::stop_inferior): ... this.
14054 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14055 (darwin_init_thread_list): Rename to...
14056 (darwin_nat_target::init_thread_list): ... this.
14057 (darwin_ptrace_him): Rename to...
14058 (darwin_nat_target::ptrace_him): ... this.
14059 (darwin_nat_target::create_inferior): Pass lambda function to
14061 (darwin_nat_target::detach): Call stop_inferior instead of
14062 darwin_stop_inferior.
14063 * fork-inferior.h (fork_inferior): Change init_trace_fun
14064 parameter to gdb::function_view.
14065 * fork-inferior.c (fork_inferior): Likewise.
14067 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14069 * i386-cygwin-tdep.c (core_process_module_section): Update.
14070 * windows-nat.c (struct lm_info_windows): Add text_offset.
14071 (windows_xfer_shared_libraries): Update.
14072 * windows-tdep.c (windows_xfer_shared_library):
14073 Add text_offset_cached argument.
14074 * windows-tdep.h (windows_xfer_shared_library): Update.
14076 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14078 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14080 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14082 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14083 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14084 replace with range-based for.
14085 (gdbsim_interrupt_inferior): Remove.
14086 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14087 with a range-based for. Inline code from
14088 gdbsim_interrupt_inferior.
14090 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14092 * infrun.c (proceed): Fix indentation.
14094 2020-01-21 Tom Tromey <tromey@adacore.com>
14096 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14097 * python/python.c (python_extension_ops): Update.
14098 (gdbpy_colorize): New function.
14099 * python/lib/gdb/__init__.py (colorize): New function.
14100 * extension.h (ext_lang_colorize): Declare.
14101 * extension.c (ext_lang_colorize): New function.
14102 * extension-priv.h (struct extension_language_ops) <colorize>: New
14104 * cli/cli-style.c (_initialize_cli_style): Update help text.
14106 2020-01-21 Luis Machado <luis.machado@linaro.org>
14108 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14109 <cond>: Change type to bool.
14110 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14111 (aarch64_displaced_step_cb): Likewise.
14112 (aarch64_displaced_step_tb): Likewise.
14114 2020-01-21 Luis Machado <luis.machado@linaro.org>
14116 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14119 2020-01-21 Luis Machado <luis.machado@linaro.org>
14121 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14122 <pc_adjust>: Adjust the documentation.
14123 (aarch64_displaced_step_fixup): Check if PC really moved before
14126 2020-01-19 Tom Tromey <tom@tromey.com>
14128 * disasm.c (~gdb_disassembler): New destructor.
14129 (gdb_buffered_insn_length): Call disassemble_free_target.
14130 * disasm.h (class gdb_disassembler): Declare destructor. Use
14131 DISABLE_COPY_AND_ASSIGN.
14133 2020-01-19 Tom Tromey <tom@tromey.com>
14135 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14136 (die_reader_func_ftype): Remove.
14137 (cutu_reader): New class.
14138 (dw2_get_file_names_reader): Remove "data" parameter.
14139 (dw2_get_file_names): Use cutu_reader.
14140 (create_debug_type_hash_table): Update.
14141 (read_cutu_die_from_dwo): Update comment.
14142 (lookup_dwo_unit): Add dwo_name parameter.
14143 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14144 die_reader_func_ftype and data parameters.
14145 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14146 Remove die_reader_func_ftype and data parameters.
14147 (~cutu_reader): New; from init_cutu_and_read_dies.
14148 (cutu_reader::cutu_reader): Rename from
14149 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14150 and data parameters.
14151 (init_cutu_and_read_dies_simple): Remove.
14152 (struct process_psymtab_comp_unit_data): Remove.
14153 (process_psymtab_comp_unit_reader): Remove data parameter; add
14154 want_partial_unit and pretend_language parameters.
14155 (process_psymtab_comp_unit): Use cutu_reader.
14156 (build_type_psymtabs_reader): Remove data parameter.
14157 (build_type_psymtabs_1): Use cutu_reader.
14158 (process_skeletonless_type_unit): Likewise.
14159 (load_partial_comp_unit_reader): Remove.
14160 (load_partial_comp_unit): Use cutu_reader.
14161 (load_full_comp_unit_reader): Remove.
14162 (load_full_comp_unit): Use cutu_reader.
14163 (struct create_dwo_cu_data): Remove.
14164 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14165 dwo_unit parameters.
14166 (create_cus_hash_table): Use cutu_reader.
14167 (struct dwarf2_read_addr_index_data): Remove.
14168 (dwarf2_read_addr_index_reader): Remove.
14169 (dwarf2_read_addr_index): Use cutu_reader.
14170 (read_signatured_type_reader): Remove.
14171 (read_signatured_type): Use cutu_reader.
14173 2020-01-19 Tom Tromey <tom@tromey.com>
14175 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14176 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14177 (tui_wrefresh): Declare.
14178 * tui/tui-wingeneral.c (suppress_output): New global.
14179 (tui_suppress_output, ~tui_suppress_output): New constructor and
14181 (tui_wrefresh): New function.
14182 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14183 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14184 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14186 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14188 (tui_data_window::no_refresh): New method.
14189 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14190 (tui_reg_command): Use tui_suppress_output
14191 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14192 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14194 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14196 2020-01-19 Tom Tromey <tom@tromey.com>
14198 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14199 Handle case where symtab is null.
14201 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14203 * linux-fork.c (one_fork_p): Simplify.
14205 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14207 * top.c (struct qt_args): Remove.
14208 (kill_or_detach): Change return type to void, replace `void *`
14209 parameter with a proper one.
14210 (print_inferior_quit_action): Likewise.
14211 (quit_confirm): Use range-based for loop to iterate over inferiors.
14212 (quit_force): Likewise.
14214 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14216 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14217 `void *` parameter with proper parameters.
14218 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14219 (print_one_inferior): Change return type to void, replace `void *`
14220 parameter with proper parameters.
14221 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14223 (get_other_inferior): Remove.
14224 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14227 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14229 * mi/mi-interp.c (report_initial_inferior): Remove.
14230 (mi_interp::init): Use range-based for to iterate over inferiors.
14232 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14234 * python/py-inferior.c (build_inferior_list): Remove.
14235 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14237 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14239 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14240 (btrace_stitch_trace): Likewise.
14241 * charset.c (intermediate_encoding): Likewise (vaild).
14242 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14243 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14244 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14246 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14248 * windows-tdep.c (windows_get_tlb_type):
14249 Add rtl_user_process_parameters type.
14251 2020-01-16 Pedro Alves <palves@redhat.com>
14252 Norbert Lange <nolange79@gmail.com>
14255 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14256 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14257 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14258 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14259 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14260 (ps_plog): Redeclare exported functions with default visibility.
14262 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14264 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14265 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14267 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14269 * infcmd.c (post_create_inferior): Use get_thread_regcache
14270 instead of get_current_regcache.
14272 2020-01-14 Tom Tromey <tom@tromey.com>
14275 * python/python.c (gdbpy_decode_line): Treat empty string the same
14278 2020-01-14 Tom Tromey <tom@tromey.com>
14280 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14282 2020-01-14 Tom Tromey <tom@tromey.com>
14284 * nat/linux-btrace.c: Don't include <config.h>.
14285 * nat/linux-ptrace.c: Don't include <config.h>.
14286 * nat/x86-linux-dregs.c: Don't include <config.h>.
14288 2020-01-14 Tom Tromey <tom@tromey.com>
14290 * configure: Rebuild.
14291 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14293 2020-01-14 Tom Tromey <tom@tromey.com>
14295 * nat/x86-linux-dregs.c: Include configh.h.
14296 * nat/linux-ptrace.c: Include configh.h.
14297 * nat/linux-btrace.c: Include configh.h.
14298 * defs.h: Include config.h, bfd.h.
14299 * configure.ac: Don't source common.host.
14300 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14301 * configure: Rebuild.
14302 * acinclude.m4: Update path.
14303 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14304 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14305 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14306 (CLIBS): Add LIBSUPPORT.
14308 (COMMON_SFILES): Remove gdbsupport files.
14309 (HFILES_NO_SRCDIR): Likewise.
14310 (stamp-version): Update path to create-version.sh.
14311 (ALLDEPFILES): Remove gdbsupport files.
14313 2020-01-14 Tom Tromey <tom@tromey.com>
14315 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14316 USE_WIN32API when needed.
14317 * configure.ac (USE_WIN32API): Don't define.
14318 (WIN32LIBS): Use WIN32APILIBS.
14319 * configure: Rebuild.
14321 2020-01-14 Tom Tromey <tom@tromey.com>
14323 * configure: Rebuild.
14324 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14326 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14328 * skip.c (skip_function_command): Make skip w/o arguments use the
14329 name of the inlined function if pc is inside any inlined function.
14331 2020-01-14 Luis Machado <luis.machado@linaro.org>
14333 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14334 * infrun.c (resume_1): Likewise.
14335 (handle_inferior_event): Remove stale comment.
14336 * linux-nat.c (linux_nat_target::resume): Update comments.
14337 (save_stop_reason): Likewise.
14338 (linux_nat_filter_event): Likewise.
14339 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14341 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14343 * elfread.c (record_minimal_symbol): Set section index to 0 for
14344 non-allocatable sections.
14347 2020-01-13 Ali Tamur <tamur@google.com>
14349 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14350 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14351 to gdb::optional. Update comments.
14352 (dwo_file): Update comments.
14353 (read_attribute): Update API to take an additional out parameter,
14354 need_reprocess. This is used to mark attributes that need other
14355 attributes (e.g. str_offsets_base) for correct computation which may not
14356 have been read yet.
14357 (read_attribute_reprocess): New function declaration.
14358 (read_addr_index): Likewise.
14359 (read_dwo_str_index): Likewise.
14360 (read_stub_str_index): Likewise.
14361 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14362 (lookup_addr_base): New function definition.
14363 (lookup_ranges_base): Likewise.
14364 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14365 lookup_ranges_base.
14366 (init_cutu_and_read_dies): Update comments.
14367 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14368 unit. This is used to inherit parent's str_offsets_base and addr_base.
14370 (init_cutu_and_read_dies_simple): Reflect API changes.
14371 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14372 (create_cus_hash_table): Change API to take parent compile unit.
14373 Reflect API changes.
14374 (open_and_init_dwo_file): Reflect API changes.
14375 (dwarf2_get_pc_bounds): Update comments.
14376 (dwarf2_record_block_ranges): Likewise.
14377 (read_full_die_1): Change implementation to reprocess attributes that
14378 need str_offsets_base and addr_base.
14379 (partial_die_info::read): Likewise.
14380 (read_attribute_reprocess): New function definition.
14381 (read_attribute_value): Change API to take an additional out parameter,
14382 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14383 when a non-dwo compile unit has index based attributes.
14384 (read_attribute): Reflect API changes.
14385 (read_addr_index_1): Reflect API changes. Update comments.
14386 (dwarf2_read_addr_index_data): Reflect API changes.
14387 (dwarf2_read_addr_index): Likewise.
14388 (read_str_index): Change API and implementation. This becomes a helper
14389 to be used by the new string index related methods. Update error
14390 message and comments.
14391 (read_dwo_str_index): New function definition.
14392 (read_stub_str_index): Likewise.
14393 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14394 * symfile.h (dwarf2_debug_sections): Likewise.
14395 * xcoffread.c (dwarf2_debug_sections): Likewise.
14397 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14399 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14400 core_reg_sect type to gdb_byte *.
14401 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14402 * cris-tdep.c (fetch_core_registers): Likewise.
14403 * corelow.c (core_target::get_core_register_section): Change
14404 type of `contents` to gdb::byte_vector.
14406 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14408 * tui/tui-wingeneral.c (box_win): Position the title in the center
14411 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14413 * corelow.c (core_target::get_core_register_section): Use
14414 std::vector instead of alloca.
14416 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14418 * warning.m4: Add -Wmissing-declarations to build_warnings.
14419 * configure: Re-generate.
14421 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14423 * python/python.c (init__gdb_module): Add declaration.
14425 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14427 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14428 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14429 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14430 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14431 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14432 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14433 * ada-exp.y (_initialize_ada_exp): Add declaration.
14434 * ada-lang.c (_initialize_ada_language): Add declaration.
14435 * ada-tasks.c (_initialize_tasks): Add declaration.
14436 * agent.c (_initialize_agent): Add declaration.
14437 * aix-thread.c (_initialize_aix_thread): Add declaration.
14438 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14439 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14440 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14441 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14442 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14443 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14444 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14445 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14446 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14447 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14448 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14449 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14450 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14451 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14452 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14453 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14454 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14455 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14456 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14457 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14458 * annotate.c (_initialize_annotate): Add declaration.
14459 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14460 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14461 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14462 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14463 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14464 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14465 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14466 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14467 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14468 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14469 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14470 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14471 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14472 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14473 * auto-load.c (_initialize_auto_load): Add declaration.
14474 * auxv.c (_initialize_auxv): Add declaration.
14475 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14476 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14477 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14478 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14479 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14480 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14481 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14482 * breakpoint.c (_initialize_breakpoint): Add declaration.
14483 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14484 * btrace.c (_initialize_btrace): Add declaration.
14485 * charset.c (_initialize_charset): Add declaration.
14486 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14487 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14488 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14489 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14490 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14491 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14492 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14493 * coffread.c (_initialize_coffread): Add declaration.
14494 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14495 * compile/compile.c (_initialize_compile): Add declaration.
14496 * complaints.c (_initialize_complaints): Add declaration.
14497 * completer.c (_initialize_completer): Add declaration.
14498 * copying.c (_initialize_copying): Add declaration.
14499 * corefile.c (_initialize_core): Add declaration.
14500 * corelow.c (_initialize_corelow): Add declaration.
14501 * cp-abi.c (_initialize_cp_abi): Add declaration.
14502 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14503 * cp-support.c (_initialize_cp_support): Add declaration.
14504 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14505 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14506 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14507 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14508 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14509 * ctfread.c (_initialize_ctfread): Add declaration.
14510 * d-lang.c (_initialize_d_language): Add declaration.
14511 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14512 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14513 * dbxread.c (_initialize_dbxread): Add declaration.
14514 * dcache.c (_initialize_dcache): Add declaration.
14515 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14516 * disasm.c (_initialize_disasm): Add declaration.
14517 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14518 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14519 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14520 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14521 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14522 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14523 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14524 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14525 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14526 * elfread.c (_initialize_elfread): Add declaration.
14527 * exec.c (_initialize_exec): Add declaration.
14528 * extension.c (_initialize_extension): Add declaration.
14529 * f-lang.c (_initialize_f_language): Add declaration.
14530 * f-valprint.c (_initialize_f_valprint): Add declaration.
14531 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14532 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14533 * filesystem.c (_initialize_filesystem): Add declaration.
14534 * findcmd.c (_initialize_mem_search): Add declaration.
14535 * findvar.c (_initialize_findvar): Add declaration.
14536 * fork-child.c (_initialize_fork_child): Add declaration.
14537 * frame-base.c (_initialize_frame_base): Add declaration.
14538 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14539 * frame.c (_initialize_frame): Add declaration.
14540 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14541 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14542 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14543 * gcore.c (_initialize_gcore): Add declaration.
14544 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14545 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14546 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14547 * gdbarch.c (_initialize_gdbarch): Add declaration.
14548 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14549 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14550 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14551 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14552 * go-lang.c (_initialize_go_language): Add declaration.
14553 * go32-nat.c (_initialize_go32_nat): Add declaration.
14554 * guile/guile.c (_initialize_guile): Add declaration.
14555 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14556 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14557 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14558 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14559 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14560 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14561 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14562 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14563 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14564 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14565 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14566 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14567 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14568 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14569 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14570 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14571 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14572 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14573 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14574 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14575 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14576 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14577 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14578 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14579 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14580 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14581 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14582 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14583 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14584 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14585 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14586 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14587 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14588 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14589 * infcall.c (_initialize_infcall): Add declaration.
14590 * infcmd.c (_initialize_infcmd): Add declaration.
14591 * inflow.c (_initialize_inflow): Add declaration.
14592 * infrun.c (_initialize_infrun): Add declaration.
14593 * interps.c (_initialize_interpreter): Add declaration.
14594 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14595 * jit.c (_initialize_jit): Add declaration.
14596 * language.c (_initialize_language): Add declaration.
14597 * linux-fork.c (_initialize_linux_fork): Add declaration.
14598 * linux-nat.c (_initialize_linux_nat): Add declaration.
14599 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14600 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14601 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14602 * m2-lang.c (_initialize_m2_language): Add declaration.
14603 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14604 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14605 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14606 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14607 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14608 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14609 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14610 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14611 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14612 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14613 * machoread.c (_initialize_machoread): Add declaration.
14614 * macrocmd.c (_initialize_macrocmd): Add declaration.
14615 * macroscope.c (_initialize_macroscope): Add declaration.
14616 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14617 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14618 * maint.c (_initialize_maint_cmds): Add declaration.
14619 * mdebugread.c (_initialize_mdebugread): Add declaration.
14620 * memattr.c (_initialize_mem): Add declaration.
14621 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14622 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14623 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14624 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14625 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14626 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14627 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14628 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14629 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14630 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14631 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14632 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14633 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14634 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14635 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14636 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14637 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14638 * mipsread.c (_initialize_mipsread): Add declaration.
14639 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14640 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14641 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14642 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14643 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14644 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14645 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14646 * nto-procfs.c (_initialize_procfs): Add declaration.
14647 * objc-lang.c (_initialize_objc_language): Add declaration.
14648 * observable.c (_initialize_observer): Add declaration.
14649 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14650 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14651 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14652 * osabi.c (_initialize_gdb_osabi): Add declaration.
14653 * osdata.c (_initialize_osdata): Add declaration.
14654 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14655 * parse.c (_initialize_parse): Add declaration.
14656 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14657 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14658 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14659 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14660 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14661 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14662 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14663 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14664 * printcmd.c (_initialize_printcmd): Add declaration.
14665 * probe.c (_initialize_probe): Add declaration.
14666 * proc-api.c (_initialize_proc_api): Add declaration.
14667 * proc-events.c (_initialize_proc_events): Add declaration.
14668 * proc-service.c (_initialize_proc_service): Add declaration.
14669 * procfs.c (_initialize_procfs): Add declaration.
14670 * producer.c (_initialize_producer): Add declaration.
14671 * psymtab.c (_initialize_psymtab): Add declaration.
14672 * python/python.c (_initialize_python): Add declaration.
14673 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14674 * record-btrace.c (_initialize_record_btrace): Add declaration.
14675 * record-full.c (_initialize_record_full): Add declaration.
14676 * record.c (_initialize_record): Add declaration.
14677 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14678 * regcache.c (_initialize_regcache): Add declaration.
14679 * reggroups.c (_initialize_reggroup): Add declaration.
14680 * remote-notif.c (_initialize_notif): Add declaration.
14681 * remote-sim.c (_initialize_remote_sim): Add declaration.
14682 * remote.c (_initialize_remote): Add declaration.
14683 * reverse.c (_initialize_reverse): Add declaration.
14684 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14685 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14686 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14687 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14688 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14689 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14690 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14691 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14693 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14694 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14695 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14696 * rust-exp.y (_initialize_rust_exp): Add declaration.
14697 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14698 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14699 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14700 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14701 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14702 * score-tdep.c (_initialize_score_tdep): Add declaration.
14703 * ser-go32.c (_initialize_ser_dos): Add declaration.
14704 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14705 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14706 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14707 * ser-uds.c (_initialize_ser_socket): Add declaration.
14708 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14709 * serial.c (_initialize_serial): Add declaration.
14710 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14711 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14712 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14713 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14714 * skip.c (_initialize_step_skip): Add declaration.
14715 * sol-thread.c (_initialize_sol_thread): Add declaration.
14716 * solib-aix.c (_initialize_solib_aix): Add declaration.
14717 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14718 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14719 * solib-frv.c (_initialize_frv_solib): Add declaration.
14720 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14721 * solib-target.c (_initialize_solib_target): Add declaration.
14722 * solib.c (_initialize_solib): Add declaration.
14723 * source-cache.c (_initialize_source_cache): Add declaration.
14724 * source.c (_initialize_source): Add declaration.
14725 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14726 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14727 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14728 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14729 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14730 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14731 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14732 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14733 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14734 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14735 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14736 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14737 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14738 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14739 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14740 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14741 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14742 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14743 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14744 * stabsread.c (_initialize_stabsread): Add declaration.
14745 * stack.c (_initialize_stack): Add declaration.
14746 * stap-probe.c (_initialize_stap_probe): Add declaration.
14747 * std-regs.c (_initialize_frame_reg): Add declaration.
14748 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14749 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14750 * symfile.c (_initialize_symfile): Add declaration.
14751 * symmisc.c (_initialize_symmisc): Add declaration.
14752 * symtab.c (_initialize_symtab): Add declaration.
14753 * target.c (_initialize_target): Add declaration.
14754 * target-connection.c (_initialize_target_connection): Add
14756 * target-dcache.c (_initialize_target_dcache): Add declaration.
14757 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14758 * thread.c (_initialize_thread): Add declaration.
14759 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14760 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14761 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14762 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14763 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14764 * tracectf.c (_initialize_ctf): Add declaration.
14765 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14766 * tracefile.c (_initialize_tracefile): Add declaration.
14767 * tracepoint.c (_initialize_tracepoint): Add declaration.
14768 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14769 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14770 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14771 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14772 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14773 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14774 * tui/tui.c (_initialize_tui): Add declaration.
14775 * typeprint.c (_initialize_typeprint): Add declaration.
14776 * ui-style.c (_initialize_ui_style): Add declaration.
14777 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14778 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14779 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14780 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14781 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14782 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14783 * unittests/filtered_iterator-selftests.c
14784 (_initialize_filtered_iterator_selftests): Add declaration.
14785 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14786 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14787 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14788 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14789 * unittests/main-thread-selftests.c
14790 (_initialize_main_thread_selftests): Add declaration.
14791 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14792 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14793 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14794 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14795 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14796 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14797 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14798 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14799 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14800 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14801 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14802 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14803 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14804 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14805 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14807 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14808 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14809 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14810 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14811 * user-regs.c (_initialize_user_regs): Add declaration.
14812 * utils.c (_initialize_utils): Add declaration.
14813 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14814 * valops.c (_initialize_valops): Add declaration.
14815 * valprint.c (_initialize_valprint): Add declaration.
14816 * value.c (_initialize_values): Add declaration.
14817 * varobj.c (_initialize_varobj): Add declaration.
14818 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14819 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14820 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14821 * windows-nat.c (_initialize_windows_nat): Add declaration.
14822 (_initialize_check_for_gdb_ini): Add declaration.
14823 (_initialize_loadable): Add declaration.
14824 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14825 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14826 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14827 * xcoffread.c (_initialize_xcoffread): Add declaration.
14828 * xml-support.c (_initialize_xml_support): Add declaration.
14829 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14830 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14831 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14832 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14834 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14836 * regformats/regdat.sh: Generate declaration for init function.
14838 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14840 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14842 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14843 close_one_inferior>: New methods.
14844 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14845 pass down target to find_inferior_pid.
14846 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14847 Pass down target to find_inferior_ptid.
14848 (gdbsim_target::create_inferior): Pass down target to
14850 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14851 target down to find_inferior_ptid and switch_to_thread.
14852 (gdbsim_target::close): Update to call close_one_inferior.
14853 (struct resume_data): Remove.
14854 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14855 directly, rather than through a void pointer.
14856 (gdbsim_target::resume): Update to call resume_one_inferior.
14858 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14860 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14862 2020-01-12 Pedro Alves <palves@redhat.com>
14864 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14865 directly for the current inferior instead of
14866 discard_all_inferiors.
14867 (discard_all_inferiors): Delete.
14869 2020-01-11 Tom Tromey <tom@tromey.com>
14871 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14872 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14873 deprecated_safe_get_selected_frame.
14875 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14877 * inferior.c (print_inferior): Switch inferior before printing it.
14879 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14880 Pedro Alves <palves@redhat.com>
14882 * progspace-and-thread.c (switch_to_program_space_and_thread):
14883 Assert there's an inferior for PSPACE. Use
14884 switch_to_inferior_no_thread to switch the inferior too.
14885 * progspace.c (program_space::~program_space): Call
14886 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14887 (program_space::free_all_objfiles): Don't call clear_symtab_users
14889 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14891 2020-01-10 Pedro Alves <palves@redhat.com>
14893 * NEWS: Mention multi-target debugging, "info connections", and
14894 "add-inferior -no-connection".
14896 2020-01-10 Pedro Alves <palves@redhat.com>
14898 * infrun.c: Include "target-connection.h".
14899 (check_multi_target_resumption): New.
14900 (proceed): Call it.
14901 * target-connection.c (make_target_connection_string): Make
14903 * target-connection.h (make_target_connection_string): Declare.
14905 2020-01-10 Pedro Alves <palves@redhat.com>
14907 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14908 * inferior.c (uiout_field_connection): New function.
14909 (print_inferior): Add new "connection-id" column.
14910 (add_inferior_command): Show connection number/string of added
14912 * process-stratum-target.h
14913 (process_stratum_target::connection_string): New virtual method.
14914 (process_stratum_target::connection_number): New field.
14915 * remote.c (remote_target::connection_string): New override.
14916 * target-connection.c: New file.
14917 * target-connection.h: New file.
14918 * target.c (decref_target): Remove process_stratum targets from
14919 the connection list.
14920 (target_stack::push): Add process_stratum targets to the
14923 2020-01-10 Pedro Alves <palves@redhat.com>
14926 2016-04-12 Pedro Alves <palves@redhat.com>
14927 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14928 Remove references to name.
14929 * serial.h (struct serial) <name>: Delete.
14931 2020-01-10 Pedro Alves <palves@redhat.com>
14933 * gdbarch-selftests.c (register_to_value_test): Remove "target
14934 already pushed" check.
14936 2020-01-10 Pedro Alves <palves@redhat.com>
14937 John Baldwin <jhb@FreeBSD.org>
14939 * aarch64-linux-nat.c
14940 (aarch64_linux_nat_target::thread_architecture): Adjust.
14941 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14942 (task_command_1): Likewise.
14943 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14944 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14945 (aix_thread_target::store_registers)
14946 (aix_thread_target::thread_alive): Adjust.
14947 * amd64-fbsd-tdep.c: Include "inferior.h".
14948 (amd64fbsd_get_thread_local_address): Pass down target.
14949 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14950 thread's gdbarch instead of target_gdbarch.
14951 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14952 get_last_target_status.
14953 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14954 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14956 (update_inserted_breakpoint_locations): Skip if inferiors with no
14958 (update_global_location_list): When handling moribund locations,
14959 find representative inferior for location's pspace, and use thread
14960 count of its process_stratum target.
14961 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14962 * bsd-uthread.c (bsd_uthread_target::wait): Use
14963 as_process_stratum_target and adjust thread_change_ptid and
14965 (bsd_uthread_target::update_thread_list): Use
14966 as_process_stratum_target and adjust find_thread_ptid,
14967 thread_change_ptid and add_thread calls.
14968 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14969 find_thread_ptid call.
14970 * corelow.c (add_to_thread_list): Adjust add_thread call.
14971 (core_target_open): Adjust add_thread_silent and thread_count
14973 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14974 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14975 * event-top.c (async_disconnect): Pop targets from all inferiors.
14976 * exec.c (add_target_sections): Push exec target on all inferiors
14977 sharing the program space.
14978 (remove_target_sections): Remove the exec target from all
14979 inferiors sharing the program space.
14980 (exec_on_vfork): New.
14981 * exec.h (exec_on_vfork): Declare.
14982 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14984 (fbsd_nat_target::update_thread_list): Adjust.
14985 (fbsd_nat_target::resume): Adjust.
14986 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14988 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14989 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14990 get_thread_arch_regcache call.
14991 * fork-child.c (gdb_startup_inferior): Pass target down to
14992 startup_inferior and set_executing.
14993 * gdbthread.h (struct process_stratum_target): Forward declare.
14994 (add_thread, add_thread_silent, add_thread_with_info)
14995 (in_thread_list): Add process_stratum_target parameter.
14996 (find_thread_ptid(inferior*, ptid_t)): New overload.
14997 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14999 (all_threads()): Delete overload.
15000 (all_threads, all_non_exited_threads): Add process_stratum_target
15002 (all_threads_safe): Use brace initialization.
15003 (thread_count): Add process_stratum_target parameter.
15004 (set_resumed, set_running, set_stop_requested, set_executing)
15005 (threads_are_executing, finish_thread_state): Add
15006 process_stratum_target parameter.
15007 (switch_to_thread): Use is_current_thread.
15008 * i386-fbsd-tdep.c: Include "inferior.h".
15009 (i386fbsd_get_thread_local_address): Pass down target.
15010 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15011 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15012 have_inferiors check.
15013 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15014 (inf_ptrace_target::attach): Adjust.
15015 * infcall.c (run_inferior_call): Adjust.
15016 * infcmd.c (run_command_1): Pass target to
15017 scoped_finish_thread_state.
15018 (proceed_thread_callback): Skip inferiors with no execution.
15019 (continue_command): Rename 'all_threads' local to avoid hiding
15020 'all_threads' function. Adjust get_last_target_status call.
15021 (prepare_one_step): Adjust set_running call.
15022 (signal_command): Use user_visible_resume_target. Compare thread
15023 pointers instead of inferior_ptid.
15024 (info_program_command): Adjust to pass down target.
15025 (attach_command): Mark target's 'thread_executing' flag.
15026 (stop_current_target_threads_ns): New, factored out from ...
15027 (interrupt_target_1): ... this. Switch inferior before making
15030 (struct all_inferiors_iterator, struct all_inferiors_range)
15031 (struct all_inferiors_safe_range)
15032 (struct all_non_exited_inferiors_range): Filter on
15033 process_stratum_target too. Remove explicit.
15034 * inferior.c (inferior::inferior): Push dummy target on target
15036 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15037 Add process_stratum_target parameter, and pass it down.
15038 (have_live_inferiors): Adjust.
15039 (switch_to_inferior_and_push_target): New.
15040 (add_inferior_command, clone_inferior_command): Handle
15041 "-no-connection" parameter. Use
15042 switch_to_inferior_and_push_target.
15043 (_initialize_inferior): Mention "-no-connection" option in
15044 the help of "add-inferior" and "clone-inferior" commands.
15045 * inferior.h: Include "process-stratum-target.h".
15046 (interrupt_target_1): Use bool.
15047 (struct inferior) <push_target, unpush_target, target_is_pushed,
15048 find_target_beneath, top_target, process_target, target_at,
15050 (discard_all_inferiors): Delete.
15051 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15052 (all_inferiors, all_non_exited_inferiors): Add
15053 process_stratum_target parameter.
15054 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15055 (target_last_proc_target): New global.
15056 (follow_fork_inferior): Push target on new inferior. Pass target
15057 to add_thread_silent. Call exec_on_vfork. Handle target's
15059 (follow_fork): Adjust get_last_target_status call. Also consider
15061 (follow_exec): Push target on new inferior.
15062 (struct execution_control_state) <target>: New field.
15063 (user_visible_resume_target): New.
15064 (do_target_resume): Call target_async.
15065 (resume_1): Set target's threads_executing flag. Consider resume
15067 (commit_resume_all_targets): New.
15068 (proceed): Also consider resume target. Skip threads of inferiors
15069 with no execution. Commit resumtion in all targets.
15070 (start_remote): Pass current inferior to wait_for_inferior.
15071 (infrun_thread_stop_requested): Consider target as well. Pass
15072 thread_info pointer to clear_inline_frame_state instead of ptid.
15073 (infrun_thread_thread_exit): Consider target as well.
15074 (random_pending_event_thread): New inferior parameter. Use it.
15075 (do_target_wait): Rename to ...
15076 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15078 (threads_are_resumed_pending_p, do_target_wait): New.
15079 (prepare_for_detach): Adjust calls.
15080 (wait_for_inferior): New inferior parameter. Handle it. Use
15081 do_target_wait_1 instead of do_target_wait.
15082 (fetch_inferior_event): Adjust. Switch to representative
15083 inferior. Pass target down.
15084 (set_last_target_status): Add process_stratum_target parameter.
15085 Save target in global.
15086 (get_last_target_status): Add process_stratum_target parameter and
15088 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15089 (context_switch): Check inferior_ptid == null_ptid before calling
15091 (get_inferior_stop_soon): Pass down target.
15092 (wait_one): Rename to ...
15093 (poll_one_curr_target): ... this.
15094 (struct wait_one_event): New.
15096 (stop_all_threads): Adjust.
15097 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15099 (switch_back_to_stepped_thread): Also consider target.
15100 (print_stop_event): Update.
15101 (normal_stop): Update. Also consider the resume target.
15102 * infrun.h (wait_for_inferior): Remove declaration.
15103 (user_visible_resume_target): New declaration.
15104 (get_last_target_status, set_last_target_status): New
15105 process_stratum_target parameter.
15106 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15107 process_stratum_target parameter, and use it.
15108 (clear_inline_frame_state (thread_info*)): New.
15109 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15110 process_stratum_target parameter.
15111 (clear_inline_frame_state (thread_info*)): Declare.
15112 * linux-fork.c (delete_checkpoint_command): Pass target down to
15114 (checkpoint_command): Adjust.
15115 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15116 instead of just tweaking inferior_ptid.
15117 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15118 (exit_lwp): Pass target down to find_thread_ptid.
15119 (attach_proc_task_lwp_callback): Pass target down to
15120 add_thread/set_running/set_executing.
15121 (linux_nat_target::attach): Pass target down to
15122 thread_change_ptid.
15123 (get_detach_signal): Pass target down to find_thread_ptid.
15124 Consider last target status's target.
15125 (linux_resume_one_lwp_throw, resume_lwp)
15126 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15127 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15128 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15129 (linux_nat_target::async_wait_fd): New.
15130 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15132 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15133 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15134 * linux-thread-db.c (struct thread_db_info::process_target): New
15136 (add_thread_db_info): Save target.
15137 (get_thread_db_info): New process_stratum_target parameter. Also
15139 (delete_thread_db_info): New process_stratum_target parameter.
15141 (thread_from_lwp): Adjust to pass down target.
15142 (thread_db_notice_clone): Pass down target.
15143 (check_thread_db_callback): Pass down target.
15144 (try_thread_db_load_1): Always push the thread_db target.
15145 (try_thread_db_load, record_thread): Pass target down.
15146 (thread_db_target::detach): Pass target down. Always unpush the
15148 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15149 target down. Always unpush the thread_db target.
15150 (find_new_threads_callback, thread_db_find_new_threads_2)
15151 (thread_db_target::update_thread_list): Pass target down.
15152 (thread_db_target::pid_to_str): Pass current inferior down.
15153 (thread_db_target::get_thread_local_address): Pass target down.
15154 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15156 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15157 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15158 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15159 (procfs_init_inferior): Rename to ...
15160 (procfs_target::procfs_init_inferior): ... this and adjust.
15161 (procfs_target::create_inferior, procfs_notice_thread)
15162 (procfs_do_thread_registers): Adjust.
15163 * ppc-fbsd-tdep.c: Include "inferior.h".
15164 (ppcfbsd_get_thread_local_address): Pass down target.
15165 * proc-service.c (ps_xfer_memory): Switch current inferior and
15166 program space as well.
15167 (get_ps_regcache): Pass target down.
15168 * process-stratum-target.c
15169 (process_stratum_target::thread_address_space)
15170 (process_stratum_target::thread_architecture): Pass target down.
15171 * process-stratum-target.h
15172 (process_stratum_target::threads_executing): New field.
15173 (as_process_stratum_target): New.
15174 * ravenscar-thread.c
15175 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15176 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15178 * record-btrace.c (record_btrace_target::info_record): Adjust.
15179 (record_btrace_target::record_method)
15180 (record_btrace_target::record_is_replaying)
15181 (record_btrace_target::fetch_registers)
15182 (get_thread_current_frame_id, record_btrace_target::resume)
15183 (record_btrace_target::wait, record_btrace_target::stop): Pass
15185 * record-full.c (record_full_wait_1): Switch to event thread.
15187 * regcache.c (regcache::regcache)
15188 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15189 process_stratum_target parameter and handle it.
15190 (current_thread_target): New global.
15191 (get_thread_regcache): Add process_stratum_target parameter and
15192 handle it. Switch inferior before calling target method.
15193 (get_thread_regcache): Pass target down.
15194 (get_thread_regcache_for_ptid): Pass target down.
15195 (registers_changed_ptid): Add process_stratum_target parameter and
15197 (registers_changed_thread, registers_changed): Pass target down.
15198 (test_get_thread_arch_aspace_regcache): New.
15199 (current_regcache_test): Define a couple local test_target_ops
15200 instances and use them for testing.
15201 (readwrite_regcache): Pass process_stratum_target parameter.
15202 (cooked_read_test, cooked_write_test): Pass mock_target down.
15203 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15204 (get_thread_arch_aspace_regcache): Add process_stratum_target
15206 (regcache::target): New method.
15207 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15208 (regcache::registers_changed_ptid): Add process_stratum_target
15210 (regcache::m_target): New field.
15211 (registers_changed_ptid): Add process_stratum_target parameter.
15212 * remote.c (remote_state::supports_vCont_probed): New field.
15213 (remote_target::async_wait_fd): New method.
15214 (remote_unpush_and_throw): Add remote_target parameter.
15215 (get_current_remote_target): Adjust.
15216 (remote_target::remote_add_inferior): Push target.
15217 (remote_target::remote_add_thread)
15218 (remote_target::remote_notice_new_inferior)
15219 (get_remote_thread_info): Pass target down.
15220 (remote_target::update_thread_list): Skip threads of inferiors
15221 bound to other targets. (remote_target::close): Don't discard
15222 inferiors. (remote_target::add_current_inferior_and_thread)
15223 (remote_target::process_initial_stop_replies)
15224 (remote_target::start_remote)
15225 (remote_target::remote_serial_quit_handler): Pass down target.
15226 (remote_target::remote_unpush_target): New remote_target
15227 parameter. Unpush the target from all inferiors.
15228 (remote_target::remote_unpush_and_throw): New remote_target
15229 parameter. Pass it down.
15230 (remote_target::open_1): Check whether the current inferior has
15231 execution instead of checking whether any inferior is live. Pass
15233 (remote_target::remote_detach_1): Pass down target. Use
15234 remote_unpush_target.
15235 (extended_remote_target::attach): Pass down target.
15236 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15237 (remote_target::append_resumption): Pass down target.
15238 (remote_target::append_pending_thread_resumptions)
15239 (remote_target::remote_resume_with_hc, remote_target::resume)
15240 (remote_target::commit_resume): Pass down target.
15241 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15242 (remote_target::interrupt_query)
15243 (remote_target::remove_new_fork_children)
15244 (remote_target::check_pending_events_prevent_wildcard_vcont)
15245 (remote_target::remote_parse_stop_reply)
15246 (remote_target::process_stop_reply): Pass down target.
15247 (first_remote_resumed_thread): New remote_target parameter. Pass
15249 (remote_target::wait_as): Pass down target.
15250 (unpush_and_perror): New remote_target parameter. Pass it down.
15251 (remote_target::readchar, remote_target::remote_serial_write)
15252 (remote_target::getpkt_or_notif_sane_1)
15253 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15255 (remote_target::mourn_inferior): Pass down target. Use
15256 remote_unpush_target.
15257 (remote_target::core_of_thread)
15258 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15259 (remote_target::pid_to_exec_file)
15260 (remote_target::thread_handle_to_thread_info): Pass down target.
15261 (remote_target::async_wait_fd): New.
15262 * riscv-fbsd-tdep.c: Include "inferior.h".
15263 (riscv_fbsd_get_thread_local_address): Pass down target.
15264 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15265 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15266 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15268 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15269 * solib-svr4.c (enable_break): Pass down target.
15270 * spu-multiarch.c (parse_spufs_run): Pass down target.
15271 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15272 * target-delegates.c: Regenerate.
15273 * target.c (g_target_stack): Delete.
15274 (current_top_target): Return the current inferior's top target.
15275 (target_has_execution_1): Refer to the passed-in inferior's top
15277 (target_supports_terminal_ours): Check whether the initial
15278 inferior was already created.
15279 (decref_target): New.
15280 (target_stack::push): Incref/decref the target.
15281 (push_target, push_target, unpush_target): Adjust.
15282 (target_stack::unpush): Defref target.
15283 (target_is_pushed): Return bool. Adjust to refer to the current
15284 inferior's target stack.
15285 (dispose_inferior): Delete, and inline parts ...
15286 (target_preopen): ... here. Only dispose of the current inferior.
15287 (target_detach): Hold strong target reference while detaching.
15289 (target_thread_name): Add assertion.
15290 (target_resume): Pass down target.
15291 (target_ops::beneath, find_target_at): Adjust to refer to the
15292 current inferior's target stack.
15293 (get_dummy_target): New.
15294 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15295 has a thread running.
15296 (initialize_targets): Rename to ...
15297 (_initialize_target): ... this.
15298 * target.h: Include "gdbsupport/refcounted-object.h".
15299 (struct target_ops): Inherit refcounted_object.
15300 (target_ops::shortname, target_ops::longname): Make const.
15301 (target_ops::async_wait_fd): New method.
15302 (decref_target): Declare.
15303 (struct target_ops_ref_policy): New.
15304 (target_ops_ref): New typedef.
15305 (get_dummy_target): Declare function.
15306 (target_is_pushed): Return bool.
15307 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15308 (all_matching_threads_iterator::all_matching_threads_iterator):
15309 Handle filter target.
15310 * thread-iter.h (struct all_matching_threads_iterator, struct
15311 all_matching_threads_range, class all_non_exited_threads_range):
15312 Filter by target too. Remove explicit.
15313 * thread.c (threads_executing): Delete.
15314 (inferior_thread): Pass down current inferior.
15315 (clear_thread_inferior_resources): Pass down thread pointer
15317 (add_thread_silent, add_thread_with_info, add_thread): Add
15318 process_stratum_target parameter. Use it for thread and inferior
15320 (is_current_thread): New.
15321 (thread_info::deletable): Use it.
15322 (find_thread_ptid, thread_count, in_thread_list)
15323 (thread_change_ptid, set_resumed, set_running): New
15324 process_stratum_target parameter. Pass it down.
15325 (set_executing): New process_stratum_target parameter. Pass it
15326 down. Adjust reference to 'threads_executing'.
15327 (threads_are_executing): New process_stratum_target parameter.
15328 Adjust reference to 'threads_executing'.
15329 (set_stop_requested, finish_thread_state): New
15330 process_stratum_target parameter. Pass it down.
15331 (switch_to_thread): Also match inferior.
15332 (switch_to_thread): New process_stratum_target parameter. Pass it
15334 (update_threads_executing): Reimplement.
15335 * top.c (quit_force): Pop targets from all inferior.
15336 (gdb_init): Don't call initialize_targets.
15337 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15339 (windows_add_thread, windows_delete_thread): Adjust.
15340 (get_windows_debug_event): Rename to ...
15341 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15342 * tracefile-tfile.c (tfile_target_open): Pass down target.
15343 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15345 (switch_to_thread): Add process_stratum_target parameter.
15346 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15348 (mi_on_resume): Pass target down.
15349 * nat/fork-inferior.c (startup_inferior): Add
15350 process_stratum_target parameter. Pass it down.
15351 * nat/fork-inferior.h (startup_inferior): Add
15352 process_stratum_target parameter.
15353 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15355 2020-01-10 Pedro Alves <palves@redhat.com>
15357 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15358 directly. Instead find the first thread in the thread list and
15359 use switch_to_thread.
15361 2020-01-10 Pedro Alves <palves@redhat.com>
15363 * remote.c (remote_target::remote_add_inferior): Don't bind a
15364 process to the current inferior if the current inferior is already
15365 bound to a process.
15367 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15368 Pedro Alves <palves@redhat.com>
15370 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15371 If no process is specified, return null_ptid instead of
15373 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15374 TARGET_WAITKIND_SIGNALLED with no pid.
15376 2020-01-10 Pedro Alves <palves@redhat.com>
15378 * remote.c (first_remote_resumed_thread): New.
15379 (remote_target::wait_as): Use it as default event_ptid instead of
15382 2020-01-10 Pedro Alves <palves@redhat.com>
15384 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15386 2020-01-10 Pedro Alves <palves@redhat.com>
15388 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15391 2020-01-10 Pedro Alves <palves@redhat.com>
15393 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15394 ptid to get_last_target_status.
15395 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15396 ptid to get_last_target_status.
15397 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15398 get_last_target_status.
15399 (info_program_command): Don't pass a target_waitstatus to
15400 get_last_target_status.
15401 * infrun.c (init_wait_for_inferior): Use
15402 nullify_last_target_wait_ptid.
15403 (get_last_target_status): Handle nullptr arguments.
15404 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15405 (print_stop_event): Don't pass a ptid to get_last_target_status.
15406 (normal_stop): Don't pass a ptid to get_last_target_status.
15407 * infrun.h (get_last_target_status, set_last_target_status): Move
15408 comments here and update.
15409 (nullify_last_target_wait_ptid): Declare.
15410 * linux-fork.c (fork_load_infrun_state): Remove local extern
15411 declaration of nullify_last_target_wait_ptid.
15412 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15413 to get_last_target_status.
15415 2020-01-10 Pedro Alves <palves@redhat.com>
15417 * gdbthread.h (scoped_restore_current_thread)
15418 <dont_restore, restore, m_dont_restore>: Declare.
15419 * thread.c (thread_alive): Add assertion. Return bool.
15420 (switch_to_thread_if_alive): New.
15421 (prune_threads): Switch inferior/thread.
15422 (print_thread_info_1): Switch thread before calling target methods.
15423 (scoped_restore_current_thread::restore): New, factored out from
15425 (scoped_restore_current_thread::~scoped_restore_current_thread):
15427 (scoped_restore_current_thread::scoped_restore_current_thread):
15429 (thread_apply_all_command, thread_select): Use
15430 switch_to_thread_if_alive.
15431 * infrun.c (proceed, restart_threads, handle_signal_stop)
15432 (switch_back_to_stepped_thread): Switch current thread before
15433 calling target methods.
15435 2020-01-10 Pedro Alves <palves@redhat.com>
15437 * inferior.c (switch_to_inferior_no_thread): New function,
15438 factored out from ...
15439 (inferior_command): ... here.
15440 * inferior.h (switch_to_inferior_no_thread): Declare.
15441 * mi/mi-main.c (run_one_inferior): Use
15442 switch_to_inferior_no_thread.
15444 2020-01-10 Pedro Alves <palves@redhat.com>
15446 * infcmd.c (kill_command): Remove dead code.
15448 2020-01-10 Pedro Alves <palves@redhat.com>
15450 * remote.c (remote_target::mourn_inferior): No longer check
15451 whether the target is running.
15453 2020-01-10 Pedro Alves <palves@redhat.com>
15455 * corelow.c (core_target::has_execution): Change parameter type to
15457 * inferior.c (number_of_live_inferiors): Use
15458 inferior::has_execution instead of target_has_execution_1.
15459 * inferior.h (inferior::has_execution): New.
15460 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15461 inferior::has_execution instead of target_has_execution_1.
15462 * process-stratum-target.c
15463 (process_stratum_target::has_execution): Change parameter type to
15464 inferior pointer. Check the inferior's PID instead of
15466 * process-stratum-target.h
15467 (process_stratum_target::has_execution): Change parameter type to
15469 * record-full.c (record_full_core_target::has_execution): Change
15470 parameter type to inferior pointer.
15471 * target.c (target_has_execution_1): Change parameter type to
15473 (target_has_execution_current): Adjust.
15474 * target.h (target_ops::has_execution): Change parameter type to
15476 (target_has_execution_1): Change parameter type to inferior
15477 pointer. Change return type to bool.
15478 * tracefile.h (tracefile_target::has_execution): Change parameter
15479 type to inferior pointer.
15481 2020-01-10 Pedro Alves <palves@redhat.com>
15483 * exceptions.c (print_flush): Remove current_top_target() check.
15485 2020-01-10 Pedro Alves <palves@redhat.com>
15487 * remote.c (show_remote_exec_file): Show the current inferior's
15488 exec-file instead of the command variable's value.
15490 2020-01-10 Pedro Alves <palves@redhat.com>
15492 * record-full.c (record_full_resume_ptid): New global.
15493 (record_full_target::resume): Set it.
15494 (record_full_wait_1): Use record_full_resume_ptid instead of
15497 2020-01-10 Pedro Alves <palves@redhat.com>
15499 * gdbthread.h (scoped_restore_current_thread)
15500 <dont_restore, restore, m_dont_restore>: Declare.
15501 * thread.c (thread_alive): Add assertion. Return bool.
15502 (switch_to_thread_if_alive): New.
15503 (prune_threads): Switch inferior/thread.
15504 (print_thread_info_1): Switch thread before calling target methods.
15505 (scoped_restore_current_thread::restore): New, factored out from
15507 (scoped_restore_current_thread::~scoped_restore_current_thread):
15509 (scoped_restore_current_thread::scoped_restore_current_thread):
15511 (thread_apply_all_command, thread_select): Use
15512 switch_to_thread_if_alive.
15514 2020-01-10 George Barrett <bob@bob131.so>
15516 * stap-probe.c (stap_modify_semaphore): Don't check for null
15518 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15519 for null semaphores.
15521 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15523 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15524 all source windows, and maintain horizontal scroll status while
15527 2020-01-09 Tom Tromey <tom@tromey.com>
15530 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15531 update_source_window, not print_source_lines.
15533 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15535 * tui/tui.c (tui_enable): Register tui hooks after calling
15538 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15540 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15542 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15544 * thread.c (print_thread_info_1): Fix indentation.
15546 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15548 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15549 unique_xmalloc_ptr outside the if to always free the demangled name.
15551 2020-01-08 Tom Tromey <tromey@adacore.com>
15553 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15554 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15555 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15556 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15558 (section_offsets): New typedef.
15559 * symtab.c (fixup_section, get_msymbol_address): Update.
15560 * symmisc.c (dump_msymbols): Update.
15561 * symfile.h (relative_addr_info_to_section_offsets)
15562 (symfile_map_offsets_to_segments): Update.
15563 * symfile.c (build_section_addr_info_from_objfile)
15564 (init_objfile_sect_indices): Update.
15565 (struct place_section_arg): Change type of "offsets".
15566 (place_section): Update.
15567 (relative_addr_info_to_section_offsets): Change type of
15568 "section_offsets". Remove "num_sections" parameter.
15569 (default_symfile_offsets, syms_from_objfile_1)
15570 (set_objfile_default_section_offset): Update.
15571 (reread_symbols): No need to preserve section offsets by hand.
15572 (symfile_map_offsets_to_segments): Change type of "offsets".
15573 * stap-probe.c (relocate_address): Update.
15574 * stabsread.h (process_one_symbol): Update.
15575 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15576 (solib_target_relocate_section_addresses): Update.
15577 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15579 * solib-frv.c (frv_relocate_main_executable): Update.
15580 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15581 * solib-aix.c (solib_aix_get_section_offsets): Change return
15583 (solib_aix_solib_create_inferior_hook): Update.
15584 * remote.c (remote_target::get_offsets): Update.
15585 * psymtab.c (find_pc_sect_psymtab): Update.
15586 * psympriv.h (struct partial_symbol) <address, text_low,
15587 text_high>: Update.
15588 * objfiles.h (obj_section_offset): Update.
15589 (struct objfile) <section_offsets>: Change type.
15590 <num_sections>: Remove.
15591 (objfile_relocate): Update.
15592 * objfiles.c (entry_point_address_query): Update
15593 (relocate_one_symbol): Change type of "section_offsets".
15594 (objfile_relocate1, objfile_relocate1): Change type of
15596 (objfile_rebase1): Update.
15597 * mipsread.c (mipscoff_symfile_read): Update.
15598 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15600 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15601 (parse_external, psymtab_to_symtab_1): Update.
15602 * machoread.c (macho_symfile_offsets): Update.
15603 * ia64-tdep.c (ia64_find_unwind_table): Update.
15604 * hppa-tdep.c (read_unwind_info): Update.
15605 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15606 * dwarf2read.c (create_addrmap_from_index)
15607 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15608 (process_psymtab_comp_unit_reader, add_partial_symbol)
15609 (add_partial_subprogram, process_full_comp_unit)
15610 (read_file_scope, read_func_scope, read_lexical_block_scope)
15611 (read_call_site_scope, dwarf2_rnglists_process)
15612 (dwarf2_ranges_process, dwarf2_ranges_read)
15613 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15614 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15616 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15618 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15619 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15620 (process_one_symbol): Change type of "section_offsets".
15621 * ctfread.c (get_objfile_text_range): Update.
15622 * coffread.c (coff_symtab_read, enter_linenos)
15623 (process_coff_symbol): Update.
15624 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15625 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15627 2020-01-08 Tom Tromey <tromey@adacore.com>
15629 * dwarf2read.c (parse_macro_definition): Use std::string.
15630 (parse_macro_definition): Likewise.
15632 2020-01-08 Tom Tromey <tromey@adacore.com>
15634 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15635 (ATTR_ALLOC_CHUNK): Remove.
15637 2020-01-08 Tom Tromey <tromey@adacore.com>
15639 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15641 2020-01-08 Tom Tromey <tromey@adacore.com>
15643 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15644 (dwarf2_compute_name, open_dwo_file): Likewise.
15645 (process_enumeration_scope): Use std::vector.
15646 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15647 (partial_die_info::fixup, dwarf2_start_subfile)
15648 (guess_full_die_structure_name, dwarf2_name): Likewise.
15649 (determine_prefix): Update.
15650 (guess_full_die_structure_name): Make return type const.
15651 (partial_die_full_name): Return unique_xmalloc_ptr.
15652 (DW_FIELD_ALLOC_CHUNK): Remove.
15654 2020-01-07 Tom Tromey <tromey@adacore.com>
15657 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15659 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15661 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15663 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15665 * stack.c (print_frame_info): Move disassemble_next_line code
15666 inside source_print block.
15668 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15670 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15671 gdb/signals.h, as we are now using native signal symbols.
15673 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15675 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15676 overflow by an early check of content vs threshold.
15677 * tui/tui-source.c (tui_source_window::line_is_displayed):
15680 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15682 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15684 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15686 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15687 export table if no section contains it's RVA.
15689 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15691 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15693 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15695 * source.c (print_source_lines_base): Set last_line_listed.
15697 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15699 * tui/tui-disasm.c: Remove trailing spaces.
15701 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15702 Pedro Alves <palves@redhat.com>
15704 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15705 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15706 (windows_gdb_signal_to_target): New function, uses the above
15707 enumeration to convert GDB internal signal codes to equivalent
15709 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15710 * windows-nat.c: Include "gdb_wait.h".
15711 (get_windows_debug_event): Extract the fatal exception from the
15712 exit status and convert to the equivalent Posix signal number.
15713 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15714 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15715 * gdbsupport/gdb_wait.c: New file, implements
15716 windows_status_to_termsig.
15717 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15718 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15720 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15722 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15725 2020-01-05 Luis Machado <luis.machado@linaro.org>
15727 * aarch64-linux-nat.c
15728 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15729 and bfd_mach_aarch64.
15731 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15733 * ui-file.c (stdio_file::can_emit_style_escape)
15734 (tee_file::can_emit_style_escape): Ensure style is used also on
15735 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15737 * main.c (set_gdb_data_directory): Use file style to output the
15738 warning that the given pathname is not a directory.
15739 * top.c (show_history_filename, gdb_safe_append_history)
15740 (show_gdb_datadir): Use file style.
15742 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15744 * solib-target.c (struct lm_info_target):
15745 Change offsets to be a unique_xmalloc_ptr.
15746 (solib_target_relocate_section_addresses): Update.
15748 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15750 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15752 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15754 * MAINTAINERS (Write After Approval): Add myself.
15756 2020-01-02 Luis Machado <luis.machado@linaro.org>
15758 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15759 Cell BE architecture.
15760 * target.h (struct target_ops) <thread_architecture>: Likewise.
15762 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15764 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15766 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15768 * MAINTAINERS (Write After Approval): Add myself.
15770 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15772 * gdbarch.sh: Update copyright year range of generated files.
15774 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15776 Update copyright year range in all GDB files.
15778 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15780 * copyright.py: Convert to Python 3.
15782 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15784 * copyright.py: Adapt after move of gnulib directory from gdb
15785 directory to toplevel directory.
15787 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15789 * copyright.py (main): Exit if run from the wrong directory.
15791 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15793 * top.c (print_gdb_version): Change copyright year to 2020.
15795 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15797 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15799 For older changes see ChangeLog-2019.
15805 version-control: never