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