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