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