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