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