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