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