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