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