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