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