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