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