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