[gdb/testsuite] Fix section matching in find_pc_sect_compunit_symtab
[binutils-gdb.git] / gdb / ChangeLog
1 2020-10-27 Tom de Vries <tdevries@suse.de>
2
3 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
4 symbols in section check.
5
6 2020-10-27 Tom de Vries <tdevries@suse.de>
7
8 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
9
10 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11
12 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
13 * breakpoint.c: Update the help text of the 'condition' and 'break'
14 commands.
15 (set_breakpoint_condition): Take a new bool parameter
16 to control whether condition definition should be forced even when
17 the condition expression is invalid in all of the current locations.
18 (condition_command): Update the call to 'set_breakpoint_condition'.
19 (find_condition_and_thread): Take the "-force-condition" flag into
20 account.
21 * linespec.c (linespec_keywords): Add "-force-condition" as an
22 element.
23 (FORCE_KEYWORD_INDEX): New #define.
24 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
25 as a keyword.
26 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
27 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
28 * python/py-breakpoint.c (bppy_set_condition): Ditto.
29 * NEWS: Mention the changes to the 'break' and 'condition' commands.
30
31 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
32
33 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
34 * breakpoint.c (set_breakpoint_location_condition): New function.
35 (set_breakpoint_condition): Disable a breakpoint location if parsing
36 the condition string gives an error.
37 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
38 (build_target_condition_list): Ditto.
39 (build_target_command_list): Ditto.
40 (build_bpstat_chain): Ditto.
41 (print_one_breakpoint_location): Ditto.
42 (print_one_breakpoint): Ditto.
43 (breakpoint_1): Ditto.
44 (bp_location::bp_location): Ditto.
45 (locations_are_equal): Ditto.
46 (update_breakpoint_locations): Ditto.
47 (enable_disable_bp_num_loc): Ditto.
48 (init_breakpoint_sal): Use set_breakpoint_location_condition.
49 (find_condition_and_thread_for_sals): New static function.
50 (create_breakpoint): Call find_condition_and_thread_for_sals.
51 (location_to_sals): Call find_condition_and_thread_for_sals instead
52 of find_condition_and_thread.
53
54 2020-10-26 Tom de Vries <tdevries@suse.de>
55
56 * dwarf2/read.c (process_full_comp_unit): Call
57 dwarf2_find_base_address.
58
59 2020-10-26 Tom Tromey <tromey@adacore.com>
60
61 * gdbtypes.c (create_range_type): Revert previous patch. Add
62 comment.
63
64 2020-10-26 Pedro Alves <pedro@palves.net>
65
66 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
67 (my_waitpid): Use gdb::handle_eintr.
68
69 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * acinclude.m4: Update ptrace.m4 path.
72 * ptrace.m4: Moved to gdbsupport.
73
74 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
75
76 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
77 instead of target_gdbarch.
78
79 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
80
81 * jit.c (jit_reader_load_command): Pass current inferior.
82 (jit_inferior_init): Change parameter type to inferior, use it.
83 (jit_inferior_created): Remove.
84 (jit_inferior_created_hook): Pass inferior parameter down.
85 (_initialize_jit): Use jit_inferior_created_hook instead of
86 jit_inferior_created.
87 * jit.h (jit_inferior_created_hook): Add inferior parameter.
88 * infrun.c (follow_exec): Pass inferior to
89 jit_inferior_created_hook.
90
91 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
92
93 * linux-thread-db.c (check_pid_namespace_match): Add inferior
94 parameter and use it.
95 (thread_db_inferior_created): Pass inferior argument.
96
97 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
98
99 * aix-thread.c (aix_thread_inferior_created): Add inferior
100 parameter.
101 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
102 * dummy-frame.c (cleanup_dummy_frames): Likewise.
103 * jit.c (jit_inferior_created): Likewise.
104 * linux-thread-db.c (thread_db_inferior_created): Likewise.
105 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
106 * observable.h (inferior_created): Likewise.
107 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
108 * symfile-mem.c (add_vsyscall_page): Likewise.
109 * infcmd.c (post_create_inferior): Pass inferior argument.
110
111 2020-10-24 Joel Brobecker <brobecker@adacore.com>
112
113 GDB 10.1 released.
114
115 2020-10-23 Joel Brobecker <brobecker@adacore.com>
116
117 * ada-typeprint.c (ada_print_type): Remove superfluous second call
118 to ada_check_typedef.
119
120 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * f-exp.y (f_parse): Rename to...
123 (f_language::parser): ...this.
124 * f-lang.c (f_get_encoding): Rename to...
125 (f_language::get_encoding): ...this.
126 (f_op_print_tab): Rename to...
127 (f_language::op_print_tab): ...this.
128 (exp_descriptor_f): Rename to...
129 (f_language::exp_descriptor_tab): ...this.
130 (class f_language): Moved to f-lang.h.
131 (f_language::language_arch_info): New function, moved out of class
132 declaration.
133 (f_language::search_name_hash): Likewise.
134 (f_language::lookup_symbol_nonlocal): Likewise.
135 (f_language::get_symbol_name_matcher_inner): Likewise.
136 * f-lang.h: Add 'valprint.h' include.
137 (class f_language): Moved here from f-lang.c.
138 * f-typeprint.c (f_type_print_args): Delete commented out
139 declaration.
140 (f_print_typedef): Rename to...
141 (f_language::print_typedef): ...this.
142 (f_print_type): Rename to...
143 (f_language::print_type): ...this.
144 (f_type_print_varspec_prefix): Delete declaration and rename to...
145 (f_language::f_type_print_varspec_prefix): ...this.
146 (f_type_print_varspec_suffix): Delete declaration and rename to...
147 (f_language::f_type_print_varspec_suffix): ...this.
148 (f_type_print_base): Delete declaration and rename to...
149 (f_language::f_type_print_base): ...this.
150 * f-valprint.c (f_value_print_inner): Rename to...
151 (f_language::value_print_inner): ...this.
152 * parse.c: Delete 'f-lang.h' include.
153
154 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * language.h (language_defn::print_type): Add variable names in
157 declaration, and update header comment.
158
159 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * ada-lang.c (ada_language::demangle): Rename to...
162 (ada_language::demangle_symbol): ...this.
163 * c-lang.c (cplus_language::demangle): Rename to...
164 (cplus_language::demangle_symbol): ...this.
165 * d-lang.c (d_language::demangle): Rename to...
166 (d_language::demangle_symbol): ...this.
167 * f-lang.c (f_language::demangle): Rename to...
168 (f_language::demangle_symbol): ...this.
169 * go-lang.c (go_language::demangle): Rename to...
170 (go_language::demangle_symbol): ...this.
171 * language.c (language_demangle): Update call to demangle_symbol.
172 (auto_or_unknown_language::demangle): Rename to...
173 (auto_or_unknown_language::demangle_symbol): ...this.
174 * language.h (language_defn::demangle): Rename to...
175 (language_defn::demangle_symbol): ...this.
176 * objc-lang.c (objc_language::demangle): Rename to...
177 (objc_language::demangle_symbol): ...this.
178 * rust-lang.c (rust_language::demangle): Rename to...
179 (rust_language::demangle_symbol): ...this.
180
181 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
184 (iterate_over_file_blocks): Replace use of macro with the macros
185 definition.
186
187 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
190 * valprint.c (maybe_print_array_index): Replace use of macro with
191 the macros definition.
192
193 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * ada-lang.c (ada_language::print_array_index): Call value_print
196 directly.
197 * language.c (language_defn::print_array_index): Likewise.
198 * language.h (LA_VALUE_PRINT): Delete.
199 * valprint.c (value_print): Call value_print on the
200 current_language directly.
201
202 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * language.h (LA_PRINT_TYPEDEF): Delete.
205 * typeprint.c (typedef_print): Call print_typedef directly on the
206 current_language object.
207
208 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
209
210 * m2-exp.y (m2_parse): Rename to...
211 (m2_language::parser): ...this. Update function signature.
212 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
213 (m2_op_print): Rename to...
214 (m2_language::op_print_tab): ...this, and make const.
215 (exp_descriptor_modula2): Rename to...
216 (m2_language::exp_descriptor_modula2): ...this.
217 (class m2_language): Move to m2-lang.h.
218 (m2_language::language_arch_info): New function, moved out of
219 class declaration.
220 (m2_language::printchar): New function, body from m2_printchar.
221 (m2_language::printstr): New function, moved out of class
222 declaration.
223 (m2_language::emitchar): Likewise.
224 * m2-lang.h (m2_parse): Delete declaration.
225 (m2_print_typedef): Delete declaration.
226 (m2_value_print_inner): Delete declaration.
227 (class m2_language): Class declaration moved from m2-lang.c,
228 larger functions are left in m2-lang.c.
229 * m2-typeprint.c (m2_print_typedef): Rename to...
230 (m2_language::print_typedef): ...this, and update function
231 signature.
232 * m2-valprint.c (m2_value_print_inner): Rename to...
233 (m2_language::value_print_inner): ...this, replace use of
234 LA_PRINT_STRING with a direct call to printstr member function,
235 and update recursive call.
236
237 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * language.c (default_is_string_type_p): Delete, implementation
240 moved into auto_or_unknown_language::is_string_type_p.
241 (unk_op_print_tab): Moved into
242 auto_or_unknown_language::opcode_print_table.
243 (unknown_language_arch_info): Delete, implementation moved into
244 auto_or_unknown_language::language_arch_info.
245 (class auto_or_unknown_language): New class, member functions
246 copied from unknown_language class, with some updates.
247 (class unknown_language): Most member functions moved into
248 auto_or_unknown_language class. Inherit from
249 auto_or_unknown_language class.
250 (class auto_language): Inherit from auto_or_unknown_language.
251 Delete most member functions.
252
253 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
254
255 * stabsread.c (read_member_functions): Remove gdb_assert.
256
257 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
258
259 * gdbtypes.c (init_complex_type): Check target type name.
260
261 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * target-debug.h (target_debug_print_struct_target_ops_p):
264 Remove.
265 (target_debug_print_async_callback_ftype_p): Remove.
266 (target_debug_print_struct_trace_state_variable_p): Remove.
267 (target_debug_print_struct_traceframe_info_p): Remove.
268 (target_debug_print_VEC__btrace_block_s__pp): Remove.
269 (target_debug_print_enum_btrace_format): Remove.
270 (target_debug_print_enum_info_proc_what): Remove.
271 (target_debug_print_thread_info_pp): Remove.
272
273 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
274
275 * target.h (struct target_ops) <make_corefile_notes>:
276 Change return type to unique pointer.
277 * target.c (dummy_make_corefile_notes): Likewise.
278 * exec.c (struct exec_target) <make_corefile_notes>:
279 Likewise.
280 (exec_target::make_corefile_notes): Likewise.
281 * procfs.c (class procfs_target) <make_corefile_notes>:
282 Likewise.
283 (procfs_do_thread_registers): Adjust to unique pointer.
284 (struct procfs_corefile_thread_data): Add constructor.
285 <note_data>: Change type to unique pointer.
286 (procfs_corefile_thread_callback): Adjust to unique pointer.
287 (procfs_target::make_corefile_notes): Change return type to
288 unique pointer.
289 * target-delegates.c: Re-generate.
290 * gcore.c (write_gcore_file_1): Adjust.
291 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
292 New.
293
294 2020-10-22 Tom de Vries <tdevries@suse.de>
295
296 * block.c (find_block_in_blockvector): Make sure the returned block
297 contains pc.
298
299 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
300
301 PR gdb/26693
302 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
303 parameter.
304 (load_cu): Pass existing CU.
305 (process_imported_unit_die): Likewise.
306 (follow_die_offset): Likewise.
307
308 2020-10-22 Luis Machado <luis.machado@linaro.org>
309
310 * corelow.c (core_target::xfer_partial): Also check for an empty
311 m_core_unavailable_mappings vector.
312
313 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
316 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
317 * f-exp.y (arglist): Allow for a series of subranges.
318 (subrange): Add cases for subranges with strides.
319 * f-lang.c (value_f90_subarray): Catch use of array strides and
320 throw an error.
321 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
322
323 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * expprint.c (print_subexp_standard): Change enum range_type to
326 range_flag and rename variables to match.
327 (dump_subexp_body_standard): Likewise.
328 * expression.h (enum range_type): Rename to...
329 (enum range_flag): ...this.
330 (range_types): Rename to...
331 (range_flags): ...this.
332 * f-lang.c (value_f90_subarray): Change enum range_type to
333 range_flag and rename variables to match.
334 * parse.c (operator_length_standard): Likewise.
335 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
336 range_type to range_flag.
337 * rust-lang.c (rust_evaluate_funcall): Likewise.
338 (rust_range): Likewise.
339 (rust_compute_range): Likewise.
340 (rust_subscript): Likewise.
341
342 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * expprint.c (print_subexp_standard): Update to reflect changes to
345 enum range_type.
346 (dump_subexp_body_standard): Likewise.
347 * expression.h (enum range_type): Convert to a bit field enum, and
348 make the enum unsigned.
349 * f-exp.y (subrange): Update to reflect changes to enum
350 range_type.
351 * f-lang.c (value_f90_subarray): Likewise.
352 * parse.c (operator_length_standard): Likewise.
353 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
354 * rust-lang.c (rust_range): Likewise.
355 (rust_compute_range): Likewise.
356 (rust_subscript): Likewise.
357
358 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
359
360 * infrun.c (displaced_step_in_progress_thread): Fix comment.
361 (displaced_step_in_progress): Fix comment.
362
363 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * gdbarch.sh (make_corefile_notes): Return unique pointer.
366 * gdbarch.c: Re-generate.
367 * gdbarch.h: Re-generate.
368 * gcore.c (write_gcore_file_1): Adjust.
369 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
370 constructor.
371 <note_data>: Change type to unique pointer.
372 <abort_iteration>: Change type to bool.
373 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
374 (fbsd_collect_thread_registers): Return void, adjust.
375 (struct fbsd_corefile_thread_data): Add construtor.
376 <note_data>: Change type to unique pointer.
377 (fbsd_corefile_thread): Adjust.
378 (fbsd_make_corefile_notes): Return unique pointer, adjust.
379 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
380 to unique pointer, adjust.
381 (struct linux_collect_regset_section_cb_data): Add constructor.
382 <note_data>: Change type to unique pointer.
383 <abort_iteration>: Change type to bool.
384 (linux_collect_thread_registers): Return void, adjust.
385 (struct linux_corefile_thread_data): Add constructor.
386 <note_data>: Change type to unique pointer.
387 (linux_corefile_thread): Adjust.
388 (linux_make_corefile_notes): Return unique pointer, adjust.
389
390 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
391
392 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
393 * gdbarch.c: Re-generate.
394 * gdbarch.h: Re-generate.
395 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
396 bool.
397 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
398 Likewise.
399 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
400 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
401 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
402 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
403
404 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * gdbarch.sh: Make generated predicates return bool.
407 * gdbarch.c: Re-generate.
408 * gdbarch.h: Re-generate.
409
410 2020-10-20 Tom Tromey <tom@tromey.com>
411
412 * varobj-iter.h (struct varobj_item): Remove typedef.
413
414 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * infrun.c (currently_stepping): Change int to bool
417 (maybe_software_singlestep): Likewise.
418 (show_stop_on_solib_events): Likewise.
419 (stepping_past_nonsteppable_watchpoint): Likewise.
420 (displaced_step_in_progress_any_inferior): Likewise.
421 (displaced_step_in_progress_thread): Likewise.
422 (keep_going_stepped_thread): Likewise.
423 (thread_still_needs_step_over): Likewise.
424 (start_step_over): Likewise.
425 (do_target_resume): Likewise.
426 (resume_1): Likewise.
427 (clear_proceed_status): Likewise.
428 (thread_still_needs_step_over_bp): Likewise.
429 (proceed): Likewise.
430 (switch_back_to_stepped_thread): Likewise.
431 (adjust_pc_after_break): Likewise.
432 (stepped_in_from): Likewise.
433 (handle_stop_requested): Likewise.
434 (handle_syscall_event): Likewise.
435 (handle_no_resumed): Likewise.
436 (handle_inferior_event): Likewise.
437 (finish_step_over): Likewise.
438 (handle_signal_stop): Likewise.
439 (process_event_stop_test): Likewise.
440
441 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * infrun.c (get_displaced_stepping_state): Fix comment.
444
445 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
446
447 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
448
449 2020-10-19 Tom Tromey <tromey@adacore.com>
450
451 PR tui/26719
452 * tui/tui-winsource.h (struct tui_source_window_base)
453 <refresh_window>: Rename from refresh_pad.
454 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
455 Rename from refresh_pad.
456 (tui_source_window_base::show_source_content)
457 (tui_source_window_base::do_scroll_horizontal): Update.
458
459 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460
461 * thread.c (_initialize_thread): Fine-tune the help text of
462 'info threads'.
463
464 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465
466 * frame.c: Remove the unused 'uinteger_option_def' type alias.
467
468 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
469
470 * breakpoint.c (handle_jit_event): Add an argument, change how
471 `jit_event_handler` is called.
472
473 2020-10-17 Tom Tromey <tom@tromey.com>
474
475 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
476 (scan_xcoff_symtab): Update.
477 * psymtab.h (class psymtab_storage) <global_psymbols,
478 static_psymbols, current_global_psymbols,
479 current_static_psymbols>: Remove.
480 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
481 (match_partial_symbol, lookup_partial_symbol): Update.
482 (print_partial_symbols): Change parameters.
483 (dump_psymtab, recursively_search_psymtabs)
484 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
485 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
486 (concat): Remove.
487 (end_psymtab_common): Simplify.
488 (append_psymbol_to_list): Change parameters.
489 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
490 (init_psymbol_list): Simplify.
491 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
492 * psympriv.h (struct partial_symtab) <empty>: New method.
493 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
494 Remove.
495 <global_psymbols, static_psymbols>: New members.
496 <add_psymbol>: New methods.
497 (add_psymbol_to_list): Don't declare.
498 (psymbol_placement): Move earlier.
499 * mdebugread.c (parse_partial_symbols): Update.
500 (handle_psymbol_enumerators): Change parameters.
501 (mdebug_expand_psymtab): Update.
502 * dwarf2/read.c (process_psymtab_comp_unit_reader)
503 (add_partial_symbol): Update.
504 * dwarf2/index-write.c (write_psymbols): Change parameters.
505 (write_one_signatured_type): Update.
506 (recursively_count_psymbols): Update.
507 (recursively_write_psymbols): Update.
508 (class debug_names) <recursively_write_psymbols>: Update.
509 <write_psymbols>: Change parameters.
510 <write_one_signatured_type>: Update.
511 * dbxread.c (read_dbx_symtab): Update.
512 (dbx_end_psymtab): Use partial_symtab::empty.
513 * ctfread.c (struct ctf_context) <pst>: New member.
514 (create_partial_symtab): Set it.
515 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
516 (scan_partial_symbols): Use the psymtab's context. Update.
517
518 2020-10-17 Tom Tromey <tom@tromey.com>
519
520 * valprint.c (generic_value_print): Remove comment.
521 * m2-valprint.c (m2_value_print_inner): Remove comment.
522 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
523 type.
524
525 2020-10-17 Tom de Vries <tdevries@suse.de>
526
527 PR symtab/26317
528 * source.c (select_source_symtab): Handling sal.symtab == NULL for
529 symbol main.
530
531 2020-10-14 Tom de Vries <tdevries@suse.de>
532
533 PR gdb/26733
534 * solib.c (solib_contains_address_p): Handle
535 'solib->sections == nullptr'.
536
537 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
538
539 PR gdb/26642
540 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
541 target can't do async.
542 * target.c (target_wait): Assert that we don't pass
543 TARGET_WNOHANG to a target that can't async.
544
545 2020-10-13 Kamil Rytarowski <n54@gmx.com>
546
547 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
548 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
549 * alpha-bsd-nat.c: Adjust include.
550 * alpha-bsd-tdep.h: Adjust comment.
551 * alpha-nbsd-tdep.c: Rename to ...
552 * alpha-netbsd-tdep.c: ... this, adjust include.
553 * amd64-nbsd-nat.c: Rename to ...
554 * amd64-netbsd-nat.c: ... this, adjust include.
555 * amd64-nbsd-tdep.c: Rename to ...
556 * amd64-netbsd-tdep.c: ... this, adjust include.
557 * amd64-tdep.h: Adjust include.
558 * arm-nbsd-nat.c: Rename to ...
559 * arm-netbsd-nat.c: ... this, adjust include.
560 * arm-nbsd-tdep.c: Rename to ...
561 * arm-netbsd-tdep.c: ... this, adjust include.
562 * arm-nbsd-tdep.h: Rename to ...
563 * arm-netbsd-tdep.h: ... this, adjust include.
564 * configure.nat: Adjust file lists.
565 * configure.tgt: Likewise.
566 * hppa-nbsd-nat.c: Rename to ...
567 * hppa-netbsd-nat.c: ... this, adjust include.
568 * hppa-nbsd-tdep.c: Rename to ...
569 * hppa-netbsd-tdep.c: ... this, adjust include.
570 * i386-nbsd-nat.c: Rename to ...
571 * i386-netbsd-nat.c: ... this, adjust include.
572 * i386-nbsd-tdep.c: Rename to ...
573 * i386-netbsd-tdep.c: ... this, adjust include.
574 * m68k-bsd-nat.c: Adjust include.
575 * mips-nbsd-nat.c: Rename to ...
576 * mips-netbsd-nat.c: ... this, adjust include.
577 * mips-nbsd-tdep.c: Rename to ...
578 * mips-netbsd-tdep.c: ... this, adjust include.
579 * mips-nbsd-tdep.h: Rename to ...
580 * mips-netbsd-tdep.h: ... this.
581 * nbsd-nat.c: Rename to ...
582 * netbsd-nat.c: ... this, adjust include.
583 * nbsd-nat.h: Rename to ...
584 * netbsd-nat.h: ... this, adjust include.
585 * nbsd-tdep.c: Rename to ...
586 * netbsd-tdep.c: ... this, adjust include.
587 * nbsd-tdep.h: Rename to ...
588 * netbsd-tdep.h: ... this.
589 * ppc-nbsd-nat.c: Rename to ...
590 * ppc-netbsd-nat.c: ... this, adjust include.
591 * ppc-nbsd-tdep.c: Rename to ...
592 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
593 * ppc-nbsd-tdep.h: Rename to ...
594 * ppc-netbsd-tdep.h: ... this.
595 * sh-nbsd-nat.c: Rename to ...
596 * sh-netbsd-nat.c: ... this, adjust include.
597 * sh-nbsd-tdep.c: Rename to ...
598 * sh-netbsd-tdep.c: ... this, adjust include.
599 * sparc-nbsd-nat.c: Rename to ...
600 * sparc-netbsd-nat.c: ... this.
601 * sparc-nbsd-tdep.c: Rename to ...
602 * sparc-netbsd-tdep.c: ... this, adjust include.
603 * sparc64-nbsd-nat.c: Rename to ...
604 * sparc64-netbsd-nat.c: ... this.
605 * sparc64-nbsd-tdep.c: Rename to ...
606 * sparc64-netbsd-tdep.c: ... this, adjust include.
607 * sparc64-tdep.h: Adjust comment.
608 * vax-bsd-nat.c: Adjust include.
609 * vax-nbsd-tdep.c: Rename to ...
610 * vax-netbsd-tdep.c: ... this, adjust include.
611
612 2020-10-12 Tom Tromey <tom@tromey.com>
613
614 * target.h (struct target_ops) <get_section_table>: Update.
615 (target_get_section_table): Update.
616 * target.c (target_get_section_table, target_section_by_addr)
617 (memory_xfer_partial_1): Update.
618 * target-section.h (target_section_table): Now an alias.
619 * target-delegates.c: Rebuild.
620 * target-debug.h (target_debug_print_target_section_table_p):
621 Rename from target_debug_print_struct_target_section_table_p.
622 * symfile.c (build_section_addr_info_from_section_table): Update.
623 * solib.c (solib_map_sections, solib_contains_address_p): Update.
624 * solib-svr4.c (scan_dyntag): Update.
625 * solib-dsbt.c (scan_dyntag): Update.
626 * remote.c (remote_target::remote_xfer_live_readonly_partial):
627 Update.
628 * record-full.c (record_full_core_target::xfer_partial): Update.
629 * progspace.h (struct program_space) <target_sections>: Update.
630 * exec.h (print_section_info): Update.
631 * exec.c (exec_target::close, build_section_table)
632 (add_target_sections, add_target_sections_of_objfile)
633 (remove_target_sections, exec_on_vfork)
634 (section_table_available_memory)
635 (section_table_xfer_memory_partial)
636 (exec_target::get_section_table, exec_target::xfer_partial)
637 (print_section_info, set_section_command)
638 (exec_set_section_address, exec_target::has_memory): Update.
639 * corelow.c (core_target::build_file_mappings)
640 (core_target::xfer_partial, core_target::info_proc_mappings)
641 (core_target::info_proc_mappings): Update.
642 * bfd-target.c (class target_bfd): Update
643
644 2020-10-12 Tom Tromey <tom@tromey.com>
645
646 * progspace.c (program_space::~program_space): Don't call
647 clear_section_table.
648 * exec.h (clear_section_table): Don't declare.
649 * exec.c (exec_target::close): Update.
650 (clear_section_table): Remove.
651
652 2020-10-12 Tom Tromey <tom@tromey.com>
653
654 * exec.c (add_target_sections_of_objfile): Simplify.
655
656 2020-10-12 Tom Tromey <tom@tromey.com>
657
658 * solib.c (solib_map_sections): Update.
659 * record-full.c (record_full_core_open_1): Update.
660 * exec.h (build_section_table): Return a target_section_table.
661 * exec.c (exec_file_attach): Update.
662 (build_section_table): Return a target_section_table.
663 * corelow.c (core_target::core_target): Update.
664 * bfd-target.c (target_bfd::target_bfd): Update.
665
666 2020-10-12 Tom Tromey <tom@tromey.com>
667
668 * target.c (target_section_by_addr, memory_xfer_partial_1):
669 Update.
670 * target-section.h (struct target_section_table): Use
671 std::vector.
672 * symfile.h (build_section_addr_info_from_section_table): Take a
673 target_section_table.
674 * symfile.c (build_section_addr_info_from_section_table): Take a
675 target_section_table.
676 * solist.h (struct so_list) <sections>: Change type.
677 <sections_end>: Remove.
678 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
679 (solib_contains_address_p): Update.
680 * solib-svr4.c (scan_dyntag): Update.
681 * solib-dsbt.c (scan_dyntag): Update.
682 * remote.c (remote_target::remote_xfer_live_readonly_partial):
683 Update.
684 * record-full.c (record_full_core_start, record_full_core_end):
685 Remove.
686 (record_full_core_sections): New global.
687 (record_full_core_open_1, record_full_core_target::xfer_partial):
688 Update.
689 * exec.h (build_section_table, section_table_xfer_memory_partial)
690 (add_target_sections): Take a target_section_table.
691 * exec.c (exec_file_attach, clear_section_table): Update.
692 (resize_section_table): Remove.
693 (build_section_table, add_target_sections): Take a
694 target_section_table.
695 (add_target_sections_of_objfile, remove_target_sections)
696 (exec_on_vfork): Update.
697 (section_table_available_memory): Take a target_section_table.
698 (section_table_read_available_memory): Update.
699 (section_table_xfer_memory_partial): Take a target_section_table.
700 (print_section_info, set_section_command)
701 (exec_set_section_address, exec_target::has_memory): Update.
702 * corelow.c (class core_target) <m_core_section_table,
703 m_core_file_mappings>: Remove braces.
704 <~core_target>: Remove.
705 (core_target::core_target): Update.
706 (core_target::~core_target): Remove.
707 (core_target::build_file_mappings)
708 (core_target::xfer_memory_via_mappings)
709 (core_target::xfer_partial, core_target::info_proc_mappings):
710 Update.
711 * bfd-target.c (target_bfd::xfer_partial): Update.
712 (target_bfd::target_bfd): Update.
713 (target_bfd::~target_bfd): Remove.
714
715 2020-10-12 Tom Tromey <tom@tromey.com>
716
717 * target.h (struct target_section, struct target_section_table):
718 Move to target-section.h.
719 * target-section.h: New file.
720
721 2020-10-12 Pedro Alves <pedro@palves.net>
722
723 PR exp/26602
724 * valops.c (struct struct_field_searcher): New.
725 (update_search_result): Rename to ...
726 (struct_field_searcher::update_result): ... this. Simplify
727 prototype. Record all found fields.
728 (do_search_struct_field): Rename to ...
729 (struct_field_searcher::search): ... this. Simplify prototype.
730 Maintain stack of visited baseclass path. Call update_result for
731 fields too. Keep searching fields in baseclasses instead of
732 stopping at the first found field.
733 (search_struct_field): Use struct_field_searcher. When looking
734 for fields, report ambiguous access attempts.
735
736 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 * frame.c (inside_main_func): Check full symbols as well as
739 minimal symbols.
740
741 2020-10-09 Joel Brobecker <brobecker@adacore.com>
742
743 * ada-lang.c (advance_wild_match): Rewrite the function's
744 description. Change the type of target0, t0 and t1 to char.
745
746 2020-10-09 Tom Tromey <tromey@adacore.com>
747
748 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
749
750 2020-10-09 Tom Tromey <tromey@adacore.com>
751
752 * ada-lang.h (ada_encode): Return std::string.
753 * ada-lang.c (ada_encode_1): Return std::string.
754 (ada_encode): Likewise.
755 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
756 Update.
757 * ada-exp.y (block_lookup, write_var_or_type): Update.
758
759 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
760
761 PR exp/26714
762 * printcmd.c (print_formatted): Handle void results as
763 unformatted prints.
764
765 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * arch/aarch32.c (aarch32_create_target_description): Release the
768 target_desc_up as late as possible.
769 * arch/aarch64.c (aarch64_create_target_description): Likewise.
770 * arch/amd64.c (amd64_create_target_description): Likewise.
771 * arch/arc.c (arc_create_target_description): Return a
772 target_desc_up, don't release it.
773 * arch/arc.h (arc_create_target_description): Update declaration.
774 (arc_lookup_target_description): Move target_desc_up into the
775 cache, and return a borrowed pointer.
776 * arch/arm.c (arm_create_target_description): Release the
777 target_desc_up as late as possible.
778 * arch/i386.c (i386_create_target_description): Likewise.
779 * arch/riscv.h (riscv_create_target_description): Update
780 declaration to match definition.
781 * arch/tic6x.c (tic6x_create_target_description): Release the
782 target_desc_up as late as possible.
783
784 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
787 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
788
789 2020-10-09 Jan Vrany <jan.vrany@labware.com>
790
791 * source.c (directory_command): Notify observers that "directories"
792 parameter has changed.
793
794 2020-10-08 Tom Tromey <tom@tromey.com>
795
796 * cli/cli-cmds.c (print_disassembly): Style function name and
797 addresses. Add _() wrappers.
798
799 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
800
801 * NEWS: Mention ARC support in GDBserver.
802
803 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
804
805 * arch/aarch32.c (aarch32_create_target_description): Release
806 unique_ptr returned from allocate_target_description.
807 * arch/aarch64.c (aarch64_create_target_description): Likewise.
808 * arch/amd64.c (amd64_create_target_description): Likewise.
809 * arch/arc.c (arc_create_target_description): Likewise.
810 * arch/arm.c (arm_create_target_description): Likewise.
811 * arch/i386.c (i386_create_target_description): Likewise.
812 * arch/riscv.c (riscv_create_target_description): Update return
813 type. Handle allocate_target_description returning a unique_ptr.
814 (riscv_lookup_target_description): Update to handle unique_ptr.
815 * arch/tic6x.c (tic6x_create_target_description): Release
816 unique_ptr returned from allocate_target_description.
817 * features/microblaze-with-stack-protect.c: Regenerate.
818 * features/microblaze.c: Regenerate.
819 * features/mips-dsp-linux.c: Regenerate.
820 * features/mips-linux.c: Regenerate.
821 * features/mips64-dsp-linux.c: Regenerate.
822 * features/mips64-linux.c: Regenerate.
823 * features/nds32.c: Regenerate.
824 * features/nios2.c: Regenerate.
825 * features/or1k.c: Regenerate.
826 * features/rs6000/powerpc-32.c: Regenerate.
827 * features/rs6000/powerpc-32l.c: Regenerate.
828 * features/rs6000/powerpc-403.c: Regenerate.
829 * features/rs6000/powerpc-403gc.c: Regenerate.
830 * features/rs6000/powerpc-405.c: Regenerate.
831 * features/rs6000/powerpc-505.c: Regenerate.
832 * features/rs6000/powerpc-601.c: Regenerate.
833 * features/rs6000/powerpc-602.c: Regenerate.
834 * features/rs6000/powerpc-603.c: Regenerate.
835 * features/rs6000/powerpc-604.c: Regenerate.
836 * features/rs6000/powerpc-64.c: Regenerate.
837 * features/rs6000/powerpc-64l.c: Regenerate.
838 * features/rs6000/powerpc-7400.c: Regenerate.
839 * features/rs6000/powerpc-750.c: Regenerate.
840 * features/rs6000/powerpc-860.c: Regenerate.
841 * features/rs6000/powerpc-altivec32.c: Regenerate.
842 * features/rs6000/powerpc-altivec32l.c: Regenerate.
843 * features/rs6000/powerpc-altivec64.c: Regenerate.
844 * features/rs6000/powerpc-altivec64l.c: Regenerate.
845 * features/rs6000/powerpc-e500.c: Regenerate.
846 * features/rs6000/powerpc-e500l.c: Regenerate.
847 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
848 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
849 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
850 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
851 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
852 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
853 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
854 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
855 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
856 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
857 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
858 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
859 * features/rs6000/powerpc-vsx32.c: Regenerate.
860 * features/rs6000/powerpc-vsx32l.c: Regenerate.
861 * features/rs6000/powerpc-vsx64.c: Regenerate.
862 * features/rs6000/powerpc-vsx64l.c: Regenerate.
863 * features/rs6000/rs6000.c: Regenerate.
864 * features/rx.c: Regenerate.
865 * features/s390-gs-linux64.c: Regenerate.
866 * features/s390-linux32.c: Regenerate.
867 * features/s390-linux32v1.c: Regenerate.
868 * features/s390-linux32v2.c: Regenerate.
869 * features/s390-linux64.c: Regenerate.
870 * features/s390-linux64v1.c: Regenerate.
871 * features/s390-linux64v2.c: Regenerate.
872 * features/s390-te-linux64.c: Regenerate.
873 * features/s390-tevx-linux64.c: Regenerate.
874 * features/s390-vx-linux64.c: Regenerate.
875 * features/s390x-gs-linux64.c: Regenerate.
876 * features/s390x-linux64.c: Regenerate.
877 * features/s390x-linux64v1.c: Regenerate.
878 * features/s390x-linux64v2.c: Regenerate.
879 * features/s390x-te-linux64.c: Regenerate.
880 * features/s390x-tevx-linux64.c: Regenerate.
881 * features/s390x-vx-linux64.c: Regenerate.
882 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
883 from allocate_target_description.
884 * target-descriptions.c (allocate_target_description): Update
885 return type.
886 (print_c_tdesc::visit_pre): Release unique_ptr returned from
887 allocate_target_description.
888
889 2020-10-07 Tom Tromey <tromey@adacore.com>
890
891 * unittests/search-memory-selftests.c: New file.
892 * Makefile.in (SELFTESTS_SRCS): Add
893 unittests/search-memory-selftests.c.
894
895 2020-10-07 Tom Tromey <tromey@adacore.com>
896
897 PR gdb/16930:
898 * findcmd.c (_initialize_mem_search): Mention that the range is
899 inclusive.
900
901 2020-10-07 Tom Tromey <tromey@adacore.com>
902
903 * target.h (simple_search_memory): Don't declare.
904 * target.c (simple_search_memory): Move to gdbsupport.
905 (default_search_memory): Update.
906 * remote.c (remote_target::search_memory): Update.
907
908 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
909
910 * Makefile.in (COMPILE): Add CXXFLAGS.
911 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
912 (check-headers): Add CXXFLAGS.
913
914 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
915
916 * arc-linux-tdep.h: New file.
917 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
918 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
919 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
920 arc_linux_gregset, arc_linux_v2_regset,
921 arc_linux_iterate_over_regset_sections,
922 arc_linux_core_read_description): Implement.
923 (arc_linux_init_osabi): Set iterate_over_regset_sections.
924 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
925 (arc_gdbarch_features_create): Add.
926 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
927
928 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
929
930 * arch/arc.h: Rename "arc_gdbarch_features" to
931 "arc_arch_features".
932 * arc-tdep.h: Likewise.
933 * arc-tdep.c: Likewise.
934
935 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936
937 * infcmd.c (attach_command): Remove the redundant call to
938 `clear_proceed_status`.
939
940 2020-10-07 Kamil Rytarowski <n54@gmx.com>
941
942 * nat/netbsd-nat.c (write_memory, read_memory): Update.
943
944 2020-10-07 Kamil Rytarowski <n54@gmx.com>
945
946 * nat/netbsd-nat.c (write_memory, read_memory): Add.
947 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
948 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
949
950 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
953 (_initialize_break_catch_sig): Don't allocate array.
954
955 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
956
957 * symtab.c (find_pc_line): Return unmapped addresses when the
958 requested address is also unmapped.
959
960 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
961
962 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
963 tui/tui-out.h.
964
965 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
966
967 * amd64-windows-tdep.c (amd64_windows_return_value): Use
968 type::is_vector instead of TYPE_VECTOR.
969
970 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * auto-load.c (auto_load_objfile_script_1): Don't use
973 debugfile_holder as temporary variable when stripping drive
974 letter.
975
976 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
977
978 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
979 Add TYPE_CODE_COMPLEX.
980 (amd64_windows_return_value): Fix types returned via XMM0.
981
982 2020-10-05 Alan Hayward <alan.hayward@arm.com>
983
984 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
985 AArch64/ARM maintainers.
986
987 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * NEWS: Mention set/show debug event-loop.
990
991 2020-10-02 Tom Tromey <tromey@adacore.com>
992
993 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
994 REG_EXTENDED.
995
996 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
997
998 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
999 * procfs.c (procfs_inferior_created): Remove.
1000 (_initialize_procfs): Don't register procfs_inferior_created.
1001
1002 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * async-event.c (invoke_async_signal_handlers): Add debug
1005 print.
1006 (check_async_event_handlers): Likewise.
1007 * event-top.c (show_debug_event_loop): New function.
1008 (_initialize_event_top): Register "set debug event-loop"
1009 setting.
1010
1011 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1012
1013 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1014 * debug.h: Remove.
1015 * infrun.c: Include gdbsupport/common-debug.h.
1016 * linux-nat.c: Likewise.
1017
1018 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1019
1020 * async-event.h (create_async_signal_handler): Add name
1021 parameter.
1022 (create_async_event_handler): Likewise.
1023 * async-event.c (struct async_signal_handler) <name>: New field.
1024 (struct async_event_handler) <name>: New field.
1025 (create_async_signal_handler): Assign name.
1026 (create_async_event_handler): Assign name.
1027 * event-top.c (async_init_signals): Pass name when creating
1028 handler.
1029 * infrun.c (_initialize_infrun): Likewise.
1030 * record-btrace.c (record_btrace_push_target): Likewise.
1031 * record-full.c (record_full_open): Likewise.
1032 * remote-notif.c (remote_notif_state_allocate): Likewise.
1033 * remote.c (remote_target::open_1): Likewise.
1034 * tui/tui-win.c (tui_initialize_win): Likewise.
1035
1036 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * async-event.c (initialize_async_signal_handlers): Pass name to
1039 add_file_handler
1040 * event-top.c (ui_register_input_event_handler): Likewise.
1041 * linux-nat.c (linux_nat_target::async): Likewise.
1042 * run-on-main-thread.c (_initialize_run_on_main_thread):
1043 Likewise
1044 * ser-base.c (reschedule): Likewise.
1045 (ser_base_async): Likewise.
1046 * tui/tui-io.c: Likewise.
1047 * top.h (struct ui) <num>: New field.
1048 * top.c (highest_ui_num): New variable.
1049 (ui::ui): Initialize num.
1050
1051 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * observable.h <inferior_created>: Remove parameters. Update all
1054 listeners.
1055 * inferior.h (post_create_inferior): Remove target parameter.
1056 Update all callers.
1057
1058 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1059
1060 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1061 and DW_MACRO_undef_strx.
1062 (dwarf_decode_macros): Likewise
1063 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1064 which is the value of DW_AT_str_offsets_base.
1065 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1066 str_offsets_base.
1067
1068 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1069
1070 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1071
1072 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1073
1074 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1075 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1076
1077 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1078
1079 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1080
1081 2020-09-30 Tom de Vries <tdevries@suse.de>
1082
1083 PR symtab/26683
1084 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1085
1086 2020-09-30 Tom Tromey <tromey@adacore.com>
1087
1088 * dwarf2/read.c (handle_variant): Use constant_value.
1089
1090 2020-09-29 Tom Tromey <tom@tromey.com>
1091
1092 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1093 (read_file_scope, dwarf2_get_pc_bounds)
1094 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1095 (read_structure_type, handle_struct_member_die)
1096 (read_enumeration_type, read_array_type, read_set_type)
1097 (read_tag_pointer_type, read_tag_reference_type)
1098 (read_subroutine_type, read_base_type, read_subrange_type)
1099 (read_full_die_1, partial_die_info::read)
1100 (partial_die_info::read, by, new_symbol)
1101 (dwarf2_const_value_data, dwarf2_const_value_attr)
1102 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1103 (prepare_one_comp_unit): Update.
1104 * dwarf2/attribute.h (DW_UNSND): Remove.
1105
1106 2020-09-29 Tom Tromey <tom@tromey.com>
1107
1108 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1109 (read_subroutine_type, partial_die_info::read)
1110 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1111 (dwarf2_add_member_fn): Update.
1112 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1113 * dwarf2/attribute.c (attribute::as_boolean): New method.
1114
1115 2020-09-29 Tom Tromey <tom@tromey.com>
1116
1117 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1118 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1119 method.
1120 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1121
1122 2020-09-29 Tom Tromey <tom@tromey.com>
1123
1124 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1125 the attribute's form.
1126
1127 2020-09-29 Tom Tromey <tom@tromey.com>
1128
1129 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1130 (dwarf2_add_member_fn): Update.
1131 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1132 * dwarf2/attribute.c (attribute::defaulted): New method, from
1133 is_valid_DW_AT_defaulted.
1134
1135 2020-09-29 Tom Tromey <tom@tromey.com>
1136
1137 * dwarf2/read.c (dw2_get_file_names_reader)
1138 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1139 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1140 (dwarf2_symbol_mark_computed): Use as_unsigned.
1141 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1142 method.
1143 <form_is_section_offset>: Update comment.
1144
1145 2020-09-29 Tom Tromey <tom@tromey.com>
1146
1147 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1148 dwarf2_default_access_attribute. Look up attribute.
1149 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1150 Update.
1151
1152 2020-09-29 Tom Tromey <tom@tromey.com>
1153
1154 * dwarf2/read.c (skip_one_die): Update.
1155 (read_full_die_1): Change how reprocessing is done.
1156 (partial_die_info::read): Update.
1157 (read_attribute_value): Remove need_reprocess parameter.
1158 (read_attribute): Likewise.
1159 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1160 New method.
1161
1162 2020-09-29 Tom Tromey <tom@tromey.com>
1163
1164 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1165 (dwarf2_const_value_attr, dump_die_shallow)
1166 (dwarf2_fetch_constant_bytes): Update.
1167 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1168 comment.
1169 <set_address>: New method.
1170 (DW_ADDR): Remove.
1171 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1172 (attribute::as_string, attribute::as_address): Add assert.
1173
1174 2020-09-29 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1177 (read_attribute_reprocess, read_attribute_value): Update.
1178 (read_attribute): Clear requires_reprocessing.
1179 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1180 form_requires_reprocessing>: New methods.
1181 <string_init>: Clear requires_reprocessing.
1182 <set_unsigned_reprocess>: New method.
1183 <name>: Shrink by one bit.
1184 <requires_reprocessing>: New member.
1185 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1186 method.
1187
1188 2020-09-29 Tom Tromey <tom@tromey.com>
1189
1190 * dwarf2/read.c (read_attribute_value): Update.
1191 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1192 set_unsigned>: New methods.
1193 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1194
1195 2020-09-29 Tom Tromey <tom@tromey.com>
1196
1197 * dwarf2/read.c (get_alignment, read_array_order)
1198 (read_attribute_value, dwarf2_const_value_attr)
1199 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1200 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1201 New methods.
1202 (DW_SND): Remove.
1203
1204 2020-09-29 Tom Tromey <tom@tromey.com>
1205
1206 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1207 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1208 Update.
1209 * dwarf2/attribute.h (struct attribute) <as_signature,
1210 set_signature>: New methods.
1211 (DW_SIGNATURE): Remove.
1212
1213 2020-09-29 Tom Tromey <tom@tromey.com>
1214
1215 * dwarf2/read.c (read_call_site_scope)
1216 (handle_data_member_location, dwarf2_add_member_fn)
1217 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1218 (partial_die_info::read, read_attribute_value)
1219 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1220 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1221 (dwarf2_symbol_mark_computed): Update.
1222 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1223 methods.
1224 (DW_BLOCK): Remove.
1225 * dwarf2/attribute.c (attribute::form_is_block): Add
1226 DW_FORM_data16.
1227
1228 2020-09-29 Tom Tromey <tom@tromey.com>
1229
1230 * dwarf2/read.c (read_cutu_die_from_dwo)
1231 (read_attribute_reprocess, read_attribute_value, read_attribute)
1232 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1233 (dwarf2_fetch_constant_bytes): Update.
1234 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1235 <set_string_noncanonical, set_string_canonical>: New methods.
1236 <string_is_canonical>: Update comment.
1237 <canonical_string_p>: Add assert.
1238 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1239 * dwarf2/attribute.c (attribute::form_is_string): New method.
1240 (attribute::string): Use it.
1241
1242 2020-09-29 Tom Tromey <tom@tromey.com>
1243
1244 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1245 (dump_die_shallow): Use canonical_string_p.
1246 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1247 method.
1248
1249 2020-09-29 Tom Tromey <tom@tromey.com>
1250
1251 * dwarf2/read.c (partial_die_info::read)
1252 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1253 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1254 attribute::as_string.
1255
1256 2020-09-29 Tom Tromey <tom@tromey.com>
1257
1258 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1259 DW_ADDR.
1260 (attribute::string): Don't use DW_STRING.
1261 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1262 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1263
1264 2020-09-29 Tom Tromey <tom@tromey.com>
1265
1266 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1267 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1268 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1269 * dwarf2/attribute.h (struct attribute): Rename methods.
1270 * dwarf2/attribute.c (attribute::as_address): Rename from
1271 value_as_address.
1272 (attribute::as_string): Rename from value_as_string.
1273
1274 2020-09-29 Tom Tromey <tom@tromey.com>
1275
1276 * dwarf2/read.c (partial_die_info::read) <case
1277 DW_AT_linkage_name>: Use value_as_string.
1278 (dwarf2_string_attr): Use value_as_string.
1279 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1280 method.
1281 * dwarf2/attribute.c (attribute::value_as_string): New method.
1282
1283 2020-09-29 Pedro Alves <pedro@palves.net>
1284
1285 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1286 defined before using '#pragma GCC diagnostic' instead of checking
1287 __clang__.
1288
1289 2020-09-28 Tom Tromey <tom@tromey.com>
1290
1291 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1292 (handle_signal_stop): Update.
1293 * procfs.c (procfs_target::insert_watchpoint): Update.
1294 * target.h (target_have_steppable_watchpoint): Now a function.
1295
1296 2020-09-28 Tom Tromey <tom@tromey.com>
1297
1298 * infrun.c (set_schedlock_func): Update.
1299 * target.h (target_can_lock_scheduler): Now a function.
1300
1301 2020-09-28 Tom Tromey <tom@tromey.com>
1302
1303 * inferior.h (class inferior) <has_execution>: Update.
1304 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1305 * valops.c (find_function_in_inferior)
1306 (value_allocate_space_in_inferior): Update.
1307 * top.c (kill_or_detach): Update.
1308 * target.c (target_preopen, set_target_permissions): Update.
1309 (target_has_execution_current): Remove.
1310 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1311 Update.
1312 * solib.c (update_solib_list, reload_shared_libraries): Update.
1313 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1314 * solib-dsbt.c (enable_break): Update.
1315 * score-tdep.c (score7_fetch_inst): Update.
1316 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1317 Update.
1318 * remote.c (remote_target::start_remote)
1319 (remote_target::remote_check_symbols, remote_target::open_1)
1320 (remote_target::remote_detach_1, remote_target::verify_memory)
1321 (remote_target::xfer_partial, remote_target::read_description)
1322 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1323 * record-full.c (record_full_open_1): Update.
1324 * record-btrace.c (record_btrace_target_open): Update.
1325 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1326 (value_nsstring): Update.
1327 * linux-thread-db.c (add_thread_db_info)
1328 (thread_db_find_new_threads_silently, check_thread_db_callback)
1329 (try_thread_db_load_1, record_thread): Update.
1330 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1331 Update.
1332 * linux-fork.c (checkpoint_command): Update.
1333 * infrun.c (set_non_stop, set_observer_mode)
1334 (check_multi_target_resumption, for_each_just_stopped_thread)
1335 (maybe_remove_breakpoints, normal_stop)
1336 (class infcall_suspend_state): Update.
1337 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1338 (info_program_command, attach_command): Update.
1339 * infcall.c (call_function_by_hand_dummy): Update.
1340 * inf-loop.c (inferior_event_handler): Update.
1341 * gcore.c (gcore_command, derive_heap_segment): Update.
1342 * exec.c (exec_file_command): Update.
1343 * eval.c (evaluate_subexp): Update.
1344 * compile/compile.c (compile_to_object): Update.
1345 * cli/cli-dump.c (restore_command): Update.
1346 * breakpoint.c (update_watchpoint)
1347 (update_inserted_breakpoint_locations)
1348 (insert_breakpoint_locations, get_bpstat_thread): Update.
1349 * target.h (target_has_execution): Remove macro.
1350 (target_has_execution_current): Don't declare.
1351 (target_has_execution): Rename from target_has_execution_1. Add
1352 argument default.
1353
1354 2020-09-28 Tom Tromey <tom@tromey.com>
1355
1356 * mi/mi-main.c (exec_reverse_continue)
1357 (mi_cmd_list_target_features): Update.
1358 * infrun.c (set_exec_direction_func): Update.
1359 * target.c (default_execution_direction): Update.
1360 * reverse.c (exec_reverse_once): Update.
1361 * target.h (target_can_execute_reverse): Now a function.
1362
1363 2020-09-28 Tom Tromey <tom@tromey.com>
1364
1365 * tui/tui-regs.c (tui_get_register)
1366 (tui_data_window::show_registers): Update.
1367 * thread.c (scoped_restore_current_thread::restore)
1368 (scoped_restore_current_thread::scoped_restore_current_thread):
1369 Update.
1370 * regcache-dump.c (regcache_print): Update.
1371 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1372 Update.
1373 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1374 * mep-tdep.c (current_me_module, current_options): Update.
1375 * linux-thread-db.c (thread_db_load): Update.
1376 * infcmd.c (registers_info, info_vector_command)
1377 (info_float_command): Update.
1378 * ia64-tdep.c (ia64_frame_prev_register)
1379 (ia64_sigtramp_frame_prev_register): Update.
1380 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1381 * gcore.c (derive_stack_segment): Update.
1382 * frame.c (get_current_frame, has_stack_frames): Update.
1383 * findvar.c (language_defn::read_var_value): Update.
1384 * arm-tdep.c (arm_pc_is_thumb): Update.
1385 * target.c (target_has_registers): Rename from
1386 target_has_registers_1.
1387 * target.h (target_has_registers): Remove macro.
1388 (target_has_registers): Rename from target_has_registers_1.
1389
1390 2020-09-28 Tom Tromey <tom@tromey.com>
1391
1392 * windows-tdep.c (tlb_make_value): Update.
1393 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1394 * thread.c (scoped_restore_current_thread::restore)
1395 (scoped_restore_current_thread::scoped_restore_current_thread)
1396 (thread_command): Update.
1397 * stack.c (backtrace_command_1, frame_apply_level_command)
1398 (frame_apply_all_command, frame_apply_command): Update.
1399 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1400 Update.
1401 * gcore.c (derive_stack_segment): Update.
1402 * frame.c (get_current_frame, has_stack_frames): Update.
1403 * auxv.c (info_auxv_command): Update.
1404 * ada-tasks.c (ada_build_task_list): Update.
1405 * target.c (target_has_stack): Rename from target_has_stack_1.
1406 * target.h (target_has_stack): Remove macro.
1407 (target_has_stack): Rename from target_has_stack_1.
1408
1409 2020-09-28 Tom Tromey <tom@tromey.com>
1410
1411 * target.c (target_has_memory): Rename from target_has_memory_1.
1412 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1413 * thread.c (scoped_restore_current_thread::restore)
1414 (scoped_restore_current_thread::scoped_restore_current_thread):
1415 Update.
1416 * frame.c (get_current_frame, has_stack_frames): Update.
1417 * target.h (target_has_memory): Remove macro.
1418 (target_has_memory): Rename from target_has_memory_1.
1419
1420 2020-09-28 Tom Tromey <tom@tromey.com>
1421
1422 * target.c (target_has_all_memory_1): Remove.
1423 * target.h (target_has_all_memory): Remove define.
1424 (target_has_all_memory_1): Don't declare.
1425
1426 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 * ser-base.c: Adjust comments formatting.
1429
1430 2020-09-27 Tom Tromey <tom@tromey.com>
1431
1432 PR tui/25342:
1433 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1434
1435 2020-09-27 Tom Tromey <tom@tromey.com>
1436
1437 PR tui/25342:
1438 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1439
1440 2020-09-27 Tom Tromey <tom@tromey.com>
1441
1442 * unittests/tui-selftests.c: Update.
1443 * tui/tui-winsource.h (struct tui_source_window_base)
1444 <extra_margin, show_line_number, refresh_pad>: New methods.
1445 <m_max_length, m_pad>: New members.
1446 (tui_copy_source_line): Update.
1447 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1448 first_col, line_width, ndigits parameters. Add length.
1449 (tui_source_window_base::show_source_line): Write to pad. Line
1450 number now 0-based.
1451 (tui_source_window_base::refresh_pad): New method.
1452 (tui_source_window_base::show_source_content): Write to pad. Call
1453 refresh_pad.
1454 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1455 not refill.
1456 (tui_source_window_base::update_exec_info): Call
1457 show_line_number.
1458 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1459 method.
1460 <m_digits>: New member.
1461 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1462 and m_max_length.
1463 (tui_source_window::show_line_number): New method.
1464 * tui/tui-io.h (tui_puts): Fix comment.
1465 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1466 m_max_length.
1467
1468 2020-09-27 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-winsource.c
1471 (tui_source_window_base::set_is_exec_point_at): Don't call
1472 show_source_line.
1473
1474 2020-09-27 Tom Tromey <tom@tromey.com>
1475
1476 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1477 method.
1478 <erase>: Update.
1479 <cursor_x, cursor_y>: Remove.
1480 <m_inner_window>: New member.
1481 (tui_py_window::rerender): Create inner window.
1482 (tui_py_window::output): Write to inner window.
1483
1484 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1485
1486 PR python/26586
1487 * cli/cli-script.c (execute_control_commands): don't set
1488 instream to nullptr here as this breaks the from_tty argument
1489 to gdb.execute in Python.
1490 (execute_user_command): set instream to nullptr here instead.
1491
1492 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1493
1494 * infrun.h (infrun_debug_printf): Fix formatting.
1495 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1496
1497 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1498
1499 * compile/compile-object-load.h (struct munmap_list): Add
1500 explicitly-defined move constructor.
1501
1502 2020-09-24 Tom Tromey <tromey@adacore.com>
1503
1504 PR tui/26638:
1505 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1506 method.
1507 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1508 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1509 (tui_prev_win): Rewrite.
1510
1511 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1512
1513 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1514 in WOW64 processes as SIGINT.
1515 * nat/windows-nat.h: Make wow64_process a shared variable.
1516 * windows-nat.c: Remove static wow64_process variable.
1517
1518 2020-09-23 Tom Tromey <tom@tromey.com>
1519
1520 PR symtab/25470:
1521 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1522 offset and bit size.
1523 * printcmd.c (print_scalar_formatted): Handle zero-length
1524 integer.
1525 (print_scalar_formatted): Use bit_size_differs_p.
1526 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1527 constant.
1528 (union type_specific): <int_stuff>: New member.
1529 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1530 methods.
1531 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1532 TYPE_SPECIFIC_FIELD.
1533 (recursive_dump_type, copy_type_recursive): Update.
1534 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1535 DW_AT_data_bit_offset.
1536
1537 2020-09-23 Tom Tromey <tom@tromey.com>
1538
1539 * utils.h (class gdb_argv): Add move operators.
1540 <append>: New methods.
1541 * compile/compile.c (build_argc_argv): Remove.
1542 (compile_args_argc): Remove.
1543 (compile_args_argv): Change type.
1544 (set_compile_args): Simplify.
1545 (append_args): Remove.
1546 (filter_args): Remove argcp parameter.
1547 (get_args): Return gdb_argv. Simplify.
1548 (compile_to_object): Update.
1549
1550 2020-09-23 Tom Tromey <tom@tromey.com>
1551
1552 * compile/compile-object-run.c (do_module_cleanup)
1553 <~do_module_cleanup> :Remove.
1554 (do_module_cleanup): Update.
1555 * compile/compile-object-load.h (struct munmap_list): Add move
1556 assignment operator.
1557 <source_file>: Now a std::string.
1558 <munmap_list>: Rename. No longer a pointer.
1559 * compile/compile-object-load.c (struct setup_sections_data): Add
1560 constructor.
1561 <setup_one_section>: Declare.
1562 <munmap_list>: Move earlier.
1563 <m_bfd>: New member.
1564 <m_last_size, m_last_section_first, m_last_prot,
1565 m_last_max_alignment>: Rename, add initializers where needed.
1566 (setup_sections_data::setup_one_section): Rename from
1567 setup_sections. Update.
1568 (compile_object_load): Update. Don't use bfd_map_over_sections.
1569
1570 2020-09-23 Tom Tromey <tom@tromey.com>
1571
1572 * compile/compile-object-run.c (struct do_module_cleanup): Add
1573 parameters to constructor. Update destructor.
1574 <source_file, scope, scope_data, out_value_type, out_value_addr,
1575 munmap_list_head, objfile_name_string>: Remove.
1576 <module>: New member.
1577 (do_module_cleanup): Update.
1578 (compile_object_run): Update.
1579
1580 2020-09-23 Tom Tromey <tom@tromey.com>
1581
1582 * compile/compile.c (eval_compile_command): Update.
1583 * compile/compile-object-run.h (compile_object_run): Take a
1584 compile_module_up.
1585 * compile/compile-object-run.c (compile_object_run): Take a
1586 compile_module_up.
1587 * compile/compile-object-load.h (struct compile_module): Add
1588 constructor, destructor.
1589 (compile_module_up): New typedef.
1590 (compile_object_load): Return compile_object_up.
1591 * compile/compile-object-load.c (compile_object_load): Return
1592 compile_module_up.
1593
1594 2020-09-23 Tom Tromey <tom@tromey.com>
1595
1596 * compile/compile-object-run.c (struct do_module_cleanup): Add
1597 constructor, destructor.
1598 <objfile_name_string>: Don't use struct hack.
1599 (do_module_cleanup): Use delete.
1600 (compile_object_run): Use new.
1601
1602 2020-09-23 Tom Tromey <tom@tromey.com>
1603
1604 * compile/compile-cplus-types.c
1605 (compile_cplus_convert_struct_or_union): Use std::vector.
1606 (compile_cplus_convert_func): Likewise.
1607 * compile/compile-c-types.c (convert_func): Use std::vector.
1608
1609 2020-09-21 Tom Tromey <tromey@adacore.com>
1610
1611 * sparc-tdep.c (sparc32_skip_prologue): Use
1612 skip_prologue_using_sal.
1613
1614 2020-09-19 Tom Tromey <tom@tromey.com>
1615
1616 * symfile.c (add_section_size_callback): Remove.
1617 (load_one_section): Rename from load_section_callback. Change
1618 parameters.
1619 (generic_load): Use foreach.
1620
1621 2020-09-19 Tom Tromey <tom@tromey.com>
1622
1623 * exec.c (add_to_section_table): Remove.
1624 (build_section_table): Use foreach.
1625
1626 2020-09-19 Tom Tromey <tom@tromey.com>
1627
1628 * elfread.c (elf_locate_sections): Change parameters.
1629 (elf_symfile_read): Use foreach.
1630
1631 2020-09-19 Tom Tromey <tom@tromey.com>
1632
1633 * cli/cli-dump.c (struct callback_data): Remove.
1634 (restore_one_section): Rename from restore_section_callback.
1635 Change parameters.
1636 (restore_binary_file): Change parameters.
1637 (restore_command): Use foreach.
1638
1639 2020-09-19 Tom Tromey <tom@tromey.com>
1640
1641 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1642 (gcore_copy_callback): Likewise.
1643 (gcore_memory_sections): Use foreach.
1644
1645 2020-09-19 Tom Tromey <tom@tromey.com>
1646
1647 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1648 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1649 parameters.
1650 (generic_elf_osabi_sniffer): Use foreach.
1651 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1652 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1653
1654 2020-09-19 Tom Tromey <tom@tromey.com>
1655
1656 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1657 (dwarf2_get_dwz_file): Use foreach.
1658 (dwarf2_locate_dwo_sections): Change parameters.
1659 (open_and_init_dwo_file): Use foreach.
1660 (dwarf2_locate_common_dwp_sections): Change parameters.
1661 (open_and_init_dwp_file): Use foreach.
1662
1663 2020-09-19 Tom Tromey <tom@tromey.com>
1664
1665 * symfile.h: (find_lowest_section): Don't declare.
1666 * symfile.c (find_lowest_section): Now static. Change
1667 parameters.
1668 (struct place_section_arg): Remove.
1669 (place_section): Change parameters.
1670 (addr_info_make_relative): Use foreach.
1671 (symfile_dummy_outputs): Remove.
1672 (default_symfile_relocate): Use foreach.
1673
1674 2020-09-19 Tom Tromey <tom@tromey.com>
1675
1676 * objfiles.c (add_to_objfile_sections): Rename from
1677 add_to_objfile_sections_full.
1678 (add_to_objfile_sections): Remove.
1679 (build_objfile_section_table): Use foreach.
1680
1681 2020-09-19 Tom Tromey <tom@tromey.com>
1682
1683 * stap-probe.c (get_stap_base_address_1): Remove.
1684 (get_stap_base_address): Use foreach.
1685
1686 2020-09-19 Tom Tromey <tom@tromey.com>
1687
1688 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1689 parameters.
1690 (gdb_bfd_close_or_warn): Use foreach.
1691
1692 2020-09-19 Tom Tromey <tom@tromey.com>
1693
1694 * corelow.c (add_to_thread_list): Change parameters.
1695 (core_target_open): Use foreach.
1696
1697 2020-09-19 Tom Tromey <tom@tromey.com>
1698
1699 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1700 existing function.
1701
1702 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1705 for arrays.
1706
1707 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * eval.c: Remove 'f-lang.h' include.
1710 (value_f90_subarray): Moved to f-lang.c.
1711 (eval_call): Renamed to...
1712 (evaluate_subexp_do_call): ...this, is no longer static, header
1713 comment moved into header file.
1714 (evaluate_funcall): Update call to eval_call.
1715 (skip_undetermined_arglist): Moved to f-lang.c.
1716 (fortran_value_subarray): Likewise.
1717 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1718 moved to evaluate_subexp_f.
1719 (calc_f77_array_dims): Moved to f-lang.c
1720 * expprint.c (print_subexp_funcall): New function.
1721 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1722 moved to print_subexp_f, OP_FUNCALL uses new function.
1723 (dump_subexp_body_funcall): New function.
1724 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1725 moved to dump_subexp_f, OP_FUNCALL uses new function.
1726 * expression.h (evaluate_subexp_do_call): Declare.
1727 * f-lang.c (value_f90_subarray): Moved from eval.c.
1728 (skip_undetermined_arglist): Likewise.
1729 (calc_f77_array_dims): Likewise.
1730 (fortran_value_subarray): Likewise.
1731 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1732 (operator_length_f): Likewise.
1733 (print_subexp_f): Likewise.
1734 (dump_subexp_body_f): Likewise.
1735 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1736 declaration of this operation to here.
1737 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1738 support moved to operator_length_f.
1739 * parser-defs.h (dump_subexp_body_funcall): Declare.
1740 (print_subexp_funcall): Declare.
1741 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1742 fortran-operator.def.
1743
1744 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * eval.c (fortran_value_subarray): New function, content is taken
1747 from...
1748 (evaluate_subexp_standard): ...here, in two places. Now arrays
1749 and strings both call the new function.
1750 (calc_f77_array_dims): Add header comment, handle strings.
1751
1752 2020-09-18 Victor Collod <vcollod@nvidia.com>
1753
1754 PR gdb/26635
1755 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1756 (i386_analyze_prologue): Call i386_skip_endbr.
1757
1758 2020-09-18 Tom Tromey <tromey@adacore.com>
1759
1760 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1761 (windows_nat_target::wait): Update.
1762 * target/wait.h (enum target_wait_flag): New. Use
1763 DEF_ENUM_FLAGS_TYPE.
1764 * target/target.h (target_wait): Change type of options.
1765 * target.h (target_options_to_string, default_target_wait):
1766 Update.
1767 (struct target_ops) <wait>: Change type of options.
1768 * target.c (target_wait, default_target_wait, do_option): Change
1769 type of "options".
1770 (target_options_to_string): Likewise.
1771 * target-delegates.c: Rebuild.
1772 * target-debug.h (target_debug_print_target_wait_flags): Rename
1773 from target_debug_print_options.
1774 * sol-thread.c (class sol_thread_target) <wait>: Update.
1775 (sol_thread_target::wait): Update.
1776 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1777 (rs6000_nat_target::wait): Update.
1778 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1779 Update.
1780 (remote_target::wait_ns, remote_target::wait_as): Change type of
1781 "options".
1782 (remote_target::wait): Update.
1783 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1784 (gdbsim_target::wait): Update.
1785 * record-full.c (class record_full_base_target) <wait>: Update.
1786 (record_full_wait_1): Change type of "options".
1787 (record_full_base_target::wait): Update.
1788 * record-btrace.c (class record_btrace_target) <wait>: Update.
1789 (record_btrace_target::wait): Update.
1790 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1791 Update.
1792 (ravenscar_thread_target::wait): Update.
1793 * procfs.c (class procfs_target) <wait>: Update.
1794 (procfs_target::wait): Update.
1795 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1796 * obsd-nat.c (obsd_nat_target::wait): Update.
1797 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1798 (nto_procfs_target::wait): Update.
1799 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1800 * nbsd-nat.c (nbsd_wait): Change type of "options".
1801 (nbsd_nat_target::wait): Update.
1802 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1803 (thread_db_target::wait): Update.
1804 * linux-nat.h (class linux_nat_target) <wait>: Update.
1805 * linux-nat.c (linux_nat_target::wait): Update.
1806 (linux_nat_wait_1): Update.
1807 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1808 "options".
1809 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1810 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1811 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1812 (go32_nat_target::wait): Update.
1813 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1814 * gnu-nat.c (gnu_nat_target::wait): Update.
1815 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1816 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1817 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1818 * darwin-nat.c (darwin_nat_target::wait): Update.
1819 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1820 (bsd_uthread_target::wait): Update.
1821 * aix-thread.c (class aix_thread_target) <wait>: Update.
1822 (aix_thread_target::wait): Update.
1823
1824 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1825
1826 * compile/compile-object-run.c (create_copied_type_recursive): New
1827 function.
1828 (compile_object_run): Use new function.
1829
1830 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1831
1832 * NEWS: Mention x86_64 Cygwin core file support.
1833
1834 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1835
1836 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1837 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1838
1839 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1840
1841 * windows-tdep.h: Add prototypes.
1842 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1843 (i386_windows_core_pid_to_str): Move and rename ...
1844 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1845 (windows_core_pid_to_str): ... and here.
1846 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1847
1848 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1849 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1850 (amd64_windows_init_abi_common): ... and register.
1851
1852 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1853
1854 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1855 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1856
1857 2020-09-18 Pedro Alves <pedro@palves.net>
1858
1859 PR gdb/26631
1860 * thread.c (thread_find_command): Switch inferior before calling
1861 target methods.
1862
1863 2020-09-17 Tom Tromey <tromey@adacore.com>
1864
1865 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1866 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1867 (tdesc_arch_data_up): New typedef.
1868 (tdesc_use_registers, tdesc_data_alloc): Update.
1869 (tdesc_data_cleanup): Don't declare.
1870 * target-descriptions.c (tdesc_data_alloc): Return a
1871 tdesc_arch_data_up.
1872 (tdesc_arch_data_deleter::operator()): Rename from
1873 tdesc_data_cleanup. Change argument type.
1874 (tdesc_use_registers): Change early_data to an rvalue reference.
1875 (tdesc_use_registers): Don't use delete.
1876 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1877 * s390-tdep.c (s390_gdbarch_init): Update.
1878 * rx-tdep.c (rx_gdbarch_init): Update.
1879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1880 * riscv-tdep.c (riscv_gdbarch_init): Update.
1881 * or1k-tdep.c (or1k_gdbarch_init): Update.
1882 * nios2-tdep.c (nios2_gdbarch_init): Update.
1883 * nds32-tdep.c (nds32_gdbarch_init): Update.
1884 * mips-tdep.c (mips_gdbarch_init): Update.
1885 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1886 * m68k-tdep.c (m68k_gdbarch_init): Update.
1887 * i386-tdep.c (i386_gdbarch_init): Update.
1888 * arm-tdep.c (arm_gdbarch_init): Update.
1889 * arc-tdep.c (arc_tdesc_init): Update.
1890 (arc_gdbarch_init): Update.
1891 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1892
1893 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1894
1895 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1896 for WOW64 processes.
1897
1898 2020-09-17 Tom Tromey <tom@tromey.com>
1899
1900 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1901
1902 2020-09-17 Tom Tromey <tom@tromey.com>
1903
1904 * value.c (preserve_values): Update.
1905 * python/py-type.c (save_objfile_types): Update.
1906 * guile/scm-type.c (save_objfile_types): Update.
1907 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1908 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1909 * compile/compile-object-run.c (compile_object_run): Update.
1910
1911 2020-09-17 Tom Tromey <tom@tromey.com>
1912
1913 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1914 Remove.
1915 <m_table>: Now htab_up.
1916 * typeprint.c (typedef_hash_table::recursively_update)
1917 (typedef_hash_table::add_template_parameters)
1918 (typedef_hash_table::typedef_hash_table): Update.
1919 (typedef_hash_table::~typedef_hash_table): Remove.
1920 (typedef_hash_table::typedef_hash_table)
1921 (typedef_hash_table::find_global_typedef)
1922 (typedef_hash_table::find_typedef): Update.
1923
1924 2020-09-17 Tom Tromey <tom@tromey.com>
1925
1926 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1927
1928 2020-09-17 Tom Tromey <tom@tromey.com>
1929
1930 * linespec.c (class decode_compound_collector)
1931 <~decode_compound_collector>: Remove.
1932 <m_unique_syms>: Now htab_up.
1933 (decode_compound_collector::operator ()): Update.
1934 (class symtab_collector) <~symtab_collector>: Remove.
1935 <m_symtab_table>: Now htab_up.
1936 (symtab_collector::operator ()): Update.
1937
1938 2020-09-17 Tom Tromey <tom@tromey.com>
1939
1940 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1941 (filename_seen_cache::clear): Update.
1942 (~filename_seen_cache): Remove.
1943 (filename_seen_cache::seen): Update.
1944 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1945 htab_up.
1946 <~filename_seen_cache>: Remove.
1947 <traverse>: Update.
1948
1949 2020-09-17 Tom Tromey <tom@tromey.com>
1950
1951 * completer.c (completion_tracker::discard_completions)
1952 (completion_tracker::~completion_tracker)
1953 (completion_tracker::maybe_add_completion)
1954 (completion_tracker::remove_completion)
1955 (completion_tracker::recompute_lowest_common_denominator)
1956 (completion_tracker::build_completion_result): Update.
1957 * completer.h (class completion_tracker) <have_completions>:
1958 Update.
1959 <m_entries_hash>: Now htab_up.
1960
1961 2020-09-17 Tom Tromey <tom@tromey.com>
1962
1963 * breakpoint.c (ambiguous_names_p): Use htab_up.
1964
1965 2020-09-17 Tom Tromey <tom@tromey.com>
1966
1967 * auto-load.c (struct auto_load_pspace_info)
1968 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1969 <loaded_script_files, loaded_script_texts>: Change type to
1970 htab_up.
1971 (~auto_load_pspace_info) Remove.
1972 (init_loaded_scripts_info, maybe_add_script_file)
1973 (maybe_add_script_text, auto_load_info_scripts): Update.
1974
1975 2020-09-17 Tom Tromey <tromey@adacore.com>
1976
1977 * c-exp.y (name_obstack): Now static.
1978
1979 2020-09-17 Chungyi Chi <demonic@csie.io>
1980
1981 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1982
1983 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1984
1985 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1986 (add_solib_catchpoint): Likewise.
1987 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1988 to bool.
1989 (add_solib_catchpoint): Change int parameter/variable to bool.
1990 (catch_load_or_unload): Likewise.
1991 (init_catchpoint): Likewise.
1992 (create_fork_vfork_event_catchpoint): Likewise.
1993 (catch_fork_command_1): Likewise.
1994 (catch_exec_command_1): Likewise.
1995
1996 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1997
1998 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1999 Change instance_flags to m_instance_flags.
2000
2001 2020-09-16 Tom Tromey <tromey@adacore.com>
2002
2003 PR gdb/26598:
2004 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2005
2006 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2007
2008 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2009 PL_FLAG_EXEC.
2010 (fbsd_nat_target::insert_exec_catchpoint)
2011 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2012 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2013 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2014
2015 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2016
2017 * configure.ac: Remove check for kinfo_getvmmap().
2018 * configure, config.in: Regenerate.
2019 * fbsd-nat.c (fbsd_read_mapping): Remove
2020 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2021 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2022 kinfo_get_vmmap() are always present.
2023
2024 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2025
2026 * fbsd-nat.c: Always include support for
2027 TARGET_OBJECT_SIGNAL_INFO.
2028
2029 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2030
2031 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2032 sysctl and remove procfs fallback.
2033
2034 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2035
2036 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2037 * fbsd-nat.h: Likewise.
2038
2039 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2040
2041 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2042 argument.
2043
2044 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * ada-lang.c (ada_language_data): Delete.
2047 (ada_language): Remove references to ada_language_data.
2048 * c-lang.c (c_language_data): Delete.
2049 (c_language): Remove references to c_language_data.
2050 (cplus_language_data): Delete.
2051 (cplus_language): Remove references to cplus_language_data.
2052 (asm_language_data): Delete.
2053 (asm_language): Remove references to asm_language_data.
2054 (minimal_language_data): Delete.
2055 (minimal_language): Remove references to minimal_language_data.
2056 * d-lang.c (d_language_data): Delete.
2057 (d_language): Remove references to d_language_data.
2058 * f-lang.c (f_language_data): Delete.
2059 (f_language): Remove references to f_language_data.
2060 * go-lang.c (go_language_data): Delete.
2061 (go_language): Remove references to go_language_data.
2062 * language.c (unknown_language_data): Delete.
2063 (unknown_language): Remove references to unknown_language_data.
2064 (auto_language_data): Delete.
2065 (auto_language): Remove references to auto_language_data.
2066 * language.h (language_data): Delete struct.
2067 (language_defn): No longer inherit from language_data.
2068 * m2-lang.c (m2_language_data): Delete.
2069 (m2_language): Remove references to m2_language_data.
2070 * objc-lang.c (objc_language_data): Delete.
2071 (objc_language): Remove references to objc_language_data.
2072 * opencl-lang.c (opencl_language_data): Delete.
2073 (opencl_language): Remove references to opencl_language_data.
2074 * p-lang.c (pascal_language_data): Delete.
2075 (pascal_language): Remove references to pascal_language_data.
2076 * rust-lang.c (rust_language_data): Delete.
2077 (rust_language): Remove references to rust_language_data.
2078
2079 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2082 initializer.
2083 (ada_language::opcode_print_table): New member function.
2084 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2085 (c_language::opcode_print_table): New member function.
2086 (cplus_language_data): Remove la_op_print_tab initializer.
2087 (cplus_language::opcode_print_table): New member function.
2088 (asm_language_data): Remove la_op_print_tab initializer.
2089 (asm_language::opcode_print_table): New member function.
2090 (minimal_language_data): Remove la_op_print_tab initializer.
2091 (minimal_language::opcode_print_table): New member function.
2092 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2093 (d_language::opcode_print_table): New member function.
2094 * expprint.c (print_subexp_standard): Update call to
2095 opcode_print_table.
2096 (op_string): Likewise.
2097 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2098 (f_language::opcode_print_table): New member function.
2099 * go-lang.c (go_language_data): Remove la_op_print_tab
2100 initializer.
2101 (go_language::opcode_print_table): New member function.
2102 * language.c (unknown_language_data): Remove la_op_print_tab
2103 initializer.
2104 (unknown_language::opcode_print_table): New member function.
2105 (auto_language_data): Remove la_op_print_tab initializer.
2106 (auto_language::opcode_print_table): New member function.
2107 * language.h (language_data): Remove la_op_print_tab field.
2108 (language_defn::opcode_print_table): Declare new member function.
2109 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2110 initializer.
2111 (m2_language::opcode_print_table): New member function.
2112 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2113 initializer.
2114 (objc_language::opcode_print_table): New member function.
2115 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2116 initializer.
2117 (opencl_language::opcode_print_table): New member function.
2118 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2119 initializer.
2120 (pascal_language::opcode_print_table): New member function.
2121 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2122 initializer.
2123 (rust_language::opcode_print_table): New member function.
2124
2125 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2128 (ada_language::expression_ops): New member function.
2129 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2130 (c_language::expression_ops): New member function.
2131 (cplus_language_data): Remove la_exp_desc initializer.
2132 (cplus_language::expression_ops): New member function.
2133 (asm_language_data): Remove la_exp_desc initializer.
2134 (asm_language::expression_ops): New member function.
2135 (minimal_language_data): Remove la_exp_desc initializer.
2136 (minimal_language::expression_ops): New member function.
2137 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2138 (d_language::expression_ops): New member function.
2139 * eval.c (evaluate_subexp): Update call to expression_ops.
2140 * expprint.c (print_subexp): Likewise.
2141 (op_name): Likewise.
2142 (dump_subexp_body): Likewise.
2143 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2144 (f_language::expression_ops): New member function.
2145 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2146 (go_language::expression_ops): New member function.
2147 * language.c (language_defn::expression_ops): New function.
2148 (unknown_language_data): Remove la_exp_desc initializer.
2149 (auto_language_data): Likewise.
2150 * language.h (language_data): Remove la_exp_desc field.
2151 (language_defn::expression_ops): Declare new member function.
2152 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2153 (m2_language::expression_ops): New member function.
2154 * objc-lang.c (objc_language_data): Remove la_exp_desc
2155 initializer.
2156 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2157 initializer.
2158 (opencl_language::expression_ops): New member function.
2159 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2160 * parse.c (operator_length): Update call to expression_ops.
2161 (exp_iterate): Likewise.
2162 * rust-lang.c (rust_language_data): Remove la_exp_desc
2163 initializer.
2164 (ruse_language::expression_ops): New member function.
2165
2166 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2167
2168 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2169 initializer.
2170 (ada_language::varobj_ops): New member function.
2171 * c-lang.c (c_language_data): Remove la_varobj_ops
2172 initializer.
2173 (cplus_language_data): Likewise.
2174 (cplus_language::varobj_ops): New member function.
2175 (asm_language_data): Remove la_varobj_ops initializer.
2176 (minimal_language_data): Likewise.
2177 * d-lang.c (d_language_data): Likewise.
2178 * f-lang.c (f_language_data): Likewise.
2179 * go-lang.c (go_language_data): Likewise.
2180 * language.c (language_defn::varobj_ops): New function.
2181 (unknown_language_data): Remove la_varobj_ops
2182 initializer.
2183 (auto_language_data): Likewise.
2184 * language.h (language_data): Remove la_varobj_ops field.
2185 (language_defn::varobj_ops): Declare new member function.
2186 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2187 * objc-lang.c (objc_language_data): Likewise.
2188 * opencl-lang.c (opencl_language_data): Likewise.
2189 * p-lang.c (pascal_language_data): Likewise.
2190 * rust-lang.c (rust_language_data): Likewise.
2191 * varobj.c (varobj_create): Update call to varobj_ops.
2192 * varobj.h (default_varobj_ops): Delete define.
2193
2194 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2197 initializer.
2198 * c-lang.c (c_language_data): Likewise.
2199 (c_language::macro_expansion): New member function.
2200 (cplus_language_data): Likewise.
2201 (cplus_language::macro_expansion): New member function.
2202 (asm_language_data): Likewise.
2203 (asm_language::macro_expansion): New member function.
2204 (minimal_language_data): Likewise.
2205 (minimal_language::macro_expansion): New member function.
2206 * d-lang.c (d_language_data): Remove la_macro_expansion
2207 initializer.
2208 * f-lang.c (f_language_data): Likewise.
2209 * go-lang.c (go_language_data): Likewise.
2210 * language.c (unknown_language_data): Likewise.
2211 (auto_language_data): Likewise.
2212 * language.h (language_data): Remove la_macro_expansion field.
2213 (language_defn::macro_expansion): New member function.
2214 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2215 initializer.
2216 * objc-lang.c (objc_language_data): Likewise.
2217 (objc_language::macro_expansion): New member function.
2218 * opencl-lang.c (opencl_language_data): Likewise.
2219 (opencl_language::macro_expansion): New member function.
2220 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2221 initializer.
2222 * rust-lang.c (rust_language_data): Likewise.
2223 * symtab.c (default_collect_symbol_completion_matches_break_on):
2224 Update call to macro_expansion.
2225
2226 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * ada-lang.c (ada_language_data): Remove la_array_ordering
2229 initializer.
2230 * c-lang.c (c_language_data): Likewise.
2231 (cplus_language_data): Likewise.
2232 (asm_language_data): Likewise.
2233 (minimal_language_data): Likewise.
2234 * d-lang.c (d_language_data): Likewise.
2235 * dwarf2/read.c (read_array_order): Update for call to
2236 array_ordering.
2237 * f-lang.c (f_language_data): Remove la_array_ordering
2238 initializer.
2239 (f_language::array_ordering): New member function.
2240 * go-lang.c (go_language_data): Remove la_array_ordering
2241 initializer.
2242 * language.c (unknown_language_data): Likewise.
2243 (auto_language_data): Likewise.
2244 * language.h (language_data): Delete la_array_ordering field.
2245 (language_defn::array_ordering): New member function.
2246 * m2-lang.c (m2_language_data): Remove la_array_ordering
2247 initializer.
2248 * objc-lang.c (objc_language_data): Likewise.
2249 * opencl-lang.c (opencl_language_data): Likewise.
2250 * p-lang.c (pascal_language_data): Likewise.
2251 * rust-lang.c (rust_language_data): Likewise.
2252
2253 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2256 initializer.
2257 * c-lang.c (c_language_data): Likewise.
2258 (cplus_language_data): Likewise.
2259 (asm_language_data): Likewise.
2260 (minimal_language_data): Likewise.
2261 * d-lang.c (d_language_data): Likewise.
2262 * f-lang.c (f_language_data): Likewise.
2263 (f_language::case_sensitivity): New member function.
2264 * go-lang.c (go_language_data): Remove la_case_sensitivity
2265 initializer.
2266 * language.c (enum case_mode): Moved here from language.h.
2267 (case_mode): Make static.
2268 (show_case_command): Update for case_sensitivity being a method.
2269 (set_case_command): Likewise.
2270 (set_range_case): Likewise.
2271 (unknown_language_data): Remove la_case_sensitivity initializer.
2272 (auto_language_data): Likewise.
2273 * language.h (case_mode): Delete, move enum declaration to
2274 language.c.
2275 (language_data): Delete la_case_sensitivity field.
2276 (language_defn::case_sensitivity): New member function.
2277 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2278 initializer.
2279 * objc-lang.c (objc_language_data): Likewise.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_language_data): Likewise.
2282 * rust-lang.c (rust_language_data): Likewise.
2283
2284 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * ada-lang.c (ada_language_data): Remove la_range_check
2287 initializer.
2288 * c-lang.c (c_language_data): Likewise.
2289 (cplus_language_data): Likewise.
2290 (asm_language_data): Likewise.
2291 (minimal_language_data): Likewise.
2292 * d-lang.c (d_language_data): Likewise.
2293 * f-lang.c (f_language_data): Likewise.
2294 (f_language::range_checking_on_by_default): New member function.
2295 * go-lang.c (go_language_data): Remove la_range_check initializer.
2296 * language.c (enum range_mode): Moved here from language.h.
2297 (range_mode): Made static.
2298 (show_range_command): Update to use
2299 range_checking_on_by_default.
2300 (set_range_command): Likewise.
2301 (set_range_case): Likewise.
2302 (unknown_language_data): Remove la_range_check initializer.
2303 (auto_language_data): Likewise.
2304 * language.h (range_mode): Delete. Enum definition moved to
2305 language.c.
2306 (language_data): Remove la_range_check field.
2307 (language_defn::range_checking_on_by_default): New member
2308 function.
2309 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2310 (m2_language::range_checking_on_by_default): New member function.
2311 * objc-lang.c (objc_language_data): Remove la_range_check
2312 initializer.
2313 * opencl-lang.c (opencl_language_data): Likewise.
2314 * p-lang.c (pascal_language_data): Likewise.
2315 (pascal_language::range_checking_on_by_default): New member
2316 function.
2317 * rust-lang.c (rust_language_data): Remove la_range_check
2318 initializer.
2319 (rust_language::range_checking_on_by_default): New member
2320 function.
2321
2322 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * dwarf2/read.c (dwarf2_physname): Remove special case for
2325 language_go.
2326 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2327 member function.
2328
2329 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * ada-lang.c (ada_language_data): Remove
2332 la_store_sym_names_in_linkage_form_p initializer.
2333 (ada_language::store_sym_names_in_linkage_form_p): New member
2334 function.
2335 * c-lang.c (c_language_data): Remove
2336 la_store_sym_names_in_linkage_form_p initializer.
2337 (c_language::store_sym_names_in_linkage_form_p): New member
2338 function.
2339 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2340 initializer.
2341 (asm_language_data): Likewise.
2342 (asm_language::store_sym_names_in_linkage_form_p): New member
2343 function.
2344 (minimal_language_data): Remove
2345 la_store_sym_names_in_linkage_form_p initializer.
2346 (minimal_language::store_sym_names_in_linkage_form_p): New member
2347 function.
2348 * d-lang.c (d_language_data): Remove
2349 la_store_sym_names_in_linkage_form_p initializer.
2350 * dwarf2/read.c (dwarf2_physname): Update call to
2351 store_sym_names_in_linkage_form_p.
2352 * f-lang.c (f_language_data): Remove
2353 la_store_sym_names_in_linkage_form_p initializer.
2354 * go-lang.c (go_language_data): Remove
2355 la_store_sym_names_in_linkage_form_p initializer.
2356 * language.c (unknown_language_data): Remove
2357 la_store_sym_names_in_linkage_form_p initializer.
2358 (unknown_language::store_sym_names_in_linkage_form_p): New member
2359 function.
2360 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2361 initializer.
2362 (auto_language::store_sym_names_in_linkage_form_p): New member
2363 function.
2364 * language.h (language_data): Remove
2365 la_store_sym_names_in_linkage_form_p member variable.
2366 (language_defn::store_sym_names_in_linkage_form_p): New member
2367 function.
2368 * m2-lang.c (m2_language_data): Remove
2369 la_store_sym_names_in_linkage_form_p initializer.
2370 * objc-lang.c (objc_language_data): Likewise.
2371 * opencl-lang.c (opencl_language_data): Likewise.
2372 * p-lang.c (pascal_language_data): Likewise.
2373 * rust-lang.c (rust_language_data): Likewise.
2374
2375 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * ada-lang.c (ada_language_data): Remove string_lower_bound
2378 initializer.
2379 * c-lang.c (c_language_data): Likewise.
2380 (cplus_language_data): Likewise.
2381 (asm_language_data): Likewise.
2382 (minimal_language_data): Likewise.
2383 * d-lang.c (d_language_data): Likewise.
2384 * f-lang.c (f_language_data): Likewise.
2385 * go-lang.c (go_language_data): Likewise.
2386 * language.c (unknown_language_data): Likewise.
2387 (auto_language_data): Likewise.
2388 * language.h (language_data): Remove string_lower_bound field.
2389 (language_defn::string_lower_bound): New member function.
2390 * m2-lang.c (m2_language_data): Remove string_lower_bound
2391 initializer.
2392 (m2_language::string_lower_bound): New member function.
2393 * objc-lang.c (objc_language_data): Remove string_lower_bound
2394 initializer.
2395 * opencl-lang.c (opencl_language_data): Likewise.
2396 * p-lang.c (pascal_language_data): Likewise.
2397 * rust-lang.c (rust_language_data): Likewise.
2398 * valops.c (value_cstring): Update call to string_lower_bound.
2399 (value_string): Likewise.
2400 * value.c (allocate_repeated_value): Likewise.
2401
2402 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * valops.c (value_repeat): Fix incorrect argument name in comment.
2405
2406 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * ada-lang.c (ada_language_data): Remove c_style_arrays
2409 initializer.
2410 (ada_language::c_style_arrays_p): New member fuction.
2411 * c-lang.c (c_language_data): Remove c_style_arrays
2412 initializer.
2413 (cplus_language_data): Likewise.
2414 (asm_language_data): Likewise.
2415 (minimal_language_data): Likewise.
2416 * d-lang.c (d_language_data): Likewise.
2417 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2418 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2419 (f_language::c_style_arrays_p): New member function.
2420 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2421 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2422 * language.c (unknown_language_data): Remove c_style_arrays
2423 initializer.
2424 (auto_language_data): Likewise.
2425 * language.h (language_data): Remove c_style_arrays field.
2426 (language_defn::c_style_arrays_p): New member function.
2427 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2428 (m2_language::c_style_arrays_p): New member function.
2429 * objc-lang.c (objc_language_data): Remove c_style_arrays
2430 initializer.
2431 * opencl-lang.c (opencl_language_data): Likewise.
2432 * p-lang.c (pascal_language_data): Likewise.
2433 * rust-lang.c (rust_language_data): Likewise.
2434 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2435 and update local variable to a bool.
2436 * valops.c (value_cast): Update call to c_style_arrays_p.
2437 (value_array): Likewise.
2438 * value.c (coerce_array): Likewise.
2439
2440 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2441
2442 * ada-lang.c (ada_language_data): Remove la_language initializer.
2443 * c-lang.c (c_language_data): Likewise.
2444 (cplus_language_data): Likewise.
2445 (asm_language_data): Likewise.
2446 (minimal_language_data): Likewise.
2447 * d-lang.c (d_language_data): Likewise.
2448 * f-lang.c (f_language_data): Likewise.
2449 * go-lang.c (go_language_data): Likewise.
2450 * language.c (unknown_language_data): Likewise.
2451 (auto_language_data): Likewise.
2452 * language.h (language_data): Remove la_language field.
2453 (language_defn::language_defn): Initialise la_language field.
2454 (language_defn::la_language): New member variable.
2455 * m2-lang.c (m2_language_data): Remove la_language field.
2456 * objc-lang.c (objc_language_data): Likewise.
2457 * opencl-lang.c (opencl_language_data): Likewise.
2458 * p-lang.c (pascal_language_data): Likewise.
2459 * rust-lang.c (rust_language_data): Likewise.
2460
2461 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * ada-lang.c (ada_extensions): Delete, moved into
2464 ada_language::filename_extensions.
2465 (ada_language_data): Remove la_filename_extensions initializer.
2466 (ada_language::filename_extensions): New member function.
2467 * c-lang.c (c_extensions): Delete, moved into
2468 c_language::filename_extensions.
2469 (c_language_data): Remove la_filename_extensions initializer.
2470 (c_language::filename_extensions): New member function.
2471 (cplus_extensions): Delete, moved into
2472 cplus_language::filename_extensions.
2473 (cplus_language_data): Remove la_filename_extensions initializer.
2474 (cplus_language::filename_extensions): New member function.
2475 (asm_extensions): Delete, moved into
2476 asm_language::filename_extensions.
2477 (asm_language_data): Remove la_filename_extensions initializer.
2478 (asm_language::filename_extensions): New member function.
2479 (minimal_language_data): Remove la_filename_extensions
2480 initializer.
2481 * d-lang.c (d_extensions): Delete, moved into
2482 d_language::filename_extensions.
2483 (d_language_data): Remove la_filename_extensions initializer.
2484 (d_language::filename_extensions): New member function.
2485 * f-lang.c (f_extensions): Delete, moved into
2486 f_language::filename_extensions.
2487 (f_language_data): Remove la_filename_extensions initializer.
2488 (f_language::filename_extensions): New member function.
2489 * go-lang.c (go_language_data): Remove la_filename_extensions
2490 initializer.
2491 * language.c (add_set_language_command): Update now that
2492 filename_extensions returns a vector.
2493 (unknown_language_data): Remove la_filename_extensions
2494 initializer.
2495 (auto_language_data): Likewise.
2496 * language.h (language_data): Remove la_filename_extensions field.
2497 (language_defn::filename_extensions): New member function.
2498 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2499 initializer.
2500 * objc-lang.c (objc_extensions): Delete, moved into
2501 objc_language::filename_extensions.
2502 (objc_language_data): Remove la_filename_extensions initializer.
2503 (objc_language::filename_extensions): New member function.
2504 * opencl-lang.c (opencl_language_data): Remove
2505 la_filename_extensions initializer.
2506 * p-lang.c (pascal_extensions): Delete, moved into
2507 pascal_language::filename_extensions.
2508 (pascal_language_data): Remove la_filename_extensions initializer.
2509 (pascal_language::filename_extensions): New member function.
2510 * rust-lang.c (rust_extensions): Delete, moved into
2511 rust_language::filename_extensions.
2512 (rust_language_data): Remove la_filename_extensions initializer.
2513 (rust_language::filename_extensions): New member function.
2514 * symfile.c (add_filename_language): Add new assert.
2515
2516 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * ada-lang.c (ada_language_data): Remove la_name and
2519 la_natural_name initializers.
2520 (ada_language::name): New member function.
2521 (ada_language::natural_name): New member function.
2522 * c-lang.c (c_language_data): Remove la_name and
2523 la_natural_name initializers.
2524 (c_language::name): New member function.
2525 (c_language::natural_name): New member function.
2526 (cplus_language_data): Remove la_name and
2527 la_natural_name initializers.
2528 (cplus_language::name): New member function.
2529 (cplus_language::natural_name): New member function.
2530 (asm_language_data): Remove la_name and
2531 la_natural_name initializers.
2532 (asm_language::name): New member function.
2533 (asm_language::natural_name): New member function.
2534 (minimal_language_data): Remove la_name and
2535 la_natural_name initializers.
2536 (minimal_language::name): New member function.
2537 (minimal_language::natural_name): New member function.
2538 * compile/compile.c (compile_to_object): Update call to
2539 lanugage_defn::name.
2540 * d-lang.c (d_language_data): Remove la_name and
2541 la_natural_name initializers.
2542 (d_language::name): New member function.
2543 (d_language::natural_name): New member function.
2544 * expprint.c (print_subexp_standard): Update call to
2545 language_defn::name.
2546 (dump_raw_expression): Likewise
2547 (dump_prefix_expression): Likewise.
2548 * f-lang.c (f_language_data): Remove la_name and
2549 la_natural_name initializers.
2550 (f_language::name): New member function.
2551 (f_language::natural_name): New member function.
2552 * go-lang.c (go_language_data): Remove la_name and
2553 la_natural_name initializers.
2554 (go_language::name): New member function.
2555 (go_language::natural_name): New member function.
2556 * language.c (show_language_command): Update call to
2557 language_defn::name.
2558 (set_language_command): Likewise.
2559 (language_enum): Likewise.
2560 (language_str): Likewise.
2561 (add_set_language_command): Likewise, use
2562 language_defn::natural_name in the doc string.
2563 (unknown_language_data): Remove la_name and
2564 la_natural_name initializers.
2565 (unknown_language::name): New member function.
2566 (unknown_language::natural_name): New member function.
2567 (auto_language_data): Remove la_name and
2568 la_natural_name initializers.
2569 (auto_language::name): New member function.
2570 (auto_language::natural_name): New member function.
2571 (language_lookup_primitive_type_as_symbol): Update call to
2572 language_defn::name.
2573 * language.h (language_data): Remove la_name and la_natural_name
2574 member variables.
2575 (language_defn::name): New member function.
2576 (language_defn::natural_name): New member function.
2577 * m2-lang.c (m2_language_data): Remove la_name and
2578 la_natural_name initializers.
2579 (m2_language::name): New member function.
2580 (m2_language::natural_name): New member function.
2581 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2582 language_defn::natural_name.
2583 * objc-lang.c (objc_language_data): Remove la_name and
2584 la_natural_name initializers.
2585 (objc_language::name): New member function.
2586 (objc_language::natural_name): New member function.
2587 * opencl-lang.c (opencl_language_data): Remove la_name and
2588 la_natural_name initializers.
2589 (opencl_language::name): New member function.
2590 (opencl_language::natural_name): New member function.
2591 * p-lang.c (pascal_language_data): Remove la_name and
2592 la_natural_name initializers.
2593 (pascal_language::name): New member function.
2594 (pascal_language::natural_name): New member function.
2595 * rust-lang.c (rust_language_data): Remove la_name and
2596 la_natural_name initializers.
2597 (rust_language::name): New member function.
2598 (rust_language::natural_name): New member function.
2599 * symtab.c (lookup_language_this): Update call to
2600 language_defn::name.
2601
2602 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-lang.c (ada_language_data): Remove la_name_of_this
2605 initializer.
2606 * ax-gdb.c (gen_expr): Update call to name_of_this.
2607 * c-exp.y (classify_name): Likewise.
2608 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2609 (cplus_language_data): Likewise.
2610 (cplus_language::name_of_this): New member function.
2611 (asm_language_data): Remove la_name_of_this initializer.
2612 (minimal_language_data): Likewise.
2613 * d-lang.c (d_language_data): Likewise.
2614 (d_language::name_of_this): New member function.
2615 * expprint.c (print_subexp_standard): Update call to name_of_this.
2616 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2617 * go-lang.c (go_language_data): Likewise.
2618 * language.c (unknown_language_data): Likewise.
2619 (unknown_language::name_of_this): New member function.
2620 (auto_language_data): Remove la_name_of_this initializer.
2621 (auto_language::name_of_this): New member function.
2622 * language.h (language_data): Delete la_name_of_this member
2623 variable.
2624 (language_defn::name_of_this): New member function.
2625 * m2-lang.c (m2_language_data): Remove la_name_of_this
2626 initializer.
2627 * objc-lang.c (objc_language_data): Likewise.
2628 (objc_language::name_of_this): New member function.
2629 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2630 initializer.
2631 * p-lang.c (pascal_language_data): Likewise.
2632 (pascal_language::name_of_this): New member function.
2633 * rust-lang.c (rust_language_data): Remove la_name_of_this
2634 initializer.
2635 * symtab.c (lookup_language_this): Update call to name_of_this.
2636 (lookup_symbol_aux): Likewise.
2637 * valops.c (value_of_this): Likewise.
2638
2639 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * ada-lang.c (ada_language_data): Remove
2642 la_struct_too_deep_ellipsis initializer.
2643 (ada_language::struct_too_deep_ellipsis): New member function.
2644 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2645 initializer.
2646 (cplus_language_data): Likewise.
2647 (asm_language_data): Likewise.
2648 (minimal_language_data): Likewise.
2649 * cp-valprint.c (cp_print_value): Update call to
2650 struct_too_deep_ellipsis.
2651 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2652 initializer.
2653 * f-lang.c (f_language_data): Likewise.
2654 (f_language::struct_too_deep_ellipsis): New member function.
2655 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2656 initializer.
2657 * language.c (unknown_language_data): Likewise.
2658 (auto_language_data): Likewise.
2659 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2660 member variable.
2661 (language_defn::struct_too_deep_ellipsis): New member function.
2662 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2663 initializer.Q
2664 * objc-lang.c (objc_language_data): Likewise.
2665 * opencl-lang.c (opencl_language_data): Likewise.
2666 * p-lang.c (pascal_language_data): Likewise.
2667 * rust-lang.c (rust_language_data): Likewise.
2668 * valprint.c (val_print_check_max_depth): Update call to
2669 struct_too_deep_ellipsis.
2670
2671 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2672
2673 * MAINTAINERS (Write After Approval): Add myself.
2674
2675 2020-09-15 Tom Tromey <tom@tromey.com>
2676
2677 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2678 Remove.
2679
2680 2020-09-15 Tom Tromey <tom@tromey.com>
2681
2682 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2683 and TYPE_CODE_METHODPTR cases.
2684 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2685 (c_value_print_inner): Update.
2686 * valprint.c (generic_value_print_memberptr): New function, from
2687 c_value_print_memberptr.
2688 (generic_value_print): Use it. Call cplus_print_method_ptr.
2689
2690 2020-09-15 Tom Tromey <tromey@adacore.com>
2691
2692 * python/python-internal.h (PyInt_FromLong): Remove define.
2693 * python/py-value.c (convert_value_from_python): Use
2694 gdb_py_object_from_longest.
2695 * python/py-type.c (typy_get_code): Use
2696 gdb_py_object_from_longest.
2697 * python/py-symtab.c (salpy_get_line): Use
2698 gdb_py_object_from_longest.
2699 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2700 gdb_py_object_from_longest.
2701 * python/py-record.c (recpy_gap_reason_code): Use
2702 gdb_py_object_from_longest.
2703 * python/py-record-btrace.c (recpy_bt_insn_size)
2704 (recpy_bt_func_level, btpy_list_count): Use
2705 gdb_py_object_from_longest.
2706 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2707 gdb_py_object_from_longest. Fix error handling.
2708 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2709 gdb_py_object_from_longest.
2710 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2711 gdb_py_object_from_longest.
2712 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2713 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2714 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2715
2716 2020-09-15 Tom Tromey <tromey@adacore.com>
2717
2718 * python/python.c (gdbpy_parameter_value): Use
2719 gdb_py_object_from_ulongest.
2720
2721 2020-09-15 Tom Tromey <tromey@adacore.com>
2722
2723 * python/py-infevents.c (create_register_changed_event_object):
2724 Use gdb_py_object_from_longest.
2725 * python/py-exitedevent.c (create_exited_event_object): Use
2726 gdb_py_object_from_longest.
2727
2728 2020-09-15 Tom Tromey <tromey@adacore.com>
2729
2730 * python/python.c (gdbpy_parameter_value): Use
2731 gdb_py_object_from_longest.
2732 * python/py-type.c (convert_field, typy_range): Use
2733 gdb_py_object_from_longest.
2734 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2735 gdb_py_object_from_longest.
2736 * python/py-lazy-string.c (stpy_get_length): Use
2737 gdb_py_object_from_longest.
2738 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2739 gdb_py_object_from_longest.
2740 * python/py-infevents.c (create_memory_changed_event_object): Use
2741 gdb_py_object_from_longest.
2742 * python/py-inferior.c (infpy_get_num): Use
2743 gdb_py_object_from_longest.
2744 (infpy_get_pid): Likewise.
2745
2746 2020-09-15 Tom Tromey <tromey@adacore.com>
2747
2748 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2749 defines.
2750 * python/py-value.c (valpy_long): Use
2751 gdb_py_object_from_ulongest.
2752 * python/py-symtab.c (salpy_get_pc): Use
2753 gdb_py_object_from_ulongest.
2754 (salpy_get_last): Likewise.
2755 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2756 gdb_py_object_from_ulongest.
2757 * python/py-lazy-string.c (stpy_get_address): Use
2758 gdb_py_object_from_ulongest.
2759 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2760 * python/py-arch.c (archpy_disassemble): Use
2761 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2762 error handling.
2763
2764 2020-09-15 Tom Tromey <tromey@adacore.com>
2765
2766 * python/python-internal.h (gdb_py_long_from_longest): Remove
2767 defines.
2768 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2769 * python/py-type.c (convert_field, typy_get_sizeof): Use
2770 gdb_py_object_from_longest.
2771 * python/py-record-btrace.c (btpy_list_index): Use
2772 gdb_py_object_from_longest.
2773
2774 2020-09-15 Tom Tromey <tromey@adacore.com>
2775
2776 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2777 * python/py-record.c (recpy_element_number): Use
2778 gdb_py_object_from_longest.
2779 (recpy_gap_number): Likewise.
2780
2781 2020-09-15 Tom Tromey <tromey@adacore.com>
2782
2783 * top.c (ui::ui): Update.
2784 (highest_ui_num): Remove.
2785 * top.h (struct ui) <num>: Remove.
2786
2787 2020-09-15 Tom Tromey <tromey@adacore.com>
2788
2789 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2790 * ui-style.c (ansi_regex_text): Now array.
2791 * rust-exp.y (number_regex_text): Now array.
2792 * linespec.c (linespec_quote_characters): Now array.
2793 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2794 Now arrays.
2795
2796 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * debuginfod-support.c (debuginfod_client_deleter): New.
2799 (debuginfod_client_up): New.
2800 (debuginfod_init): Return debuginfod_client_up.
2801 (debuginfod_source_query): Adjust.
2802 (debuginfod_debuginfo_query): Adjust.
2803
2804 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * debuginfod-support.c (debuginfod_source_query): Use
2807 make_unique_xstrdup.
2808
2809 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2812 with `type::instance_flags`.
2813
2814 2020-09-14 Michael Mullin <masmullin@gmail.com>
2815
2816 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2817 Remove baton parameter.
2818
2819 2020-09-14 Pedro Alves <pedro@palves.net>
2820
2821 * Makefile.in (SELFTESTS_SRCS): Add
2822 unittests/enum-flags-selftests.c.
2823 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2824 btrace_function_flags instead of enum btrace_function_flag.
2825 * compile/compile-c-types.c (convert_qualified): Use
2826 enum_flags::raw.
2827 * compile/compile-cplus-symbols.c (convert_one_symbol)
2828 (convert_symbol_bmsym):
2829 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2830 (compile_cplus_convert_struct_or_union_methods)
2831 (compile_cplus_instance::convert_qualified_base):
2832 * go-exp.y (parse_string_or_char): Add cast to int.
2833 * unittests/enum-flags-selftests.c: New file.
2834 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2835 type to btrace_thread_flags from btrace_thread_flag.
2836 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2837 local's type to btrace_thread_flags from btrace_thread_flag. Add
2838 cast in DEBUG call.
2839
2840 2020-09-14 Pedro Alves <pedro@palves.net>
2841
2842 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2843 * gdbtypes.c (address_space_name_to_int): Rename to ...
2844 (address_space_name_to_type_instance_flags): ... this.
2845 (address_space_int_to_name): Rename to ...
2846 (address_space_type_instance_flags_to_name): ... this.
2847 * gdbtypes.h (address_space_name_to_int): Rename to ...
2848 (address_space_name_to_type_instance_flags): ... this.
2849 (address_space_int_to_name): Rename to ...
2850 (address_space_type_instance_flags_to_name): ... this.
2851 * type-stack.c (type_stack::insert): Adjust to rename.
2852 * type-stack.h (type_stack::insert): Likewise.
2853
2854 2020-09-14 Pedro Alves <pedro@palves.net>
2855 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * avr-tdep.c (avr_address_class_type_flags): Return
2858 type_instance_flags.
2859 (avr_address_class_type_flags_to_name): Take a
2860 type_instance_flags.
2861 (avr_address_class_name_to_type_flags): Return bool and take a
2862 type_instance_flags.
2863 * d-lang.c (build_d_types): Use type::set_instance_flags.
2864 * ft32-tdep.c (ft32_address_class_type_flags): Return
2865 type_instance_flags.
2866 (ft32_address_class_type_flags_to_name): Take a
2867 type_instance_flags.
2868 (ft32_address_class_name_to_type_flags): Return bool and take a
2869 type_instance_flags.
2870 (ft32_gdbarch_init): Use type::set_instance_flags.
2871 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2872 * gdbarch.h, gdbarch.c: Regenerate.
2873 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2874 (address_class_name_to_type_flags): Use type_instance_flags and
2875 bool.
2876 * gdbtypes.c (address_space_name_to_int)
2877 (address_space_int_to_name, make_qualified_type): Use
2878 type_instance_flags.
2879 (make_qualified_type): Use type_instance_flags and
2880 type::set_instance_flags.
2881 (make_type_with_address_space, make_cv_type, make_vector_type)
2882 (check_typedef): Use type_instance_flags.
2883 (recursive_dump_type): Cast type_instance_flags to unsigned for
2884 printing.
2885 (copy_type_recursive): Use type::set_instance_flags.
2886 (gdbtypes_post_init): Use type::set_instance_flags.
2887 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2888 <m_instance_flags>: ... this.
2889 <instance_flags, set_instance_flags>: New methods.
2890 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2891 (SET_TYPE_INSTANCE_FLAGS): New.
2892 (address_space_name_to_int, address_space_int_to_name)
2893 (make_type_with_address_space): Pass flags using
2894 type_instance_flags instead of int.
2895 * stabsread.c (cleanup_undefined_types_noname): Use
2896 type::set_instance_flags.
2897 * s390-tdep.c (s390_address_class_type_flags): Return
2898 type_instance_flags.
2899 (s390_address_class_type_flags_to_name): Take a
2900 type_instance_flags.
2901 (s390_address_class_name_to_type_flags): Return bool and take a
2902 type_instance_flags.
2903 * type-stack.c (type_stack::follow_types): Use
2904 type_instance_flags.
2905 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2906
2907 2020-09-14 Tom Tromey <tromey@adacore.com>
2908
2909 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2910 * x86-tdep.c (x86_is_thunk_register_name)
2911 (x86_in_indirect_branch_thunk): Update.
2912 * sparc64-tdep.c (sparc64_fpu_register_names)
2913 (sparc64_cp0_register_names, sparc64_register_names)
2914 (sparc64_pseudo_register_names): Now const.
2915 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2916 cp0_registers_num>: Now const.
2917 * sparc-tdep.c (sparc_core_register_names)
2918 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2919 (sparc32_pseudo_register_names): Now const.
2920 (validate_tdesc_registers): Update.
2921 * rust-lang.c (rust_extensions): Now const.
2922 * p-lang.c (p_extensions): Now const.
2923 * objc-lang.c (objc_extensions): Now const.
2924 * nto-tdep.c (nto_thread_state_str): Now const.
2925 * moxie-tdep.c (moxie_register_names): Now const.
2926 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2927 Now const.
2928 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2929 (mips_linux_reg_names): Now const.
2930 (mips_gdbarch_init): Update.
2931 * microblaze-tdep.c (microblaze_register_names): Now const.
2932 * m68k-tdep.c (m68k_register_names): Now const.
2933 * m32r-tdep.c (m32r_register_names): Now const.
2934 * ia64-tdep.c (ia64_register_names): Now const.
2935 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2936 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2937 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2938 ymm_avx512_register_names, pkeys_register_names>: Now const.
2939 * i386-tdep.c (i386_register_names, i386_zmm_names)
2940 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2941 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2942 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2943 * f-lang.c (f_extensions): Now const.
2944 * d-lang.c (d_extensions): Now const.
2945 * csky-tdep.c (csky_register_names): Now const.
2946 * charset.c (default_charset_names, charset_enum): Now const.
2947 (_initialize_charset): Update.
2948 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2949 const.
2950 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2951 (bsd_uthread_solib_loaded): Update.
2952 (bsd_uthread_state): Now const.
2953 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2954 (amd64_ymm_avx512_names, amd64_ymmh_names)
2955 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2956 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2957 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2958 (amd64_dword_names): Now const.
2959 * agent.c (can_use_agent_enum): Now const.
2960 * ada-tasks.c (task_states, long_task_states): Now const.
2961 * ada-lang.c (known_runtime_file_name_patterns)
2962 (known_auxiliary_function_name_patterns, attribute_names)
2963 (standard_exc, ada_extensions): Now const.
2964
2965 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * bcache.h (struct bcache) <bcache>: Remove constructor.
2968 <m_hash_function, m_compare_function>: Remove.
2969 <~bcache>: Make virtual.
2970 <compare>: Remove static method, introduce virtual method.
2971 <default_hash>: Remove.
2972 <hash>: New virtual method.
2973 * bcache.c (bcache::expand_hash_table): Update.
2974 (bcache::insert): Update.
2975 (bcache::hash): New.
2976 (bcache::compare): Update comment and parameter names.
2977 * gdbtypes.c (types_deeply_equal): Update.
2978 * psymtab.h (struct psymbol_bcache): New struct.
2979 (class psymtab_storage) <psymtab_storage>: Make default.
2980 <psymbol_cache>: Change type to psymbol_bcache.
2981 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2982 (psymbol_hash): Change to...
2983 (psymbol_bcache::hash): ... this.
2984 (psymbol_compare): Change to...
2985 (psymbol_bcache::compare): ... this.
2986
2987 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2988
2989 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2990 checking for initial lwp.
2991
2992 2020-09-14 Tom Tromey <tromey@adacore.com>
2993
2994 * m68k-tdep.c (m68k_extract_return_value): Use
2995 pointer_result_regnum.
2996 (m68k_store_return_value): Likewise.
2997 (m68k_reg_struct_return_p): Handle vectors and arrays.
2998 (m68k_return_value): Handle arrays.
2999 (m68k_svr4_return_value): Fix single-element aggregate handling.
3000 Handle long double. Adjust for embedded ABI.
3001 (m68k_svr4_init_abi): Set pointer_result_regnum.
3002 (m68k_embedded_init_abi): New function.
3003 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3004 (m68k_osabi_sniffer): New function.
3005 (_initialize_m68k_tdep): Register osabi sniffer.
3006 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3007 member.
3008
3009 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3010
3011 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3012 with gdb::unique_xmalloc_ptr<char>.
3013
3014 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * xml-support.h (xml_fetch_another): Change type to be a
3017 function_view.
3018 (xml_process_xincludes): Remove baton parameter.
3019 (xml_fetch_content_from_file): Change baton parameter to
3020 dirname.
3021 * xml-support.c (struct xinclude_parsing_data)
3022 <xinclude_parsing_data>: Remove baton parameter.
3023 <fetcher_baton>: Remove.
3024 (xinclude_start_include): Adjust.
3025 (xml_process_xincludes): Adjust.
3026 (xml_fetch_content_from_file): Replace baton parameter with
3027 dirname.
3028 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3029 (xml_init_syscalls_info): Use a lambda.
3030 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3031 (file_read_description_xml): Use a lambda.
3032 (fetch_available_features_from_target): Change baton parameter
3033 to target_ops.
3034 (target_read_description_xml): Use a lambda.
3035 (target_fetch_description_xml): Use a lambda.
3036 (string_read_description_xml): Update.
3037
3038 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3039
3040 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3041 uses with type::endianity_is_not_default.
3042
3043 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * gdbtypes.h (struct type) <endianity_is_not_default,
3046 set_endianity_is_not_default>: New methods.
3047 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3048 type::endianity_is_not_default, change all write call sites to
3049 use type::set_endianity_is_not_default.
3050
3051 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3054 uses with type::is_fixed_instance.
3055
3056 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * gdbtypes.h (struct type) <is_fixed_instance,
3059 set_is_fixed_instance>: New methods.
3060 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3061 write call sites to use type::set_is_fixed_instance.
3062
3063 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3066 uses with type::is_gnu_ifunc.
3067
3068 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3071 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3072 use type::set_is_gnu_ifunc.
3073
3074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3077 uses with type::stub_is_supported.
3078
3079 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3082 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3083 use type::set_stub_is_supported.
3084
3085 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3088 uses with type::is_vector.
3089
3090 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3091
3092 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3093 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3094 use type::set_is_vector.
3095
3096 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3099 uses with type::has_varargs.
3100
3101 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3104 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3105 use type::set_has_varargs.
3106
3107 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3110 uses with type::is_prototyped.
3111
3112 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3115 New methods.
3116 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3117 call sites to use type::set_is_prototyped.
3118
3119 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3122 uses with type::target_is_stub.
3123
3124 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3125
3126 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3127 New methods.
3128 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3129 sites to use type::set_target_is_stub.
3130
3131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * gdbtypes.h (TYPE_STUB): Remove, replace all
3134 uses with type::is_stub.
3135
3136 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3139 (TYPE_STUB): Use type::is_stub, change all write call sites to
3140 use type::set_is_stub.
3141
3142 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3145 type::has_no_signedness.
3146
3147 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (struct type) <has_no_signedness,
3150 set_has_no_signedness>: New methods.
3151 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3152 call sites to use type::set_has_no_signedness.
3153
3154 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3157 type::is_unsigned.
3158
3159 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3162 methods.
3163 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3164 sites to use type::set_is_unsigned.
3165
3166 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3167 Adam Renquinha <arenquinha@cimeq.qc.ca>
3168
3169 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3170 pointer and stack frame offset when unwinding.
3171
3172 2020-09-13 Pedro Alves <pedro@palves.net>
3173
3174 * NEWS: Document "-break-insert --qualified".
3175 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3176
3177 2020-09-13 Pedro Alves <pedro@palves.net>
3178
3179 * linespec.c (classify_mtype, compare_msyms): Delete.
3180 (search_minsyms_for_name): Remove classification logic. Instead
3181 filter out trampoline symbols if we also found an external
3182 function of the same name.
3183
3184 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3185
3186 * NEWS: Create a new section for the next release branch.
3187 Rename the section of the current branch, now that it has
3188 been cut.
3189
3190 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3191
3192 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3193 * version.in: Bump version to 11.0.50.DATE-git.
3194
3195 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3196
3197 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3198
3199 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3200 Felix Willgerodt <Felix.Willgerodt@intel.com>
3201
3202 * gdbarch.sh: Added bfloat16 type.
3203 * gdbarch.c: Regenerated.
3204 * gdbarch.h: Regenerated.
3205 * gdbtypes.c (floatformats_bfloat16): New struct.
3206 (gdbtypes_post_init): Add builtin_bfloat16.
3207 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3208 (floatformats_bfloat16): New struct.
3209 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3210 (i386_ymm_type): Add field "v16_bfloat16"
3211 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3212 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3213 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3214 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3215 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3216 * features/i386/64bit-avx512.c: Regenerated.
3217 * features/i386/64bit-sse.xml: Add bfloat16 type.
3218 * features/i386/64bit-sse.c: Regenerated.
3219
3220 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3221
3222 * i386-tdep.c (i386_zmm_type): Fix field names.
3223 (i386_ymm_type): Fix field names.
3224
3225 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 * breakpoint.c: Fix typo in the help message of the
3228 "set breakpoint condition-evaluation" command.
3229
3230 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3231
3232 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3233 * (nbsd_nat_target::pid_to_exec_file)
3234 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3235 (nbsd_nat_target::post_startup_inferior)
3236 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3237 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3238 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3239 * (nbsd_thread_lister): Remove.
3240
3241 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3242
3243 * fork-inferior.c (startup_inferior): Avoid double free.
3244
3245 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3246
3247 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3248 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3249
3250 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3251
3252 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3253 * netbsd-nat.c: Include <sys/ptrace.h>.
3254 * (netbsd_nat::enable_proc_events): Add.
3255
3256 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3257
3258 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3259 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3260 (netbsd_nat::for_each_thread): Add.
3261 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3262 "gdbsupport/common-debug.h".
3263 * (netbsd_nat::netbsd_thread_lister)
3264 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3265 (netbsd_nat::for_each_thread): Add.
3266
3267 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3268
3269 * netbsd-nat.h: Include <unistd.h>.
3270 * (netbsd_nat::pid_to_exec_file): Add.
3271 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3272 * (netbsd_nat::pid_to_exec_file) Add.
3273
3274 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3275
3276 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3277
3278 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3279
3280 * netbsd-nat.h: New file.
3281 * netbsd-nat.c: Likewise.
3282
3283 2020-09-09 Tom Tromey <tromey@adacore.com>
3284
3285 * ada-lang.c (remove_extra_symbols): Do not increment when
3286 removing an element
3287
3288 2020-09-08 Tom Tromey <tromey@adacore.com>
3289
3290 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3291
3292 2020-09-08 Tom Tromey <tromey@adacore.com>
3293
3294 PR win32/25302:
3295 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3296 (gdb_bfd_init_data): New function.
3297 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3298
3299 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3300
3301 * infrun.c (fetch_inferior_event): Use
3302 `switch_to_target_no_thread` to switch the target.
3303
3304 2020-09-06 Tom Tromey <tom@tromey.com>
3305
3306 * symfile.h (dwarf2_free_objfile): Don't declare.
3307
3308 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3309
3310 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3311 to match 16 byte real/complex type generated by Flang compiler.
3312
3313 2020-09-03 Tom de Vries <tdevries@suse.de>
3314
3315 PR breakpoint/26546
3316 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3317 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3318
3319 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * maint.c (index_digits): New function.
3322 (struct maint_print_section_data): Remove.
3323 (print_bfd_section_info): Remove print_data parameter, add arg
3324 and index_digits.
3325 (print_objfile_section_info): Likewise.
3326 (print_bfd_section_info_maybe_relocated): Likewise (plus
3327 objfile).
3328 (maintenance_info_sections): Adjust calls.
3329
3330 2020-09-02 Tom Tromey <tromey@adacore.com>
3331
3332 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3333 for null pointers.
3334 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3335
3336 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 * bcache.h (struct bcache) <insert>: Change type of `added` to
3339 pointer to bool.
3340 * bcache.c (bcache::insert): Likewise.
3341 * gdbtypes.c (check_types_worklist): Adjust.
3342 * psymtab.c (add_psymbol_to_bcache): Adjust.
3343
3344 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3345
3346 * corelow.c (unordered_set): Include.
3347 (class core_target): Add field 'm_core_unavailable_mappings'.
3348 (core_target::build_file_mappings): Print only one warning
3349 per inaccessible file. Add unavailable/broken mappings
3350 to m_core_unavailable_mappings.
3351 (core_target::xfer_partial): Call...
3352 (core_target::xfer_memory_via_mappings): New method.
3353
3354 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3357 type to bool.
3358
3359 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * dwarf2/read.c (struct field_info): Fix indentation.
3362
3363 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3366 ordering in comment.
3367 * frame.c (frame_id_eq): Fix indentation.
3368
3369 2020-08-31 Scott Linder <scott@scottlinder.com>
3370 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3373 inline frame ids in outer frame.
3374
3375 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3376
3377 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3378 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3379 (outer_frame_id): Use FID_STACK_OUTER instead of
3380 FID_STACK_INVALID.
3381 (frame_id_p): Don't check for outer_frame_id.
3382
3383 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3386 regnum/frame in value. Call allocate_value_lazy.
3387 * frame.c (frame_unwind_register_value): Use
3388 val_print_not_saved.
3389
3390 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3391
3392 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3393
3394 2020-08-29 Pedro Alves <pedro@palves.net>
3395
3396 * progspace.c (print_program_space): Use all_inferiors. Switch to
3397 the inferior before calling target_pid_to_str.
3398
3399 2020-08-28 Tom Tromey <tom@tromey.com>
3400
3401 * xcoffread.c (xcoff_end_psymtab): Update comment.
3402 * dbxread.c (dbx_end_psymtab): Update comment.
3403
3404 2020-08-28 Tom de Vries <tdevries@suse.de>
3405
3406 PR breakpoint/26544
3407 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3408 event_location.
3409 (create_breakpoint): Same.
3410 (base_breakpoint_decode_location): Same.
3411 (bkpt_create_sals_from_location): Same.
3412 (bkpt_decode_location): Same.
3413 (bkpt_probe_create_sals_from_location): Same.
3414 (bkpt_probe_decode_location): Same.
3415 (tracepoint_create_sals_from_location): Same.
3416 (tracepoint_decode_location): Same.
3417 (tracepoint_probe_decode_location): Same.
3418 (strace_marker_create_sals_from_location): Same.
3419 (strace_marker_decode_location): Same.
3420 (create_sals_from_location_default): Same.
3421 (decode_location_default): Same.
3422 * breakpoint.h (struct breakpoint_ops): Same.
3423 (create_breakpoint): Same.
3424 * linespec.h (decode_line_full): Same.
3425 * linespec.c (decode_line_full): Same. Throw error if
3426 result.size () == 0.
3427
3428 2020-08-27 Pedro Alves <pedro@palves.net>
3429
3430 PR gdb/26524
3431 * breakpoint.c (until_break_fsm) <location_breakpoint,
3432 caller_breakpoint>: Delete fields.
3433 <breakpoints>: New field.
3434 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3435 two individual breakpoints.
3436 (until_break_fsm::should_stop): Loop over breakpoints in the
3437 breakpoint vector.
3438 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3439 vector.
3440 (until_break_command): Handle location expanding into multiple
3441 sals.
3442
3443 2020-08-27 Pedro Alves <pedro@palves.net>
3444
3445 PR gdb/26523
3446 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3447 bp_until breakpoints user-specified locations. Update intro
3448 comment.
3449
3450 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3451
3452 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3453 gdb_bfd_sections): New.
3454 * maint.c (print_bfd_section_info): Change param type to
3455 maint_print_section_data.
3456 (print_objfile_section_info): Likewise.
3457 (print_bfd_section_info_maybe_relocated): Likewise.
3458 (maintenance_info_sections): Use gdb_bfd_sections.
3459
3460 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3461
3462 * MAINTAINERS: Add ARC target and maintainer.
3463
3464 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3465
3466 * configure.tgt: ARC support for GNU/Linux.
3467 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3468 * arc-linux-tdep.c: New file.
3469 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3470 * arc-tdep.c (arc_write_pc): Use it.
3471
3472 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3473
3474 * arc-tdep.c (arc_check_for_hardware_loop): New.
3475 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3476
3477 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3478
3479 * arc-tdep.h: Include "gdbarch.h".
3480
3481 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3482
3483 * arch/arc.h
3484 (arc_gdbarch_features): New class to stir the selection of target XML.
3485 (arc_create_target_description): Use FEATURES to choose XML target.
3486 (arc_lookup_target_description): Use arc_create_target_description
3487 to create _new_ target descriptions or return the already created
3488 ones if the FEATURES is the same.
3489 * arch/arc.c: Implementation of prototypes described above.
3490 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3491 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3492 * arc-tdep.c (*_feature_name): Make feature names consistent.
3493 (arc_register_feature): A new struct to hold information about
3494 registers of a particular target/feature.
3495 (arc_check_tdesc_feature): Check if XML provides registers in
3496 compliance with ARC_REGISTER_FEATURE structs.
3497 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3498 (determine_*_reg_feature_set): Which feature name to look for.
3499 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3500 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3501 to expected ISA enums to be used in arc_gdbarch_features structs.
3502 * features/Makefile (FEATURE_XMLFILES): Add new files.
3503 * gdb/features/arc/v1-aux.c: New file.
3504 * gdb/features/arc/v1-aux.xml: Likewise.
3505 * gdb/features/arc/v1-core.c: Likewise.
3506 * gdb/features/arc/v1-core.xml: Likewise.
3507 * gdb/features/arc/v2-aux.c: Likewise.
3508 * gdb/features/arc/v2-aux.xml: Likewise.
3509 * gdb/features/arc/v2-core.c: Likewise.
3510 * gdb/features/arc/v2-core.xml: Likewise.
3511 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3512
3513 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3514 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 PR m2/26372
3517 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3518 an assert. Remove single element array indexing pattern as the
3519 MULTI_SUBSCRIPT support will handle this case too.
3520
3521 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3522
3523 * value.h (valprint_check_validity): Move declaration from
3524 here...
3525 * valprint.h (valprint_check_validity): ... to here.
3526
3527 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3528
3529 * debug.h: New file.
3530 * debug.c (debug_prefixed_vprintf): New function.
3531 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3532 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3533
3534 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * infrun.h (infrun_debug_printf_1): New function declaration.
3537 (infrun_debug_printf): New macro.
3538 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3539 throughout.
3540 (infrun_debug_printf): New function.
3541 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3542 (handle_jit_event): Likewise.
3543
3544 2020-08-21 Mark Wielaard <mark@klomp.org>
3545
3546 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3547
3548 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3549
3550 * frame.c (enum class frame_id_status): New.
3551 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3552 (fprintf_frame): Update.
3553 (compute_frame_id): Set frame id status to "computing" on entry.
3554 Set it back to "not_computed" on failure and to "computed" on
3555 success.
3556 (get_frame_id): Assert the frame id is not being computed.
3557 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3558 (create_new_frame): Likewise.
3559 (frame_cleanup_after_sniffer): Update assert.
3560
3561 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3562
3563 * regcache.c (pid_ptid_regcache_map): New type.
3564 (target_ptid_regcache_map): Remove.
3565 (target_pid_ptid_regcache_map): New type.
3566 (regcaches): Change type to target_pid_ptid_regcache_map.
3567 (get_thread_arch_aspace_regcache): Update.
3568 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3569 case.
3570 (regcaches_size): Update.
3571 (regcache_count): Update.
3572 (registers_changed_ptid_target_pid_test): New.
3573 (_initialize_regcache): Register new test.
3574
3575 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * regcache.c (regcache_count): New.
3578 (struct regcache_test_data): New.
3579 (regcache_test_data_up): New.
3580 (populate_regcaches_for_test): New.
3581 (regcaches_test): Remove.
3582 (get_thread_arch_aspace_regcache_test): New.
3583 (registers_changed_ptid_all_test): New.
3584 (registers_changed_ptid_target_test): New.
3585 (registers_changed_ptid_target_ptid_test): New.
3586 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3587 (_initialize_regcache): Register new tests.
3588
3589 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3592 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3593 gdbarch and aspace parameter. Use current inferior's aspace.
3594 Validate regcache's arch value.
3595 (regcaches_test): Update.
3596
3597 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3598
3599 * regcache.c (regcaches_test): Call registers_changed.
3600
3601 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602
3603 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3604
3605 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3606
3607 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3608 to find the end of prologue for flang compiled binaries.
3609 * arm-tdep.c (arm_skip_prologue): Likewise.
3610 * i386-tdep.c (i386_skip_prologue): Likewise.
3611 * producer.c (producer_is_llvm): New function.
3612 (producer_parsing_tests): Added new tests for clang/flang.
3613 * producer.h (producer_is_llvm): New declaration.
3614
3615 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3616
3617 * linux-nat.c (linux_nat_debug_printf): New function.
3618 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3619
3620 2020-08-18 Aaron Merey <amerey@redhat.com>
3621
3622 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3623 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3624 (CLIBS): Add DEBUGINFOD_LIBS.
3625
3626 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3627
3628 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3629 'gdbarch_num_regs'.
3630
3631 2020-08-17 Tom Tromey <tromey@adacore.com>
3632
3633 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3634 ada_get_decoded_value returns NULL.
3635
3636 2020-08-17 Tom Tromey <tromey@adacore.com>
3637
3638 * python/py-inferior.c (infpy_search_memory): Use
3639 gdb_py_object_from_ulongest.
3640 * python/py-infevents.c (create_inferior_call_event_object)
3641 (create_memory_changed_event_object): Use
3642 gdb_py_object_from_ulongest.
3643 * python/py-linetable.c (ltpy_entry_get_pc): Use
3644 gdb_py_object_from_ulongest.
3645
3646 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3647
3648 * loc.c (class symbol_needs_eval_context): Fix indentation.
3649
3650 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3653 bool.
3654
3655 2020-08-17 Tom de Vries <tdevries@suse.de>
3656
3657 PR gdb/26393
3658 * gdbtypes.c (dump_dynamic_prop): New function.
3659 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3660
3661 2020-08-15 Tom de Vries <tdevries@suse.de>
3662
3663 PR backtrace/26390
3664 * stack.c (print_frame_args): Temporarily set the selected
3665 frame to FRAME while printing the frame's arguments.
3666
3667 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3668
3669 PR breakpoints/26385
3670 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3671 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3672
3673 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3674
3675 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3676 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3677 and >= to check return value instead of == -1 and != -1.
3678
3679 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3680
3681 * utils.h (class gdb_argv) <as_array_view>: New method.
3682 * utils.c (gdb_argv_as_array_view_test): New.
3683 (_initialize_utils): Register selftest.
3684 * maint.c (maintenance_selftest): Use the new method.
3685
3686 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3687
3688 * target.h (supports_dumpcore, dumpcore): New
3689 function declarations.
3690 * target.c (supports_dumpcore, dumpcore): New
3691 functions.
3692 * target-delegates.c: Rebuild.
3693 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3694 and target_dumpcore ().
3695
3696 2020-08-13 Aaron Merey <amerey@redhat.com>
3697
3698 * debuginfod-support.c: Replace global variables with user_data.
3699
3700 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * maint.c (maintenance_selftest): Split args and pass array_view
3703 to run_tests.
3704
3705 2020-08-12 Luis Machado <luis.machado@linaro.org>
3706
3707 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3708 type's length.
3709 Use %s and pulongest to print the length.
3710
3711 2020-08-12 Pedro Alves <palves@redhat.com>
3712
3713 * NEWS: Move "Multi-target debugging support" item to the
3714 "Changes since GDB 9" section.
3715
3716 2020-08-12 Pedro Alves <palves@redhat.com>
3717
3718 PR gdb/26336
3719 * progspace.c (program_space::remove_objfile): Invalidate the
3720 frame cache.
3721
3722 2020-08-11 Tom de Vries <tdevries@suse.de>
3723
3724 * MAINTAINERS: Mark ms1 as deleted.
3725
3726 2020-08-10 Luis Machado <luis.machado@linaro.org>
3727
3728 PR gdb/26310
3729
3730 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3731 act accordingly.
3732 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3733 movz/str/stur/stp skipping behavior.
3734
3735 2020-08-10 Luis Machado <luis.machado@linaro.org>
3736
3737 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3738 struct user_sve_header instead of struct sve_context.
3739
3740 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3741
3742 * read.h (dwarf2_fetch_die_loc_sect_off,
3743 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3744 `void *` parameter with function_view.
3745 * read.c (dwarf2_fetch_die_loc_sect_off,
3746 dwarf2_fetch_die_loc_cu_off): Likewise.
3747 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3748 (per_cu_dwarf_call): Adjust.
3749 (get_frame_address_in_block_wrapper): Remove.
3750 (indirect_synthetic_pointer): Adjust.
3751 (get_ax_pc): Remove.
3752 (dwarf2_compile_expr_to_ax): Adjust.
3753
3754 2020-08-08 Tom de Vries <tdevries@suse.de>
3755
3756 PR build/26344
3757 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3758 constructor.
3759 * regcache.c (get_thread_arch_aspace_regcache): Same.
3760
3761 2020-08-07 Tom Tromey <tromey@adacore.com>
3762
3763 * ravenscar-thread.c
3764 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3765 New method.
3766 (ravenscar_thread_target::wait): Check
3767 runtime_initialized.
3768 (ravenscar_thread_target::prepare_to_store)
3769 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3770 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3771 (ravenscar_thread_target::stopped_by_watchpoint)
3772 (ravenscar_thread_target::stopped_data_address)
3773 (ravenscar_thread_target::core_of_thread): Use
3774 scoped_restore_current_thread and
3775 set_base_thread_from_ravenscar_task.
3776
3777 2020-08-07 Tom Tromey <tromey@adacore.com>
3778
3779 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3780
3781 2020-08-07 Tom Tromey <tromey@adacore.com>
3782
3783 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3784 update_inferior_ptid before update_thread_list.
3785 (temporarily_change_regcache_ptid): New class.
3786 (ravenscar_thread_target::fetch_registers)
3787 (ravenscar_thread_target::store_registers)
3788 (ravenscar_thread_target::prepare_to_store): Use base thread when
3789 forwarding operation.
3790
3791 2020-08-07 Tom Tromey <tromey@adacore.com>
3792
3793 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3794 "is_pid" case.
3795
3796 2020-08-07 Tom Tromey <tromey@adacore.com>
3797
3798 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3799 New methods.
3800 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3801 first.
3802 (ravenscar_thread_target::add_thread): Rename from
3803 ravenscar_add_thread.
3804 (ravenscar_thread_target::update_thread_list): Use a lambda.
3805 (ravenscar_thread_target::xfer_partial): New method.
3806
3807 2020-08-07 Tom Tromey <tromey@adacore.com>
3808
3809 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3810 gdb::function_view.
3811 (iterate_over_live_ada_tasks): Change type of argument.
3812 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3813 of argument.
3814
3815 2020-08-07 Tom Tromey <tromey@adacore.com>
3816
3817 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3818 Remove.
3819 (ravenscar_thread_target::extra_thread_info): Remove.
3820 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3821 defer to target beneath for non-Ravenscar threads.
3822
3823 2020-08-07 Tom Tromey <tromey@adacore.com>
3824
3825 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3826 get_base_thread_from_ravenscar_task>: Now methods.
3827 <m_cpu_map>: New member.
3828 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3829 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3830 (ravenscar_thread_target::task_is_currently_active): Update.
3831 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3832 Now a method.
3833 (ravenscar_thread_target::add_active_thread): Put initial thread
3834 into the m_cpu_map.
3835
3836 2020-08-07 Tom Tromey <tromey@adacore.com>
3837
3838 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3839 event_ptid.
3840
3841 2020-08-07 Tom Tromey <tromey@adacore.com>
3842
3843 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3844 runtime_initialized.
3845
3846 2020-08-07 Tom Tromey <tromey@adacore.com>
3847
3848 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3849 add_active_thread.
3850 (ravenscar_thread_target::add_active_thread): Now public.
3851 (ravenscar_inferior_created): Call add_active_thread after pushing
3852 the target.
3853
3854 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * regcache.c (ptid_regcache_map): New type.
3857 (target_ptid_regcache_map): New type.
3858 (regcaches): Change type to target_ptid_regcache_map.
3859 (get_thread_arch_aspace_regcache): Update to regcaches' new
3860 type.
3861 (regcache_thread_ptid_changed): Likewise.
3862 (registers_changed_ptid): Likewise.
3863 (regcaches_size): Likewise.
3864 (regcaches_test): Update.
3865 (regcache_thread_ptid_changed): Update.
3866 * regcache.h (regcache_up): New type.
3867 * gdbsupport/ptid.h (hash_ptid): New struct.
3868
3869 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3870
3871 * observable.h (thread_ptid_changed): Add parameter
3872 `process_stratum_target *`.
3873 * infrun.c (infrun_thread_ptid_changed): Add parameter
3874 `process_stratum_target *` and use it.
3875 (selftests): New namespace.
3876 (infrun_thread_ptid_changed): New function.
3877 (_initialize_infrun): Register selftest.
3878 * regcache.c (regcache_thread_ptid_changed): Add parameter
3879 `process_stratum_target *` and use it.
3880 (regcache_thread_ptid_changed): New function.
3881 (_initialize_regcache): Register selftest.
3882 * thread.c (thread_change_ptid): Pass target to
3883 thread_ptid_changed observable.
3884
3885 2020-08-06 Caroline Tice <cmtice@google.com>
3886
3887 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3888 (struct dwp_sections): Update field comments. Add loclists and
3889 rnglists fields.
3890 (struct virtual_v2_dwo_sections): Rename struct to
3891 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3892 size & offset fields for loclists and rnglists.
3893 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3894 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3895 skipping dummy type units.
3896 (create_dwp_hash_table): Update the large comment above the function to
3897 discuss Version 5 DWP files as well, with references. Update all the
3898 version checks in the function to check for version 5 as well. Add new
3899 section at the end to create dwp hash table for version 5.
3900 (create_dwp_v2_section): Rename function to
3901 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3902 Add V5 to error message text.
3903 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3904 into calls to create_dwp_v2_or_v5_section.
3905 (create_dwo_unit_in_dwp_v5): New function.
3906 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3907 check for version2; add else clause to handle version 5.
3908 (open_and_init_dwo_file): Add code to check dwarf version & only call
3909 create_debug_types_hash_table (with sections.types) if version is not 5;
3910 else call create_debug_type_hash_table, with sections.info.
3911 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3912 version 5.
3913 (dwarf2_locate_v5_dwp_sections): New function.
3914 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3915 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3916
3917 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3918
3919 * regcache.h (class regcache): Remove friend
3920 registers_changed_ptid.
3921 <regcache_thread_ptid_changed>: Remove.
3922 <regcaches>: Remove.
3923 * regcache.c (regcache::regcaches): Rename to...
3924 (regcaches): ... this. Make static.
3925 (get_thread_arch_aspace_regcache): Update.
3926 (regcache::regcache_thread_ptid_changed): Rename to...
3927 (regcache_thread_ptid_changed): ... this. Update.
3928 (class regcache_access): Remove.
3929 (regcaches_test): Update.
3930 (_initialize_regcache): Update.
3931 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3932 <forward_list>.
3933
3934 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * regcache.h (class regcache) <current_regcache>: Rename to...
3937 <regcaches>: ... this. Move doc here.
3938 * regcache.c (regcache::current_regcache) Rename to...
3939 (regcache::regcaches): ... this. Move doc to header.
3940 (get_thread_arch_aspace_regcache): Update.
3941 (regcache::regcache_thread_ptid_changed): Update.
3942 (registers_changed_ptid): Update.
3943 (class regcache_access) <current_regcache_size>: Rename to...
3944 <regcaches_size>: ... this.
3945 (current_regcache_test): Rename to...
3946 (regcaches_test): ... this.
3947 (_initialize_regcache): Update.
3948
3949 2020-08-06 Victor Collod <vcollod@nvidia.com>
3950
3951 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3952
3953 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3954
3955 * corelow.c (core_target::build_file_mappings): Don't output
3956 null pathname in warning.
3957
3958 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3961 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3962 gdb.dwarf2/dw2-single-line-discriminators.exp,
3963 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3964
3965 2020-08-05 Tom Tromey <tromey@adacore.com>
3966
3967 PR rust/26197:
3968 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3969 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3970 Fix off-by-one and type size errors in ordinary case.
3971
3972 2020-08-05 Tom de Vries <tdevries@suse.de>
3973
3974 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3975 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3976
3977 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3978
3979 * frame.h (frame_id_p): Return bool.
3980 (frame_id_artificial_p): Return bool.
3981 (frame_id_eq): Return bool.
3982 (has_stack_frames): Return bool.
3983 (get_selected_frame): Fix typo in comment.
3984 (get_frame_pc_if_available): Return bool.
3985 (get_frame_address_in_block_if_available): Return bool.
3986 (get_frame_func_if_available): Return bool.
3987 (read_frame_register_unsigned): Return bool.
3988 (get_frame_register_bytes): Return bool.
3989 (safe_frame_unwind_memory): Return bool.
3990 (deprecated_frame_register_read): Return bool.
3991 (frame_unwinder_is): Return bool.
3992 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3993 bool.
3994 <this_id::p>: Likewise.
3995 <prev_p>: Likewise.
3996 (frame_stash_add): Return bool.
3997 (get_frame_id): Use bool.
3998 (frame_id_build_special) Use bool.
3999 (frame_id_build_unavailable_stack): Use bool.
4000 (frame_id_build): Use bool.
4001 (frame_id_p): Return bool, use true/false instead of 1/0.
4002 (frame_id_artificial_p): Likewise.
4003 (frame_id_eq): Likewise.
4004 (frame_id_inner): Likewise.
4005 (get_frame_func_if_available): Likewise.
4006 (read_frame_register_unsigned): Likewise.
4007 (deprecated_frame_register_read): Likewise.
4008 (get_frame_register_bytes): Likewise.
4009 (has_stack_frames): Likewise.
4010 (inside_main_func): Likewise.
4011 (inside_entry_func): Likewise.
4012 (get_frame_pc_if_available): Likewise.
4013 (get_frame_address_in_block_if_available): Likewise.
4014 (frame_unwinder_is): Likewise.
4015 (safe_frame_unwind_memory): Likewise.
4016 (frame_unwind_arch): Likewise.
4017
4018 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4019
4020 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4021 type to cached_copy_status.
4022 (fprintf_frame): Adjust.
4023 (get_frame_func_if_available): Adjust.
4024 (frame_cleanup_after_sniffer): Adjust.
4025
4026 2020-08-04 Mark Wielaard <mark@klomp.org>
4027
4028 * MAINTAINERS (Write After Approval): Update email address.
4029
4030 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4031
4032 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4033 dynamic_prop::const_val.
4034
4035 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4036
4037 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4038 dynamic_prop::kind.
4039
4040 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4043
4044 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4045
4046 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4047
4048 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4049 Jose E. Marchesi <jose.marchesi@oracle.com>
4050
4051 * configure.tgt: Add entry for bpf-*-*.
4052 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4053 (ALLDEPFILES): Add bpf-tdep.c.
4054 * bpf-tdep.c: New file.
4055 * MAINTAINERS: Add bpf target and maintainer.
4056 * NEWS: Mention the support for the new target.
4057
4058 2020-08-04 Tom de Vries <tdevries@suse.de>
4059
4060 PR symtab/23270
4061 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4062 Error.
4063
4064 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4065
4066 * syscalls/freebsd.xml: Regenerate.
4067
4068 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4069
4070 * syscalls/update-freebsd.sh: Fix usage and year range.
4071
4072 2020-08-03 Tom de Vries <tdevries@suse.de>
4073
4074 PR symtab/26333
4075 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4076 DW_LNE_lo_user/DW_LNE_hi_user range.
4077
4078 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4079
4080 PR ada/26318
4081 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4082 kind.
4083
4084 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4085
4086 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4087
4088 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4089
4090 * breakpoint.c (set_breakpoint_condition): Update the condition
4091 expressions after checking that the input condition string parses
4092 successfully and does not contain junk at the end.
4093
4094 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095
4096 * breakpoint.c (set_breakpoint_condition): Update the
4097 condition string after parsing the new condition successfully.
4098
4099 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4100
4101 * proc-api.c (_STRUCTURED_PROC): Don't define.
4102 * proc-events.c: Likewise.
4103 * proc-flags.c: Likewise.
4104 * proc-why.c: Likewise.
4105 * procfs.c: Likewise.
4106
4107 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4108 * configure, config.in: Regenerate.
4109
4110 2020-07-30 Tom de Vries <tdevries@suse.de>
4111
4112 PR build/26320
4113 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4114 m_red/m_green/m_blue in a union.
4115
4116 2020-07-29 Tom de Vries <tdevries@suse.de>
4117
4118 PR tdep/26280
4119 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4120
4121 2020-07-28 Tom Tromey <tromey@adacore.com>
4122
4123 PR symtab/26270:
4124 * symtab.h (find_pc_partial_function_sym): Declare.
4125 * cli/cli-cmds.c (disassemble_command): Use
4126 find_pc_partial_function_sym. Check asm_demangle.
4127 * blockframe.c (cache_pc_function_sym): New global.
4128 (cache_pc_function_name): Remove.
4129 (clear_pc_function_cache): Update.
4130 (find_pc_partial_function_sym): New function, from
4131 find_pc_partial_function.
4132 (find_pc_partial_function): Rewrite using
4133 find_pc_partial_function_sym.
4134
4135 2020-07-28 Tom Tromey <tromey@adacore.com>
4136
4137 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4138 help. Add usage.
4139
4140 2020-07-28 Tom Tromey <tromey@adacore.com>
4141
4142 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4143 <DW_OP_GNU_variable_value>: Cast to address type.
4144
4145 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4146
4147 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4148 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4149 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4150 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4151 (nbsd_get_siginfo_type): New.
4152 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4153 (_initialize_nbsd_tdep): New.
4154
4155 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4156
4157 PR binutils/26301
4158 * configure: Regenerated.
4159
4160 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4161
4162 PR binutils/26301
4163 * configure: Regenerated.
4164
4165 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * python/py-frame.c: Remove 'user-regs.h' include.
4168 (frapy_read_register): Rewrite to make use of
4169 gdbpy_parse_register_id.
4170 * python/py-registers.c (gdbpy_parse_register_id): New function,
4171 moved here from python/py-unwind.c. Updated the return type, and
4172 also accepts register descriptor objects.
4173 * python/py-unwind.c: Remove 'user-regs.h' include.
4174 (pyuw_parse_register_id): Moved to python/py-registers.c.
4175 (unwind_infopy_add_saved_register): Update to use
4176 gdbpy_parse_register_id.
4177 (pending_framepy_read_register): Likewise.
4178 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4179
4180 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * python/py-registers.c: Add 'user-regs.h' include.
4183 (register_descriptor_iter_find): New function.
4184 (register_descriptor_iterator_object_methods): New static global
4185 methods array.
4186 (register_descriptor_iterator_object_type): Add pointer to methods
4187 array.
4188
4189 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4190
4191 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4192 for all architectures on FreeBSD 11.3 and later.
4193
4194 2020-07-27 Tom Tromey <tromey@adacore.com>
4195
4196 * gcore.h (load_corefile): Don't declare.
4197
4198 2020-07-27 Tom de Vries <tdevries@suse.de>
4199
4200 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4201 * config.in: Regenerate.
4202 * configure: Regenerate.
4203
4204 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4205
4206 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4207 ws2tcpip.h. When checking whether socklen_t type is defined, use
4208 ws2tcpip.h if it is available and sys/socket.h isn't.
4209 * configure: Regenerate.
4210 * config.in: Regenerate.
4211
4212 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4213
4214 PR fortran/23051
4215 PR fortran/26139
4216 * valops.c (value_ind): Pass address to
4217 readjust_indirect_value_type.
4218 * value.c (readjust_indirect_value_type): Make parameter
4219 non-const, and add extra address parameter. Resolve original type
4220 before using it.
4221 * value.h (readjust_indirect_value_type): Update function
4222 signature and comment.
4223
4224 2020-07-25 Tom de Vries <tdevries@suse.de>
4225
4226 PR symtab/26243
4227 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4228 entries.
4229
4230 2020-07-24 Aaron Merey <amerey@redhat.com>
4231
4232 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4233 * configure: Rebuild.
4234
4235 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4236
4237 PR corefiles/26294
4238 * corelow.c (_initialize_corelow): Add period to help text
4239 for "maintenance print core-file-backed-mappings".
4240
4241 2020-07-23 Pedro Alves <pedro@palves.net>
4242
4243 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4244 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4245 meanwhile.
4246 * frame.c (frame_cache_generation, get_frame_cache_generation):
4247 New.
4248 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4249 (get_prev_frame_if_no_cycle): On exception, don't touch
4250 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4251 * frame.h (get_frame_cache_generation): Declare.
4252
4253 2020-07-23 Tom de Vries <tdevries@suse.de>
4254
4255 PR tui/26282
4256 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4257 New default constructor.
4258
4259 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4260
4261 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4262 exclude non-statement entries.
4263
4264 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4265
4266 * NEWS (New commands): Mention new command
4267 "maintenance print core-file-backed-mappings".
4268
4269 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4270
4271 * corelow.c (gdbcmd.h): Include.
4272 (core_target::info_proc_mappings): New method.
4273 (get_current_core_target): New function.
4274 (maintenance_print_core_file_backed_mappings): New function.
4275 (_initialize_corelow): Add core-file-backed-mappings to
4276 "maint print" commands.
4277
4278 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4279
4280 * linux-tdep.c (dump_note_entry_p): New function.
4281 (linux_dump_mapping_p_ftype): New typedef.
4282 (linux_find_memory_regions_full): Add new parameter,
4283 should_dump_mapping_p.
4284 (linux_find_memory_regions): Adjust call to
4285 linux_find_memory_regions_full.
4286 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4287 call to linux_find_memory_regions_full.
4288
4289 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4290
4291 * corelow.c (solist.h, unordered_map): Include.
4292 (class core_target): Add field m_core_file_mappings and
4293 method build_file_mappings.
4294 (core_target::core_target): Call build_file_mappings.
4295 (core_target::~core_target): Free memory associated with
4296 m_core_file_mappings.
4297 (core_target::build_file_mappings): New method.
4298 (core_target::xfer_partial): Use m_core_file_mappings
4299 for memory transfers.
4300 * linux-tdep.c (linux_read_core_file_mappings): New
4301 function.
4302 (linux_core_info_proc_mappings): Rewrite to use
4303 linux_read_core_file_mappings.
4304 (linux_init_abi): Register linux_read_core_file_mappings.
4305
4306 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4307
4308 * arch-utils.c (default_read_core_file_mappings): New function.
4309 * arch-utils.c (default_read_core_file_mappings): Declare.
4310 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4311 * gdbarch.h, gdbarch.c: Regenerate.
4312
4313 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4314
4315 PR corefiles/25631
4316 * corelow.c (core_target:xfer_partial): Revise
4317 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4318 case after first checking the stratum beneath the core
4319 target.
4320 (has_all_memory): Return true.
4321 * target.c (raw_memory_xfer_partial): Revise comment
4322 regarding use of has_all_memory.
4323
4324 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4325
4326 * exec.h (section_table_xfer_memory): Revise declaration,
4327 replacing section name parameter with an optional callback
4328 predicate.
4329 * exec.c (section_table_xfer_memory): Likewise.
4330 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4331 of section_table_xfer_memory.
4332
4333 2020-07-22 Tom Tromey <tromey@adacore.com>
4334
4335 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4336 lookup_symbol_search_name.
4337
4338 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4339
4340 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4341 redundant local variable.
4342 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4343 reference, not pointer, update code accordingly.
4344
4345 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4346 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4347
4348 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4349 * jit.c (jit_breakpoint_re_set_internal): Use the
4350 `skip_jit_symbol_lookup` field.
4351
4352 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4353 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4354
4355 * jit.c (jit_read_descriptor): Define the descriptor address once,
4356 use twice.
4357 (jit_breakpoint_deleted): Move the declaration of the loop variable
4358 `iter` into the loop header.
4359 (jit_breakpoint_re_set_internal): Move the declaration of the local
4360 variable `objf_data` to the first point of definition.
4361 (jit_event_handler): Move the declaration of local variables
4362 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4363 Rename `objf` to `jited`.
4364
4365 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4366
4367 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4368 Remove.
4369 * jit.c (get_jiter_objfile_data): Update.
4370
4371 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4372 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * jit.c (struct jit_program_space_data): Remove.
4375 (jit_program_space_key): Remove.
4376 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4377 stuff.
4378 (get_jit_program_space_data): Remove.
4379 (jit_breakpoint_deleted): Iterate on all of the program space's
4380 objfiles.
4381 (jit_inferior_init): Likewise.
4382 (jit_breakpoint_re_set_internal): Likewise. Also change return
4383 type to void.
4384 (jit_breakpoint_re_set): Pass current_program_space to
4385 jit_breakpoint_re_set_internal.
4386
4387 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4388
4389 * jit.h (struct jiter_objfile_data) <cached_code_address,
4390 jit_breakpoint>: Move to here from ...
4391 * jit.c (jit_program_space_data): ... here.
4392 (jiter_objfile_data::~jiter_objfile_data): Update.
4393 (jit_breakpoint_deleted): Update.
4394 (jit_breakpoint_re_set_internal): Update.
4395
4396 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4397
4398 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4399 checks.
4400 (jit_read_descriptor): Remove NULL check.
4401 (jit_event_handler): Add an assertion.
4402
4403 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4404
4405 * jit.h (struct jit_objfile_data): Split into...
4406 (struct jiter_objfile_data): ... this ...
4407 (struct jited_objfile_data): ... and this.
4408 * objfiles.h (struct objfile) <jit_data>: Remove.
4409 <jiter_data, jited_data>: New fields.
4410 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4411 (jiter_objfile_data::~jiter_objfile_data): ... this.
4412 (get_jit_objfile_data): Rename to ...
4413 (get_jiter_objfile_data): ... this.
4414 (add_objfile_entry): Update.
4415 (jit_read_descriptor): Use get_jiter_objfile_data.
4416 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4417 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4418 (jit_inferior_exit_hook): Use objfile's jited_data field.
4419
4420 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4421
4422 * jit.h: Forward-declare `struct minimal_symbol`.
4423 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4424 constructor, destructor, and an objfile* field.
4425 * jit.c (jit_objfile_data): Remove.
4426 (struct jit_objfile_data): Migrate from here to jit.h.
4427 (jit_objfile_data::~jit_objfile_data): New destructor
4428 implementation with code moved from free_objfile_data.
4429 (free_objfile_data): Delete.
4430 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4431 (jit_find_objf_with_entry_addr): Ditto.
4432 (jit_inferior_exit_hook): Ditto.
4433 (_initialize_jit): Remove the call to
4434 register_objfile_data_with_cleanup.
4435 * objfiles.h (struct objfile) <jit_data>: New field.
4436
4437 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4438
4439 * jit.h: Forward-declare `struct objfile`.
4440 (jit_event_handler): Add a second parameter, the JITer objfile.
4441 * jit.c (jit_read_descriptor): Change the signature to take the
4442 JITer objfile as an argument instead of the jit_program_space_data.
4443 (jit_inferior_init): Update the call to jit_read_descriptor.
4444 (jit_event_handler): Use the new JITer objfile argument when calling
4445 jit_read_descriptor.
4446 * breakpoint.c (handle_jit_event): Update the call to
4447 jit_event_handler to pass the JITer objfile.
4448
4449 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4450
4451 * gdbarch.c: Regenerate.
4452 * gdbarch.h: Regenerate.
4453 * gdbarch.sh (handle_segmentation_fault): Remove method.
4454 * infrun.c (handle_segmentation_fault): Remove.
4455 (print_signal_received_reason): Remove call to
4456 handle_segmentation_fault.
4457
4458 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4459
4460 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4461 Rename to sparc64_linux_report_signal_info and add siggnal
4462 argument.
4463 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4464 instead of sparc64_linux_handle_segmentation_fault.
4465
4466 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4467
4468 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4469 i386_linux_report_signal_info instead of
4470 i386_linux_handle_segmentation_fault.
4471 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4472 to i386_linux_report_signal_info and add siggnal argument.
4473 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4474 of i386_linux_handle_segmentation_fault.
4475 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4476 to i386_linux_report_signal_info and add siggnal argument.
4477
4478 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4479
4480 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4481 hook if present.
4482
4483 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4484
4485 * gdbarch.c: Regenerate.
4486 * gdbarch.h: Regenerate.
4487 * gdbarch.sh (report_signal_info): New method.
4488 * infrun.c (print_signal_received_reason): Invoke gdbarch
4489 report_signal_info hook if present.
4490
4491 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * python/py-registers.c : Add 'unordered_map' include.
4494 (gdbpy_new_reggroup): Renamed to...
4495 (gdbpy_get_reggroup): ...this. Update to only create register
4496 group descriptors when needed.
4497 (gdbpy_reggroup_iter_next): Update.
4498
4499 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * python/py-registers.c (gdbpy_register_object_data): New static
4502 global.
4503 (gdbpy_register_object_data_init): New function.
4504 (gdbpy_new_register_descriptor): Renamed to...
4505 (gdbpy_get_register_descriptor): ...this, and update to reuse
4506 existing register descriptors where possible.
4507 (gdbpy_register_descriptor_iter_next): Update.
4508 (gdbpy_initialize_registers): Register new gdbarch data.
4509
4510 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * linux-nat.c (stopped_pids): Make static.
4513
4514 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 PR ada/26235
4517 * gdbtypes.c (ada_discrete_type_low_bound,
4518 ada_discrete_type_high_bound): Handle undefined bounds.
4519
4520 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4521
4522 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4523 declaration.
4524 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4525 function.
4526
4527 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4528
4529 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4530 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4531 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4532 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4533 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4534 method.
4535
4536 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4537
4538 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4539 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4540 which are deprecated in Guile 3.0.
4541 * configure.ac (try_guile_versions): Add "guile-3.0".
4542 * configure (try_guile_versions): Regenerate.
4543 * NEWS: Update entry.
4544
4545 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4546 Doug Evans <dje@google.com>
4547
4548 PR gdb/21104
4549 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4550 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4551 USING_GUILE_BEFORE_2_2.
4552 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4553 Change type to 'scm_t_port_type *'.
4554 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4555 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4556 parameter and honor it. Update callers.
4557 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4558 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4559 functions.
4560 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4561 USING_GUILE_BEFORE_2_2.
4562 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4563 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4564 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4565 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4566 and 'SCM_PORT_TYPE'.
4567 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4568 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4569 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4570 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4571 [!USING_GUILE_BEFORE_2_2]: New functions.
4572 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4573 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4574 'gdbscm_memory_port_read'.
4575 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4576 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4577 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4578 function.
4579 (ioscm_init_memory_port): Remove.
4580 (ioscm_init_memory_port_stream): New function
4581 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4582 function.
4583 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4584 Return scm_from_uint (0).
4585 (gdbscm_set_memory_port_read_buffer_size_x)
4586 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4587 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4588 Return scm_from_uint (0).
4589 (gdbscm_set_memory_port_write_buffer_size_x)
4590 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4591 * configure.ac (try_guile_versions): Add "guile-2.2".
4592 * configure: Regenerate.
4593 * NEWS: Add entry.
4594
4595 2020-07-18 Tom Tromey <tom@tromey.com>
4596
4597 * linux-nat.c (linux_multi_process): Remove.
4598 (linux_nat_target::supports_multi_process): Return true.
4599
4600 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4603 (riscv_lookup_target_description): Return pointer out of
4604 unique_ptr.
4605 * target-descriptions.c (allocate_target_description): Add
4606 comment.
4607 (target_desc_deleter::operator()): Likewise.
4608 * target-descriptions.h (struct target_desc_deleter): Moved to
4609 gdbsupport/tdesc.h.
4610 (target_desc_up): Likewise.
4611
4612 2020-07-17 Tom Tromey <tromey@adacore.com>
4613
4614 * linux-nat.c (linux_nat_target::supports_non_stop)
4615 (linux_nat_target::always_non_stop_p): Use "true".
4616 (linux_nat_target::supports_disable_randomization): Use "true" and
4617 "false".
4618
4619 2020-07-16 Caroline Tice <cmtice@google.com>
4620
4621 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4622 (RNGLIST_HEADER_SIZE64): New constant definition.
4623 (struct dwop_section_names): Add rnglists_dwo.
4624 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4625 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4626 (struct dwo_sections): Add rnglists field.
4627 (read_attribut_reprocess): Add tag parameter.
4628 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4629 (cu_debug_rnglists_section): New function (decl & definition).
4630 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4631 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4632 die whose range is being checked; get rnglist section from
4633 cu_debug_rnglists_section, to get from either objfile or dwo file as
4634 appropriate. Add cases for DW_RLE_base_addressx,
4635 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4636 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4637 test inside if-condition and updating complaint message.
4638 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4639 dwarf2_rnglists_process.
4640 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4641 dwarf2_ranges_process.
4642 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4643 need_ranges_base and update comment appropriately. Also pass die tag
4644 to dwarf2_ranges_read.
4645 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4646 need_ranges_base and update comment appropriately. Also pass die tag
4647 to dwarf2_ranges_process.
4648 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4649 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4650 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4651 need_ranges_base and update comment appropriately. Also pass die tag
4652 to read_attribute_reprocess and dwarf2_ranges_read.
4653 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4654 and update function comment appropriately.
4655 (read_loclist_index): Call read_loclists_rnglists_header instead of
4656 read_loclist_header.
4657 (read_rnglist_index): New function.
4658 (read_attribute_reprocess): Add tag parameter. Add code for
4659 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4660 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4661
4662 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4665 being resolved.
4666
4667 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * arch-utils.c (show_architecture): Update formatting of messages.
4670
4671 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4672
4673 * gdbtypes.h (struct type) <bounds>: Handle array and string
4674 types.
4675 * ada-lang.c (assign_aggregate): Use type::bounds on
4676 array/string type.
4677 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4678 * c-varobj.c (c_number_of_children): Likewise.
4679 (c_describe_child): Likewise.
4680 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4681 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4682 (f_type_print_base): Likewise.
4683 * f-valprint.c (f77_array_offset_tbl): Likewise.
4684 (f77_get_upperbound): Likewise.
4685 (f77_print_array_1): Likewise.
4686 * guile/scm-type.c (gdbscm_type_range): Likewise.
4687 * m2-typeprint.c (m2_array): Likewise.
4688 (m2_is_long_set_of_type): Likewise.
4689 * m2-valprint.c (get_long_set_bounds): Likewise.
4690 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4691 * python/py-type.c (typy_range): Likewise.
4692 * rust-lang.c (rust_internal_print_type): Likewise.
4693 * type-stack.c (type_stack::follow_types): Likewise.
4694 * valarith.c (value_subscripted_rvalue): Likewise.
4695 * valops.c (value_cast): Likewise.
4696
4697 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4700 callers to use the equivalent accessor methods.
4701
4702 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4705 (struct type) <bit_stride>: New method.
4706 (TYPE_BIT_STRIDE): Remove.
4707 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4708
4709 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4710
4711 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4712 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4713 callers to use the equivalent accessor methods instead.
4714
4715 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4718 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4719 callers to use the equivalent accessor methods instead.
4720
4721 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4724 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4725 to use dynamic_prop::kind.
4726
4727 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4730 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4731 to get the bound property's kind and check against
4732 PROP_UNDEFINED.
4733
4734 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4737 all callers to use type::range_bounds followed by
4738 dynamic_prop::{low,high}.
4739
4740 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4741
4742 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4743 const_val, set_const_val, baton, set_locexpr, set_loclist,
4744 set_addr_offset, variant_parts, set_variant_parts,
4745 original_type, set_original_type>: New methods.
4746 <kind>: Rename to...
4747 <m_kind>: ... this. Update all users to use the new methods
4748 instead.
4749 <data>: Rename to...
4750 <m_data>: ... this. Update all users to use the new methods
4751 instead.
4752
4753 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.c (get_discrete_bounds): Return failure if
4756 the range type's bounds are not both defined and constant
4757 values.
4758 (get_array_bounds): Update comment. Remove undefined bound check.
4759
4760 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4763 the type::bounds method directly.
4764
4765 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4768 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4769 are used to set the range type's bounds to use set_bounds.
4770
4771 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4772
4773 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4774
4775 2020-07-10 Pedro Alves <pedro@palves.net>
4776
4777 * gdbthread.h (inferior_ref): Define.
4778 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4779 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4780 * thread.c
4781 (scoped_restore_current_thread::restore):
4782 Adjust to gdb::ref_ptr.
4783 (scoped_restore_current_thread::~scoped_restore_current_thread):
4784 Remove manual decref handling.
4785 (scoped_restore_current_thread::scoped_restore_current_thread):
4786 Adjust to use
4787 inferior_ref::new_reference/thread_info_ref::new_reference.
4788 Incref the thread before calling get_frame_id instead of after.
4789 Let TARGET_CLOSE_ERROR propagate.
4790
4791 2020-07-10 Pedro Alves <pedro@palves.net>
4792
4793 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4794 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4795 NOT_AVAILABLE_ERROR.
4796 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4797 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4798
4799 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4800 Pedro Alves <pedro@palves.net>
4801
4802 PR gdb/26199
4803 * infrun.c (threads_are_resumed_pending_p): Delete.
4804 (do_target_wait): Remove threads_are_executing and
4805 threads_are_resumed_pending_p checks from the inferior_matches
4806 lambda. Update comments.
4807
4808 2020-07-10 Pedro Alves <pedro@palves.net>
4809
4810 PR gdb/26199
4811 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4812 executing threads.
4813
4814 2020-07-10 Pedro Alves <pedro@palves.net>
4815
4816 PR gdb/26199
4817 * infrun.c (handle_no_resumed): Handle multiple targets.
4818
4819 2020-07-10 Pedro Alves <pedro@palves.net>
4820
4821 PR gdb/26199
4822 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4823 target_is_async_p.
4824
4825 2020-07-10 Pedro Alves <pedro@palves.net>
4826
4827 PR gdb/26199
4828 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4829 threads, not all threads.
4830
4831 2020-07-10 Pedro Alves <pedro@palves.net>
4832
4833 PR gdb/26199
4834 * remote.c (remote_target::open_1): Pass remote target pointer as
4835 data to create_async_event_handler.
4836 (remote_async_inferior_event_handler): Mark async event handler
4837 before returning if the remote target still has either pending
4838 events or unacknowledged notifications.
4839
4840 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4841
4842 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4843 declaration.
4844 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4845 function.
4846
4847 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4848
4849 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4850 inferior_ptid.
4851
4852 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4853
4854 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4855 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4856 AT_FREEBSD_PS_STRINGS.
4857
4858 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4859
4860 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4861 of debugfile path on Windows.
4862
4863 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4864
4865 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4866 argument to 'data'.
4867
4868 2020-07-08 Tom Tromey <tromey@adacore.com>
4869
4870 * ada-lang.c (ada_exception_message_1): Use read_memory.
4871
4872 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4873
4874 PR python/22748
4875 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4876 special handling for inline frames.
4877 * findvar.c (value_of_register_lazy): Skip inline frames when
4878 creating lazy register values.
4879 * frame.c (frame_id_computed_p): Delete definition.
4880 * frame.h (frame_id_computed_p): Delete declaration.
4881
4882 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4883
4884 * NEWS: Mention additions to Python API.
4885 * python/py-arch.c (archpy_register_groups): New function.
4886 (arch_object_methods): Add 'register_groups' method.
4887 * python/py-registers.c (reggroup_iterator_object): New struct.
4888 (reggroup_object): New struct.
4889 (gdbpy_new_reggroup): New function.
4890 (gdbpy_reggroup_to_string): New function.
4891 (gdbpy_reggroup_name): New function.
4892 (gdbpy_reggroup_iter): New function.
4893 (gdbpy_reggroup_iter_next): New function.
4894 (gdbpy_new_reggroup_iterator): New function
4895 (gdbpy_initialize_registers): Register new types.
4896 (reggroup_iterator_object_type): Define new Python type.
4897 (gdbpy_reggroup_getset): New static global.
4898 (reggroup_object_type): Define new Python type.
4899 * python/python-internal.h
4900
4901 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4904 * python/py-arch.c (archpy_registers): New function.
4905 (arch_object_methods): Add 'registers' method.
4906 * python/py-registers.c: New file.
4907 * python/python-internal.h
4908 (gdbpy_new_register_descriptor_iterator): Declare.
4909 (gdbpy_initialize_registers): Declare.
4910 * python/python.c (do_start_initialization): Call
4911 gdbpy_initialize_registers.
4912 * NEWS: Mention additions to the Python API.
4913
4914 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4915
4916 * NEWS: Mention new Python API method.
4917 * python/py-unwind.c (pending_framepy_architecture): New function.
4918 (pending_frame_object_methods): Add architecture method.
4919
4920 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4921
4922 * gdbarch.c: Regenerate.
4923 * gdbarch.h: Regenerate.
4924 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4925 (gdbarch_data): Use internal_error for the case where
4926 deprecated_set_gdbarch_data was originally needed.
4927 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4928 and use passed in obstack.
4929 (libunwind_frame_set_descr): Should no longer get back NULL from
4930 gdbarch_data.
4931 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4932 type.
4933 * user-regs.c (user_regs_init): Update parameters, and use passed
4934 in obstack.
4935 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4936 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4937
4938 2020-07-06 Tom de Vries <tdevries@suse.de>
4939
4940 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4941 End-Of-Sequence in lte_is_less_than.
4942 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4943 "gdb: Don't reorder line table entries too much when sorting".
4944
4945 2020-07-06 Tom de Vries <tdevries@suse.de>
4946
4947 PR tui/26205
4948 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4949
4950 2020-07-05 Tom de Vries <tdevries@suse.de>
4951
4952 PR build/26187
4953 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4954 std::uncaught_exceptions instead of deprecated
4955 std::uncaught_exception.
4956
4957 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4958
4959 * macroexp.h (macro_stringify): Return
4960 gdb::unique_xmalloc_ptr<char>.
4961 * macroexp.c (macro_stringify): Likewise.
4962 * macrotab.c (fixup_definition): Update.
4963
4964 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4965
4966 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4967 (lex_one_token): Update.
4968 * macroexp.c (struct macro_buffer) <release>: Return
4969 gdb::unique_xmalloc_ptr<char>.
4970 (macro_stringify): Update.
4971 (macro_expand): Update.
4972 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4973 * macroexp.h (macro_expand_next): Likewise.
4974
4975 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * macroexp.h (macro_lookup_ftype): Remove.
4978 (macro_expand, macro_expand_once, macro_expand_next): Remove
4979 lookup function parameters, add scope parameter.
4980 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4981 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4982 * macroscope.h (standard_macro_lookup): Change parameter type
4983 to macro_scope.
4984 * macroscope.c (standard_macro_lookup): Likewise.
4985 * c-exp.y (lex_one_token): Update.
4986 * macrocmd.c (macro_expand_command): Likewise.
4987 (macro_expand_once_command): Likewise.
4988
4989 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4990
4991 * inf-loop.c (inferior_event_handler): Remove client_data param.
4992 * inf-loop.h (inferior_event_handler): Likewise.
4993 * infcmd.c (step_1): Adjust.
4994 * infrun.c (proceed): Adjust.
4995 (fetch_inferior_event): Remove client_data param.
4996 (infrun_async_inferior_event_handler): Adjust.
4997 * infrun.h (fetch_inferior_event): Remove `void *` param.
4998 * linux-nat.c (handle_target_event): Adjust.
4999 * record-btrace.c (record_btrace_handle_async_inferior_event):
5000 Adjust.
5001 * record-full.c (record_full_async_inferior_event_handler):
5002 Adjust.
5003 * remote.c (remote_async_inferior_event_handler): Adjust.
5004
5005 2020-07-01 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5008 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5009
5010 2020-07-01 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5013 tui_gen_win_info.
5014 (tui_win_info::make_window): Merge with
5015 tui_gen_win_info::make_window.
5016 (tui_win_info::make_visible): Move from tui_gen_win_info.
5017 * tui/tui-win.c (tui_win_info::max_width): Move from
5018 tui_gen_win_info.
5019 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5020 type.
5021 <window_factory>: Likewise.
5022 * tui/tui-layout.c (tui_win_info::resize): Move from
5023 tui_gen_win_info.
5024 (make_standard_window): Change return type.
5025 (get_locator_window, tui_get_window_by_name): Likewise.
5026 (tui_layout_window::apply): Remove a cast.
5027 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5028 (struct tui_win_info): Merge with tui_gen_win_info.
5029 (struct tui_gen_win_info): Remove.
5030
5031 2020-07-01 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-stack.h (struct tui_locator_window): Derive from
5034 tui_win_info.
5035 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5036 <can_box>: New method.
5037
5038 2020-07-01 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5041
5042 2020-07-01 Tom Tromey <tom@tromey.com>
5043
5044 * tui/tui-regs.c (tui_data_window::display_registers_from)
5045 (tui_data_window::display_registers_from)
5046 (tui_data_window::first_data_item_displayed)
5047 (tui_data_window::delete_data_content_windows): Update.
5048 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5049 Remove.
5050 (tui_data_window::check_register_values): Update.
5051 (tui_data_item_window::rerender): Add parameters. Update.
5052 (tui_data_item_window::refresh_window): Remove.
5053 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5054 virtual.
5055 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5056 tui_gen_win_info.
5057 <refresh_window, max_height, min_height>: Remove.
5058 <rerender>: Add parameters.
5059 <x, y, visible>: New members.
5060 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5061 <m_item_width>: New member.
5062
5063 2020-07-01 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-regs.c (tui_data_window::show_register_group)
5066 (tui_data_window::check_register_values): Update.
5067 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5068 from item_no.
5069
5070 2020-07-01 Tom Tromey <tom@tromey.com>
5071
5072 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5073 useless "if".
5074
5075 2020-07-01 Tom Tromey <tom@tromey.com>
5076
5077 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5078 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5079
5080 2020-07-01 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5083 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5084 (struct tui_line_or_address): Move from tui-data.h.
5085 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5086 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5087 (tui_cmd_window, tui_source_window_base, tui_source_window)
5088 (tui_disasm_window): Don't declare.
5089 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5090 to tui-winsource.h.
5091 (SINGLE_KEY): Move to tui-stack.c.
5092
5093 2020-07-01 Tom Tromey <tom@tromey.com>
5094
5095 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5096 std::string.
5097 * tui/tui-regs.c (class tab_expansion_file): New.
5098 (tab_expansion_file::write): New method.
5099 (tui_register_format): Change return type. Use
5100 tab_expansion_file.
5101 (tui_get_register, tui_data_window::display_registers_from)
5102 (tui_data_item_window::rerender): Update.
5103 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5104 * tui/tui-io.c (tui_expand_tabs): Remove.
5105
5106 2020-07-01 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5109
5110 2020-07-01 Fangrui Song <maskray@google.com>
5111
5112 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5113
5114 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5115
5116 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5117 forms for DW_AT_associated and DW_AT_allocated attributes,
5118 which is already checked in function attr_to_dynamic_prop.
5119
5120 2020-06-30 Tom Tromey <tromey@adacore.com>
5121
5122 * dwarf2/read.c (quirk_rust_enum): Correctly call
5123 alloc_rust_variant for default-less enum.
5124
5125 2020-06-30 Tom Tromey <tromey@adacore.com>
5126
5127 PR build/26183:
5128 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5129 gdb::to_string.
5130
5131 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5134 * gdbarch.h: Re-generate.
5135
5136 2020-06-28 Tom Tromey <tom@tromey.com>
5137
5138 * command.h (cmd_types): Remove.
5139 (cmd_type): Don't declare.
5140 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5141 typedef.
5142 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5143 * cli/cli-decode.c (cmd_type): Remove.
5144
5145 2020-06-27 Pedro Alves <palves@redhat.com>
5146
5147 * fork-child.c (prefork_hook): Adjust.
5148 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5149 Delete.
5150 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5151 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5152 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5153 Remove declarations.
5154 (struct inferior) <set_tty, tty>: New methods.
5155 (struct inferior) <terminal>: Rename to ...
5156 (struct inferior) <m_terminal>: ... this and make private.
5157 * main.c (captured_main_1): Adjust.
5158 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5159 (mi_cmd_inferior_tty_show): Adjust.
5160 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5161 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5162
5163 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5164
5165 * configure.ac: Add --enable-libctf: handle --disable-static
5166 properly.
5167 * acinclude.m4: sinclude ../config/enable.m4.
5168 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5169 (LIBCTF): Substitute in.
5170 (CTF_DEPS): New, likewise.
5171 (CLIBS): libctf needs symbols from libbfd: move earlier.
5172 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5173 flags.
5174 * ctfread.c: Surround in ENABLE_LIBCTF.
5175 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5176 * configure: Regenerate.
5177 * config.in: Likewise.
5178
5179 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5182
5183 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5184
5185 * inferior.h (struct inferior) <terminal>: Change type to
5186 gdb::unique_xmalloc_ptr<char>.
5187 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5188 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5189 field, adjust to unique pointer.
5190 (get_inferior_io_terminal): Adjust to unique pointer.
5191
5192 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5195 registers, not just the known core set of registers.
5196
5197 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5200 fflags, frm, and fcsr registers.
5201 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5202 restore groups.
5203 (riscv_tdesc_unknown_reg): New function.
5204 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5205 tdesc_use_registers.
5206 * riscv-tdep.h (struct gdbarch_tdep): Add
5207 unknown_csrs_first_regnum, unknown_csrs_count,
5208 duplicate_fflags_regnum, duplicate_frm_regnum, and
5209 duplicate_fcsr_regnum fields.
5210
5211 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5214 callback, use the callback (when not null) to help number unknown
5215 registers.
5216 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5217 (tdesc_use_registers): Add extra parameter to declaration.
5218
5219 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5222 in the file.
5223 (class riscv_pending_register_alias): Likewise.
5224 (riscv_register_feature::register_info): Change 'required_p' field
5225 to 'required', and change its type. Add 'check' member function.
5226 (riscv_register_feature::register_info::check): Define new member
5227 function.
5228 (riscv_xreg_feature): Change initialisation of 'required' field.
5229 (riscv_freg_feature): Likewise.
5230 (riscv_virtual_feature): Likewise.
5231 (riscv_csr_feature): Likewise.
5232 (riscv_check_tdesc_feature): Take extra parameter, the csr
5233 tdesc_feature, rewrite the function to use the new
5234 riscv_register_feature::register_info::check function.
5235 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5236
5237 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5238
5239 * features/Makefile: Remove all references to the deleted files
5240 below.
5241 * features/riscv/32bit-csr.c: Deleted.
5242 * features/riscv/32bit-csr.xml: Deleted.
5243 * features/riscv/64bit-csr.c: Deleted.
5244 * features/riscv/64bit-csr.xml: Deleted.
5245 * features/riscv/rebuild-csr-xml.sh: Deleted.
5246
5247 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5250 whitespace error for declaration of names member variable.
5251 (struct riscv_register_feature): Add new prefer_first_name member
5252 variable, and fix whitespace error in declaration of registers.
5253 (riscv_xreg_feature): Initialize prefer_first_name field.
5254 (riscv_freg_feature): Likewise.
5255 (riscv_virtual_feature): Likewise.
5256 (riscv_csr_feature): Likewise.
5257 (riscv_register_name): Expand on comments. Remove register name
5258 modifications for CSR and virtual registers.
5259
5260 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5263 errors.
5264
5265 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5266
5267 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5268 riscv-opc.h.
5269 (class riscv_pending_register_alias): New class.
5270 (riscv_check_tdesc_feature): Take vector of pending aliases and
5271 populate it as appropriate.
5272 (riscv_setup_register_aliases): Delete.
5273 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5274 to riscv_check_tdesc_feature in all cases. Use the vector to
5275 create the register aliases.
5276
5277 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5278
5279 * sol2-tdep.c (sol2_static_transform_name): Remove.
5280 (sol2_init_abi): Don't register it.
5281 * gdbarch.sh (static_transform_name): Remove.
5282 * gdbarch.c, gdbarch.h: Regenerate.
5283
5284 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5285 gdbarch_static_transform_name.
5286 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5287 * stabsread.c (define_symbol) <'X'>: Remove.
5288 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5289 handling.
5290 <'V'>: Likewise.
5291 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5292 <'S'>: Remove call to gdbarch_static_transform_name.
5293
5294 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5295
5296 * procfs.c (procfs_pre_trace): New function.
5297 (procfs_target::create_inferior): Pass it to fork_inferior.
5298
5299 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5300
5301 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5302 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5303 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5304 sol2-tdep.o, sparc-sol2-tdep.o.
5305 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5306 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5307 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5308 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5309
5310 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5311
5312 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5313 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5314 Call sol2_init_abi.
5315 Remove calls to set_gdbarch_skip_solib_resolver,
5316 set_gdbarch_core_pid_to_str.
5317 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5318 (i386_sol2_static_transform_name): Remove.
5319 (i386_sol2_init_abi): Call sol2_init_abi.
5320 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5321 set_gdbarch_static_transform_name,
5322 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5323 Use sol2_sigtramp_p.
5324 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5325 (sol2_sigtramp_p): New function.
5326 (sol2_static_transform_name): New function.
5327 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5328 (sol2_init_abi): New function.
5329 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5330 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5331 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5332 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5333 (sparc_sol2_static_transform_name): Remove.
5334 (sparc32_sol2_init_abi): Call sol2_init_abi.
5335 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5336 set_gdbarch_static_transform_name,
5337 set_gdbarch_skip_solib_resolver,
5338 set_gdbarch_core_pid_to_str.
5339 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5340 (sparc_sol2_static_transform_name): Remove
5341 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5342 call sol2_sigtramp_p.
5343 (sparc64_sol2_init_abi): Call sol2_init_abi.
5344 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5345 set_gdbarch_static_transform_name,
5346 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5347
5348 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5349
5350 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5351 * exec.c (validate_exec_file): If from_tty, set both
5352 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5353 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5354 and from_tty, unconditionally ask a confirmation.
5355
5356 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * target-descriptions.c (tdesc_architecture_name): Protect against
5359 NULL pointer dereference.
5360 (maint_print_xml_tdesc_cmd): New function.
5361 (_initialize_target_descriptions): Register new 'maint print
5362 xml-tdesc' command and give it the filename completer.
5363 * NEWS: Mention new 'maint print xml-tdesc' command.
5364
5365 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5366
5367 * target-descriptions.c (class tdesc_compatible_info): New class.
5368 (struct target_desc): Change type of compatible vector.
5369 (tdesc_compatible_p): Update for change in type of
5370 target_desc::compatible.
5371 (tdesc_compatible_info_list): New function.
5372 (tdesc_compatible_info_arch_name): New function.
5373 (tdesc_add_compatible): Update for change in type of
5374 target_desc::compatible.
5375 (print_c_tdesc::visit_pre): Likewise.
5376
5377 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5378
5379 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5380 whitespace to underscore.
5381 (maint_print_c_tdesc_cmd): Use fake filename for target
5382 descriptions that came from the target.
5383 (_initialize_target_descriptions): Add filename command completion
5384 for 'maint print c-tdesc'.
5385
5386 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5387
5388 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5389 lines.
5390
5391 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5394 lines.
5395 (dwarf2_find_location_expression): Likewise.
5396 (call_site_parameter_matches): Likewise.
5397 (dwarf2_compile_expr_to_ax): Likewise.
5398 (disassemble_dwarf_expression): Likewise.
5399 (loclist_describe_location): Likewise.
5400
5401 2020-06-23 Pedro Alves <palves@redhat.com>
5402
5403 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5404 progspace-and-thread.h. Include scoped-mock-context.h instead.
5405 (register_to_value_test): Use scoped_mock_context.
5406 * regcache.c: Include "scoped-mock-context.h".
5407 (cooked_read_test): Don't error out if a target is already pushed.
5408 Use scoped_mock_context. Adjust.
5409 * scoped-mock-context.h: New file.
5410
5411 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5414 initializer.
5415 (ada_language::is_string_type_p): New member function.
5416 * c-lang.c (c_language_data): Delete la_is_string_type_p
5417 initializer.
5418 (cplus_language_data): Likewise.
5419 (asm_language_data): Likewise.
5420 (minimal_language_data): Likewise.
5421 * d-lang.c (d_language_data): Likewise.
5422 * f-lang.c (f_is_string_type_p): Delete function, implementation
5423 moved to f_language::is_string_type_p.
5424 (f_language_data): Delete la_is_string_type_p initializer.
5425 (f_language::is_string_type_p): New member function,
5426 implementation from f_is_string_type_p.
5427 * go-lang.c (go_is_string_type_p): Delete function, implementation
5428 moved to go_language::is_string_type_p.
5429 (go_language_data): Delete la_is_string_type_p initializer.
5430 (go_language::is_string_type_p): New member function,
5431 implementation from go_is_string_type_p.
5432 * language.c (language_defn::is_string_type_p): Define new member
5433 function.
5434 (default_is_string_type_p): Make static, add comment copied from
5435 header file.
5436 (unknown_language_data): Delete la_is_string_type_p initializer.
5437 (unknown_language::is_string_type_p): New member function.
5438 (auto_language_data): Delete la_is_string_type_p initializer.
5439 (auto_language::is_string_type_p): New member function.
5440 * language.h (language_data): Delete la_is_string_type_p field.
5441 (language_defn::is_string_type_p): Declare new function.
5442 (default_is_string_type_p): Delete desclaration, move comment to
5443 definition.
5444 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5445 moved to m2_language::is_string_type_p.
5446 (m2_language_data): Delete la_is_string_type_p initializer.
5447 (m2_language::is_string_type_p): New member function,
5448 implementation from m2_is_string_type_p.
5449 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5450 initializer.
5451 * opencl-lang.c (opencl_language_data): Likewise.
5452 * p-lang.c (pascal_is_string_type_p): Delete function,
5453 implementation moved to pascal_language::is_string_type_p.
5454 (pascal_language_data): Delete la_is_string_type_p initializer.
5455 (pascal_language::is_string_type_p): New member function,
5456 implementation from pascal_is_string_type_p.
5457 * rust-lang.c (rust_is_string_type_p): Delete function,
5458 implementation moved to rust_language::is_string_type_p.
5459 (rust_language_data): Delete la_is_string_type_p initializer.
5460 (rust_language::is_string_type_p): New member function,
5461 implementation from rust_is_string_type_p.
5462 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5463 is_string_type_p.
5464
5465 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * ada-lang.c (ada_language_data): Delete la_print_typedef
5468 initializer.
5469 (ada_language::print_typedef): New member function.
5470 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5471 (cplus_language_data): Likewise.
5472 (asm_language_data): Likewise.
5473 (minimal_language_data): Likewise.
5474 * d-lang.c (d_language_data): Likewise.
5475 * f-lang.c (f_language_data): Likewise.
5476 (f_language::print_typedef): New member function.
5477 * go-lang.c (go_language_data): Delete la_print_typedef
5478 initializer.
5479 * language.c (language_defn::print_typedef): Define member
5480 function.
5481 (unknown_language_data): Delete la_print_typedef initializer.
5482 (unknown_language::print_typedef): New member function.
5483 (auto_language_data): Delete la_print_typedef initializer.
5484 (auto_language::print_typedef): New member function.
5485 * language.h (language_data): Delete la_print_typedef field.
5486 (language_defn::print_typedef): Declare new member function.
5487 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5488 (default_print_typedef): Delete declaration.
5489 * m2-lang.c (m2_language_data): Delete la_print_typedef
5490 initializer.
5491 (m2_language::print_typedef): New member function.
5492 * objc-lang.c (objc_language_data): Delete la_print_typedef
5493 initializer.
5494 * opencl-lang.c (opencl_language_data): Likewise.
5495 * p-lang.c (pascal_language_data): Likewise.
5496 (pascal_language::print_typedef): New member function.
5497 * rust-lang.c (rust_print_typedef): Delete function,
5498 implementation moved to rust_language::print_typedef.
5499 (rust_language): Delete la_print_typedef initializer.
5500 (rust_language::print_typedef): New member function,
5501 implementation from rust_print_typedef.
5502 * typeprint.c (default_print_typedef): Delete.
5503
5504 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5505
5506 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5507 (ada_language::printstr): New member function.
5508 * c-lang.c (c_language_data): Delete la_printstr initializer.
5509 (cplus_language_data): Likewise.
5510 (asm_language_data): Likewise.
5511 (minimal_language_data): Likewise.
5512 * d-lang.c (d_language_data): Likewise.
5513 * f-lang.c (f_printstr): Rename to f_language::printstr.
5514 (f_language_data): Delete la_printstr initializer.
5515 (f_language::printstr): New member function, implementation from
5516 f_printstr.
5517 * go-lang.c (go_language_data): Delete la_printstr initializer.
5518 * language.c (language_defn::printstr): Define new member
5519 function.
5520 (unk_lang_printstr): Delete.
5521 (unknown_language_data): Delete la_printstr initializer.
5522 (unknown_language::printstr): New member function.
5523 (auto_language_data): Delete la_printstr initializer.
5524 (auto_language::printstr): New member function.
5525 * language.h (language_data): Delete la_printstr field.
5526 (language_defn::printstr): Declare new member function.
5527 (LA_PRINT_STRING): Update call to printstr.
5528 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5529 (m2_language_data): Delete la_printstr initializer.
5530 (m2_language::printstr): New member function, implementation from
5531 m2_printstr.
5532 * objc-lang.c (objc_language_data): Delete la_printstr
5533 initializer.
5534 * opencl-lang.c (opencl_language_data): Likewise.
5535 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5536 (pascal_language_data): Delete la_printstr initializer.
5537 (pascal_language::printstr): New member function, implementation
5538 from pascal_printstr.
5539 * p-lang.h (pascal_printstr): Delete declaration.
5540 * rust-lang.c (rust_printstr): Update header comment.
5541 (rust_language_data): Delete la_printstr initializer.
5542 (rust_language::printstr): New member function.
5543
5544 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5545
5546 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5547 (ada_language::printchar): New member function.
5548 * c-lang.c (c_language_data): Delete la_printchar initializer.
5549 (cplus_language_data): Likewise.
5550 (asm_language_data): Likewise.
5551 (minimal_language_data): Likewise.
5552 * d-lang.c (d_language_data): Likewise.
5553 * f-lang.c (f_printchar): Rename to f_language::printchar.
5554 (f_language_data): Delete la_printchar initializer.
5555 (f_language::printchar): New member function, implementation from
5556 f_printchar.
5557 * go-lang.c (go_language_data): Delete la_printchar initializer.
5558 * language.c (unk_lang_printchar): Delete.
5559 (language_defn::printchar): Define new member function.
5560 (unknown_language_data): Delete la_printchar initializer.
5561 (unknown_language::printchar): New member function.
5562 (auto_language_data): Delete la_printchar initializer.
5563 (auto_language::printchar): New member function.
5564 * language.h (language_data): Delete la_printchar field.
5565 (language_defn::printchar): Declare new member function.
5566 (LA_PRINT_CHAR): Update call to printchar.
5567 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5568 (m2_language::printchar): New member function.
5569 * objc-lang.c (objc_language_data): Delete la_printchar
5570 initializer.
5571 * opencl-lang.c (opencl_language_data): Likewise.
5572 * p-lang.c (pascal_language_data): Delete la_printchar
5573 initializer.
5574 (pascal_language::printchar): New member function.
5575 * rust-lang.c (rust_printchar): Rename to
5576 rust_language::printchar.
5577 (rust_language_data): Delete la_printchar initializer.
5578 (rust_language::printchar): New member function, implementation
5579 from rust_printchar.
5580
5581 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5582
5583 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5584 (ada_language_data): Delete la_emitchar initializer.
5585 (ada_language::emitchar): New member function, implementation from
5586 emit_char.
5587 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5588 (cplus_language_data): Likewise.
5589 (asm_language_data): Likewise.
5590 (minimal_language_data): Likewise.
5591 * d-lang.c (d_language_data): Likewise.
5592 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5593 (f_language_data): Delete la_emitchar initializer.
5594 (f_language::emitchar): New member function, implementation from
5595 f_emit_char.
5596 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5597 * language.c (unk_lang_emit_char): Delete.
5598 (language_defn::emitchar): New member function definition.
5599 (unknown_language_data): Delete la_emitchar initializer.
5600 (unknown_language::emitchar): New member function.
5601 (auto_language_data): Delete la_emitchar initializer.
5602 (auto_language::emitchar): New member function.
5603 * language.h (language_data): Delete la_emitchar field.
5604 (language_defn::emitchar): New member field declaration.
5605 (LA_EMIT_CHAR): Update call to emitchar.
5606 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5607 (m2_language_data): Delete la_emitchar initializer.
5608 (m2_language::emitchar): New member function, implementation from
5609 m2_emit_char.
5610 * objc-lang.c (objc_language_data): Delete la_emitchar
5611 initializer.
5612 * opencl-lang.c (opencl_language_data): Likewise.
5613 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5614 (pascal_language_data): Delete la_emitchar initializer.
5615 (pascal_language::emitchar): New member function, implementation
5616 from pascal_emit_char.
5617 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5618 (rust_language_data): Delete la_emitchar initializer.
5619 (rust_language::emitchar): New member function, implementation
5620 from rust_emitchar.
5621
5622 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5625 (ada_language_data): Delete la_post_parser initializer.
5626 (ada_language::post_parser): New member function.
5627 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5628 (cplus_language_data): Likewise.
5629 (asm_language_data): Likewise.
5630 (minimal_language_data): Likewise.
5631 * d-lang.c (d_language_data): Likewise.
5632 * f-lang.c (f_language_data): Likewise.
5633 * go-lang.c (go_language_data): Likewise.
5634 * language.c (unknown_language_data): Likewise.
5635 (auto_language_data): Likewise.
5636 * language.h (language_data): Delete la_post_parser field.
5637 (language_defn::post_parser): New member function.
5638 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5639 * objc-lang.c (objc_language_data): Likewise.
5640 * opencl-lang.c (opencl_language_data): Likewise.
5641 * p-lang.c (pascal_language_data): Likewise.
5642 * parse.c (parse_exp_in_context): Update call to post_parser.
5643 (null_post_parser): Delete definition.
5644 * parser-defs.h (null_post_parser): Delete declaration.
5645 * rust-lang.c (rust_language_data): Delete la_post_parser
5646 initializer.
5647
5648 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5649
5650 * ada-lang.c (parse): Rename to ada_language::parser.
5651 (ada_language_data): Delete la_parser initializer.
5652 (ada_language::parser): New member function, implementation from
5653 parse.
5654 * c-lang.c (c_language_data): Delete la_parser initializer.
5655 (cplus_language_data): Likewise.
5656 (asm_language_data): Likewise.
5657 (minimal_language_data): Likewise.
5658 * d-lang.c (d_language_data): Likewise.
5659 (d_language::parser): New member function.
5660 * f-lang.c (f_language_data): Delete la_parser initializer.
5661 (f_language::parser): New member function.
5662 * go-lang.c (go_language_data): Delete la_parser initializer.
5663 (go_language::parser): New member function.
5664 * language.c (unk_lang_parser): Delete.
5665 (language_defn::parser): Define new member function.
5666 (unknown_language_data): Delete la_parser initializer.
5667 (unknown_language::parser): New member function.
5668 (auto_language_data): Delete la_parser initializer.
5669 (auto_language::parser): New member function.
5670 * language.h (language_data): Delete la_parser field.
5671 (language_defn::parser): Declare new member function.
5672 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5673 (m2_language::parser): New member function.
5674 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5675 * opencl-lang.c (opencl_language_data): Likewise.
5676 * p-lang.c (pascal_language_data): Likewise.
5677 (pascal_language::parser): New member function.
5678 * parse.c (parse_exp_in_context): Update call to parser.
5679 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5680 (rust_language::parser): New member function.
5681
5682 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5683
5684 * top.c (print_gdb_configuration): Print --with-python-libdir
5685 configuration value.
5686
5687 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5688
5689 * NEWS: Mention change to the alias command.
5690
5691 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5692
5693 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5694 (alias_command_completer)
5695 (make_alias_options_def_group): New functions.
5696 (alias_opts, alias_option_defs): New struct and array.
5697 (alias_usage_error): Update usage.
5698 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5699 Use option framework.
5700 (_initialize_cli_cmds): Update alias command help.
5701 Update aliases command help.
5702 (show_user):
5703 Add NULL for new default_args lookup_cmd argument.
5704 (valid_command_p): Rename to validate_aliased_command.
5705 Add NULL for new default_args lookup_cmd argument. Verify that the
5706 aliased_command has no default args.
5707 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5708 (lookup_cmd_1, lookup_cmd): New argument default_args.
5709 (add_alias_cmd):
5710 Add NULL for new default_args lookup_cmd argument.
5711 (print_help_for_command): Show default args under the layout
5712 alias some_alias = some_aliased_cmd some_alias_default_arg.
5713 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5714 xfree default_args in destructor.
5715 * cli/cli-script.c (process_next_line, do_define_command):
5716 Add NULL for new default_args lookup_cmd argument.
5717 * command.h: Declare new default_args argument in lookup_cmd
5718 and lookup_cmd_1.
5719 * completer.c (complete_line_internal_1):
5720 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5721 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5722 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5723 Likewise.
5724 * infcmd.c (_initialize_infcmd): Likewise.
5725 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5726 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5727 * python/py-param.c (add_setshow_generic): Likewise.
5728 * remote.c (_initialize_remote): Likewise.
5729 * top.c (execute_command): Prepend default_args if command has some.
5730 (set_verbose):
5731 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5732 * tracepoint.c (validate_actionline, encode_actions_1):
5733 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5734
5735 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5736
5737 * jit.c (jit_read_descriptor): Use bool as the return type.
5738 (jit_breakpoint_re_set_internal): Use bool as the return type.
5739 Invert the return value logic; return true if the jit breakpoint
5740 has been successfully initialized.
5741 (jit_inferior_init): Update the call to
5742 jit_breakpoint_re_set_internal.
5743
5744 2020-06-22 Pedro Alves <palves@redhat.com>
5745
5746 PR gdb/25939
5747 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5748 Use the current inferior instead. Don't return
5749 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5750 wait again.
5751 * sol-thread.c (sol_thread_target::wait): Don't reference
5752 inferior_ptid.
5753 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5754 (sol_update_thread_list_callback): Use the current inferior's pid
5755 instead of inferior_ptid.
5756
5757 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5758
5759 * procfs.c: Cleanup many comments.
5760
5761 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5762 (AFTER_WATCHFLAG): Replace by value.
5763
5764 (MAIN_PROC_NAME_FORMAT): Inline ...
5765 (create_procinfo): ... here.
5766
5767 (procfs_debug_inferior): Remove SYS_exec handling.
5768 (syscall_is_exec): Likewise.
5769 (procfs_set_exec_trap): Likewise.
5770
5771 (syscall_is_lwp_exit): Inline in callers.
5772 (syscall_is_exit): Likewise.
5773 (syscall_is_exec): Likewise.
5774 (syscall_is_lwp_create): Likewise.
5775
5776 (invalidate_cache): Remove #if 0 code.
5777
5778 (make_signal_thread_runnable): Remove.
5779 (procfs_target::resume): Remove #if 0 code.
5780
5781 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5782
5783 PR gdb/25939
5784 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5785 call ...
5786 (procfs_target::create_inferior): ... here.
5787
5788 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5789
5790 * exec.c (validate_exec_file): Ensure the build-id is up to
5791 date by calling reopen_exec_file (that checks file timestamp
5792 to decide to re-read the file).
5793
5794 2020-06-18 Pedro Alves <palves@redhat.com>
5795
5796 PR gdb/25412
5797 * gdbthread.h (delete_thread, delete_thread_silent)
5798 (find_thread_ptid): Update comments.
5799 * thread.c (current_thread_): New global.
5800 (is_current_thread): Move higher, and reimplement.
5801 (inferior_thread): Reimplement.
5802 (set_thread_exited): Use bool. Add assertions.
5803 (add_thread_silent): Simplify thread-reuse handling by always
5804 calling delete_thread.
5805 (delete_thread): Remove intro comment.
5806 (find_thread_ptid): Skip exited threads.
5807 (switch_to_thread_no_regs): Write to current_thread_.
5808 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5809 INFERIOR_PTID. Clear current_thread_.
5810
5811 2020-06-18 Pedro Alves <palves@redhat.com>
5812
5813 * aix-thread.c (pd_update): Use switch_to_thread.
5814
5815 2020-06-18 Pedro Alves <palves@redhat.com>
5816
5817 * ravenscar-thread.c (ravenscar_thread_target): Update.
5818 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5819 (ravenscar_thread_target::add_active_thread): ... this. Don't
5820 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5821 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5822
5823 2020-06-18 Pedro Alves <palves@redhat.com>
5824
5825 * nat/windows-nat.c (current_windows_thread): Remove.
5826 * nat/windows-nat.h (current_windows_thread): Remove.
5827 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5828 Adjust.
5829 (display_selectors): Adjust to fetch the current
5830 windows_thread_info based on inferior_ptid.
5831 (fake_create_process): No longer write to current_windows_thread.
5832 (windows_nat_target::get_windows_debug_event):
5833 Don't set inferior_ptid or current_windows_thread.
5834 (windows_nat_target::wait): Adjust to not rely on
5835 current_windows_thread.
5836 (do_initial_windows_stuff): Now a method of windows_nat_target.
5837 Switch to the last_ptid thread.
5838 (windows_nat_target::attach): Adjust.
5839 (windows_nat_target::detach): Use switch_to_no_thread instead of
5840 writing to inferior_ptid directly.
5841 (windows_nat_target::create_inferior): Adjust.
5842
5843 2020-06-18 Pedro Alves <palves@redhat.com>
5844
5845 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5846
5847 2020-06-18 Pedro Alves <palves@redhat.com>
5848
5849 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5850 after creating it, instead of writing to inferior_ptid. Don't
5851 write to inferior_ptid.
5852
5853 2020-06-18 Pedro Alves <palves@redhat.com>
5854
5855 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5856
5857 2020-06-18 Pedro Alves <palves@redhat.com>
5858
5859 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5860 it, instead of writing to inferior_ptid.
5861
5862 2020-06-18 Pedro Alves <palves@redhat.com>
5863
5864 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5865 to inferior_ptid.
5866
5867 2020-06-18 Pedro Alves <palves@redhat.com>
5868
5869 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5870 instead of writing to inferior_ptid directly.
5871
5872 2020-06-18 Pedro Alves <palves@redhat.com>
5873
5874 * corelow.c (core_target::close): Use switch_to_no_thread instead
5875 of writing to inferior_ptid directly.
5876 (add_to_thread_list, core_target_open): Use switch_to_thread
5877 instead of writing to inferior_ptid directly.
5878
5879 2020-06-18 Pedro Alves <palves@redhat.com>
5880
5881 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5882 inferior_ptid.
5883 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5884 inferior_ptid.
5885 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5886 inferior_ptid directly.
5887 (darwin_nat_target::init_thread_list): Switch to thread, instead
5888 of writing to inferior_ptid.
5889 (darwin_nat_target::attach): Don't write to inferior_ptid.
5890 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5891
5892 2020-06-18 Pedro Alves <palves@redhat.com>
5893
5894 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5895 thread.
5896 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5897 Instead use switch_to_thread.
5898 (gnu_nat_target::detach): Use switch_to_no_thread
5899 instead of writing to inferior_ptid directly. Used passed-in
5900 inferior instead of looking up the inferior by pid.
5901
5902 2020-06-18 Pedro Alves <palves@redhat.com>
5903
5904 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5905 inferior_ptid.
5906
5907 2020-06-18 Pedro Alves <palves@redhat.com>
5908
5909 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5910 inferior_ptid.
5911 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5912 thread.
5913 (nto_procfs_target::detach): Avoid referencing
5914 inferior_ptid. Use switch_to_no_thread instead of writing to
5915 inferior_ptid directly.
5916 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5917 instead of writing to inferior_ptid directly.
5918 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5919 to thread.
5920
5921 2020-06-18 Pedro Alves <palves@redhat.com>
5922
5923 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5924 after creating it, instead of writing to inferior_ptid.
5925 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5926 to inferior_ptid directly.
5927 (gdbsim_target::wait): Don't write to inferior_ptid.
5928
5929 2020-06-18 Pedro Alves <palves@redhat.com>
5930
5931 * remote.c (remote_target::remote_notice_new_inferior): Use
5932 switch_to_thread instead of writing to inferior_ptid directly.
5933 (remote_target::add_current_inferior_and_thread): Use
5934 switch_to_no_thread instead of writing to inferior_ptid directly.
5935 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5936 and switch_to_thread instead of using set_current_inferior or
5937 writing to inferior_ptid directly.
5938
5939 2020-06-18 Pedro Alves <palves@redhat.com>
5940
5941 * tracectf.c (ctf_target_open): Switch to added thread instead of
5942 writing to inferior_ptid directly.
5943 (ctf_target::close): Use switch_to_no_thread instead of writing to
5944 inferior_ptid directly.
5945
5946 2020-06-18 Pedro Alves <palves@redhat.com>
5947
5948 * tracefile-tfile.c (tfile_target_open): Don't write to
5949 inferior_ptid directly, instead switch to added thread.
5950 (tfile_target::close): Use switch_to_no_thread instead of writing
5951 to inferior_ptid directly.
5952
5953 2020-06-18 Pedro Alves <palves@redhat.com>
5954
5955 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5956 (procfs_target::detach): Use switch_to_no_thread
5957 instead of writing to inferior_ptid directly.
5958 (do_attach): Change return type to void. Switch to the added
5959 thread.
5960 (procfs_target::create_inferior): Switch to the added thread.
5961 (procfs_do_thread_registers): Don't write to inferior_ptid.
5962
5963 2020-06-18 Pedro Alves <palves@redhat.com>
5964
5965 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5966 of writing to inferior_ptid.
5967 (scoped_restore_exited_inferior): Delete.
5968 (handle_vfork_child_exec_or_exit): Simplify using
5969 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5970 instead of writing to inferior_ptid.
5971 (THREAD_STOPPED_BY): Delete.
5972 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5973 (thread_stopped_by_hw_breakpoint): Delete.
5974 (save_waitstatus): Use
5975 scoped_restore_current_thread+switch_to_thread, and call
5976 target_stopped_by_watchpoint instead of
5977 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5978 instead of thread_stopped_by_sw_breakpoint, and
5979 target_stopped_by_hw_breakpoint instead of
5980 thread_stopped_by_hw_breakpoint.
5981 (handle_inferior_event)
5982 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5983 inferior_ptid directly, nor
5984 set_current_inferior/set_current_program_space. Use
5985 switch_to_thread / switch_to_inferior_no_thread instead.
5986
5987 2020-06-18 Pedro Alves <palves@redhat.com>
5988
5989 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5990 instead of writing to inferior_ptid.
5991
5992 2020-06-18 Pedro Alves <palves@redhat.com>
5993
5994 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5995 added thread.
5996 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5997 to the added thread.
5998 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5999 instead of writing to inferior_ptid.
6000
6001 2020-06-18 Pedro Alves <palves@redhat.com>
6002
6003 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6004 (register_to_value_test): Mock a program_space too. Heap-allocate
6005 the address space. Don't write to inferior_ptid. Use
6006 switch_to_thread instead.
6007
6008 2020-06-18 Pedro Alves <palves@redhat.com>
6009
6010 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6011 Delete.
6012 (find_signalled_thread()): New, factored out from
6013 linux_make_corefile_notes and adjusted to handle exited threads.
6014 (linux_make_corefile_notes): Adjust to use the new
6015 find_signalled_thread.
6016
6017 2020-06-18 Pedro Alves <palves@redhat.com>
6018
6019 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6020 of saving/restoring inferior_ptid.
6021
6022 2020-06-17 Tom Tromey <tom@tromey.com>
6023
6024 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6025 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6026 declare.
6027 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6028
6029 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6032 of partial symtabs.
6033
6034 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * regformats/reg-arm.dat: Remove.
6037 * regformats/reg-bfin.dat: Remove.
6038 * regformats/reg-cris.dat: Remove.
6039 * regformats/reg-crisv32.dat: Remove.
6040 * regformats/reg-m32r.dat: Remove.
6041 * regformats/reg-tilegx.dat: Remove.
6042 * regformats/reg-tilegx32.dat: Remove.
6043
6044 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * features/Makefile (WHICH): Remove arm files.
6047 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6048 * regformats/arm/arm-with-neon.dat: Remove.
6049 * regformats/arm/arm-with-vfpv2.dat: Remove.
6050 * regformats/arm/arm-with-vfpv3.dat: Remove.
6051
6052 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6053
6054 * features/Makefile (XMLTOC): Remove rx.xml.
6055
6056 2020-06-17 Pedro Alves <palves@redhat.com>
6057
6058 * gdbthread.h (thread_control_state) <trap_expected> Update
6059 comments.
6060
6061 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6062
6063 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6064 ada_language::lookup_symbol_nonlocal.
6065 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6066 (ada_language::lookup_symbol_nonlocal): New member function,
6067 implementation from ada_lookup_symbol_nonlocal.
6068 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6069 initializer.
6070 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6071 initializer.
6072 (cplus_language::lookup_symbol_nonlocal): New member function.
6073 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6074 (minimal_language_data) Likewise.
6075 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6076 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6077 initializer.
6078 (d_language::lookup_symbol_nonlocal): New member function.
6079 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6080 initializer.
6081 (f_language::lookup_symbol_nonlocal): New member function.
6082 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6083 initializer.
6084 * language.c (unknown_language_data): Likewise.
6085 (auto_language_data): Likewise.
6086 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6087 field.
6088 (language_defn::lookup_symbol_nonlocal): New member function.
6089 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6090 initializer.
6091 * objc-lang.c (objc_language_data): Likewise.
6092 * opencl-lang.c (opencl_language_data): Likewise.
6093 * p-lang.c (pascal_language_data): Likewise.
6094 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6095 rust_language::lookup_symbol_nonlocal.
6096 (rust_language_data): Delete la_lookup_symbol_nonlocal
6097 initializer.
6098 (rust_language::lookup_symbol_nonlocal): New member function,
6099 implementation from rust_lookup_symbol_nonlocal.
6100 * symtab.c (lookup_symbol_aux): Update call to
6101 lookup_symbol_nonlocal.
6102 (basic_lookup_symbol_nonlocal): Rename to...
6103 (language_defn::lookup_symbol_nonlocal): ...this, and update
6104 header comment. Remove language_defn parameter, and replace with
6105 uses of `this'.
6106 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6107
6108 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6109
6110 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6111 initializer.
6112 (ada_language::value_print_inner): New member function.
6113 * c-lang.c (c_language_data): Delete la_value_print_inner
6114 initializer.
6115 (cplus_language_data): Likewise.
6116 (asm_language_data): Likewise.
6117 (minimal_language_data): Likewise.
6118 * d-lang.c (d_language_data): Likewise.
6119 (d_language::value_print_inner): New member function.
6120 * f-lang.c (f_language_data): Delete la_value_print_inner
6121 initializer.
6122 (f_language::value_print_inner): New member function.
6123 * f-lang.h (f_value_print_innner): Rename to...
6124 (f_value_print_inner): ...this (note spelling of 'inner').
6125 * f-valprint.c (f_value_print_innner): Rename to...
6126 (f_value_print_inner): ...this (note spelling of 'inner').
6127 * go-lang.c (go_language_data): Delete la_value_print_inner
6128 initializer.
6129 (go_language::value_print_inner): New member function.
6130 * language.c (language_defn::value_print_inner): Define new member
6131 function.
6132 (unk_lang_value_print_inner): Delete.
6133 (unknown_language_data): Delete la_value_print_inner initializer.
6134 (unknown_language::value_print_inner): New member function.
6135 (auto_language_data): Delete la_value_print_inner initializer.
6136 (auto_language::value_print_inner): New member function.
6137 * language.h (language_data): Delete la_value_print_inner field.
6138 (language_defn::value_print_inner): Delcare new member function.
6139 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6140 initializer.
6141 (m2_language::value_print_inner): New member function.
6142 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6143 initializer.
6144 * opencl-lang.c (opencl_language_data): Likewise.
6145 * p-lang.c (pascal_language_data): Likewise.
6146 (pascal_language::value_print_inner): New member function.
6147 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6148 initializer.
6149 (rust_language::value_print_inner): New member function.
6150 * valprint.c (do_val_print): Update call to value_print_inner.
6151
6152 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * ada-lang.c (ada_language_data): Delete la_value_print
6155 initializer.
6156 (ada_language::value_print): New member function.
6157 * c-lang.c (c_language_data): Delete la_value_print initializer.
6158 (cplus_language_data): Likewise.
6159 (asm_language_data): Likewise.
6160 (minimal_language_data): Likewise.
6161 * d-lang.c (d_language_data): Likewise.
6162 * f-lang.c (f_language_data): Likewise.
6163 * go-lang.c (go_language_data): Likewise.
6164 * language.c (unk_lang_value_print): Delete.
6165 (language_defn::value_print): Define new member function.
6166 (unknown_language_data): Delete la_value_print initializer.
6167 (unknown_language::value_print): New member function.
6168 (auto_language_data): Delete la_value_print initializer.
6169 (auto_language::value_print): New member function.
6170 * language.h (language_data): Delete la_value_print field.
6171 (language_defn::value_print): Declare new member function.
6172 (LA_VALUE_PRINT): Update call to value_print.
6173 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6174 * objc-lang.c (objc_language_data): Likewise.
6175 * opencl-lang.c (opencl_language_data): Likewise.
6176 * p-lang.c (pascal_language_data): Likewise.
6177 (pascal_language::value_print): New member function.
6178 * rust-lang.c (rust_language_data): Delete la_value_print
6179 initializer.
6180
6181 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6182
6183 * ada-lang.c (ada_watch_location_expression): Rename to
6184 ada_language::watch_location_expression.
6185 (ada_language_data): Delete la_watch_location_expression
6186 initializer.
6187 (ada_language::watch_location_expression): New member function,
6188 implementation from ada_watch_location_expression.
6189 * breakpoint.c (watch_command_1): Update call to
6190 watch_location_expression.
6191 * c-lang.c (c_watch_location_expression): Rename to
6192 language_defn::watch_location_expression.
6193 (c_language_data): Delete la_watch_location_expression
6194 initializer.
6195 (cplus_language_data): Likewise.
6196 (asm_language_data): Likewise.
6197 (minimal_language_data): Likewise.
6198 * c-lang.h (c_watch_location_expression): Delete declaration.
6199 * d-lang.c (d_language_data): Delete la_watch_location_expression
6200 initializer.
6201 * f-lang.c (f_language_data): Likewise.
6202 * go-lang.c (go_language_data): Likewise.
6203 * language.c (language_defn::watch_location_expression): Member
6204 function implementation from c_watch_location_expression.
6205 (unknown_language_data): Delete la_watch_location_expression
6206 initializer.
6207 (auto_language_data): Likewise.
6208 * language.h (language_data): Delete la_watch_location_expression
6209 field.
6210 (language_defn::watch_location_expression): Declare new member
6211 function.
6212 * m2-lang.c (m2_language_data): Delete
6213 la_watch_location_expression initializer.
6214 * objc-lang.c (objc_language_data): Likewise.
6215 * opencl-lang.c (opencl_language_data): Likewise.
6216 * p-lang.c (pascal_language_data): Likewise.
6217 * rust-lang.c (rust_watch_location_expression): Rename to
6218 rust_language::watch_location_expression.
6219 (rust_language_data): Delete la_watch_location_expression
6220 initializer.
6221 (rust_language::watch_location_expression): New member function,
6222 implementation from rust_watch_location_expression.
6223
6224 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6225
6226 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6227 ada_language::collect_symbol_completion_matches.
6228 (ada_language_data): Delete la_collect_symbol_completion_matches
6229 initializer.
6230 (ada_language::collect_symbol_completion_matches): New member
6231 function, implementation from
6232 ada_collect_symbol_completion_matches.
6233 * c-lang.c (c_language_data): Delete
6234 la_collect_symbol_completion_matches initializer.
6235 (cplus_language_data): Likewise.
6236 (asm_language_data): Likewise.
6237 (minimal_language_data): Likewise.
6238 * d-lang.c (d_language_data): Likewise.
6239 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6240 f_language::collect_symbol_completion_matches.
6241 (f_language_data): Delete la_collect_symbol_completion_matches
6242 initializer.
6243 (f_language::collect_symbol_completion_matches) New member
6244 function, implementation from f_collect_symbol_completion_matches.
6245 * go-lang.c (go_language_data): Delete
6246 la_collect_symbol_completion_matches initializer.
6247 * language.c (unknown_language_data): Likewise.
6248 (auto_language_data): Likewise.
6249 * language.h (language_data): Delete
6250 la_collect_symbol_completion_matches field.
6251 (language_defn::collect_symbol_completion_matches): New member
6252 function.
6253 * m2-lang.c (m2_language_data): Delete
6254 la_collect_symbol_completion_matches initializer.
6255 * objc-lang.c (objc_language_data): Likewise.
6256 * opencl-lang.c (opencl_language_data): Likewise.
6257 * p-lang.c (pascal_language_data): Likewise.
6258 * rust-lang.c (rust_language_data): Likewise.
6259 * symtab.c (default_collect_symbol_completion_matches): Delete.
6260 (collect_symbol_completion_matches): Update call to
6261 collect_symbol_completion_matches.
6262 (collect_symbol_completion_matches_type): Likewise.
6263 * symtab.h (default_collect_symbol_completion_matches): Delete
6264 declaration.
6265
6266 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6269 (ada_language_data): Delete la_word_break_characters initializer.
6270 (ada_language::word_break_characters): New member function.
6271 * c-lang.c (c_language_data): Delete la_word_break_characters
6272 initializer.
6273 (cplus_language_data): Likewise.
6274 (asm_language_data): Likewise.
6275 (minimal_language_data): Likewise.
6276 * completer.c: Update global comment.
6277 (advance_to_expression_complete_word_point): Update call to
6278 word_break_characters.
6279 (complete_files_symbols): Likewise.
6280 (complete_line_internal_1): Likewise.
6281 (default_completer_handle_brkchars): Likewise.
6282 (skip_quoted_chars): Likewise.
6283 * d-lang.c (d_language_data): Delete la_word_break_characters
6284 initializer.
6285 * f-lang.c (f_word_break_characters): Delete.
6286 (f_language_data): Delete la_word_break_characters initializer.
6287 (f_language::word_break_characters): New member function.
6288 * go-lang.c (go_language_data): Delete la_word_break_characters
6289 initializer.
6290 * language.c (unknown_language_data): Likewise.
6291 (auto_language_data): Likewise.
6292 * language.h (default_word_break_characters): Move declaration to
6293 earlier in the file.
6294 (language_data): Delete la_word_break_characters field.
6295 (language_defn::word_break_characters): New member function.
6296 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6297 initializer.
6298 * objc-lang.c (objc_language_data): Likewise.
6299 * opencl-lang.c (opencl_language_data): Likewise.
6300 * p-lang.c (pascal_language_data): Likewise.
6301 * rust-lang.c (rust_language_data): Likewise.
6302
6303 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6306 (ada_language_data): Delete la_get_symbol_name_matcher
6307 initializer.
6308 (language_defn::get_symbol_name_matcher_inner): New member
6309 function.
6310 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6311 initializer.
6312 (cplus_language_data): Likewise.
6313 (cplus_language::get_symbol_name_matcher_inner): New member
6314 function.
6315 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6316 (minimal_language_data): Likewise.
6317 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6318 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6319 initializer.
6320 * dictionary.c (iter_match_first_hashed): Update call to
6321 get_symbol_name_matcher.
6322 (iter_match_next_hashed): Likewise.
6323 (iter_match_next_linear): Likewise.
6324 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6325 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6326 initializer.
6327 (f_language::get_symbol_name_matcher_inner): New member function.
6328 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6329 initializer.
6330 * language.c (default_symbol_name_matcher): Update header comment,
6331 make static.
6332 (language_defn::get_symbol_name_matcher): New definition.
6333 (language_defn::get_symbol_name_matcher_inner): Likewise.
6334 (get_symbol_name_matcher): Delete.
6335 (unknown_language_data): Delete la_get_symbol_name_matcher
6336 initializer.
6337 (auto_language_data): Likewise.
6338 * language.h (language_data): Delete la_get_symbol_name_matcher
6339 field.
6340 (language_defn::get_symbol_name_matcher): New member function.
6341 (language_defn::get_symbol_name_matcher_inner): Likewise.
6342 (default_symbol_name_matcher): Delete declaration.
6343 * linespec.c (find_methods): Update call to
6344 get_symbol_name_matcher.
6345 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6346 initializer.
6347 * minsyms.c (lookup_minimal_symbol): Update call to
6348 get_symbol_name_matcher.
6349 (iterate_over_minimal_symbols): Likewise.
6350 * objc-lang.c (objc_language_data): Delete
6351 la_get_symbol_name_matcher initializer.
6352 * opencl-lang.c (opencl_language_data): Likewise.
6353 * p-lang.c (pascal_language_data): Likewise.
6354 * psymtab.c (psymbol_name_matches): Update call to
6355 get_symbol_name_matcher.
6356 * rust-lang.c (rust_language_data): Delete
6357 la_get_symbol_name_matcher initializer.
6358 * symtab.c (symbol_matches_search_name): Update call to
6359 get_symbol_name_matcher.
6360 (compare_symbol_name): Likewise.
6361
6362 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6363
6364 * ada-lang.c (ada_language_data): Delete la_compute_program
6365 initializer.
6366 * c-lang.c (c_language_data): Likewise.
6367 (c_language::compute_program): New member function.
6368 (cplus_language_data): Delete la_compute_program initializer.
6369 (cplus_language::compute_program): New member function.
6370 (asm_language_data): Delete la_compute_program initializer.
6371 (minimal_language_data): Likewise.
6372 * c-lang.h (c_compute_program): Update comment.
6373 (cplus_compute_program): Likewise.
6374 * compile/compile-c-support.c (c_compute_program): Likewise.
6375 (cplus_compute_program): Likewise.
6376 * compile/compile.c (compile_to_object): Update call to
6377 la_compute_program.
6378 * d-lang.c (d_language_data): Delete la_compute_program
6379 initializer.
6380 * f-lang.c (f_language_data): Likewise.
6381 * go-lang.c (go_language_data): Likewise.
6382 * language.c (unknown_language_data): Likewise.
6383 (auto_language_data): Likewise.
6384 * language.h (language_data): Delete la_compute_program field.
6385 (language_defn::compute_program): New member function.
6386 * m2-lang.c (m2_language_data): Delete la_compute_program
6387 initializer.
6388 * objc-lang.c (objc_language_data): Likewise.
6389 * opencl-lang.c (opencl_language_data): Likewise.
6390 * p-lang.c (pascal_language_data): Likewise.
6391 * rust-lang.c (rust_language_data): Likewise.
6392
6393 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6394
6395 * ada-lang.c (ada_language_data) Delete
6396 la_class_name_from_physname initializer.
6397 * c-lang.c (c_language_data): Likewise.
6398 (cplus_language_data): Likewise.
6399 (cplus_language::class_name_from_physname): New member function.
6400 (asm_language_data): Delete la_class_name_from_physname
6401 initializer.
6402 (minimal_language_data): Likewise.
6403 * d-lang.c (d_language_data): Likewise.
6404 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6405 method on language_defn class.
6406 (guess_full_die_structure_name): Likewise.
6407 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6408 initializer.
6409 * go-lang.c (go_language_data): Likewise.
6410 * language.c (language_class_name_from_physname): Delete.
6411 (unk_lang_class_name): Delete.
6412 (unknown_language_data): Delete la_class_name_from_physname
6413 initializer.
6414 (auto_language_data): Likewise.
6415 * language.h (language_data): Delete la_class_name_from_physname
6416 field.
6417 (language_defn::class_name_from_physname): New function.
6418 (language_class_name_from_physname): Delete declaration.
6419 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6420 initializer.
6421 * objc-lang.c (objc_language_data): Likewise.
6422 * opencl-lang.c (opencl_language_data): Likewise.
6423 * p-lang.c (pascal_language_data): Likewise.
6424 * rust-lang.c (rust_language_data): Likewise.
6425
6426 2020-06-16 Tom Tromey <tom@tromey.com>
6427
6428 * tui/tui-data.h (STATUS_NAME): New macro.
6429 * tui/tui-layout.c (tui_remove_some_windows)
6430 (initialize_known_windows, tui_register_window)
6431 (tui_layout_split::remove_windows, initialize_layouts)
6432 (tui_new_layout_command): Don't use hard-coded window names.
6433
6434 2020-06-16 Tom Tromey <tom@tromey.com>
6435
6436 PR tui/25348:
6437 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6438 tui_initialize_readline. Only run once. Call rl_initialize.
6439 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6440 tui_initialize_readline.
6441 * tui/tui-io.c (tui_setup_io): Call
6442 tui_ensure_readline_initialized.
6443 * tui/tui-interp.c (tui_interp::init): Update.
6444
6445 2020-06-16 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6448 Also preserve the status window.
6449
6450 2020-06-16 Tom Tromey <tom@tromey.com>
6451
6452 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6453 where m_window==nullptr.
6454
6455 2020-06-15 Tom Tromey <tromey@adacore.com>
6456
6457 * windows-nat.c (windows_nat::handle_output_debug_string):
6458 Update.
6459 (windows_nat::handle_ms_vc_exception): Update.
6460 * target.h (target_read_string): Change API.
6461 * target.c (target_read_string): Change API.
6462 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6463 Update.
6464 * solib-frv.c (frv_current_sos): Update.
6465 * solib-dsbt.c (dsbt_current_sos): Update.
6466 * solib-darwin.c (darwin_current_sos): Update.
6467 * linux-thread-db.c (inferior_has_bug): Update.
6468 * expprint.c (print_subexp_standard): Update.
6469 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6470 (ada_exception_message_1): Update.
6471
6472 2020-06-15 Tom Tromey <tromey@adacore.com>
6473
6474 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6475
6476 2020-06-15 Tom Tromey <tromey@adacore.com>
6477
6478 * valprint.c (read_string): Update comment.
6479 * target.c (MIN): Remove.
6480 (target_read_string): Rewrite.
6481
6482 2020-06-15 Tom Tromey <tromey@adacore.com>
6483
6484 * corefile.c (read_memory_string): Remove.
6485 * ada-valprint.c (ada_value_print_ptr): Update.
6486 * ada-lang.h (ada_tag_name): Change return type.
6487 * ada-lang.c (type_from_tag): Update.
6488 (ada_tag_name_from_tsd): Change return type. Use
6489 target_read_string.
6490 (ada_tag_name): Likewise.
6491 * gdbcore.h (read_memory_string): Don't declare.
6492
6493 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6494
6495 * symtab.c (rbreak_command): Ignore Windows drive colon.
6496
6497 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * NEWS: Mention removed GDBserver host support.
6500
6501 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6502
6503 * features/riscv/rebuild-csr-xml.sh: Updated.
6504
6505 2020-06-11 Tom Tromey <tom@tromey.com>
6506
6507 PR gdb/18318:
6508 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6509
6510 2020-06-09 Jonny Grant <jg@jguk.org>
6511 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * main.c (captured_main_1): Don't print new line after help.
6514 (print_gdb_help): add mailing list and IRC channel information
6515 to --help. Add new lines between items in the footer. Remove
6516 quotes around bug url.
6517
6518 2020-06-11 Keith Seitz <keiths@redhat.com>
6519
6520 PR gdb/21356
6521 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6522 Resolve typedefs for type length calculations.
6523
6524 2020-06-10 Tom de Vries <tdevries@suse.de>
6525
6526 PR ada/24713
6527 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6528 (write_psymbols): Enable .gdb_index for ada.
6529 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6530 ada.
6531
6532 2020-06-10 Tom de Vries <tdevries@suse.de>
6533
6534 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6535 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6536 namei" instead of "const char *name" argument.
6537 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6538 dw2_symtab_iter_init.
6539
6540 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6541
6542 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6543 to use type::field and field::type instead.
6544
6545 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6546
6547 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6548 to use field::type instead.
6549
6550 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * gdbtypes.h (struct field) <type, set_type>: New methods.
6553 Rename `type` field to...
6554 <m_type>: ... this. Change references throughout to use type or
6555 set_type methods.
6556 (FIELD_TYPE): Use field::type. Change call sites that modify
6557 the field's type to use field::set_type instead.
6558
6559 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6562 to use type::index_type instead.
6563
6564 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6565
6566 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6567 methods.
6568 (TYPE_INDEX_TYPE): Use type::index_type.
6569 * gdbtypes.c (create_array_type_with_stride): Likewise.
6570
6571 2020-06-07 Tom Tromey <tom@tromey.com>
6572
6573 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6574 parameter.
6575 (generic_value_print): Update.
6576
6577 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6578
6579 Revert commit 982a38f60b0.
6580 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6581
6582 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6583
6584 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6585 avoid use after free.
6586
6587 2020-06-05 Tom de Vries <tdevries@suse.de>
6588
6589 * NEWS: Fix typos.
6590
6591 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6594 the per_bfd object.
6595 (dwarf2_read_debug_names): Likewise.
6596 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6597 object when re-using a per_bfd object with an index.
6598
6599 2020-06-03 Tom de Vries <tdevries@suse.de>
6600
6601 PR symtab/26046
6602 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6603 children for C++.
6604 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6605 DW_TAG_subprogram.
6606
6607 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * ada-lang.c (ada_language_data): Delete skip_trampoline
6610 initializer.
6611 * c-lang.c (c_language_data): Likewise.
6612 (cplus_language_data): Likewise.
6613 (cplus_language::skip_trampoline): New member function.
6614 (asm_language_data): Delete skip_trampoline initializer.
6615 (minimal_language_data): Likewise.
6616 * d-lang.c (d_language_data): Likewise.
6617 * f-lang.c (f_language_data): Likewise.
6618 * go-lang.c (go_language_data): Likewise.
6619 * language.c (unk_lang_trampoline): Delete function.
6620 (skip_language_trampoline): Update.
6621 (unknown_language_data): Delete skip_trampoline initializer.
6622 (auto_language_data): Likewise.
6623 * language.h (language_data): Delete skip_trampoline field.
6624 (language_defn::skip_trampoline): New function.
6625 * m2-lang.c (m2_language_data): Delete skip_trampoline
6626 initializer.
6627 * objc-lang.c (objc_skip_trampoline): Delete function, move
6628 implementation to objc_language::skip_trampoline.
6629 (objc_language_data): Delete skip_trampoline initializer.
6630 (objc_language::skip_trampoline): New member function with
6631 implementation from objc_skip_trampoline.
6632 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6633 initializer.
6634 * p-lang.c (pascal_language_data): Likewise.
6635 * rust-lang.c (rust_language_data): Likewise.
6636
6637 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6640 (ada_language::demangle): New member function.
6641 * c-lang.c (c_language_data): Delete la_demangle initializer.
6642 (cplus_language_data): Delete la_demangle initializer.
6643 (cplus_language::demangle): New member function.
6644 (asm_language_data): Delete la_demangle initializer.
6645 (minimal_language_data): Delete la_demangle initializer.
6646 * d-lang.c (d_language_data): Delete la_demangle initializer.
6647 (d_language::demangle): New member function.
6648 * f-lang.c (f_language_data): Delete la_demangle initializer.
6649 (f_language::demangle): New member function.
6650 * go-lang.c (go_language_data): Delete la_demangle initializer.
6651 (go_language::demangle): New member function.
6652 * language.c (language_demangle): Update.
6653 (unk_lang_demangle): Delete.
6654 (unknown_language_data): Delete la_demangle initializer.
6655 (unknown_language::demangle): New member function.
6656 (auto_language_data): Delete la_demangle initializer.
6657 (auto_language::demangle): New member function.
6658 * language.h (language_data): Delete la_demangle field.
6659 (language_defn::demangle): New function.
6660 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6661 * objc-lang.c (objc_language_data): Delete la_demangle
6662 initializer.
6663 (objc_language::demangle): New member function.
6664 * opencl-lang.c (opencl_language_data): Delete la_demangle
6665 initializer.
6666 * p-lang.c (pascal_language_data): Likewise.
6667 * rust-lang.c (rust_language_data): Likewise.
6668 (rust_language::demangle): New member function.
6669
6670 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 * ada-lang.c (ada_language_data): Delete la_print_type
6673 initializer.
6674 (ada_language::print_type): New member function.
6675 * c-lang.c (c_language_data): Delete la_print_type initializer.
6676 (c_language::print_type): New member function.
6677 (cplus_language_data): Delete la_print_type initializer.
6678 (cplus_language::print_type): New member function.
6679 (asm_language_data): Delete la_print_type initializer.
6680 (asm_language::print_type): New member function.
6681 (minimal_language_data): Delete la_print_type initializer.
6682 (minimal_language::print_type): New member function.
6683 * d-lang.c (d_language_data): Delete la_print_type initializer.
6684 (d_language::print_type): New member function.
6685 * f-lang.c (f_language_data): Delete la_print_type initializer.
6686 (f_language::print_type): New member function.
6687 * go-lang.c (go_language_data): Delete la_print_type initializer.
6688 (go_language::print_type): New member function.
6689 * language.c (unk_lang_print_type): Delete.
6690 (unknown_language_data): Delete la_print_type initializer.
6691 (unknown_language::print_type): New member function.
6692 (auto_language_data): Delete la_print_type initializer.
6693 (auto_language::print_type): New member function.
6694 * language.h (language_data): Delete la_print_type field.
6695 (language_defn::print_type): New function.
6696 (LA_PRINT_TYPE): Update.
6697 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6698 (m2_language::print_type): New member function.
6699 * objc-lang.c (objc_language_data): Delete la_print_type
6700 initializer.
6701 (objc_language::print_type): New member function.
6702 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6703 to opencl_language::print_type.
6704 (opencl_language_data): Delete la_print_type initializer.
6705 (opencl_language::print_type): New member function, implementation
6706 from opencl_print_type.
6707 * p-lang.c (pascal_language_data): Delete la_print_type
6708 initializer.
6709 (pascal_language::print_type): New member function.
6710 * rust-lang.c (rust_print_type): Delete, implementation moved to
6711 rust_language::print_type.
6712 (rust_language_data): Delete la_print_type initializer.
6713 (rust_language::print_type): New member function, implementation
6714 from rust_print_type.
6715
6716 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6717
6718 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6719 implementation moves to...
6720 (ada_language::sniff_from_mangled_name): ...here. Update return
6721 type.
6722 (ada_language_data): Delete la_sniff_from_mangled_name
6723 initializer.
6724 * c-lang.c (c_language_data): Likewise.
6725 (cplus_language_data): Likewise.
6726 (cplus_language::sniff_from_mangled_name): New member function,
6727 implementation taken from gdb_sniff_from_mangled_name.
6728 (asm_language_data): Delete la_sniff_from_mangled_name
6729 initializer.
6730 (minimal_language_data): Likewise.
6731 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6732 implementation moves to cplus_language::sniff_from_mangled_name.
6733 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6734 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6735 moves to...
6736 (d_language::sniff_from_mangled_name): ...here.
6737 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6738 * f-lang.c (f_language_data): Likewise.
6739 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6740 moves to...
6741 (go_language::sniff_from_mangled_name): ...here.
6742 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6743 * language.c (language_sniff_from_mangled_name): Delete.
6744 (unknown_language_data): Delete la_sniff_from_mangled_name
6745 initializer.
6746 (auto_language_data): Likewise.
6747 * language.h (language_data): Delete la_sniff_from_mangled_name
6748 field.
6749 (language_defn::sniff_from_mangled_name): New function.
6750 (language_sniff_from_mangled_name): Delete declaration.
6751 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6752 field.
6753 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6754 implementation moves to...
6755 (objc_language::sniff_from_mangled_name): ...here.
6756 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6757 * opencl-lang.c (opencl_language_data): Likewise.
6758 * p-lang.c (pascal_language_data): Likewise.
6759 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6760 implementation moves to...
6761 (rust_language::sniff_from_mangled_name): ...here.
6762 (rust_language_data): Delete la_sniff_from_mangled_name
6763 initializer.
6764 * symtab.c (symbol_find_demangled_name): Call
6765 sniff_from_mangled_name member function.
6766
6767 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6770 initializer.
6771 * c-lang.c (c_language_data): Likewise.
6772 (cplus_language_data): Likewise.
6773 (cplus_language::search_name_hash): New member function.
6774 (asm_language_data): Delete la_search_name_hash initializer.
6775 (minimal_language_data): Likewise.
6776 * d-lang.c (d_language_data): Likewise.
6777 * dictionary.c (default_search_name_hash): Rename to...
6778 (language_defn::search_name_hash): ...this.
6779 * f-lang.c (f_language_data): Likewise.
6780 (f_language::search_name_hash): New member function.
6781 * go-lang.c (go_language_data): Delete la_search_name_hash
6782 initializer.
6783 * language.c (unknown_language_data): Likewise.
6784 (auto_language_data): Likewise.
6785 * language.h (struct language_data): Delete la_search_name_hash
6786 field.
6787 (language_defn::search_name_hash): Declare new member function.
6788 (default_search_name_hash): Delete declaration.
6789 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6790 initializer.
6791 * objc-lang.c (objc_language_data): Likewise.
6792 * opencl-lang.c (opencl_language_data): Likewise.
6793 * p-lang.c (pascal_language_data): Likewise.
6794 * rust-lang.c (rust_language_data): Likewise.
6795 * symtab.c (search_name_hash): Update call.
6796
6797 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6798
6799 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6800 initializer.
6801 * c-lang.c (class compile_instance): Declare.
6802 (c_language_data): Delete la_get_compile_instance initializer.
6803 (c_language::get_compile_instance): New member function.
6804 (cplus_language_data): Delete la_get_compile_instance initializer.
6805 (cplus_language::get_compile_instance): New member function.
6806 (asm_language_data): Delete la_get_compile_instance initializer.
6807 (minimal_language_data): Likewise.
6808 * c-lang.h (c_get_compile_context): Update comment.
6809 (cplus_get_compile_context): Update comment.
6810 * compile/compile.c (compile_to_object): Update calls, don't rely
6811 on function pointer being NULL.
6812 * d-lang.c (d_language_data): Delete la_get_compile_instance
6813 initializer.
6814 * f-lang.c (f_language_data): Likewise.
6815 * go-lang.c (go_language_data): Likewise.
6816 * language.c (unknown_language_data): Likewise.
6817 (auto_language_data): Likewise.
6818 * language.h (language_data): Delete la_get_compile_instance field.
6819 (language_defn::get_compile_instance): New member function.
6820 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6821 initializer.
6822 * objc-lang.c (objc_language_data): Likewise.
6823 * opencl-lang.c (opencl_language_data): Likewise.
6824 * p-lang.c (pascal_language_data): Likewise.
6825 * rust-lang.c (rust_language_data): Likewise.
6826
6827 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * ada-lang.c (ada_add_all_symbols): Update comment.
6830 (ada_iterate_over_symbols): Delete, move implementation to...
6831 (ada_language::iterate_over_symbols): ...here, a new member
6832 function, rewrite to use range based for loop.
6833 (ada_language_data): Delete la_iterate_over_symbols initializer.
6834 * c-lang.c (c_language_data): Likewise.
6835 (cplus_language_data): Likewise.
6836 (asm_language_data): Likewise.
6837 (minimal_language_data): Likewise.
6838 * d-lang.c (d_language_data): Likewise.
6839 * f-lang.c (f_language_data): Likewise.
6840 * go-lang.c (go_language_data): Likewise.
6841 * language.c (unknown_language_data): Likewise.
6842 (auto_language_data): Likewise.
6843 * language.h (language_data): Delete la_iterate_over_symbols field.
6844 (language_defn::iterate_over_symbols): New member function.
6845 (LA_ITERATE_OVER_SYMBOLS): Update.
6846 * linespec.c (iterate_over_all_matching_symtabs): Update.
6847 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6848 initializer.
6849 * objc-lang.c (objc_language_data): Likewise.
6850 * opencl-lang.c (opencl_language_data): Likewise.
6851 * p-lang.c (pascal_language_data): Likewise.
6852 * rust-lang.c (rust_language_data): Likewise.
6853
6854 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6855
6856 * ada-lang.c (ada_language_data): Delete
6857 la_lookup_transparent_type initializer.
6858 * c-lang.c (c_language_data): Likewise.
6859 (cplus_language_data): Likewise.
6860 (cplus_language::lookup_transparent_type): New member function.
6861 (asm_language_data): Delete la_lookup_transparent_type
6862 initializer.
6863 (minimal_language_data): Likewise.
6864 * d-lang.c (d_language_data): Likewise.
6865 * f-lang.c (f_language_data): Likewise.
6866 * go-lang.c (go_language_data): Likewise.
6867 * language.c (unknown_language_data): Likewise.
6868 (auto_language_data): Likewise.
6869 * language.h (struct language_data): Delete
6870 la_lookup_transparent_type field.
6871 (language_defn::lookup_transparent_type): New member function.
6872 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6873 initializer.
6874 * objc-lang.c (objc_language_data): Likewise.
6875 * opencl-lang.c (opencl_language_data): Likewise.
6876 * p-lang.c (pascal_language_data): Likewise.
6877 * rust-lang.c (rust_language_data): Likewise.
6878 * symtab.c (symbol_matches_domain): Update call.
6879
6880 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * ada-lang.c (ada_language_arch_info): Delete function, move
6883 implementation to...
6884 (ada_language::language_arch_info): ...here, a new member
6885 function.
6886 (ada_language_data): Delete la_language_arch_info.
6887 * c-lang.c (c_language_data): Likewise.
6888 (c_language::language_arch_info): New member function.
6889 (cplus_language_arch_info): Delete function, move
6890 implementation to...
6891 (cplus_language::language_arch_info): ...here, a new member
6892 function.
6893 (cplus_language_data): Delete la_language_arch_info.
6894 (asm_language_data): Likewise.
6895 (asm_language::language_arch_info): New member function.
6896 (minimal_language_data): Delete la_language_arch_info.
6897 (minimal_language::language_arch_info): New member function.
6898 * d-lang.c (d_language_arch_info): Delete function, move
6899 implementation to...
6900 (d_language::language_arch_info): ...here, a new member
6901 function.
6902 (d_language_data): Delete la_language_arch_info.
6903 * f-lang.c (f_language_arch_info): Delete function, move
6904 implementation to...
6905 (f_language::language_arch_info): ...here, a new member
6906 function.
6907 (f_language_data): Delete la_language_arch_info.
6908 * go-lang.c (go_language_arch_info): Delete function, move
6909 implementation to...
6910 (go_language::language_arch_info): ...here, a new member
6911 function.
6912 (go_language_data): Delete la_language_arch_info.
6913 * language.c (unknown_language_data): Likewise.
6914 (unknown_language::language_arch_info): New member function.
6915 (auto_language_data): Delete la_language_arch_info.
6916 (auto_language::language_arch_info): New member function.
6917 (language_gdbarch_post_init): Update call to
6918 la_language_arch_info.
6919 * language.h (language_data): Delete la_language_arch_info
6920 function pointer.
6921 (language_defn::language_arch_info): New function.
6922 * m2-lang.c (m2_language_arch_info): Delete function, move
6923 implementation to...
6924 (m2_language::language_arch_info): ...here, a new member
6925 function.
6926 (m2_language_data): Delete la_language_arch_info.
6927 * objc-lang.c (objc_language_arch_info): Delete function, move
6928 implementation to...
6929 (objc_language::language_arch_info): ...here, a new member
6930 function.
6931 (objc_language_data): Delete la_language_arch_info.
6932 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6933 implementation to...
6934 (opencl_language::language_arch_info): ...here, a new member
6935 function.
6936 (opencl_language_data): Delete la_language_arch_info.
6937 * p-lang.c (pascal_language_arch_info): Delete function, move
6938 implementation to...
6939 (pascal_language::language_arch_info): ...here, a new member
6940 function.
6941 (pascal_language_data): Delete la_language_arch_info.
6942 * rust-lang.c (rust_language_arch_info): Delete function, move
6943 implementation to...
6944 (rust_language::language_arch_info): ...here, a new member
6945 function.
6946 (rust_language_data): Delete la_language_arch_info.
6947
6948 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6949
6950 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6951 initializer.
6952 * c-lang.c (c_language_data): Likewise.
6953 (cplus_language_data): Likewise.
6954 (cplus_language::pass_by_reference_info): New method.
6955 (asm_language_data): Delete la_pass_by_reference initializer.
6956 (minimal_language_data): Likewise.
6957 * cp-abi.c (cp_pass_by_reference): Remove use of
6958 default_pass_by_reference.
6959 * d-lang.c (d_language_data): Likewise.
6960 * f-lang.c (f_language_data): Likewise.
6961 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6962 default_pass_by_reference.
6963 * go-lang.c (go_language_data): Likewise.
6964 * language.c (language_pass_by_reference): Update.
6965 (default_pass_by_reference): Delete.
6966 (unknown_language_data): Delete la_pass_by_reference
6967 initializer.
6968 (auto_language_data): Likewise.
6969 * language.h (struct language_data): Delete la_pass_by_reference
6970 field.
6971 (language_defn::pass_by_reference_info): New member function.
6972 (default_pass_by_reference): Delete declaration.
6973 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6974 initializer.
6975 * objc-lang.c (objc_language_data): Likewise.
6976 * opencl-lang.c (opencl_language_data): Likewise.
6977 * p-lang.c (pascal_language_data): Likewise.
6978 * rust-lang.c (rust_language_data): Likewise.
6979
6980 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * ada-lang.c (ada_read_var_value): Delete function, move
6983 implementation to...
6984 (ada_language::read_var_value): ...here.
6985 (ada_language_data): Delete la_read_var_value initializer.
6986 * c-lang.c (c_language_data): Likewise.
6987 (cplus_language_data): Likewise.
6988 (minimal_language_data): Likewise.
6989 * d-lang.c (d_language_data): Likewise.
6990 * f-lang.c (f_language_data): Likewise.
6991 * findvar.c (default_read_var_value): Rename to...
6992 (language_defn::read_var_value): ...this.
6993 * findvar.c (read_var_value): Update header comment, and change to
6994 call member function instead of function pointer.
6995 * go-lang.c (go_language_data): Likewise.
6996 * language.c (unknown_language_data): Delete la_read_var_value
6997 initializer.
6998 (auto_language_data): Likewise.
6999 * language.h (struct language_data): Delete la_read_var_value
7000 field.
7001 (language_defn::read_var_value): New member function.
7002 (default_read_var_value): Delete declaration.
7003 * m2-lang.c (m2_language_data): Delete la_read_var_value
7004 initializer.
7005 * objc-lang.c (objc_language_data): Likewise.
7006 * opencl-lang.c (opencl_language_data): Likewise.
7007 * p-lang.c (pascal_language_data): Likewise.
7008 * rust-lang.c (rust_language_data): Likewise.
7009 * value.h (default_read_var_value): Delete declaration.
7010
7011 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7012
7013 * ada-lang.c (ada_print_array_index): Delete function, move
7014 implementation to...
7015 (ada_language::print_array_index): ...here.
7016 (ada_language_data): Delete la_print_array_index initializer.
7017 * c-lang.c (c_language_data): Likewise.
7018 (cplus_language_data): Likewise.
7019 (minimal_language_data): Likewise.
7020 * d-lang.c (d_language_data): Likewise.
7021 * f-lang.c (f_language_data): Likewise.
7022 * go-lang.c (go_language_data): Likewise.
7023 * language.c (default_print_array_index): Delete function, move
7024 implementation to...
7025 (language_defn::print_array_index): ...here.
7026 (unknown_language_data): Delete la_print_array_index initializer.
7027 (auto_language_data): Likewise.
7028 * language.h (struct language_data): Delete la_print_array_index
7029 field.
7030 (language_defn::print_array_index): New member function.
7031 (LA_PRINT_ARRAY_INDEX): Update.
7032 (default_print_array_index): Delete declaration.
7033 * m2-lang.c (m2_language_data): Delete la_print_array_index
7034 initializer.
7035 * objc-lang.c (objc_language_data): Likewise.
7036 * opencl-lang.c (opencl_language_data): Likewise.
7037 * p-lang.c (pascal_language_data): Likewise.
7038 * rust-lang.c (rust_language_data): Likewise.
7039
7040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7041
7042 * gdb/ada-lang.c (ada_language_defn): Convert to...
7043 (ada_language_data): ...this.
7044 (class ada_language): New class.
7045 (ada_language_defn): New static global.
7046 * gdb/c-lang.c (c_language_defn): Convert to...
7047 (c_language_data): ...this.
7048 (class c_language): New class.
7049 (c_language_defn): New static global.
7050 (cplus_language_defn): Convert to...
7051 (cplus_language_data): ...this.
7052 (class cplus_language): New class.
7053 (cplus_language_defn): New static global.
7054 (asm_language_defn): Convert to...
7055 (asm_language_data): ...this.
7056 (class asm_language): New class.
7057 (asm_language_defn): New static global.
7058 (minimal_language_defn): Convert to...
7059 (minimal_language_data): ...this.
7060 (class minimal_language): New class.
7061 (minimal_language_defn): New static global.
7062 * gdb/d-lang.c (d_language_defn): Convert to...
7063 (d_language_data): ...this.
7064 (class d_language): New class.
7065 (d_language_defn): New static global.
7066 * gdb/f-lang.c (f_language_defn): Convert to...
7067 (f_language_data): ...this.
7068 (class f_language): New class.
7069 (f_language_defn): New static global.
7070 * gdb/go-lang.c (go_language_defn): Convert to...
7071 (go_language_data): ...this.
7072 (class go_language): New class.
7073 (go_language_defn): New static global.
7074 * gdb/language.c (unknown_language_defn): Remove declaration.
7075 (current_language): Initialize to nullptr, real initialization is
7076 moved to _initialize_language.
7077 (languages): Delete global.
7078 (language_defn::languages): Define.
7079 (set_language_command): Use language_defn::languages.
7080 (set_language): Likewise.
7081 (range_error): Likewise.
7082 (language_enum): Likewise.
7083 (language_def): Likewise.
7084 (add_set_language_command): Use language_def::languages for the
7085 language list, and language_def to lookup language pointers.
7086 (skip_language_trampoline): Use language_defn::languages.
7087 (unknown_language_defn): Convert to...
7088 (unknown_language_data): ...this.
7089 (class unknown_language): New class.
7090 (unknown_language_defn): New static global.
7091 (auto_language_defn): Convert to...
7092 (auto_language_data): ...this.
7093 (class auto_language): New class.
7094 (auto_language_defn): New static global.
7095 (language_gdbarch_post_init): Use language_defn::languages.
7096 (_initialize_language): Initialize current_language.
7097 * gdb/language.h (struct language_defn): Rename to...
7098 (struct language_data): ...this.
7099 (struct language_defn): New.
7100 (auto_language_defn): Delete.
7101 (unknown_language_defn): Delete.
7102 (minimal_language_defn): Delete.
7103 (ada_language_defn): Delete.
7104 (asm_language_defn): Delete.
7105 (c_language_defn): Delete.
7106 (cplus_language_defn): Delete.
7107 (d_language_defn): Delete.
7108 (f_language_defn): Delete.
7109 (go_language_defn): Delete.
7110 (m2_language_defn): Delete.
7111 (objc_language_defn): Delete.
7112 (opencl_language_defn): Delete.
7113 (pascal_language_defn): Delete.
7114 (rust_language_defn): Delete.
7115 * gdb/m2-lang.c (m2_language_defn): Convert to...
7116 (m2_language_data): ...this.
7117 (class m2_language): New class.
7118 (m2_language_defn): New static global.
7119 * gdb/objc-lang.c (objc_language_defn): Convert to...
7120 (objc_language_data): ...this.
7121 (class objc_language): New class.
7122 (objc_language_defn): New static global.
7123 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7124 (opencl_language_data): ...this.
7125 (class opencl_language): New class.
7126 (opencl_language_defn): New static global.
7127 * gdb/p-lang.c (pascal_language_defn): Convert to...
7128 (pascal_language_data): ...this.
7129 (class pascal_language): New class.
7130 (pascal_language_defn): New static global.
7131 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7132 language pointer, update comment format.
7133 * gdb/rust-lang.c (rust_language_defn): Convert to...
7134 (rust_language_data): ...this.
7135 (class rust_language): New class.
7136 (rust_language_defn): New static global.
7137
7138 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7139
7140 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7141 member variable.
7142 <m_stmt_at_address>: New member variable.
7143 (lnp_state_machine::record_line): Don't record some lines, update
7144 tracking of is_stmt at the same address.
7145 (lnp_state_machine::lnp_state_machine): Initialise new member
7146 variables.
7147
7148 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7149
7150 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7151 "-include gnu-nat-mig.h".
7152 * gnu-nat-mig.h: New file.
7153 * gnu-nat.c: Include "gnu-nat-mig.h".
7154 (exc_server, msg_reply_server, notify_server,
7155 process_reply_server): Remove declarations.
7156
7157 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7158
7159 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7160 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7161 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7162 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7163 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7164 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7165 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7166 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7167 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7168 to gnu_nat_target class.
7169 * gnu-nat.c: Likewise.
7170 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7171 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7172 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7173 object.
7174 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7175 instead of `gnu_target'.
7176
7177 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7178
7179 * i386-gnu-tdep.c: Include "gdbcore.h"
7180 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7181 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7182 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7183 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7184 i386_gnu_sigcontext_addr): New functions
7185 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7186 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7187 tdep.
7188
7189 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7190
7191 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7192 before fork_inferior call. Avoid calling it if target_is_pushed returns
7193 true.
7194
7195 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7196
7197 * gnu-nat.h (gnu_target): New variable declaration.
7198 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7199 gnu_target.
7200 * gnu-nat.c (gnu_target): New variable.
7201 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7202 add_thread_silent, and add_thread calls.
7203 (gnu_nat_target::create_inferior): Pass gnu_target to
7204 add_thread_silent, thread_change_ptid call.
7205 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7206 call.
7207
7208 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7209
7210 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7211 (gnu_nat_target::find_memory_regions): Remove unused
7212 `old_address' variable.
7213
7214 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7215
7216 * gnu-nat.c: Include "gdbarch.h".
7217
7218 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7219
7220 * reply_mig_hack.awk (Error return): Cast function through
7221 void *, to bypass compiler function call check.
7222
7223 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7224
7225 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7226 $(srcdir)/reply_mig_hack.awk.
7227
7228 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7229
7230 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7231
7232 2020-05-30 Jonny Grant <jg@jguk.org>
7233
7234 * configure.ac (ACX_BUGURL): change bug URL to https.
7235
7236 2020-05-30 Pedro Alves <palves@redhat.com>
7237
7238 * cp-support.c (replace_typedefs_template): New.
7239 (replace_typedefs_qualified_name): Handle
7240 DEMANGLE_COMPONENT_TEMPLATE.
7241
7242 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7245 dwarf2/index-cache.h, dwarf2/index-write.c,
7246 dwarf2/index-write.h, dwarf2/line-header.c,
7247 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7248 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7249 variables and fields from `dwarf2_per_objfile` to just
7250 `per_objfile` throughout.
7251
7252 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7253
7254 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7255 <push_dwarf_reg_entry_value>: Add comment.
7256
7257 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7258 Keith Seitz <keiths@redhat.com>
7259
7260 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7261 instead of PyEval_ReleaseLock.
7262 (class gdbpy_gil): Move to earlier in file.
7263 (finalize_python): Set gdb_python_initialized.
7264 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7265 when not initialized.
7266
7267 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7270 <push_dwarf_reg_entry_value>: Remove assert. Override
7271 per_objfile with caller_per_objfile.
7272
7273 2020-05-28 Tom de Vries <tdevries@suse.de>
7274
7275 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7276 PR gold/15646 workaround to symbol kind "type".
7277
7278 2020-05-27 Tom Tromey <tromey@adacore.com>
7279
7280 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7281
7282 2020-05-27 Tom Tromey <tromey@adacore.com>
7283
7284 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7285 Use htab_find_with_hash.
7286 <add_abbrev>: Remove "abbrev_number" parameter.
7287 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7288 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7289 (hash_abbrev): Add comment.
7290 (abbrev_table::lookup_abbrev): Move to header file.
7291 (abbrev_table::read): Update.
7292
7293 2020-05-27 Tom Tromey <tromey@adacore.com>
7294
7295 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7296 method.
7297 <canonical_name>: New member.
7298 <raw_name>: Rename from "name".
7299 (partial_die_info): Initialize canonical_name.
7300 (scan_partial_symbols): Check raw_name.
7301 (partial_die_parent_scope, partial_die_full_name)
7302 (add_partial_symbol, add_partial_subprogram)
7303 (add_partial_enumeration, load_partial_dies): Use "name" method.
7304 (partial_die_info::name): New method.
7305 (partial_die_info::read, guess_partial_die_structure_name)
7306 (partial_die_info::fixup): Update.
7307
7308 2020-05-27 Tom Tromey <tromey@adacore.com>
7309
7310 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7311 <get_ref_die_offset>: Inline.
7312 <get_ref_die_offset_complaint>: New method.
7313 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7314 (attribute::get_ref_die_offset_complaint): Rename from
7315 get_ref_die_offset. Just issue complaint.
7316
7317 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7318
7319 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7320
7321 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7322
7323 * exec.c (exec_file_attach): Use errno value of first openp failure.
7324
7325 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7326
7327 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7328 Don't close thread handle.
7329
7330 2020-05-27 Tom Tromey <tom@tromey.com>
7331 Simon Marchi <simon.marchi@efficios.com>
7332
7333 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7334 shared_ptr.
7335 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7336 member.
7337 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7338 dwarf2_per_bfd_objfile_data_key>: New globals.
7339 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7340 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7341 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7342 shared.
7343 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7344 short-circuit when sharing.
7345 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7346 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7347
7348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7351 to...
7352 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7353 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7354
7355 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7356
7357 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7358 build_name_components, find_name_components_bounds>:
7359 Add per_objfile parameter.
7360 (struct mapped_index) <symbol_name_at>: Likewise.
7361 (struct mapped_debug_names): Remove constructor.
7362 <dwarf2_per_objfile>: Remove field.
7363 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7364 (mapped_index_base::find_name_components_bounds,
7365 mapped_index_base::build_name_components,
7366 dw2_expand_symtabs_matching_symbol): Likewise.
7367 (class mock_mapped_index) <symbol_name_at>: Likewise.
7368 (check_match): Likewise.
7369 (check_find_bounds_finds): Likewise.
7370 (test_mapped_index_find_name_component_bounds): Update.
7371 (CHECK_MATCH): Update.
7372 (dw2_expand_symtabs_matching): Update.
7373 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7374 per_objfile parameter.
7375 <find_vec_in_debug_names>: Likewise.
7376 <m_per_objfile>: New field.
7377 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7378 parameter.
7379 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7380 (dw2_debug_names_iterator::next): Update.
7381 (dw2_debug_names_lookup_symbol): Update.
7382 (dw2_debug_names_expand_symtabs_for_function): Update.
7383 (dw2_debug_names_map_matching_symbols): Update.
7384 (dw2_debug_names_expand_symtabs_matching): Update.
7385 (dwarf2_read_debug_names): Update.
7386
7387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7390 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7391 move to dwarf2_per_objfile.
7392 <read_in_chain>: Remove.
7393 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7394 remove_all_cus, age_comp_units>: New methods.
7395 <m_dwarf2_cus>: New member.
7396 (struct dwarf2_per_cu_data) <cu>: Remove.
7397 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7398 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7399 moved to methods of dwarf2_per_objfile.
7400 (dwarf2_clear_marks): Remove.
7401 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7402 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7403 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7404 (dwarf2_per_objfile::remove_all_cus): New.
7405 (class free_cached_comp_units) <~free_cached_comp_units>:
7406 Update.
7407 (load_cu): Update.
7408 (dw2_do_instantiate_symtab): Adjust.
7409 (fill_in_sig_entry_from_dwo_entry): Adjust.
7410 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7411 (cutu_reader::cutu_reader): Likewise.
7412 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7413 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7414 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7415 and dwarf2_per_objfile::age_comp_units.
7416 (load_partial_comp_unit): Update.
7417 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7418 (process_queue): Likewise.
7419 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7420 backlink.
7421 (dwarf2_read_addr_index): Likewise.
7422 (follow_die_offset): Likewise.
7423 (dwarf2_fetch_die_loc_sect_off): Likewise.
7424 (dwarf2_fetch_constant_bytes): Likewise.
7425 (dwarf2_fetch_die_type_sect_off): Likewise.
7426 (follow_die_sig_1): Likewise.
7427 (load_full_type_unit): Likewise.
7428 (read_signatured_type): Likewise.
7429 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7430 (dwarf2_cu::~dwarf2_cu): Remove.
7431 (dwarf2_per_objfile::get_cu): New.
7432 (dwarf2_per_objfile::set_cu): New.
7433 (age_cached_comp_units): Rename to...
7434 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7435 to std::unordered_map.
7436 (free_one_cached_comp_unit): Rename to...
7437 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7438 to std::unordered_map.
7439 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7440 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7441 a dwarf2_per_objfile in data.
7442 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7443 (dwarf2_clear_marks): Remove.
7444
7445 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7448 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7449 (init_tu_and_read_dwo_dies): Likewise.
7450 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7451 (cutu_reader::cutu_reader): Likewise.
7452 (load_partial_comp_unit): Likewise.
7453 (process_psymtab_comp_unit): Update.
7454 (build_type_psymtabs_1): Update.
7455 (process_skeletonless_type_unit): Update.
7456 (load_full_comp_unit): Update.
7457 (find_partial_die): Update.
7458 (dwarf2_read_addr_index): Update.
7459 (read_signatured_type): Update.
7460
7461 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7462
7463 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7464 m_header_read_in>: New fields.
7465 <get_header>: New method.
7466 * dwarf2/read.c (per_cu_header_read_in): Remove.
7467 (dwarf2_per_cu_data::get_header): New.
7468 (dwarf2_per_cu_data::addr_size): Update.
7469 (dwarf2_per_cu_data::offset_size): Update.
7470 (dwarf2_per_cu_data::ref_addr_size): Update.
7471
7472 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7473
7474 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7475 (dw2_do_instantiate_symtab): Update.
7476 (queue_and_load_all_dwo_tus): Change parameter from
7477 dwarf2_per_cu_data to dwarf2_cu.
7478 (dwarf2_fetch_die_loc_sect_off): Update.
7479 (dwarf2_fetch_constant_bytes): Update.
7480 (dwarf2_fetch_die_type_sect_off): Update.
7481
7482 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7483
7484 * dwarf2/read.c (process_full_comp_unit,
7485 process_full_type_unit): Remove per_cu, per_objfile paramters.
7486 Add dwarf2_cu parameter.
7487 (process_queue): Update.
7488
7489 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7490
7491 * dwarf2/read.c (create_cu_from_index_list): Replace
7492 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7493 (create_cus_from_index_list): Likewise.
7494 (create_cus_from_index): Likewise.
7495 (create_signatured_type_table_from_index): Likewise.
7496 (create_cus_from_debug_names_list): Likewise.
7497 (create_cus_from_debug_names): Likewise.
7498 (dwarf2_read_gdb_index): Update.
7499 (dwarf2_read_debug_names): Update.
7500
7501 2020-05-27 Tom Tromey <tom@tromey.com>
7502 Simon Marchi <simon.marchi@efficios.com>
7503
7504 * dwarf2/read.h (struct dwarf2_per_objfile)
7505 <get_type_for_signatured_type, set_type_for_signatured_type>:
7506 New methods.
7507 <m_type_map>: New member.
7508 (struct signatured_type) <type>: Remove.
7509 * dwarf2/read.c
7510 (dwarf2_per_objfile::get_type_for_signatured_type,
7511 dwarf2_per_objfile::set_type_for_signatured_type): New.
7512 (get_signatured_type): Use new methods.
7513
7514 2020-05-27 Tom Tromey <tom@tromey.com>
7515 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7518 (struct dwarf2_per_objfile) <type_units>: New member.
7519 <get_type_unit_group_unshareable>: New method.
7520 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7521 num_symtabs, symtabs>: Remove; move to
7522 type_unit_group_unshareable.
7523 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7524 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7525 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7526
7527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * dwarf2/read.h (struct dwarf2_per_cu_data):
7530 <dwarf2_per_objfile>: Remove.
7531 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7532 dwarf2_per_objfile.
7533 (create_signatured_type_table_from_index): Likewise.
7534 (create_signatured_type_table_from_debug_names): Likewise.
7535 (create_debug_type_hash_table): Likewise.
7536 (fill_in_sig_entry_from_dwo_entry): Likewise.
7537 (create_type_unit_group): Likewise.
7538 (read_comp_units_from_section): Likewise.
7539 (create_cus_hash_table): Likewise.
7540
7541 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7544 dwarf2_per_cu_data::dwarf2_per_objfile.
7545 (compute_compunit_symtab_includes): Likewise.
7546 (dwarf2_cu::start_symtab): Likewise.
7547
7548 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7551 parameter.
7552 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7553 (read_namespace_alias): Update.
7554 (lookup_die_type): Update.
7555 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7556 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7557 Update.
7558 (disassemble_dwarf_expression): Update.
7559
7560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/read.h (struct dwarf2_queue_item): Add
7563 dwarf2_per_objfile parameter, assign new parameter.
7564 <per_objfile>: New field.
7565 * dwarf2/read.c (free_one_cached_comp_unit): Add
7566 dwarf2_per_objfile parameter.
7567 (queue_comp_unit): Likewise.
7568 (dw2_do_instantiate_symtab): Update.
7569 (process_psymtab_comp_unit): Update.
7570 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7571 (process_imported_unit_die): Update.
7572 (queue_and_load_dwo_tu): Update.
7573 (follow_die_offset): Update.
7574 (follow_die_sig_1): Update.
7575
7576 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7579 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7580 (read_call_site_scope): Assign per_objfile.
7581 (dwarf2_per_cu_data::objfile): Remove.
7582 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7583 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7584 dwarf2_per_objfile parameter.
7585 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7586 dwarf2_per_objfile parameter.
7587 (dwarf_expr_reg_to_entry_parameter): Add output
7588 dwarf2_per_objfile parameter.
7589 (locexpr_get_frame_base): Update.
7590 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7591 <push_dwarf_reg_entry_value>: Update.
7592 <call_site_to_target_addr>: Update.
7593 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7594 parameter.
7595 (value_of_dwarf_reg_entry): Update.
7596 (rw_pieced_value): Update.
7597 (indirect_synthetic_pointer): Update.
7598 (dwarf2_evaluate_property): Update.
7599 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7600 parameter.
7601 (locexpr_read_variable): Update.
7602 (locexpr_get_symbol_read_needs): Update.
7603 (loclist_read_variable): Update.
7604
7605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7608 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7609 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7610 parameter.
7611 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7612 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7613 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7614 parameter.
7615 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7616 sect_variable_value): Add dwarf2_per_objfile parameter.
7617 (class dwarf_evaluate_loc_desc) <dwarf_call,
7618 dwarf_variable_value>: Update.
7619 (fetch_const_value_from_synthetic_pointer): Add
7620 dwarf2_per_objfile parameter.
7621 (fetch_const_value_from_synthetic_pointer): Update.
7622 (coerced_pieced_ref): Update.
7623 (class symbol_needs_eval_context) <dwarf_call,
7624 dwarf_variable_value>: Update.
7625 (dwarf2_compile_expr_to_ax): Update.
7626
7627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7630 parameter.
7631 (dwarf2_evaluate_loc_desc_full): Update.
7632
7633 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7634
7635 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7636 parameter.
7637 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7638 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7639 dwarf2_per_objfile parameter.
7640 (decode_debug_loc_dwo_addresses): Likewise.
7641 (dwarf2_find_location_expression): Update.
7642 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7643 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7644 parameter.
7645 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7646 parameter.
7647 (locexpr_describe_location_1): Likewise.
7648 (locexpr_describe_location): Update.
7649
7650 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7653 Remove.
7654 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7655 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7656 (dwarf2_compile_property_to_c): Update.
7657 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7658 use text offset from objfile.
7659 (locexpr_tracepoint_var_ref): Update.
7660 (locexpr_generate_c_location): Update.
7661 (loclist_describe_location): Update.
7662 (loclist_tracepoint_var_ref): Update.
7663 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7664 dwarf2_per_objfile parameter.
7665 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7666 use text offset from objfile.
7667 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7668
7669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * dwarf2/expr.h (struct dwarf_expr_context)
7672 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7673 <offset>: Remove.
7674 <per_objfile>: New member.
7675 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7676 dwarf2_per_objfile parameter. Don't set offset, set
7677 per_objfile.
7678 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7679 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7680 a dwarf2_per_objfile object instead of an offset.
7681 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7682 constructor.
7683 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7684 to dwarf2_expr_executor constructor. Don't set offset.
7685 (dwarf2_fetch_cfa_info): Update.
7686 (struct dwarf2_frame_cache) <text_offset>: Remove.
7687 <per_objfile>: New field.
7688 (dwarf2_frame_cache): Update.
7689 (dwarf2_frame_prev_register): Update.
7690 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7691 <dwarf_evaluate_loc_desc>: Add constructor.
7692 (dwarf2_evaluate_loc_desc_full): Update.
7693 (dwarf2_locexpr_baton_eval): Update.
7694 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7695 Add constructor.
7696 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7697
7698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7701 addr_sized_int_type>: Move to dwarf2_cu.
7702 <int_type>: Move to dwarf2_per_objfile.
7703 (struct dwarf2_per_objfile) <int_type>: Move here.
7704 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7705 addr_sized_int_type>: Move here.
7706 (read_func_scope): Update.
7707 (read_array_type): Update.
7708 (read_tag_string_type): Update.
7709 (attr_to_dynamic_prop): Update.
7710 (dwarf2_per_cu_data::int_type): Rename to...
7711 (dwarf2_per_objfile::int_type): ... this.
7712 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7713 (dwarf2_cu::addr_sized_int_type): ... this.
7714 (read_subrange_type): Update.
7715 (dwarf2_per_cu_data::addr_type): Rename to...
7716 (dwarf2_cu::addr_type): ... this.
7717 (set_die_type): Update.
7718
7719 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7720
7721 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7722 data through per_cu->cu.
7723
7724 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7725
7726 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7727 dwarf2_per_cu_data parameter fo dwarf2_cu.
7728 (lookup_dwo_type_unit): Likewise.
7729 (read_cutu_die_from_dwo): Likewise.
7730 (lookup_dwo_unit): Likewise.
7731 (open_and_init_dwo_file): Likewise.
7732 (lookup_dwo_cutu): Likewise.
7733 (lookup_dwo_comp_unit): Likewise.
7734 (lookup_dwo_type_unit): Likewise.
7735 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7736 (cutu_reader::cutu_reader): Update.
7737
7738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7741 parameter.
7742 (process_full_type_unit): Likewise.
7743 (process_queue): Update.
7744
7745 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * dwarf2/read.c (recursively_compute_inclusions): Add
7748 dwarf2_per_objfile parameter.
7749 (compute_compunit_symtab_includes): Likewise.
7750 (process_cu_includes): Update.
7751
7752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7753
7754 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7755 parameter.
7756 (create_type_unit_group): Update.
7757 (process_psymtab_comp_unit_reader): Update.
7758 (build_type_psymtabs_reader): Update.
7759
7760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7761
7762 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7763 object through m_this_cu->cu.
7764
7765 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7766
7767 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7768 the info parameter.
7769 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7770
7771 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7772
7773 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7774 per_objfile parameter.
7775 (load_full_type_unit): Add per_objfile parameter.
7776 (read_signatured_type): Likewise.
7777 (load_full_comp_unit): Likewise.
7778 (load_cu): Likewise.
7779 (dw2_do_instantiate_symtab): Likewise.
7780 (dw2_get_file_names): Likewise.
7781 (dw2_map_symtabs_matching_filename): Update.
7782 (dw_expand_symtabs_matching_file_matcher): Update.
7783 (dw2_map_symbol_filenames): Update.
7784 (process_psymtab_comp_unit): Add per_objfile parameter.
7785 (build_type_psymtabs_1): Update.
7786 (process_skeletonless_type_unit): Update.
7787 (dwarf2_build_psymtabs_hard): Update.
7788 (load_partial_comp_unit): Add per_objfile parameter.
7789 (scan_partial_symbols): Update.
7790 (load_full_comp_unit): Add per_objfile parameter.
7791 (process_imported_unit_die): Update.
7792 (create_cus_hash_table): Update.
7793 (find_partial_die): Update.
7794 (dwarf2_read_addr_index): Update.
7795 (follow_die_offset): Update.
7796 (dwarf2_fetch_die_loc_sect_off): Update.
7797 (dwarf2_fetch_constant_bytes): Update.
7798 (dwarf2_fetch_die_type_sect_off): Update.
7799 (follow_die_sig_1): Update.
7800 (load_full_type_unit): Add per_objfile parameter.
7801 (read_signatured_type): Likewise.
7802
7803 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7806 of objfile_name.
7807
7808 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7809
7810 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7811 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7812 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7813 field.
7814 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7815 (create_cus_from_index): Update.
7816 (dwarf2_read_gdb_index): Update.
7817 (create_cus_from_debug_names): Update.
7818 (dwarf2_read_debug_names): Update.
7819 (get_abbrev_section_for_cu): Update.
7820 (create_all_comp_units): Update.
7821 (read_attribute_value): Update.
7822 (get_debug_line_section): Update.
7823 * dwarf2/index-cache.c (index_cache::store): Update.
7824 * dwarf2/index-write.c (save_gdb_index_command): Update.
7825 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7826
7827 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7828
7829 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7830 member.
7831 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7832 dwarf2_per_cu_data::per_bfd.
7833 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7834 (create_type_unit_group): Likewise.
7835 (queue_comp_unit): Remove reference to
7836 per_cu->dwarf2_per_objfile.
7837 (maybe_queue_comp_unit): Likewise.
7838 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7839 (create_cus_hash_table): Assign new field.
7840
7841 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7842
7843 * dwarf2/read.c: Replace
7844 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7845 dwarf2_cu->per_objfile throughout.
7846
7847 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7848
7849 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7850 parameter, don't use per_cu->dwarf2_per_objfile.
7851 (dw2_instantiate_symtab): Likewise.
7852 (dw2_find_last_source_symtab): Update.
7853 (dw2_map_expand_apply): Update.
7854 (dw2_lookup_symbol): Update.
7855 (dw2_expand_symtabs_for_function): Update.
7856 (dw2_expand_all_symtabs): Update.
7857 (dw2_expand_symtabs_with_fullname): Update.
7858 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7859 don't use per_cu->dwarf2_per_objfile.
7860 (dw2_expand_marked_cus): Update.
7861 (dw2_find_pc_sect_compunit_symtab): Update.
7862 (dw2_debug_names_lookup_symbol): Update.
7863 (dw2_debug_names_expand_symtabs_for_function): Update.
7864 (dw2_debug_names_map_matching_symbols): Update.
7865 (dwarf2_psymtab::expand_psymtab): Update.
7866
7867 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7870 <per_objfile>: New member.
7871 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7872 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7873 call to dwarf2_cu.
7874 (cutu_reader::cutu_reader): Update.
7875 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7876
7877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7880 struct dwarf2_per_objfile.
7881 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7882 dwarf2_per_bfd.
7883 * dwarf2/read.c (set_die_type): Update.
7884 (get_die_type_at_offset): Update.
7885
7886 2020-05-27 Tom Tromey <tom@tromey.com>
7887 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7890 method.
7891 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7892 get_symtab, set_symtab>: New methods.
7893 <m_symtabs>: New field.
7894 (struct dwarf2_psymtab): Derive from partial_symtab.
7895 <readin_p, get_compunit_symtab>: Declare methods.
7896 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7897 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7898 New methods.
7899 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7900 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7901 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7902 (dw2_symtab_iter_next, dw2_print_stats)
7903 (dw2_expand_symtabs_with_fullname)
7904 (dw2_expand_symtabs_matching_one)
7905 (dw_expand_symtabs_matching_file_matcher)
7906 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7907 (dw2_debug_names_iterator::next)
7908 (dw2_debug_names_map_matching_symbols)
7909 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7910 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7911 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7912 New methods.
7913 (get_compunit_symtab, process_full_comp_unit)
7914 (process_full_type_unit): Update.
7915 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7916
7917 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7918
7919 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7920 then introduce a new dwarf2_per_objfile type.
7921 <read_line_string>: Move to the new dwarf2_per_objfile type.
7922 <objfile>: Likewise.
7923 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7924 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7925 dwarf2_per_objfile->per_bfd.
7926 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7927 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7928 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7929 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7930 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7931 (dwarf2_per_objfile::locate_sections): Rename to...
7932 (dwarf2_per_bfd::locate_sections): ... this.
7933 (dwarf2_per_objfile::get_cutu): Rename to...
7934 (dwarf2_per_bfd::get_cutu): ... this.
7935 (dwarf2_per_objfile::get_cu): Rename to...
7936 (dwarf2_per_bfd::get_cu): ... this.
7937 (dwarf2_per_objfile::get_tu): Rename to...
7938 (dwarf2_per_bfd::get_tu): ... this.
7939 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7940 (dwarf2_per_bfd::allocate_per_cu): ... this.
7941 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7942 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7943 (get_gdb_index_contents_ftype): Change parameter from
7944 dwarf2_per_objfile to dwarf2_per_bfd.
7945 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7946 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7947
7948 2020-05-27 Tom Tromey <tom@tromey.com>
7949 Simon Marchi <simon.marchi@efficios.com>
7950
7951 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7952 (allocate_piece_closure): Set "per_objfile" member.
7953 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7954 (locexpr_describe_location, loclist_describe_location): Use new
7955 member.
7956 * dwarf2/read.c (read_call_site_scope)
7957 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7958 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7959 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7960 handle_data_member_location): Set per_objfile member.
7961 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7962 member.
7963 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7964
7965 2020-05-27 Tom Tromey <tom@tromey.com>
7966
7967 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7968 allocate_signatured_type>: Declare new methods.
7969 <m_num_psymtabs>: New member.
7970 (struct dwarf2_per_cu_data) <index>: New member.
7971 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7972 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7973 (create_cu_from_index_list): Use allocate_per_cu.
7974 (create_signatured_type_table_from_index)
7975 (create_signatured_type_table_from_debug_names)
7976 (create_debug_type_hash_table, add_type_unit)
7977 (read_comp_units_from_section): Use allocate_signatured_type.
7978
7979 2020-05-27 Tom Tromey <tom@tromey.com>
7980
7981 * psymtab.c (partial_map_expand_apply)
7982 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7983 (psym_lookup_global_symbol_language)
7984 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7985 (psym_print_stats, psym_expand_symtabs_for_function)
7986 (psym_map_symbol_filenames, psym_map_matching_symbols)
7987 (psym_expand_symtabs_matching)
7988 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7989 (maintenance_check_psymtabs): Update.
7990 * psympriv.h (struct partial_symtab) <readin_p,
7991 get_compunit_symtab>: Add objfile parameter.
7992 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7993 Likewise.
7994 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7995 get_compunit_symtab>: Likewise.
7996 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7997
7998 2020-05-27 Tom Tromey <tom@tromey.com>
7999
8000 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8001 member.
8002 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8003 (create_cu_from_index_list)
8004 (create_signatured_type_table_from_index)
8005 (create_signatured_type_table_from_debug_names)
8006 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8007 (dwarf2_create_include_psymtab)
8008 (create_debug_type_hash_table, add_type_unit)
8009 (create_type_unit_group, read_comp_units_from_section)
8010 (dwarf2_compute_name, create_cus_hash_table)
8011 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8012 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8013 obstack.
8014 (dw2_get_real_path): Likewise. Change argument to
8015 dwarf2_per_objfile.
8016
8017 2020-05-27 Luis Machado <luis.machado@linaro.org>
8018
8019 PR tdep/26000
8020 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8021 for ldrd (immediate).
8022
8023 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8024
8025 * command.h: Add comment giving the name of class_tui.
8026 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8027 create the fake command for the help for class_tui.
8028
8029 2020-05-26 Tom Tromey <tromey@adacore.com>
8030
8031 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8032 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8033 (val_atr): New function.
8034 (value_val_atr): Use it.
8035 * ada-valprint.c (print_optional_low_bound): Change low bound
8036 handling for enums.
8037 (val_print_packed_array_elements): Don't call discrete_position.
8038 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8039 discrete_position for enum types.
8040 * language.c (default_print_array_index): Change type.
8041 * language.h (struct language_defn) <la_print_array_index>: Add
8042 index_type parameter, change type of index_value.
8043 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8044 (default_print_array_index): Update.
8045 * valprint.c (maybe_print_array_index): Don't call
8046 value_from_longest. Update.
8047 (value_print_array_elements): Don't call discrete_position.
8048
8049 2020-05-26 Tom Tromey <tromey@adacore.com>
8050
8051 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8052 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8053
8054 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8055
8056 PR gdb/13519
8057 * avr-tdep.c (avr_integer_to_address): Return data or code
8058 address accordingly to the second 'type' argument of the
8059 function.
8060
8061 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8062
8063 * infcmd.c, inferior.h: (construct_inferior_arguments):
8064 Moved function from here to gdbsupport/common-inferior.{h,cc}
8065
8066 2020-05-23 Tom Tromey <tom@tromey.com>
8067
8068 Revert commit eca1f90c:
8069 * NEWS: Remove entry for completion styling.
8070 * completer.c (_rl_completion_prefix_display_length): Move
8071 declaration later.
8072 (gdb_fnprint): Revert.
8073 (gdb_display_match_list_1): Likewise.
8074 * cli/cli-style.c (completion_prefix_style)
8075 (completion_difference_style, completion_suffix_style): Remove.
8076 (_initialize_cli_style): Revert.
8077 * cli/cli-style.h (completion_prefix_style)
8078 (completion_difference_style, completion_suffix_style): Don't
8079 declare.
8080
8081 2020-05-24 Pedro Alves <palves@redhat.com>
8082
8083 * symtab.c (completion_list_add_name): Return boolean indication
8084 of whether the symbol matched.
8085 (completion_list_add_symbol): Don't try to remove C++ aliases if
8086 the symbol didn't match in the first place.
8087 * symtab.h (completion_list_add_name): Return bool.
8088
8089 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8090
8091 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8092 type::field.
8093
8094 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8095
8096 GDB 9.2 released.
8097
8098 2020-05-23 Tom Tromey <tom@tromey.com>
8099
8100 * NEWS: Add entry for completion styling.
8101 * completer.c (_rl_completion_prefix_display_length): Move
8102 declaration earlier.
8103 (gdb_fnprint): Use completion_style.
8104 (gdb_display_match_list_1): Likewise.
8105 * cli/cli-style.c (completion_prefix_style)
8106 (completion_difference_style, completion_suffix_style): New
8107 globals.
8108 (_initialize_cli_style): Register new globals.
8109 * cli/cli-style.h (completion_prefix_style)
8110 (completion_difference_style, completion_suffix_style): Declare.
8111
8112 2020-05-23 Pedro Alves <palves@redhat.com>
8113
8114 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8115 (parse_escape): Use ISDIGIT instead of isdigit.
8116 (puts_debug): Use gdb_isprint instead of isprint.
8117 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8118 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8119 ISSPACE instead of isspace.
8120 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8121 instead of isspace.
8122 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8123 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8124 instead of isxdigit and ISDIGIT instead of isdigit.
8125
8126 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * gdbtypes.h (struct type) <field>: New method.
8129 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8130 or type::field.
8131
8132 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8135 (TYPE_FIELDS): Use type::fields. Change all call sites that
8136 modify the propery to use type::set_fields instead.
8137
8138 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8139
8140 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8141 type::num_fields instead.
8142
8143 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8144
8145 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8146 methods.
8147 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8148 that modify the number of fields to use type::set_num_fields
8149 instead.
8150
8151 2020-05-22 Tom Tromey <tromey@adacore.com>
8152
8153 * compile/compile-object-load.h (munmap_list_free): Don't
8154 declare.
8155
8156 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8157
8158 * annotate.c (annotate_source_line): Update return type, add call
8159 to update current symtab and line.
8160 * annotate.h (annotate_source_line): Update return type, and
8161 extend header comment.
8162 * source.c (info_line_command): Check annotation_level before
8163 calling annotate_source_line.
8164 * stack.c (print_frame_info): If calling annotate_source_line
8165 returns true, then don't print any other source line information.
8166
8167 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8170
8171 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8172
8173 * coffread.c (patch_type): Remove NULL check before xfree.
8174 * corefile.c (set_gnutarget): Likewise.
8175 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8176 * exec.c (build_section_table): Likewise.
8177 * remote.c (remote_target::pass_signals): Likewise.
8178 * utils.c (n_spaces): Likewise.
8179 * cli/cli-script.c (document_command): Likewise.
8180 * i386-windows-tdep.c (core_process_module_section): Likewise.
8181 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8182
8183 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8184
8185 * symfile.c (reread_symbols): Clear objfile's section_offsets
8186 vector and section indices, re-compute them by calling
8187 sym_offsets.
8188
8189 2020-05-20 Tom Tromey <tromey@adacore.com>
8190
8191 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8192 (desc_one_bound, desc_index_type): Compute field name.
8193
8194 2020-05-20 Tom de Vries <tdevries@suse.de>
8195
8196 PR symtab/25833
8197 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8198
8199 2020-05-20 Alan Modra <amodra@gmail.com>
8200
8201 PR 25993
8202 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8203 bfd_set_filename.
8204 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8205 passed to bfd_set_filename.
8206 * symfile-mem.c (add_vsyscall_page): Likewise for string
8207 passed to symbol_file_add_from_memory.
8208 (symbol_file_add_from_memory): Make name param a const char* and
8209 don't strdup.
8210
8211 2020-05-20 Alan Modra <amodra@gmail.com>
8212
8213 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8214 rather than accessing bfd->filename directly.
8215 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8216 and use bfd_section_name.
8217 * dwarf2/frame.c (decode_frame_entry): Likewise.
8218 * exec.c (exec_set_section_address): Likewise.
8219 * solib-aix.c (solib_aix_bfd_open): Likewise.
8220 * stap-probe.c (get_stap_base_address): Likewise.
8221 * symfile.c (reread_symbols): Likewise.
8222
8223 2020-05-19 Tom Tromey <tromey@adacore.com>
8224
8225 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8226
8227 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8230
8231 2020-05-19 Pedro Alves <palves@redhat.com>
8232
8233 * NEWS (set exec-file-mismatch): Adjust entry.
8234 * exec.c: Include "build-id.h".
8235 (validate_exec_file): Try to match build IDs instead of filenames.
8236 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8237 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8238 and pass down 'warn_if_slow'.
8239 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8240 gdb_bfd_open_closure to pass it down.
8241 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8242
8243 2020-05-19 Pedro Alves <palves@redhat.com>
8244
8245 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8246 * target.c (target_fileio_open_1): Rename to target_fileio_open
8247 and make extern. Use bool.
8248 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8249 (target_fileio_read_alloc_1): Adjust.
8250 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8251 (target_fileio_open_warn_if_slow): Delete declaration.
8252
8253 2020-05-19 Pedro Alves <palves@redhat.com>
8254
8255 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8256 Adjust all callers.
8257
8258 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8259
8260 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8261 whether disp is negative.
8262
8263 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8264
8265 * symfile.h (struct symfile_segment_data)
8266 <~symfile_segment_data>: Remove.
8267 <segment_info>: Change to std::vector.
8268 * symfile.c (default_symfile_segments): Update.
8269 * elfread.c (elf_symfile_segments): Update.
8270
8271 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8272
8273 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8274 <segments>: New.
8275 <segment_bases, segment_sizes>: Remove.
8276 * symfile.c (default_symfile_segments): Update.
8277 * elfread.c (elf_symfile_segments): Update.
8278 * remote.c (remote_target::get_offsets): Update.
8279 * solib-target.c (solib_target_relocate_section_addresses):
8280 Update.
8281
8282 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * symfile.h (struct symfile_segment_data): Initialize fields.
8285 <~symfile_segment_data>: Add.
8286 (symfile_segment_data_up): New.
8287 (struct sym_fns) <sym_segments>: Return a
8288 symfile_segment_data_up.
8289 (default_symfile_segments): Return a symfile_segment_data_up.
8290 (free_symfile_segment_data): Remove.
8291 (get_symfile_segment_data): Return a symfile_segment_data_up.
8292 * symfile.c (default_symfile_segments): Likewise.
8293 (get_symfile_segment_data): Likewise.
8294 (free_symfile_segment_data): Remove.
8295 (symfile_find_segment_sections): Update.
8296 * elfread.c (elf_symfile_segments): Return a
8297 symfile_segment_data_up.
8298 * remote.c (remote_target::get_offsets): Update.
8299 * solib-target.c (solib_target_relocate_section_addresses):
8300 Update.
8301 * symfile-debug.c (debug_sym_segments): Return a
8302 symfile_segment_data_up.
8303
8304 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8305
8306 PR build/25981
8307 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8308 Hardcode register numbers.
8309
8310 PR build/25981
8311 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8312 procfs_find_LDT_entry): Remove.
8313 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8314 procfs_find_LDT_entry): Remove.
8315 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8316 Remove.
8317
8318 2020-05-17 Pedro Alves <palves@redhat.com>
8319 Andrew Burgess <andrew.burgess@embecosm.com>
8320 Keno Fischer <keno@juliacomputing.com>
8321
8322 PR gdb/25741
8323 * breakpoint.c (build_target_condition_list): Update comments.
8324 (build_target_command_list): Update comments and skip matching
8325 locations.
8326 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8327 a separate function. Simplify "set breakpoint auto-hw off"
8328 handling.
8329 (insert_breakpoints): Update comment.
8330 (tracepoint_locations_match): New parameter. For breakpoints,
8331 compare location types too, if the caller wants to.
8332 (handle_automatic_hardware_breakpoints): New functions.
8333 (bp_location_is_less_than): Also sort by location type and
8334 hardware breakpoint length.
8335 (update_global_location_list): Handle "set breakpoint auto-hw on"
8336 here.
8337 (update_breakpoint_locations): Ask breakpoint_locations_match to
8338 ignore location types.
8339
8340 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8341
8342 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8343 type::name instead.
8344
8345 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * gdbtypes.h (struct type) <name, set_name>: New methods.
8348 (TYPE_CODE): Use type::name. Change all call sites used to set
8349 the name to use type::set_name instead.
8350
8351 2020-05-16 Tom Tromey <tom@tromey.com>
8352
8353 * top.c (quit_force): Update.
8354 * infrun.c (handle_no_resumed): Update.
8355 * top.h (all_uis): New function.
8356 (ALL_UIS): Remove.
8357
8358 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8361
8362 2020-05-16 Pedro Alves <palves@redhat.com>
8363
8364 * ia64-linux-nat.c
8365 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8366 Declare method.
8367 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8368
8369 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8372 (sparc64_adi_info): Likewise.
8373
8374 2020-05-15 Tom Tromey <tom@tromey.com>
8375
8376 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8377 block_objfile.
8378 (lookup_objfile_from_block): Remove.
8379 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8380 (lookup_global_symbol): Use block_objfile.
8381 * symtab.h (lookup_objfile_from_block): Don't declare.
8382 * printcmd.c (clear_dangling_display_expressions): Use
8383 block_objfile.
8384 * parse.c (operator_check_standard): Use block_objfile.
8385
8386 2020-05-15 Tom Tromey <tom@tromey.com>
8387
8388 * language.c (language_alloc_type_symbol): Set
8389 SYMBOL_SECTION.
8390 * symtab.c (initialize_objfile_symbol): Remove.
8391 (allocate_symbol): Remove.
8392 (allocate_template_symbol): Remove.
8393 * dwarf2/read.c (fixup_go_packaging): Use "new".
8394 (new_symbol): Use "new".
8395 (read_variable): Don't call initialize_objfile_symbol. Use
8396 "new".
8397 (read_func_scope): Use "new".
8398 * xcoffread.c (process_xcoff_symbol): Don't call
8399 initialize_objfile_symbol.
8400 (SYMBOL_DUP): Remove.
8401 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8402 "new".
8403 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8404 (allocate_template_symbol): Don't declare.
8405 (struct symbol): Add copy constructor. Change defaults.
8406 * jit.c (finalize_symtab): Use "new".
8407 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8408 Use "new".
8409 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8410 (common_block_end): Use "new".
8411 * mdebugread.c (parse_symbol): Use "new".
8412 (new_symbol): Likewise.
8413
8414 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8415
8416 * NEWS: Mention changes to help and apropos.
8417
8418 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8419
8420 * command.h (enum command_class): Improve comments, document
8421 that class_alias is for user-defined aliases, give the class
8422 name for each class, remove unused class_xdb.
8423 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8424 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8425 by a precise class.
8426 * infcmd.c (_initialize_infcmd): Likewise.
8427 * reverse.c (_initialize_reverse): Likewise.
8428 * stack.c (_initialize_stack): Likewise.
8429 * symfile.c (_initialize_symfile): Likewise.
8430 * tracepoint.c (_initialize_tracepoint): Likewise.
8431
8432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8433
8434 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8435 when their aliased command is traversed.
8436 (help_cmd): Add fput_command_names_styled call to
8437 output command name and aliases when command has an alias.
8438
8439 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8440
8441 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8442 * cli/cli-decode.c (help_cmd_list): Declare as static,
8443 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8444 a command together with the command.
8445 (fput_command_name_styled, fput_command_names_styled): New functions.
8446 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8447 fput_command_name_styled.
8448 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8449 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8450
8451 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8452
8453 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8454 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8455 * command.h (cmd_show_list): Likewise.
8456 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8457 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8458
8459 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8460
8461 * unittests/command-def-selftests.c (traverse_command_structure):
8462 Verify all commands of a list have the same prefix command and
8463 that only the top cmdlist commands have a null prefix.
8464
8465 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8466
8467 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8468 as prefix, not one of its aliases.
8469 (set_cmd_prefix): Remove.
8470 (do_add_cmd): Centralize the setting of the prefix of a command, when
8471 command is defined after its full chain of prefix commands.
8472 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8473 (add_setshow_cmd_full): Likewise.
8474 (update_prefix_field_of_prefixed_commands): New function.
8475 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8476 update_prefix_field_of_prefixed_commands.
8477 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8478 addresses of remote_set_cmdlist and remote_show_cmdlist given
8479 as argument, not the address of an argument.
8480 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8481 * gdb/remote.c (_initialize_remote): Likewise.
8482
8483 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8484
8485 * cli/cli-cmds.c (alias_command): Check for an existing alias
8486 using lookup_cmd_composition, as valid_command_p is too strict
8487 and forbids aliases that are the prefix of an existing alias
8488 or command.
8489 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8490 command is properly recognised as a valid command.
8491
8492 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493
8494 * unittests/help-doc-selftests.c: Rename to
8495 unittests/command-def-selftests.c
8496 * unittests/command-def-selftests.c (help_doc_tests): Update some
8497 comments.
8498 (command_structure_tests, traverse_command_structure): New namespace
8499 and function.
8500 (command_structure_invariants_tests): New function.
8501 (_initialize_command_def_selftests) Renamed from
8502 _initialize_help_doc_selftests, register command_structure_invariants
8503 selftest.
8504
8505 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8506
8507 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8508 an alias of 'show'.
8509
8510 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8511
8512 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8513 ada_is_fixed_point_type. Update all callers.
8514 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8515 all callers.
8516 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8517 Update all callers.
8518 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8519 print_fixed_point_type. Update all callers.
8520 * ada-valprint.c (ada_value_print_num): Replace call to
8521 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8522
8523 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8524
8525 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8526 processors.
8527 (cpu_supports_bts): Add CV_AMD case.
8528
8529 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8530 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * infrun.c (stop_all_threads): Collect multiple wait events at
8533 each pass.
8534
8535 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8538 type::code instead.
8539
8540 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8541
8542 * gdbtypes.h (struct type) <code, set_code>: New methods.
8543 (TYPE_CODE): Use type::code. Change all call sites used to set
8544 the code to use type::set_code instead.
8545
8546 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8547 Tom de Vries <tdevries@suse.de>
8548 Pedro Alves <palves@redhat.com>
8549
8550 PR threads/25478
8551 * infrun.c (stop_all_threads): Do NOT ignore
8552 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8553 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8554 received.
8555 (handle_no_resumed): Remove code handling a live inferior with no
8556 threads.
8557 * remote.c (has_single_non_exited_thread): New.
8558 (remote_target::update_thread_list): Do not delete a thread if is
8559 the last thread of the process.
8560 * thread.c (thread_select): Call delete_exited_threads instead of
8561 prune_threads.
8562
8563 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8564
8565 * infrun.c (stop_all_threads): Enable/disable thread events of all
8566 targets. Move a debug message denoting the end of the function
8567 into the SCOPED_EXIT block.
8568
8569 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8570
8571 * process-stratum-target.h: Include <set>.
8572 (all_non_exited_process_targets, switch_to_target_no_thread): New
8573 function declarations.
8574 * process-stratum-target.c (all_non_exited_process_targets)
8575 (switch_to_target_no_thread): New function implementations.
8576
8577 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8578
8579 * infrun.c (handle_inferior_event): Extract out a piece of code
8580 into...
8581 (mark_non_executing_threads): ...this new function.
8582
8583 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8584
8585 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8586 use.
8587
8588 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8589
8590 * regcache.c (regcache_read_pc_protected): New function
8591 implementation that returns 0 if the PC cannot read via
8592 'regcache_read_pc'.
8593 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8594 instead of 'regcache_read_pc'.
8595 (keep_going_pass_signal): Ditto.
8596
8597 2020-05-13 Tom Tromey <tromey@adacore.com>
8598
8599 * ada-lang.c (align_value): Remove.
8600 (ada_template_to_fixed_record_type_1): Use align_up.
8601
8602 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8603
8604 * async-event.c: Update the copyright year.
8605 * async-event.h: Update the copyright year.
8606
8607 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * objfiles.h (is_addr_in_objfile,
8610 shared_objfile_contains_address_p): Return bool.
8611 * objfile.c (is_addr_in_objfile,
8612 shared_objfile_contains_address_p): Return bool.
8613
8614 2020-05-11 Tom Tromey <tromey@adacore.com>
8615
8616 * cli/cli-cmds.c (info_command): Restore.
8617 (_initialize_cli_cmds): Use add_prefix_command for "info".
8618 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8619
8620 2020-05-11 Tom Tromey <tromey@adacore.com>
8621
8622 * ada-lang.c (ada_value_primitive_field): Now public.
8623 * ada-lang.h (ada_value_primitive_field): Declare.
8624 * ada-valprint.c (print_field_values): Use
8625 ada_value_primitive_field for wrapper fields.
8626
8627 2020-05-11 Tom de Vries <tdevries@suse.de>
8628
8629 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8630 MODULE_DOMAIN.
8631
8632 2020-05-11 Tom de Vries <tdevries@suse.de>
8633
8634 PR symtab/25941
8635 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8636 with length 0, if not gdb-produced.
8637 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8638
8639 2020-05-09 Tom de Vries <tdevries@suse.de>
8640
8641 PR gdb/25955
8642 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8643 calculation.
8644
8645 2020-05-09 Tom Tromey <tom@tromey.com>
8646
8647 * top.c (server_command): Now bool.
8648 * top.h (server_command): Now bool.
8649
8650 2020-05-08 Tom Tromey <tromey@adacore.com>
8651
8652 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8653 already being processed.
8654
8655 2020-05-08 Tom Tromey <tom@tromey.com>
8656
8657 * printcmd.c (struct display) <next>: Remove.
8658 <display>: New constructor.
8659 <exp_string>: Now a std::string.
8660 <enabled_p>: Now a bool.
8661 (display_number): Move definition earlier.
8662 (displays): Rename from display_chain. Now a std::vector.
8663 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8664 (display_command): Update.
8665 (do_one_display, disable_display)
8666 (enable_disable_display_command, do_enable_disable_display):
8667 Update.
8668 (free_display): Remove.
8669 (clear_displays): Rewrite.
8670 (delete_display): Update.
8671 (map_display_numbers): Use function_view. Remove "data"
8672 parameter. Update.
8673 (do_delete_display): Remove.
8674 (undisplay_command): Update.
8675 (do_one_display, do_displays, disable_display)
8676 (info_display_command): Update.
8677 (do_enable_disable_display): Remove.
8678 (enable_disable_display_command)
8679 (clear_dangling_display_expressions): Update.
8680
8681 2020-05-08 Tom Tromey <tom@tromey.com>
8682
8683 * symtab.c (set_symbol_cache_size)
8684 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8685 (maintenance_print_symbol_cache_statistics): Update.
8686 * symmisc.c (print_symbol_bcache_statistics)
8687 (print_objfile_statistics, maintenance_print_objfiles)
8688 (maintenance_info_symtabs, maintenance_check_symtabs)
8689 (maintenance_expand_symtabs, maintenance_info_line_tables):
8690 Update.
8691 * symfile-debug.c (set_debug_symfile): Update.
8692 * source.c (forget_cached_source_info): Update.
8693 * python/python.c (gdbpy_progspaces): Update.
8694 * psymtab.c (maintenance_info_psymtabs): Update.
8695 * probe.c (parse_probes): Update.
8696 * linespec.c (iterate_over_all_matching_symtabs)
8697 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8698 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8699 * exec.c (exec_target::close): Update.
8700 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8701 * breakpoint.c (print_one_breakpoint_location)
8702 (create_longjmp_master_breakpoint)
8703 (create_std_terminate_master_breakpoint): Update.
8704 * progspace.c (program_spaces): Now a std::vector.
8705 (maybe_new_address_space): Update.
8706 (add_program_space): Remove.
8707 (program_space::program_space): Update.
8708 (remove_program_space): Update.
8709 (number_of_program_spaces): Remove.
8710 (print_program_space, update_address_spaces): Update.
8711 * progspace.h (program_spaces): Change type.
8712 (ALL_PSPACES): Remove.
8713 (number_of_program_spaces): Don't declare.
8714 (struct program_space) <next>: Remove.
8715
8716 2020-05-08 Tom Tromey <tom@tromey.com>
8717
8718 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8719 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8720 (enable_break): Update.
8721 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8722 (frv_fdpic_find_canonical_descriptor): Update.
8723 (frv_fetch_objfile_link_map): Update.
8724 * progspace.c (program_space::free_all_objfiles): Update.
8725 (program_space::solibs): New method.
8726 * progspace.h (struct program_space) <solibs>: New method.
8727 * solist.h (master_so_list): Don't declare.
8728 (ALL_SO_LIBS): Remove.
8729 * solib.h (so_list_head): Remove.
8730 (update_solib_list): Update comment.
8731 * solib.c (master_so_list): Remove.
8732 (solib_used, update_solib_list, solib_add)
8733 (info_sharedlibrary_command, clear_solib)
8734 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8735
8736 2020-05-08 Tom Tromey <tom@tromey.com>
8737
8738 * extension.c (extension_languages): Now a std::array.
8739 (ALL_EXTENSION_LANGUAGES): Remove.
8740 (get_ext_lang_defn, get_ext_lang_of_file)
8741 (eval_ext_lang_from_control_command): Update.
8742 (finish_ext_lang_initialization)
8743 (auto_load_ext_lang_scripts_for_objfile)
8744 (ext_lang_type_printers::ext_lang_type_printers)
8745 (apply_ext_lang_type_printers)
8746 (ext_lang_type_printers::~ext_lang_type_printers)
8747 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8748 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8749 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8750 (get_matching_xmethod_workers, ext_lang_colorize)
8751 (ext_lang_before_prompt): Update.
8752 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8753
8754 2020-05-08 Tom Tromey <tom@tromey.com>
8755
8756 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8757 overload.
8758 <swap_string, m_string>: Remove.
8759 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8760 Update.
8761 * stabsread.c (define_symbol, read_type): Update.
8762 * linespec.c (find_linespec_symbols): Update.
8763 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8764 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8765 * dbxread.c (read_dbx_symtab): Update.
8766 * cp-support.h (cp_canonicalize_string_full)
8767 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8768 Return unique_xmalloc_ptr.
8769 * cp-support.c (inspect_type): Update.
8770 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8771 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8772 Likewise.
8773 * c-typeprint.c (print_name_maybe_canonical): Update.
8774 * break-catch-throw.c (check_status_exception_catchpoint):
8775 Update.
8776
8777 2020-05-08 Tom de Vries <tdevries@suse.de>
8778
8779 * infrun.c (follow_fork): Copy current_line and current_symtab to
8780 child thread.
8781
8782 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * async-event.c (struct async_signal_handler, struct
8785 async_event_handler): Reformat, remove typedef.
8786
8787 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8790 access thistype->main_type->dyn_prop_list directly.
8791
8792 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8795 (remove_dyn_prop): Remove. Update all users to use
8796 type::remove_dyn_prop.
8797 * gdbtypes.c (remove_dyn_prop): Rename to...
8798 (type::remove_dyn_prop): ... this.
8799
8800 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8801
8802 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8803 (add_dyn_prop): Remove. Update all users to use
8804 type::add_dyn_prop.
8805 * gdbtypes.c (add_dyn_prop): Rename to...
8806 (type::add_dyn_prop): ... this.
8807
8808 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8809
8810 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8811 (get_dyn_prop): Remove. Update all users to use
8812 type::dyn_prop.
8813 * gdbtypes.c (get_dyn_prop): Rename to...
8814 (type::dyn_prop): ... this.
8815
8816 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8819
8820 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8823 instruction, skip it if it's there.
8824
8825 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8828
8829 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8832 * gdbtypes.c (recursive_dump_type): Remove use of
8833 TYPE_INCOMPLETE.
8834
8835 2020-05-03 Tom Tromey <tom@tromey.com>
8836
8837 * breakpoint.c (catch_command, tcatch_command): Remove.
8838 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8839 add_show_prefix_cmd.
8840 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8841 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8842 Remove.
8843 (add_internal_problem_command): Use add_basic_prefix_cmd,
8844 add_show_prefix_cmd.
8845 * mips-tdep.c (set_mipsfpu_command): Remove.
8846 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8847 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8848 (_initialize_index_cache): Use add_basic_prefix_cmd.
8849 * memattr.c (dummy_cmd): Remove.
8850 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8851 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8852 (_initialize_tui_win): Use add_basic_prefix_cmd,
8853 add_show_prefix_cmd.
8854 * cli/cli-logging.c (set_logging_command): Remove.
8855 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8856 add_show_prefix_cmd.
8857 (show_logging_command): Remove.
8858 * target.c (target_command): Remove.
8859 (add_target): Use add_basic_prefix_cmd.
8860
8861 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8862
8863 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8864
8865 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8866
8867 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8868 info_command.
8869
8870 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8871
8872 * nbsd-nat.c (nbsd_enable_proc_events)
8873 (nbsd_nat_target::post_startup_inferior): Add.
8874 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8875 (nbsd_nat_target::update_thread_list): Rewrite.
8876 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8877 "PTRACE_LWP_CREATE".
8878 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8879
8880 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8881
8882 * stack.c (_initialize_stack): Remove duplicated creation
8883 of "frame" command and "f" alias.
8884
8885 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8886
8887 PR gdb/18706
8888 * gdbtypes.c (check_typedef): Calculate size of array of
8889 stubbed type.
8890
8891 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8892
8893 PR gdb/15559
8894 * i386-tdep.c (i386_push_dummy_call): Call
8895 i386_thiscall_push_dummy_call.
8896 (i386_thiscall_push_dummy_call): New function.
8897 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8898 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8899 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8900
8901 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * gdbarch.sh (do_read): Add shellcheck disable directive for
8904 warning SC2162.
8905
8906 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8909 "referenced but not assigned" warning.
8910
8911 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * gdbarch.sh: Remove code that sets fallbackdefault.
8914
8915 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8916
8917 * gdbarch.sh: Use shell operators && and || instead of
8918 -a and -o.
8919
8920 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * gdbarch.sh: Use $(...) instead of `...`.
8923
8924 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * gdbarch.sh: Use double quotes around variables.
8927
8928 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * gdbarch.sh: Use %s with printf, instead of variables in the
8931 format string.
8932
8933 2020-04-29 Tom Tromey <tromey@adacore.com>
8934
8935 PR ada/25875:
8936 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8937 type fields here.
8938 (read_enumeration_type): Call
8939 update_enumeration_type_from_children later. Update comments.
8940 (process_enumeration_scope): Don't create type fields.
8941
8942 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8943
8944 * nbsd-tdep.c: Include "xml-syscall.h".
8945 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8946
8947 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8948
8949 * nbsd-nat.c: Include "sys/wait.h".
8950 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8951 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8952 (nbsd_nat_target::remove_exec_catchpoint)
8953 (nbsd_nat_target::set_syscall_catchpoint): Add.
8954 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8955 (nbsd_nat_target::insert_exec_catchpoint)
8956 (nbsd_nat_target::remove_exec_catchpoint)
8957 (nbsd_nat_target::set_syscall_catchpoint): Add.
8958 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8959 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8960 `nbsd_get_syscall_number'.
8961
8962 2020-04-29 Tom Tromey <tom@tromey.com>
8963
8964 * stack.c (print_block_frame_labels): Remove.
8965
8966 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8967
8968 PR gdb/17320
8969 * ada-valprint.c (val_print_packed_array_elements): Move array
8970 end bracket to new line.
8971 (ada_val_print_string): Remove extra spaces before first array
8972 element.
8973 * c-valprint.c (c_value_print_array): Likewise.
8974 * m2-valprint.c (m2_print_array_contents): Likewise.
8975 (m2_value_print_inner): Likewise.
8976 * p-valprint.c (pascal_value_print_inner): Likewise.
8977 * valprint.c (generic_val_print_array): Likewise.
8978 (value_print_array_elements): Move first array element and array
8979 end bracket to new line.
8980
8981 2020-04-29 Tom de Vries <tdevries@suse.de>
8982
8983 PR symtab/25889
8984 * linespec.c (find_method): Fix ix calculation.
8985
8986 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8987
8988 * syscalls/update-netbsd.sh: New file.
8989 * syscalls/netbsd.xml: Regenerate.
8990 * data-directory/Makefile.in: Register `netbsd.xml' in
8991 `SYSCALLS_FILES'.
8992
8993 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * syscalls/update-freebsd.sh: Add double quotes.
8996
8997 2020-04-28 Tom Tromey <tom@tromey.com>
8998
8999 * NEWS: Update.
9000 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9001 (cmdpy_init): Allow class_tui.
9002
9003 2020-04-28 Mark Williams <mark@myosotissp.com>
9004
9005 PR gdb/24480
9006 * dwarf2read.c: Add missing assingments to list_in_scope when
9007 start_symtab was already called.
9008
9009 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9010
9011 PR gdb/25881
9012 * dwarf2/read.c (offset_map_type): Use
9013 gdb:hash_enum<sect_offset> as hash function.
9014
9015 2020-04-28 Tom de Vries <tdevries@suse.de>
9016
9017 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9018 with DW_AT_signature.
9019
9020 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * configure.ac: Remove check for fs_base/gs_base in
9023 user_regs_struct.
9024 * configure: Re-generate.
9025 * config.in: Re-generate.
9026 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9027 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9028 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9029
9030 2020-04-27 Luis Machado <luis.machado@linaro.org>
9031
9032 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9033 problematic inline frame unwinding situation.
9034 * frame.c (frame_id_computed_p): New function.
9035 * frame.h (frame_id_computed_p): New prototype.
9036
9037 2020-04-26 Tom Tromey <tom@tromey.com>
9038
9039 * command.h (enum command_class) <class_pseudo>: Remove.
9040
9041 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9042
9043 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9044 and whitespace.
9045
9046 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9047
9048 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9049 `PT_GET_PROCESS_STATE' block.
9050
9051 2020-04-24 Tom Tromey <tom@tromey.com>
9052
9053 * symtab.h (symbol_get_demangled_name): Don't declare.
9054 * symtab.c (symbol_get_demangled_name): Remove.
9055 (general_symbol_info::natural_name)
9056 (general_symbol_info::demangled_name): Update.
9057
9058 2020-04-24 Tom Tromey <tom@tromey.com>
9059
9060 PR rust/25025:
9061 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9062
9063 2020-04-24 Tom Tromey <tom@tromey.com>
9064
9065 PR symtab/12707:
9066 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9067 exists.
9068 (new_symbol): Likewise.
9069 * compile/compile-object-load.c (get_out_value_type): Use
9070 symbol_matches_search_name.
9071
9072 2020-04-24 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/read.c (add_partial_symbol): Do not call
9075 compute_and_set_names.
9076
9077 2020-04-24 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9080 overload.
9081
9082 2020-04-24 Tom Tromey <tom@tromey.com>
9083
9084 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9085 (add_psymbol_to_list): New overload. Make old overload call new
9086 one.
9087 * psympriv.h (add_psymbol_to_list): New overload.
9088
9089 2020-04-24 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.c (partial_die_info::read) <case
9092 DW_AT_linkage_name>: Use value_as_string.
9093 (dwarf2_string_attr): Use value_as_string.
9094 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9095 method.
9096 * dwarf2/attribute.c (attribute::value_as_string): New method.
9097
9098 2020-04-24 Tom Tromey <tom@tromey.com>
9099
9100 * symtab.c (general_symbol_info::natural_name)
9101 (general_symbol_info::demangled_name): Check for language_rust.
9102
9103 2020-04-24 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9106 (dwarf2_physname): ... from here.
9107 (partial_die_info::read): Add Rust "{" hack.
9108
9109 2020-04-24 Tom Tromey <tom@tromey.com>
9110
9111 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9112 method.
9113 (symbol_set_demangled_name): Don't declare.
9114 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9115 symbol_set_demangled_name.
9116 (general_symbol_info::set_language)
9117 (general_symbol_info::compute_and_set_names): Update.
9118 * minsyms.c (minimal_symbol_reader::install): Update.
9119 * dwarf2/read.c (new_symbol): Update.
9120
9121 2020-04-24 Tom Tromey <tromey@adacore.com>
9122
9123 PR python/23662:
9124 * python/py-type.c (convert_field): Handle
9125 FIELD_LOC_KIND_DWARF_BLOCK.
9126 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9127 (typy_get_dynamic): Nw function.
9128 (type_object_getset): Add "dynamic".
9129 * NEWS: Add entry.
9130
9131 2020-04-24 Tom Tromey <tromey@adacore.com>
9132
9133 * ada-typeprint.c (print_choices, print_variant_part)
9134 (print_record_field_types_dynamic): New functions.
9135 (print_record_field_types): Use print_record_field_types_dynamic.
9136
9137 2020-04-24 Tom Tromey <tromey@adacore.com>
9138
9139 * dwarf2/read.c (handle_data_member_location): New overload.
9140 (dwarf2_add_field): Use it.
9141 (decode_locdesc): Add "computed" parameter. Update comment.
9142 * gdbtypes.c (is_dynamic_type_internal): Also look for
9143 FIELD_LOC_KIND_DWARF_BLOCK.
9144 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9145 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9146 virtual base classes.
9147 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9148 FIELD_LOC_KIND_DWARF_BLOCK.
9149
9150 2020-04-24 Tom Tromey <tromey@adacore.com>
9151
9152 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9153 * gdbtypes.c (is_dynamic_type_internal): Check
9154 TYPE_HAS_DYNAMIC_LENGTH.
9155 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9156 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9157 New macros.
9158 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9159 constant.
9160
9161 2020-04-24 Tom Tromey <tromey@adacore.com>
9162
9163 * dwarf2/read.c (struct variant_field): Rewrite.
9164 (struct variant_part_builder): New.
9165 (struct nextfield): Remove "variant" field. Add "offset".
9166 (struct field_info): Add "current_variant_part" and
9167 "variant_parts".
9168 (alloc_discriminant_info): Remove.
9169 (alloc_rust_variant): New function.
9170 (quirk_rust_enum): Update.
9171 (dwarf2_add_field): Set "offset" member. Don't handle
9172 DW_TAG_variant_part.
9173 (offset_map_type): New typedef.
9174 (convert_variant_range, create_one_variant)
9175 (create_one_variant_part, create_variant_parts)
9176 (add_variant_property): New functions.
9177 (dwarf2_attach_fields_to_type): Call add_variant_property.
9178 (read_structure_type): Don't handle DW_TAG_variant_part.
9179 (handle_variant_part, handle_variant): New functions.
9180 (handle_struct_member_die): Use them.
9181 (process_structure_scope): Don't handle variant parts.
9182 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9183 (struct discriminant_info): Remove.
9184 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9185 (struct main_type) <flag_discriminated_union>: Remove.
9186 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9187 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9188 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9189 Update.
9190 * valops.c (value_union_variant): Remove.
9191 * value.h (value_union_variant): Don't declare.
9192
9193 2020-04-24 Tom Tromey <tromey@adacore.com>
9194
9195 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9196 (ada_value_primitive_packed_val): Update.
9197 * ada-valprint.c (ada_value_print_1): Update.
9198 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9199 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9200 just an address. Use evaluate_for_locexpr_baton.
9201 (dwarf2_evaluate_property): Update.
9202 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9203 array_view.
9204 * findvar.c (default_read_var_value): Update.
9205 * gdbtypes.c (compute_variant_fields_inner)
9206 (resolve_dynamic_type_internal): Update.
9207 (resolve_dynamic_type): Change type of valaddr parameter.
9208 * gdbtypes.h (resolve_dynamic_type): Update.
9209 * valarith.c (value_subscripted_rvalue): Update.
9210 * value.c (value_from_contents_and_address): Update.
9211
9212 2020-04-24 Tom Tromey <tromey@adacore.com>
9213
9214 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9215 "push_initial_value" parameter.
9216 (dwarf2_evaluate_property): Likewise.
9217 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9218
9219 2020-04-24 Tom Tromey <tromey@adacore.com>
9220
9221 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9222 (variant::matches, compute_variant_fields_recurse)
9223 (compute_variant_fields_inner, compute_variant_fields): New
9224 functions.
9225 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9226 Use resolved_type after type is made.
9227 (operator==): Add new cases.
9228 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9229 (struct discriminant_range, struct variant, struct variant_part):
9230 New.
9231 (union dynamic_prop_data) <variant_parts, original_type>: New
9232 members.
9233 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9234 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9235 constants.
9236 * value.c (unpack_bits_as_long): Now public.
9237 * value.h (unpack_bits_as_long): Declare.
9238
9239 2020-04-24 Tom Tromey <tromey@adacore.com>
9240
9241 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9242 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9243
9244 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9245
9246 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9247
9248 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9249
9250 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9251 (remove_fork_catchpoint, post_startup_inferior)
9252 (post_attach): Move...
9253 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9254 (remove_fork_catchpoint, post_startup_inferior)
9255 (post_attach): ...here.
9256 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9257 (remove_fork_catchpoint, post_startup_inferior)
9258 (post_attach): Move...
9259 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9260 (remove_fork_catchpoint, post_startup_inferior)
9261 (post_attach): ...here.
9262
9263 2020-04-24 Tom Tromey <tromey@adacore.com>
9264
9265 * nat/windows-nat.h (struct windows_thread_info)
9266 <pc_adjusted>: New member.
9267 * windows-nat.c (windows_fetch_one_register): Check
9268 pc_adjusted.
9269 (windows_nat_target::get_windows_debug_event)
9270 (windows_nat_target::wait): Set pc_adjusted.
9271
9272 2020-04-24 Tom de Vries <tdevries@suse.de>
9273
9274 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9275 Run gdb-add-index inside temp dir.
9276
9277 2020-04-23 Tom Tromey <tromey@adacore.com>
9278
9279 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9280 in loop.
9281
9282 2020-04-23 Luis Machado <luis.machado@linaro.org>
9283
9284 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9285 get_frame_register instead of gdbarch_unwind_pc.
9286
9287 2020-04-23 Tom de Vries <tdevries@suse.de>
9288
9289 * symtab.c (lookup_global_symbol): Prefer def over decl.
9290
9291 2020-04-23 Tom de Vries <tdevries@suse.de>
9292
9293 PR symtab/25807
9294 * block.c (best_symbol, better_symbol): Promote to external.
9295 * block.h (best_symbol, better_symbol): Declare.
9296 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9297 decl.
9298
9299 2020-04-23 Tom Tromey <tromey@adacore.com>
9300
9301 PR ada/25837:
9302 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9303 "const char *", not a "const std::string &".
9304 <name_and_matcher::operator==>: Update.
9305 * unittests/lookup_name_info-selftests.c: Change type of
9306 "result".
9307
9308 2020-04-23 Tom Tromey <tom@tromey.com>
9309
9310 * inferior.h (iterate_over_inferiors): Don't declare.
9311 * inferior.c (iterate_over_inferiors): Remove.
9312 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9313 Remove.
9314 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9315 use iterate_over_inferiors.
9316 (darwin_resume_inferior_it)
9317 (struct resume_inferior_threads_param)
9318 (darwin_resume_inferior_threads_it): Remove.
9319 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9320
9321 2020-04-23 Tom de Vries <tdevries@suse.de>
9322
9323 * blockframe.c (find_pc_partial_function): Use
9324 find_pc_sect_compunit_symtab rather than
9325 objfile->sf->qf->find_pc_sect_compunit_symtab.
9326
9327 2020-04-22 Tom de Vries <tdevries@suse.de>
9328
9329 PR symtab/25764
9330 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9331 in psymtabs.
9332
9333 2020-04-22 Tom de Vries <tdevries@suse.de>
9334
9335 PR symtab/25801
9336 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9337 symtabs.
9338
9339 2020-04-22 Tom de Vries <tdevries@suse.de>
9340
9341 PR symtab/25700
9342 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9343 CU if already created.
9344
9345 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9346
9347 * infrun.c (displaced_step_fixup): Switch to the event_thread
9348 before calling displaced_step_restore, not after.
9349
9350 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9351
9352 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9353 its inferior is not recorded by us.
9354 (record_btrace_target_open): Replace call to
9355 all_non_exited_threads () with call to current_inferior
9356 ()->non_exited_threads ().
9357 (record_btrace_target::stop_recording): Likewise.
9358 (record_btrace_target::close): Likewise.
9359 (record_btrace_target::wait): Likewise.
9360 (record_btrace_target::record_stop_replaying): Likewise.
9361
9362 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9363
9364 * btrace.c (btrace_enable): Throw an error on double enables and
9365 when enabling recording fails.
9366 (btrace_disable): Throw an error if the thread is not recorded.
9367
9368 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9369
9370 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9371 request if we do not have a thread_info.
9372
9373 2020-04-21 Tom de Vries <tdevries@suse.de>
9374
9375 PR gdb/25471
9376 * thread.c
9377 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9378 exception in get_frame_id.
9379
9380 2020-04-20 Tom Tromey <tromey@adacore.com>
9381
9382 * python/python.c (struct gdbpy_event): Mark move constructor as
9383 noexcept.
9384 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9385 constructor as noexcept.
9386 * completer.h (struct completion_result): Mark move constructor as
9387 noexcept.
9388 * completer.c (completion_result::completion_result): Use
9389 initialization style. Don't call reset_match_list.
9390
9391 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9392
9393 * MAINTAINERS (Write After Approval): Add myself.
9394
9395 2020-04-18 Tom Tromey <tom@tromey.com>
9396
9397 * windows-tdep.c (init_w32_command_list)
9398 (w32_prefix_command_valid): Restore.
9399 (_initialize_windows_tdep): Call init_w32_command_list.
9400
9401 2020-04-18 Tom Tromey <tom@tromey.com>
9402
9403 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9404 * value.c (value_fn_field): Update.
9405 * valops.c (find_function_in_inferior)
9406 (value_allocate_space_in_inferior): Update.
9407 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9408 Update.
9409 * tui/tui-source.c (tui_source_window::set_contents): Update.
9410 * symtab.c (lookup_global_or_static_symbol)
9411 (find_function_start_sal_1, skip_prologue_sal)
9412 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9413 * symmisc.c (dump_msymbols, dump_symtab_1)
9414 (maintenance_print_one_line_table): Update.
9415 * symfile.c (init_entry_point_info, section_is_mapped)
9416 (list_overlays_command, simple_read_overlay_table)
9417 (simple_overlay_update_1): Update.
9418 * stap-probe.c (handle_stap_probe): Update.
9419 * stabsread.c (dbx_init_float_type, define_symbol)
9420 (read_one_struct_field, read_enum_type, read_range_type): Update.
9421 * source.c (info_line_command): Update.
9422 * python/python.c (gdbpy_source_objfile_script)
9423 (gdbpy_execute_objfile_script): Update.
9424 * python/py-type.c (save_objfile_types): Update.
9425 * python/py-objfile.c (py_free_objfile): Update.
9426 * python/py-inferior.c (python_new_objfile): Update.
9427 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9428 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9429 (maintenance_check_psymtabs): Update.
9430 * printcmd.c (info_address_command): Update.
9431 * objfiles.h (struct objfile) <arch>: New method, from
9432 get_objfile_arch.
9433 (get_objfile_arch): Don't declare.
9434 * objfiles.c (get_objfile_arch): Remove.
9435 (filter_overlapping_sections): Update.
9436 * minsyms.c (msymbol_is_function): Update.
9437 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9438 (output_nondebug_symbol): Update.
9439 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9440 (mdebug_expand_psymtab): Update.
9441 * machoread.c (macho_add_oso_symfile): Update.
9442 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9443 Update.
9444 * linux-fork.c (checkpoint_command): Update.
9445 * linespec.c (convert_linespec_to_sals): Update.
9446 * jit.c (finalize_symtab): Update.
9447 * infrun.c (insert_exception_resume_from_probe): Update.
9448 * ia64-tdep.c (ia64_find_unwind_table): Update.
9449 * hppa-tdep.c (internalize_unwinds): Update.
9450 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9451 Update.
9452 * gcore.c (call_target_sbrk): Update.
9453 * elfread.c (record_minimal_symbol, elf_symtab_read)
9454 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9455 (elf_gnu_ifunc_resolve_by_got): Update.
9456 * dwarf2/read.c (create_addrmap_from_index)
9457 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9458 (read_debug_names_from_section)
9459 (process_psymtab_comp_unit_reader, add_partial_symbol)
9460 (add_partial_subprogram, process_full_comp_unit)
9461 (read_file_scope, read_func_scope, read_lexical_block_scope)
9462 (read_call_site_scope, dwarf2_ranges_read)
9463 (dwarf2_record_block_ranges, dwarf2_add_field)
9464 (mark_common_block_symbol_computed, read_tag_pointer_type)
9465 (read_tag_string_type, dwarf2_init_float_type)
9466 (dwarf2_init_complex_target_type, read_base_type)
9467 (partial_die_info::read, partial_die_info::read)
9468 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9469 (dwarf2_fetch_die_loc_sect_off): Update.
9470 * dwarf2/loc.c (dwarf2_find_location_expression)
9471 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9472 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9473 (dwarf2_loc_desc_get_symbol_read_needs)
9474 (locexpr_describe_location_piece, locexpr_describe_location_1)
9475 (loclist_describe_location): Update.
9476 * dwarf2/index-write.c (write_debug_names): Update.
9477 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9478 * dtrace-probe.c (dtrace_process_dof): Update.
9479 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9480 (process_one_symbol): Update.
9481 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9482 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9483 (coff_read_enum_type): Update.
9484 * cli/cli-cmds.c (edit_command, list_command): Update.
9485 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9486 * breakpoint.c (create_overlay_event_breakpoint)
9487 (create_longjmp_master_breakpoint)
9488 (create_std_terminate_master_breakpoint)
9489 (create_exception_master_breakpoint, get_sal_arch): Update.
9490 * block.c (block_gdbarch): Update.
9491 * annotate.c (annotate_source_line): Update.
9492
9493 2020-04-17 Tom Tromey <tromey@adacore.com>
9494
9495 * auto-load.c (show_auto_load_cmd): Remove.
9496 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9497 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9498 (maintenance_print_arc_command): Remove.
9499 * tui/tui-win.c (tui_command): Remove.
9500 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9501 * tui/tui-layout.c (tui_layout_command): Remove.
9502 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9503 * python/python.c (user_set_python, user_show_python): Remove.
9504 (_initialize_python): Use add_basic_prefix_cmd,
9505 add_show_prefix_cmd.
9506 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9507 (install_gdb_commands): Use add_basic_prefix_cmd,
9508 add_show_prefix_cmd.
9509 (info_guile_command): Remove.
9510 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9511 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9512 add_show_prefix_cmd.
9513 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9514 Remove do_set and do_show parameters.
9515 * cli/cli-style.c (set_style, show_style): Remove.
9516 (_initialize_cli_style): Use add_basic_prefix_cmd,
9517 add_show_prefix_cmd.
9518 (cli_style_option::add_setshow_commands): Remove do_set and
9519 do_show parameters.
9520 (cli_style_option::add_setshow_commands): Use
9521 add_basic_prefix_cmd, add_show_prefix_cmd.
9522 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9523 (set_style_name): Remove.
9524 * cli/cli-dump.c (dump_command, append_command): Remove.
9525 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9526 (tekhex_dump_command, binary_dump_command)
9527 (binary_append_command): Remove.
9528 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9529 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9530 (init_w32_command_list): Remove; move into ...
9531 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9532 * valprint.c (set_print, show_print, set_print_raw)
9533 (show_print_raw): Remove.
9534 (_initialize_valprint): Use add_basic_prefix_cmd,
9535 add_show_prefix_cmd.
9536 * typeprint.c (set_print_type, show_print_type): Remove.
9537 (_initialize_typeprint): Use add_basic_prefix_cmd,
9538 add_show_prefix_cmd.
9539 * record.c (set_record_command, show_record_command): Remove.
9540 (_initialize_record): Use add_basic_prefix_cmd,
9541 add_show_prefix_cmd.
9542 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9543 add_show_prefix_cmd.
9544 (info_command, show_command, set_debug, show_debug): Remove.
9545 * top.h (set_history, show_history): Don't declare.
9546 * top.c (set_history, show_history): Remove.
9547 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9548 (unset_tdesc_cmd): Remove.
9549 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9550 add_show_prefix_cmd.
9551 * symtab.c (info_module_command): Remove.
9552 (_initialize_symtab): Use add_basic_prefix_cmd.
9553 * symfile.c (overlay_command): Remove.
9554 (_initialize_symfile): Use add_basic_prefix_cmd.
9555 * sparc64-tdep.c (info_adi_command): Remove.
9556 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9557 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9558 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9559 add_show_prefix_cmd.
9560 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9561 (_initialize_serial): Use add_basic_prefix_cmd,
9562 add_show_prefix_cmd.
9563 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9564 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9565 add_show_prefix_cmd.
9566 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9567 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9568 add_show_prefix_cmd.
9569 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9570 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9571 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9572 add_show_prefix_cmd.
9573 * remote.c (remote_command, set_remote_cmd): Remove.
9574 (_initialize_remote): Use add_basic_prefix_cmd.
9575 * record-full.c (set_record_full_command)
9576 (show_record_full_command): Remove.
9577 (_initialize_record_full): Use add_basic_prefix_cmd,
9578 add_show_prefix_cmd.
9579 * record-btrace.c (cmd_set_record_btrace)
9580 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9581 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9582 (cmd_show_record_btrace_pt): Remove.
9583 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9584 add_show_prefix_cmd.
9585 * ravenscar-thread.c (set_ravenscar_command)
9586 (show_ravenscar_command): Remove.
9587 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9588 add_show_prefix_cmd.
9589 * mips-tdep.c (show_mips_command, set_mips_command)
9590 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9591 add_show_prefix_cmd.
9592 * maint.c (maintenance_command, maintenance_info_command)
9593 (maintenance_check_command, maintenance_print_command)
9594 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9595 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9596 add_show_prefix_cmd.
9597 (show_per_command_cmd): Remove.
9598 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9599 Remove.
9600 (maintenance_show_test_settings_cmd): Remove.
9601 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9602 add_show_prefix_cmd.
9603 * maint-test-options.c (maintenance_test_options_command):
9604 Remove.
9605 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9606 * macrocmd.c (macro_command): Remove
9607 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9608 * language.c (set_check, show_check): Remove.
9609 (_initialize_language): Use add_basic_prefix_cmd,
9610 add_show_prefix_cmd.
9611 * infcmd.c (unset_command): Remove.
9612 (_initialize_infcmd): Use add_basic_prefix_cmd.
9613 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9614 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9615 add_show_prefix_cmd.
9616 * go32-nat.c (go32_info_dos_command): Remove.
9617 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9618 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9619 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9620 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9621 (_initialize_frame): Use add_basic_prefix_cmd,
9622 add_show_prefix_cmd.
9623 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9624 (_initialize_dcache): Use add_basic_prefix_cmd,
9625 add_show_prefix_cmd.
9626 * cp-support.c (maint_cplus_command): Remove.
9627 (_initialize_cp_support): Use add_basic_prefix_cmd.
9628 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9629 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9630 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9631 add_basic_prefix_cmd, add_show_prefix_cmd.
9632 * breakpoint.c (save_command): Remove.
9633 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9634 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9635 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9636 add_show_prefix_cmd.
9637 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9638 (set_ada_command, show_ada_command): Remove.
9639 (_initialize_ada_language): Use add_basic_prefix_cmd,
9640 add_show_prefix_cmd.
9641 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9642
9643 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9644
9645 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9646 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9647
9648 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9649
9650 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9651 warning messages.
9652
9653 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9654
9655 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9656 import table is not at beginning of .idata section.
9657
9658 2020-04-16 Pedro Alves <palves@redhat.com>
9659
9660 * inferior.c (delete_inferior): Use delete operator directly
9661 instead of delete_program_space.
9662 * progspace.c (add_program_space): New, factored out from
9663 program_space::program_space.
9664 (remove_program_space): New, factored out from
9665 delete_program_space.
9666 (program_space::program_space): Remove intro comment. Rewrite.
9667 (program_space::~program_space): Remove intro comment. Call
9668 remove_program_space.
9669 (delete_program_space): Delete.
9670 * progspace.h (program_space::program_space): Make explicit. Move
9671 intro comment here, adjusted.
9672 (program_space::~program_space): Move intro comment here,
9673 adjusted.
9674 (delete_program_space): Remove.
9675
9676 2020-04-16 Tom Tromey <tromey@adacore.com>
9677
9678 * windows-nat.c (windows_nat::handle_access_violation): New
9679 function.
9680 * nat/windows-nat.h (handle_access_violation): Declare.
9681 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9682 windows-nat.c. Call handle_access_violation.
9683
9684 2020-04-16 Tom de Vries <tdevries@suse.de>
9685
9686 PR symtab/25791
9687 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9688 CUs without psymtab.
9689
9690 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9691
9692 * python/python.c (do_start_initialization): Don't call
9693 PyEval_InitThreads for Python 3.9 and beyond.
9694
9695 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9696
9697 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9698 thread functions.
9699 (obsd_nat_target::wait): Likewise.
9700
9701 2020-04-15 Tom Tromey <tromey@adacore.com>
9702
9703 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9704 (DEBUG_EXCEPT): Use debug_printf.
9705
9706 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9707
9708 * completer.c (class completion_tracker::completion_hash_entry)
9709 <hash_name>: New member function.
9710 (completion_tracker::discard_completions): New callback to hash a
9711 completion_hash_entry, pass this to htab_create_alloc.
9712
9713 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9714
9715 * windows-nat.c (windows_make_so): Warn rather than stopping with
9716 an error if realpath() fails.
9717
9718 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9719
9720 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9721 (nbsd_nat_target::info_proc): Add do_status.
9722
9723 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9724 Tom de Vries <tdevries@suse.de>
9725
9726 PR symtab/25718
9727 * psympriv.h (struct partial_symtab::read_symtab)
9728 (struct partial_symtab::expand_psymtab)
9729 (struct partial_symtab::read_dependencies): Update comments.
9730 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9731 read_symtab for includer.
9732 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9733 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9734 (struct dwarf2_include_psymtab::m_readin): Remove.
9735 (struct dwarf2_include_psymtab::includer): New member function.
9736 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9737
9738 2020-04-14 Tom de Vries <tdevries@suse.de>
9739
9740 PR symtab/25720
9741 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9742 with NULL symbol_matcher and lookup_name.
9743 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9744 and lookup_name.
9745 * dwarf2/read.c (dw2_expand_symtabs_matching)
9746 (dw2_debug_names_expand_symtabs_matching): Same.
9747 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9748 Make lookup_name a pointer. Update comment.
9749 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9750 lookup_name being a pointer.
9751 * symfile.c (expand_symtabs_matching): Same.
9752 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9753 * linespec.c (iterate_over_all_matching_symtabs): Same.
9754
9755 2020-04-13 Tom Tromey <tom@tromey.com>
9756
9757 * run-on-main-thread.c: Update include.
9758 * unittests/main-thread-selftests.c: Update include.
9759 * tui/tui-win.c: Update include.
9760 * tui/tui-io.c: Update include.
9761 * tui/tui-interp.c: Update include.
9762 * tui/tui-hooks.c: Update include.
9763 * top.h: Update include.
9764 * top.c: Update include.
9765 * ser-base.c: Update include.
9766 * remote.c: Update include.
9767 * remote-notif.c: Update include.
9768 * remote-fileio.c: Update include.
9769 * record-full.c: Update include.
9770 * record-btrace.c: Update include.
9771 * python/python.c: Update include.
9772 * posix-hdep.c: Update include.
9773 * mingw-hdep.c: Update include.
9774 * mi/mi-main.c: Update include.
9775 * mi/mi-interp.c: Update include.
9776 * main.c: Update include.
9777 * linux-nat.c: Update include.
9778 * interps.c: Update include.
9779 * infrun.c: Update include.
9780 * inf-loop.c: Update include.
9781 * event-top.c: Update include.
9782 * event-loop.c: Move to ../gdbsupport/.
9783 * event-loop.h: Move to ../gdbsupport/.
9784 * async-event.h: Update include.
9785 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9786
9787 2020-04-13 Tom Tromey <tom@tromey.com>
9788
9789 * tui/tui-win.c: Include async-event.h.
9790 * remote.c: Include async-event.h.
9791 * remote-notif.c: Include async-event.h.
9792 * record-full.c: Include async-event.h.
9793 * record-btrace.c: Include async-event.h.
9794 * infrun.c: Include async-event.h.
9795 * event-top.c: Include async-event.h.
9796 * event-loop.h: Move some declarations to async-event.h.
9797 * event-loop.c: Don't include ser-event.h or top.h. Move some
9798 code to async-event.c.
9799 * async-event.h: New file.
9800 * async-event.c: New file.
9801 * Makefile.in (COMMON_SFILES): Add async-event.c.
9802 (HFILES_NO_SRCDIR): Add async-event.h.
9803
9804 2020-04-13 Tom Tromey <tom@tromey.com>
9805
9806 * utils.c (flush_streams): New function.
9807 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9808
9809 2020-04-13 Tom Tromey <tom@tromey.com>
9810
9811 * event-loop.c (handle_file_event): Use warning, not
9812 printf_unfiltered.
9813
9814 2020-04-13 Tom Tromey <tom@tromey.com>
9815
9816 * event-loop.c: Include <chrono>.
9817
9818 2020-04-13 Tom Tromey <tom@tromey.com>
9819
9820 * gdb_select.h: Move to ../gdbsupport/.
9821 * event-loop.c: Update include path.
9822 * top.c: Update include path.
9823 * ser-base.c: Update include path.
9824 * ui-file.c: Update include path.
9825 * ser-tcp.c: Update include path.
9826 * guile/scm-ports.c: Update include path.
9827 * posix-hdep.c: Update include path.
9828 * ser-unix.c: Update include path.
9829 * gdb_usleep.c: Update include path.
9830 * mingw-hdep.c: Update include path.
9831 * inflow.c: Update include path.
9832 * infrun.c: Update include path.
9833 * event-top.c: Update include path.
9834
9835 2020-04-13 Tom Tromey <tom@tromey.com>
9836
9837 * configure: Rebuild.
9838 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9839
9840 2020-04-13 Tom Tromey <tom@tromey.com>
9841
9842 * event-loop.h (start_event_loop): Don't declare.
9843 * event-loop.c (start_event_loop): Move...
9844 * main.c (start_event_loop): ...here. Now static.
9845
9846 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9847
9848 * MAINTAINERS: Update my email address.
9849
9850 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9851
9852 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9853 IP_ALL.
9854
9855 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9856
9857 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9858 (nbsd_nat_target::info_proc): Add do_cmdline.
9859
9860 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9861
9862 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9863 (nbsd_nat_target::info_proc): Add do_cwd.
9864
9865 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9866
9867 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9868
9869 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9870
9871 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9872 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9873 (nbsd_nat_target::info_proc): New functions.
9874 * nbsd-nat.c (kinfo_get_vmmap): New function.
9875 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9876 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9877 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9878 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9879 functions.
9880 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9881 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9882 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9883 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9884 (KINFO_VME_FLAG_GROWS_DOWN): New.
9885
9886 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9887
9888 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9889 bit shift.
9890
9891 2020-04-10 Tom Tromey <tromey@adacore.com>
9892
9893 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9894
9895 2020-04-10 Tom Tromey <tromey@adacore.com>
9896
9897 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9898 separate debug files.
9899
9900 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9901
9902 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9903 Move to...
9904 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9905 ... here.
9906 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9907 Check for STATUS_WX86_BREAKPOINT.
9908 (windows_nat_target::wait): Same.
9909
9910 2020-04-10 Tom de Vries <tdevries@suse.de>
9911
9912 PR cli/25808
9913 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9914
9915 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9916
9917 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9918 (Write After Approval): Remove Tom de Vries.
9919
9920 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9921
9922 revert partially:
9923 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9924
9925 * buildsym.c (record_line): Fix undefined behavior and preserve
9926 lines at eof.
9927
9928 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9929
9930 * auxv.h (svr4_auxv_parse): New.
9931 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9932 and generic_auxv_parse.
9933 (svr4_auxv_parse): Add.
9934 * obsd-tdep.c: Include "auxv.h".
9935 (obsd_auxv_parse): Remove.
9936 (obsd_init_abi): Remove comment.
9937 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9938 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9939 * nbsd-tdep.c: Include "auxv.h".
9940 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9941
9942 2020-04-08 Tom Tromey <tromey@adacore.com>
9943
9944 * nat/windows-nat.h (last_wait_event): Don't declare.
9945 (wait_for_debug_event): Update comment.
9946 * nat/windows-nat.c (last_wait_event): Now static.
9947
9948 2020-04-08 Tom Tromey <tromey@adacore.com>
9949
9950 * windows-nat.c (wait_for_debug_event): Move to
9951 nat/windows-nat.c.
9952 * nat/windows-nat.h (wait_for_debug_event): Declare.
9953 * nat/windows-nat.c (wait_for_debug_event): Move from
9954 windows-nat.c. No longer static.
9955
9956 2020-04-08 Tom Tromey <tromey@adacore.com>
9957
9958 * windows-nat.c (get_windows_debug_event): Use
9959 fetch_pending_stop.
9960 * nat/windows-nat.h (fetch_pending_stop): Declare.
9961 * nat/windows-nat.c (fetch_pending_stop): New function.
9962
9963 2020-04-08 Tom Tromey <tromey@adacore.com>
9964
9965 * windows-nat.c (windows_continue): Use matching_pending_stop and
9966 continue_last_debug_event.
9967 * nat/windows-nat.h (matching_pending_stop)
9968 (continue_last_debug_event): Declare.
9969 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9970 (matching_pending_stop, continue_last_debug_event): New
9971 functions.
9972
9973 2020-04-08 Tom Tromey <tromey@adacore.com>
9974
9975 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9976 (handle_exception_result): Move to nat/windows-nat.h.
9977 (DEBUG_EXCEPTION_SIMPLE): Remove.
9978 (windows_nat::handle_ms_vc_exception): New function.
9979 (handle_exception): Move to nat/windows-nat.c.
9980 (get_windows_debug_event): Update.
9981 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9982 nat/windows-nat.c.
9983 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9984 (handle_exception_result): Move from windows-nat.c.
9985 (handle_exception): Declare.
9986 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9987 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9988 windows-nat.c.
9989
9990 2020-04-08 Tom Tromey <tromey@adacore.com>
9991
9992 * windows-nat.c (exception_count, event_count): Remove.
9993 (handle_exception, get_windows_debug_event)
9994 (do_initial_windows_stuff): Update.
9995
9996 2020-04-08 Tom Tromey <tromey@adacore.com>
9997
9998 * windows-nat.c (windows_nat::handle_load_dll)
9999 (windows_nat::handle_unload_dll): Rename. No longer static.
10000 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10001 Declare.
10002
10003 2020-04-08 Tom Tromey <tromey@adacore.com>
10004
10005 * complaints.h (stop_whining): Declare at top-level.
10006 (complaint): Don't declare stop_whining.
10007
10008 2020-04-08 Tom Tromey <tromey@adacore.com>
10009
10010 * windows-nat.c (windows_nat::handle_output_debug_string):
10011 Rename. No longer static.
10012 * nat/windows-nat.h (handle_output_debug_string): Declare.
10013
10014 2020-04-08 Tom Tromey <tromey@adacore.com>
10015
10016 * windows-nat.c (current_process_handle, current_process_id)
10017 (main_thread_id, last_sig, current_event, last_wait_event)
10018 (current_windows_thread, desired_stop_thread_id, pending_stops)
10019 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10020 (display_selectors, fake_create_process)
10021 (get_windows_debug_event): Update.
10022 * nat/windows-nat.h (current_process_handle, current_process_id)
10023 (main_thread_id, last_sig, current_event, last_wait_event)
10024 (current_windows_thread, desired_stop_thread_id, pending_stops)
10025 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10026 * nat/windows-nat.c (current_process_handle, current_process_id)
10027 (main_thread_id, last_sig, current_event, last_wait_event)
10028 (current_windows_thread, desired_stop_thread_id, pending_stops)
10029 (siginfo_er): New globals. Move from windows-nat.c.
10030
10031 2020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10034 (handle_load_dll): Update.
10035 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10036
10037 2020-04-08 Tom Tromey <tromey@adacore.com>
10038
10039 * windows-nat.c (enum thread_disposition_type): Move to
10040 nat/windows-nat.h.
10041 (windows_nat::thread_rec): Rename from thread_rec. No longer
10042 static.
10043 (windows_add_thread, windows_nat_target::fetch_registers)
10044 (windows_nat_target::store_registers, handle_exception)
10045 (windows_nat_target::resume, get_windows_debug_event)
10046 (windows_nat_target::get_tib_address)
10047 (windows_nat_target::thread_name)
10048 (windows_nat_target::thread_alive): Update.
10049 * nat/windows-nat.h (enum thread_disposition_type): Move from
10050 windows-nat.c.
10051 (thread_rec): Declare.
10052
10053 2020-04-08 Tom Tromey <tromey@adacore.com>
10054
10055 * windows-nat.c: Add "using namespace".
10056 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10057 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10058
10059 2020-04-08 Tom Tromey <tromey@adacore.com>
10060
10061 * nat/windows-nat.h (struct windows_thread_info): Declare
10062 destructor.
10063 * nat/windows-nat.c (~windows_thread_info): New.
10064
10065 2020-04-08 Tom Tromey <tromey@adacore.com>
10066
10067 PR gdb/22992
10068 * windows-nat.c (current_event): Update comment.
10069 (last_wait_event, desired_stop_thread_id): New globals.
10070 (struct pending_stop): New.
10071 (pending_stops): New global.
10072 (windows_nat_target) <stopped_by_sw_breakpoint>
10073 <supports_stopped_by_sw_breakpoint>: New methods.
10074 (windows_fetch_one_register): Add assertions. Adjust PC.
10075 (windows_continue): Handle pending stops. Suspend other threads
10076 when stepping. Use last_wait_event
10077 (wait_for_debug_event): New function.
10078 (get_windows_debug_event): Use wait_for_debug_event. Handle
10079 pending stops. Queue spurious stops.
10080 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10081 (windows_nat_target::kill): Use wait_for_debug_event.
10082 * nat/windows-nat.h (struct windows_thread_info)
10083 <stopped_at_software_breakpoint>: New field.
10084 * nat/windows-nat.c (windows_thread_info::resume): Clear
10085 stopped_at_software_breakpoint.
10086
10087 2020-04-08 Tom Tromey <tromey@adacore.com>
10088
10089 * windows-nat.c (enum thread_disposition_type): New.
10090 (thread_rec): Replace "get_context" parameter with "disposition";
10091 change type.
10092 (windows_add_thread, windows_nat_target::fetch_registers)
10093 (windows_nat_target::store_registers, handle_exception)
10094 (windows_nat_target::resume, get_windows_debug_event)
10095 (windows_nat_target::get_tib_address)
10096 (windows_nat_target::thread_name)
10097 (windows_nat_target::thread_alive): Update.
10098
10099 2020-04-08 Tom Tromey <tromey@adacore.com>
10100
10101 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10102 (windows_continue): Use windows_continue::resume.
10103 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10104 resume>: Declare new methods.
10105 * nat/windows-nat.c: New file.
10106 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10107
10108 2020-04-08 Tom Tromey <tromey@adacore.com>
10109
10110 * windows-nat.c (windows_add_thread, windows_delete_thread)
10111 (windows_nat_target::fetch_registers)
10112 (windows_nat_target::store_registers, fake_create_process)
10113 (windows_nat_target::resume, windows_nat_target::resume)
10114 (get_windows_debug_event, windows_nat_target::wait)
10115 (windows_nat_target::pid_to_str)
10116 (windows_nat_target::get_tib_address)
10117 (windows_nat_target::get_ada_task_ptid)
10118 (windows_nat_target::thread_name)
10119 (windows_nat_target::thread_alive): Use lwp, not tid.
10120
10121 2020-04-08 Tom Tromey <tromey@adacore.com>
10122
10123 * windows-nat.c (handle_exception)
10124 (windows_nat_target::thread_name): Update.
10125 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10126 <name>: Now unique_xmalloc_ptr.
10127
10128 2020-04-08 Tom Tromey <tromey@adacore.com>
10129
10130 * windows-nat.c (thread_rec)
10131 (windows_nat_target::fetch_registers): Update.
10132 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10133 Update comment.
10134 <debug_registers_changed, reload_context>: Now bool.
10135
10136 2020-04-08 Tom Tromey <tromey@adacore.com>
10137
10138 * windows-nat.c (windows_add_thread): Use new.
10139 (windows_init_thread_list, windows_delete_thread): Use delete.
10140 (get_windows_debug_event): Update.
10141 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10142 destructor, and initializers.
10143
10144 2020-04-08 Tom Tromey <tromey@adacore.com>
10145
10146 * windows-nat.c (struct windows_thread_info): Remove.
10147 * nat/windows-nat.h: New file.
10148
10149 2020-04-08 Tom Tromey <tromey@adacore.com>
10150
10151 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10152 (thread_rec, windows_add_thread, windows_delete_thread)
10153 (windows_continue): Update.
10154
10155 2020-04-08 Tom Tromey <tromey@adacore.com>
10156
10157 * windows-nat.c (struct windows_thread_info): Remove typedef.
10158 (thread_head): Remove.
10159 (thread_list): New global.
10160 (thread_rec, windows_add_thread, windows_init_thread_list)
10161 (windows_delete_thread, windows_continue): Update.
10162
10163 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10164
10165 * windows-tdep.h (windows_init_abi): Add comment.
10166 (cygwin_init_abi): New declaration.
10167 * windows-tdep.c: Split signal enumeration in two, one for
10168 Windows and one for Cygwin.
10169 (windows_gdb_signal_to_target): Only deal with signal of the
10170 Windows OS ABI.
10171 (cygwin_gdb_signal_to_target): New function.
10172 (windows_init_abi): Rename to windows_init_abi_common, don't set
10173 gdb_signal_to_target gdbarch method. Add new new function with
10174 this name.
10175 (cygwin_init_abi): New function.
10176 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10177 comment. Don't call windows_init_abi.
10178 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10179 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10180 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10181 i386_windows_init_abi_common, don't call windows_init_abi. Add
10182 a new function of this name.
10183 (i386_cygwin_init_abi): New function.
10184 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10185 OS ABI Cygwin.
10186
10187 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10188
10189 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10190 parameter.c.
10191 (dwarf2_read_gdb_index): Update.
10192
10193 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10194
10195 * nbsd-tdep.c: Include "objfiles.h".
10196 (nbsd_skip_solib_resolver): New.
10197 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10198
10199 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10200
10201 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10202 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10203 with DW_LLE_base_addressx are being emitted in DWARFv5.
10204 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10205 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10206 unsigned integer.
10207
10208 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10209
10210 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10211 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10212 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10213 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10214 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10215 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10216 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10217
10218
10219 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10220
10221 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10222 (read_loclist_index): New function definition.
10223 (lookup_loclist_base): New function definition.
10224 (read_loclist_header): New function definition.
10225 (dwarf2_cu): Add loclist_base and loclist_header field.
10226 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10227 (read_full_die_1): Read the value of DW_AT_loclists_base.
10228 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10229 (read_attribute_value): Handle DW_FORM_loclistx.
10230 (skip_one_die): Handle DW_FORM_loclistx.
10231 (loclist_header): New structure declaration.
10232 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10233
10234 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10235
10236 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10237 constructor. Remove `addr` parameter from other constructor and
10238 add `per_cu` parameter.
10239 * dwarf2/read.c (create_partial_symtab): Update.
10240
10241 2020-04-07 Tom de Vries <tdevries@suse.de>
10242
10243 PR symtab/25796
10244 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10245 (partial_die_info::fixup): Inherit has_const_value.
10246
10247 2020-04-07 Tom de Vries <tdevries@suse.de>
10248
10249 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10250 symbols without address.
10251
10252 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10253
10254 * nbsd-nat.h (struct thread_info): Add forward declaration.
10255 (nbsd_nat_target::thread_alive): Add.
10256 (nbsd_nat_target::thread_name): Likewise.
10257 (nbsd_nat_target::update_thread_list): Likewise.
10258 (update_thread_list::post_attach): Likewise.
10259 (post_attach::pid_to_str): Likewise.
10260 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10261 (nbsd_thread_lister): Add.
10262 (nbsd_nat_target::thread_alive): Likewise.
10263 (nbsd_nat_target::thread_name): Likewise.
10264 (nbsd_add_threads): Likewise.
10265 (update_thread_list::post_attach): Likewise.
10266 (nbsd_nat_target::update_thread_list): Likewise.
10267 (post_attach::pid_to_str): Likewise.
10268
10269 2020-04-06 Tom Tromey <tromey@adacore.com>
10270
10271 * ada-valprint.c (print_variant_part): Extract the variant field.
10272 (print_field_values): Use the field as the outer value when
10273 recursing.
10274
10275 2020-04-06 Tom Tromey <tromey@adacore.com>
10276
10277 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10278 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10279 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10280 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10281 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10282
10283 2020-04-06 Tom Tromey <tromey@adacore.com>
10284
10285 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10286 TYPE_CODE_ERROR.
10287
10288 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10289
10290 * nbsd-tdep.c: Include "gdbarch.h".
10291 Define enum with NetBSD signal numbers.
10292 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10293 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10294 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10295 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10296 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10297 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10298 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10299 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10300 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10301 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10302 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10303 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10304
10305 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10306
10307 PR gdb/25325
10308 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10309
10310 2020-04-03 Tom Tromey <tromey@adacore.com>
10311
10312 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10313 Read constant block.
10314
10315 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10316
10317 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10318 (gdb_bfd_get_full_section_contents): New declaration.
10319 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10320 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10321 gdb_bfd_get_full_section_contents.
10322
10323 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10324
10325 * exec.c (build_section_table): Replace internal_error with
10326 gdb_assert.
10327 (section_table_xfer_memory_partial): Likewise.
10328 * mdebugread.c (parse_partial_symbols): Likewise.
10329 * psymtab.c (lookup_partial_symbol): Likewise.
10330 * utils.c (wrap_here): Likewise.
10331
10332 2020-04-02 Tom Tromey <tromey@adacore.com>
10333
10334 * f-lang.c (build_fortran_types): Use arch_type to initialize
10335 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10336
10337 2020-04-02 Tom Tromey <tromey@adacore.com>
10338
10339 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10340 of attributes.
10341
10342 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10343 Bernd Edlinger <bernd.edlinger@hotmail.de>
10344 Tom Tromey <tromey@adacore.com>
10345
10346 * buildsym.c (buildsym_compunit::record_line): Remove
10347 deduplication code.
10348
10349 2020-04-02 Tom de Vries <tdevries@suse.de>
10350
10351 PR ada/24671
10352 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10353
10354 2020-04-02 Tom de Vries <tdevries@suse.de>
10355
10356 * dwarf2/read.c (dwarf2_gdb_index_functions,
10357 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10358 NULL.
10359 * psymtab.c (psym_lookup_global_symbol_language): New function.
10360 (psym_functions): Init psym_lookup_global_symbol_language with
10361 psym_lookup_global_symbol_language.
10362 * symfile-debug.c (debug_sym_quick_functions): Init
10363 lookup_global_symbol_language with NULL.
10364 * symfile.c (set_initial_language): Remove fixme comment.
10365 * symfile.h (struct quick_symbol_functions): Add
10366 lookup_global_symbol_language.
10367 * symtab.c (find_quick_global_symbol_language): New function.
10368 (find_main_name): Use find_quick_global_symbol_language.
10369
10370 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10371
10372 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10373
10374 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10375
10376 * buildsym.c (record_line): Fix undefined behavior and preserve
10377 lines at eof.
10378
10379 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10380
10381 * buildsym.c (record_line): Fix the resizing condition.
10382
10383 2020-04-01 Tom Tromey <tom@tromey.com>
10384
10385 * value.h (value_literal_complex): Add comment.
10386 * valops.c (value_literal_complex): Refer to value.h.
10387
10388 2020-04-01 Tom Tromey <tom@tromey.com>
10389
10390 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10391 (scalar_type): New rule, from typebase.
10392 (typebase): Use scalar_type. Recognize complex types.
10393 (field_name): Handle FLOAT_KEYWORD.
10394 (ident_tokens): Add _Complex and __complex__.
10395
10396 2020-04-01 Tom Tromey <tom@tromey.com>
10397
10398 PR exp/25299:
10399 * valarith.c (promotion_type, complex_binop): New functions.
10400 (scalar_binop): Handle complex numbers. Use promotion_type.
10401 (value_pos, value_neg, value_complement): Handle complex numbers.
10402
10403 2020-04-01 Tom Tromey <tom@tromey.com>
10404
10405 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10406 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10407 (parse_number): Handle complex numbers.
10408
10409 2020-04-01 Tom Tromey <tom@tromey.com>
10410
10411 * c-valprint.c (c_decorations): Change complex suffix to "i".
10412
10413 2020-04-01 Tom Tromey <tom@tromey.com>
10414
10415 * valprint.c (generic_value_print_complex): Use accessors.
10416 * value.h (value_real_part, value_imaginary_part): Declare.
10417 * valops.c (value_real_part, value_imaginary_part): New
10418 functions.
10419 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10420
10421 2020-04-01 Tom Tromey <tom@tromey.com>
10422
10423 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10424 (read_range_type): Update.
10425 * mdebugread.c (basic_type): Update.
10426 * go-lang.c (build_go_types): Use init_complex_type.
10427 * gdbtypes.h (struct main_type) <complex_type>: New member.
10428 (init_complex_type): Update.
10429 (arch_complex_type): Don't declare.
10430 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10431 Make name if none given. Use alloc_type_copy. Look for cached
10432 complex type.
10433 (arch_complex_type): Remove.
10434 (gdbtypes_post_init): Use init_complex_type.
10435 * f-lang.c (build_fortran_types): Use init_complex_type.
10436 * dwarf2/read.c (read_base_type): Update.
10437 * d-lang.c (build_d_types): Use init_complex_type.
10438 * ctfread.c (read_base_type): Update.
10439
10440 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10441
10442 * infrun.c (stop_all_threads): Update assertion, plus when
10443 stopping threads, take into account that we might be trying
10444 to stop an all-stop target.
10445 (stop_waiting): Call 'stop_all_threads' if there exists a
10446 non-stop target.
10447
10448 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10449
10450 * target.h (exists_non_stop_target): New function declaration.
10451 * target.c (exists_non_stop_target): New function.
10452
10453 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10454
10455 PR gdb/24789
10456 * eval.c (is_integral_or_integral_reference): New function.
10457 (evaluate_subexp_standard): Allow integer references in
10458 pointer arithmetic.
10459
10460 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10461
10462 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10463 check for no ptid in the stop reply when the target is non-stop.
10464
10465 2020-04-01 Tom Tromey <tromey@adacore.com>
10466
10467 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10468 "name" parameter to rvalue reference. Initialize m_name_holder.
10469 <lookup_name_info>: New overloads.
10470 <name>: Return gdb::string_view.
10471 <c_str>: New method.
10472 <make_ignore_params>: Update.
10473 <search_name_hash>: Update.
10474 <language_lookup_name>: Return const char *.
10475 <m_name>: Change type.
10476 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10477 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10478 (lookup_name_info::match_any): Update.
10479 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10480 Update.
10481 * minsyms.c (linkage_name_str): Update.
10482 * language.c (default_symbol_name_matcher): Update.
10483 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10484 Update.
10485 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10486 (ada_lookup_name_info::ada_lookup_name_info): Update.
10487 (literal_symbol_name_matcher): Update.
10488
10489 2020-04-01 Tom Tromey <tromey@adacore.com>
10490
10491 * psymtab.c (psymtab_search_name): Remove function.
10492 (psym_lookup_symbol): Create search name and lookup name here.
10493 (lookup_partial_symbol): Remove "name" parameter; add
10494 lookup_name.
10495 (psym_expand_symtabs_for_function): Update.
10496
10497 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10498
10499 PR tui/25597:
10500 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10501
10502 2020-03-31 Tom Tromey <tromey@adacore.com>
10503
10504 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10505 memcpy.
10506
10507 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10508
10509 * features/riscv/32bit-csr.xml: Regenerated.
10510 * features/riscv/64bit-csr.xml: Regenerated.
10511
10512 2020-03-30 Tom Tromey <tromey@adacore.com>
10513
10514 * ada-valprint.c (print_variant_part): Update.
10515 * ada-lang.h (ada_which_variant_applies): Update.
10516 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10517 outer_valaddr parameters; replace with "outer" value parameter.
10518 (to_fixed_variant_branch_type): Update.
10519
10520 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10521
10522 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10523 <list>. Remove inclusion of observable.h.
10524 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10525 (struct arch_lwp_info): New struct.
10526 (class ppc_linux_dreg_interface): New class.
10527 (struct ppc_linux_process_info): New struct.
10528 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10529 <low_new_clone, low_forget_process, low_prepare_to_resume>
10530 <copy_thread_dreg_state, mark_thread_stale>
10531 <mark_debug_registers_changed, register_hw_breakpoint>
10532 <clear_hw_breakpoint, register_wp, clear_wp>
10533 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10534 <num_memory_accesses, get_trigger_type>
10535 <create_watchpoint_request, hwdebug_point_cmp>
10536 <init_arch_lwp_info, get_arch_lwp_info>
10537 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10538 methods.
10539 <struct ptid_hash>: New inner struct.
10540 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10541 members.
10542 (saved_dabr_value, hwdebug_info, max_slots_number)
10543 (struct hw_break_tuple, struct thread_points, ppc_threads)
10544 (have_ptrace_hwdebug_interface)
10545 (hwdebug_find_thread_points_by_tid)
10546 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10547 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10548 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10549 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10550 use m_dreg_interface.
10551 (hwdebug_point_cmp): Change to...
10552 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10553 reference arguments instead of pointers.
10554 (ppc_linux_nat_target::ranged_break_num_registers): Use
10555 m_dreg_interface.
10556 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10557 m_dreg_interface. Call register_hw_breakpoint.
10558 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10559 m_dreg_interface. Call clear_hw_breakpoint.
10560 (get_trigger_type): Change to...
10561 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10562 comment.
10563 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10564 use m_dreg_interface. Call register_hw_breakpoint.
10565 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10566 use m_dreg_interface. Call clear_hw_breakpoint.
10567 (can_use_watchpoint_cond_accel): Change to...
10568 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10569 method. Update comment, use m_dreg_interface and
10570 m_process_info.
10571 (calculate_dvc): Change to...
10572 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10573 m_dreg_interface.
10574 (num_memory_accesses): Change to...
10575 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10576 (check_condition): Change to...
10577 (ppc_linux_nat_target::check_condition): ...this method.
10578 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10579 comment, use m_dreg_interface.
10580 (create_watchpoint_request): Change to...
10581 (ppc_linux_nat_target::create_watchpoint_request): ...this
10582 method. Use m_dreg_interface.
10583 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10584 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10585 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10586 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10587 (ppc_linux_nat_target::low_forget_process)
10588 (ppc_linux_nat_target::low_new_fork)
10589 (ppc_linux_nat_target::low_new_clone)
10590 (ppc_linux_nat_target::low_delete_thread)
10591 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10592 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10593 only call mark_thread_stale.
10594 (ppc_linux_thread_exit): Remove.
10595 (ppc_linux_nat_target::stopped_data_address): Change to...
10596 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10597 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10598 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10599 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10600 comment. Call low_stopped_data_address.
10601 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10602 m_dreg_interface.
10603 (ppc_linux_nat_target::masked_watch_num_registers): Use
10604 m_dreg_interface.
10605 (ppc_linux_nat_target::copy_thread_dreg_state)
10606 (ppc_linux_nat_target::mark_thread_stale)
10607 (ppc_linux_nat_target::mark_debug_registers_changed)
10608 (ppc_linux_nat_target::register_hw_breakpoint)
10609 (ppc_linux_nat_target::clear_hw_breakpoint)
10610 (ppc_linux_nat_target::register_wp)
10611 (ppc_linux_nat_target::clear_wp)
10612 (ppc_linux_nat_target::init_arch_lwp_info)
10613 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10614 (_initialize_ppc_linux_nat): Remove observer callback.
10615
10616 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10617
10618 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10619 (ppc_linux_nat_target::auxv_parse)
10620 (ppc_linux_nat_target::read_description)
10621 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10622 Move up.
10623
10624 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10625
10626 * linux-nat.h (low_new_clone): New method.
10627 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10628
10629 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10630
10631 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10632 (dbx_expand_psymtab): ... this.
10633 (start_psymtab): Update.
10634 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10635 (mdebug_expand_psymtab): ... this.
10636 (parse_partial_symbols): Update.
10637 (new_psymtab): Update.
10638 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10639 (xcoff_expand_psymtab): ... this.
10640 (xcoff_start_psymtab): Update.
10641
10642 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10643
10644 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10645 <expand_dependencies>: ... this.
10646 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10647 (partial_symtab::expand_dependencies): ... this.
10648 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10649 Update.
10650 (dwarf2_psymtab::expand_psymtab): Update.
10651 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10652 * mdebugread.c (psymtab_to_symtab_1): Update.
10653 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10654
10655 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10656
10657 * psympriv.h (discard_psymtab): Remove.
10658 * dbxread.c (dbx_end_psymtab): Update.
10659 * xcoffread.c (xcoff_end_psymtab): Update.
10660
10661 2020-03-28 Tom Tromey <tom@tromey.com>
10662
10663 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10664 comment.
10665
10666 2020-03-28 Tom Tromey <tom@tromey.com>
10667
10668 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10669
10670 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10671
10672 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10673
10674 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10675
10676 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10677
10678 2020-03-26 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10681 (mark_common_block_symbol_computed, read_tag_string_type)
10682 (attr_to_dynamic_prop, read_subrange_type): Update.
10683 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10684 to be methods on struct attribute.
10685 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10686 (read_call_site_scope, partial_die_info::read)
10687 (partial_die_info::read, lookup_die_type, follow_die_ref):
10688 Update.
10689 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10690 from dwarf2_get_ref_die_offset.
10691 (attribute::constant_value): New method, from
10692 dwarf2_get_attr_constant_value.
10693 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10694 Declare method.
10695 <constant_value>: New method.
10696
10697 2020-03-26 Tom Tromey <tom@tromey.com>
10698
10699 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10700 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10701 (dwarf_type_encoding_name): Move to stringify.c.
10702 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10703 * dwarf2/stringify.c: New file.
10704 * dwarf2/stringify.h: New file.
10705
10706 2020-03-26 Tom Tromey <tom@tromey.com>
10707
10708 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10709 Rewrite.
10710
10711 2020-03-26 Tom Tromey <tom@tromey.com>
10712
10713 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10714 methods.
10715 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10716 (lookup_ranges_base): Likewise.
10717 (read_cutu_die_from_dwo, read_full_die_1): Update.
10718
10719 2020-03-26 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/read.c (read_import_statement, read_file_scope)
10722 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10723 (read_lexical_block_scope, read_call_site_scope)
10724 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10725 (handle_struct_member_die, process_structure_scope)
10726 (update_enumeration_type_from_children)
10727 (process_enumeration_scope, read_array_type, read_common_block)
10728 (read_namespace, read_module, read_subroutine_type): Update.
10729 (sibling_die): Remove.
10730
10731 2020-03-26 Tom Tromey <tom@tromey.com>
10732
10733 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10734 (build_type_psymtabs_reader, read_structure_type)
10735 (read_enumeration_type, read_full_die_1): Update.
10736 (dwarf2_attr_no_follow): Move to die.h.
10737 * dwarf2/die.h (struct die_info) <attr>: New method.
10738
10739 2020-03-26 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10742 <base_address>: Now an optional.
10743 (dwarf2_find_base_address, dwarf2_rnglists_process)
10744 (dwarf2_ranges_process, fill_in_loclist_baton)
10745 (dwarf2_symbol_mark_computed): Update.
10746
10747 2020-03-26 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/read.c (struct die_info): Move to die.h.
10750 * dwarf2/die.h: New file.
10751
10752 2020-03-26 Tom Tromey <tom@tromey.com>
10753
10754 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10755 * dwarf2/read.c
10756 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10757 Move to line-header.c.
10758 (read_checked_initial_length_and_offset, read_formatted_entries):
10759 Likewise.
10760 (dwarf_decode_line_header): Split into two.
10761 * dwarf2/line-header.c
10762 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10763 Move from read.c.
10764 (read_checked_initial_length_and_offset, read_formatted_entries):
10765 Likewise.
10766 (dwarf_decode_line_header): New function, split from read.c.
10767
10768 2020-03-26 Tom Tromey <tom@tromey.com>
10769
10770 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10771 Declare method.
10772 * dwarf2/read.c (read_attribute_value): Update.
10773 (dwarf2_per_objfile::read_line_string): Rename from
10774 read_indirect_line_string.
10775 (read_formatted_entries): Update.
10776
10777 2020-03-26 Tom Tromey <tom@tromey.com>
10778
10779 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10780 variable.
10781
10782 2020-03-26 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10785 const.
10786 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10787 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10788 parameter const.
10789
10790 2020-03-26 Tom Tromey <tom@tromey.com>
10791
10792 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10793 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10794 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10795 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10796
10797 2020-03-26 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10800 file_names_size, file_full_name, file_file_name>: Use const.
10801 <file_name_at, file_names>: Add const overload.
10802 * dwarf2/line-header.c (line_header::file_file_name)
10803 (line_header::file_full_name): Update.
10804
10805 2020-03-26 Tom Tromey <tom@tromey.com>
10806
10807 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10808 (macro_start_file, consume_improper_spaces)
10809 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10810 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10811 (dwarf_decode_macros): Move to macro.c.
10812 * dwarf2/macro.c: New file.
10813 * dwarf2/macro.h: New file.
10814 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10815
10816 2020-03-26 Tom Tromey <tom@tromey.com>
10817
10818 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10819 method.
10820 * dwarf2/section.c: New method. From
10821 read_indirect_string_at_offset_from.
10822 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10823 (read_indirect_string_at_offset_from): Move to section.c.
10824 (read_indirect_string_at_offset): Rewrite.
10825 (read_indirect_line_string_at_offset): Remove.
10826 (read_indirect_string, read_indirect_line_string)
10827 (dwarf_decode_macro_bytes): Update.
10828
10829 2020-03-26 Tom Tromey <tom@tromey.com>
10830
10831 * dwarf2/section.h (struct dwarf2_section_info)
10832 <overload_complaint>: Declare.
10833 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10834 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10835 Rename from dwarf2_section_buffer_overflow_complaint.
10836 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10837 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10838
10839 2020-03-26 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10842 Declare.
10843 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10844 Move from read.c.
10845 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10846 to section.c.
10847
10848 2020-03-26 Tom Tromey <tom@tromey.com>
10849
10850 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10851
10852 2020-03-26 Tom Tromey <tom@tromey.com>
10853
10854 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10855 "builder".
10856 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10857 parameter.
10858 (dwarf_decode_macros): Update.
10859
10860 2020-03-26 Tom Tromey <tom@tromey.com>
10861
10862 * dwarf2/read.c (read_attribute_value): Update.
10863 (read_indirect_string_from_dwz): Move to dwz.c; change into
10864 method.
10865 (dwarf_decode_macro_bytes): Update.
10866 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10867 * dwarf2/dwz.c: New file.
10868 * Makefile.in (COMMON_SFILES): Add dwz.c.
10869
10870 2020-03-26 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10873 * dwarf2/read.c: Add include.
10874 * dwarf2/index-write.c: Add include.
10875 * dwarf2/index-cache.c: Add include.
10876 * dwarf2/dwz.h: New file.
10877
10878 2020-03-25 Tom Tromey <tom@tromey.com>
10879
10880 * compile/compile-object-load.c (get_out_value_type): Mention
10881 correct symbol name in error message.
10882
10883 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10884
10885 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10886
10887 2020-03-25 Tom de Vries <tdevries@suse.de>
10888
10889 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10890 * symmisc.c (dump_symtab_1): Print user and includes fields.
10891 (maintenance_info_symtabs): Same.
10892
10893 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10894
10895 PR gdb/25534
10896 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10897 (riscv_regcache_cooked_write): New function.
10898 (riscv_push_dummy_call): Use new function.
10899 (riscv_return_value): Likewise.
10900
10901 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10902
10903 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10904 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10905 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10906 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10907 * infrun.c (follow_fork): Likewise.
10908 (follow_fork_inferior): Likewise.
10909 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10910 * linux-nat.h (class linux_nat_target): Likewise.
10911 * remote.c (class remote_target) <follow_fork>: Likewise.
10912 (remote_target::follow_fork): Likewise.
10913 * target-delegates.c: Re-generate.
10914 * target.c (default_follow_fork): Likewise.
10915 (target_follow_fork): Likewise.
10916 * target.h (struct target_ops) <follow_fork>: Likewise.
10917 (target_follow_fork): Likewise.
10918
10919 2020-03-24 Tom de Vries <tdevries@suse.de>
10920
10921 * psymtab.c (maintenance_info_psymtabs): Print user field.
10922
10923 2020-03-20 Tom Tromey <tromey@adacore.com>
10924
10925 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10926 const.
10927 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10928 const.
10929
10930 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10931
10932 * ptrace.m4: Don't check for ptrace declaration.
10933 * config.in: Re-generate.
10934 * configure: Re-generate.
10935 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10936 not defined.
10937
10938 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10939
10940 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10941 `PTRACE_TYPE_RET'.
10942 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10943 * sparc-nat.c (gdb_ptrace): Likewise.
10944 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10945
10946 2020-03-20 Tom Tromey <tromey@adacore.com>
10947
10948 * c-exp.y (lex_one_token): Fix assert.
10949
10950 2020-03-20 Tom Tromey <tromey@adacore.com>
10951
10952 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10953 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10954 strncpy call.
10955
10956 2020-03-20 Tom Tromey <tromey@adacore.com>
10957
10958 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10959
10960 2020-03-20 Tom Tromey <tromey@adacore.com>
10961
10962 * ada-valprint.c (print_variant_part): Remove parameters; switch
10963 to value-based API.
10964 (print_field_values): Likewise.
10965 (ada_val_print_struct_union): Likewise.
10966 (ada_value_print_1): Update.
10967
10968 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10969
10970 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10971 nbsd_nat_target instead of inf_ptrace_target.
10972 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10973 nbsd_nat_target.
10974
10975 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10976
10977 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10978 it to the ptrace call.
10979 * (store_registers): Likewise.
10980
10981 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10982
10983 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10984 it to the ptrace call.
10985 * (store_registers): Likewise.
10986
10987 2020-03-19 Luis Machado <luis.machado@linaro.org>
10988
10989 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10990 valid, fetch vg value from ptrace.
10991
10992 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10993 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10994 * inf-ptrace.c: Likewise.
10995 * (gdb_ptrace): Add.
10996 * (inf_ptrace_target::resume): Update.
10997 * (inf_ptrace_target::xfer_partial): Likewise.
10998 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10999 * (inf_ptrace_peek_poke): Update.
11000
11001 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11002
11003 * x86-bsd-nat.c (gdb_ptrace): New.
11004 * (x86bsd_dr_set): Add new argument `ptid'.
11005 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11006 x86bsd_dr_set_addr): Update.
11007
11008 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11009
11010 * remote.c (remote_target::process_stop_reply): Handle events for
11011 all threads differently.
11012
11013 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11014
11015 * completer.c (completion_tracker::remove_completion): Define new
11016 function.
11017 * completer.h (completion_tracker::remove_completion): Declare new
11018 function.
11019 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11020 when adding a C++ function symbol.
11021
11022 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11023
11024 * completer.c (completion_tracker::completion_hash_entry): Define
11025 new class.
11026 (advance_to_filename_complete_word_point): Call
11027 recompute_lowest_common_denominator.
11028 (completion_tracker::completion_tracker): Call discard_completions
11029 to setup the hash table.
11030 (completion_tracker::discard_completions): Allow for being called
11031 from the constructor, pass new equal function, and element deleter
11032 when constructing the hash table. Initialise new class member
11033 variables.
11034 (completion_tracker::maybe_add_completion): Remove use of
11035 m_entries_vec, and store more information into m_entries_hash.
11036 (completion_tracker::recompute_lcd_visitor): New function, most
11037 content taken from...
11038 (completion_tracker::recompute_lowest_common_denominator):
11039 ...here, this now just visits each item in the hash calling the
11040 above visitor.
11041 (completion_tracker::build_completion_result): Remove use of
11042 m_entries_vec, call recompute_lowest_common_denominator.
11043 * completer.h (completion_tracker::have_completions): Remove use
11044 of m_entries_vec.
11045 (completion_tracker::completion_hash_entry): Declare new class.
11046 (completion_tracker::recompute_lowest_common_denominator): Change
11047 function signature.
11048 (completion_tracker::recompute_lcd_visitor): Declare new function.
11049 (completion_tracker::m_entries_vec): Delete.
11050 (completion_tracker::m_entries_hash): Initialize to NULL.
11051 (completion_tracker::m_lowest_common_denominator_valid): New
11052 member variable.
11053 (completion_tracker::m_lowest_common_denominator_max_length): New
11054 member variable.
11055
11056 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11057
11058 * regformats/regdef.h: Put reg in gdb namespace.
11059
11060 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11061
11062 * i386-bsd-nat.c (gdb_ptrace): New.
11063 * (i386bsd_fetch_inferior_registers,
11064 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11065 * (i386bsd_fetch_inferior_registers,
11066 i386bsd_store_inferior_registers) Use gdb_ptrace.
11067
11068 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11069
11070 * amd64-bsd-nat.c (gdb_ptrace): New.
11071 * (amd64bsd_fetch_inferior_registers,
11072 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11073 * (amd64bsd_fetch_inferior_registers,
11074 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11075
11076 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11077
11078 * user-regs.c (user_reg::read): Rename to...
11079 (user_reg::xread): ...this.
11080 * (append_user_reg): Rename argument `read' to `xread'.
11081 * (user_reg_add_builtin): Likewise.
11082 * (user_reg_add): Likewise.
11083 * (value_of_user_reg): Likewise.
11084
11085 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11086
11087 * sparc-nat.c (gdb_ptrace): New.
11088 * sparc-nat.c (sparc_fetch_inferior_registers)
11089 (sparc_store_inferior_registers) Remove obsolete comment.
11090 * sparc-nat.c (sparc_fetch_inferior_registers)
11091 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11092 * sparc-nat.c (sparc_fetch_inferior_registers)
11093 (sparc_store_inferior_registers) Use gdb_ptrace.
11094
11095 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11096
11097 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11098 it to the ptrace call.
11099 * sh-nbsd-nat.c (store_registers): Likewise.
11100
11101 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11102
11103 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11104 nbsd_nat_target instead of inf_ptrace_target.
11105 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11106 nbsd_nat_target.
11107
11108 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11109
11110 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11111
11112 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11113
11114 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11115 <sys/sysctl.h>.
11116 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11117
11118 2020-03-17 Tom de Vries <tdevries@suse.de>
11119
11120 PR gdb/23710
11121 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11122 fields.
11123 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11124 fields.
11125 (process_imported_unit_die): Skip import of c++ CUs.
11126
11127 2020-03-16 Tom Tromey <tom@tromey.com>
11128
11129 * p-valprint.c (pascal_object_print_value): Initialize
11130 base_value.
11131
11132 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11133 Shahab Vahedi <shahab@synopsys.com>
11134
11135 * Makefile.in: Add arch/arc.o
11136 * configure.tgt: Likewise.
11137 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11138 (_initialize_arc_tdep): Don't initialize old target descriptions.
11139 (arc_read_description): New function to cache target descriptions.
11140 * arc-tdep.h (arc_read_description): Add proto type.
11141 * arch/arc.c: New file.
11142 * arch/arc.h: Likewise.
11143 * features/Makefile: Replace old target descriptions with new.
11144 * features/arc-arcompact.c: Remove.
11145 * features/arc-arcompact.xml: Likewise.
11146 * features/arc-v2.c: Likewise
11147 * features/arc-v2.xml: Likewise
11148 * features/arc/aux-arcompact.xml: New file.
11149 * features/arc/aux-v2.xml: Likewise.
11150 * features/arc/core-arcompact.xml: Likewise.
11151 * features/arc/core-v2.xml: Likewise.
11152 * features/arc/aux-arcompact.c: Generate.
11153 * features/arc/aux-v2.c: Likewise.
11154 * features/arc/core-arcompact.c: Likewise.
11155 * features/arc/core-v2.c: Likewise.
11156 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11157
11158 2020-03-16 Tom Tromey <tromey@adacore.com>
11159
11160 PR gdb/25663:
11161 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11162 putting value into bcache.
11163
11164 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11165
11166 PR gdb/21500
11167 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11168 to...
11169 (amd64_windows_init_abi_common): ... this. Don't set size of
11170 long type.
11171 (amd64_windows_init_abi): New function.
11172 (amd64_cygwin_init_abi): New function.
11173 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11174 the Cygwin OS ABI.
11175 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11176 comment.
11177
11178 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11179
11180 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11181 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11182 (pe_import_directory_entry): New struct type.
11183 (is_linked_with_cygwin_dll): New function.
11184 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11185 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11186 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11187
11188 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11189
11190 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11191 i386_cygwin_core_osabi_sniffer.
11192
11193 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11194
11195 * i386-cygwin-tdep.c: Rename to...
11196 * i386-windows-tdep.c: ... this.
11197 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11198 i386-windows-tdep.c.
11199 * configure.tgt: Likewise.
11200
11201 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11202
11203 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11204 * osabi.c (gdb_osabi_names): Add "Windows".
11205 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11206 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11207 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11208 i386_cygwin_osabi_sniffer.
11209 (_initialize_i386_cygwin_tdep): Register OS ABI
11210 GDB_OSABI_WINDOWS for i386.
11211 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11212 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11213 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11214 for x86-64.
11215 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11216 when the target matches '*-*-mingw*'.
11217
11218 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * defs.h (enum gdb_osabi): Move to...
11221 * osabi.h (enum gdb_osabi): ... here.
11222 * gdbarch.sh: Include osabi.h in gdbarch.h.
11223 * gdbarch.h: Re-generate.
11224
11225 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11226
11227 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11228 function.
11229 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11230
11231 2020-03-14 Tom Tromey <tom@tromey.com>
11232
11233 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11234 for C++.
11235 (c_type_print_modifier): Likewise. Add "language" parameter.
11236 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11237 (c_type_print_base_1): Update.
11238 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11239 constants.
11240 * type-stack.c (type_stack::insert): Handle tp_atomic and
11241 tp_restrict.
11242 (type_stack::follow_type_instance_flags): Likewise.
11243 (type_stack::follow_types): Likewise. Merge type-following code.
11244 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11245 (space_identifier, cv_with_space_id)
11246 (const_or_volatile_or_space_identifier_noopt)
11247 (const_or_volatile_or_space_identifier): Remove.
11248 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11249 rules.
11250 (ptr_operator, typebase): Update.
11251 (enum token_flag) <FLAG_C>: New constant.
11252 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11253 "_Atomic".
11254 (lex_one_token): Handle FLAG_C.
11255
11256 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11257
11258 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11259 it to the ptrace call.
11260 * m68k-bsd-nat.c (store_registers): Likewise.
11261
11262 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11263
11264 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11265 gdb_byte *.
11266 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11267 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11268 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11269
11270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11271
11272 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11273 nbsd_nat_target instead of inf_ptrace_target.
11274 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11275 nbsd_nat_target.
11276
11277 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11278
11279 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11280 register_t.
11281
11282 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11283
11284 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11285 it to the ptrace call.
11286 * alpha-bsd-nat.c (store_registers): Likewise.
11287
11288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11289
11290 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11291 includes.
11292 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11293 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11294 fill_fpregset): Likewise.
11295
11296 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11297
11298 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11299 nbsd_nat_target instead of inf_ptrace_target.
11300 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11301 nbsd_nat_target.
11302
11303 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11304
11305 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11306 register_t.
11307
11308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11309
11310 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11311 it to the ptrace call.
11312 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11313 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11314 * arm-nbsd-nat.c (store_register): Likewise.
11315 * arm-nbsd-nat.c (store_regs): Likewise.
11316 * arm-nbsd-nat.c (store_fp_register): Likewise.
11317 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11318
11319 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11320
11321 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11322 nbsd_nat_target instead of inf_ptrace_target.
11323 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11324 nbsd_nat_target.
11325
11326 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11327
11328 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11329 it to the ptrace call.
11330 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11331
11332 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11333
11334 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11335 it to the ptrace call.
11336 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11337
11338 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11339
11340 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11341 gdb_byte *.
11342 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11343
11344 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11345
11346 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11347 instead of inf_ptrace_target.
11348 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11349 nbsd_nat_target.
11350
11351 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11352
11353 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11354 register_t.
11355
11356 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11357
11358 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11359 register_t.
11360
11361 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11362
11363 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11364 register_t.
11365
11366 2020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * value.h (val_print): Don't declare.
11369 * valprint.h (val_print_array_elements)
11370 (val_print_scalar_formatted, generic_val_print): Don't declare.
11371 * valprint.c (generic_val_print_array): Take a struct value.
11372 (generic_val_print_ptr, generic_val_print_memberptr)
11373 (generic_val_print_bool, generic_val_print_int)
11374 (generic_val_print_char, generic_val_print_complex)
11375 (generic_val_print): Remove.
11376 (generic_value_print): Update.
11377 (do_val_print): Remove unused parameters. Don't call
11378 la_val_print.
11379 (val_print): Remove.
11380 (common_val_print): Update. Don't call value_check_printable.
11381 (val_print_scalar_formatted, val_print_array_elements): Remove.
11382 * rust-lang.c (rust_val_print): Remove.
11383 (rust_language_defn): Update.
11384 * p-valprint.c (pascal_val_print): Remove.
11385 (pascal_value_print_inner): Update.
11386 (pascal_object_print_val_fields, pascal_object_print_val):
11387 Remove.
11388 (pascal_object_print_static_field): Update.
11389 * p-lang.h (pascal_val_print): Don't declare.
11390 * p-lang.c (pascal_language_defn): Update.
11391 * opencl-lang.c (opencl_language_defn): Update.
11392 * objc-lang.c (objc_language_defn): Update.
11393 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11394 * m2-lang.h (m2_val_print): Don't declare.
11395 * m2-lang.c (m2_language_defn): Update.
11396 * language.h (struct language_defn) <la_val_print>: Remove.
11397 * language.c (unk_lang_value_print_inner): Rename. Change
11398 argument types.
11399 (unknown_language_defn, auto_language_defn): Update.
11400 * go-valprint.c (go_val_print): Remove.
11401 * go-lang.h (go_val_print): Don't declare.
11402 * go-lang.c (go_language_defn): Update.
11403 * f-valprint.c (f_val_print): Remove.
11404 * f-lang.h (f_value_print): Don't declare.
11405 * f-lang.c (f_language_defn): Update.
11406 * d-valprint.c (d_val_print): Remove.
11407 * d-lang.h (d_value_print): Don't declare.
11408 * d-lang.c (d_language_defn): Update.
11409 * cp-valprint.c (cp_print_value_fields)
11410 (cp_print_value_fields_rtti, cp_print_value): Remove.
11411 (cp_print_static_field): Update.
11412 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11413 (c_val_print_struct, c_val_print_union, c_val_print_int)
11414 (c_val_print_memberptr, c_val_print): Remove.
11415 * c-lang.h (c_val_print_array, cp_print_value_fields)
11416 (cp_print_value_fields_rtti): Don't declare.
11417 * c-lang.c (c_language_defn, cplus_language_defn)
11418 (asm_language_defn, minimal_language_defn): Update.
11419 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11420 (ada_val_print_enum): Take a struct value.
11421 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11422 (ada_val_print): Remove.
11423 (ada_value_print_1): Update.
11424 (printable_val_type): Remove.
11425 * ada-lang.h (ada_val_print): Don't declare.
11426 * ada-lang.c (ada_language_defn): Update.
11427
11428 2020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * valprint.c (do_val_print): Update.
11431 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11432 a struct value.
11433 (value_to_value_object_no_release): Declare.
11434 * python/py-value.c (value_to_value_object_no_release): New
11435 function.
11436 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11437 struct value.
11438 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11439 function.
11440 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11441 a struct value.
11442 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11443 Declare.
11444 (gdbscm_apply_val_pretty_printer): Take a struct value.
11445 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11446 value.
11447 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11448 value.
11449 * extension-priv.h (struct extension_language_ops)
11450 <apply_val_pretty_printer>: Take a struct value.
11451 * cp-valprint.c (cp_print_value): Create a struct value.
11452 (cp_print_value): Update.
11453
11454 2020-03-13 Tom Tromey <tom@tromey.com>
11455
11456 * ada-valprint.c (print_field_values): Call common_val_print.
11457
11458 2020-03-13 Tom Tromey <tom@tromey.com>
11459
11460 * ada-valprint.c (val_print_packed_array_elements): Remove
11461 bitoffset and val parameters. Call common_val_print.
11462 (ada_val_print_string): Remove offset, address, and original_value
11463 parameters.
11464 (ada_val_print_array): Update.
11465 (ada_value_print_array): New function.
11466 (ada_value_print_1): Call it.
11467
11468 2020-03-13 Tom Tromey <tom@tromey.com>
11469
11470 * ada-valprint.c (ada_value_print): Use common_val_print.
11471
11472 2020-03-13 Tom Tromey <tom@tromey.com>
11473
11474 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11475
11476 2020-03-13 Tom Tromey <tom@tromey.com>
11477
11478 * ada-valprint.c (ada_value_print_num): New function.
11479 (ada_value_print_1): Use it.
11480
11481 2020-03-13 Tom Tromey <tom@tromey.com>
11482
11483 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11484
11485 2020-03-13 Tom Tromey <tom@tromey.com>
11486
11487 * ada-valprint.c (ada_value_print_ptr): New function.
11488 (ada_value_print_1): Use it.
11489
11490 2020-03-13 Tom Tromey <tom@tromey.com>
11491
11492 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11493 call common_val_print.
11494 (ada_val_print_1): Update.
11495 (ada_value_print_1): New function.
11496 (ada_value_print_inner): Rewrite.
11497
11498 2020-03-13 Tom Tromey <tom@tromey.com>
11499
11500 * cp-valprint.c (cp_print_value_fields): Update.
11501 (cp_print_value): New function.
11502
11503 2020-03-13 Tom Tromey <tom@tromey.com>
11504
11505 * m2-valprint.c (m2_value_print_inner): Use
11506 cp_print_value_fields.
11507 * cp-valprint.c (cp_print_value_fields): New function.
11508 * c-valprint.c (c_value_print_struct): New function.
11509 (c_value_print_inner): Use c_value_print_struct.
11510 * c-lang.h (cp_print_value_fields): Declare.
11511
11512 2020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * c-valprint.c (c_value_print_array): New function.
11515 (c_value_print_inner): Use it.
11516
11517 2020-03-13 Tom Tromey <tom@tromey.com>
11518
11519 * c-valprint.c (c_value_print_memberptr): New function.
11520 (c_value_print_inner): Use it.
11521
11522 2020-03-13 Tom Tromey <tom@tromey.com>
11523
11524 * c-valprint.c (c_value_print_int): New function.
11525 (c_value_print_inner): Use it.
11526
11527 2020-03-13 Tom Tromey <tom@tromey.com>
11528
11529 * c-valprint.c (c_value_print_ptr): New function.
11530 (c_value_print_inner): Use it.
11531
11532 2020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * c-valprint.c (c_value_print_inner): Rewrite.
11535
11536 2020-03-13 Tom Tromey <tom@tromey.com>
11537
11538 * valprint.c (generic_value_print_complex): New function.
11539 (generic_value_print): Use it.
11540
11541 2020-03-13 Tom Tromey <tom@tromey.com>
11542
11543 * valprint.c (generic_val_print_float): Don't call
11544 val_print_scalar_formatted.
11545 (generic_val_print, generic_value_print): Update.
11546
11547 2020-03-13 Tom Tromey <tom@tromey.com>
11548
11549 * valprint.c (generic_value_print_char): New function
11550 (generic_value_print): Use it.
11551
11552 2020-03-13 Tom Tromey <tom@tromey.com>
11553
11554 * valprint.c (generic_value_print_int): New function.
11555 (generic_value_print): Use it.
11556
11557 2020-03-13 Tom Tromey <tom@tromey.com>
11558
11559 * valprint.c (generic_value_print_bool): New function.
11560 (generic_value_print): Use it.
11561
11562 2020-03-13 Tom Tromey <tom@tromey.com>
11563
11564 * valprint.c (generic_val_print_func): Simplify.
11565 (generic_val_print, generic_value_print): Update.
11566
11567 2020-03-13 Tom Tromey <tom@tromey.com>
11568
11569 * valprint.c (generic_val_print_flags): Remove.
11570 (generic_val_print, generic_value_print): Update.
11571 (val_print_type_code_flags): Add original_value parameter.
11572
11573 2020-03-13 Tom Tromey <tom@tromey.com>
11574
11575 * valprint.c (generic_val_print): Update.
11576 (generic_value_print): Update.
11577 * valprint.c (generic_val_print_enum): Don't call
11578 val_print_scalar_formatted.
11579
11580 2020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11583 * valprint.c (generic_value_print_ptr): New function.
11584
11585 2020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * valprint.c (generic_value_print): Rewrite.
11588
11589 2020-03-13 Tom Tromey <tom@tromey.com>
11590
11591 * p-valprint.c (pascal_object_print_value_fields)
11592 (pascal_object_print_value): New functions.
11593
11594 2020-03-13 Tom Tromey <tom@tromey.com>
11595
11596 * p-valprint.c (pascal_value_print_inner): Rewrite.
11597
11598 2020-03-13 Tom Tromey <tom@tromey.com>
11599
11600 * f-valprint.c (f_value_print_innner): Rewrite.
11601
11602 2020-03-13 Tom Tromey <tom@tromey.com>
11603
11604 * m2-valprint.c (m2_print_unbounded_array): New overload.
11605 (m2_print_unbounded_array): Update.
11606 (m2_print_array_contents): Take a struct value.
11607 (m2_value_print_inner): Rewrite.
11608
11609 2020-03-13 Tom Tromey <tom@tromey.com>
11610
11611 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11612 (d_value_print_inner): New function.
11613 * d-lang.h (d_value_print_inner): Declare.
11614 * d-lang.c (d_language_defn): Use d_value_print_inner.
11615
11616 2020-03-13 Tom Tromey <tom@tromey.com>
11617
11618 * go-valprint.c (go_value_print_inner): New function.
11619 * go-lang.h (go_value_print_inner): Declare.
11620 * go-lang.c (go_language_defn): Use go_value_print_inner.
11621
11622 2020-03-13 Tom Tromey <tom@tromey.com>
11623
11624 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11625 API.
11626 (rust_val_print): Rewrite.
11627 (rust_value_print_inner): New function, from rust_val_print.
11628 (rust_language_defn): Use rust_value_print_inner.
11629
11630 2020-03-13 Tom Tromey <tom@tromey.com>
11631
11632 * ada-valprint.c (ada_value_print_inner): New function.
11633 * ada-lang.h (ada_value_print_inner): Declare.
11634 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11635
11636 2020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * f-valprint.c (f_value_print_innner): New function.
11639 * f-lang.h (f_value_print_innner): Declare.
11640 * f-lang.c (f_language_defn): Use f_value_print_innner.
11641
11642 2020-03-13 Tom Tromey <tom@tromey.com>
11643
11644 * p-valprint.c (pascal_value_print_inner): New function.
11645 * p-lang.h (pascal_value_print_inner): Declare.
11646 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11647
11648 2020-03-13 Tom Tromey <tom@tromey.com>
11649
11650 * m2-valprint.c (m2_value_print_inner): New function.
11651 * m2-lang.h (m2_value_print_inner): Declare.
11652 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11653
11654 2020-03-13 Tom Tromey <tom@tromey.com>
11655
11656 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11657 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11658 * c-valprint.c (c_value_print_inner): New function.
11659 * c-lang.h (c_value_print_inner): Declare.
11660 * c-lang.c (c_language_defn, cplus_language_defn)
11661 (asm_language_defn, minimal_language_defn): Use
11662 c_value_print_inner.
11663
11664 2020-03-13 Tom Tromey <tom@tromey.com>
11665
11666 * p-valprint.c (pascal_object_print_value_fields): Now static.
11667 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11668
11669 2020-03-13 Tom Tromey <tom@tromey.com>
11670
11671 * c-valprint.c (c_val_print_array): Simplify.
11672
11673 2020-03-13 Tom Tromey <tom@tromey.com>
11674
11675 * valprint.c (value_print_array_elements): New function.
11676 * valprint.h (value_print_array_elements): Declare.
11677
11678 2020-03-13 Tom Tromey <tom@tromey.com>
11679
11680 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11681 * mips-tdep.c (mips_print_register): Use
11682 value_print_scalar_formatted.
11683
11684 2020-03-13 Tom Tromey <tom@tromey.com>
11685
11686 * valprint.h (value_print_scalar_formatted): Declare.
11687 * valprint.c (value_print_scalar_formatted): New function.
11688
11689 2020-03-13 Tom Tromey <tom@tromey.com>
11690
11691 * valprint.h (generic_value_print): Declare.
11692 * valprint.c (generic_value_print): New function.
11693
11694 2020-03-13 Tom Tromey <tom@tromey.com>
11695
11696 * valprint.c (do_val_print): Call la_value_print_inner, if
11697 available.
11698 * rust-lang.c (rust_language_defn): Update.
11699 * p-lang.c (pascal_language_defn): Update.
11700 * opencl-lang.c (opencl_language_defn): Update.
11701 * objc-lang.c (objc_language_defn): Update.
11702 * m2-lang.c (m2_language_defn): Update.
11703 * language.h (struct language_defn) <la_value_print_inner>: New
11704 member.
11705 * language.c (unknown_language_defn, auto_language_defn): Update.
11706 * go-lang.c (go_language_defn): Update.
11707 * f-lang.c (f_language_defn): Update.
11708 * d-lang.c (d_language_defn): Update.
11709 * c-lang.c (c_language_defn, cplus_language_defn)
11710 (asm_language_defn, minimal_language_defn): Update.
11711 * ada-lang.c (ada_language_defn): Update.
11712
11713 2020-03-13 Tom Tromey <tom@tromey.com>
11714
11715 * c-valprint.c (c_value_print): Use common_val_print.
11716
11717 2020-03-13 Tom Tromey <tom@tromey.com>
11718
11719 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11720
11721 2020-03-13 Tom Tromey <tom@tromey.com>
11722
11723 * f-valprint.c (f77_print_array_1, f_val_print): Use
11724 common_val_print.
11725
11726 2020-03-13 Tom Tromey <tom@tromey.com>
11727
11728 * riscv-tdep.c (riscv_print_one_register_info): Use
11729 common_val_print.
11730
11731 2020-03-13 Tom Tromey <tom@tromey.com>
11732
11733 * mi/mi-main.c (output_register): Use common_val_print.
11734
11735 2020-03-13 Tom Tromey <tom@tromey.com>
11736
11737 * infcmd.c (default_print_one_register_info): Use
11738 common_val_print.
11739
11740 2020-03-13 Tom Tromey <tom@tromey.com>
11741
11742 * valprint.h (common_val_print_checked): Declare.
11743 * valprint.c (common_val_print_checked): New function.
11744 * stack.c (print_frame_arg): Use common_val_print_checked.
11745
11746 2020-03-13 Tom Tromey <tom@tromey.com>
11747
11748 * valprint.c (do_val_print): New function, from val_print.
11749 (val_print): Use do_val_print.
11750 (common_val_print): Use do_val_print.
11751
11752 2020-03-13 Tom Tromey <tom@tromey.com>
11753
11754 * valprint.c (value_print): Use scoped_value_mark.
11755
11756 2020-03-13 Tom de Vries <tdevries@suse.de>
11757
11758 PR symtab/25646
11759 * psymtab.c (partial_symtab::partial_symtab): Don't set
11760 globals_offset and statics_offset. Push element onto
11761 current_global_psymbols and current_static_psymbols stacks.
11762 (concat): New function.
11763 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11764 element from current_global_psymbols and current_static_psymbols
11765 stacks. Concat popped elements to global_psymbols and
11766 static_symbols.
11767 (add_psymbol_to_list): Use current_global_psymbols and
11768 current_static_psymbols stacks.
11769 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11770 current_static_psymbols fields.
11771
11772 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11773
11774 * corelow.c (sniff_core_bfd): Remove.
11775 (class core_target) <m_core_vec>: Remove.
11776 (core_target::core_target): Update.
11777 (core_file_fns): Remove.
11778 (deprecated_add_core_fns): Remove.
11779 (default_core_sniffer): Remove.
11780 (sniff_core_bfd): Remove.
11781 (default_check_format): Remove.
11782 (gdb_check_format): Remove.
11783 (core_target_open): Update.
11784 (core_target::get_core_register_section): Update.
11785 (get_core_registers_cb): Update.
11786 (core_target::fetch_registers): Update.
11787 * gdbcore.h (struct core_fns): Remove.
11788 (deprecated_add_core_fns): Remove.
11789 (default_core_sniffer): Remove.
11790 (default_check_format): Remove.
11791
11792 2020-03-12 Tom Tromey <tom@tromey.com>
11793
11794 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11795 CORE_ADDR.
11796 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11797
11798 2020-03-12 Tom Tromey <tom@tromey.com>
11799
11800 * remote.c (remote_target::download_tracepoint)
11801 (remote_target::enable_tracepoint)
11802 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11803 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11804 sprintf_vma.
11805
11806 2020-03-12 Tom Tromey <tom@tromey.com>
11807
11808 * symfile-mem.c: Update CORE_ADDR size assert.
11809
11810 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11811
11812 * selftest.m4: Move to gdbsupport/.
11813 * acinclude.m4: Update path to selftest.m4.
11814
11815 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11816
11817 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11818 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11819 gdbarch-selfselftests.c and selftest-arch.c.
11820 (SUBDIR_UNITTESTS_OBS): Rename to...
11821 (SELFTESTS_OBS): ... this.
11822 (COMMON_SFILES): Remove disasm-selftests.c and
11823 gdbarch-selftests.c.
11824 * configure.ac: Don't add selftest-arch.{c,o} to
11825 CONFIG_{SRCS,OBS}.
11826 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11827 preprocessor conditions.
11828
11829 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11830
11831 * configure.ac: Don't source bfd/development.sh.
11832 * selftest.m4: Modify comment.
11833 * configure: Re-generate.
11834
11835 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11836
11837 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11838 not "true" or "false".
11839 * configure: Re-generate.
11840
11841 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11842
11843 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11844 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11845 renamed to arm_nbsd_supply_gregset.
11846 (fetch_register): Update to call arm_nbsd_supply_gregset.
11847 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11848 (arm_netbsd_nat_target::fetch_registers): Update.
11849 (fetch_elfcore_registers): Removed.
11850 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11851 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11852 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11853 not require NetBSD system headers.
11854 (arm_nbsd_regset): New struct.
11855 (arm_nbsd_iterate_over_regset_sections): New function.
11856 (arm_netbsd_init_abi_common): Updated to call
11857 set_gdbarch_iterate_over_regset_sections.
11858 * arm-nbsd-tdep.h: New file.
11859
11860 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11861
11862 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11863 recursion.
11864
11865 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11866
11867 * configure: Re-generate.
11868
11869 2020-03-11 Tom Tromey <tromey@adacore.com>
11870
11871 * ada-typeprint.c (print_choices): Fix comment.
11872
11873 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11874
11875 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11876 previous item in the list, when the list has no items.
11877
11878 2020-03-11 Tom de Vries <tdevries@suse.de>
11879
11880 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11881 PROP_LOCLIST handling code.
11882
11883 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11884
11885 * buildsym-legacy.c (record_line): Pass extra parameter to
11886 record_line.
11887 * buildsym.c (buildsym_compunit::record_line): Take an extra
11888 parameter, reduce duplication in the line table, and record the
11889 is_stmt flag in the line table.
11890 * buildsym.h (buildsym_compunit::record_line): Add extra
11891 parameter.
11892 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11893 non-statement lines.
11894 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11895 this to the symtab builder.
11896 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11897 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11898 through to dwarf_record_line_1.
11899 * infrun.c (process_event_stop_test): When stepping, don't stop at
11900 a non-statement instruction, and only refresh the step info when
11901 we land in the middle of a line's range. Also add an extra
11902 comment.
11903 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11904 field.
11905 * record-btrace.c (btrace_find_line_range): Only record lines
11906 marked as is-statement.
11907 * stack.c (frame_show_address): Show the frame address if we are
11908 in a non-statement sal.
11909 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11910 (maintenance_print_one_line_table): Print a header for the is_stmt
11911 column, and include is_stmt information in the output.
11912 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11913 preference to non-statements.
11914 (find_pcs_for_symtab_line): Prefer is-statement entries.
11915 (find_line_common): Likewise.
11916 * symtab.h (struct linetable_entry): Add is_stmt field.
11917 (struct symtab_and_line): Likewise.
11918 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11919 arranging the line table.
11920
11921 2020-03-07 Tom de Vries <tdevries@suse.de>
11922
11923 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11924 DIE.
11925
11926 2020-03-07 Tom Tromey <tom@tromey.com>
11927
11928 * valops.c (value_literal_complex): Remove obsolete comment.
11929 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11930 comment.
11931
11932 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11933
11934 * infrun.h: Forward-declare thread_info.
11935 (set_step_info): Add thread_info parameter, add doc.
11936 * infrun.c (set_step_info): Add thread_info parameter, move doc
11937 to header.
11938 * infrun.c (process_event_stop_test): Pass thread to
11939 set_step_info call.
11940 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11941 set_step_info.
11942 (prepare_one_step): Add thread_info parameter, pass it to
11943 set_step_frame and prepare_one_step (recursive) call.
11944 (step_1): Pass thread to prepare_one_step call.
11945 (step_command_fsm::should_stop): Pass thread to
11946 prepare_one_step.
11947 (until_next_fsm): Pass thread to set_step_frame call.
11948 (finish_command): Pass thread to set_step_info call.
11949
11950 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11951
11952 * windows-tdep.c (windows_solib_create_inferior_hook):
11953 Check if inferior is running.
11954
11955 2020-03-06 Tom de Vries <tdevries@suse.de>
11956
11957 * NEWS: Fix "the the".
11958 * ctfread.c: Same.
11959
11960 2020-03-06 Tom de Vries <tdevries@suse.de>
11961
11962 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11963
11964 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * .dir-locals.el: Add a comment referencing the other copies of
11967 this file.
11968
11969 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11970
11971 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11972 psargs.
11973
11974 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11975
11976 * .gitattributes: New file.
11977
11978 2020-03-04 Tom Tromey <tom@tromey.com>
11979
11980 * symmisc.c (print_symbol_bcache_statistics)
11981 (print_objfile_statistics): Update.
11982 * symfile.c (allocate_symtab): Use intern.
11983 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11984 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11985 macro_cache>: Remove.
11986 <string_cache>: New member.
11987 (struct objfile) <intern>: New methods.
11988 * elfread.c (elf_symtab_read): Use intern.
11989 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11990 (dwarf2_compute_name, dwarf2_physname)
11991 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11992 names.
11993 (guess_partial_die_structure_name): Update.
11994 (partial_die_info::fixup): Intern name.
11995 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11996 name.
11997 (dwarf2_name): Intern name. Update.
11998 * buildsym.c (buildsym_compunit::get_macro_table): Use
11999 string_cache.
12000
12001 2020-03-04 Tom Tromey <tom@tromey.com>
12002
12003 * jit.c (bfd_open_from_target_memory): Make "target" const.
12004 * corefile.c (gnutarget): Now const.
12005 * gdbcore.h (gnutarget): Now const.
12006
12007 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12008
12009 * NEWS: Mention support for WOW64 processes.
12010 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12011 (amd64_windows_segment_register_p): Remove static.
12012 (_initialize_amd64_windows_nat): Update.
12013 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12014 * i386-windows-nat.c (context_offset): Update.
12015 (i386_mappings): Rename and remove static.
12016 (i386_windows_segment_register_p): Remove static.
12017 (_initialize_i386_windows_nat): Update.
12018 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12019 (STATUS_WX86_SINGLE_STEP): New macro.
12020 (EnumProcessModulesEx): New macro.
12021 (Wow64SuspendThread): New macro.
12022 (Wow64GetThreadContext): New macro.
12023 (Wow64SetThreadContext): New macro.
12024 (Wow64GetThreadSelectorEntry): New macro.
12025 (windows_set_context_register_offsets): Add static.
12026 (windows_set_segment_register_p): Likewise.
12027 (windows_add_thread): Adapt for WOW64 processes.
12028 (windows_fetch_one_register): Likewise.
12029 (windows_nat_target::fetch_registers): Likewise.
12030 (windows_store_one_register): Likewise.
12031 (display_selector): Likewise.
12032 (display_selectors): Likewise.
12033 (handle_exception): Likewise.
12034 (windows_continue): Likewise.
12035 (windows_nat_target::resume): Likewise.
12036 (windows_add_all_dlls): Likewise.
12037 (do_initial_windows_stuff): Likewise.
12038 (windows_nat_target::attach): Likewise.
12039 (windows_get_exec_module_filename): Likewise.
12040 (windows_nat_target::create_inferior): Likewise.
12041 (windows_xfer_siginfo): Likewise.
12042 (_initialize_loadable): Initialize Wow64SuspendThread,
12043 Wow64GetThreadContext, Wow64SetThreadContext,
12044 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12045 * windows-nat.h (windows_set_context_register_offsets):
12046 Remove declaration.
12047 (windows_set_segment_register_p): Likewise.
12048 (i386_windows_segment_register_p): Add declaration.
12049 (amd64_windows_segment_register_p): Likewise.
12050
12051 2020-03-04 Luis Machado <luis.machado@linaro.org>
12052
12053 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12054 in "info registers" for AArch64/ARM.
12055
12056 The change caused "info registers" to not print GPR's.
12057
12058 gdb/ChangeLog:
12059
12060 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12061
12062 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12063 when reg->group is empty and reggroup is not.
12064
12065 2020-03-03 Tom Tromey <tromey@adacore.com>
12066
12067 * dwarf2/frame.c (struct dwarf2_frame_cache)
12068 <checked_tailcall_bottom, entry_cfa_sp_offset,
12069 entry_cfa_sp_offset_p>: Remove members.
12070 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12071 (dwarf2_frame_prev_register): Don't call
12072 dwarf2_tailcall_sniffer_first.
12073 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12074 * frame-unwind.c (add_unwinder): New fuction.
12075 (frame_unwind_init): Use it. Add tailcall unwinder.
12076
12077 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12078 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12079
12080 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12081 value should be printed as true.
12082
12083 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12084
12085 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12086 (windows_init_abi): Set and use windows_so_ops.
12087
12088 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12089
12090 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12091 when verifying if dealing with a convenience variable.
12092
12093 2020-03-03 Luis Machado <luis.machado@linaro.org>
12094
12095 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12096
12097 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12098
12099 * infrun.c (gdbarch_supports_displaced_stepping): New.
12100 (use_displaced_stepping): Break up conditions in smaller pieces.
12101 Use gdbarch_supports_displaced_stepping.
12102 (displaced_step_prepare_throw): Use
12103 gdbarch_supports_displaced_stepping.
12104
12105 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12106
12107 * NEWS: Mention new behaviour of the history filename.
12108 * top.c (write_history_p): Add comment.
12109 (show_write_history_p): Add header comment, give a different
12110 message when history writing is on, but the history filename is
12111 empty.
12112 (history_filename): Add comment.
12113 (history_filename_empty): New function.
12114 (show_history_filename): Add header comment, give a different
12115 message when the filename is empty.
12116 (init_history): Compare history_filename against nullptr, and only
12117 read history if the filename is not empty.
12118 (set_history_filename): Add header comment, and only make
12119 non-empty filenames absolute.
12120 (init_main): Make the filename argument to 'set history filename'
12121 optional.
12122
12123 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12124
12125 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12126 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12127 (fetch_fp_register): Update.
12128 (fetch_fp_regs): Update.
12129 (store_fp_register): Update.
12130 (store_fp_regs): Update.
12131 (arm_netbsd_nat_target::read_description): New function.
12132 (fetch_elfcore_registers): Update.
12133
12134 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12135
12136 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12137 general_thread if the stop reply is missing a thread-id.
12138 (remote_target::process_stop_reply): Use the first non-exited
12139 thread if the target didn't pass a thread-id.
12140 * infrun.c (do_target_wait): Move call to
12141 switch_to_inferior_no_thread to ....
12142 (do_target_wait_1): ... here.
12143
12144 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12145
12146 * debuginfod-support.c: Include defs.h first.
12147
12148 2020-02-28 Tom de Vries <tdevries@suse.de>
12149
12150 * symfile.c (set_initial_language): Use default language for lookup.
12151
12152 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12153
12154 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12155 reader variable, pass `this` to read_cutu_die_from_dwo.
12156
12157 2020-02-27 Aaron Merey <amerey@redhat.com>
12158
12159 * source.c (open_source_file): Check for nullptr when computing
12160 srcpath.
12161
12162 2020-02-27 Tom Tromey <tromey@adacore.com>
12163
12164 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12165 member.
12166 (dwarf2_add_field): Don't update nfields.
12167 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12168
12169 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12172 abs.
12173
12174 2020-02-26 Tom Tromey <tom@tromey.com>
12175
12176 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12177 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12178 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12179 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12180 per_cu_data.
12181
12182 2020-02-26 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/index-write.c (psym_index_map): Change type.
12185 (add_address_entry_worker, write_one_signatured_type)
12186 (recursively_count_psymbols, recursively_write_psymbols)
12187 (class debug_names, psyms_seen_size, write_gdbindex)
12188 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12189
12190 2020-02-26 Aaron Merey <amerey@redhat.com>
12191
12192 * Makefile.in: Handle optional debuginfod support.
12193 * NEWS: Update.
12194 * README: Add --with-debuginfod summary.
12195 * config.in: Regenerate.
12196 * configure: Regenerate.
12197 * configure.ac: Handle optional debuginfod support.
12198 * debuginfod-support.c: debuginfod helper functions.
12199 * debuginfod-support.h: Ditto.
12200 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12201 summary.
12202 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12203 when a dwz file cannot be found.
12204 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12205 debuginfo file cannot be found.
12206 * source.c (open_source_file): Query debuginfod servers when a
12207 source file cannot be found.
12208 * top.c (print_gdb_configuration): Include
12209 --{with,without}-debuginfod in the output.
12210
12211 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12212
12213 * thread.c (thr_try_catch_cmd): Print thread name.
12214
12215 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12218 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12219 dwarf2_fetch_die_type_sect_off): Move to...
12220 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12221 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12222 dwarf2_fetch_die_type_sect_off): ... here.
12223 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12224 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12225 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12226
12227 2020-02-26 Tom de Vries <tdevries@suse.de>
12228
12229 PR gdb/25603
12230 * symfile.c (set_initial_language): Exit-early if
12231 language_mode == language_mode_manual.
12232
12233 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12234
12235 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12236 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12237 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12238
12239 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12240
12241 * gdbtypes.c (create_array_type_with_stride): Handle negative
12242 array strides.
12243 * valarith.c (value_subscripted_rvalue): Likewise.
12244
12245 2020-02-25 Luis Machado <luis.machado@linaro.org>
12246
12247 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12248
12249 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12250
12251 * loc.h (dwarf2_get_die_type): Move to...
12252 * read.h (dwarf2_get_die_type): ... here.
12253 * read.c (dwarf2_get_die_type): Move doc to header.
12254
12255 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12256
12257 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12258 'gnulib/Makefile.in' to the list.
12259
12260 2020-02-24 Tom Tromey <tom@tromey.com>
12261
12262 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12263 Remove.
12264 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12265 XOBNEWVEC.
12266
12267 2020-02-24 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12270 New method.
12271 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12272 (dw2_do_instantiate_symtab, dw2_get_file_names)
12273 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12274
12275 2020-02-24 Tom Tromey <tom@tromey.com>
12276
12277 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12278 make_scoped_restore.
12279 (dwarf2_psymtab::read_symtab): Don't clear
12280 reading_partial_symbols.
12281
12282 2020-02-24 Tom de Vries <tdevries@suse.de>
12283
12284 PR gdb/25592
12285 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12286
12287 2020-02-24 Tom de Vries <tdevries@suse.de>
12288
12289 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12290 commands layout next/prev/regs.
12291
12292 2020-02-22 Tom Tromey <tom@tromey.com>
12293
12294 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12295 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12296
12297 2020-02-22 Tom Tromey <tom@tromey.com>
12298
12299 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12300
12301 2020-02-22 Tom Tromey <tom@tromey.com>
12302
12303 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12304 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12305 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12306 * tui/tui.c (_initialize_tui): Add usage text.
12307
12308 2020-02-22 Tom Tromey <tom@tromey.com>
12309
12310 * tui/tui-win.c (tui_set_focus_command)
12311 (tui_set_win_height_command): Use error_no_arg.
12312 (_initialize_tui_win): Update help text.
12313 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12314
12315 2020-02-22 Tom Tromey <tom@tromey.com>
12316
12317 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12318 * tui/tui-disasm.h (struct tui_disasm_window)
12319 <display_start_addr>: Declare.
12320 * tui/tui-source.h (struct tui_source_window)
12321 <display_start_addr>: Declare.
12322 * tui/tui-winsource.h (struct tui_source_window_base)
12323 <show_source_line, display_start_addr>: New methods.
12324 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12325 Rename and move to protected section.
12326 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12327 (tui_source_window_base::do_erase_source_content): Update.
12328 (tui_source_window_base::show_source_line): Now a method.
12329 (tui_source_window_base::show_source_content)
12330 (tui_source_window_base::tui_source_window_base)
12331 (tui_source_window_base::rerender)
12332 (tui_source_window_base::refill)
12333 (tui_source_window_base::do_scroll_horizontal)
12334 (tui_source_window_base::set_is_exec_point_at)
12335 (tui_source_window_base::update_breakpoint_info)
12336 (tui_source_window_base::update_exec_info): Update.
12337 * tui/tui-source.c (tui_source_window::set_contents)
12338 (tui_source_window::showing_source_p)
12339 (tui_source_window::do_scroll_vertical)
12340 (tui_source_window::location_matches_p)
12341 (tui_source_window::line_is_displayed): Update.
12342 (tui_source_window::display_start_addr): New method.
12343 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12344 (tui_disasm_window::do_scroll_vertical)
12345 (tui_disasm_window::location_matches_p): Update.
12346 (tui_disasm_window::display_start_addr): New method.
12347
12348 2020-02-22 Tom Tromey <tom@tromey.com>
12349
12350 * NEWS: Add entry for gdb.register_window_type.
12351 * tui/tui-layout.h (window_factory): New typedef.
12352 (tui_register_window): Declare.
12353 * tui/tui-layout.c (saved_tui_windows): New global.
12354 (tui_apply_current_layout): Use it.
12355 (tui_register_window): New function.
12356 * python/python.c (do_start_initialization): Call
12357 gdbpy_initialize_tui.
12358 (python_GdbMethods): Add "register_window_type" function.
12359 * python/python-internal.h (gdbpy_register_tui_window)
12360 (gdbpy_initialize_tui): Declare.
12361 * python/py-tui.c: New file.
12362 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12363
12364 2020-02-22 Tom Tromey <tom@tromey.com>
12365
12366 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12367
12368 2020-02-22 Tom Tromey <tom@tromey.com>
12369
12370 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12371 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12372 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12373 (tui_set_win_focus_to): Move from tui-win.c.
12374
12375 2020-02-22 Tom Tromey <tom@tromey.com>
12376
12377 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12378 functions.
12379 (known_window_types): New global.
12380 (tui_get_window_by_name): Reimplement.
12381 (initialize_known_windows): New function.
12382 (validate_window_name): Rewrite.
12383 (_initialize_tui_layout): Call initialize_known_windows.
12384
12385 2020-02-22 Tom Tromey <tom@tromey.com>
12386
12387 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12388 Remove constants.
12389 * tui/tui-winsource.h (struct tui_source_window_base)
12390 <tui_source_window_base>: Remove parameter.
12391 * tui/tui-winsource.c
12392 (tui_source_window_base::tui_source_window_base): Remove
12393 parameter.
12394 (tui_source_window_base::refill): Update.
12395 * tui/tui-stack.h (struct tui_locator_window)
12396 <tui_locator_window>: Update.
12397 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12398 Default the constructor.
12399 * tui/tui-regs.h (struct tui_data_item_window)
12400 <tui_data_item_window>: Default the constructor.
12401 (struct tui_data_window) <tui_data_window>: Likewise.
12402 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12403 Default the constructor.
12404 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12405 Default the constructor.
12406 <type>: Remove.
12407 (struct tui_win_info) <tui_win_info>: Default the constructor.
12408 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12409 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12410 Default the constructor.
12411
12412 2020-02-22 Tom Tromey <tom@tromey.com>
12413
12414 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12415 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12416 * tui/tui-win.c (tui_resize_all): Don't call
12417 tui_delete_invisible_windows.
12418 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12419 done.
12420 (tui_set_layout): Update.
12421 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12422 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12423 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12424
12425 2020-02-22 Tom Tromey <tom@tromey.com>
12426
12427 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12428 correctly.
12429
12430 2020-02-22 Tom Tromey <tom@tromey.com>
12431
12432 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12433
12434 2020-02-22 Tom Tromey <tom@tromey.com>
12435
12436 * tui/tui-winsource.h (struct tui_source_window_iterator)
12437 <inner_iterator>: New etytypedef.
12438 <tui_source_window_iterator>: Take "end" parameter.
12439 <tui_source_window_iterator>: Take iterator.
12440 <operator*, advance>: Update.
12441 <m_iter>: Change type.
12442 <m_end>: New field.
12443 (struct tui_source_windows) <begin, end>: Update.
12444 * tui/tui-layout.c (tui_windows): New global.
12445 (tui_apply_current_layout): Clear tui_windows.
12446 (tui_layout_window::apply): Update tui_windows.
12447 * tui/tui-data.h (tui_windows): Declare.
12448 (all_tui_windows): Now inline function.
12449 (class tui_window_iterator, struct all_tui_windows): Remove.
12450
12451 2020-02-22 Tom Tromey <tom@tromey.com>
12452
12453 PR tui/17850:
12454 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12455 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12456 "height" argument.
12457 (class tui_layout_window) <get_sizes>: Likewise.
12458 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12459 argument.
12460 <get_sizes>: Add "height" argument.
12461 <m_vertical>: New field.
12462 * tui/tui-layout.c (tui_layout_split::clone): Update.
12463 (tui_layout_split::get_sizes): Add "height" argument.
12464 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12465 (tui_new_layout_command): Parse "-horizontal".
12466 (_initialize_tui_layout): Update help string.
12467 (tui_layout_split::specification): Add "-horizontal" when needed.
12468 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12469 argument.
12470 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12471 New methods.
12472
12473 2020-02-22 Tom Tromey <tom@tromey.com>
12474
12475 * tui/tui-layout.h (enum tui_adjust_result): New.
12476 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12477 (class tui_layout_window) <adjust_size>: Return
12478 tui_adjust_result. Rewrite.
12479 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12480 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12481
12482 2020-02-22 Tom Tromey <tom@tromey.com>
12483
12484 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12485 parameter and return types.
12486 (class tui_layout_base) <specification>: Add "depth".
12487 (class tui_layout_window) <specification>: Add "depth".
12488 (class tui_layout_split) <specification>: Add "depth".
12489 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12490 and return types.
12491 (tui_new_layout_command): Parse sub-layouts.
12492 (_initialize_tui_layout): Update help string.
12493 (tui_layout_window::specification): Add "depth".
12494 (add_layout_command): Update.
12495
12496 2020-02-22 Tom Tromey <tom@tromey.com>
12497
12498 * NEWS: Add "tui new-layout" item.
12499 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12500 Add new-layout command to help text.
12501 (validate_window_name): New function.
12502 (tui_new_layout_command): New function.
12503 (_initialize_tui_layout): Register "new-layout".
12504 (tui_layout_window::specification): New method.
12505 (tui_layout_window::specification): New method.
12506 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12507 method.
12508 (class tui_layout_window) <specification>: New method.
12509 (class tui_layout_split) <specification>: New method.
12510
12511 2020-02-22 Tom Tromey <tom@tromey.com>
12512
12513 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12514 * tui/tui-win.c (window_name_completer): Update comment.
12515 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12516 Declare method.
12517 (class tui_layout_window) <replace_window>: Likewise.
12518 (class tui_layout_split) <replace_window>: Likewise.
12519 (tui_set_layout): Don't declare.
12520 (tui_set_initial_layout): Declare function.
12521 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12522 (asm_regs_layout): New globals.
12523 (tui_current_layout, show_layout): Remove.
12524 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12525 (find_layout, tui_apply_layout): New function.
12526 (layout_completer): Remove.
12527 (tui_next_layout): Reimplement.
12528 (tui_next_layout_command): New function.
12529 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12530 (tui_regs_layout): Reimplement.
12531 (tui_regs_layout_command): New function.
12532 (extract_display_start_addr): Rewrite.
12533 (next_layout, prev_layout): Remove.
12534 (tui_layout_window::replace_window): New method.
12535 (tui_layout_split::replace_window): New method.
12536 (destroy_layout): New function.
12537 (layout_list): New global.
12538 (add_layout_command): New function.
12539 (initialize_layouts): Update.
12540 (tui_layout_command): New function.
12541 (_initialize_tui_layout): Install "layout" commands.
12542 * tui/tui-data.h (enum tui_layout_type): Remove.
12543 (tui_current_layout): Don't declare.
12544
12545 2020-02-22 Tom Tromey <tom@tromey.com>
12546
12547 * tui/tui-regs.c (tui_reg_layout): Remove.
12548 (tui_reg_command): Use tui_regs_layout.
12549 * tui/tui-layout.h (tui_reg_command): Declare.
12550 * tui/tui-layout.c (tui_reg_command): New function.
12551
12552 2020-02-22 Tom Tromey <tom@tromey.com>
12553
12554 * tui/tui.c (tui_rl_delete_other_windows): Call
12555 tui_remove_some_windows.
12556 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12557 Declare method.
12558 (class tui_layout_window) <remove_windows>: New method.
12559 (class tui_layout_split) <remove_windows>: Declare.
12560 (tui_remove_some_windows): Declare.
12561 * tui/tui-layout.c (tui_remove_some_windows): New function.
12562 (tui_layout_split::remove_windows): New method.
12563
12564 2020-02-22 Tom Tromey <tom@tromey.com>
12565
12566 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12567 * tui/tui-layout.h (tui_next_layout): Declare.
12568 * tui/tui-layout.c (tui_next_layout): New function.
12569
12570 2020-02-22 Tom Tromey <tom@tromey.com>
12571
12572 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12573 correct coordinates.
12574
12575 2020-02-22 Tom Tromey <tom@tromey.com>
12576
12577 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12578 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12579 DATA_WIN case.
12580
12581 2020-02-22 Tom Tromey <tom@tromey.com>
12582
12583 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12584 TUI_DISASM_WIN, not tui_win_list.
12585
12586 2020-02-22 Tom Tromey <tom@tromey.com>
12587
12588 * valprint.c (generic_val_print_enum_1)
12589 (val_print_type_code_flags): Style member names.
12590 * rust-lang.c (val_print_struct, rust_print_enum)
12591 (rust_print_struct_def, rust_internal_print_type): Style member
12592 names.
12593 * p-valprint.c (pascal_object_print_value_fields): Style member
12594 names. Only call fprintf_symbol_filtered for static members.
12595 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12596 * f-valprint.c (f_val_print): Style member names.
12597 * f-typeprint.c (f_type_print_base): Style member names.
12598 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12599 call fprintf_symbol_filtered for static members.
12600 (cp_print_class_member): Style member names.
12601 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12602 member names.
12603 * ada-valprint.c (ada_print_scalar): Style enum names.
12604 (ada_val_print_enum): Likewise.
12605 * ada-typeprint.c (print_enum_type): Style enum names.
12606
12607 2020-02-21 Tom Tromey <tom@tromey.com>
12608
12609 * psympriv.h (struct partial_symtab): Update comment.
12610
12611 2020-02-21 Tom Tromey <tromey@adacore.com>
12612
12613 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12614 type is CORE_ADDR.
12615
12616 2020-02-21 Tom de Vries <tdevries@suse.de>
12617
12618 PR gdb/25534
12619 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12620 if dependencies[i]->user != NULL.
12621
12622 2020-02-21 Ali Tamur <tamur@google.com>
12623
12624 * dwarf2/read.c (dwarf2_name): Add null check.
12625
12626 2020-02-20 Tom Tromey <tom@tromey.com>
12627
12628 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12629 ">=", in binary search.
12630 (dwarf2_find_containing_comp_unit): New overload.
12631 (run_test): New self-test.
12632 (_initialize_dwarf2_read): Register new test.
12633
12634 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12635
12636 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12637 * riscv-tdep.h: Likewise.
12638 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12639 rv32-only CSR.
12640 * features/riscv/64bit-csr.xml: Regenerated.
12641
12642 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12643 Tom Tromey <tom@tromey.com>
12644
12645 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12646 of 'fputc_unfiltered'.
12647 (putchar_unfiltered): Call 'fputc_unfiltered'.
12648 (fputc_unfiltered): Call 'fputs_unfiltered'.
12649
12650 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12651
12652 * config.in: Regenerate.
12653 * configure: Regenerate.
12654 * configure.ac: Add --with-python-libdir option.
12655 * main.c: Use WITH_PYTHON_LIBDIR.
12656
12657 2020-02-19 Tom Tromey <tom@tromey.com>
12658
12659 * symtab.c (general_symbol_info::compute_and_set_names): Use
12660 obstack_strndup. Simplify call to symbol_set_demangled_name.
12661
12662 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12663
12664 * dwarf2/read.c (allocate_signatured_type_table,
12665 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12666 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12667 Remove objfile parameter, update all callers.
12668
12669 2020-02-19 Doug Evans <dje@google.com>
12670
12671 PR rust/25535
12672 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12673 rust_enum_variant calculation.
12674
12675 2020-02-19 Tom Tromey <tromey@adacore.com>
12676
12677 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12678
12679 2020-02-19 Tom Tromey <tromey@adacore.com>
12680
12681 * ada-lang.c (cache_symbol): Use obstack_strdup.
12682
12683 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12684
12685 * configure: Regenerate.
12686
12687 2020-02-19 Tom Tromey <tromey@adacore.com>
12688
12689 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12690 NULL check.
12691
12692 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12693
12694 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12695
12696 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12697
12698 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12699 if GDBSERVER is not defined.
12700 (riscv_tdesc_cache): Likewise, also store const target_desc.
12701 (STATIC_IN_GDB): Define.
12702 (riscv_create_target_description): Update declaration with
12703 STATIC_IN_GDB.
12704 (riscv_lookup_target_description): New function, only define if
12705 GDBSERVER is not defined.
12706 * arch/riscv.h (riscv_create_target_description): Declare only
12707 when GDBSERVER is defined.
12708 (riscv_lookup_target_description): New declaration when GDBSERVER
12709 is not defined.
12710 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12711 (riscv_linux_read_features): ...this, and return
12712 riscv_gdbarch_features instead of target_desc.
12713 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12714 (riscv_linux_read_description): Rename to...
12715 (riscv_linux_read_features): ...this.
12716 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12717 Update to use riscv_gdbarch_features and
12718 riscv_lookup_target_description.
12719 * riscv-tdep.c (riscv_find_default_target_description): Use
12720 riscv_lookup_target_description instead of
12721 riscv_create_target_description.
12722
12723 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * valprint.c (generic_val_print_enum_1): When printing a flag
12726 enum with value 0 and there is no enumerator with value 0, print
12727 just "0" instead of "(unknown: 0x0)".
12728
12729 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12730
12731 * valprint.c (generic_val_print_enum_1): Print unknown part of
12732 flag enum in hex.
12733
12734 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12735
12736 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12737 flag enums to contain duplicate enumerators.
12738 * valprint.c (generic_val_print_enum_1): Update comment.
12739
12740 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12741
12742 * dwarf2/read.c: Include "count-one-bits.h".
12743 (update_enumeration_type_from_children): If an enumerator has
12744 multiple bits set, don't treat the enumeration as a "flag enum".
12745 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12746 of flag enums have 0 or 1 bit set.
12747
12748 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12749
12750 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12751 conversion.
12752 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12753 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12754 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12755 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12756 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12757
12758 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12759
12760 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12761
12762 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12765 displaced_step_closure_up.
12766 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12767 (struct displaced_step_closure_up):
12768 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12769 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12770 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12771 Likewise.
12772 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12773 * gdbarch.c, gdbarch.h: Re-generate.
12774 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12775 displaced_step_closure_up.
12776 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12777 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12778 * infrun.h (displaced_step_closure_up): New type alias.
12779 (struct displaced_step_inferior_state) <step_closure>: Change
12780 type to displaced_step_closure_up.
12781 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12782 displaced_step_closure_up.
12783 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12784
12785 2020-02-14 Tom Tromey <tom@tromey.com>
12786
12787 * minidebug.c (gnu_debug_key): New global.
12788 (find_separate_debug_file_in_section): Use it.
12789
12790 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12791
12792 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12793 std::unique_ptr.
12794 * gdbarch.c: Re-generate.
12795 * gdbarch.h: Re-generate.
12796 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12797 change.
12798 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12799 type to std::unique_ptr.
12800 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12801 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12802 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12803 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12804 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12805 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12806 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12807 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12808 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12809
12810 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12811
12812 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12813 std::unique_ptr.
12814 (displaced_step_clear): Rename to...
12815 (displaced_step_reset): ... this. Just call displaced->reset ().
12816 (displaced_step_clear_cleanup): Rename to...
12817 (displaced_step_reset_cleanup): ... this.
12818 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12819 (displaced_step_fixup): Likewise.
12820 (resume_1): Likewise.
12821 (handle_inferior_event): Restore child's memory before calling
12822 displaced_step_fixup on the parent.
12823 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12824 to std::unique_ptr.
12825 <step_closure>: Change type to std::unique_ptr.
12826
12827 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12828
12829 * arm-tdep.c: Include count-one-bits.h.
12830 (cleanup_block_store_pc): Use count_one_bits.
12831 (cleanup_block_load_pc): Use count_one_bits.
12832 (arm_copy_block_xfer): Use count_one_bits.
12833 (thumb2_copy_block_xfer): Use count_one_bits.
12834 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12835 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12836 (thumb_get_next_pcs_raw): Use count_one_bits.
12837 (arm_get_next_pcs_raw): Use count_one_bits_l.
12838 * arch/arm.c (bitcount): Remove.
12839 * arch/arm.h (bitcount): Remove.
12840
12841 2020-02-14 Tom Tromey <tromey@adacore.com>
12842
12843 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12844 Update.
12845 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12846 * dwarf2/loc.c (call_site_find_chain_1): Return
12847 unique_xmalloc_ptr.
12848 (call_site_find_chain): Likewise.
12849
12850 2020-02-14 Richard Biener <rguenther@suse.de>
12851
12852 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12853 on expression with division operators.
12854
12855 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12856
12857 * MAINTAINERS (Write After Approval): Adding myself.
12858
12859 2020-02-12 Tom Tromey <tom@tromey.com>
12860
12861 * event-loop.c (event_data, gdb_event, event_handler_func):
12862 Remove.
12863
12864 2020-02-12 Tom Tromey <tom@tromey.com>
12865
12866 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12867 (dwarf2_frame_objfile_data): Add comment.
12868 (find_comp_unit, set_comp_unit): New functions.
12869 (dwarf2_frame_find_fde): Use find_comp_unit.
12870 (dwarf2_build_frame_info): Use set_comp_unit.
12871
12872 2020-02-12 Tom Tromey <tom@tromey.com>
12873
12874 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12875 (comp_unit): Don't initialize objfile.
12876 (execute_cfa_program): Add text_offset parameter.
12877 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12878 (dwarf2_frame_cache): Update.
12879 (dwarf2_build_frame_info): Don't set "objfile" member.
12880
12881 2020-02-12 Tom Tromey <tom@tromey.com>
12882
12883 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12884 (decode_frame_entry): Likewise.
12885 (dwarf2_build_frame_info): Update.
12886
12887 2020-02-12 Tom Tromey <tom@tromey.com>
12888
12889 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12890 (decode_frame_entry_1): Use the comp_unit obstack.
12891
12892 2020-02-12 Tom Tromey <tom@tromey.com>
12893
12894 * dwarf2/frame.c (struct comp_unit): Add initializers and
12895 constructor.
12896 (dwarf2_frame_objfile_data): Store a comp_unit.
12897 (dwarf2_frame_find_fde): Update.
12898 (dwarf2_build_frame_info): Use "new".
12899
12900 2020-02-12 Tom Tromey <tom@tromey.com>
12901
12902 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12903 (dwarf2_fde_table): Typedef for std::vector.
12904 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12905 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12906 (decode_frame_entry): Update.
12907 (dwarf2_build_frame_info): Use "new".
12908
12909 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12910
12911 * arm-tdep.c (arm_gdbarch_init): Update.
12912 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12913 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12914 have_neon, is_m>: Change to bool.
12915
12916 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12917
12918 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12919
12920 2020-02-12 Tom Tromey <tom@tromey.com>
12921
12922 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12923
12924 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12925
12926 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12927 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12928
12929 2020-02-11 Tom Tromey <tom@tromey.com>
12930
12931 * psymtab.h: Update comment.
12932
12933 2020-02-11 Tom Tromey <tom@tromey.com>
12934
12935 * gdb_obstack.h (struct auto_obstack): Use
12936 DISABLE_COPY_AND_ASSIGN.
12937
12938 2020-02-11 Tom Tromey <tom@tromey.com>
12939
12940 * dwarf2/frame.h (struct objfile): Don't forward declare.
12941
12942 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12943
12944 * cris-tdep.c (cris_supply_gregset): Change signature to match
12945 what struct regset expects.
12946 (cris_regset): New struct.
12947 (fetch_core_registers): Remove.
12948 (cris_iterate_over_regset_sections): New function.
12949 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12950 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12951
12952 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12953
12954 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12955 registers.
12956
12957 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12958
12959 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12960
12961 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12962
12963 * configure: Re-generate.
12964
12965 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12966
12967 * configure: Re-generate.
12968
12969 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12970
12971 * acinclude: Update warning.m4 path.
12972 * warning.m4: Move to gdbsupport.
12973
12974 2020-02-11 Tom Tromey <tromey@adacore.com>
12975
12976 * remote.c (remote_console_output): Update.
12977 * printcmd.c (printf_command): Update.
12978 * event-loop.c (gdb_wait_for_event): Update.
12979 * linux-nat.c (sigchld_handler): Update.
12980 * remote-sim.c (gdb_os_write_stdout): Update.
12981 (gdb_os_flush_stdout): Update.
12982 (gdb_os_flush_stderr): Update.
12983 (gdb_os_write_stderr): Update.
12984 * exceptions.c (print_exception): Update.
12985 * remote-fileio.c (remote_fileio_func_read): Update.
12986 (remote_fileio_func_write): Update.
12987 * tui/tui.c (tui_enable): Update.
12988 * tui/tui-interp.c (tui_interp::init): Update.
12989 * utils.c (init_page_info): Update.
12990 (putchar_unfiltered, fputc_unfiltered): Update.
12991 (gdb_flush): Update.
12992 (emit_style_escape): Update.
12993 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12994 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12995 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12996 (stderr_file::write): Update.
12997 (stderr_file::puts): Update.
12998 * ui-file.h (ui_file_isatty, ui_file_write)
12999 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13000 (ui_file_puts): Don't declare.
13001
13002 2020-02-10 Tom de Vries <tdevries@suse.de>
13003
13004 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13005 sentinel to char *.
13006
13007 2020-02-09 Tom de Vries <tdevries@suse.de>
13008
13009 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13010 filename if it matches "<artificial>".
13011
13012 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13013
13014 * windows-tdep.c (struct enum_value_name): New struct.
13015 (create_enum): New function.
13016 (windows_get_siginfo_type): Create and use enum types.
13017
13018 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13019
13020 * NEWS: Mention $_siginfo support for Windows.
13021 * windows-nat.c (handle_exception): Set siginfo_er.
13022 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13023 (windows_xfer_siginfo): New function.
13024 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13025 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13026 (init_windows_gdbarch_data): New function.
13027 (get_windows_gdbarch_data): New function.
13028 (windows_get_siginfo_type): New function.
13029 (windows_init_abi): Register windows_get_siginfo_type.
13030 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13031
13032 2020-02-08 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13035 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13036 <keep>: Declare method.
13037 <m_keep>: Remove member.
13038 <~cutu_reader>: Remove.
13039 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13040 (cutu_reader::cutu_reader): Update.
13041 (cutu_reader::keep): Rename from ~cutu_reader.
13042 (process_psymtab_comp_unit, build_type_psymtabs_1)
13043 (process_skeletonless_type_unit, load_partial_comp_unit)
13044 (load_full_comp_unit, dwarf2_read_addr_index)
13045 (read_signatured_type): Update.
13046
13047 2020-02-08 Tom Tromey <tom@tromey.com>
13048
13049 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13050 "want_partial_unit" parameter.
13051 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13052 Inline check for DW_TAG_partial_unit.
13053 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13054
13055 2020-02-08 Tom Tromey <tom@tromey.com>
13056
13057 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13058 read.c.
13059 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13060 read.c.
13061
13062 2020-02-08 Tom Tromey <tom@tromey.com>
13063
13064 * dwarf2/read.c (read_address): Move to comp-unit.c.
13065 (dwarf2_rnglists_process, dwarf2_ranges_process)
13066 (read_attribute_value, dwarf_decode_lines_1)
13067 (var_decode_location, decode_locdesc): Update.
13068 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13069 read.c. Remove "cu" parameter.
13070 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13071 method.
13072
13073 2020-02-08 Tom Tromey <tom@tromey.com>
13074
13075 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13076 (read_indirect_line_string): Update.
13077 * dwarf2/comp-unit.c (read_offset): Remove.
13078 (read_comp_unit_head): Update.
13079 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13080 method.
13081 (read_offset): Don't declare.
13082
13083 2020-02-08 Tom Tromey <tom@tromey.com>
13084
13085 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13086 * dwarf2/read.c (struct comp_unit_head): Move to
13087 dwarf2/comp-unit.h.
13088 (enum class rcuh_kind): Move to comp-unit.h.
13089 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13090 (read_comp_unit_head, error_check_comp_unit_head)
13091 (read_and_check_comp_unit_head): Move to comp-unit.c.
13092 (read_offset, dwarf_unit_type_name): Likewise.
13093 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13094 (cutu_reader::cutu_reader, read_call_site_scope)
13095 (find_partial_die, follow_die_offset): Update.
13096 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13097
13098 2020-02-08 Tom Tromey <tom@tromey.com>
13099
13100 * dwarf2/read.c (read_offset_1): Move to leb.c.
13101 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13102 (dwarf_decode_macro_bytes): Update.
13103 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13104 * dwarf2/leb.h (read_offset): Declare.
13105
13106 2020-02-08 Tom Tromey <tom@tromey.com>
13107
13108 * dwarf2/read.c (dwarf2_section_size): Remove.
13109 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13110 Update.
13111 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13112
13113 2020-02-08 Tom Tromey <tom@tromey.com>
13114
13115 * dwarf2/read.c (read_initial_length): Move to leb.c.
13116 * dwarf2/leb.h (read_initial_length): Declare.
13117 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13118 handle_nonstd parameter.
13119 * dwarf2/frame.c (read_initial_length): Remove.
13120 (decode_frame_entry_1): Update.
13121
13122 2020-02-08 Tom Tromey <tom@tromey.com>
13123
13124 * dwarf2/loc.c (dwarf2_find_location_expression)
13125 (dwarf_evaluate_loc_desc::get_tls_address)
13126 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13127 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13128 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13129 (dwarf2_compile_property_to_c)
13130 (dwarf2_loc_desc_get_symbol_read_needs)
13131 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13132 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13133 (loclist_describe_location, loclist_tracepoint_var_ref)
13134 (loclist_generate_c_location): Update.
13135 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13136 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13137 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13138 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13139 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13140 (dwarf2_per_cu_data::addr_size)
13141 (dwarf2_per_cu_data::ref_addr_size)
13142 (dwarf2_per_cu_data::text_offset)
13143 (dwarf2_per_cu_data::addr_type): Now methods.
13144 (per_cu_header_read_in): Make per_cu "const".
13145 (dwarf2_version): Remove.
13146 (dwarf2_per_cu_data::int_type): Now a method.
13147 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13148 (set_die_type, read_array_type, read_subrange_index_type)
13149 (read_tag_string_type, read_subrange_type): Update.
13150 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13151 offset_size, ref_addr_size, text_offset, addr_type, version,
13152 objfile, int_type, addr_sized_int_type>: Declare methods.
13153
13154 2020-02-08 Tom Tromey <tom@tromey.com>
13155
13156 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13157 Move earlier.
13158
13159 2020-02-08 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2/read.h (dwarf_line_debug): Declare.
13162 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13163 * dwarf2/read.c: Move line_header code to new files.
13164 (dwarf_line_debug): No longer static.
13165 * dwarf2/line-header.c: New file.
13166 * dwarf2/line-header.h: New file.
13167
13168 2020-02-08 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (struct line_header) <file_full_name,
13171 file_file_name>: Return unique_xmalloc_ptr.
13172 (line_header::file_file_name): Update.
13173 (line_header::file_full_name): Update.
13174 (dw2_get_file_names_reader): Update.
13175 (macro_start_file): Update.
13176
13177 2020-02-08 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/read.c (struct line_header) <file_full_name,
13180 file_file_name>: Declare methods.
13181 (dw2_get_file_names_reader): Update.
13182 (file_file_name): Now a method.
13183 (file_full_name): Likewise.
13184 (macro_start_file): Update.
13185
13186 2020-02-08 Tom Tromey <tom@tromey.com>
13187
13188 * dwarf2/read.c (dwarf_always_disassemble)
13189 (show_dwarf_always_disassemble): Move to loc.c.
13190 (_initialize_dwarf2_read): Move "always-disassemble" registration
13191 to loc.c.
13192 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13193 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13194 static.
13195 (show_dwarf_always_disassemble): Move from read.c.
13196 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13197
13198 2020-02-08 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13201 (create_quick_file_names_table): Return htab_up.
13202 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13203 Update.
13204 * dwarf2/read.h (struct dwarf2_per_objfile)
13205 <quick_file_names_table>: Now htab_up.
13206
13207 2020-02-08 Tom Tromey <tom@tromey.com>
13208
13209 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13210
13211 2020-02-08 Tom Tromey <tom@tromey.com>
13212
13213 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13214 Rewrite.
13215 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13216 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13217 (abbrev_table::abbrev_table): No longer inline.
13218 (ABBREV_HASH_SIZE): Remove.
13219 (abbrev_table::m_abbrevs): Now an htab_up.
13220
13221 2020-02-08 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13224 (cutu_reader): Update.
13225 (build_type_psymtabs_1): Update.
13226 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13227 (abbrev_table::alloc_abbrev): Update.
13228 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13229 (abbrev_table::read): New static method, renamed from
13230 abbrev_table_read_table.
13231 (abbrev_table::alloc_abbrev)
13232 (abbrev_table::add_abbrev): Now private.
13233 (abbrev_table::abbrev_table): Now private.
13234 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13235
13236 2020-02-08 Tom Tromey <tom@tromey.com>
13237
13238 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13239 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13240 htab_up.
13241
13242 2020-02-08 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13245 htab_up.
13246 (lookup_dwo_unit_in_dwp): Update.
13247 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13248 on obstack.
13249
13250 2020-02-08 Tom Tromey <tom@tromey.com>
13251
13252 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13253 obstack.
13254
13255 2020-02-08 Tom Tromey <tom@tromey.com>
13256
13257 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13258 line_header_hash.
13259 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13260 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13261 Change type to htab_up.
13262
13263 2020-02-08 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13266 htab_up. Don't allocate on obstack.
13267 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13268 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13269 Change type to htab_up.
13270
13271 2020-02-08 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13274 Change type to htab_up.
13275 * dwarf2/read.c (create_signatured_type_table_from_index)
13276 (create_signatured_type_table_from_debug_names)
13277 (create_all_type_units, add_type_unit)
13278 (lookup_dwo_signatured_type, lookup_signatured_type)
13279 (process_skeletonless_type_unit): Update.
13280 (create_debug_type_hash_table, create_debug_types_hash_table):
13281 Change type of types_htab.
13282 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13283 htab_up. Don't allocate on obstack.
13284 (create_cus_hash_table): Change type of cus_htab parameter.
13285 (struct dwo_file) <cus, tus>: Now htab_up.
13286 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13287 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13288 (queue_and_load_all_dwo_tus): Update.
13289 * dwarf2/index-write.c (write_gdbindex): Update.
13290 (write_debug_names): Update.
13291
13292 2020-02-08 Tom Tromey <tom@tromey.com>
13293
13294 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13295 dwarf2/read.c. Remove "next" member. Add constructor ntad
13296 destructor.
13297 (struct dwarf2_per_objfile) <queue>: New member.
13298 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13299 dwarf2/read.h.
13300 (dwarf2_queue, dwarf2_queue_tail): Remove.
13301 (class dwarf2_queue_guard): Add parameter to constructor. Use
13302 DISABLE_COPY_AND_ASSIGN.
13303 <m_per_objfile>: New member.
13304 <~dwarf2_queue_guard>: Rewrite.
13305 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13306 Update.
13307 (~dwarf2_queue_item): New.
13308
13309 2020-02-08 Tom Tromey <tom@tromey.com>
13310
13311 * dwarf2/read.c (struct die_info) <has_children>: New member.
13312 (dw2_get_file_names_reader): Remove has_children.
13313 (dw2_get_file_names): Update.
13314 (read_cutu_die_from_dwo): Remove has_children.
13315 (cutu_reader::init_tu_and_read_dwo_dies)
13316 (cutu_reader::cutu_reader): Update.
13317 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13318 Remove has_children.
13319 (build_type_psymtabs_1, process_skeletonless_type_unit)
13320 (load_partial_comp_unit, load_full_comp_unit): Update.
13321 (create_dwo_cu_reader): Remove has_children.
13322 (create_cus_hash_table, read_die_and_children): Update.
13323 (read_full_die_1,read_full_die): Remove has_children.
13324 (read_signatured_type): Update.
13325 (class cutu_reader) <has_children>: Remove.
13326
13327 2020-02-08 Tom Tromey <tom@tromey.com>
13328
13329 * dwarf2/expr.c: Rename from dwarf2expr.c.
13330 * dwarf2/expr.h: Rename from dwarf2expr.h.
13331 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13332 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13333 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13334 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13335 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13336 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13337 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13338 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13339 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13340 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13341 * dwarf2/loc.c: Rename from dwarf2loc.c.
13342 * dwarf2/loc.h: Rename from dwarf2loc.h.
13343 * dwarf2/read.c: Rename from dwarf2read.c.
13344 * dwarf2/read.h: Rename from dwarf2read.h.
13345 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13346 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13347 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13348 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13349 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13350 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13351 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13352 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13353 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13354 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13355 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13356 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13357 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13358 Update.
13359 * Makefile.in (COMMON_SFILES): Update.
13360 (HFILES_NO_SRCDIR): Update.
13361
13362 2020-02-08 Tom Tromey <tom@tromey.com>
13363
13364 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13365 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13366
13367 2020-02-08 Tom Tromey <tom@tromey.com>
13368
13369 * dwarf2read.h (struct die_info): Don't declare.
13370
13371 2020-02-08 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2read.h (die_info_ptr): Remove typedef.
13374
13375 2020-02-08 Tom Tromey <tom@tromey.com>
13376
13377 * dwarf2read.c (read_call_site_scope)
13378 (handle_data_member_location, dwarf2_add_member_fn)
13379 (mark_common_block_symbol_computed, read_common_block)
13380 (attr_to_dynamic_prop, partial_die_info::read)
13381 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13382 (dwarf2_symbol_mark_computed, set_die_type): Update.
13383 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13384 method.
13385 (attr_form_is_block): Don't declare.
13386 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13387
13388 2020-02-08 Tom Tromey <tom@tromey.com>
13389
13390 * dwarf2read.c (dwarf2_find_base_address, )
13391 (read_call_site_scope, rust_containing_type)
13392 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13393 (handle_data_member_location, dwarf2_add_member_fn)
13394 (get_alignment, read_structure_type, process_structure_scope)
13395 (mark_common_block_symbol_computed, read_common_block)
13396 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13397 (partial_die_info::read, read_attribute_value, new_symbol)
13398 (lookup_die_type, dwarf2_get_ref_die_offset)
13399 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13400 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13401 (dwarf2_symbol_mark_computed): Update.
13402 * dwarf2/attribute.h (struct attribute) <value_as_address,
13403 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13404 methods.
13405 (value_as_address, attr_form_is_section_offset)
13406 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13407 * dwarf2/attribute.c (attribute::value_as_address)
13408 (attribute::form_is_section_offset, attribute::form_is_constant)
13409 (attribute::form_is_ref): Now methods.
13410
13411 2020-02-08 Tom Tromey <tom@tromey.com>
13412
13413 * dwarf2read.c (struct attribute, DW_STRING)
13414 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13415 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13416 (attr_form_is_block, attr_form_is_section_offset)
13417 (attr_form_is_constant, attr_form_is_ref): Move.
13418 * dwarf2/attribute.h: New file.
13419 * dwarf2/attribute.c: New file, from dwarf2read.c.
13420 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13421
13422 2020-02-08 Tom Tromey <tom@tromey.com>
13423
13424 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13425 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13426 Move.
13427 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13428 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13429 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13430 abbrev.c.
13431 * dwarf2/abbrev.h: New file.
13432 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13433 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13434
13435 2020-02-08 Tom Tromey <tom@tromey.com>
13436
13437 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13438 (dwarf2_section_size, dwarf2_get_section_info)
13439 (create_signatured_type_table_from_debug_names)
13440 (create_addrmap_from_aranges, read_debug_names_from_section)
13441 (get_gdb_index_contents_from_section, read_comp_unit_head)
13442 (error_check_comp_unit_head, read_abbrev_offset)
13443 (create_debug_type_hash_table, init_cu_die_reader)
13444 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13445 (read_comp_units_from_section, create_cus_hash_table)
13446 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13447 (create_dwp_v2_section, dwarf2_rnglists_process)
13448 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13449 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13450 (read_indirect_string_from_dwz, read_addr_index_1)
13451 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13452 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13453 (fill_in_loclist_baton): Update.
13454 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13455 get_containing_section, get_bfd_owner, get_bfd_section,
13456 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13457 (dwarf2_read_section, get_section_name, get_section_file_name)
13458 (get_containing_section, get_section_bfd_owner)
13459 (get_section_bfd_section, get_section_name, get_section_file_name)
13460 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13461 declare.
13462 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13463 (dwarf2_section_info::get_bfd_owner)
13464 (dwarf2_section_info::get_bfd_section)
13465 (dwarf2_section_info::get_name)
13466 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13467 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13468 (dwarf2_section_info::read): Now methods.
13469 * dwarf-index-write.c (class debug_names): Update.
13470
13471 2020-02-08 Tom Tromey <tom@tromey.com>
13472
13473 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13474 Move to dwarf2/section.h.
13475 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13476 (get_section_bfd_section, get_section_name)
13477 (get_section_file_name, get_section_id, get_section_flags)
13478 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13479 dwarf2/section.c.
13480 * dwarf2/section.h: New file.
13481 * dwarf2/section.c: New file, from dwarf2read.c.
13482 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13483
13484 2020-02-08 Tom Tromey <tom@tromey.com>
13485
13486 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13487 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13488 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13489 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13490 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13491 * dwarf2/leb.h: New file, from dwarf2read.c.
13492 * dwarf2/leb.c: New file, from dwarf2read.c.
13493 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13494 Remove.
13495 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13496 (COMMON_SFILES): Add dwarf2/leb.c.
13497
13498 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13499
13500 GDB 9.1 released.
13501
13502 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13503
13504 PR gdb/25190:
13505 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13506 * gdb/remote.c (remote_console_output): Update.
13507 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13508 (ui_file_puts): ...this.
13509 * gdb/ui-file.h (ui_file_puts): Add declaration.
13510 * gdb/utils.c (emit_style_escape): Update.
13511 (flush_wrap_buffer): Update.
13512 (fputs_maybe_filtered): Update.
13513 (fputs_unfiltered): Add function.
13514
13515 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13516
13517 * gdb/event-loop.c (gdb_wait_for_event): Update.
13518 * gdb/printcmd.c (printf_command): Update.
13519 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13520 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13521 (gdb_os_flush_stderr): Update.
13522 * gdb/remote.c (remote_console_output): Update.
13523 * gdb/ui-file.c (gdb_flush): Rename to...
13524 (ui_file_flush): ...this.
13525 (stderr_file::write): Update.
13526 (stderr_file::puts): Update.
13527 * gdb/ui-file.h (gdb_flush): Rename to...
13528 (ui_file_flush): ...this.
13529 * gdb/utils.c (gdb_flush): Add function.
13530 * gdb/utils.h (gdb_flush): Add declaration.
13531
13532 2020-02-07 Tom Tromey <tromey@adacore.com>
13533
13534 PR breakpoints/24915:
13535 * source.c (find_and_open_source): Do not check basenames_may_differ.
13536
13537 2020-02-07 Tom Tromey <tom@tromey.com>
13538
13539 * README: Update gdbserver documentation.
13540 * gdbserver: Move to top level.
13541 * configure.tgt (build_gdbserver): Remove.
13542 * configure.ac: Remove --enable-gdbserver.
13543 * configure: Rebuild.
13544 * Makefile.in (distclean): Don't mention gdbserver.
13545
13546 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13547
13548 * source-cache.c (source_cache::ensure): Surround
13549 get_plain_source_lines with a try/catch.
13550 (source_cache::get_line_charpos): Get rid of try/catch
13551 and only check for the return value of "ensure".
13552 * tui/tui-source.c (tui_source_window::set_contents):
13553 Simplify "nlines" calculation.
13554
13555 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13556
13557 * MAINTAINERS (Write After Approval): Add myself.
13558
13559 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13560
13561 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13562 function call.
13563
13564 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13565
13566 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13567
13568 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13569
13570 * nat/riscv-linux-tdesc.h: New file.
13571 * nat/riscv-linux-tdesc.c: New file, taking code from...
13572 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13573 ... here.
13574 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13575 NATDEPFILES.
13576
13577 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13578
13579 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13580 we don't set the fake simulator ptid to the null_ptid.
13581
13582 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13583
13584 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13585 * gdbthread.h (class thread_info) <resumed>: Likewise.
13586 * infrun.c (resume_1): Likewise.
13587 (proceed): Likewise.
13588 (infrun_thread_stop_requested): Likewise.
13589 (stop_all_threads): Likewise.
13590 (handle_inferior_event): Likewise.
13591 (restart_threads): Likewise.
13592 (finish_step_over): Likewise.
13593 (keep_going_stepped_thread): Likewise.
13594 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13595 (linux_handle_extended_wait): Likewise.
13596 * record-btrace.c (get_thread_current_frame_id): Likewise.
13597 * record-full.c (record_full_wait_1): Likewise.
13598 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13599 * target.c (target_resume): Likewise.
13600 * thread.c (set_running_thread): Likewise.
13601
13602 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13603
13604 * f-valprint.c (f77_print_array_1): Changed datatype of index
13605 variable to LONGEST from int to enable it to contain bound
13606 values correctly.
13607
13608 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13609
13610 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13611 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13612 offsets according to FLEN determined.
13613 (riscv_linux_nat_target::read_description): Determine FLEN
13614 dynamically.
13615 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13616 according to FLEN determined.
13617 (riscv_linux_nat_target::store_registers): Likewise.
13618
13619 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13620
13621 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13622 when reg->group is empty and reggroup is not.
13623
13624 2020-01-31 Tom Tromey <tromey@adacore.com>
13625
13626 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13627 Call beneath target's mourn_inferior after unpushing.
13628
13629 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13630
13631 PR tui/9765
13632 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13633 have enough lines to fill the screen, still return the lowest
13634 address we found.
13635
13636 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13637
13638 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13639 '-', '<', and '>' commands.
13640
13641 2020-01-29 Pedro Alves <palves@redhat.com>
13642 Sergio Durigan Junior <sergiodj@redhat.com>
13643
13644 * infcmd.c (construct_inferior_arguments): Assert that
13645 'argc' is greater than 0.
13646
13647 2020-01-29 Luis Machado <luis.machado@linaro.org>
13648
13649 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13650 (BRK_INSN_MASK): Define to 0xd4200000.
13651 (aarch64_program_breakpoint_here_p): New function.
13652 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13653 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13654 breakpoint.c.
13655 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13656 breakpoint.h
13657 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13658 call gdbarch_program_breakpoint_here_p.
13659 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13660 default_program_breakpoint_here_p, changed return type to bool and
13661 simplified.
13662 * breakpoint.h (program_breakpoint_here): Moved prototype to
13663 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13664 return type to bool.
13665 * gdbarch.c: Regenerate.
13666 * gdbarch.h: Regenerate.
13667 * gdbarch.sh (program_breakpoint_here_p): New method.
13668 * infrun.c (handle_signal_stop): Call
13669 gdbarch_program_breakpoint_here_p.
13670
13671 2020-01-26 Tom Tromey <tom@tromey.com>
13672
13673 * ctfread.c (struct ctf_fp_info): Reindent.
13674 (_initialize_ctfread): Remove.
13675
13676 2020-01-26 Tom Tromey <tom@tromey.com>
13677
13678 * psymtab.c (partial_map_expand_apply)
13679 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13680 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13681 (psym_print_stats, psym_expand_symtabs_for_function)
13682 (psym_map_symbol_filenames, psym_map_matching_symbols)
13683 (psym_expand_symtabs_matching)
13684 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13685 (maintenance_check_psymtabs): Use new methods.
13686 * psympriv.h (struct partial_symtab) <readin_p,
13687 get_compunit_symtab>: New methods.
13688 <readin, compunit_symtab>: Remove members.
13689 (struct standard_psymtab): New.
13690 (struct legacy_psymtab): Derive from standard_psymtab.
13691 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13692 standard_psymtab.
13693 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13694
13695 2020-01-26 Tom Tromey <tom@tromey.com>
13696
13697 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13698 read_dependencies. Add assert.
13699 * psymtab.c (partial_symtab::read_dependencies): New method.
13700 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13701 method.
13702 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13703 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13704 read_dependencies.
13705 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13706 Add assert.
13707
13708 2020-01-26 Tom Tromey <tom@tromey.com>
13709
13710 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13711 Call expand_psymtab.
13712 (xcoff_read_symtab): Call expand_psymtab.
13713 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13714 legacy_expand_psymtab.
13715 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13716 method.
13717 (struct legacy_psymtab) <expand_psymtab>: Implement.
13718 <legacy_expand_psymtab>: New member.
13719 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13720 (parse_partial_symbols): Set legacy_expand_psymtab.
13721 (psymtab_to_symtab_1): Change argument order. Call
13722 expand_psymtab.
13723 (new_psymtab): Set legacy_expand_psymtab.
13724 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13725 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13726 expand_psymtab.
13727 (dwarf2_psymtab::expand_psymtab): Rename from
13728 psymtab_to_symtab_1. Call expand_psymtab.
13729 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13730 (dbx_end_psymtab): Likewise.
13731 (dbx_psymtab_to_symtab_1): Change argument order. Call
13732 expand_psymtab.
13733 (dbx_read_symtab): Call expand_psymtab.
13734 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13735 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13736 (ctf_psymtab::read_symtab): Call expand_psymtab.
13737
13738 2020-01-26 Tom Tromey <tom@tromey.com>
13739
13740 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13741 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13742 messages.
13743 * mdebugread.c (mdebug_read_symtab): Remove prints.
13744 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13745 assert.
13746 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13747
13748 2020-01-26 Tom Tromey <tom@tromey.com>
13749
13750 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13751 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13752 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13753 legacy_symtab.
13754 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13755 * psymtab.c (psymtab_to_symtab): Call method.
13756 (dump_psymtab): Update.
13757 * psympriv.h (struct partial_symtab): Add virtual destructor.
13758 <read_symtab>: New method.
13759 (struct legacy_symtab): New.
13760 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13761 (struct pst_map) <pst>: Now a legacy_psymtab.
13762 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13763 (new_psymtab): Use legacy_psymtab.
13764 * dwarf2read.h (struct dwarf2_psymtab): New.
13765 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13766 * dwarf2read.c (dwarf2_create_include_psymtab)
13767 (dwarf2_build_include_psymtabs, create_type_unit_group)
13768 (create_partial_symtab, process_psymtab_comp_unit_reader)
13769 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13770 (set_partial_user): Use dwarf2_psymtab.
13771 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13772 (psymtab_to_symtab_1, process_full_comp_unit)
13773 (process_full_type_unit, dwarf2_ranges_read)
13774 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13775 (dwarf_decode_lines): Use dwarf2_psymtab.
13776 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13777 (add_address_entry_worker, write_one_signatured_type)
13778 (recursively_count_psymbols, recursively_write_psymbols)
13779 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13780 (write_debug_names): Likewise.
13781 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13782 <pst>: Now a legacy_psymtab.
13783 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13784 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13785 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13786 * ctfread.c (struct ctf_psymtab): New.
13787 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13788 ctf_psymtab.
13789 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13790 (create_partial_symtab): Return a ctf_psymtab.
13791 (scan_partial_symbols): Update.
13792
13793 2020-01-26 Tom Tromey <tom@tromey.com>
13794
13795 * xcoffread.c (xcoff_start_psymtab): Use new.
13796 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13797 renamed from start_psymtab_common.
13798 * psympriv.h (struct partial_symtab): Add new constructor.
13799 (start_psymtab_common): Don't declare.
13800 * mdebugread.c (parse_partial_symbols): Use new.
13801 * dwarf2read.c (create_partial_symtab): Use new.
13802 * dbxread.c (start_psymtab): Use new.
13803 * ctfread.c (create_partial_symtab): Use new.
13804
13805 2020-01-26 Tom Tromey <tom@tromey.com>
13806
13807 * xcoffread.c (xcoff_end_psymtab): Use new.
13808 * psymtab.c (start_psymtab_common): Use new.
13809 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13810 Update.
13811 * psympriv.h (struct partial_symtab): Add parameters to
13812 constructor. Don't inline.
13813 (allocate_psymtab): Don't declare.
13814 * mdebugread.c (new_psymtab): Use new.
13815 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13816 * dbxread.c (dbx_end_psymtab): Use new.
13817
13818 2020-01-26 Tom Tromey <tom@tromey.com>
13819
13820 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13821 allocate_psymtab. Update documentation.
13822 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13823 allocate_psymtab. Do not use new.
13824 (allocate_psymtab): Use new. Update.
13825
13826 2020-01-26 Tom Tromey <tom@tromey.com>
13827
13828 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13829 * psymtab.c (psym_print_stats): Update.
13830 * psympriv.h (struct partial_symtab) <readin,
13831 psymtabs_addrmap_supported, anonymous>: Now bool.
13832 * mdebugread.c (psymtab_to_symtab_1): Update.
13833 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13834 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13835 (process_full_comp_unit, process_full_type_unit): Update.
13836 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13837 * ctfread.c (psymtab_to_symtab): Update.
13838
13839 2020-01-26 Tom Tromey <tom@tromey.com>
13840
13841 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13842 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13843 * psymtab.c (psymtab_storage): Delete psymtabs.
13844 (psymtab_storage::allocate_psymtab): Use new.
13845 (psymtab_storage::discard_psymtab): Use delete.
13846 * psympriv.h (struct partial_symtab): Add constructor and
13847 initializers.
13848
13849 2020-01-26 Tom Tromey <tom@tromey.com>
13850
13851 * machoread.c: Do not include psympriv.h.
13852
13853 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13854
13855 * NEWS: Mention the new option and the set/show commands.
13856
13857 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13858
13859 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13860 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13861 (validate_exec_file): New variables, enums, functions.
13862 (exec_file_locate_attach, print_section_info): Style the filenames.
13863 (_initialize_exec): Install show_exec_file_mismatch_command and
13864 set_exec_file_mismatch_command.
13865 * gdbcore.h (validate_exec_file): Declare.
13866 * infcmd.c (attach_command): Call validate_exec_file.
13867 * remote.c ( remote_target::remote_add_inferior): Likewise.
13868
13869 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13870
13871 * frame.c (find_frame_sal): Move call to get_next_frame into more
13872 inner scope.
13873 * inline-frame.c (inilne_state) <inline_state>: Update argument
13874 types.
13875 (inilne_state) <skipped_symbol>: Rename to...
13876 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13877 (skip_inline_frames): Build vector of skipped symbols and use this
13878 to reate the inline_state.
13879 (inline_skipped_symbol): Add a comment and some assertions, fetch
13880 skipped symbol from the list.
13881
13882 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13883
13884 * buildsym.c (lte_is_less_than): Delete.
13885 (buildsym_compunit::end_symtab_with_blockvector): Create local
13886 lambda function to sort line table entries, and use
13887 std::stable_sort instead of std::sort.
13888 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13889 markers when looking for a previous line.
13890
13891 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13892
13893 * dwarf2read.c (lnp_state_machine::record_line): Include
13894 end_sequence parameter in debug print out. Record the line if we
13895 are at an end_sequence marker even if it's not the start of a
13896 statement.
13897 * symmisc.c (maintenance_print_one_line_table): Print end of
13898 sequence markers with 'END' not '0'.
13899
13900 2020-01-24 Pedro Alves <palves@redhat.com>
13901
13902 PR gdb/25410
13903 * thread.c (scoped_restore_current_thread::restore): Use
13904 switch_to_inferior_no_thread.
13905 * exec.c: Include "progspace-and-thread.h".
13906 (add_target_sections, remove_target_sections):
13907 scoped_restore_current_pspace_and_thread instead of
13908 scoped_restore_current_thread.
13909 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13910 and aspace to the inferior before calling clone_program_space.
13911 Remove stale comment.
13912
13913 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13914
13915 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13916 (arm_netbsd_nat_target::fetch_registers): ...this.
13917 (arm_nbsd_nat_target::store_registers): Rename to...
13918 (arm_netbsd_nat_target::store_registers): ...this.
13919
13920 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13921
13922 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13923 register_t.
13924
13925 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13926
13927 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13928 Update comment.
13929 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13930 Likewise.
13931 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13932 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13933 the correct replacement (iterate_over_regset_sections).
13934 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13935 Update comment.
13936
13937 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13938
13939 PR gdb/23718
13940 * gdb/python/python.c (execute_gdb_command): Call
13941 async_enable_stdin in catch block.
13942
13943 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13944
13945 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13946 SWITCH_THRU_ALL_UIS.
13947
13948 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13949
13950 PR tui/9765
13951 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13952 comment, add extra parameter, and update to store previous symbol
13953 when appropriate.
13954 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13955 add extra parameter.
13956 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13957 remove unneeded parameter, add try/catch around gdb_print_insn,
13958 rewrite to add items to asm_lines vector.
13959 (tui_find_backward_disassembly_start_address): New function.
13960 (tui_find_disassembly_address): Updated throughout.
13961 (tui_disasm_window::set_contents): Update for changes to
13962 tui_disassemble.
13963 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13964 number of lines to scroll.
13965
13966 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13967
13968 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13969 (SECT_OFF_DATA): Likewise.
13970 (SECT_OFF_RODATA): Likewise.
13971 (SECT_OFF_TEXT): Likewise.
13972 (SECT_OFF_BSS): Likewise.
13973 (struct objfile) <text_section_offset, data_section_offset>: New
13974 methods.
13975 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13976 objfile::text_section_offset.
13977 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13978 * coffread.c (coff_symtab_read): Likewise.
13979 (enter_linenos): Likewise.
13980 (process_coff_symbol): Likewise.
13981 * ctfread.c (get_objfile_text_range): Likewise.
13982 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13983 Use objfile::data_section_offset.
13984 * dwarf2-frame.c (execute_cfa_program): Use
13985 objfile::text_section_offset.
13986 (dwarf2_frame_find_fde): Likewise.
13987 * dwarf2read.c (create_addrmap_from_index): Likewise.
13988 (create_addrmap_from_aranges): Likewise.
13989 (dw2_find_pc_sect_compunit_symtab): Likewise.
13990 (process_psymtab_comp_unit_reader): Likewise.
13991 (add_partial_symbol): Likewise.
13992 (add_partial_subprogram): Likewise.
13993 (process_full_comp_unit): Likewise.
13994 (read_file_scope): Likewise.
13995 (read_func_scope): Likewise.
13996 (read_lexical_block_scope): Likewise.
13997 (read_call_site_scope): Likewise.
13998 (dwarf2_rnglists_process): Likewise.
13999 (dwarf2_ranges_process): Likewise.
14000 (dwarf2_ranges_read): Likewise.
14001 (dwarf_decode_lines_1): Likewise.
14002 (new_symbol): Likewise.
14003 (dwarf2_fetch_die_loc_sect_off): Likewise.
14004 (dwarf2_per_cu_text_offset): Likewise.
14005 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14006 * hppa-tdep.c (read_unwind_info): Likewise.
14007 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14008 * psympriv.h (struct partial_symtab): Likewise.
14009 * psymtab.c (find_pc_sect_psymtab): Likewise.
14010 * solib-svr4.c (enable_break): Likewise.
14011 * stap-probe.c (relocate_address): Use
14012 objfile::data_section_offset.
14013 * xcoffread.c (enter_line_range): Use
14014 objfile::text_section_offset.
14015 (read_xcoff_symtab): Likewise.
14016
14017 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14020 declaration to narrower scopes.
14021
14022 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14023
14024 * darwin-nat.h (struct darwin_exception_msg, enum
14025 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14026 Move up.
14027 (class darwin_nat_target) <wait_1, check_new_threads,
14028 decode_exception_message, decode_message, stop_inferior,
14029 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14030 * darwin-nat.c (darwin_check_new_threads): Rename to...
14031 (darwin_nat_target::check_new_threads): ... this.
14032 (darwin_suspend_inferior_it): Remove.
14033 (darwin_decode_exception_message): Rename to...
14034 (darwin_nat_target::decode_exception_message): ... this.
14035 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14036 (darwin_decode_message): Rename to...
14037 (darwin_nat_target::decode_message): ... this.
14038 (cancel_breakpoint): Rename to...
14039 (darwin_nat_target::cancel_breakpoint): ... this.
14040 (darwin_wait): Rename to...
14041 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14042 instead of iterate_over_inferiors.
14043 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14044 (darwin_stop_inferior): Rename to...
14045 (darwin_nat_target::stop_inferior): ... this.
14046 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14047 (darwin_init_thread_list): Rename to...
14048 (darwin_nat_target::init_thread_list): ... this.
14049 (darwin_ptrace_him): Rename to...
14050 (darwin_nat_target::ptrace_him): ... this.
14051 (darwin_nat_target::create_inferior): Pass lambda function to
14052 fork_inferior.
14053 (darwin_nat_target::detach): Call stop_inferior instead of
14054 darwin_stop_inferior.
14055 * fork-inferior.h (fork_inferior): Change init_trace_fun
14056 parameter to gdb::function_view.
14057 * fork-inferior.c (fork_inferior): Likewise.
14058
14059 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14060
14061 * i386-cygwin-tdep.c (core_process_module_section): Update.
14062 * windows-nat.c (struct lm_info_windows): Add text_offset.
14063 (windows_xfer_shared_libraries): Update.
14064 * windows-tdep.c (windows_xfer_shared_library):
14065 Add text_offset_cached argument.
14066 * windows-tdep.h (windows_xfer_shared_library): Update.
14067
14068 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14069
14070 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14071
14072 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14073
14074 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14075 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14076 replace with range-based for.
14077 (gdbsim_interrupt_inferior): Remove.
14078 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14079 with a range-based for. Inline code from
14080 gdbsim_interrupt_inferior.
14081
14082 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14083
14084 * infrun.c (proceed): Fix indentation.
14085
14086 2020-01-21 Tom Tromey <tromey@adacore.com>
14087
14088 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14089 * python/python.c (python_extension_ops): Update.
14090 (gdbpy_colorize): New function.
14091 * python/lib/gdb/__init__.py (colorize): New function.
14092 * extension.h (ext_lang_colorize): Declare.
14093 * extension.c (ext_lang_colorize): New function.
14094 * extension-priv.h (struct extension_language_ops) <colorize>: New
14095 member.
14096 * cli/cli-style.c (_initialize_cli_style): Update help text.
14097
14098 2020-01-21 Luis Machado <luis.machado@linaro.org>
14099
14100 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14101 <cond>: Change type to bool.
14102 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14103 (aarch64_displaced_step_cb): Likewise.
14104 (aarch64_displaced_step_tb): Likewise.
14105
14106 2020-01-21 Luis Machado <luis.machado@linaro.org>
14107
14108 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14109 output.
14110
14111 2020-01-21 Luis Machado <luis.machado@linaro.org>
14112
14113 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14114 <pc_adjust>: Adjust the documentation.
14115 (aarch64_displaced_step_fixup): Check if PC really moved before
14116 adjusting it.
14117
14118 2020-01-19 Tom Tromey <tom@tromey.com>
14119
14120 * disasm.c (~gdb_disassembler): New destructor.
14121 (gdb_buffered_insn_length): Call disassemble_free_target.
14122 * disasm.h (class gdb_disassembler): Declare destructor. Use
14123 DISABLE_COPY_AND_ASSIGN.
14124
14125 2020-01-19 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14128 (die_reader_func_ftype): Remove.
14129 (cutu_reader): New class.
14130 (dw2_get_file_names_reader): Remove "data" parameter.
14131 (dw2_get_file_names): Use cutu_reader.
14132 (create_debug_type_hash_table): Update.
14133 (read_cutu_die_from_dwo): Update comment.
14134 (lookup_dwo_unit): Add dwo_name parameter.
14135 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14136 die_reader_func_ftype and data parameters.
14137 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14138 Remove die_reader_func_ftype and data parameters.
14139 (~cutu_reader): New; from init_cutu_and_read_dies.
14140 (cutu_reader::cutu_reader): Rename from
14141 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14142 and data parameters.
14143 (init_cutu_and_read_dies_simple): Remove.
14144 (struct process_psymtab_comp_unit_data): Remove.
14145 (process_psymtab_comp_unit_reader): Remove data parameter; add
14146 want_partial_unit and pretend_language parameters.
14147 (process_psymtab_comp_unit): Use cutu_reader.
14148 (build_type_psymtabs_reader): Remove data parameter.
14149 (build_type_psymtabs_1): Use cutu_reader.
14150 (process_skeletonless_type_unit): Likewise.
14151 (load_partial_comp_unit_reader): Remove.
14152 (load_partial_comp_unit): Use cutu_reader.
14153 (load_full_comp_unit_reader): Remove.
14154 (load_full_comp_unit): Use cutu_reader.
14155 (struct create_dwo_cu_data): Remove.
14156 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14157 dwo_unit parameters.
14158 (create_cus_hash_table): Use cutu_reader.
14159 (struct dwarf2_read_addr_index_data): Remove.
14160 (dwarf2_read_addr_index_reader): Remove.
14161 (dwarf2_read_addr_index): Use cutu_reader.
14162 (read_signatured_type_reader): Remove.
14163 (read_signatured_type): Use cutu_reader.
14164
14165 2020-01-19 Tom Tromey <tom@tromey.com>
14166
14167 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14168 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14169 (tui_wrefresh): Declare.
14170 * tui/tui-wingeneral.c (suppress_output): New global.
14171 (tui_suppress_output, ~tui_suppress_output): New constructor and
14172 destructor.
14173 (tui_wrefresh): New function.
14174 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14175 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14176 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14177 method.
14178 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14179 tui_wrefresh.
14180 (tui_data_window::no_refresh): New method.
14181 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14182 (tui_reg_command): Use tui_suppress_output
14183 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14184 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14185 method.
14186 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14187
14188 2020-01-19 Tom Tromey <tom@tromey.com>
14189
14190 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14191 Handle case where symtab is null.
14192
14193 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14194
14195 * linux-fork.c (one_fork_p): Simplify.
14196
14197 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * top.c (struct qt_args): Remove.
14200 (kill_or_detach): Change return type to void, replace `void *`
14201 parameter with a proper one.
14202 (print_inferior_quit_action): Likewise.
14203 (quit_confirm): Use range-based for loop to iterate over inferiors.
14204 (quit_force): Likewise.
14205
14206 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14207
14208 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14209 `void *` parameter with proper parameters.
14210 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14211 (print_one_inferior): Change return type to void, replace `void *`
14212 parameter with proper parameters.
14213 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14214 inferiors.
14215 (get_other_inferior): Remove.
14216 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14217 inferiors.
14218
14219 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14220
14221 * mi/mi-interp.c (report_initial_inferior): Remove.
14222 (mi_interp::init): Use range-based for to iterate over inferiors.
14223
14224 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14225
14226 * python/py-inferior.c (build_inferior_list): Remove.
14227 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14228
14229 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14230
14231 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14232 (btrace_stitch_trace): Likewise.
14233 * charset.c (intermediate_encoding): Likewise (vaild).
14234 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14235 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14236 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14237
14238 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14239
14240 * windows-tdep.c (windows_get_tlb_type):
14241 Add rtl_user_process_parameters type.
14242
14243 2020-01-16 Pedro Alves <palves@redhat.com>
14244 Norbert Lange <nolange79@gmail.com>
14245
14246 PR build/24805
14247 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14248 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14249 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14250 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14251 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14252 (ps_plog): Redeclare exported functions with default visibility.
14253
14254 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14255
14256 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14257 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14258
14259 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14260
14261 * infcmd.c (post_create_inferior): Use get_thread_regcache
14262 instead of get_current_regcache.
14263
14264 2020-01-14 Tom Tromey <tom@tromey.com>
14265
14266 PR symtab/12535:
14267 * python/python.c (gdbpy_decode_line): Treat empty string the same
14268 as no argument.
14269
14270 2020-01-14 Tom Tromey <tom@tromey.com>
14271
14272 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14273
14274 2020-01-14 Tom Tromey <tom@tromey.com>
14275
14276 * nat/linux-btrace.c: Don't include <config.h>.
14277 * nat/linux-ptrace.c: Don't include <config.h>.
14278 * nat/x86-linux-dregs.c: Don't include <config.h>.
14279
14280 2020-01-14 Tom Tromey <tom@tromey.com>
14281
14282 * configure: Rebuild.
14283 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14284
14285 2020-01-14 Tom Tromey <tom@tromey.com>
14286
14287 * nat/x86-linux-dregs.c: Include configh.h.
14288 * nat/linux-ptrace.c: Include configh.h.
14289 * nat/linux-btrace.c: Include configh.h.
14290 * defs.h: Include config.h, bfd.h.
14291 * configure.ac: Don't source common.host.
14292 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14293 * configure: Rebuild.
14294 * acinclude.m4: Update path.
14295 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14296 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14297 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14298 (CLIBS): Add LIBSUPPORT.
14299 (CDEPS): Likewise.
14300 (COMMON_SFILES): Remove gdbsupport files.
14301 (HFILES_NO_SRCDIR): Likewise.
14302 (stamp-version): Update path to create-version.sh.
14303 (ALLDEPFILES): Remove gdbsupport files.
14304
14305 2020-01-14 Tom Tromey <tom@tromey.com>
14306
14307 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14308 USE_WIN32API when needed.
14309 * configure.ac (USE_WIN32API): Don't define.
14310 (WIN32LIBS): Use WIN32APILIBS.
14311 * configure: Rebuild.
14312
14313 2020-01-14 Tom Tromey <tom@tromey.com>
14314
14315 * configure: Rebuild.
14316 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14317
14318 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14319
14320 * skip.c (skip_function_command): Make skip w/o arguments use the
14321 name of the inlined function if pc is inside any inlined function.
14322
14323 2020-01-14 Luis Machado <luis.machado@linaro.org>
14324
14325 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14326 * infrun.c (resume_1): Likewise.
14327 (handle_inferior_event): Remove stale comment.
14328 * linux-nat.c (linux_nat_target::resume): Update comments.
14329 (save_stop_reason): Likewise.
14330 (linux_nat_filter_event): Likewise.
14331 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14332
14333 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14334
14335 * elfread.c (record_minimal_symbol): Set section index to 0 for
14336 non-allocatable sections.
14337
14338
14339 2020-01-13 Ali Tamur <tamur@google.com>
14340
14341 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14342 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14343 to gdb::optional. Update comments.
14344 (dwo_file): Update comments.
14345 (read_attribute): Update API to take an additional out parameter,
14346 need_reprocess. This is used to mark attributes that need other
14347 attributes (e.g. str_offsets_base) for correct computation which may not
14348 have been read yet.
14349 (read_attribute_reprocess): New function declaration.
14350 (read_addr_index): Likewise.
14351 (read_dwo_str_index): Likewise.
14352 (read_stub_str_index): Likewise.
14353 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14354 (lookup_addr_base): New function definition.
14355 (lookup_ranges_base): Likewise.
14356 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14357 lookup_ranges_base.
14358 (init_cutu_and_read_dies): Update comments.
14359 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14360 unit. This is used to inherit parent's str_offsets_base and addr_base.
14361 Update comments.
14362 (init_cutu_and_read_dies_simple): Reflect API changes.
14363 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14364 (create_cus_hash_table): Change API to take parent compile unit.
14365 Reflect API changes.
14366 (open_and_init_dwo_file): Reflect API changes.
14367 (dwarf2_get_pc_bounds): Update comments.
14368 (dwarf2_record_block_ranges): Likewise.
14369 (read_full_die_1): Change implementation to reprocess attributes that
14370 need str_offsets_base and addr_base.
14371 (partial_die_info::read): Likewise.
14372 (read_attribute_reprocess): New function definition.
14373 (read_attribute_value): Change API to take an additional out parameter,
14374 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14375 when a non-dwo compile unit has index based attributes.
14376 (read_attribute): Reflect API changes.
14377 (read_addr_index_1): Reflect API changes. Update comments.
14378 (dwarf2_read_addr_index_data): Reflect API changes.
14379 (dwarf2_read_addr_index): Likewise.
14380 (read_str_index): Change API and implementation. This becomes a helper
14381 to be used by the new string index related methods. Update error
14382 message and comments.
14383 (read_dwo_str_index): New function definition.
14384 (read_stub_str_index): Likewise.
14385 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14386 * symfile.h (dwarf2_debug_sections): Likewise.
14387 * xcoffread.c (dwarf2_debug_sections): Likewise.
14388
14389 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14390
14391 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14392 core_reg_sect type to gdb_byte *.
14393 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14394 * cris-tdep.c (fetch_core_registers): Likewise.
14395 * corelow.c (core_target::get_core_register_section): Change
14396 type of `contents` to gdb::byte_vector.
14397
14398 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14399
14400 * tui/tui-wingeneral.c (box_win): Position the title in the center
14401 of the border.
14402
14403 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14404
14405 * corelow.c (core_target::get_core_register_section): Use
14406 std::vector instead of alloca.
14407
14408 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14409
14410 * warning.m4: Add -Wmissing-declarations to build_warnings.
14411 * configure: Re-generate.
14412
14413 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14414
14415 * python/python.c (init__gdb_module): Add declaration.
14416
14417 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14418
14419 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14420 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14421 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14422 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14423 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14424 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14425 * ada-exp.y (_initialize_ada_exp): Add declaration.
14426 * ada-lang.c (_initialize_ada_language): Add declaration.
14427 * ada-tasks.c (_initialize_tasks): Add declaration.
14428 * agent.c (_initialize_agent): Add declaration.
14429 * aix-thread.c (_initialize_aix_thread): Add declaration.
14430 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14431 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14432 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14433 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14434 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14435 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14436 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14437 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14438 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14439 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14440 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14441 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14442 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14443 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14444 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14445 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14446 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14447 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14448 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14449 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14450 * annotate.c (_initialize_annotate): Add declaration.
14451 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14452 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14453 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14454 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14455 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14456 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14457 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14458 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14459 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14460 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14461 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14462 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14463 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14464 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14465 * auto-load.c (_initialize_auto_load): Add declaration.
14466 * auxv.c (_initialize_auxv): Add declaration.
14467 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14468 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14469 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14470 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14471 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14472 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14473 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14474 * breakpoint.c (_initialize_breakpoint): Add declaration.
14475 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14476 * btrace.c (_initialize_btrace): Add declaration.
14477 * charset.c (_initialize_charset): Add declaration.
14478 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14479 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14480 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14481 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14482 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14483 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14484 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14485 * coffread.c (_initialize_coffread): Add declaration.
14486 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14487 * compile/compile.c (_initialize_compile): Add declaration.
14488 * complaints.c (_initialize_complaints): Add declaration.
14489 * completer.c (_initialize_completer): Add declaration.
14490 * copying.c (_initialize_copying): Add declaration.
14491 * corefile.c (_initialize_core): Add declaration.
14492 * corelow.c (_initialize_corelow): Add declaration.
14493 * cp-abi.c (_initialize_cp_abi): Add declaration.
14494 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14495 * cp-support.c (_initialize_cp_support): Add declaration.
14496 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14497 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14498 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14499 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14500 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14501 * ctfread.c (_initialize_ctfread): Add declaration.
14502 * d-lang.c (_initialize_d_language): Add declaration.
14503 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14504 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14505 * dbxread.c (_initialize_dbxread): Add declaration.
14506 * dcache.c (_initialize_dcache): Add declaration.
14507 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14508 * disasm.c (_initialize_disasm): Add declaration.
14509 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14510 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14511 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14512 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14513 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14514 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14515 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14516 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14517 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14518 * elfread.c (_initialize_elfread): Add declaration.
14519 * exec.c (_initialize_exec): Add declaration.
14520 * extension.c (_initialize_extension): Add declaration.
14521 * f-lang.c (_initialize_f_language): Add declaration.
14522 * f-valprint.c (_initialize_f_valprint): Add declaration.
14523 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14524 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14525 * filesystem.c (_initialize_filesystem): Add declaration.
14526 * findcmd.c (_initialize_mem_search): Add declaration.
14527 * findvar.c (_initialize_findvar): Add declaration.
14528 * fork-child.c (_initialize_fork_child): Add declaration.
14529 * frame-base.c (_initialize_frame_base): Add declaration.
14530 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14531 * frame.c (_initialize_frame): Add declaration.
14532 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14533 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14534 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14535 * gcore.c (_initialize_gcore): Add declaration.
14536 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14537 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14538 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14539 * gdbarch.c (_initialize_gdbarch): Add declaration.
14540 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14541 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14542 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14543 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14544 * go-lang.c (_initialize_go_language): Add declaration.
14545 * go32-nat.c (_initialize_go32_nat): Add declaration.
14546 * guile/guile.c (_initialize_guile): Add declaration.
14547 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14548 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14549 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14550 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14551 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14552 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14553 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14554 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14555 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14556 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14557 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14558 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14559 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14560 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14561 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14562 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14563 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14564 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14565 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14566 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14567 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14568 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14569 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14570 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14571 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14572 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14573 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14574 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14575 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14576 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14577 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14578 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14579 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14580 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14581 * infcall.c (_initialize_infcall): Add declaration.
14582 * infcmd.c (_initialize_infcmd): Add declaration.
14583 * inflow.c (_initialize_inflow): Add declaration.
14584 * infrun.c (_initialize_infrun): Add declaration.
14585 * interps.c (_initialize_interpreter): Add declaration.
14586 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14587 * jit.c (_initialize_jit): Add declaration.
14588 * language.c (_initialize_language): Add declaration.
14589 * linux-fork.c (_initialize_linux_fork): Add declaration.
14590 * linux-nat.c (_initialize_linux_nat): Add declaration.
14591 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14592 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14593 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14594 * m2-lang.c (_initialize_m2_language): Add declaration.
14595 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14596 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14597 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14598 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14599 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14600 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14601 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14602 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14603 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14604 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14605 * machoread.c (_initialize_machoread): Add declaration.
14606 * macrocmd.c (_initialize_macrocmd): Add declaration.
14607 * macroscope.c (_initialize_macroscope): Add declaration.
14608 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14609 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14610 * maint.c (_initialize_maint_cmds): Add declaration.
14611 * mdebugread.c (_initialize_mdebugread): Add declaration.
14612 * memattr.c (_initialize_mem): Add declaration.
14613 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14614 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14615 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14616 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14617 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14618 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14619 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14620 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14621 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14622 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14623 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14624 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14625 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14626 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14627 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14628 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14629 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14630 * mipsread.c (_initialize_mipsread): Add declaration.
14631 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14632 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14633 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14634 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14635 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14636 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14637 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14638 * nto-procfs.c (_initialize_procfs): Add declaration.
14639 * objc-lang.c (_initialize_objc_language): Add declaration.
14640 * observable.c (_initialize_observer): Add declaration.
14641 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14642 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14643 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14644 * osabi.c (_initialize_gdb_osabi): Add declaration.
14645 * osdata.c (_initialize_osdata): Add declaration.
14646 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14647 * parse.c (_initialize_parse): Add declaration.
14648 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14649 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14650 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14651 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14652 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14653 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14654 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14655 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14656 * printcmd.c (_initialize_printcmd): Add declaration.
14657 * probe.c (_initialize_probe): Add declaration.
14658 * proc-api.c (_initialize_proc_api): Add declaration.
14659 * proc-events.c (_initialize_proc_events): Add declaration.
14660 * proc-service.c (_initialize_proc_service): Add declaration.
14661 * procfs.c (_initialize_procfs): Add declaration.
14662 * producer.c (_initialize_producer): Add declaration.
14663 * psymtab.c (_initialize_psymtab): Add declaration.
14664 * python/python.c (_initialize_python): Add declaration.
14665 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14666 * record-btrace.c (_initialize_record_btrace): Add declaration.
14667 * record-full.c (_initialize_record_full): Add declaration.
14668 * record.c (_initialize_record): Add declaration.
14669 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14670 * regcache.c (_initialize_regcache): Add declaration.
14671 * reggroups.c (_initialize_reggroup): Add declaration.
14672 * remote-notif.c (_initialize_notif): Add declaration.
14673 * remote-sim.c (_initialize_remote_sim): Add declaration.
14674 * remote.c (_initialize_remote): Add declaration.
14675 * reverse.c (_initialize_reverse): Add declaration.
14676 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14677 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14678 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14679 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14680 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14681 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14682 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14683 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14684 Add declaration.
14685 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14686 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14687 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14688 * rust-exp.y (_initialize_rust_exp): Add declaration.
14689 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14690 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14691 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14692 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14693 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14694 * score-tdep.c (_initialize_score_tdep): Add declaration.
14695 * ser-go32.c (_initialize_ser_dos): Add declaration.
14696 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14697 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14698 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14699 * ser-uds.c (_initialize_ser_socket): Add declaration.
14700 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14701 * serial.c (_initialize_serial): Add declaration.
14702 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14703 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14704 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14705 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14706 * skip.c (_initialize_step_skip): Add declaration.
14707 * sol-thread.c (_initialize_sol_thread): Add declaration.
14708 * solib-aix.c (_initialize_solib_aix): Add declaration.
14709 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14710 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14711 * solib-frv.c (_initialize_frv_solib): Add declaration.
14712 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14713 * solib-target.c (_initialize_solib_target): Add declaration.
14714 * solib.c (_initialize_solib): Add declaration.
14715 * source-cache.c (_initialize_source_cache): Add declaration.
14716 * source.c (_initialize_source): Add declaration.
14717 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14718 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14719 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14720 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14721 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14722 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14723 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14724 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14725 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14726 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14727 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14728 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14729 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14730 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14731 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14732 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14733 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14734 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14735 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14736 * stabsread.c (_initialize_stabsread): Add declaration.
14737 * stack.c (_initialize_stack): Add declaration.
14738 * stap-probe.c (_initialize_stap_probe): Add declaration.
14739 * std-regs.c (_initialize_frame_reg): Add declaration.
14740 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14741 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14742 * symfile.c (_initialize_symfile): Add declaration.
14743 * symmisc.c (_initialize_symmisc): Add declaration.
14744 * symtab.c (_initialize_symtab): Add declaration.
14745 * target.c (_initialize_target): Add declaration.
14746 * target-connection.c (_initialize_target_connection): Add
14747 declaration.
14748 * target-dcache.c (_initialize_target_dcache): Add declaration.
14749 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14750 * thread.c (_initialize_thread): Add declaration.
14751 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14752 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14753 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14754 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14755 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14756 * tracectf.c (_initialize_ctf): Add declaration.
14757 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14758 * tracefile.c (_initialize_tracefile): Add declaration.
14759 * tracepoint.c (_initialize_tracepoint): Add declaration.
14760 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14761 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14762 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14763 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14764 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14765 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14766 * tui/tui.c (_initialize_tui): Add declaration.
14767 * typeprint.c (_initialize_typeprint): Add declaration.
14768 * ui-style.c (_initialize_ui_style): Add declaration.
14769 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14770 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14771 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14772 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14773 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14774 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14775 * unittests/filtered_iterator-selftests.c
14776 (_initialize_filtered_iterator_selftests): Add declaration.
14777 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14778 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14779 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14780 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14781 * unittests/main-thread-selftests.c
14782 (_initialize_main_thread_selftests): Add declaration.
14783 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14784 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14785 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14786 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14787 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14788 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14789 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14790 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14791 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14792 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14793 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14794 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14795 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14796 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14797 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14798 declaration.
14799 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14800 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14801 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14802 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14803 * user-regs.c (_initialize_user_regs): Add declaration.
14804 * utils.c (_initialize_utils): Add declaration.
14805 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14806 * valops.c (_initialize_valops): Add declaration.
14807 * valprint.c (_initialize_valprint): Add declaration.
14808 * value.c (_initialize_values): Add declaration.
14809 * varobj.c (_initialize_varobj): Add declaration.
14810 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14811 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14812 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14813 * windows-nat.c (_initialize_windows_nat): Add declaration.
14814 (_initialize_check_for_gdb_ini): Add declaration.
14815 (_initialize_loadable): Add declaration.
14816 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14817 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14818 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14819 * xcoffread.c (_initialize_xcoffread): Add declaration.
14820 * xml-support.c (_initialize_xml_support): Add declaration.
14821 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14822 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14823 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14824 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14825
14826 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14827
14828 * regformats/regdat.sh: Generate declaration for init function.
14829
14830 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14831
14832 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14833 up.
14834 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14835 close_one_inferior>: New methods.
14836 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14837 pass down target to find_inferior_pid.
14838 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14839 Pass down target to find_inferior_ptid.
14840 (gdbsim_target::create_inferior): Pass down target to
14841 add_thread_silent.
14842 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14843 target down to find_inferior_ptid and switch_to_thread.
14844 (gdbsim_target::close): Update to call close_one_inferior.
14845 (struct resume_data): Remove.
14846 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14847 directly, rather than through a void pointer.
14848 (gdbsim_target::resume): Update to call resume_one_inferior.
14849
14850 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14851
14852 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14853
14854 2020-01-12 Pedro Alves <palves@redhat.com>
14855
14856 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14857 directly for the current inferior instead of
14858 discard_all_inferiors.
14859 (discard_all_inferiors): Delete.
14860
14861 2020-01-11 Tom Tromey <tom@tromey.com>
14862
14863 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14864 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14865 deprecated_safe_get_selected_frame.
14866
14867 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14868
14869 * inferior.c (print_inferior): Switch inferior before printing it.
14870
14871 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14872 Pedro Alves <palves@redhat.com>
14873
14874 * progspace-and-thread.c (switch_to_program_space_and_thread):
14875 Assert there's an inferior for PSPACE. Use
14876 switch_to_inferior_no_thread to switch the inferior too.
14877 * progspace.c (program_space::~program_space): Call
14878 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14879 (program_space::free_all_objfiles): Don't call clear_symtab_users
14880 here.
14881 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14882
14883 2020-01-10 Pedro Alves <palves@redhat.com>
14884
14885 * NEWS: Mention multi-target debugging, "info connections", and
14886 "add-inferior -no-connection".
14887
14888 2020-01-10 Pedro Alves <palves@redhat.com>
14889
14890 * infrun.c: Include "target-connection.h".
14891 (check_multi_target_resumption): New.
14892 (proceed): Call it.
14893 * target-connection.c (make_target_connection_string): Make
14894 extern.
14895 * target-connection.h (make_target_connection_string): Declare.
14896
14897 2020-01-10 Pedro Alves <palves@redhat.com>
14898
14899 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14900 * inferior.c (uiout_field_connection): New function.
14901 (print_inferior): Add new "connection-id" column.
14902 (add_inferior_command): Show connection number/string of added
14903 inferior.
14904 * process-stratum-target.h
14905 (process_stratum_target::connection_string): New virtual method.
14906 (process_stratum_target::connection_number): New field.
14907 * remote.c (remote_target::connection_string): New override.
14908 * target-connection.c: New file.
14909 * target-connection.h: New file.
14910 * target.c (decref_target): Remove process_stratum targets from
14911 the connection list.
14912 (target_stack::push): Add process_stratum targets to the
14913 connection list.
14914
14915 2020-01-10 Pedro Alves <palves@redhat.com>
14916
14917 Revert:
14918 2016-04-12 Pedro Alves <palves@redhat.com>
14919 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14920 Remove references to name.
14921 * serial.h (struct serial) <name>: Delete.
14922
14923 2020-01-10 Pedro Alves <palves@redhat.com>
14924
14925 * gdbarch-selftests.c (register_to_value_test): Remove "target
14926 already pushed" check.
14927
14928 2020-01-10 Pedro Alves <palves@redhat.com>
14929 John Baldwin <jhb@FreeBSD.org>
14930
14931 * aarch64-linux-nat.c
14932 (aarch64_linux_nat_target::thread_architecture): Adjust.
14933 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14934 (task_command_1): Likewise.
14935 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14936 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14937 (aix_thread_target::store_registers)
14938 (aix_thread_target::thread_alive): Adjust.
14939 * amd64-fbsd-tdep.c: Include "inferior.h".
14940 (amd64fbsd_get_thread_local_address): Pass down target.
14941 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14942 thread's gdbarch instead of target_gdbarch.
14943 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14944 get_last_target_status.
14945 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14946 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14947 inferiors.
14948 (update_inserted_breakpoint_locations): Skip if inferiors with no
14949 execution.
14950 (update_global_location_list): When handling moribund locations,
14951 find representative inferior for location's pspace, and use thread
14952 count of its process_stratum target.
14953 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14954 * bsd-uthread.c (bsd_uthread_target::wait): Use
14955 as_process_stratum_target and adjust thread_change_ptid and
14956 add_thread calls.
14957 (bsd_uthread_target::update_thread_list): Use
14958 as_process_stratum_target and adjust find_thread_ptid,
14959 thread_change_ptid and add_thread calls.
14960 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14961 find_thread_ptid call.
14962 * corelow.c (add_to_thread_list): Adjust add_thread call.
14963 (core_target_open): Adjust add_thread_silent and thread_count
14964 calls.
14965 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14966 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14967 * event-top.c (async_disconnect): Pop targets from all inferiors.
14968 * exec.c (add_target_sections): Push exec target on all inferiors
14969 sharing the program space.
14970 (remove_target_sections): Remove the exec target from all
14971 inferiors sharing the program space.
14972 (exec_on_vfork): New.
14973 * exec.h (exec_on_vfork): Declare.
14974 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14975 Pass it down.
14976 (fbsd_nat_target::update_thread_list): Adjust.
14977 (fbsd_nat_target::resume): Adjust.
14978 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14979 down.
14980 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14981 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14982 get_thread_arch_regcache call.
14983 * fork-child.c (gdb_startup_inferior): Pass target down to
14984 startup_inferior and set_executing.
14985 * gdbthread.h (struct process_stratum_target): Forward declare.
14986 (add_thread, add_thread_silent, add_thread_with_info)
14987 (in_thread_list): Add process_stratum_target parameter.
14988 (find_thread_ptid(inferior*, ptid_t)): New overload.
14989 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14990 parameter.
14991 (all_threads()): Delete overload.
14992 (all_threads, all_non_exited_threads): Add process_stratum_target
14993 parameter.
14994 (all_threads_safe): Use brace initialization.
14995 (thread_count): Add process_stratum_target parameter.
14996 (set_resumed, set_running, set_stop_requested, set_executing)
14997 (threads_are_executing, finish_thread_state): Add
14998 process_stratum_target parameter.
14999 (switch_to_thread): Use is_current_thread.
15000 * i386-fbsd-tdep.c: Include "inferior.h".
15001 (i386fbsd_get_thread_local_address): Pass down target.
15002 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15003 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15004 have_inferiors check.
15005 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15006 (inf_ptrace_target::attach): Adjust.
15007 * infcall.c (run_inferior_call): Adjust.
15008 * infcmd.c (run_command_1): Pass target to
15009 scoped_finish_thread_state.
15010 (proceed_thread_callback): Skip inferiors with no execution.
15011 (continue_command): Rename 'all_threads' local to avoid hiding
15012 'all_threads' function. Adjust get_last_target_status call.
15013 (prepare_one_step): Adjust set_running call.
15014 (signal_command): Use user_visible_resume_target. Compare thread
15015 pointers instead of inferior_ptid.
15016 (info_program_command): Adjust to pass down target.
15017 (attach_command): Mark target's 'thread_executing' flag.
15018 (stop_current_target_threads_ns): New, factored out from ...
15019 (interrupt_target_1): ... this. Switch inferior before making
15020 target calls.
15021 * inferior-iter.h
15022 (struct all_inferiors_iterator, struct all_inferiors_range)
15023 (struct all_inferiors_safe_range)
15024 (struct all_non_exited_inferiors_range): Filter on
15025 process_stratum_target too. Remove explicit.
15026 * inferior.c (inferior::inferior): Push dummy target on target
15027 stack.
15028 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15029 Add process_stratum_target parameter, and pass it down.
15030 (have_live_inferiors): Adjust.
15031 (switch_to_inferior_and_push_target): New.
15032 (add_inferior_command, clone_inferior_command): Handle
15033 "-no-connection" parameter. Use
15034 switch_to_inferior_and_push_target.
15035 (_initialize_inferior): Mention "-no-connection" option in
15036 the help of "add-inferior" and "clone-inferior" commands.
15037 * inferior.h: Include "process-stratum-target.h".
15038 (interrupt_target_1): Use bool.
15039 (struct inferior) <push_target, unpush_target, target_is_pushed,
15040 find_target_beneath, top_target, process_target, target_at,
15041 m_stack>: New.
15042 (discard_all_inferiors): Delete.
15043 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15044 (all_inferiors, all_non_exited_inferiors): Add
15045 process_stratum_target parameter.
15046 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15047 (target_last_proc_target): New global.
15048 (follow_fork_inferior): Push target on new inferior. Pass target
15049 to add_thread_silent. Call exec_on_vfork. Handle target's
15050 reference count.
15051 (follow_fork): Adjust get_last_target_status call. Also consider
15052 target.
15053 (follow_exec): Push target on new inferior.
15054 (struct execution_control_state) <target>: New field.
15055 (user_visible_resume_target): New.
15056 (do_target_resume): Call target_async.
15057 (resume_1): Set target's threads_executing flag. Consider resume
15058 target.
15059 (commit_resume_all_targets): New.
15060 (proceed): Also consider resume target. Skip threads of inferiors
15061 with no execution. Commit resumtion in all targets.
15062 (start_remote): Pass current inferior to wait_for_inferior.
15063 (infrun_thread_stop_requested): Consider target as well. Pass
15064 thread_info pointer to clear_inline_frame_state instead of ptid.
15065 (infrun_thread_thread_exit): Consider target as well.
15066 (random_pending_event_thread): New inferior parameter. Use it.
15067 (do_target_wait): Rename to ...
15068 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15069 down.
15070 (threads_are_resumed_pending_p, do_target_wait): New.
15071 (prepare_for_detach): Adjust calls.
15072 (wait_for_inferior): New inferior parameter. Handle it. Use
15073 do_target_wait_1 instead of do_target_wait.
15074 (fetch_inferior_event): Adjust. Switch to representative
15075 inferior. Pass target down.
15076 (set_last_target_status): Add process_stratum_target parameter.
15077 Save target in global.
15078 (get_last_target_status): Add process_stratum_target parameter and
15079 handle it.
15080 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15081 (context_switch): Check inferior_ptid == null_ptid before calling
15082 inferior_thread().
15083 (get_inferior_stop_soon): Pass down target.
15084 (wait_one): Rename to ...
15085 (poll_one_curr_target): ... this.
15086 (struct wait_one_event): New.
15087 (wait_one): New.
15088 (stop_all_threads): Adjust.
15089 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15090 event's target.
15091 (switch_back_to_stepped_thread): Also consider target.
15092 (print_stop_event): Update.
15093 (normal_stop): Update. Also consider the resume target.
15094 * infrun.h (wait_for_inferior): Remove declaration.
15095 (user_visible_resume_target): New declaration.
15096 (get_last_target_status, set_last_target_status): New
15097 process_stratum_target parameter.
15098 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15099 process_stratum_target parameter, and use it.
15100 (clear_inline_frame_state (thread_info*)): New.
15101 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15102 process_stratum_target parameter.
15103 (clear_inline_frame_state (thread_info*)): Declare.
15104 * linux-fork.c (delete_checkpoint_command): Pass target down to
15105 find_thread_ptid.
15106 (checkpoint_command): Adjust.
15107 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15108 instead of just tweaking inferior_ptid.
15109 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15110 (exit_lwp): Pass target down to find_thread_ptid.
15111 (attach_proc_task_lwp_callback): Pass target down to
15112 add_thread/set_running/set_executing.
15113 (linux_nat_target::attach): Pass target down to
15114 thread_change_ptid.
15115 (get_detach_signal): Pass target down to find_thread_ptid.
15116 Consider last target status's target.
15117 (linux_resume_one_lwp_throw, resume_lwp)
15118 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15119 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15120 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15121 (linux_nat_target::async_wait_fd): New.
15122 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15123 target down.
15124 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15125 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15126 * linux-thread-db.c (struct thread_db_info::process_target): New
15127 field.
15128 (add_thread_db_info): Save target.
15129 (get_thread_db_info): New process_stratum_target parameter. Also
15130 match target.
15131 (delete_thread_db_info): New process_stratum_target parameter.
15132 Also match target.
15133 (thread_from_lwp): Adjust to pass down target.
15134 (thread_db_notice_clone): Pass down target.
15135 (check_thread_db_callback): Pass down target.
15136 (try_thread_db_load_1): Always push the thread_db target.
15137 (try_thread_db_load, record_thread): Pass target down.
15138 (thread_db_target::detach): Pass target down. Always unpush the
15139 thread_db target.
15140 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15141 target down. Always unpush the thread_db target.
15142 (find_new_threads_callback, thread_db_find_new_threads_2)
15143 (thread_db_target::update_thread_list): Pass target down.
15144 (thread_db_target::pid_to_str): Pass current inferior down.
15145 (thread_db_target::get_thread_local_address): Pass target down.
15146 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15147 target down.
15148 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15149 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15150 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15151 (procfs_init_inferior): Rename to ...
15152 (procfs_target::procfs_init_inferior): ... this and adjust.
15153 (procfs_target::create_inferior, procfs_notice_thread)
15154 (procfs_do_thread_registers): Adjust.
15155 * ppc-fbsd-tdep.c: Include "inferior.h".
15156 (ppcfbsd_get_thread_local_address): Pass down target.
15157 * proc-service.c (ps_xfer_memory): Switch current inferior and
15158 program space as well.
15159 (get_ps_regcache): Pass target down.
15160 * process-stratum-target.c
15161 (process_stratum_target::thread_address_space)
15162 (process_stratum_target::thread_architecture): Pass target down.
15163 * process-stratum-target.h
15164 (process_stratum_target::threads_executing): New field.
15165 (as_process_stratum_target): New.
15166 * ravenscar-thread.c
15167 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15168 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15169 down.
15170 * record-btrace.c (record_btrace_target::info_record): Adjust.
15171 (record_btrace_target::record_method)
15172 (record_btrace_target::record_is_replaying)
15173 (record_btrace_target::fetch_registers)
15174 (get_thread_current_frame_id, record_btrace_target::resume)
15175 (record_btrace_target::wait, record_btrace_target::stop): Pass
15176 target down.
15177 * record-full.c (record_full_wait_1): Switch to event thread.
15178 Pass target down.
15179 * regcache.c (regcache::regcache)
15180 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15181 process_stratum_target parameter and handle it.
15182 (current_thread_target): New global.
15183 (get_thread_regcache): Add process_stratum_target parameter and
15184 handle it. Switch inferior before calling target method.
15185 (get_thread_regcache): Pass target down.
15186 (get_thread_regcache_for_ptid): Pass target down.
15187 (registers_changed_ptid): Add process_stratum_target parameter and
15188 handle it.
15189 (registers_changed_thread, registers_changed): Pass target down.
15190 (test_get_thread_arch_aspace_regcache): New.
15191 (current_regcache_test): Define a couple local test_target_ops
15192 instances and use them for testing.
15193 (readwrite_regcache): Pass process_stratum_target parameter.
15194 (cooked_read_test, cooked_write_test): Pass mock_target down.
15195 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15196 (get_thread_arch_aspace_regcache): Add process_stratum_target
15197 parameter.
15198 (regcache::target): New method.
15199 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15200 (regcache::registers_changed_ptid): Add process_stratum_target
15201 parameter.
15202 (regcache::m_target): New field.
15203 (registers_changed_ptid): Add process_stratum_target parameter.
15204 * remote.c (remote_state::supports_vCont_probed): New field.
15205 (remote_target::async_wait_fd): New method.
15206 (remote_unpush_and_throw): Add remote_target parameter.
15207 (get_current_remote_target): Adjust.
15208 (remote_target::remote_add_inferior): Push target.
15209 (remote_target::remote_add_thread)
15210 (remote_target::remote_notice_new_inferior)
15211 (get_remote_thread_info): Pass target down.
15212 (remote_target::update_thread_list): Skip threads of inferiors
15213 bound to other targets. (remote_target::close): Don't discard
15214 inferiors. (remote_target::add_current_inferior_and_thread)
15215 (remote_target::process_initial_stop_replies)
15216 (remote_target::start_remote)
15217 (remote_target::remote_serial_quit_handler): Pass down target.
15218 (remote_target::remote_unpush_target): New remote_target
15219 parameter. Unpush the target from all inferiors.
15220 (remote_target::remote_unpush_and_throw): New remote_target
15221 parameter. Pass it down.
15222 (remote_target::open_1): Check whether the current inferior has
15223 execution instead of checking whether any inferior is live. Pass
15224 target down.
15225 (remote_target::remote_detach_1): Pass down target. Use
15226 remote_unpush_target.
15227 (extended_remote_target::attach): Pass down target.
15228 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15229 (remote_target::append_resumption): Pass down target.
15230 (remote_target::append_pending_thread_resumptions)
15231 (remote_target::remote_resume_with_hc, remote_target::resume)
15232 (remote_target::commit_resume): Pass down target.
15233 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15234 (remote_target::interrupt_query)
15235 (remote_target::remove_new_fork_children)
15236 (remote_target::check_pending_events_prevent_wildcard_vcont)
15237 (remote_target::remote_parse_stop_reply)
15238 (remote_target::process_stop_reply): Pass down target.
15239 (first_remote_resumed_thread): New remote_target parameter. Pass
15240 it down.
15241 (remote_target::wait_as): Pass down target.
15242 (unpush_and_perror): New remote_target parameter. Pass it down.
15243 (remote_target::readchar, remote_target::remote_serial_write)
15244 (remote_target::getpkt_or_notif_sane_1)
15245 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15246 down target.
15247 (remote_target::mourn_inferior): Pass down target. Use
15248 remote_unpush_target.
15249 (remote_target::core_of_thread)
15250 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15251 (remote_target::pid_to_exec_file)
15252 (remote_target::thread_handle_to_thread_info): Pass down target.
15253 (remote_target::async_wait_fd): New.
15254 * riscv-fbsd-tdep.c: Include "inferior.h".
15255 (riscv_fbsd_get_thread_local_address): Pass down target.
15256 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15257 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15258 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15259 Adjust.
15260 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15261 * solib-svr4.c (enable_break): Pass down target.
15262 * spu-multiarch.c (parse_spufs_run): Pass down target.
15263 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15264 * target-delegates.c: Regenerate.
15265 * target.c (g_target_stack): Delete.
15266 (current_top_target): Return the current inferior's top target.
15267 (target_has_execution_1): Refer to the passed-in inferior's top
15268 target.
15269 (target_supports_terminal_ours): Check whether the initial
15270 inferior was already created.
15271 (decref_target): New.
15272 (target_stack::push): Incref/decref the target.
15273 (push_target, push_target, unpush_target): Adjust.
15274 (target_stack::unpush): Defref target.
15275 (target_is_pushed): Return bool. Adjust to refer to the current
15276 inferior's target stack.
15277 (dispose_inferior): Delete, and inline parts ...
15278 (target_preopen): ... here. Only dispose of the current inferior.
15279 (target_detach): Hold strong target reference while detaching.
15280 Pass target down.
15281 (target_thread_name): Add assertion.
15282 (target_resume): Pass down target.
15283 (target_ops::beneath, find_target_at): Adjust to refer to the
15284 current inferior's target stack.
15285 (get_dummy_target): New.
15286 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15287 has a thread running.
15288 (initialize_targets): Rename to ...
15289 (_initialize_target): ... this.
15290 * target.h: Include "gdbsupport/refcounted-object.h".
15291 (struct target_ops): Inherit refcounted_object.
15292 (target_ops::shortname, target_ops::longname): Make const.
15293 (target_ops::async_wait_fd): New method.
15294 (decref_target): Declare.
15295 (struct target_ops_ref_policy): New.
15296 (target_ops_ref): New typedef.
15297 (get_dummy_target): Declare function.
15298 (target_is_pushed): Return bool.
15299 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15300 (all_matching_threads_iterator::all_matching_threads_iterator):
15301 Handle filter target.
15302 * thread-iter.h (struct all_matching_threads_iterator, struct
15303 all_matching_threads_range, class all_non_exited_threads_range):
15304 Filter by target too. Remove explicit.
15305 * thread.c (threads_executing): Delete.
15306 (inferior_thread): Pass down current inferior.
15307 (clear_thread_inferior_resources): Pass down thread pointer
15308 instead of ptid_t.
15309 (add_thread_silent, add_thread_with_info, add_thread): Add
15310 process_stratum_target parameter. Use it for thread and inferior
15311 searches.
15312 (is_current_thread): New.
15313 (thread_info::deletable): Use it.
15314 (find_thread_ptid, thread_count, in_thread_list)
15315 (thread_change_ptid, set_resumed, set_running): New
15316 process_stratum_target parameter. Pass it down.
15317 (set_executing): New process_stratum_target parameter. Pass it
15318 down. Adjust reference to 'threads_executing'.
15319 (threads_are_executing): New process_stratum_target parameter.
15320 Adjust reference to 'threads_executing'.
15321 (set_stop_requested, finish_thread_state): New
15322 process_stratum_target parameter. Pass it down.
15323 (switch_to_thread): Also match inferior.
15324 (switch_to_thread): New process_stratum_target parameter. Pass it
15325 down.
15326 (update_threads_executing): Reimplement.
15327 * top.c (quit_force): Pop targets from all inferior.
15328 (gdb_init): Don't call initialize_targets.
15329 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15330 Declare.
15331 (windows_add_thread, windows_delete_thread): Adjust.
15332 (get_windows_debug_event): Rename to ...
15333 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15334 * tracefile-tfile.c (tfile_target_open): Pass down target.
15335 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15336 Forward declare.
15337 (switch_to_thread): Add process_stratum_target parameter.
15338 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15339 parameter. Use it.
15340 (mi_on_resume): Pass target down.
15341 * nat/fork-inferior.c (startup_inferior): Add
15342 process_stratum_target parameter. Pass it down.
15343 * nat/fork-inferior.h (startup_inferior): Add
15344 process_stratum_target parameter.
15345 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15346
15347 2020-01-10 Pedro Alves <palves@redhat.com>
15348
15349 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15350 directly. Instead find the first thread in the thread list and
15351 use switch_to_thread.
15352
15353 2020-01-10 Pedro Alves <palves@redhat.com>
15354
15355 * remote.c (remote_target::remote_add_inferior): Don't bind a
15356 process to the current inferior if the current inferior is already
15357 bound to a process.
15358
15359 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15360 Pedro Alves <palves@redhat.com>
15361
15362 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15363 If no process is specified, return null_ptid instead of
15364 inferior_ptid.
15365 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15366 TARGET_WAITKIND_SIGNALLED with no pid.
15367
15368 2020-01-10 Pedro Alves <palves@redhat.com>
15369
15370 * remote.c (first_remote_resumed_thread): New.
15371 (remote_target::wait_as): Use it as default event_ptid instead of
15372 inferior_ptid.
15373
15374 2020-01-10 Pedro Alves <palves@redhat.com>
15375
15376 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15377
15378 2020-01-10 Pedro Alves <palves@redhat.com>
15379
15380 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15381 not -1.
15382
15383 2020-01-10 Pedro Alves <palves@redhat.com>
15384
15385 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15386 ptid to get_last_target_status.
15387 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15388 ptid to get_last_target_status.
15389 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15390 get_last_target_status.
15391 (info_program_command): Don't pass a target_waitstatus to
15392 get_last_target_status.
15393 * infrun.c (init_wait_for_inferior): Use
15394 nullify_last_target_wait_ptid.
15395 (get_last_target_status): Handle nullptr arguments.
15396 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15397 (print_stop_event): Don't pass a ptid to get_last_target_status.
15398 (normal_stop): Don't pass a ptid to get_last_target_status.
15399 * infrun.h (get_last_target_status, set_last_target_status): Move
15400 comments here and update.
15401 (nullify_last_target_wait_ptid): Declare.
15402 * linux-fork.c (fork_load_infrun_state): Remove local extern
15403 declaration of nullify_last_target_wait_ptid.
15404 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15405 to get_last_target_status.
15406
15407 2020-01-10 Pedro Alves <palves@redhat.com>
15408
15409 * gdbthread.h (scoped_restore_current_thread)
15410 <dont_restore, restore, m_dont_restore>: Declare.
15411 * thread.c (thread_alive): Add assertion. Return bool.
15412 (switch_to_thread_if_alive): New.
15413 (prune_threads): Switch inferior/thread.
15414 (print_thread_info_1): Switch thread before calling target methods.
15415 (scoped_restore_current_thread::restore): New, factored out from
15416 ...
15417 (scoped_restore_current_thread::~scoped_restore_current_thread):
15418 ... this.
15419 (scoped_restore_current_thread::scoped_restore_current_thread):
15420 Add assertion.
15421 (thread_apply_all_command, thread_select): Use
15422 switch_to_thread_if_alive.
15423 * infrun.c (proceed, restart_threads, handle_signal_stop)
15424 (switch_back_to_stepped_thread): Switch current thread before
15425 calling target methods.
15426
15427 2020-01-10 Pedro Alves <palves@redhat.com>
15428
15429 * inferior.c (switch_to_inferior_no_thread): New function,
15430 factored out from ...
15431 (inferior_command): ... here.
15432 * inferior.h (switch_to_inferior_no_thread): Declare.
15433 * mi/mi-main.c (run_one_inferior): Use
15434 switch_to_inferior_no_thread.
15435
15436 2020-01-10 Pedro Alves <palves@redhat.com>
15437
15438 * infcmd.c (kill_command): Remove dead code.
15439
15440 2020-01-10 Pedro Alves <palves@redhat.com>
15441
15442 * remote.c (remote_target::mourn_inferior): No longer check
15443 whether the target is running.
15444
15445 2020-01-10 Pedro Alves <palves@redhat.com>
15446
15447 * corelow.c (core_target::has_execution): Change parameter type to
15448 inferior pointer.
15449 * inferior.c (number_of_live_inferiors): Use
15450 inferior::has_execution instead of target_has_execution_1.
15451 * inferior.h (inferior::has_execution): New.
15452 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15453 inferior::has_execution instead of target_has_execution_1.
15454 * process-stratum-target.c
15455 (process_stratum_target::has_execution): Change parameter type to
15456 inferior pointer. Check the inferior's PID instead of
15457 inferior_ptid.
15458 * process-stratum-target.h
15459 (process_stratum_target::has_execution): Change parameter type to
15460 inferior pointer.
15461 * record-full.c (record_full_core_target::has_execution): Change
15462 parameter type to inferior pointer.
15463 * target.c (target_has_execution_1): Change parameter type to
15464 inferior pointer.
15465 (target_has_execution_current): Adjust.
15466 * target.h (target_ops::has_execution): Change parameter type to
15467 inferior pointer.
15468 (target_has_execution_1): Change parameter type to inferior
15469 pointer. Change return type to bool.
15470 * tracefile.h (tracefile_target::has_execution): Change parameter
15471 type to inferior pointer.
15472
15473 2020-01-10 Pedro Alves <palves@redhat.com>
15474
15475 * exceptions.c (print_flush): Remove current_top_target() check.
15476
15477 2020-01-10 Pedro Alves <palves@redhat.com>
15478
15479 * remote.c (show_remote_exec_file): Show the current inferior's
15480 exec-file instead of the command variable's value.
15481
15482 2020-01-10 Pedro Alves <palves@redhat.com>
15483
15484 * record-full.c (record_full_resume_ptid): New global.
15485 (record_full_target::resume): Set it.
15486 (record_full_wait_1): Use record_full_resume_ptid instead of
15487 inferior_ptid.
15488
15489 2020-01-10 Pedro Alves <palves@redhat.com>
15490
15491 * gdbthread.h (scoped_restore_current_thread)
15492 <dont_restore, restore, m_dont_restore>: Declare.
15493 * thread.c (thread_alive): Add assertion. Return bool.
15494 (switch_to_thread_if_alive): New.
15495 (prune_threads): Switch inferior/thread.
15496 (print_thread_info_1): Switch thread before calling target methods.
15497 (scoped_restore_current_thread::restore): New, factored out from
15498 ...
15499 (scoped_restore_current_thread::~scoped_restore_current_thread):
15500 ... this.
15501 (scoped_restore_current_thread::scoped_restore_current_thread):
15502 Add assertion.
15503 (thread_apply_all_command, thread_select): Use
15504 switch_to_thread_if_alive.
15505
15506 2020-01-10 George Barrett <bob@bob131.so>
15507
15508 * stap-probe.c (stap_modify_semaphore): Don't check for null
15509 semaphores.
15510 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15511 for null semaphores.
15512
15513 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15514
15515 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15516 all source windows, and maintain horizontal scroll status while
15517 doing so.
15518
15519 2020-01-09 Tom Tromey <tom@tromey.com>
15520
15521 PR tui/18932:
15522 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15523 update_source_window, not print_source_lines.
15524
15525 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15526
15527 * tui/tui.c (tui_enable): Register tui hooks after calling
15528 tui_display_main.
15529
15530 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15531
15532 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15533
15534 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15535
15536 * thread.c (print_thread_info_1): Fix indentation.
15537
15538 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15539
15540 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15541 unique_xmalloc_ptr outside the if to always free the demangled name.
15542
15543 2020-01-08 Tom Tromey <tromey@adacore.com>
15544
15545 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15546 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15547 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15548 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15549 Remove.
15550 (section_offsets): New typedef.
15551 * symtab.c (fixup_section, get_msymbol_address): Update.
15552 * symmisc.c (dump_msymbols): Update.
15553 * symfile.h (relative_addr_info_to_section_offsets)
15554 (symfile_map_offsets_to_segments): Update.
15555 * symfile.c (build_section_addr_info_from_objfile)
15556 (init_objfile_sect_indices): Update.
15557 (struct place_section_arg): Change type of "offsets".
15558 (place_section): Update.
15559 (relative_addr_info_to_section_offsets): Change type of
15560 "section_offsets". Remove "num_sections" parameter.
15561 (default_symfile_offsets, syms_from_objfile_1)
15562 (set_objfile_default_section_offset): Update.
15563 (reread_symbols): No need to preserve section offsets by hand.
15564 (symfile_map_offsets_to_segments): Change type of "offsets".
15565 * stap-probe.c (relocate_address): Update.
15566 * stabsread.h (process_one_symbol): Update.
15567 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15568 (solib_target_relocate_section_addresses): Update.
15569 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15570 Update.
15571 * solib-frv.c (frv_relocate_main_executable): Update.
15572 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15573 * solib-aix.c (solib_aix_get_section_offsets): Change return
15574 type.
15575 (solib_aix_solib_create_inferior_hook): Update.
15576 * remote.c (remote_target::get_offsets): Update.
15577 * psymtab.c (find_pc_sect_psymtab): Update.
15578 * psympriv.h (struct partial_symbol) <address, text_low,
15579 text_high>: Update.
15580 * objfiles.h (obj_section_offset): Update.
15581 (struct objfile) <section_offsets>: Change type.
15582 <num_sections>: Remove.
15583 (objfile_relocate): Update.
15584 * objfiles.c (entry_point_address_query): Update
15585 (relocate_one_symbol): Change type of "section_offsets".
15586 (objfile_relocate1, objfile_relocate1): Change type of
15587 "new_offsets".
15588 (objfile_rebase1): Update.
15589 * mipsread.c (mipscoff_symfile_read): Update.
15590 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15591 parameter.
15592 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15593 (parse_external, psymtab_to_symtab_1): Update.
15594 * machoread.c (macho_symfile_offsets): Update.
15595 * ia64-tdep.c (ia64_find_unwind_table): Update.
15596 * hppa-tdep.c (read_unwind_info): Update.
15597 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15598 * dwarf2read.c (create_addrmap_from_index)
15599 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15600 (process_psymtab_comp_unit_reader, add_partial_symbol)
15601 (add_partial_subprogram, process_full_comp_unit)
15602 (read_file_scope, read_func_scope, read_lexical_block_scope)
15603 (read_call_site_scope, dwarf2_rnglists_process)
15604 (dwarf2_ranges_process, dwarf2_ranges_read)
15605 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15606 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15607 Update.
15608 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15609 Update.
15610 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15611 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15612 (process_one_symbol): Change type of "section_offsets".
15613 * ctfread.c (get_objfile_text_range): Update.
15614 * coffread.c (coff_symtab_read, enter_linenos)
15615 (process_coff_symbol): Update.
15616 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15617 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15618
15619 2020-01-08 Tom Tromey <tromey@adacore.com>
15620
15621 * dwarf2read.c (parse_macro_definition): Use std::string.
15622 (parse_macro_definition): Likewise.
15623
15624 2020-01-08 Tom Tromey <tromey@adacore.com>
15625
15626 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15627 (ATTR_ALLOC_CHUNK): Remove.
15628
15629 2020-01-08 Tom Tromey <tromey@adacore.com>
15630
15631 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15632
15633 2020-01-08 Tom Tromey <tromey@adacore.com>
15634
15635 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15636 (dwarf2_compute_name, open_dwo_file): Likewise.
15637 (process_enumeration_scope): Use std::vector.
15638 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15639 (partial_die_info::fixup, dwarf2_start_subfile)
15640 (guess_full_die_structure_name, dwarf2_name): Likewise.
15641 (determine_prefix): Update.
15642 (guess_full_die_structure_name): Make return type const.
15643 (partial_die_full_name): Return unique_xmalloc_ptr.
15644 (DW_FIELD_ALLOC_CHUNK): Remove.
15645
15646 2020-01-07 Tom Tromey <tromey@adacore.com>
15647
15648 PR build/24937:
15649 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15650
15651 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15652
15653 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15654
15655 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15656
15657 * stack.c (print_frame_info): Move disassemble_next_line code
15658 inside source_print block.
15659
15660 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15661
15662 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15663 gdb/signals.h, as we are now using native signal symbols.
15664
15665 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15666
15667 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15668 overflow by an early check of content vs threshold.
15669 * tui/tui-source.c (tui_source_window::line_is_displayed):
15670 Likewise.
15671
15672 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15673
15674 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15675
15676 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15677
15678 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15679 export table if no section contains it's RVA.
15680
15681 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15682
15683 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15684
15685 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15686
15687 * source.c (print_source_lines_base): Set last_line_listed.
15688
15689 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15690
15691 * tui/tui-disasm.c: Remove trailing spaces.
15692
15693 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15694 Pedro Alves <palves@redhat.com>
15695
15696 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15697 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15698 (windows_gdb_signal_to_target): New function, uses the above
15699 enumeration to convert GDB internal signal codes to equivalent
15700 Windows codes.
15701 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15702 * windows-nat.c: Include "gdb_wait.h".
15703 (get_windows_debug_event): Extract the fatal exception from the
15704 exit status and convert to the equivalent Posix signal number.
15705 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15706 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15707 * gdbsupport/gdb_wait.c: New file, implements
15708 windows_status_to_termsig.
15709 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15710 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15711
15712 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15713
15714 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15715 show_layout.
15716
15717 2020-01-05 Luis Machado <luis.machado@linaro.org>
15718
15719 * aarch64-linux-nat.c
15720 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15721 and bfd_mach_aarch64.
15722
15723 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15724
15725 * ui-file.c (stdio_file::can_emit_style_escape)
15726 (tee_file::can_emit_style_escape): Ensure style is used also on
15727 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15728 to gdb_stdout.
15729 * main.c (set_gdb_data_directory): Use file style to output the
15730 warning that the given pathname is not a directory.
15731 * top.c (show_history_filename, gdb_safe_append_history)
15732 (show_gdb_datadir): Use file style.
15733
15734 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15735
15736 * solib-target.c (struct lm_info_target):
15737 Change offsets to be a unique_xmalloc_ptr.
15738 (solib_target_relocate_section_addresses): Update.
15739
15740 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15741
15742 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15743
15744 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15745
15746 * MAINTAINERS (Write After Approval): Add myself.
15747
15748 2020-01-02 Luis Machado <luis.machado@linaro.org>
15749
15750 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15751 Cell BE architecture.
15752 * target.h (struct target_ops) <thread_architecture>: Likewise.
15753
15754 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15755
15756 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15757
15758 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15759
15760 * MAINTAINERS (Write After Approval): Add myself.
15761
15762 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15763
15764 * gdbarch.sh: Update copyright year range of generated files.
15765
15766 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15767
15768 Update copyright year range in all GDB files.
15769
15770 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15771
15772 * copyright.py: Convert to Python 3.
15773
15774 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15775
15776 * copyright.py: Adapt after move of gnulib directory from gdb
15777 directory to toplevel directory.
15778
15779 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15780
15781 * copyright.py (main): Exit if run from the wrong directory.
15782
15783 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15784
15785 * top.c (print_gdb_version): Change copyright year to 2020.
15786
15787 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15788
15789 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15790
15791 For older changes see ChangeLog-2019.
15792 \f
15793 Local Variables:
15794 mode: change-log
15795 left-margin: 8
15796 fill-column: 74
15797 version-control: never
15798 coding: utf-8
15799 End: