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