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