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