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