Micro-optimize partial_die_info::read
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-04-02 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (partial_die_info::read): Do not create a vector
4 of attributes.
5
6 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7 Bernd Edlinger <bernd.edlinger@hotmail.de>
8 Tom Tromey <tromey@adacore.com>
9
10 * buildsym.c (buildsym_compunit::record_line): Remove
11 deduplication code.
12
13 2020-04-02 Tom de Vries <tdevries@suse.de>
14
15 PR ada/24671
16 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
17
18 2020-04-02 Tom de Vries <tdevries@suse.de>
19
20 * dwarf2/read.c (dwarf2_gdb_index_functions,
21 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
22 NULL.
23 * psymtab.c (psym_lookup_global_symbol_language): New function.
24 (psym_functions): Init psym_lookup_global_symbol_language with
25 psym_lookup_global_symbol_language.
26 * symfile-debug.c (debug_sym_quick_functions): Init
27 lookup_global_symbol_language with NULL.
28 * symfile.c (set_initial_language): Remove fixme comment.
29 * symfile.h (struct quick_symbol_functions): Add
30 lookup_global_symbol_language.
31 * symtab.c (find_quick_global_symbol_language): New function.
32 (find_main_name): Use find_quick_global_symbol_language.
33
34 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
37
38 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
39
40 * buildsym.c (record_line): Fix undefined behavior and preserve
41 lines at eof.
42
43 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
44
45 * buildsym.c (record_line): Fix the resizing condition.
46
47 2020-04-01 Tom Tromey <tom@tromey.com>
48
49 * value.h (value_literal_complex): Add comment.
50 * valops.c (value_literal_complex): Refer to value.h.
51
52 2020-04-01 Tom Tromey <tom@tromey.com>
53
54 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
55 (scalar_type): New rule, from typebase.
56 (typebase): Use scalar_type. Recognize complex types.
57 (field_name): Handle FLOAT_KEYWORD.
58 (ident_tokens): Add _Complex and __complex__.
59
60 2020-04-01 Tom Tromey <tom@tromey.com>
61
62 PR exp/25299:
63 * valarith.c (promotion_type, complex_binop): New functions.
64 (scalar_binop): Handle complex numbers. Use promotion_type.
65 (value_pos, value_neg, value_complement): Handle complex numbers.
66
67 2020-04-01 Tom Tromey <tom@tromey.com>
68
69 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
70 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
71 (parse_number): Handle complex numbers.
72
73 2020-04-01 Tom Tromey <tom@tromey.com>
74
75 * c-valprint.c (c_decorations): Change complex suffix to "i".
76
77 2020-04-01 Tom Tromey <tom@tromey.com>
78
79 * valprint.c (generic_value_print_complex): Use accessors.
80 * value.h (value_real_part, value_imaginary_part): Declare.
81 * valops.c (value_real_part, value_imaginary_part): New
82 functions.
83 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
84
85 2020-04-01 Tom Tromey <tom@tromey.com>
86
87 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
88 (read_range_type): Update.
89 * mdebugread.c (basic_type): Update.
90 * go-lang.c (build_go_types): Use init_complex_type.
91 * gdbtypes.h (struct main_type) <complex_type>: New member.
92 (init_complex_type): Update.
93 (arch_complex_type): Don't declare.
94 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
95 Make name if none given. Use alloc_type_copy. Look for cached
96 complex type.
97 (arch_complex_type): Remove.
98 (gdbtypes_post_init): Use init_complex_type.
99 * f-lang.c (build_fortran_types): Use init_complex_type.
100 * dwarf2/read.c (read_base_type): Update.
101 * d-lang.c (build_d_types): Use init_complex_type.
102 * ctfread.c (read_base_type): Update.
103
104 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
105
106 * infrun.c (stop_all_threads): Update assertion, plus when
107 stopping threads, take into account that we might be trying
108 to stop an all-stop target.
109 (stop_waiting): Call 'stop_all_threads' if there exists a
110 non-stop target.
111
112 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113
114 * target.h (exists_non_stop_target): New function declaration.
115 * target.c (exists_non_stop_target): New function.
116
117 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
118
119 PR gdb/24789
120 * eval.c (is_integral_or_integral_reference): New function.
121 (evaluate_subexp_standard): Allow integer references in
122 pointer arithmetic.
123
124 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125
126 * remote.c (remote_target::remote_parse_stop_reply): Remove the
127 check for no ptid in the stop reply when the target is non-stop.
128
129 2020-04-01 Tom Tromey <tromey@adacore.com>
130
131 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
132 "name" parameter to rvalue reference. Initialize m_name_holder.
133 <lookup_name_info>: New overloads.
134 <name>: Return gdb::string_view.
135 <c_str>: New method.
136 <make_ignore_params>: Update.
137 <search_name_hash>: Update.
138 <language_lookup_name>: Return const char *.
139 <m_name>: Change type.
140 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
141 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
142 (lookup_name_info::match_any): Update.
143 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
144 Update.
145 * minsyms.c (linkage_name_str): Update.
146 * language.c (default_symbol_name_matcher): Update.
147 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
148 Update.
149 * ada-lang.c (ada_fold_name): Change parameter to string_view.
150 (ada_lookup_name_info::ada_lookup_name_info): Update.
151 (literal_symbol_name_matcher): Update.
152
153 2020-04-01 Tom Tromey <tromey@adacore.com>
154
155 * psymtab.c (psymtab_search_name): Remove function.
156 (psym_lookup_symbol): Create search name and lookup name here.
157 (lookup_partial_symbol): Remove "name" parameter; add
158 lookup_name.
159 (psym_expand_symtabs_for_function): Update.
160
161 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
162
163 PR tui/25597:
164 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
165
166 2020-03-31 Tom Tromey <tromey@adacore.com>
167
168 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
169 memcpy.
170
171 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
172
173 * features/riscv/32bit-csr.xml: Regenerated.
174 * features/riscv/64bit-csr.xml: Regenerated.
175
176 2020-03-30 Tom Tromey <tromey@adacore.com>
177
178 * ada-valprint.c (print_variant_part): Update.
179 * ada-lang.h (ada_which_variant_applies): Update.
180 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
181 outer_valaddr parameters; replace with "outer" value parameter.
182 (to_fixed_variant_branch_type): Update.
183
184 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
185
186 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
187 <list>. Remove inclusion of observable.h.
188 (PPC_DEBUG_CURRENT_VERSION): Move up define.
189 (struct arch_lwp_info): New struct.
190 (class ppc_linux_dreg_interface): New class.
191 (struct ppc_linux_process_info): New struct.
192 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
193 <low_new_clone, low_forget_process, low_prepare_to_resume>
194 <copy_thread_dreg_state, mark_thread_stale>
195 <mark_debug_registers_changed, register_hw_breakpoint>
196 <clear_hw_breakpoint, register_wp, clear_wp>
197 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
198 <num_memory_accesses, get_trigger_type>
199 <create_watchpoint_request, hwdebug_point_cmp>
200 <init_arch_lwp_info, get_arch_lwp_info>
201 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
202 methods.
203 <struct ptid_hash>: New inner struct.
204 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
205 members.
206 (saved_dabr_value, hwdebug_info, max_slots_number)
207 (struct hw_break_tuple, struct thread_points, ppc_threads)
208 (have_ptrace_hwdebug_interface)
209 (hwdebug_find_thread_points_by_tid)
210 (hwdebug_insert_point, hwdebug_remove_point): Remove.
211 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
212 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
213 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
214 use m_dreg_interface.
215 (hwdebug_point_cmp): Change to...
216 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
217 reference arguments instead of pointers.
218 (ppc_linux_nat_target::ranged_break_num_registers): Use
219 m_dreg_interface.
220 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
221 m_dreg_interface. Call register_hw_breakpoint.
222 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
223 m_dreg_interface. Call clear_hw_breakpoint.
224 (get_trigger_type): Change to...
225 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
226 comment.
227 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
228 use m_dreg_interface. Call register_hw_breakpoint.
229 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
230 use m_dreg_interface. Call clear_hw_breakpoint.
231 (can_use_watchpoint_cond_accel): Change to...
232 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
233 method. Update comment, use m_dreg_interface and
234 m_process_info.
235 (calculate_dvc): Change to...
236 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
237 m_dreg_interface.
238 (num_memory_accesses): Change to...
239 (ppc_linux_nat_target::num_memory_accesses): ...this method.
240 (check_condition): Change to...
241 (ppc_linux_nat_target::check_condition): ...this method.
242 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
243 comment, use m_dreg_interface.
244 (create_watchpoint_request): Change to...
245 (ppc_linux_nat_target::create_watchpoint_request): ...this
246 method. Use m_dreg_interface.
247 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
248 m_dreg_interface. Call register_hw_breakpoint or register_wp.
249 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
250 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
251 (ppc_linux_nat_target::low_forget_process)
252 (ppc_linux_nat_target::low_new_fork)
253 (ppc_linux_nat_target::low_new_clone)
254 (ppc_linux_nat_target::low_delete_thread)
255 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
256 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
257 only call mark_thread_stale.
258 (ppc_linux_thread_exit): Remove.
259 (ppc_linux_nat_target::stopped_data_address): Change to...
260 (ppc_linux_nat_target::low_stopped_data_address): This. Add
261 comment, use m_dreg_interface and m_thread_hw_breakpoints.
262 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
263 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
264 comment. Call low_stopped_data_address.
265 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
266 m_dreg_interface.
267 (ppc_linux_nat_target::masked_watch_num_registers): Use
268 m_dreg_interface.
269 (ppc_linux_nat_target::copy_thread_dreg_state)
270 (ppc_linux_nat_target::mark_thread_stale)
271 (ppc_linux_nat_target::mark_debug_registers_changed)
272 (ppc_linux_nat_target::register_hw_breakpoint)
273 (ppc_linux_nat_target::clear_hw_breakpoint)
274 (ppc_linux_nat_target::register_wp)
275 (ppc_linux_nat_target::clear_wp)
276 (ppc_linux_nat_target::init_arch_lwp_info)
277 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
278 (_initialize_ppc_linux_nat): Remove observer callback.
279
280 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
281
282 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
283 (ppc_linux_nat_target::auxv_parse)
284 (ppc_linux_nat_target::read_description)
285 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
286 Move up.
287
288 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
289
290 * linux-nat.h (low_new_clone): New method.
291 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
292
293 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
294
295 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
296 (dbx_expand_psymtab): ... this.
297 (start_psymtab): Update.
298 * mdebugread.c (psymtab_to_symtab_1): Rename to...
299 (mdebug_expand_psymtab): ... this.
300 (parse_partial_symbols): Update.
301 (new_psymtab): Update.
302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
303 (xcoff_expand_psymtab): ... this.
304 (xcoff_start_psymtab): Update.
305
306 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
307
308 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
309 <expand_dependencies>: ... this.
310 * psymtab.c (partial_symtab::read_dependencies): Rename to...
311 (partial_symtab::expand_dependencies): ... this.
312 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
313 Update.
314 (dwarf2_psymtab::expand_psymtab): Update.
315 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
316 * mdebugread.c (psymtab_to_symtab_1): Update.
317 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
318
319 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
320
321 * psympriv.h (discard_psymtab): Remove.
322 * dbxread.c (dbx_end_psymtab): Update.
323 * xcoffread.c (xcoff_end_psymtab): Update.
324
325 2020-03-28 Tom Tromey <tom@tromey.com>
326
327 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
328 comment.
329
330 2020-03-28 Tom Tromey <tom@tromey.com>
331
332 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
333
334 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
335
336 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
337
338 2020-03-26 John Baldwin <jhb@FreeBSD.org>
339
340 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
341
342 2020-03-26 Tom Tromey <tom@tromey.com>
343
344 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
345 (mark_common_block_symbol_computed, read_tag_string_type)
346 (attr_to_dynamic_prop, read_subrange_type): Update.
347 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
348 to be methods on struct attribute.
349 (skip_one_die, process_imported_unit_die, read_namespace_alias)
350 (read_call_site_scope, partial_die_info::read)
351 (partial_die_info::read, lookup_die_type, follow_die_ref):
352 Update.
353 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
354 from dwarf2_get_ref_die_offset.
355 (attribute::constant_value): New method, from
356 dwarf2_get_attr_constant_value.
357 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
358 Declare method.
359 <constant_value>: New method.
360
361 2020-03-26 Tom Tromey <tom@tromey.com>
362
363 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
364 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
365 (dwarf_type_encoding_name): Move to stringify.c.
366 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
367 * dwarf2/stringify.c: New file.
368 * dwarf2/stringify.h: New file.
369
370 2020-03-26 Tom Tromey <tom@tromey.com>
371
372 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
373 Rewrite.
374
375 2020-03-26 Tom Tromey <tom@tromey.com>
376
377 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
378 methods.
379 * dwarf2/read.c (lookup_addr_base): Move to die.h.
380 (lookup_ranges_base): Likewise.
381 (read_cutu_die_from_dwo, read_full_die_1): Update.
382
383 2020-03-26 Tom Tromey <tom@tromey.com>
384
385 * dwarf2/read.c (read_import_statement, read_file_scope)
386 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
387 (read_lexical_block_scope, read_call_site_scope)
388 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
389 (handle_struct_member_die, process_structure_scope)
390 (update_enumeration_type_from_children)
391 (process_enumeration_scope, read_array_type, read_common_block)
392 (read_namespace, read_module, read_subroutine_type): Update.
393 (sibling_die): Remove.
394
395 2020-03-26 Tom Tromey <tom@tromey.com>
396
397 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
398 (build_type_psymtabs_reader, read_structure_type)
399 (read_enumeration_type, read_full_die_1): Update.
400 (dwarf2_attr_no_follow): Move to die.h.
401 * dwarf2/die.h (struct die_info) <attr>: New method.
402
403 2020-03-26 Tom Tromey <tom@tromey.com>
404
405 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
406 <base_address>: Now an optional.
407 (dwarf2_find_base_address, dwarf2_rnglists_process)
408 (dwarf2_ranges_process, fill_in_loclist_baton)
409 (dwarf2_symbol_mark_computed): Update.
410
411 2020-03-26 Tom Tromey <tom@tromey.com>
412
413 * dwarf2/read.c (struct die_info): Move to die.h.
414 * dwarf2/die.h: New file.
415
416 2020-03-26 Tom Tromey <tom@tromey.com>
417
418 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
419 * dwarf2/read.c
420 (dwarf2_statement_list_fits_in_line_number_section_complaint):
421 Move to line-header.c.
422 (read_checked_initial_length_and_offset, read_formatted_entries):
423 Likewise.
424 (dwarf_decode_line_header): Split into two.
425 * dwarf2/line-header.c
426 (dwarf2_statement_list_fits_in_line_number_section_complaint):
427 Move from read.c.
428 (read_checked_initial_length_and_offset, read_formatted_entries):
429 Likewise.
430 (dwarf_decode_line_header): New function, split from read.c.
431
432 2020-03-26 Tom Tromey <tom@tromey.com>
433
434 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
435 Declare method.
436 * dwarf2/read.c (read_attribute_value): Update.
437 (dwarf2_per_objfile::read_line_string): Rename from
438 read_indirect_line_string.
439 (read_formatted_entries): Update.
440
441 2020-03-26 Tom Tromey <tom@tromey.com>
442
443 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
444 variable.
445
446 2020-03-26 Tom Tromey <tom@tromey.com>
447
448 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
449 const.
450 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
451 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
452 parameter const.
453
454 2020-03-26 Tom Tromey <tom@tromey.com>
455
456 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
457 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
458 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
459 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
460
461 2020-03-26 Tom Tromey <tom@tromey.com>
462
463 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
464 file_names_size, file_full_name, file_file_name>: Use const.
465 <file_name_at, file_names>: Add const overload.
466 * dwarf2/line-header.c (line_header::file_file_name)
467 (line_header::file_full_name): Update.
468
469 2020-03-26 Tom Tromey <tom@tromey.com>
470
471 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
472 (macro_start_file, consume_improper_spaces)
473 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
474 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
475 (dwarf_decode_macros): Move to macro.c.
476 * dwarf2/macro.c: New file.
477 * dwarf2/macro.h: New file.
478 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
479
480 2020-03-26 Tom Tromey <tom@tromey.com>
481
482 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
483 method.
484 * dwarf2/section.c: New method. From
485 read_indirect_string_at_offset_from.
486 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
487 (read_indirect_string_at_offset_from): Move to section.c.
488 (read_indirect_string_at_offset): Rewrite.
489 (read_indirect_line_string_at_offset): Remove.
490 (read_indirect_string, read_indirect_line_string)
491 (dwarf_decode_macro_bytes): Update.
492
493 2020-03-26 Tom Tromey <tom@tromey.com>
494
495 * dwarf2/section.h (struct dwarf2_section_info)
496 <overload_complaint>: Declare.
497 (dwarf2_section_buffer_overflow_complaint): Don't declare.
498 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
499 Rename from dwarf2_section_buffer_overflow_complaint.
500 * dwarf2/read.c (skip_one_die, partial_die_info::read)
501 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
502
503 2020-03-26 Tom Tromey <tom@tromey.com>
504
505 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
506 Declare.
507 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
508 Move from read.c.
509 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
510 to section.c.
511
512 2020-03-26 Tom Tromey <tom@tromey.com>
513
514 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
515
516 2020-03-26 Tom Tromey <tom@tromey.com>
517
518 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
519 "builder".
520 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
521 parameter.
522 (dwarf_decode_macros): Update.
523
524 2020-03-26 Tom Tromey <tom@tromey.com>
525
526 * dwarf2/read.c (read_attribute_value): Update.
527 (read_indirect_string_from_dwz): Move to dwz.c; change into
528 method.
529 (dwarf_decode_macro_bytes): Update.
530 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
531 * dwarf2/dwz.c: New file.
532 * Makefile.in (COMMON_SFILES): Add dwz.c.
533
534 2020-03-26 Tom Tromey <tom@tromey.com>
535
536 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
537 * dwarf2/read.c: Add include.
538 * dwarf2/index-write.c: Add include.
539 * dwarf2/index-cache.c: Add include.
540 * dwarf2/dwz.h: New file.
541
542 2020-03-25 Tom Tromey <tom@tromey.com>
543
544 * compile/compile-object-load.c (get_out_value_type): Mention
545 correct symbol name in error message.
546
547 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
548
549 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
550
551 2020-03-25 Tom de Vries <tdevries@suse.de>
552
553 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
554 * symmisc.c (dump_symtab_1): Print user and includes fields.
555 (maintenance_info_symtabs): Same.
556
557 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 PR gdb/25534
560 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
561 (riscv_regcache_cooked_write): New function.
562 (riscv_push_dummy_call): Use new function.
563 (riscv_return_value): Likewise.
564
565 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
568 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
569 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
570 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
571 * infrun.c (follow_fork): Likewise.
572 (follow_fork_inferior): Likewise.
573 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
574 * linux-nat.h (class linux_nat_target): Likewise.
575 * remote.c (class remote_target) <follow_fork>: Likewise.
576 (remote_target::follow_fork): Likewise.
577 * target-delegates.c: Re-generate.
578 * target.c (default_follow_fork): Likewise.
579 (target_follow_fork): Likewise.
580 * target.h (struct target_ops) <follow_fork>: Likewise.
581 (target_follow_fork): Likewise.
582
583 2020-03-24 Tom de Vries <tdevries@suse.de>
584
585 * psymtab.c (maintenance_info_psymtabs): Print user field.
586
587 2020-03-20 Tom Tromey <tromey@adacore.com>
588
589 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
590 const.
591 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
592 const.
593
594 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
595
596 * ptrace.m4: Don't check for ptrace declaration.
597 * config.in: Re-generate.
598 * configure: Re-generate.
599 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
600 not defined.
601
602 2020-03-20 Kamil Rytarowski <n54@gmx.com>
603
604 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
605 `PTRACE_TYPE_RET'.
606 * i386-bsd-nat.c (gdb_ptrace): Likewise.
607 * sparc-nat.c (gdb_ptrace): Likewise.
608 * x86-bsd-nat.c (gdb_ptrace): Likewise.
609
610 2020-03-20 Tom Tromey <tromey@adacore.com>
611
612 * c-exp.y (lex_one_token): Fix assert.
613
614 2020-03-20 Tom Tromey <tromey@adacore.com>
615
616 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
617 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
618 strncpy call.
619
620 2020-03-20 Tom Tromey <tromey@adacore.com>
621
622 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
623
624 2020-03-20 Tom Tromey <tromey@adacore.com>
625
626 * ada-valprint.c (print_variant_part): Remove parameters; switch
627 to value-based API.
628 (print_field_values): Likewise.
629 (ada_val_print_struct_union): Likewise.
630 (ada_value_print_1): Update.
631
632 2020-03-20 Kamil Rytarowski <n54@gmx.com>
633
634 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
635 nbsd_nat_target instead of inf_ptrace_target.
636 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
637 nbsd_nat_target.
638
639 2020-03-20 Kamil Rytarowski <n54@gmx.com>
640
641 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
642 it to the ptrace call.
643 * (store_registers): Likewise.
644
645 2020-03-20 Kamil Rytarowski <n54@gmx.com>
646
647 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
648 it to the ptrace call.
649 * (store_registers): Likewise.
650
651 2020-03-19 Luis Machado <luis.machado@linaro.org>
652
653 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
654 valid, fetch vg value from ptrace.
655
656 2020-03-19 Kamil Rytarowski <n54@gmx.com>
657 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
658 * inf-ptrace.c: Likewise.
659 * (gdb_ptrace): Add.
660 * (inf_ptrace_target::resume): Update.
661 * (inf_ptrace_target::xfer_partial): Likewise.
662 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
663 * (inf_ptrace_peek_poke): Update.
664
665 2020-03-19 Kamil Rytarowski <n54@gmx.com>
666
667 * x86-bsd-nat.c (gdb_ptrace): New.
668 * (x86bsd_dr_set): Add new argument `ptid'.
669 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
670 x86bsd_dr_set_addr): Update.
671
672 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
673
674 * remote.c (remote_target::process_stop_reply): Handle events for
675 all threads differently.
676
677 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * completer.c (completion_tracker::remove_completion): Define new
680 function.
681 * completer.h (completion_tracker::remove_completion): Declare new
682 function.
683 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
684 when adding a C++ function symbol.
685
686 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * completer.c (completion_tracker::completion_hash_entry): Define
689 new class.
690 (advance_to_filename_complete_word_point): Call
691 recompute_lowest_common_denominator.
692 (completion_tracker::completion_tracker): Call discard_completions
693 to setup the hash table.
694 (completion_tracker::discard_completions): Allow for being called
695 from the constructor, pass new equal function, and element deleter
696 when constructing the hash table. Initialise new class member
697 variables.
698 (completion_tracker::maybe_add_completion): Remove use of
699 m_entries_vec, and store more information into m_entries_hash.
700 (completion_tracker::recompute_lcd_visitor): New function, most
701 content taken from...
702 (completion_tracker::recompute_lowest_common_denominator):
703 ...here, this now just visits each item in the hash calling the
704 above visitor.
705 (completion_tracker::build_completion_result): Remove use of
706 m_entries_vec, call recompute_lowest_common_denominator.
707 * completer.h (completion_tracker::have_completions): Remove use
708 of m_entries_vec.
709 (completion_tracker::completion_hash_entry): Declare new class.
710 (completion_tracker::recompute_lowest_common_denominator): Change
711 function signature.
712 (completion_tracker::recompute_lcd_visitor): Declare new function.
713 (completion_tracker::m_entries_vec): Delete.
714 (completion_tracker::m_entries_hash): Initialize to NULL.
715 (completion_tracker::m_lowest_common_denominator_valid): New
716 member variable.
717 (completion_tracker::m_lowest_common_denominator_max_length): New
718 member variable.
719
720 2020-03-17 Kamil Rytarowski <n54@gmx.com>
721
722 * regformats/regdef.h: Put reg in gdb namespace.
723
724 2020-03-17 Kamil Rytarowski <n54@gmx.com>
725
726 * i386-bsd-nat.c (gdb_ptrace): New.
727 * (i386bsd_fetch_inferior_registers,
728 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
729 * (i386bsd_fetch_inferior_registers,
730 i386bsd_store_inferior_registers) Use gdb_ptrace.
731
732 2020-03-17 Kamil Rytarowski <n54@gmx.com>
733
734 * amd64-bsd-nat.c (gdb_ptrace): New.
735 * (amd64bsd_fetch_inferior_registers,
736 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
737 * (amd64bsd_fetch_inferior_registers,
738 amd64bsd_store_inferior_registers) Use gdb_ptrace.
739
740 2020-03-17 Kamil Rytarowski <n54@gmx.com>
741
742 * user-regs.c (user_reg::read): Rename to...
743 (user_reg::xread): ...this.
744 * (append_user_reg): Rename argument `read' to `xread'.
745 * (user_reg_add_builtin): Likewise.
746 * (user_reg_add): Likewise.
747 * (value_of_user_reg): Likewise.
748
749 2020-03-17 Kamil Rytarowski <n54@gmx.com>
750
751 * sparc-nat.c (gdb_ptrace): New.
752 * sparc-nat.c (sparc_fetch_inferior_registers)
753 (sparc_store_inferior_registers) Remove obsolete comment.
754 * sparc-nat.c (sparc_fetch_inferior_registers)
755 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
756 * sparc-nat.c (sparc_fetch_inferior_registers)
757 (sparc_store_inferior_registers) Use gdb_ptrace.
758
759 2020-03-17 Kamil Rytarowski <n54@gmx.com>
760
761 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
762 it to the ptrace call.
763 * sh-nbsd-nat.c (store_registers): Likewise.
764
765 2020-03-17 Kamil Rytarowski <n54@gmx.com>
766
767 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
768 nbsd_nat_target instead of inf_ptrace_target.
769 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
770 nbsd_nat_target.
771
772 2020-03-17 Kamil Rytarowski <n54@gmx.com>
773
774 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
775
776 2020-03-17 Kamil Rytarowski <n54@gmx.com>
777
778 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
779 <sys/sysctl.h>.
780 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
781
782 2020-03-17 Tom de Vries <tdevries@suse.de>
783
784 PR gdb/23710
785 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
786 fields.
787 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
788 fields.
789 (process_imported_unit_die): Skip import of c++ CUs.
790
791 2020-03-16 Tom Tromey <tom@tromey.com>
792
793 * p-valprint.c (pascal_object_print_value): Initialize
794 base_value.
795
796 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
797 Shahab Vahedi <shahab@synopsys.com>
798
799 * Makefile.in: Add arch/arc.o
800 * configure.tgt: Likewise.
801 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
802 (_initialize_arc_tdep): Don't initialize old target descriptions.
803 (arc_read_description): New function to cache target descriptions.
804 * arc-tdep.h (arc_read_description): Add proto type.
805 * arch/arc.c: New file.
806 * arch/arc.h: Likewise.
807 * features/Makefile: Replace old target descriptions with new.
808 * features/arc-arcompact.c: Remove.
809 * features/arc-arcompact.xml: Likewise.
810 * features/arc-v2.c: Likewise
811 * features/arc-v2.xml: Likewise
812 * features/arc/aux-arcompact.xml: New file.
813 * features/arc/aux-v2.xml: Likewise.
814 * features/arc/core-arcompact.xml: Likewise.
815 * features/arc/core-v2.xml: Likewise.
816 * features/arc/aux-arcompact.c: Generate.
817 * features/arc/aux-v2.c: Likewise.
818 * features/arc/core-arcompact.c: Likewise.
819 * features/arc/core-v2.c: Likewise.
820 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
821
822 2020-03-16 Tom Tromey <tromey@adacore.com>
823
824 PR gdb/25663:
825 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
826 putting value into bcache.
827
828 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
829
830 PR gdb/21500
831 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
832 to...
833 (amd64_windows_init_abi_common): ... this. Don't set size of
834 long type.
835 (amd64_windows_init_abi): New function.
836 (amd64_cygwin_init_abi): New function.
837 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
838 the Cygwin OS ABI.
839 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
840 comment.
841
842 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
843
844 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
845 * windows-tdep.c (CYGWIN_DLL_NAME): New.
846 (pe_import_directory_entry): New struct type.
847 (is_linked_with_cygwin_dll): New function.
848 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
849 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
850 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
851
852 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
853
854 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
855 i386_cygwin_core_osabi_sniffer.
856
857 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
858
859 * i386-cygwin-tdep.c: Rename to...
860 * i386-windows-tdep.c: ... this.
861 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
862 i386-windows-tdep.c.
863 * configure.tgt: Likewise.
864
865 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
866
867 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
868 * osabi.c (gdb_osabi_names): Add "Windows".
869 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
870 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
871 (i386_cygwin_core_osabi_sniffer): New function, extracted from
872 i386_cygwin_osabi_sniffer.
873 (_initialize_i386_cygwin_tdep): Register OS ABI
874 GDB_OSABI_WINDOWS for i386.
875 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
876 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
877 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
878 for x86-64.
879 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
880 when the target matches '*-*-mingw*'.
881
882 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
883
884 * defs.h (enum gdb_osabi): Move to...
885 * osabi.h (enum gdb_osabi): ... here.
886 * gdbarch.sh: Include osabi.h in gdbarch.h.
887 * gdbarch.h: Re-generate.
888
889 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
890
891 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
892 function.
893 (_initialize_amd64_windows_tdep): Register osabi sniffer.
894
895 2020-03-14 Tom Tromey <tom@tromey.com>
896
897 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
898 for C++.
899 (c_type_print_modifier): Likewise. Add "language" parameter.
900 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
901 (c_type_print_base_1): Update.
902 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
903 constants.
904 * type-stack.c (type_stack::insert): Handle tp_atomic and
905 tp_restrict.
906 (type_stack::follow_type_instance_flags): Likewise.
907 (type_stack::follow_types): Likewise. Merge type-following code.
908 * c-exp.y (RESTRICT, ATOMIC): New tokens.
909 (space_identifier, cv_with_space_id)
910 (const_or_volatile_or_space_identifier_noopt)
911 (const_or_volatile_or_space_identifier): Remove.
912 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
913 rules.
914 (ptr_operator, typebase): Update.
915 (enum token_flag) <FLAG_C>: New constant.
916 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
917 "_Atomic".
918 (lex_one_token): Handle FLAG_C.
919
920 2020-03-14 Kamil Rytarowski <n54@gmx.com>
921
922 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
923 it to the ptrace call.
924 * m68k-bsd-nat.c (store_registers): Likewise.
925
926 2020-03-14 Kamil Rytarowski <n54@gmx.com>
927
928 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
929 gdb_byte *.
930 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
931 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
932 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
933
934 2020-03-14 Kamil Rytarowski <n54@gmx.com>
935
936 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
937 nbsd_nat_target instead of inf_ptrace_target.
938 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
939 nbsd_nat_target.
940
941 2020-03-14 Kamil Rytarowski <n54@gmx.com>
942
943 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
944 register_t.
945
946 2020-03-14 Kamil Rytarowski <n54@gmx.com>
947
948 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
949 it to the ptrace call.
950 * alpha-bsd-nat.c (store_registers): Likewise.
951
952 2020-03-14 Kamil Rytarowski <n54@gmx.com>
953
954 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
955 includes.
956 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
957 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
958 fill_fpregset): Likewise.
959
960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
961
962 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
963 nbsd_nat_target instead of inf_ptrace_target.
964 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
965 nbsd_nat_target.
966
967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
968
969 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
970 register_t.
971
972 2020-03-14 Kamil Rytarowski <n54@gmx.com>
973
974 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
975 it to the ptrace call.
976 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
977 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
978 * arm-nbsd-nat.c (store_register): Likewise.
979 * arm-nbsd-nat.c (store_regs): Likewise.
980 * arm-nbsd-nat.c (store_fp_register): Likewise.
981 * arm-nbsd-nat.c (store_fp_regs): Likewise.
982
983 2020-03-14 Kamil Rytarowski <n54@gmx.com>
984
985 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
986 nbsd_nat_target instead of inf_ptrace_target.
987 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
988 nbsd_nat_target.
989
990 2020-03-14 Kamil Rytarowski <n54@gmx.com>
991
992 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
993 it to the ptrace call.
994 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
995
996 2020-03-14 Kamil Rytarowski <n54@gmx.com>
997
998 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
999 it to the ptrace call.
1000 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
1001
1002 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1003
1004 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
1005 gdb_byte *.
1006 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
1007
1008 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1009
1010 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
1011 instead of inf_ptrace_target.
1012 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
1013 nbsd_nat_target.
1014
1015 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1016
1017 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1018 register_t.
1019
1020 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1021
1022 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1023 register_t.
1024
1025 2020-03-14 Kamil Rytarowski <n54@gmx.com>
1026
1027 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
1028 register_t.
1029
1030 2020-03-13 Tom Tromey <tom@tromey.com>
1031
1032 * value.h (val_print): Don't declare.
1033 * valprint.h (val_print_array_elements)
1034 (val_print_scalar_formatted, generic_val_print): Don't declare.
1035 * valprint.c (generic_val_print_array): Take a struct value.
1036 (generic_val_print_ptr, generic_val_print_memberptr)
1037 (generic_val_print_bool, generic_val_print_int)
1038 (generic_val_print_char, generic_val_print_complex)
1039 (generic_val_print): Remove.
1040 (generic_value_print): Update.
1041 (do_val_print): Remove unused parameters. Don't call
1042 la_val_print.
1043 (val_print): Remove.
1044 (common_val_print): Update. Don't call value_check_printable.
1045 (val_print_scalar_formatted, val_print_array_elements): Remove.
1046 * rust-lang.c (rust_val_print): Remove.
1047 (rust_language_defn): Update.
1048 * p-valprint.c (pascal_val_print): Remove.
1049 (pascal_value_print_inner): Update.
1050 (pascal_object_print_val_fields, pascal_object_print_val):
1051 Remove.
1052 (pascal_object_print_static_field): Update.
1053 * p-lang.h (pascal_val_print): Don't declare.
1054 * p-lang.c (pascal_language_defn): Update.
1055 * opencl-lang.c (opencl_language_defn): Update.
1056 * objc-lang.c (objc_language_defn): Update.
1057 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
1058 * m2-lang.h (m2_val_print): Don't declare.
1059 * m2-lang.c (m2_language_defn): Update.
1060 * language.h (struct language_defn) <la_val_print>: Remove.
1061 * language.c (unk_lang_value_print_inner): Rename. Change
1062 argument types.
1063 (unknown_language_defn, auto_language_defn): Update.
1064 * go-valprint.c (go_val_print): Remove.
1065 * go-lang.h (go_val_print): Don't declare.
1066 * go-lang.c (go_language_defn): Update.
1067 * f-valprint.c (f_val_print): Remove.
1068 * f-lang.h (f_value_print): Don't declare.
1069 * f-lang.c (f_language_defn): Update.
1070 * d-valprint.c (d_val_print): Remove.
1071 * d-lang.h (d_value_print): Don't declare.
1072 * d-lang.c (d_language_defn): Update.
1073 * cp-valprint.c (cp_print_value_fields)
1074 (cp_print_value_fields_rtti, cp_print_value): Remove.
1075 (cp_print_static_field): Update.
1076 * c-valprint.c (c_val_print_array, c_val_print_ptr)
1077 (c_val_print_struct, c_val_print_union, c_val_print_int)
1078 (c_val_print_memberptr, c_val_print): Remove.
1079 * c-lang.h (c_val_print_array, cp_print_value_fields)
1080 (cp_print_value_fields_rtti): Don't declare.
1081 * c-lang.c (c_language_defn, cplus_language_defn)
1082 (asm_language_defn, minimal_language_defn): Update.
1083 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
1084 (ada_val_print_enum): Take a struct value.
1085 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
1086 (ada_val_print): Remove.
1087 (ada_value_print_1): Update.
1088 (printable_val_type): Remove.
1089 * ada-lang.h (ada_val_print): Don't declare.
1090 * ada-lang.c (ada_language_defn): Update.
1091
1092 2020-03-13 Tom Tromey <tom@tromey.com>
1093
1094 * valprint.c (do_val_print): Update.
1095 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
1096 a struct value.
1097 (value_to_value_object_no_release): Declare.
1098 * python/py-value.c (value_to_value_object_no_release): New
1099 function.
1100 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
1101 struct value.
1102 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
1103 function.
1104 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
1105 a struct value.
1106 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
1107 Declare.
1108 (gdbscm_apply_val_pretty_printer): Take a struct value.
1109 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
1110 value.
1111 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
1112 value.
1113 * extension-priv.h (struct extension_language_ops)
1114 <apply_val_pretty_printer>: Take a struct value.
1115 * cp-valprint.c (cp_print_value): Create a struct value.
1116 (cp_print_value): Update.
1117
1118 2020-03-13 Tom Tromey <tom@tromey.com>
1119
1120 * ada-valprint.c (print_field_values): Call common_val_print.
1121
1122 2020-03-13 Tom Tromey <tom@tromey.com>
1123
1124 * ada-valprint.c (val_print_packed_array_elements): Remove
1125 bitoffset and val parameters. Call common_val_print.
1126 (ada_val_print_string): Remove offset, address, and original_value
1127 parameters.
1128 (ada_val_print_array): Update.
1129 (ada_value_print_array): New function.
1130 (ada_value_print_1): Call it.
1131
1132 2020-03-13 Tom Tromey <tom@tromey.com>
1133
1134 * ada-valprint.c (ada_value_print): Use common_val_print.
1135
1136 2020-03-13 Tom Tromey <tom@tromey.com>
1137
1138 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
1139
1140 2020-03-13 Tom Tromey <tom@tromey.com>
1141
1142 * ada-valprint.c (ada_value_print_num): New function.
1143 (ada_value_print_1): Use it.
1144
1145 2020-03-13 Tom Tromey <tom@tromey.com>
1146
1147 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
1148
1149 2020-03-13 Tom Tromey <tom@tromey.com>
1150
1151 * ada-valprint.c (ada_value_print_ptr): New function.
1152 (ada_value_print_1): Use it.
1153
1154 2020-03-13 Tom Tromey <tom@tromey.com>
1155
1156 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
1157 call common_val_print.
1158 (ada_val_print_1): Update.
1159 (ada_value_print_1): New function.
1160 (ada_value_print_inner): Rewrite.
1161
1162 2020-03-13 Tom Tromey <tom@tromey.com>
1163
1164 * cp-valprint.c (cp_print_value_fields): Update.
1165 (cp_print_value): New function.
1166
1167 2020-03-13 Tom Tromey <tom@tromey.com>
1168
1169 * m2-valprint.c (m2_value_print_inner): Use
1170 cp_print_value_fields.
1171 * cp-valprint.c (cp_print_value_fields): New function.
1172 * c-valprint.c (c_value_print_struct): New function.
1173 (c_value_print_inner): Use c_value_print_struct.
1174 * c-lang.h (cp_print_value_fields): Declare.
1175
1176 2020-03-13 Tom Tromey <tom@tromey.com>
1177
1178 * c-valprint.c (c_value_print_array): New function.
1179 (c_value_print_inner): Use it.
1180
1181 2020-03-13 Tom Tromey <tom@tromey.com>
1182
1183 * c-valprint.c (c_value_print_memberptr): New function.
1184 (c_value_print_inner): Use it.
1185
1186 2020-03-13 Tom Tromey <tom@tromey.com>
1187
1188 * c-valprint.c (c_value_print_int): New function.
1189 (c_value_print_inner): Use it.
1190
1191 2020-03-13 Tom Tromey <tom@tromey.com>
1192
1193 * c-valprint.c (c_value_print_ptr): New function.
1194 (c_value_print_inner): Use it.
1195
1196 2020-03-13 Tom Tromey <tom@tromey.com>
1197
1198 * c-valprint.c (c_value_print_inner): Rewrite.
1199
1200 2020-03-13 Tom Tromey <tom@tromey.com>
1201
1202 * valprint.c (generic_value_print_complex): New function.
1203 (generic_value_print): Use it.
1204
1205 2020-03-13 Tom Tromey <tom@tromey.com>
1206
1207 * valprint.c (generic_val_print_float): Don't call
1208 val_print_scalar_formatted.
1209 (generic_val_print, generic_value_print): Update.
1210
1211 2020-03-13 Tom Tromey <tom@tromey.com>
1212
1213 * valprint.c (generic_value_print_char): New function
1214 (generic_value_print): Use it.
1215
1216 2020-03-13 Tom Tromey <tom@tromey.com>
1217
1218 * valprint.c (generic_value_print_int): New function.
1219 (generic_value_print): Use it.
1220
1221 2020-03-13 Tom Tromey <tom@tromey.com>
1222
1223 * valprint.c (generic_value_print_bool): New function.
1224 (generic_value_print): Use it.
1225
1226 2020-03-13 Tom Tromey <tom@tromey.com>
1227
1228 * valprint.c (generic_val_print_func): Simplify.
1229 (generic_val_print, generic_value_print): Update.
1230
1231 2020-03-13 Tom Tromey <tom@tromey.com>
1232
1233 * valprint.c (generic_val_print_flags): Remove.
1234 (generic_val_print, generic_value_print): Update.
1235 (val_print_type_code_flags): Add original_value parameter.
1236
1237 2020-03-13 Tom Tromey <tom@tromey.com>
1238
1239 * valprint.c (generic_val_print): Update.
1240 (generic_value_print): Update.
1241 * valprint.c (generic_val_print_enum): Don't call
1242 val_print_scalar_formatted.
1243
1244 2020-03-13 Tom Tromey <tom@tromey.com>
1245
1246 * valprint.c (generic_value_print): Call generic_value_print_ptr.
1247 * valprint.c (generic_value_print_ptr): New function.
1248
1249 2020-03-13 Tom Tromey <tom@tromey.com>
1250
1251 * valprint.c (generic_value_print): Rewrite.
1252
1253 2020-03-13 Tom Tromey <tom@tromey.com>
1254
1255 * p-valprint.c (pascal_object_print_value_fields)
1256 (pascal_object_print_value): New functions.
1257
1258 2020-03-13 Tom Tromey <tom@tromey.com>
1259
1260 * p-valprint.c (pascal_value_print_inner): Rewrite.
1261
1262 2020-03-13 Tom Tromey <tom@tromey.com>
1263
1264 * f-valprint.c (f_value_print_innner): Rewrite.
1265
1266 2020-03-13 Tom Tromey <tom@tromey.com>
1267
1268 * m2-valprint.c (m2_print_unbounded_array): New overload.
1269 (m2_print_unbounded_array): Update.
1270 (m2_print_array_contents): Take a struct value.
1271 (m2_value_print_inner): Rewrite.
1272
1273 2020-03-13 Tom Tromey <tom@tromey.com>
1274
1275 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
1276 (d_value_print_inner): New function.
1277 * d-lang.h (d_value_print_inner): Declare.
1278 * d-lang.c (d_language_defn): Use d_value_print_inner.
1279
1280 2020-03-13 Tom Tromey <tom@tromey.com>
1281
1282 * go-valprint.c (go_value_print_inner): New function.
1283 * go-lang.h (go_value_print_inner): Declare.
1284 * go-lang.c (go_language_defn): Use go_value_print_inner.
1285
1286 2020-03-13 Tom Tromey <tom@tromey.com>
1287
1288 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
1289 API.
1290 (rust_val_print): Rewrite.
1291 (rust_value_print_inner): New function, from rust_val_print.
1292 (rust_language_defn): Use rust_value_print_inner.
1293
1294 2020-03-13 Tom Tromey <tom@tromey.com>
1295
1296 * ada-valprint.c (ada_value_print_inner): New function.
1297 * ada-lang.h (ada_value_print_inner): Declare.
1298 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
1299
1300 2020-03-13 Tom Tromey <tom@tromey.com>
1301
1302 * f-valprint.c (f_value_print_innner): New function.
1303 * f-lang.h (f_value_print_innner): Declare.
1304 * f-lang.c (f_language_defn): Use f_value_print_innner.
1305
1306 2020-03-13 Tom Tromey <tom@tromey.com>
1307
1308 * p-valprint.c (pascal_value_print_inner): New function.
1309 * p-lang.h (pascal_value_print_inner): Declare.
1310 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
1311
1312 2020-03-13 Tom Tromey <tom@tromey.com>
1313
1314 * m2-valprint.c (m2_value_print_inner): New function.
1315 * m2-lang.h (m2_value_print_inner): Declare.
1316 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
1317
1318 2020-03-13 Tom Tromey <tom@tromey.com>
1319
1320 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
1321 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
1322 * c-valprint.c (c_value_print_inner): New function.
1323 * c-lang.h (c_value_print_inner): Declare.
1324 * c-lang.c (c_language_defn, cplus_language_defn)
1325 (asm_language_defn, minimal_language_defn): Use
1326 c_value_print_inner.
1327
1328 2020-03-13 Tom Tromey <tom@tromey.com>
1329
1330 * p-valprint.c (pascal_object_print_value_fields): Now static.
1331 * p-lang.h (pascal_object_print_value_fields): Don't declare.
1332
1333 2020-03-13 Tom Tromey <tom@tromey.com>
1334
1335 * c-valprint.c (c_val_print_array): Simplify.
1336
1337 2020-03-13 Tom Tromey <tom@tromey.com>
1338
1339 * valprint.c (value_print_array_elements): New function.
1340 * valprint.h (value_print_array_elements): Declare.
1341
1342 2020-03-13 Tom Tromey <tom@tromey.com>
1343
1344 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
1345 * mips-tdep.c (mips_print_register): Use
1346 value_print_scalar_formatted.
1347
1348 2020-03-13 Tom Tromey <tom@tromey.com>
1349
1350 * valprint.h (value_print_scalar_formatted): Declare.
1351 * valprint.c (value_print_scalar_formatted): New function.
1352
1353 2020-03-13 Tom Tromey <tom@tromey.com>
1354
1355 * valprint.h (generic_value_print): Declare.
1356 * valprint.c (generic_value_print): New function.
1357
1358 2020-03-13 Tom Tromey <tom@tromey.com>
1359
1360 * valprint.c (do_val_print): Call la_value_print_inner, if
1361 available.
1362 * rust-lang.c (rust_language_defn): Update.
1363 * p-lang.c (pascal_language_defn): Update.
1364 * opencl-lang.c (opencl_language_defn): Update.
1365 * objc-lang.c (objc_language_defn): Update.
1366 * m2-lang.c (m2_language_defn): Update.
1367 * language.h (struct language_defn) <la_value_print_inner>: New
1368 member.
1369 * language.c (unknown_language_defn, auto_language_defn): Update.
1370 * go-lang.c (go_language_defn): Update.
1371 * f-lang.c (f_language_defn): Update.
1372 * d-lang.c (d_language_defn): Update.
1373 * c-lang.c (c_language_defn, cplus_language_defn)
1374 (asm_language_defn, minimal_language_defn): Update.
1375 * ada-lang.c (ada_language_defn): Update.
1376
1377 2020-03-13 Tom Tromey <tom@tromey.com>
1378
1379 * c-valprint.c (c_value_print): Use common_val_print.
1380
1381 2020-03-13 Tom Tromey <tom@tromey.com>
1382
1383 * cp-valprint.c (cp_print_static_field): Use common_val_print.
1384
1385 2020-03-13 Tom Tromey <tom@tromey.com>
1386
1387 * f-valprint.c (f77_print_array_1, f_val_print): Use
1388 common_val_print.
1389
1390 2020-03-13 Tom Tromey <tom@tromey.com>
1391
1392 * riscv-tdep.c (riscv_print_one_register_info): Use
1393 common_val_print.
1394
1395 2020-03-13 Tom Tromey <tom@tromey.com>
1396
1397 * mi/mi-main.c (output_register): Use common_val_print.
1398
1399 2020-03-13 Tom Tromey <tom@tromey.com>
1400
1401 * infcmd.c (default_print_one_register_info): Use
1402 common_val_print.
1403
1404 2020-03-13 Tom Tromey <tom@tromey.com>
1405
1406 * valprint.h (common_val_print_checked): Declare.
1407 * valprint.c (common_val_print_checked): New function.
1408 * stack.c (print_frame_arg): Use common_val_print_checked.
1409
1410 2020-03-13 Tom Tromey <tom@tromey.com>
1411
1412 * valprint.c (do_val_print): New function, from val_print.
1413 (val_print): Use do_val_print.
1414 (common_val_print): Use do_val_print.
1415
1416 2020-03-13 Tom Tromey <tom@tromey.com>
1417
1418 * valprint.c (value_print): Use scoped_value_mark.
1419
1420 2020-03-13 Tom de Vries <tdevries@suse.de>
1421
1422 PR symtab/25646
1423 * psymtab.c (partial_symtab::partial_symtab): Don't set
1424 globals_offset and statics_offset. Push element onto
1425 current_global_psymbols and current_static_psymbols stacks.
1426 (concat): New function.
1427 (end_psymtab_common): Set globals_offset and statics_offset. Pop
1428 element from current_global_psymbols and current_static_psymbols
1429 stacks. Concat popped elements to global_psymbols and
1430 static_symbols.
1431 (add_psymbol_to_list): Use current_global_psymbols and
1432 current_static_psymbols stacks.
1433 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
1434 current_static_psymbols fields.
1435
1436 2020-03-12 Christian Biesinger <cbiesinger@google.com>
1437
1438 * corelow.c (sniff_core_bfd): Remove.
1439 (class core_target) <m_core_vec>: Remove.
1440 (core_target::core_target): Update.
1441 (core_file_fns): Remove.
1442 (deprecated_add_core_fns): Remove.
1443 (default_core_sniffer): Remove.
1444 (sniff_core_bfd): Remove.
1445 (default_check_format): Remove.
1446 (gdb_check_format): Remove.
1447 (core_target_open): Update.
1448 (core_target::get_core_register_section): Update.
1449 (get_core_registers_cb): Update.
1450 (core_target::fetch_registers): Update.
1451 * gdbcore.h (struct core_fns): Remove.
1452 (deprecated_add_core_fns): Remove.
1453 (default_core_sniffer): Remove.
1454 (default_check_format): Remove.
1455
1456 2020-03-12 Tom Tromey <tom@tromey.com>
1457
1458 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
1459 CORE_ADDR.
1460 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
1461
1462 2020-03-12 Tom Tromey <tom@tromey.com>
1463
1464 * remote.c (remote_target::download_tracepoint)
1465 (remote_target::enable_tracepoint)
1466 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
1467 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
1468 sprintf_vma.
1469
1470 2020-03-12 Tom Tromey <tom@tromey.com>
1471
1472 * symfile-mem.c: Update CORE_ADDR size assert.
1473
1474 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * selftest.m4: Move to gdbsupport/.
1477 * acinclude.m4: Update path to selftest.m4.
1478
1479 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
1482 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
1483 gdbarch-selfselftests.c and selftest-arch.c.
1484 (SUBDIR_UNITTESTS_OBS): Rename to...
1485 (SELFTESTS_OBS): ... this.
1486 (COMMON_SFILES): Remove disasm-selftests.c and
1487 gdbarch-selftests.c.
1488 * configure.ac: Don't add selftest-arch.{c,o} to
1489 CONFIG_{SRCS,OBS}.
1490 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
1491 preprocessor conditions.
1492
1493 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * configure.ac: Don't source bfd/development.sh.
1496 * selftest.m4: Modify comment.
1497 * configure: Re-generate.
1498
1499 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
1500
1501 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
1502 not "true" or "false".
1503 * configure: Re-generate.
1504
1505 2020-03-12 Christian Biesinger <cbiesinger@google.com>
1506
1507 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
1508 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
1509 renamed to arm_nbsd_supply_gregset.
1510 (fetch_register): Update to call arm_nbsd_supply_gregset.
1511 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
1512 (arm_netbsd_nat_target::fetch_registers): Update.
1513 (fetch_elfcore_registers): Removed.
1514 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
1515 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
1516 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
1517 not require NetBSD system headers.
1518 (arm_nbsd_regset): New struct.
1519 (arm_nbsd_iterate_over_regset_sections): New function.
1520 (arm_netbsd_init_abi_common): Updated to call
1521 set_gdbarch_iterate_over_regset_sections.
1522 * arm-nbsd-tdep.h: New file.
1523
1524 2020-03-11 Kevin Buettner <kevinb@redhat.com>
1525
1526 * symtab.c (find_pc_sect_line): Add check which prevents infinite
1527 recursion.
1528
1529 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * configure: Re-generate.
1532
1533 2020-03-11 Tom Tromey <tromey@adacore.com>
1534
1535 * ada-typeprint.c (print_choices): Fix comment.
1536
1537 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
1540 previous item in the list, when the list has no items.
1541
1542 2020-03-11 Tom de Vries <tdevries@suse.de>
1543
1544 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
1545 PROP_LOCLIST handling code.
1546
1547 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * buildsym-legacy.c (record_line): Pass extra parameter to
1550 record_line.
1551 * buildsym.c (buildsym_compunit::record_line): Take an extra
1552 parameter, reduce duplication in the line table, and record the
1553 is_stmt flag in the line table.
1554 * buildsym.h (buildsym_compunit::record_line): Add extra
1555 parameter.
1556 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
1557 non-statement lines.
1558 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
1559 this to the symtab builder.
1560 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
1561 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
1562 through to dwarf_record_line_1.
1563 * infrun.c (process_event_stop_test): When stepping, don't stop at
1564 a non-statement instruction, and only refresh the step info when
1565 we land in the middle of a line's range. Also add an extra
1566 comment.
1567 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
1568 field.
1569 * record-btrace.c (btrace_find_line_range): Only record lines
1570 marked as is-statement.
1571 * stack.c (frame_show_address): Show the frame address if we are
1572 in a non-statement sal.
1573 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
1574 (maintenance_print_one_line_table): Print a header for the is_stmt
1575 column, and include is_stmt information in the output.
1576 * symtab.c (find_pc_sect_line): Find lines marked as statements in
1577 preference to non-statements.
1578 (find_pcs_for_symtab_line): Prefer is-statement entries.
1579 (find_line_common): Likewise.
1580 * symtab.h (struct linetable_entry): Add is_stmt field.
1581 (struct symtab_and_line): Likewise.
1582 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
1583 arranging the line table.
1584
1585 2020-03-07 Tom de Vries <tdevries@suse.de>
1586
1587 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
1588 DIE.
1589
1590 2020-03-07 Tom Tromey <tom@tromey.com>
1591
1592 * valops.c (value_literal_complex): Remove obsolete comment.
1593 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
1594 comment.
1595
1596 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * infrun.h: Forward-declare thread_info.
1599 (set_step_info): Add thread_info parameter, add doc.
1600 * infrun.c (set_step_info): Add thread_info parameter, move doc
1601 to header.
1602 * infrun.c (process_event_stop_test): Pass thread to
1603 set_step_info call.
1604 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
1605 set_step_info.
1606 (prepare_one_step): Add thread_info parameter, pass it to
1607 set_step_frame and prepare_one_step (recursive) call.
1608 (step_1): Pass thread to prepare_one_step call.
1609 (step_command_fsm::should_stop): Pass thread to
1610 prepare_one_step.
1611 (until_next_fsm): Pass thread to set_step_frame call.
1612 (finish_command): Pass thread to set_step_info call.
1613
1614 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
1615
1616 * windows-tdep.c (windows_solib_create_inferior_hook):
1617 Check if inferior is running.
1618
1619 2020-03-06 Tom de Vries <tdevries@suse.de>
1620
1621 * NEWS: Fix "the the".
1622 * ctfread.c: Same.
1623
1624 2020-03-06 Tom de Vries <tdevries@suse.de>
1625
1626 * psymtab.c (psymtab_to_symtab): Don't print "done.".
1627
1628 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * .dir-locals.el: Add a comment referencing the other copies of
1631 this file.
1632
1633 2020-03-05 John Baldwin <jhb@FreeBSD.org>
1634
1635 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
1636 psargs.
1637
1638 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1639
1640 * .gitattributes: New file.
1641
1642 2020-03-04 Tom Tromey <tom@tromey.com>
1643
1644 * symmisc.c (print_symbol_bcache_statistics)
1645 (print_objfile_statistics): Update.
1646 * symfile.c (allocate_symtab): Use intern.
1647 * psymtab.c (partial_symtab::partial_symtab): Use intern.
1648 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
1649 macro_cache>: Remove.
1650 <string_cache>: New member.
1651 (struct objfile) <intern>: New methods.
1652 * elfread.c (elf_symtab_read): Use intern.
1653 * dwarf2/read.c (fixup_go_packaging): Intern package name.
1654 (dwarf2_compute_name, dwarf2_physname)
1655 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
1656 names.
1657 (guess_partial_die_structure_name): Update.
1658 (partial_die_info::fixup): Intern name.
1659 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
1660 name.
1661 (dwarf2_name): Intern name. Update.
1662 * buildsym.c (buildsym_compunit::get_macro_table): Use
1663 string_cache.
1664
1665 2020-03-04 Tom Tromey <tom@tromey.com>
1666
1667 * jit.c (bfd_open_from_target_memory): Make "target" const.
1668 * corefile.c (gnutarget): Now const.
1669 * gdbcore.h (gnutarget): Now const.
1670
1671 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
1672
1673 * NEWS: Mention support for WOW64 processes.
1674 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
1675 (amd64_windows_segment_register_p): Remove static.
1676 (_initialize_amd64_windows_nat): Update.
1677 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
1678 * i386-windows-nat.c (context_offset): Update.
1679 (i386_mappings): Rename and remove static.
1680 (i386_windows_segment_register_p): Remove static.
1681 (_initialize_i386_windows_nat): Update.
1682 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
1683 (STATUS_WX86_SINGLE_STEP): New macro.
1684 (EnumProcessModulesEx): New macro.
1685 (Wow64SuspendThread): New macro.
1686 (Wow64GetThreadContext): New macro.
1687 (Wow64SetThreadContext): New macro.
1688 (Wow64GetThreadSelectorEntry): New macro.
1689 (windows_set_context_register_offsets): Add static.
1690 (windows_set_segment_register_p): Likewise.
1691 (windows_add_thread): Adapt for WOW64 processes.
1692 (windows_fetch_one_register): Likewise.
1693 (windows_nat_target::fetch_registers): Likewise.
1694 (windows_store_one_register): Likewise.
1695 (display_selector): Likewise.
1696 (display_selectors): Likewise.
1697 (handle_exception): Likewise.
1698 (windows_continue): Likewise.
1699 (windows_nat_target::resume): Likewise.
1700 (windows_add_all_dlls): Likewise.
1701 (do_initial_windows_stuff): Likewise.
1702 (windows_nat_target::attach): Likewise.
1703 (windows_get_exec_module_filename): Likewise.
1704 (windows_nat_target::create_inferior): Likewise.
1705 (windows_xfer_siginfo): Likewise.
1706 (_initialize_loadable): Initialize Wow64SuspendThread,
1707 Wow64GetThreadContext, Wow64SetThreadContext,
1708 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
1709 * windows-nat.h (windows_set_context_register_offsets):
1710 Remove declaration.
1711 (windows_set_segment_register_p): Likewise.
1712 (i386_windows_segment_register_p): Add declaration.
1713 (amd64_windows_segment_register_p): Likewise.
1714
1715 2020-03-04 Luis Machado <luis.machado@linaro.org>
1716
1717 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
1718 in "info registers" for AArch64/ARM.
1719
1720 The change caused "info registers" to not print GPR's.
1721
1722 gdb/ChangeLog:
1723
1724 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1725
1726 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1727 when reg->group is empty and reggroup is not.
1728
1729 2020-03-03 Tom Tromey <tromey@adacore.com>
1730
1731 * dwarf2/frame.c (struct dwarf2_frame_cache)
1732 <checked_tailcall_bottom, entry_cfa_sp_offset,
1733 entry_cfa_sp_offset_p>: Remove members.
1734 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
1735 (dwarf2_frame_prev_register): Don't call
1736 dwarf2_tailcall_sniffer_first.
1737 (dwarf2_append_unwinders): Don't append tailcall unwinder.
1738 * frame-unwind.c (add_unwinder): New fuction.
1739 (frame_unwind_init): Use it. Add tailcall unwinder.
1740
1741 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
1742 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1743
1744 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
1745 value should be printed as true.
1746
1747 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
1748
1749 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
1750 (windows_init_abi): Set and use windows_so_ops.
1751
1752 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
1753
1754 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
1755 when verifying if dealing with a convenience variable.
1756
1757 2020-03-03 Luis Machado <luis.machado@linaro.org>
1758
1759 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
1760
1761 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1762
1763 * infrun.c (gdbarch_supports_displaced_stepping): New.
1764 (use_displaced_stepping): Break up conditions in smaller pieces.
1765 Use gdbarch_supports_displaced_stepping.
1766 (displaced_step_prepare_throw): Use
1767 gdbarch_supports_displaced_stepping.
1768
1769 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * NEWS: Mention new behaviour of the history filename.
1772 * top.c (write_history_p): Add comment.
1773 (show_write_history_p): Add header comment, give a different
1774 message when history writing is on, but the history filename is
1775 empty.
1776 (history_filename): Add comment.
1777 (history_filename_empty): New function.
1778 (show_history_filename): Add header comment, give a different
1779 message when the filename is empty.
1780 (init_history): Compare history_filename against nullptr, and only
1781 read history if the filename is not empty.
1782 (set_history_filename): Add header comment, and only make
1783 non-empty filenames absolute.
1784 (init_main): Make the filename argument to 'set history filename'
1785 optional.
1786
1787 2020-03-02 Christian Biesinger <cbiesinger@google.com>
1788
1789 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
1790 (arm_supply_vfpregset): ...this, and update to use VFP registers.
1791 (fetch_fp_register): Update.
1792 (fetch_fp_regs): Update.
1793 (store_fp_register): Update.
1794 (store_fp_regs): Update.
1795 (arm_netbsd_nat_target::read_description): New function.
1796 (fetch_elfcore_registers): Update.
1797
1798 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
1801 general_thread if the stop reply is missing a thread-id.
1802 (remote_target::process_stop_reply): Use the first non-exited
1803 thread if the target didn't pass a thread-id.
1804 * infrun.c (do_target_wait): Move call to
1805 switch_to_inferior_no_thread to ....
1806 (do_target_wait_1): ... here.
1807
1808 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
1809
1810 * debuginfod-support.c: Include defs.h first.
1811
1812 2020-02-28 Tom de Vries <tdevries@suse.de>
1813
1814 * symfile.c (set_initial_language): Use default language for lookup.
1815
1816 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
1817
1818 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
1819 reader variable, pass `this` to read_cutu_die_from_dwo.
1820
1821 2020-02-27 Aaron Merey <amerey@redhat.com>
1822
1823 * source.c (open_source_file): Check for nullptr when computing
1824 srcpath.
1825
1826 2020-02-27 Tom Tromey <tromey@adacore.com>
1827
1828 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
1829 member.
1830 (dwarf2_add_field): Don't update nfields.
1831 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
1832
1833 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1834
1835 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
1836 abs.
1837
1838 2020-02-26 Tom Tromey <tom@tromey.com>
1839
1840 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
1841 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
1842 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
1843 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
1844 per_cu_data.
1845
1846 2020-02-26 Tom Tromey <tom@tromey.com>
1847
1848 * dwarf2/index-write.c (psym_index_map): Change type.
1849 (add_address_entry_worker, write_one_signatured_type)
1850 (recursively_count_psymbols, recursively_write_psymbols)
1851 (class debug_names, psyms_seen_size, write_gdbindex)
1852 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
1853
1854 2020-02-26 Aaron Merey <amerey@redhat.com>
1855
1856 * Makefile.in: Handle optional debuginfod support.
1857 * NEWS: Update.
1858 * README: Add --with-debuginfod summary.
1859 * config.in: Regenerate.
1860 * configure: Regenerate.
1861 * configure.ac: Handle optional debuginfod support.
1862 * debuginfod-support.c: debuginfod helper functions.
1863 * debuginfod-support.h: Ditto.
1864 * doc/gdb.texinfo: Add --with-debuginfod to configure options
1865 summary.
1866 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
1867 when a dwz file cannot be found.
1868 * elfread.c (elf_symfile_read): Query debuginfod servers when a
1869 debuginfo file cannot be found.
1870 * source.c (open_source_file): Query debuginfod servers when a
1871 source file cannot be found.
1872 * top.c (print_gdb_configuration): Include
1873 --{with,without}-debuginfod in the output.
1874
1875 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
1876
1877 * thread.c (thr_try_catch_cmd): Print thread name.
1878
1879 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
1882 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1883 dwarf2_fetch_die_type_sect_off): Move to...
1884 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1885 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1886 dwarf2_fetch_die_type_sect_off): ... here.
1887 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1888 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1889 dwarf2_fetch_die_type_sect_off): Move doc to header file.
1890
1891 2020-02-26 Tom de Vries <tdevries@suse.de>
1892
1893 PR gdb/25603
1894 * symfile.c (set_initial_language): Exit-early if
1895 language_mode == language_mode_manual.
1896
1897 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
1900 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
1901 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
1902
1903 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1904
1905 * gdbtypes.c (create_array_type_with_stride): Handle negative
1906 array strides.
1907 * valarith.c (value_subscripted_rvalue): Likewise.
1908
1909 2020-02-25 Luis Machado <luis.machado@linaro.org>
1910
1911 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
1912
1913 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * loc.h (dwarf2_get_die_type): Move to...
1916 * read.h (dwarf2_get_die_type): ... here.
1917 * read.c (dwarf2_get_die_type): Move doc to header.
1918
1919 2020-02-25 Joel Brobecker <brobecker@adacore.com>
1920
1921 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
1922 'gnulib/Makefile.in' to the list.
1923
1924 2020-02-24 Tom Tromey <tom@tromey.com>
1925
1926 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
1927 Remove.
1928 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
1929 XOBNEWVEC.
1930
1931 2020-02-24 Tom Tromey <tom@tromey.com>
1932
1933 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
1934 New method.
1935 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
1936 (dw2_do_instantiate_symtab, dw2_get_file_names)
1937 (build_type_psymtab_dependencies, load_full_type_unit): Update.
1938
1939 2020-02-24 Tom Tromey <tom@tromey.com>
1940
1941 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
1942 make_scoped_restore.
1943 (dwarf2_psymtab::read_symtab): Don't clear
1944 reading_partial_symbols.
1945
1946 2020-02-24 Tom de Vries <tdevries@suse.de>
1947
1948 PR gdb/25592
1949 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
1950
1951 2020-02-24 Tom de Vries <tdevries@suse.de>
1952
1953 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
1954 commands layout next/prev/regs.
1955
1956 2020-02-22 Tom Tromey <tom@tromey.com>
1957
1958 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
1959 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
1960
1961 2020-02-22 Tom Tromey <tom@tromey.com>
1962
1963 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
1964
1965 2020-02-22 Tom Tromey <tom@tromey.com>
1966
1967 * tui/tui-win.c (_initialize_tui_win): Add usage text.
1968 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
1969 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
1970 * tui/tui.c (_initialize_tui): Add usage text.
1971
1972 2020-02-22 Tom Tromey <tom@tromey.com>
1973
1974 * tui/tui-win.c (tui_set_focus_command)
1975 (tui_set_win_height_command): Use error_no_arg.
1976 (_initialize_tui_win): Update help text.
1977 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
1978
1979 2020-02-22 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
1982 * tui/tui-disasm.h (struct tui_disasm_window)
1983 <display_start_addr>: Declare.
1984 * tui/tui-source.h (struct tui_source_window)
1985 <display_start_addr>: Declare.
1986 * tui/tui-winsource.h (struct tui_source_window_base)
1987 <show_source_line, display_start_addr>: New methods.
1988 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
1989 Rename and move to protected section.
1990 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
1991 (tui_source_window_base::do_erase_source_content): Update.
1992 (tui_source_window_base::show_source_line): Now a method.
1993 (tui_source_window_base::show_source_content)
1994 (tui_source_window_base::tui_source_window_base)
1995 (tui_source_window_base::rerender)
1996 (tui_source_window_base::refill)
1997 (tui_source_window_base::do_scroll_horizontal)
1998 (tui_source_window_base::set_is_exec_point_at)
1999 (tui_source_window_base::update_breakpoint_info)
2000 (tui_source_window_base::update_exec_info): Update.
2001 * tui/tui-source.c (tui_source_window::set_contents)
2002 (tui_source_window::showing_source_p)
2003 (tui_source_window::do_scroll_vertical)
2004 (tui_source_window::location_matches_p)
2005 (tui_source_window::line_is_displayed): Update.
2006 (tui_source_window::display_start_addr): New method.
2007 * tui/tui-disasm.c (tui_disasm_window::set_contents)
2008 (tui_disasm_window::do_scroll_vertical)
2009 (tui_disasm_window::location_matches_p): Update.
2010 (tui_disasm_window::display_start_addr): New method.
2011
2012 2020-02-22 Tom Tromey <tom@tromey.com>
2013
2014 * NEWS: Add entry for gdb.register_window_type.
2015 * tui/tui-layout.h (window_factory): New typedef.
2016 (tui_register_window): Declare.
2017 * tui/tui-layout.c (saved_tui_windows): New global.
2018 (tui_apply_current_layout): Use it.
2019 (tui_register_window): New function.
2020 * python/python.c (do_start_initialization): Call
2021 gdbpy_initialize_tui.
2022 (python_GdbMethods): Add "register_window_type" function.
2023 * python/python-internal.h (gdbpy_register_tui_window)
2024 (gdbpy_initialize_tui): Declare.
2025 * python/py-tui.c: New file.
2026 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
2027
2028 2020-02-22 Tom Tromey <tom@tromey.com>
2029
2030 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
2031
2032 2020-02-22 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
2035 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
2036 * tui/tui-data.c (tui_set_win_with_focus): Remove.
2037 (tui_set_win_focus_to): Move from tui-win.c.
2038
2039 2020-02-22 Tom Tromey <tom@tromey.com>
2040
2041 * tui/tui-layout.c (make_standard_window, get_locator_window): New
2042 functions.
2043 (known_window_types): New global.
2044 (tui_get_window_by_name): Reimplement.
2045 (initialize_known_windows): New function.
2046 (validate_window_name): Rewrite.
2047 (_initialize_tui_layout): Call initialize_known_windows.
2048
2049 2020-02-22 Tom Tromey <tom@tromey.com>
2050
2051 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
2052 Remove constants.
2053 * tui/tui-winsource.h (struct tui_source_window_base)
2054 <tui_source_window_base>: Remove parameter.
2055 * tui/tui-winsource.c
2056 (tui_source_window_base::tui_source_window_base): Remove
2057 parameter.
2058 (tui_source_window_base::refill): Update.
2059 * tui/tui-stack.h (struct tui_locator_window)
2060 <tui_locator_window>: Update.
2061 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
2062 Default the constructor.
2063 * tui/tui-regs.h (struct tui_data_item_window)
2064 <tui_data_item_window>: Default the constructor.
2065 (struct tui_data_window) <tui_data_window>: Likewise.
2066 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
2067 Default the constructor.
2068 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
2069 Default the constructor.
2070 <type>: Remove.
2071 (struct tui_win_info) <tui_win_info>: Default the constructor.
2072 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
2073 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2074 Default the constructor.
2075
2076 2020-02-22 Tom Tromey <tom@tromey.com>
2077
2078 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
2079 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
2080 * tui/tui-win.c (tui_resize_all): Don't call
2081 tui_delete_invisible_windows.
2082 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
2083 done.
2084 (tui_set_layout): Update.
2085 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
2086 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
2087 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
2088
2089 2020-02-22 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
2092 correctly.
2093
2094 2020-02-22 Tom Tromey <tom@tromey.com>
2095
2096 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
2097
2098 2020-02-22 Tom Tromey <tom@tromey.com>
2099
2100 * tui/tui-winsource.h (struct tui_source_window_iterator)
2101 <inner_iterator>: New etytypedef.
2102 <tui_source_window_iterator>: Take "end" parameter.
2103 <tui_source_window_iterator>: Take iterator.
2104 <operator*, advance>: Update.
2105 <m_iter>: Change type.
2106 <m_end>: New field.
2107 (struct tui_source_windows) <begin, end>: Update.
2108 * tui/tui-layout.c (tui_windows): New global.
2109 (tui_apply_current_layout): Clear tui_windows.
2110 (tui_layout_window::apply): Update tui_windows.
2111 * tui/tui-data.h (tui_windows): Declare.
2112 (all_tui_windows): Now inline function.
2113 (class tui_window_iterator, struct all_tui_windows): Remove.
2114
2115 2020-02-22 Tom Tromey <tom@tromey.com>
2116
2117 PR tui/17850:
2118 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
2119 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
2120 "height" argument.
2121 (class tui_layout_window) <get_sizes>: Likewise.
2122 (class tui_layout_split) <tui_layout_split>: Add "vertical"
2123 argument.
2124 <get_sizes>: Add "height" argument.
2125 <m_vertical>: New field.
2126 * tui/tui-layout.c (tui_layout_split::clone): Update.
2127 (tui_layout_split::get_sizes): Add "height" argument.
2128 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
2129 (tui_new_layout_command): Parse "-horizontal".
2130 (_initialize_tui_layout): Update help string.
2131 (tui_layout_split::specification): Add "-horizontal" when needed.
2132 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
2133 argument.
2134 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
2135 New methods.
2136
2137 2020-02-22 Tom Tromey <tom@tromey.com>
2138
2139 * tui/tui-layout.h (enum tui_adjust_result): New.
2140 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
2141 (class tui_layout_window) <adjust_size>: Return
2142 tui_adjust_result. Rewrite.
2143 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
2144 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
2145
2146 2020-02-22 Tom Tromey <tom@tromey.com>
2147
2148 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
2149 parameter and return types.
2150 (class tui_layout_base) <specification>: Add "depth".
2151 (class tui_layout_window) <specification>: Add "depth".
2152 (class tui_layout_split) <specification>: Add "depth".
2153 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
2154 and return types.
2155 (tui_new_layout_command): Parse sub-layouts.
2156 (_initialize_tui_layout): Update help string.
2157 (tui_layout_window::specification): Add "depth".
2158 (add_layout_command): Update.
2159
2160 2020-02-22 Tom Tromey <tom@tromey.com>
2161
2162 * NEWS: Add "tui new-layout" item.
2163 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
2164 Add new-layout command to help text.
2165 (validate_window_name): New function.
2166 (tui_new_layout_command): New function.
2167 (_initialize_tui_layout): Register "new-layout".
2168 (tui_layout_window::specification): New method.
2169 (tui_layout_window::specification): New method.
2170 * tui/tui-layout.h (class tui_layout_base) <specification>: New
2171 method.
2172 (class tui_layout_window) <specification>: New method.
2173 (class tui_layout_split) <specification>: New method.
2174
2175 2020-02-22 Tom Tromey <tom@tromey.com>
2176
2177 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
2178 * tui/tui-win.c (window_name_completer): Update comment.
2179 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
2180 Declare method.
2181 (class tui_layout_window) <replace_window>: Likewise.
2182 (class tui_layout_split) <replace_window>: Likewise.
2183 (tui_set_layout): Don't declare.
2184 (tui_set_initial_layout): Declare function.
2185 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
2186 (asm_regs_layout): New globals.
2187 (tui_current_layout, show_layout): Remove.
2188 (tui_set_layout, tui_add_win_to_layout): Rewrite.
2189 (find_layout, tui_apply_layout): New function.
2190 (layout_completer): Remove.
2191 (tui_next_layout): Reimplement.
2192 (tui_next_layout_command): New function.
2193 (tui_set_initial_layout, tui_prev_layout_command): New functions.
2194 (tui_regs_layout): Reimplement.
2195 (tui_regs_layout_command): New function.
2196 (extract_display_start_addr): Rewrite.
2197 (next_layout, prev_layout): Remove.
2198 (tui_layout_window::replace_window): New method.
2199 (tui_layout_split::replace_window): New method.
2200 (destroy_layout): New function.
2201 (layout_list): New global.
2202 (add_layout_command): New function.
2203 (initialize_layouts): Update.
2204 (tui_layout_command): New function.
2205 (_initialize_tui_layout): Install "layout" commands.
2206 * tui/tui-data.h (enum tui_layout_type): Remove.
2207 (tui_current_layout): Don't declare.
2208
2209 2020-02-22 Tom Tromey <tom@tromey.com>
2210
2211 * tui/tui-regs.c (tui_reg_layout): Remove.
2212 (tui_reg_command): Use tui_regs_layout.
2213 * tui/tui-layout.h (tui_reg_command): Declare.
2214 * tui/tui-layout.c (tui_reg_command): New function.
2215
2216 2020-02-22 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui.c (tui_rl_delete_other_windows): Call
2219 tui_remove_some_windows.
2220 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
2221 Declare method.
2222 (class tui_layout_window) <remove_windows>: New method.
2223 (class tui_layout_split) <remove_windows>: Declare.
2224 (tui_remove_some_windows): Declare.
2225 * tui/tui-layout.c (tui_remove_some_windows): New function.
2226 (tui_layout_split::remove_windows): New method.
2227
2228 2020-02-22 Tom Tromey <tom@tromey.com>
2229
2230 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
2231 * tui/tui-layout.h (tui_next_layout): Declare.
2232 * tui/tui-layout.c (tui_next_layout): New function.
2233
2234 2020-02-22 Tom Tromey <tom@tromey.com>
2235
2236 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
2237 correct coordinates.
2238
2239 2020-02-22 Tom Tromey <tom@tromey.com>
2240
2241 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
2242 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
2243 DATA_WIN case.
2244
2245 2020-02-22 Tom Tromey <tom@tromey.com>
2246
2247 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
2248 TUI_DISASM_WIN, not tui_win_list.
2249
2250 2020-02-22 Tom Tromey <tom@tromey.com>
2251
2252 * valprint.c (generic_val_print_enum_1)
2253 (val_print_type_code_flags): Style member names.
2254 * rust-lang.c (val_print_struct, rust_print_enum)
2255 (rust_print_struct_def, rust_internal_print_type): Style member
2256 names.
2257 * p-valprint.c (pascal_object_print_value_fields): Style member
2258 names. Only call fprintf_symbol_filtered for static members.
2259 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
2260 * f-valprint.c (f_val_print): Style member names.
2261 * f-typeprint.c (f_type_print_base): Style member names.
2262 * cp-valprint.c (cp_print_value_fields): Style member names. Only
2263 call fprintf_symbol_filtered for static members.
2264 (cp_print_class_member): Style member names.
2265 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
2266 member names.
2267 * ada-valprint.c (ada_print_scalar): Style enum names.
2268 (ada_val_print_enum): Likewise.
2269 * ada-typeprint.c (print_enum_type): Style enum names.
2270
2271 2020-02-21 Tom Tromey <tom@tromey.com>
2272
2273 * psympriv.h (struct partial_symtab): Update comment.
2274
2275 2020-02-21 Tom Tromey <tromey@adacore.com>
2276
2277 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
2278 type is CORE_ADDR.
2279
2280 2020-02-21 Tom de Vries <tdevries@suse.de>
2281
2282 PR gdb/25534
2283 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
2284 if dependencies[i]->user != NULL.
2285
2286 2020-02-21 Ali Tamur <tamur@google.com>
2287
2288 * dwarf2/read.c (dwarf2_name): Add null check.
2289
2290 2020-02-20 Tom Tromey <tom@tromey.com>
2291
2292 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
2293 ">=", in binary search.
2294 (dwarf2_find_containing_comp_unit): New overload.
2295 (run_test): New self-test.
2296 (_initialize_dwarf2_read): Register new test.
2297
2298 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
2299
2300 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
2301 * riscv-tdep.h: Likewise.
2302 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
2303 rv32-only CSR.
2304 * features/riscv/64bit-csr.xml: Regenerated.
2305
2306 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2307 Tom Tromey <tom@tromey.com>
2308
2309 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
2310 of 'fputc_unfiltered'.
2311 (putchar_unfiltered): Call 'fputc_unfiltered'.
2312 (fputc_unfiltered): Call 'fputs_unfiltered'.
2313
2314 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * config.in: Regenerate.
2317 * configure: Regenerate.
2318 * configure.ac: Add --with-python-libdir option.
2319 * main.c: Use WITH_PYTHON_LIBDIR.
2320
2321 2020-02-19 Tom Tromey <tom@tromey.com>
2322
2323 * symtab.c (general_symbol_info::compute_and_set_names): Use
2324 obstack_strndup. Simplify call to symbol_set_demangled_name.
2325
2326 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * dwarf2/read.c (allocate_signatured_type_table,
2329 allocate_dwo_unit_table, allocate_type_unit_groups_table,
2330 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
2331 Remove objfile parameter, update all callers.
2332
2333 2020-02-19 Doug Evans <dje@google.com>
2334
2335 PR rust/25535
2336 * rust-lang.c (rust_print_enum): Apply embedded_offset to
2337 rust_enum_variant calculation.
2338
2339 2020-02-19 Tom Tromey <tromey@adacore.com>
2340
2341 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
2342
2343 2020-02-19 Tom Tromey <tromey@adacore.com>
2344
2345 * ada-lang.c (cache_symbol): Use obstack_strdup.
2346
2347 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * configure: Regenerate.
2350
2351 2020-02-19 Tom Tromey <tromey@adacore.com>
2352
2353 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
2354 NULL check.
2355
2356 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2357
2358 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
2359
2360 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
2363 if GDBSERVER is not defined.
2364 (riscv_tdesc_cache): Likewise, also store const target_desc.
2365 (STATIC_IN_GDB): Define.
2366 (riscv_create_target_description): Update declaration with
2367 STATIC_IN_GDB.
2368 (riscv_lookup_target_description): New function, only define if
2369 GDBSERVER is not defined.
2370 * arch/riscv.h (riscv_create_target_description): Declare only
2371 when GDBSERVER is defined.
2372 (riscv_lookup_target_description): New declaration when GDBSERVER
2373 is not defined.
2374 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
2375 (riscv_linux_read_features): ...this, and return
2376 riscv_gdbarch_features instead of target_desc.
2377 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
2378 (riscv_linux_read_description): Rename to...
2379 (riscv_linux_read_features): ...this.
2380 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2381 Update to use riscv_gdbarch_features and
2382 riscv_lookup_target_description.
2383 * riscv-tdep.c (riscv_find_default_target_description): Use
2384 riscv_lookup_target_description instead of
2385 riscv_create_target_description.
2386
2387 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
2388
2389 * valprint.c (generic_val_print_enum_1): When printing a flag
2390 enum with value 0 and there is no enumerator with value 0, print
2391 just "0" instead of "(unknown: 0x0)".
2392
2393 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * valprint.c (generic_val_print_enum_1): Print unknown part of
2396 flag enum in hex.
2397
2398 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
2399
2400 * dwarf2/read.c (update_enumeration_type_from_children): Allow
2401 flag enums to contain duplicate enumerators.
2402 * valprint.c (generic_val_print_enum_1): Update comment.
2403
2404 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * dwarf2/read.c: Include "count-one-bits.h".
2407 (update_enumeration_type_from_children): If an enumerator has
2408 multiple bits set, don't treat the enumeration as a "flag enum".
2409 * valprint.c (generic_val_print_enum_1): Assert that enumerators
2410 of flag enums have 0 or 1 bit set.
2411
2412 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
2413
2414 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
2415 conversion.
2416 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2417 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2418 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2419 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2420 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2421
2422 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
2423
2424 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
2425
2426 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
2429 displaced_step_closure_up.
2430 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2431 (struct displaced_step_closure_up):
2432 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2433 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2434 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
2435 Likewise.
2436 * gdbarch.sh (displaced_step_copy_insn): Likewise.
2437 * gdbarch.c, gdbarch.h: Re-generate.
2438 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
2439 displaced_step_closure_up.
2440 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2441 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2442 * infrun.h (displaced_step_closure_up): New type alias.
2443 (struct displaced_step_inferior_state) <step_closure>: Change
2444 type to displaced_step_closure_up.
2445 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
2446 displaced_step_closure_up.
2447 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2448
2449 2020-02-14 Tom Tromey <tom@tromey.com>
2450
2451 * minidebug.c (gnu_debug_key): New global.
2452 (find_separate_debug_file_in_section): Use it.
2453
2454 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
2455
2456 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
2457 std::unique_ptr.
2458 * gdbarch.c: Re-generate.
2459 * gdbarch.h: Re-generate.
2460 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
2461 change.
2462 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
2463 type to std::unique_ptr.
2464 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
2465 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
2466 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
2467 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2468 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
2469 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2470 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
2471 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2472 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
2473
2474 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
2477 std::unique_ptr.
2478 (displaced_step_clear): Rename to...
2479 (displaced_step_reset): ... this. Just call displaced->reset ().
2480 (displaced_step_clear_cleanup): Rename to...
2481 (displaced_step_reset_cleanup): ... this.
2482 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
2483 (displaced_step_fixup): Likewise.
2484 (resume_1): Likewise.
2485 (handle_inferior_event): Restore child's memory before calling
2486 displaced_step_fixup on the parent.
2487 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
2488 to std::unique_ptr.
2489 <step_closure>: Change type to std::unique_ptr.
2490
2491 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
2492
2493 * arm-tdep.c: Include count-one-bits.h.
2494 (cleanup_block_store_pc): Use count_one_bits.
2495 (cleanup_block_load_pc): Use count_one_bits.
2496 (arm_copy_block_xfer): Use count_one_bits.
2497 (thumb2_copy_block_xfer): Use count_one_bits.
2498 (thumb_copy_pop_pc_16bit): Use count_one_bits.
2499 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
2500 (thumb_get_next_pcs_raw): Use count_one_bits.
2501 (arm_get_next_pcs_raw): Use count_one_bits_l.
2502 * arch/arm.c (bitcount): Remove.
2503 * arch/arm.h (bitcount): Remove.
2504
2505 2020-02-14 Tom Tromey <tromey@adacore.com>
2506
2507 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
2508 Update.
2509 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
2510 * dwarf2/loc.c (call_site_find_chain_1): Return
2511 unique_xmalloc_ptr.
2512 (call_site_find_chain): Likewise.
2513
2514 2020-02-14 Richard Biener <rguenther@suse.de>
2515
2516 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
2517 on expression with division operators.
2518
2519 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2520
2521 * MAINTAINERS (Write After Approval): Adding myself.
2522
2523 2020-02-12 Tom Tromey <tom@tromey.com>
2524
2525 * event-loop.c (event_data, gdb_event, event_handler_func):
2526 Remove.
2527
2528 2020-02-12 Tom Tromey <tom@tromey.com>
2529
2530 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
2531 (dwarf2_frame_objfile_data): Add comment.
2532 (find_comp_unit, set_comp_unit): New functions.
2533 (dwarf2_frame_find_fde): Use find_comp_unit.
2534 (dwarf2_build_frame_info): Use set_comp_unit.
2535
2536 2020-02-12 Tom Tromey <tom@tromey.com>
2537
2538 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
2539 (comp_unit): Don't initialize objfile.
2540 (execute_cfa_program): Add text_offset parameter.
2541 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
2542 (dwarf2_frame_cache): Update.
2543 (dwarf2_build_frame_info): Don't set "objfile" member.
2544
2545 2020-02-12 Tom Tromey <tom@tromey.com>
2546
2547 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
2548 (decode_frame_entry): Likewise.
2549 (dwarf2_build_frame_info): Update.
2550
2551 2020-02-12 Tom Tromey <tom@tromey.com>
2552
2553 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
2554 (decode_frame_entry_1): Use the comp_unit obstack.
2555
2556 2020-02-12 Tom Tromey <tom@tromey.com>
2557
2558 * dwarf2/frame.c (struct comp_unit): Add initializers and
2559 constructor.
2560 (dwarf2_frame_objfile_data): Store a comp_unit.
2561 (dwarf2_frame_find_fde): Update.
2562 (dwarf2_build_frame_info): Use "new".
2563
2564 2020-02-12 Tom Tromey <tom@tromey.com>
2565
2566 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
2567 (dwarf2_fde_table): Typedef for std::vector.
2568 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
2569 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
2570 (decode_frame_entry): Update.
2571 (dwarf2_build_frame_info): Use "new".
2572
2573 2020-02-12 Christian Biesinger <cbiesinger@google.com>
2574
2575 * arm-tdep.c (arm_gdbarch_init): Update.
2576 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
2577 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
2578 have_neon, is_m>: Change to bool.
2579
2580 2020-02-12 Christian Biesinger <cbiesinger@google.com>
2581
2582 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
2583
2584 2020-02-12 Tom Tromey <tom@tromey.com>
2585
2586 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
2587
2588 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2589
2590 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
2591 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
2592
2593 2020-02-11 Tom Tromey <tom@tromey.com>
2594
2595 * psymtab.h: Update comment.
2596
2597 2020-02-11 Tom Tromey <tom@tromey.com>
2598
2599 * gdb_obstack.h (struct auto_obstack): Use
2600 DISABLE_COPY_AND_ASSIGN.
2601
2602 2020-02-11 Tom Tromey <tom@tromey.com>
2603
2604 * dwarf2/frame.h (struct objfile): Don't forward declare.
2605
2606 2020-02-11 Christian Biesinger <cbiesinger@google.com>
2607
2608 * cris-tdep.c (cris_supply_gregset): Change signature to match
2609 what struct regset expects.
2610 (cris_regset): New struct.
2611 (fetch_core_registers): Remove.
2612 (cris_iterate_over_regset_sections): New function.
2613 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
2614 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
2615
2616 2020-02-11 Christian Biesinger <cbiesinger@google.com>
2617
2618 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
2619 registers.
2620
2621 2020-02-11 Christian Biesinger <cbiesinger@google.com>
2622
2623 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
2624
2625 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * configure: Re-generate.
2628
2629 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2630
2631 * configure: Re-generate.
2632
2633 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2634
2635 * acinclude: Update warning.m4 path.
2636 * warning.m4: Move to gdbsupport.
2637
2638 2020-02-11 Tom Tromey <tromey@adacore.com>
2639
2640 * remote.c (remote_console_output): Update.
2641 * printcmd.c (printf_command): Update.
2642 * event-loop.c (gdb_wait_for_event): Update.
2643 * linux-nat.c (sigchld_handler): Update.
2644 * remote-sim.c (gdb_os_write_stdout): Update.
2645 (gdb_os_flush_stdout): Update.
2646 (gdb_os_flush_stderr): Update.
2647 (gdb_os_write_stderr): Update.
2648 * exceptions.c (print_exception): Update.
2649 * remote-fileio.c (remote_fileio_func_read): Update.
2650 (remote_fileio_func_write): Update.
2651 * tui/tui.c (tui_enable): Update.
2652 * tui/tui-interp.c (tui_interp::init): Update.
2653 * utils.c (init_page_info): Update.
2654 (putchar_unfiltered, fputc_unfiltered): Update.
2655 (gdb_flush): Update.
2656 (emit_style_escape): Update.
2657 (flush_wrap_buffer, fputs_maybe_filtered): Update.
2658 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
2659 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
2660 (stderr_file::write): Update.
2661 (stderr_file::puts): Update.
2662 * ui-file.h (ui_file_isatty, ui_file_write)
2663 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
2664 (ui_file_puts): Don't declare.
2665
2666 2020-02-10 Tom de Vries <tdevries@suse.de>
2667
2668 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
2669 sentinel to char *.
2670
2671 2020-02-09 Tom de Vries <tdevries@suse.de>
2672
2673 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
2674 filename if it matches "<artificial>".
2675
2676 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2677
2678 * windows-tdep.c (struct enum_value_name): New struct.
2679 (create_enum): New function.
2680 (windows_get_siginfo_type): Create and use enum types.
2681
2682 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2683
2684 * NEWS: Mention $_siginfo support for Windows.
2685 * windows-nat.c (handle_exception): Set siginfo_er.
2686 (windows_nat_target::mourn_inferior): Reset siginfo_er.
2687 (windows_xfer_siginfo): New function.
2688 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
2689 * windows-tdep.c (struct windows_gdbarch_data): New struct.
2690 (init_windows_gdbarch_data): New function.
2691 (get_windows_gdbarch_data): New function.
2692 (windows_get_siginfo_type): New function.
2693 (windows_init_abi): Register windows_get_siginfo_type.
2694 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
2695
2696 2020-02-08 Tom Tromey <tom@tromey.com>
2697
2698 * dwarf2/read.c (class cutu_reader) <cutu_reader,
2699 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
2700 <keep>: Declare method.
2701 <m_keep>: Remove member.
2702 <~cutu_reader>: Remove.
2703 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2704 (cutu_reader::cutu_reader): Update.
2705 (cutu_reader::keep): Rename from ~cutu_reader.
2706 (process_psymtab_comp_unit, build_type_psymtabs_1)
2707 (process_skeletonless_type_unit, load_partial_comp_unit)
2708 (load_full_comp_unit, dwarf2_read_addr_index)
2709 (read_signatured_type): Update.
2710
2711 2020-02-08 Tom Tromey <tom@tromey.com>
2712
2713 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
2714 "want_partial_unit" parameter.
2715 (process_psymtab_comp_unit): Change want_partial_unit to bool.
2716 Inline check for DW_TAG_partial_unit.
2717 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
2718
2719 2020-02-08 Tom Tromey <tom@tromey.com>
2720
2721 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
2722 read.c.
2723 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
2724 read.c.
2725
2726 2020-02-08 Tom Tromey <tom@tromey.com>
2727
2728 * dwarf2/read.c (read_address): Move to comp-unit.c.
2729 (dwarf2_rnglists_process, dwarf2_ranges_process)
2730 (read_attribute_value, dwarf_decode_lines_1)
2731 (var_decode_location, decode_locdesc): Update.
2732 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
2733 read.c. Remove "cu" parameter.
2734 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
2735 method.
2736
2737 2020-02-08 Tom Tromey <tom@tromey.com>
2738
2739 * dwarf2/read.c (read_attribute_value, read_indirect_string)
2740 (read_indirect_line_string): Update.
2741 * dwarf2/comp-unit.c (read_offset): Remove.
2742 (read_comp_unit_head): Update.
2743 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
2744 method.
2745 (read_offset): Don't declare.
2746
2747 2020-02-08 Tom Tromey <tom@tromey.com>
2748
2749 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
2750 * dwarf2/read.c (struct comp_unit_head): Move to
2751 dwarf2/comp-unit.h.
2752 (enum class rcuh_kind): Move to comp-unit.h.
2753 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
2754 (read_comp_unit_head, error_check_comp_unit_head)
2755 (read_and_check_comp_unit_head): Move to comp-unit.c.
2756 (read_offset, dwarf_unit_type_name): Likewise.
2757 (create_debug_type_hash_table, read_cutu_die_from_dwo)
2758 (cutu_reader::cutu_reader, read_call_site_scope)
2759 (find_partial_die, follow_die_offset): Update.
2760 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
2761
2762 2020-02-08 Tom Tromey <tom@tromey.com>
2763
2764 * dwarf2/read.c (read_offset_1): Move to leb.c.
2765 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
2766 (dwarf_decode_macro_bytes): Update.
2767 * dwarf2/leb.c (read_offset): Rename; move from read.c.
2768 * dwarf2/leb.h (read_offset): Declare.
2769
2770 2020-02-08 Tom Tromey <tom@tromey.com>
2771
2772 * dwarf2/read.c (dwarf2_section_size): Remove.
2773 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
2774 Update.
2775 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
2776
2777 2020-02-08 Tom Tromey <tom@tromey.com>
2778
2779 * dwarf2/read.c (read_initial_length): Move to leb.c.
2780 * dwarf2/leb.h (read_initial_length): Declare.
2781 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
2782 handle_nonstd parameter.
2783 * dwarf2/frame.c (read_initial_length): Remove.
2784 (decode_frame_entry_1): Update.
2785
2786 2020-02-08 Tom Tromey <tom@tromey.com>
2787
2788 * dwarf2/loc.c (dwarf2_find_location_expression)
2789 (dwarf_evaluate_loc_desc::get_tls_address)
2790 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
2791 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
2792 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
2793 (dwarf2_compile_property_to_c)
2794 (dwarf2_loc_desc_get_symbol_read_needs)
2795 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
2796 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
2797 (loclist_describe_location, loclist_tracepoint_var_ref)
2798 (loclist_generate_c_location): Update.
2799 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
2800 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
2801 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
2802 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
2803 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
2804 (dwarf2_per_cu_data::addr_size)
2805 (dwarf2_per_cu_data::ref_addr_size)
2806 (dwarf2_per_cu_data::text_offset)
2807 (dwarf2_per_cu_data::addr_type): Now methods.
2808 (per_cu_header_read_in): Make per_cu "const".
2809 (dwarf2_version): Remove.
2810 (dwarf2_per_cu_data::int_type): Now a method.
2811 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
2812 (set_die_type, read_array_type, read_subrange_index_type)
2813 (read_tag_string_type, read_subrange_type): Update.
2814 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
2815 offset_size, ref_addr_size, text_offset, addr_type, version,
2816 objfile, int_type, addr_sized_int_type>: Declare methods.
2817
2818 2020-02-08 Tom Tromey <tom@tromey.com>
2819
2820 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
2821 Move earlier.
2822
2823 2020-02-08 Tom Tromey <tom@tromey.com>
2824
2825 * dwarf2/read.h (dwarf_line_debug): Declare.
2826 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
2827 * dwarf2/read.c: Move line_header code to new files.
2828 (dwarf_line_debug): No longer static.
2829 * dwarf2/line-header.c: New file.
2830 * dwarf2/line-header.h: New file.
2831
2832 2020-02-08 Tom Tromey <tom@tromey.com>
2833
2834 * dwarf2/read.c (struct line_header) <file_full_name,
2835 file_file_name>: Return unique_xmalloc_ptr.
2836 (line_header::file_file_name): Update.
2837 (line_header::file_full_name): Update.
2838 (dw2_get_file_names_reader): Update.
2839 (macro_start_file): Update.
2840
2841 2020-02-08 Tom Tromey <tom@tromey.com>
2842
2843 * dwarf2/read.c (struct line_header) <file_full_name,
2844 file_file_name>: Declare methods.
2845 (dw2_get_file_names_reader): Update.
2846 (file_file_name): Now a method.
2847 (file_full_name): Likewise.
2848 (macro_start_file): Update.
2849
2850 2020-02-08 Tom Tromey <tom@tromey.com>
2851
2852 * dwarf2/read.c (dwarf_always_disassemble)
2853 (show_dwarf_always_disassemble): Move to loc.c.
2854 (_initialize_dwarf2_read): Move "always-disassemble" registration
2855 to loc.c.
2856 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
2857 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
2858 static.
2859 (show_dwarf_always_disassemble): Move from read.c.
2860 (_initialize_dwarf2loc): Move always-disassemble from read.c.
2861
2862 2020-02-08 Tom Tromey <tom@tromey.com>
2863
2864 * dwarf2/read.c (~dwarf2_per_objfile): Update.
2865 (create_quick_file_names_table): Return htab_up.
2866 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
2867 Update.
2868 * dwarf2/read.h (struct dwarf2_per_objfile)
2869 <quick_file_names_table>: Now htab_up.
2870
2871 2020-02-08 Tom Tromey <tom@tromey.com>
2872
2873 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
2874
2875 2020-02-08 Tom Tromey <tom@tromey.com>
2876
2877 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
2878 Rewrite.
2879 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
2880 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
2881 (abbrev_table::abbrev_table): No longer inline.
2882 (ABBREV_HASH_SIZE): Remove.
2883 (abbrev_table::m_abbrevs): Now an htab_up.
2884
2885 2020-02-08 Tom Tromey <tom@tromey.com>
2886
2887 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
2888 (cutu_reader): Update.
2889 (build_type_psymtabs_1): Update.
2890 * dwarf2/abbrev.c (abbrev_table::read): Rename.
2891 (abbrev_table::alloc_abbrev): Update.
2892 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
2893 (abbrev_table::read): New static method, renamed from
2894 abbrev_table_read_table.
2895 (abbrev_table::alloc_abbrev)
2896 (abbrev_table::add_abbrev): Now private.
2897 (abbrev_table::abbrev_table): Now private.
2898 (abbrev_table::m_abbrev_obstack): Now private. Rename.
2899
2900 2020-02-08 Tom Tromey <tom@tromey.com>
2901
2902 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
2903 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
2904 htab_up.
2905
2906 2020-02-08 Tom Tromey <tom@tromey.com>
2907
2908 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
2909 htab_up.
2910 (lookup_dwo_unit_in_dwp): Update.
2911 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
2912 on obstack.
2913
2914 2020-02-08 Tom Tromey <tom@tromey.com>
2915
2916 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
2917 obstack.
2918
2919 2020-02-08 Tom Tromey <tom@tromey.com>
2920
2921 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
2922 line_header_hash.
2923 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
2924 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
2925 Change type to htab_up.
2926
2927 2020-02-08 Tom Tromey <tom@tromey.com>
2928
2929 * dwarf2/read.c (allocate_type_unit_groups_table): Return
2930 htab_up. Don't allocate on obstack.
2931 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
2932 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
2933 Change type to htab_up.
2934
2935 2020-02-08 Tom Tromey <tom@tromey.com>
2936
2937 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
2938 Change type to htab_up.
2939 * dwarf2/read.c (create_signatured_type_table_from_index)
2940 (create_signatured_type_table_from_debug_names)
2941 (create_all_type_units, add_type_unit)
2942 (lookup_dwo_signatured_type, lookup_signatured_type)
2943 (process_skeletonless_type_unit): Update.
2944 (create_debug_type_hash_table, create_debug_types_hash_table):
2945 Change type of types_htab.
2946 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
2947 htab_up. Don't allocate on obstack.
2948 (create_cus_hash_table): Change type of cus_htab parameter.
2949 (struct dwo_file) <cus, tus>: Now htab_up.
2950 (lookup_dwo_signatured_type, lookup_dwo_cutu)
2951 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
2952 (queue_and_load_all_dwo_tus): Update.
2953 * dwarf2/index-write.c (write_gdbindex): Update.
2954 (write_debug_names): Update.
2955
2956 2020-02-08 Tom Tromey <tom@tromey.com>
2957
2958 * dwarf2/read.h (struct dwarf2_queue_item): Move from
2959 dwarf2/read.c. Remove "next" member. Add constructor ntad
2960 destructor.
2961 (struct dwarf2_per_objfile) <queue>: New member.
2962 * dwarf2/read.c (struct dwarf2_queue_item): Move to
2963 dwarf2/read.h.
2964 (dwarf2_queue, dwarf2_queue_tail): Remove.
2965 (class dwarf2_queue_guard): Add parameter to constructor. Use
2966 DISABLE_COPY_AND_ASSIGN.
2967 <m_per_objfile>: New member.
2968 <~dwarf2_queue_guard>: Rewrite.
2969 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
2970 Update.
2971 (~dwarf2_queue_item): New.
2972
2973 2020-02-08 Tom Tromey <tom@tromey.com>
2974
2975 * dwarf2/read.c (struct die_info) <has_children>: New member.
2976 (dw2_get_file_names_reader): Remove has_children.
2977 (dw2_get_file_names): Update.
2978 (read_cutu_die_from_dwo): Remove has_children.
2979 (cutu_reader::init_tu_and_read_dwo_dies)
2980 (cutu_reader::cutu_reader): Update.
2981 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
2982 Remove has_children.
2983 (build_type_psymtabs_1, process_skeletonless_type_unit)
2984 (load_partial_comp_unit, load_full_comp_unit): Update.
2985 (create_dwo_cu_reader): Remove has_children.
2986 (create_cus_hash_table, read_die_and_children): Update.
2987 (read_full_die_1,read_full_die): Remove has_children.
2988 (read_signatured_type): Update.
2989 (class cutu_reader) <has_children>: Remove.
2990
2991 2020-02-08 Tom Tromey <tom@tromey.com>
2992
2993 * dwarf2/expr.c: Rename from dwarf2expr.c.
2994 * dwarf2/expr.h: Rename from dwarf2expr.h.
2995 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
2996 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
2997 * dwarf2/frame.c: Rename from dwarf2-frame.c.
2998 * dwarf2/frame.h: Rename from dwarf2-frame.h.
2999 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
3000 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
3001 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
3002 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
3003 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
3004 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
3005 * dwarf2/loc.c: Rename from dwarf2loc.c.
3006 * dwarf2/loc.h: Rename from dwarf2loc.h.
3007 * dwarf2/read.c: Rename from dwarf2read.c.
3008 * dwarf2/read.h: Rename from dwarf2read.h.
3009 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
3010 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
3011 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
3012 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
3013 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
3014 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
3015 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
3016 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
3017 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
3018 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
3019 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
3020 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
3021 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
3022 Update.
3023 * Makefile.in (COMMON_SFILES): Update.
3024 (HFILES_NO_SRCDIR): Update.
3025
3026 2020-02-08 Tom Tromey <tom@tromey.com>
3027
3028 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
3029 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
3030
3031 2020-02-08 Tom Tromey <tom@tromey.com>
3032
3033 * dwarf2read.h (struct die_info): Don't declare.
3034
3035 2020-02-08 Tom Tromey <tom@tromey.com>
3036
3037 * dwarf2read.h (die_info_ptr): Remove typedef.
3038
3039 2020-02-08 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2read.c (read_call_site_scope)
3042 (handle_data_member_location, dwarf2_add_member_fn)
3043 (mark_common_block_symbol_computed, read_common_block)
3044 (attr_to_dynamic_prop, partial_die_info::read)
3045 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
3046 (dwarf2_symbol_mark_computed, set_die_type): Update.
3047 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
3048 method.
3049 (attr_form_is_block): Don't declare.
3050 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
3051
3052 2020-02-08 Tom Tromey <tom@tromey.com>
3053
3054 * dwarf2read.c (dwarf2_find_base_address, )
3055 (read_call_site_scope, rust_containing_type)
3056 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3057 (handle_data_member_location, dwarf2_add_member_fn)
3058 (get_alignment, read_structure_type, process_structure_scope)
3059 (mark_common_block_symbol_computed, read_common_block)
3060 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
3061 (partial_die_info::read, read_attribute_value, new_symbol)
3062 (lookup_die_type, dwarf2_get_ref_die_offset)
3063 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
3064 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
3065 (dwarf2_symbol_mark_computed): Update.
3066 * dwarf2/attribute.h (struct attribute) <value_as_address,
3067 form_is_section_offset, form_is_constant, form_is_ref>: Declare
3068 methods.
3069 (value_as_address, attr_form_is_section_offset)
3070 (attr_form_is_constant, attr_form_is_ref): Don't declare.
3071 * dwarf2/attribute.c (attribute::value_as_address)
3072 (attribute::form_is_section_offset, attribute::form_is_constant)
3073 (attribute::form_is_ref): Now methods.
3074
3075 2020-02-08 Tom Tromey <tom@tromey.com>
3076
3077 * dwarf2read.c (struct attribute, DW_STRING)
3078 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
3079 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
3080 (attr_form_is_block, attr_form_is_section_offset)
3081 (attr_form_is_constant, attr_form_is_ref): Move.
3082 * dwarf2/attribute.h: New file.
3083 * dwarf2/attribute.c: New file, from dwarf2read.c.
3084 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
3085
3086 2020-02-08 Tom Tromey <tom@tromey.com>
3087
3088 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
3089 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
3090 Move.
3091 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
3092 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
3093 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
3094 abbrev.c.
3095 * dwarf2/abbrev.h: New file.
3096 * dwarf2/abbrev.c: New file, from dwarf2read.c.
3097 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
3098
3099 2020-02-08 Tom Tromey <tom@tromey.com>
3100
3101 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
3102 (dwarf2_section_size, dwarf2_get_section_info)
3103 (create_signatured_type_table_from_debug_names)
3104 (create_addrmap_from_aranges, read_debug_names_from_section)
3105 (get_gdb_index_contents_from_section, read_comp_unit_head)
3106 (error_check_comp_unit_head, read_abbrev_offset)
3107 (create_debug_type_hash_table, init_cu_die_reader)
3108 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
3109 (read_comp_units_from_section, create_cus_hash_table)
3110 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3111 (create_dwp_v2_section, dwarf2_rnglists_process)
3112 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
3113 (abbrev_table_read_table, read_indirect_string_at_offset_from)
3114 (read_indirect_string_from_dwz, read_addr_index_1)
3115 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
3116 (dwarf_decode_macro_bytes, dwarf_decode_macros)
3117 (fill_in_loclist_baton): Update.
3118 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
3119 get_containing_section, get_bfd_owner, get_bfd_section,
3120 get_file_name, get_id, get_flags, empty, read>: Declare methods.
3121 (dwarf2_read_section, get_section_name, get_section_file_name)
3122 (get_containing_section, get_section_bfd_owner)
3123 (get_section_bfd_section, get_section_name, get_section_file_name)
3124 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
3125 declare.
3126 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
3127 (dwarf2_section_info::get_bfd_owner)
3128 (dwarf2_section_info::get_bfd_section)
3129 (dwarf2_section_info::get_name)
3130 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
3131 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
3132 (dwarf2_section_info::read): Now methods.
3133 * dwarf-index-write.c (class debug_names): Update.
3134
3135 2020-02-08 Tom Tromey <tom@tromey.com>
3136
3137 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
3138 Move to dwarf2/section.h.
3139 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
3140 (get_section_bfd_section, get_section_name)
3141 (get_section_file_name, get_section_id, get_section_flags)
3142 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
3143 dwarf2/section.c.
3144 * dwarf2/section.h: New file.
3145 * dwarf2/section.c: New file, from dwarf2read.c.
3146 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
3147
3148 2020-02-08 Tom Tromey <tom@tromey.com>
3149
3150 * dwarf2read.h (read_unsigned_leb128): Don't declare.
3151 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3152 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
3153 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
3154 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
3155 * dwarf2/leb.h: New file, from dwarf2read.c.
3156 * dwarf2/leb.c: New file, from dwarf2read.c.
3157 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
3158 Remove.
3159 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
3160 (COMMON_SFILES): Add dwarf2/leb.c.
3161
3162 2020-02-08 Joel Brobecker <brobecker@adacore.com>
3163
3164 GDB 9.1 released.
3165
3166 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3167
3168 PR gdb/25190:
3169 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
3170 * gdb/remote.c (remote_console_output): Update.
3171 * gdb/ui-file.c (fputs_unfiltered): Rename to...
3172 (ui_file_puts): ...this.
3173 * gdb/ui-file.h (ui_file_puts): Add declaration.
3174 * gdb/utils.c (emit_style_escape): Update.
3175 (flush_wrap_buffer): Update.
3176 (fputs_maybe_filtered): Update.
3177 (fputs_unfiltered): Add function.
3178
3179 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
3180
3181 * gdb/event-loop.c (gdb_wait_for_event): Update.
3182 * gdb/printcmd.c (printf_command): Update.
3183 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
3184 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
3185 (gdb_os_flush_stderr): Update.
3186 * gdb/remote.c (remote_console_output): Update.
3187 * gdb/ui-file.c (gdb_flush): Rename to...
3188 (ui_file_flush): ...this.
3189 (stderr_file::write): Update.
3190 (stderr_file::puts): Update.
3191 * gdb/ui-file.h (gdb_flush): Rename to...
3192 (ui_file_flush): ...this.
3193 * gdb/utils.c (gdb_flush): Add function.
3194 * gdb/utils.h (gdb_flush): Add declaration.
3195
3196 2020-02-07 Tom Tromey <tromey@adacore.com>
3197
3198 PR breakpoints/24915:
3199 * source.c (find_and_open_source): Do not check basenames_may_differ.
3200
3201 2020-02-07 Tom Tromey <tom@tromey.com>
3202
3203 * README: Update gdbserver documentation.
3204 * gdbserver: Move to top level.
3205 * configure.tgt (build_gdbserver): Remove.
3206 * configure.ac: Remove --enable-gdbserver.
3207 * configure: Rebuild.
3208 * Makefile.in (distclean): Don't mention gdbserver.
3209
3210 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
3211
3212 * source-cache.c (source_cache::ensure): Surround
3213 get_plain_source_lines with a try/catch.
3214 (source_cache::get_line_charpos): Get rid of try/catch
3215 and only check for the return value of "ensure".
3216 * tui/tui-source.c (tui_source_window::set_contents):
3217 Simplify "nlines" calculation.
3218
3219 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
3220
3221 * MAINTAINERS (Write After Approval): Add myself.
3222
3223 2020-02-05 Christian Biesinger <cbiesinger@google.com>
3224
3225 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
3226 function call.
3227
3228 2020-02-05 Christian Biesinger <cbiesinger@google.com>
3229
3230 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
3231
3232 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
3233
3234 * nat/riscv-linux-tdesc.h: New file.
3235 * nat/riscv-linux-tdesc.c: New file, taking code from...
3236 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3237 ... here.
3238 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
3239 NATDEPFILES.
3240
3241 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
3244 we don't set the fake simulator ptid to the null_ptid.
3245
3246 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
3247
3248 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
3249 * gdbthread.h (class thread_info) <resumed>: Likewise.
3250 * infrun.c (resume_1): Likewise.
3251 (proceed): Likewise.
3252 (infrun_thread_stop_requested): Likewise.
3253 (stop_all_threads): Likewise.
3254 (handle_inferior_event): Likewise.
3255 (restart_threads): Likewise.
3256 (finish_step_over): Likewise.
3257 (keep_going_stepped_thread): Likewise.
3258 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
3259 (linux_handle_extended_wait): Likewise.
3260 * record-btrace.c (get_thread_current_frame_id): Likewise.
3261 * record-full.c (record_full_wait_1): Likewise.
3262 * remote.c (remote_target::process_initial_stop_replies): Likewise.
3263 * target.c (target_resume): Likewise.
3264 * thread.c (set_running_thread): Likewise.
3265
3266 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3267
3268 * f-valprint.c (f77_print_array_1): Changed datatype of index
3269 variable to LONGEST from int to enable it to contain bound
3270 values correctly.
3271
3272 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
3273
3274 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
3275 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
3276 offsets according to FLEN determined.
3277 (riscv_linux_nat_target::read_description): Determine FLEN
3278 dynamically.
3279 (riscv_linux_nat_target::fetch_registers): Size regset buffer
3280 according to FLEN determined.
3281 (riscv_linux_nat_target::store_registers): Likewise.
3282
3283 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3284
3285 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3286 when reg->group is empty and reggroup is not.
3287
3288 2020-01-31 Tom Tromey <tromey@adacore.com>
3289
3290 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
3291 Call beneath target's mourn_inferior after unpushing.
3292
3293 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3294
3295 PR tui/9765
3296 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
3297 have enough lines to fill the screen, still return the lowest
3298 address we found.
3299
3300 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
3301
3302 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
3303 '-', '<', and '>' commands.
3304
3305 2020-01-29 Pedro Alves <palves@redhat.com>
3306 Sergio Durigan Junior <sergiodj@redhat.com>
3307
3308 * infcmd.c (construct_inferior_arguments): Assert that
3309 'argc' is greater than 0.
3310
3311 2020-01-29 Luis Machado <luis.machado@linaro.org>
3312
3313 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
3314 (BRK_INSN_MASK): Define to 0xd4200000.
3315 (aarch64_program_breakpoint_here_p): New function.
3316 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
3317 * arch-utils.c (default_program_breakpoint_here_p): Moved from
3318 breakpoint.c.
3319 * arch-utils.h (default_program_breakpoint_here_p): Moved from
3320 breakpoint.h
3321 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
3322 call gdbarch_program_breakpoint_here_p.
3323 (program_breakpoint_here): Moved to arch-utils.c, renamed to
3324 default_program_breakpoint_here_p, changed return type to bool and
3325 simplified.
3326 * breakpoint.h (program_breakpoint_here): Moved prototype to
3327 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
3328 return type to bool.
3329 * gdbarch.c: Regenerate.
3330 * gdbarch.h: Regenerate.
3331 * gdbarch.sh (program_breakpoint_here_p): New method.
3332 * infrun.c (handle_signal_stop): Call
3333 gdbarch_program_breakpoint_here_p.
3334
3335 2020-01-26 Tom Tromey <tom@tromey.com>
3336
3337 * ctfread.c (struct ctf_fp_info): Reindent.
3338 (_initialize_ctfread): Remove.
3339
3340 2020-01-26 Tom Tromey <tom@tromey.com>
3341
3342 * psymtab.c (partial_map_expand_apply)
3343 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3344 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3345 (psym_print_stats, psym_expand_symtabs_for_function)
3346 (psym_map_symbol_filenames, psym_map_matching_symbols)
3347 (psym_expand_symtabs_matching)
3348 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3349 (maintenance_check_psymtabs): Use new methods.
3350 * psympriv.h (struct partial_symtab) <readin_p,
3351 get_compunit_symtab>: New methods.
3352 <readin, compunit_symtab>: Remove members.
3353 (struct standard_psymtab): New.
3354 (struct legacy_psymtab): Derive from standard_psymtab.
3355 * dwarf2read.h (struct dwarf2_psymtab): Derive from
3356 standard_psymtab.
3357 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
3358
3359 2020-01-26 Tom Tromey <tom@tromey.com>
3360
3361 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
3362 read_dependencies. Add assert.
3363 * psymtab.c (partial_symtab::read_dependencies): New method.
3364 * psympriv.h (struct partial_symtab) <read_dependencies>: New
3365 method.
3366 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
3367 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
3368 read_dependencies.
3369 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
3370 Add assert.
3371
3372 2020-01-26 Tom Tromey <tom@tromey.com>
3373
3374 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
3375 Call expand_psymtab.
3376 (xcoff_read_symtab): Call expand_psymtab.
3377 (xcoff_start_psymtab, xcoff_end_psymtab): Set
3378 legacy_expand_psymtab.
3379 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
3380 method.
3381 (struct legacy_psymtab) <expand_psymtab>: Implement.
3382 <legacy_expand_psymtab>: New member.
3383 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
3384 (parse_partial_symbols): Set legacy_expand_psymtab.
3385 (psymtab_to_symtab_1): Change argument order. Call
3386 expand_psymtab.
3387 (new_psymtab): Set legacy_expand_psymtab.
3388 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
3389 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
3390 expand_psymtab.
3391 (dwarf2_psymtab::expand_psymtab): Rename from
3392 psymtab_to_symtab_1. Call expand_psymtab.
3393 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
3394 (dbx_end_psymtab): Likewise.
3395 (dbx_psymtab_to_symtab_1): Change argument order. Call
3396 expand_psymtab.
3397 (dbx_read_symtab): Call expand_psymtab.
3398 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
3399 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
3400 (ctf_psymtab::read_symtab): Call expand_psymtab.
3401
3402 2020-01-26 Tom Tromey <tom@tromey.com>
3403
3404 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
3405 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
3406 messages.
3407 * mdebugread.c (mdebug_read_symtab): Remove prints.
3408 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
3409 assert.
3410 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
3411
3412 2020-01-26 Tom Tromey <tom@tromey.com>
3413
3414 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
3415 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
3416 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
3417 legacy_symtab.
3418 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
3419 * psymtab.c (psymtab_to_symtab): Call method.
3420 (dump_psymtab): Update.
3421 * psympriv.h (struct partial_symtab): Add virtual destructor.
3422 <read_symtab>: New method.
3423 (struct legacy_symtab): New.
3424 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
3425 (struct pst_map) <pst>: Now a legacy_psymtab.
3426 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
3427 (new_psymtab): Use legacy_psymtab.
3428 * dwarf2read.h (struct dwarf2_psymtab): New.
3429 (struct dwarf2_per_cu_data) <psymtab>: Use it.
3430 * dwarf2read.c (dwarf2_create_include_psymtab)
3431 (dwarf2_build_include_psymtabs, create_type_unit_group)
3432 (create_partial_symtab, process_psymtab_comp_unit_reader)
3433 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
3434 (set_partial_user): Use dwarf2_psymtab.
3435 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
3436 (psymtab_to_symtab_1, process_full_comp_unit)
3437 (process_full_type_unit, dwarf2_ranges_read)
3438 (dwarf2_get_pc_bounds, psymtab_include_file_name)
3439 (dwarf_decode_lines): Use dwarf2_psymtab.
3440 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
3441 (add_address_entry_worker, write_one_signatured_type)
3442 (recursively_count_psymbols, recursively_write_psymbols)
3443 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
3444 (write_debug_names): Likewise.
3445 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
3446 <pst>: Now a legacy_psymtab.
3447 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
3448 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
3449 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
3450 * ctfread.c (struct ctf_psymtab): New.
3451 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
3452 ctf_psymtab.
3453 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
3454 (create_partial_symtab): Return a ctf_psymtab.
3455 (scan_partial_symbols): Update.
3456
3457 2020-01-26 Tom Tromey <tom@tromey.com>
3458
3459 * xcoffread.c (xcoff_start_psymtab): Use new.
3460 * psymtab.c (partial_symtab::partial_symtab): New constructor,
3461 renamed from start_psymtab_common.
3462 * psympriv.h (struct partial_symtab): Add new constructor.
3463 (start_psymtab_common): Don't declare.
3464 * mdebugread.c (parse_partial_symbols): Use new.
3465 * dwarf2read.c (create_partial_symtab): Use new.
3466 * dbxread.c (start_psymtab): Use new.
3467 * ctfread.c (create_partial_symtab): Use new.
3468
3469 2020-01-26 Tom Tromey <tom@tromey.com>
3470
3471 * xcoffread.c (xcoff_end_psymtab): Use new.
3472 * psymtab.c (start_psymtab_common): Use new.
3473 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
3474 Update.
3475 * psympriv.h (struct partial_symtab): Add parameters to
3476 constructor. Don't inline.
3477 (allocate_psymtab): Don't declare.
3478 * mdebugread.c (new_psymtab): Use new.
3479 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
3480 * dbxread.c (dbx_end_psymtab): Use new.
3481
3482 2020-01-26 Tom Tromey <tom@tromey.com>
3483
3484 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
3485 allocate_psymtab. Update documentation.
3486 * psymtab.c (psymtab_storage::install_psymtab): Rename from
3487 allocate_psymtab. Do not use new.
3488 (allocate_psymtab): Use new. Update.
3489
3490 2020-01-26 Tom Tromey <tom@tromey.com>
3491
3492 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3493 * psymtab.c (psym_print_stats): Update.
3494 * psympriv.h (struct partial_symtab) <readin,
3495 psymtabs_addrmap_supported, anonymous>: Now bool.
3496 * mdebugread.c (psymtab_to_symtab_1): Update.
3497 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
3498 (build_type_psymtabs_reader, psymtab_to_symtab_1)
3499 (process_full_comp_unit, process_full_type_unit): Update.
3500 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
3501 * ctfread.c (psymtab_to_symtab): Update.
3502
3503 2020-01-26 Tom Tromey <tom@tromey.com>
3504
3505 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
3506 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
3507 * psymtab.c (psymtab_storage): Delete psymtabs.
3508 (psymtab_storage::allocate_psymtab): Use new.
3509 (psymtab_storage::discard_psymtab): Use delete.
3510 * psympriv.h (struct partial_symtab): Add constructor and
3511 initializers.
3512
3513 2020-01-26 Tom Tromey <tom@tromey.com>
3514
3515 * machoread.c: Do not include psympriv.h.
3516
3517 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3518
3519 * NEWS: Mention the new option and the set/show commands.
3520
3521 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3522
3523 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
3524 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
3525 (validate_exec_file): New variables, enums, functions.
3526 (exec_file_locate_attach, print_section_info): Style the filenames.
3527 (_initialize_exec): Install show_exec_file_mismatch_command and
3528 set_exec_file_mismatch_command.
3529 * gdbcore.h (validate_exec_file): Declare.
3530 * infcmd.c (attach_command): Call validate_exec_file.
3531 * remote.c ( remote_target::remote_add_inferior): Likewise.
3532
3533 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3534
3535 * frame.c (find_frame_sal): Move call to get_next_frame into more
3536 inner scope.
3537 * inline-frame.c (inilne_state) <inline_state>: Update argument
3538 types.
3539 (inilne_state) <skipped_symbol>: Rename to...
3540 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
3541 (skip_inline_frames): Build vector of skipped symbols and use this
3542 to reate the inline_state.
3543 (inline_skipped_symbol): Add a comment and some assertions, fetch
3544 skipped symbol from the list.
3545
3546 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * buildsym.c (lte_is_less_than): Delete.
3549 (buildsym_compunit::end_symtab_with_blockvector): Create local
3550 lambda function to sort line table entries, and use
3551 std::stable_sort instead of std::sort.
3552 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
3553 markers when looking for a previous line.
3554
3555 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3556
3557 * dwarf2read.c (lnp_state_machine::record_line): Include
3558 end_sequence parameter in debug print out. Record the line if we
3559 are at an end_sequence marker even if it's not the start of a
3560 statement.
3561 * symmisc.c (maintenance_print_one_line_table): Print end of
3562 sequence markers with 'END' not '0'.
3563
3564 2020-01-24 Pedro Alves <palves@redhat.com>
3565
3566 PR gdb/25410
3567 * thread.c (scoped_restore_current_thread::restore): Use
3568 switch_to_inferior_no_thread.
3569 * exec.c: Include "progspace-and-thread.h".
3570 (add_target_sections, remove_target_sections):
3571 scoped_restore_current_pspace_and_thread instead of
3572 scoped_restore_current_thread.
3573 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
3574 and aspace to the inferior before calling clone_program_space.
3575 Remove stale comment.
3576
3577 2020-01-24 Christian Biesinger <cbiesinger@google.com>
3578
3579 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
3580 (arm_netbsd_nat_target::fetch_registers): ...this.
3581 (arm_nbsd_nat_target::store_registers): Rename to...
3582 (arm_netbsd_nat_target::store_registers): ...this.
3583
3584 2020-01-24 Christian Biesinger <cbiesinger@google.com>
3585
3586 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3587 register_t.
3588
3589 2020-01-24 Christian Biesinger <cbiesinger@google.com>
3590
3591 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
3592 Update comment.
3593 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
3594 Likewise.
3595 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
3596 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
3597 the correct replacement (iterate_over_regset_sections).
3598 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
3599 Update comment.
3600
3601 2020-01-24 Graham Markall <graham.markall@embecosm.com>
3602
3603 PR gdb/23718
3604 * gdb/python/python.c (execute_gdb_command): Call
3605 async_enable_stdin in catch block.
3606
3607 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
3610 SWITCH_THRU_ALL_UIS.
3611
3612 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 PR tui/9765
3615 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
3616 comment, add extra parameter, and update to store previous symbol
3617 when appropriate.
3618 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
3619 add extra parameter.
3620 * tui/tui-disasm.c (tui_disassemble): Update header comment,
3621 remove unneeded parameter, add try/catch around gdb_print_insn,
3622 rewrite to add items to asm_lines vector.
3623 (tui_find_backward_disassembly_start_address): New function.
3624 (tui_find_disassembly_address): Updated throughout.
3625 (tui_disasm_window::set_contents): Update for changes to
3626 tui_disassemble.
3627 (tui_disasm_window::do_scroll_vertical): No need to adjust the
3628 number of lines to scroll.
3629
3630 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
3633 (SECT_OFF_DATA): Likewise.
3634 (SECT_OFF_RODATA): Likewise.
3635 (SECT_OFF_TEXT): Likewise.
3636 (SECT_OFF_BSS): Likewise.
3637 (struct objfile) <text_section_offset, data_section_offset>: New
3638 methods.
3639 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
3640 objfile::text_section_offset.
3641 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
3642 * coffread.c (coff_symtab_read): Likewise.
3643 (enter_linenos): Likewise.
3644 (process_coff_symbol): Likewise.
3645 * ctfread.c (get_objfile_text_range): Likewise.
3646 * dtrace-probe.c (dtrace_probe::get_relocated_address):
3647 Use objfile::data_section_offset.
3648 * dwarf2-frame.c (execute_cfa_program): Use
3649 objfile::text_section_offset.
3650 (dwarf2_frame_find_fde): Likewise.
3651 * dwarf2read.c (create_addrmap_from_index): Likewise.
3652 (create_addrmap_from_aranges): Likewise.
3653 (dw2_find_pc_sect_compunit_symtab): Likewise.
3654 (process_psymtab_comp_unit_reader): Likewise.
3655 (add_partial_symbol): Likewise.
3656 (add_partial_subprogram): Likewise.
3657 (process_full_comp_unit): Likewise.
3658 (read_file_scope): Likewise.
3659 (read_func_scope): Likewise.
3660 (read_lexical_block_scope): Likewise.
3661 (read_call_site_scope): Likewise.
3662 (dwarf2_rnglists_process): Likewise.
3663 (dwarf2_ranges_process): Likewise.
3664 (dwarf2_ranges_read): Likewise.
3665 (dwarf_decode_lines_1): Likewise.
3666 (new_symbol): Likewise.
3667 (dwarf2_fetch_die_loc_sect_off): Likewise.
3668 (dwarf2_per_cu_text_offset): Likewise.
3669 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3670 * hppa-tdep.c (read_unwind_info): Likewise.
3671 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
3672 * psympriv.h (struct partial_symtab): Likewise.
3673 * psymtab.c (find_pc_sect_psymtab): Likewise.
3674 * solib-svr4.c (enable_break): Likewise.
3675 * stap-probe.c (relocate_address): Use
3676 objfile::data_section_offset.
3677 * xcoffread.c (enter_line_range): Use
3678 objfile::text_section_offset.
3679 (read_xcoff_symtab): Likewise.
3680
3681 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
3684 declaration to narrower scopes.
3685
3686 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
3687
3688 * darwin-nat.h (struct darwin_exception_msg, enum
3689 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
3690 Move up.
3691 (class darwin_nat_target) <wait_1, check_new_threads,
3692 decode_exception_message, decode_message, stop_inferior,
3693 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
3694 * darwin-nat.c (darwin_check_new_threads): Rename to...
3695 (darwin_nat_target::check_new_threads): ... this.
3696 (darwin_suspend_inferior_it): Remove.
3697 (darwin_decode_exception_message): Rename to...
3698 (darwin_nat_target::decode_exception_message): ... this.
3699 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
3700 (darwin_decode_message): Rename to...
3701 (darwin_nat_target::decode_message): ... this.
3702 (cancel_breakpoint): Rename to...
3703 (darwin_nat_target::cancel_breakpoint): ... this.
3704 (darwin_wait): Rename to...
3705 (darwin_nat_target::wait_1): ... this. Use range-based for loop
3706 instead of iterate_over_inferiors.
3707 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
3708 (darwin_stop_inferior): Rename to...
3709 (darwin_nat_target::stop_inferior): ... this.
3710 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
3711 (darwin_init_thread_list): Rename to...
3712 (darwin_nat_target::init_thread_list): ... this.
3713 (darwin_ptrace_him): Rename to...
3714 (darwin_nat_target::ptrace_him): ... this.
3715 (darwin_nat_target::create_inferior): Pass lambda function to
3716 fork_inferior.
3717 (darwin_nat_target::detach): Call stop_inferior instead of
3718 darwin_stop_inferior.
3719 * fork-inferior.h (fork_inferior): Change init_trace_fun
3720 parameter to gdb::function_view.
3721 * fork-inferior.c (fork_inferior): Likewise.
3722
3723 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
3724
3725 * i386-cygwin-tdep.c (core_process_module_section): Update.
3726 * windows-nat.c (struct lm_info_windows): Add text_offset.
3727 (windows_xfer_shared_libraries): Update.
3728 * windows-tdep.c (windows_xfer_shared_library):
3729 Add text_offset_cached argument.
3730 * windows-tdep.h (windows_xfer_shared_library): Update.
3731
3732 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * gdbarch.sh: Add declaration for _initialize_gdbarch.
3735
3736 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
3739 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
3740 replace with range-based for.
3741 (gdbsim_interrupt_inferior): Remove.
3742 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
3743 with a range-based for. Inline code from
3744 gdbsim_interrupt_inferior.
3745
3746 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * infrun.c (proceed): Fix indentation.
3749
3750 2020-01-21 Tom Tromey <tromey@adacore.com>
3751
3752 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
3753 * python/python.c (python_extension_ops): Update.
3754 (gdbpy_colorize): New function.
3755 * python/lib/gdb/__init__.py (colorize): New function.
3756 * extension.h (ext_lang_colorize): Declare.
3757 * extension.c (ext_lang_colorize): New function.
3758 * extension-priv.h (struct extension_language_ops) <colorize>: New
3759 member.
3760 * cli/cli-style.c (_initialize_cli_style): Update help text.
3761
3762 2020-01-21 Luis Machado <luis.machado@linaro.org>
3763
3764 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
3765 <cond>: Change type to bool.
3766 (aarch64_displaced_step_b_cond): Update cond to use bool type.
3767 (aarch64_displaced_step_cb): Likewise.
3768 (aarch64_displaced_step_tb): Likewise.
3769
3770 2020-01-21 Luis Machado <luis.machado@linaro.org>
3771
3772 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
3773 output.
3774
3775 2020-01-21 Luis Machado <luis.machado@linaro.org>
3776
3777 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
3778 <pc_adjust>: Adjust the documentation.
3779 (aarch64_displaced_step_fixup): Check if PC really moved before
3780 adjusting it.
3781
3782 2020-01-19 Tom Tromey <tom@tromey.com>
3783
3784 * disasm.c (~gdb_disassembler): New destructor.
3785 (gdb_buffered_insn_length): Call disassemble_free_target.
3786 * disasm.h (class gdb_disassembler): Declare destructor. Use
3787 DISABLE_COPY_AND_ASSIGN.
3788
3789 2020-01-19 Tom Tromey <tom@tromey.com>
3790
3791 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
3792 (die_reader_func_ftype): Remove.
3793 (cutu_reader): New class.
3794 (dw2_get_file_names_reader): Remove "data" parameter.
3795 (dw2_get_file_names): Use cutu_reader.
3796 (create_debug_type_hash_table): Update.
3797 (read_cutu_die_from_dwo): Update comment.
3798 (lookup_dwo_unit): Add dwo_name parameter.
3799 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
3800 die_reader_func_ftype and data parameters.
3801 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
3802 Remove die_reader_func_ftype and data parameters.
3803 (~cutu_reader): New; from init_cutu_and_read_dies.
3804 (cutu_reader::cutu_reader): Rename from
3805 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
3806 and data parameters.
3807 (init_cutu_and_read_dies_simple): Remove.
3808 (struct process_psymtab_comp_unit_data): Remove.
3809 (process_psymtab_comp_unit_reader): Remove data parameter; add
3810 want_partial_unit and pretend_language parameters.
3811 (process_psymtab_comp_unit): Use cutu_reader.
3812 (build_type_psymtabs_reader): Remove data parameter.
3813 (build_type_psymtabs_1): Use cutu_reader.
3814 (process_skeletonless_type_unit): Likewise.
3815 (load_partial_comp_unit_reader): Remove.
3816 (load_partial_comp_unit): Use cutu_reader.
3817 (load_full_comp_unit_reader): Remove.
3818 (load_full_comp_unit): Use cutu_reader.
3819 (struct create_dwo_cu_data): Remove.
3820 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
3821 dwo_unit parameters.
3822 (create_cus_hash_table): Use cutu_reader.
3823 (struct dwarf2_read_addr_index_data): Remove.
3824 (dwarf2_read_addr_index_reader): Remove.
3825 (dwarf2_read_addr_index): Use cutu_reader.
3826 (read_signatured_type_reader): Remove.
3827 (read_signatured_type): Use cutu_reader.
3828
3829 2020-01-19 Tom Tromey <tom@tromey.com>
3830
3831 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
3832 * tui/tui-wingeneral.h (class tui_suppress_output): New.
3833 (tui_wrefresh): Declare.
3834 * tui/tui-wingeneral.c (suppress_output): New global.
3835 (tui_suppress_output, ~tui_suppress_output): New constructor and
3836 destructor.
3837 (tui_wrefresh): New function.
3838 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
3839 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
3840 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
3841 method.
3842 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
3843 tui_wrefresh.
3844 (tui_data_window::no_refresh): New method.
3845 (tui_data_item_window::refresh_window): Call tui_wrefresh.
3846 (tui_reg_command): Use tui_suppress_output
3847 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
3848 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
3849 method.
3850 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
3851
3852 2020-01-19 Tom Tromey <tom@tromey.com>
3853
3854 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3855 Handle case where symtab is null.
3856
3857 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * linux-fork.c (one_fork_p): Simplify.
3860
3861 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * top.c (struct qt_args): Remove.
3864 (kill_or_detach): Change return type to void, replace `void *`
3865 parameter with a proper one.
3866 (print_inferior_quit_action): Likewise.
3867 (quit_confirm): Use range-based for loop to iterate over inferiors.
3868 (quit_force): Likewise.
3869
3870 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
3873 `void *` parameter with proper parameters.
3874 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
3875 (print_one_inferior): Change return type to void, replace `void *`
3876 parameter with proper parameters.
3877 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
3878 inferiors.
3879 (get_other_inferior): Remove.
3880 (mi_cmd_remove_inferior): Use range-based loop to iterate over
3881 inferiors.
3882
3883 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * mi/mi-interp.c (report_initial_inferior): Remove.
3886 (mi_interp::init): Use range-based for to iterate over inferiors.
3887
3888 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
3889
3890 * python/py-inferior.c (build_inferior_list): Remove.
3891 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
3892
3893 2020-01-16 Christian Biesinger <cbiesinger@google.com>
3894
3895 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
3896 (btrace_stitch_trace): Likewise.
3897 * charset.c (intermediate_encoding): Likewise (vaild).
3898 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
3899 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
3900 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
3901
3902 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
3903
3904 * windows-tdep.c (windows_get_tlb_type):
3905 Add rtl_user_process_parameters type.
3906
3907 2020-01-16 Pedro Alves <palves@redhat.com>
3908 Norbert Lange <nolange79@gmail.com>
3909
3910 PR build/24805
3911 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
3912 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
3913 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
3914 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
3915 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
3916 (ps_plog): Redeclare exported functions with default visibility.
3917
3918 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
3919
3920 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
3921 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
3922
3923 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * infcmd.c (post_create_inferior): Use get_thread_regcache
3926 instead of get_current_regcache.
3927
3928 2020-01-14 Tom Tromey <tom@tromey.com>
3929
3930 PR symtab/12535:
3931 * python/python.c (gdbpy_decode_line): Treat empty string the same
3932 as no argument.
3933
3934 2020-01-14 Tom Tromey <tom@tromey.com>
3935
3936 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
3937
3938 2020-01-14 Tom Tromey <tom@tromey.com>
3939
3940 * nat/linux-btrace.c: Don't include <config.h>.
3941 * nat/linux-ptrace.c: Don't include <config.h>.
3942 * nat/x86-linux-dregs.c: Don't include <config.h>.
3943
3944 2020-01-14 Tom Tromey <tom@tromey.com>
3945
3946 * configure: Rebuild.
3947 * configure.ac: Move many checks to ../gdbsupport/common.m4.
3948
3949 2020-01-14 Tom Tromey <tom@tromey.com>
3950
3951 * nat/x86-linux-dregs.c: Include configh.h.
3952 * nat/linux-ptrace.c: Include configh.h.
3953 * nat/linux-btrace.c: Include configh.h.
3954 * defs.h: Include config.h, bfd.h.
3955 * configure.ac: Don't source common.host.
3956 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
3957 * configure: Rebuild.
3958 * acinclude.m4: Update path.
3959 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
3960 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
3961 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
3962 (CLIBS): Add LIBSUPPORT.
3963 (CDEPS): Likewise.
3964 (COMMON_SFILES): Remove gdbsupport files.
3965 (HFILES_NO_SRCDIR): Likewise.
3966 (stamp-version): Update path to create-version.sh.
3967 (ALLDEPFILES): Remove gdbsupport files.
3968
3969 2020-01-14 Tom Tromey <tom@tromey.com>
3970
3971 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
3972 USE_WIN32API when needed.
3973 * configure.ac (USE_WIN32API): Don't define.
3974 (WIN32LIBS): Use WIN32APILIBS.
3975 * configure: Rebuild.
3976
3977 2020-01-14 Tom Tromey <tom@tromey.com>
3978
3979 * configure: Rebuild.
3980 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
3981
3982 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3983
3984 * skip.c (skip_function_command): Make skip w/o arguments use the
3985 name of the inlined function if pc is inside any inlined function.
3986
3987 2020-01-14 Luis Machado <luis.machado@linaro.org>
3988
3989 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
3990 * infrun.c (resume_1): Likewise.
3991 (handle_inferior_event): Remove stale comment.
3992 * linux-nat.c (linux_nat_target::resume): Update comments.
3993 (save_stop_reason): Likewise.
3994 (linux_nat_filter_event): Likewise.
3995 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
3996
3997 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3998
3999 * elfread.c (record_minimal_symbol): Set section index to 0 for
4000 non-allocatable sections.
4001
4002
4003 2020-01-13 Ali Tamur <tamur@google.com>
4004
4005 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
4006 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
4007 to gdb::optional. Update comments.
4008 (dwo_file): Update comments.
4009 (read_attribute): Update API to take an additional out parameter,
4010 need_reprocess. This is used to mark attributes that need other
4011 attributes (e.g. str_offsets_base) for correct computation which may not
4012 have been read yet.
4013 (read_attribute_reprocess): New function declaration.
4014 (read_addr_index): Likewise.
4015 (read_dwo_str_index): Likewise.
4016 (read_stub_str_index): Likewise.
4017 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
4018 (lookup_addr_base): New function definition.
4019 (lookup_ranges_base): Likewise.
4020 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
4021 lookup_ranges_base.
4022 (init_cutu_and_read_dies): Update comments.
4023 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
4024 unit. This is used to inherit parent's str_offsets_base and addr_base.
4025 Update comments.
4026 (init_cutu_and_read_dies_simple): Reflect API changes.
4027 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
4028 (create_cus_hash_table): Change API to take parent compile unit.
4029 Reflect API changes.
4030 (open_and_init_dwo_file): Reflect API changes.
4031 (dwarf2_get_pc_bounds): Update comments.
4032 (dwarf2_record_block_ranges): Likewise.
4033 (read_full_die_1): Change implementation to reprocess attributes that
4034 need str_offsets_base and addr_base.
4035 (partial_die_info::read): Likewise.
4036 (read_attribute_reprocess): New function definition.
4037 (read_attribute_value): Change API to take an additional out parameter,
4038 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
4039 when a non-dwo compile unit has index based attributes.
4040 (read_attribute): Reflect API changes.
4041 (read_addr_index_1): Reflect API changes. Update comments.
4042 (dwarf2_read_addr_index_data): Reflect API changes.
4043 (dwarf2_read_addr_index): Likewise.
4044 (read_str_index): Change API and implementation. This becomes a helper
4045 to be used by the new string index related methods. Update error
4046 message and comments.
4047 (read_dwo_str_index): New function definition.
4048 (read_stub_str_index): Likewise.
4049 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
4050 * symfile.h (dwarf2_debug_sections): Likewise.
4051 * xcoffread.c (dwarf2_debug_sections): Likewise.
4052
4053 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * gdbcore.h (struct core_fns) <core_read_registers>: Change
4056 core_reg_sect type to gdb_byte *.
4057 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
4058 * cris-tdep.c (fetch_core_registers): Likewise.
4059 * corelow.c (core_target::get_core_register_section): Change
4060 type of `contents` to gdb::byte_vector.
4061
4062 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * tui/tui-wingeneral.c (box_win): Position the title in the center
4065 of the border.
4066
4067 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4068
4069 * corelow.c (core_target::get_core_register_section): Use
4070 std::vector instead of alloca.
4071
4072 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * warning.m4: Add -Wmissing-declarations to build_warnings.
4075 * configure: Re-generate.
4076
4077 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4078
4079 * python/python.c (init__gdb_module): Add declaration.
4080
4081 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
4084 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
4085 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
4086 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
4087 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
4088 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
4089 * ada-exp.y (_initialize_ada_exp): Add declaration.
4090 * ada-lang.c (_initialize_ada_language): Add declaration.
4091 * ada-tasks.c (_initialize_tasks): Add declaration.
4092 * agent.c (_initialize_agent): Add declaration.
4093 * aix-thread.c (_initialize_aix_thread): Add declaration.
4094 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
4095 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
4096 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
4097 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
4098 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
4099 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4100 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
4101 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
4102 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
4103 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
4104 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
4105 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
4106 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
4107 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
4108 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
4109 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
4110 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
4111 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
4112 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
4113 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
4114 * annotate.c (_initialize_annotate): Add declaration.
4115 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
4116 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
4117 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
4118 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
4119 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
4120 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
4121 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
4122 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
4123 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
4124 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
4125 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
4126 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
4127 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4128 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
4129 * auto-load.c (_initialize_auto_load): Add declaration.
4130 * auxv.c (_initialize_auxv): Add declaration.
4131 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
4132 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
4133 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
4134 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
4135 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
4136 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
4137 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
4138 * breakpoint.c (_initialize_breakpoint): Add declaration.
4139 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
4140 * btrace.c (_initialize_btrace): Add declaration.
4141 * charset.c (_initialize_charset): Add declaration.
4142 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
4143 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4144 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4145 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
4146 * cli/cli-script.c (_initialize_cli_script): Add declaration.
4147 * cli/cli-style.c (_initialize_cli_style): Add declaration.
4148 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
4149 * coffread.c (_initialize_coffread): Add declaration.
4150 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
4151 * compile/compile.c (_initialize_compile): Add declaration.
4152 * complaints.c (_initialize_complaints): Add declaration.
4153 * completer.c (_initialize_completer): Add declaration.
4154 * copying.c (_initialize_copying): Add declaration.
4155 * corefile.c (_initialize_core): Add declaration.
4156 * corelow.c (_initialize_corelow): Add declaration.
4157 * cp-abi.c (_initialize_cp_abi): Add declaration.
4158 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
4159 * cp-support.c (_initialize_cp_support): Add declaration.
4160 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
4161 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
4162 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
4163 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
4164 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
4165 * ctfread.c (_initialize_ctfread): Add declaration.
4166 * d-lang.c (_initialize_d_language): Add declaration.
4167 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
4168 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
4169 * dbxread.c (_initialize_dbxread): Add declaration.
4170 * dcache.c (_initialize_dcache): Add declaration.
4171 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
4172 * disasm.c (_initialize_disasm): Add declaration.
4173 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
4174 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
4175 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
4176 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
4177 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
4178 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
4179 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
4180 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
4181 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
4182 * elfread.c (_initialize_elfread): Add declaration.
4183 * exec.c (_initialize_exec): Add declaration.
4184 * extension.c (_initialize_extension): Add declaration.
4185 * f-lang.c (_initialize_f_language): Add declaration.
4186 * f-valprint.c (_initialize_f_valprint): Add declaration.
4187 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
4188 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
4189 * filesystem.c (_initialize_filesystem): Add declaration.
4190 * findcmd.c (_initialize_mem_search): Add declaration.
4191 * findvar.c (_initialize_findvar): Add declaration.
4192 * fork-child.c (_initialize_fork_child): Add declaration.
4193 * frame-base.c (_initialize_frame_base): Add declaration.
4194 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4195 * frame.c (_initialize_frame): Add declaration.
4196 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
4197 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
4198 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
4199 * gcore.c (_initialize_gcore): Add declaration.
4200 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
4201 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
4202 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
4203 * gdbarch.c (_initialize_gdbarch): Add declaration.
4204 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
4205 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
4206 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
4207 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
4208 * go-lang.c (_initialize_go_language): Add declaration.
4209 * go32-nat.c (_initialize_go32_nat): Add declaration.
4210 * guile/guile.c (_initialize_guile): Add declaration.
4211 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4212 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
4213 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
4214 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
4215 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
4216 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
4217 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
4218 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
4219 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
4220 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
4221 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
4222 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
4223 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
4224 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
4225 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
4226 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
4227 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
4228 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
4229 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
4230 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
4231 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
4232 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
4233 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
4234 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
4235 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
4236 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
4237 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
4238 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
4239 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
4240 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
4241 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
4242 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
4243 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
4244 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
4245 * infcall.c (_initialize_infcall): Add declaration.
4246 * infcmd.c (_initialize_infcmd): Add declaration.
4247 * inflow.c (_initialize_inflow): Add declaration.
4248 * infrun.c (_initialize_infrun): Add declaration.
4249 * interps.c (_initialize_interpreter): Add declaration.
4250 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
4251 * jit.c (_initialize_jit): Add declaration.
4252 * language.c (_initialize_language): Add declaration.
4253 * linux-fork.c (_initialize_linux_fork): Add declaration.
4254 * linux-nat.c (_initialize_linux_nat): Add declaration.
4255 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
4256 * linux-thread-db.c (_initialize_thread_db): Add declaration.
4257 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
4258 * m2-lang.c (_initialize_m2_language): Add declaration.
4259 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
4260 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
4261 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
4262 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
4263 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4264 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
4265 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
4266 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
4267 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
4268 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4269 * machoread.c (_initialize_machoread): Add declaration.
4270 * macrocmd.c (_initialize_macrocmd): Add declaration.
4271 * macroscope.c (_initialize_macroscope): Add declaration.
4272 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
4273 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
4274 * maint.c (_initialize_maint_cmds): Add declaration.
4275 * mdebugread.c (_initialize_mdebugread): Add declaration.
4276 * memattr.c (_initialize_mem): Add declaration.
4277 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
4278 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
4279 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
4280 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
4281 * mi/mi-main.c (_initialize_mi_main): Add declaration.
4282 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
4283 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
4284 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
4285 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
4286 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
4287 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
4288 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
4289 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
4290 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
4291 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4292 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
4293 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
4294 * mipsread.c (_initialize_mipsread): Add declaration.
4295 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
4296 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
4297 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
4298 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
4299 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
4300 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
4301 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
4302 * nto-procfs.c (_initialize_procfs): Add declaration.
4303 * objc-lang.c (_initialize_objc_language): Add declaration.
4304 * observable.c (_initialize_observer): Add declaration.
4305 * opencl-lang.c (_initialize_opencl_language): Add declaration.
4306 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
4307 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
4308 * osabi.c (_initialize_gdb_osabi): Add declaration.
4309 * osdata.c (_initialize_osdata): Add declaration.
4310 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4311 * parse.c (_initialize_parse): Add declaration.
4312 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
4313 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
4314 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
4315 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
4316 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
4317 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
4318 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
4319 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
4320 * printcmd.c (_initialize_printcmd): Add declaration.
4321 * probe.c (_initialize_probe): Add declaration.
4322 * proc-api.c (_initialize_proc_api): Add declaration.
4323 * proc-events.c (_initialize_proc_events): Add declaration.
4324 * proc-service.c (_initialize_proc_service): Add declaration.
4325 * procfs.c (_initialize_procfs): Add declaration.
4326 * producer.c (_initialize_producer): Add declaration.
4327 * psymtab.c (_initialize_psymtab): Add declaration.
4328 * python/python.c (_initialize_python): Add declaration.
4329 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
4330 * record-btrace.c (_initialize_record_btrace): Add declaration.
4331 * record-full.c (_initialize_record_full): Add declaration.
4332 * record.c (_initialize_record): Add declaration.
4333 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
4334 * regcache.c (_initialize_regcache): Add declaration.
4335 * reggroups.c (_initialize_reggroup): Add declaration.
4336 * remote-notif.c (_initialize_notif): Add declaration.
4337 * remote-sim.c (_initialize_remote_sim): Add declaration.
4338 * remote.c (_initialize_remote): Add declaration.
4339 * reverse.c (_initialize_reverse): Add declaration.
4340 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
4341 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
4342 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
4343 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
4344 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
4345 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
4346 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
4347 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
4348 Add declaration.
4349 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
4350 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
4351 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
4352 * rust-exp.y (_initialize_rust_exp): Add declaration.
4353 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
4354 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
4355 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
4356 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
4357 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
4358 * score-tdep.c (_initialize_score_tdep): Add declaration.
4359 * ser-go32.c (_initialize_ser_dos): Add declaration.
4360 * ser-mingw.c (_initialize_ser_windows): Add declaration.
4361 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
4362 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
4363 * ser-uds.c (_initialize_ser_socket): Add declaration.
4364 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
4365 * serial.c (_initialize_serial): Add declaration.
4366 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
4367 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
4368 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
4369 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
4370 * skip.c (_initialize_step_skip): Add declaration.
4371 * sol-thread.c (_initialize_sol_thread): Add declaration.
4372 * solib-aix.c (_initialize_solib_aix): Add declaration.
4373 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
4374 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
4375 * solib-frv.c (_initialize_frv_solib): Add declaration.
4376 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4377 * solib-target.c (_initialize_solib_target): Add declaration.
4378 * solib.c (_initialize_solib): Add declaration.
4379 * source-cache.c (_initialize_source_cache): Add declaration.
4380 * source.c (_initialize_source): Add declaration.
4381 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
4382 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
4383 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
4384 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
4385 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
4386 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
4387 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
4388 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
4389 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
4390 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
4391 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
4392 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
4393 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
4394 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
4395 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
4396 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
4397 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
4398 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
4399 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
4400 * stabsread.c (_initialize_stabsread): Add declaration.
4401 * stack.c (_initialize_stack): Add declaration.
4402 * stap-probe.c (_initialize_stap_probe): Add declaration.
4403 * std-regs.c (_initialize_frame_reg): Add declaration.
4404 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
4405 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
4406 * symfile.c (_initialize_symfile): Add declaration.
4407 * symmisc.c (_initialize_symmisc): Add declaration.
4408 * symtab.c (_initialize_symtab): Add declaration.
4409 * target.c (_initialize_target): Add declaration.
4410 * target-connection.c (_initialize_target_connection): Add
4411 declaration.
4412 * target-dcache.c (_initialize_target_dcache): Add declaration.
4413 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
4414 * thread.c (_initialize_thread): Add declaration.
4415 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
4416 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
4417 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
4418 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
4419 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
4420 * tracectf.c (_initialize_ctf): Add declaration.
4421 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
4422 * tracefile.c (_initialize_tracefile): Add declaration.
4423 * tracepoint.c (_initialize_tracepoint): Add declaration.
4424 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
4425 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
4426 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
4427 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
4428 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
4429 * tui/tui-win.c (_initialize_tui_win): Add declaration.
4430 * tui/tui.c (_initialize_tui): Add declaration.
4431 * typeprint.c (_initialize_typeprint): Add declaration.
4432 * ui-style.c (_initialize_ui_style): Add declaration.
4433 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
4434 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
4435 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
4436 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
4437 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
4438 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
4439 * unittests/filtered_iterator-selftests.c
4440 (_initialize_filtered_iterator_selftests): Add declaration.
4441 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
4442 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
4443 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
4444 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
4445 * unittests/main-thread-selftests.c
4446 (_initialize_main_thread_selftests): Add declaration.
4447 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
4448 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
4449 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
4450 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
4451 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
4452 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
4453 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
4454 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
4455 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
4456 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
4457 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
4458 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
4459 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
4460 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
4461 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
4462 declaration.
4463 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
4464 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
4465 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
4466 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
4467 * user-regs.c (_initialize_user_regs): Add declaration.
4468 * utils.c (_initialize_utils): Add declaration.
4469 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
4470 * valops.c (_initialize_valops): Add declaration.
4471 * valprint.c (_initialize_valprint): Add declaration.
4472 * value.c (_initialize_values): Add declaration.
4473 * varobj.c (_initialize_varobj): Add declaration.
4474 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
4475 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
4476 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4477 * windows-nat.c (_initialize_windows_nat): Add declaration.
4478 (_initialize_check_for_gdb_ini): Add declaration.
4479 (_initialize_loadable): Add declaration.
4480 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
4481 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
4482 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
4483 * xcoffread.c (_initialize_xcoffread): Add declaration.
4484 * xml-support.c (_initialize_xml_support): Add declaration.
4485 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
4486 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
4487 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
4488 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
4489
4490 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4491
4492 * regformats/regdat.sh: Generate declaration for init function.
4493
4494 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4495
4496 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
4497 up.
4498 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
4499 close_one_inferior>: New methods.
4500 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
4501 pass down target to find_inferior_pid.
4502 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
4503 Pass down target to find_inferior_ptid.
4504 (gdbsim_target::create_inferior): Pass down target to
4505 add_thread_silent.
4506 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
4507 target down to find_inferior_ptid and switch_to_thread.
4508 (gdbsim_target::close): Update to call close_one_inferior.
4509 (struct resume_data): Remove.
4510 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
4511 directly, rather than through a void pointer.
4512 (gdbsim_target::resume): Update to call resume_one_inferior.
4513
4514 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4515
4516 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
4517
4518 2020-01-12 Pedro Alves <palves@redhat.com>
4519
4520 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
4521 directly for the current inferior instead of
4522 discard_all_inferiors.
4523 (discard_all_inferiors): Delete.
4524
4525 2020-01-11 Tom Tromey <tom@tromey.com>
4526
4527 * tui/tui-wingeneral.c (box_win): Check cli_styling.
4528 * tui/tui-winsource.c (tui_source_window_base::refill): Use
4529 deprecated_safe_get_selected_frame.
4530
4531 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532
4533 * inferior.c (print_inferior): Switch inferior before printing it.
4534
4535 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
4536 Pedro Alves <palves@redhat.com>
4537
4538 * progspace-and-thread.c (switch_to_program_space_and_thread):
4539 Assert there's an inferior for PSPACE. Use
4540 switch_to_inferior_no_thread to switch the inferior too.
4541 * progspace.c (program_space::~program_space): Call
4542 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
4543 (program_space::free_all_objfiles): Don't call clear_symtab_users
4544 here.
4545 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
4546
4547 2020-01-10 Pedro Alves <palves@redhat.com>
4548
4549 * NEWS: Mention multi-target debugging, "info connections", and
4550 "add-inferior -no-connection".
4551
4552 2020-01-10 Pedro Alves <palves@redhat.com>
4553
4554 * infrun.c: Include "target-connection.h".
4555 (check_multi_target_resumption): New.
4556 (proceed): Call it.
4557 * target-connection.c (make_target_connection_string): Make
4558 extern.
4559 * target-connection.h (make_target_connection_string): Declare.
4560
4561 2020-01-10 Pedro Alves <palves@redhat.com>
4562
4563 * Makefile.in (COMMON_SFILES): Add target-connection.c.
4564 * inferior.c (uiout_field_connection): New function.
4565 (print_inferior): Add new "connection-id" column.
4566 (add_inferior_command): Show connection number/string of added
4567 inferior.
4568 * process-stratum-target.h
4569 (process_stratum_target::connection_string): New virtual method.
4570 (process_stratum_target::connection_number): New field.
4571 * remote.c (remote_target::connection_string): New override.
4572 * target-connection.c: New file.
4573 * target-connection.h: New file.
4574 * target.c (decref_target): Remove process_stratum targets from
4575 the connection list.
4576 (target_stack::push): Add process_stratum targets to the
4577 connection list.
4578
4579 2020-01-10 Pedro Alves <palves@redhat.com>
4580
4581 Revert:
4582 2016-04-12 Pedro Alves <palves@redhat.com>
4583 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
4584 Remove references to name.
4585 * serial.h (struct serial) <name>: Delete.
4586
4587 2020-01-10 Pedro Alves <palves@redhat.com>
4588
4589 * gdbarch-selftests.c (register_to_value_test): Remove "target
4590 already pushed" check.
4591
4592 2020-01-10 Pedro Alves <palves@redhat.com>
4593 John Baldwin <jhb@FreeBSD.org>
4594
4595 * aarch64-linux-nat.c
4596 (aarch64_linux_nat_target::thread_architecture): Adjust.
4597 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
4598 (task_command_1): Likewise.
4599 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
4600 (aix_thread_target::wait, aix_thread_target::fetch_registers)
4601 (aix_thread_target::store_registers)
4602 (aix_thread_target::thread_alive): Adjust.
4603 * amd64-fbsd-tdep.c: Include "inferior.h".
4604 (amd64fbsd_get_thread_local_address): Pass down target.
4605 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
4606 thread's gdbarch instead of target_gdbarch.
4607 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
4608 get_last_target_status.
4609 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
4610 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
4611 inferiors.
4612 (update_inserted_breakpoint_locations): Skip if inferiors with no
4613 execution.
4614 (update_global_location_list): When handling moribund locations,
4615 find representative inferior for location's pspace, and use thread
4616 count of its process_stratum target.
4617 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
4618 * bsd-uthread.c (bsd_uthread_target::wait): Use
4619 as_process_stratum_target and adjust thread_change_ptid and
4620 add_thread calls.
4621 (bsd_uthread_target::update_thread_list): Use
4622 as_process_stratum_target and adjust find_thread_ptid,
4623 thread_change_ptid and add_thread calls.
4624 * btrace.c (maint_btrace_packet_history_cmd): Adjust
4625 find_thread_ptid call.
4626 * corelow.c (add_to_thread_list): Adjust add_thread call.
4627 (core_target_open): Adjust add_thread_silent and thread_count
4628 calls.
4629 (core_target::pid_to_str): Adjust find_inferior_ptid call.
4630 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
4631 * event-top.c (async_disconnect): Pop targets from all inferiors.
4632 * exec.c (add_target_sections): Push exec target on all inferiors
4633 sharing the program space.
4634 (remove_target_sections): Remove the exec target from all
4635 inferiors sharing the program space.
4636 (exec_on_vfork): New.
4637 * exec.h (exec_on_vfork): Declare.
4638 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
4639 Pass it down.
4640 (fbsd_nat_target::update_thread_list): Adjust.
4641 (fbsd_nat_target::resume): Adjust.
4642 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
4643 down.
4644 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
4645 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
4646 get_thread_arch_regcache call.
4647 * fork-child.c (gdb_startup_inferior): Pass target down to
4648 startup_inferior and set_executing.
4649 * gdbthread.h (struct process_stratum_target): Forward declare.
4650 (add_thread, add_thread_silent, add_thread_with_info)
4651 (in_thread_list): Add process_stratum_target parameter.
4652 (find_thread_ptid(inferior*, ptid_t)): New overload.
4653 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
4654 parameter.
4655 (all_threads()): Delete overload.
4656 (all_threads, all_non_exited_threads): Add process_stratum_target
4657 parameter.
4658 (all_threads_safe): Use brace initialization.
4659 (thread_count): Add process_stratum_target parameter.
4660 (set_resumed, set_running, set_stop_requested, set_executing)
4661 (threads_are_executing, finish_thread_state): Add
4662 process_stratum_target parameter.
4663 (switch_to_thread): Use is_current_thread.
4664 * i386-fbsd-tdep.c: Include "inferior.h".
4665 (i386fbsd_get_thread_local_address): Pass down target.
4666 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
4667 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
4668 have_inferiors check.
4669 * inf-ptrace.c (inf_ptrace_target::create_inferior)
4670 (inf_ptrace_target::attach): Adjust.
4671 * infcall.c (run_inferior_call): Adjust.
4672 * infcmd.c (run_command_1): Pass target to
4673 scoped_finish_thread_state.
4674 (proceed_thread_callback): Skip inferiors with no execution.
4675 (continue_command): Rename 'all_threads' local to avoid hiding
4676 'all_threads' function. Adjust get_last_target_status call.
4677 (prepare_one_step): Adjust set_running call.
4678 (signal_command): Use user_visible_resume_target. Compare thread
4679 pointers instead of inferior_ptid.
4680 (info_program_command): Adjust to pass down target.
4681 (attach_command): Mark target's 'thread_executing' flag.
4682 (stop_current_target_threads_ns): New, factored out from ...
4683 (interrupt_target_1): ... this. Switch inferior before making
4684 target calls.
4685 * inferior-iter.h
4686 (struct all_inferiors_iterator, struct all_inferiors_range)
4687 (struct all_inferiors_safe_range)
4688 (struct all_non_exited_inferiors_range): Filter on
4689 process_stratum_target too. Remove explicit.
4690 * inferior.c (inferior::inferior): Push dummy target on target
4691 stack.
4692 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
4693 Add process_stratum_target parameter, and pass it down.
4694 (have_live_inferiors): Adjust.
4695 (switch_to_inferior_and_push_target): New.
4696 (add_inferior_command, clone_inferior_command): Handle
4697 "-no-connection" parameter. Use
4698 switch_to_inferior_and_push_target.
4699 (_initialize_inferior): Mention "-no-connection" option in
4700 the help of "add-inferior" and "clone-inferior" commands.
4701 * inferior.h: Include "process-stratum-target.h".
4702 (interrupt_target_1): Use bool.
4703 (struct inferior) <push_target, unpush_target, target_is_pushed,
4704 find_target_beneath, top_target, process_target, target_at,
4705 m_stack>: New.
4706 (discard_all_inferiors): Delete.
4707 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
4708 (all_inferiors, all_non_exited_inferiors): Add
4709 process_stratum_target parameter.
4710 * infrun.c: Include "gdb_select.h" and <unordered_map>.
4711 (target_last_proc_target): New global.
4712 (follow_fork_inferior): Push target on new inferior. Pass target
4713 to add_thread_silent. Call exec_on_vfork. Handle target's
4714 reference count.
4715 (follow_fork): Adjust get_last_target_status call. Also consider
4716 target.
4717 (follow_exec): Push target on new inferior.
4718 (struct execution_control_state) <target>: New field.
4719 (user_visible_resume_target): New.
4720 (do_target_resume): Call target_async.
4721 (resume_1): Set target's threads_executing flag. Consider resume
4722 target.
4723 (commit_resume_all_targets): New.
4724 (proceed): Also consider resume target. Skip threads of inferiors
4725 with no execution. Commit resumtion in all targets.
4726 (start_remote): Pass current inferior to wait_for_inferior.
4727 (infrun_thread_stop_requested): Consider target as well. Pass
4728 thread_info pointer to clear_inline_frame_state instead of ptid.
4729 (infrun_thread_thread_exit): Consider target as well.
4730 (random_pending_event_thread): New inferior parameter. Use it.
4731 (do_target_wait): Rename to ...
4732 (do_target_wait_1): ... this. Add inferior parameter, and pass it
4733 down.
4734 (threads_are_resumed_pending_p, do_target_wait): New.
4735 (prepare_for_detach): Adjust calls.
4736 (wait_for_inferior): New inferior parameter. Handle it. Use
4737 do_target_wait_1 instead of do_target_wait.
4738 (fetch_inferior_event): Adjust. Switch to representative
4739 inferior. Pass target down.
4740 (set_last_target_status): Add process_stratum_target parameter.
4741 Save target in global.
4742 (get_last_target_status): Add process_stratum_target parameter and
4743 handle it.
4744 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
4745 (context_switch): Check inferior_ptid == null_ptid before calling
4746 inferior_thread().
4747 (get_inferior_stop_soon): Pass down target.
4748 (wait_one): Rename to ...
4749 (poll_one_curr_target): ... this.
4750 (struct wait_one_event): New.
4751 (wait_one): New.
4752 (stop_all_threads): Adjust.
4753 (handle_no_resumed, handle_inferior_event): Adjust to consider the
4754 event's target.
4755 (switch_back_to_stepped_thread): Also consider target.
4756 (print_stop_event): Update.
4757 (normal_stop): Update. Also consider the resume target.
4758 * infrun.h (wait_for_inferior): Remove declaration.
4759 (user_visible_resume_target): New declaration.
4760 (get_last_target_status, set_last_target_status): New
4761 process_stratum_target parameter.
4762 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4763 process_stratum_target parameter, and use it.
4764 (clear_inline_frame_state (thread_info*)): New.
4765 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
4766 process_stratum_target parameter.
4767 (clear_inline_frame_state (thread_info*)): Declare.
4768 * linux-fork.c (delete_checkpoint_command): Pass target down to
4769 find_thread_ptid.
4770 (checkpoint_command): Adjust.
4771 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
4772 instead of just tweaking inferior_ptid.
4773 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
4774 (exit_lwp): Pass target down to find_thread_ptid.
4775 (attach_proc_task_lwp_callback): Pass target down to
4776 add_thread/set_running/set_executing.
4777 (linux_nat_target::attach): Pass target down to
4778 thread_change_ptid.
4779 (get_detach_signal): Pass target down to find_thread_ptid.
4780 Consider last target status's target.
4781 (linux_resume_one_lwp_throw, resume_lwp)
4782 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
4783 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
4784 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
4785 (linux_nat_target::async_wait_fd): New.
4786 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
4787 target down.
4788 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
4789 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
4790 * linux-thread-db.c (struct thread_db_info::process_target): New
4791 field.
4792 (add_thread_db_info): Save target.
4793 (get_thread_db_info): New process_stratum_target parameter. Also
4794 match target.
4795 (delete_thread_db_info): New process_stratum_target parameter.
4796 Also match target.
4797 (thread_from_lwp): Adjust to pass down target.
4798 (thread_db_notice_clone): Pass down target.
4799 (check_thread_db_callback): Pass down target.
4800 (try_thread_db_load_1): Always push the thread_db target.
4801 (try_thread_db_load, record_thread): Pass target down.
4802 (thread_db_target::detach): Pass target down. Always unpush the
4803 thread_db target.
4804 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
4805 target down. Always unpush the thread_db target.
4806 (find_new_threads_callback, thread_db_find_new_threads_2)
4807 (thread_db_target::update_thread_list): Pass target down.
4808 (thread_db_target::pid_to_str): Pass current inferior down.
4809 (thread_db_target::get_thread_local_address): Pass target down.
4810 (thread_db_target::resume, maintenance_check_libthread_db): Pass
4811 target down.
4812 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
4813 * procfs.c (procfs_target::procfs_init_inferior): Declare.
4814 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
4815 (procfs_init_inferior): Rename to ...
4816 (procfs_target::procfs_init_inferior): ... this and adjust.
4817 (procfs_target::create_inferior, procfs_notice_thread)
4818 (procfs_do_thread_registers): Adjust.
4819 * ppc-fbsd-tdep.c: Include "inferior.h".
4820 (ppcfbsd_get_thread_local_address): Pass down target.
4821 * proc-service.c (ps_xfer_memory): Switch current inferior and
4822 program space as well.
4823 (get_ps_regcache): Pass target down.
4824 * process-stratum-target.c
4825 (process_stratum_target::thread_address_space)
4826 (process_stratum_target::thread_architecture): Pass target down.
4827 * process-stratum-target.h
4828 (process_stratum_target::threads_executing): New field.
4829 (as_process_stratum_target): New.
4830 * ravenscar-thread.c
4831 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
4832 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
4833 down.
4834 * record-btrace.c (record_btrace_target::info_record): Adjust.
4835 (record_btrace_target::record_method)
4836 (record_btrace_target::record_is_replaying)
4837 (record_btrace_target::fetch_registers)
4838 (get_thread_current_frame_id, record_btrace_target::resume)
4839 (record_btrace_target::wait, record_btrace_target::stop): Pass
4840 target down.
4841 * record-full.c (record_full_wait_1): Switch to event thread.
4842 Pass target down.
4843 * regcache.c (regcache::regcache)
4844 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
4845 process_stratum_target parameter and handle it.
4846 (current_thread_target): New global.
4847 (get_thread_regcache): Add process_stratum_target parameter and
4848 handle it. Switch inferior before calling target method.
4849 (get_thread_regcache): Pass target down.
4850 (get_thread_regcache_for_ptid): Pass target down.
4851 (registers_changed_ptid): Add process_stratum_target parameter and
4852 handle it.
4853 (registers_changed_thread, registers_changed): Pass target down.
4854 (test_get_thread_arch_aspace_regcache): New.
4855 (current_regcache_test): Define a couple local test_target_ops
4856 instances and use them for testing.
4857 (readwrite_regcache): Pass process_stratum_target parameter.
4858 (cooked_read_test, cooked_write_test): Pass mock_target down.
4859 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
4860 (get_thread_arch_aspace_regcache): Add process_stratum_target
4861 parameter.
4862 (regcache::target): New method.
4863 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
4864 (regcache::registers_changed_ptid): Add process_stratum_target
4865 parameter.
4866 (regcache::m_target): New field.
4867 (registers_changed_ptid): Add process_stratum_target parameter.
4868 * remote.c (remote_state::supports_vCont_probed): New field.
4869 (remote_target::async_wait_fd): New method.
4870 (remote_unpush_and_throw): Add remote_target parameter.
4871 (get_current_remote_target): Adjust.
4872 (remote_target::remote_add_inferior): Push target.
4873 (remote_target::remote_add_thread)
4874 (remote_target::remote_notice_new_inferior)
4875 (get_remote_thread_info): Pass target down.
4876 (remote_target::update_thread_list): Skip threads of inferiors
4877 bound to other targets. (remote_target::close): Don't discard
4878 inferiors. (remote_target::add_current_inferior_and_thread)
4879 (remote_target::process_initial_stop_replies)
4880 (remote_target::start_remote)
4881 (remote_target::remote_serial_quit_handler): Pass down target.
4882 (remote_target::remote_unpush_target): New remote_target
4883 parameter. Unpush the target from all inferiors.
4884 (remote_target::remote_unpush_and_throw): New remote_target
4885 parameter. Pass it down.
4886 (remote_target::open_1): Check whether the current inferior has
4887 execution instead of checking whether any inferior is live. Pass
4888 target down.
4889 (remote_target::remote_detach_1): Pass down target. Use
4890 remote_unpush_target.
4891 (extended_remote_target::attach): Pass down target.
4892 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
4893 (remote_target::append_resumption): Pass down target.
4894 (remote_target::append_pending_thread_resumptions)
4895 (remote_target::remote_resume_with_hc, remote_target::resume)
4896 (remote_target::commit_resume): Pass down target.
4897 (remote_target::remote_stop_ns): Check supports_vCont_probed.
4898 (remote_target::interrupt_query)
4899 (remote_target::remove_new_fork_children)
4900 (remote_target::check_pending_events_prevent_wildcard_vcont)
4901 (remote_target::remote_parse_stop_reply)
4902 (remote_target::process_stop_reply): Pass down target.
4903 (first_remote_resumed_thread): New remote_target parameter. Pass
4904 it down.
4905 (remote_target::wait_as): Pass down target.
4906 (unpush_and_perror): New remote_target parameter. Pass it down.
4907 (remote_target::readchar, remote_target::remote_serial_write)
4908 (remote_target::getpkt_or_notif_sane_1)
4909 (remote_target::kill_new_fork_children, remote_target::kill): Pass
4910 down target.
4911 (remote_target::mourn_inferior): Pass down target. Use
4912 remote_unpush_target.
4913 (remote_target::core_of_thread)
4914 (remote_target::remote_btrace_maybe_reopen): Pass down target.
4915 (remote_target::pid_to_exec_file)
4916 (remote_target::thread_handle_to_thread_info): Pass down target.
4917 (remote_target::async_wait_fd): New.
4918 * riscv-fbsd-tdep.c: Include "inferior.h".
4919 (riscv_fbsd_get_thread_local_address): Pass down target.
4920 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
4921 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
4922 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
4923 Adjust.
4924 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
4925 * solib-svr4.c (enable_break): Pass down target.
4926 * spu-multiarch.c (parse_spufs_run): Pass down target.
4927 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
4928 * target-delegates.c: Regenerate.
4929 * target.c (g_target_stack): Delete.
4930 (current_top_target): Return the current inferior's top target.
4931 (target_has_execution_1): Refer to the passed-in inferior's top
4932 target.
4933 (target_supports_terminal_ours): Check whether the initial
4934 inferior was already created.
4935 (decref_target): New.
4936 (target_stack::push): Incref/decref the target.
4937 (push_target, push_target, unpush_target): Adjust.
4938 (target_stack::unpush): Defref target.
4939 (target_is_pushed): Return bool. Adjust to refer to the current
4940 inferior's target stack.
4941 (dispose_inferior): Delete, and inline parts ...
4942 (target_preopen): ... here. Only dispose of the current inferior.
4943 (target_detach): Hold strong target reference while detaching.
4944 Pass target down.
4945 (target_thread_name): Add assertion.
4946 (target_resume): Pass down target.
4947 (target_ops::beneath, find_target_at): Adjust to refer to the
4948 current inferior's target stack.
4949 (get_dummy_target): New.
4950 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
4951 has a thread running.
4952 (initialize_targets): Rename to ...
4953 (_initialize_target): ... this.
4954 * target.h: Include "gdbsupport/refcounted-object.h".
4955 (struct target_ops): Inherit refcounted_object.
4956 (target_ops::shortname, target_ops::longname): Make const.
4957 (target_ops::async_wait_fd): New method.
4958 (decref_target): Declare.
4959 (struct target_ops_ref_policy): New.
4960 (target_ops_ref): New typedef.
4961 (get_dummy_target): Declare function.
4962 (target_is_pushed): Return bool.
4963 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
4964 (all_matching_threads_iterator::all_matching_threads_iterator):
4965 Handle filter target.
4966 * thread-iter.h (struct all_matching_threads_iterator, struct
4967 all_matching_threads_range, class all_non_exited_threads_range):
4968 Filter by target too. Remove explicit.
4969 * thread.c (threads_executing): Delete.
4970 (inferior_thread): Pass down current inferior.
4971 (clear_thread_inferior_resources): Pass down thread pointer
4972 instead of ptid_t.
4973 (add_thread_silent, add_thread_with_info, add_thread): Add
4974 process_stratum_target parameter. Use it for thread and inferior
4975 searches.
4976 (is_current_thread): New.
4977 (thread_info::deletable): Use it.
4978 (find_thread_ptid, thread_count, in_thread_list)
4979 (thread_change_ptid, set_resumed, set_running): New
4980 process_stratum_target parameter. Pass it down.
4981 (set_executing): New process_stratum_target parameter. Pass it
4982 down. Adjust reference to 'threads_executing'.
4983 (threads_are_executing): New process_stratum_target parameter.
4984 Adjust reference to 'threads_executing'.
4985 (set_stop_requested, finish_thread_state): New
4986 process_stratum_target parameter. Pass it down.
4987 (switch_to_thread): Also match inferior.
4988 (switch_to_thread): New process_stratum_target parameter. Pass it
4989 down.
4990 (update_threads_executing): Reimplement.
4991 * top.c (quit_force): Pop targets from all inferior.
4992 (gdb_init): Don't call initialize_targets.
4993 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
4994 Declare.
4995 (windows_add_thread, windows_delete_thread): Adjust.
4996 (get_windows_debug_event): Rename to ...
4997 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
4998 * tracefile-tfile.c (tfile_target_open): Pass down target.
4999 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
5000 Forward declare.
5001 (switch_to_thread): Add process_stratum_target parameter.
5002 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
5003 parameter. Use it.
5004 (mi_on_resume): Pass target down.
5005 * nat/fork-inferior.c (startup_inferior): Add
5006 process_stratum_target parameter. Pass it down.
5007 * nat/fork-inferior.h (startup_inferior): Add
5008 process_stratum_target parameter.
5009 * python/py-threadevent.c (py_get_event_thread): Pass target down.
5010
5011 2020-01-10 Pedro Alves <palves@redhat.com>
5012
5013 * remote.c (remote_target::start_remote): Don't set inferior_ptid
5014 directly. Instead find the first thread in the thread list and
5015 use switch_to_thread.
5016
5017 2020-01-10 Pedro Alves <palves@redhat.com>
5018
5019 * remote.c (remote_target::remote_add_inferior): Don't bind a
5020 process to the current inferior if the current inferior is already
5021 bound to a process.
5022
5023 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5024 Pedro Alves <palves@redhat.com>
5025
5026 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
5027 If no process is specified, return null_ptid instead of
5028 inferior_ptid.
5029 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
5030 TARGET_WAITKIND_SIGNALLED with no pid.
5031
5032 2020-01-10 Pedro Alves <palves@redhat.com>
5033
5034 * remote.c (first_remote_resumed_thread): New.
5035 (remote_target::wait_as): Use it as default event_ptid instead of
5036 inferior_ptid.
5037
5038 2020-01-10 Pedro Alves <palves@redhat.com>
5039
5040 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
5041
5042 2020-01-10 Pedro Alves <palves@redhat.com>
5043
5044 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
5045 not -1.
5046
5047 2020-01-10 Pedro Alves <palves@redhat.com>
5048
5049 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
5050 ptid to get_last_target_status.
5051 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
5052 ptid to get_last_target_status.
5053 * infcmd.c (continue_command): Don't pass a target_waitstatus to
5054 get_last_target_status.
5055 (info_program_command): Don't pass a target_waitstatus to
5056 get_last_target_status.
5057 * infrun.c (init_wait_for_inferior): Use
5058 nullify_last_target_wait_ptid.
5059 (get_last_target_status): Handle nullptr arguments.
5060 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
5061 (print_stop_event): Don't pass a ptid to get_last_target_status.
5062 (normal_stop): Don't pass a ptid to get_last_target_status.
5063 * infrun.h (get_last_target_status, set_last_target_status): Move
5064 comments here and update.
5065 (nullify_last_target_wait_ptid): Declare.
5066 * linux-fork.c (fork_load_infrun_state): Remove local extern
5067 declaration of nullify_last_target_wait_ptid.
5068 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
5069 to get_last_target_status.
5070
5071 2020-01-10 Pedro Alves <palves@redhat.com>
5072
5073 * gdbthread.h (scoped_restore_current_thread)
5074 <dont_restore, restore, m_dont_restore>: Declare.
5075 * thread.c (thread_alive): Add assertion. Return bool.
5076 (switch_to_thread_if_alive): New.
5077 (prune_threads): Switch inferior/thread.
5078 (print_thread_info_1): Switch thread before calling target methods.
5079 (scoped_restore_current_thread::restore): New, factored out from
5080 ...
5081 (scoped_restore_current_thread::~scoped_restore_current_thread):
5082 ... this.
5083 (scoped_restore_current_thread::scoped_restore_current_thread):
5084 Add assertion.
5085 (thread_apply_all_command, thread_select): Use
5086 switch_to_thread_if_alive.
5087 * infrun.c (proceed, restart_threads, handle_signal_stop)
5088 (switch_back_to_stepped_thread): Switch current thread before
5089 calling target methods.
5090
5091 2020-01-10 Pedro Alves <palves@redhat.com>
5092
5093 * inferior.c (switch_to_inferior_no_thread): New function,
5094 factored out from ...
5095 (inferior_command): ... here.
5096 * inferior.h (switch_to_inferior_no_thread): Declare.
5097 * mi/mi-main.c (run_one_inferior): Use
5098 switch_to_inferior_no_thread.
5099
5100 2020-01-10 Pedro Alves <palves@redhat.com>
5101
5102 * infcmd.c (kill_command): Remove dead code.
5103
5104 2020-01-10 Pedro Alves <palves@redhat.com>
5105
5106 * remote.c (remote_target::mourn_inferior): No longer check
5107 whether the target is running.
5108
5109 2020-01-10 Pedro Alves <palves@redhat.com>
5110
5111 * corelow.c (core_target::has_execution): Change parameter type to
5112 inferior pointer.
5113 * inferior.c (number_of_live_inferiors): Use
5114 inferior::has_execution instead of target_has_execution_1.
5115 * inferior.h (inferior::has_execution): New.
5116 * linux-thread-db.c (thread_db_target::update_thread_list): Use
5117 inferior::has_execution instead of target_has_execution_1.
5118 * process-stratum-target.c
5119 (process_stratum_target::has_execution): Change parameter type to
5120 inferior pointer. Check the inferior's PID instead of
5121 inferior_ptid.
5122 * process-stratum-target.h
5123 (process_stratum_target::has_execution): Change parameter type to
5124 inferior pointer.
5125 * record-full.c (record_full_core_target::has_execution): Change
5126 parameter type to inferior pointer.
5127 * target.c (target_has_execution_1): Change parameter type to
5128 inferior pointer.
5129 (target_has_execution_current): Adjust.
5130 * target.h (target_ops::has_execution): Change parameter type to
5131 inferior pointer.
5132 (target_has_execution_1): Change parameter type to inferior
5133 pointer. Change return type to bool.
5134 * tracefile.h (tracefile_target::has_execution): Change parameter
5135 type to inferior pointer.
5136
5137 2020-01-10 Pedro Alves <palves@redhat.com>
5138
5139 * exceptions.c (print_flush): Remove current_top_target() check.
5140
5141 2020-01-10 Pedro Alves <palves@redhat.com>
5142
5143 * remote.c (show_remote_exec_file): Show the current inferior's
5144 exec-file instead of the command variable's value.
5145
5146 2020-01-10 Pedro Alves <palves@redhat.com>
5147
5148 * record-full.c (record_full_resume_ptid): New global.
5149 (record_full_target::resume): Set it.
5150 (record_full_wait_1): Use record_full_resume_ptid instead of
5151 inferior_ptid.
5152
5153 2020-01-10 Pedro Alves <palves@redhat.com>
5154
5155 * gdbthread.h (scoped_restore_current_thread)
5156 <dont_restore, restore, m_dont_restore>: Declare.
5157 * thread.c (thread_alive): Add assertion. Return bool.
5158 (switch_to_thread_if_alive): New.
5159 (prune_threads): Switch inferior/thread.
5160 (print_thread_info_1): Switch thread before calling target methods.
5161 (scoped_restore_current_thread::restore): New, factored out from
5162 ...
5163 (scoped_restore_current_thread::~scoped_restore_current_thread):
5164 ... this.
5165 (scoped_restore_current_thread::scoped_restore_current_thread):
5166 Add assertion.
5167 (thread_apply_all_command, thread_select): Use
5168 switch_to_thread_if_alive.
5169
5170 2020-01-10 George Barrett <bob@bob131.so>
5171
5172 * stap-probe.c (stap_modify_semaphore): Don't check for null
5173 semaphores.
5174 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
5175 for null semaphores.
5176
5177 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5178
5179 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
5180 all source windows, and maintain horizontal scroll status while
5181 doing so.
5182
5183 2020-01-09 Tom Tromey <tom@tromey.com>
5184
5185 PR tui/18932:
5186 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
5187 update_source_window, not print_source_lines.
5188
5189 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * tui/tui.c (tui_enable): Register tui hooks after calling
5192 tui_display_main.
5193
5194 2020-01-09 Christian Biesinger <cbiesinger@google.com>
5195
5196 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
5197
5198 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * thread.c (print_thread_info_1): Fix indentation.
5201
5202 2020-01-09 Christian Biesinger <cbiesinger@google.com>
5203
5204 * symtab.c (general_symbol_info::compute_and_set_names): Move the
5205 unique_xmalloc_ptr outside the if to always free the demangled name.
5206
5207 2020-01-08 Tom Tromey <tromey@adacore.com>
5208
5209 * xcoffread.c (enter_line_range, read_xcoff_symtab)
5210 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
5211 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
5212 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
5213 Remove.
5214 (section_offsets): New typedef.
5215 * symtab.c (fixup_section, get_msymbol_address): Update.
5216 * symmisc.c (dump_msymbols): Update.
5217 * symfile.h (relative_addr_info_to_section_offsets)
5218 (symfile_map_offsets_to_segments): Update.
5219 * symfile.c (build_section_addr_info_from_objfile)
5220 (init_objfile_sect_indices): Update.
5221 (struct place_section_arg): Change type of "offsets".
5222 (place_section): Update.
5223 (relative_addr_info_to_section_offsets): Change type of
5224 "section_offsets". Remove "num_sections" parameter.
5225 (default_symfile_offsets, syms_from_objfile_1)
5226 (set_objfile_default_section_offset): Update.
5227 (reread_symbols): No need to preserve section offsets by hand.
5228 (symfile_map_offsets_to_segments): Change type of "offsets".
5229 * stap-probe.c (relocate_address): Update.
5230 * stabsread.h (process_one_symbol): Update.
5231 * solib-target.c (struct lm_info_target) <offsets>: Change type.
5232 (solib_target_relocate_section_addresses): Update.
5233 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
5234 Update.
5235 * solib-frv.c (frv_relocate_main_executable): Update.
5236 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5237 * solib-aix.c (solib_aix_get_section_offsets): Change return
5238 type.
5239 (solib_aix_solib_create_inferior_hook): Update.
5240 * remote.c (remote_target::get_offsets): Update.
5241 * psymtab.c (find_pc_sect_psymtab): Update.
5242 * psympriv.h (struct partial_symbol) <address, text_low,
5243 text_high>: Update.
5244 * objfiles.h (obj_section_offset): Update.
5245 (struct objfile) <section_offsets>: Change type.
5246 <num_sections>: Remove.
5247 (objfile_relocate): Update.
5248 * objfiles.c (entry_point_address_query): Update
5249 (relocate_one_symbol): Change type of "section_offsets".
5250 (objfile_relocate1, objfile_relocate1): Change type of
5251 "new_offsets".
5252 (objfile_rebase1): Update.
5253 * mipsread.c (mipscoff_symfile_read): Update.
5254 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
5255 parameter.
5256 * mdebugread.c (parse_symbol): Change type of "section_offsets".
5257 (parse_external, psymtab_to_symtab_1): Update.
5258 * machoread.c (macho_symfile_offsets): Update.
5259 * ia64-tdep.c (ia64_find_unwind_table): Update.
5260 * hppa-tdep.c (read_unwind_info): Update.
5261 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
5262 * dwarf2read.c (create_addrmap_from_index)
5263 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5264 (process_psymtab_comp_unit_reader, add_partial_symbol)
5265 (add_partial_subprogram, process_full_comp_unit)
5266 (read_file_scope, read_func_scope, read_lexical_block_scope)
5267 (read_call_site_scope, dwarf2_rnglists_process)
5268 (dwarf2_ranges_process, dwarf2_ranges_read)
5269 (dwarf_decode_lines_1, var_decode_location, new_symbol)
5270 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
5271 Update.
5272 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
5273 Update.
5274 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
5275 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
5276 (process_one_symbol): Change type of "section_offsets".
5277 * ctfread.c (get_objfile_text_range): Update.
5278 * coffread.c (coff_symtab_read, enter_linenos)
5279 (process_coff_symbol): Update.
5280 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5281 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
5282
5283 2020-01-08 Tom Tromey <tromey@adacore.com>
5284
5285 * dwarf2read.c (parse_macro_definition): Use std::string.
5286 (parse_macro_definition): Likewise.
5287
5288 2020-01-08 Tom Tromey <tromey@adacore.com>
5289
5290 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
5291 (ATTR_ALLOC_CHUNK): Remove.
5292
5293 2020-01-08 Tom Tromey <tromey@adacore.com>
5294
5295 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
5296
5297 2020-01-08 Tom Tromey <tromey@adacore.com>
5298
5299 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
5300 (dwarf2_compute_name, open_dwo_file): Likewise.
5301 (process_enumeration_scope): Use std::vector.
5302 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
5303 (partial_die_info::fixup, dwarf2_start_subfile)
5304 (guess_full_die_structure_name, dwarf2_name): Likewise.
5305 (determine_prefix): Update.
5306 (guess_full_die_structure_name): Make return type const.
5307 (partial_die_full_name): Return unique_xmalloc_ptr.
5308 (DW_FIELD_ALLOC_CHUNK): Remove.
5309
5310 2020-01-07 Tom Tromey <tromey@adacore.com>
5311
5312 PR build/24937:
5313 * stap-probe.c (class stap_static_probe_ops): Add constructor.
5314
5315 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5316
5317 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
5318
5319 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
5320
5321 * stack.c (print_frame_info): Move disassemble_next_line code
5322 inside source_print block.
5323
5324 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5325
5326 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
5327 gdb/signals.h, as we are now using native signal symbols.
5328
5329 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
5330
5331 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
5332 overflow by an early check of content vs threshold.
5333 * tui/tui-source.c (tui_source_window::line_is_displayed):
5334 Likewise.
5335
5336 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5337
5338 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
5339
5340 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
5341
5342 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
5343 export table if no section contains it's RVA.
5344
5345 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5346
5347 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
5348
5349 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
5350
5351 * source.c (print_source_lines_base): Set last_line_listed.
5352
5353 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
5354
5355 * tui/tui-disasm.c: Remove trailing spaces.
5356
5357 2020-01-06 Eli Zaretskii <eliz@gnu.org>
5358 Pedro Alves <palves@redhat.com>
5359
5360 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
5361 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
5362 (windows_gdb_signal_to_target): New function, uses the above
5363 enumeration to convert GDB internal signal codes to equivalent
5364 Windows codes.
5365 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
5366 * windows-nat.c: Include "gdb_wait.h".
5367 (get_windows_debug_event): Extract the fatal exception from the
5368 exit status and convert to the equivalent Posix signal number.
5369 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
5370 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
5371 * gdbsupport/gdb_wait.c: New file, implements
5372 windows_status_to_termsig.
5373 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
5374 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
5375
5376 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
5379 show_layout.
5380
5381 2020-01-05 Luis Machado <luis.machado@linaro.org>
5382
5383 * aarch64-linux-nat.c
5384 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
5385 and bfd_mach_aarch64.
5386
5387 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5388
5389 * ui-file.c (stdio_file::can_emit_style_escape)
5390 (tee_file::can_emit_style_escape): Ensure style is used also on
5391 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
5392 to gdb_stdout.
5393 * main.c (set_gdb_data_directory): Use file style to output the
5394 warning that the given pathname is not a directory.
5395 * top.c (show_history_filename, gdb_safe_append_history)
5396 (show_gdb_datadir): Use file style.
5397
5398 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
5399
5400 * solib-target.c (struct lm_info_target):
5401 Change offsets to be a unique_xmalloc_ptr.
5402 (solib_target_relocate_section_addresses): Update.
5403
5404 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
5405
5406 * windows-nat.c (windows_clear_solib): Free so_list linked list.
5407
5408 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5409
5410 * MAINTAINERS (Write After Approval): Add myself.
5411
5412 2020-01-02 Luis Machado <luis.machado@linaro.org>
5413
5414 * proc-service.c (get_ps_regcache): Remove reference to obsolete
5415 Cell BE architecture.
5416 * target.h (struct target_ops) <thread_architecture>: Likewise.
5417
5418 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5419
5420 * Makefile.in: Use INSTALL_PROGRAM_ENV.
5421
5422 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
5423
5424 * MAINTAINERS (Write After Approval): Add myself.
5425
5426 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5427
5428 * gdbarch.sh: Update copyright year range of generated files.
5429
5430 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5431
5432 Update copyright year range in all GDB files.
5433
5434 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5435
5436 * copyright.py: Convert to Python 3.
5437
5438 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5439
5440 * copyright.py: Adapt after move of gnulib directory from gdb
5441 directory to toplevel directory.
5442
5443 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5444
5445 * copyright.py (main): Exit if run from the wrong directory.
5446
5447 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5448
5449 * top.c (print_gdb_version): Change copyright year to 2020.
5450
5451 2020-01-01 Joel Brobecker <brobecker@adacore.com>
5452
5453 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
5454
5455 For older changes see ChangeLog-2019.
5456 \f
5457 Local Variables:
5458 mode: change-log
5459 left-margin: 8
5460 fill-column: 74
5461 version-control: never
5462 coding: utf-8
5463 End:
This page took 0.21171 seconds and 5 git commands to generate.