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