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