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