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