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