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