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