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