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