Add target_section constructor
[binutils-gdb.git] / gdb / ChangeLog
1 2020-10-29 Tom Tromey <tom@tromey.com>
2
3 * target-section.h (struct target_section): Add constructor.
4 * exec.c (build_section_table, add_target_sections_of_objfile):
5 Update.
6 * corelow.c (core_target::build_file_mappings): Update.
7
8 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9
10 PR gdb/19318
11 * inferior.c (detach_inferior_command): Restore the current thread.
12 (kill_inferior_command): Ditto.
13
14 2020-10-28 Tom de Vries <tdevries@suse.de>
15
16 PR symtab/26772
17 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
18 map, check it in the "best match" loop.
19
20 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * m32c-tdep.c: Remove unused includes.
23
24 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * xtensa-tdep.c: Remove includes.
27
28 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
29
30 * breakpoint.c (struct condition_command_opts): New struct.
31 (condition_command_option_defs): New static global.
32 (make_condition_command_options_def_group): New function.
33 (condition_completer): Update to consider the '-force' flag.
34 (condition_command): Use gdb::option for the '-force' flag.
35
36 2020-10-27 Tom de Vries <tdevries@suse.de>
37
38 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
39 symbols in section check.
40
41 2020-10-27 Tom de Vries <tdevries@suse.de>
42
43 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
44
45 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
48 * breakpoint.c: Update the help text of the 'condition' and 'break'
49 commands.
50 (set_breakpoint_condition): Take a new bool parameter
51 to control whether condition definition should be forced even when
52 the condition expression is invalid in all of the current locations.
53 (condition_command): Update the call to 'set_breakpoint_condition'.
54 (find_condition_and_thread): Take the "-force-condition" flag into
55 account.
56 * linespec.c (linespec_keywords): Add "-force-condition" as an
57 element.
58 (FORCE_KEYWORD_INDEX): New #define.
59 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
60 as a keyword.
61 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
62 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
63 * python/py-breakpoint.c (bppy_set_condition): Ditto.
64 * NEWS: Mention the changes to the 'break' and 'condition' commands.
65
66 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67
68 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
69 * breakpoint.c (set_breakpoint_location_condition): New function.
70 (set_breakpoint_condition): Disable a breakpoint location if parsing
71 the condition string gives an error.
72 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
73 (build_target_condition_list): Ditto.
74 (build_target_command_list): Ditto.
75 (build_bpstat_chain): Ditto.
76 (print_one_breakpoint_location): Ditto.
77 (print_one_breakpoint): Ditto.
78 (breakpoint_1): Ditto.
79 (bp_location::bp_location): Ditto.
80 (locations_are_equal): Ditto.
81 (update_breakpoint_locations): Ditto.
82 (enable_disable_bp_num_loc): Ditto.
83 (init_breakpoint_sal): Use set_breakpoint_location_condition.
84 (find_condition_and_thread_for_sals): New static function.
85 (create_breakpoint): Call find_condition_and_thread_for_sals.
86 (location_to_sals): Call find_condition_and_thread_for_sals instead
87 of find_condition_and_thread.
88
89 2020-10-26 Tom de Vries <tdevries@suse.de>
90
91 * dwarf2/read.c (process_full_comp_unit): Call
92 dwarf2_find_base_address.
93
94 2020-10-26 Tom Tromey <tromey@adacore.com>
95
96 * gdbtypes.c (create_range_type): Revert previous patch. Add
97 comment.
98
99 2020-10-26 Pedro Alves <pedro@palves.net>
100
101 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
102 (my_waitpid): Use gdb::handle_eintr.
103
104 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * acinclude.m4: Update ptrace.m4 path.
107 * ptrace.m4: Moved to gdbsupport.
108
109 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
110
111 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
112 instead of target_gdbarch.
113
114 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * jit.c (jit_reader_load_command): Pass current inferior.
117 (jit_inferior_init): Change parameter type to inferior, use it.
118 (jit_inferior_created): Remove.
119 (jit_inferior_created_hook): Pass inferior parameter down.
120 (_initialize_jit): Use jit_inferior_created_hook instead of
121 jit_inferior_created.
122 * jit.h (jit_inferior_created_hook): Add inferior parameter.
123 * infrun.c (follow_exec): Pass inferior to
124 jit_inferior_created_hook.
125
126 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
127
128 * linux-thread-db.c (check_pid_namespace_match): Add inferior
129 parameter and use it.
130 (thread_db_inferior_created): Pass inferior argument.
131
132 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
133
134 * aix-thread.c (aix_thread_inferior_created): Add inferior
135 parameter.
136 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
137 * dummy-frame.c (cleanup_dummy_frames): Likewise.
138 * jit.c (jit_inferior_created): Likewise.
139 * linux-thread-db.c (thread_db_inferior_created): Likewise.
140 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
141 * observable.h (inferior_created): Likewise.
142 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
143 * symfile-mem.c (add_vsyscall_page): Likewise.
144 * infcmd.c (post_create_inferior): Pass inferior argument.
145
146 2020-10-24 Joel Brobecker <brobecker@adacore.com>
147
148 GDB 10.1 released.
149
150 2020-10-23 Joel Brobecker <brobecker@adacore.com>
151
152 * ada-typeprint.c (ada_print_type): Remove superfluous second call
153 to ada_check_typedef.
154
155 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * f-exp.y (f_parse): Rename to...
158 (f_language::parser): ...this.
159 * f-lang.c (f_get_encoding): Rename to...
160 (f_language::get_encoding): ...this.
161 (f_op_print_tab): Rename to...
162 (f_language::op_print_tab): ...this.
163 (exp_descriptor_f): Rename to...
164 (f_language::exp_descriptor_tab): ...this.
165 (class f_language): Moved to f-lang.h.
166 (f_language::language_arch_info): New function, moved out of class
167 declaration.
168 (f_language::search_name_hash): Likewise.
169 (f_language::lookup_symbol_nonlocal): Likewise.
170 (f_language::get_symbol_name_matcher_inner): Likewise.
171 * f-lang.h: Add 'valprint.h' include.
172 (class f_language): Moved here from f-lang.c.
173 * f-typeprint.c (f_type_print_args): Delete commented out
174 declaration.
175 (f_print_typedef): Rename to...
176 (f_language::print_typedef): ...this.
177 (f_print_type): Rename to...
178 (f_language::print_type): ...this.
179 (f_type_print_varspec_prefix): Delete declaration and rename to...
180 (f_language::f_type_print_varspec_prefix): ...this.
181 (f_type_print_varspec_suffix): Delete declaration and rename to...
182 (f_language::f_type_print_varspec_suffix): ...this.
183 (f_type_print_base): Delete declaration and rename to...
184 (f_language::f_type_print_base): ...this.
185 * f-valprint.c (f_value_print_inner): Rename to...
186 (f_language::value_print_inner): ...this.
187 * parse.c: Delete 'f-lang.h' include.
188
189 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * language.h (language_defn::print_type): Add variable names in
192 declaration, and update header comment.
193
194 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * ada-lang.c (ada_language::demangle): Rename to...
197 (ada_language::demangle_symbol): ...this.
198 * c-lang.c (cplus_language::demangle): Rename to...
199 (cplus_language::demangle_symbol): ...this.
200 * d-lang.c (d_language::demangle): Rename to...
201 (d_language::demangle_symbol): ...this.
202 * f-lang.c (f_language::demangle): Rename to...
203 (f_language::demangle_symbol): ...this.
204 * go-lang.c (go_language::demangle): Rename to...
205 (go_language::demangle_symbol): ...this.
206 * language.c (language_demangle): Update call to demangle_symbol.
207 (auto_or_unknown_language::demangle): Rename to...
208 (auto_or_unknown_language::demangle_symbol): ...this.
209 * language.h (language_defn::demangle): Rename to...
210 (language_defn::demangle_symbol): ...this.
211 * objc-lang.c (objc_language::demangle): Rename to...
212 (objc_language::demangle_symbol): ...this.
213 * rust-lang.c (rust_language::demangle): Rename to...
214 (rust_language::demangle_symbol): ...this.
215
216 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
219 (iterate_over_file_blocks): Replace use of macro with the macros
220 definition.
221
222 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
225 * valprint.c (maybe_print_array_index): Replace use of macro with
226 the macros definition.
227
228 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * ada-lang.c (ada_language::print_array_index): Call value_print
231 directly.
232 * language.c (language_defn::print_array_index): Likewise.
233 * language.h (LA_VALUE_PRINT): Delete.
234 * valprint.c (value_print): Call value_print on the
235 current_language directly.
236
237 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * language.h (LA_PRINT_TYPEDEF): Delete.
240 * typeprint.c (typedef_print): Call print_typedef directly on the
241 current_language object.
242
243 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 * m2-exp.y (m2_parse): Rename to...
246 (m2_language::parser): ...this. Update function signature.
247 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
248 (m2_op_print): Rename to...
249 (m2_language::op_print_tab): ...this, and make const.
250 (exp_descriptor_modula2): Rename to...
251 (m2_language::exp_descriptor_modula2): ...this.
252 (class m2_language): Move to m2-lang.h.
253 (m2_language::language_arch_info): New function, moved out of
254 class declaration.
255 (m2_language::printchar): New function, body from m2_printchar.
256 (m2_language::printstr): New function, moved out of class
257 declaration.
258 (m2_language::emitchar): Likewise.
259 * m2-lang.h (m2_parse): Delete declaration.
260 (m2_print_typedef): Delete declaration.
261 (m2_value_print_inner): Delete declaration.
262 (class m2_language): Class declaration moved from m2-lang.c,
263 larger functions are left in m2-lang.c.
264 * m2-typeprint.c (m2_print_typedef): Rename to...
265 (m2_language::print_typedef): ...this, and update function
266 signature.
267 * m2-valprint.c (m2_value_print_inner): Rename to...
268 (m2_language::value_print_inner): ...this, replace use of
269 LA_PRINT_STRING with a direct call to printstr member function,
270 and update recursive call.
271
272 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * language.c (default_is_string_type_p): Delete, implementation
275 moved into auto_or_unknown_language::is_string_type_p.
276 (unk_op_print_tab): Moved into
277 auto_or_unknown_language::opcode_print_table.
278 (unknown_language_arch_info): Delete, implementation moved into
279 auto_or_unknown_language::language_arch_info.
280 (class auto_or_unknown_language): New class, member functions
281 copied from unknown_language class, with some updates.
282 (class unknown_language): Most member functions moved into
283 auto_or_unknown_language class. Inherit from
284 auto_or_unknown_language class.
285 (class auto_language): Inherit from auto_or_unknown_language.
286 Delete most member functions.
287
288 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
289
290 * stabsread.c (read_member_functions): Remove gdb_assert.
291
292 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
293
294 * gdbtypes.c (init_complex_type): Check target type name.
295
296 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * target-debug.h (target_debug_print_struct_target_ops_p):
299 Remove.
300 (target_debug_print_async_callback_ftype_p): Remove.
301 (target_debug_print_struct_trace_state_variable_p): Remove.
302 (target_debug_print_struct_traceframe_info_p): Remove.
303 (target_debug_print_VEC__btrace_block_s__pp): Remove.
304 (target_debug_print_enum_btrace_format): Remove.
305 (target_debug_print_enum_info_proc_what): Remove.
306 (target_debug_print_thread_info_pp): Remove.
307
308 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
309
310 * target.h (struct target_ops) <make_corefile_notes>:
311 Change return type to unique pointer.
312 * target.c (dummy_make_corefile_notes): Likewise.
313 * exec.c (struct exec_target) <make_corefile_notes>:
314 Likewise.
315 (exec_target::make_corefile_notes): Likewise.
316 * procfs.c (class procfs_target) <make_corefile_notes>:
317 Likewise.
318 (procfs_do_thread_registers): Adjust to unique pointer.
319 (struct procfs_corefile_thread_data): Add constructor.
320 <note_data>: Change type to unique pointer.
321 (procfs_corefile_thread_callback): Adjust to unique pointer.
322 (procfs_target::make_corefile_notes): Change return type to
323 unique pointer.
324 * target-delegates.c: Re-generate.
325 * gcore.c (write_gcore_file_1): Adjust.
326 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
327 New.
328
329 2020-10-22 Tom de Vries <tdevries@suse.de>
330
331 * block.c (find_block_in_blockvector): Make sure the returned block
332 contains pc.
333
334 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
335
336 PR gdb/26693
337 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
338 parameter.
339 (load_cu): Pass existing CU.
340 (process_imported_unit_die): Likewise.
341 (follow_die_offset): Likewise.
342
343 2020-10-22 Luis Machado <luis.machado@linaro.org>
344
345 * corelow.c (core_target::xfer_partial): Also check for an empty
346 m_core_unavailable_mappings vector.
347
348 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
351 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
352 * f-exp.y (arglist): Allow for a series of subranges.
353 (subrange): Add cases for subranges with strides.
354 * f-lang.c (value_f90_subarray): Catch use of array strides and
355 throw an error.
356 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
357
358 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * expprint.c (print_subexp_standard): Change enum range_type to
361 range_flag and rename variables to match.
362 (dump_subexp_body_standard): Likewise.
363 * expression.h (enum range_type): Rename to...
364 (enum range_flag): ...this.
365 (range_types): Rename to...
366 (range_flags): ...this.
367 * f-lang.c (value_f90_subarray): Change enum range_type to
368 range_flag and rename variables to match.
369 * parse.c (operator_length_standard): Likewise.
370 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
371 range_type to range_flag.
372 * rust-lang.c (rust_evaluate_funcall): Likewise.
373 (rust_range): Likewise.
374 (rust_compute_range): Likewise.
375 (rust_subscript): Likewise.
376
377 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * expprint.c (print_subexp_standard): Update to reflect changes to
380 enum range_type.
381 (dump_subexp_body_standard): Likewise.
382 * expression.h (enum range_type): Convert to a bit field enum, and
383 make the enum unsigned.
384 * f-exp.y (subrange): Update to reflect changes to enum
385 range_type.
386 * f-lang.c (value_f90_subarray): Likewise.
387 * parse.c (operator_length_standard): Likewise.
388 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
389 * rust-lang.c (rust_range): Likewise.
390 (rust_compute_range): Likewise.
391 (rust_subscript): Likewise.
392
393 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
394
395 * infrun.c (displaced_step_in_progress_thread): Fix comment.
396 (displaced_step_in_progress): Fix comment.
397
398 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * gdbarch.sh (make_corefile_notes): Return unique pointer.
401 * gdbarch.c: Re-generate.
402 * gdbarch.h: Re-generate.
403 * gcore.c (write_gcore_file_1): Adjust.
404 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
405 constructor.
406 <note_data>: Change type to unique pointer.
407 <abort_iteration>: Change type to bool.
408 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
409 (fbsd_collect_thread_registers): Return void, adjust.
410 (struct fbsd_corefile_thread_data): Add construtor.
411 <note_data>: Change type to unique pointer.
412 (fbsd_corefile_thread): Adjust.
413 (fbsd_make_corefile_notes): Return unique pointer, adjust.
414 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
415 to unique pointer, adjust.
416 (struct linux_collect_regset_section_cb_data): Add constructor.
417 <note_data>: Change type to unique pointer.
418 <abort_iteration>: Change type to bool.
419 (linux_collect_thread_registers): Return void, adjust.
420 (struct linux_corefile_thread_data): Add constructor.
421 <note_data>: Change type to unique pointer.
422 (linux_corefile_thread): Adjust.
423 (linux_make_corefile_notes): Return unique pointer, adjust.
424
425 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
428 * gdbarch.c: Re-generate.
429 * gdbarch.h: Re-generate.
430 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
431 bool.
432 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
433 Likewise.
434 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
435 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
436 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
437 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
438
439 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * gdbarch.sh: Make generated predicates return bool.
442 * gdbarch.c: Re-generate.
443 * gdbarch.h: Re-generate.
444
445 2020-10-20 Tom Tromey <tom@tromey.com>
446
447 * varobj-iter.h (struct varobj_item): Remove typedef.
448
449 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
450
451 * infrun.c (currently_stepping): Change int to bool
452 (maybe_software_singlestep): Likewise.
453 (show_stop_on_solib_events): Likewise.
454 (stepping_past_nonsteppable_watchpoint): Likewise.
455 (displaced_step_in_progress_any_inferior): Likewise.
456 (displaced_step_in_progress_thread): Likewise.
457 (keep_going_stepped_thread): Likewise.
458 (thread_still_needs_step_over): Likewise.
459 (start_step_over): Likewise.
460 (do_target_resume): Likewise.
461 (resume_1): Likewise.
462 (clear_proceed_status): Likewise.
463 (thread_still_needs_step_over_bp): Likewise.
464 (proceed): Likewise.
465 (switch_back_to_stepped_thread): Likewise.
466 (adjust_pc_after_break): Likewise.
467 (stepped_in_from): Likewise.
468 (handle_stop_requested): Likewise.
469 (handle_syscall_event): Likewise.
470 (handle_no_resumed): Likewise.
471 (handle_inferior_event): Likewise.
472 (finish_step_over): Likewise.
473 (handle_signal_stop): Likewise.
474 (process_event_stop_test): Likewise.
475
476 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * infrun.c (get_displaced_stepping_state): Fix comment.
479
480 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
481
482 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
483
484 2020-10-19 Tom Tromey <tromey@adacore.com>
485
486 PR tui/26719
487 * tui/tui-winsource.h (struct tui_source_window_base)
488 <refresh_window>: Rename from refresh_pad.
489 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
490 Rename from refresh_pad.
491 (tui_source_window_base::show_source_content)
492 (tui_source_window_base::do_scroll_horizontal): Update.
493
494 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495
496 * thread.c (_initialize_thread): Fine-tune the help text of
497 'info threads'.
498
499 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
500
501 * frame.c: Remove the unused 'uinteger_option_def' type alias.
502
503 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
504
505 * breakpoint.c (handle_jit_event): Add an argument, change how
506 `jit_event_handler` is called.
507
508 2020-10-17 Tom Tromey <tom@tromey.com>
509
510 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
511 (scan_xcoff_symtab): Update.
512 * psymtab.h (class psymtab_storage) <global_psymbols,
513 static_psymbols, current_global_psymbols,
514 current_static_psymbols>: Remove.
515 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
516 (match_partial_symbol, lookup_partial_symbol): Update.
517 (print_partial_symbols): Change parameters.
518 (dump_psymtab, recursively_search_psymtabs)
519 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
520 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
521 (concat): Remove.
522 (end_psymtab_common): Simplify.
523 (append_psymbol_to_list): Change parameters.
524 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
525 (init_psymbol_list): Simplify.
526 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
527 * psympriv.h (struct partial_symtab) <empty>: New method.
528 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
529 Remove.
530 <global_psymbols, static_psymbols>: New members.
531 <add_psymbol>: New methods.
532 (add_psymbol_to_list): Don't declare.
533 (psymbol_placement): Move earlier.
534 * mdebugread.c (parse_partial_symbols): Update.
535 (handle_psymbol_enumerators): Change parameters.
536 (mdebug_expand_psymtab): Update.
537 * dwarf2/read.c (process_psymtab_comp_unit_reader)
538 (add_partial_symbol): Update.
539 * dwarf2/index-write.c (write_psymbols): Change parameters.
540 (write_one_signatured_type): Update.
541 (recursively_count_psymbols): Update.
542 (recursively_write_psymbols): Update.
543 (class debug_names) <recursively_write_psymbols>: Update.
544 <write_psymbols>: Change parameters.
545 <write_one_signatured_type>: Update.
546 * dbxread.c (read_dbx_symtab): Update.
547 (dbx_end_psymtab): Use partial_symtab::empty.
548 * ctfread.c (struct ctf_context) <pst>: New member.
549 (create_partial_symtab): Set it.
550 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
551 (scan_partial_symbols): Use the psymtab's context. Update.
552
553 2020-10-17 Tom Tromey <tom@tromey.com>
554
555 * valprint.c (generic_value_print): Remove comment.
556 * m2-valprint.c (m2_value_print_inner): Remove comment.
557 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
558 type.
559
560 2020-10-17 Tom de Vries <tdevries@suse.de>
561
562 PR symtab/26317
563 * source.c (select_source_symtab): Handling sal.symtab == NULL for
564 symbol main.
565
566 2020-10-14 Tom de Vries <tdevries@suse.de>
567
568 PR gdb/26733
569 * solib.c (solib_contains_address_p): Handle
570 'solib->sections == nullptr'.
571
572 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
573
574 PR gdb/26642
575 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
576 target can't do async.
577 * target.c (target_wait): Assert that we don't pass
578 TARGET_WNOHANG to a target that can't async.
579
580 2020-10-13 Kamil Rytarowski <n54@gmx.com>
581
582 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
583 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
584 * alpha-bsd-nat.c: Adjust include.
585 * alpha-bsd-tdep.h: Adjust comment.
586 * alpha-nbsd-tdep.c: Rename to ...
587 * alpha-netbsd-tdep.c: ... this, adjust include.
588 * amd64-nbsd-nat.c: Rename to ...
589 * amd64-netbsd-nat.c: ... this, adjust include.
590 * amd64-nbsd-tdep.c: Rename to ...
591 * amd64-netbsd-tdep.c: ... this, adjust include.
592 * amd64-tdep.h: Adjust include.
593 * arm-nbsd-nat.c: Rename to ...
594 * arm-netbsd-nat.c: ... this, adjust include.
595 * arm-nbsd-tdep.c: Rename to ...
596 * arm-netbsd-tdep.c: ... this, adjust include.
597 * arm-nbsd-tdep.h: Rename to ...
598 * arm-netbsd-tdep.h: ... this, adjust include.
599 * configure.nat: Adjust file lists.
600 * configure.tgt: Likewise.
601 * hppa-nbsd-nat.c: Rename to ...
602 * hppa-netbsd-nat.c: ... this, adjust include.
603 * hppa-nbsd-tdep.c: Rename to ...
604 * hppa-netbsd-tdep.c: ... this, adjust include.
605 * i386-nbsd-nat.c: Rename to ...
606 * i386-netbsd-nat.c: ... this, adjust include.
607 * i386-nbsd-tdep.c: Rename to ...
608 * i386-netbsd-tdep.c: ... this, adjust include.
609 * m68k-bsd-nat.c: Adjust include.
610 * mips-nbsd-nat.c: Rename to ...
611 * mips-netbsd-nat.c: ... this, adjust include.
612 * mips-nbsd-tdep.c: Rename to ...
613 * mips-netbsd-tdep.c: ... this, adjust include.
614 * mips-nbsd-tdep.h: Rename to ...
615 * mips-netbsd-tdep.h: ... this.
616 * nbsd-nat.c: Rename to ...
617 * netbsd-nat.c: ... this, adjust include.
618 * nbsd-nat.h: Rename to ...
619 * netbsd-nat.h: ... this, adjust include.
620 * nbsd-tdep.c: Rename to ...
621 * netbsd-tdep.c: ... this, adjust include.
622 * nbsd-tdep.h: Rename to ...
623 * netbsd-tdep.h: ... this.
624 * ppc-nbsd-nat.c: Rename to ...
625 * ppc-netbsd-nat.c: ... this, adjust include.
626 * ppc-nbsd-tdep.c: Rename to ...
627 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
628 * ppc-nbsd-tdep.h: Rename to ...
629 * ppc-netbsd-tdep.h: ... this.
630 * sh-nbsd-nat.c: Rename to ...
631 * sh-netbsd-nat.c: ... this, adjust include.
632 * sh-nbsd-tdep.c: Rename to ...
633 * sh-netbsd-tdep.c: ... this, adjust include.
634 * sparc-nbsd-nat.c: Rename to ...
635 * sparc-netbsd-nat.c: ... this.
636 * sparc-nbsd-tdep.c: Rename to ...
637 * sparc-netbsd-tdep.c: ... this, adjust include.
638 * sparc64-nbsd-nat.c: Rename to ...
639 * sparc64-netbsd-nat.c: ... this.
640 * sparc64-nbsd-tdep.c: Rename to ...
641 * sparc64-netbsd-tdep.c: ... this, adjust include.
642 * sparc64-tdep.h: Adjust comment.
643 * vax-bsd-nat.c: Adjust include.
644 * vax-nbsd-tdep.c: Rename to ...
645 * vax-netbsd-tdep.c: ... this, adjust include.
646
647 2020-10-12 Tom Tromey <tom@tromey.com>
648
649 * target.h (struct target_ops) <get_section_table>: Update.
650 (target_get_section_table): Update.
651 * target.c (target_get_section_table, target_section_by_addr)
652 (memory_xfer_partial_1): Update.
653 * target-section.h (target_section_table): Now an alias.
654 * target-delegates.c: Rebuild.
655 * target-debug.h (target_debug_print_target_section_table_p):
656 Rename from target_debug_print_struct_target_section_table_p.
657 * symfile.c (build_section_addr_info_from_section_table): Update.
658 * solib.c (solib_map_sections, solib_contains_address_p): Update.
659 * solib-svr4.c (scan_dyntag): Update.
660 * solib-dsbt.c (scan_dyntag): Update.
661 * remote.c (remote_target::remote_xfer_live_readonly_partial):
662 Update.
663 * record-full.c (record_full_core_target::xfer_partial): Update.
664 * progspace.h (struct program_space) <target_sections>: Update.
665 * exec.h (print_section_info): Update.
666 * exec.c (exec_target::close, build_section_table)
667 (add_target_sections, add_target_sections_of_objfile)
668 (remove_target_sections, exec_on_vfork)
669 (section_table_available_memory)
670 (section_table_xfer_memory_partial)
671 (exec_target::get_section_table, exec_target::xfer_partial)
672 (print_section_info, set_section_command)
673 (exec_set_section_address, exec_target::has_memory): Update.
674 * corelow.c (core_target::build_file_mappings)
675 (core_target::xfer_partial, core_target::info_proc_mappings)
676 (core_target::info_proc_mappings): Update.
677 * bfd-target.c (class target_bfd): Update
678
679 2020-10-12 Tom Tromey <tom@tromey.com>
680
681 * progspace.c (program_space::~program_space): Don't call
682 clear_section_table.
683 * exec.h (clear_section_table): Don't declare.
684 * exec.c (exec_target::close): Update.
685 (clear_section_table): Remove.
686
687 2020-10-12 Tom Tromey <tom@tromey.com>
688
689 * exec.c (add_target_sections_of_objfile): Simplify.
690
691 2020-10-12 Tom Tromey <tom@tromey.com>
692
693 * solib.c (solib_map_sections): Update.
694 * record-full.c (record_full_core_open_1): Update.
695 * exec.h (build_section_table): Return a target_section_table.
696 * exec.c (exec_file_attach): Update.
697 (build_section_table): Return a target_section_table.
698 * corelow.c (core_target::core_target): Update.
699 * bfd-target.c (target_bfd::target_bfd): Update.
700
701 2020-10-12 Tom Tromey <tom@tromey.com>
702
703 * target.c (target_section_by_addr, memory_xfer_partial_1):
704 Update.
705 * target-section.h (struct target_section_table): Use
706 std::vector.
707 * symfile.h (build_section_addr_info_from_section_table): Take a
708 target_section_table.
709 * symfile.c (build_section_addr_info_from_section_table): Take a
710 target_section_table.
711 * solist.h (struct so_list) <sections>: Change type.
712 <sections_end>: Remove.
713 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
714 (solib_contains_address_p): Update.
715 * solib-svr4.c (scan_dyntag): Update.
716 * solib-dsbt.c (scan_dyntag): Update.
717 * remote.c (remote_target::remote_xfer_live_readonly_partial):
718 Update.
719 * record-full.c (record_full_core_start, record_full_core_end):
720 Remove.
721 (record_full_core_sections): New global.
722 (record_full_core_open_1, record_full_core_target::xfer_partial):
723 Update.
724 * exec.h (build_section_table, section_table_xfer_memory_partial)
725 (add_target_sections): Take a target_section_table.
726 * exec.c (exec_file_attach, clear_section_table): Update.
727 (resize_section_table): Remove.
728 (build_section_table, add_target_sections): Take a
729 target_section_table.
730 (add_target_sections_of_objfile, remove_target_sections)
731 (exec_on_vfork): Update.
732 (section_table_available_memory): Take a target_section_table.
733 (section_table_read_available_memory): Update.
734 (section_table_xfer_memory_partial): Take a target_section_table.
735 (print_section_info, set_section_command)
736 (exec_set_section_address, exec_target::has_memory): Update.
737 * corelow.c (class core_target) <m_core_section_table,
738 m_core_file_mappings>: Remove braces.
739 <~core_target>: Remove.
740 (core_target::core_target): Update.
741 (core_target::~core_target): Remove.
742 (core_target::build_file_mappings)
743 (core_target::xfer_memory_via_mappings)
744 (core_target::xfer_partial, core_target::info_proc_mappings):
745 Update.
746 * bfd-target.c (target_bfd::xfer_partial): Update.
747 (target_bfd::target_bfd): Update.
748 (target_bfd::~target_bfd): Remove.
749
750 2020-10-12 Tom Tromey <tom@tromey.com>
751
752 * target.h (struct target_section, struct target_section_table):
753 Move to target-section.h.
754 * target-section.h: New file.
755
756 2020-10-12 Pedro Alves <pedro@palves.net>
757
758 PR exp/26602
759 * valops.c (struct struct_field_searcher): New.
760 (update_search_result): Rename to ...
761 (struct_field_searcher::update_result): ... this. Simplify
762 prototype. Record all found fields.
763 (do_search_struct_field): Rename to ...
764 (struct_field_searcher::search): ... this. Simplify prototype.
765 Maintain stack of visited baseclass path. Call update_result for
766 fields too. Keep searching fields in baseclasses instead of
767 stopping at the first found field.
768 (search_struct_field): Use struct_field_searcher. When looking
769 for fields, report ambiguous access attempts.
770
771 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * frame.c (inside_main_func): Check full symbols as well as
774 minimal symbols.
775
776 2020-10-09 Joel Brobecker <brobecker@adacore.com>
777
778 * ada-lang.c (advance_wild_match): Rewrite the function's
779 description. Change the type of target0, t0 and t1 to char.
780
781 2020-10-09 Tom Tromey <tromey@adacore.com>
782
783 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
784
785 2020-10-09 Tom Tromey <tromey@adacore.com>
786
787 * ada-lang.h (ada_encode): Return std::string.
788 * ada-lang.c (ada_encode_1): Return std::string.
789 (ada_encode): Likewise.
790 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
791 Update.
792 * ada-exp.y (block_lookup, write_var_or_type): Update.
793
794 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
795
796 PR exp/26714
797 * printcmd.c (print_formatted): Handle void results as
798 unformatted prints.
799
800 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
801
802 * arch/aarch32.c (aarch32_create_target_description): Release the
803 target_desc_up as late as possible.
804 * arch/aarch64.c (aarch64_create_target_description): Likewise.
805 * arch/amd64.c (amd64_create_target_description): Likewise.
806 * arch/arc.c (arc_create_target_description): Return a
807 target_desc_up, don't release it.
808 * arch/arc.h (arc_create_target_description): Update declaration.
809 (arc_lookup_target_description): Move target_desc_up into the
810 cache, and return a borrowed pointer.
811 * arch/arm.c (arm_create_target_description): Release the
812 target_desc_up as late as possible.
813 * arch/i386.c (i386_create_target_description): Likewise.
814 * arch/riscv.h (riscv_create_target_description): Update
815 declaration to match definition.
816 * arch/tic6x.c (tic6x_create_target_description): Release the
817 target_desc_up as late as possible.
818
819 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
822 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
823
824 2020-10-09 Jan Vrany <jan.vrany@labware.com>
825
826 * source.c (directory_command): Notify observers that "directories"
827 parameter has changed.
828
829 2020-10-08 Tom Tromey <tom@tromey.com>
830
831 * cli/cli-cmds.c (print_disassembly): Style function name and
832 addresses. Add _() wrappers.
833
834 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
835
836 * NEWS: Mention ARC support in GDBserver.
837
838 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 * arch/aarch32.c (aarch32_create_target_description): Release
841 unique_ptr returned from allocate_target_description.
842 * arch/aarch64.c (aarch64_create_target_description): Likewise.
843 * arch/amd64.c (amd64_create_target_description): Likewise.
844 * arch/arc.c (arc_create_target_description): Likewise.
845 * arch/arm.c (arm_create_target_description): Likewise.
846 * arch/i386.c (i386_create_target_description): Likewise.
847 * arch/riscv.c (riscv_create_target_description): Update return
848 type. Handle allocate_target_description returning a unique_ptr.
849 (riscv_lookup_target_description): Update to handle unique_ptr.
850 * arch/tic6x.c (tic6x_create_target_description): Release
851 unique_ptr returned from allocate_target_description.
852 * features/microblaze-with-stack-protect.c: Regenerate.
853 * features/microblaze.c: Regenerate.
854 * features/mips-dsp-linux.c: Regenerate.
855 * features/mips-linux.c: Regenerate.
856 * features/mips64-dsp-linux.c: Regenerate.
857 * features/mips64-linux.c: Regenerate.
858 * features/nds32.c: Regenerate.
859 * features/nios2.c: Regenerate.
860 * features/or1k.c: Regenerate.
861 * features/rs6000/powerpc-32.c: Regenerate.
862 * features/rs6000/powerpc-32l.c: Regenerate.
863 * features/rs6000/powerpc-403.c: Regenerate.
864 * features/rs6000/powerpc-403gc.c: Regenerate.
865 * features/rs6000/powerpc-405.c: Regenerate.
866 * features/rs6000/powerpc-505.c: Regenerate.
867 * features/rs6000/powerpc-601.c: Regenerate.
868 * features/rs6000/powerpc-602.c: Regenerate.
869 * features/rs6000/powerpc-603.c: Regenerate.
870 * features/rs6000/powerpc-604.c: Regenerate.
871 * features/rs6000/powerpc-64.c: Regenerate.
872 * features/rs6000/powerpc-64l.c: Regenerate.
873 * features/rs6000/powerpc-7400.c: Regenerate.
874 * features/rs6000/powerpc-750.c: Regenerate.
875 * features/rs6000/powerpc-860.c: Regenerate.
876 * features/rs6000/powerpc-altivec32.c: Regenerate.
877 * features/rs6000/powerpc-altivec32l.c: Regenerate.
878 * features/rs6000/powerpc-altivec64.c: Regenerate.
879 * features/rs6000/powerpc-altivec64l.c: Regenerate.
880 * features/rs6000/powerpc-e500.c: Regenerate.
881 * features/rs6000/powerpc-e500l.c: Regenerate.
882 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
883 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
884 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
885 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
886 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
887 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
888 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
889 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
890 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
891 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
892 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
893 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
894 * features/rs6000/powerpc-vsx32.c: Regenerate.
895 * features/rs6000/powerpc-vsx32l.c: Regenerate.
896 * features/rs6000/powerpc-vsx64.c: Regenerate.
897 * features/rs6000/powerpc-vsx64l.c: Regenerate.
898 * features/rs6000/rs6000.c: Regenerate.
899 * features/rx.c: Regenerate.
900 * features/s390-gs-linux64.c: Regenerate.
901 * features/s390-linux32.c: Regenerate.
902 * features/s390-linux32v1.c: Regenerate.
903 * features/s390-linux32v2.c: Regenerate.
904 * features/s390-linux64.c: Regenerate.
905 * features/s390-linux64v1.c: Regenerate.
906 * features/s390-linux64v2.c: Regenerate.
907 * features/s390-te-linux64.c: Regenerate.
908 * features/s390-tevx-linux64.c: Regenerate.
909 * features/s390-vx-linux64.c: Regenerate.
910 * features/s390x-gs-linux64.c: Regenerate.
911 * features/s390x-linux64.c: Regenerate.
912 * features/s390x-linux64v1.c: Regenerate.
913 * features/s390x-linux64v2.c: Regenerate.
914 * features/s390x-te-linux64.c: Regenerate.
915 * features/s390x-tevx-linux64.c: Regenerate.
916 * features/s390x-vx-linux64.c: Regenerate.
917 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
918 from allocate_target_description.
919 * target-descriptions.c (allocate_target_description): Update
920 return type.
921 (print_c_tdesc::visit_pre): Release unique_ptr returned from
922 allocate_target_description.
923
924 2020-10-07 Tom Tromey <tromey@adacore.com>
925
926 * unittests/search-memory-selftests.c: New file.
927 * Makefile.in (SELFTESTS_SRCS): Add
928 unittests/search-memory-selftests.c.
929
930 2020-10-07 Tom Tromey <tromey@adacore.com>
931
932 PR gdb/16930:
933 * findcmd.c (_initialize_mem_search): Mention that the range is
934 inclusive.
935
936 2020-10-07 Tom Tromey <tromey@adacore.com>
937
938 * target.h (simple_search_memory): Don't declare.
939 * target.c (simple_search_memory): Move to gdbsupport.
940 (default_search_memory): Update.
941 * remote.c (remote_target::search_memory): Update.
942
943 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
944
945 * Makefile.in (COMPILE): Add CXXFLAGS.
946 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
947 (check-headers): Add CXXFLAGS.
948
949 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
950
951 * arc-linux-tdep.h: New file.
952 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
953 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
954 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
955 arc_linux_gregset, arc_linux_v2_regset,
956 arc_linux_iterate_over_regset_sections,
957 arc_linux_core_read_description): Implement.
958 (arc_linux_init_osabi): Set iterate_over_regset_sections.
959 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
960 (arc_gdbarch_features_create): Add.
961 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
962
963 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
964
965 * arch/arc.h: Rename "arc_gdbarch_features" to
966 "arc_arch_features".
967 * arc-tdep.h: Likewise.
968 * arc-tdep.c: Likewise.
969
970 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
971
972 * infcmd.c (attach_command): Remove the redundant call to
973 `clear_proceed_status`.
974
975 2020-10-07 Kamil Rytarowski <n54@gmx.com>
976
977 * nat/netbsd-nat.c (write_memory, read_memory): Update.
978
979 2020-10-07 Kamil Rytarowski <n54@gmx.com>
980
981 * nat/netbsd-nat.c (write_memory, read_memory): Add.
982 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
983 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
984
985 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
988 (_initialize_break_catch_sig): Don't allocate array.
989
990 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
991
992 * symtab.c (find_pc_line): Return unmapped addresses when the
993 requested address is also unmapped.
994
995 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
996
997 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
998 tui/tui-out.h.
999
1000 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * amd64-windows-tdep.c (amd64_windows_return_value): Use
1003 type::is_vector instead of TYPE_VECTOR.
1004
1005 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * auto-load.c (auto_load_objfile_script_1): Don't use
1008 debugfile_holder as temporary variable when stripping drive
1009 letter.
1010
1011 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
1012
1013 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
1014 Add TYPE_CODE_COMPLEX.
1015 (amd64_windows_return_value): Fix types returned via XMM0.
1016
1017 2020-10-05 Alan Hayward <alan.hayward@arm.com>
1018
1019 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
1020 AArch64/ARM maintainers.
1021
1022 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
1023
1024 * NEWS: Mention set/show debug event-loop.
1025
1026 2020-10-02 Tom Tromey <tromey@adacore.com>
1027
1028 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
1029 REG_EXTENDED.
1030
1031 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
1032
1033 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
1034 * procfs.c (procfs_inferior_created): Remove.
1035 (_initialize_procfs): Don't register procfs_inferior_created.
1036
1037 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * async-event.c (invoke_async_signal_handlers): Add debug
1040 print.
1041 (check_async_event_handlers): Likewise.
1042 * event-top.c (show_debug_event_loop): New function.
1043 (_initialize_event_top): Register "set debug event-loop"
1044 setting.
1045
1046 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1049 * debug.h: Remove.
1050 * infrun.c: Include gdbsupport/common-debug.h.
1051 * linux-nat.c: Likewise.
1052
1053 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1054
1055 * async-event.h (create_async_signal_handler): Add name
1056 parameter.
1057 (create_async_event_handler): Likewise.
1058 * async-event.c (struct async_signal_handler) <name>: New field.
1059 (struct async_event_handler) <name>: New field.
1060 (create_async_signal_handler): Assign name.
1061 (create_async_event_handler): Assign name.
1062 * event-top.c (async_init_signals): Pass name when creating
1063 handler.
1064 * infrun.c (_initialize_infrun): Likewise.
1065 * record-btrace.c (record_btrace_push_target): Likewise.
1066 * record-full.c (record_full_open): Likewise.
1067 * remote-notif.c (remote_notif_state_allocate): Likewise.
1068 * remote.c (remote_target::open_1): Likewise.
1069 * tui/tui-win.c (tui_initialize_win): Likewise.
1070
1071 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1072
1073 * async-event.c (initialize_async_signal_handlers): Pass name to
1074 add_file_handler
1075 * event-top.c (ui_register_input_event_handler): Likewise.
1076 * linux-nat.c (linux_nat_target::async): Likewise.
1077 * run-on-main-thread.c (_initialize_run_on_main_thread):
1078 Likewise
1079 * ser-base.c (reschedule): Likewise.
1080 (ser_base_async): Likewise.
1081 * tui/tui-io.c: Likewise.
1082 * top.h (struct ui) <num>: New field.
1083 * top.c (highest_ui_num): New variable.
1084 (ui::ui): Initialize num.
1085
1086 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * observable.h <inferior_created>: Remove parameters. Update all
1089 listeners.
1090 * inferior.h (post_create_inferior): Remove target parameter.
1091 Update all callers.
1092
1093 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1094
1095 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1096 and DW_MACRO_undef_strx.
1097 (dwarf_decode_macros): Likewise
1098 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1099 which is the value of DW_AT_str_offsets_base.
1100 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1101 str_offsets_base.
1102
1103 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1104
1105 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1106
1107 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1108
1109 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1110 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1111
1112 2020-10-01 Kamil Rytarowski <n54@gmx.com>
1113
1114 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1115
1116 2020-09-30 Tom de Vries <tdevries@suse.de>
1117
1118 PR symtab/26683
1119 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1120
1121 2020-09-30 Tom Tromey <tromey@adacore.com>
1122
1123 * dwarf2/read.c (handle_variant): Use constant_value.
1124
1125 2020-09-29 Tom Tromey <tom@tromey.com>
1126
1127 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1128 (read_file_scope, dwarf2_get_pc_bounds)
1129 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1130 (read_structure_type, handle_struct_member_die)
1131 (read_enumeration_type, read_array_type, read_set_type)
1132 (read_tag_pointer_type, read_tag_reference_type)
1133 (read_subroutine_type, read_base_type, read_subrange_type)
1134 (read_full_die_1, partial_die_info::read)
1135 (partial_die_info::read, by, new_symbol)
1136 (dwarf2_const_value_data, dwarf2_const_value_attr)
1137 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1138 (prepare_one_comp_unit): Update.
1139 * dwarf2/attribute.h (DW_UNSND): Remove.
1140
1141 2020-09-29 Tom Tromey <tom@tromey.com>
1142
1143 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1144 (read_subroutine_type, partial_die_info::read)
1145 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1146 (dwarf2_add_member_fn): Update.
1147 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1148 * dwarf2/attribute.c (attribute::as_boolean): New method.
1149
1150 2020-09-29 Tom Tromey <tom@tromey.com>
1151
1152 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1153 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1154 method.
1155 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1156
1157 2020-09-29 Tom Tromey <tom@tromey.com>
1158
1159 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1160 the attribute's form.
1161
1162 2020-09-29 Tom Tromey <tom@tromey.com>
1163
1164 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1165 (dwarf2_add_member_fn): Update.
1166 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1167 * dwarf2/attribute.c (attribute::defaulted): New method, from
1168 is_valid_DW_AT_defaulted.
1169
1170 2020-09-29 Tom Tromey <tom@tromey.com>
1171
1172 * dwarf2/read.c (dw2_get_file_names_reader)
1173 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1174 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1175 (dwarf2_symbol_mark_computed): Use as_unsigned.
1176 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1177 method.
1178 <form_is_section_offset>: Update comment.
1179
1180 2020-09-29 Tom Tromey <tom@tromey.com>
1181
1182 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1183 dwarf2_default_access_attribute. Look up attribute.
1184 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1185 Update.
1186
1187 2020-09-29 Tom Tromey <tom@tromey.com>
1188
1189 * dwarf2/read.c (skip_one_die): Update.
1190 (read_full_die_1): Change how reprocessing is done.
1191 (partial_die_info::read): Update.
1192 (read_attribute_value): Remove need_reprocess parameter.
1193 (read_attribute): Likewise.
1194 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1195 New method.
1196
1197 2020-09-29 Tom Tromey <tom@tromey.com>
1198
1199 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1200 (dwarf2_const_value_attr, dump_die_shallow)
1201 (dwarf2_fetch_constant_bytes): Update.
1202 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1203 comment.
1204 <set_address>: New method.
1205 (DW_ADDR): Remove.
1206 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1207 (attribute::as_string, attribute::as_address): Add assert.
1208
1209 2020-09-29 Tom Tromey <tom@tromey.com>
1210
1211 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1212 (read_attribute_reprocess, read_attribute_value): Update.
1213 (read_attribute): Clear requires_reprocessing.
1214 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1215 form_requires_reprocessing>: New methods.
1216 <string_init>: Clear requires_reprocessing.
1217 <set_unsigned_reprocess>: New method.
1218 <name>: Shrink by one bit.
1219 <requires_reprocessing>: New member.
1220 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1221 method.
1222
1223 2020-09-29 Tom Tromey <tom@tromey.com>
1224
1225 * dwarf2/read.c (read_attribute_value): Update.
1226 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1227 set_unsigned>: New methods.
1228 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1229
1230 2020-09-29 Tom Tromey <tom@tromey.com>
1231
1232 * dwarf2/read.c (get_alignment, read_array_order)
1233 (read_attribute_value, dwarf2_const_value_attr)
1234 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1235 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1236 New methods.
1237 (DW_SND): Remove.
1238
1239 2020-09-29 Tom Tromey <tom@tromey.com>
1240
1241 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1242 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1243 Update.
1244 * dwarf2/attribute.h (struct attribute) <as_signature,
1245 set_signature>: New methods.
1246 (DW_SIGNATURE): Remove.
1247
1248 2020-09-29 Tom Tromey <tom@tromey.com>
1249
1250 * dwarf2/read.c (read_call_site_scope)
1251 (handle_data_member_location, dwarf2_add_member_fn)
1252 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1253 (partial_die_info::read, read_attribute_value)
1254 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1255 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1256 (dwarf2_symbol_mark_computed): Update.
1257 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1258 methods.
1259 (DW_BLOCK): Remove.
1260 * dwarf2/attribute.c (attribute::form_is_block): Add
1261 DW_FORM_data16.
1262
1263 2020-09-29 Tom Tromey <tom@tromey.com>
1264
1265 * dwarf2/read.c (read_cutu_die_from_dwo)
1266 (read_attribute_reprocess, read_attribute_value, read_attribute)
1267 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1268 (dwarf2_fetch_constant_bytes): Update.
1269 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1270 <set_string_noncanonical, set_string_canonical>: New methods.
1271 <string_is_canonical>: Update comment.
1272 <canonical_string_p>: Add assert.
1273 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1274 * dwarf2/attribute.c (attribute::form_is_string): New method.
1275 (attribute::string): Use it.
1276
1277 2020-09-29 Tom Tromey <tom@tromey.com>
1278
1279 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1280 (dump_die_shallow): Use canonical_string_p.
1281 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1282 method.
1283
1284 2020-09-29 Tom Tromey <tom@tromey.com>
1285
1286 * dwarf2/read.c (partial_die_info::read)
1287 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1288 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1289 attribute::as_string.
1290
1291 2020-09-29 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1294 DW_ADDR.
1295 (attribute::string): Don't use DW_STRING.
1296 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1297 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1298
1299 2020-09-29 Tom Tromey <tom@tromey.com>
1300
1301 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1302 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1303 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1304 * dwarf2/attribute.h (struct attribute): Rename methods.
1305 * dwarf2/attribute.c (attribute::as_address): Rename from
1306 value_as_address.
1307 (attribute::as_string): Rename from value_as_string.
1308
1309 2020-09-29 Tom Tromey <tom@tromey.com>
1310
1311 * dwarf2/read.c (partial_die_info::read) <case
1312 DW_AT_linkage_name>: Use value_as_string.
1313 (dwarf2_string_attr): Use value_as_string.
1314 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1315 method.
1316 * dwarf2/attribute.c (attribute::value_as_string): New method.
1317
1318 2020-09-29 Pedro Alves <pedro@palves.net>
1319
1320 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1321 defined before using '#pragma GCC diagnostic' instead of checking
1322 __clang__.
1323
1324 2020-09-28 Tom Tromey <tom@tromey.com>
1325
1326 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1327 (handle_signal_stop): Update.
1328 * procfs.c (procfs_target::insert_watchpoint): Update.
1329 * target.h (target_have_steppable_watchpoint): Now a function.
1330
1331 2020-09-28 Tom Tromey <tom@tromey.com>
1332
1333 * infrun.c (set_schedlock_func): Update.
1334 * target.h (target_can_lock_scheduler): Now a function.
1335
1336 2020-09-28 Tom Tromey <tom@tromey.com>
1337
1338 * inferior.h (class inferior) <has_execution>: Update.
1339 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1340 * valops.c (find_function_in_inferior)
1341 (value_allocate_space_in_inferior): Update.
1342 * top.c (kill_or_detach): Update.
1343 * target.c (target_preopen, set_target_permissions): Update.
1344 (target_has_execution_current): Remove.
1345 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1346 Update.
1347 * solib.c (update_solib_list, reload_shared_libraries): Update.
1348 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1349 * solib-dsbt.c (enable_break): Update.
1350 * score-tdep.c (score7_fetch_inst): Update.
1351 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1352 Update.
1353 * remote.c (remote_target::start_remote)
1354 (remote_target::remote_check_symbols, remote_target::open_1)
1355 (remote_target::remote_detach_1, remote_target::verify_memory)
1356 (remote_target::xfer_partial, remote_target::read_description)
1357 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1358 * record-full.c (record_full_open_1): Update.
1359 * record-btrace.c (record_btrace_target_open): Update.
1360 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1361 (value_nsstring): Update.
1362 * linux-thread-db.c (add_thread_db_info)
1363 (thread_db_find_new_threads_silently, check_thread_db_callback)
1364 (try_thread_db_load_1, record_thread): Update.
1365 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1366 Update.
1367 * linux-fork.c (checkpoint_command): Update.
1368 * infrun.c (set_non_stop, set_observer_mode)
1369 (check_multi_target_resumption, for_each_just_stopped_thread)
1370 (maybe_remove_breakpoints, normal_stop)
1371 (class infcall_suspend_state): Update.
1372 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1373 (info_program_command, attach_command): Update.
1374 * infcall.c (call_function_by_hand_dummy): Update.
1375 * inf-loop.c (inferior_event_handler): Update.
1376 * gcore.c (gcore_command, derive_heap_segment): Update.
1377 * exec.c (exec_file_command): Update.
1378 * eval.c (evaluate_subexp): Update.
1379 * compile/compile.c (compile_to_object): Update.
1380 * cli/cli-dump.c (restore_command): Update.
1381 * breakpoint.c (update_watchpoint)
1382 (update_inserted_breakpoint_locations)
1383 (insert_breakpoint_locations, get_bpstat_thread): Update.
1384 * target.h (target_has_execution): Remove macro.
1385 (target_has_execution_current): Don't declare.
1386 (target_has_execution): Rename from target_has_execution_1. Add
1387 argument default.
1388
1389 2020-09-28 Tom Tromey <tom@tromey.com>
1390
1391 * mi/mi-main.c (exec_reverse_continue)
1392 (mi_cmd_list_target_features): Update.
1393 * infrun.c (set_exec_direction_func): Update.
1394 * target.c (default_execution_direction): Update.
1395 * reverse.c (exec_reverse_once): Update.
1396 * target.h (target_can_execute_reverse): Now a function.
1397
1398 2020-09-28 Tom Tromey <tom@tromey.com>
1399
1400 * tui/tui-regs.c (tui_get_register)
1401 (tui_data_window::show_registers): Update.
1402 * thread.c (scoped_restore_current_thread::restore)
1403 (scoped_restore_current_thread::scoped_restore_current_thread):
1404 Update.
1405 * regcache-dump.c (regcache_print): Update.
1406 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1407 Update.
1408 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1409 * mep-tdep.c (current_me_module, current_options): Update.
1410 * linux-thread-db.c (thread_db_load): Update.
1411 * infcmd.c (registers_info, info_vector_command)
1412 (info_float_command): Update.
1413 * ia64-tdep.c (ia64_frame_prev_register)
1414 (ia64_sigtramp_frame_prev_register): Update.
1415 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1416 * gcore.c (derive_stack_segment): Update.
1417 * frame.c (get_current_frame, has_stack_frames): Update.
1418 * findvar.c (language_defn::read_var_value): Update.
1419 * arm-tdep.c (arm_pc_is_thumb): Update.
1420 * target.c (target_has_registers): Rename from
1421 target_has_registers_1.
1422 * target.h (target_has_registers): Remove macro.
1423 (target_has_registers): Rename from target_has_registers_1.
1424
1425 2020-09-28 Tom Tromey <tom@tromey.com>
1426
1427 * windows-tdep.c (tlb_make_value): Update.
1428 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1429 * thread.c (scoped_restore_current_thread::restore)
1430 (scoped_restore_current_thread::scoped_restore_current_thread)
1431 (thread_command): Update.
1432 * stack.c (backtrace_command_1, frame_apply_level_command)
1433 (frame_apply_all_command, frame_apply_command): Update.
1434 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1435 Update.
1436 * gcore.c (derive_stack_segment): Update.
1437 * frame.c (get_current_frame, has_stack_frames): Update.
1438 * auxv.c (info_auxv_command): Update.
1439 * ada-tasks.c (ada_build_task_list): Update.
1440 * target.c (target_has_stack): Rename from target_has_stack_1.
1441 * target.h (target_has_stack): Remove macro.
1442 (target_has_stack): Rename from target_has_stack_1.
1443
1444 2020-09-28 Tom Tromey <tom@tromey.com>
1445
1446 * target.c (target_has_memory): Rename from target_has_memory_1.
1447 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1448 * thread.c (scoped_restore_current_thread::restore)
1449 (scoped_restore_current_thread::scoped_restore_current_thread):
1450 Update.
1451 * frame.c (get_current_frame, has_stack_frames): Update.
1452 * target.h (target_has_memory): Remove macro.
1453 (target_has_memory): Rename from target_has_memory_1.
1454
1455 2020-09-28 Tom Tromey <tom@tromey.com>
1456
1457 * target.c (target_has_all_memory_1): Remove.
1458 * target.h (target_has_all_memory): Remove define.
1459 (target_has_all_memory_1): Don't declare.
1460
1461 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * ser-base.c: Adjust comments formatting.
1464
1465 2020-09-27 Tom Tromey <tom@tromey.com>
1466
1467 PR tui/25342:
1468 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1469
1470 2020-09-27 Tom Tromey <tom@tromey.com>
1471
1472 PR tui/25342:
1473 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1474
1475 2020-09-27 Tom Tromey <tom@tromey.com>
1476
1477 * unittests/tui-selftests.c: Update.
1478 * tui/tui-winsource.h (struct tui_source_window_base)
1479 <extra_margin, show_line_number, refresh_pad>: New methods.
1480 <m_max_length, m_pad>: New members.
1481 (tui_copy_source_line): Update.
1482 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1483 first_col, line_width, ndigits parameters. Add length.
1484 (tui_source_window_base::show_source_line): Write to pad. Line
1485 number now 0-based.
1486 (tui_source_window_base::refresh_pad): New method.
1487 (tui_source_window_base::show_source_content): Write to pad. Call
1488 refresh_pad.
1489 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1490 not refill.
1491 (tui_source_window_base::update_exec_info): Call
1492 show_line_number.
1493 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1494 method.
1495 <m_digits>: New member.
1496 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1497 and m_max_length.
1498 (tui_source_window::show_line_number): New method.
1499 * tui/tui-io.h (tui_puts): Fix comment.
1500 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1501 m_max_length.
1502
1503 2020-09-27 Tom Tromey <tom@tromey.com>
1504
1505 * tui/tui-winsource.c
1506 (tui_source_window_base::set_is_exec_point_at): Don't call
1507 show_source_line.
1508
1509 2020-09-27 Tom Tromey <tom@tromey.com>
1510
1511 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1512 method.
1513 <erase>: Update.
1514 <cursor_x, cursor_y>: Remove.
1515 <m_inner_window>: New member.
1516 (tui_py_window::rerender): Create inner window.
1517 (tui_py_window::output): Write to inner window.
1518
1519 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1520
1521 PR python/26586
1522 * cli/cli-script.c (execute_control_commands): don't set
1523 instream to nullptr here as this breaks the from_tty argument
1524 to gdb.execute in Python.
1525 (execute_user_command): set instream to nullptr here instead.
1526
1527 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1528
1529 * infrun.h (infrun_debug_printf): Fix formatting.
1530 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1531
1532 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1533
1534 * compile/compile-object-load.h (struct munmap_list): Add
1535 explicitly-defined move constructor.
1536
1537 2020-09-24 Tom Tromey <tromey@adacore.com>
1538
1539 PR tui/26638:
1540 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1541 method.
1542 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1543 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1544 (tui_prev_win): Rewrite.
1545
1546 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1547
1548 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1549 in WOW64 processes as SIGINT.
1550 * nat/windows-nat.h: Make wow64_process a shared variable.
1551 * windows-nat.c: Remove static wow64_process variable.
1552
1553 2020-09-23 Tom Tromey <tom@tromey.com>
1554
1555 PR symtab/25470:
1556 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1557 offset and bit size.
1558 * printcmd.c (print_scalar_formatted): Handle zero-length
1559 integer.
1560 (print_scalar_formatted): Use bit_size_differs_p.
1561 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1562 constant.
1563 (union type_specific): <int_stuff>: New member.
1564 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1565 methods.
1566 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1567 TYPE_SPECIFIC_FIELD.
1568 (recursive_dump_type, copy_type_recursive): Update.
1569 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1570 DW_AT_data_bit_offset.
1571
1572 2020-09-23 Tom Tromey <tom@tromey.com>
1573
1574 * utils.h (class gdb_argv): Add move operators.
1575 <append>: New methods.
1576 * compile/compile.c (build_argc_argv): Remove.
1577 (compile_args_argc): Remove.
1578 (compile_args_argv): Change type.
1579 (set_compile_args): Simplify.
1580 (append_args): Remove.
1581 (filter_args): Remove argcp parameter.
1582 (get_args): Return gdb_argv. Simplify.
1583 (compile_to_object): Update.
1584
1585 2020-09-23 Tom Tromey <tom@tromey.com>
1586
1587 * compile/compile-object-run.c (do_module_cleanup)
1588 <~do_module_cleanup> :Remove.
1589 (do_module_cleanup): Update.
1590 * compile/compile-object-load.h (struct munmap_list): Add move
1591 assignment operator.
1592 <source_file>: Now a std::string.
1593 <munmap_list>: Rename. No longer a pointer.
1594 * compile/compile-object-load.c (struct setup_sections_data): Add
1595 constructor.
1596 <setup_one_section>: Declare.
1597 <munmap_list>: Move earlier.
1598 <m_bfd>: New member.
1599 <m_last_size, m_last_section_first, m_last_prot,
1600 m_last_max_alignment>: Rename, add initializers where needed.
1601 (setup_sections_data::setup_one_section): Rename from
1602 setup_sections. Update.
1603 (compile_object_load): Update. Don't use bfd_map_over_sections.
1604
1605 2020-09-23 Tom Tromey <tom@tromey.com>
1606
1607 * compile/compile-object-run.c (struct do_module_cleanup): Add
1608 parameters to constructor. Update destructor.
1609 <source_file, scope, scope_data, out_value_type, out_value_addr,
1610 munmap_list_head, objfile_name_string>: Remove.
1611 <module>: New member.
1612 (do_module_cleanup): Update.
1613 (compile_object_run): Update.
1614
1615 2020-09-23 Tom Tromey <tom@tromey.com>
1616
1617 * compile/compile.c (eval_compile_command): Update.
1618 * compile/compile-object-run.h (compile_object_run): Take a
1619 compile_module_up.
1620 * compile/compile-object-run.c (compile_object_run): Take a
1621 compile_module_up.
1622 * compile/compile-object-load.h (struct compile_module): Add
1623 constructor, destructor.
1624 (compile_module_up): New typedef.
1625 (compile_object_load): Return compile_object_up.
1626 * compile/compile-object-load.c (compile_object_load): Return
1627 compile_module_up.
1628
1629 2020-09-23 Tom Tromey <tom@tromey.com>
1630
1631 * compile/compile-object-run.c (struct do_module_cleanup): Add
1632 constructor, destructor.
1633 <objfile_name_string>: Don't use struct hack.
1634 (do_module_cleanup): Use delete.
1635 (compile_object_run): Use new.
1636
1637 2020-09-23 Tom Tromey <tom@tromey.com>
1638
1639 * compile/compile-cplus-types.c
1640 (compile_cplus_convert_struct_or_union): Use std::vector.
1641 (compile_cplus_convert_func): Likewise.
1642 * compile/compile-c-types.c (convert_func): Use std::vector.
1643
1644 2020-09-21 Tom Tromey <tromey@adacore.com>
1645
1646 * sparc-tdep.c (sparc32_skip_prologue): Use
1647 skip_prologue_using_sal.
1648
1649 2020-09-19 Tom Tromey <tom@tromey.com>
1650
1651 * symfile.c (add_section_size_callback): Remove.
1652 (load_one_section): Rename from load_section_callback. Change
1653 parameters.
1654 (generic_load): Use foreach.
1655
1656 2020-09-19 Tom Tromey <tom@tromey.com>
1657
1658 * exec.c (add_to_section_table): Remove.
1659 (build_section_table): Use foreach.
1660
1661 2020-09-19 Tom Tromey <tom@tromey.com>
1662
1663 * elfread.c (elf_locate_sections): Change parameters.
1664 (elf_symfile_read): Use foreach.
1665
1666 2020-09-19 Tom Tromey <tom@tromey.com>
1667
1668 * cli/cli-dump.c (struct callback_data): Remove.
1669 (restore_one_section): Rename from restore_section_callback.
1670 Change parameters.
1671 (restore_binary_file): Change parameters.
1672 (restore_command): Use foreach.
1673
1674 2020-09-19 Tom Tromey <tom@tromey.com>
1675
1676 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1677 (gcore_copy_callback): Likewise.
1678 (gcore_memory_sections): Use foreach.
1679
1680 2020-09-19 Tom Tromey <tom@tromey.com>
1681
1682 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1683 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1684 parameters.
1685 (generic_elf_osabi_sniffer): Use foreach.
1686 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1687 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1688
1689 2020-09-19 Tom Tromey <tom@tromey.com>
1690
1691 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1692 (dwarf2_get_dwz_file): Use foreach.
1693 (dwarf2_locate_dwo_sections): Change parameters.
1694 (open_and_init_dwo_file): Use foreach.
1695 (dwarf2_locate_common_dwp_sections): Change parameters.
1696 (open_and_init_dwp_file): Use foreach.
1697
1698 2020-09-19 Tom Tromey <tom@tromey.com>
1699
1700 * symfile.h: (find_lowest_section): Don't declare.
1701 * symfile.c (find_lowest_section): Now static. Change
1702 parameters.
1703 (struct place_section_arg): Remove.
1704 (place_section): Change parameters.
1705 (addr_info_make_relative): Use foreach.
1706 (symfile_dummy_outputs): Remove.
1707 (default_symfile_relocate): Use foreach.
1708
1709 2020-09-19 Tom Tromey <tom@tromey.com>
1710
1711 * objfiles.c (add_to_objfile_sections): Rename from
1712 add_to_objfile_sections_full.
1713 (add_to_objfile_sections): Remove.
1714 (build_objfile_section_table): Use foreach.
1715
1716 2020-09-19 Tom Tromey <tom@tromey.com>
1717
1718 * stap-probe.c (get_stap_base_address_1): Remove.
1719 (get_stap_base_address): Use foreach.
1720
1721 2020-09-19 Tom Tromey <tom@tromey.com>
1722
1723 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1724 parameters.
1725 (gdb_bfd_close_or_warn): Use foreach.
1726
1727 2020-09-19 Tom Tromey <tom@tromey.com>
1728
1729 * corelow.c (add_to_thread_list): Change parameters.
1730 (core_target_open): Use foreach.
1731
1732 2020-09-19 Tom Tromey <tom@tromey.com>
1733
1734 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1735 existing function.
1736
1737 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1740 for arrays.
1741
1742 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * eval.c: Remove 'f-lang.h' include.
1745 (value_f90_subarray): Moved to f-lang.c.
1746 (eval_call): Renamed to...
1747 (evaluate_subexp_do_call): ...this, is no longer static, header
1748 comment moved into header file.
1749 (evaluate_funcall): Update call to eval_call.
1750 (skip_undetermined_arglist): Moved to f-lang.c.
1751 (fortran_value_subarray): Likewise.
1752 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1753 moved to evaluate_subexp_f.
1754 (calc_f77_array_dims): Moved to f-lang.c
1755 * expprint.c (print_subexp_funcall): New function.
1756 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1757 moved to print_subexp_f, OP_FUNCALL uses new function.
1758 (dump_subexp_body_funcall): New function.
1759 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1760 moved to dump_subexp_f, OP_FUNCALL uses new function.
1761 * expression.h (evaluate_subexp_do_call): Declare.
1762 * f-lang.c (value_f90_subarray): Moved from eval.c.
1763 (skip_undetermined_arglist): Likewise.
1764 (calc_f77_array_dims): Likewise.
1765 (fortran_value_subarray): Likewise.
1766 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1767 (operator_length_f): Likewise.
1768 (print_subexp_f): Likewise.
1769 (dump_subexp_body_f): Likewise.
1770 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1771 declaration of this operation to here.
1772 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1773 support moved to operator_length_f.
1774 * parser-defs.h (dump_subexp_body_funcall): Declare.
1775 (print_subexp_funcall): Declare.
1776 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1777 fortran-operator.def.
1778
1779 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * eval.c (fortran_value_subarray): New function, content is taken
1782 from...
1783 (evaluate_subexp_standard): ...here, in two places. Now arrays
1784 and strings both call the new function.
1785 (calc_f77_array_dims): Add header comment, handle strings.
1786
1787 2020-09-18 Victor Collod <vcollod@nvidia.com>
1788
1789 PR gdb/26635
1790 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1791 (i386_analyze_prologue): Call i386_skip_endbr.
1792
1793 2020-09-18 Tom Tromey <tromey@adacore.com>
1794
1795 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1796 (windows_nat_target::wait): Update.
1797 * target/wait.h (enum target_wait_flag): New. Use
1798 DEF_ENUM_FLAGS_TYPE.
1799 * target/target.h (target_wait): Change type of options.
1800 * target.h (target_options_to_string, default_target_wait):
1801 Update.
1802 (struct target_ops) <wait>: Change type of options.
1803 * target.c (target_wait, default_target_wait, do_option): Change
1804 type of "options".
1805 (target_options_to_string): Likewise.
1806 * target-delegates.c: Rebuild.
1807 * target-debug.h (target_debug_print_target_wait_flags): Rename
1808 from target_debug_print_options.
1809 * sol-thread.c (class sol_thread_target) <wait>: Update.
1810 (sol_thread_target::wait): Update.
1811 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1812 (rs6000_nat_target::wait): Update.
1813 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1814 Update.
1815 (remote_target::wait_ns, remote_target::wait_as): Change type of
1816 "options".
1817 (remote_target::wait): Update.
1818 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1819 (gdbsim_target::wait): Update.
1820 * record-full.c (class record_full_base_target) <wait>: Update.
1821 (record_full_wait_1): Change type of "options".
1822 (record_full_base_target::wait): Update.
1823 * record-btrace.c (class record_btrace_target) <wait>: Update.
1824 (record_btrace_target::wait): Update.
1825 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1826 Update.
1827 (ravenscar_thread_target::wait): Update.
1828 * procfs.c (class procfs_target) <wait>: Update.
1829 (procfs_target::wait): Update.
1830 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1831 * obsd-nat.c (obsd_nat_target::wait): Update.
1832 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1833 (nto_procfs_target::wait): Update.
1834 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1835 * nbsd-nat.c (nbsd_wait): Change type of "options".
1836 (nbsd_nat_target::wait): Update.
1837 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1838 (thread_db_target::wait): Update.
1839 * linux-nat.h (class linux_nat_target) <wait>: Update.
1840 * linux-nat.c (linux_nat_target::wait): Update.
1841 (linux_nat_wait_1): Update.
1842 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1843 "options".
1844 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1845 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1846 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1847 (go32_nat_target::wait): Update.
1848 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1849 * gnu-nat.c (gnu_nat_target::wait): Update.
1850 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1851 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1852 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1853 * darwin-nat.c (darwin_nat_target::wait): Update.
1854 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1855 (bsd_uthread_target::wait): Update.
1856 * aix-thread.c (class aix_thread_target) <wait>: Update.
1857 (aix_thread_target::wait): Update.
1858
1859 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * compile/compile-object-run.c (create_copied_type_recursive): New
1862 function.
1863 (compile_object_run): Use new function.
1864
1865 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1866
1867 * NEWS: Mention x86_64 Cygwin core file support.
1868
1869 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1870
1871 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1872 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1873
1874 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1875
1876 * windows-tdep.h: Add prototypes.
1877 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1878 (i386_windows_core_pid_to_str): Move and rename ...
1879 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1880 (windows_core_pid_to_str): ... and here.
1881 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1882
1883 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1884 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1885 (amd64_windows_init_abi_common): ... and register.
1886
1887 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1888
1889 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1890 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1891
1892 2020-09-18 Pedro Alves <pedro@palves.net>
1893
1894 PR gdb/26631
1895 * thread.c (thread_find_command): Switch inferior before calling
1896 target methods.
1897
1898 2020-09-17 Tom Tromey <tromey@adacore.com>
1899
1900 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1901 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1902 (tdesc_arch_data_up): New typedef.
1903 (tdesc_use_registers, tdesc_data_alloc): Update.
1904 (tdesc_data_cleanup): Don't declare.
1905 * target-descriptions.c (tdesc_data_alloc): Return a
1906 tdesc_arch_data_up.
1907 (tdesc_arch_data_deleter::operator()): Rename from
1908 tdesc_data_cleanup. Change argument type.
1909 (tdesc_use_registers): Change early_data to an rvalue reference.
1910 (tdesc_use_registers): Don't use delete.
1911 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1912 * s390-tdep.c (s390_gdbarch_init): Update.
1913 * rx-tdep.c (rx_gdbarch_init): Update.
1914 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1915 * riscv-tdep.c (riscv_gdbarch_init): Update.
1916 * or1k-tdep.c (or1k_gdbarch_init): Update.
1917 * nios2-tdep.c (nios2_gdbarch_init): Update.
1918 * nds32-tdep.c (nds32_gdbarch_init): Update.
1919 * mips-tdep.c (mips_gdbarch_init): Update.
1920 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1921 * m68k-tdep.c (m68k_gdbarch_init): Update.
1922 * i386-tdep.c (i386_gdbarch_init): Update.
1923 * arm-tdep.c (arm_gdbarch_init): Update.
1924 * arc-tdep.c (arc_tdesc_init): Update.
1925 (arc_gdbarch_init): Update.
1926 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1927
1928 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1929
1930 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1931 for WOW64 processes.
1932
1933 2020-09-17 Tom Tromey <tom@tromey.com>
1934
1935 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1936
1937 2020-09-17 Tom Tromey <tom@tromey.com>
1938
1939 * value.c (preserve_values): Update.
1940 * python/py-type.c (save_objfile_types): Update.
1941 * guile/scm-type.c (save_objfile_types): Update.
1942 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1943 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1944 * compile/compile-object-run.c (compile_object_run): Update.
1945
1946 2020-09-17 Tom Tromey <tom@tromey.com>
1947
1948 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1949 Remove.
1950 <m_table>: Now htab_up.
1951 * typeprint.c (typedef_hash_table::recursively_update)
1952 (typedef_hash_table::add_template_parameters)
1953 (typedef_hash_table::typedef_hash_table): Update.
1954 (typedef_hash_table::~typedef_hash_table): Remove.
1955 (typedef_hash_table::typedef_hash_table)
1956 (typedef_hash_table::find_global_typedef)
1957 (typedef_hash_table::find_typedef): Update.
1958
1959 2020-09-17 Tom Tromey <tom@tromey.com>
1960
1961 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1962
1963 2020-09-17 Tom Tromey <tom@tromey.com>
1964
1965 * linespec.c (class decode_compound_collector)
1966 <~decode_compound_collector>: Remove.
1967 <m_unique_syms>: Now htab_up.
1968 (decode_compound_collector::operator ()): Update.
1969 (class symtab_collector) <~symtab_collector>: Remove.
1970 <m_symtab_table>: Now htab_up.
1971 (symtab_collector::operator ()): Update.
1972
1973 2020-09-17 Tom Tromey <tom@tromey.com>
1974
1975 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1976 (filename_seen_cache::clear): Update.
1977 (~filename_seen_cache): Remove.
1978 (filename_seen_cache::seen): Update.
1979 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1980 htab_up.
1981 <~filename_seen_cache>: Remove.
1982 <traverse>: Update.
1983
1984 2020-09-17 Tom Tromey <tom@tromey.com>
1985
1986 * completer.c (completion_tracker::discard_completions)
1987 (completion_tracker::~completion_tracker)
1988 (completion_tracker::maybe_add_completion)
1989 (completion_tracker::remove_completion)
1990 (completion_tracker::recompute_lowest_common_denominator)
1991 (completion_tracker::build_completion_result): Update.
1992 * completer.h (class completion_tracker) <have_completions>:
1993 Update.
1994 <m_entries_hash>: Now htab_up.
1995
1996 2020-09-17 Tom Tromey <tom@tromey.com>
1997
1998 * breakpoint.c (ambiguous_names_p): Use htab_up.
1999
2000 2020-09-17 Tom Tromey <tom@tromey.com>
2001
2002 * auto-load.c (struct auto_load_pspace_info)
2003 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
2004 <loaded_script_files, loaded_script_texts>: Change type to
2005 htab_up.
2006 (~auto_load_pspace_info) Remove.
2007 (init_loaded_scripts_info, maybe_add_script_file)
2008 (maybe_add_script_text, auto_load_info_scripts): Update.
2009
2010 2020-09-17 Tom Tromey <tromey@adacore.com>
2011
2012 * c-exp.y (name_obstack): Now static.
2013
2014 2020-09-17 Chungyi Chi <demonic@csie.io>
2015
2016 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
2017
2018 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * breakpoint.h (init_catchpoint): Change int parameter to bool.
2021 (add_solib_catchpoint): Likewise.
2022 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
2023 to bool.
2024 (add_solib_catchpoint): Change int parameter/variable to bool.
2025 (catch_load_or_unload): Likewise.
2026 (init_catchpoint): Likewise.
2027 (create_fork_vfork_event_catchpoint): Likewise.
2028 (catch_fork_command_1): Likewise.
2029 (catch_exec_command_1): Likewise.
2030
2031 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2032
2033 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
2034 Change instance_flags to m_instance_flags.
2035
2036 2020-09-16 Tom Tromey <tromey@adacore.com>
2037
2038 PR gdb/26598:
2039 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
2040
2041 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2042
2043 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2044 PL_FLAG_EXEC.
2045 (fbsd_nat_target::insert_exec_catchpoint)
2046 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2047 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2048 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2049
2050 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2051
2052 * configure.ac: Remove check for kinfo_getvmmap().
2053 * configure, config.in: Regenerate.
2054 * fbsd-nat.c (fbsd_read_mapping): Remove
2055 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2056 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2057 kinfo_get_vmmap() are always present.
2058
2059 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2060
2061 * fbsd-nat.c: Always include support for
2062 TARGET_OBJECT_SIGNAL_INFO.
2063
2064 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2065
2066 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2067 sysctl and remove procfs fallback.
2068
2069 2020-09-16 John Baldwin <jhb@FreeBSD.org>
2070
2071 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2072 * fbsd-nat.h: Likewise.
2073
2074 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2075
2076 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2077 argument.
2078
2079 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * ada-lang.c (ada_language_data): Delete.
2082 (ada_language): Remove references to ada_language_data.
2083 * c-lang.c (c_language_data): Delete.
2084 (c_language): Remove references to c_language_data.
2085 (cplus_language_data): Delete.
2086 (cplus_language): Remove references to cplus_language_data.
2087 (asm_language_data): Delete.
2088 (asm_language): Remove references to asm_language_data.
2089 (minimal_language_data): Delete.
2090 (minimal_language): Remove references to minimal_language_data.
2091 * d-lang.c (d_language_data): Delete.
2092 (d_language): Remove references to d_language_data.
2093 * f-lang.c (f_language_data): Delete.
2094 (f_language): Remove references to f_language_data.
2095 * go-lang.c (go_language_data): Delete.
2096 (go_language): Remove references to go_language_data.
2097 * language.c (unknown_language_data): Delete.
2098 (unknown_language): Remove references to unknown_language_data.
2099 (auto_language_data): Delete.
2100 (auto_language): Remove references to auto_language_data.
2101 * language.h (language_data): Delete struct.
2102 (language_defn): No longer inherit from language_data.
2103 * m2-lang.c (m2_language_data): Delete.
2104 (m2_language): Remove references to m2_language_data.
2105 * objc-lang.c (objc_language_data): Delete.
2106 (objc_language): Remove references to objc_language_data.
2107 * opencl-lang.c (opencl_language_data): Delete.
2108 (opencl_language): Remove references to opencl_language_data.
2109 * p-lang.c (pascal_language_data): Delete.
2110 (pascal_language): Remove references to pascal_language_data.
2111 * rust-lang.c (rust_language_data): Delete.
2112 (rust_language): Remove references to rust_language_data.
2113
2114 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2115
2116 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2117 initializer.
2118 (ada_language::opcode_print_table): New member function.
2119 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2120 (c_language::opcode_print_table): New member function.
2121 (cplus_language_data): Remove la_op_print_tab initializer.
2122 (cplus_language::opcode_print_table): New member function.
2123 (asm_language_data): Remove la_op_print_tab initializer.
2124 (asm_language::opcode_print_table): New member function.
2125 (minimal_language_data): Remove la_op_print_tab initializer.
2126 (minimal_language::opcode_print_table): New member function.
2127 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2128 (d_language::opcode_print_table): New member function.
2129 * expprint.c (print_subexp_standard): Update call to
2130 opcode_print_table.
2131 (op_string): Likewise.
2132 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2133 (f_language::opcode_print_table): New member function.
2134 * go-lang.c (go_language_data): Remove la_op_print_tab
2135 initializer.
2136 (go_language::opcode_print_table): New member function.
2137 * language.c (unknown_language_data): Remove la_op_print_tab
2138 initializer.
2139 (unknown_language::opcode_print_table): New member function.
2140 (auto_language_data): Remove la_op_print_tab initializer.
2141 (auto_language::opcode_print_table): New member function.
2142 * language.h (language_data): Remove la_op_print_tab field.
2143 (language_defn::opcode_print_table): Declare new member function.
2144 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2145 initializer.
2146 (m2_language::opcode_print_table): New member function.
2147 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2148 initializer.
2149 (objc_language::opcode_print_table): New member function.
2150 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2151 initializer.
2152 (opencl_language::opcode_print_table): New member function.
2153 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2154 initializer.
2155 (pascal_language::opcode_print_table): New member function.
2156 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2157 initializer.
2158 (rust_language::opcode_print_table): New member function.
2159
2160 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2163 (ada_language::expression_ops): New member function.
2164 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2165 (c_language::expression_ops): New member function.
2166 (cplus_language_data): Remove la_exp_desc initializer.
2167 (cplus_language::expression_ops): New member function.
2168 (asm_language_data): Remove la_exp_desc initializer.
2169 (asm_language::expression_ops): New member function.
2170 (minimal_language_data): Remove la_exp_desc initializer.
2171 (minimal_language::expression_ops): New member function.
2172 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2173 (d_language::expression_ops): New member function.
2174 * eval.c (evaluate_subexp): Update call to expression_ops.
2175 * expprint.c (print_subexp): Likewise.
2176 (op_name): Likewise.
2177 (dump_subexp_body): Likewise.
2178 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2179 (f_language::expression_ops): New member function.
2180 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2181 (go_language::expression_ops): New member function.
2182 * language.c (language_defn::expression_ops): New function.
2183 (unknown_language_data): Remove la_exp_desc initializer.
2184 (auto_language_data): Likewise.
2185 * language.h (language_data): Remove la_exp_desc field.
2186 (language_defn::expression_ops): Declare new member function.
2187 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2188 (m2_language::expression_ops): New member function.
2189 * objc-lang.c (objc_language_data): Remove la_exp_desc
2190 initializer.
2191 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2192 initializer.
2193 (opencl_language::expression_ops): New member function.
2194 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2195 * parse.c (operator_length): Update call to expression_ops.
2196 (exp_iterate): Likewise.
2197 * rust-lang.c (rust_language_data): Remove la_exp_desc
2198 initializer.
2199 (ruse_language::expression_ops): New member function.
2200
2201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2204 initializer.
2205 (ada_language::varobj_ops): New member function.
2206 * c-lang.c (c_language_data): Remove la_varobj_ops
2207 initializer.
2208 (cplus_language_data): Likewise.
2209 (cplus_language::varobj_ops): New member function.
2210 (asm_language_data): Remove la_varobj_ops initializer.
2211 (minimal_language_data): Likewise.
2212 * d-lang.c (d_language_data): Likewise.
2213 * f-lang.c (f_language_data): Likewise.
2214 * go-lang.c (go_language_data): Likewise.
2215 * language.c (language_defn::varobj_ops): New function.
2216 (unknown_language_data): Remove la_varobj_ops
2217 initializer.
2218 (auto_language_data): Likewise.
2219 * language.h (language_data): Remove la_varobj_ops field.
2220 (language_defn::varobj_ops): Declare new member function.
2221 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2222 * objc-lang.c (objc_language_data): Likewise.
2223 * opencl-lang.c (opencl_language_data): Likewise.
2224 * p-lang.c (pascal_language_data): Likewise.
2225 * rust-lang.c (rust_language_data): Likewise.
2226 * varobj.c (varobj_create): Update call to varobj_ops.
2227 * varobj.h (default_varobj_ops): Delete define.
2228
2229 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2232 initializer.
2233 * c-lang.c (c_language_data): Likewise.
2234 (c_language::macro_expansion): New member function.
2235 (cplus_language_data): Likewise.
2236 (cplus_language::macro_expansion): New member function.
2237 (asm_language_data): Likewise.
2238 (asm_language::macro_expansion): New member function.
2239 (minimal_language_data): Likewise.
2240 (minimal_language::macro_expansion): New member function.
2241 * d-lang.c (d_language_data): Remove la_macro_expansion
2242 initializer.
2243 * f-lang.c (f_language_data): Likewise.
2244 * go-lang.c (go_language_data): Likewise.
2245 * language.c (unknown_language_data): Likewise.
2246 (auto_language_data): Likewise.
2247 * language.h (language_data): Remove la_macro_expansion field.
2248 (language_defn::macro_expansion): New member function.
2249 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2250 initializer.
2251 * objc-lang.c (objc_language_data): Likewise.
2252 (objc_language::macro_expansion): New member function.
2253 * opencl-lang.c (opencl_language_data): Likewise.
2254 (opencl_language::macro_expansion): New member function.
2255 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2256 initializer.
2257 * rust-lang.c (rust_language_data): Likewise.
2258 * symtab.c (default_collect_symbol_completion_matches_break_on):
2259 Update call to macro_expansion.
2260
2261 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * ada-lang.c (ada_language_data): Remove la_array_ordering
2264 initializer.
2265 * c-lang.c (c_language_data): Likewise.
2266 (cplus_language_data): Likewise.
2267 (asm_language_data): Likewise.
2268 (minimal_language_data): Likewise.
2269 * d-lang.c (d_language_data): Likewise.
2270 * dwarf2/read.c (read_array_order): Update for call to
2271 array_ordering.
2272 * f-lang.c (f_language_data): Remove la_array_ordering
2273 initializer.
2274 (f_language::array_ordering): New member function.
2275 * go-lang.c (go_language_data): Remove la_array_ordering
2276 initializer.
2277 * language.c (unknown_language_data): Likewise.
2278 (auto_language_data): Likewise.
2279 * language.h (language_data): Delete la_array_ordering field.
2280 (language_defn::array_ordering): New member function.
2281 * m2-lang.c (m2_language_data): Remove la_array_ordering
2282 initializer.
2283 * objc-lang.c (objc_language_data): Likewise.
2284 * opencl-lang.c (opencl_language_data): Likewise.
2285 * p-lang.c (pascal_language_data): Likewise.
2286 * rust-lang.c (rust_language_data): Likewise.
2287
2288 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2289
2290 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2291 initializer.
2292 * c-lang.c (c_language_data): Likewise.
2293 (cplus_language_data): Likewise.
2294 (asm_language_data): Likewise.
2295 (minimal_language_data): Likewise.
2296 * d-lang.c (d_language_data): Likewise.
2297 * f-lang.c (f_language_data): Likewise.
2298 (f_language::case_sensitivity): New member function.
2299 * go-lang.c (go_language_data): Remove la_case_sensitivity
2300 initializer.
2301 * language.c (enum case_mode): Moved here from language.h.
2302 (case_mode): Make static.
2303 (show_case_command): Update for case_sensitivity being a method.
2304 (set_case_command): Likewise.
2305 (set_range_case): Likewise.
2306 (unknown_language_data): Remove la_case_sensitivity initializer.
2307 (auto_language_data): Likewise.
2308 * language.h (case_mode): Delete, move enum declaration to
2309 language.c.
2310 (language_data): Delete la_case_sensitivity field.
2311 (language_defn::case_sensitivity): New member function.
2312 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2313 initializer.
2314 * objc-lang.c (objc_language_data): Likewise.
2315 * opencl-lang.c (opencl_language_data): Likewise.
2316 * p-lang.c (pascal_language_data): Likewise.
2317 * rust-lang.c (rust_language_data): Likewise.
2318
2319 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * ada-lang.c (ada_language_data): Remove la_range_check
2322 initializer.
2323 * c-lang.c (c_language_data): Likewise.
2324 (cplus_language_data): Likewise.
2325 (asm_language_data): Likewise.
2326 (minimal_language_data): Likewise.
2327 * d-lang.c (d_language_data): Likewise.
2328 * f-lang.c (f_language_data): Likewise.
2329 (f_language::range_checking_on_by_default): New member function.
2330 * go-lang.c (go_language_data): Remove la_range_check initializer.
2331 * language.c (enum range_mode): Moved here from language.h.
2332 (range_mode): Made static.
2333 (show_range_command): Update to use
2334 range_checking_on_by_default.
2335 (set_range_command): Likewise.
2336 (set_range_case): Likewise.
2337 (unknown_language_data): Remove la_range_check initializer.
2338 (auto_language_data): Likewise.
2339 * language.h (range_mode): Delete. Enum definition moved to
2340 language.c.
2341 (language_data): Remove la_range_check field.
2342 (language_defn::range_checking_on_by_default): New member
2343 function.
2344 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2345 (m2_language::range_checking_on_by_default): New member function.
2346 * objc-lang.c (objc_language_data): Remove la_range_check
2347 initializer.
2348 * opencl-lang.c (opencl_language_data): Likewise.
2349 * p-lang.c (pascal_language_data): Likewise.
2350 (pascal_language::range_checking_on_by_default): New member
2351 function.
2352 * rust-lang.c (rust_language_data): Remove la_range_check
2353 initializer.
2354 (rust_language::range_checking_on_by_default): New member
2355 function.
2356
2357 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * dwarf2/read.c (dwarf2_physname): Remove special case for
2360 language_go.
2361 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2362 member function.
2363
2364 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 * ada-lang.c (ada_language_data): Remove
2367 la_store_sym_names_in_linkage_form_p initializer.
2368 (ada_language::store_sym_names_in_linkage_form_p): New member
2369 function.
2370 * c-lang.c (c_language_data): Remove
2371 la_store_sym_names_in_linkage_form_p initializer.
2372 (c_language::store_sym_names_in_linkage_form_p): New member
2373 function.
2374 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2375 initializer.
2376 (asm_language_data): Likewise.
2377 (asm_language::store_sym_names_in_linkage_form_p): New member
2378 function.
2379 (minimal_language_data): Remove
2380 la_store_sym_names_in_linkage_form_p initializer.
2381 (minimal_language::store_sym_names_in_linkage_form_p): New member
2382 function.
2383 * d-lang.c (d_language_data): Remove
2384 la_store_sym_names_in_linkage_form_p initializer.
2385 * dwarf2/read.c (dwarf2_physname): Update call to
2386 store_sym_names_in_linkage_form_p.
2387 * f-lang.c (f_language_data): Remove
2388 la_store_sym_names_in_linkage_form_p initializer.
2389 * go-lang.c (go_language_data): Remove
2390 la_store_sym_names_in_linkage_form_p initializer.
2391 * language.c (unknown_language_data): Remove
2392 la_store_sym_names_in_linkage_form_p initializer.
2393 (unknown_language::store_sym_names_in_linkage_form_p): New member
2394 function.
2395 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2396 initializer.
2397 (auto_language::store_sym_names_in_linkage_form_p): New member
2398 function.
2399 * language.h (language_data): Remove
2400 la_store_sym_names_in_linkage_form_p member variable.
2401 (language_defn::store_sym_names_in_linkage_form_p): New member
2402 function.
2403 * m2-lang.c (m2_language_data): Remove
2404 la_store_sym_names_in_linkage_form_p initializer.
2405 * objc-lang.c (objc_language_data): Likewise.
2406 * opencl-lang.c (opencl_language_data): Likewise.
2407 * p-lang.c (pascal_language_data): Likewise.
2408 * rust-lang.c (rust_language_data): Likewise.
2409
2410 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Remove string_lower_bound
2413 initializer.
2414 * c-lang.c (c_language_data): Likewise.
2415 (cplus_language_data): Likewise.
2416 (asm_language_data): Likewise.
2417 (minimal_language_data): Likewise.
2418 * d-lang.c (d_language_data): Likewise.
2419 * f-lang.c (f_language_data): Likewise.
2420 * go-lang.c (go_language_data): Likewise.
2421 * language.c (unknown_language_data): Likewise.
2422 (auto_language_data): Likewise.
2423 * language.h (language_data): Remove string_lower_bound field.
2424 (language_defn::string_lower_bound): New member function.
2425 * m2-lang.c (m2_language_data): Remove string_lower_bound
2426 initializer.
2427 (m2_language::string_lower_bound): New member function.
2428 * objc-lang.c (objc_language_data): Remove string_lower_bound
2429 initializer.
2430 * opencl-lang.c (opencl_language_data): Likewise.
2431 * p-lang.c (pascal_language_data): Likewise.
2432 * rust-lang.c (rust_language_data): Likewise.
2433 * valops.c (value_cstring): Update call to string_lower_bound.
2434 (value_string): Likewise.
2435 * value.c (allocate_repeated_value): Likewise.
2436
2437 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * valops.c (value_repeat): Fix incorrect argument name in comment.
2440
2441 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * ada-lang.c (ada_language_data): Remove c_style_arrays
2444 initializer.
2445 (ada_language::c_style_arrays_p): New member fuction.
2446 * c-lang.c (c_language_data): Remove c_style_arrays
2447 initializer.
2448 (cplus_language_data): Likewise.
2449 (asm_language_data): Likewise.
2450 (minimal_language_data): Likewise.
2451 * d-lang.c (d_language_data): Likewise.
2452 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2453 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2454 (f_language::c_style_arrays_p): New member function.
2455 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2456 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2457 * language.c (unknown_language_data): Remove c_style_arrays
2458 initializer.
2459 (auto_language_data): Likewise.
2460 * language.h (language_data): Remove c_style_arrays field.
2461 (language_defn::c_style_arrays_p): New member function.
2462 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2463 (m2_language::c_style_arrays_p): New member function.
2464 * objc-lang.c (objc_language_data): Remove c_style_arrays
2465 initializer.
2466 * opencl-lang.c (opencl_language_data): Likewise.
2467 * p-lang.c (pascal_language_data): Likewise.
2468 * rust-lang.c (rust_language_data): Likewise.
2469 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2470 and update local variable to a bool.
2471 * valops.c (value_cast): Update call to c_style_arrays_p.
2472 (value_array): Likewise.
2473 * value.c (coerce_array): Likewise.
2474
2475 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * ada-lang.c (ada_language_data): Remove la_language initializer.
2478 * c-lang.c (c_language_data): Likewise.
2479 (cplus_language_data): Likewise.
2480 (asm_language_data): Likewise.
2481 (minimal_language_data): Likewise.
2482 * d-lang.c (d_language_data): Likewise.
2483 * f-lang.c (f_language_data): Likewise.
2484 * go-lang.c (go_language_data): Likewise.
2485 * language.c (unknown_language_data): Likewise.
2486 (auto_language_data): Likewise.
2487 * language.h (language_data): Remove la_language field.
2488 (language_defn::language_defn): Initialise la_language field.
2489 (language_defn::la_language): New member variable.
2490 * m2-lang.c (m2_language_data): Remove la_language field.
2491 * objc-lang.c (objc_language_data): Likewise.
2492 * opencl-lang.c (opencl_language_data): Likewise.
2493 * p-lang.c (pascal_language_data): Likewise.
2494 * rust-lang.c (rust_language_data): Likewise.
2495
2496 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * ada-lang.c (ada_extensions): Delete, moved into
2499 ada_language::filename_extensions.
2500 (ada_language_data): Remove la_filename_extensions initializer.
2501 (ada_language::filename_extensions): New member function.
2502 * c-lang.c (c_extensions): Delete, moved into
2503 c_language::filename_extensions.
2504 (c_language_data): Remove la_filename_extensions initializer.
2505 (c_language::filename_extensions): New member function.
2506 (cplus_extensions): Delete, moved into
2507 cplus_language::filename_extensions.
2508 (cplus_language_data): Remove la_filename_extensions initializer.
2509 (cplus_language::filename_extensions): New member function.
2510 (asm_extensions): Delete, moved into
2511 asm_language::filename_extensions.
2512 (asm_language_data): Remove la_filename_extensions initializer.
2513 (asm_language::filename_extensions): New member function.
2514 (minimal_language_data): Remove la_filename_extensions
2515 initializer.
2516 * d-lang.c (d_extensions): Delete, moved into
2517 d_language::filename_extensions.
2518 (d_language_data): Remove la_filename_extensions initializer.
2519 (d_language::filename_extensions): New member function.
2520 * f-lang.c (f_extensions): Delete, moved into
2521 f_language::filename_extensions.
2522 (f_language_data): Remove la_filename_extensions initializer.
2523 (f_language::filename_extensions): New member function.
2524 * go-lang.c (go_language_data): Remove la_filename_extensions
2525 initializer.
2526 * language.c (add_set_language_command): Update now that
2527 filename_extensions returns a vector.
2528 (unknown_language_data): Remove la_filename_extensions
2529 initializer.
2530 (auto_language_data): Likewise.
2531 * language.h (language_data): Remove la_filename_extensions field.
2532 (language_defn::filename_extensions): New member function.
2533 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2534 initializer.
2535 * objc-lang.c (objc_extensions): Delete, moved into
2536 objc_language::filename_extensions.
2537 (objc_language_data): Remove la_filename_extensions initializer.
2538 (objc_language::filename_extensions): New member function.
2539 * opencl-lang.c (opencl_language_data): Remove
2540 la_filename_extensions initializer.
2541 * p-lang.c (pascal_extensions): Delete, moved into
2542 pascal_language::filename_extensions.
2543 (pascal_language_data): Remove la_filename_extensions initializer.
2544 (pascal_language::filename_extensions): New member function.
2545 * rust-lang.c (rust_extensions): Delete, moved into
2546 rust_language::filename_extensions.
2547 (rust_language_data): Remove la_filename_extensions initializer.
2548 (rust_language::filename_extensions): New member function.
2549 * symfile.c (add_filename_language): Add new assert.
2550
2551 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 * ada-lang.c (ada_language_data): Remove la_name and
2554 la_natural_name initializers.
2555 (ada_language::name): New member function.
2556 (ada_language::natural_name): New member function.
2557 * c-lang.c (c_language_data): Remove la_name and
2558 la_natural_name initializers.
2559 (c_language::name): New member function.
2560 (c_language::natural_name): New member function.
2561 (cplus_language_data): Remove la_name and
2562 la_natural_name initializers.
2563 (cplus_language::name): New member function.
2564 (cplus_language::natural_name): New member function.
2565 (asm_language_data): Remove la_name and
2566 la_natural_name initializers.
2567 (asm_language::name): New member function.
2568 (asm_language::natural_name): New member function.
2569 (minimal_language_data): Remove la_name and
2570 la_natural_name initializers.
2571 (minimal_language::name): New member function.
2572 (minimal_language::natural_name): New member function.
2573 * compile/compile.c (compile_to_object): Update call to
2574 lanugage_defn::name.
2575 * d-lang.c (d_language_data): Remove la_name and
2576 la_natural_name initializers.
2577 (d_language::name): New member function.
2578 (d_language::natural_name): New member function.
2579 * expprint.c (print_subexp_standard): Update call to
2580 language_defn::name.
2581 (dump_raw_expression): Likewise
2582 (dump_prefix_expression): Likewise.
2583 * f-lang.c (f_language_data): Remove la_name and
2584 la_natural_name initializers.
2585 (f_language::name): New member function.
2586 (f_language::natural_name): New member function.
2587 * go-lang.c (go_language_data): Remove la_name and
2588 la_natural_name initializers.
2589 (go_language::name): New member function.
2590 (go_language::natural_name): New member function.
2591 * language.c (show_language_command): Update call to
2592 language_defn::name.
2593 (set_language_command): Likewise.
2594 (language_enum): Likewise.
2595 (language_str): Likewise.
2596 (add_set_language_command): Likewise, use
2597 language_defn::natural_name in the doc string.
2598 (unknown_language_data): Remove la_name and
2599 la_natural_name initializers.
2600 (unknown_language::name): New member function.
2601 (unknown_language::natural_name): New member function.
2602 (auto_language_data): Remove la_name and
2603 la_natural_name initializers.
2604 (auto_language::name): New member function.
2605 (auto_language::natural_name): New member function.
2606 (language_lookup_primitive_type_as_symbol): Update call to
2607 language_defn::name.
2608 * language.h (language_data): Remove la_name and la_natural_name
2609 member variables.
2610 (language_defn::name): New member function.
2611 (language_defn::natural_name): New member function.
2612 * m2-lang.c (m2_language_data): Remove la_name and
2613 la_natural_name initializers.
2614 (m2_language::name): New member function.
2615 (m2_language::natural_name): New member function.
2616 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2617 language_defn::natural_name.
2618 * objc-lang.c (objc_language_data): Remove la_name and
2619 la_natural_name initializers.
2620 (objc_language::name): New member function.
2621 (objc_language::natural_name): New member function.
2622 * opencl-lang.c (opencl_language_data): Remove la_name and
2623 la_natural_name initializers.
2624 (opencl_language::name): New member function.
2625 (opencl_language::natural_name): New member function.
2626 * p-lang.c (pascal_language_data): Remove la_name and
2627 la_natural_name initializers.
2628 (pascal_language::name): New member function.
2629 (pascal_language::natural_name): New member function.
2630 * rust-lang.c (rust_language_data): Remove la_name and
2631 la_natural_name initializers.
2632 (rust_language::name): New member function.
2633 (rust_language::natural_name): New member function.
2634 * symtab.c (lookup_language_this): Update call to
2635 language_defn::name.
2636
2637 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * ada-lang.c (ada_language_data): Remove la_name_of_this
2640 initializer.
2641 * ax-gdb.c (gen_expr): Update call to name_of_this.
2642 * c-exp.y (classify_name): Likewise.
2643 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2644 (cplus_language_data): Likewise.
2645 (cplus_language::name_of_this): New member function.
2646 (asm_language_data): Remove la_name_of_this initializer.
2647 (minimal_language_data): Likewise.
2648 * d-lang.c (d_language_data): Likewise.
2649 (d_language::name_of_this): New member function.
2650 * expprint.c (print_subexp_standard): Update call to name_of_this.
2651 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2652 * go-lang.c (go_language_data): Likewise.
2653 * language.c (unknown_language_data): Likewise.
2654 (unknown_language::name_of_this): New member function.
2655 (auto_language_data): Remove la_name_of_this initializer.
2656 (auto_language::name_of_this): New member function.
2657 * language.h (language_data): Delete la_name_of_this member
2658 variable.
2659 (language_defn::name_of_this): New member function.
2660 * m2-lang.c (m2_language_data): Remove la_name_of_this
2661 initializer.
2662 * objc-lang.c (objc_language_data): Likewise.
2663 (objc_language::name_of_this): New member function.
2664 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2665 initializer.
2666 * p-lang.c (pascal_language_data): Likewise.
2667 (pascal_language::name_of_this): New member function.
2668 * rust-lang.c (rust_language_data): Remove la_name_of_this
2669 initializer.
2670 * symtab.c (lookup_language_this): Update call to name_of_this.
2671 (lookup_symbol_aux): Likewise.
2672 * valops.c (value_of_this): Likewise.
2673
2674 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * ada-lang.c (ada_language_data): Remove
2677 la_struct_too_deep_ellipsis initializer.
2678 (ada_language::struct_too_deep_ellipsis): New member function.
2679 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2680 initializer.
2681 (cplus_language_data): Likewise.
2682 (asm_language_data): Likewise.
2683 (minimal_language_data): Likewise.
2684 * cp-valprint.c (cp_print_value): Update call to
2685 struct_too_deep_ellipsis.
2686 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2687 initializer.
2688 * f-lang.c (f_language_data): Likewise.
2689 (f_language::struct_too_deep_ellipsis): New member function.
2690 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2691 initializer.
2692 * language.c (unknown_language_data): Likewise.
2693 (auto_language_data): Likewise.
2694 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2695 member variable.
2696 (language_defn::struct_too_deep_ellipsis): New member function.
2697 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2698 initializer.Q
2699 * objc-lang.c (objc_language_data): Likewise.
2700 * opencl-lang.c (opencl_language_data): Likewise.
2701 * p-lang.c (pascal_language_data): Likewise.
2702 * rust-lang.c (rust_language_data): Likewise.
2703 * valprint.c (val_print_check_max_depth): Update call to
2704 struct_too_deep_ellipsis.
2705
2706 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2707
2708 * MAINTAINERS (Write After Approval): Add myself.
2709
2710 2020-09-15 Tom Tromey <tom@tromey.com>
2711
2712 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2713 Remove.
2714
2715 2020-09-15 Tom Tromey <tom@tromey.com>
2716
2717 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2718 and TYPE_CODE_METHODPTR cases.
2719 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2720 (c_value_print_inner): Update.
2721 * valprint.c (generic_value_print_memberptr): New function, from
2722 c_value_print_memberptr.
2723 (generic_value_print): Use it. Call cplus_print_method_ptr.
2724
2725 2020-09-15 Tom Tromey <tromey@adacore.com>
2726
2727 * python/python-internal.h (PyInt_FromLong): Remove define.
2728 * python/py-value.c (convert_value_from_python): Use
2729 gdb_py_object_from_longest.
2730 * python/py-type.c (typy_get_code): Use
2731 gdb_py_object_from_longest.
2732 * python/py-symtab.c (salpy_get_line): Use
2733 gdb_py_object_from_longest.
2734 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2735 gdb_py_object_from_longest.
2736 * python/py-record.c (recpy_gap_reason_code): Use
2737 gdb_py_object_from_longest.
2738 * python/py-record-btrace.c (recpy_bt_insn_size)
2739 (recpy_bt_func_level, btpy_list_count): Use
2740 gdb_py_object_from_longest.
2741 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2742 gdb_py_object_from_longest. Fix error handling.
2743 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2744 gdb_py_object_from_longest.
2745 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2746 gdb_py_object_from_longest.
2747 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2748 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2749 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2750
2751 2020-09-15 Tom Tromey <tromey@adacore.com>
2752
2753 * python/python.c (gdbpy_parameter_value): Use
2754 gdb_py_object_from_ulongest.
2755
2756 2020-09-15 Tom Tromey <tromey@adacore.com>
2757
2758 * python/py-infevents.c (create_register_changed_event_object):
2759 Use gdb_py_object_from_longest.
2760 * python/py-exitedevent.c (create_exited_event_object): Use
2761 gdb_py_object_from_longest.
2762
2763 2020-09-15 Tom Tromey <tromey@adacore.com>
2764
2765 * python/python.c (gdbpy_parameter_value): Use
2766 gdb_py_object_from_longest.
2767 * python/py-type.c (convert_field, typy_range): Use
2768 gdb_py_object_from_longest.
2769 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2770 gdb_py_object_from_longest.
2771 * python/py-lazy-string.c (stpy_get_length): Use
2772 gdb_py_object_from_longest.
2773 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2774 gdb_py_object_from_longest.
2775 * python/py-infevents.c (create_memory_changed_event_object): Use
2776 gdb_py_object_from_longest.
2777 * python/py-inferior.c (infpy_get_num): Use
2778 gdb_py_object_from_longest.
2779 (infpy_get_pid): Likewise.
2780
2781 2020-09-15 Tom Tromey <tromey@adacore.com>
2782
2783 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2784 defines.
2785 * python/py-value.c (valpy_long): Use
2786 gdb_py_object_from_ulongest.
2787 * python/py-symtab.c (salpy_get_pc): Use
2788 gdb_py_object_from_ulongest.
2789 (salpy_get_last): Likewise.
2790 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2791 gdb_py_object_from_ulongest.
2792 * python/py-lazy-string.c (stpy_get_address): Use
2793 gdb_py_object_from_ulongest.
2794 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2795 * python/py-arch.c (archpy_disassemble): Use
2796 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2797 error handling.
2798
2799 2020-09-15 Tom Tromey <tromey@adacore.com>
2800
2801 * python/python-internal.h (gdb_py_long_from_longest): Remove
2802 defines.
2803 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2804 * python/py-type.c (convert_field, typy_get_sizeof): Use
2805 gdb_py_object_from_longest.
2806 * python/py-record-btrace.c (btpy_list_index): Use
2807 gdb_py_object_from_longest.
2808
2809 2020-09-15 Tom Tromey <tromey@adacore.com>
2810
2811 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2812 * python/py-record.c (recpy_element_number): Use
2813 gdb_py_object_from_longest.
2814 (recpy_gap_number): Likewise.
2815
2816 2020-09-15 Tom Tromey <tromey@adacore.com>
2817
2818 * top.c (ui::ui): Update.
2819 (highest_ui_num): Remove.
2820 * top.h (struct ui) <num>: Remove.
2821
2822 2020-09-15 Tom Tromey <tromey@adacore.com>
2823
2824 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2825 * ui-style.c (ansi_regex_text): Now array.
2826 * rust-exp.y (number_regex_text): Now array.
2827 * linespec.c (linespec_quote_characters): Now array.
2828 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2829 Now arrays.
2830
2831 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2832
2833 * debuginfod-support.c (debuginfod_client_deleter): New.
2834 (debuginfod_client_up): New.
2835 (debuginfod_init): Return debuginfod_client_up.
2836 (debuginfod_source_query): Adjust.
2837 (debuginfod_debuginfo_query): Adjust.
2838
2839 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2840
2841 * debuginfod-support.c (debuginfod_source_query): Use
2842 make_unique_xstrdup.
2843
2844 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2847 with `type::instance_flags`.
2848
2849 2020-09-14 Michael Mullin <masmullin@gmail.com>
2850
2851 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2852 Remove baton parameter.
2853
2854 2020-09-14 Pedro Alves <pedro@palves.net>
2855
2856 * Makefile.in (SELFTESTS_SRCS): Add
2857 unittests/enum-flags-selftests.c.
2858 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2859 btrace_function_flags instead of enum btrace_function_flag.
2860 * compile/compile-c-types.c (convert_qualified): Use
2861 enum_flags::raw.
2862 * compile/compile-cplus-symbols.c (convert_one_symbol)
2863 (convert_symbol_bmsym):
2864 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2865 (compile_cplus_convert_struct_or_union_methods)
2866 (compile_cplus_instance::convert_qualified_base):
2867 * go-exp.y (parse_string_or_char): Add cast to int.
2868 * unittests/enum-flags-selftests.c: New file.
2869 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2870 type to btrace_thread_flags from btrace_thread_flag.
2871 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2872 local's type to btrace_thread_flags from btrace_thread_flag. Add
2873 cast in DEBUG call.
2874
2875 2020-09-14 Pedro Alves <pedro@palves.net>
2876
2877 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2878 * gdbtypes.c (address_space_name_to_int): Rename to ...
2879 (address_space_name_to_type_instance_flags): ... this.
2880 (address_space_int_to_name): Rename to ...
2881 (address_space_type_instance_flags_to_name): ... this.
2882 * gdbtypes.h (address_space_name_to_int): Rename to ...
2883 (address_space_name_to_type_instance_flags): ... this.
2884 (address_space_int_to_name): Rename to ...
2885 (address_space_type_instance_flags_to_name): ... this.
2886 * type-stack.c (type_stack::insert): Adjust to rename.
2887 * type-stack.h (type_stack::insert): Likewise.
2888
2889 2020-09-14 Pedro Alves <pedro@palves.net>
2890 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * avr-tdep.c (avr_address_class_type_flags): Return
2893 type_instance_flags.
2894 (avr_address_class_type_flags_to_name): Take a
2895 type_instance_flags.
2896 (avr_address_class_name_to_type_flags): Return bool and take a
2897 type_instance_flags.
2898 * d-lang.c (build_d_types): Use type::set_instance_flags.
2899 * ft32-tdep.c (ft32_address_class_type_flags): Return
2900 type_instance_flags.
2901 (ft32_address_class_type_flags_to_name): Take a
2902 type_instance_flags.
2903 (ft32_address_class_name_to_type_flags): Return bool and take a
2904 type_instance_flags.
2905 (ft32_gdbarch_init): Use type::set_instance_flags.
2906 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2907 * gdbarch.h, gdbarch.c: Regenerate.
2908 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2909 (address_class_name_to_type_flags): Use type_instance_flags and
2910 bool.
2911 * gdbtypes.c (address_space_name_to_int)
2912 (address_space_int_to_name, make_qualified_type): Use
2913 type_instance_flags.
2914 (make_qualified_type): Use type_instance_flags and
2915 type::set_instance_flags.
2916 (make_type_with_address_space, make_cv_type, make_vector_type)
2917 (check_typedef): Use type_instance_flags.
2918 (recursive_dump_type): Cast type_instance_flags to unsigned for
2919 printing.
2920 (copy_type_recursive): Use type::set_instance_flags.
2921 (gdbtypes_post_init): Use type::set_instance_flags.
2922 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2923 <m_instance_flags>: ... this.
2924 <instance_flags, set_instance_flags>: New methods.
2925 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2926 (SET_TYPE_INSTANCE_FLAGS): New.
2927 (address_space_name_to_int, address_space_int_to_name)
2928 (make_type_with_address_space): Pass flags using
2929 type_instance_flags instead of int.
2930 * stabsread.c (cleanup_undefined_types_noname): Use
2931 type::set_instance_flags.
2932 * s390-tdep.c (s390_address_class_type_flags): Return
2933 type_instance_flags.
2934 (s390_address_class_type_flags_to_name): Take a
2935 type_instance_flags.
2936 (s390_address_class_name_to_type_flags): Return bool and take a
2937 type_instance_flags.
2938 * type-stack.c (type_stack::follow_types): Use
2939 type_instance_flags.
2940 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2941
2942 2020-09-14 Tom Tromey <tromey@adacore.com>
2943
2944 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2945 * x86-tdep.c (x86_is_thunk_register_name)
2946 (x86_in_indirect_branch_thunk): Update.
2947 * sparc64-tdep.c (sparc64_fpu_register_names)
2948 (sparc64_cp0_register_names, sparc64_register_names)
2949 (sparc64_pseudo_register_names): Now const.
2950 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2951 cp0_registers_num>: Now const.
2952 * sparc-tdep.c (sparc_core_register_names)
2953 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2954 (sparc32_pseudo_register_names): Now const.
2955 (validate_tdesc_registers): Update.
2956 * rust-lang.c (rust_extensions): Now const.
2957 * p-lang.c (p_extensions): Now const.
2958 * objc-lang.c (objc_extensions): Now const.
2959 * nto-tdep.c (nto_thread_state_str): Now const.
2960 * moxie-tdep.c (moxie_register_names): Now const.
2961 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2962 Now const.
2963 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2964 (mips_linux_reg_names): Now const.
2965 (mips_gdbarch_init): Update.
2966 * microblaze-tdep.c (microblaze_register_names): Now const.
2967 * m68k-tdep.c (m68k_register_names): Now const.
2968 * m32r-tdep.c (m32r_register_names): Now const.
2969 * ia64-tdep.c (ia64_register_names): Now const.
2970 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2971 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2972 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2973 ymm_avx512_register_names, pkeys_register_names>: Now const.
2974 * i386-tdep.c (i386_register_names, i386_zmm_names)
2975 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2976 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2977 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2978 * f-lang.c (f_extensions): Now const.
2979 * d-lang.c (d_extensions): Now const.
2980 * csky-tdep.c (csky_register_names): Now const.
2981 * charset.c (default_charset_names, charset_enum): Now const.
2982 (_initialize_charset): Update.
2983 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2984 const.
2985 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2986 (bsd_uthread_solib_loaded): Update.
2987 (bsd_uthread_state): Now const.
2988 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2989 (amd64_ymm_avx512_names, amd64_ymmh_names)
2990 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2991 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2992 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2993 (amd64_dword_names): Now const.
2994 * agent.c (can_use_agent_enum): Now const.
2995 * ada-tasks.c (task_states, long_task_states): Now const.
2996 * ada-lang.c (known_runtime_file_name_patterns)
2997 (known_auxiliary_function_name_patterns, attribute_names)
2998 (standard_exc, ada_extensions): Now const.
2999
3000 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * bcache.h (struct bcache) <bcache>: Remove constructor.
3003 <m_hash_function, m_compare_function>: Remove.
3004 <~bcache>: Make virtual.
3005 <compare>: Remove static method, introduce virtual method.
3006 <default_hash>: Remove.
3007 <hash>: New virtual method.
3008 * bcache.c (bcache::expand_hash_table): Update.
3009 (bcache::insert): Update.
3010 (bcache::hash): New.
3011 (bcache::compare): Update comment and parameter names.
3012 * gdbtypes.c (types_deeply_equal): Update.
3013 * psymtab.h (struct psymbol_bcache): New struct.
3014 (class psymtab_storage) <psymtab_storage>: Make default.
3015 <psymbol_cache>: Change type to psymbol_bcache.
3016 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
3017 (psymbol_hash): Change to...
3018 (psymbol_bcache::hash): ... this.
3019 (psymbol_compare): Change to...
3020 (psymbol_bcache::compare): ... this.
3021
3022 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
3025 checking for initial lwp.
3026
3027 2020-09-14 Tom Tromey <tromey@adacore.com>
3028
3029 * m68k-tdep.c (m68k_extract_return_value): Use
3030 pointer_result_regnum.
3031 (m68k_store_return_value): Likewise.
3032 (m68k_reg_struct_return_p): Handle vectors and arrays.
3033 (m68k_return_value): Handle arrays.
3034 (m68k_svr4_return_value): Fix single-element aggregate handling.
3035 Handle long double. Adjust for embedded ABI.
3036 (m68k_svr4_init_abi): Set pointer_result_regnum.
3037 (m68k_embedded_init_abi): New function.
3038 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
3039 (m68k_osabi_sniffer): New function.
3040 (_initialize_m68k_tdep): Register osabi sniffer.
3041 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
3042 member.
3043
3044 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3047 with gdb::unique_xmalloc_ptr<char>.
3048
3049 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * xml-support.h (xml_fetch_another): Change type to be a
3052 function_view.
3053 (xml_process_xincludes): Remove baton parameter.
3054 (xml_fetch_content_from_file): Change baton parameter to
3055 dirname.
3056 * xml-support.c (struct xinclude_parsing_data)
3057 <xinclude_parsing_data>: Remove baton parameter.
3058 <fetcher_baton>: Remove.
3059 (xinclude_start_include): Adjust.
3060 (xml_process_xincludes): Adjust.
3061 (xml_fetch_content_from_file): Replace baton parameter with
3062 dirname.
3063 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3064 (xml_init_syscalls_info): Use a lambda.
3065 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3066 (file_read_description_xml): Use a lambda.
3067 (fetch_available_features_from_target): Change baton parameter
3068 to target_ops.
3069 (target_read_description_xml): Use a lambda.
3070 (target_fetch_description_xml): Use a lambda.
3071 (string_read_description_xml): Update.
3072
3073 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3074
3075 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3076 uses with type::endianity_is_not_default.
3077
3078 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * gdbtypes.h (struct type) <endianity_is_not_default,
3081 set_endianity_is_not_default>: New methods.
3082 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3083 type::endianity_is_not_default, change all write call sites to
3084 use type::set_endianity_is_not_default.
3085
3086 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3087
3088 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3089 uses with type::is_fixed_instance.
3090
3091 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (struct type) <is_fixed_instance,
3094 set_is_fixed_instance>: New methods.
3095 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3096 write call sites to use type::set_is_fixed_instance.
3097
3098 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3101 uses with type::is_gnu_ifunc.
3102
3103 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3106 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3107 use type::set_is_gnu_ifunc.
3108
3109 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3112 uses with type::stub_is_supported.
3113
3114 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3117 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3118 use type::set_stub_is_supported.
3119
3120 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3123 uses with type::is_vector.
3124
3125 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3128 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3129 use type::set_is_vector.
3130
3131 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3134 uses with type::has_varargs.
3135
3136 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3137
3138 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3139 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3140 use type::set_has_varargs.
3141
3142 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3143
3144 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3145 uses with type::is_prototyped.
3146
3147 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3150 New methods.
3151 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3152 call sites to use type::set_is_prototyped.
3153
3154 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3155
3156 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3157 uses with type::target_is_stub.
3158
3159 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3160
3161 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3162 New methods.
3163 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3164 sites to use type::set_target_is_stub.
3165
3166 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3167
3168 * gdbtypes.h (TYPE_STUB): Remove, replace all
3169 uses with type::is_stub.
3170
3171 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3174 (TYPE_STUB): Use type::is_stub, change all write call sites to
3175 use type::set_is_stub.
3176
3177 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3180 type::has_no_signedness.
3181
3182 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * gdbtypes.h (struct type) <has_no_signedness,
3185 set_has_no_signedness>: New methods.
3186 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3187 call sites to use type::set_has_no_signedness.
3188
3189 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3192 type::is_unsigned.
3193
3194 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
3195
3196 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3197 methods.
3198 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3199 sites to use type::set_is_unsigned.
3200
3201 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
3202 Adam Renquinha <arenquinha@cimeq.qc.ca>
3203
3204 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3205 pointer and stack frame offset when unwinding.
3206
3207 2020-09-13 Pedro Alves <pedro@palves.net>
3208
3209 * NEWS: Document "-break-insert --qualified".
3210 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3211
3212 2020-09-13 Pedro Alves <pedro@palves.net>
3213
3214 * linespec.c (classify_mtype, compare_msyms): Delete.
3215 (search_minsyms_for_name): Remove classification logic. Instead
3216 filter out trampoline symbols if we also found an external
3217 function of the same name.
3218
3219 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3220
3221 * NEWS: Create a new section for the next release branch.
3222 Rename the section of the current branch, now that it has
3223 been cut.
3224
3225 2020-09-13 Joel Brobecker <brobecker@adacore.com>
3226
3227 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3228 * version.in: Bump version to 11.0.50.DATE-git.
3229
3230 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3231
3232 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3233
3234 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3235 Felix Willgerodt <Felix.Willgerodt@intel.com>
3236
3237 * gdbarch.sh: Added bfloat16 type.
3238 * gdbarch.c: Regenerated.
3239 * gdbarch.h: Regenerated.
3240 * gdbtypes.c (floatformats_bfloat16): New struct.
3241 (gdbtypes_post_init): Add builtin_bfloat16.
3242 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3243 (floatformats_bfloat16): New struct.
3244 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3245 (i386_ymm_type): Add field "v16_bfloat16"
3246 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3247 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3248 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3249 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3250 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3251 * features/i386/64bit-avx512.c: Regenerated.
3252 * features/i386/64bit-sse.xml: Add bfloat16 type.
3253 * features/i386/64bit-sse.c: Regenerated.
3254
3255 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3256
3257 * i386-tdep.c (i386_zmm_type): Fix field names.
3258 (i386_ymm_type): Fix field names.
3259
3260 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3261
3262 * breakpoint.c: Fix typo in the help message of the
3263 "set breakpoint condition-evaluation" command.
3264
3265 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3266
3267 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3268 * (nbsd_nat_target::pid_to_exec_file)
3269 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3270 (nbsd_nat_target::post_startup_inferior)
3271 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3272 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3273 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3274 * (nbsd_thread_lister): Remove.
3275
3276 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3277
3278 * fork-inferior.c (startup_inferior): Avoid double free.
3279
3280 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3281
3282 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3283 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3284
3285 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3286
3287 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3288 * netbsd-nat.c: Include <sys/ptrace.h>.
3289 * (netbsd_nat::enable_proc_events): Add.
3290
3291 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3292
3293 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3294 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3295 (netbsd_nat::for_each_thread): Add.
3296 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3297 "gdbsupport/common-debug.h".
3298 * (netbsd_nat::netbsd_thread_lister)
3299 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3300 (netbsd_nat::for_each_thread): Add.
3301
3302 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3303
3304 * netbsd-nat.h: Include <unistd.h>.
3305 * (netbsd_nat::pid_to_exec_file): Add.
3306 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3307 * (netbsd_nat::pid_to_exec_file) Add.
3308
3309 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3310
3311 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3312
3313 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3314
3315 * netbsd-nat.h: New file.
3316 * netbsd-nat.c: Likewise.
3317
3318 2020-09-09 Tom Tromey <tromey@adacore.com>
3319
3320 * ada-lang.c (remove_extra_symbols): Do not increment when
3321 removing an element
3322
3323 2020-09-08 Tom Tromey <tromey@adacore.com>
3324
3325 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3326
3327 2020-09-08 Tom Tromey <tromey@adacore.com>
3328
3329 PR win32/25302:
3330 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3331 (gdb_bfd_init_data): New function.
3332 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3333
3334 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335
3336 * infrun.c (fetch_inferior_event): Use
3337 `switch_to_target_no_thread` to switch the target.
3338
3339 2020-09-06 Tom Tromey <tom@tromey.com>
3340
3341 * symfile.h (dwarf2_free_objfile): Don't declare.
3342
3343 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3344
3345 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3346 to match 16 byte real/complex type generated by Flang compiler.
3347
3348 2020-09-03 Tom de Vries <tdevries@suse.de>
3349
3350 PR breakpoint/26546
3351 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3352 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3353
3354 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * maint.c (index_digits): New function.
3357 (struct maint_print_section_data): Remove.
3358 (print_bfd_section_info): Remove print_data parameter, add arg
3359 and index_digits.
3360 (print_objfile_section_info): Likewise.
3361 (print_bfd_section_info_maybe_relocated): Likewise (plus
3362 objfile).
3363 (maintenance_info_sections): Adjust calls.
3364
3365 2020-09-02 Tom Tromey <tromey@adacore.com>
3366
3367 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3368 for null pointers.
3369 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3370
3371 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3372
3373 * bcache.h (struct bcache) <insert>: Change type of `added` to
3374 pointer to bool.
3375 * bcache.c (bcache::insert): Likewise.
3376 * gdbtypes.c (check_types_worklist): Adjust.
3377 * psymtab.c (add_psymbol_to_bcache): Adjust.
3378
3379 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3380
3381 * corelow.c (unordered_set): Include.
3382 (class core_target): Add field 'm_core_unavailable_mappings'.
3383 (core_target::build_file_mappings): Print only one warning
3384 per inaccessible file. Add unavailable/broken mappings
3385 to m_core_unavailable_mappings.
3386 (core_target::xfer_partial): Call...
3387 (core_target::xfer_memory_via_mappings): New method.
3388
3389 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3390
3391 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3392 type to bool.
3393
3394 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * dwarf2/read.c (struct field_info): Fix indentation.
3397
3398 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3401 ordering in comment.
3402 * frame.c (frame_id_eq): Fix indentation.
3403
3404 2020-08-31 Scott Linder <scott@scottlinder.com>
3405 Simon Marchi <simon.marchi@efficios.com>
3406
3407 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3408 inline frame ids in outer frame.
3409
3410 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3413 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3414 (outer_frame_id): Use FID_STACK_OUTER instead of
3415 FID_STACK_INVALID.
3416 (frame_id_p): Don't check for outer_frame_id.
3417
3418 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3419
3420 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3421 regnum/frame in value. Call allocate_value_lazy.
3422 * frame.c (frame_unwind_register_value): Use
3423 val_print_not_saved.
3424
3425 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3428
3429 2020-08-29 Pedro Alves <pedro@palves.net>
3430
3431 * progspace.c (print_program_space): Use all_inferiors. Switch to
3432 the inferior before calling target_pid_to_str.
3433
3434 2020-08-28 Tom Tromey <tom@tromey.com>
3435
3436 * xcoffread.c (xcoff_end_psymtab): Update comment.
3437 * dbxread.c (dbx_end_psymtab): Update comment.
3438
3439 2020-08-28 Tom de Vries <tdevries@suse.de>
3440
3441 PR breakpoint/26544
3442 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3443 event_location.
3444 (create_breakpoint): Same.
3445 (base_breakpoint_decode_location): Same.
3446 (bkpt_create_sals_from_location): Same.
3447 (bkpt_decode_location): Same.
3448 (bkpt_probe_create_sals_from_location): Same.
3449 (bkpt_probe_decode_location): Same.
3450 (tracepoint_create_sals_from_location): Same.
3451 (tracepoint_decode_location): Same.
3452 (tracepoint_probe_decode_location): Same.
3453 (strace_marker_create_sals_from_location): Same.
3454 (strace_marker_decode_location): Same.
3455 (create_sals_from_location_default): Same.
3456 (decode_location_default): Same.
3457 * breakpoint.h (struct breakpoint_ops): Same.
3458 (create_breakpoint): Same.
3459 * linespec.h (decode_line_full): Same.
3460 * linespec.c (decode_line_full): Same. Throw error if
3461 result.size () == 0.
3462
3463 2020-08-27 Pedro Alves <pedro@palves.net>
3464
3465 PR gdb/26524
3466 * breakpoint.c (until_break_fsm) <location_breakpoint,
3467 caller_breakpoint>: Delete fields.
3468 <breakpoints>: New field.
3469 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3470 two individual breakpoints.
3471 (until_break_fsm::should_stop): Loop over breakpoints in the
3472 breakpoint vector.
3473 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3474 vector.
3475 (until_break_command): Handle location expanding into multiple
3476 sals.
3477
3478 2020-08-27 Pedro Alves <pedro@palves.net>
3479
3480 PR gdb/26523
3481 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3482 bp_until breakpoints user-specified locations. Update intro
3483 comment.
3484
3485 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3488 gdb_bfd_sections): New.
3489 * maint.c (print_bfd_section_info): Change param type to
3490 maint_print_section_data.
3491 (print_objfile_section_info): Likewise.
3492 (print_bfd_section_info_maybe_relocated): Likewise.
3493 (maintenance_info_sections): Use gdb_bfd_sections.
3494
3495 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3496
3497 * MAINTAINERS: Add ARC target and maintainer.
3498
3499 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3500
3501 * configure.tgt: ARC support for GNU/Linux.
3502 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3503 * arc-linux-tdep.c: New file.
3504 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3505 * arc-tdep.c (arc_write_pc): Use it.
3506
3507 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3508
3509 * arc-tdep.c (arc_check_for_hardware_loop): New.
3510 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3511
3512 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3513
3514 * arc-tdep.h: Include "gdbarch.h".
3515
3516 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3517
3518 * arch/arc.h
3519 (arc_gdbarch_features): New class to stir the selection of target XML.
3520 (arc_create_target_description): Use FEATURES to choose XML target.
3521 (arc_lookup_target_description): Use arc_create_target_description
3522 to create _new_ target descriptions or return the already created
3523 ones if the FEATURES is the same.
3524 * arch/arc.c: Implementation of prototypes described above.
3525 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3526 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3527 * arc-tdep.c (*_feature_name): Make feature names consistent.
3528 (arc_register_feature): A new struct to hold information about
3529 registers of a particular target/feature.
3530 (arc_check_tdesc_feature): Check if XML provides registers in
3531 compliance with ARC_REGISTER_FEATURE structs.
3532 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3533 (determine_*_reg_feature_set): Which feature name to look for.
3534 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3535 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3536 to expected ISA enums to be used in arc_gdbarch_features structs.
3537 * features/Makefile (FEATURE_XMLFILES): Add new files.
3538 * gdb/features/arc/v1-aux.c: New file.
3539 * gdb/features/arc/v1-aux.xml: Likewise.
3540 * gdb/features/arc/v1-core.c: Likewise.
3541 * gdb/features/arc/v1-core.xml: Likewise.
3542 * gdb/features/arc/v2-aux.c: Likewise.
3543 * gdb/features/arc/v2-aux.xml: Likewise.
3544 * gdb/features/arc/v2-core.c: Likewise.
3545 * gdb/features/arc/v2-core.xml: Likewise.
3546 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3547
3548 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3549 Andrew Burgess <andrew.burgess@embecosm.com>
3550
3551 PR m2/26372
3552 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3553 an assert. Remove single element array indexing pattern as the
3554 MULTI_SUBSCRIPT support will handle this case too.
3555
3556 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * value.h (valprint_check_validity): Move declaration from
3559 here...
3560 * valprint.h (valprint_check_validity): ... to here.
3561
3562 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * debug.h: New file.
3565 * debug.c (debug_prefixed_vprintf): New function.
3566 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3567 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3568
3569 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * infrun.h (infrun_debug_printf_1): New function declaration.
3572 (infrun_debug_printf): New macro.
3573 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3574 throughout.
3575 (infrun_debug_printf): New function.
3576 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3577 (handle_jit_event): Likewise.
3578
3579 2020-08-21 Mark Wielaard <mark@klomp.org>
3580
3581 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3582
3583 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3584
3585 * frame.c (enum class frame_id_status): New.
3586 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3587 (fprintf_frame): Update.
3588 (compute_frame_id): Set frame id status to "computing" on entry.
3589 Set it back to "not_computed" on failure and to "computed" on
3590 success.
3591 (get_frame_id): Assert the frame id is not being computed.
3592 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3593 (create_new_frame): Likewise.
3594 (frame_cleanup_after_sniffer): Update assert.
3595
3596 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * regcache.c (pid_ptid_regcache_map): New type.
3599 (target_ptid_regcache_map): Remove.
3600 (target_pid_ptid_regcache_map): New type.
3601 (regcaches): Change type to target_pid_ptid_regcache_map.
3602 (get_thread_arch_aspace_regcache): Update.
3603 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3604 case.
3605 (regcaches_size): Update.
3606 (regcache_count): Update.
3607 (registers_changed_ptid_target_pid_test): New.
3608 (_initialize_regcache): Register new test.
3609
3610 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * regcache.c (regcache_count): New.
3613 (struct regcache_test_data): New.
3614 (regcache_test_data_up): New.
3615 (populate_regcaches_for_test): New.
3616 (regcaches_test): Remove.
3617 (get_thread_arch_aspace_regcache_test): New.
3618 (registers_changed_ptid_all_test): New.
3619 (registers_changed_ptid_target_test): New.
3620 (registers_changed_ptid_target_ptid_test): New.
3621 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3622 (_initialize_regcache): Register new tests.
3623
3624 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3625
3626 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3627 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3628 gdbarch and aspace parameter. Use current inferior's aspace.
3629 Validate regcache's arch value.
3630 (regcaches_test): Update.
3631
3632 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * regcache.c (regcaches_test): Call registers_changed.
3635
3636 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3637
3638 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3639
3640 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3641
3642 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3643 to find the end of prologue for flang compiled binaries.
3644 * arm-tdep.c (arm_skip_prologue): Likewise.
3645 * i386-tdep.c (i386_skip_prologue): Likewise.
3646 * producer.c (producer_is_llvm): New function.
3647 (producer_parsing_tests): Added new tests for clang/flang.
3648 * producer.h (producer_is_llvm): New declaration.
3649
3650 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3651
3652 * linux-nat.c (linux_nat_debug_printf): New function.
3653 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3654
3655 2020-08-18 Aaron Merey <amerey@redhat.com>
3656
3657 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3658 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3659 (CLIBS): Add DEBUGINFOD_LIBS.
3660
3661 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3662
3663 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3664 'gdbarch_num_regs'.
3665
3666 2020-08-17 Tom Tromey <tromey@adacore.com>
3667
3668 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3669 ada_get_decoded_value returns NULL.
3670
3671 2020-08-17 Tom Tromey <tromey@adacore.com>
3672
3673 * python/py-inferior.c (infpy_search_memory): Use
3674 gdb_py_object_from_ulongest.
3675 * python/py-infevents.c (create_inferior_call_event_object)
3676 (create_memory_changed_event_object): Use
3677 gdb_py_object_from_ulongest.
3678 * python/py-linetable.c (ltpy_entry_get_pc): Use
3679 gdb_py_object_from_ulongest.
3680
3681 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3682
3683 * loc.c (class symbol_needs_eval_context): Fix indentation.
3684
3685 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3688 bool.
3689
3690 2020-08-17 Tom de Vries <tdevries@suse.de>
3691
3692 PR gdb/26393
3693 * gdbtypes.c (dump_dynamic_prop): New function.
3694 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3695
3696 2020-08-15 Tom de Vries <tdevries@suse.de>
3697
3698 PR backtrace/26390
3699 * stack.c (print_frame_args): Temporarily set the selected
3700 frame to FRAME while printing the frame's arguments.
3701
3702 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3703
3704 PR breakpoints/26385
3705 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3706 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3707
3708 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3709
3710 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3711 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3712 and >= to check return value instead of == -1 and != -1.
3713
3714 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3715
3716 * utils.h (class gdb_argv) <as_array_view>: New method.
3717 * utils.c (gdb_argv_as_array_view_test): New.
3718 (_initialize_utils): Register selftest.
3719 * maint.c (maintenance_selftest): Use the new method.
3720
3721 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3722
3723 * target.h (supports_dumpcore, dumpcore): New
3724 function declarations.
3725 * target.c (supports_dumpcore, dumpcore): New
3726 functions.
3727 * target-delegates.c: Rebuild.
3728 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3729 and target_dumpcore ().
3730
3731 2020-08-13 Aaron Merey <amerey@redhat.com>
3732
3733 * debuginfod-support.c: Replace global variables with user_data.
3734
3735 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3736
3737 * maint.c (maintenance_selftest): Split args and pass array_view
3738 to run_tests.
3739
3740 2020-08-12 Luis Machado <luis.machado@linaro.org>
3741
3742 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3743 type's length.
3744 Use %s and pulongest to print the length.
3745
3746 2020-08-12 Pedro Alves <palves@redhat.com>
3747
3748 * NEWS: Move "Multi-target debugging support" item to the
3749 "Changes since GDB 9" section.
3750
3751 2020-08-12 Pedro Alves <palves@redhat.com>
3752
3753 PR gdb/26336
3754 * progspace.c (program_space::remove_objfile): Invalidate the
3755 frame cache.
3756
3757 2020-08-11 Tom de Vries <tdevries@suse.de>
3758
3759 * MAINTAINERS: Mark ms1 as deleted.
3760
3761 2020-08-10 Luis Machado <luis.machado@linaro.org>
3762
3763 PR gdb/26310
3764
3765 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3766 act accordingly.
3767 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3768 movz/str/stur/stp skipping behavior.
3769
3770 2020-08-10 Luis Machado <luis.machado@linaro.org>
3771
3772 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3773 struct user_sve_header instead of struct sve_context.
3774
3775 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * read.h (dwarf2_fetch_die_loc_sect_off,
3778 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3779 `void *` parameter with function_view.
3780 * read.c (dwarf2_fetch_die_loc_sect_off,
3781 dwarf2_fetch_die_loc_cu_off): Likewise.
3782 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3783 (per_cu_dwarf_call): Adjust.
3784 (get_frame_address_in_block_wrapper): Remove.
3785 (indirect_synthetic_pointer): Adjust.
3786 (get_ax_pc): Remove.
3787 (dwarf2_compile_expr_to_ax): Adjust.
3788
3789 2020-08-08 Tom de Vries <tdevries@suse.de>
3790
3791 PR build/26344
3792 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3793 constructor.
3794 * regcache.c (get_thread_arch_aspace_regcache): Same.
3795
3796 2020-08-07 Tom Tromey <tromey@adacore.com>
3797
3798 * ravenscar-thread.c
3799 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3800 New method.
3801 (ravenscar_thread_target::wait): Check
3802 runtime_initialized.
3803 (ravenscar_thread_target::prepare_to_store)
3804 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3805 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3806 (ravenscar_thread_target::stopped_by_watchpoint)
3807 (ravenscar_thread_target::stopped_data_address)
3808 (ravenscar_thread_target::core_of_thread): Use
3809 scoped_restore_current_thread and
3810 set_base_thread_from_ravenscar_task.
3811
3812 2020-08-07 Tom Tromey <tromey@adacore.com>
3813
3814 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3815
3816 2020-08-07 Tom Tromey <tromey@adacore.com>
3817
3818 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3819 update_inferior_ptid before update_thread_list.
3820 (temporarily_change_regcache_ptid): New class.
3821 (ravenscar_thread_target::fetch_registers)
3822 (ravenscar_thread_target::store_registers)
3823 (ravenscar_thread_target::prepare_to_store): Use base thread when
3824 forwarding operation.
3825
3826 2020-08-07 Tom Tromey <tromey@adacore.com>
3827
3828 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3829 "is_pid" case.
3830
3831 2020-08-07 Tom Tromey <tromey@adacore.com>
3832
3833 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3834 New methods.
3835 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3836 first.
3837 (ravenscar_thread_target::add_thread): Rename from
3838 ravenscar_add_thread.
3839 (ravenscar_thread_target::update_thread_list): Use a lambda.
3840 (ravenscar_thread_target::xfer_partial): New method.
3841
3842 2020-08-07 Tom Tromey <tromey@adacore.com>
3843
3844 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3845 gdb::function_view.
3846 (iterate_over_live_ada_tasks): Change type of argument.
3847 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3848 of argument.
3849
3850 2020-08-07 Tom Tromey <tromey@adacore.com>
3851
3852 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3853 Remove.
3854 (ravenscar_thread_target::extra_thread_info): Remove.
3855 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3856 defer to target beneath for non-Ravenscar threads.
3857
3858 2020-08-07 Tom Tromey <tromey@adacore.com>
3859
3860 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3861 get_base_thread_from_ravenscar_task>: Now methods.
3862 <m_cpu_map>: New member.
3863 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3864 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3865 (ravenscar_thread_target::task_is_currently_active): Update.
3866 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3867 Now a method.
3868 (ravenscar_thread_target::add_active_thread): Put initial thread
3869 into the m_cpu_map.
3870
3871 2020-08-07 Tom Tromey <tromey@adacore.com>
3872
3873 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3874 event_ptid.
3875
3876 2020-08-07 Tom Tromey <tromey@adacore.com>
3877
3878 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3879 runtime_initialized.
3880
3881 2020-08-07 Tom Tromey <tromey@adacore.com>
3882
3883 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3884 add_active_thread.
3885 (ravenscar_thread_target::add_active_thread): Now public.
3886 (ravenscar_inferior_created): Call add_active_thread after pushing
3887 the target.
3888
3889 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * regcache.c (ptid_regcache_map): New type.
3892 (target_ptid_regcache_map): New type.
3893 (regcaches): Change type to target_ptid_regcache_map.
3894 (get_thread_arch_aspace_regcache): Update to regcaches' new
3895 type.
3896 (regcache_thread_ptid_changed): Likewise.
3897 (registers_changed_ptid): Likewise.
3898 (regcaches_size): Likewise.
3899 (regcaches_test): Update.
3900 (regcache_thread_ptid_changed): Update.
3901 * regcache.h (regcache_up): New type.
3902 * gdbsupport/ptid.h (hash_ptid): New struct.
3903
3904 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3905
3906 * observable.h (thread_ptid_changed): Add parameter
3907 `process_stratum_target *`.
3908 * infrun.c (infrun_thread_ptid_changed): Add parameter
3909 `process_stratum_target *` and use it.
3910 (selftests): New namespace.
3911 (infrun_thread_ptid_changed): New function.
3912 (_initialize_infrun): Register selftest.
3913 * regcache.c (regcache_thread_ptid_changed): Add parameter
3914 `process_stratum_target *` and use it.
3915 (regcache_thread_ptid_changed): New function.
3916 (_initialize_regcache): Register selftest.
3917 * thread.c (thread_change_ptid): Pass target to
3918 thread_ptid_changed observable.
3919
3920 2020-08-06 Caroline Tice <cmtice@google.com>
3921
3922 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3923 (struct dwp_sections): Update field comments. Add loclists and
3924 rnglists fields.
3925 (struct virtual_v2_dwo_sections): Rename struct to
3926 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3927 size & offset fields for loclists and rnglists.
3928 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3929 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3930 skipping dummy type units.
3931 (create_dwp_hash_table): Update the large comment above the function to
3932 discuss Version 5 DWP files as well, with references. Update all the
3933 version checks in the function to check for version 5 as well. Add new
3934 section at the end to create dwp hash table for version 5.
3935 (create_dwp_v2_section): Rename function to
3936 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3937 Add V5 to error message text.
3938 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3939 into calls to create_dwp_v2_or_v5_section.
3940 (create_dwo_unit_in_dwp_v5): New function.
3941 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3942 check for version2; add else clause to handle version 5.
3943 (open_and_init_dwo_file): Add code to check dwarf version & only call
3944 create_debug_types_hash_table (with sections.types) if version is not 5;
3945 else call create_debug_type_hash_table, with sections.info.
3946 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3947 version 5.
3948 (dwarf2_locate_v5_dwp_sections): New function.
3949 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3950 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3951
3952 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3953
3954 * regcache.h (class regcache): Remove friend
3955 registers_changed_ptid.
3956 <regcache_thread_ptid_changed>: Remove.
3957 <regcaches>: Remove.
3958 * regcache.c (regcache::regcaches): Rename to...
3959 (regcaches): ... this. Make static.
3960 (get_thread_arch_aspace_regcache): Update.
3961 (regcache::regcache_thread_ptid_changed): Rename to...
3962 (regcache_thread_ptid_changed): ... this. Update.
3963 (class regcache_access): Remove.
3964 (regcaches_test): Update.
3965 (_initialize_regcache): Update.
3966 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3967 <forward_list>.
3968
3969 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3970
3971 * regcache.h (class regcache) <current_regcache>: Rename to...
3972 <regcaches>: ... this. Move doc here.
3973 * regcache.c (regcache::current_regcache) Rename to...
3974 (regcache::regcaches): ... this. Move doc to header.
3975 (get_thread_arch_aspace_regcache): Update.
3976 (regcache::regcache_thread_ptid_changed): Update.
3977 (registers_changed_ptid): Update.
3978 (class regcache_access) <current_regcache_size>: Rename to...
3979 <regcaches_size>: ... this.
3980 (current_regcache_test): Rename to...
3981 (regcaches_test): ... this.
3982 (_initialize_regcache): Update.
3983
3984 2020-08-06 Victor Collod <vcollod@nvidia.com>
3985
3986 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3987
3988 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3989
3990 * corelow.c (core_target::build_file_mappings): Don't output
3991 null pathname in warning.
3992
3993 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3994
3995 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3996 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3997 gdb.dwarf2/dw2-single-line-discriminators.exp,
3998 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3999
4000 2020-08-05 Tom Tromey <tromey@adacore.com>
4001
4002 PR rust/26197:
4003 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
4004 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
4005 Fix off-by-one and type size errors in ordinary case.
4006
4007 2020-08-05 Tom de Vries <tdevries@suse.de>
4008
4009 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4010 "prop->const_val () == 0" instead of "prop->const_val () != 0".
4011
4012 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4013
4014 * frame.h (frame_id_p): Return bool.
4015 (frame_id_artificial_p): Return bool.
4016 (frame_id_eq): Return bool.
4017 (has_stack_frames): Return bool.
4018 (get_selected_frame): Fix typo in comment.
4019 (get_frame_pc_if_available): Return bool.
4020 (get_frame_address_in_block_if_available): Return bool.
4021 (get_frame_func_if_available): Return bool.
4022 (read_frame_register_unsigned): Return bool.
4023 (get_frame_register_bytes): Return bool.
4024 (safe_frame_unwind_memory): Return bool.
4025 (deprecated_frame_register_read): Return bool.
4026 (frame_unwinder_is): Return bool.
4027 * frame.c (struct frame_info) <prev_arch::p>: Change type to
4028 bool.
4029 <this_id::p>: Likewise.
4030 <prev_p>: Likewise.
4031 (frame_stash_add): Return bool.
4032 (get_frame_id): Use bool.
4033 (frame_id_build_special) Use bool.
4034 (frame_id_build_unavailable_stack): Use bool.
4035 (frame_id_build): Use bool.
4036 (frame_id_p): Return bool, use true/false instead of 1/0.
4037 (frame_id_artificial_p): Likewise.
4038 (frame_id_eq): Likewise.
4039 (frame_id_inner): Likewise.
4040 (get_frame_func_if_available): Likewise.
4041 (read_frame_register_unsigned): Likewise.
4042 (deprecated_frame_register_read): Likewise.
4043 (get_frame_register_bytes): Likewise.
4044 (has_stack_frames): Likewise.
4045 (inside_main_func): Likewise.
4046 (inside_entry_func): Likewise.
4047 (get_frame_pc_if_available): Likewise.
4048 (get_frame_address_in_block_if_available): Likewise.
4049 (frame_unwinder_is): Likewise.
4050 (safe_frame_unwind_memory): Likewise.
4051 (frame_unwind_arch): Likewise.
4052
4053 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4056 type to cached_copy_status.
4057 (fprintf_frame): Adjust.
4058 (get_frame_func_if_available): Adjust.
4059 (frame_cleanup_after_sniffer): Adjust.
4060
4061 2020-08-04 Mark Wielaard <mark@klomp.org>
4062
4063 * MAINTAINERS (Write After Approval): Update email address.
4064
4065 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4066
4067 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4068 dynamic_prop::const_val.
4069
4070 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4071
4072 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4073 dynamic_prop::kind.
4074
4075 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4076
4077 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4078
4079 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4080
4081 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4082
4083 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
4084 Jose E. Marchesi <jose.marchesi@oracle.com>
4085
4086 * configure.tgt: Add entry for bpf-*-*.
4087 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4088 (ALLDEPFILES): Add bpf-tdep.c.
4089 * bpf-tdep.c: New file.
4090 * MAINTAINERS: Add bpf target and maintainer.
4091 * NEWS: Mention the support for the new target.
4092
4093 2020-08-04 Tom de Vries <tdevries@suse.de>
4094
4095 PR symtab/23270
4096 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4097 Error.
4098
4099 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4100
4101 * syscalls/freebsd.xml: Regenerate.
4102
4103 2020-08-03 John Baldwin <jhb@FreeBSD.org>
4104
4105 * syscalls/update-freebsd.sh: Fix usage and year range.
4106
4107 2020-08-03 Tom de Vries <tdevries@suse.de>
4108
4109 PR symtab/26333
4110 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4111 DW_LNE_lo_user/DW_LNE_hi_user range.
4112
4113 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 PR ada/26318
4116 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4117 kind.
4118
4119 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120
4121 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4122
4123 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4124
4125 * breakpoint.c (set_breakpoint_condition): Update the condition
4126 expressions after checking that the input condition string parses
4127 successfully and does not contain junk at the end.
4128
4129 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4130
4131 * breakpoint.c (set_breakpoint_condition): Update the
4132 condition string after parsing the new condition successfully.
4133
4134 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4135
4136 * proc-api.c (_STRUCTURED_PROC): Don't define.
4137 * proc-events.c: Likewise.
4138 * proc-flags.c: Likewise.
4139 * proc-why.c: Likewise.
4140 * procfs.c: Likewise.
4141
4142 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4143 * configure, config.in: Regenerate.
4144
4145 2020-07-30 Tom de Vries <tdevries@suse.de>
4146
4147 PR build/26320
4148 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4149 m_red/m_green/m_blue in a union.
4150
4151 2020-07-29 Tom de Vries <tdevries@suse.de>
4152
4153 PR tdep/26280
4154 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4155
4156 2020-07-28 Tom Tromey <tromey@adacore.com>
4157
4158 PR symtab/26270:
4159 * symtab.h (find_pc_partial_function_sym): Declare.
4160 * cli/cli-cmds.c (disassemble_command): Use
4161 find_pc_partial_function_sym. Check asm_demangle.
4162 * blockframe.c (cache_pc_function_sym): New global.
4163 (cache_pc_function_name): Remove.
4164 (clear_pc_function_cache): Update.
4165 (find_pc_partial_function_sym): New function, from
4166 find_pc_partial_function.
4167 (find_pc_partial_function): Rewrite using
4168 find_pc_partial_function_sym.
4169
4170 2020-07-28 Tom Tromey <tromey@adacore.com>
4171
4172 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4173 help. Add usage.
4174
4175 2020-07-28 Tom Tromey <tromey@adacore.com>
4176
4177 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4178 <DW_OP_GNU_variable_value>: Cast to address type.
4179
4180 2020-07-28 Kamil Rytarowski <n54@gmx.com>
4181
4182 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4183 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4184 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4185 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4186 (nbsd_get_siginfo_type): New.
4187 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4188 (_initialize_nbsd_tdep): New.
4189
4190 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4191
4192 PR binutils/26301
4193 * configure: Regenerated.
4194
4195 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4196
4197 PR binutils/26301
4198 * configure: Regenerated.
4199
4200 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * python/py-frame.c: Remove 'user-regs.h' include.
4203 (frapy_read_register): Rewrite to make use of
4204 gdbpy_parse_register_id.
4205 * python/py-registers.c (gdbpy_parse_register_id): New function,
4206 moved here from python/py-unwind.c. Updated the return type, and
4207 also accepts register descriptor objects.
4208 * python/py-unwind.c: Remove 'user-regs.h' include.
4209 (pyuw_parse_register_id): Moved to python/py-registers.c.
4210 (unwind_infopy_add_saved_register): Update to use
4211 gdbpy_parse_register_id.
4212 (pending_framepy_read_register): Likewise.
4213 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4214
4215 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * python/py-registers.c: Add 'user-regs.h' include.
4218 (register_descriptor_iter_find): New function.
4219 (register_descriptor_iterator_object_methods): New static global
4220 methods array.
4221 (register_descriptor_iterator_object_type): Add pointer to methods
4222 array.
4223
4224 2020-07-27 John Baldwin <jhb@FreeBSD.org>
4225
4226 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4227 for all architectures on FreeBSD 11.3 and later.
4228
4229 2020-07-27 Tom Tromey <tromey@adacore.com>
4230
4231 * gcore.h (load_corefile): Don't declare.
4232
4233 2020-07-27 Tom de Vries <tdevries@suse.de>
4234
4235 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4236 * config.in: Regenerate.
4237 * configure: Regenerate.
4238
4239 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4240
4241 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4242 ws2tcpip.h. When checking whether socklen_t type is defined, use
4243 ws2tcpip.h if it is available and sys/socket.h isn't.
4244 * configure: Regenerate.
4245 * config.in: Regenerate.
4246
4247 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 PR fortran/23051
4250 PR fortran/26139
4251 * valops.c (value_ind): Pass address to
4252 readjust_indirect_value_type.
4253 * value.c (readjust_indirect_value_type): Make parameter
4254 non-const, and add extra address parameter. Resolve original type
4255 before using it.
4256 * value.h (readjust_indirect_value_type): Update function
4257 signature and comment.
4258
4259 2020-07-25 Tom de Vries <tdevries@suse.de>
4260
4261 PR symtab/26243
4262 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4263 entries.
4264
4265 2020-07-24 Aaron Merey <amerey@redhat.com>
4266
4267 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4268 * configure: Rebuild.
4269
4270 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4271
4272 PR corefiles/26294
4273 * corelow.c (_initialize_corelow): Add period to help text
4274 for "maintenance print core-file-backed-mappings".
4275
4276 2020-07-23 Pedro Alves <pedro@palves.net>
4277
4278 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4279 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4280 meanwhile.
4281 * frame.c (frame_cache_generation, get_frame_cache_generation):
4282 New.
4283 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4284 (get_prev_frame_if_no_cycle): On exception, don't touch
4285 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4286 * frame.h (get_frame_cache_generation): Declare.
4287
4288 2020-07-23 Tom de Vries <tdevries@suse.de>
4289
4290 PR tui/26282
4291 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4292 New default constructor.
4293
4294 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4297 exclude non-statement entries.
4298
4299 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4300
4301 * NEWS (New commands): Mention new command
4302 "maintenance print core-file-backed-mappings".
4303
4304 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4305
4306 * corelow.c (gdbcmd.h): Include.
4307 (core_target::info_proc_mappings): New method.
4308 (get_current_core_target): New function.
4309 (maintenance_print_core_file_backed_mappings): New function.
4310 (_initialize_corelow): Add core-file-backed-mappings to
4311 "maint print" commands.
4312
4313 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4314
4315 * linux-tdep.c (dump_note_entry_p): New function.
4316 (linux_dump_mapping_p_ftype): New typedef.
4317 (linux_find_memory_regions_full): Add new parameter,
4318 should_dump_mapping_p.
4319 (linux_find_memory_regions): Adjust call to
4320 linux_find_memory_regions_full.
4321 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4322 call to linux_find_memory_regions_full.
4323
4324 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4325
4326 * corelow.c (solist.h, unordered_map): Include.
4327 (class core_target): Add field m_core_file_mappings and
4328 method build_file_mappings.
4329 (core_target::core_target): Call build_file_mappings.
4330 (core_target::~core_target): Free memory associated with
4331 m_core_file_mappings.
4332 (core_target::build_file_mappings): New method.
4333 (core_target::xfer_partial): Use m_core_file_mappings
4334 for memory transfers.
4335 * linux-tdep.c (linux_read_core_file_mappings): New
4336 function.
4337 (linux_core_info_proc_mappings): Rewrite to use
4338 linux_read_core_file_mappings.
4339 (linux_init_abi): Register linux_read_core_file_mappings.
4340
4341 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4342
4343 * arch-utils.c (default_read_core_file_mappings): New function.
4344 * arch-utils.c (default_read_core_file_mappings): Declare.
4345 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4346 * gdbarch.h, gdbarch.c: Regenerate.
4347
4348 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4349
4350 PR corefiles/25631
4351 * corelow.c (core_target:xfer_partial): Revise
4352 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4353 case after first checking the stratum beneath the core
4354 target.
4355 (has_all_memory): Return true.
4356 * target.c (raw_memory_xfer_partial): Revise comment
4357 regarding use of has_all_memory.
4358
4359 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4360
4361 * exec.h (section_table_xfer_memory): Revise declaration,
4362 replacing section name parameter with an optional callback
4363 predicate.
4364 * exec.c (section_table_xfer_memory): Likewise.
4365 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4366 of section_table_xfer_memory.
4367
4368 2020-07-22 Tom Tromey <tromey@adacore.com>
4369
4370 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4371 lookup_symbol_search_name.
4372
4373 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4374
4375 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4376 redundant local variable.
4377 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4378 reference, not pointer, update code accordingly.
4379
4380 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4381 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4382
4383 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4384 * jit.c (jit_breakpoint_re_set_internal): Use the
4385 `skip_jit_symbol_lookup` field.
4386
4387 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4388 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4389
4390 * jit.c (jit_read_descriptor): Define the descriptor address once,
4391 use twice.
4392 (jit_breakpoint_deleted): Move the declaration of the loop variable
4393 `iter` into the loop header.
4394 (jit_breakpoint_re_set_internal): Move the declaration of the local
4395 variable `objf_data` to the first point of definition.
4396 (jit_event_handler): Move the declaration of local variables
4397 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4398 Rename `objf` to `jited`.
4399
4400 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4401
4402 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4403 Remove.
4404 * jit.c (get_jiter_objfile_data): Update.
4405
4406 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4407 Simon Marchi <simon.marchi@polymtl.ca>
4408
4409 * jit.c (struct jit_program_space_data): Remove.
4410 (jit_program_space_key): Remove.
4411 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4412 stuff.
4413 (get_jit_program_space_data): Remove.
4414 (jit_breakpoint_deleted): Iterate on all of the program space's
4415 objfiles.
4416 (jit_inferior_init): Likewise.
4417 (jit_breakpoint_re_set_internal): Likewise. Also change return
4418 type to void.
4419 (jit_breakpoint_re_set): Pass current_program_space to
4420 jit_breakpoint_re_set_internal.
4421
4422 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4423
4424 * jit.h (struct jiter_objfile_data) <cached_code_address,
4425 jit_breakpoint>: Move to here from ...
4426 * jit.c (jit_program_space_data): ... here.
4427 (jiter_objfile_data::~jiter_objfile_data): Update.
4428 (jit_breakpoint_deleted): Update.
4429 (jit_breakpoint_re_set_internal): Update.
4430
4431 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4432
4433 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4434 checks.
4435 (jit_read_descriptor): Remove NULL check.
4436 (jit_event_handler): Add an assertion.
4437
4438 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4439
4440 * jit.h (struct jit_objfile_data): Split into...
4441 (struct jiter_objfile_data): ... this ...
4442 (struct jited_objfile_data): ... and this.
4443 * objfiles.h (struct objfile) <jit_data>: Remove.
4444 <jiter_data, jited_data>: New fields.
4445 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4446 (jiter_objfile_data::~jiter_objfile_data): ... this.
4447 (get_jit_objfile_data): Rename to ...
4448 (get_jiter_objfile_data): ... this.
4449 (add_objfile_entry): Update.
4450 (jit_read_descriptor): Use get_jiter_objfile_data.
4451 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4452 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4453 (jit_inferior_exit_hook): Use objfile's jited_data field.
4454
4455 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4456
4457 * jit.h: Forward-declare `struct minimal_symbol`.
4458 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4459 constructor, destructor, and an objfile* field.
4460 * jit.c (jit_objfile_data): Remove.
4461 (struct jit_objfile_data): Migrate from here to jit.h.
4462 (jit_objfile_data::~jit_objfile_data): New destructor
4463 implementation with code moved from free_objfile_data.
4464 (free_objfile_data): Delete.
4465 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4466 (jit_find_objf_with_entry_addr): Ditto.
4467 (jit_inferior_exit_hook): Ditto.
4468 (_initialize_jit): Remove the call to
4469 register_objfile_data_with_cleanup.
4470 * objfiles.h (struct objfile) <jit_data>: New field.
4471
4472 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4473
4474 * jit.h: Forward-declare `struct objfile`.
4475 (jit_event_handler): Add a second parameter, the JITer objfile.
4476 * jit.c (jit_read_descriptor): Change the signature to take the
4477 JITer objfile as an argument instead of the jit_program_space_data.
4478 (jit_inferior_init): Update the call to jit_read_descriptor.
4479 (jit_event_handler): Use the new JITer objfile argument when calling
4480 jit_read_descriptor.
4481 * breakpoint.c (handle_jit_event): Update the call to
4482 jit_event_handler to pass the JITer objfile.
4483
4484 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4485
4486 * gdbarch.c: Regenerate.
4487 * gdbarch.h: Regenerate.
4488 * gdbarch.sh (handle_segmentation_fault): Remove method.
4489 * infrun.c (handle_segmentation_fault): Remove.
4490 (print_signal_received_reason): Remove call to
4491 handle_segmentation_fault.
4492
4493 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4494
4495 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4496 Rename to sparc64_linux_report_signal_info and add siggnal
4497 argument.
4498 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4499 instead of sparc64_linux_handle_segmentation_fault.
4500
4501 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4502
4503 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4504 i386_linux_report_signal_info instead of
4505 i386_linux_handle_segmentation_fault.
4506 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4507 to i386_linux_report_signal_info and add siggnal argument.
4508 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4509 of i386_linux_handle_segmentation_fault.
4510 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4511 to i386_linux_report_signal_info and add siggnal argument.
4512
4513 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4514
4515 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4516 hook if present.
4517
4518 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4519
4520 * gdbarch.c: Regenerate.
4521 * gdbarch.h: Regenerate.
4522 * gdbarch.sh (report_signal_info): New method.
4523 * infrun.c (print_signal_received_reason): Invoke gdbarch
4524 report_signal_info hook if present.
4525
4526 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * python/py-registers.c : Add 'unordered_map' include.
4529 (gdbpy_new_reggroup): Renamed to...
4530 (gdbpy_get_reggroup): ...this. Update to only create register
4531 group descriptors when needed.
4532 (gdbpy_reggroup_iter_next): Update.
4533
4534 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 * python/py-registers.c (gdbpy_register_object_data): New static
4537 global.
4538 (gdbpy_register_object_data_init): New function.
4539 (gdbpy_new_register_descriptor): Renamed to...
4540 (gdbpy_get_register_descriptor): ...this, and update to reuse
4541 existing register descriptors where possible.
4542 (gdbpy_register_descriptor_iter_next): Update.
4543 (gdbpy_initialize_registers): Register new gdbarch data.
4544
4545 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * linux-nat.c (stopped_pids): Make static.
4548
4549 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4550
4551 PR ada/26235
4552 * gdbtypes.c (ada_discrete_type_low_bound,
4553 ada_discrete_type_high_bound): Handle undefined bounds.
4554
4555 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4556
4557 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4558 declaration.
4559 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4560 function.
4561
4562 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4563
4564 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4565 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4566 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4567 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4568 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4569 method.
4570
4571 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4572
4573 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4574 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4575 which are deprecated in Guile 3.0.
4576 * configure.ac (try_guile_versions): Add "guile-3.0".
4577 * configure (try_guile_versions): Regenerate.
4578 * NEWS: Update entry.
4579
4580 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4581 Doug Evans <dje@google.com>
4582
4583 PR gdb/21104
4584 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4585 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4586 USING_GUILE_BEFORE_2_2.
4587 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4588 Change type to 'scm_t_port_type *'.
4589 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4590 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4591 parameter and honor it. Update callers.
4592 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4593 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4594 functions.
4595 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4596 USING_GUILE_BEFORE_2_2.
4597 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4598 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4599 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4600 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4601 and 'SCM_PORT_TYPE'.
4602 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4603 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4604 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4605 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4606 [!USING_GUILE_BEFORE_2_2]: New functions.
4607 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4608 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4609 'gdbscm_memory_port_read'.
4610 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4611 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4612 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4613 function.
4614 (ioscm_init_memory_port): Remove.
4615 (ioscm_init_memory_port_stream): New function
4616 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4617 function.
4618 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4619 Return scm_from_uint (0).
4620 (gdbscm_set_memory_port_read_buffer_size_x)
4621 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4622 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4623 Return scm_from_uint (0).
4624 (gdbscm_set_memory_port_write_buffer_size_x)
4625 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4626 * configure.ac (try_guile_versions): Add "guile-2.2".
4627 * configure: Regenerate.
4628 * NEWS: Add entry.
4629
4630 2020-07-18 Tom Tromey <tom@tromey.com>
4631
4632 * linux-nat.c (linux_multi_process): Remove.
4633 (linux_nat_target::supports_multi_process): Return true.
4634
4635 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4638 (riscv_lookup_target_description): Return pointer out of
4639 unique_ptr.
4640 * target-descriptions.c (allocate_target_description): Add
4641 comment.
4642 (target_desc_deleter::operator()): Likewise.
4643 * target-descriptions.h (struct target_desc_deleter): Moved to
4644 gdbsupport/tdesc.h.
4645 (target_desc_up): Likewise.
4646
4647 2020-07-17 Tom Tromey <tromey@adacore.com>
4648
4649 * linux-nat.c (linux_nat_target::supports_non_stop)
4650 (linux_nat_target::always_non_stop_p): Use "true".
4651 (linux_nat_target::supports_disable_randomization): Use "true" and
4652 "false".
4653
4654 2020-07-16 Caroline Tice <cmtice@google.com>
4655
4656 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4657 (RNGLIST_HEADER_SIZE64): New constant definition.
4658 (struct dwop_section_names): Add rnglists_dwo.
4659 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4660 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4661 (struct dwo_sections): Add rnglists field.
4662 (read_attribut_reprocess): Add tag parameter.
4663 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4664 (cu_debug_rnglists_section): New function (decl & definition).
4665 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4666 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4667 die whose range is being checked; get rnglist section from
4668 cu_debug_rnglists_section, to get from either objfile or dwo file as
4669 appropriate. Add cases for DW_RLE_base_addressx,
4670 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4671 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4672 test inside if-condition and updating complaint message.
4673 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4674 dwarf2_rnglists_process.
4675 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4676 dwarf2_ranges_process.
4677 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4678 need_ranges_base and update comment appropriately. Also pass die tag
4679 to dwarf2_ranges_read.
4680 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4681 need_ranges_base and update comment appropriately. Also pass die tag
4682 to dwarf2_ranges_process.
4683 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4684 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4685 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4686 need_ranges_base and update comment appropriately. Also pass die tag
4687 to read_attribute_reprocess and dwarf2_ranges_read.
4688 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4689 and update function comment appropriately.
4690 (read_loclist_index): Call read_loclists_rnglists_header instead of
4691 read_loclist_header.
4692 (read_rnglist_index): New function.
4693 (read_attribute_reprocess): Add tag parameter. Add code for
4694 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4695 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4696
4697 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4700 being resolved.
4701
4702 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * arch-utils.c (show_architecture): Update formatting of messages.
4705
4706 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * gdbtypes.h (struct type) <bounds>: Handle array and string
4709 types.
4710 * ada-lang.c (assign_aggregate): Use type::bounds on
4711 array/string type.
4712 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4713 * c-varobj.c (c_number_of_children): Likewise.
4714 (c_describe_child): Likewise.
4715 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4716 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4717 (f_type_print_base): Likewise.
4718 * f-valprint.c (f77_array_offset_tbl): Likewise.
4719 (f77_get_upperbound): Likewise.
4720 (f77_print_array_1): Likewise.
4721 * guile/scm-type.c (gdbscm_type_range): Likewise.
4722 * m2-typeprint.c (m2_array): Likewise.
4723 (m2_is_long_set_of_type): Likewise.
4724 * m2-valprint.c (get_long_set_bounds): Likewise.
4725 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4726 * python/py-type.c (typy_range): Likewise.
4727 * rust-lang.c (rust_internal_print_type): Likewise.
4728 * type-stack.c (type_stack::follow_types): Likewise.
4729 * valarith.c (value_subscripted_rvalue): Likewise.
4730 * valops.c (value_cast): Likewise.
4731
4732 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4735 callers to use the equivalent accessor methods.
4736
4737 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4740 (struct type) <bit_stride>: New method.
4741 (TYPE_BIT_STRIDE): Remove.
4742 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4743
4744 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4747 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4748 callers to use the equivalent accessor methods instead.
4749
4750 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4751
4752 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4753 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4754 callers to use the equivalent accessor methods instead.
4755
4756 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4759 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4760 to use dynamic_prop::kind.
4761
4762 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4765 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4766 to get the bound property's kind and check against
4767 PROP_UNDEFINED.
4768
4769 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4772 all callers to use type::range_bounds followed by
4773 dynamic_prop::{low,high}.
4774
4775 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4776
4777 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4778 const_val, set_const_val, baton, set_locexpr, set_loclist,
4779 set_addr_offset, variant_parts, set_variant_parts,
4780 original_type, set_original_type>: New methods.
4781 <kind>: Rename to...
4782 <m_kind>: ... this. Update all users to use the new methods
4783 instead.
4784 <data>: Rename to...
4785 <m_data>: ... this. Update all users to use the new methods
4786 instead.
4787
4788 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * gdbtypes.c (get_discrete_bounds): Return failure if
4791 the range type's bounds are not both defined and constant
4792 values.
4793 (get_array_bounds): Update comment. Remove undefined bound check.
4794
4795 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4796
4797 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4798 the type::bounds method directly.
4799
4800 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4803 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4804 are used to set the range type's bounds to use set_bounds.
4805
4806 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4807
4808 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4809
4810 2020-07-10 Pedro Alves <pedro@palves.net>
4811
4812 * gdbthread.h (inferior_ref): Define.
4813 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4814 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4815 * thread.c
4816 (scoped_restore_current_thread::restore):
4817 Adjust to gdb::ref_ptr.
4818 (scoped_restore_current_thread::~scoped_restore_current_thread):
4819 Remove manual decref handling.
4820 (scoped_restore_current_thread::scoped_restore_current_thread):
4821 Adjust to use
4822 inferior_ref::new_reference/thread_info_ref::new_reference.
4823 Incref the thread before calling get_frame_id instead of after.
4824 Let TARGET_CLOSE_ERROR propagate.
4825
4826 2020-07-10 Pedro Alves <pedro@palves.net>
4827
4828 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4829 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4830 NOT_AVAILABLE_ERROR.
4831 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4832 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4833
4834 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4835 Pedro Alves <pedro@palves.net>
4836
4837 PR gdb/26199
4838 * infrun.c (threads_are_resumed_pending_p): Delete.
4839 (do_target_wait): Remove threads_are_executing and
4840 threads_are_resumed_pending_p checks from the inferior_matches
4841 lambda. Update comments.
4842
4843 2020-07-10 Pedro Alves <pedro@palves.net>
4844
4845 PR gdb/26199
4846 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4847 executing threads.
4848
4849 2020-07-10 Pedro Alves <pedro@palves.net>
4850
4851 PR gdb/26199
4852 * infrun.c (handle_no_resumed): Handle multiple targets.
4853
4854 2020-07-10 Pedro Alves <pedro@palves.net>
4855
4856 PR gdb/26199
4857 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4858 target_is_async_p.
4859
4860 2020-07-10 Pedro Alves <pedro@palves.net>
4861
4862 PR gdb/26199
4863 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4864 threads, not all threads.
4865
4866 2020-07-10 Pedro Alves <pedro@palves.net>
4867
4868 PR gdb/26199
4869 * remote.c (remote_target::open_1): Pass remote target pointer as
4870 data to create_async_event_handler.
4871 (remote_async_inferior_event_handler): Mark async event handler
4872 before returning if the remote target still has either pending
4873 events or unacknowledged notifications.
4874
4875 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4876
4877 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4878 declaration.
4879 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4880 function.
4881
4882 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4883
4884 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4885 inferior_ptid.
4886
4887 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4888
4889 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4890 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4891 AT_FREEBSD_PS_STRINGS.
4892
4893 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4894
4895 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4896 of debugfile path on Windows.
4897
4898 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4899
4900 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4901 argument to 'data'.
4902
4903 2020-07-08 Tom Tromey <tromey@adacore.com>
4904
4905 * ada-lang.c (ada_exception_message_1): Use read_memory.
4906
4907 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4908
4909 PR python/22748
4910 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4911 special handling for inline frames.
4912 * findvar.c (value_of_register_lazy): Skip inline frames when
4913 creating lazy register values.
4914 * frame.c (frame_id_computed_p): Delete definition.
4915 * frame.h (frame_id_computed_p): Delete declaration.
4916
4917 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4918
4919 * NEWS: Mention additions to Python API.
4920 * python/py-arch.c (archpy_register_groups): New function.
4921 (arch_object_methods): Add 'register_groups' method.
4922 * python/py-registers.c (reggroup_iterator_object): New struct.
4923 (reggroup_object): New struct.
4924 (gdbpy_new_reggroup): New function.
4925 (gdbpy_reggroup_to_string): New function.
4926 (gdbpy_reggroup_name): New function.
4927 (gdbpy_reggroup_iter): New function.
4928 (gdbpy_reggroup_iter_next): New function.
4929 (gdbpy_new_reggroup_iterator): New function
4930 (gdbpy_initialize_registers): Register new types.
4931 (reggroup_iterator_object_type): Define new Python type.
4932 (gdbpy_reggroup_getset): New static global.
4933 (reggroup_object_type): Define new Python type.
4934 * python/python-internal.h
4935
4936 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4939 * python/py-arch.c (archpy_registers): New function.
4940 (arch_object_methods): Add 'registers' method.
4941 * python/py-registers.c: New file.
4942 * python/python-internal.h
4943 (gdbpy_new_register_descriptor_iterator): Declare.
4944 (gdbpy_initialize_registers): Declare.
4945 * python/python.c (do_start_initialization): Call
4946 gdbpy_initialize_registers.
4947 * NEWS: Mention additions to the Python API.
4948
4949 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4950
4951 * NEWS: Mention new Python API method.
4952 * python/py-unwind.c (pending_framepy_architecture): New function.
4953 (pending_frame_object_methods): Add architecture method.
4954
4955 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * gdbarch.c: Regenerate.
4958 * gdbarch.h: Regenerate.
4959 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4960 (gdbarch_data): Use internal_error for the case where
4961 deprecated_set_gdbarch_data was originally needed.
4962 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4963 and use passed in obstack.
4964 (libunwind_frame_set_descr): Should no longer get back NULL from
4965 gdbarch_data.
4966 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4967 type.
4968 * user-regs.c (user_regs_init): Update parameters, and use passed
4969 in obstack.
4970 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4971 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4972
4973 2020-07-06 Tom de Vries <tdevries@suse.de>
4974
4975 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4976 End-Of-Sequence in lte_is_less_than.
4977 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4978 "gdb: Don't reorder line table entries too much when sorting".
4979
4980 2020-07-06 Tom de Vries <tdevries@suse.de>
4981
4982 PR tui/26205
4983 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4984
4985 2020-07-05 Tom de Vries <tdevries@suse.de>
4986
4987 PR build/26187
4988 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4989 std::uncaught_exceptions instead of deprecated
4990 std::uncaught_exception.
4991
4992 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * macroexp.h (macro_stringify): Return
4995 gdb::unique_xmalloc_ptr<char>.
4996 * macroexp.c (macro_stringify): Likewise.
4997 * macrotab.c (fixup_definition): Update.
4998
4999 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5000
5001 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
5002 (lex_one_token): Update.
5003 * macroexp.c (struct macro_buffer) <release>: Return
5004 gdb::unique_xmalloc_ptr<char>.
5005 (macro_stringify): Update.
5006 (macro_expand): Update.
5007 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
5008 * macroexp.h (macro_expand_next): Likewise.
5009
5010 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
5011
5012 * macroexp.h (macro_lookup_ftype): Remove.
5013 (macro_expand, macro_expand_once, macro_expand_next): Remove
5014 lookup function parameters, add scope parameter.
5015 * macroexp.c (scan, substitute_args, expand, maybe_expand,
5016 macro_expand, macro_expand_once, macro_expand_next): Likewise.
5017 * macroscope.h (standard_macro_lookup): Change parameter type
5018 to macro_scope.
5019 * macroscope.c (standard_macro_lookup): Likewise.
5020 * c-exp.y (lex_one_token): Update.
5021 * macrocmd.c (macro_expand_command): Likewise.
5022 (macro_expand_once_command): Likewise.
5023
5024 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5025
5026 * inf-loop.c (inferior_event_handler): Remove client_data param.
5027 * inf-loop.h (inferior_event_handler): Likewise.
5028 * infcmd.c (step_1): Adjust.
5029 * infrun.c (proceed): Adjust.
5030 (fetch_inferior_event): Remove client_data param.
5031 (infrun_async_inferior_event_handler): Adjust.
5032 * infrun.h (fetch_inferior_event): Remove `void *` param.
5033 * linux-nat.c (handle_target_event): Adjust.
5034 * record-btrace.c (record_btrace_handle_async_inferior_event):
5035 Adjust.
5036 * record-full.c (record_full_async_inferior_event_handler):
5037 Adjust.
5038 * remote.c (remote_async_inferior_event_handler): Adjust.
5039
5040 2020-07-01 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
5043 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5044
5045 2020-07-01 Tom Tromey <tom@tromey.com>
5046
5047 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5048 tui_gen_win_info.
5049 (tui_win_info::make_window): Merge with
5050 tui_gen_win_info::make_window.
5051 (tui_win_info::make_visible): Move from tui_gen_win_info.
5052 * tui/tui-win.c (tui_win_info::max_width): Move from
5053 tui_gen_win_info.
5054 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5055 type.
5056 <window_factory>: Likewise.
5057 * tui/tui-layout.c (tui_win_info::resize): Move from
5058 tui_gen_win_info.
5059 (make_standard_window): Change return type.
5060 (get_locator_window, tui_get_window_by_name): Likewise.
5061 (tui_layout_window::apply): Remove a cast.
5062 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5063 (struct tui_win_info): Merge with tui_gen_win_info.
5064 (struct tui_gen_win_info): Remove.
5065
5066 2020-07-01 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-stack.h (struct tui_locator_window): Derive from
5069 tui_win_info.
5070 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5071 <can_box>: New method.
5072
5073 2020-07-01 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5076
5077 2020-07-01 Tom Tromey <tom@tromey.com>
5078
5079 * tui/tui-regs.c (tui_data_window::display_registers_from)
5080 (tui_data_window::display_registers_from)
5081 (tui_data_window::first_data_item_displayed)
5082 (tui_data_window::delete_data_content_windows): Update.
5083 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5084 Remove.
5085 (tui_data_window::check_register_values): Update.
5086 (tui_data_item_window::rerender): Add parameters. Update.
5087 (tui_data_item_window::refresh_window): Remove.
5088 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5089 virtual.
5090 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5091 tui_gen_win_info.
5092 <refresh_window, max_height, min_height>: Remove.
5093 <rerender>: Add parameters.
5094 <x, y, visible>: New members.
5095 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5096 <m_item_width>: New member.
5097
5098 2020-07-01 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-regs.c (tui_data_window::show_register_group)
5101 (tui_data_window::check_register_values): Update.
5102 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5103 from item_no.
5104
5105 2020-07-01 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5108 useless "if".
5109
5110 2020-07-01 Tom Tromey <tom@tromey.com>
5111
5112 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5113 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5114
5115 2020-07-01 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5118 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5119 (struct tui_line_or_address): Move from tui-data.h.
5120 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5121 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5122 (tui_cmd_window, tui_source_window_base, tui_source_window)
5123 (tui_disasm_window): Don't declare.
5124 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5125 to tui-winsource.h.
5126 (SINGLE_KEY): Move to tui-stack.c.
5127
5128 2020-07-01 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5131 std::string.
5132 * tui/tui-regs.c (class tab_expansion_file): New.
5133 (tab_expansion_file::write): New method.
5134 (tui_register_format): Change return type. Use
5135 tab_expansion_file.
5136 (tui_get_register, tui_data_window::display_registers_from)
5137 (tui_data_item_window::rerender): Update.
5138 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5139 * tui/tui-io.c (tui_expand_tabs): Remove.
5140
5141 2020-07-01 Tom Tromey <tom@tromey.com>
5142
5143 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5144
5145 2020-07-01 Fangrui Song <maskray@google.com>
5146
5147 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5148
5149 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5150
5151 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5152 forms for DW_AT_associated and DW_AT_allocated attributes,
5153 which is already checked in function attr_to_dynamic_prop.
5154
5155 2020-06-30 Tom Tromey <tromey@adacore.com>
5156
5157 * dwarf2/read.c (quirk_rust_enum): Correctly call
5158 alloc_rust_variant for default-less enum.
5159
5160 2020-06-30 Tom Tromey <tromey@adacore.com>
5161
5162 PR build/26183:
5163 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5164 gdb::to_string.
5165
5166 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5169 * gdbarch.h: Re-generate.
5170
5171 2020-06-28 Tom Tromey <tom@tromey.com>
5172
5173 * command.h (cmd_types): Remove.
5174 (cmd_type): Don't declare.
5175 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5176 typedef.
5177 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5178 * cli/cli-decode.c (cmd_type): Remove.
5179
5180 2020-06-27 Pedro Alves <palves@redhat.com>
5181
5182 * fork-child.c (prefork_hook): Adjust.
5183 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5184 Delete.
5185 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5186 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5187 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5188 Remove declarations.
5189 (struct inferior) <set_tty, tty>: New methods.
5190 (struct inferior) <terminal>: Rename to ...
5191 (struct inferior) <m_terminal>: ... this and make private.
5192 * main.c (captured_main_1): Adjust.
5193 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5194 (mi_cmd_inferior_tty_show): Adjust.
5195 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5196 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5197
5198 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
5199
5200 * configure.ac: Add --enable-libctf: handle --disable-static
5201 properly.
5202 * acinclude.m4: sinclude ../config/enable.m4.
5203 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5204 (LIBCTF): Substitute in.
5205 (CTF_DEPS): New, likewise.
5206 (CLIBS): libctf needs symbols from libbfd: move earlier.
5207 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5208 flags.
5209 * ctfread.c: Surround in ENABLE_LIBCTF.
5210 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5211 * configure: Regenerate.
5212 * config.in: Likewise.
5213
5214 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5217
5218 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * inferior.h (struct inferior) <terminal>: Change type to
5221 gdb::unique_xmalloc_ptr<char>.
5222 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5223 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5224 field, adjust to unique pointer.
5225 (get_inferior_io_terminal): Adjust to unique pointer.
5226
5227 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5230 registers, not just the known core set of registers.
5231
5232 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5233
5234 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5235 fflags, frm, and fcsr registers.
5236 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5237 restore groups.
5238 (riscv_tdesc_unknown_reg): New function.
5239 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5240 tdesc_use_registers.
5241 * riscv-tdep.h (struct gdbarch_tdep): Add
5242 unknown_csrs_first_regnum, unknown_csrs_count,
5243 duplicate_fflags_regnum, duplicate_frm_regnum, and
5244 duplicate_fcsr_regnum fields.
5245
5246 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5249 callback, use the callback (when not null) to help number unknown
5250 registers.
5251 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5252 (tdesc_use_registers): Add extra parameter to declaration.
5253
5254 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5255
5256 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5257 in the file.
5258 (class riscv_pending_register_alias): Likewise.
5259 (riscv_register_feature::register_info): Change 'required_p' field
5260 to 'required', and change its type. Add 'check' member function.
5261 (riscv_register_feature::register_info::check): Define new member
5262 function.
5263 (riscv_xreg_feature): Change initialisation of 'required' field.
5264 (riscv_freg_feature): Likewise.
5265 (riscv_virtual_feature): Likewise.
5266 (riscv_csr_feature): Likewise.
5267 (riscv_check_tdesc_feature): Take extra parameter, the csr
5268 tdesc_feature, rewrite the function to use the new
5269 riscv_register_feature::register_info::check function.
5270 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5271
5272 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5273
5274 * features/Makefile: Remove all references to the deleted files
5275 below.
5276 * features/riscv/32bit-csr.c: Deleted.
5277 * features/riscv/32bit-csr.xml: Deleted.
5278 * features/riscv/64bit-csr.c: Deleted.
5279 * features/riscv/64bit-csr.xml: Deleted.
5280 * features/riscv/rebuild-csr-xml.sh: Deleted.
5281
5282 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5285 whitespace error for declaration of names member variable.
5286 (struct riscv_register_feature): Add new prefer_first_name member
5287 variable, and fix whitespace error in declaration of registers.
5288 (riscv_xreg_feature): Initialize prefer_first_name field.
5289 (riscv_freg_feature): Likewise.
5290 (riscv_virtual_feature): Likewise.
5291 (riscv_csr_feature): Likewise.
5292 (riscv_register_name): Expand on comments. Remove register name
5293 modifications for CSR and virtual registers.
5294
5295 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5298 errors.
5299
5300 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5303 riscv-opc.h.
5304 (class riscv_pending_register_alias): New class.
5305 (riscv_check_tdesc_feature): Take vector of pending aliases and
5306 populate it as appropriate.
5307 (riscv_setup_register_aliases): Delete.
5308 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5309 to riscv_check_tdesc_feature in all cases. Use the vector to
5310 create the register aliases.
5311
5312 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5313
5314 * sol2-tdep.c (sol2_static_transform_name): Remove.
5315 (sol2_init_abi): Don't register it.
5316 * gdbarch.sh (static_transform_name): Remove.
5317 * gdbarch.c, gdbarch.h: Regenerate.
5318
5319 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5320 gdbarch_static_transform_name.
5321 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5322 * stabsread.c (define_symbol) <'X'>: Remove.
5323 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5324 handling.
5325 <'V'>: Likewise.
5326 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5327 <'S'>: Remove call to gdbarch_static_transform_name.
5328
5329 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5330
5331 * procfs.c (procfs_pre_trace): New function.
5332 (procfs_target::create_inferior): Pass it to fork_inferior.
5333
5334 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5335
5336 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5337 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5338 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5339 sol2-tdep.o, sparc-sol2-tdep.o.
5340 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5341 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5342 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5343 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5344
5345 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5346
5347 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5348 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5349 Call sol2_init_abi.
5350 Remove calls to set_gdbarch_skip_solib_resolver,
5351 set_gdbarch_core_pid_to_str.
5352 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5353 (i386_sol2_static_transform_name): Remove.
5354 (i386_sol2_init_abi): Call sol2_init_abi.
5355 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5356 set_gdbarch_static_transform_name,
5357 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5358 Use sol2_sigtramp_p.
5359 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5360 (sol2_sigtramp_p): New function.
5361 (sol2_static_transform_name): New function.
5362 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5363 (sol2_init_abi): New function.
5364 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5365 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5366 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5367 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5368 (sparc_sol2_static_transform_name): Remove.
5369 (sparc32_sol2_init_abi): Call sol2_init_abi.
5370 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5371 set_gdbarch_static_transform_name,
5372 set_gdbarch_skip_solib_resolver,
5373 set_gdbarch_core_pid_to_str.
5374 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5375 (sparc_sol2_static_transform_name): Remove
5376 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5377 call sol2_sigtramp_p.
5378 (sparc64_sol2_init_abi): Call sol2_init_abi.
5379 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5380 set_gdbarch_static_transform_name,
5381 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5382
5383 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5384
5385 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5386 * exec.c (validate_exec_file): If from_tty, set both
5387 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5388 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5389 and from_tty, unconditionally ask a confirmation.
5390
5391 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5392
5393 * target-descriptions.c (tdesc_architecture_name): Protect against
5394 NULL pointer dereference.
5395 (maint_print_xml_tdesc_cmd): New function.
5396 (_initialize_target_descriptions): Register new 'maint print
5397 xml-tdesc' command and give it the filename completer.
5398 * NEWS: Mention new 'maint print xml-tdesc' command.
5399
5400 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * target-descriptions.c (class tdesc_compatible_info): New class.
5403 (struct target_desc): Change type of compatible vector.
5404 (tdesc_compatible_p): Update for change in type of
5405 target_desc::compatible.
5406 (tdesc_compatible_info_list): New function.
5407 (tdesc_compatible_info_arch_name): New function.
5408 (tdesc_add_compatible): Update for change in type of
5409 target_desc::compatible.
5410 (print_c_tdesc::visit_pre): Likewise.
5411
5412 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5415 whitespace to underscore.
5416 (maint_print_c_tdesc_cmd): Use fake filename for target
5417 descriptions that came from the target.
5418 (_initialize_target_descriptions): Add filename command completion
5419 for 'maint print c-tdesc'.
5420
5421 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5422
5423 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5424 lines.
5425
5426 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5427
5428 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5429 lines.
5430 (dwarf2_find_location_expression): Likewise.
5431 (call_site_parameter_matches): Likewise.
5432 (dwarf2_compile_expr_to_ax): Likewise.
5433 (disassemble_dwarf_expression): Likewise.
5434 (loclist_describe_location): Likewise.
5435
5436 2020-06-23 Pedro Alves <palves@redhat.com>
5437
5438 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5439 progspace-and-thread.h. Include scoped-mock-context.h instead.
5440 (register_to_value_test): Use scoped_mock_context.
5441 * regcache.c: Include "scoped-mock-context.h".
5442 (cooked_read_test): Don't error out if a target is already pushed.
5443 Use scoped_mock_context. Adjust.
5444 * scoped-mock-context.h: New file.
5445
5446 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5447
5448 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5449 initializer.
5450 (ada_language::is_string_type_p): New member function.
5451 * c-lang.c (c_language_data): Delete la_is_string_type_p
5452 initializer.
5453 (cplus_language_data): Likewise.
5454 (asm_language_data): Likewise.
5455 (minimal_language_data): Likewise.
5456 * d-lang.c (d_language_data): Likewise.
5457 * f-lang.c (f_is_string_type_p): Delete function, implementation
5458 moved to f_language::is_string_type_p.
5459 (f_language_data): Delete la_is_string_type_p initializer.
5460 (f_language::is_string_type_p): New member function,
5461 implementation from f_is_string_type_p.
5462 * go-lang.c (go_is_string_type_p): Delete function, implementation
5463 moved to go_language::is_string_type_p.
5464 (go_language_data): Delete la_is_string_type_p initializer.
5465 (go_language::is_string_type_p): New member function,
5466 implementation from go_is_string_type_p.
5467 * language.c (language_defn::is_string_type_p): Define new member
5468 function.
5469 (default_is_string_type_p): Make static, add comment copied from
5470 header file.
5471 (unknown_language_data): Delete la_is_string_type_p initializer.
5472 (unknown_language::is_string_type_p): New member function.
5473 (auto_language_data): Delete la_is_string_type_p initializer.
5474 (auto_language::is_string_type_p): New member function.
5475 * language.h (language_data): Delete la_is_string_type_p field.
5476 (language_defn::is_string_type_p): Declare new function.
5477 (default_is_string_type_p): Delete desclaration, move comment to
5478 definition.
5479 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5480 moved to m2_language::is_string_type_p.
5481 (m2_language_data): Delete la_is_string_type_p initializer.
5482 (m2_language::is_string_type_p): New member function,
5483 implementation from m2_is_string_type_p.
5484 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5485 initializer.
5486 * opencl-lang.c (opencl_language_data): Likewise.
5487 * p-lang.c (pascal_is_string_type_p): Delete function,
5488 implementation moved to pascal_language::is_string_type_p.
5489 (pascal_language_data): Delete la_is_string_type_p initializer.
5490 (pascal_language::is_string_type_p): New member function,
5491 implementation from pascal_is_string_type_p.
5492 * rust-lang.c (rust_is_string_type_p): Delete function,
5493 implementation moved to rust_language::is_string_type_p.
5494 (rust_language_data): Delete la_is_string_type_p initializer.
5495 (rust_language::is_string_type_p): New member function,
5496 implementation from rust_is_string_type_p.
5497 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5498 is_string_type_p.
5499
5500 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5501
5502 * ada-lang.c (ada_language_data): Delete la_print_typedef
5503 initializer.
5504 (ada_language::print_typedef): New member function.
5505 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5506 (cplus_language_data): Likewise.
5507 (asm_language_data): Likewise.
5508 (minimal_language_data): Likewise.
5509 * d-lang.c (d_language_data): Likewise.
5510 * f-lang.c (f_language_data): Likewise.
5511 (f_language::print_typedef): New member function.
5512 * go-lang.c (go_language_data): Delete la_print_typedef
5513 initializer.
5514 * language.c (language_defn::print_typedef): Define member
5515 function.
5516 (unknown_language_data): Delete la_print_typedef initializer.
5517 (unknown_language::print_typedef): New member function.
5518 (auto_language_data): Delete la_print_typedef initializer.
5519 (auto_language::print_typedef): New member function.
5520 * language.h (language_data): Delete la_print_typedef field.
5521 (language_defn::print_typedef): Declare new member function.
5522 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5523 (default_print_typedef): Delete declaration.
5524 * m2-lang.c (m2_language_data): Delete la_print_typedef
5525 initializer.
5526 (m2_language::print_typedef): New member function.
5527 * objc-lang.c (objc_language_data): Delete la_print_typedef
5528 initializer.
5529 * opencl-lang.c (opencl_language_data): Likewise.
5530 * p-lang.c (pascal_language_data): Likewise.
5531 (pascal_language::print_typedef): New member function.
5532 * rust-lang.c (rust_print_typedef): Delete function,
5533 implementation moved to rust_language::print_typedef.
5534 (rust_language): Delete la_print_typedef initializer.
5535 (rust_language::print_typedef): New member function,
5536 implementation from rust_print_typedef.
5537 * typeprint.c (default_print_typedef): Delete.
5538
5539 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5540
5541 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5542 (ada_language::printstr): New member function.
5543 * c-lang.c (c_language_data): Delete la_printstr initializer.
5544 (cplus_language_data): Likewise.
5545 (asm_language_data): Likewise.
5546 (minimal_language_data): Likewise.
5547 * d-lang.c (d_language_data): Likewise.
5548 * f-lang.c (f_printstr): Rename to f_language::printstr.
5549 (f_language_data): Delete la_printstr initializer.
5550 (f_language::printstr): New member function, implementation from
5551 f_printstr.
5552 * go-lang.c (go_language_data): Delete la_printstr initializer.
5553 * language.c (language_defn::printstr): Define new member
5554 function.
5555 (unk_lang_printstr): Delete.
5556 (unknown_language_data): Delete la_printstr initializer.
5557 (unknown_language::printstr): New member function.
5558 (auto_language_data): Delete la_printstr initializer.
5559 (auto_language::printstr): New member function.
5560 * language.h (language_data): Delete la_printstr field.
5561 (language_defn::printstr): Declare new member function.
5562 (LA_PRINT_STRING): Update call to printstr.
5563 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5564 (m2_language_data): Delete la_printstr initializer.
5565 (m2_language::printstr): New member function, implementation from
5566 m2_printstr.
5567 * objc-lang.c (objc_language_data): Delete la_printstr
5568 initializer.
5569 * opencl-lang.c (opencl_language_data): Likewise.
5570 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5571 (pascal_language_data): Delete la_printstr initializer.
5572 (pascal_language::printstr): New member function, implementation
5573 from pascal_printstr.
5574 * p-lang.h (pascal_printstr): Delete declaration.
5575 * rust-lang.c (rust_printstr): Update header comment.
5576 (rust_language_data): Delete la_printstr initializer.
5577 (rust_language::printstr): New member function.
5578
5579 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5580
5581 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5582 (ada_language::printchar): New member function.
5583 * c-lang.c (c_language_data): Delete la_printchar initializer.
5584 (cplus_language_data): Likewise.
5585 (asm_language_data): Likewise.
5586 (minimal_language_data): Likewise.
5587 * d-lang.c (d_language_data): Likewise.
5588 * f-lang.c (f_printchar): Rename to f_language::printchar.
5589 (f_language_data): Delete la_printchar initializer.
5590 (f_language::printchar): New member function, implementation from
5591 f_printchar.
5592 * go-lang.c (go_language_data): Delete la_printchar initializer.
5593 * language.c (unk_lang_printchar): Delete.
5594 (language_defn::printchar): Define new member function.
5595 (unknown_language_data): Delete la_printchar initializer.
5596 (unknown_language::printchar): New member function.
5597 (auto_language_data): Delete la_printchar initializer.
5598 (auto_language::printchar): New member function.
5599 * language.h (language_data): Delete la_printchar field.
5600 (language_defn::printchar): Declare new member function.
5601 (LA_PRINT_CHAR): Update call to printchar.
5602 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5603 (m2_language::printchar): New member function.
5604 * objc-lang.c (objc_language_data): Delete la_printchar
5605 initializer.
5606 * opencl-lang.c (opencl_language_data): Likewise.
5607 * p-lang.c (pascal_language_data): Delete la_printchar
5608 initializer.
5609 (pascal_language::printchar): New member function.
5610 * rust-lang.c (rust_printchar): Rename to
5611 rust_language::printchar.
5612 (rust_language_data): Delete la_printchar initializer.
5613 (rust_language::printchar): New member function, implementation
5614 from rust_printchar.
5615
5616 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5617
5618 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5619 (ada_language_data): Delete la_emitchar initializer.
5620 (ada_language::emitchar): New member function, implementation from
5621 emit_char.
5622 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5623 (cplus_language_data): Likewise.
5624 (asm_language_data): Likewise.
5625 (minimal_language_data): Likewise.
5626 * d-lang.c (d_language_data): Likewise.
5627 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5628 (f_language_data): Delete la_emitchar initializer.
5629 (f_language::emitchar): New member function, implementation from
5630 f_emit_char.
5631 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5632 * language.c (unk_lang_emit_char): Delete.
5633 (language_defn::emitchar): New member function definition.
5634 (unknown_language_data): Delete la_emitchar initializer.
5635 (unknown_language::emitchar): New member function.
5636 (auto_language_data): Delete la_emitchar initializer.
5637 (auto_language::emitchar): New member function.
5638 * language.h (language_data): Delete la_emitchar field.
5639 (language_defn::emitchar): New member field declaration.
5640 (LA_EMIT_CHAR): Update call to emitchar.
5641 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5642 (m2_language_data): Delete la_emitchar initializer.
5643 (m2_language::emitchar): New member function, implementation from
5644 m2_emit_char.
5645 * objc-lang.c (objc_language_data): Delete la_emitchar
5646 initializer.
5647 * opencl-lang.c (opencl_language_data): Likewise.
5648 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5649 (pascal_language_data): Delete la_emitchar initializer.
5650 (pascal_language::emitchar): New member function, implementation
5651 from pascal_emit_char.
5652 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5653 (rust_language_data): Delete la_emitchar initializer.
5654 (rust_language::emitchar): New member function, implementation
5655 from rust_emitchar.
5656
5657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5658
5659 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5660 (ada_language_data): Delete la_post_parser initializer.
5661 (ada_language::post_parser): New member function.
5662 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5663 (cplus_language_data): Likewise.
5664 (asm_language_data): Likewise.
5665 (minimal_language_data): Likewise.
5666 * d-lang.c (d_language_data): Likewise.
5667 * f-lang.c (f_language_data): Likewise.
5668 * go-lang.c (go_language_data): Likewise.
5669 * language.c (unknown_language_data): Likewise.
5670 (auto_language_data): Likewise.
5671 * language.h (language_data): Delete la_post_parser field.
5672 (language_defn::post_parser): New member function.
5673 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5674 * objc-lang.c (objc_language_data): Likewise.
5675 * opencl-lang.c (opencl_language_data): Likewise.
5676 * p-lang.c (pascal_language_data): Likewise.
5677 * parse.c (parse_exp_in_context): Update call to post_parser.
5678 (null_post_parser): Delete definition.
5679 * parser-defs.h (null_post_parser): Delete declaration.
5680 * rust-lang.c (rust_language_data): Delete la_post_parser
5681 initializer.
5682
5683 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5684
5685 * ada-lang.c (parse): Rename to ada_language::parser.
5686 (ada_language_data): Delete la_parser initializer.
5687 (ada_language::parser): New member function, implementation from
5688 parse.
5689 * c-lang.c (c_language_data): Delete la_parser initializer.
5690 (cplus_language_data): Likewise.
5691 (asm_language_data): Likewise.
5692 (minimal_language_data): Likewise.
5693 * d-lang.c (d_language_data): Likewise.
5694 (d_language::parser): New member function.
5695 * f-lang.c (f_language_data): Delete la_parser initializer.
5696 (f_language::parser): New member function.
5697 * go-lang.c (go_language_data): Delete la_parser initializer.
5698 (go_language::parser): New member function.
5699 * language.c (unk_lang_parser): Delete.
5700 (language_defn::parser): Define new member function.
5701 (unknown_language_data): Delete la_parser initializer.
5702 (unknown_language::parser): New member function.
5703 (auto_language_data): Delete la_parser initializer.
5704 (auto_language::parser): New member function.
5705 * language.h (language_data): Delete la_parser field.
5706 (language_defn::parser): Declare new member function.
5707 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5708 (m2_language::parser): New member function.
5709 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5710 * opencl-lang.c (opencl_language_data): Likewise.
5711 * p-lang.c (pascal_language_data): Likewise.
5712 (pascal_language::parser): New member function.
5713 * parse.c (parse_exp_in_context): Update call to parser.
5714 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5715 (rust_language::parser): New member function.
5716
5717 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5718
5719 * top.c (print_gdb_configuration): Print --with-python-libdir
5720 configuration value.
5721
5722 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5723
5724 * NEWS: Mention change to the alias command.
5725
5726 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5727
5728 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5729 (alias_command_completer)
5730 (make_alias_options_def_group): New functions.
5731 (alias_opts, alias_option_defs): New struct and array.
5732 (alias_usage_error): Update usage.
5733 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5734 Use option framework.
5735 (_initialize_cli_cmds): Update alias command help.
5736 Update aliases command help.
5737 (show_user):
5738 Add NULL for new default_args lookup_cmd argument.
5739 (valid_command_p): Rename to validate_aliased_command.
5740 Add NULL for new default_args lookup_cmd argument. Verify that the
5741 aliased_command has no default args.
5742 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5743 (lookup_cmd_1, lookup_cmd): New argument default_args.
5744 (add_alias_cmd):
5745 Add NULL for new default_args lookup_cmd argument.
5746 (print_help_for_command): Show default args under the layout
5747 alias some_alias = some_aliased_cmd some_alias_default_arg.
5748 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5749 xfree default_args in destructor.
5750 * cli/cli-script.c (process_next_line, do_define_command):
5751 Add NULL for new default_args lookup_cmd argument.
5752 * command.h: Declare new default_args argument in lookup_cmd
5753 and lookup_cmd_1.
5754 * completer.c (complete_line_internal_1):
5755 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5756 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5757 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5758 Likewise.
5759 * infcmd.c (_initialize_infcmd): Likewise.
5760 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5761 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5762 * python/py-param.c (add_setshow_generic): Likewise.
5763 * remote.c (_initialize_remote): Likewise.
5764 * top.c (execute_command): Prepend default_args if command has some.
5765 (set_verbose):
5766 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5767 * tracepoint.c (validate_actionline, encode_actions_1):
5768 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5769
5770 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5771
5772 * jit.c (jit_read_descriptor): Use bool as the return type.
5773 (jit_breakpoint_re_set_internal): Use bool as the return type.
5774 Invert the return value logic; return true if the jit breakpoint
5775 has been successfully initialized.
5776 (jit_inferior_init): Update the call to
5777 jit_breakpoint_re_set_internal.
5778
5779 2020-06-22 Pedro Alves <palves@redhat.com>
5780
5781 PR gdb/25939
5782 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5783 Use the current inferior instead. Don't return
5784 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5785 wait again.
5786 * sol-thread.c (sol_thread_target::wait): Don't reference
5787 inferior_ptid.
5788 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5789 (sol_update_thread_list_callback): Use the current inferior's pid
5790 instead of inferior_ptid.
5791
5792 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5793
5794 * procfs.c: Cleanup many comments.
5795
5796 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5797 (AFTER_WATCHFLAG): Replace by value.
5798
5799 (MAIN_PROC_NAME_FORMAT): Inline ...
5800 (create_procinfo): ... here.
5801
5802 (procfs_debug_inferior): Remove SYS_exec handling.
5803 (syscall_is_exec): Likewise.
5804 (procfs_set_exec_trap): Likewise.
5805
5806 (syscall_is_lwp_exit): Inline in callers.
5807 (syscall_is_exit): Likewise.
5808 (syscall_is_exec): Likewise.
5809 (syscall_is_lwp_create): Likewise.
5810
5811 (invalidate_cache): Remove #if 0 code.
5812
5813 (make_signal_thread_runnable): Remove.
5814 (procfs_target::resume): Remove #if 0 code.
5815
5816 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5817
5818 PR gdb/25939
5819 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5820 call ...
5821 (procfs_target::create_inferior): ... here.
5822
5823 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5824
5825 * exec.c (validate_exec_file): Ensure the build-id is up to
5826 date by calling reopen_exec_file (that checks file timestamp
5827 to decide to re-read the file).
5828
5829 2020-06-18 Pedro Alves <palves@redhat.com>
5830
5831 PR gdb/25412
5832 * gdbthread.h (delete_thread, delete_thread_silent)
5833 (find_thread_ptid): Update comments.
5834 * thread.c (current_thread_): New global.
5835 (is_current_thread): Move higher, and reimplement.
5836 (inferior_thread): Reimplement.
5837 (set_thread_exited): Use bool. Add assertions.
5838 (add_thread_silent): Simplify thread-reuse handling by always
5839 calling delete_thread.
5840 (delete_thread): Remove intro comment.
5841 (find_thread_ptid): Skip exited threads.
5842 (switch_to_thread_no_regs): Write to current_thread_.
5843 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5844 INFERIOR_PTID. Clear current_thread_.
5845
5846 2020-06-18 Pedro Alves <palves@redhat.com>
5847
5848 * aix-thread.c (pd_update): Use switch_to_thread.
5849
5850 2020-06-18 Pedro Alves <palves@redhat.com>
5851
5852 * ravenscar-thread.c (ravenscar_thread_target): Update.
5853 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5854 (ravenscar_thread_target::add_active_thread): ... this. Don't
5855 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5856 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5857
5858 2020-06-18 Pedro Alves <palves@redhat.com>
5859
5860 * nat/windows-nat.c (current_windows_thread): Remove.
5861 * nat/windows-nat.h (current_windows_thread): Remove.
5862 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5863 Adjust.
5864 (display_selectors): Adjust to fetch the current
5865 windows_thread_info based on inferior_ptid.
5866 (fake_create_process): No longer write to current_windows_thread.
5867 (windows_nat_target::get_windows_debug_event):
5868 Don't set inferior_ptid or current_windows_thread.
5869 (windows_nat_target::wait): Adjust to not rely on
5870 current_windows_thread.
5871 (do_initial_windows_stuff): Now a method of windows_nat_target.
5872 Switch to the last_ptid thread.
5873 (windows_nat_target::attach): Adjust.
5874 (windows_nat_target::detach): Use switch_to_no_thread instead of
5875 writing to inferior_ptid directly.
5876 (windows_nat_target::create_inferior): Adjust.
5877
5878 2020-06-18 Pedro Alves <palves@redhat.com>
5879
5880 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5881
5882 2020-06-18 Pedro Alves <palves@redhat.com>
5883
5884 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5885 after creating it, instead of writing to inferior_ptid. Don't
5886 write to inferior_ptid.
5887
5888 2020-06-18 Pedro Alves <palves@redhat.com>
5889
5890 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5891
5892 2020-06-18 Pedro Alves <palves@redhat.com>
5893
5894 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5895 it, instead of writing to inferior_ptid.
5896
5897 2020-06-18 Pedro Alves <palves@redhat.com>
5898
5899 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5900 to inferior_ptid.
5901
5902 2020-06-18 Pedro Alves <palves@redhat.com>
5903
5904 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5905 instead of writing to inferior_ptid directly.
5906
5907 2020-06-18 Pedro Alves <palves@redhat.com>
5908
5909 * corelow.c (core_target::close): Use switch_to_no_thread instead
5910 of writing to inferior_ptid directly.
5911 (add_to_thread_list, core_target_open): Use switch_to_thread
5912 instead of writing to inferior_ptid directly.
5913
5914 2020-06-18 Pedro Alves <palves@redhat.com>
5915
5916 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5917 inferior_ptid.
5918 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5919 inferior_ptid.
5920 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5921 inferior_ptid directly.
5922 (darwin_nat_target::init_thread_list): Switch to thread, instead
5923 of writing to inferior_ptid.
5924 (darwin_nat_target::attach): Don't write to inferior_ptid.
5925 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5926
5927 2020-06-18 Pedro Alves <palves@redhat.com>
5928
5929 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5930 thread.
5931 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5932 Instead use switch_to_thread.
5933 (gnu_nat_target::detach): Use switch_to_no_thread
5934 instead of writing to inferior_ptid directly. Used passed-in
5935 inferior instead of looking up the inferior by pid.
5936
5937 2020-06-18 Pedro Alves <palves@redhat.com>
5938
5939 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5940 inferior_ptid.
5941
5942 2020-06-18 Pedro Alves <palves@redhat.com>
5943
5944 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5945 inferior_ptid.
5946 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5947 thread.
5948 (nto_procfs_target::detach): Avoid referencing
5949 inferior_ptid. Use switch_to_no_thread instead of writing to
5950 inferior_ptid directly.
5951 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5952 instead of writing to inferior_ptid directly.
5953 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5954 to thread.
5955
5956 2020-06-18 Pedro Alves <palves@redhat.com>
5957
5958 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5959 after creating it, instead of writing to inferior_ptid.
5960 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5961 to inferior_ptid directly.
5962 (gdbsim_target::wait): Don't write to inferior_ptid.
5963
5964 2020-06-18 Pedro Alves <palves@redhat.com>
5965
5966 * remote.c (remote_target::remote_notice_new_inferior): Use
5967 switch_to_thread instead of writing to inferior_ptid directly.
5968 (remote_target::add_current_inferior_and_thread): Use
5969 switch_to_no_thread instead of writing to inferior_ptid directly.
5970 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5971 and switch_to_thread instead of using set_current_inferior or
5972 writing to inferior_ptid directly.
5973
5974 2020-06-18 Pedro Alves <palves@redhat.com>
5975
5976 * tracectf.c (ctf_target_open): Switch to added thread instead of
5977 writing to inferior_ptid directly.
5978 (ctf_target::close): Use switch_to_no_thread instead of writing to
5979 inferior_ptid directly.
5980
5981 2020-06-18 Pedro Alves <palves@redhat.com>
5982
5983 * tracefile-tfile.c (tfile_target_open): Don't write to
5984 inferior_ptid directly, instead switch to added thread.
5985 (tfile_target::close): Use switch_to_no_thread instead of writing
5986 to inferior_ptid directly.
5987
5988 2020-06-18 Pedro Alves <palves@redhat.com>
5989
5990 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5991 (procfs_target::detach): Use switch_to_no_thread
5992 instead of writing to inferior_ptid directly.
5993 (do_attach): Change return type to void. Switch to the added
5994 thread.
5995 (procfs_target::create_inferior): Switch to the added thread.
5996 (procfs_do_thread_registers): Don't write to inferior_ptid.
5997
5998 2020-06-18 Pedro Alves <palves@redhat.com>
5999
6000 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
6001 of writing to inferior_ptid.
6002 (scoped_restore_exited_inferior): Delete.
6003 (handle_vfork_child_exec_or_exit): Simplify using
6004 scoped_restore_current_pspace_and_thread. Use switch_to_thread
6005 instead of writing to inferior_ptid.
6006 (THREAD_STOPPED_BY): Delete.
6007 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
6008 (thread_stopped_by_hw_breakpoint): Delete.
6009 (save_waitstatus): Use
6010 scoped_restore_current_thread+switch_to_thread, and call
6011 target_stopped_by_watchpoint instead of
6012 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
6013 instead of thread_stopped_by_sw_breakpoint, and
6014 target_stopped_by_hw_breakpoint instead of
6015 thread_stopped_by_hw_breakpoint.
6016 (handle_inferior_event)
6017 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
6018 inferior_ptid directly, nor
6019 set_current_inferior/set_current_program_space. Use
6020 switch_to_thread / switch_to_inferior_no_thread instead.
6021
6022 2020-06-18 Pedro Alves <palves@redhat.com>
6023
6024 * target.c (generic_mourn_inferior): Use switch_to_no_thread
6025 instead of writing to inferior_ptid.
6026
6027 2020-06-18 Pedro Alves <palves@redhat.com>
6028
6029 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
6030 added thread.
6031 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
6032 to the added thread.
6033 (inf_ptrace_target::detach_success): Use switch_to_no_thread
6034 instead of writing to inferior_ptid.
6035
6036 2020-06-18 Pedro Alves <palves@redhat.com>
6037
6038 * gdbarch-selftests.c: Include "progspace-and-thread.h".
6039 (register_to_value_test): Mock a program_space too. Heap-allocate
6040 the address space. Don't write to inferior_ptid. Use
6041 switch_to_thread instead.
6042
6043 2020-06-18 Pedro Alves <palves@redhat.com>
6044
6045 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6046 Delete.
6047 (find_signalled_thread()): New, factored out from
6048 linux_make_corefile_notes and adjusted to handle exited threads.
6049 (linux_make_corefile_notes): Adjust to use the new
6050 find_signalled_thread.
6051
6052 2020-06-18 Pedro Alves <palves@redhat.com>
6053
6054 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6055 of saving/restoring inferior_ptid.
6056
6057 2020-06-17 Tom Tromey <tom@tromey.com>
6058
6059 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6060 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6061 declare.
6062 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6063
6064 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6067 of partial symtabs.
6068
6069 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * regformats/reg-arm.dat: Remove.
6072 * regformats/reg-bfin.dat: Remove.
6073 * regformats/reg-cris.dat: Remove.
6074 * regformats/reg-crisv32.dat: Remove.
6075 * regformats/reg-m32r.dat: Remove.
6076 * regformats/reg-tilegx.dat: Remove.
6077 * regformats/reg-tilegx32.dat: Remove.
6078
6079 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * features/Makefile (WHICH): Remove arm files.
6082 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6083 * regformats/arm/arm-with-neon.dat: Remove.
6084 * regformats/arm/arm-with-vfpv2.dat: Remove.
6085 * regformats/arm/arm-with-vfpv3.dat: Remove.
6086
6087 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * features/Makefile (XMLTOC): Remove rx.xml.
6090
6091 2020-06-17 Pedro Alves <palves@redhat.com>
6092
6093 * gdbthread.h (thread_control_state) <trap_expected> Update
6094 comments.
6095
6096 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6097
6098 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6099 ada_language::lookup_symbol_nonlocal.
6100 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6101 (ada_language::lookup_symbol_nonlocal): New member function,
6102 implementation from ada_lookup_symbol_nonlocal.
6103 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6104 initializer.
6105 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6106 initializer.
6107 (cplus_language::lookup_symbol_nonlocal): New member function.
6108 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6109 (minimal_language_data) Likewise.
6110 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6111 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6112 initializer.
6113 (d_language::lookup_symbol_nonlocal): New member function.
6114 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6115 initializer.
6116 (f_language::lookup_symbol_nonlocal): New member function.
6117 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6118 initializer.
6119 * language.c (unknown_language_data): Likewise.
6120 (auto_language_data): Likewise.
6121 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6122 field.
6123 (language_defn::lookup_symbol_nonlocal): New member function.
6124 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6125 initializer.
6126 * objc-lang.c (objc_language_data): Likewise.
6127 * opencl-lang.c (opencl_language_data): Likewise.
6128 * p-lang.c (pascal_language_data): Likewise.
6129 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6130 rust_language::lookup_symbol_nonlocal.
6131 (rust_language_data): Delete la_lookup_symbol_nonlocal
6132 initializer.
6133 (rust_language::lookup_symbol_nonlocal): New member function,
6134 implementation from rust_lookup_symbol_nonlocal.
6135 * symtab.c (lookup_symbol_aux): Update call to
6136 lookup_symbol_nonlocal.
6137 (basic_lookup_symbol_nonlocal): Rename to...
6138 (language_defn::lookup_symbol_nonlocal): ...this, and update
6139 header comment. Remove language_defn parameter, and replace with
6140 uses of `this'.
6141 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6142
6143 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6146 initializer.
6147 (ada_language::value_print_inner): New member function.
6148 * c-lang.c (c_language_data): Delete la_value_print_inner
6149 initializer.
6150 (cplus_language_data): Likewise.
6151 (asm_language_data): Likewise.
6152 (minimal_language_data): Likewise.
6153 * d-lang.c (d_language_data): Likewise.
6154 (d_language::value_print_inner): New member function.
6155 * f-lang.c (f_language_data): Delete la_value_print_inner
6156 initializer.
6157 (f_language::value_print_inner): New member function.
6158 * f-lang.h (f_value_print_innner): Rename to...
6159 (f_value_print_inner): ...this (note spelling of 'inner').
6160 * f-valprint.c (f_value_print_innner): Rename to...
6161 (f_value_print_inner): ...this (note spelling of 'inner').
6162 * go-lang.c (go_language_data): Delete la_value_print_inner
6163 initializer.
6164 (go_language::value_print_inner): New member function.
6165 * language.c (language_defn::value_print_inner): Define new member
6166 function.
6167 (unk_lang_value_print_inner): Delete.
6168 (unknown_language_data): Delete la_value_print_inner initializer.
6169 (unknown_language::value_print_inner): New member function.
6170 (auto_language_data): Delete la_value_print_inner initializer.
6171 (auto_language::value_print_inner): New member function.
6172 * language.h (language_data): Delete la_value_print_inner field.
6173 (language_defn::value_print_inner): Delcare new member function.
6174 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6175 initializer.
6176 (m2_language::value_print_inner): New member function.
6177 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6178 initializer.
6179 * opencl-lang.c (opencl_language_data): Likewise.
6180 * p-lang.c (pascal_language_data): Likewise.
6181 (pascal_language::value_print_inner): New member function.
6182 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6183 initializer.
6184 (rust_language::value_print_inner): New member function.
6185 * valprint.c (do_val_print): Update call to value_print_inner.
6186
6187 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6188
6189 * ada-lang.c (ada_language_data): Delete la_value_print
6190 initializer.
6191 (ada_language::value_print): New member function.
6192 * c-lang.c (c_language_data): Delete la_value_print initializer.
6193 (cplus_language_data): Likewise.
6194 (asm_language_data): Likewise.
6195 (minimal_language_data): Likewise.
6196 * d-lang.c (d_language_data): Likewise.
6197 * f-lang.c (f_language_data): Likewise.
6198 * go-lang.c (go_language_data): Likewise.
6199 * language.c (unk_lang_value_print): Delete.
6200 (language_defn::value_print): Define new member function.
6201 (unknown_language_data): Delete la_value_print initializer.
6202 (unknown_language::value_print): New member function.
6203 (auto_language_data): Delete la_value_print initializer.
6204 (auto_language::value_print): New member function.
6205 * language.h (language_data): Delete la_value_print field.
6206 (language_defn::value_print): Declare new member function.
6207 (LA_VALUE_PRINT): Update call to value_print.
6208 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6209 * objc-lang.c (objc_language_data): Likewise.
6210 * opencl-lang.c (opencl_language_data): Likewise.
6211 * p-lang.c (pascal_language_data): Likewise.
6212 (pascal_language::value_print): New member function.
6213 * rust-lang.c (rust_language_data): Delete la_value_print
6214 initializer.
6215
6216 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6217
6218 * ada-lang.c (ada_watch_location_expression): Rename to
6219 ada_language::watch_location_expression.
6220 (ada_language_data): Delete la_watch_location_expression
6221 initializer.
6222 (ada_language::watch_location_expression): New member function,
6223 implementation from ada_watch_location_expression.
6224 * breakpoint.c (watch_command_1): Update call to
6225 watch_location_expression.
6226 * c-lang.c (c_watch_location_expression): Rename to
6227 language_defn::watch_location_expression.
6228 (c_language_data): Delete la_watch_location_expression
6229 initializer.
6230 (cplus_language_data): Likewise.
6231 (asm_language_data): Likewise.
6232 (minimal_language_data): Likewise.
6233 * c-lang.h (c_watch_location_expression): Delete declaration.
6234 * d-lang.c (d_language_data): Delete la_watch_location_expression
6235 initializer.
6236 * f-lang.c (f_language_data): Likewise.
6237 * go-lang.c (go_language_data): Likewise.
6238 * language.c (language_defn::watch_location_expression): Member
6239 function implementation from c_watch_location_expression.
6240 (unknown_language_data): Delete la_watch_location_expression
6241 initializer.
6242 (auto_language_data): Likewise.
6243 * language.h (language_data): Delete la_watch_location_expression
6244 field.
6245 (language_defn::watch_location_expression): Declare new member
6246 function.
6247 * m2-lang.c (m2_language_data): Delete
6248 la_watch_location_expression initializer.
6249 * objc-lang.c (objc_language_data): Likewise.
6250 * opencl-lang.c (opencl_language_data): Likewise.
6251 * p-lang.c (pascal_language_data): Likewise.
6252 * rust-lang.c (rust_watch_location_expression): Rename to
6253 rust_language::watch_location_expression.
6254 (rust_language_data): Delete la_watch_location_expression
6255 initializer.
6256 (rust_language::watch_location_expression): New member function,
6257 implementation from rust_watch_location_expression.
6258
6259 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6262 ada_language::collect_symbol_completion_matches.
6263 (ada_language_data): Delete la_collect_symbol_completion_matches
6264 initializer.
6265 (ada_language::collect_symbol_completion_matches): New member
6266 function, implementation from
6267 ada_collect_symbol_completion_matches.
6268 * c-lang.c (c_language_data): Delete
6269 la_collect_symbol_completion_matches initializer.
6270 (cplus_language_data): Likewise.
6271 (asm_language_data): Likewise.
6272 (minimal_language_data): Likewise.
6273 * d-lang.c (d_language_data): Likewise.
6274 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6275 f_language::collect_symbol_completion_matches.
6276 (f_language_data): Delete la_collect_symbol_completion_matches
6277 initializer.
6278 (f_language::collect_symbol_completion_matches) New member
6279 function, implementation from f_collect_symbol_completion_matches.
6280 * go-lang.c (go_language_data): Delete
6281 la_collect_symbol_completion_matches initializer.
6282 * language.c (unknown_language_data): Likewise.
6283 (auto_language_data): Likewise.
6284 * language.h (language_data): Delete
6285 la_collect_symbol_completion_matches field.
6286 (language_defn::collect_symbol_completion_matches): New member
6287 function.
6288 * m2-lang.c (m2_language_data): Delete
6289 la_collect_symbol_completion_matches initializer.
6290 * objc-lang.c (objc_language_data): Likewise.
6291 * opencl-lang.c (opencl_language_data): Likewise.
6292 * p-lang.c (pascal_language_data): Likewise.
6293 * rust-lang.c (rust_language_data): Likewise.
6294 * symtab.c (default_collect_symbol_completion_matches): Delete.
6295 (collect_symbol_completion_matches): Update call to
6296 collect_symbol_completion_matches.
6297 (collect_symbol_completion_matches_type): Likewise.
6298 * symtab.h (default_collect_symbol_completion_matches): Delete
6299 declaration.
6300
6301 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6302
6303 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6304 (ada_language_data): Delete la_word_break_characters initializer.
6305 (ada_language::word_break_characters): New member function.
6306 * c-lang.c (c_language_data): Delete la_word_break_characters
6307 initializer.
6308 (cplus_language_data): Likewise.
6309 (asm_language_data): Likewise.
6310 (minimal_language_data): Likewise.
6311 * completer.c: Update global comment.
6312 (advance_to_expression_complete_word_point): Update call to
6313 word_break_characters.
6314 (complete_files_symbols): Likewise.
6315 (complete_line_internal_1): Likewise.
6316 (default_completer_handle_brkchars): Likewise.
6317 (skip_quoted_chars): Likewise.
6318 * d-lang.c (d_language_data): Delete la_word_break_characters
6319 initializer.
6320 * f-lang.c (f_word_break_characters): Delete.
6321 (f_language_data): Delete la_word_break_characters initializer.
6322 (f_language::word_break_characters): New member function.
6323 * go-lang.c (go_language_data): Delete la_word_break_characters
6324 initializer.
6325 * language.c (unknown_language_data): Likewise.
6326 (auto_language_data): Likewise.
6327 * language.h (default_word_break_characters): Move declaration to
6328 earlier in the file.
6329 (language_data): Delete la_word_break_characters field.
6330 (language_defn::word_break_characters): New member function.
6331 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6332 initializer.
6333 * objc-lang.c (objc_language_data): Likewise.
6334 * opencl-lang.c (opencl_language_data): Likewise.
6335 * p-lang.c (pascal_language_data): Likewise.
6336 * rust-lang.c (rust_language_data): Likewise.
6337
6338 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6339
6340 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6341 (ada_language_data): Delete la_get_symbol_name_matcher
6342 initializer.
6343 (language_defn::get_symbol_name_matcher_inner): New member
6344 function.
6345 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6346 initializer.
6347 (cplus_language_data): Likewise.
6348 (cplus_language::get_symbol_name_matcher_inner): New member
6349 function.
6350 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6351 (minimal_language_data): Likewise.
6352 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6353 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6354 initializer.
6355 * dictionary.c (iter_match_first_hashed): Update call to
6356 get_symbol_name_matcher.
6357 (iter_match_next_hashed): Likewise.
6358 (iter_match_next_linear): Likewise.
6359 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6360 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6361 initializer.
6362 (f_language::get_symbol_name_matcher_inner): New member function.
6363 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6364 initializer.
6365 * language.c (default_symbol_name_matcher): Update header comment,
6366 make static.
6367 (language_defn::get_symbol_name_matcher): New definition.
6368 (language_defn::get_symbol_name_matcher_inner): Likewise.
6369 (get_symbol_name_matcher): Delete.
6370 (unknown_language_data): Delete la_get_symbol_name_matcher
6371 initializer.
6372 (auto_language_data): Likewise.
6373 * language.h (language_data): Delete la_get_symbol_name_matcher
6374 field.
6375 (language_defn::get_symbol_name_matcher): New member function.
6376 (language_defn::get_symbol_name_matcher_inner): Likewise.
6377 (default_symbol_name_matcher): Delete declaration.
6378 * linespec.c (find_methods): Update call to
6379 get_symbol_name_matcher.
6380 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6381 initializer.
6382 * minsyms.c (lookup_minimal_symbol): Update call to
6383 get_symbol_name_matcher.
6384 (iterate_over_minimal_symbols): Likewise.
6385 * objc-lang.c (objc_language_data): Delete
6386 la_get_symbol_name_matcher initializer.
6387 * opencl-lang.c (opencl_language_data): Likewise.
6388 * p-lang.c (pascal_language_data): Likewise.
6389 * psymtab.c (psymbol_name_matches): Update call to
6390 get_symbol_name_matcher.
6391 * rust-lang.c (rust_language_data): Delete
6392 la_get_symbol_name_matcher initializer.
6393 * symtab.c (symbol_matches_search_name): Update call to
6394 get_symbol_name_matcher.
6395 (compare_symbol_name): Likewise.
6396
6397 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 * ada-lang.c (ada_language_data): Delete la_compute_program
6400 initializer.
6401 * c-lang.c (c_language_data): Likewise.
6402 (c_language::compute_program): New member function.
6403 (cplus_language_data): Delete la_compute_program initializer.
6404 (cplus_language::compute_program): New member function.
6405 (asm_language_data): Delete la_compute_program initializer.
6406 (minimal_language_data): Likewise.
6407 * c-lang.h (c_compute_program): Update comment.
6408 (cplus_compute_program): Likewise.
6409 * compile/compile-c-support.c (c_compute_program): Likewise.
6410 (cplus_compute_program): Likewise.
6411 * compile/compile.c (compile_to_object): Update call to
6412 la_compute_program.
6413 * d-lang.c (d_language_data): Delete la_compute_program
6414 initializer.
6415 * f-lang.c (f_language_data): Likewise.
6416 * go-lang.c (go_language_data): Likewise.
6417 * language.c (unknown_language_data): Likewise.
6418 (auto_language_data): Likewise.
6419 * language.h (language_data): Delete la_compute_program field.
6420 (language_defn::compute_program): New member function.
6421 * m2-lang.c (m2_language_data): Delete la_compute_program
6422 initializer.
6423 * objc-lang.c (objc_language_data): Likewise.
6424 * opencl-lang.c (opencl_language_data): Likewise.
6425 * p-lang.c (pascal_language_data): Likewise.
6426 * rust-lang.c (rust_language_data): Likewise.
6427
6428 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * ada-lang.c (ada_language_data) Delete
6431 la_class_name_from_physname initializer.
6432 * c-lang.c (c_language_data): Likewise.
6433 (cplus_language_data): Likewise.
6434 (cplus_language::class_name_from_physname): New member function.
6435 (asm_language_data): Delete la_class_name_from_physname
6436 initializer.
6437 (minimal_language_data): Likewise.
6438 * d-lang.c (d_language_data): Likewise.
6439 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6440 method on language_defn class.
6441 (guess_full_die_structure_name): Likewise.
6442 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6443 initializer.
6444 * go-lang.c (go_language_data): Likewise.
6445 * language.c (language_class_name_from_physname): Delete.
6446 (unk_lang_class_name): Delete.
6447 (unknown_language_data): Delete la_class_name_from_physname
6448 initializer.
6449 (auto_language_data): Likewise.
6450 * language.h (language_data): Delete la_class_name_from_physname
6451 field.
6452 (language_defn::class_name_from_physname): New function.
6453 (language_class_name_from_physname): Delete declaration.
6454 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6455 initializer.
6456 * objc-lang.c (objc_language_data): Likewise.
6457 * opencl-lang.c (opencl_language_data): Likewise.
6458 * p-lang.c (pascal_language_data): Likewise.
6459 * rust-lang.c (rust_language_data): Likewise.
6460
6461 2020-06-16 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-data.h (STATUS_NAME): New macro.
6464 * tui/tui-layout.c (tui_remove_some_windows)
6465 (initialize_known_windows, tui_register_window)
6466 (tui_layout_split::remove_windows, initialize_layouts)
6467 (tui_new_layout_command): Don't use hard-coded window names.
6468
6469 2020-06-16 Tom Tromey <tom@tromey.com>
6470
6471 PR tui/25348:
6472 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6473 tui_initialize_readline. Only run once. Call rl_initialize.
6474 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6475 tui_initialize_readline.
6476 * tui/tui-io.c (tui_setup_io): Call
6477 tui_ensure_readline_initialized.
6478 * tui/tui-interp.c (tui_interp::init): Update.
6479
6480 2020-06-16 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6483 Also preserve the status window.
6484
6485 2020-06-16 Tom Tromey <tom@tromey.com>
6486
6487 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6488 where m_window==nullptr.
6489
6490 2020-06-15 Tom Tromey <tromey@adacore.com>
6491
6492 * windows-nat.c (windows_nat::handle_output_debug_string):
6493 Update.
6494 (windows_nat::handle_ms_vc_exception): Update.
6495 * target.h (target_read_string): Change API.
6496 * target.c (target_read_string): Change API.
6497 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6498 Update.
6499 * solib-frv.c (frv_current_sos): Update.
6500 * solib-dsbt.c (dsbt_current_sos): Update.
6501 * solib-darwin.c (darwin_current_sos): Update.
6502 * linux-thread-db.c (inferior_has_bug): Update.
6503 * expprint.c (print_subexp_standard): Update.
6504 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6505 (ada_exception_message_1): Update.
6506
6507 2020-06-15 Tom Tromey <tromey@adacore.com>
6508
6509 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6510
6511 2020-06-15 Tom Tromey <tromey@adacore.com>
6512
6513 * valprint.c (read_string): Update comment.
6514 * target.c (MIN): Remove.
6515 (target_read_string): Rewrite.
6516
6517 2020-06-15 Tom Tromey <tromey@adacore.com>
6518
6519 * corefile.c (read_memory_string): Remove.
6520 * ada-valprint.c (ada_value_print_ptr): Update.
6521 * ada-lang.h (ada_tag_name): Change return type.
6522 * ada-lang.c (type_from_tag): Update.
6523 (ada_tag_name_from_tsd): Change return type. Use
6524 target_read_string.
6525 (ada_tag_name): Likewise.
6526 * gdbcore.h (read_memory_string): Don't declare.
6527
6528 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6529
6530 * symtab.c (rbreak_command): Ignore Windows drive colon.
6531
6532 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * NEWS: Mention removed GDBserver host support.
6535
6536 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6537
6538 * features/riscv/rebuild-csr-xml.sh: Updated.
6539
6540 2020-06-11 Tom Tromey <tom@tromey.com>
6541
6542 PR gdb/18318:
6543 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6544
6545 2020-06-09 Jonny Grant <jg@jguk.org>
6546 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6547
6548 * main.c (captured_main_1): Don't print new line after help.
6549 (print_gdb_help): add mailing list and IRC channel information
6550 to --help. Add new lines between items in the footer. Remove
6551 quotes around bug url.
6552
6553 2020-06-11 Keith Seitz <keiths@redhat.com>
6554
6555 PR gdb/21356
6556 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6557 Resolve typedefs for type length calculations.
6558
6559 2020-06-10 Tom de Vries <tdevries@suse.de>
6560
6561 PR ada/24713
6562 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6563 (write_psymbols): Enable .gdb_index for ada.
6564 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6565 ada.
6566
6567 2020-06-10 Tom de Vries <tdevries@suse.de>
6568
6569 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6570 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6571 namei" instead of "const char *name" argument.
6572 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6573 dw2_symtab_iter_init.
6574
6575 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6578 to use type::field and field::type instead.
6579
6580 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6583 to use field::type instead.
6584
6585 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * gdbtypes.h (struct field) <type, set_type>: New methods.
6588 Rename `type` field to...
6589 <m_type>: ... this. Change references throughout to use type or
6590 set_type methods.
6591 (FIELD_TYPE): Use field::type. Change call sites that modify
6592 the field's type to use field::set_type instead.
6593
6594 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6597 to use type::index_type instead.
6598
6599 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6602 methods.
6603 (TYPE_INDEX_TYPE): Use type::index_type.
6604 * gdbtypes.c (create_array_type_with_stride): Likewise.
6605
6606 2020-06-07 Tom Tromey <tom@tromey.com>
6607
6608 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6609 parameter.
6610 (generic_value_print): Update.
6611
6612 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6613
6614 Revert commit 982a38f60b0.
6615 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6616
6617 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6620 avoid use after free.
6621
6622 2020-06-05 Tom de Vries <tdevries@suse.de>
6623
6624 * NEWS: Fix typos.
6625
6626 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6627
6628 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6629 the per_bfd object.
6630 (dwarf2_read_debug_names): Likewise.
6631 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6632 object when re-using a per_bfd object with an index.
6633
6634 2020-06-03 Tom de Vries <tdevries@suse.de>
6635
6636 PR symtab/26046
6637 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6638 children for C++.
6639 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6640 DW_TAG_subprogram.
6641
6642 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6643
6644 * ada-lang.c (ada_language_data): Delete skip_trampoline
6645 initializer.
6646 * c-lang.c (c_language_data): Likewise.
6647 (cplus_language_data): Likewise.
6648 (cplus_language::skip_trampoline): New member function.
6649 (asm_language_data): Delete skip_trampoline initializer.
6650 (minimal_language_data): Likewise.
6651 * d-lang.c (d_language_data): Likewise.
6652 * f-lang.c (f_language_data): Likewise.
6653 * go-lang.c (go_language_data): Likewise.
6654 * language.c (unk_lang_trampoline): Delete function.
6655 (skip_language_trampoline): Update.
6656 (unknown_language_data): Delete skip_trampoline initializer.
6657 (auto_language_data): Likewise.
6658 * language.h (language_data): Delete skip_trampoline field.
6659 (language_defn::skip_trampoline): New function.
6660 * m2-lang.c (m2_language_data): Delete skip_trampoline
6661 initializer.
6662 * objc-lang.c (objc_skip_trampoline): Delete function, move
6663 implementation to objc_language::skip_trampoline.
6664 (objc_language_data): Delete skip_trampoline initializer.
6665 (objc_language::skip_trampoline): New member function with
6666 implementation from objc_skip_trampoline.
6667 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6668 initializer.
6669 * p-lang.c (pascal_language_data): Likewise.
6670 * rust-lang.c (rust_language_data): Likewise.
6671
6672 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6675 (ada_language::demangle): New member function.
6676 * c-lang.c (c_language_data): Delete la_demangle initializer.
6677 (cplus_language_data): Delete la_demangle initializer.
6678 (cplus_language::demangle): New member function.
6679 (asm_language_data): Delete la_demangle initializer.
6680 (minimal_language_data): Delete la_demangle initializer.
6681 * d-lang.c (d_language_data): Delete la_demangle initializer.
6682 (d_language::demangle): New member function.
6683 * f-lang.c (f_language_data): Delete la_demangle initializer.
6684 (f_language::demangle): New member function.
6685 * go-lang.c (go_language_data): Delete la_demangle initializer.
6686 (go_language::demangle): New member function.
6687 * language.c (language_demangle): Update.
6688 (unk_lang_demangle): Delete.
6689 (unknown_language_data): Delete la_demangle initializer.
6690 (unknown_language::demangle): New member function.
6691 (auto_language_data): Delete la_demangle initializer.
6692 (auto_language::demangle): New member function.
6693 * language.h (language_data): Delete la_demangle field.
6694 (language_defn::demangle): New function.
6695 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6696 * objc-lang.c (objc_language_data): Delete la_demangle
6697 initializer.
6698 (objc_language::demangle): New member function.
6699 * opencl-lang.c (opencl_language_data): Delete la_demangle
6700 initializer.
6701 * p-lang.c (pascal_language_data): Likewise.
6702 * rust-lang.c (rust_language_data): Likewise.
6703 (rust_language::demangle): New member function.
6704
6705 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6706
6707 * ada-lang.c (ada_language_data): Delete la_print_type
6708 initializer.
6709 (ada_language::print_type): New member function.
6710 * c-lang.c (c_language_data): Delete la_print_type initializer.
6711 (c_language::print_type): New member function.
6712 (cplus_language_data): Delete la_print_type initializer.
6713 (cplus_language::print_type): New member function.
6714 (asm_language_data): Delete la_print_type initializer.
6715 (asm_language::print_type): New member function.
6716 (minimal_language_data): Delete la_print_type initializer.
6717 (minimal_language::print_type): New member function.
6718 * d-lang.c (d_language_data): Delete la_print_type initializer.
6719 (d_language::print_type): New member function.
6720 * f-lang.c (f_language_data): Delete la_print_type initializer.
6721 (f_language::print_type): New member function.
6722 * go-lang.c (go_language_data): Delete la_print_type initializer.
6723 (go_language::print_type): New member function.
6724 * language.c (unk_lang_print_type): Delete.
6725 (unknown_language_data): Delete la_print_type initializer.
6726 (unknown_language::print_type): New member function.
6727 (auto_language_data): Delete la_print_type initializer.
6728 (auto_language::print_type): New member function.
6729 * language.h (language_data): Delete la_print_type field.
6730 (language_defn::print_type): New function.
6731 (LA_PRINT_TYPE): Update.
6732 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6733 (m2_language::print_type): New member function.
6734 * objc-lang.c (objc_language_data): Delete la_print_type
6735 initializer.
6736 (objc_language::print_type): New member function.
6737 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6738 to opencl_language::print_type.
6739 (opencl_language_data): Delete la_print_type initializer.
6740 (opencl_language::print_type): New member function, implementation
6741 from opencl_print_type.
6742 * p-lang.c (pascal_language_data): Delete la_print_type
6743 initializer.
6744 (pascal_language::print_type): New member function.
6745 * rust-lang.c (rust_print_type): Delete, implementation moved to
6746 rust_language::print_type.
6747 (rust_language_data): Delete la_print_type initializer.
6748 (rust_language::print_type): New member function, implementation
6749 from rust_print_type.
6750
6751 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6752
6753 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6754 implementation moves to...
6755 (ada_language::sniff_from_mangled_name): ...here. Update return
6756 type.
6757 (ada_language_data): Delete la_sniff_from_mangled_name
6758 initializer.
6759 * c-lang.c (c_language_data): Likewise.
6760 (cplus_language_data): Likewise.
6761 (cplus_language::sniff_from_mangled_name): New member function,
6762 implementation taken from gdb_sniff_from_mangled_name.
6763 (asm_language_data): Delete la_sniff_from_mangled_name
6764 initializer.
6765 (minimal_language_data): Likewise.
6766 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6767 implementation moves to cplus_language::sniff_from_mangled_name.
6768 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6769 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6770 moves to...
6771 (d_language::sniff_from_mangled_name): ...here.
6772 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6773 * f-lang.c (f_language_data): Likewise.
6774 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6775 moves to...
6776 (go_language::sniff_from_mangled_name): ...here.
6777 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6778 * language.c (language_sniff_from_mangled_name): Delete.
6779 (unknown_language_data): Delete la_sniff_from_mangled_name
6780 initializer.
6781 (auto_language_data): Likewise.
6782 * language.h (language_data): Delete la_sniff_from_mangled_name
6783 field.
6784 (language_defn::sniff_from_mangled_name): New function.
6785 (language_sniff_from_mangled_name): Delete declaration.
6786 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6787 field.
6788 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6789 implementation moves to...
6790 (objc_language::sniff_from_mangled_name): ...here.
6791 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6792 * opencl-lang.c (opencl_language_data): Likewise.
6793 * p-lang.c (pascal_language_data): Likewise.
6794 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6795 implementation moves to...
6796 (rust_language::sniff_from_mangled_name): ...here.
6797 (rust_language_data): Delete la_sniff_from_mangled_name
6798 initializer.
6799 * symtab.c (symbol_find_demangled_name): Call
6800 sniff_from_mangled_name member function.
6801
6802 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6803
6804 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6805 initializer.
6806 * c-lang.c (c_language_data): Likewise.
6807 (cplus_language_data): Likewise.
6808 (cplus_language::search_name_hash): New member function.
6809 (asm_language_data): Delete la_search_name_hash initializer.
6810 (minimal_language_data): Likewise.
6811 * d-lang.c (d_language_data): Likewise.
6812 * dictionary.c (default_search_name_hash): Rename to...
6813 (language_defn::search_name_hash): ...this.
6814 * f-lang.c (f_language_data): Likewise.
6815 (f_language::search_name_hash): New member function.
6816 * go-lang.c (go_language_data): Delete la_search_name_hash
6817 initializer.
6818 * language.c (unknown_language_data): Likewise.
6819 (auto_language_data): Likewise.
6820 * language.h (struct language_data): Delete la_search_name_hash
6821 field.
6822 (language_defn::search_name_hash): Declare new member function.
6823 (default_search_name_hash): Delete declaration.
6824 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6825 initializer.
6826 * objc-lang.c (objc_language_data): Likewise.
6827 * opencl-lang.c (opencl_language_data): Likewise.
6828 * p-lang.c (pascal_language_data): Likewise.
6829 * rust-lang.c (rust_language_data): Likewise.
6830 * symtab.c (search_name_hash): Update call.
6831
6832 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6833
6834 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6835 initializer.
6836 * c-lang.c (class compile_instance): Declare.
6837 (c_language_data): Delete la_get_compile_instance initializer.
6838 (c_language::get_compile_instance): New member function.
6839 (cplus_language_data): Delete la_get_compile_instance initializer.
6840 (cplus_language::get_compile_instance): New member function.
6841 (asm_language_data): Delete la_get_compile_instance initializer.
6842 (minimal_language_data): Likewise.
6843 * c-lang.h (c_get_compile_context): Update comment.
6844 (cplus_get_compile_context): Update comment.
6845 * compile/compile.c (compile_to_object): Update calls, don't rely
6846 on function pointer being NULL.
6847 * d-lang.c (d_language_data): Delete la_get_compile_instance
6848 initializer.
6849 * f-lang.c (f_language_data): Likewise.
6850 * go-lang.c (go_language_data): Likewise.
6851 * language.c (unknown_language_data): Likewise.
6852 (auto_language_data): Likewise.
6853 * language.h (language_data): Delete la_get_compile_instance field.
6854 (language_defn::get_compile_instance): New member function.
6855 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6856 initializer.
6857 * objc-lang.c (objc_language_data): Likewise.
6858 * opencl-lang.c (opencl_language_data): Likewise.
6859 * p-lang.c (pascal_language_data): Likewise.
6860 * rust-lang.c (rust_language_data): Likewise.
6861
6862 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * ada-lang.c (ada_add_all_symbols): Update comment.
6865 (ada_iterate_over_symbols): Delete, move implementation to...
6866 (ada_language::iterate_over_symbols): ...here, a new member
6867 function, rewrite to use range based for loop.
6868 (ada_language_data): Delete la_iterate_over_symbols initializer.
6869 * c-lang.c (c_language_data): Likewise.
6870 (cplus_language_data): Likewise.
6871 (asm_language_data): Likewise.
6872 (minimal_language_data): Likewise.
6873 * d-lang.c (d_language_data): Likewise.
6874 * f-lang.c (f_language_data): Likewise.
6875 * go-lang.c (go_language_data): Likewise.
6876 * language.c (unknown_language_data): Likewise.
6877 (auto_language_data): Likewise.
6878 * language.h (language_data): Delete la_iterate_over_symbols field.
6879 (language_defn::iterate_over_symbols): New member function.
6880 (LA_ITERATE_OVER_SYMBOLS): Update.
6881 * linespec.c (iterate_over_all_matching_symtabs): Update.
6882 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6883 initializer.
6884 * objc-lang.c (objc_language_data): Likewise.
6885 * opencl-lang.c (opencl_language_data): Likewise.
6886 * p-lang.c (pascal_language_data): Likewise.
6887 * rust-lang.c (rust_language_data): Likewise.
6888
6889 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6890
6891 * ada-lang.c (ada_language_data): Delete
6892 la_lookup_transparent_type initializer.
6893 * c-lang.c (c_language_data): Likewise.
6894 (cplus_language_data): Likewise.
6895 (cplus_language::lookup_transparent_type): New member function.
6896 (asm_language_data): Delete la_lookup_transparent_type
6897 initializer.
6898 (minimal_language_data): Likewise.
6899 * d-lang.c (d_language_data): Likewise.
6900 * f-lang.c (f_language_data): Likewise.
6901 * go-lang.c (go_language_data): Likewise.
6902 * language.c (unknown_language_data): Likewise.
6903 (auto_language_data): Likewise.
6904 * language.h (struct language_data): Delete
6905 la_lookup_transparent_type field.
6906 (language_defn::lookup_transparent_type): New member function.
6907 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6908 initializer.
6909 * objc-lang.c (objc_language_data): Likewise.
6910 * opencl-lang.c (opencl_language_data): Likewise.
6911 * p-lang.c (pascal_language_data): Likewise.
6912 * rust-lang.c (rust_language_data): Likewise.
6913 * symtab.c (symbol_matches_domain): Update call.
6914
6915 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * ada-lang.c (ada_language_arch_info): Delete function, move
6918 implementation to...
6919 (ada_language::language_arch_info): ...here, a new member
6920 function.
6921 (ada_language_data): Delete la_language_arch_info.
6922 * c-lang.c (c_language_data): Likewise.
6923 (c_language::language_arch_info): New member function.
6924 (cplus_language_arch_info): Delete function, move
6925 implementation to...
6926 (cplus_language::language_arch_info): ...here, a new member
6927 function.
6928 (cplus_language_data): Delete la_language_arch_info.
6929 (asm_language_data): Likewise.
6930 (asm_language::language_arch_info): New member function.
6931 (minimal_language_data): Delete la_language_arch_info.
6932 (minimal_language::language_arch_info): New member function.
6933 * d-lang.c (d_language_arch_info): Delete function, move
6934 implementation to...
6935 (d_language::language_arch_info): ...here, a new member
6936 function.
6937 (d_language_data): Delete la_language_arch_info.
6938 * f-lang.c (f_language_arch_info): Delete function, move
6939 implementation to...
6940 (f_language::language_arch_info): ...here, a new member
6941 function.
6942 (f_language_data): Delete la_language_arch_info.
6943 * go-lang.c (go_language_arch_info): Delete function, move
6944 implementation to...
6945 (go_language::language_arch_info): ...here, a new member
6946 function.
6947 (go_language_data): Delete la_language_arch_info.
6948 * language.c (unknown_language_data): Likewise.
6949 (unknown_language::language_arch_info): New member function.
6950 (auto_language_data): Delete la_language_arch_info.
6951 (auto_language::language_arch_info): New member function.
6952 (language_gdbarch_post_init): Update call to
6953 la_language_arch_info.
6954 * language.h (language_data): Delete la_language_arch_info
6955 function pointer.
6956 (language_defn::language_arch_info): New function.
6957 * m2-lang.c (m2_language_arch_info): Delete function, move
6958 implementation to...
6959 (m2_language::language_arch_info): ...here, a new member
6960 function.
6961 (m2_language_data): Delete la_language_arch_info.
6962 * objc-lang.c (objc_language_arch_info): Delete function, move
6963 implementation to...
6964 (objc_language::language_arch_info): ...here, a new member
6965 function.
6966 (objc_language_data): Delete la_language_arch_info.
6967 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6968 implementation to...
6969 (opencl_language::language_arch_info): ...here, a new member
6970 function.
6971 (opencl_language_data): Delete la_language_arch_info.
6972 * p-lang.c (pascal_language_arch_info): Delete function, move
6973 implementation to...
6974 (pascal_language::language_arch_info): ...here, a new member
6975 function.
6976 (pascal_language_data): Delete la_language_arch_info.
6977 * rust-lang.c (rust_language_arch_info): Delete function, move
6978 implementation to...
6979 (rust_language::language_arch_info): ...here, a new member
6980 function.
6981 (rust_language_data): Delete la_language_arch_info.
6982
6983 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6986 initializer.
6987 * c-lang.c (c_language_data): Likewise.
6988 (cplus_language_data): Likewise.
6989 (cplus_language::pass_by_reference_info): New method.
6990 (asm_language_data): Delete la_pass_by_reference initializer.
6991 (minimal_language_data): Likewise.
6992 * cp-abi.c (cp_pass_by_reference): Remove use of
6993 default_pass_by_reference.
6994 * d-lang.c (d_language_data): Likewise.
6995 * f-lang.c (f_language_data): Likewise.
6996 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6997 default_pass_by_reference.
6998 * go-lang.c (go_language_data): Likewise.
6999 * language.c (language_pass_by_reference): Update.
7000 (default_pass_by_reference): Delete.
7001 (unknown_language_data): Delete la_pass_by_reference
7002 initializer.
7003 (auto_language_data): Likewise.
7004 * language.h (struct language_data): Delete la_pass_by_reference
7005 field.
7006 (language_defn::pass_by_reference_info): New member function.
7007 (default_pass_by_reference): Delete declaration.
7008 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
7009 initializer.
7010 * objc-lang.c (objc_language_data): Likewise.
7011 * opencl-lang.c (opencl_language_data): Likewise.
7012 * p-lang.c (pascal_language_data): Likewise.
7013 * rust-lang.c (rust_language_data): Likewise.
7014
7015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * ada-lang.c (ada_read_var_value): Delete function, move
7018 implementation to...
7019 (ada_language::read_var_value): ...here.
7020 (ada_language_data): Delete la_read_var_value initializer.
7021 * c-lang.c (c_language_data): Likewise.
7022 (cplus_language_data): Likewise.
7023 (minimal_language_data): Likewise.
7024 * d-lang.c (d_language_data): Likewise.
7025 * f-lang.c (f_language_data): Likewise.
7026 * findvar.c (default_read_var_value): Rename to...
7027 (language_defn::read_var_value): ...this.
7028 * findvar.c (read_var_value): Update header comment, and change to
7029 call member function instead of function pointer.
7030 * go-lang.c (go_language_data): Likewise.
7031 * language.c (unknown_language_data): Delete la_read_var_value
7032 initializer.
7033 (auto_language_data): Likewise.
7034 * language.h (struct language_data): Delete la_read_var_value
7035 field.
7036 (language_defn::read_var_value): New member function.
7037 (default_read_var_value): Delete declaration.
7038 * m2-lang.c (m2_language_data): Delete la_read_var_value
7039 initializer.
7040 * objc-lang.c (objc_language_data): Likewise.
7041 * opencl-lang.c (opencl_language_data): Likewise.
7042 * p-lang.c (pascal_language_data): Likewise.
7043 * rust-lang.c (rust_language_data): Likewise.
7044 * value.h (default_read_var_value): Delete declaration.
7045
7046 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * ada-lang.c (ada_print_array_index): Delete function, move
7049 implementation to...
7050 (ada_language::print_array_index): ...here.
7051 (ada_language_data): Delete la_print_array_index initializer.
7052 * c-lang.c (c_language_data): Likewise.
7053 (cplus_language_data): Likewise.
7054 (minimal_language_data): Likewise.
7055 * d-lang.c (d_language_data): Likewise.
7056 * f-lang.c (f_language_data): Likewise.
7057 * go-lang.c (go_language_data): Likewise.
7058 * language.c (default_print_array_index): Delete function, move
7059 implementation to...
7060 (language_defn::print_array_index): ...here.
7061 (unknown_language_data): Delete la_print_array_index initializer.
7062 (auto_language_data): Likewise.
7063 * language.h (struct language_data): Delete la_print_array_index
7064 field.
7065 (language_defn::print_array_index): New member function.
7066 (LA_PRINT_ARRAY_INDEX): Update.
7067 (default_print_array_index): Delete declaration.
7068 * m2-lang.c (m2_language_data): Delete la_print_array_index
7069 initializer.
7070 * objc-lang.c (objc_language_data): Likewise.
7071 * opencl-lang.c (opencl_language_data): Likewise.
7072 * p-lang.c (pascal_language_data): Likewise.
7073 * rust-lang.c (rust_language_data): Likewise.
7074
7075 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * gdb/ada-lang.c (ada_language_defn): Convert to...
7078 (ada_language_data): ...this.
7079 (class ada_language): New class.
7080 (ada_language_defn): New static global.
7081 * gdb/c-lang.c (c_language_defn): Convert to...
7082 (c_language_data): ...this.
7083 (class c_language): New class.
7084 (c_language_defn): New static global.
7085 (cplus_language_defn): Convert to...
7086 (cplus_language_data): ...this.
7087 (class cplus_language): New class.
7088 (cplus_language_defn): New static global.
7089 (asm_language_defn): Convert to...
7090 (asm_language_data): ...this.
7091 (class asm_language): New class.
7092 (asm_language_defn): New static global.
7093 (minimal_language_defn): Convert to...
7094 (minimal_language_data): ...this.
7095 (class minimal_language): New class.
7096 (minimal_language_defn): New static global.
7097 * gdb/d-lang.c (d_language_defn): Convert to...
7098 (d_language_data): ...this.
7099 (class d_language): New class.
7100 (d_language_defn): New static global.
7101 * gdb/f-lang.c (f_language_defn): Convert to...
7102 (f_language_data): ...this.
7103 (class f_language): New class.
7104 (f_language_defn): New static global.
7105 * gdb/go-lang.c (go_language_defn): Convert to...
7106 (go_language_data): ...this.
7107 (class go_language): New class.
7108 (go_language_defn): New static global.
7109 * gdb/language.c (unknown_language_defn): Remove declaration.
7110 (current_language): Initialize to nullptr, real initialization is
7111 moved to _initialize_language.
7112 (languages): Delete global.
7113 (language_defn::languages): Define.
7114 (set_language_command): Use language_defn::languages.
7115 (set_language): Likewise.
7116 (range_error): Likewise.
7117 (language_enum): Likewise.
7118 (language_def): Likewise.
7119 (add_set_language_command): Use language_def::languages for the
7120 language list, and language_def to lookup language pointers.
7121 (skip_language_trampoline): Use language_defn::languages.
7122 (unknown_language_defn): Convert to...
7123 (unknown_language_data): ...this.
7124 (class unknown_language): New class.
7125 (unknown_language_defn): New static global.
7126 (auto_language_defn): Convert to...
7127 (auto_language_data): ...this.
7128 (class auto_language): New class.
7129 (auto_language_defn): New static global.
7130 (language_gdbarch_post_init): Use language_defn::languages.
7131 (_initialize_language): Initialize current_language.
7132 * gdb/language.h (struct language_defn): Rename to...
7133 (struct language_data): ...this.
7134 (struct language_defn): New.
7135 (auto_language_defn): Delete.
7136 (unknown_language_defn): Delete.
7137 (minimal_language_defn): Delete.
7138 (ada_language_defn): Delete.
7139 (asm_language_defn): Delete.
7140 (c_language_defn): Delete.
7141 (cplus_language_defn): Delete.
7142 (d_language_defn): Delete.
7143 (f_language_defn): Delete.
7144 (go_language_defn): Delete.
7145 (m2_language_defn): Delete.
7146 (objc_language_defn): Delete.
7147 (opencl_language_defn): Delete.
7148 (pascal_language_defn): Delete.
7149 (rust_language_defn): Delete.
7150 * gdb/m2-lang.c (m2_language_defn): Convert to...
7151 (m2_language_data): ...this.
7152 (class m2_language): New class.
7153 (m2_language_defn): New static global.
7154 * gdb/objc-lang.c (objc_language_defn): Convert to...
7155 (objc_language_data): ...this.
7156 (class objc_language): New class.
7157 (objc_language_defn): New static global.
7158 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7159 (opencl_language_data): ...this.
7160 (class opencl_language): New class.
7161 (opencl_language_defn): New static global.
7162 * gdb/p-lang.c (pascal_language_defn): Convert to...
7163 (pascal_language_data): ...this.
7164 (class pascal_language): New class.
7165 (pascal_language_defn): New static global.
7166 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7167 language pointer, update comment format.
7168 * gdb/rust-lang.c (rust_language_defn): Convert to...
7169 (rust_language_data): ...this.
7170 (class rust_language): New class.
7171 (rust_language_defn): New static global.
7172
7173 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7174
7175 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7176 member variable.
7177 <m_stmt_at_address>: New member variable.
7178 (lnp_state_machine::record_line): Don't record some lines, update
7179 tracking of is_stmt at the same address.
7180 (lnp_state_machine::lnp_state_machine): Initialise new member
7181 variables.
7182
7183 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7184
7185 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7186 "-include gnu-nat-mig.h".
7187 * gnu-nat-mig.h: New file.
7188 * gnu-nat.c: Include "gnu-nat-mig.h".
7189 (exc_server, msg_reply_server, notify_server,
7190 process_reply_server): Remove declarations.
7191
7192 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7193
7194 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7195 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7196 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7197 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7198 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7199 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7200 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7201 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7202 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7203 to gnu_nat_target class.
7204 * gnu-nat.c: Likewise.
7205 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7206 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7207 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7208 object.
7209 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7210 instead of `gnu_target'.
7211
7212 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7213
7214 * i386-gnu-tdep.c: Include "gdbcore.h"
7215 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7216 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7217 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7218 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7219 i386_gnu_sigcontext_addr): New functions
7220 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7221 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7222 tdep.
7223
7224 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7225
7226 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7227 before fork_inferior call. Avoid calling it if target_is_pushed returns
7228 true.
7229
7230 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7231
7232 * gnu-nat.h (gnu_target): New variable declaration.
7233 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7234 gnu_target.
7235 * gnu-nat.c (gnu_target): New variable.
7236 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7237 add_thread_silent, and add_thread calls.
7238 (gnu_nat_target::create_inferior): Pass gnu_target to
7239 add_thread_silent, thread_change_ptid call.
7240 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7241 call.
7242
7243 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7244
7245 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7246 (gnu_nat_target::find_memory_regions): Remove unused
7247 `old_address' variable.
7248
7249 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7250
7251 * gnu-nat.c: Include "gdbarch.h".
7252
7253 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7254
7255 * reply_mig_hack.awk (Error return): Cast function through
7256 void *, to bypass compiler function call check.
7257
7258 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7259
7260 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7261 $(srcdir)/reply_mig_hack.awk.
7262
7263 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7264
7265 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7266
7267 2020-05-30 Jonny Grant <jg@jguk.org>
7268
7269 * configure.ac (ACX_BUGURL): change bug URL to https.
7270
7271 2020-05-30 Pedro Alves <palves@redhat.com>
7272
7273 * cp-support.c (replace_typedefs_template): New.
7274 (replace_typedefs_qualified_name): Handle
7275 DEMANGLE_COMPONENT_TEMPLATE.
7276
7277 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7280 dwarf2/index-cache.h, dwarf2/index-write.c,
7281 dwarf2/index-write.h, dwarf2/line-header.c,
7282 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7283 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7284 variables and fields from `dwarf2_per_objfile` to just
7285 `per_objfile` throughout.
7286
7287 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7290 <push_dwarf_reg_entry_value>: Add comment.
7291
7292 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7293 Keith Seitz <keiths@redhat.com>
7294
7295 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7296 instead of PyEval_ReleaseLock.
7297 (class gdbpy_gil): Move to earlier in file.
7298 (finalize_python): Set gdb_python_initialized.
7299 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7300 when not initialized.
7301
7302 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7305 <push_dwarf_reg_entry_value>: Remove assert. Override
7306 per_objfile with caller_per_objfile.
7307
7308 2020-05-28 Tom de Vries <tdevries@suse.de>
7309
7310 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7311 PR gold/15646 workaround to symbol kind "type".
7312
7313 2020-05-27 Tom Tromey <tromey@adacore.com>
7314
7315 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7316
7317 2020-05-27 Tom Tromey <tromey@adacore.com>
7318
7319 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7320 Use htab_find_with_hash.
7321 <add_abbrev>: Remove "abbrev_number" parameter.
7322 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7323 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7324 (hash_abbrev): Add comment.
7325 (abbrev_table::lookup_abbrev): Move to header file.
7326 (abbrev_table::read): Update.
7327
7328 2020-05-27 Tom Tromey <tromey@adacore.com>
7329
7330 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7331 method.
7332 <canonical_name>: New member.
7333 <raw_name>: Rename from "name".
7334 (partial_die_info): Initialize canonical_name.
7335 (scan_partial_symbols): Check raw_name.
7336 (partial_die_parent_scope, partial_die_full_name)
7337 (add_partial_symbol, add_partial_subprogram)
7338 (add_partial_enumeration, load_partial_dies): Use "name" method.
7339 (partial_die_info::name): New method.
7340 (partial_die_info::read, guess_partial_die_structure_name)
7341 (partial_die_info::fixup): Update.
7342
7343 2020-05-27 Tom Tromey <tromey@adacore.com>
7344
7345 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7346 <get_ref_die_offset>: Inline.
7347 <get_ref_die_offset_complaint>: New method.
7348 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7349 (attribute::get_ref_die_offset_complaint): Rename from
7350 get_ref_die_offset. Just issue complaint.
7351
7352 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7353
7354 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7355
7356 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7357
7358 * exec.c (exec_file_attach): Use errno value of first openp failure.
7359
7360 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7361
7362 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7363 Don't close thread handle.
7364
7365 2020-05-27 Tom Tromey <tom@tromey.com>
7366 Simon Marchi <simon.marchi@efficios.com>
7367
7368 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7369 shared_ptr.
7370 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7371 member.
7372 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7373 dwarf2_per_bfd_objfile_data_key>: New globals.
7374 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7375 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7376 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7377 shared.
7378 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7379 short-circuit when sharing.
7380 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7381 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7382
7383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7386 to...
7387 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7388 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7389
7390 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7393 build_name_components, find_name_components_bounds>:
7394 Add per_objfile parameter.
7395 (struct mapped_index) <symbol_name_at>: Likewise.
7396 (struct mapped_debug_names): Remove constructor.
7397 <dwarf2_per_objfile>: Remove field.
7398 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7399 (mapped_index_base::find_name_components_bounds,
7400 mapped_index_base::build_name_components,
7401 dw2_expand_symtabs_matching_symbol): Likewise.
7402 (class mock_mapped_index) <symbol_name_at>: Likewise.
7403 (check_match): Likewise.
7404 (check_find_bounds_finds): Likewise.
7405 (test_mapped_index_find_name_component_bounds): Update.
7406 (CHECK_MATCH): Update.
7407 (dw2_expand_symtabs_matching): Update.
7408 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7409 per_objfile parameter.
7410 <find_vec_in_debug_names>: Likewise.
7411 <m_per_objfile>: New field.
7412 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7413 parameter.
7414 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7415 (dw2_debug_names_iterator::next): Update.
7416 (dw2_debug_names_lookup_symbol): Update.
7417 (dw2_debug_names_expand_symtabs_for_function): Update.
7418 (dw2_debug_names_map_matching_symbols): Update.
7419 (dw2_debug_names_expand_symtabs_matching): Update.
7420 (dwarf2_read_debug_names): Update.
7421
7422 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7423
7424 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7425 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7426 move to dwarf2_per_objfile.
7427 <read_in_chain>: Remove.
7428 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7429 remove_all_cus, age_comp_units>: New methods.
7430 <m_dwarf2_cus>: New member.
7431 (struct dwarf2_per_cu_data) <cu>: Remove.
7432 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7433 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7434 moved to methods of dwarf2_per_objfile.
7435 (dwarf2_clear_marks): Remove.
7436 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7437 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7438 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7439 (dwarf2_per_objfile::remove_all_cus): New.
7440 (class free_cached_comp_units) <~free_cached_comp_units>:
7441 Update.
7442 (load_cu): Update.
7443 (dw2_do_instantiate_symtab): Adjust.
7444 (fill_in_sig_entry_from_dwo_entry): Adjust.
7445 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7446 (cutu_reader::cutu_reader): Likewise.
7447 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7448 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7449 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7450 and dwarf2_per_objfile::age_comp_units.
7451 (load_partial_comp_unit): Update.
7452 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7453 (process_queue): Likewise.
7454 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7455 backlink.
7456 (dwarf2_read_addr_index): Likewise.
7457 (follow_die_offset): Likewise.
7458 (dwarf2_fetch_die_loc_sect_off): Likewise.
7459 (dwarf2_fetch_constant_bytes): Likewise.
7460 (dwarf2_fetch_die_type_sect_off): Likewise.
7461 (follow_die_sig_1): Likewise.
7462 (load_full_type_unit): Likewise.
7463 (read_signatured_type): Likewise.
7464 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7465 (dwarf2_cu::~dwarf2_cu): Remove.
7466 (dwarf2_per_objfile::get_cu): New.
7467 (dwarf2_per_objfile::set_cu): New.
7468 (age_cached_comp_units): Rename to...
7469 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7470 to std::unordered_map.
7471 (free_one_cached_comp_unit): Rename to...
7472 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7473 to std::unordered_map.
7474 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7475 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7476 a dwarf2_per_objfile in data.
7477 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7478 (dwarf2_clear_marks): Remove.
7479
7480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7483 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7484 (init_tu_and_read_dwo_dies): Likewise.
7485 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7486 (cutu_reader::cutu_reader): Likewise.
7487 (load_partial_comp_unit): Likewise.
7488 (process_psymtab_comp_unit): Update.
7489 (build_type_psymtabs_1): Update.
7490 (process_skeletonless_type_unit): Update.
7491 (load_full_comp_unit): Update.
7492 (find_partial_die): Update.
7493 (dwarf2_read_addr_index): Update.
7494 (read_signatured_type): Update.
7495
7496 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7497
7498 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7499 m_header_read_in>: New fields.
7500 <get_header>: New method.
7501 * dwarf2/read.c (per_cu_header_read_in): Remove.
7502 (dwarf2_per_cu_data::get_header): New.
7503 (dwarf2_per_cu_data::addr_size): Update.
7504 (dwarf2_per_cu_data::offset_size): Update.
7505 (dwarf2_per_cu_data::ref_addr_size): Update.
7506
7507 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7508
7509 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7510 (dw2_do_instantiate_symtab): Update.
7511 (queue_and_load_all_dwo_tus): Change parameter from
7512 dwarf2_per_cu_data to dwarf2_cu.
7513 (dwarf2_fetch_die_loc_sect_off): Update.
7514 (dwarf2_fetch_constant_bytes): Update.
7515 (dwarf2_fetch_die_type_sect_off): Update.
7516
7517 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7518
7519 * dwarf2/read.c (process_full_comp_unit,
7520 process_full_type_unit): Remove per_cu, per_objfile paramters.
7521 Add dwarf2_cu parameter.
7522 (process_queue): Update.
7523
7524 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7525
7526 * dwarf2/read.c (create_cu_from_index_list): Replace
7527 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7528 (create_cus_from_index_list): Likewise.
7529 (create_cus_from_index): Likewise.
7530 (create_signatured_type_table_from_index): Likewise.
7531 (create_cus_from_debug_names_list): Likewise.
7532 (create_cus_from_debug_names): Likewise.
7533 (dwarf2_read_gdb_index): Update.
7534 (dwarf2_read_debug_names): Update.
7535
7536 2020-05-27 Tom Tromey <tom@tromey.com>
7537 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * dwarf2/read.h (struct dwarf2_per_objfile)
7540 <get_type_for_signatured_type, set_type_for_signatured_type>:
7541 New methods.
7542 <m_type_map>: New member.
7543 (struct signatured_type) <type>: Remove.
7544 * dwarf2/read.c
7545 (dwarf2_per_objfile::get_type_for_signatured_type,
7546 dwarf2_per_objfile::set_type_for_signatured_type): New.
7547 (get_signatured_type): Use new methods.
7548
7549 2020-05-27 Tom Tromey <tom@tromey.com>
7550 Simon Marchi <simon.marchi@efficios.com>
7551
7552 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7553 (struct dwarf2_per_objfile) <type_units>: New member.
7554 <get_type_unit_group_unshareable>: New method.
7555 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7556 num_symtabs, symtabs>: Remove; move to
7557 type_unit_group_unshareable.
7558 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7559 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7560 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7561
7562 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7563
7564 * dwarf2/read.h (struct dwarf2_per_cu_data):
7565 <dwarf2_per_objfile>: Remove.
7566 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7567 dwarf2_per_objfile.
7568 (create_signatured_type_table_from_index): Likewise.
7569 (create_signatured_type_table_from_debug_names): Likewise.
7570 (create_debug_type_hash_table): Likewise.
7571 (fill_in_sig_entry_from_dwo_entry): Likewise.
7572 (create_type_unit_group): Likewise.
7573 (read_comp_units_from_section): Likewise.
7574 (create_cus_hash_table): Likewise.
7575
7576 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7577
7578 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7579 dwarf2_per_cu_data::dwarf2_per_objfile.
7580 (compute_compunit_symtab_includes): Likewise.
7581 (dwarf2_cu::start_symtab): Likewise.
7582
7583 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7584
7585 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7586 parameter.
7587 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7588 (read_namespace_alias): Update.
7589 (lookup_die_type): Update.
7590 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7591 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7592 Update.
7593 (disassemble_dwarf_expression): Update.
7594
7595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * dwarf2/read.h (struct dwarf2_queue_item): Add
7598 dwarf2_per_objfile parameter, assign new parameter.
7599 <per_objfile>: New field.
7600 * dwarf2/read.c (free_one_cached_comp_unit): Add
7601 dwarf2_per_objfile parameter.
7602 (queue_comp_unit): Likewise.
7603 (dw2_do_instantiate_symtab): Update.
7604 (process_psymtab_comp_unit): Update.
7605 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7606 (process_imported_unit_die): Update.
7607 (queue_and_load_dwo_tu): Update.
7608 (follow_die_offset): Update.
7609 (follow_die_sig_1): Update.
7610
7611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7614 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7615 (read_call_site_scope): Assign per_objfile.
7616 (dwarf2_per_cu_data::objfile): Remove.
7617 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7618 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7619 dwarf2_per_objfile parameter.
7620 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7621 dwarf2_per_objfile parameter.
7622 (dwarf_expr_reg_to_entry_parameter): Add output
7623 dwarf2_per_objfile parameter.
7624 (locexpr_get_frame_base): Update.
7625 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7626 <push_dwarf_reg_entry_value>: Update.
7627 <call_site_to_target_addr>: Update.
7628 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7629 parameter.
7630 (value_of_dwarf_reg_entry): Update.
7631 (rw_pieced_value): Update.
7632 (indirect_synthetic_pointer): Update.
7633 (dwarf2_evaluate_property): Update.
7634 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7635 parameter.
7636 (locexpr_read_variable): Update.
7637 (locexpr_get_symbol_read_needs): Update.
7638 (loclist_read_variable): Update.
7639
7640 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7643 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7644 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7645 parameter.
7646 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7647 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7648 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7649 parameter.
7650 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7651 sect_variable_value): Add dwarf2_per_objfile parameter.
7652 (class dwarf_evaluate_loc_desc) <dwarf_call,
7653 dwarf_variable_value>: Update.
7654 (fetch_const_value_from_synthetic_pointer): Add
7655 dwarf2_per_objfile parameter.
7656 (fetch_const_value_from_synthetic_pointer): Update.
7657 (coerced_pieced_ref): Update.
7658 (class symbol_needs_eval_context) <dwarf_call,
7659 dwarf_variable_value>: Update.
7660 (dwarf2_compile_expr_to_ax): Update.
7661
7662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7665 parameter.
7666 (dwarf2_evaluate_loc_desc_full): Update.
7667
7668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7671 parameter.
7672 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7673 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7674 dwarf2_per_objfile parameter.
7675 (decode_debug_loc_dwo_addresses): Likewise.
7676 (dwarf2_find_location_expression): Update.
7677 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7678 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7679 parameter.
7680 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7681 parameter.
7682 (locexpr_describe_location_1): Likewise.
7683 (locexpr_describe_location): Update.
7684
7685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7688 Remove.
7689 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7690 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7691 (dwarf2_compile_property_to_c): Update.
7692 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7693 use text offset from objfile.
7694 (locexpr_tracepoint_var_ref): Update.
7695 (locexpr_generate_c_location): Update.
7696 (loclist_describe_location): Update.
7697 (loclist_tracepoint_var_ref): Update.
7698 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7699 dwarf2_per_objfile parameter.
7700 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7701 use text offset from objfile.
7702 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7703
7704 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * dwarf2/expr.h (struct dwarf_expr_context)
7707 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7708 <offset>: Remove.
7709 <per_objfile>: New member.
7710 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7711 dwarf2_per_objfile parameter. Don't set offset, set
7712 per_objfile.
7713 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7714 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7715 a dwarf2_per_objfile object instead of an offset.
7716 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7717 constructor.
7718 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7719 to dwarf2_expr_executor constructor. Don't set offset.
7720 (dwarf2_fetch_cfa_info): Update.
7721 (struct dwarf2_frame_cache) <text_offset>: Remove.
7722 <per_objfile>: New field.
7723 (dwarf2_frame_cache): Update.
7724 (dwarf2_frame_prev_register): Update.
7725 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7726 <dwarf_evaluate_loc_desc>: Add constructor.
7727 (dwarf2_evaluate_loc_desc_full): Update.
7728 (dwarf2_locexpr_baton_eval): Update.
7729 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7730 Add constructor.
7731 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7732
7733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7734
7735 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7736 addr_sized_int_type>: Move to dwarf2_cu.
7737 <int_type>: Move to dwarf2_per_objfile.
7738 (struct dwarf2_per_objfile) <int_type>: Move here.
7739 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7740 addr_sized_int_type>: Move here.
7741 (read_func_scope): Update.
7742 (read_array_type): Update.
7743 (read_tag_string_type): Update.
7744 (attr_to_dynamic_prop): Update.
7745 (dwarf2_per_cu_data::int_type): Rename to...
7746 (dwarf2_per_objfile::int_type): ... this.
7747 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7748 (dwarf2_cu::addr_sized_int_type): ... this.
7749 (read_subrange_type): Update.
7750 (dwarf2_per_cu_data::addr_type): Rename to...
7751 (dwarf2_cu::addr_type): ... this.
7752 (set_die_type): Update.
7753
7754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7755
7756 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7757 data through per_cu->cu.
7758
7759 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7760
7761 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7762 dwarf2_per_cu_data parameter fo dwarf2_cu.
7763 (lookup_dwo_type_unit): Likewise.
7764 (read_cutu_die_from_dwo): Likewise.
7765 (lookup_dwo_unit): Likewise.
7766 (open_and_init_dwo_file): Likewise.
7767 (lookup_dwo_cutu): Likewise.
7768 (lookup_dwo_comp_unit): Likewise.
7769 (lookup_dwo_type_unit): Likewise.
7770 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7771 (cutu_reader::cutu_reader): Update.
7772
7773 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7776 parameter.
7777 (process_full_type_unit): Likewise.
7778 (process_queue): Update.
7779
7780 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * dwarf2/read.c (recursively_compute_inclusions): Add
7783 dwarf2_per_objfile parameter.
7784 (compute_compunit_symtab_includes): Likewise.
7785 (process_cu_includes): Update.
7786
7787 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7790 parameter.
7791 (create_type_unit_group): Update.
7792 (process_psymtab_comp_unit_reader): Update.
7793 (build_type_psymtabs_reader): Update.
7794
7795 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7798 object through m_this_cu->cu.
7799
7800 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7801
7802 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7803 the info parameter.
7804 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7805
7806 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7807
7808 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7809 per_objfile parameter.
7810 (load_full_type_unit): Add per_objfile parameter.
7811 (read_signatured_type): Likewise.
7812 (load_full_comp_unit): Likewise.
7813 (load_cu): Likewise.
7814 (dw2_do_instantiate_symtab): Likewise.
7815 (dw2_get_file_names): Likewise.
7816 (dw2_map_symtabs_matching_filename): Update.
7817 (dw_expand_symtabs_matching_file_matcher): Update.
7818 (dw2_map_symbol_filenames): Update.
7819 (process_psymtab_comp_unit): Add per_objfile parameter.
7820 (build_type_psymtabs_1): Update.
7821 (process_skeletonless_type_unit): Update.
7822 (dwarf2_build_psymtabs_hard): Update.
7823 (load_partial_comp_unit): Add per_objfile parameter.
7824 (scan_partial_symbols): Update.
7825 (load_full_comp_unit): Add per_objfile parameter.
7826 (process_imported_unit_die): Update.
7827 (create_cus_hash_table): Update.
7828 (find_partial_die): Update.
7829 (dwarf2_read_addr_index): Update.
7830 (follow_die_offset): Update.
7831 (dwarf2_fetch_die_loc_sect_off): Update.
7832 (dwarf2_fetch_constant_bytes): Update.
7833 (dwarf2_fetch_die_type_sect_off): Update.
7834 (follow_die_sig_1): Update.
7835 (load_full_type_unit): Add per_objfile parameter.
7836 (read_signatured_type): Likewise.
7837
7838 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7841 of objfile_name.
7842
7843 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7844
7845 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7846 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7847 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7848 field.
7849 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7850 (create_cus_from_index): Update.
7851 (dwarf2_read_gdb_index): Update.
7852 (create_cus_from_debug_names): Update.
7853 (dwarf2_read_debug_names): Update.
7854 (get_abbrev_section_for_cu): Update.
7855 (create_all_comp_units): Update.
7856 (read_attribute_value): Update.
7857 (get_debug_line_section): Update.
7858 * dwarf2/index-cache.c (index_cache::store): Update.
7859 * dwarf2/index-write.c (save_gdb_index_command): Update.
7860 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7861
7862 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7863
7864 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7865 member.
7866 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7867 dwarf2_per_cu_data::per_bfd.
7868 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7869 (create_type_unit_group): Likewise.
7870 (queue_comp_unit): Remove reference to
7871 per_cu->dwarf2_per_objfile.
7872 (maybe_queue_comp_unit): Likewise.
7873 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7874 (create_cus_hash_table): Assign new field.
7875
7876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * dwarf2/read.c: Replace
7879 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7880 dwarf2_cu->per_objfile throughout.
7881
7882 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7885 parameter, don't use per_cu->dwarf2_per_objfile.
7886 (dw2_instantiate_symtab): Likewise.
7887 (dw2_find_last_source_symtab): Update.
7888 (dw2_map_expand_apply): Update.
7889 (dw2_lookup_symbol): Update.
7890 (dw2_expand_symtabs_for_function): Update.
7891 (dw2_expand_all_symtabs): Update.
7892 (dw2_expand_symtabs_with_fullname): Update.
7893 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7894 don't use per_cu->dwarf2_per_objfile.
7895 (dw2_expand_marked_cus): Update.
7896 (dw2_find_pc_sect_compunit_symtab): Update.
7897 (dw2_debug_names_lookup_symbol): Update.
7898 (dw2_debug_names_expand_symtabs_for_function): Update.
7899 (dw2_debug_names_map_matching_symbols): Update.
7900 (dwarf2_psymtab::expand_psymtab): Update.
7901
7902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7903
7904 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7905 <per_objfile>: New member.
7906 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7907 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7908 call to dwarf2_cu.
7909 (cutu_reader::cutu_reader): Update.
7910 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7911
7912 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7913
7914 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7915 struct dwarf2_per_objfile.
7916 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7917 dwarf2_per_bfd.
7918 * dwarf2/read.c (set_die_type): Update.
7919 (get_die_type_at_offset): Update.
7920
7921 2020-05-27 Tom Tromey <tom@tromey.com>
7922 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7925 method.
7926 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7927 get_symtab, set_symtab>: New methods.
7928 <m_symtabs>: New field.
7929 (struct dwarf2_psymtab): Derive from partial_symtab.
7930 <readin_p, get_compunit_symtab>: Declare methods.
7931 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7932 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7933 New methods.
7934 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7935 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7936 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7937 (dw2_symtab_iter_next, dw2_print_stats)
7938 (dw2_expand_symtabs_with_fullname)
7939 (dw2_expand_symtabs_matching_one)
7940 (dw_expand_symtabs_matching_file_matcher)
7941 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7942 (dw2_debug_names_iterator::next)
7943 (dw2_debug_names_map_matching_symbols)
7944 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7945 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7946 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7947 New methods.
7948 (get_compunit_symtab, process_full_comp_unit)
7949 (process_full_type_unit): Update.
7950 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7951
7952 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7953
7954 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7955 then introduce a new dwarf2_per_objfile type.
7956 <read_line_string>: Move to the new dwarf2_per_objfile type.
7957 <objfile>: Likewise.
7958 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7959 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7960 dwarf2_per_objfile->per_bfd.
7961 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7962 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7963 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7964 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7965 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7966 (dwarf2_per_objfile::locate_sections): Rename to...
7967 (dwarf2_per_bfd::locate_sections): ... this.
7968 (dwarf2_per_objfile::get_cutu): Rename to...
7969 (dwarf2_per_bfd::get_cutu): ... this.
7970 (dwarf2_per_objfile::get_cu): Rename to...
7971 (dwarf2_per_bfd::get_cu): ... this.
7972 (dwarf2_per_objfile::get_tu): Rename to...
7973 (dwarf2_per_bfd::get_tu): ... this.
7974 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7975 (dwarf2_per_bfd::allocate_per_cu): ... this.
7976 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7977 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7978 (get_gdb_index_contents_ftype): Change parameter from
7979 dwarf2_per_objfile to dwarf2_per_bfd.
7980 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7981 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7982
7983 2020-05-27 Tom Tromey <tom@tromey.com>
7984 Simon Marchi <simon.marchi@efficios.com>
7985
7986 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7987 (allocate_piece_closure): Set "per_objfile" member.
7988 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7989 (locexpr_describe_location, loclist_describe_location): Use new
7990 member.
7991 * dwarf2/read.c (read_call_site_scope)
7992 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7993 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7994 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7995 handle_data_member_location): Set per_objfile member.
7996 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7997 member.
7998 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7999
8000 2020-05-27 Tom Tromey <tom@tromey.com>
8001
8002 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
8003 allocate_signatured_type>: Declare new methods.
8004 <m_num_psymtabs>: New member.
8005 (struct dwarf2_per_cu_data) <index>: New member.
8006 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
8007 (dwarf2_per_objfile::allocate_signatured_type): New methods.
8008 (create_cu_from_index_list): Use allocate_per_cu.
8009 (create_signatured_type_table_from_index)
8010 (create_signatured_type_table_from_debug_names)
8011 (create_debug_type_hash_table, add_type_unit)
8012 (read_comp_units_from_section): Use allocate_signatured_type.
8013
8014 2020-05-27 Tom Tromey <tom@tromey.com>
8015
8016 * psymtab.c (partial_map_expand_apply)
8017 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
8018 (psym_lookup_global_symbol_language)
8019 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8020 (psym_print_stats, psym_expand_symtabs_for_function)
8021 (psym_map_symbol_filenames, psym_map_matching_symbols)
8022 (psym_expand_symtabs_matching)
8023 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8024 (maintenance_check_psymtabs): Update.
8025 * psympriv.h (struct partial_symtab) <readin_p,
8026 get_compunit_symtab>: Add objfile parameter.
8027 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
8028 Likewise.
8029 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
8030 get_compunit_symtab>: Likewise.
8031 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
8032
8033 2020-05-27 Tom Tromey <tom@tromey.com>
8034
8035 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
8036 member.
8037 * dwarf2/read.c (delete_file_name_entry): Fix comment.
8038 (create_cu_from_index_list)
8039 (create_signatured_type_table_from_index)
8040 (create_signatured_type_table_from_debug_names)
8041 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
8042 (dwarf2_create_include_psymtab)
8043 (create_debug_type_hash_table, add_type_unit)
8044 (create_type_unit_group, read_comp_units_from_section)
8045 (dwarf2_compute_name, create_cus_hash_table)
8046 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8047 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8048 obstack.
8049 (dw2_get_real_path): Likewise. Change argument to
8050 dwarf2_per_objfile.
8051
8052 2020-05-27 Luis Machado <luis.machado@linaro.org>
8053
8054 PR tdep/26000
8055 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8056 for ldrd (immediate).
8057
8058 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8059
8060 * command.h: Add comment giving the name of class_tui.
8061 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8062 create the fake command for the help for class_tui.
8063
8064 2020-05-26 Tom Tromey <tromey@adacore.com>
8065
8066 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8067 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8068 (val_atr): New function.
8069 (value_val_atr): Use it.
8070 * ada-valprint.c (print_optional_low_bound): Change low bound
8071 handling for enums.
8072 (val_print_packed_array_elements): Don't call discrete_position.
8073 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8074 discrete_position for enum types.
8075 * language.c (default_print_array_index): Change type.
8076 * language.h (struct language_defn) <la_print_array_index>: Add
8077 index_type parameter, change type of index_value.
8078 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8079 (default_print_array_index): Update.
8080 * valprint.c (maybe_print_array_index): Don't call
8081 value_from_longest. Update.
8082 (value_print_array_elements): Don't call discrete_position.
8083
8084 2020-05-26 Tom Tromey <tromey@adacore.com>
8085
8086 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8087 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8088
8089 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8090
8091 PR gdb/13519
8092 * avr-tdep.c (avr_integer_to_address): Return data or code
8093 address accordingly to the second 'type' argument of the
8094 function.
8095
8096 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8097
8098 * infcmd.c, inferior.h: (construct_inferior_arguments):
8099 Moved function from here to gdbsupport/common-inferior.{h,cc}
8100
8101 2020-05-23 Tom Tromey <tom@tromey.com>
8102
8103 Revert commit eca1f90c:
8104 * NEWS: Remove entry for completion styling.
8105 * completer.c (_rl_completion_prefix_display_length): Move
8106 declaration later.
8107 (gdb_fnprint): Revert.
8108 (gdb_display_match_list_1): Likewise.
8109 * cli/cli-style.c (completion_prefix_style)
8110 (completion_difference_style, completion_suffix_style): Remove.
8111 (_initialize_cli_style): Revert.
8112 * cli/cli-style.h (completion_prefix_style)
8113 (completion_difference_style, completion_suffix_style): Don't
8114 declare.
8115
8116 2020-05-24 Pedro Alves <palves@redhat.com>
8117
8118 * symtab.c (completion_list_add_name): Return boolean indication
8119 of whether the symbol matched.
8120 (completion_list_add_symbol): Don't try to remove C++ aliases if
8121 the symbol didn't match in the first place.
8122 * symtab.h (completion_list_add_name): Return bool.
8123
8124 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8125
8126 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8127 type::field.
8128
8129 2020-05-23 Joel Brobecker <brobecker@adacore.com>
8130
8131 GDB 9.2 released.
8132
8133 2020-05-23 Tom Tromey <tom@tromey.com>
8134
8135 * NEWS: Add entry for completion styling.
8136 * completer.c (_rl_completion_prefix_display_length): Move
8137 declaration earlier.
8138 (gdb_fnprint): Use completion_style.
8139 (gdb_display_match_list_1): Likewise.
8140 * cli/cli-style.c (completion_prefix_style)
8141 (completion_difference_style, completion_suffix_style): New
8142 globals.
8143 (_initialize_cli_style): Register new globals.
8144 * cli/cli-style.h (completion_prefix_style)
8145 (completion_difference_style, completion_suffix_style): Declare.
8146
8147 2020-05-23 Pedro Alves <palves@redhat.com>
8148
8149 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8150 (parse_escape): Use ISDIGIT instead of isdigit.
8151 (puts_debug): Use gdb_isprint instead of isprint.
8152 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8153 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8154 ISSPACE instead of isspace.
8155 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8156 instead of isspace.
8157 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8158 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8159 instead of isxdigit and ISDIGIT instead of isdigit.
8160
8161 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * gdbtypes.h (struct type) <field>: New method.
8164 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8165 or type::field.
8166
8167 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8170 (TYPE_FIELDS): Use type::fields. Change all call sites that
8171 modify the propery to use type::set_fields instead.
8172
8173 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8174
8175 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8176 type::num_fields instead.
8177
8178 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
8179
8180 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8181 methods.
8182 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8183 that modify the number of fields to use type::set_num_fields
8184 instead.
8185
8186 2020-05-22 Tom Tromey <tromey@adacore.com>
8187
8188 * compile/compile-object-load.h (munmap_list_free): Don't
8189 declare.
8190
8191 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8192
8193 * annotate.c (annotate_source_line): Update return type, add call
8194 to update current symtab and line.
8195 * annotate.h (annotate_source_line): Update return type, and
8196 extend header comment.
8197 * source.c (info_line_command): Check annotation_level before
8198 calling annotate_source_line.
8199 * stack.c (print_frame_info): If calling annotate_source_line
8200 returns true, then don't print any other source line information.
8201
8202 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8203
8204 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8205
8206 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * coffread.c (patch_type): Remove NULL check before xfree.
8209 * corefile.c (set_gnutarget): Likewise.
8210 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8211 * exec.c (build_section_table): Likewise.
8212 * remote.c (remote_target::pass_signals): Likewise.
8213 * utils.c (n_spaces): Likewise.
8214 * cli/cli-script.c (document_command): Likewise.
8215 * i386-windows-tdep.c (core_process_module_section): Likewise.
8216 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8217
8218 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * symfile.c (reread_symbols): Clear objfile's section_offsets
8221 vector and section indices, re-compute them by calling
8222 sym_offsets.
8223
8224 2020-05-20 Tom Tromey <tromey@adacore.com>
8225
8226 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8227 (desc_one_bound, desc_index_type): Compute field name.
8228
8229 2020-05-20 Tom de Vries <tdevries@suse.de>
8230
8231 PR symtab/25833
8232 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8233
8234 2020-05-20 Alan Modra <amodra@gmail.com>
8235
8236 PR 25993
8237 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8238 bfd_set_filename.
8239 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8240 passed to bfd_set_filename.
8241 * symfile-mem.c (add_vsyscall_page): Likewise for string
8242 passed to symbol_file_add_from_memory.
8243 (symbol_file_add_from_memory): Make name param a const char* and
8244 don't strdup.
8245
8246 2020-05-20 Alan Modra <amodra@gmail.com>
8247
8248 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8249 rather than accessing bfd->filename directly.
8250 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8251 and use bfd_section_name.
8252 * dwarf2/frame.c (decode_frame_entry): Likewise.
8253 * exec.c (exec_set_section_address): Likewise.
8254 * solib-aix.c (solib_aix_bfd_open): Likewise.
8255 * stap-probe.c (get_stap_base_address): Likewise.
8256 * symfile.c (reread_symbols): Likewise.
8257
8258 2020-05-19 Tom Tromey <tromey@adacore.com>
8259
8260 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8261
8262 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8263
8264 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8265
8266 2020-05-19 Pedro Alves <palves@redhat.com>
8267
8268 * NEWS (set exec-file-mismatch): Adjust entry.
8269 * exec.c: Include "build-id.h".
8270 (validate_exec_file): Try to match build IDs instead of filenames.
8271 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8272 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8273 and pass down 'warn_if_slow'.
8274 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8275 gdb_bfd_open_closure to pass it down.
8276 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8277
8278 2020-05-19 Pedro Alves <palves@redhat.com>
8279
8280 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8281 * target.c (target_fileio_open_1): Rename to target_fileio_open
8282 and make extern. Use bool.
8283 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8284 (target_fileio_read_alloc_1): Adjust.
8285 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8286 (target_fileio_open_warn_if_slow): Delete declaration.
8287
8288 2020-05-19 Pedro Alves <palves@redhat.com>
8289
8290 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8291 Adjust all callers.
8292
8293 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8294
8295 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8296 whether disp is negative.
8297
8298 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8299
8300 * symfile.h (struct symfile_segment_data)
8301 <~symfile_segment_data>: Remove.
8302 <segment_info>: Change to std::vector.
8303 * symfile.c (default_symfile_segments): Update.
8304 * elfread.c (elf_symfile_segments): Update.
8305
8306 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8307
8308 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8309 <segments>: New.
8310 <segment_bases, segment_sizes>: Remove.
8311 * symfile.c (default_symfile_segments): Update.
8312 * elfread.c (elf_symfile_segments): Update.
8313 * remote.c (remote_target::get_offsets): Update.
8314 * solib-target.c (solib_target_relocate_section_addresses):
8315 Update.
8316
8317 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8318
8319 * symfile.h (struct symfile_segment_data): Initialize fields.
8320 <~symfile_segment_data>: Add.
8321 (symfile_segment_data_up): New.
8322 (struct sym_fns) <sym_segments>: Return a
8323 symfile_segment_data_up.
8324 (default_symfile_segments): Return a symfile_segment_data_up.
8325 (free_symfile_segment_data): Remove.
8326 (get_symfile_segment_data): Return a symfile_segment_data_up.
8327 * symfile.c (default_symfile_segments): Likewise.
8328 (get_symfile_segment_data): Likewise.
8329 (free_symfile_segment_data): Remove.
8330 (symfile_find_segment_sections): Update.
8331 * elfread.c (elf_symfile_segments): Return a
8332 symfile_segment_data_up.
8333 * remote.c (remote_target::get_offsets): Update.
8334 * solib-target.c (solib_target_relocate_section_addresses):
8335 Update.
8336 * symfile-debug.c (debug_sym_segments): Return a
8337 symfile_segment_data_up.
8338
8339 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8340
8341 PR build/25981
8342 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8343 Hardcode register numbers.
8344
8345 PR build/25981
8346 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8347 procfs_find_LDT_entry): Remove.
8348 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8349 procfs_find_LDT_entry): Remove.
8350 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8351 Remove.
8352
8353 2020-05-17 Pedro Alves <palves@redhat.com>
8354 Andrew Burgess <andrew.burgess@embecosm.com>
8355 Keno Fischer <keno@juliacomputing.com>
8356
8357 PR gdb/25741
8358 * breakpoint.c (build_target_condition_list): Update comments.
8359 (build_target_command_list): Update comments and skip matching
8360 locations.
8361 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8362 a separate function. Simplify "set breakpoint auto-hw off"
8363 handling.
8364 (insert_breakpoints): Update comment.
8365 (tracepoint_locations_match): New parameter. For breakpoints,
8366 compare location types too, if the caller wants to.
8367 (handle_automatic_hardware_breakpoints): New functions.
8368 (bp_location_is_less_than): Also sort by location type and
8369 hardware breakpoint length.
8370 (update_global_location_list): Handle "set breakpoint auto-hw on"
8371 here.
8372 (update_breakpoint_locations): Ask breakpoint_locations_match to
8373 ignore location types.
8374
8375 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8376
8377 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8378 type::name instead.
8379
8380 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8381
8382 * gdbtypes.h (struct type) <name, set_name>: New methods.
8383 (TYPE_CODE): Use type::name. Change all call sites used to set
8384 the name to use type::set_name instead.
8385
8386 2020-05-16 Tom Tromey <tom@tromey.com>
8387
8388 * top.c (quit_force): Update.
8389 * infrun.c (handle_no_resumed): Update.
8390 * top.h (all_uis): New function.
8391 (ALL_UIS): Remove.
8392
8393 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8396
8397 2020-05-16 Pedro Alves <palves@redhat.com>
8398
8399 * ia64-linux-nat.c
8400 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8401 Declare method.
8402 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8403
8404 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8405
8406 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8407 (sparc64_adi_info): Likewise.
8408
8409 2020-05-15 Tom Tromey <tom@tromey.com>
8410
8411 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8412 block_objfile.
8413 (lookup_objfile_from_block): Remove.
8414 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8415 (lookup_global_symbol): Use block_objfile.
8416 * symtab.h (lookup_objfile_from_block): Don't declare.
8417 * printcmd.c (clear_dangling_display_expressions): Use
8418 block_objfile.
8419 * parse.c (operator_check_standard): Use block_objfile.
8420
8421 2020-05-15 Tom Tromey <tom@tromey.com>
8422
8423 * language.c (language_alloc_type_symbol): Set
8424 SYMBOL_SECTION.
8425 * symtab.c (initialize_objfile_symbol): Remove.
8426 (allocate_symbol): Remove.
8427 (allocate_template_symbol): Remove.
8428 * dwarf2/read.c (fixup_go_packaging): Use "new".
8429 (new_symbol): Use "new".
8430 (read_variable): Don't call initialize_objfile_symbol. Use
8431 "new".
8432 (read_func_scope): Use "new".
8433 * xcoffread.c (process_xcoff_symbol): Don't call
8434 initialize_objfile_symbol.
8435 (SYMBOL_DUP): Remove.
8436 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8437 "new".
8438 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8439 (allocate_template_symbol): Don't declare.
8440 (struct symbol): Add copy constructor. Change defaults.
8441 * jit.c (finalize_symtab): Use "new".
8442 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8443 Use "new".
8444 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8445 (common_block_end): Use "new".
8446 * mdebugread.c (parse_symbol): Use "new".
8447 (new_symbol): Likewise.
8448
8449 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8450
8451 * NEWS: Mention changes to help and apropos.
8452
8453 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8454
8455 * command.h (enum command_class): Improve comments, document
8456 that class_alias is for user-defined aliases, give the class
8457 name for each class, remove unused class_xdb.
8458 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8459 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8460 by a precise class.
8461 * infcmd.c (_initialize_infcmd): Likewise.
8462 * reverse.c (_initialize_reverse): Likewise.
8463 * stack.c (_initialize_stack): Likewise.
8464 * symfile.c (_initialize_symfile): Likewise.
8465 * tracepoint.c (_initialize_tracepoint): Likewise.
8466
8467 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8468
8469 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8470 when their aliased command is traversed.
8471 (help_cmd): Add fput_command_names_styled call to
8472 output command name and aliases when command has an alias.
8473
8474 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8475
8476 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8477 * cli/cli-decode.c (help_cmd_list): Declare as static,
8478 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8479 a command together with the command.
8480 (fput_command_name_styled, fput_command_names_styled): New functions.
8481 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8482 fput_command_name_styled.
8483 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8484 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8485
8486 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8487
8488 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8489 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8490 * command.h (cmd_show_list): Likewise.
8491 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8492 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8493
8494 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8495
8496 * unittests/command-def-selftests.c (traverse_command_structure):
8497 Verify all commands of a list have the same prefix command and
8498 that only the top cmdlist commands have a null prefix.
8499
8500 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8501
8502 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8503 as prefix, not one of its aliases.
8504 (set_cmd_prefix): Remove.
8505 (do_add_cmd): Centralize the setting of the prefix of a command, when
8506 command is defined after its full chain of prefix commands.
8507 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8508 (add_setshow_cmd_full): Likewise.
8509 (update_prefix_field_of_prefixed_commands): New function.
8510 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8511 update_prefix_field_of_prefixed_commands.
8512 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8513 addresses of remote_set_cmdlist and remote_show_cmdlist given
8514 as argument, not the address of an argument.
8515 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8516 * gdb/remote.c (_initialize_remote): Likewise.
8517
8518 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8519
8520 * cli/cli-cmds.c (alias_command): Check for an existing alias
8521 using lookup_cmd_composition, as valid_command_p is too strict
8522 and forbids aliases that are the prefix of an existing alias
8523 or command.
8524 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8525 command is properly recognised as a valid command.
8526
8527 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8528
8529 * unittests/help-doc-selftests.c: Rename to
8530 unittests/command-def-selftests.c
8531 * unittests/command-def-selftests.c (help_doc_tests): Update some
8532 comments.
8533 (command_structure_tests, traverse_command_structure): New namespace
8534 and function.
8535 (command_structure_invariants_tests): New function.
8536 (_initialize_command_def_selftests) Renamed from
8537 _initialize_help_doc_selftests, register command_structure_invariants
8538 selftest.
8539
8540 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8541
8542 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8543 an alias of 'show'.
8544
8545 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8546
8547 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8548 ada_is_fixed_point_type. Update all callers.
8549 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8550 all callers.
8551 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8552 Update all callers.
8553 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8554 print_fixed_point_type. Update all callers.
8555 * ada-valprint.c (ada_value_print_num): Replace call to
8556 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8557
8558 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8559
8560 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8561 processors.
8562 (cpu_supports_bts): Add CV_AMD case.
8563
8564 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8565 Simon Marchi <simon.marchi@efficios.com>
8566
8567 * infrun.c (stop_all_threads): Collect multiple wait events at
8568 each pass.
8569
8570 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8573 type::code instead.
8574
8575 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8576
8577 * gdbtypes.h (struct type) <code, set_code>: New methods.
8578 (TYPE_CODE): Use type::code. Change all call sites used to set
8579 the code to use type::set_code instead.
8580
8581 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8582 Tom de Vries <tdevries@suse.de>
8583 Pedro Alves <palves@redhat.com>
8584
8585 PR threads/25478
8586 * infrun.c (stop_all_threads): Do NOT ignore
8587 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8588 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8589 received.
8590 (handle_no_resumed): Remove code handling a live inferior with no
8591 threads.
8592 * remote.c (has_single_non_exited_thread): New.
8593 (remote_target::update_thread_list): Do not delete a thread if is
8594 the last thread of the process.
8595 * thread.c (thread_select): Call delete_exited_threads instead of
8596 prune_threads.
8597
8598 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8599
8600 * infrun.c (stop_all_threads): Enable/disable thread events of all
8601 targets. Move a debug message denoting the end of the function
8602 into the SCOPED_EXIT block.
8603
8604 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8605
8606 * process-stratum-target.h: Include <set>.
8607 (all_non_exited_process_targets, switch_to_target_no_thread): New
8608 function declarations.
8609 * process-stratum-target.c (all_non_exited_process_targets)
8610 (switch_to_target_no_thread): New function implementations.
8611
8612 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8613
8614 * infrun.c (handle_inferior_event): Extract out a piece of code
8615 into...
8616 (mark_non_executing_threads): ...this new function.
8617
8618 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8619
8620 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8621 use.
8622
8623 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8624
8625 * regcache.c (regcache_read_pc_protected): New function
8626 implementation that returns 0 if the PC cannot read via
8627 'regcache_read_pc'.
8628 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8629 instead of 'regcache_read_pc'.
8630 (keep_going_pass_signal): Ditto.
8631
8632 2020-05-13 Tom Tromey <tromey@adacore.com>
8633
8634 * ada-lang.c (align_value): Remove.
8635 (ada_template_to_fixed_record_type_1): Use align_up.
8636
8637 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8638
8639 * async-event.c: Update the copyright year.
8640 * async-event.h: Update the copyright year.
8641
8642 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8643
8644 * objfiles.h (is_addr_in_objfile,
8645 shared_objfile_contains_address_p): Return bool.
8646 * objfile.c (is_addr_in_objfile,
8647 shared_objfile_contains_address_p): Return bool.
8648
8649 2020-05-11 Tom Tromey <tromey@adacore.com>
8650
8651 * cli/cli-cmds.c (info_command): Restore.
8652 (_initialize_cli_cmds): Use add_prefix_command for "info".
8653 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8654
8655 2020-05-11 Tom Tromey <tromey@adacore.com>
8656
8657 * ada-lang.c (ada_value_primitive_field): Now public.
8658 * ada-lang.h (ada_value_primitive_field): Declare.
8659 * ada-valprint.c (print_field_values): Use
8660 ada_value_primitive_field for wrapper fields.
8661
8662 2020-05-11 Tom de Vries <tdevries@suse.de>
8663
8664 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8665 MODULE_DOMAIN.
8666
8667 2020-05-11 Tom de Vries <tdevries@suse.de>
8668
8669 PR symtab/25941
8670 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8671 with length 0, if not gdb-produced.
8672 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8673
8674 2020-05-09 Tom de Vries <tdevries@suse.de>
8675
8676 PR gdb/25955
8677 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8678 calculation.
8679
8680 2020-05-09 Tom Tromey <tom@tromey.com>
8681
8682 * top.c (server_command): Now bool.
8683 * top.h (server_command): Now bool.
8684
8685 2020-05-08 Tom Tromey <tromey@adacore.com>
8686
8687 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8688 already being processed.
8689
8690 2020-05-08 Tom Tromey <tom@tromey.com>
8691
8692 * printcmd.c (struct display) <next>: Remove.
8693 <display>: New constructor.
8694 <exp_string>: Now a std::string.
8695 <enabled_p>: Now a bool.
8696 (display_number): Move definition earlier.
8697 (displays): Rename from display_chain. Now a std::vector.
8698 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8699 (display_command): Update.
8700 (do_one_display, disable_display)
8701 (enable_disable_display_command, do_enable_disable_display):
8702 Update.
8703 (free_display): Remove.
8704 (clear_displays): Rewrite.
8705 (delete_display): Update.
8706 (map_display_numbers): Use function_view. Remove "data"
8707 parameter. Update.
8708 (do_delete_display): Remove.
8709 (undisplay_command): Update.
8710 (do_one_display, do_displays, disable_display)
8711 (info_display_command): Update.
8712 (do_enable_disable_display): Remove.
8713 (enable_disable_display_command)
8714 (clear_dangling_display_expressions): Update.
8715
8716 2020-05-08 Tom Tromey <tom@tromey.com>
8717
8718 * symtab.c (set_symbol_cache_size)
8719 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8720 (maintenance_print_symbol_cache_statistics): Update.
8721 * symmisc.c (print_symbol_bcache_statistics)
8722 (print_objfile_statistics, maintenance_print_objfiles)
8723 (maintenance_info_symtabs, maintenance_check_symtabs)
8724 (maintenance_expand_symtabs, maintenance_info_line_tables):
8725 Update.
8726 * symfile-debug.c (set_debug_symfile): Update.
8727 * source.c (forget_cached_source_info): Update.
8728 * python/python.c (gdbpy_progspaces): Update.
8729 * psymtab.c (maintenance_info_psymtabs): Update.
8730 * probe.c (parse_probes): Update.
8731 * linespec.c (iterate_over_all_matching_symtabs)
8732 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8733 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8734 * exec.c (exec_target::close): Update.
8735 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8736 * breakpoint.c (print_one_breakpoint_location)
8737 (create_longjmp_master_breakpoint)
8738 (create_std_terminate_master_breakpoint): Update.
8739 * progspace.c (program_spaces): Now a std::vector.
8740 (maybe_new_address_space): Update.
8741 (add_program_space): Remove.
8742 (program_space::program_space): Update.
8743 (remove_program_space): Update.
8744 (number_of_program_spaces): Remove.
8745 (print_program_space, update_address_spaces): Update.
8746 * progspace.h (program_spaces): Change type.
8747 (ALL_PSPACES): Remove.
8748 (number_of_program_spaces): Don't declare.
8749 (struct program_space) <next>: Remove.
8750
8751 2020-05-08 Tom Tromey <tom@tromey.com>
8752
8753 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8754 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8755 (enable_break): Update.
8756 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8757 (frv_fdpic_find_canonical_descriptor): Update.
8758 (frv_fetch_objfile_link_map): Update.
8759 * progspace.c (program_space::free_all_objfiles): Update.
8760 (program_space::solibs): New method.
8761 * progspace.h (struct program_space) <solibs>: New method.
8762 * solist.h (master_so_list): Don't declare.
8763 (ALL_SO_LIBS): Remove.
8764 * solib.h (so_list_head): Remove.
8765 (update_solib_list): Update comment.
8766 * solib.c (master_so_list): Remove.
8767 (solib_used, update_solib_list, solib_add)
8768 (info_sharedlibrary_command, clear_solib)
8769 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8770
8771 2020-05-08 Tom Tromey <tom@tromey.com>
8772
8773 * extension.c (extension_languages): Now a std::array.
8774 (ALL_EXTENSION_LANGUAGES): Remove.
8775 (get_ext_lang_defn, get_ext_lang_of_file)
8776 (eval_ext_lang_from_control_command): Update.
8777 (finish_ext_lang_initialization)
8778 (auto_load_ext_lang_scripts_for_objfile)
8779 (ext_lang_type_printers::ext_lang_type_printers)
8780 (apply_ext_lang_type_printers)
8781 (ext_lang_type_printers::~ext_lang_type_printers)
8782 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8783 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8784 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8785 (get_matching_xmethod_workers, ext_lang_colorize)
8786 (ext_lang_before_prompt): Update.
8787 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8788
8789 2020-05-08 Tom Tromey <tom@tromey.com>
8790
8791 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8792 overload.
8793 <swap_string, m_string>: Remove.
8794 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8795 Update.
8796 * stabsread.c (define_symbol, read_type): Update.
8797 * linespec.c (find_linespec_symbols): Update.
8798 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8799 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8800 * dbxread.c (read_dbx_symtab): Update.
8801 * cp-support.h (cp_canonicalize_string_full)
8802 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8803 Return unique_xmalloc_ptr.
8804 * cp-support.c (inspect_type): Update.
8805 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8806 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8807 Likewise.
8808 * c-typeprint.c (print_name_maybe_canonical): Update.
8809 * break-catch-throw.c (check_status_exception_catchpoint):
8810 Update.
8811
8812 2020-05-08 Tom de Vries <tdevries@suse.de>
8813
8814 * infrun.c (follow_fork): Copy current_line and current_symtab to
8815 child thread.
8816
8817 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * async-event.c (struct async_signal_handler, struct
8820 async_event_handler): Reformat, remove typedef.
8821
8822 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8825 access thistype->main_type->dyn_prop_list directly.
8826
8827 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8830 (remove_dyn_prop): Remove. Update all users to use
8831 type::remove_dyn_prop.
8832 * gdbtypes.c (remove_dyn_prop): Rename to...
8833 (type::remove_dyn_prop): ... this.
8834
8835 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8836
8837 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8838 (add_dyn_prop): Remove. Update all users to use
8839 type::add_dyn_prop.
8840 * gdbtypes.c (add_dyn_prop): Rename to...
8841 (type::add_dyn_prop): ... this.
8842
8843 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8846 (get_dyn_prop): Remove. Update all users to use
8847 type::dyn_prop.
8848 * gdbtypes.c (get_dyn_prop): Rename to...
8849 (type::dyn_prop): ... this.
8850
8851 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8854
8855 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8856
8857 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8858 instruction, skip it if it's there.
8859
8860 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8863
8864 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8865
8866 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8867 * gdbtypes.c (recursive_dump_type): Remove use of
8868 TYPE_INCOMPLETE.
8869
8870 2020-05-03 Tom Tromey <tom@tromey.com>
8871
8872 * breakpoint.c (catch_command, tcatch_command): Remove.
8873 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8874 add_show_prefix_cmd.
8875 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8876 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8877 Remove.
8878 (add_internal_problem_command): Use add_basic_prefix_cmd,
8879 add_show_prefix_cmd.
8880 * mips-tdep.c (set_mipsfpu_command): Remove.
8881 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8882 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8883 (_initialize_index_cache): Use add_basic_prefix_cmd.
8884 * memattr.c (dummy_cmd): Remove.
8885 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8886 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8887 (_initialize_tui_win): Use add_basic_prefix_cmd,
8888 add_show_prefix_cmd.
8889 * cli/cli-logging.c (set_logging_command): Remove.
8890 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8891 add_show_prefix_cmd.
8892 (show_logging_command): Remove.
8893 * target.c (target_command): Remove.
8894 (add_target): Use add_basic_prefix_cmd.
8895
8896 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8897
8898 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8899
8900 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8901
8902 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8903 info_command.
8904
8905 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8906
8907 * nbsd-nat.c (nbsd_enable_proc_events)
8908 (nbsd_nat_target::post_startup_inferior): Add.
8909 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8910 (nbsd_nat_target::update_thread_list): Rewrite.
8911 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8912 "PTRACE_LWP_CREATE".
8913 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8914
8915 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8916
8917 * stack.c (_initialize_stack): Remove duplicated creation
8918 of "frame" command and "f" alias.
8919
8920 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8921
8922 PR gdb/18706
8923 * gdbtypes.c (check_typedef): Calculate size of array of
8924 stubbed type.
8925
8926 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8927
8928 PR gdb/15559
8929 * i386-tdep.c (i386_push_dummy_call): Call
8930 i386_thiscall_push_dummy_call.
8931 (i386_thiscall_push_dummy_call): New function.
8932 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8933 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8934 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8935
8936 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * gdbarch.sh (do_read): Add shellcheck disable directive for
8939 warning SC2162.
8940
8941 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8942
8943 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8944 "referenced but not assigned" warning.
8945
8946 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8947
8948 * gdbarch.sh: Remove code that sets fallbackdefault.
8949
8950 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8951
8952 * gdbarch.sh: Use shell operators && and || instead of
8953 -a and -o.
8954
8955 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8956
8957 * gdbarch.sh: Use $(...) instead of `...`.
8958
8959 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * gdbarch.sh: Use double quotes around variables.
8962
8963 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * gdbarch.sh: Use %s with printf, instead of variables in the
8966 format string.
8967
8968 2020-04-29 Tom Tromey <tromey@adacore.com>
8969
8970 PR ada/25875:
8971 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8972 type fields here.
8973 (read_enumeration_type): Call
8974 update_enumeration_type_from_children later. Update comments.
8975 (process_enumeration_scope): Don't create type fields.
8976
8977 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8978
8979 * nbsd-tdep.c: Include "xml-syscall.h".
8980 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8981
8982 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8983
8984 * nbsd-nat.c: Include "sys/wait.h".
8985 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8986 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8987 (nbsd_nat_target::remove_exec_catchpoint)
8988 (nbsd_nat_target::set_syscall_catchpoint): Add.
8989 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8990 (nbsd_nat_target::insert_exec_catchpoint)
8991 (nbsd_nat_target::remove_exec_catchpoint)
8992 (nbsd_nat_target::set_syscall_catchpoint): Add.
8993 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8994 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8995 `nbsd_get_syscall_number'.
8996
8997 2020-04-29 Tom Tromey <tom@tromey.com>
8998
8999 * stack.c (print_block_frame_labels): Remove.
9000
9001 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
9002
9003 PR gdb/17320
9004 * ada-valprint.c (val_print_packed_array_elements): Move array
9005 end bracket to new line.
9006 (ada_val_print_string): Remove extra spaces before first array
9007 element.
9008 * c-valprint.c (c_value_print_array): Likewise.
9009 * m2-valprint.c (m2_print_array_contents): Likewise.
9010 (m2_value_print_inner): Likewise.
9011 * p-valprint.c (pascal_value_print_inner): Likewise.
9012 * valprint.c (generic_val_print_array): Likewise.
9013 (value_print_array_elements): Move first array element and array
9014 end bracket to new line.
9015
9016 2020-04-29 Tom de Vries <tdevries@suse.de>
9017
9018 PR symtab/25889
9019 * linespec.c (find_method): Fix ix calculation.
9020
9021 2020-04-28 Kamil Rytarowski <n54@gmx.com>
9022
9023 * syscalls/update-netbsd.sh: New file.
9024 * syscalls/netbsd.xml: Regenerate.
9025 * data-directory/Makefile.in: Register `netbsd.xml' in
9026 `SYSCALLS_FILES'.
9027
9028 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9029
9030 * syscalls/update-freebsd.sh: Add double quotes.
9031
9032 2020-04-28 Tom Tromey <tom@tromey.com>
9033
9034 * NEWS: Update.
9035 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
9036 (cmdpy_init): Allow class_tui.
9037
9038 2020-04-28 Mark Williams <mark@myosotissp.com>
9039
9040 PR gdb/24480
9041 * dwarf2read.c: Add missing assingments to list_in_scope when
9042 start_symtab was already called.
9043
9044 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
9045
9046 PR gdb/25881
9047 * dwarf2/read.c (offset_map_type): Use
9048 gdb:hash_enum<sect_offset> as hash function.
9049
9050 2020-04-28 Tom de Vries <tdevries@suse.de>
9051
9052 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9053 with DW_AT_signature.
9054
9055 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * configure.ac: Remove check for fs_base/gs_base in
9058 user_regs_struct.
9059 * configure: Re-generate.
9060 * config.in: Re-generate.
9061 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9062 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9063 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9064
9065 2020-04-27 Luis Machado <luis.machado@linaro.org>
9066
9067 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9068 problematic inline frame unwinding situation.
9069 * frame.c (frame_id_computed_p): New function.
9070 * frame.h (frame_id_computed_p): New prototype.
9071
9072 2020-04-26 Tom Tromey <tom@tromey.com>
9073
9074 * command.h (enum command_class) <class_pseudo>: Remove.
9075
9076 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9077
9078 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9079 and whitespace.
9080
9081 2020-04-25 Kamil Rytarowski <n54@gmx.com>
9082
9083 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9084 `PT_GET_PROCESS_STATE' block.
9085
9086 2020-04-24 Tom Tromey <tom@tromey.com>
9087
9088 * symtab.h (symbol_get_demangled_name): Don't declare.
9089 * symtab.c (symbol_get_demangled_name): Remove.
9090 (general_symbol_info::natural_name)
9091 (general_symbol_info::demangled_name): Update.
9092
9093 2020-04-24 Tom Tromey <tom@tromey.com>
9094
9095 PR rust/25025:
9096 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9097
9098 2020-04-24 Tom Tromey <tom@tromey.com>
9099
9100 PR symtab/12707:
9101 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9102 exists.
9103 (new_symbol): Likewise.
9104 * compile/compile-object-load.c (get_out_value_type): Use
9105 symbol_matches_search_name.
9106
9107 2020-04-24 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/read.c (add_partial_symbol): Do not call
9110 compute_and_set_names.
9111
9112 2020-04-24 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9115 overload.
9116
9117 2020-04-24 Tom Tromey <tom@tromey.com>
9118
9119 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9120 (add_psymbol_to_list): New overload. Make old overload call new
9121 one.
9122 * psympriv.h (add_psymbol_to_list): New overload.
9123
9124 2020-04-24 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/read.c (partial_die_info::read) <case
9127 DW_AT_linkage_name>: Use value_as_string.
9128 (dwarf2_string_attr): Use value_as_string.
9129 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9130 method.
9131 * dwarf2/attribute.c (attribute::value_as_string): New method.
9132
9133 2020-04-24 Tom Tromey <tom@tromey.com>
9134
9135 * symtab.c (general_symbol_info::natural_name)
9136 (general_symbol_info::demangled_name): Check for language_rust.
9137
9138 2020-04-24 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9141 (dwarf2_physname): ... from here.
9142 (partial_die_info::read): Add Rust "{" hack.
9143
9144 2020-04-24 Tom Tromey <tom@tromey.com>
9145
9146 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9147 method.
9148 (symbol_set_demangled_name): Don't declare.
9149 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9150 symbol_set_demangled_name.
9151 (general_symbol_info::set_language)
9152 (general_symbol_info::compute_and_set_names): Update.
9153 * minsyms.c (minimal_symbol_reader::install): Update.
9154 * dwarf2/read.c (new_symbol): Update.
9155
9156 2020-04-24 Tom Tromey <tromey@adacore.com>
9157
9158 PR python/23662:
9159 * python/py-type.c (convert_field): Handle
9160 FIELD_LOC_KIND_DWARF_BLOCK.
9161 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9162 (typy_get_dynamic): Nw function.
9163 (type_object_getset): Add "dynamic".
9164 * NEWS: Add entry.
9165
9166 2020-04-24 Tom Tromey <tromey@adacore.com>
9167
9168 * ada-typeprint.c (print_choices, print_variant_part)
9169 (print_record_field_types_dynamic): New functions.
9170 (print_record_field_types): Use print_record_field_types_dynamic.
9171
9172 2020-04-24 Tom Tromey <tromey@adacore.com>
9173
9174 * dwarf2/read.c (handle_data_member_location): New overload.
9175 (dwarf2_add_field): Use it.
9176 (decode_locdesc): Add "computed" parameter. Update comment.
9177 * gdbtypes.c (is_dynamic_type_internal): Also look for
9178 FIELD_LOC_KIND_DWARF_BLOCK.
9179 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9180 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9181 virtual base classes.
9182 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9183 FIELD_LOC_KIND_DWARF_BLOCK.
9184
9185 2020-04-24 Tom Tromey <tromey@adacore.com>
9186
9187 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9188 * gdbtypes.c (is_dynamic_type_internal): Check
9189 TYPE_HAS_DYNAMIC_LENGTH.
9190 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9191 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9192 New macros.
9193 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9194 constant.
9195
9196 2020-04-24 Tom Tromey <tromey@adacore.com>
9197
9198 * dwarf2/read.c (struct variant_field): Rewrite.
9199 (struct variant_part_builder): New.
9200 (struct nextfield): Remove "variant" field. Add "offset".
9201 (struct field_info): Add "current_variant_part" and
9202 "variant_parts".
9203 (alloc_discriminant_info): Remove.
9204 (alloc_rust_variant): New function.
9205 (quirk_rust_enum): Update.
9206 (dwarf2_add_field): Set "offset" member. Don't handle
9207 DW_TAG_variant_part.
9208 (offset_map_type): New typedef.
9209 (convert_variant_range, create_one_variant)
9210 (create_one_variant_part, create_variant_parts)
9211 (add_variant_property): New functions.
9212 (dwarf2_attach_fields_to_type): Call add_variant_property.
9213 (read_structure_type): Don't handle DW_TAG_variant_part.
9214 (handle_variant_part, handle_variant): New functions.
9215 (handle_struct_member_die): Use them.
9216 (process_structure_scope): Don't handle variant parts.
9217 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9218 (struct discriminant_info): Remove.
9219 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9220 (struct main_type) <flag_discriminated_union>: Remove.
9221 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9222 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9223 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9224 Update.
9225 * valops.c (value_union_variant): Remove.
9226 * value.h (value_union_variant): Don't declare.
9227
9228 2020-04-24 Tom Tromey <tromey@adacore.com>
9229
9230 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9231 (ada_value_primitive_packed_val): Update.
9232 * ada-valprint.c (ada_value_print_1): Update.
9233 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9234 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9235 just an address. Use evaluate_for_locexpr_baton.
9236 (dwarf2_evaluate_property): Update.
9237 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9238 array_view.
9239 * findvar.c (default_read_var_value): Update.
9240 * gdbtypes.c (compute_variant_fields_inner)
9241 (resolve_dynamic_type_internal): Update.
9242 (resolve_dynamic_type): Change type of valaddr parameter.
9243 * gdbtypes.h (resolve_dynamic_type): Update.
9244 * valarith.c (value_subscripted_rvalue): Update.
9245 * value.c (value_from_contents_and_address): Update.
9246
9247 2020-04-24 Tom Tromey <tromey@adacore.com>
9248
9249 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9250 "push_initial_value" parameter.
9251 (dwarf2_evaluate_property): Likewise.
9252 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9253
9254 2020-04-24 Tom Tromey <tromey@adacore.com>
9255
9256 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9257 (variant::matches, compute_variant_fields_recurse)
9258 (compute_variant_fields_inner, compute_variant_fields): New
9259 functions.
9260 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9261 Use resolved_type after type is made.
9262 (operator==): Add new cases.
9263 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9264 (struct discriminant_range, struct variant, struct variant_part):
9265 New.
9266 (union dynamic_prop_data) <variant_parts, original_type>: New
9267 members.
9268 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9269 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9270 constants.
9271 * value.c (unpack_bits_as_long): Now public.
9272 * value.h (unpack_bits_as_long): Declare.
9273
9274 2020-04-24 Tom Tromey <tromey@adacore.com>
9275
9276 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9277 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9278
9279 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9280
9281 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9282
9283 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9284
9285 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9286 (remove_fork_catchpoint, post_startup_inferior)
9287 (post_attach): Move...
9288 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9289 (remove_fork_catchpoint, post_startup_inferior)
9290 (post_attach): ...here.
9291 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9292 (remove_fork_catchpoint, post_startup_inferior)
9293 (post_attach): Move...
9294 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9295 (remove_fork_catchpoint, post_startup_inferior)
9296 (post_attach): ...here.
9297
9298 2020-04-24 Tom Tromey <tromey@adacore.com>
9299
9300 * nat/windows-nat.h (struct windows_thread_info)
9301 <pc_adjusted>: New member.
9302 * windows-nat.c (windows_fetch_one_register): Check
9303 pc_adjusted.
9304 (windows_nat_target::get_windows_debug_event)
9305 (windows_nat_target::wait): Set pc_adjusted.
9306
9307 2020-04-24 Tom de Vries <tdevries@suse.de>
9308
9309 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9310 Run gdb-add-index inside temp dir.
9311
9312 2020-04-23 Tom Tromey <tromey@adacore.com>
9313
9314 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9315 in loop.
9316
9317 2020-04-23 Luis Machado <luis.machado@linaro.org>
9318
9319 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9320 get_frame_register instead of gdbarch_unwind_pc.
9321
9322 2020-04-23 Tom de Vries <tdevries@suse.de>
9323
9324 * symtab.c (lookup_global_symbol): Prefer def over decl.
9325
9326 2020-04-23 Tom de Vries <tdevries@suse.de>
9327
9328 PR symtab/25807
9329 * block.c (best_symbol, better_symbol): Promote to external.
9330 * block.h (best_symbol, better_symbol): Declare.
9331 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9332 decl.
9333
9334 2020-04-23 Tom Tromey <tromey@adacore.com>
9335
9336 PR ada/25837:
9337 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9338 "const char *", not a "const std::string &".
9339 <name_and_matcher::operator==>: Update.
9340 * unittests/lookup_name_info-selftests.c: Change type of
9341 "result".
9342
9343 2020-04-23 Tom Tromey <tom@tromey.com>
9344
9345 * inferior.h (iterate_over_inferiors): Don't declare.
9346 * inferior.c (iterate_over_inferiors): Remove.
9347 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9348 Remove.
9349 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9350 use iterate_over_inferiors.
9351 (darwin_resume_inferior_it)
9352 (struct resume_inferior_threads_param)
9353 (darwin_resume_inferior_threads_it): Remove.
9354 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9355
9356 2020-04-23 Tom de Vries <tdevries@suse.de>
9357
9358 * blockframe.c (find_pc_partial_function): Use
9359 find_pc_sect_compunit_symtab rather than
9360 objfile->sf->qf->find_pc_sect_compunit_symtab.
9361
9362 2020-04-22 Tom de Vries <tdevries@suse.de>
9363
9364 PR symtab/25764
9365 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9366 in psymtabs.
9367
9368 2020-04-22 Tom de Vries <tdevries@suse.de>
9369
9370 PR symtab/25801
9371 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9372 symtabs.
9373
9374 2020-04-22 Tom de Vries <tdevries@suse.de>
9375
9376 PR symtab/25700
9377 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9378 CU if already created.
9379
9380 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9381
9382 * infrun.c (displaced_step_fixup): Switch to the event_thread
9383 before calling displaced_step_restore, not after.
9384
9385 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9386
9387 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9388 its inferior is not recorded by us.
9389 (record_btrace_target_open): Replace call to
9390 all_non_exited_threads () with call to current_inferior
9391 ()->non_exited_threads ().
9392 (record_btrace_target::stop_recording): Likewise.
9393 (record_btrace_target::close): Likewise.
9394 (record_btrace_target::wait): Likewise.
9395 (record_btrace_target::record_stop_replaying): Likewise.
9396
9397 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9398
9399 * btrace.c (btrace_enable): Throw an error on double enables and
9400 when enabling recording fails.
9401 (btrace_disable): Throw an error if the thread is not recorded.
9402
9403 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9404
9405 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9406 request if we do not have a thread_info.
9407
9408 2020-04-21 Tom de Vries <tdevries@suse.de>
9409
9410 PR gdb/25471
9411 * thread.c
9412 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9413 exception in get_frame_id.
9414
9415 2020-04-20 Tom Tromey <tromey@adacore.com>
9416
9417 * python/python.c (struct gdbpy_event): Mark move constructor as
9418 noexcept.
9419 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9420 constructor as noexcept.
9421 * completer.h (struct completion_result): Mark move constructor as
9422 noexcept.
9423 * completer.c (completion_result::completion_result): Use
9424 initialization style. Don't call reset_match_list.
9425
9426 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9427
9428 * MAINTAINERS (Write After Approval): Add myself.
9429
9430 2020-04-18 Tom Tromey <tom@tromey.com>
9431
9432 * windows-tdep.c (init_w32_command_list)
9433 (w32_prefix_command_valid): Restore.
9434 (_initialize_windows_tdep): Call init_w32_command_list.
9435
9436 2020-04-18 Tom Tromey <tom@tromey.com>
9437
9438 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9439 * value.c (value_fn_field): Update.
9440 * valops.c (find_function_in_inferior)
9441 (value_allocate_space_in_inferior): Update.
9442 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9443 Update.
9444 * tui/tui-source.c (tui_source_window::set_contents): Update.
9445 * symtab.c (lookup_global_or_static_symbol)
9446 (find_function_start_sal_1, skip_prologue_sal)
9447 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9448 * symmisc.c (dump_msymbols, dump_symtab_1)
9449 (maintenance_print_one_line_table): Update.
9450 * symfile.c (init_entry_point_info, section_is_mapped)
9451 (list_overlays_command, simple_read_overlay_table)
9452 (simple_overlay_update_1): Update.
9453 * stap-probe.c (handle_stap_probe): Update.
9454 * stabsread.c (dbx_init_float_type, define_symbol)
9455 (read_one_struct_field, read_enum_type, read_range_type): Update.
9456 * source.c (info_line_command): Update.
9457 * python/python.c (gdbpy_source_objfile_script)
9458 (gdbpy_execute_objfile_script): Update.
9459 * python/py-type.c (save_objfile_types): Update.
9460 * python/py-objfile.c (py_free_objfile): Update.
9461 * python/py-inferior.c (python_new_objfile): Update.
9462 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9463 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9464 (maintenance_check_psymtabs): Update.
9465 * printcmd.c (info_address_command): Update.
9466 * objfiles.h (struct objfile) <arch>: New method, from
9467 get_objfile_arch.
9468 (get_objfile_arch): Don't declare.
9469 * objfiles.c (get_objfile_arch): Remove.
9470 (filter_overlapping_sections): Update.
9471 * minsyms.c (msymbol_is_function): Update.
9472 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9473 (output_nondebug_symbol): Update.
9474 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9475 (mdebug_expand_psymtab): Update.
9476 * machoread.c (macho_add_oso_symfile): Update.
9477 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9478 Update.
9479 * linux-fork.c (checkpoint_command): Update.
9480 * linespec.c (convert_linespec_to_sals): Update.
9481 * jit.c (finalize_symtab): Update.
9482 * infrun.c (insert_exception_resume_from_probe): Update.
9483 * ia64-tdep.c (ia64_find_unwind_table): Update.
9484 * hppa-tdep.c (internalize_unwinds): Update.
9485 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9486 Update.
9487 * gcore.c (call_target_sbrk): Update.
9488 * elfread.c (record_minimal_symbol, elf_symtab_read)
9489 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9490 (elf_gnu_ifunc_resolve_by_got): Update.
9491 * dwarf2/read.c (create_addrmap_from_index)
9492 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9493 (read_debug_names_from_section)
9494 (process_psymtab_comp_unit_reader, add_partial_symbol)
9495 (add_partial_subprogram, process_full_comp_unit)
9496 (read_file_scope, read_func_scope, read_lexical_block_scope)
9497 (read_call_site_scope, dwarf2_ranges_read)
9498 (dwarf2_record_block_ranges, dwarf2_add_field)
9499 (mark_common_block_symbol_computed, read_tag_pointer_type)
9500 (read_tag_string_type, dwarf2_init_float_type)
9501 (dwarf2_init_complex_target_type, read_base_type)
9502 (partial_die_info::read, partial_die_info::read)
9503 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9504 (dwarf2_fetch_die_loc_sect_off): Update.
9505 * dwarf2/loc.c (dwarf2_find_location_expression)
9506 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9507 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9508 (dwarf2_loc_desc_get_symbol_read_needs)
9509 (locexpr_describe_location_piece, locexpr_describe_location_1)
9510 (loclist_describe_location): Update.
9511 * dwarf2/index-write.c (write_debug_names): Update.
9512 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9513 * dtrace-probe.c (dtrace_process_dof): Update.
9514 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9515 (process_one_symbol): Update.
9516 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9517 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9518 (coff_read_enum_type): Update.
9519 * cli/cli-cmds.c (edit_command, list_command): Update.
9520 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9521 * breakpoint.c (create_overlay_event_breakpoint)
9522 (create_longjmp_master_breakpoint)
9523 (create_std_terminate_master_breakpoint)
9524 (create_exception_master_breakpoint, get_sal_arch): Update.
9525 * block.c (block_gdbarch): Update.
9526 * annotate.c (annotate_source_line): Update.
9527
9528 2020-04-17 Tom Tromey <tromey@adacore.com>
9529
9530 * auto-load.c (show_auto_load_cmd): Remove.
9531 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9532 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9533 (maintenance_print_arc_command): Remove.
9534 * tui/tui-win.c (tui_command): Remove.
9535 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9536 * tui/tui-layout.c (tui_layout_command): Remove.
9537 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9538 * python/python.c (user_set_python, user_show_python): Remove.
9539 (_initialize_python): Use add_basic_prefix_cmd,
9540 add_show_prefix_cmd.
9541 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9542 (install_gdb_commands): Use add_basic_prefix_cmd,
9543 add_show_prefix_cmd.
9544 (info_guile_command): Remove.
9545 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9546 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9547 add_show_prefix_cmd.
9548 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9549 Remove do_set and do_show parameters.
9550 * cli/cli-style.c (set_style, show_style): Remove.
9551 (_initialize_cli_style): Use add_basic_prefix_cmd,
9552 add_show_prefix_cmd.
9553 (cli_style_option::add_setshow_commands): Remove do_set and
9554 do_show parameters.
9555 (cli_style_option::add_setshow_commands): Use
9556 add_basic_prefix_cmd, add_show_prefix_cmd.
9557 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9558 (set_style_name): Remove.
9559 * cli/cli-dump.c (dump_command, append_command): Remove.
9560 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9561 (tekhex_dump_command, binary_dump_command)
9562 (binary_append_command): Remove.
9563 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9564 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9565 (init_w32_command_list): Remove; move into ...
9566 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9567 * valprint.c (set_print, show_print, set_print_raw)
9568 (show_print_raw): Remove.
9569 (_initialize_valprint): Use add_basic_prefix_cmd,
9570 add_show_prefix_cmd.
9571 * typeprint.c (set_print_type, show_print_type): Remove.
9572 (_initialize_typeprint): Use add_basic_prefix_cmd,
9573 add_show_prefix_cmd.
9574 * record.c (set_record_command, show_record_command): Remove.
9575 (_initialize_record): Use add_basic_prefix_cmd,
9576 add_show_prefix_cmd.
9577 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9578 add_show_prefix_cmd.
9579 (info_command, show_command, set_debug, show_debug): Remove.
9580 * top.h (set_history, show_history): Don't declare.
9581 * top.c (set_history, show_history): Remove.
9582 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9583 (unset_tdesc_cmd): Remove.
9584 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9585 add_show_prefix_cmd.
9586 * symtab.c (info_module_command): Remove.
9587 (_initialize_symtab): Use add_basic_prefix_cmd.
9588 * symfile.c (overlay_command): Remove.
9589 (_initialize_symfile): Use add_basic_prefix_cmd.
9590 * sparc64-tdep.c (info_adi_command): Remove.
9591 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9592 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9593 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9594 add_show_prefix_cmd.
9595 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9596 (_initialize_serial): Use add_basic_prefix_cmd,
9597 add_show_prefix_cmd.
9598 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9599 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9600 add_show_prefix_cmd.
9601 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9602 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9603 add_show_prefix_cmd.
9604 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9605 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9606 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9607 add_show_prefix_cmd.
9608 * remote.c (remote_command, set_remote_cmd): Remove.
9609 (_initialize_remote): Use add_basic_prefix_cmd.
9610 * record-full.c (set_record_full_command)
9611 (show_record_full_command): Remove.
9612 (_initialize_record_full): Use add_basic_prefix_cmd,
9613 add_show_prefix_cmd.
9614 * record-btrace.c (cmd_set_record_btrace)
9615 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9616 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9617 (cmd_show_record_btrace_pt): Remove.
9618 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9619 add_show_prefix_cmd.
9620 * ravenscar-thread.c (set_ravenscar_command)
9621 (show_ravenscar_command): Remove.
9622 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9623 add_show_prefix_cmd.
9624 * mips-tdep.c (show_mips_command, set_mips_command)
9625 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9626 add_show_prefix_cmd.
9627 * maint.c (maintenance_command, maintenance_info_command)
9628 (maintenance_check_command, maintenance_print_command)
9629 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9630 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9631 add_show_prefix_cmd.
9632 (show_per_command_cmd): Remove.
9633 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9634 Remove.
9635 (maintenance_show_test_settings_cmd): Remove.
9636 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9637 add_show_prefix_cmd.
9638 * maint-test-options.c (maintenance_test_options_command):
9639 Remove.
9640 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9641 * macrocmd.c (macro_command): Remove
9642 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9643 * language.c (set_check, show_check): Remove.
9644 (_initialize_language): Use add_basic_prefix_cmd,
9645 add_show_prefix_cmd.
9646 * infcmd.c (unset_command): Remove.
9647 (_initialize_infcmd): Use add_basic_prefix_cmd.
9648 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9649 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9650 add_show_prefix_cmd.
9651 * go32-nat.c (go32_info_dos_command): Remove.
9652 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9653 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9654 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9655 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9656 (_initialize_frame): Use add_basic_prefix_cmd,
9657 add_show_prefix_cmd.
9658 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9659 (_initialize_dcache): Use add_basic_prefix_cmd,
9660 add_show_prefix_cmd.
9661 * cp-support.c (maint_cplus_command): Remove.
9662 (_initialize_cp_support): Use add_basic_prefix_cmd.
9663 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9664 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9665 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9666 add_basic_prefix_cmd, add_show_prefix_cmd.
9667 * breakpoint.c (save_command): Remove.
9668 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9669 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9670 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9671 add_show_prefix_cmd.
9672 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9673 (set_ada_command, show_ada_command): Remove.
9674 (_initialize_ada_language): Use add_basic_prefix_cmd,
9675 add_show_prefix_cmd.
9676 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9677
9678 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9679
9680 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9681 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9682
9683 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9684
9685 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9686 warning messages.
9687
9688 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9689
9690 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9691 import table is not at beginning of .idata section.
9692
9693 2020-04-16 Pedro Alves <palves@redhat.com>
9694
9695 * inferior.c (delete_inferior): Use delete operator directly
9696 instead of delete_program_space.
9697 * progspace.c (add_program_space): New, factored out from
9698 program_space::program_space.
9699 (remove_program_space): New, factored out from
9700 delete_program_space.
9701 (program_space::program_space): Remove intro comment. Rewrite.
9702 (program_space::~program_space): Remove intro comment. Call
9703 remove_program_space.
9704 (delete_program_space): Delete.
9705 * progspace.h (program_space::program_space): Make explicit. Move
9706 intro comment here, adjusted.
9707 (program_space::~program_space): Move intro comment here,
9708 adjusted.
9709 (delete_program_space): Remove.
9710
9711 2020-04-16 Tom Tromey <tromey@adacore.com>
9712
9713 * windows-nat.c (windows_nat::handle_access_violation): New
9714 function.
9715 * nat/windows-nat.h (handle_access_violation): Declare.
9716 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9717 windows-nat.c. Call handle_access_violation.
9718
9719 2020-04-16 Tom de Vries <tdevries@suse.de>
9720
9721 PR symtab/25791
9722 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9723 CUs without psymtab.
9724
9725 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9726
9727 * python/python.c (do_start_initialization): Don't call
9728 PyEval_InitThreads for Python 3.9 and beyond.
9729
9730 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9731
9732 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9733 thread functions.
9734 (obsd_nat_target::wait): Likewise.
9735
9736 2020-04-15 Tom Tromey <tromey@adacore.com>
9737
9738 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9739 (DEBUG_EXCEPT): Use debug_printf.
9740
9741 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9742
9743 * completer.c (class completion_tracker::completion_hash_entry)
9744 <hash_name>: New member function.
9745 (completion_tracker::discard_completions): New callback to hash a
9746 completion_hash_entry, pass this to htab_create_alloc.
9747
9748 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9749
9750 * windows-nat.c (windows_make_so): Warn rather than stopping with
9751 an error if realpath() fails.
9752
9753 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9754
9755 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9756 (nbsd_nat_target::info_proc): Add do_status.
9757
9758 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9759 Tom de Vries <tdevries@suse.de>
9760
9761 PR symtab/25718
9762 * psympriv.h (struct partial_symtab::read_symtab)
9763 (struct partial_symtab::expand_psymtab)
9764 (struct partial_symtab::read_dependencies): Update comments.
9765 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9766 read_symtab for includer.
9767 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9768 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9769 (struct dwarf2_include_psymtab::m_readin): Remove.
9770 (struct dwarf2_include_psymtab::includer): New member function.
9771 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9772
9773 2020-04-14 Tom de Vries <tdevries@suse.de>
9774
9775 PR symtab/25720
9776 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9777 with NULL symbol_matcher and lookup_name.
9778 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9779 and lookup_name.
9780 * dwarf2/read.c (dw2_expand_symtabs_matching)
9781 (dw2_debug_names_expand_symtabs_matching): Same.
9782 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9783 Make lookup_name a pointer. Update comment.
9784 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9785 lookup_name being a pointer.
9786 * symfile.c (expand_symtabs_matching): Same.
9787 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9788 * linespec.c (iterate_over_all_matching_symtabs): Same.
9789
9790 2020-04-13 Tom Tromey <tom@tromey.com>
9791
9792 * run-on-main-thread.c: Update include.
9793 * unittests/main-thread-selftests.c: Update include.
9794 * tui/tui-win.c: Update include.
9795 * tui/tui-io.c: Update include.
9796 * tui/tui-interp.c: Update include.
9797 * tui/tui-hooks.c: Update include.
9798 * top.h: Update include.
9799 * top.c: Update include.
9800 * ser-base.c: Update include.
9801 * remote.c: Update include.
9802 * remote-notif.c: Update include.
9803 * remote-fileio.c: Update include.
9804 * record-full.c: Update include.
9805 * record-btrace.c: Update include.
9806 * python/python.c: Update include.
9807 * posix-hdep.c: Update include.
9808 * mingw-hdep.c: Update include.
9809 * mi/mi-main.c: Update include.
9810 * mi/mi-interp.c: Update include.
9811 * main.c: Update include.
9812 * linux-nat.c: Update include.
9813 * interps.c: Update include.
9814 * infrun.c: Update include.
9815 * inf-loop.c: Update include.
9816 * event-top.c: Update include.
9817 * event-loop.c: Move to ../gdbsupport/.
9818 * event-loop.h: Move to ../gdbsupport/.
9819 * async-event.h: Update include.
9820 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9821
9822 2020-04-13 Tom Tromey <tom@tromey.com>
9823
9824 * tui/tui-win.c: Include async-event.h.
9825 * remote.c: Include async-event.h.
9826 * remote-notif.c: Include async-event.h.
9827 * record-full.c: Include async-event.h.
9828 * record-btrace.c: Include async-event.h.
9829 * infrun.c: Include async-event.h.
9830 * event-top.c: Include async-event.h.
9831 * event-loop.h: Move some declarations to async-event.h.
9832 * event-loop.c: Don't include ser-event.h or top.h. Move some
9833 code to async-event.c.
9834 * async-event.h: New file.
9835 * async-event.c: New file.
9836 * Makefile.in (COMMON_SFILES): Add async-event.c.
9837 (HFILES_NO_SRCDIR): Add async-event.h.
9838
9839 2020-04-13 Tom Tromey <tom@tromey.com>
9840
9841 * utils.c (flush_streams): New function.
9842 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9843
9844 2020-04-13 Tom Tromey <tom@tromey.com>
9845
9846 * event-loop.c (handle_file_event): Use warning, not
9847 printf_unfiltered.
9848
9849 2020-04-13 Tom Tromey <tom@tromey.com>
9850
9851 * event-loop.c: Include <chrono>.
9852
9853 2020-04-13 Tom Tromey <tom@tromey.com>
9854
9855 * gdb_select.h: Move to ../gdbsupport/.
9856 * event-loop.c: Update include path.
9857 * top.c: Update include path.
9858 * ser-base.c: Update include path.
9859 * ui-file.c: Update include path.
9860 * ser-tcp.c: Update include path.
9861 * guile/scm-ports.c: Update include path.
9862 * posix-hdep.c: Update include path.
9863 * ser-unix.c: Update include path.
9864 * gdb_usleep.c: Update include path.
9865 * mingw-hdep.c: Update include path.
9866 * inflow.c: Update include path.
9867 * infrun.c: Update include path.
9868 * event-top.c: Update include path.
9869
9870 2020-04-13 Tom Tromey <tom@tromey.com>
9871
9872 * configure: Rebuild.
9873 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9874
9875 2020-04-13 Tom Tromey <tom@tromey.com>
9876
9877 * event-loop.h (start_event_loop): Don't declare.
9878 * event-loop.c (start_event_loop): Move...
9879 * main.c (start_event_loop): ...here. Now static.
9880
9881 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9882
9883 * MAINTAINERS: Update my email address.
9884
9885 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9886
9887 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9888 IP_ALL.
9889
9890 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9891
9892 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9893 (nbsd_nat_target::info_proc): Add do_cmdline.
9894
9895 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9896
9897 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9898 (nbsd_nat_target::info_proc): Add do_cwd.
9899
9900 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9901
9902 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9903
9904 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9905
9906 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9907 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9908 (nbsd_nat_target::info_proc): New functions.
9909 * nbsd-nat.c (kinfo_get_vmmap): New function.
9910 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9911 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9912 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9913 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9914 functions.
9915 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9916 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9917 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9918 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9919 (KINFO_VME_FLAG_GROWS_DOWN): New.
9920
9921 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9922
9923 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9924 bit shift.
9925
9926 2020-04-10 Tom Tromey <tromey@adacore.com>
9927
9928 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9929
9930 2020-04-10 Tom Tromey <tromey@adacore.com>
9931
9932 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9933 separate debug files.
9934
9935 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9936
9937 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9938 Move to...
9939 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9940 ... here.
9941 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9942 Check for STATUS_WX86_BREAKPOINT.
9943 (windows_nat_target::wait): Same.
9944
9945 2020-04-10 Tom de Vries <tdevries@suse.de>
9946
9947 PR cli/25808
9948 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9949
9950 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9951
9952 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9953 (Write After Approval): Remove Tom de Vries.
9954
9955 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9956
9957 revert partially:
9958 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9959
9960 * buildsym.c (record_line): Fix undefined behavior and preserve
9961 lines at eof.
9962
9963 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9964
9965 * auxv.h (svr4_auxv_parse): New.
9966 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9967 and generic_auxv_parse.
9968 (svr4_auxv_parse): Add.
9969 * obsd-tdep.c: Include "auxv.h".
9970 (obsd_auxv_parse): Remove.
9971 (obsd_init_abi): Remove comment.
9972 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9973 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9974 * nbsd-tdep.c: Include "auxv.h".
9975 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9976
9977 2020-04-08 Tom Tromey <tromey@adacore.com>
9978
9979 * nat/windows-nat.h (last_wait_event): Don't declare.
9980 (wait_for_debug_event): Update comment.
9981 * nat/windows-nat.c (last_wait_event): Now static.
9982
9983 2020-04-08 Tom Tromey <tromey@adacore.com>
9984
9985 * windows-nat.c (wait_for_debug_event): Move to
9986 nat/windows-nat.c.
9987 * nat/windows-nat.h (wait_for_debug_event): Declare.
9988 * nat/windows-nat.c (wait_for_debug_event): Move from
9989 windows-nat.c. No longer static.
9990
9991 2020-04-08 Tom Tromey <tromey@adacore.com>
9992
9993 * windows-nat.c (get_windows_debug_event): Use
9994 fetch_pending_stop.
9995 * nat/windows-nat.h (fetch_pending_stop): Declare.
9996 * nat/windows-nat.c (fetch_pending_stop): New function.
9997
9998 2020-04-08 Tom Tromey <tromey@adacore.com>
9999
10000 * windows-nat.c (windows_continue): Use matching_pending_stop and
10001 continue_last_debug_event.
10002 * nat/windows-nat.h (matching_pending_stop)
10003 (continue_last_debug_event): Declare.
10004 * nat/windows-nat.c (DEBUG_EVENTS): New define.
10005 (matching_pending_stop, continue_last_debug_event): New
10006 functions.
10007
10008 2020-04-08 Tom Tromey <tromey@adacore.com>
10009
10010 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
10011 (handle_exception_result): Move to nat/windows-nat.h.
10012 (DEBUG_EXCEPTION_SIMPLE): Remove.
10013 (windows_nat::handle_ms_vc_exception): New function.
10014 (handle_exception): Move to nat/windows-nat.c.
10015 (get_windows_debug_event): Update.
10016 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
10017 nat/windows-nat.c.
10018 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
10019 (handle_exception_result): Move from windows-nat.c.
10020 (handle_exception): Declare.
10021 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
10022 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
10023 windows-nat.c.
10024
10025 2020-04-08 Tom Tromey <tromey@adacore.com>
10026
10027 * windows-nat.c (exception_count, event_count): Remove.
10028 (handle_exception, get_windows_debug_event)
10029 (do_initial_windows_stuff): Update.
10030
10031 2020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (windows_nat::handle_load_dll)
10034 (windows_nat::handle_unload_dll): Rename. No longer static.
10035 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
10036 Declare.
10037
10038 2020-04-08 Tom Tromey <tromey@adacore.com>
10039
10040 * complaints.h (stop_whining): Declare at top-level.
10041 (complaint): Don't declare stop_whining.
10042
10043 2020-04-08 Tom Tromey <tromey@adacore.com>
10044
10045 * windows-nat.c (windows_nat::handle_output_debug_string):
10046 Rename. No longer static.
10047 * nat/windows-nat.h (handle_output_debug_string): Declare.
10048
10049 2020-04-08 Tom Tromey <tromey@adacore.com>
10050
10051 * windows-nat.c (current_process_handle, current_process_id)
10052 (main_thread_id, last_sig, current_event, last_wait_event)
10053 (current_windows_thread, desired_stop_thread_id, pending_stops)
10054 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10055 (display_selectors, fake_create_process)
10056 (get_windows_debug_event): Update.
10057 * nat/windows-nat.h (current_process_handle, current_process_id)
10058 (main_thread_id, last_sig, current_event, last_wait_event)
10059 (current_windows_thread, desired_stop_thread_id, pending_stops)
10060 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10061 * nat/windows-nat.c (current_process_handle, current_process_id)
10062 (main_thread_id, last_sig, current_event, last_wait_event)
10063 (current_windows_thread, desired_stop_thread_id, pending_stops)
10064 (siginfo_er): New globals. Move from windows-nat.c.
10065
10066 2020-04-08 Tom Tromey <tromey@adacore.com>
10067
10068 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10069 (handle_load_dll): Update.
10070 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10071
10072 2020-04-08 Tom Tromey <tromey@adacore.com>
10073
10074 * windows-nat.c (enum thread_disposition_type): Move to
10075 nat/windows-nat.h.
10076 (windows_nat::thread_rec): Rename from thread_rec. No longer
10077 static.
10078 (windows_add_thread, windows_nat_target::fetch_registers)
10079 (windows_nat_target::store_registers, handle_exception)
10080 (windows_nat_target::resume, get_windows_debug_event)
10081 (windows_nat_target::get_tib_address)
10082 (windows_nat_target::thread_name)
10083 (windows_nat_target::thread_alive): Update.
10084 * nat/windows-nat.h (enum thread_disposition_type): Move from
10085 windows-nat.c.
10086 (thread_rec): Declare.
10087
10088 2020-04-08 Tom Tromey <tromey@adacore.com>
10089
10090 * windows-nat.c: Add "using namespace".
10091 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10092 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10093
10094 2020-04-08 Tom Tromey <tromey@adacore.com>
10095
10096 * nat/windows-nat.h (struct windows_thread_info): Declare
10097 destructor.
10098 * nat/windows-nat.c (~windows_thread_info): New.
10099
10100 2020-04-08 Tom Tromey <tromey@adacore.com>
10101
10102 PR gdb/22992
10103 * windows-nat.c (current_event): Update comment.
10104 (last_wait_event, desired_stop_thread_id): New globals.
10105 (struct pending_stop): New.
10106 (pending_stops): New global.
10107 (windows_nat_target) <stopped_by_sw_breakpoint>
10108 <supports_stopped_by_sw_breakpoint>: New methods.
10109 (windows_fetch_one_register): Add assertions. Adjust PC.
10110 (windows_continue): Handle pending stops. Suspend other threads
10111 when stepping. Use last_wait_event
10112 (wait_for_debug_event): New function.
10113 (get_windows_debug_event): Use wait_for_debug_event. Handle
10114 pending stops. Queue spurious stops.
10115 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10116 (windows_nat_target::kill): Use wait_for_debug_event.
10117 * nat/windows-nat.h (struct windows_thread_info)
10118 <stopped_at_software_breakpoint>: New field.
10119 * nat/windows-nat.c (windows_thread_info::resume): Clear
10120 stopped_at_software_breakpoint.
10121
10122 2020-04-08 Tom Tromey <tromey@adacore.com>
10123
10124 * windows-nat.c (enum thread_disposition_type): New.
10125 (thread_rec): Replace "get_context" parameter with "disposition";
10126 change type.
10127 (windows_add_thread, windows_nat_target::fetch_registers)
10128 (windows_nat_target::store_registers, handle_exception)
10129 (windows_nat_target::resume, get_windows_debug_event)
10130 (windows_nat_target::get_tib_address)
10131 (windows_nat_target::thread_name)
10132 (windows_nat_target::thread_alive): Update.
10133
10134 2020-04-08 Tom Tromey <tromey@adacore.com>
10135
10136 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10137 (windows_continue): Use windows_continue::resume.
10138 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10139 resume>: Declare new methods.
10140 * nat/windows-nat.c: New file.
10141 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10142
10143 2020-04-08 Tom Tromey <tromey@adacore.com>
10144
10145 * windows-nat.c (windows_add_thread, windows_delete_thread)
10146 (windows_nat_target::fetch_registers)
10147 (windows_nat_target::store_registers, fake_create_process)
10148 (windows_nat_target::resume, windows_nat_target::resume)
10149 (get_windows_debug_event, windows_nat_target::wait)
10150 (windows_nat_target::pid_to_str)
10151 (windows_nat_target::get_tib_address)
10152 (windows_nat_target::get_ada_task_ptid)
10153 (windows_nat_target::thread_name)
10154 (windows_nat_target::thread_alive): Use lwp, not tid.
10155
10156 2020-04-08 Tom Tromey <tromey@adacore.com>
10157
10158 * windows-nat.c (handle_exception)
10159 (windows_nat_target::thread_name): Update.
10160 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10161 <name>: Now unique_xmalloc_ptr.
10162
10163 2020-04-08 Tom Tromey <tromey@adacore.com>
10164
10165 * windows-nat.c (thread_rec)
10166 (windows_nat_target::fetch_registers): Update.
10167 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10168 Update comment.
10169 <debug_registers_changed, reload_context>: Now bool.
10170
10171 2020-04-08 Tom Tromey <tromey@adacore.com>
10172
10173 * windows-nat.c (windows_add_thread): Use new.
10174 (windows_init_thread_list, windows_delete_thread): Use delete.
10175 (get_windows_debug_event): Update.
10176 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10177 destructor, and initializers.
10178
10179 2020-04-08 Tom Tromey <tromey@adacore.com>
10180
10181 * windows-nat.c (struct windows_thread_info): Remove.
10182 * nat/windows-nat.h: New file.
10183
10184 2020-04-08 Tom Tromey <tromey@adacore.com>
10185
10186 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10187 (thread_rec, windows_add_thread, windows_delete_thread)
10188 (windows_continue): Update.
10189
10190 2020-04-08 Tom Tromey <tromey@adacore.com>
10191
10192 * windows-nat.c (struct windows_thread_info): Remove typedef.
10193 (thread_head): Remove.
10194 (thread_list): New global.
10195 (thread_rec, windows_add_thread, windows_init_thread_list)
10196 (windows_delete_thread, windows_continue): Update.
10197
10198 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10199
10200 * windows-tdep.h (windows_init_abi): Add comment.
10201 (cygwin_init_abi): New declaration.
10202 * windows-tdep.c: Split signal enumeration in two, one for
10203 Windows and one for Cygwin.
10204 (windows_gdb_signal_to_target): Only deal with signal of the
10205 Windows OS ABI.
10206 (cygwin_gdb_signal_to_target): New function.
10207 (windows_init_abi): Rename to windows_init_abi_common, don't set
10208 gdb_signal_to_target gdbarch method. Add new new function with
10209 this name.
10210 (cygwin_init_abi): New function.
10211 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10212 comment. Don't call windows_init_abi.
10213 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10214 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10215 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10216 i386_windows_init_abi_common, don't call windows_init_abi. Add
10217 a new function of this name.
10218 (i386_cygwin_init_abi): New function.
10219 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10220 OS ABI Cygwin.
10221
10222 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10223
10224 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10225 parameter.c.
10226 (dwarf2_read_gdb_index): Update.
10227
10228 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10229
10230 * nbsd-tdep.c: Include "objfiles.h".
10231 (nbsd_skip_solib_resolver): New.
10232 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10233
10234 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10235
10236 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10237 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10238 with DW_LLE_base_addressx are being emitted in DWARFv5.
10239 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10240 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10241 unsigned integer.
10242
10243 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10244
10245 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10246 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10247 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10248 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10249 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10250 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10251 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10252
10253
10254 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10255
10256 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10257 (read_loclist_index): New function definition.
10258 (lookup_loclist_base): New function definition.
10259 (read_loclist_header): New function definition.
10260 (dwarf2_cu): Add loclist_base and loclist_header field.
10261 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10262 (read_full_die_1): Read the value of DW_AT_loclists_base.
10263 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10264 (read_attribute_value): Handle DW_FORM_loclistx.
10265 (skip_one_die): Handle DW_FORM_loclistx.
10266 (loclist_header): New structure declaration.
10267 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10268
10269 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10270
10271 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10272 constructor. Remove `addr` parameter from other constructor and
10273 add `per_cu` parameter.
10274 * dwarf2/read.c (create_partial_symtab): Update.
10275
10276 2020-04-07 Tom de Vries <tdevries@suse.de>
10277
10278 PR symtab/25796
10279 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10280 (partial_die_info::fixup): Inherit has_const_value.
10281
10282 2020-04-07 Tom de Vries <tdevries@suse.de>
10283
10284 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10285 symbols without address.
10286
10287 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10288
10289 * nbsd-nat.h (struct thread_info): Add forward declaration.
10290 (nbsd_nat_target::thread_alive): Add.
10291 (nbsd_nat_target::thread_name): Likewise.
10292 (nbsd_nat_target::update_thread_list): Likewise.
10293 (update_thread_list::post_attach): Likewise.
10294 (post_attach::pid_to_str): Likewise.
10295 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10296 (nbsd_thread_lister): Add.
10297 (nbsd_nat_target::thread_alive): Likewise.
10298 (nbsd_nat_target::thread_name): Likewise.
10299 (nbsd_add_threads): Likewise.
10300 (update_thread_list::post_attach): Likewise.
10301 (nbsd_nat_target::update_thread_list): Likewise.
10302 (post_attach::pid_to_str): Likewise.
10303
10304 2020-04-06 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-valprint.c (print_variant_part): Extract the variant field.
10307 (print_field_values): Use the field as the outer value when
10308 recursing.
10309
10310 2020-04-06 Tom Tromey <tromey@adacore.com>
10311
10312 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10313 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10314 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10315 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10316 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10317
10318 2020-04-06 Tom Tromey <tromey@adacore.com>
10319
10320 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10321 TYPE_CODE_ERROR.
10322
10323 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10324
10325 * nbsd-tdep.c: Include "gdbarch.h".
10326 Define enum with NetBSD signal numbers.
10327 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10328 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10329 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10330 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10331 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10332 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10333 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10334 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10335 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10336 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10337 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10338 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10339
10340 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10341
10342 PR gdb/25325
10343 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10344
10345 2020-04-03 Tom Tromey <tromey@adacore.com>
10346
10347 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10348 Read constant block.
10349
10350 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10351
10352 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10353 (gdb_bfd_get_full_section_contents): New declaration.
10354 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10355 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10356 gdb_bfd_get_full_section_contents.
10357
10358 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10359
10360 * exec.c (build_section_table): Replace internal_error with
10361 gdb_assert.
10362 (section_table_xfer_memory_partial): Likewise.
10363 * mdebugread.c (parse_partial_symbols): Likewise.
10364 * psymtab.c (lookup_partial_symbol): Likewise.
10365 * utils.c (wrap_here): Likewise.
10366
10367 2020-04-02 Tom Tromey <tromey@adacore.com>
10368
10369 * f-lang.c (build_fortran_types): Use arch_type to initialize
10370 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10371
10372 2020-04-02 Tom Tromey <tromey@adacore.com>
10373
10374 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10375 of attributes.
10376
10377 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10378 Bernd Edlinger <bernd.edlinger@hotmail.de>
10379 Tom Tromey <tromey@adacore.com>
10380
10381 * buildsym.c (buildsym_compunit::record_line): Remove
10382 deduplication code.
10383
10384 2020-04-02 Tom de Vries <tdevries@suse.de>
10385
10386 PR ada/24671
10387 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10388
10389 2020-04-02 Tom de Vries <tdevries@suse.de>
10390
10391 * dwarf2/read.c (dwarf2_gdb_index_functions,
10392 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10393 NULL.
10394 * psymtab.c (psym_lookup_global_symbol_language): New function.
10395 (psym_functions): Init psym_lookup_global_symbol_language with
10396 psym_lookup_global_symbol_language.
10397 * symfile-debug.c (debug_sym_quick_functions): Init
10398 lookup_global_symbol_language with NULL.
10399 * symfile.c (set_initial_language): Remove fixme comment.
10400 * symfile.h (struct quick_symbol_functions): Add
10401 lookup_global_symbol_language.
10402 * symtab.c (find_quick_global_symbol_language): New function.
10403 (find_main_name): Use find_quick_global_symbol_language.
10404
10405 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10406
10407 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10408
10409 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10410
10411 * buildsym.c (record_line): Fix undefined behavior and preserve
10412 lines at eof.
10413
10414 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10415
10416 * buildsym.c (record_line): Fix the resizing condition.
10417
10418 2020-04-01 Tom Tromey <tom@tromey.com>
10419
10420 * value.h (value_literal_complex): Add comment.
10421 * valops.c (value_literal_complex): Refer to value.h.
10422
10423 2020-04-01 Tom Tromey <tom@tromey.com>
10424
10425 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10426 (scalar_type): New rule, from typebase.
10427 (typebase): Use scalar_type. Recognize complex types.
10428 (field_name): Handle FLOAT_KEYWORD.
10429 (ident_tokens): Add _Complex and __complex__.
10430
10431 2020-04-01 Tom Tromey <tom@tromey.com>
10432
10433 PR exp/25299:
10434 * valarith.c (promotion_type, complex_binop): New functions.
10435 (scalar_binop): Handle complex numbers. Use promotion_type.
10436 (value_pos, value_neg, value_complement): Handle complex numbers.
10437
10438 2020-04-01 Tom Tromey <tom@tromey.com>
10439
10440 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10441 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10442 (parse_number): Handle complex numbers.
10443
10444 2020-04-01 Tom Tromey <tom@tromey.com>
10445
10446 * c-valprint.c (c_decorations): Change complex suffix to "i".
10447
10448 2020-04-01 Tom Tromey <tom@tromey.com>
10449
10450 * valprint.c (generic_value_print_complex): Use accessors.
10451 * value.h (value_real_part, value_imaginary_part): Declare.
10452 * valops.c (value_real_part, value_imaginary_part): New
10453 functions.
10454 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10455
10456 2020-04-01 Tom Tromey <tom@tromey.com>
10457
10458 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10459 (read_range_type): Update.
10460 * mdebugread.c (basic_type): Update.
10461 * go-lang.c (build_go_types): Use init_complex_type.
10462 * gdbtypes.h (struct main_type) <complex_type>: New member.
10463 (init_complex_type): Update.
10464 (arch_complex_type): Don't declare.
10465 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10466 Make name if none given. Use alloc_type_copy. Look for cached
10467 complex type.
10468 (arch_complex_type): Remove.
10469 (gdbtypes_post_init): Use init_complex_type.
10470 * f-lang.c (build_fortran_types): Use init_complex_type.
10471 * dwarf2/read.c (read_base_type): Update.
10472 * d-lang.c (build_d_types): Use init_complex_type.
10473 * ctfread.c (read_base_type): Update.
10474
10475 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10476
10477 * infrun.c (stop_all_threads): Update assertion, plus when
10478 stopping threads, take into account that we might be trying
10479 to stop an all-stop target.
10480 (stop_waiting): Call 'stop_all_threads' if there exists a
10481 non-stop target.
10482
10483 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10484
10485 * target.h (exists_non_stop_target): New function declaration.
10486 * target.c (exists_non_stop_target): New function.
10487
10488 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10489
10490 PR gdb/24789
10491 * eval.c (is_integral_or_integral_reference): New function.
10492 (evaluate_subexp_standard): Allow integer references in
10493 pointer arithmetic.
10494
10495 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10496
10497 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10498 check for no ptid in the stop reply when the target is non-stop.
10499
10500 2020-04-01 Tom Tromey <tromey@adacore.com>
10501
10502 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10503 "name" parameter to rvalue reference. Initialize m_name_holder.
10504 <lookup_name_info>: New overloads.
10505 <name>: Return gdb::string_view.
10506 <c_str>: New method.
10507 <make_ignore_params>: Update.
10508 <search_name_hash>: Update.
10509 <language_lookup_name>: Return const char *.
10510 <m_name>: Change type.
10511 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10512 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10513 (lookup_name_info::match_any): Update.
10514 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10515 Update.
10516 * minsyms.c (linkage_name_str): Update.
10517 * language.c (default_symbol_name_matcher): Update.
10518 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10519 Update.
10520 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10521 (ada_lookup_name_info::ada_lookup_name_info): Update.
10522 (literal_symbol_name_matcher): Update.
10523
10524 2020-04-01 Tom Tromey <tromey@adacore.com>
10525
10526 * psymtab.c (psymtab_search_name): Remove function.
10527 (psym_lookup_symbol): Create search name and lookup name here.
10528 (lookup_partial_symbol): Remove "name" parameter; add
10529 lookup_name.
10530 (psym_expand_symtabs_for_function): Update.
10531
10532 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10533
10534 PR tui/25597:
10535 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10536
10537 2020-03-31 Tom Tromey <tromey@adacore.com>
10538
10539 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10540 memcpy.
10541
10542 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10543
10544 * features/riscv/32bit-csr.xml: Regenerated.
10545 * features/riscv/64bit-csr.xml: Regenerated.
10546
10547 2020-03-30 Tom Tromey <tromey@adacore.com>
10548
10549 * ada-valprint.c (print_variant_part): Update.
10550 * ada-lang.h (ada_which_variant_applies): Update.
10551 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10552 outer_valaddr parameters; replace with "outer" value parameter.
10553 (to_fixed_variant_branch_type): Update.
10554
10555 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10556
10557 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10558 <list>. Remove inclusion of observable.h.
10559 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10560 (struct arch_lwp_info): New struct.
10561 (class ppc_linux_dreg_interface): New class.
10562 (struct ppc_linux_process_info): New struct.
10563 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10564 <low_new_clone, low_forget_process, low_prepare_to_resume>
10565 <copy_thread_dreg_state, mark_thread_stale>
10566 <mark_debug_registers_changed, register_hw_breakpoint>
10567 <clear_hw_breakpoint, register_wp, clear_wp>
10568 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10569 <num_memory_accesses, get_trigger_type>
10570 <create_watchpoint_request, hwdebug_point_cmp>
10571 <init_arch_lwp_info, get_arch_lwp_info>
10572 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10573 methods.
10574 <struct ptid_hash>: New inner struct.
10575 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10576 members.
10577 (saved_dabr_value, hwdebug_info, max_slots_number)
10578 (struct hw_break_tuple, struct thread_points, ppc_threads)
10579 (have_ptrace_hwdebug_interface)
10580 (hwdebug_find_thread_points_by_tid)
10581 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10582 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10583 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10584 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10585 use m_dreg_interface.
10586 (hwdebug_point_cmp): Change to...
10587 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10588 reference arguments instead of pointers.
10589 (ppc_linux_nat_target::ranged_break_num_registers): Use
10590 m_dreg_interface.
10591 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10592 m_dreg_interface. Call register_hw_breakpoint.
10593 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10594 m_dreg_interface. Call clear_hw_breakpoint.
10595 (get_trigger_type): Change to...
10596 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10597 comment.
10598 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10599 use m_dreg_interface. Call register_hw_breakpoint.
10600 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10601 use m_dreg_interface. Call clear_hw_breakpoint.
10602 (can_use_watchpoint_cond_accel): Change to...
10603 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10604 method. Update comment, use m_dreg_interface and
10605 m_process_info.
10606 (calculate_dvc): Change to...
10607 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10608 m_dreg_interface.
10609 (num_memory_accesses): Change to...
10610 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10611 (check_condition): Change to...
10612 (ppc_linux_nat_target::check_condition): ...this method.
10613 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10614 comment, use m_dreg_interface.
10615 (create_watchpoint_request): Change to...
10616 (ppc_linux_nat_target::create_watchpoint_request): ...this
10617 method. Use m_dreg_interface.
10618 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10619 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10620 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10621 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10622 (ppc_linux_nat_target::low_forget_process)
10623 (ppc_linux_nat_target::low_new_fork)
10624 (ppc_linux_nat_target::low_new_clone)
10625 (ppc_linux_nat_target::low_delete_thread)
10626 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10627 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10628 only call mark_thread_stale.
10629 (ppc_linux_thread_exit): Remove.
10630 (ppc_linux_nat_target::stopped_data_address): Change to...
10631 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10632 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10633 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10634 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10635 comment. Call low_stopped_data_address.
10636 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10637 m_dreg_interface.
10638 (ppc_linux_nat_target::masked_watch_num_registers): Use
10639 m_dreg_interface.
10640 (ppc_linux_nat_target::copy_thread_dreg_state)
10641 (ppc_linux_nat_target::mark_thread_stale)
10642 (ppc_linux_nat_target::mark_debug_registers_changed)
10643 (ppc_linux_nat_target::register_hw_breakpoint)
10644 (ppc_linux_nat_target::clear_hw_breakpoint)
10645 (ppc_linux_nat_target::register_wp)
10646 (ppc_linux_nat_target::clear_wp)
10647 (ppc_linux_nat_target::init_arch_lwp_info)
10648 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10649 (_initialize_ppc_linux_nat): Remove observer callback.
10650
10651 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10652
10653 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10654 (ppc_linux_nat_target::auxv_parse)
10655 (ppc_linux_nat_target::read_description)
10656 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10657 Move up.
10658
10659 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10660
10661 * linux-nat.h (low_new_clone): New method.
10662 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10663
10664 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10665
10666 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10667 (dbx_expand_psymtab): ... this.
10668 (start_psymtab): Update.
10669 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10670 (mdebug_expand_psymtab): ... this.
10671 (parse_partial_symbols): Update.
10672 (new_psymtab): Update.
10673 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10674 (xcoff_expand_psymtab): ... this.
10675 (xcoff_start_psymtab): Update.
10676
10677 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10678
10679 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10680 <expand_dependencies>: ... this.
10681 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10682 (partial_symtab::expand_dependencies): ... this.
10683 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10684 Update.
10685 (dwarf2_psymtab::expand_psymtab): Update.
10686 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10687 * mdebugread.c (psymtab_to_symtab_1): Update.
10688 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10689
10690 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10691
10692 * psympriv.h (discard_psymtab): Remove.
10693 * dbxread.c (dbx_end_psymtab): Update.
10694 * xcoffread.c (xcoff_end_psymtab): Update.
10695
10696 2020-03-28 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10699 comment.
10700
10701 2020-03-28 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10704
10705 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10706
10707 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10708
10709 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10710
10711 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10712
10713 2020-03-26 Tom Tromey <tom@tromey.com>
10714
10715 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10716 (mark_common_block_symbol_computed, read_tag_string_type)
10717 (attr_to_dynamic_prop, read_subrange_type): Update.
10718 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10719 to be methods on struct attribute.
10720 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10721 (read_call_site_scope, partial_die_info::read)
10722 (partial_die_info::read, lookup_die_type, follow_die_ref):
10723 Update.
10724 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10725 from dwarf2_get_ref_die_offset.
10726 (attribute::constant_value): New method, from
10727 dwarf2_get_attr_constant_value.
10728 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10729 Declare method.
10730 <constant_value>: New method.
10731
10732 2020-03-26 Tom Tromey <tom@tromey.com>
10733
10734 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10735 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10736 (dwarf_type_encoding_name): Move to stringify.c.
10737 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10738 * dwarf2/stringify.c: New file.
10739 * dwarf2/stringify.h: New file.
10740
10741 2020-03-26 Tom Tromey <tom@tromey.com>
10742
10743 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10744 Rewrite.
10745
10746 2020-03-26 Tom Tromey <tom@tromey.com>
10747
10748 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10749 methods.
10750 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10751 (lookup_ranges_base): Likewise.
10752 (read_cutu_die_from_dwo, read_full_die_1): Update.
10753
10754 2020-03-26 Tom Tromey <tom@tromey.com>
10755
10756 * dwarf2/read.c (read_import_statement, read_file_scope)
10757 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10758 (read_lexical_block_scope, read_call_site_scope)
10759 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10760 (handle_struct_member_die, process_structure_scope)
10761 (update_enumeration_type_from_children)
10762 (process_enumeration_scope, read_array_type, read_common_block)
10763 (read_namespace, read_module, read_subroutine_type): Update.
10764 (sibling_die): Remove.
10765
10766 2020-03-26 Tom Tromey <tom@tromey.com>
10767
10768 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10769 (build_type_psymtabs_reader, read_structure_type)
10770 (read_enumeration_type, read_full_die_1): Update.
10771 (dwarf2_attr_no_follow): Move to die.h.
10772 * dwarf2/die.h (struct die_info) <attr>: New method.
10773
10774 2020-03-26 Tom Tromey <tom@tromey.com>
10775
10776 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10777 <base_address>: Now an optional.
10778 (dwarf2_find_base_address, dwarf2_rnglists_process)
10779 (dwarf2_ranges_process, fill_in_loclist_baton)
10780 (dwarf2_symbol_mark_computed): Update.
10781
10782 2020-03-26 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/read.c (struct die_info): Move to die.h.
10785 * dwarf2/die.h: New file.
10786
10787 2020-03-26 Tom Tromey <tom@tromey.com>
10788
10789 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10790 * dwarf2/read.c
10791 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10792 Move to line-header.c.
10793 (read_checked_initial_length_and_offset, read_formatted_entries):
10794 Likewise.
10795 (dwarf_decode_line_header): Split into two.
10796 * dwarf2/line-header.c
10797 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10798 Move from read.c.
10799 (read_checked_initial_length_and_offset, read_formatted_entries):
10800 Likewise.
10801 (dwarf_decode_line_header): New function, split from read.c.
10802
10803 2020-03-26 Tom Tromey <tom@tromey.com>
10804
10805 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10806 Declare method.
10807 * dwarf2/read.c (read_attribute_value): Update.
10808 (dwarf2_per_objfile::read_line_string): Rename from
10809 read_indirect_line_string.
10810 (read_formatted_entries): Update.
10811
10812 2020-03-26 Tom Tromey <tom@tromey.com>
10813
10814 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10815 variable.
10816
10817 2020-03-26 Tom Tromey <tom@tromey.com>
10818
10819 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10820 const.
10821 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10822 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10823 parameter const.
10824
10825 2020-03-26 Tom Tromey <tom@tromey.com>
10826
10827 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10828 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10829 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10830 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10831
10832 2020-03-26 Tom Tromey <tom@tromey.com>
10833
10834 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10835 file_names_size, file_full_name, file_file_name>: Use const.
10836 <file_name_at, file_names>: Add const overload.
10837 * dwarf2/line-header.c (line_header::file_file_name)
10838 (line_header::file_full_name): Update.
10839
10840 2020-03-26 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10843 (macro_start_file, consume_improper_spaces)
10844 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10845 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10846 (dwarf_decode_macros): Move to macro.c.
10847 * dwarf2/macro.c: New file.
10848 * dwarf2/macro.h: New file.
10849 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10850
10851 2020-03-26 Tom Tromey <tom@tromey.com>
10852
10853 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10854 method.
10855 * dwarf2/section.c: New method. From
10856 read_indirect_string_at_offset_from.
10857 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10858 (read_indirect_string_at_offset_from): Move to section.c.
10859 (read_indirect_string_at_offset): Rewrite.
10860 (read_indirect_line_string_at_offset): Remove.
10861 (read_indirect_string, read_indirect_line_string)
10862 (dwarf_decode_macro_bytes): Update.
10863
10864 2020-03-26 Tom Tromey <tom@tromey.com>
10865
10866 * dwarf2/section.h (struct dwarf2_section_info)
10867 <overload_complaint>: Declare.
10868 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10869 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10870 Rename from dwarf2_section_buffer_overflow_complaint.
10871 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10872 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10873
10874 2020-03-26 Tom Tromey <tom@tromey.com>
10875
10876 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10877 Declare.
10878 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10879 Move from read.c.
10880 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10881 to section.c.
10882
10883 2020-03-26 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10886
10887 2020-03-26 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10890 "builder".
10891 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10892 parameter.
10893 (dwarf_decode_macros): Update.
10894
10895 2020-03-26 Tom Tromey <tom@tromey.com>
10896
10897 * dwarf2/read.c (read_attribute_value): Update.
10898 (read_indirect_string_from_dwz): Move to dwz.c; change into
10899 method.
10900 (dwarf_decode_macro_bytes): Update.
10901 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10902 * dwarf2/dwz.c: New file.
10903 * Makefile.in (COMMON_SFILES): Add dwz.c.
10904
10905 2020-03-26 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10908 * dwarf2/read.c: Add include.
10909 * dwarf2/index-write.c: Add include.
10910 * dwarf2/index-cache.c: Add include.
10911 * dwarf2/dwz.h: New file.
10912
10913 2020-03-25 Tom Tromey <tom@tromey.com>
10914
10915 * compile/compile-object-load.c (get_out_value_type): Mention
10916 correct symbol name in error message.
10917
10918 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10919
10920 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10921
10922 2020-03-25 Tom de Vries <tdevries@suse.de>
10923
10924 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10925 * symmisc.c (dump_symtab_1): Print user and includes fields.
10926 (maintenance_info_symtabs): Same.
10927
10928 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10929
10930 PR gdb/25534
10931 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10932 (riscv_regcache_cooked_write): New function.
10933 (riscv_push_dummy_call): Use new function.
10934 (riscv_return_value): Likewise.
10935
10936 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10937
10938 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10939 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10940 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10941 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10942 * infrun.c (follow_fork): Likewise.
10943 (follow_fork_inferior): Likewise.
10944 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10945 * linux-nat.h (class linux_nat_target): Likewise.
10946 * remote.c (class remote_target) <follow_fork>: Likewise.
10947 (remote_target::follow_fork): Likewise.
10948 * target-delegates.c: Re-generate.
10949 * target.c (default_follow_fork): Likewise.
10950 (target_follow_fork): Likewise.
10951 * target.h (struct target_ops) <follow_fork>: Likewise.
10952 (target_follow_fork): Likewise.
10953
10954 2020-03-24 Tom de Vries <tdevries@suse.de>
10955
10956 * psymtab.c (maintenance_info_psymtabs): Print user field.
10957
10958 2020-03-20 Tom Tromey <tromey@adacore.com>
10959
10960 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10961 const.
10962 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10963 const.
10964
10965 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * ptrace.m4: Don't check for ptrace declaration.
10968 * config.in: Re-generate.
10969 * configure: Re-generate.
10970 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10971 not defined.
10972
10973 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10974
10975 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10976 `PTRACE_TYPE_RET'.
10977 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10978 * sparc-nat.c (gdb_ptrace): Likewise.
10979 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10980
10981 2020-03-20 Tom Tromey <tromey@adacore.com>
10982
10983 * c-exp.y (lex_one_token): Fix assert.
10984
10985 2020-03-20 Tom Tromey <tromey@adacore.com>
10986
10987 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10988 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10989 strncpy call.
10990
10991 2020-03-20 Tom Tromey <tromey@adacore.com>
10992
10993 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10994
10995 2020-03-20 Tom Tromey <tromey@adacore.com>
10996
10997 * ada-valprint.c (print_variant_part): Remove parameters; switch
10998 to value-based API.
10999 (print_field_values): Likewise.
11000 (ada_val_print_struct_union): Likewise.
11001 (ada_value_print_1): Update.
11002
11003 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11004
11005 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
11006 nbsd_nat_target instead of inf_ptrace_target.
11007 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11008 nbsd_nat_target.
11009
11010 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11011
11012 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
11013 it to the ptrace call.
11014 * (store_registers): Likewise.
11015
11016 2020-03-20 Kamil Rytarowski <n54@gmx.com>
11017
11018 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
11019 it to the ptrace call.
11020 * (store_registers): Likewise.
11021
11022 2020-03-19 Luis Machado <luis.machado@linaro.org>
11023
11024 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
11025 valid, fetch vg value from ptrace.
11026
11027 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11028 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
11029 * inf-ptrace.c: Likewise.
11030 * (gdb_ptrace): Add.
11031 * (inf_ptrace_target::resume): Update.
11032 * (inf_ptrace_target::xfer_partial): Likewise.
11033 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
11034 * (inf_ptrace_peek_poke): Update.
11035
11036 2020-03-19 Kamil Rytarowski <n54@gmx.com>
11037
11038 * x86-bsd-nat.c (gdb_ptrace): New.
11039 * (x86bsd_dr_set): Add new argument `ptid'.
11040 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
11041 x86bsd_dr_set_addr): Update.
11042
11043 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11044
11045 * remote.c (remote_target::process_stop_reply): Handle events for
11046 all threads differently.
11047
11048 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * completer.c (completion_tracker::remove_completion): Define new
11051 function.
11052 * completer.h (completion_tracker::remove_completion): Declare new
11053 function.
11054 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11055 when adding a C++ function symbol.
11056
11057 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11058
11059 * completer.c (completion_tracker::completion_hash_entry): Define
11060 new class.
11061 (advance_to_filename_complete_word_point): Call
11062 recompute_lowest_common_denominator.
11063 (completion_tracker::completion_tracker): Call discard_completions
11064 to setup the hash table.
11065 (completion_tracker::discard_completions): Allow for being called
11066 from the constructor, pass new equal function, and element deleter
11067 when constructing the hash table. Initialise new class member
11068 variables.
11069 (completion_tracker::maybe_add_completion): Remove use of
11070 m_entries_vec, and store more information into m_entries_hash.
11071 (completion_tracker::recompute_lcd_visitor): New function, most
11072 content taken from...
11073 (completion_tracker::recompute_lowest_common_denominator):
11074 ...here, this now just visits each item in the hash calling the
11075 above visitor.
11076 (completion_tracker::build_completion_result): Remove use of
11077 m_entries_vec, call recompute_lowest_common_denominator.
11078 * completer.h (completion_tracker::have_completions): Remove use
11079 of m_entries_vec.
11080 (completion_tracker::completion_hash_entry): Declare new class.
11081 (completion_tracker::recompute_lowest_common_denominator): Change
11082 function signature.
11083 (completion_tracker::recompute_lcd_visitor): Declare new function.
11084 (completion_tracker::m_entries_vec): Delete.
11085 (completion_tracker::m_entries_hash): Initialize to NULL.
11086 (completion_tracker::m_lowest_common_denominator_valid): New
11087 member variable.
11088 (completion_tracker::m_lowest_common_denominator_max_length): New
11089 member variable.
11090
11091 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11092
11093 * regformats/regdef.h: Put reg in gdb namespace.
11094
11095 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11096
11097 * i386-bsd-nat.c (gdb_ptrace): New.
11098 * (i386bsd_fetch_inferior_registers,
11099 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11100 * (i386bsd_fetch_inferior_registers,
11101 i386bsd_store_inferior_registers) Use gdb_ptrace.
11102
11103 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11104
11105 * amd64-bsd-nat.c (gdb_ptrace): New.
11106 * (amd64bsd_fetch_inferior_registers,
11107 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11108 * (amd64bsd_fetch_inferior_registers,
11109 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11110
11111 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11112
11113 * user-regs.c (user_reg::read): Rename to...
11114 (user_reg::xread): ...this.
11115 * (append_user_reg): Rename argument `read' to `xread'.
11116 * (user_reg_add_builtin): Likewise.
11117 * (user_reg_add): Likewise.
11118 * (value_of_user_reg): Likewise.
11119
11120 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11121
11122 * sparc-nat.c (gdb_ptrace): New.
11123 * sparc-nat.c (sparc_fetch_inferior_registers)
11124 (sparc_store_inferior_registers) Remove obsolete comment.
11125 * sparc-nat.c (sparc_fetch_inferior_registers)
11126 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11127 * sparc-nat.c (sparc_fetch_inferior_registers)
11128 (sparc_store_inferior_registers) Use gdb_ptrace.
11129
11130 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11131
11132 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11133 it to the ptrace call.
11134 * sh-nbsd-nat.c (store_registers): Likewise.
11135
11136 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11137
11138 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11139 nbsd_nat_target instead of inf_ptrace_target.
11140 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11141 nbsd_nat_target.
11142
11143 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11144
11145 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11146
11147 2020-03-17 Kamil Rytarowski <n54@gmx.com>
11148
11149 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11150 <sys/sysctl.h>.
11151 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11152
11153 2020-03-17 Tom de Vries <tdevries@suse.de>
11154
11155 PR gdb/23710
11156 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11157 fields.
11158 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11159 fields.
11160 (process_imported_unit_die): Skip import of c++ CUs.
11161
11162 2020-03-16 Tom Tromey <tom@tromey.com>
11163
11164 * p-valprint.c (pascal_object_print_value): Initialize
11165 base_value.
11166
11167 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11168 Shahab Vahedi <shahab@synopsys.com>
11169
11170 * Makefile.in: Add arch/arc.o
11171 * configure.tgt: Likewise.
11172 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11173 (_initialize_arc_tdep): Don't initialize old target descriptions.
11174 (arc_read_description): New function to cache target descriptions.
11175 * arc-tdep.h (arc_read_description): Add proto type.
11176 * arch/arc.c: New file.
11177 * arch/arc.h: Likewise.
11178 * features/Makefile: Replace old target descriptions with new.
11179 * features/arc-arcompact.c: Remove.
11180 * features/arc-arcompact.xml: Likewise.
11181 * features/arc-v2.c: Likewise
11182 * features/arc-v2.xml: Likewise
11183 * features/arc/aux-arcompact.xml: New file.
11184 * features/arc/aux-v2.xml: Likewise.
11185 * features/arc/core-arcompact.xml: Likewise.
11186 * features/arc/core-v2.xml: Likewise.
11187 * features/arc/aux-arcompact.c: Generate.
11188 * features/arc/aux-v2.c: Likewise.
11189 * features/arc/core-arcompact.c: Likewise.
11190 * features/arc/core-v2.c: Likewise.
11191 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11192
11193 2020-03-16 Tom Tromey <tromey@adacore.com>
11194
11195 PR gdb/25663:
11196 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11197 putting value into bcache.
11198
11199 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11200
11201 PR gdb/21500
11202 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11203 to...
11204 (amd64_windows_init_abi_common): ... this. Don't set size of
11205 long type.
11206 (amd64_windows_init_abi): New function.
11207 (amd64_cygwin_init_abi): New function.
11208 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11209 the Cygwin OS ABI.
11210 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11211 comment.
11212
11213 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11216 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11217 (pe_import_directory_entry): New struct type.
11218 (is_linked_with_cygwin_dll): New function.
11219 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11220 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11221 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11222
11223 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11224
11225 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11226 i386_cygwin_core_osabi_sniffer.
11227
11228 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11229
11230 * i386-cygwin-tdep.c: Rename to...
11231 * i386-windows-tdep.c: ... this.
11232 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11233 i386-windows-tdep.c.
11234 * configure.tgt: Likewise.
11235
11236 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11237
11238 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11239 * osabi.c (gdb_osabi_names): Add "Windows".
11240 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11241 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11242 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11243 i386_cygwin_osabi_sniffer.
11244 (_initialize_i386_cygwin_tdep): Register OS ABI
11245 GDB_OSABI_WINDOWS for i386.
11246 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11247 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11248 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11249 for x86-64.
11250 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11251 when the target matches '*-*-mingw*'.
11252
11253 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * defs.h (enum gdb_osabi): Move to...
11256 * osabi.h (enum gdb_osabi): ... here.
11257 * gdbarch.sh: Include osabi.h in gdbarch.h.
11258 * gdbarch.h: Re-generate.
11259
11260 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11263 function.
11264 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11265
11266 2020-03-14 Tom Tromey <tom@tromey.com>
11267
11268 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11269 for C++.
11270 (c_type_print_modifier): Likewise. Add "language" parameter.
11271 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11272 (c_type_print_base_1): Update.
11273 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11274 constants.
11275 * type-stack.c (type_stack::insert): Handle tp_atomic and
11276 tp_restrict.
11277 (type_stack::follow_type_instance_flags): Likewise.
11278 (type_stack::follow_types): Likewise. Merge type-following code.
11279 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11280 (space_identifier, cv_with_space_id)
11281 (const_or_volatile_or_space_identifier_noopt)
11282 (const_or_volatile_or_space_identifier): Remove.
11283 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11284 rules.
11285 (ptr_operator, typebase): Update.
11286 (enum token_flag) <FLAG_C>: New constant.
11287 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11288 "_Atomic".
11289 (lex_one_token): Handle FLAG_C.
11290
11291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11292
11293 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11294 it to the ptrace call.
11295 * m68k-bsd-nat.c (store_registers): Likewise.
11296
11297 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11298
11299 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11300 gdb_byte *.
11301 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11302 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11303 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11304
11305 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11306
11307 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11308 nbsd_nat_target instead of inf_ptrace_target.
11309 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11310 nbsd_nat_target.
11311
11312 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11313
11314 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11315 register_t.
11316
11317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11318
11319 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11320 it to the ptrace call.
11321 * alpha-bsd-nat.c (store_registers): Likewise.
11322
11323 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11324
11325 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11326 includes.
11327 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11328 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11329 fill_fpregset): Likewise.
11330
11331 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11332
11333 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11334 nbsd_nat_target instead of inf_ptrace_target.
11335 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11336 nbsd_nat_target.
11337
11338 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11339
11340 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11341 register_t.
11342
11343 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11344
11345 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11346 it to the ptrace call.
11347 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11348 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11349 * arm-nbsd-nat.c (store_register): Likewise.
11350 * arm-nbsd-nat.c (store_regs): Likewise.
11351 * arm-nbsd-nat.c (store_fp_register): Likewise.
11352 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11353
11354 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11355
11356 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11357 nbsd_nat_target instead of inf_ptrace_target.
11358 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11359 nbsd_nat_target.
11360
11361 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11362
11363 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11364 it to the ptrace call.
11365 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11366
11367 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11368
11369 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11370 it to the ptrace call.
11371 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11372
11373 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11374
11375 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11376 gdb_byte *.
11377 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11378
11379 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11380
11381 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11382 instead of inf_ptrace_target.
11383 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11384 nbsd_nat_target.
11385
11386 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11387
11388 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11389 register_t.
11390
11391 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11392
11393 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11394 register_t.
11395
11396 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11397
11398 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11399 register_t.
11400
11401 2020-03-13 Tom Tromey <tom@tromey.com>
11402
11403 * value.h (val_print): Don't declare.
11404 * valprint.h (val_print_array_elements)
11405 (val_print_scalar_formatted, generic_val_print): Don't declare.
11406 * valprint.c (generic_val_print_array): Take a struct value.
11407 (generic_val_print_ptr, generic_val_print_memberptr)
11408 (generic_val_print_bool, generic_val_print_int)
11409 (generic_val_print_char, generic_val_print_complex)
11410 (generic_val_print): Remove.
11411 (generic_value_print): Update.
11412 (do_val_print): Remove unused parameters. Don't call
11413 la_val_print.
11414 (val_print): Remove.
11415 (common_val_print): Update. Don't call value_check_printable.
11416 (val_print_scalar_formatted, val_print_array_elements): Remove.
11417 * rust-lang.c (rust_val_print): Remove.
11418 (rust_language_defn): Update.
11419 * p-valprint.c (pascal_val_print): Remove.
11420 (pascal_value_print_inner): Update.
11421 (pascal_object_print_val_fields, pascal_object_print_val):
11422 Remove.
11423 (pascal_object_print_static_field): Update.
11424 * p-lang.h (pascal_val_print): Don't declare.
11425 * p-lang.c (pascal_language_defn): Update.
11426 * opencl-lang.c (opencl_language_defn): Update.
11427 * objc-lang.c (objc_language_defn): Update.
11428 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11429 * m2-lang.h (m2_val_print): Don't declare.
11430 * m2-lang.c (m2_language_defn): Update.
11431 * language.h (struct language_defn) <la_val_print>: Remove.
11432 * language.c (unk_lang_value_print_inner): Rename. Change
11433 argument types.
11434 (unknown_language_defn, auto_language_defn): Update.
11435 * go-valprint.c (go_val_print): Remove.
11436 * go-lang.h (go_val_print): Don't declare.
11437 * go-lang.c (go_language_defn): Update.
11438 * f-valprint.c (f_val_print): Remove.
11439 * f-lang.h (f_value_print): Don't declare.
11440 * f-lang.c (f_language_defn): Update.
11441 * d-valprint.c (d_val_print): Remove.
11442 * d-lang.h (d_value_print): Don't declare.
11443 * d-lang.c (d_language_defn): Update.
11444 * cp-valprint.c (cp_print_value_fields)
11445 (cp_print_value_fields_rtti, cp_print_value): Remove.
11446 (cp_print_static_field): Update.
11447 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11448 (c_val_print_struct, c_val_print_union, c_val_print_int)
11449 (c_val_print_memberptr, c_val_print): Remove.
11450 * c-lang.h (c_val_print_array, cp_print_value_fields)
11451 (cp_print_value_fields_rtti): Don't declare.
11452 * c-lang.c (c_language_defn, cplus_language_defn)
11453 (asm_language_defn, minimal_language_defn): Update.
11454 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11455 (ada_val_print_enum): Take a struct value.
11456 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11457 (ada_val_print): Remove.
11458 (ada_value_print_1): Update.
11459 (printable_val_type): Remove.
11460 * ada-lang.h (ada_val_print): Don't declare.
11461 * ada-lang.c (ada_language_defn): Update.
11462
11463 2020-03-13 Tom Tromey <tom@tromey.com>
11464
11465 * valprint.c (do_val_print): Update.
11466 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11467 a struct value.
11468 (value_to_value_object_no_release): Declare.
11469 * python/py-value.c (value_to_value_object_no_release): New
11470 function.
11471 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11472 struct value.
11473 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11474 function.
11475 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11476 a struct value.
11477 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11478 Declare.
11479 (gdbscm_apply_val_pretty_printer): Take a struct value.
11480 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11481 value.
11482 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11483 value.
11484 * extension-priv.h (struct extension_language_ops)
11485 <apply_val_pretty_printer>: Take a struct value.
11486 * cp-valprint.c (cp_print_value): Create a struct value.
11487 (cp_print_value): Update.
11488
11489 2020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * ada-valprint.c (print_field_values): Call common_val_print.
11492
11493 2020-03-13 Tom Tromey <tom@tromey.com>
11494
11495 * ada-valprint.c (val_print_packed_array_elements): Remove
11496 bitoffset and val parameters. Call common_val_print.
11497 (ada_val_print_string): Remove offset, address, and original_value
11498 parameters.
11499 (ada_val_print_array): Update.
11500 (ada_value_print_array): New function.
11501 (ada_value_print_1): Call it.
11502
11503 2020-03-13 Tom Tromey <tom@tromey.com>
11504
11505 * ada-valprint.c (ada_value_print): Use common_val_print.
11506
11507 2020-03-13 Tom Tromey <tom@tromey.com>
11508
11509 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11510
11511 2020-03-13 Tom Tromey <tom@tromey.com>
11512
11513 * ada-valprint.c (ada_value_print_num): New function.
11514 (ada_value_print_1): Use it.
11515
11516 2020-03-13 Tom Tromey <tom@tromey.com>
11517
11518 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11519
11520 2020-03-13 Tom Tromey <tom@tromey.com>
11521
11522 * ada-valprint.c (ada_value_print_ptr): New function.
11523 (ada_value_print_1): Use it.
11524
11525 2020-03-13 Tom Tromey <tom@tromey.com>
11526
11527 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11528 call common_val_print.
11529 (ada_val_print_1): Update.
11530 (ada_value_print_1): New function.
11531 (ada_value_print_inner): Rewrite.
11532
11533 2020-03-13 Tom Tromey <tom@tromey.com>
11534
11535 * cp-valprint.c (cp_print_value_fields): Update.
11536 (cp_print_value): New function.
11537
11538 2020-03-13 Tom Tromey <tom@tromey.com>
11539
11540 * m2-valprint.c (m2_value_print_inner): Use
11541 cp_print_value_fields.
11542 * cp-valprint.c (cp_print_value_fields): New function.
11543 * c-valprint.c (c_value_print_struct): New function.
11544 (c_value_print_inner): Use c_value_print_struct.
11545 * c-lang.h (cp_print_value_fields): Declare.
11546
11547 2020-03-13 Tom Tromey <tom@tromey.com>
11548
11549 * c-valprint.c (c_value_print_array): New function.
11550 (c_value_print_inner): Use it.
11551
11552 2020-03-13 Tom Tromey <tom@tromey.com>
11553
11554 * c-valprint.c (c_value_print_memberptr): New function.
11555 (c_value_print_inner): Use it.
11556
11557 2020-03-13 Tom Tromey <tom@tromey.com>
11558
11559 * c-valprint.c (c_value_print_int): New function.
11560 (c_value_print_inner): Use it.
11561
11562 2020-03-13 Tom Tromey <tom@tromey.com>
11563
11564 * c-valprint.c (c_value_print_ptr): New function.
11565 (c_value_print_inner): Use it.
11566
11567 2020-03-13 Tom Tromey <tom@tromey.com>
11568
11569 * c-valprint.c (c_value_print_inner): Rewrite.
11570
11571 2020-03-13 Tom Tromey <tom@tromey.com>
11572
11573 * valprint.c (generic_value_print_complex): New function.
11574 (generic_value_print): Use it.
11575
11576 2020-03-13 Tom Tromey <tom@tromey.com>
11577
11578 * valprint.c (generic_val_print_float): Don't call
11579 val_print_scalar_formatted.
11580 (generic_val_print, generic_value_print): Update.
11581
11582 2020-03-13 Tom Tromey <tom@tromey.com>
11583
11584 * valprint.c (generic_value_print_char): New function
11585 (generic_value_print): Use it.
11586
11587 2020-03-13 Tom Tromey <tom@tromey.com>
11588
11589 * valprint.c (generic_value_print_int): New function.
11590 (generic_value_print): Use it.
11591
11592 2020-03-13 Tom Tromey <tom@tromey.com>
11593
11594 * valprint.c (generic_value_print_bool): New function.
11595 (generic_value_print): Use it.
11596
11597 2020-03-13 Tom Tromey <tom@tromey.com>
11598
11599 * valprint.c (generic_val_print_func): Simplify.
11600 (generic_val_print, generic_value_print): Update.
11601
11602 2020-03-13 Tom Tromey <tom@tromey.com>
11603
11604 * valprint.c (generic_val_print_flags): Remove.
11605 (generic_val_print, generic_value_print): Update.
11606 (val_print_type_code_flags): Add original_value parameter.
11607
11608 2020-03-13 Tom Tromey <tom@tromey.com>
11609
11610 * valprint.c (generic_val_print): Update.
11611 (generic_value_print): Update.
11612 * valprint.c (generic_val_print_enum): Don't call
11613 val_print_scalar_formatted.
11614
11615 2020-03-13 Tom Tromey <tom@tromey.com>
11616
11617 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11618 * valprint.c (generic_value_print_ptr): New function.
11619
11620 2020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * valprint.c (generic_value_print): Rewrite.
11623
11624 2020-03-13 Tom Tromey <tom@tromey.com>
11625
11626 * p-valprint.c (pascal_object_print_value_fields)
11627 (pascal_object_print_value): New functions.
11628
11629 2020-03-13 Tom Tromey <tom@tromey.com>
11630
11631 * p-valprint.c (pascal_value_print_inner): Rewrite.
11632
11633 2020-03-13 Tom Tromey <tom@tromey.com>
11634
11635 * f-valprint.c (f_value_print_innner): Rewrite.
11636
11637 2020-03-13 Tom Tromey <tom@tromey.com>
11638
11639 * m2-valprint.c (m2_print_unbounded_array): New overload.
11640 (m2_print_unbounded_array): Update.
11641 (m2_print_array_contents): Take a struct value.
11642 (m2_value_print_inner): Rewrite.
11643
11644 2020-03-13 Tom Tromey <tom@tromey.com>
11645
11646 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11647 (d_value_print_inner): New function.
11648 * d-lang.h (d_value_print_inner): Declare.
11649 * d-lang.c (d_language_defn): Use d_value_print_inner.
11650
11651 2020-03-13 Tom Tromey <tom@tromey.com>
11652
11653 * go-valprint.c (go_value_print_inner): New function.
11654 * go-lang.h (go_value_print_inner): Declare.
11655 * go-lang.c (go_language_defn): Use go_value_print_inner.
11656
11657 2020-03-13 Tom Tromey <tom@tromey.com>
11658
11659 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11660 API.
11661 (rust_val_print): Rewrite.
11662 (rust_value_print_inner): New function, from rust_val_print.
11663 (rust_language_defn): Use rust_value_print_inner.
11664
11665 2020-03-13 Tom Tromey <tom@tromey.com>
11666
11667 * ada-valprint.c (ada_value_print_inner): New function.
11668 * ada-lang.h (ada_value_print_inner): Declare.
11669 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11670
11671 2020-03-13 Tom Tromey <tom@tromey.com>
11672
11673 * f-valprint.c (f_value_print_innner): New function.
11674 * f-lang.h (f_value_print_innner): Declare.
11675 * f-lang.c (f_language_defn): Use f_value_print_innner.
11676
11677 2020-03-13 Tom Tromey <tom@tromey.com>
11678
11679 * p-valprint.c (pascal_value_print_inner): New function.
11680 * p-lang.h (pascal_value_print_inner): Declare.
11681 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11682
11683 2020-03-13 Tom Tromey <tom@tromey.com>
11684
11685 * m2-valprint.c (m2_value_print_inner): New function.
11686 * m2-lang.h (m2_value_print_inner): Declare.
11687 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11688
11689 2020-03-13 Tom Tromey <tom@tromey.com>
11690
11691 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11692 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11693 * c-valprint.c (c_value_print_inner): New function.
11694 * c-lang.h (c_value_print_inner): Declare.
11695 * c-lang.c (c_language_defn, cplus_language_defn)
11696 (asm_language_defn, minimal_language_defn): Use
11697 c_value_print_inner.
11698
11699 2020-03-13 Tom Tromey <tom@tromey.com>
11700
11701 * p-valprint.c (pascal_object_print_value_fields): Now static.
11702 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11703
11704 2020-03-13 Tom Tromey <tom@tromey.com>
11705
11706 * c-valprint.c (c_val_print_array): Simplify.
11707
11708 2020-03-13 Tom Tromey <tom@tromey.com>
11709
11710 * valprint.c (value_print_array_elements): New function.
11711 * valprint.h (value_print_array_elements): Declare.
11712
11713 2020-03-13 Tom Tromey <tom@tromey.com>
11714
11715 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11716 * mips-tdep.c (mips_print_register): Use
11717 value_print_scalar_formatted.
11718
11719 2020-03-13 Tom Tromey <tom@tromey.com>
11720
11721 * valprint.h (value_print_scalar_formatted): Declare.
11722 * valprint.c (value_print_scalar_formatted): New function.
11723
11724 2020-03-13 Tom Tromey <tom@tromey.com>
11725
11726 * valprint.h (generic_value_print): Declare.
11727 * valprint.c (generic_value_print): New function.
11728
11729 2020-03-13 Tom Tromey <tom@tromey.com>
11730
11731 * valprint.c (do_val_print): Call la_value_print_inner, if
11732 available.
11733 * rust-lang.c (rust_language_defn): Update.
11734 * p-lang.c (pascal_language_defn): Update.
11735 * opencl-lang.c (opencl_language_defn): Update.
11736 * objc-lang.c (objc_language_defn): Update.
11737 * m2-lang.c (m2_language_defn): Update.
11738 * language.h (struct language_defn) <la_value_print_inner>: New
11739 member.
11740 * language.c (unknown_language_defn, auto_language_defn): Update.
11741 * go-lang.c (go_language_defn): Update.
11742 * f-lang.c (f_language_defn): Update.
11743 * d-lang.c (d_language_defn): Update.
11744 * c-lang.c (c_language_defn, cplus_language_defn)
11745 (asm_language_defn, minimal_language_defn): Update.
11746 * ada-lang.c (ada_language_defn): Update.
11747
11748 2020-03-13 Tom Tromey <tom@tromey.com>
11749
11750 * c-valprint.c (c_value_print): Use common_val_print.
11751
11752 2020-03-13 Tom Tromey <tom@tromey.com>
11753
11754 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11755
11756 2020-03-13 Tom Tromey <tom@tromey.com>
11757
11758 * f-valprint.c (f77_print_array_1, f_val_print): Use
11759 common_val_print.
11760
11761 2020-03-13 Tom Tromey <tom@tromey.com>
11762
11763 * riscv-tdep.c (riscv_print_one_register_info): Use
11764 common_val_print.
11765
11766 2020-03-13 Tom Tromey <tom@tromey.com>
11767
11768 * mi/mi-main.c (output_register): Use common_val_print.
11769
11770 2020-03-13 Tom Tromey <tom@tromey.com>
11771
11772 * infcmd.c (default_print_one_register_info): Use
11773 common_val_print.
11774
11775 2020-03-13 Tom Tromey <tom@tromey.com>
11776
11777 * valprint.h (common_val_print_checked): Declare.
11778 * valprint.c (common_val_print_checked): New function.
11779 * stack.c (print_frame_arg): Use common_val_print_checked.
11780
11781 2020-03-13 Tom Tromey <tom@tromey.com>
11782
11783 * valprint.c (do_val_print): New function, from val_print.
11784 (val_print): Use do_val_print.
11785 (common_val_print): Use do_val_print.
11786
11787 2020-03-13 Tom Tromey <tom@tromey.com>
11788
11789 * valprint.c (value_print): Use scoped_value_mark.
11790
11791 2020-03-13 Tom de Vries <tdevries@suse.de>
11792
11793 PR symtab/25646
11794 * psymtab.c (partial_symtab::partial_symtab): Don't set
11795 globals_offset and statics_offset. Push element onto
11796 current_global_psymbols and current_static_psymbols stacks.
11797 (concat): New function.
11798 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11799 element from current_global_psymbols and current_static_psymbols
11800 stacks. Concat popped elements to global_psymbols and
11801 static_symbols.
11802 (add_psymbol_to_list): Use current_global_psymbols and
11803 current_static_psymbols stacks.
11804 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11805 current_static_psymbols fields.
11806
11807 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11808
11809 * corelow.c (sniff_core_bfd): Remove.
11810 (class core_target) <m_core_vec>: Remove.
11811 (core_target::core_target): Update.
11812 (core_file_fns): Remove.
11813 (deprecated_add_core_fns): Remove.
11814 (default_core_sniffer): Remove.
11815 (sniff_core_bfd): Remove.
11816 (default_check_format): Remove.
11817 (gdb_check_format): Remove.
11818 (core_target_open): Update.
11819 (core_target::get_core_register_section): Update.
11820 (get_core_registers_cb): Update.
11821 (core_target::fetch_registers): Update.
11822 * gdbcore.h (struct core_fns): Remove.
11823 (deprecated_add_core_fns): Remove.
11824 (default_core_sniffer): Remove.
11825 (default_check_format): Remove.
11826
11827 2020-03-12 Tom Tromey <tom@tromey.com>
11828
11829 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11830 CORE_ADDR.
11831 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11832
11833 2020-03-12 Tom Tromey <tom@tromey.com>
11834
11835 * remote.c (remote_target::download_tracepoint)
11836 (remote_target::enable_tracepoint)
11837 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11838 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11839 sprintf_vma.
11840
11841 2020-03-12 Tom Tromey <tom@tromey.com>
11842
11843 * symfile-mem.c: Update CORE_ADDR size assert.
11844
11845 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11846
11847 * selftest.m4: Move to gdbsupport/.
11848 * acinclude.m4: Update path to selftest.m4.
11849
11850 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11851
11852 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11853 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11854 gdbarch-selfselftests.c and selftest-arch.c.
11855 (SUBDIR_UNITTESTS_OBS): Rename to...
11856 (SELFTESTS_OBS): ... this.
11857 (COMMON_SFILES): Remove disasm-selftests.c and
11858 gdbarch-selftests.c.
11859 * configure.ac: Don't add selftest-arch.{c,o} to
11860 CONFIG_{SRCS,OBS}.
11861 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11862 preprocessor conditions.
11863
11864 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11865
11866 * configure.ac: Don't source bfd/development.sh.
11867 * selftest.m4: Modify comment.
11868 * configure: Re-generate.
11869
11870 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11871
11872 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11873 not "true" or "false".
11874 * configure: Re-generate.
11875
11876 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11877
11878 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11879 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11880 renamed to arm_nbsd_supply_gregset.
11881 (fetch_register): Update to call arm_nbsd_supply_gregset.
11882 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11883 (arm_netbsd_nat_target::fetch_registers): Update.
11884 (fetch_elfcore_registers): Removed.
11885 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11886 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11887 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11888 not require NetBSD system headers.
11889 (arm_nbsd_regset): New struct.
11890 (arm_nbsd_iterate_over_regset_sections): New function.
11891 (arm_netbsd_init_abi_common): Updated to call
11892 set_gdbarch_iterate_over_regset_sections.
11893 * arm-nbsd-tdep.h: New file.
11894
11895 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11896
11897 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11898 recursion.
11899
11900 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11901
11902 * configure: Re-generate.
11903
11904 2020-03-11 Tom Tromey <tromey@adacore.com>
11905
11906 * ada-typeprint.c (print_choices): Fix comment.
11907
11908 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11909
11910 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11911 previous item in the list, when the list has no items.
11912
11913 2020-03-11 Tom de Vries <tdevries@suse.de>
11914
11915 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11916 PROP_LOCLIST handling code.
11917
11918 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11919
11920 * buildsym-legacy.c (record_line): Pass extra parameter to
11921 record_line.
11922 * buildsym.c (buildsym_compunit::record_line): Take an extra
11923 parameter, reduce duplication in the line table, and record the
11924 is_stmt flag in the line table.
11925 * buildsym.h (buildsym_compunit::record_line): Add extra
11926 parameter.
11927 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11928 non-statement lines.
11929 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11930 this to the symtab builder.
11931 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11932 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11933 through to dwarf_record_line_1.
11934 * infrun.c (process_event_stop_test): When stepping, don't stop at
11935 a non-statement instruction, and only refresh the step info when
11936 we land in the middle of a line's range. Also add an extra
11937 comment.
11938 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11939 field.
11940 * record-btrace.c (btrace_find_line_range): Only record lines
11941 marked as is-statement.
11942 * stack.c (frame_show_address): Show the frame address if we are
11943 in a non-statement sal.
11944 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11945 (maintenance_print_one_line_table): Print a header for the is_stmt
11946 column, and include is_stmt information in the output.
11947 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11948 preference to non-statements.
11949 (find_pcs_for_symtab_line): Prefer is-statement entries.
11950 (find_line_common): Likewise.
11951 * symtab.h (struct linetable_entry): Add is_stmt field.
11952 (struct symtab_and_line): Likewise.
11953 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11954 arranging the line table.
11955
11956 2020-03-07 Tom de Vries <tdevries@suse.de>
11957
11958 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11959 DIE.
11960
11961 2020-03-07 Tom Tromey <tom@tromey.com>
11962
11963 * valops.c (value_literal_complex): Remove obsolete comment.
11964 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11965 comment.
11966
11967 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11968
11969 * infrun.h: Forward-declare thread_info.
11970 (set_step_info): Add thread_info parameter, add doc.
11971 * infrun.c (set_step_info): Add thread_info parameter, move doc
11972 to header.
11973 * infrun.c (process_event_stop_test): Pass thread to
11974 set_step_info call.
11975 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11976 set_step_info.
11977 (prepare_one_step): Add thread_info parameter, pass it to
11978 set_step_frame and prepare_one_step (recursive) call.
11979 (step_1): Pass thread to prepare_one_step call.
11980 (step_command_fsm::should_stop): Pass thread to
11981 prepare_one_step.
11982 (until_next_fsm): Pass thread to set_step_frame call.
11983 (finish_command): Pass thread to set_step_info call.
11984
11985 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11986
11987 * windows-tdep.c (windows_solib_create_inferior_hook):
11988 Check if inferior is running.
11989
11990 2020-03-06 Tom de Vries <tdevries@suse.de>
11991
11992 * NEWS: Fix "the the".
11993 * ctfread.c: Same.
11994
11995 2020-03-06 Tom de Vries <tdevries@suse.de>
11996
11997 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11998
11999 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * .dir-locals.el: Add a comment referencing the other copies of
12002 this file.
12003
12004 2020-03-05 John Baldwin <jhb@FreeBSD.org>
12005
12006 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
12007 psargs.
12008
12009 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12010
12011 * .gitattributes: New file.
12012
12013 2020-03-04 Tom Tromey <tom@tromey.com>
12014
12015 * symmisc.c (print_symbol_bcache_statistics)
12016 (print_objfile_statistics): Update.
12017 * symfile.c (allocate_symtab): Use intern.
12018 * psymtab.c (partial_symtab::partial_symtab): Use intern.
12019 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12020 macro_cache>: Remove.
12021 <string_cache>: New member.
12022 (struct objfile) <intern>: New methods.
12023 * elfread.c (elf_symtab_read): Use intern.
12024 * dwarf2/read.c (fixup_go_packaging): Intern package name.
12025 (dwarf2_compute_name, dwarf2_physname)
12026 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
12027 names.
12028 (guess_partial_die_structure_name): Update.
12029 (partial_die_info::fixup): Intern name.
12030 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
12031 name.
12032 (dwarf2_name): Intern name. Update.
12033 * buildsym.c (buildsym_compunit::get_macro_table): Use
12034 string_cache.
12035
12036 2020-03-04 Tom Tromey <tom@tromey.com>
12037
12038 * jit.c (bfd_open_from_target_memory): Make "target" const.
12039 * corefile.c (gnutarget): Now const.
12040 * gdbcore.h (gnutarget): Now const.
12041
12042 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
12043
12044 * NEWS: Mention support for WOW64 processes.
12045 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12046 (amd64_windows_segment_register_p): Remove static.
12047 (_initialize_amd64_windows_nat): Update.
12048 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12049 * i386-windows-nat.c (context_offset): Update.
12050 (i386_mappings): Rename and remove static.
12051 (i386_windows_segment_register_p): Remove static.
12052 (_initialize_i386_windows_nat): Update.
12053 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12054 (STATUS_WX86_SINGLE_STEP): New macro.
12055 (EnumProcessModulesEx): New macro.
12056 (Wow64SuspendThread): New macro.
12057 (Wow64GetThreadContext): New macro.
12058 (Wow64SetThreadContext): New macro.
12059 (Wow64GetThreadSelectorEntry): New macro.
12060 (windows_set_context_register_offsets): Add static.
12061 (windows_set_segment_register_p): Likewise.
12062 (windows_add_thread): Adapt for WOW64 processes.
12063 (windows_fetch_one_register): Likewise.
12064 (windows_nat_target::fetch_registers): Likewise.
12065 (windows_store_one_register): Likewise.
12066 (display_selector): Likewise.
12067 (display_selectors): Likewise.
12068 (handle_exception): Likewise.
12069 (windows_continue): Likewise.
12070 (windows_nat_target::resume): Likewise.
12071 (windows_add_all_dlls): Likewise.
12072 (do_initial_windows_stuff): Likewise.
12073 (windows_nat_target::attach): Likewise.
12074 (windows_get_exec_module_filename): Likewise.
12075 (windows_nat_target::create_inferior): Likewise.
12076 (windows_xfer_siginfo): Likewise.
12077 (_initialize_loadable): Initialize Wow64SuspendThread,
12078 Wow64GetThreadContext, Wow64SetThreadContext,
12079 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12080 * windows-nat.h (windows_set_context_register_offsets):
12081 Remove declaration.
12082 (windows_set_segment_register_p): Likewise.
12083 (i386_windows_segment_register_p): Add declaration.
12084 (amd64_windows_segment_register_p): Likewise.
12085
12086 2020-03-04 Luis Machado <luis.machado@linaro.org>
12087
12088 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12089 in "info registers" for AArch64/ARM.
12090
12091 The change caused "info registers" to not print GPR's.
12092
12093 gdb/ChangeLog:
12094
12095 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12096
12097 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12098 when reg->group is empty and reggroup is not.
12099
12100 2020-03-03 Tom Tromey <tromey@adacore.com>
12101
12102 * dwarf2/frame.c (struct dwarf2_frame_cache)
12103 <checked_tailcall_bottom, entry_cfa_sp_offset,
12104 entry_cfa_sp_offset_p>: Remove members.
12105 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12106 (dwarf2_frame_prev_register): Don't call
12107 dwarf2_tailcall_sniffer_first.
12108 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12109 * frame-unwind.c (add_unwinder): New fuction.
12110 (frame_unwind_init): Use it. Add tailcall unwinder.
12111
12112 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12113 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12114
12115 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12116 value should be printed as true.
12117
12118 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
12119
12120 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12121 (windows_init_abi): Set and use windows_so_ops.
12122
12123 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12124
12125 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12126 when verifying if dealing with a convenience variable.
12127
12128 2020-03-03 Luis Machado <luis.machado@linaro.org>
12129
12130 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12131
12132 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * infrun.c (gdbarch_supports_displaced_stepping): New.
12135 (use_displaced_stepping): Break up conditions in smaller pieces.
12136 Use gdbarch_supports_displaced_stepping.
12137 (displaced_step_prepare_throw): Use
12138 gdbarch_supports_displaced_stepping.
12139
12140 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12141
12142 * NEWS: Mention new behaviour of the history filename.
12143 * top.c (write_history_p): Add comment.
12144 (show_write_history_p): Add header comment, give a different
12145 message when history writing is on, but the history filename is
12146 empty.
12147 (history_filename): Add comment.
12148 (history_filename_empty): New function.
12149 (show_history_filename): Add header comment, give a different
12150 message when the filename is empty.
12151 (init_history): Compare history_filename against nullptr, and only
12152 read history if the filename is not empty.
12153 (set_history_filename): Add header comment, and only make
12154 non-empty filenames absolute.
12155 (init_main): Make the filename argument to 'set history filename'
12156 optional.
12157
12158 2020-03-02 Christian Biesinger <cbiesinger@google.com>
12159
12160 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12161 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12162 (fetch_fp_register): Update.
12163 (fetch_fp_regs): Update.
12164 (store_fp_register): Update.
12165 (store_fp_regs): Update.
12166 (arm_netbsd_nat_target::read_description): New function.
12167 (fetch_elfcore_registers): Update.
12168
12169 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12170
12171 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12172 general_thread if the stop reply is missing a thread-id.
12173 (remote_target::process_stop_reply): Use the first non-exited
12174 thread if the target didn't pass a thread-id.
12175 * infrun.c (do_target_wait): Move call to
12176 switch_to_inferior_no_thread to ....
12177 (do_target_wait_1): ... here.
12178
12179 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12180
12181 * debuginfod-support.c: Include defs.h first.
12182
12183 2020-02-28 Tom de Vries <tdevries@suse.de>
12184
12185 * symfile.c (set_initial_language): Use default language for lookup.
12186
12187 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
12188
12189 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12190 reader variable, pass `this` to read_cutu_die_from_dwo.
12191
12192 2020-02-27 Aaron Merey <amerey@redhat.com>
12193
12194 * source.c (open_source_file): Check for nullptr when computing
12195 srcpath.
12196
12197 2020-02-27 Tom Tromey <tromey@adacore.com>
12198
12199 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12200 member.
12201 (dwarf2_add_field): Don't update nfields.
12202 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12203
12204 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12205
12206 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12207 abs.
12208
12209 2020-02-26 Tom Tromey <tom@tromey.com>
12210
12211 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12212 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12213 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12214 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12215 per_cu_data.
12216
12217 2020-02-26 Tom Tromey <tom@tromey.com>
12218
12219 * dwarf2/index-write.c (psym_index_map): Change type.
12220 (add_address_entry_worker, write_one_signatured_type)
12221 (recursively_count_psymbols, recursively_write_psymbols)
12222 (class debug_names, psyms_seen_size, write_gdbindex)
12223 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12224
12225 2020-02-26 Aaron Merey <amerey@redhat.com>
12226
12227 * Makefile.in: Handle optional debuginfod support.
12228 * NEWS: Update.
12229 * README: Add --with-debuginfod summary.
12230 * config.in: Regenerate.
12231 * configure: Regenerate.
12232 * configure.ac: Handle optional debuginfod support.
12233 * debuginfod-support.c: debuginfod helper functions.
12234 * debuginfod-support.h: Ditto.
12235 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12236 summary.
12237 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12238 when a dwz file cannot be found.
12239 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12240 debuginfo file cannot be found.
12241 * source.c (open_source_file): Query debuginfod servers when a
12242 source file cannot be found.
12243 * top.c (print_gdb_configuration): Include
12244 --{with,without}-debuginfod in the output.
12245
12246 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12247
12248 * thread.c (thr_try_catch_cmd): Print thread name.
12249
12250 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12251
12252 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12253 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12254 dwarf2_fetch_die_type_sect_off): Move to...
12255 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12256 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12257 dwarf2_fetch_die_type_sect_off): ... here.
12258 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12259 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12260 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12261
12262 2020-02-26 Tom de Vries <tdevries@suse.de>
12263
12264 PR gdb/25603
12265 * symfile.c (set_initial_language): Exit-early if
12266 language_mode == language_mode_manual.
12267
12268 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12269
12270 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12271 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12272 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12273
12274 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12275
12276 * gdbtypes.c (create_array_type_with_stride): Handle negative
12277 array strides.
12278 * valarith.c (value_subscripted_rvalue): Likewise.
12279
12280 2020-02-25 Luis Machado <luis.machado@linaro.org>
12281
12282 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12283
12284 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12285
12286 * loc.h (dwarf2_get_die_type): Move to...
12287 * read.h (dwarf2_get_die_type): ... here.
12288 * read.c (dwarf2_get_die_type): Move doc to header.
12289
12290 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12291
12292 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12293 'gnulib/Makefile.in' to the list.
12294
12295 2020-02-24 Tom Tromey <tom@tromey.com>
12296
12297 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12298 Remove.
12299 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12300 XOBNEWVEC.
12301
12302 2020-02-24 Tom Tromey <tom@tromey.com>
12303
12304 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12305 New method.
12306 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12307 (dw2_do_instantiate_symtab, dw2_get_file_names)
12308 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12309
12310 2020-02-24 Tom Tromey <tom@tromey.com>
12311
12312 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12313 make_scoped_restore.
12314 (dwarf2_psymtab::read_symtab): Don't clear
12315 reading_partial_symbols.
12316
12317 2020-02-24 Tom de Vries <tdevries@suse.de>
12318
12319 PR gdb/25592
12320 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12321
12322 2020-02-24 Tom de Vries <tdevries@suse.de>
12323
12324 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12325 commands layout next/prev/regs.
12326
12327 2020-02-22 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12330 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12331
12332 2020-02-22 Tom Tromey <tom@tromey.com>
12333
12334 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12335
12336 2020-02-22 Tom Tromey <tom@tromey.com>
12337
12338 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12339 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12340 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12341 * tui/tui.c (_initialize_tui): Add usage text.
12342
12343 2020-02-22 Tom Tromey <tom@tromey.com>
12344
12345 * tui/tui-win.c (tui_set_focus_command)
12346 (tui_set_win_height_command): Use error_no_arg.
12347 (_initialize_tui_win): Update help text.
12348 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12349
12350 2020-02-22 Tom Tromey <tom@tromey.com>
12351
12352 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12353 * tui/tui-disasm.h (struct tui_disasm_window)
12354 <display_start_addr>: Declare.
12355 * tui/tui-source.h (struct tui_source_window)
12356 <display_start_addr>: Declare.
12357 * tui/tui-winsource.h (struct tui_source_window_base)
12358 <show_source_line, display_start_addr>: New methods.
12359 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12360 Rename and move to protected section.
12361 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12362 (tui_source_window_base::do_erase_source_content): Update.
12363 (tui_source_window_base::show_source_line): Now a method.
12364 (tui_source_window_base::show_source_content)
12365 (tui_source_window_base::tui_source_window_base)
12366 (tui_source_window_base::rerender)
12367 (tui_source_window_base::refill)
12368 (tui_source_window_base::do_scroll_horizontal)
12369 (tui_source_window_base::set_is_exec_point_at)
12370 (tui_source_window_base::update_breakpoint_info)
12371 (tui_source_window_base::update_exec_info): Update.
12372 * tui/tui-source.c (tui_source_window::set_contents)
12373 (tui_source_window::showing_source_p)
12374 (tui_source_window::do_scroll_vertical)
12375 (tui_source_window::location_matches_p)
12376 (tui_source_window::line_is_displayed): Update.
12377 (tui_source_window::display_start_addr): New method.
12378 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12379 (tui_disasm_window::do_scroll_vertical)
12380 (tui_disasm_window::location_matches_p): Update.
12381 (tui_disasm_window::display_start_addr): New method.
12382
12383 2020-02-22 Tom Tromey <tom@tromey.com>
12384
12385 * NEWS: Add entry for gdb.register_window_type.
12386 * tui/tui-layout.h (window_factory): New typedef.
12387 (tui_register_window): Declare.
12388 * tui/tui-layout.c (saved_tui_windows): New global.
12389 (tui_apply_current_layout): Use it.
12390 (tui_register_window): New function.
12391 * python/python.c (do_start_initialization): Call
12392 gdbpy_initialize_tui.
12393 (python_GdbMethods): Add "register_window_type" function.
12394 * python/python-internal.h (gdbpy_register_tui_window)
12395 (gdbpy_initialize_tui): Declare.
12396 * python/py-tui.c: New file.
12397 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12398
12399 2020-02-22 Tom Tromey <tom@tromey.com>
12400
12401 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12402
12403 2020-02-22 Tom Tromey <tom@tromey.com>
12404
12405 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12406 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12407 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12408 (tui_set_win_focus_to): Move from tui-win.c.
12409
12410 2020-02-22 Tom Tromey <tom@tromey.com>
12411
12412 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12413 functions.
12414 (known_window_types): New global.
12415 (tui_get_window_by_name): Reimplement.
12416 (initialize_known_windows): New function.
12417 (validate_window_name): Rewrite.
12418 (_initialize_tui_layout): Call initialize_known_windows.
12419
12420 2020-02-22 Tom Tromey <tom@tromey.com>
12421
12422 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12423 Remove constants.
12424 * tui/tui-winsource.h (struct tui_source_window_base)
12425 <tui_source_window_base>: Remove parameter.
12426 * tui/tui-winsource.c
12427 (tui_source_window_base::tui_source_window_base): Remove
12428 parameter.
12429 (tui_source_window_base::refill): Update.
12430 * tui/tui-stack.h (struct tui_locator_window)
12431 <tui_locator_window>: Update.
12432 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12433 Default the constructor.
12434 * tui/tui-regs.h (struct tui_data_item_window)
12435 <tui_data_item_window>: Default the constructor.
12436 (struct tui_data_window) <tui_data_window>: Likewise.
12437 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12438 Default the constructor.
12439 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12440 Default the constructor.
12441 <type>: Remove.
12442 (struct tui_win_info) <tui_win_info>: Default the constructor.
12443 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12444 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12445 Default the constructor.
12446
12447 2020-02-22 Tom Tromey <tom@tromey.com>
12448
12449 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12450 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12451 * tui/tui-win.c (tui_resize_all): Don't call
12452 tui_delete_invisible_windows.
12453 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12454 done.
12455 (tui_set_layout): Update.
12456 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12457 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12458 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12459
12460 2020-02-22 Tom Tromey <tom@tromey.com>
12461
12462 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12463 correctly.
12464
12465 2020-02-22 Tom Tromey <tom@tromey.com>
12466
12467 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12468
12469 2020-02-22 Tom Tromey <tom@tromey.com>
12470
12471 * tui/tui-winsource.h (struct tui_source_window_iterator)
12472 <inner_iterator>: New etytypedef.
12473 <tui_source_window_iterator>: Take "end" parameter.
12474 <tui_source_window_iterator>: Take iterator.
12475 <operator*, advance>: Update.
12476 <m_iter>: Change type.
12477 <m_end>: New field.
12478 (struct tui_source_windows) <begin, end>: Update.
12479 * tui/tui-layout.c (tui_windows): New global.
12480 (tui_apply_current_layout): Clear tui_windows.
12481 (tui_layout_window::apply): Update tui_windows.
12482 * tui/tui-data.h (tui_windows): Declare.
12483 (all_tui_windows): Now inline function.
12484 (class tui_window_iterator, struct all_tui_windows): Remove.
12485
12486 2020-02-22 Tom Tromey <tom@tromey.com>
12487
12488 PR tui/17850:
12489 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12490 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12491 "height" argument.
12492 (class tui_layout_window) <get_sizes>: Likewise.
12493 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12494 argument.
12495 <get_sizes>: Add "height" argument.
12496 <m_vertical>: New field.
12497 * tui/tui-layout.c (tui_layout_split::clone): Update.
12498 (tui_layout_split::get_sizes): Add "height" argument.
12499 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12500 (tui_new_layout_command): Parse "-horizontal".
12501 (_initialize_tui_layout): Update help string.
12502 (tui_layout_split::specification): Add "-horizontal" when needed.
12503 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12504 argument.
12505 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12506 New methods.
12507
12508 2020-02-22 Tom Tromey <tom@tromey.com>
12509
12510 * tui/tui-layout.h (enum tui_adjust_result): New.
12511 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12512 (class tui_layout_window) <adjust_size>: Return
12513 tui_adjust_result. Rewrite.
12514 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12515 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12516
12517 2020-02-22 Tom Tromey <tom@tromey.com>
12518
12519 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12520 parameter and return types.
12521 (class tui_layout_base) <specification>: Add "depth".
12522 (class tui_layout_window) <specification>: Add "depth".
12523 (class tui_layout_split) <specification>: Add "depth".
12524 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12525 and return types.
12526 (tui_new_layout_command): Parse sub-layouts.
12527 (_initialize_tui_layout): Update help string.
12528 (tui_layout_window::specification): Add "depth".
12529 (add_layout_command): Update.
12530
12531 2020-02-22 Tom Tromey <tom@tromey.com>
12532
12533 * NEWS: Add "tui new-layout" item.
12534 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12535 Add new-layout command to help text.
12536 (validate_window_name): New function.
12537 (tui_new_layout_command): New function.
12538 (_initialize_tui_layout): Register "new-layout".
12539 (tui_layout_window::specification): New method.
12540 (tui_layout_window::specification): New method.
12541 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12542 method.
12543 (class tui_layout_window) <specification>: New method.
12544 (class tui_layout_split) <specification>: New method.
12545
12546 2020-02-22 Tom Tromey <tom@tromey.com>
12547
12548 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12549 * tui/tui-win.c (window_name_completer): Update comment.
12550 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12551 Declare method.
12552 (class tui_layout_window) <replace_window>: Likewise.
12553 (class tui_layout_split) <replace_window>: Likewise.
12554 (tui_set_layout): Don't declare.
12555 (tui_set_initial_layout): Declare function.
12556 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12557 (asm_regs_layout): New globals.
12558 (tui_current_layout, show_layout): Remove.
12559 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12560 (find_layout, tui_apply_layout): New function.
12561 (layout_completer): Remove.
12562 (tui_next_layout): Reimplement.
12563 (tui_next_layout_command): New function.
12564 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12565 (tui_regs_layout): Reimplement.
12566 (tui_regs_layout_command): New function.
12567 (extract_display_start_addr): Rewrite.
12568 (next_layout, prev_layout): Remove.
12569 (tui_layout_window::replace_window): New method.
12570 (tui_layout_split::replace_window): New method.
12571 (destroy_layout): New function.
12572 (layout_list): New global.
12573 (add_layout_command): New function.
12574 (initialize_layouts): Update.
12575 (tui_layout_command): New function.
12576 (_initialize_tui_layout): Install "layout" commands.
12577 * tui/tui-data.h (enum tui_layout_type): Remove.
12578 (tui_current_layout): Don't declare.
12579
12580 2020-02-22 Tom Tromey <tom@tromey.com>
12581
12582 * tui/tui-regs.c (tui_reg_layout): Remove.
12583 (tui_reg_command): Use tui_regs_layout.
12584 * tui/tui-layout.h (tui_reg_command): Declare.
12585 * tui/tui-layout.c (tui_reg_command): New function.
12586
12587 2020-02-22 Tom Tromey <tom@tromey.com>
12588
12589 * tui/tui.c (tui_rl_delete_other_windows): Call
12590 tui_remove_some_windows.
12591 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12592 Declare method.
12593 (class tui_layout_window) <remove_windows>: New method.
12594 (class tui_layout_split) <remove_windows>: Declare.
12595 (tui_remove_some_windows): Declare.
12596 * tui/tui-layout.c (tui_remove_some_windows): New function.
12597 (tui_layout_split::remove_windows): New method.
12598
12599 2020-02-22 Tom Tromey <tom@tromey.com>
12600
12601 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12602 * tui/tui-layout.h (tui_next_layout): Declare.
12603 * tui/tui-layout.c (tui_next_layout): New function.
12604
12605 2020-02-22 Tom Tromey <tom@tromey.com>
12606
12607 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12608 correct coordinates.
12609
12610 2020-02-22 Tom Tromey <tom@tromey.com>
12611
12612 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12613 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12614 DATA_WIN case.
12615
12616 2020-02-22 Tom Tromey <tom@tromey.com>
12617
12618 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12619 TUI_DISASM_WIN, not tui_win_list.
12620
12621 2020-02-22 Tom Tromey <tom@tromey.com>
12622
12623 * valprint.c (generic_val_print_enum_1)
12624 (val_print_type_code_flags): Style member names.
12625 * rust-lang.c (val_print_struct, rust_print_enum)
12626 (rust_print_struct_def, rust_internal_print_type): Style member
12627 names.
12628 * p-valprint.c (pascal_object_print_value_fields): Style member
12629 names. Only call fprintf_symbol_filtered for static members.
12630 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12631 * f-valprint.c (f_val_print): Style member names.
12632 * f-typeprint.c (f_type_print_base): Style member names.
12633 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12634 call fprintf_symbol_filtered for static members.
12635 (cp_print_class_member): Style member names.
12636 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12637 member names.
12638 * ada-valprint.c (ada_print_scalar): Style enum names.
12639 (ada_val_print_enum): Likewise.
12640 * ada-typeprint.c (print_enum_type): Style enum names.
12641
12642 2020-02-21 Tom Tromey <tom@tromey.com>
12643
12644 * psympriv.h (struct partial_symtab): Update comment.
12645
12646 2020-02-21 Tom Tromey <tromey@adacore.com>
12647
12648 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12649 type is CORE_ADDR.
12650
12651 2020-02-21 Tom de Vries <tdevries@suse.de>
12652
12653 PR gdb/25534
12654 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12655 if dependencies[i]->user != NULL.
12656
12657 2020-02-21 Ali Tamur <tamur@google.com>
12658
12659 * dwarf2/read.c (dwarf2_name): Add null check.
12660
12661 2020-02-20 Tom Tromey <tom@tromey.com>
12662
12663 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12664 ">=", in binary search.
12665 (dwarf2_find_containing_comp_unit): New overload.
12666 (run_test): New self-test.
12667 (_initialize_dwarf2_read): Register new test.
12668
12669 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12670
12671 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12672 * riscv-tdep.h: Likewise.
12673 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12674 rv32-only CSR.
12675 * features/riscv/64bit-csr.xml: Regenerated.
12676
12677 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12678 Tom Tromey <tom@tromey.com>
12679
12680 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12681 of 'fputc_unfiltered'.
12682 (putchar_unfiltered): Call 'fputc_unfiltered'.
12683 (fputc_unfiltered): Call 'fputs_unfiltered'.
12684
12685 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12686
12687 * config.in: Regenerate.
12688 * configure: Regenerate.
12689 * configure.ac: Add --with-python-libdir option.
12690 * main.c: Use WITH_PYTHON_LIBDIR.
12691
12692 2020-02-19 Tom Tromey <tom@tromey.com>
12693
12694 * symtab.c (general_symbol_info::compute_and_set_names): Use
12695 obstack_strndup. Simplify call to symbol_set_demangled_name.
12696
12697 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12698
12699 * dwarf2/read.c (allocate_signatured_type_table,
12700 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12701 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12702 Remove objfile parameter, update all callers.
12703
12704 2020-02-19 Doug Evans <dje@google.com>
12705
12706 PR rust/25535
12707 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12708 rust_enum_variant calculation.
12709
12710 2020-02-19 Tom Tromey <tromey@adacore.com>
12711
12712 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12713
12714 2020-02-19 Tom Tromey <tromey@adacore.com>
12715
12716 * ada-lang.c (cache_symbol): Use obstack_strdup.
12717
12718 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 * configure: Regenerate.
12721
12722 2020-02-19 Tom Tromey <tromey@adacore.com>
12723
12724 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12725 NULL check.
12726
12727 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12728
12729 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12730
12731 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12734 if GDBSERVER is not defined.
12735 (riscv_tdesc_cache): Likewise, also store const target_desc.
12736 (STATIC_IN_GDB): Define.
12737 (riscv_create_target_description): Update declaration with
12738 STATIC_IN_GDB.
12739 (riscv_lookup_target_description): New function, only define if
12740 GDBSERVER is not defined.
12741 * arch/riscv.h (riscv_create_target_description): Declare only
12742 when GDBSERVER is defined.
12743 (riscv_lookup_target_description): New declaration when GDBSERVER
12744 is not defined.
12745 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12746 (riscv_linux_read_features): ...this, and return
12747 riscv_gdbarch_features instead of target_desc.
12748 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12749 (riscv_linux_read_description): Rename to...
12750 (riscv_linux_read_features): ...this.
12751 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12752 Update to use riscv_gdbarch_features and
12753 riscv_lookup_target_description.
12754 * riscv-tdep.c (riscv_find_default_target_description): Use
12755 riscv_lookup_target_description instead of
12756 riscv_create_target_description.
12757
12758 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12759
12760 * valprint.c (generic_val_print_enum_1): When printing a flag
12761 enum with value 0 and there is no enumerator with value 0, print
12762 just "0" instead of "(unknown: 0x0)".
12763
12764 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * valprint.c (generic_val_print_enum_1): Print unknown part of
12767 flag enum in hex.
12768
12769 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12772 flag enums to contain duplicate enumerators.
12773 * valprint.c (generic_val_print_enum_1): Update comment.
12774
12775 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12776
12777 * dwarf2/read.c: Include "count-one-bits.h".
12778 (update_enumeration_type_from_children): If an enumerator has
12779 multiple bits set, don't treat the enumeration as a "flag enum".
12780 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12781 of flag enums have 0 or 1 bit set.
12782
12783 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12784
12785 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12786 conversion.
12787 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12788 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12789 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12790 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12791 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12792
12793 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12794
12795 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12796
12797 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12798
12799 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12800 displaced_step_closure_up.
12801 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12802 (struct displaced_step_closure_up):
12803 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12804 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12805 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12806 Likewise.
12807 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12808 * gdbarch.c, gdbarch.h: Re-generate.
12809 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12810 displaced_step_closure_up.
12811 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12812 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12813 * infrun.h (displaced_step_closure_up): New type alias.
12814 (struct displaced_step_inferior_state) <step_closure>: Change
12815 type to displaced_step_closure_up.
12816 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12817 displaced_step_closure_up.
12818 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12819
12820 2020-02-14 Tom Tromey <tom@tromey.com>
12821
12822 * minidebug.c (gnu_debug_key): New global.
12823 (find_separate_debug_file_in_section): Use it.
12824
12825 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12826
12827 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12828 std::unique_ptr.
12829 * gdbarch.c: Re-generate.
12830 * gdbarch.h: Re-generate.
12831 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12832 change.
12833 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12834 type to std::unique_ptr.
12835 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12836 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12837 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12838 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12839 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12840 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12841 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12842 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12843 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12844
12845 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12846
12847 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12848 std::unique_ptr.
12849 (displaced_step_clear): Rename to...
12850 (displaced_step_reset): ... this. Just call displaced->reset ().
12851 (displaced_step_clear_cleanup): Rename to...
12852 (displaced_step_reset_cleanup): ... this.
12853 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12854 (displaced_step_fixup): Likewise.
12855 (resume_1): Likewise.
12856 (handle_inferior_event): Restore child's memory before calling
12857 displaced_step_fixup on the parent.
12858 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12859 to std::unique_ptr.
12860 <step_closure>: Change type to std::unique_ptr.
12861
12862 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12863
12864 * arm-tdep.c: Include count-one-bits.h.
12865 (cleanup_block_store_pc): Use count_one_bits.
12866 (cleanup_block_load_pc): Use count_one_bits.
12867 (arm_copy_block_xfer): Use count_one_bits.
12868 (thumb2_copy_block_xfer): Use count_one_bits.
12869 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12870 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12871 (thumb_get_next_pcs_raw): Use count_one_bits.
12872 (arm_get_next_pcs_raw): Use count_one_bits_l.
12873 * arch/arm.c (bitcount): Remove.
12874 * arch/arm.h (bitcount): Remove.
12875
12876 2020-02-14 Tom Tromey <tromey@adacore.com>
12877
12878 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12879 Update.
12880 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12881 * dwarf2/loc.c (call_site_find_chain_1): Return
12882 unique_xmalloc_ptr.
12883 (call_site_find_chain): Likewise.
12884
12885 2020-02-14 Richard Biener <rguenther@suse.de>
12886
12887 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12888 on expression with division operators.
12889
12890 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12891
12892 * MAINTAINERS (Write After Approval): Adding myself.
12893
12894 2020-02-12 Tom Tromey <tom@tromey.com>
12895
12896 * event-loop.c (event_data, gdb_event, event_handler_func):
12897 Remove.
12898
12899 2020-02-12 Tom Tromey <tom@tromey.com>
12900
12901 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12902 (dwarf2_frame_objfile_data): Add comment.
12903 (find_comp_unit, set_comp_unit): New functions.
12904 (dwarf2_frame_find_fde): Use find_comp_unit.
12905 (dwarf2_build_frame_info): Use set_comp_unit.
12906
12907 2020-02-12 Tom Tromey <tom@tromey.com>
12908
12909 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12910 (comp_unit): Don't initialize objfile.
12911 (execute_cfa_program): Add text_offset parameter.
12912 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12913 (dwarf2_frame_cache): Update.
12914 (dwarf2_build_frame_info): Don't set "objfile" member.
12915
12916 2020-02-12 Tom Tromey <tom@tromey.com>
12917
12918 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12919 (decode_frame_entry): Likewise.
12920 (dwarf2_build_frame_info): Update.
12921
12922 2020-02-12 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12925 (decode_frame_entry_1): Use the comp_unit obstack.
12926
12927 2020-02-12 Tom Tromey <tom@tromey.com>
12928
12929 * dwarf2/frame.c (struct comp_unit): Add initializers and
12930 constructor.
12931 (dwarf2_frame_objfile_data): Store a comp_unit.
12932 (dwarf2_frame_find_fde): Update.
12933 (dwarf2_build_frame_info): Use "new".
12934
12935 2020-02-12 Tom Tromey <tom@tromey.com>
12936
12937 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12938 (dwarf2_fde_table): Typedef for std::vector.
12939 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12940 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12941 (decode_frame_entry): Update.
12942 (dwarf2_build_frame_info): Use "new".
12943
12944 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12945
12946 * arm-tdep.c (arm_gdbarch_init): Update.
12947 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12948 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12949 have_neon, is_m>: Change to bool.
12950
12951 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12952
12953 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12954
12955 2020-02-12 Tom Tromey <tom@tromey.com>
12956
12957 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12958
12959 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12960
12961 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12962 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12963
12964 2020-02-11 Tom Tromey <tom@tromey.com>
12965
12966 * psymtab.h: Update comment.
12967
12968 2020-02-11 Tom Tromey <tom@tromey.com>
12969
12970 * gdb_obstack.h (struct auto_obstack): Use
12971 DISABLE_COPY_AND_ASSIGN.
12972
12973 2020-02-11 Tom Tromey <tom@tromey.com>
12974
12975 * dwarf2/frame.h (struct objfile): Don't forward declare.
12976
12977 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12978
12979 * cris-tdep.c (cris_supply_gregset): Change signature to match
12980 what struct regset expects.
12981 (cris_regset): New struct.
12982 (fetch_core_registers): Remove.
12983 (cris_iterate_over_regset_sections): New function.
12984 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12985 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12986
12987 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12988
12989 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12990 registers.
12991
12992 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12993
12994 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12995
12996 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12997
12998 * configure: Re-generate.
12999
13000 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13001
13002 * configure: Re-generate.
13003
13004 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
13005
13006 * acinclude: Update warning.m4 path.
13007 * warning.m4: Move to gdbsupport.
13008
13009 2020-02-11 Tom Tromey <tromey@adacore.com>
13010
13011 * remote.c (remote_console_output): Update.
13012 * printcmd.c (printf_command): Update.
13013 * event-loop.c (gdb_wait_for_event): Update.
13014 * linux-nat.c (sigchld_handler): Update.
13015 * remote-sim.c (gdb_os_write_stdout): Update.
13016 (gdb_os_flush_stdout): Update.
13017 (gdb_os_flush_stderr): Update.
13018 (gdb_os_write_stderr): Update.
13019 * exceptions.c (print_exception): Update.
13020 * remote-fileio.c (remote_fileio_func_read): Update.
13021 (remote_fileio_func_write): Update.
13022 * tui/tui.c (tui_enable): Update.
13023 * tui/tui-interp.c (tui_interp::init): Update.
13024 * utils.c (init_page_info): Update.
13025 (putchar_unfiltered, fputc_unfiltered): Update.
13026 (gdb_flush): Update.
13027 (emit_style_escape): Update.
13028 (flush_wrap_buffer, fputs_maybe_filtered): Update.
13029 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
13030 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
13031 (stderr_file::write): Update.
13032 (stderr_file::puts): Update.
13033 * ui-file.h (ui_file_isatty, ui_file_write)
13034 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
13035 (ui_file_puts): Don't declare.
13036
13037 2020-02-10 Tom de Vries <tdevries@suse.de>
13038
13039 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
13040 sentinel to char *.
13041
13042 2020-02-09 Tom de Vries <tdevries@suse.de>
13043
13044 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13045 filename if it matches "<artificial>".
13046
13047 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13048
13049 * windows-tdep.c (struct enum_value_name): New struct.
13050 (create_enum): New function.
13051 (windows_get_siginfo_type): Create and use enum types.
13052
13053 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
13054
13055 * NEWS: Mention $_siginfo support for Windows.
13056 * windows-nat.c (handle_exception): Set siginfo_er.
13057 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13058 (windows_xfer_siginfo): New function.
13059 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13060 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13061 (init_windows_gdbarch_data): New function.
13062 (get_windows_gdbarch_data): New function.
13063 (windows_get_siginfo_type): New function.
13064 (windows_init_abi): Register windows_get_siginfo_type.
13065 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13066
13067 2020-02-08 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13070 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13071 <keep>: Declare method.
13072 <m_keep>: Remove member.
13073 <~cutu_reader>: Remove.
13074 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13075 (cutu_reader::cutu_reader): Update.
13076 (cutu_reader::keep): Rename from ~cutu_reader.
13077 (process_psymtab_comp_unit, build_type_psymtabs_1)
13078 (process_skeletonless_type_unit, load_partial_comp_unit)
13079 (load_full_comp_unit, dwarf2_read_addr_index)
13080 (read_signatured_type): Update.
13081
13082 2020-02-08 Tom Tromey <tom@tromey.com>
13083
13084 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13085 "want_partial_unit" parameter.
13086 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13087 Inline check for DW_TAG_partial_unit.
13088 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13089
13090 2020-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13093 read.c.
13094 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13095 read.c.
13096
13097 2020-02-08 Tom Tromey <tom@tromey.com>
13098
13099 * dwarf2/read.c (read_address): Move to comp-unit.c.
13100 (dwarf2_rnglists_process, dwarf2_ranges_process)
13101 (read_attribute_value, dwarf_decode_lines_1)
13102 (var_decode_location, decode_locdesc): Update.
13103 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13104 read.c. Remove "cu" parameter.
13105 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13106 method.
13107
13108 2020-02-08 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13111 (read_indirect_line_string): Update.
13112 * dwarf2/comp-unit.c (read_offset): Remove.
13113 (read_comp_unit_head): Update.
13114 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13115 method.
13116 (read_offset): Don't declare.
13117
13118 2020-02-08 Tom Tromey <tom@tromey.com>
13119
13120 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13121 * dwarf2/read.c (struct comp_unit_head): Move to
13122 dwarf2/comp-unit.h.
13123 (enum class rcuh_kind): Move to comp-unit.h.
13124 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13125 (read_comp_unit_head, error_check_comp_unit_head)
13126 (read_and_check_comp_unit_head): Move to comp-unit.c.
13127 (read_offset, dwarf_unit_type_name): Likewise.
13128 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13129 (cutu_reader::cutu_reader, read_call_site_scope)
13130 (find_partial_die, follow_die_offset): Update.
13131 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13132
13133 2020-02-08 Tom Tromey <tom@tromey.com>
13134
13135 * dwarf2/read.c (read_offset_1): Move to leb.c.
13136 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13137 (dwarf_decode_macro_bytes): Update.
13138 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13139 * dwarf2/leb.h (read_offset): Declare.
13140
13141 2020-02-08 Tom Tromey <tom@tromey.com>
13142
13143 * dwarf2/read.c (dwarf2_section_size): Remove.
13144 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13145 Update.
13146 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13147
13148 2020-02-08 Tom Tromey <tom@tromey.com>
13149
13150 * dwarf2/read.c (read_initial_length): Move to leb.c.
13151 * dwarf2/leb.h (read_initial_length): Declare.
13152 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13153 handle_nonstd parameter.
13154 * dwarf2/frame.c (read_initial_length): Remove.
13155 (decode_frame_entry_1): Update.
13156
13157 2020-02-08 Tom Tromey <tom@tromey.com>
13158
13159 * dwarf2/loc.c (dwarf2_find_location_expression)
13160 (dwarf_evaluate_loc_desc::get_tls_address)
13161 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13162 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13163 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13164 (dwarf2_compile_property_to_c)
13165 (dwarf2_loc_desc_get_symbol_read_needs)
13166 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13167 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13168 (loclist_describe_location, loclist_tracepoint_var_ref)
13169 (loclist_generate_c_location): Update.
13170 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13171 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13172 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13173 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13174 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13175 (dwarf2_per_cu_data::addr_size)
13176 (dwarf2_per_cu_data::ref_addr_size)
13177 (dwarf2_per_cu_data::text_offset)
13178 (dwarf2_per_cu_data::addr_type): Now methods.
13179 (per_cu_header_read_in): Make per_cu "const".
13180 (dwarf2_version): Remove.
13181 (dwarf2_per_cu_data::int_type): Now a method.
13182 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13183 (set_die_type, read_array_type, read_subrange_index_type)
13184 (read_tag_string_type, read_subrange_type): Update.
13185 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13186 offset_size, ref_addr_size, text_offset, addr_type, version,
13187 objfile, int_type, addr_sized_int_type>: Declare methods.
13188
13189 2020-02-08 Tom Tromey <tom@tromey.com>
13190
13191 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13192 Move earlier.
13193
13194 2020-02-08 Tom Tromey <tom@tromey.com>
13195
13196 * dwarf2/read.h (dwarf_line_debug): Declare.
13197 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13198 * dwarf2/read.c: Move line_header code to new files.
13199 (dwarf_line_debug): No longer static.
13200 * dwarf2/line-header.c: New file.
13201 * dwarf2/line-header.h: New file.
13202
13203 2020-02-08 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/read.c (struct line_header) <file_full_name,
13206 file_file_name>: Return unique_xmalloc_ptr.
13207 (line_header::file_file_name): Update.
13208 (line_header::file_full_name): Update.
13209 (dw2_get_file_names_reader): Update.
13210 (macro_start_file): Update.
13211
13212 2020-02-08 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/read.c (struct line_header) <file_full_name,
13215 file_file_name>: Declare methods.
13216 (dw2_get_file_names_reader): Update.
13217 (file_file_name): Now a method.
13218 (file_full_name): Likewise.
13219 (macro_start_file): Update.
13220
13221 2020-02-08 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2/read.c (dwarf_always_disassemble)
13224 (show_dwarf_always_disassemble): Move to loc.c.
13225 (_initialize_dwarf2_read): Move "always-disassemble" registration
13226 to loc.c.
13227 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13228 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13229 static.
13230 (show_dwarf_always_disassemble): Move from read.c.
13231 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13232
13233 2020-02-08 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13236 (create_quick_file_names_table): Return htab_up.
13237 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13238 Update.
13239 * dwarf2/read.h (struct dwarf2_per_objfile)
13240 <quick_file_names_table>: Now htab_up.
13241
13242 2020-02-08 Tom Tromey <tom@tromey.com>
13243
13244 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13245
13246 2020-02-08 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13249 Rewrite.
13250 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13251 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13252 (abbrev_table::abbrev_table): No longer inline.
13253 (ABBREV_HASH_SIZE): Remove.
13254 (abbrev_table::m_abbrevs): Now an htab_up.
13255
13256 2020-02-08 Tom Tromey <tom@tromey.com>
13257
13258 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13259 (cutu_reader): Update.
13260 (build_type_psymtabs_1): Update.
13261 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13262 (abbrev_table::alloc_abbrev): Update.
13263 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13264 (abbrev_table::read): New static method, renamed from
13265 abbrev_table_read_table.
13266 (abbrev_table::alloc_abbrev)
13267 (abbrev_table::add_abbrev): Now private.
13268 (abbrev_table::abbrev_table): Now private.
13269 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13270
13271 2020-02-08 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13274 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13275 htab_up.
13276
13277 2020-02-08 Tom Tromey <tom@tromey.com>
13278
13279 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13280 htab_up.
13281 (lookup_dwo_unit_in_dwp): Update.
13282 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13283 on obstack.
13284
13285 2020-02-08 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13288 obstack.
13289
13290 2020-02-08 Tom Tromey <tom@tromey.com>
13291
13292 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13293 line_header_hash.
13294 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13295 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13296 Change type to htab_up.
13297
13298 2020-02-08 Tom Tromey <tom@tromey.com>
13299
13300 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13301 htab_up. Don't allocate on obstack.
13302 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13303 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13304 Change type to htab_up.
13305
13306 2020-02-08 Tom Tromey <tom@tromey.com>
13307
13308 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13309 Change type to htab_up.
13310 * dwarf2/read.c (create_signatured_type_table_from_index)
13311 (create_signatured_type_table_from_debug_names)
13312 (create_all_type_units, add_type_unit)
13313 (lookup_dwo_signatured_type, lookup_signatured_type)
13314 (process_skeletonless_type_unit): Update.
13315 (create_debug_type_hash_table, create_debug_types_hash_table):
13316 Change type of types_htab.
13317 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13318 htab_up. Don't allocate on obstack.
13319 (create_cus_hash_table): Change type of cus_htab parameter.
13320 (struct dwo_file) <cus, tus>: Now htab_up.
13321 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13322 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13323 (queue_and_load_all_dwo_tus): Update.
13324 * dwarf2/index-write.c (write_gdbindex): Update.
13325 (write_debug_names): Update.
13326
13327 2020-02-08 Tom Tromey <tom@tromey.com>
13328
13329 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13330 dwarf2/read.c. Remove "next" member. Add constructor ntad
13331 destructor.
13332 (struct dwarf2_per_objfile) <queue>: New member.
13333 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13334 dwarf2/read.h.
13335 (dwarf2_queue, dwarf2_queue_tail): Remove.
13336 (class dwarf2_queue_guard): Add parameter to constructor. Use
13337 DISABLE_COPY_AND_ASSIGN.
13338 <m_per_objfile>: New member.
13339 <~dwarf2_queue_guard>: Rewrite.
13340 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13341 Update.
13342 (~dwarf2_queue_item): New.
13343
13344 2020-02-08 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/read.c (struct die_info) <has_children>: New member.
13347 (dw2_get_file_names_reader): Remove has_children.
13348 (dw2_get_file_names): Update.
13349 (read_cutu_die_from_dwo): Remove has_children.
13350 (cutu_reader::init_tu_and_read_dwo_dies)
13351 (cutu_reader::cutu_reader): Update.
13352 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13353 Remove has_children.
13354 (build_type_psymtabs_1, process_skeletonless_type_unit)
13355 (load_partial_comp_unit, load_full_comp_unit): Update.
13356 (create_dwo_cu_reader): Remove has_children.
13357 (create_cus_hash_table, read_die_and_children): Update.
13358 (read_full_die_1,read_full_die): Remove has_children.
13359 (read_signatured_type): Update.
13360 (class cutu_reader) <has_children>: Remove.
13361
13362 2020-02-08 Tom Tromey <tom@tromey.com>
13363
13364 * dwarf2/expr.c: Rename from dwarf2expr.c.
13365 * dwarf2/expr.h: Rename from dwarf2expr.h.
13366 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13367 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13368 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13369 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13370 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13371 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13372 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13373 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13374 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13375 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13376 * dwarf2/loc.c: Rename from dwarf2loc.c.
13377 * dwarf2/loc.h: Rename from dwarf2loc.h.
13378 * dwarf2/read.c: Rename from dwarf2read.c.
13379 * dwarf2/read.h: Rename from dwarf2read.h.
13380 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13381 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13382 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13383 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13384 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13385 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13386 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13387 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13388 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13389 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13390 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13391 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13392 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13393 Update.
13394 * Makefile.in (COMMON_SFILES): Update.
13395 (HFILES_NO_SRCDIR): Update.
13396
13397 2020-02-08 Tom Tromey <tom@tromey.com>
13398
13399 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13400 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13401
13402 2020-02-08 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2read.h (struct die_info): Don't declare.
13405
13406 2020-02-08 Tom Tromey <tom@tromey.com>
13407
13408 * dwarf2read.h (die_info_ptr): Remove typedef.
13409
13410 2020-02-08 Tom Tromey <tom@tromey.com>
13411
13412 * dwarf2read.c (read_call_site_scope)
13413 (handle_data_member_location, dwarf2_add_member_fn)
13414 (mark_common_block_symbol_computed, read_common_block)
13415 (attr_to_dynamic_prop, partial_die_info::read)
13416 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13417 (dwarf2_symbol_mark_computed, set_die_type): Update.
13418 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13419 method.
13420 (attr_form_is_block): Don't declare.
13421 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13422
13423 2020-02-08 Tom Tromey <tom@tromey.com>
13424
13425 * dwarf2read.c (dwarf2_find_base_address, )
13426 (read_call_site_scope, rust_containing_type)
13427 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13428 (handle_data_member_location, dwarf2_add_member_fn)
13429 (get_alignment, read_structure_type, process_structure_scope)
13430 (mark_common_block_symbol_computed, read_common_block)
13431 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13432 (partial_die_info::read, read_attribute_value, new_symbol)
13433 (lookup_die_type, dwarf2_get_ref_die_offset)
13434 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13435 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13436 (dwarf2_symbol_mark_computed): Update.
13437 * dwarf2/attribute.h (struct attribute) <value_as_address,
13438 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13439 methods.
13440 (value_as_address, attr_form_is_section_offset)
13441 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13442 * dwarf2/attribute.c (attribute::value_as_address)
13443 (attribute::form_is_section_offset, attribute::form_is_constant)
13444 (attribute::form_is_ref): Now methods.
13445
13446 2020-02-08 Tom Tromey <tom@tromey.com>
13447
13448 * dwarf2read.c (struct attribute, DW_STRING)
13449 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13450 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13451 (attr_form_is_block, attr_form_is_section_offset)
13452 (attr_form_is_constant, attr_form_is_ref): Move.
13453 * dwarf2/attribute.h: New file.
13454 * dwarf2/attribute.c: New file, from dwarf2read.c.
13455 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13456
13457 2020-02-08 Tom Tromey <tom@tromey.com>
13458
13459 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13460 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13461 Move.
13462 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13463 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13464 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13465 abbrev.c.
13466 * dwarf2/abbrev.h: New file.
13467 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13468 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13469
13470 2020-02-08 Tom Tromey <tom@tromey.com>
13471
13472 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13473 (dwarf2_section_size, dwarf2_get_section_info)
13474 (create_signatured_type_table_from_debug_names)
13475 (create_addrmap_from_aranges, read_debug_names_from_section)
13476 (get_gdb_index_contents_from_section, read_comp_unit_head)
13477 (error_check_comp_unit_head, read_abbrev_offset)
13478 (create_debug_type_hash_table, init_cu_die_reader)
13479 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13480 (read_comp_units_from_section, create_cus_hash_table)
13481 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13482 (create_dwp_v2_section, dwarf2_rnglists_process)
13483 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13484 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13485 (read_indirect_string_from_dwz, read_addr_index_1)
13486 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13487 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13488 (fill_in_loclist_baton): Update.
13489 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13490 get_containing_section, get_bfd_owner, get_bfd_section,
13491 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13492 (dwarf2_read_section, get_section_name, get_section_file_name)
13493 (get_containing_section, get_section_bfd_owner)
13494 (get_section_bfd_section, get_section_name, get_section_file_name)
13495 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13496 declare.
13497 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13498 (dwarf2_section_info::get_bfd_owner)
13499 (dwarf2_section_info::get_bfd_section)
13500 (dwarf2_section_info::get_name)
13501 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13502 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13503 (dwarf2_section_info::read): Now methods.
13504 * dwarf-index-write.c (class debug_names): Update.
13505
13506 2020-02-08 Tom Tromey <tom@tromey.com>
13507
13508 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13509 Move to dwarf2/section.h.
13510 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13511 (get_section_bfd_section, get_section_name)
13512 (get_section_file_name, get_section_id, get_section_flags)
13513 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13514 dwarf2/section.c.
13515 * dwarf2/section.h: New file.
13516 * dwarf2/section.c: New file, from dwarf2read.c.
13517 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13518
13519 2020-02-08 Tom Tromey <tom@tromey.com>
13520
13521 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13522 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13523 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13524 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13525 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13526 * dwarf2/leb.h: New file, from dwarf2read.c.
13527 * dwarf2/leb.c: New file, from dwarf2read.c.
13528 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13529 Remove.
13530 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13531 (COMMON_SFILES): Add dwarf2/leb.c.
13532
13533 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13534
13535 GDB 9.1 released.
13536
13537 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13538
13539 PR gdb/25190:
13540 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13541 * gdb/remote.c (remote_console_output): Update.
13542 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13543 (ui_file_puts): ...this.
13544 * gdb/ui-file.h (ui_file_puts): Add declaration.
13545 * gdb/utils.c (emit_style_escape): Update.
13546 (flush_wrap_buffer): Update.
13547 (fputs_maybe_filtered): Update.
13548 (fputs_unfiltered): Add function.
13549
13550 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13551
13552 * gdb/event-loop.c (gdb_wait_for_event): Update.
13553 * gdb/printcmd.c (printf_command): Update.
13554 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13555 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13556 (gdb_os_flush_stderr): Update.
13557 * gdb/remote.c (remote_console_output): Update.
13558 * gdb/ui-file.c (gdb_flush): Rename to...
13559 (ui_file_flush): ...this.
13560 (stderr_file::write): Update.
13561 (stderr_file::puts): Update.
13562 * gdb/ui-file.h (gdb_flush): Rename to...
13563 (ui_file_flush): ...this.
13564 * gdb/utils.c (gdb_flush): Add function.
13565 * gdb/utils.h (gdb_flush): Add declaration.
13566
13567 2020-02-07 Tom Tromey <tromey@adacore.com>
13568
13569 PR breakpoints/24915:
13570 * source.c (find_and_open_source): Do not check basenames_may_differ.
13571
13572 2020-02-07 Tom Tromey <tom@tromey.com>
13573
13574 * README: Update gdbserver documentation.
13575 * gdbserver: Move to top level.
13576 * configure.tgt (build_gdbserver): Remove.
13577 * configure.ac: Remove --enable-gdbserver.
13578 * configure: Rebuild.
13579 * Makefile.in (distclean): Don't mention gdbserver.
13580
13581 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13582
13583 * source-cache.c (source_cache::ensure): Surround
13584 get_plain_source_lines with a try/catch.
13585 (source_cache::get_line_charpos): Get rid of try/catch
13586 and only check for the return value of "ensure".
13587 * tui/tui-source.c (tui_source_window::set_contents):
13588 Simplify "nlines" calculation.
13589
13590 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13591
13592 * MAINTAINERS (Write After Approval): Add myself.
13593
13594 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13595
13596 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13597 function call.
13598
13599 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13600
13601 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13602
13603 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13604
13605 * nat/riscv-linux-tdesc.h: New file.
13606 * nat/riscv-linux-tdesc.c: New file, taking code from...
13607 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13608 ... here.
13609 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13610 NATDEPFILES.
13611
13612 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13613
13614 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13615 we don't set the fake simulator ptid to the null_ptid.
13616
13617 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13618
13619 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13620 * gdbthread.h (class thread_info) <resumed>: Likewise.
13621 * infrun.c (resume_1): Likewise.
13622 (proceed): Likewise.
13623 (infrun_thread_stop_requested): Likewise.
13624 (stop_all_threads): Likewise.
13625 (handle_inferior_event): Likewise.
13626 (restart_threads): Likewise.
13627 (finish_step_over): Likewise.
13628 (keep_going_stepped_thread): Likewise.
13629 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13630 (linux_handle_extended_wait): Likewise.
13631 * record-btrace.c (get_thread_current_frame_id): Likewise.
13632 * record-full.c (record_full_wait_1): Likewise.
13633 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13634 * target.c (target_resume): Likewise.
13635 * thread.c (set_running_thread): Likewise.
13636
13637 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13638
13639 * f-valprint.c (f77_print_array_1): Changed datatype of index
13640 variable to LONGEST from int to enable it to contain bound
13641 values correctly.
13642
13643 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13644
13645 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13646 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13647 offsets according to FLEN determined.
13648 (riscv_linux_nat_target::read_description): Determine FLEN
13649 dynamically.
13650 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13651 according to FLEN determined.
13652 (riscv_linux_nat_target::store_registers): Likewise.
13653
13654 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13655
13656 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13657 when reg->group is empty and reggroup is not.
13658
13659 2020-01-31 Tom Tromey <tromey@adacore.com>
13660
13661 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13662 Call beneath target's mourn_inferior after unpushing.
13663
13664 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13665
13666 PR tui/9765
13667 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13668 have enough lines to fill the screen, still return the lowest
13669 address we found.
13670
13671 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13672
13673 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13674 '-', '<', and '>' commands.
13675
13676 2020-01-29 Pedro Alves <palves@redhat.com>
13677 Sergio Durigan Junior <sergiodj@redhat.com>
13678
13679 * infcmd.c (construct_inferior_arguments): Assert that
13680 'argc' is greater than 0.
13681
13682 2020-01-29 Luis Machado <luis.machado@linaro.org>
13683
13684 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13685 (BRK_INSN_MASK): Define to 0xd4200000.
13686 (aarch64_program_breakpoint_here_p): New function.
13687 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13688 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13689 breakpoint.c.
13690 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13691 breakpoint.h
13692 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13693 call gdbarch_program_breakpoint_here_p.
13694 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13695 default_program_breakpoint_here_p, changed return type to bool and
13696 simplified.
13697 * breakpoint.h (program_breakpoint_here): Moved prototype to
13698 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13699 return type to bool.
13700 * gdbarch.c: Regenerate.
13701 * gdbarch.h: Regenerate.
13702 * gdbarch.sh (program_breakpoint_here_p): New method.
13703 * infrun.c (handle_signal_stop): Call
13704 gdbarch_program_breakpoint_here_p.
13705
13706 2020-01-26 Tom Tromey <tom@tromey.com>
13707
13708 * ctfread.c (struct ctf_fp_info): Reindent.
13709 (_initialize_ctfread): Remove.
13710
13711 2020-01-26 Tom Tromey <tom@tromey.com>
13712
13713 * psymtab.c (partial_map_expand_apply)
13714 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13715 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13716 (psym_print_stats, psym_expand_symtabs_for_function)
13717 (psym_map_symbol_filenames, psym_map_matching_symbols)
13718 (psym_expand_symtabs_matching)
13719 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13720 (maintenance_check_psymtabs): Use new methods.
13721 * psympriv.h (struct partial_symtab) <readin_p,
13722 get_compunit_symtab>: New methods.
13723 <readin, compunit_symtab>: Remove members.
13724 (struct standard_psymtab): New.
13725 (struct legacy_psymtab): Derive from standard_psymtab.
13726 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13727 standard_psymtab.
13728 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13729
13730 2020-01-26 Tom Tromey <tom@tromey.com>
13731
13732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13733 read_dependencies. Add assert.
13734 * psymtab.c (partial_symtab::read_dependencies): New method.
13735 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13736 method.
13737 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13738 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13739 read_dependencies.
13740 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13741 Add assert.
13742
13743 2020-01-26 Tom Tromey <tom@tromey.com>
13744
13745 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13746 Call expand_psymtab.
13747 (xcoff_read_symtab): Call expand_psymtab.
13748 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13749 legacy_expand_psymtab.
13750 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13751 method.
13752 (struct legacy_psymtab) <expand_psymtab>: Implement.
13753 <legacy_expand_psymtab>: New member.
13754 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13755 (parse_partial_symbols): Set legacy_expand_psymtab.
13756 (psymtab_to_symtab_1): Change argument order. Call
13757 expand_psymtab.
13758 (new_psymtab): Set legacy_expand_psymtab.
13759 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13760 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13761 expand_psymtab.
13762 (dwarf2_psymtab::expand_psymtab): Rename from
13763 psymtab_to_symtab_1. Call expand_psymtab.
13764 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13765 (dbx_end_psymtab): Likewise.
13766 (dbx_psymtab_to_symtab_1): Change argument order. Call
13767 expand_psymtab.
13768 (dbx_read_symtab): Call expand_psymtab.
13769 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13770 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13771 (ctf_psymtab::read_symtab): Call expand_psymtab.
13772
13773 2020-01-26 Tom Tromey <tom@tromey.com>
13774
13775 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13776 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13777 messages.
13778 * mdebugread.c (mdebug_read_symtab): Remove prints.
13779 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13780 assert.
13781 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13782
13783 2020-01-26 Tom Tromey <tom@tromey.com>
13784
13785 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13786 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13787 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13788 legacy_symtab.
13789 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13790 * psymtab.c (psymtab_to_symtab): Call method.
13791 (dump_psymtab): Update.
13792 * psympriv.h (struct partial_symtab): Add virtual destructor.
13793 <read_symtab>: New method.
13794 (struct legacy_symtab): New.
13795 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13796 (struct pst_map) <pst>: Now a legacy_psymtab.
13797 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13798 (new_psymtab): Use legacy_psymtab.
13799 * dwarf2read.h (struct dwarf2_psymtab): New.
13800 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13801 * dwarf2read.c (dwarf2_create_include_psymtab)
13802 (dwarf2_build_include_psymtabs, create_type_unit_group)
13803 (create_partial_symtab, process_psymtab_comp_unit_reader)
13804 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13805 (set_partial_user): Use dwarf2_psymtab.
13806 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13807 (psymtab_to_symtab_1, process_full_comp_unit)
13808 (process_full_type_unit, dwarf2_ranges_read)
13809 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13810 (dwarf_decode_lines): Use dwarf2_psymtab.
13811 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13812 (add_address_entry_worker, write_one_signatured_type)
13813 (recursively_count_psymbols, recursively_write_psymbols)
13814 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13815 (write_debug_names): Likewise.
13816 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13817 <pst>: Now a legacy_psymtab.
13818 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13819 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13820 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13821 * ctfread.c (struct ctf_psymtab): New.
13822 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13823 ctf_psymtab.
13824 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13825 (create_partial_symtab): Return a ctf_psymtab.
13826 (scan_partial_symbols): Update.
13827
13828 2020-01-26 Tom Tromey <tom@tromey.com>
13829
13830 * xcoffread.c (xcoff_start_psymtab): Use new.
13831 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13832 renamed from start_psymtab_common.
13833 * psympriv.h (struct partial_symtab): Add new constructor.
13834 (start_psymtab_common): Don't declare.
13835 * mdebugread.c (parse_partial_symbols): Use new.
13836 * dwarf2read.c (create_partial_symtab): Use new.
13837 * dbxread.c (start_psymtab): Use new.
13838 * ctfread.c (create_partial_symtab): Use new.
13839
13840 2020-01-26 Tom Tromey <tom@tromey.com>
13841
13842 * xcoffread.c (xcoff_end_psymtab): Use new.
13843 * psymtab.c (start_psymtab_common): Use new.
13844 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13845 Update.
13846 * psympriv.h (struct partial_symtab): Add parameters to
13847 constructor. Don't inline.
13848 (allocate_psymtab): Don't declare.
13849 * mdebugread.c (new_psymtab): Use new.
13850 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13851 * dbxread.c (dbx_end_psymtab): Use new.
13852
13853 2020-01-26 Tom Tromey <tom@tromey.com>
13854
13855 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13856 allocate_psymtab. Update documentation.
13857 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13858 allocate_psymtab. Do not use new.
13859 (allocate_psymtab): Use new. Update.
13860
13861 2020-01-26 Tom Tromey <tom@tromey.com>
13862
13863 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13864 * psymtab.c (psym_print_stats): Update.
13865 * psympriv.h (struct partial_symtab) <readin,
13866 psymtabs_addrmap_supported, anonymous>: Now bool.
13867 * mdebugread.c (psymtab_to_symtab_1): Update.
13868 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13869 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13870 (process_full_comp_unit, process_full_type_unit): Update.
13871 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13872 * ctfread.c (psymtab_to_symtab): Update.
13873
13874 2020-01-26 Tom Tromey <tom@tromey.com>
13875
13876 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13877 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13878 * psymtab.c (psymtab_storage): Delete psymtabs.
13879 (psymtab_storage::allocate_psymtab): Use new.
13880 (psymtab_storage::discard_psymtab): Use delete.
13881 * psympriv.h (struct partial_symtab): Add constructor and
13882 initializers.
13883
13884 2020-01-26 Tom Tromey <tom@tromey.com>
13885
13886 * machoread.c: Do not include psympriv.h.
13887
13888 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13889
13890 * NEWS: Mention the new option and the set/show commands.
13891
13892 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13893
13894 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13895 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13896 (validate_exec_file): New variables, enums, functions.
13897 (exec_file_locate_attach, print_section_info): Style the filenames.
13898 (_initialize_exec): Install show_exec_file_mismatch_command and
13899 set_exec_file_mismatch_command.
13900 * gdbcore.h (validate_exec_file): Declare.
13901 * infcmd.c (attach_command): Call validate_exec_file.
13902 * remote.c ( remote_target::remote_add_inferior): Likewise.
13903
13904 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13905
13906 * frame.c (find_frame_sal): Move call to get_next_frame into more
13907 inner scope.
13908 * inline-frame.c (inilne_state) <inline_state>: Update argument
13909 types.
13910 (inilne_state) <skipped_symbol>: Rename to...
13911 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13912 (skip_inline_frames): Build vector of skipped symbols and use this
13913 to reate the inline_state.
13914 (inline_skipped_symbol): Add a comment and some assertions, fetch
13915 skipped symbol from the list.
13916
13917 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13918
13919 * buildsym.c (lte_is_less_than): Delete.
13920 (buildsym_compunit::end_symtab_with_blockvector): Create local
13921 lambda function to sort line table entries, and use
13922 std::stable_sort instead of std::sort.
13923 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13924 markers when looking for a previous line.
13925
13926 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13927
13928 * dwarf2read.c (lnp_state_machine::record_line): Include
13929 end_sequence parameter in debug print out. Record the line if we
13930 are at an end_sequence marker even if it's not the start of a
13931 statement.
13932 * symmisc.c (maintenance_print_one_line_table): Print end of
13933 sequence markers with 'END' not '0'.
13934
13935 2020-01-24 Pedro Alves <palves@redhat.com>
13936
13937 PR gdb/25410
13938 * thread.c (scoped_restore_current_thread::restore): Use
13939 switch_to_inferior_no_thread.
13940 * exec.c: Include "progspace-and-thread.h".
13941 (add_target_sections, remove_target_sections):
13942 scoped_restore_current_pspace_and_thread instead of
13943 scoped_restore_current_thread.
13944 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13945 and aspace to the inferior before calling clone_program_space.
13946 Remove stale comment.
13947
13948 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13949
13950 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13951 (arm_netbsd_nat_target::fetch_registers): ...this.
13952 (arm_nbsd_nat_target::store_registers): Rename to...
13953 (arm_netbsd_nat_target::store_registers): ...this.
13954
13955 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13956
13957 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13958 register_t.
13959
13960 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13961
13962 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13963 Update comment.
13964 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13965 Likewise.
13966 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13967 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13968 the correct replacement (iterate_over_regset_sections).
13969 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13970 Update comment.
13971
13972 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13973
13974 PR gdb/23718
13975 * gdb/python/python.c (execute_gdb_command): Call
13976 async_enable_stdin in catch block.
13977
13978 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13979
13980 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13981 SWITCH_THRU_ALL_UIS.
13982
13983 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13984
13985 PR tui/9765
13986 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13987 comment, add extra parameter, and update to store previous symbol
13988 when appropriate.
13989 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13990 add extra parameter.
13991 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13992 remove unneeded parameter, add try/catch around gdb_print_insn,
13993 rewrite to add items to asm_lines vector.
13994 (tui_find_backward_disassembly_start_address): New function.
13995 (tui_find_disassembly_address): Updated throughout.
13996 (tui_disasm_window::set_contents): Update for changes to
13997 tui_disassemble.
13998 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13999 number of lines to scroll.
14000
14001 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
14002
14003 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
14004 (SECT_OFF_DATA): Likewise.
14005 (SECT_OFF_RODATA): Likewise.
14006 (SECT_OFF_TEXT): Likewise.
14007 (SECT_OFF_BSS): Likewise.
14008 (struct objfile) <text_section_offset, data_section_offset>: New
14009 methods.
14010 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
14011 objfile::text_section_offset.
14012 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
14013 * coffread.c (coff_symtab_read): Likewise.
14014 (enter_linenos): Likewise.
14015 (process_coff_symbol): Likewise.
14016 * ctfread.c (get_objfile_text_range): Likewise.
14017 * dtrace-probe.c (dtrace_probe::get_relocated_address):
14018 Use objfile::data_section_offset.
14019 * dwarf2-frame.c (execute_cfa_program): Use
14020 objfile::text_section_offset.
14021 (dwarf2_frame_find_fde): Likewise.
14022 * dwarf2read.c (create_addrmap_from_index): Likewise.
14023 (create_addrmap_from_aranges): Likewise.
14024 (dw2_find_pc_sect_compunit_symtab): Likewise.
14025 (process_psymtab_comp_unit_reader): Likewise.
14026 (add_partial_symbol): Likewise.
14027 (add_partial_subprogram): Likewise.
14028 (process_full_comp_unit): Likewise.
14029 (read_file_scope): Likewise.
14030 (read_func_scope): Likewise.
14031 (read_lexical_block_scope): Likewise.
14032 (read_call_site_scope): Likewise.
14033 (dwarf2_rnglists_process): Likewise.
14034 (dwarf2_ranges_process): Likewise.
14035 (dwarf2_ranges_read): Likewise.
14036 (dwarf_decode_lines_1): Likewise.
14037 (new_symbol): Likewise.
14038 (dwarf2_fetch_die_loc_sect_off): Likewise.
14039 (dwarf2_per_cu_text_offset): Likewise.
14040 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
14041 * hppa-tdep.c (read_unwind_info): Likewise.
14042 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
14043 * psympriv.h (struct partial_symtab): Likewise.
14044 * psymtab.c (find_pc_sect_psymtab): Likewise.
14045 * solib-svr4.c (enable_break): Likewise.
14046 * stap-probe.c (relocate_address): Use
14047 objfile::data_section_offset.
14048 * xcoffread.c (enter_line_range): Use
14049 objfile::text_section_offset.
14050 (read_xcoff_symtab): Likewise.
14051
14052 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14053
14054 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14055 declaration to narrower scopes.
14056
14057 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
14058
14059 * darwin-nat.h (struct darwin_exception_msg, enum
14060 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14061 Move up.
14062 (class darwin_nat_target) <wait_1, check_new_threads,
14063 decode_exception_message, decode_message, stop_inferior,
14064 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14065 * darwin-nat.c (darwin_check_new_threads): Rename to...
14066 (darwin_nat_target::check_new_threads): ... this.
14067 (darwin_suspend_inferior_it): Remove.
14068 (darwin_decode_exception_message): Rename to...
14069 (darwin_nat_target::decode_exception_message): ... this.
14070 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14071 (darwin_decode_message): Rename to...
14072 (darwin_nat_target::decode_message): ... this.
14073 (cancel_breakpoint): Rename to...
14074 (darwin_nat_target::cancel_breakpoint): ... this.
14075 (darwin_wait): Rename to...
14076 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14077 instead of iterate_over_inferiors.
14078 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14079 (darwin_stop_inferior): Rename to...
14080 (darwin_nat_target::stop_inferior): ... this.
14081 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14082 (darwin_init_thread_list): Rename to...
14083 (darwin_nat_target::init_thread_list): ... this.
14084 (darwin_ptrace_him): Rename to...
14085 (darwin_nat_target::ptrace_him): ... this.
14086 (darwin_nat_target::create_inferior): Pass lambda function to
14087 fork_inferior.
14088 (darwin_nat_target::detach): Call stop_inferior instead of
14089 darwin_stop_inferior.
14090 * fork-inferior.h (fork_inferior): Change init_trace_fun
14091 parameter to gdb::function_view.
14092 * fork-inferior.c (fork_inferior): Likewise.
14093
14094 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
14095
14096 * i386-cygwin-tdep.c (core_process_module_section): Update.
14097 * windows-nat.c (struct lm_info_windows): Add text_offset.
14098 (windows_xfer_shared_libraries): Update.
14099 * windows-tdep.c (windows_xfer_shared_library):
14100 Add text_offset_cached argument.
14101 * windows-tdep.h (windows_xfer_shared_library): Update.
14102
14103 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14104
14105 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14106
14107 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14108
14109 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14110 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14111 replace with range-based for.
14112 (gdbsim_interrupt_inferior): Remove.
14113 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14114 with a range-based for. Inline code from
14115 gdbsim_interrupt_inferior.
14116
14117 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
14118
14119 * infrun.c (proceed): Fix indentation.
14120
14121 2020-01-21 Tom Tromey <tromey@adacore.com>
14122
14123 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14124 * python/python.c (python_extension_ops): Update.
14125 (gdbpy_colorize): New function.
14126 * python/lib/gdb/__init__.py (colorize): New function.
14127 * extension.h (ext_lang_colorize): Declare.
14128 * extension.c (ext_lang_colorize): New function.
14129 * extension-priv.h (struct extension_language_ops) <colorize>: New
14130 member.
14131 * cli/cli-style.c (_initialize_cli_style): Update help text.
14132
14133 2020-01-21 Luis Machado <luis.machado@linaro.org>
14134
14135 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14136 <cond>: Change type to bool.
14137 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14138 (aarch64_displaced_step_cb): Likewise.
14139 (aarch64_displaced_step_tb): Likewise.
14140
14141 2020-01-21 Luis Machado <luis.machado@linaro.org>
14142
14143 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14144 output.
14145
14146 2020-01-21 Luis Machado <luis.machado@linaro.org>
14147
14148 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14149 <pc_adjust>: Adjust the documentation.
14150 (aarch64_displaced_step_fixup): Check if PC really moved before
14151 adjusting it.
14152
14153 2020-01-19 Tom Tromey <tom@tromey.com>
14154
14155 * disasm.c (~gdb_disassembler): New destructor.
14156 (gdb_buffered_insn_length): Call disassemble_free_target.
14157 * disasm.h (class gdb_disassembler): Declare destructor. Use
14158 DISABLE_COPY_AND_ASSIGN.
14159
14160 2020-01-19 Tom Tromey <tom@tromey.com>
14161
14162 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14163 (die_reader_func_ftype): Remove.
14164 (cutu_reader): New class.
14165 (dw2_get_file_names_reader): Remove "data" parameter.
14166 (dw2_get_file_names): Use cutu_reader.
14167 (create_debug_type_hash_table): Update.
14168 (read_cutu_die_from_dwo): Update comment.
14169 (lookup_dwo_unit): Add dwo_name parameter.
14170 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14171 die_reader_func_ftype and data parameters.
14172 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14173 Remove die_reader_func_ftype and data parameters.
14174 (~cutu_reader): New; from init_cutu_and_read_dies.
14175 (cutu_reader::cutu_reader): Rename from
14176 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14177 and data parameters.
14178 (init_cutu_and_read_dies_simple): Remove.
14179 (struct process_psymtab_comp_unit_data): Remove.
14180 (process_psymtab_comp_unit_reader): Remove data parameter; add
14181 want_partial_unit and pretend_language parameters.
14182 (process_psymtab_comp_unit): Use cutu_reader.
14183 (build_type_psymtabs_reader): Remove data parameter.
14184 (build_type_psymtabs_1): Use cutu_reader.
14185 (process_skeletonless_type_unit): Likewise.
14186 (load_partial_comp_unit_reader): Remove.
14187 (load_partial_comp_unit): Use cutu_reader.
14188 (load_full_comp_unit_reader): Remove.
14189 (load_full_comp_unit): Use cutu_reader.
14190 (struct create_dwo_cu_data): Remove.
14191 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14192 dwo_unit parameters.
14193 (create_cus_hash_table): Use cutu_reader.
14194 (struct dwarf2_read_addr_index_data): Remove.
14195 (dwarf2_read_addr_index_reader): Remove.
14196 (dwarf2_read_addr_index): Use cutu_reader.
14197 (read_signatured_type_reader): Remove.
14198 (read_signatured_type): Use cutu_reader.
14199
14200 2020-01-19 Tom Tromey <tom@tromey.com>
14201
14202 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14203 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14204 (tui_wrefresh): Declare.
14205 * tui/tui-wingeneral.c (suppress_output): New global.
14206 (tui_suppress_output, ~tui_suppress_output): New constructor and
14207 destructor.
14208 (tui_wrefresh): New function.
14209 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14210 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14211 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14212 method.
14213 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14214 tui_wrefresh.
14215 (tui_data_window::no_refresh): New method.
14216 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14217 (tui_reg_command): Use tui_suppress_output
14218 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14219 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14220 method.
14221 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14222
14223 2020-01-19 Tom Tromey <tom@tromey.com>
14224
14225 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14226 Handle case where symtab is null.
14227
14228 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14229
14230 * linux-fork.c (one_fork_p): Simplify.
14231
14232 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14233
14234 * top.c (struct qt_args): Remove.
14235 (kill_or_detach): Change return type to void, replace `void *`
14236 parameter with a proper one.
14237 (print_inferior_quit_action): Likewise.
14238 (quit_confirm): Use range-based for loop to iterate over inferiors.
14239 (quit_force): Likewise.
14240
14241 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14242
14243 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14244 `void *` parameter with proper parameters.
14245 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14246 (print_one_inferior): Change return type to void, replace `void *`
14247 parameter with proper parameters.
14248 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14249 inferiors.
14250 (get_other_inferior): Remove.
14251 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14252 inferiors.
14253
14254 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14255
14256 * mi/mi-interp.c (report_initial_inferior): Remove.
14257 (mi_interp::init): Use range-based for to iterate over inferiors.
14258
14259 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14260
14261 * python/py-inferior.c (build_inferior_list): Remove.
14262 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14263
14264 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14265
14266 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14267 (btrace_stitch_trace): Likewise.
14268 * charset.c (intermediate_encoding): Likewise (vaild).
14269 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14270 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14271 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14272
14273 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14274
14275 * windows-tdep.c (windows_get_tlb_type):
14276 Add rtl_user_process_parameters type.
14277
14278 2020-01-16 Pedro Alves <palves@redhat.com>
14279 Norbert Lange <nolange79@gmail.com>
14280
14281 PR build/24805
14282 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14283 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14284 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14285 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14286 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14287 (ps_plog): Redeclare exported functions with default visibility.
14288
14289 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14290
14291 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14292 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14293
14294 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14295
14296 * infcmd.c (post_create_inferior): Use get_thread_regcache
14297 instead of get_current_regcache.
14298
14299 2020-01-14 Tom Tromey <tom@tromey.com>
14300
14301 PR symtab/12535:
14302 * python/python.c (gdbpy_decode_line): Treat empty string the same
14303 as no argument.
14304
14305 2020-01-14 Tom Tromey <tom@tromey.com>
14306
14307 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14308
14309 2020-01-14 Tom Tromey <tom@tromey.com>
14310
14311 * nat/linux-btrace.c: Don't include <config.h>.
14312 * nat/linux-ptrace.c: Don't include <config.h>.
14313 * nat/x86-linux-dregs.c: Don't include <config.h>.
14314
14315 2020-01-14 Tom Tromey <tom@tromey.com>
14316
14317 * configure: Rebuild.
14318 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14319
14320 2020-01-14 Tom Tromey <tom@tromey.com>
14321
14322 * nat/x86-linux-dregs.c: Include configh.h.
14323 * nat/linux-ptrace.c: Include configh.h.
14324 * nat/linux-btrace.c: Include configh.h.
14325 * defs.h: Include config.h, bfd.h.
14326 * configure.ac: Don't source common.host.
14327 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14328 * configure: Rebuild.
14329 * acinclude.m4: Update path.
14330 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14331 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14332 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14333 (CLIBS): Add LIBSUPPORT.
14334 (CDEPS): Likewise.
14335 (COMMON_SFILES): Remove gdbsupport files.
14336 (HFILES_NO_SRCDIR): Likewise.
14337 (stamp-version): Update path to create-version.sh.
14338 (ALLDEPFILES): Remove gdbsupport files.
14339
14340 2020-01-14 Tom Tromey <tom@tromey.com>
14341
14342 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14343 USE_WIN32API when needed.
14344 * configure.ac (USE_WIN32API): Don't define.
14345 (WIN32LIBS): Use WIN32APILIBS.
14346 * configure: Rebuild.
14347
14348 2020-01-14 Tom Tromey <tom@tromey.com>
14349
14350 * configure: Rebuild.
14351 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14352
14353 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14354
14355 * skip.c (skip_function_command): Make skip w/o arguments use the
14356 name of the inlined function if pc is inside any inlined function.
14357
14358 2020-01-14 Luis Machado <luis.machado@linaro.org>
14359
14360 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14361 * infrun.c (resume_1): Likewise.
14362 (handle_inferior_event): Remove stale comment.
14363 * linux-nat.c (linux_nat_target::resume): Update comments.
14364 (save_stop_reason): Likewise.
14365 (linux_nat_filter_event): Likewise.
14366 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14367
14368 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14369
14370 * elfread.c (record_minimal_symbol): Set section index to 0 for
14371 non-allocatable sections.
14372
14373
14374 2020-01-13 Ali Tamur <tamur@google.com>
14375
14376 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14377 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14378 to gdb::optional. Update comments.
14379 (dwo_file): Update comments.
14380 (read_attribute): Update API to take an additional out parameter,
14381 need_reprocess. This is used to mark attributes that need other
14382 attributes (e.g. str_offsets_base) for correct computation which may not
14383 have been read yet.
14384 (read_attribute_reprocess): New function declaration.
14385 (read_addr_index): Likewise.
14386 (read_dwo_str_index): Likewise.
14387 (read_stub_str_index): Likewise.
14388 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14389 (lookup_addr_base): New function definition.
14390 (lookup_ranges_base): Likewise.
14391 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14392 lookup_ranges_base.
14393 (init_cutu_and_read_dies): Update comments.
14394 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14395 unit. This is used to inherit parent's str_offsets_base and addr_base.
14396 Update comments.
14397 (init_cutu_and_read_dies_simple): Reflect API changes.
14398 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14399 (create_cus_hash_table): Change API to take parent compile unit.
14400 Reflect API changes.
14401 (open_and_init_dwo_file): Reflect API changes.
14402 (dwarf2_get_pc_bounds): Update comments.
14403 (dwarf2_record_block_ranges): Likewise.
14404 (read_full_die_1): Change implementation to reprocess attributes that
14405 need str_offsets_base and addr_base.
14406 (partial_die_info::read): Likewise.
14407 (read_attribute_reprocess): New function definition.
14408 (read_attribute_value): Change API to take an additional out parameter,
14409 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14410 when a non-dwo compile unit has index based attributes.
14411 (read_attribute): Reflect API changes.
14412 (read_addr_index_1): Reflect API changes. Update comments.
14413 (dwarf2_read_addr_index_data): Reflect API changes.
14414 (dwarf2_read_addr_index): Likewise.
14415 (read_str_index): Change API and implementation. This becomes a helper
14416 to be used by the new string index related methods. Update error
14417 message and comments.
14418 (read_dwo_str_index): New function definition.
14419 (read_stub_str_index): Likewise.
14420 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14421 * symfile.h (dwarf2_debug_sections): Likewise.
14422 * xcoffread.c (dwarf2_debug_sections): Likewise.
14423
14424 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14425
14426 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14427 core_reg_sect type to gdb_byte *.
14428 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14429 * cris-tdep.c (fetch_core_registers): Likewise.
14430 * corelow.c (core_target::get_core_register_section): Change
14431 type of `contents` to gdb::byte_vector.
14432
14433 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14434
14435 * tui/tui-wingeneral.c (box_win): Position the title in the center
14436 of the border.
14437
14438 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14439
14440 * corelow.c (core_target::get_core_register_section): Use
14441 std::vector instead of alloca.
14442
14443 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14444
14445 * warning.m4: Add -Wmissing-declarations to build_warnings.
14446 * configure: Re-generate.
14447
14448 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14449
14450 * python/python.c (init__gdb_module): Add declaration.
14451
14452 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14453
14454 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14455 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14456 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14457 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14458 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14459 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14460 * ada-exp.y (_initialize_ada_exp): Add declaration.
14461 * ada-lang.c (_initialize_ada_language): Add declaration.
14462 * ada-tasks.c (_initialize_tasks): Add declaration.
14463 * agent.c (_initialize_agent): Add declaration.
14464 * aix-thread.c (_initialize_aix_thread): Add declaration.
14465 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14466 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14467 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14468 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14469 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14470 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14471 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14472 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14473 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14474 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14475 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14476 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14477 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14478 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14479 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14480 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14481 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14482 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14483 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14484 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14485 * annotate.c (_initialize_annotate): Add declaration.
14486 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14487 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14488 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14489 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14490 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14491 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14492 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14493 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14494 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14495 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14496 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14497 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14498 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14499 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14500 * auto-load.c (_initialize_auto_load): Add declaration.
14501 * auxv.c (_initialize_auxv): Add declaration.
14502 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14503 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14504 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14505 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14506 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14507 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14508 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14509 * breakpoint.c (_initialize_breakpoint): Add declaration.
14510 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14511 * btrace.c (_initialize_btrace): Add declaration.
14512 * charset.c (_initialize_charset): Add declaration.
14513 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14514 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14515 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14516 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14517 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14518 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14519 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14520 * coffread.c (_initialize_coffread): Add declaration.
14521 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14522 * compile/compile.c (_initialize_compile): Add declaration.
14523 * complaints.c (_initialize_complaints): Add declaration.
14524 * completer.c (_initialize_completer): Add declaration.
14525 * copying.c (_initialize_copying): Add declaration.
14526 * corefile.c (_initialize_core): Add declaration.
14527 * corelow.c (_initialize_corelow): Add declaration.
14528 * cp-abi.c (_initialize_cp_abi): Add declaration.
14529 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14530 * cp-support.c (_initialize_cp_support): Add declaration.
14531 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14532 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14533 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14534 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14535 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14536 * ctfread.c (_initialize_ctfread): Add declaration.
14537 * d-lang.c (_initialize_d_language): Add declaration.
14538 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14539 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14540 * dbxread.c (_initialize_dbxread): Add declaration.
14541 * dcache.c (_initialize_dcache): Add declaration.
14542 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14543 * disasm.c (_initialize_disasm): Add declaration.
14544 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14545 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14546 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14547 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14548 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14549 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14550 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14551 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14552 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14553 * elfread.c (_initialize_elfread): Add declaration.
14554 * exec.c (_initialize_exec): Add declaration.
14555 * extension.c (_initialize_extension): Add declaration.
14556 * f-lang.c (_initialize_f_language): Add declaration.
14557 * f-valprint.c (_initialize_f_valprint): Add declaration.
14558 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14559 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14560 * filesystem.c (_initialize_filesystem): Add declaration.
14561 * findcmd.c (_initialize_mem_search): Add declaration.
14562 * findvar.c (_initialize_findvar): Add declaration.
14563 * fork-child.c (_initialize_fork_child): Add declaration.
14564 * frame-base.c (_initialize_frame_base): Add declaration.
14565 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14566 * frame.c (_initialize_frame): Add declaration.
14567 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14568 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14569 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14570 * gcore.c (_initialize_gcore): Add declaration.
14571 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14572 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14573 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14574 * gdbarch.c (_initialize_gdbarch): Add declaration.
14575 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14576 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14577 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14578 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14579 * go-lang.c (_initialize_go_language): Add declaration.
14580 * go32-nat.c (_initialize_go32_nat): Add declaration.
14581 * guile/guile.c (_initialize_guile): Add declaration.
14582 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14583 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14584 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14585 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14586 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14587 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14588 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14589 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14590 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14591 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14592 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14593 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14594 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14595 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14596 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14597 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14598 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14599 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14600 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14601 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14602 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14603 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14604 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14605 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14606 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14607 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14608 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14609 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14610 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14611 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14612 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14613 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14614 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14615 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14616 * infcall.c (_initialize_infcall): Add declaration.
14617 * infcmd.c (_initialize_infcmd): Add declaration.
14618 * inflow.c (_initialize_inflow): Add declaration.
14619 * infrun.c (_initialize_infrun): Add declaration.
14620 * interps.c (_initialize_interpreter): Add declaration.
14621 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14622 * jit.c (_initialize_jit): Add declaration.
14623 * language.c (_initialize_language): Add declaration.
14624 * linux-fork.c (_initialize_linux_fork): Add declaration.
14625 * linux-nat.c (_initialize_linux_nat): Add declaration.
14626 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14627 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14628 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14629 * m2-lang.c (_initialize_m2_language): Add declaration.
14630 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14631 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14632 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14633 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14634 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14635 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14636 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14637 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14638 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14639 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14640 * machoread.c (_initialize_machoread): Add declaration.
14641 * macrocmd.c (_initialize_macrocmd): Add declaration.
14642 * macroscope.c (_initialize_macroscope): Add declaration.
14643 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14644 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14645 * maint.c (_initialize_maint_cmds): Add declaration.
14646 * mdebugread.c (_initialize_mdebugread): Add declaration.
14647 * memattr.c (_initialize_mem): Add declaration.
14648 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14649 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14650 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14651 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14652 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14653 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14654 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14655 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14656 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14657 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14658 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14659 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14660 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14661 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14662 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14663 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14664 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14665 * mipsread.c (_initialize_mipsread): Add declaration.
14666 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14667 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14668 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14669 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14670 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14671 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14672 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14673 * nto-procfs.c (_initialize_procfs): Add declaration.
14674 * objc-lang.c (_initialize_objc_language): Add declaration.
14675 * observable.c (_initialize_observer): Add declaration.
14676 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14677 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14678 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14679 * osabi.c (_initialize_gdb_osabi): Add declaration.
14680 * osdata.c (_initialize_osdata): Add declaration.
14681 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14682 * parse.c (_initialize_parse): Add declaration.
14683 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14684 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14685 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14686 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14687 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14688 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14689 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14690 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14691 * printcmd.c (_initialize_printcmd): Add declaration.
14692 * probe.c (_initialize_probe): Add declaration.
14693 * proc-api.c (_initialize_proc_api): Add declaration.
14694 * proc-events.c (_initialize_proc_events): Add declaration.
14695 * proc-service.c (_initialize_proc_service): Add declaration.
14696 * procfs.c (_initialize_procfs): Add declaration.
14697 * producer.c (_initialize_producer): Add declaration.
14698 * psymtab.c (_initialize_psymtab): Add declaration.
14699 * python/python.c (_initialize_python): Add declaration.
14700 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14701 * record-btrace.c (_initialize_record_btrace): Add declaration.
14702 * record-full.c (_initialize_record_full): Add declaration.
14703 * record.c (_initialize_record): Add declaration.
14704 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14705 * regcache.c (_initialize_regcache): Add declaration.
14706 * reggroups.c (_initialize_reggroup): Add declaration.
14707 * remote-notif.c (_initialize_notif): Add declaration.
14708 * remote-sim.c (_initialize_remote_sim): Add declaration.
14709 * remote.c (_initialize_remote): Add declaration.
14710 * reverse.c (_initialize_reverse): Add declaration.
14711 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14712 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14713 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14714 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14715 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14716 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14717 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14718 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14719 Add declaration.
14720 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14721 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14722 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14723 * rust-exp.y (_initialize_rust_exp): Add declaration.
14724 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14725 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14726 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14727 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14728 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14729 * score-tdep.c (_initialize_score_tdep): Add declaration.
14730 * ser-go32.c (_initialize_ser_dos): Add declaration.
14731 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14732 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14733 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14734 * ser-uds.c (_initialize_ser_socket): Add declaration.
14735 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14736 * serial.c (_initialize_serial): Add declaration.
14737 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14738 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14739 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14740 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14741 * skip.c (_initialize_step_skip): Add declaration.
14742 * sol-thread.c (_initialize_sol_thread): Add declaration.
14743 * solib-aix.c (_initialize_solib_aix): Add declaration.
14744 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14745 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14746 * solib-frv.c (_initialize_frv_solib): Add declaration.
14747 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14748 * solib-target.c (_initialize_solib_target): Add declaration.
14749 * solib.c (_initialize_solib): Add declaration.
14750 * source-cache.c (_initialize_source_cache): Add declaration.
14751 * source.c (_initialize_source): Add declaration.
14752 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14753 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14754 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14755 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14756 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14757 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14758 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14759 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14760 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14761 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14762 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14763 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14764 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14765 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14766 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14767 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14768 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14769 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14770 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14771 * stabsread.c (_initialize_stabsread): Add declaration.
14772 * stack.c (_initialize_stack): Add declaration.
14773 * stap-probe.c (_initialize_stap_probe): Add declaration.
14774 * std-regs.c (_initialize_frame_reg): Add declaration.
14775 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14776 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14777 * symfile.c (_initialize_symfile): Add declaration.
14778 * symmisc.c (_initialize_symmisc): Add declaration.
14779 * symtab.c (_initialize_symtab): Add declaration.
14780 * target.c (_initialize_target): Add declaration.
14781 * target-connection.c (_initialize_target_connection): Add
14782 declaration.
14783 * target-dcache.c (_initialize_target_dcache): Add declaration.
14784 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14785 * thread.c (_initialize_thread): Add declaration.
14786 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14787 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14788 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14789 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14790 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14791 * tracectf.c (_initialize_ctf): Add declaration.
14792 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14793 * tracefile.c (_initialize_tracefile): Add declaration.
14794 * tracepoint.c (_initialize_tracepoint): Add declaration.
14795 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14796 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14797 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14798 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14799 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14800 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14801 * tui/tui.c (_initialize_tui): Add declaration.
14802 * typeprint.c (_initialize_typeprint): Add declaration.
14803 * ui-style.c (_initialize_ui_style): Add declaration.
14804 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14805 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14806 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14807 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14808 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14809 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14810 * unittests/filtered_iterator-selftests.c
14811 (_initialize_filtered_iterator_selftests): Add declaration.
14812 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14813 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14814 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14815 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14816 * unittests/main-thread-selftests.c
14817 (_initialize_main_thread_selftests): Add declaration.
14818 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14819 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14820 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14821 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14822 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14823 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14824 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14825 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14826 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14827 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14828 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14829 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14830 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14831 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14832 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14833 declaration.
14834 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14835 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14836 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14837 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14838 * user-regs.c (_initialize_user_regs): Add declaration.
14839 * utils.c (_initialize_utils): Add declaration.
14840 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14841 * valops.c (_initialize_valops): Add declaration.
14842 * valprint.c (_initialize_valprint): Add declaration.
14843 * value.c (_initialize_values): Add declaration.
14844 * varobj.c (_initialize_varobj): Add declaration.
14845 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14846 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14847 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14848 * windows-nat.c (_initialize_windows_nat): Add declaration.
14849 (_initialize_check_for_gdb_ini): Add declaration.
14850 (_initialize_loadable): Add declaration.
14851 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14852 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14853 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14854 * xcoffread.c (_initialize_xcoffread): Add declaration.
14855 * xml-support.c (_initialize_xml_support): Add declaration.
14856 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14857 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14858 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14859 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14860
14861 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14862
14863 * regformats/regdat.sh: Generate declaration for init function.
14864
14865 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14866
14867 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14868 up.
14869 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14870 close_one_inferior>: New methods.
14871 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14872 pass down target to find_inferior_pid.
14873 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14874 Pass down target to find_inferior_ptid.
14875 (gdbsim_target::create_inferior): Pass down target to
14876 add_thread_silent.
14877 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14878 target down to find_inferior_ptid and switch_to_thread.
14879 (gdbsim_target::close): Update to call close_one_inferior.
14880 (struct resume_data): Remove.
14881 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14882 directly, rather than through a void pointer.
14883 (gdbsim_target::resume): Update to call resume_one_inferior.
14884
14885 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14886
14887 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14888
14889 2020-01-12 Pedro Alves <palves@redhat.com>
14890
14891 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14892 directly for the current inferior instead of
14893 discard_all_inferiors.
14894 (discard_all_inferiors): Delete.
14895
14896 2020-01-11 Tom Tromey <tom@tromey.com>
14897
14898 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14899 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14900 deprecated_safe_get_selected_frame.
14901
14902 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14903
14904 * inferior.c (print_inferior): Switch inferior before printing it.
14905
14906 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14907 Pedro Alves <palves@redhat.com>
14908
14909 * progspace-and-thread.c (switch_to_program_space_and_thread):
14910 Assert there's an inferior for PSPACE. Use
14911 switch_to_inferior_no_thread to switch the inferior too.
14912 * progspace.c (program_space::~program_space): Call
14913 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14914 (program_space::free_all_objfiles): Don't call clear_symtab_users
14915 here.
14916 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14917
14918 2020-01-10 Pedro Alves <palves@redhat.com>
14919
14920 * NEWS: Mention multi-target debugging, "info connections", and
14921 "add-inferior -no-connection".
14922
14923 2020-01-10 Pedro Alves <palves@redhat.com>
14924
14925 * infrun.c: Include "target-connection.h".
14926 (check_multi_target_resumption): New.
14927 (proceed): Call it.
14928 * target-connection.c (make_target_connection_string): Make
14929 extern.
14930 * target-connection.h (make_target_connection_string): Declare.
14931
14932 2020-01-10 Pedro Alves <palves@redhat.com>
14933
14934 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14935 * inferior.c (uiout_field_connection): New function.
14936 (print_inferior): Add new "connection-id" column.
14937 (add_inferior_command): Show connection number/string of added
14938 inferior.
14939 * process-stratum-target.h
14940 (process_stratum_target::connection_string): New virtual method.
14941 (process_stratum_target::connection_number): New field.
14942 * remote.c (remote_target::connection_string): New override.
14943 * target-connection.c: New file.
14944 * target-connection.h: New file.
14945 * target.c (decref_target): Remove process_stratum targets from
14946 the connection list.
14947 (target_stack::push): Add process_stratum targets to the
14948 connection list.
14949
14950 2020-01-10 Pedro Alves <palves@redhat.com>
14951
14952 Revert:
14953 2016-04-12 Pedro Alves <palves@redhat.com>
14954 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14955 Remove references to name.
14956 * serial.h (struct serial) <name>: Delete.
14957
14958 2020-01-10 Pedro Alves <palves@redhat.com>
14959
14960 * gdbarch-selftests.c (register_to_value_test): Remove "target
14961 already pushed" check.
14962
14963 2020-01-10 Pedro Alves <palves@redhat.com>
14964 John Baldwin <jhb@FreeBSD.org>
14965
14966 * aarch64-linux-nat.c
14967 (aarch64_linux_nat_target::thread_architecture): Adjust.
14968 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14969 (task_command_1): Likewise.
14970 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14971 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14972 (aix_thread_target::store_registers)
14973 (aix_thread_target::thread_alive): Adjust.
14974 * amd64-fbsd-tdep.c: Include "inferior.h".
14975 (amd64fbsd_get_thread_local_address): Pass down target.
14976 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14977 thread's gdbarch instead of target_gdbarch.
14978 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14979 get_last_target_status.
14980 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14981 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14982 inferiors.
14983 (update_inserted_breakpoint_locations): Skip if inferiors with no
14984 execution.
14985 (update_global_location_list): When handling moribund locations,
14986 find representative inferior for location's pspace, and use thread
14987 count of its process_stratum target.
14988 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14989 * bsd-uthread.c (bsd_uthread_target::wait): Use
14990 as_process_stratum_target and adjust thread_change_ptid and
14991 add_thread calls.
14992 (bsd_uthread_target::update_thread_list): Use
14993 as_process_stratum_target and adjust find_thread_ptid,
14994 thread_change_ptid and add_thread calls.
14995 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14996 find_thread_ptid call.
14997 * corelow.c (add_to_thread_list): Adjust add_thread call.
14998 (core_target_open): Adjust add_thread_silent and thread_count
14999 calls.
15000 (core_target::pid_to_str): Adjust find_inferior_ptid call.
15001 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
15002 * event-top.c (async_disconnect): Pop targets from all inferiors.
15003 * exec.c (add_target_sections): Push exec target on all inferiors
15004 sharing the program space.
15005 (remove_target_sections): Remove the exec target from all
15006 inferiors sharing the program space.
15007 (exec_on_vfork): New.
15008 * exec.h (exec_on_vfork): Declare.
15009 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
15010 Pass it down.
15011 (fbsd_nat_target::update_thread_list): Adjust.
15012 (fbsd_nat_target::resume): Adjust.
15013 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
15014 down.
15015 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
15016 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
15017 get_thread_arch_regcache call.
15018 * fork-child.c (gdb_startup_inferior): Pass target down to
15019 startup_inferior and set_executing.
15020 * gdbthread.h (struct process_stratum_target): Forward declare.
15021 (add_thread, add_thread_silent, add_thread_with_info)
15022 (in_thread_list): Add process_stratum_target parameter.
15023 (find_thread_ptid(inferior*, ptid_t)): New overload.
15024 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
15025 parameter.
15026 (all_threads()): Delete overload.
15027 (all_threads, all_non_exited_threads): Add process_stratum_target
15028 parameter.
15029 (all_threads_safe): Use brace initialization.
15030 (thread_count): Add process_stratum_target parameter.
15031 (set_resumed, set_running, set_stop_requested, set_executing)
15032 (threads_are_executing, finish_thread_state): Add
15033 process_stratum_target parameter.
15034 (switch_to_thread): Use is_current_thread.
15035 * i386-fbsd-tdep.c: Include "inferior.h".
15036 (i386fbsd_get_thread_local_address): Pass down target.
15037 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
15038 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
15039 have_inferiors check.
15040 * inf-ptrace.c (inf_ptrace_target::create_inferior)
15041 (inf_ptrace_target::attach): Adjust.
15042 * infcall.c (run_inferior_call): Adjust.
15043 * infcmd.c (run_command_1): Pass target to
15044 scoped_finish_thread_state.
15045 (proceed_thread_callback): Skip inferiors with no execution.
15046 (continue_command): Rename 'all_threads' local to avoid hiding
15047 'all_threads' function. Adjust get_last_target_status call.
15048 (prepare_one_step): Adjust set_running call.
15049 (signal_command): Use user_visible_resume_target. Compare thread
15050 pointers instead of inferior_ptid.
15051 (info_program_command): Adjust to pass down target.
15052 (attach_command): Mark target's 'thread_executing' flag.
15053 (stop_current_target_threads_ns): New, factored out from ...
15054 (interrupt_target_1): ... this. Switch inferior before making
15055 target calls.
15056 * inferior-iter.h
15057 (struct all_inferiors_iterator, struct all_inferiors_range)
15058 (struct all_inferiors_safe_range)
15059 (struct all_non_exited_inferiors_range): Filter on
15060 process_stratum_target too. Remove explicit.
15061 * inferior.c (inferior::inferior): Push dummy target on target
15062 stack.
15063 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15064 Add process_stratum_target parameter, and pass it down.
15065 (have_live_inferiors): Adjust.
15066 (switch_to_inferior_and_push_target): New.
15067 (add_inferior_command, clone_inferior_command): Handle
15068 "-no-connection" parameter. Use
15069 switch_to_inferior_and_push_target.
15070 (_initialize_inferior): Mention "-no-connection" option in
15071 the help of "add-inferior" and "clone-inferior" commands.
15072 * inferior.h: Include "process-stratum-target.h".
15073 (interrupt_target_1): Use bool.
15074 (struct inferior) <push_target, unpush_target, target_is_pushed,
15075 find_target_beneath, top_target, process_target, target_at,
15076 m_stack>: New.
15077 (discard_all_inferiors): Delete.
15078 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15079 (all_inferiors, all_non_exited_inferiors): Add
15080 process_stratum_target parameter.
15081 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15082 (target_last_proc_target): New global.
15083 (follow_fork_inferior): Push target on new inferior. Pass target
15084 to add_thread_silent. Call exec_on_vfork. Handle target's
15085 reference count.
15086 (follow_fork): Adjust get_last_target_status call. Also consider
15087 target.
15088 (follow_exec): Push target on new inferior.
15089 (struct execution_control_state) <target>: New field.
15090 (user_visible_resume_target): New.
15091 (do_target_resume): Call target_async.
15092 (resume_1): Set target's threads_executing flag. Consider resume
15093 target.
15094 (commit_resume_all_targets): New.
15095 (proceed): Also consider resume target. Skip threads of inferiors
15096 with no execution. Commit resumtion in all targets.
15097 (start_remote): Pass current inferior to wait_for_inferior.
15098 (infrun_thread_stop_requested): Consider target as well. Pass
15099 thread_info pointer to clear_inline_frame_state instead of ptid.
15100 (infrun_thread_thread_exit): Consider target as well.
15101 (random_pending_event_thread): New inferior parameter. Use it.
15102 (do_target_wait): Rename to ...
15103 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15104 down.
15105 (threads_are_resumed_pending_p, do_target_wait): New.
15106 (prepare_for_detach): Adjust calls.
15107 (wait_for_inferior): New inferior parameter. Handle it. Use
15108 do_target_wait_1 instead of do_target_wait.
15109 (fetch_inferior_event): Adjust. Switch to representative
15110 inferior. Pass target down.
15111 (set_last_target_status): Add process_stratum_target parameter.
15112 Save target in global.
15113 (get_last_target_status): Add process_stratum_target parameter and
15114 handle it.
15115 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15116 (context_switch): Check inferior_ptid == null_ptid before calling
15117 inferior_thread().
15118 (get_inferior_stop_soon): Pass down target.
15119 (wait_one): Rename to ...
15120 (poll_one_curr_target): ... this.
15121 (struct wait_one_event): New.
15122 (wait_one): New.
15123 (stop_all_threads): Adjust.
15124 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15125 event's target.
15126 (switch_back_to_stepped_thread): Also consider target.
15127 (print_stop_event): Update.
15128 (normal_stop): Update. Also consider the resume target.
15129 * infrun.h (wait_for_inferior): Remove declaration.
15130 (user_visible_resume_target): New declaration.
15131 (get_last_target_status, set_last_target_status): New
15132 process_stratum_target parameter.
15133 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15134 process_stratum_target parameter, and use it.
15135 (clear_inline_frame_state (thread_info*)): New.
15136 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15137 process_stratum_target parameter.
15138 (clear_inline_frame_state (thread_info*)): Declare.
15139 * linux-fork.c (delete_checkpoint_command): Pass target down to
15140 find_thread_ptid.
15141 (checkpoint_command): Adjust.
15142 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15143 instead of just tweaking inferior_ptid.
15144 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15145 (exit_lwp): Pass target down to find_thread_ptid.
15146 (attach_proc_task_lwp_callback): Pass target down to
15147 add_thread/set_running/set_executing.
15148 (linux_nat_target::attach): Pass target down to
15149 thread_change_ptid.
15150 (get_detach_signal): Pass target down to find_thread_ptid.
15151 Consider last target status's target.
15152 (linux_resume_one_lwp_throw, resume_lwp)
15153 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15154 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15155 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15156 (linux_nat_target::async_wait_fd): New.
15157 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15158 target down.
15159 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15160 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15161 * linux-thread-db.c (struct thread_db_info::process_target): New
15162 field.
15163 (add_thread_db_info): Save target.
15164 (get_thread_db_info): New process_stratum_target parameter. Also
15165 match target.
15166 (delete_thread_db_info): New process_stratum_target parameter.
15167 Also match target.
15168 (thread_from_lwp): Adjust to pass down target.
15169 (thread_db_notice_clone): Pass down target.
15170 (check_thread_db_callback): Pass down target.
15171 (try_thread_db_load_1): Always push the thread_db target.
15172 (try_thread_db_load, record_thread): Pass target down.
15173 (thread_db_target::detach): Pass target down. Always unpush the
15174 thread_db target.
15175 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15176 target down. Always unpush the thread_db target.
15177 (find_new_threads_callback, thread_db_find_new_threads_2)
15178 (thread_db_target::update_thread_list): Pass target down.
15179 (thread_db_target::pid_to_str): Pass current inferior down.
15180 (thread_db_target::get_thread_local_address): Pass target down.
15181 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15182 target down.
15183 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15184 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15185 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15186 (procfs_init_inferior): Rename to ...
15187 (procfs_target::procfs_init_inferior): ... this and adjust.
15188 (procfs_target::create_inferior, procfs_notice_thread)
15189 (procfs_do_thread_registers): Adjust.
15190 * ppc-fbsd-tdep.c: Include "inferior.h".
15191 (ppcfbsd_get_thread_local_address): Pass down target.
15192 * proc-service.c (ps_xfer_memory): Switch current inferior and
15193 program space as well.
15194 (get_ps_regcache): Pass target down.
15195 * process-stratum-target.c
15196 (process_stratum_target::thread_address_space)
15197 (process_stratum_target::thread_architecture): Pass target down.
15198 * process-stratum-target.h
15199 (process_stratum_target::threads_executing): New field.
15200 (as_process_stratum_target): New.
15201 * ravenscar-thread.c
15202 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15203 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15204 down.
15205 * record-btrace.c (record_btrace_target::info_record): Adjust.
15206 (record_btrace_target::record_method)
15207 (record_btrace_target::record_is_replaying)
15208 (record_btrace_target::fetch_registers)
15209 (get_thread_current_frame_id, record_btrace_target::resume)
15210 (record_btrace_target::wait, record_btrace_target::stop): Pass
15211 target down.
15212 * record-full.c (record_full_wait_1): Switch to event thread.
15213 Pass target down.
15214 * regcache.c (regcache::regcache)
15215 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15216 process_stratum_target parameter and handle it.
15217 (current_thread_target): New global.
15218 (get_thread_regcache): Add process_stratum_target parameter and
15219 handle it. Switch inferior before calling target method.
15220 (get_thread_regcache): Pass target down.
15221 (get_thread_regcache_for_ptid): Pass target down.
15222 (registers_changed_ptid): Add process_stratum_target parameter and
15223 handle it.
15224 (registers_changed_thread, registers_changed): Pass target down.
15225 (test_get_thread_arch_aspace_regcache): New.
15226 (current_regcache_test): Define a couple local test_target_ops
15227 instances and use them for testing.
15228 (readwrite_regcache): Pass process_stratum_target parameter.
15229 (cooked_read_test, cooked_write_test): Pass mock_target down.
15230 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15231 (get_thread_arch_aspace_regcache): Add process_stratum_target
15232 parameter.
15233 (regcache::target): New method.
15234 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15235 (regcache::registers_changed_ptid): Add process_stratum_target
15236 parameter.
15237 (regcache::m_target): New field.
15238 (registers_changed_ptid): Add process_stratum_target parameter.
15239 * remote.c (remote_state::supports_vCont_probed): New field.
15240 (remote_target::async_wait_fd): New method.
15241 (remote_unpush_and_throw): Add remote_target parameter.
15242 (get_current_remote_target): Adjust.
15243 (remote_target::remote_add_inferior): Push target.
15244 (remote_target::remote_add_thread)
15245 (remote_target::remote_notice_new_inferior)
15246 (get_remote_thread_info): Pass target down.
15247 (remote_target::update_thread_list): Skip threads of inferiors
15248 bound to other targets. (remote_target::close): Don't discard
15249 inferiors. (remote_target::add_current_inferior_and_thread)
15250 (remote_target::process_initial_stop_replies)
15251 (remote_target::start_remote)
15252 (remote_target::remote_serial_quit_handler): Pass down target.
15253 (remote_target::remote_unpush_target): New remote_target
15254 parameter. Unpush the target from all inferiors.
15255 (remote_target::remote_unpush_and_throw): New remote_target
15256 parameter. Pass it down.
15257 (remote_target::open_1): Check whether the current inferior has
15258 execution instead of checking whether any inferior is live. Pass
15259 target down.
15260 (remote_target::remote_detach_1): Pass down target. Use
15261 remote_unpush_target.
15262 (extended_remote_target::attach): Pass down target.
15263 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15264 (remote_target::append_resumption): Pass down target.
15265 (remote_target::append_pending_thread_resumptions)
15266 (remote_target::remote_resume_with_hc, remote_target::resume)
15267 (remote_target::commit_resume): Pass down target.
15268 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15269 (remote_target::interrupt_query)
15270 (remote_target::remove_new_fork_children)
15271 (remote_target::check_pending_events_prevent_wildcard_vcont)
15272 (remote_target::remote_parse_stop_reply)
15273 (remote_target::process_stop_reply): Pass down target.
15274 (first_remote_resumed_thread): New remote_target parameter. Pass
15275 it down.
15276 (remote_target::wait_as): Pass down target.
15277 (unpush_and_perror): New remote_target parameter. Pass it down.
15278 (remote_target::readchar, remote_target::remote_serial_write)
15279 (remote_target::getpkt_or_notif_sane_1)
15280 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15281 down target.
15282 (remote_target::mourn_inferior): Pass down target. Use
15283 remote_unpush_target.
15284 (remote_target::core_of_thread)
15285 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15286 (remote_target::pid_to_exec_file)
15287 (remote_target::thread_handle_to_thread_info): Pass down target.
15288 (remote_target::async_wait_fd): New.
15289 * riscv-fbsd-tdep.c: Include "inferior.h".
15290 (riscv_fbsd_get_thread_local_address): Pass down target.
15291 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15292 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15293 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15294 Adjust.
15295 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15296 * solib-svr4.c (enable_break): Pass down target.
15297 * spu-multiarch.c (parse_spufs_run): Pass down target.
15298 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15299 * target-delegates.c: Regenerate.
15300 * target.c (g_target_stack): Delete.
15301 (current_top_target): Return the current inferior's top target.
15302 (target_has_execution_1): Refer to the passed-in inferior's top
15303 target.
15304 (target_supports_terminal_ours): Check whether the initial
15305 inferior was already created.
15306 (decref_target): New.
15307 (target_stack::push): Incref/decref the target.
15308 (push_target, push_target, unpush_target): Adjust.
15309 (target_stack::unpush): Defref target.
15310 (target_is_pushed): Return bool. Adjust to refer to the current
15311 inferior's target stack.
15312 (dispose_inferior): Delete, and inline parts ...
15313 (target_preopen): ... here. Only dispose of the current inferior.
15314 (target_detach): Hold strong target reference while detaching.
15315 Pass target down.
15316 (target_thread_name): Add assertion.
15317 (target_resume): Pass down target.
15318 (target_ops::beneath, find_target_at): Adjust to refer to the
15319 current inferior's target stack.
15320 (get_dummy_target): New.
15321 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15322 has a thread running.
15323 (initialize_targets): Rename to ...
15324 (_initialize_target): ... this.
15325 * target.h: Include "gdbsupport/refcounted-object.h".
15326 (struct target_ops): Inherit refcounted_object.
15327 (target_ops::shortname, target_ops::longname): Make const.
15328 (target_ops::async_wait_fd): New method.
15329 (decref_target): Declare.
15330 (struct target_ops_ref_policy): New.
15331 (target_ops_ref): New typedef.
15332 (get_dummy_target): Declare function.
15333 (target_is_pushed): Return bool.
15334 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15335 (all_matching_threads_iterator::all_matching_threads_iterator):
15336 Handle filter target.
15337 * thread-iter.h (struct all_matching_threads_iterator, struct
15338 all_matching_threads_range, class all_non_exited_threads_range):
15339 Filter by target too. Remove explicit.
15340 * thread.c (threads_executing): Delete.
15341 (inferior_thread): Pass down current inferior.
15342 (clear_thread_inferior_resources): Pass down thread pointer
15343 instead of ptid_t.
15344 (add_thread_silent, add_thread_with_info, add_thread): Add
15345 process_stratum_target parameter. Use it for thread and inferior
15346 searches.
15347 (is_current_thread): New.
15348 (thread_info::deletable): Use it.
15349 (find_thread_ptid, thread_count, in_thread_list)
15350 (thread_change_ptid, set_resumed, set_running): New
15351 process_stratum_target parameter. Pass it down.
15352 (set_executing): New process_stratum_target parameter. Pass it
15353 down. Adjust reference to 'threads_executing'.
15354 (threads_are_executing): New process_stratum_target parameter.
15355 Adjust reference to 'threads_executing'.
15356 (set_stop_requested, finish_thread_state): New
15357 process_stratum_target parameter. Pass it down.
15358 (switch_to_thread): Also match inferior.
15359 (switch_to_thread): New process_stratum_target parameter. Pass it
15360 down.
15361 (update_threads_executing): Reimplement.
15362 * top.c (quit_force): Pop targets from all inferior.
15363 (gdb_init): Don't call initialize_targets.
15364 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15365 Declare.
15366 (windows_add_thread, windows_delete_thread): Adjust.
15367 (get_windows_debug_event): Rename to ...
15368 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15369 * tracefile-tfile.c (tfile_target_open): Pass down target.
15370 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15371 Forward declare.
15372 (switch_to_thread): Add process_stratum_target parameter.
15373 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15374 parameter. Use it.
15375 (mi_on_resume): Pass target down.
15376 * nat/fork-inferior.c (startup_inferior): Add
15377 process_stratum_target parameter. Pass it down.
15378 * nat/fork-inferior.h (startup_inferior): Add
15379 process_stratum_target parameter.
15380 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15381
15382 2020-01-10 Pedro Alves <palves@redhat.com>
15383
15384 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15385 directly. Instead find the first thread in the thread list and
15386 use switch_to_thread.
15387
15388 2020-01-10 Pedro Alves <palves@redhat.com>
15389
15390 * remote.c (remote_target::remote_add_inferior): Don't bind a
15391 process to the current inferior if the current inferior is already
15392 bound to a process.
15393
15394 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15395 Pedro Alves <palves@redhat.com>
15396
15397 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15398 If no process is specified, return null_ptid instead of
15399 inferior_ptid.
15400 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15401 TARGET_WAITKIND_SIGNALLED with no pid.
15402
15403 2020-01-10 Pedro Alves <palves@redhat.com>
15404
15405 * remote.c (first_remote_resumed_thread): New.
15406 (remote_target::wait_as): Use it as default event_ptid instead of
15407 inferior_ptid.
15408
15409 2020-01-10 Pedro Alves <palves@redhat.com>
15410
15411 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15412
15413 2020-01-10 Pedro Alves <palves@redhat.com>
15414
15415 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15416 not -1.
15417
15418 2020-01-10 Pedro Alves <palves@redhat.com>
15419
15420 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15421 ptid to get_last_target_status.
15422 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15423 ptid to get_last_target_status.
15424 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15425 get_last_target_status.
15426 (info_program_command): Don't pass a target_waitstatus to
15427 get_last_target_status.
15428 * infrun.c (init_wait_for_inferior): Use
15429 nullify_last_target_wait_ptid.
15430 (get_last_target_status): Handle nullptr arguments.
15431 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15432 (print_stop_event): Don't pass a ptid to get_last_target_status.
15433 (normal_stop): Don't pass a ptid to get_last_target_status.
15434 * infrun.h (get_last_target_status, set_last_target_status): Move
15435 comments here and update.
15436 (nullify_last_target_wait_ptid): Declare.
15437 * linux-fork.c (fork_load_infrun_state): Remove local extern
15438 declaration of nullify_last_target_wait_ptid.
15439 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15440 to get_last_target_status.
15441
15442 2020-01-10 Pedro Alves <palves@redhat.com>
15443
15444 * gdbthread.h (scoped_restore_current_thread)
15445 <dont_restore, restore, m_dont_restore>: Declare.
15446 * thread.c (thread_alive): Add assertion. Return bool.
15447 (switch_to_thread_if_alive): New.
15448 (prune_threads): Switch inferior/thread.
15449 (print_thread_info_1): Switch thread before calling target methods.
15450 (scoped_restore_current_thread::restore): New, factored out from
15451 ...
15452 (scoped_restore_current_thread::~scoped_restore_current_thread):
15453 ... this.
15454 (scoped_restore_current_thread::scoped_restore_current_thread):
15455 Add assertion.
15456 (thread_apply_all_command, thread_select): Use
15457 switch_to_thread_if_alive.
15458 * infrun.c (proceed, restart_threads, handle_signal_stop)
15459 (switch_back_to_stepped_thread): Switch current thread before
15460 calling target methods.
15461
15462 2020-01-10 Pedro Alves <palves@redhat.com>
15463
15464 * inferior.c (switch_to_inferior_no_thread): New function,
15465 factored out from ...
15466 (inferior_command): ... here.
15467 * inferior.h (switch_to_inferior_no_thread): Declare.
15468 * mi/mi-main.c (run_one_inferior): Use
15469 switch_to_inferior_no_thread.
15470
15471 2020-01-10 Pedro Alves <palves@redhat.com>
15472
15473 * infcmd.c (kill_command): Remove dead code.
15474
15475 2020-01-10 Pedro Alves <palves@redhat.com>
15476
15477 * remote.c (remote_target::mourn_inferior): No longer check
15478 whether the target is running.
15479
15480 2020-01-10 Pedro Alves <palves@redhat.com>
15481
15482 * corelow.c (core_target::has_execution): Change parameter type to
15483 inferior pointer.
15484 * inferior.c (number_of_live_inferiors): Use
15485 inferior::has_execution instead of target_has_execution_1.
15486 * inferior.h (inferior::has_execution): New.
15487 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15488 inferior::has_execution instead of target_has_execution_1.
15489 * process-stratum-target.c
15490 (process_stratum_target::has_execution): Change parameter type to
15491 inferior pointer. Check the inferior's PID instead of
15492 inferior_ptid.
15493 * process-stratum-target.h
15494 (process_stratum_target::has_execution): Change parameter type to
15495 inferior pointer.
15496 * record-full.c (record_full_core_target::has_execution): Change
15497 parameter type to inferior pointer.
15498 * target.c (target_has_execution_1): Change parameter type to
15499 inferior pointer.
15500 (target_has_execution_current): Adjust.
15501 * target.h (target_ops::has_execution): Change parameter type to
15502 inferior pointer.
15503 (target_has_execution_1): Change parameter type to inferior
15504 pointer. Change return type to bool.
15505 * tracefile.h (tracefile_target::has_execution): Change parameter
15506 type to inferior pointer.
15507
15508 2020-01-10 Pedro Alves <palves@redhat.com>
15509
15510 * exceptions.c (print_flush): Remove current_top_target() check.
15511
15512 2020-01-10 Pedro Alves <palves@redhat.com>
15513
15514 * remote.c (show_remote_exec_file): Show the current inferior's
15515 exec-file instead of the command variable's value.
15516
15517 2020-01-10 Pedro Alves <palves@redhat.com>
15518
15519 * record-full.c (record_full_resume_ptid): New global.
15520 (record_full_target::resume): Set it.
15521 (record_full_wait_1): Use record_full_resume_ptid instead of
15522 inferior_ptid.
15523
15524 2020-01-10 Pedro Alves <palves@redhat.com>
15525
15526 * gdbthread.h (scoped_restore_current_thread)
15527 <dont_restore, restore, m_dont_restore>: Declare.
15528 * thread.c (thread_alive): Add assertion. Return bool.
15529 (switch_to_thread_if_alive): New.
15530 (prune_threads): Switch inferior/thread.
15531 (print_thread_info_1): Switch thread before calling target methods.
15532 (scoped_restore_current_thread::restore): New, factored out from
15533 ...
15534 (scoped_restore_current_thread::~scoped_restore_current_thread):
15535 ... this.
15536 (scoped_restore_current_thread::scoped_restore_current_thread):
15537 Add assertion.
15538 (thread_apply_all_command, thread_select): Use
15539 switch_to_thread_if_alive.
15540
15541 2020-01-10 George Barrett <bob@bob131.so>
15542
15543 * stap-probe.c (stap_modify_semaphore): Don't check for null
15544 semaphores.
15545 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15546 for null semaphores.
15547
15548 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15549
15550 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15551 all source windows, and maintain horizontal scroll status while
15552 doing so.
15553
15554 2020-01-09 Tom Tromey <tom@tromey.com>
15555
15556 PR tui/18932:
15557 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15558 update_source_window, not print_source_lines.
15559
15560 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15561
15562 * tui/tui.c (tui_enable): Register tui hooks after calling
15563 tui_display_main.
15564
15565 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15566
15567 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15568
15569 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15570
15571 * thread.c (print_thread_info_1): Fix indentation.
15572
15573 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15574
15575 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15576 unique_xmalloc_ptr outside the if to always free the demangled name.
15577
15578 2020-01-08 Tom Tromey <tromey@adacore.com>
15579
15580 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15581 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15582 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15583 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15584 Remove.
15585 (section_offsets): New typedef.
15586 * symtab.c (fixup_section, get_msymbol_address): Update.
15587 * symmisc.c (dump_msymbols): Update.
15588 * symfile.h (relative_addr_info_to_section_offsets)
15589 (symfile_map_offsets_to_segments): Update.
15590 * symfile.c (build_section_addr_info_from_objfile)
15591 (init_objfile_sect_indices): Update.
15592 (struct place_section_arg): Change type of "offsets".
15593 (place_section): Update.
15594 (relative_addr_info_to_section_offsets): Change type of
15595 "section_offsets". Remove "num_sections" parameter.
15596 (default_symfile_offsets, syms_from_objfile_1)
15597 (set_objfile_default_section_offset): Update.
15598 (reread_symbols): No need to preserve section offsets by hand.
15599 (symfile_map_offsets_to_segments): Change type of "offsets".
15600 * stap-probe.c (relocate_address): Update.
15601 * stabsread.h (process_one_symbol): Update.
15602 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15603 (solib_target_relocate_section_addresses): Update.
15604 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15605 Update.
15606 * solib-frv.c (frv_relocate_main_executable): Update.
15607 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15608 * solib-aix.c (solib_aix_get_section_offsets): Change return
15609 type.
15610 (solib_aix_solib_create_inferior_hook): Update.
15611 * remote.c (remote_target::get_offsets): Update.
15612 * psymtab.c (find_pc_sect_psymtab): Update.
15613 * psympriv.h (struct partial_symbol) <address, text_low,
15614 text_high>: Update.
15615 * objfiles.h (obj_section_offset): Update.
15616 (struct objfile) <section_offsets>: Change type.
15617 <num_sections>: Remove.
15618 (objfile_relocate): Update.
15619 * objfiles.c (entry_point_address_query): Update
15620 (relocate_one_symbol): Change type of "section_offsets".
15621 (objfile_relocate1, objfile_relocate1): Change type of
15622 "new_offsets".
15623 (objfile_rebase1): Update.
15624 * mipsread.c (mipscoff_symfile_read): Update.
15625 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15626 parameter.
15627 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15628 (parse_external, psymtab_to_symtab_1): Update.
15629 * machoread.c (macho_symfile_offsets): Update.
15630 * ia64-tdep.c (ia64_find_unwind_table): Update.
15631 * hppa-tdep.c (read_unwind_info): Update.
15632 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15633 * dwarf2read.c (create_addrmap_from_index)
15634 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15635 (process_psymtab_comp_unit_reader, add_partial_symbol)
15636 (add_partial_subprogram, process_full_comp_unit)
15637 (read_file_scope, read_func_scope, read_lexical_block_scope)
15638 (read_call_site_scope, dwarf2_rnglists_process)
15639 (dwarf2_ranges_process, dwarf2_ranges_read)
15640 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15641 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15642 Update.
15643 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15644 Update.
15645 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15646 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15647 (process_one_symbol): Change type of "section_offsets".
15648 * ctfread.c (get_objfile_text_range): Update.
15649 * coffread.c (coff_symtab_read, enter_linenos)
15650 (process_coff_symbol): Update.
15651 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15652 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15653
15654 2020-01-08 Tom Tromey <tromey@adacore.com>
15655
15656 * dwarf2read.c (parse_macro_definition): Use std::string.
15657 (parse_macro_definition): Likewise.
15658
15659 2020-01-08 Tom Tromey <tromey@adacore.com>
15660
15661 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15662 (ATTR_ALLOC_CHUNK): Remove.
15663
15664 2020-01-08 Tom Tromey <tromey@adacore.com>
15665
15666 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15667
15668 2020-01-08 Tom Tromey <tromey@adacore.com>
15669
15670 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15671 (dwarf2_compute_name, open_dwo_file): Likewise.
15672 (process_enumeration_scope): Use std::vector.
15673 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15674 (partial_die_info::fixup, dwarf2_start_subfile)
15675 (guess_full_die_structure_name, dwarf2_name): Likewise.
15676 (determine_prefix): Update.
15677 (guess_full_die_structure_name): Make return type const.
15678 (partial_die_full_name): Return unique_xmalloc_ptr.
15679 (DW_FIELD_ALLOC_CHUNK): Remove.
15680
15681 2020-01-07 Tom Tromey <tromey@adacore.com>
15682
15683 PR build/24937:
15684 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15685
15686 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15687
15688 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15689
15690 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15691
15692 * stack.c (print_frame_info): Move disassemble_next_line code
15693 inside source_print block.
15694
15695 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15696
15697 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15698 gdb/signals.h, as we are now using native signal symbols.
15699
15700 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15701
15702 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15703 overflow by an early check of content vs threshold.
15704 * tui/tui-source.c (tui_source_window::line_is_displayed):
15705 Likewise.
15706
15707 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15708
15709 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15710
15711 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15712
15713 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15714 export table if no section contains it's RVA.
15715
15716 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15717
15718 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15719
15720 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15721
15722 * source.c (print_source_lines_base): Set last_line_listed.
15723
15724 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15725
15726 * tui/tui-disasm.c: Remove trailing spaces.
15727
15728 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15729 Pedro Alves <palves@redhat.com>
15730
15731 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15732 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15733 (windows_gdb_signal_to_target): New function, uses the above
15734 enumeration to convert GDB internal signal codes to equivalent
15735 Windows codes.
15736 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15737 * windows-nat.c: Include "gdb_wait.h".
15738 (get_windows_debug_event): Extract the fatal exception from the
15739 exit status and convert to the equivalent Posix signal number.
15740 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15741 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15742 * gdbsupport/gdb_wait.c: New file, implements
15743 windows_status_to_termsig.
15744 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15745 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15746
15747 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15748
15749 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15750 show_layout.
15751
15752 2020-01-05 Luis Machado <luis.machado@linaro.org>
15753
15754 * aarch64-linux-nat.c
15755 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15756 and bfd_mach_aarch64.
15757
15758 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15759
15760 * ui-file.c (stdio_file::can_emit_style_escape)
15761 (tee_file::can_emit_style_escape): Ensure style is used also on
15762 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15763 to gdb_stdout.
15764 * main.c (set_gdb_data_directory): Use file style to output the
15765 warning that the given pathname is not a directory.
15766 * top.c (show_history_filename, gdb_safe_append_history)
15767 (show_gdb_datadir): Use file style.
15768
15769 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15770
15771 * solib-target.c (struct lm_info_target):
15772 Change offsets to be a unique_xmalloc_ptr.
15773 (solib_target_relocate_section_addresses): Update.
15774
15775 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15776
15777 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15778
15779 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15780
15781 * MAINTAINERS (Write After Approval): Add myself.
15782
15783 2020-01-02 Luis Machado <luis.machado@linaro.org>
15784
15785 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15786 Cell BE architecture.
15787 * target.h (struct target_ops) <thread_architecture>: Likewise.
15788
15789 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15790
15791 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15792
15793 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15794
15795 * MAINTAINERS (Write After Approval): Add myself.
15796
15797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15798
15799 * gdbarch.sh: Update copyright year range of generated files.
15800
15801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15802
15803 Update copyright year range in all GDB files.
15804
15805 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15806
15807 * copyright.py: Convert to Python 3.
15808
15809 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15810
15811 * copyright.py: Adapt after move of gnulib directory from gdb
15812 directory to toplevel directory.
15813
15814 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15815
15816 * copyright.py (main): Exit if run from the wrong directory.
15817
15818 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15819
15820 * top.c (print_gdb_version): Change copyright year to 2020.
15821
15822 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15823
15824 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15825
15826 For older changes see ChangeLog-2019.
15827 \f
15828 Local Variables:
15829 mode: change-log
15830 left-margin: 8
15831 fill-column: 74
15832 version-control: never
15833 coding: utf-8
15834 End: