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