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