]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1c47ec3e
TV
12020-10-26 Tom de Vries <tdevries@suse.de>
2
3 * dwarf2/read.c (process_full_comp_unit): Call
4 dwarf2_find_base_address.
5
6390859c
TT
62020-10-26 Tom Tromey <tromey@adacore.com>
7
8 * gdbtypes.c (create_range_type): Revert previous patch. Add
9 comment.
10
d744f0f9
PA
112020-10-26 Pedro Alves <pedro@palves.net>
12
13 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
14 (my_waitpid): Use gdb::handle_eintr.
15
006811bc
SM
162020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * acinclude.m4: Update ptrace.m4 path.
19 * ptrace.m4: Moved to gdbsupport.
20
c75e31a1
SM
212020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
24 instead of target_gdbarch.
25
32495661
SM
262020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * jit.c (jit_reader_load_command): Pass current inferior.
29 (jit_inferior_init): Change parameter type to inferior, use it.
30 (jit_inferior_created): Remove.
31 (jit_inferior_created_hook): Pass inferior parameter down.
32 (_initialize_jit): Use jit_inferior_created_hook instead of
33 jit_inferior_created.
34 * jit.h (jit_inferior_created_hook): Add inferior parameter.
35 * infrun.c (follow_exec): Pass inferior to
36 jit_inferior_created_hook.
37
3f66685e
SM
382020-10-24 Simon Marchi <simon.marchi@efficios.com>
39
40 * linux-thread-db.c (check_pid_namespace_match): Add inferior
41 parameter and use it.
42 (thread_db_inferior_created): Pass inferior argument.
43
a0ff652f
SM
442020-10-24 Simon Marchi <simon.marchi@efficios.com>
45
46 * aix-thread.c (aix_thread_inferior_created): Add inferior
47 parameter.
48 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
49 * dummy-frame.c (cleanup_dummy_frames): Likewise.
50 * jit.c (jit_inferior_created): Likewise.
51 * linux-thread-db.c (thread_db_inferior_created): Likewise.
52 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
53 * observable.h (inferior_created): Likewise.
54 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
55 * symfile-mem.c (add_vsyscall_page): Likewise.
56 * infcmd.c (post_create_inferior): Pass inferior argument.
57
3c67532c
JB
582020-10-24 Joel Brobecker <brobecker@adacore.com>
59
60 GDB 10.1 released.
61
8747316e
JB
622020-10-23 Joel Brobecker <brobecker@adacore.com>
63
64 * ada-typeprint.c (ada_print_type): Remove superfluous second call
65 to ada_check_typedef.
66
1a0ea399
AB
672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * f-exp.y (f_parse): Rename to...
70 (f_language::parser): ...this.
71 * f-lang.c (f_get_encoding): Rename to...
72 (f_language::get_encoding): ...this.
73 (f_op_print_tab): Rename to...
74 (f_language::op_print_tab): ...this.
75 (exp_descriptor_f): Rename to...
76 (f_language::exp_descriptor_tab): ...this.
77 (class f_language): Moved to f-lang.h.
78 (f_language::language_arch_info): New function, moved out of class
79 declaration.
80 (f_language::search_name_hash): Likewise.
81 (f_language::lookup_symbol_nonlocal): Likewise.
82 (f_language::get_symbol_name_matcher_inner): Likewise.
83 * f-lang.h: Add 'valprint.h' include.
84 (class f_language): Moved here from f-lang.c.
85 * f-typeprint.c (f_type_print_args): Delete commented out
86 declaration.
87 (f_print_typedef): Rename to...
88 (f_language::print_typedef): ...this.
89 (f_print_type): Rename to...
90 (f_language::print_type): ...this.
91 (f_type_print_varspec_prefix): Delete declaration and rename to...
92 (f_language::f_type_print_varspec_prefix): ...this.
93 (f_type_print_varspec_suffix): Delete declaration and rename to...
94 (f_language::f_type_print_varspec_suffix): ...this.
95 (f_type_print_base): Delete declaration and rename to...
96 (f_language::f_type_print_base): ...this.
97 * f-valprint.c (f_value_print_inner): Rename to...
98 (f_language::value_print_inner): ...this.
99 * parse.c: Delete 'f-lang.h' include.
100
88cefd9b
AB
1012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * language.h (language_defn::print_type): Add variable names in
104 declaration, and update header comment.
105
5399db93
AB
1062020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * ada-lang.c (ada_language::demangle): Rename to...
109 (ada_language::demangle_symbol): ...this.
110 * c-lang.c (cplus_language::demangle): Rename to...
111 (cplus_language::demangle_symbol): ...this.
112 * d-lang.c (d_language::demangle): Rename to...
113 (d_language::demangle_symbol): ...this.
114 * f-lang.c (f_language::demangle): Rename to...
115 (f_language::demangle_symbol): ...this.
116 * go-lang.c (go_language::demangle): Rename to...
117 (go_language::demangle_symbol): ...this.
118 * language.c (language_demangle): Update call to demangle_symbol.
119 (auto_or_unknown_language::demangle): Rename to...
120 (auto_or_unknown_language::demangle_symbol): ...this.
121 * language.h (language_defn::demangle): Rename to...
122 (language_defn::demangle_symbol): ...this.
123 * objc-lang.c (objc_language::demangle): Rename to...
124 (objc_language::demangle_symbol): ...this.
125 * rust-lang.c (rust_language::demangle): Rename to...
126 (rust_language::demangle_symbol): ...this.
127
4b2f86ef
AB
1282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
131 (iterate_over_file_blocks): Replace use of macro with the macros
132 definition.
133
e74b39de
AB
1342020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
137 * valprint.c (maybe_print_array_index): Replace use of macro with
138 the macros definition.
139
00c696a6
AB
1402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * ada-lang.c (ada_language::print_array_index): Call value_print
143 directly.
144 * language.c (language_defn::print_array_index): Likewise.
145 * language.h (LA_VALUE_PRINT): Delete.
146 * valprint.c (value_print): Call value_print on the
147 current_language directly.
148
d3b67c56
AB
1492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * language.h (LA_PRINT_TYPEDEF): Delete.
152 * typeprint.c (typedef_print): Call print_typedef directly on the
153 current_language object.
154
790e2a12
AB
1552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * m2-exp.y (m2_parse): Rename to...
158 (m2_language::parser): ...this. Update function signature.
159 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
160 (m2_op_print): Rename to...
161 (m2_language::op_print_tab): ...this, and make const.
162 (exp_descriptor_modula2): Rename to...
163 (m2_language::exp_descriptor_modula2): ...this.
164 (class m2_language): Move to m2-lang.h.
165 (m2_language::language_arch_info): New function, moved out of
166 class declaration.
167 (m2_language::printchar): New function, body from m2_printchar.
168 (m2_language::printstr): New function, moved out of class
169 declaration.
170 (m2_language::emitchar): Likewise.
171 * m2-lang.h (m2_parse): Delete declaration.
172 (m2_print_typedef): Delete declaration.
173 (m2_value_print_inner): Delete declaration.
174 (class m2_language): Class declaration moved from m2-lang.c,
175 larger functions are left in m2-lang.c.
176 * m2-typeprint.c (m2_print_typedef): Rename to...
177 (m2_language::print_typedef): ...this, and update function
178 signature.
179 * m2-valprint.c (m2_value_print_inner): Rename to...
180 (m2_language::value_print_inner): ...this, replace use of
181 LA_PRINT_STRING with a direct call to printstr member function,
182 and update recursive call.
183
b01175fc
AB
1842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * language.c (default_is_string_type_p): Delete, implementation
187 moved into auto_or_unknown_language::is_string_type_p.
188 (unk_op_print_tab): Moved into
189 auto_or_unknown_language::opcode_print_table.
190 (unknown_language_arch_info): Delete, implementation moved into
191 auto_or_unknown_language::language_arch_info.
192 (class auto_or_unknown_language): New class, member functions
193 copied from unknown_language class, with some updates.
194 (class unknown_language): Most member functions moved into
195 auto_or_unknown_language class. Inherit from
196 auto_or_unknown_language class.
197 (class auto_language): Inherit from auto_or_unknown_language.
198 Delete most member functions.
199
1a97fe8c
HD
2002020-10-22 Hannes Domani <ssbssa@yahoo.de>
201
202 * stabsread.c (read_member_functions): Remove gdb_assert.
203
6b9d0dfd
HD
2042020-10-22 Hannes Domani <ssbssa@yahoo.de>
205
206 * gdbtypes.c (init_complex_type): Check target type name.
207
4b4bb603
SM
2082020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * target-debug.h (target_debug_print_struct_target_ops_p):
211 Remove.
212 (target_debug_print_async_callback_ftype_p): Remove.
213 (target_debug_print_struct_trace_state_variable_p): Remove.
214 (target_debug_print_struct_traceframe_info_p): Remove.
215 (target_debug_print_VEC__btrace_block_s__pp): Remove.
216 (target_debug_print_enum_btrace_format): Remove.
217 (target_debug_print_enum_info_proc_what): Remove.
218 (target_debug_print_thread_info_pp): Remove.
219
24f5300a
SM
2202020-10-22 Simon Marchi <simon.marchi@efficios.com>
221
222 * target.h (struct target_ops) <make_corefile_notes>:
223 Change return type to unique pointer.
224 * target.c (dummy_make_corefile_notes): Likewise.
225 * exec.c (struct exec_target) <make_corefile_notes>:
226 Likewise.
227 (exec_target::make_corefile_notes): Likewise.
228 * procfs.c (class procfs_target) <make_corefile_notes>:
229 Likewise.
230 (procfs_do_thread_registers): Adjust to unique pointer.
231 (struct procfs_corefile_thread_data): Add constructor.
232 <note_data>: Change type to unique pointer.
233 (procfs_corefile_thread_callback): Adjust to unique pointer.
234 (procfs_target::make_corefile_notes): Change return type to
235 unique pointer.
236 * target-delegates.c: Re-generate.
237 * gcore.c (write_gcore_file_1): Adjust.
238 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
239 New.
240
5fb4027f
TV
2412020-10-22 Tom de Vries <tdevries@suse.de>
242
243 * block.c (find_block_in_blockvector): Make sure the returned block
244 contains pc.
245
4a636814
SM
2462020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
247
248 PR gdb/26693
249 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
250 parameter.
251 (load_cu): Pass existing CU.
252 (process_imported_unit_die): Likewise.
253 (follow_die_offset): Likewise.
254
1bd57575
LM
2552020-10-22 Luis Machado <luis.machado@linaro.org>
256
257 * corelow.c (core_target::xfer_partial): Also check for an empty
258 m_core_unavailable_mappings vector.
259
6b4c676c
AB
2602020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
263 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
264 * f-exp.y (arglist): Allow for a series of subranges.
265 (subrange): Add cases for subranges with strides.
266 * f-lang.c (value_f90_subarray): Catch use of array strides and
267 throw an error.
268 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
269
f2d8e4c5
AB
2702020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * expprint.c (print_subexp_standard): Change enum range_type to
273 range_flag and rename variables to match.
274 (dump_subexp_body_standard): Likewise.
275 * expression.h (enum range_type): Rename to...
276 (enum range_flag): ...this.
277 (range_types): Rename to...
278 (range_flags): ...this.
279 * f-lang.c (value_f90_subarray): Change enum range_type to
280 range_flag and rename variables to match.
281 * parse.c (operator_length_standard): Likewise.
282 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
283 range_type to range_flag.
284 * rust-lang.c (rust_evaluate_funcall): Likewise.
285 (rust_range): Likewise.
286 (rust_compute_range): Likewise.
287 (rust_subscript): Likewise.
288
2f1b18db
AB
2892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * expprint.c (print_subexp_standard): Update to reflect changes to
292 enum range_type.
293 (dump_subexp_body_standard): Likewise.
294 * expression.h (enum range_type): Convert to a bit field enum, and
295 make the enum unsigned.
296 * f-exp.y (subrange): Update to reflect changes to enum
297 range_type.
298 * f-lang.c (value_f90_subarray): Likewise.
299 * parse.c (operator_length_standard): Likewise.
300 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
301 * rust-lang.c (rust_range): Likewise.
302 (rust_compute_range): Likewise.
303 (rust_subscript): Likewise.
304
a46d1843
SM
3052020-10-21 Simon Marchi <simon.marchi@efficios.com>
306
307 * infrun.c (displaced_step_in_progress_thread): Fix comment.
308 (displaced_step_in_progress): Fix comment.
309
c21f37a8
SM
3102020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * gdbarch.sh (make_corefile_notes): Return unique pointer.
313 * gdbarch.c: Re-generate.
314 * gdbarch.h: Re-generate.
315 * gcore.c (write_gcore_file_1): Adjust.
316 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
317 constructor.
318 <note_data>: Change type to unique pointer.
319 <abort_iteration>: Change type to bool.
320 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
321 (fbsd_collect_thread_registers): Return void, adjust.
322 (struct fbsd_corefile_thread_data): Add construtor.
323 <note_data>: Change type to unique pointer.
324 (fbsd_corefile_thread): Adjust.
325 (fbsd_make_corefile_notes): Return unique pointer, adjust.
326 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
327 to unique pointer, adjust.
328 (struct linux_collect_regset_section_cb_data): Add constructor.
329 <note_data>: Change type to unique pointer.
330 <abort_iteration>: Change type to bool.
331 (linux_collect_thread_registers): Return void, adjust.
332 (struct linux_corefile_thread_data): Add constructor.
333 <note_data>: Change type to unique pointer.
334 (linux_corefile_thread): Adjust.
335 (linux_make_corefile_notes): Return unique pointer, adjust.
336
07fbbd01
SM
3372020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
338
339 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
340 * gdbarch.c: Re-generate.
341 * gdbarch.h: Re-generate.
342 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
343 bool.
344 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
345 Likewise.
346 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
347 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
348 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
349 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
350
39535193
SM
3512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * gdbarch.sh: Make generated predicates return bool.
354 * gdbarch.c: Re-generate.
355 * gdbarch.h: Re-generate.
356
ad523d01
TT
3572020-10-20 Tom Tromey <tom@tromey.com>
358
359 * varobj-iter.h (struct varobj_item): Remove typedef.
360
c4464ade
SM
3612020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
362
363 * infrun.c (currently_stepping): Change int to bool
364 (maybe_software_singlestep): Likewise.
365 (show_stop_on_solib_events): Likewise.
366 (stepping_past_nonsteppable_watchpoint): Likewise.
367 (displaced_step_in_progress_any_inferior): Likewise.
368 (displaced_step_in_progress_thread): Likewise.
369 (keep_going_stepped_thread): Likewise.
370 (thread_still_needs_step_over): Likewise.
371 (start_step_over): Likewise.
372 (do_target_resume): Likewise.
373 (resume_1): Likewise.
374 (clear_proceed_status): Likewise.
375 (thread_still_needs_step_over_bp): Likewise.
376 (proceed): Likewise.
377 (switch_back_to_stepped_thread): Likewise.
378 (adjust_pc_after_break): Likewise.
379 (stepped_in_from): Likewise.
380 (handle_stop_requested): Likewise.
381 (handle_syscall_event): Likewise.
382 (handle_no_resumed): Likewise.
383 (handle_inferior_event): Likewise.
384 (finish_step_over): Likewise.
385 (handle_signal_stop): Likewise.
386 (process_event_stop_test): Likewise.
387
2eb20436
SM
3882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * infrun.c (get_displaced_stepping_state): Fix comment.
391
e0c45ded
AS
3922020-10-20 Andreas Schwab <schwab@linux-m68k.org>
393
394 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
395
22cc388e
TT
3962020-10-19 Tom Tromey <tromey@adacore.com>
397
398 PR tui/26719
399 * tui/tui-winsource.h (struct tui_source_window_base)
400 <refresh_window>: Rename from refresh_pad.
401 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
402 Rename from refresh_pad.
403 (tui_source_window_base::show_source_content)
404 (tui_source_window_base::do_scroll_horizontal): Update.
405
3c6eb4d4
TBA
4062020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407
408 * thread.c (_initialize_thread): Fine-tune the help text of
409 'info threads'.
410
26703721
TBA
4112020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
412
413 * frame.c: Remove the unused 'uinteger_option_def' type alias.
414
61c26be8
MS
4152020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
416
417 * breakpoint.c (handle_jit_event): Add an argument, change how
418 `jit_event_handler` is called.
419
932539d7
TT
4202020-10-17 Tom Tromey <tom@tromey.com>
421
422 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
423 (scan_xcoff_symtab): Update.
424 * psymtab.h (class psymtab_storage) <global_psymbols,
425 static_psymbols, current_global_psymbols,
426 current_static_psymbols>: Remove.
427 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
428 (match_partial_symbol, lookup_partial_symbol): Update.
429 (print_partial_symbols): Change parameters.
430 (dump_psymtab, recursively_search_psymtabs)
431 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
432 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
433 (concat): Remove.
434 (end_psymtab_common): Simplify.
435 (append_psymbol_to_list): Change parameters.
436 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
437 (init_psymbol_list): Simplify.
438 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
439 * psympriv.h (struct partial_symtab) <empty>: New method.
440 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
441 Remove.
442 <global_psymbols, static_psymbols>: New members.
443 <add_psymbol>: New methods.
444 (add_psymbol_to_list): Don't declare.
445 (psymbol_placement): Move earlier.
446 * mdebugread.c (parse_partial_symbols): Update.
447 (handle_psymbol_enumerators): Change parameters.
448 (mdebug_expand_psymtab): Update.
449 * dwarf2/read.c (process_psymtab_comp_unit_reader)
450 (add_partial_symbol): Update.
451 * dwarf2/index-write.c (write_psymbols): Change parameters.
452 (write_one_signatured_type): Update.
453 (recursively_count_psymbols): Update.
454 (recursively_write_psymbols): Update.
455 (class debug_names) <recursively_write_psymbols>: Update.
456 <write_psymbols>: Change parameters.
457 <write_one_signatured_type>: Update.
458 * dbxread.c (read_dbx_symtab): Update.
459 (dbx_end_psymtab): Use partial_symtab::empty.
460 * ctfread.c (struct ctf_context) <pst>: New member.
461 (create_partial_symtab): Set it.
462 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
463 (scan_partial_symbols): Use the psymtab's context. Update.
464
cfabbd35
TT
4652020-10-17 Tom Tromey <tom@tromey.com>
466
467 * valprint.c (generic_value_print): Remove comment.
468 * m2-valprint.c (m2_value_print_inner): Remove comment.
469 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
470 type.
471
520596f2
TV
4722020-10-17 Tom de Vries <tdevries@suse.de>
473
474 PR symtab/26317
475 * source.c (select_source_symtab): Handling sal.symtab == NULL for
476 symbol main.
477
76547ab3
TV
4782020-10-14 Tom de Vries <tdevries@suse.de>
479
480 PR gdb/26733
481 * solib.c (solib_contains_address_p): Handle
482 'solib->sections == nullptr'.
483
d3a07122
SM
4842020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
485
486 PR gdb/26642
487 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
488 target can't do async.
489 * target.c (target_wait): Assert that we don't pass
490 TARGET_WNOHANG to a target that can't async.
491
1b71cfcf
KR
4922020-10-13 Kamil Rytarowski <n54@gmx.com>
493
494 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
495 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
496 * alpha-bsd-nat.c: Adjust include.
497 * alpha-bsd-tdep.h: Adjust comment.
498 * alpha-nbsd-tdep.c: Rename to ...
499 * alpha-netbsd-tdep.c: ... this, adjust include.
500 * amd64-nbsd-nat.c: Rename to ...
501 * amd64-netbsd-nat.c: ... this, adjust include.
502 * amd64-nbsd-tdep.c: Rename to ...
503 * amd64-netbsd-tdep.c: ... this, adjust include.
504 * amd64-tdep.h: Adjust include.
505 * arm-nbsd-nat.c: Rename to ...
506 * arm-netbsd-nat.c: ... this, adjust include.
507 * arm-nbsd-tdep.c: Rename to ...
508 * arm-netbsd-tdep.c: ... this, adjust include.
509 * arm-nbsd-tdep.h: Rename to ...
510 * arm-netbsd-tdep.h: ... this, adjust include.
511 * configure.nat: Adjust file lists.
512 * configure.tgt: Likewise.
513 * hppa-nbsd-nat.c: Rename to ...
514 * hppa-netbsd-nat.c: ... this, adjust include.
515 * hppa-nbsd-tdep.c: Rename to ...
516 * hppa-netbsd-tdep.c: ... this, adjust include.
517 * i386-nbsd-nat.c: Rename to ...
518 * i386-netbsd-nat.c: ... this, adjust include.
519 * i386-nbsd-tdep.c: Rename to ...
520 * i386-netbsd-tdep.c: ... this, adjust include.
521 * m68k-bsd-nat.c: Adjust include.
522 * mips-nbsd-nat.c: Rename to ...
523 * mips-netbsd-nat.c: ... this, adjust include.
524 * mips-nbsd-tdep.c: Rename to ...
525 * mips-netbsd-tdep.c: ... this, adjust include.
526 * mips-nbsd-tdep.h: Rename to ...
527 * mips-netbsd-tdep.h: ... this.
528 * nbsd-nat.c: Rename to ...
529 * netbsd-nat.c: ... this, adjust include.
530 * nbsd-nat.h: Rename to ...
531 * netbsd-nat.h: ... this, adjust include.
532 * nbsd-tdep.c: Rename to ...
533 * netbsd-tdep.c: ... this, adjust include.
534 * nbsd-tdep.h: Rename to ...
535 * netbsd-tdep.h: ... this.
536 * ppc-nbsd-nat.c: Rename to ...
537 * ppc-netbsd-nat.c: ... this, adjust include.
538 * ppc-nbsd-tdep.c: Rename to ...
539 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
540 * ppc-nbsd-tdep.h: Rename to ...
541 * ppc-netbsd-tdep.h: ... this.
542 * sh-nbsd-nat.c: Rename to ...
543 * sh-netbsd-nat.c: ... this, adjust include.
544 * sh-nbsd-tdep.c: Rename to ...
545 * sh-netbsd-tdep.c: ... this, adjust include.
546 * sparc-nbsd-nat.c: Rename to ...
547 * sparc-netbsd-nat.c: ... this.
548 * sparc-nbsd-tdep.c: Rename to ...
549 * sparc-netbsd-tdep.c: ... this, adjust include.
550 * sparc64-nbsd-nat.c: Rename to ...
551 * sparc64-netbsd-nat.c: ... this.
552 * sparc64-nbsd-tdep.c: Rename to ...
553 * sparc64-netbsd-tdep.c: ... this, adjust include.
554 * sparc64-tdep.h: Adjust comment.
555 * vax-bsd-nat.c: Adjust include.
556 * vax-nbsd-tdep.c: Rename to ...
557 * vax-netbsd-tdep.c: ... this, adjust include.
558
d7a78e5c
TT
5592020-10-12 Tom Tromey <tom@tromey.com>
560
561 * target.h (struct target_ops) <get_section_table>: Update.
562 (target_get_section_table): Update.
563 * target.c (target_get_section_table, target_section_by_addr)
564 (memory_xfer_partial_1): Update.
565 * target-section.h (target_section_table): Now an alias.
566 * target-delegates.c: Rebuild.
567 * target-debug.h (target_debug_print_target_section_table_p):
568 Rename from target_debug_print_struct_target_section_table_p.
569 * symfile.c (build_section_addr_info_from_section_table): Update.
570 * solib.c (solib_map_sections, solib_contains_address_p): Update.
571 * solib-svr4.c (scan_dyntag): Update.
572 * solib-dsbt.c (scan_dyntag): Update.
573 * remote.c (remote_target::remote_xfer_live_readonly_partial):
574 Update.
575 * record-full.c (record_full_core_target::xfer_partial): Update.
576 * progspace.h (struct program_space) <target_sections>: Update.
577 * exec.h (print_section_info): Update.
578 * exec.c (exec_target::close, build_section_table)
579 (add_target_sections, add_target_sections_of_objfile)
580 (remove_target_sections, exec_on_vfork)
581 (section_table_available_memory)
582 (section_table_xfer_memory_partial)
583 (exec_target::get_section_table, exec_target::xfer_partial)
584 (print_section_info, set_section_command)
585 (exec_set_section_address, exec_target::has_memory): Update.
586 * corelow.c (core_target::build_file_mappings)
587 (core_target::xfer_partial, core_target::info_proc_mappings)
588 (core_target::info_proc_mappings): Update.
589 * bfd-target.c (class target_bfd): Update
590
eda214ce
TT
5912020-10-12 Tom Tromey <tom@tromey.com>
592
593 * progspace.c (program_space::~program_space): Don't call
594 clear_section_table.
595 * exec.h (clear_section_table): Don't declare.
596 * exec.c (exec_target::close): Update.
597 (clear_section_table): Remove.
598
91840ee3
TT
5992020-10-12 Tom Tromey <tom@tromey.com>
600
601 * exec.c (add_target_sections_of_objfile): Simplify.
602
2d128614
TT
6032020-10-12 Tom Tromey <tom@tromey.com>
604
605 * solib.c (solib_map_sections): Update.
606 * record-full.c (record_full_core_open_1): Update.
607 * exec.h (build_section_table): Return a target_section_table.
608 * exec.c (exec_file_attach): Update.
609 (build_section_table): Return a target_section_table.
610 * corelow.c (core_target::core_target): Update.
611 * bfd-target.c (target_bfd::target_bfd): Update.
612
bb2a6777
TT
6132020-10-12 Tom Tromey <tom@tromey.com>
614
615 * target.c (target_section_by_addr, memory_xfer_partial_1):
616 Update.
617 * target-section.h (struct target_section_table): Use
618 std::vector.
619 * symfile.h (build_section_addr_info_from_section_table): Take a
620 target_section_table.
621 * symfile.c (build_section_addr_info_from_section_table): Take a
622 target_section_table.
623 * solist.h (struct so_list) <sections>: Change type.
624 <sections_end>: Remove.
625 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
626 (solib_contains_address_p): Update.
627 * solib-svr4.c (scan_dyntag): Update.
628 * solib-dsbt.c (scan_dyntag): Update.
629 * remote.c (remote_target::remote_xfer_live_readonly_partial):
630 Update.
631 * record-full.c (record_full_core_start, record_full_core_end):
632 Remove.
633 (record_full_core_sections): New global.
634 (record_full_core_open_1, record_full_core_target::xfer_partial):
635 Update.
636 * exec.h (build_section_table, section_table_xfer_memory_partial)
637 (add_target_sections): Take a target_section_table.
638 * exec.c (exec_file_attach, clear_section_table): Update.
639 (resize_section_table): Remove.
640 (build_section_table, add_target_sections): Take a
641 target_section_table.
642 (add_target_sections_of_objfile, remove_target_sections)
643 (exec_on_vfork): Update.
644 (section_table_available_memory): Take a target_section_table.
645 (section_table_read_available_memory): Update.
646 (section_table_xfer_memory_partial): Take a target_section_table.
647 (print_section_info, set_section_command)
648 (exec_set_section_address, exec_target::has_memory): Update.
649 * corelow.c (class core_target) <m_core_section_table,
650 m_core_file_mappings>: Remove braces.
651 <~core_target>: Remove.
652 (core_target::core_target): Update.
653 (core_target::~core_target): Remove.
654 (core_target::build_file_mappings)
655 (core_target::xfer_memory_via_mappings)
656 (core_target::xfer_partial, core_target::info_proc_mappings):
657 Update.
658 * bfd-target.c (target_bfd::xfer_partial): Update.
659 (target_bfd::target_bfd): Update.
660 (target_bfd::~target_bfd): Remove.
661
7b466b10
TT
6622020-10-12 Tom Tromey <tom@tromey.com>
663
664 * target.h (struct target_section, struct target_section_table):
665 Move to target-section.h.
666 * target-section.h: New file.
667
87a37e5e
PA
6682020-10-12 Pedro Alves <pedro@palves.net>
669
670 PR exp/26602
671 * valops.c (struct struct_field_searcher): New.
672 (update_search_result): Rename to ...
673 (struct_field_searcher::update_result): ... this. Simplify
674 prototype. Record all found fields.
675 (do_search_struct_field): Rename to ...
676 (struct_field_searcher::search): ... this. Simplify prototype.
677 Maintain stack of visited baseclass path. Call update_result for
678 fields too. Keep searching fields in baseclasses instead of
679 stopping at the first found field.
680 (search_struct_field): Use struct_field_searcher. When looking
681 for fields, report ambiguous access attempts.
682
9370fd51
AB
6832020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * frame.c (inside_main_func): Check full symbols as well as
686 minimal symbols.
687
59c8a30b
JB
6882020-10-09 Joel Brobecker <brobecker@adacore.com>
689
690 * ada-lang.c (advance_wild_match): Rewrite the function's
691 description. Change the type of target0, t0 and t1 to char.
692
7c184d33
TT
6932020-10-09 Tom Tromey <tromey@adacore.com>
694
695 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
696
5c4258f4
TT
6972020-10-09 Tom Tromey <tromey@adacore.com>
698
699 * ada-lang.h (ada_encode): Return std::string.
700 * ada-lang.c (ada_encode_1): Return std::string.
701 (ada_encode): Likewise.
702 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
703 Update.
704 * ada-exp.y (block_lookup, write_var_or_type): Update.
705
3d87245c
HD
7062020-10-09 Hannes Domani <ssbssa@yahoo.de>
707
708 PR exp/26714
709 * printcmd.c (print_formatted): Handle void results as
710 unformatted prints.
711
bbb826f5
AB
7122020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * arch/aarch32.c (aarch32_create_target_description): Release the
715 target_desc_up as late as possible.
716 * arch/aarch64.c (aarch64_create_target_description): Likewise.
717 * arch/amd64.c (amd64_create_target_description): Likewise.
718 * arch/arc.c (arc_create_target_description): Return a
719 target_desc_up, don't release it.
720 * arch/arc.h (arc_create_target_description): Update declaration.
721 (arc_lookup_target_description): Move target_desc_up into the
722 cache, and return a borrowed pointer.
723 * arch/arm.c (arm_create_target_description): Release the
724 target_desc_up as late as possible.
725 * arch/i386.c (i386_create_target_description): Likewise.
726 * arch/riscv.h (riscv_create_target_description): Update
727 declaration to match definition.
728 * arch/tic6x.c (tic6x_create_target_description): Release the
729 target_desc_up as late as possible.
730
361cb219
AB
7312020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
734 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
735
f5c4b229
JV
7362020-10-09 Jan Vrany <jan.vrany@labware.com>
737
738 * source.c (directory_command): Notify observers that "directories"
739 parameter has changed.
740
b2701685
TT
7412020-10-08 Tom Tromey <tom@tromey.com>
742
743 * cli/cli-cmds.c (print_disassembly): Style function name and
744 addresses. Add _() wrappers.
745
ada508b6
SV
7462020-10-08 Shahab Vahedi <shahab@synopsys.com>
747
748 * NEWS: Mention ARC support in GDBserver.
749
51a948fd
AB
7502020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
751
752 * arch/aarch32.c (aarch32_create_target_description): Release
753 unique_ptr returned from allocate_target_description.
754 * arch/aarch64.c (aarch64_create_target_description): Likewise.
755 * arch/amd64.c (amd64_create_target_description): Likewise.
756 * arch/arc.c (arc_create_target_description): Likewise.
757 * arch/arm.c (arm_create_target_description): Likewise.
758 * arch/i386.c (i386_create_target_description): Likewise.
759 * arch/riscv.c (riscv_create_target_description): Update return
760 type. Handle allocate_target_description returning a unique_ptr.
761 (riscv_lookup_target_description): Update to handle unique_ptr.
762 * arch/tic6x.c (tic6x_create_target_description): Release
763 unique_ptr returned from allocate_target_description.
764 * features/microblaze-with-stack-protect.c: Regenerate.
765 * features/microblaze.c: Regenerate.
766 * features/mips-dsp-linux.c: Regenerate.
767 * features/mips-linux.c: Regenerate.
768 * features/mips64-dsp-linux.c: Regenerate.
769 * features/mips64-linux.c: Regenerate.
770 * features/nds32.c: Regenerate.
771 * features/nios2.c: Regenerate.
772 * features/or1k.c: Regenerate.
773 * features/rs6000/powerpc-32.c: Regenerate.
774 * features/rs6000/powerpc-32l.c: Regenerate.
775 * features/rs6000/powerpc-403.c: Regenerate.
776 * features/rs6000/powerpc-403gc.c: Regenerate.
777 * features/rs6000/powerpc-405.c: Regenerate.
778 * features/rs6000/powerpc-505.c: Regenerate.
779 * features/rs6000/powerpc-601.c: Regenerate.
780 * features/rs6000/powerpc-602.c: Regenerate.
781 * features/rs6000/powerpc-603.c: Regenerate.
782 * features/rs6000/powerpc-604.c: Regenerate.
783 * features/rs6000/powerpc-64.c: Regenerate.
784 * features/rs6000/powerpc-64l.c: Regenerate.
785 * features/rs6000/powerpc-7400.c: Regenerate.
786 * features/rs6000/powerpc-750.c: Regenerate.
787 * features/rs6000/powerpc-860.c: Regenerate.
788 * features/rs6000/powerpc-altivec32.c: Regenerate.
789 * features/rs6000/powerpc-altivec32l.c: Regenerate.
790 * features/rs6000/powerpc-altivec64.c: Regenerate.
791 * features/rs6000/powerpc-altivec64l.c: Regenerate.
792 * features/rs6000/powerpc-e500.c: Regenerate.
793 * features/rs6000/powerpc-e500l.c: Regenerate.
794 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
795 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
796 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
797 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
798 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
799 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
800 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
801 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
802 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
803 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
804 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
805 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
806 * features/rs6000/powerpc-vsx32.c: Regenerate.
807 * features/rs6000/powerpc-vsx32l.c: Regenerate.
808 * features/rs6000/powerpc-vsx64.c: Regenerate.
809 * features/rs6000/powerpc-vsx64l.c: Regenerate.
810 * features/rs6000/rs6000.c: Regenerate.
811 * features/rx.c: Regenerate.
812 * features/s390-gs-linux64.c: Regenerate.
813 * features/s390-linux32.c: Regenerate.
814 * features/s390-linux32v1.c: Regenerate.
815 * features/s390-linux32v2.c: Regenerate.
816 * features/s390-linux64.c: Regenerate.
817 * features/s390-linux64v1.c: Regenerate.
818 * features/s390-linux64v2.c: Regenerate.
819 * features/s390-te-linux64.c: Regenerate.
820 * features/s390-tevx-linux64.c: Regenerate.
821 * features/s390-vx-linux64.c: Regenerate.
822 * features/s390x-gs-linux64.c: Regenerate.
823 * features/s390x-linux64.c: Regenerate.
824 * features/s390x-linux64v1.c: Regenerate.
825 * features/s390x-linux64v2.c: Regenerate.
826 * features/s390x-te-linux64.c: Regenerate.
827 * features/s390x-tevx-linux64.c: Regenerate.
828 * features/s390x-vx-linux64.c: Regenerate.
829 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
830 from allocate_target_description.
831 * target-descriptions.c (allocate_target_description): Update
832 return type.
833 (print_c_tdesc::visit_pre): Release unique_ptr returned from
834 allocate_target_description.
835
485c47e5
TT
8362020-10-07 Tom Tromey <tromey@adacore.com>
837
838 * unittests/search-memory-selftests.c: New file.
839 * Makefile.in (SELFTESTS_SRCS): Add
840 unittests/search-memory-selftests.c.
841
3a135a91
TT
8422020-10-07 Tom Tromey <tromey@adacore.com>
843
844 PR gdb/16930:
845 * findcmd.c (_initialize_mem_search): Mention that the range is
846 inclusive.
847
4a72de73
TT
8482020-10-07 Tom Tromey <tromey@adacore.com>
849
850 * target.h (simple_search_memory): Don't declare.
851 * target.c (simple_search_memory): Move to gdbsupport.
852 (default_search_memory): Update.
853 * remote.c (remote_target::search_memory): Update.
854
a038ffd8
SM
8552020-10-07 Simon Marchi <simon.marchi@efficios.com>
856
857 * Makefile.in (COMPILE): Add CXXFLAGS.
858 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
859 (check-headers): Add CXXFLAGS.
860
cc463201
AK
8612020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
862
863 * arc-linux-tdep.h: New file.
864 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
865 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
866 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
867 arc_linux_gregset, arc_linux_v2_regset,
868 arc_linux_iterate_over_regset_sections,
869 arc_linux_core_read_description): Implement.
870 (arc_linux_init_osabi): Set iterate_over_regset_sections.
871 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
872 (arc_gdbarch_features_create): Add.
873 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
874
e4bd363f
SV
8752020-10-07 Shahab Vahedi <shahab@synopsys.com>
876
877 * arch/arc.h: Rename "arc_gdbarch_features" to
878 "arc_arch_features".
879 * arc-tdep.h: Likewise.
880 * arc-tdep.c: Likewise.
881
b68bef99
TBA
8822020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
883
884 * infcmd.c (attach_command): Remove the redundant call to
885 `clear_proceed_status`.
886
4641551a
KR
8872020-10-07 Kamil Rytarowski <n54@gmx.com>
888
889 * nat/netbsd-nat.c (write_memory, read_memory): Update.
890
91e5e8db
KR
8912020-10-07 Kamil Rytarowski <n54@gmx.com>
892
893 * nat/netbsd-nat.c (write_memory, read_memory): Add.
894 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
895 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
896
64c03bdb
SM
8972020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
900 (_initialize_break_catch_sig): Don't allocate array.
901
31a8f60f
AB
9022020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * symtab.c (find_pc_line): Return unmapped addresses when the
905 requested address is also unmapped.
906
9e6dbd8b
SM
9072020-10-05 Simon Marchi <simon.marchi@efficios.com>
908
909 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
910 tui/tui-out.h.
911
a1d217e8
SM
9122020-10-05 Simon Marchi <simon.marchi@efficios.com>
913
914 * amd64-windows-tdep.c (amd64_windows_return_value): Use
915 type::is_vector instead of TYPE_VECTOR.
916
7d144117
SM
9172020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
918
919 * auto-load.c (auto_load_objfile_script_1): Don't use
920 debugfile_holder as temporary variable when stripping drive
921 letter.
922
cd096ec8
HD
9232020-10-05 Hannes Domani <ssbssa@yahoo.de>
924
925 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
926 Add TYPE_CODE_COMPLEX.
927 (amd64_windows_return_value): Fix types returned via XMM0.
928
b58e7f72
AH
9292020-10-05 Alan Hayward <alan.hayward@arm.com>
930
931 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
932 AArch64/ARM maintainers.
933
8d378f27
SM
9342020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * NEWS: Mention set/show debug event-loop.
937
d5519913
TT
9382020-10-02 Tom Tromey <tromey@adacore.com>
939
940 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
941 REG_EXTENDED.
942
18b67edc
SM
9432020-10-02 Simon Marchi <simon.marchi@efficios.com>
944
945 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
946 * procfs.c (procfs_inferior_created): Remove.
947 (_initialize_procfs): Don't register procfs_inferior_created.
948
6b01403b
SM
9492020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * async-event.c (invoke_async_signal_handlers): Add debug
952 print.
953 (check_async_event_handlers): Likewise.
954 * event-top.c (show_debug_event_loop): New function.
955 (_initialize_event_top): Register "set debug event-loop"
956 setting.
957
ba988419
SM
9582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
961 * debug.h: Remove.
962 * infrun.c: Include gdbsupport/common-debug.h.
963 * linux-nat.c: Likewise.
964
db20ebdf
SM
9652020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * async-event.h (create_async_signal_handler): Add name
968 parameter.
969 (create_async_event_handler): Likewise.
970 * async-event.c (struct async_signal_handler) <name>: New field.
971 (struct async_event_handler) <name>: New field.
972 (create_async_signal_handler): Assign name.
973 (create_async_event_handler): Assign name.
974 * event-top.c (async_init_signals): Pass name when creating
975 handler.
976 * infrun.c (_initialize_infrun): Likewise.
977 * record-btrace.c (record_btrace_push_target): Likewise.
978 * record-full.c (record_full_open): Likewise.
979 * remote-notif.c (remote_notif_state_allocate): Likewise.
980 * remote.c (remote_target::open_1): Likewise.
981 * tui/tui-win.c (tui_initialize_win): Likewise.
982
2554f6f5
SM
9832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * async-event.c (initialize_async_signal_handlers): Pass name to
986 add_file_handler
987 * event-top.c (ui_register_input_event_handler): Likewise.
988 * linux-nat.c (linux_nat_target::async): Likewise.
989 * run-on-main-thread.c (_initialize_run_on_main_thread):
990 Likewise
991 * ser-base.c (reschedule): Likewise.
992 (ser_base_async): Likewise.
993 * tui/tui-io.c: Likewise.
994 * top.h (struct ui) <num>: New field.
995 * top.c (highest_ui_num): New variable.
996 (ui::ui): Initialize num.
997
a7aba266
SM
9982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * observable.h <inferior_created>: Remove parameters. Update all
1001 listeners.
1002 * inferior.h (post_create_inferior): Remove target parameter.
1003 Update all callers.
1004
048fde1e 10052020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1006
1007 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1008 and DW_MACRO_undef_strx.
1009 (dwarf_decode_macros): Likewise
1010 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1011 which is the value of DW_AT_str_offsets_base.
1012 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1013 str_offsets_base.
1014
064280be
KR
10152020-10-01 Kamil Rytarowski <n54@gmx.com>
1016
1017 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1018
6ff33035
KR
10192020-10-01 Kamil Rytarowski <n54@gmx.com>
1020
1021 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1022 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1023
1eb6eb79
KR
10242020-10-01 Kamil Rytarowski <n54@gmx.com>
1025
1026 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1027
95eb9e54
TV
10282020-09-30 Tom de Vries <tdevries@suse.de>
1029
1030 PR symtab/26683
1031 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1032
cae21f8e
TT
10332020-09-30 Tom Tromey <tromey@adacore.com>
1034
1035 * dwarf2/read.c (handle_variant): Use constant_value.
1036
529908cb
TT
10372020-09-29 Tom Tromey <tom@tromey.com>
1038
1039 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1040 (read_file_scope, dwarf2_get_pc_bounds)
1041 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1042 (read_structure_type, handle_struct_member_die)
1043 (read_enumeration_type, read_array_type, read_set_type)
1044 (read_tag_pointer_type, read_tag_reference_type)
1045 (read_subroutine_type, read_base_type, read_subrange_type)
1046 (read_full_die_1, partial_die_info::read)
1047 (partial_die_info::read, by, new_symbol)
1048 (dwarf2_const_value_data, dwarf2_const_value_attr)
1049 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1050 (prepare_one_comp_unit): Update.
1051 * dwarf2/attribute.h (DW_UNSND): Remove.
1052
c45bc3f8
TT
10532020-09-29 Tom Tromey <tom@tromey.com>
1054
1055 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1056 (read_subroutine_type, partial_die_info::read)
1057 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1058 (dwarf2_add_member_fn): Update.
1059 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1060 * dwarf2/attribute.c (attribute::as_boolean): New method.
1061
23dca5c3
TT
10622020-09-29 Tom Tromey <tom@tromey.com>
1063
1064 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1065 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1066 method.
1067 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1068
52c14d11
TT
10692020-09-29 Tom Tromey <tom@tromey.com>
1070
1071 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1072 the attribute's form.
1073
e8e5c158
TT
10742020-09-29 Tom Tromey <tom@tromey.com>
1075
1076 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1077 (dwarf2_add_member_fn): Update.
1078 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1079 * dwarf2/attribute.c (attribute::defaulted): New method, from
1080 is_valid_DW_AT_defaulted.
1081
d4df075e
TT
10822020-09-29 Tom Tromey <tom@tromey.com>
1083
1084 * dwarf2/read.c (dw2_get_file_names_reader)
1085 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1086 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1087 (dwarf2_symbol_mark_computed): Use as_unsigned.
1088 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1089 method.
1090 <form_is_section_offset>: Update comment.
1091
bf23a268
TT
10922020-09-29 Tom Tromey <tom@tromey.com>
1093
1094 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1095 dwarf2_default_access_attribute. Look up attribute.
1096 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1097 Update.
1098
7a5f294d
TT
10992020-09-29 Tom Tromey <tom@tromey.com>
1100
1101 * dwarf2/read.c (skip_one_die): Update.
1102 (read_full_die_1): Change how reprocessing is done.
1103 (partial_die_info::read): Update.
1104 (read_attribute_value): Remove need_reprocess parameter.
1105 (read_attribute): Likewise.
1106 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1107 New method.
1108
36d378cf
TT
11092020-09-29 Tom Tromey <tom@tromey.com>
1110
1111 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1112 (dwarf2_const_value_attr, dump_die_shallow)
1113 (dwarf2_fetch_constant_bytes): Update.
1114 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1115 comment.
1116 <set_address>: New method.
1117 (DW_ADDR): Remove.
1118 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1119 (attribute::as_string, attribute::as_address): Add assert.
1120
fe56917a
TT
11212020-09-29 Tom Tromey <tom@tromey.com>
1122
1123 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1124 (read_attribute_reprocess, read_attribute_value): Update.
1125 (read_attribute): Clear requires_reprocessing.
1126 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1127 form_requires_reprocessing>: New methods.
1128 <string_init>: Clear requires_reprocessing.
1129 <set_unsigned_reprocess>: New method.
1130 <name>: Shrink by one bit.
1131 <requires_reprocessing>: New member.
1132 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1133 method.
1134
414ad644
TT
11352020-09-29 Tom Tromey <tom@tromey.com>
1136
1137 * dwarf2/read.c (read_attribute_value): Update.
1138 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1139 set_unsigned>: New methods.
1140 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1141
1bc397c5
TT
11422020-09-29 Tom Tromey <tom@tromey.com>
1143
1144 * dwarf2/read.c (get_alignment, read_array_order)
1145 (read_attribute_value, dwarf2_const_value_attr)
1146 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1147 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1148 New methods.
1149 (DW_SND): Remove.
1150
630ed6b9
TT
11512020-09-29 Tom Tromey <tom@tromey.com>
1152
1153 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1154 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1155 Update.
1156 * dwarf2/attribute.h (struct attribute) <as_signature,
1157 set_signature>: New methods.
1158 (DW_SIGNATURE): Remove.
1159
9d2246fc
TT
11602020-09-29 Tom Tromey <tom@tromey.com>
1161
1162 * dwarf2/read.c (read_call_site_scope)
1163 (handle_data_member_location, dwarf2_add_member_fn)
1164 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1165 (partial_die_info::read, read_attribute_value)
1166 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1167 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1168 (dwarf2_symbol_mark_computed): Update.
1169 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1170 methods.
1171 (DW_BLOCK): Remove.
1172 * dwarf2/attribute.c (attribute::form_is_block): Add
1173 DW_FORM_data16.
1174
c6481205
TT
11752020-09-29 Tom Tromey <tom@tromey.com>
1176
1177 * dwarf2/read.c (read_cutu_die_from_dwo)
1178 (read_attribute_reprocess, read_attribute_value, read_attribute)
1179 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1180 (dwarf2_fetch_constant_bytes): Update.
1181 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1182 <set_string_noncanonical, set_string_canonical>: New methods.
1183 <string_is_canonical>: Update comment.
1184 <canonical_string_p>: Add assert.
1185 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1186 * dwarf2/attribute.c (attribute::form_is_string): New method.
1187 (attribute::string): Use it.
1188
3b64bf15
TT
11892020-09-29 Tom Tromey <tom@tromey.com>
1190
1191 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1192 (dump_die_shallow): Use canonical_string_p.
1193 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1194 method.
1195
2c830f54
TT
11962020-09-29 Tom Tromey <tom@tromey.com>
1197
1198 * dwarf2/read.c (partial_die_info::read)
1199 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1200 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1201 attribute::as_string.
1202
6c412691
TT
12032020-09-29 Tom Tromey <tom@tromey.com>
1204
1205 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1206 DW_ADDR.
1207 (attribute::string): Don't use DW_STRING.
1208 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1209 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1210
95f982e5
TT
12112020-09-29 Tom Tromey <tom@tromey.com>
1212
1213 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1214 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1215 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1216 * dwarf2/attribute.h (struct attribute): Rename methods.
1217 * dwarf2/attribute.c (attribute::as_address): Rename from
1218 value_as_address.
1219 (attribute::as_string): Rename from value_as_string.
1220
f800b00e
TT
12212020-09-29 Tom Tromey <tom@tromey.com>
1222
1223 * dwarf2/read.c (partial_die_info::read) <case
1224 DW_AT_linkage_name>: Use value_as_string.
1225 (dwarf2_string_attr): Use value_as_string.
1226 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1227 method.
1228 * dwarf2/attribute.c (attribute::value_as_string): New method.
1229
de38d64a
PA
12302020-09-29 Pedro Alves <pedro@palves.net>
1231
1232 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1233 defined before using '#pragma GCC diagnostic' instead of checking
1234 __clang__.
1235
9aed480c
TT
12362020-09-28 Tom Tromey <tom@tromey.com>
1237
1238 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1239 (handle_signal_stop): Update.
1240 * procfs.c (procfs_target::insert_watchpoint): Update.
1241 * target.h (target_have_steppable_watchpoint): Now a function.
1242
8a3ecb79
TT
12432020-09-28 Tom Tromey <tom@tromey.com>
1244
1245 * infrun.c (set_schedlock_func): Update.
1246 * target.h (target_can_lock_scheduler): Now a function.
1247
55f6301a
TT
12482020-09-28 Tom Tromey <tom@tromey.com>
1249
1250 * inferior.h (class inferior) <has_execution>: Update.
1251 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1252 * valops.c (find_function_in_inferior)
1253 (value_allocate_space_in_inferior): Update.
1254 * top.c (kill_or_detach): Update.
1255 * target.c (target_preopen, set_target_permissions): Update.
1256 (target_has_execution_current): Remove.
1257 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1258 Update.
1259 * solib.c (update_solib_list, reload_shared_libraries): Update.
1260 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1261 * solib-dsbt.c (enable_break): Update.
1262 * score-tdep.c (score7_fetch_inst): Update.
1263 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1264 Update.
1265 * remote.c (remote_target::start_remote)
1266 (remote_target::remote_check_symbols, remote_target::open_1)
1267 (remote_target::remote_detach_1, remote_target::verify_memory)
1268 (remote_target::xfer_partial, remote_target::read_description)
1269 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1270 * record-full.c (record_full_open_1): Update.
1271 * record-btrace.c (record_btrace_target_open): Update.
1272 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1273 (value_nsstring): Update.
1274 * linux-thread-db.c (add_thread_db_info)
1275 (thread_db_find_new_threads_silently, check_thread_db_callback)
1276 (try_thread_db_load_1, record_thread): Update.
1277 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1278 Update.
1279 * linux-fork.c (checkpoint_command): Update.
1280 * infrun.c (set_non_stop, set_observer_mode)
1281 (check_multi_target_resumption, for_each_just_stopped_thread)
1282 (maybe_remove_breakpoints, normal_stop)
1283 (class infcall_suspend_state): Update.
1284 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1285 (info_program_command, attach_command): Update.
1286 * infcall.c (call_function_by_hand_dummy): Update.
1287 * inf-loop.c (inferior_event_handler): Update.
1288 * gcore.c (gcore_command, derive_heap_segment): Update.
1289 * exec.c (exec_file_command): Update.
1290 * eval.c (evaluate_subexp): Update.
1291 * compile/compile.c (compile_to_object): Update.
1292 * cli/cli-dump.c (restore_command): Update.
1293 * breakpoint.c (update_watchpoint)
1294 (update_inserted_breakpoint_locations)
1295 (insert_breakpoint_locations, get_bpstat_thread): Update.
1296 * target.h (target_has_execution): Remove macro.
1297 (target_has_execution_current): Don't declare.
1298 (target_has_execution): Rename from target_has_execution_1. Add
1299 argument default.
1300
05374cfd
TT
13012020-09-28 Tom Tromey <tom@tromey.com>
1302
1303 * mi/mi-main.c (exec_reverse_continue)
1304 (mi_cmd_list_target_features): Update.
1305 * infrun.c (set_exec_direction_func): Update.
1306 * target.c (default_execution_direction): Update.
1307 * reverse.c (exec_reverse_once): Update.
1308 * target.h (target_can_execute_reverse): Now a function.
1309
9dccd06e
TT
13102020-09-28 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-regs.c (tui_get_register)
1313 (tui_data_window::show_registers): Update.
1314 * thread.c (scoped_restore_current_thread::restore)
1315 (scoped_restore_current_thread::scoped_restore_current_thread):
1316 Update.
1317 * regcache-dump.c (regcache_print): Update.
1318 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1319 Update.
1320 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1321 * mep-tdep.c (current_me_module, current_options): Update.
1322 * linux-thread-db.c (thread_db_load): Update.
1323 * infcmd.c (registers_info, info_vector_command)
1324 (info_float_command): Update.
1325 * ia64-tdep.c (ia64_frame_prev_register)
1326 (ia64_sigtramp_frame_prev_register): Update.
1327 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1328 * gcore.c (derive_stack_segment): Update.
1329 * frame.c (get_current_frame, has_stack_frames): Update.
1330 * findvar.c (language_defn::read_var_value): Update.
1331 * arm-tdep.c (arm_pc_is_thumb): Update.
1332 * target.c (target_has_registers): Rename from
1333 target_has_registers_1.
1334 * target.h (target_has_registers): Remove macro.
1335 (target_has_registers): Rename from target_has_registers_1.
1336
841de120
TT
13372020-09-28 Tom Tromey <tom@tromey.com>
1338
1339 * windows-tdep.c (tlb_make_value): Update.
1340 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1341 * thread.c (scoped_restore_current_thread::restore)
1342 (scoped_restore_current_thread::scoped_restore_current_thread)
1343 (thread_command): Update.
1344 * stack.c (backtrace_command_1, frame_apply_level_command)
1345 (frame_apply_all_command, frame_apply_command): Update.
1346 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1347 Update.
1348 * gcore.c (derive_stack_segment): Update.
1349 * frame.c (get_current_frame, has_stack_frames): Update.
1350 * auxv.c (info_auxv_command): Update.
1351 * ada-tasks.c (ada_build_task_list): Update.
1352 * target.c (target_has_stack): Rename from target_has_stack_1.
1353 * target.h (target_has_stack): Remove macro.
1354 (target_has_stack): Rename from target_has_stack_1.
1355
a739972c
TT
13562020-09-28 Tom Tromey <tom@tromey.com>
1357
1358 * target.c (target_has_memory): Rename from target_has_memory_1.
1359 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1360 * thread.c (scoped_restore_current_thread::restore)
1361 (scoped_restore_current_thread::scoped_restore_current_thread):
1362 Update.
1363 * frame.c (get_current_frame, has_stack_frames): Update.
1364 * target.h (target_has_memory): Remove macro.
1365 (target_has_memory): Rename from target_has_memory_1.
1366
5b8a4776
TT
13672020-09-28 Tom Tromey <tom@tromey.com>
1368
1369 * target.c (target_has_all_memory_1): Remove.
1370 * target.h (target_has_all_memory): Remove define.
1371 (target_has_all_memory_1): Don't declare.
1372
bd356ec6
SM
13732020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1374
1375 * ser-base.c: Adjust comments formatting.
1376
2c72d5e5
TT
13772020-09-27 Tom Tromey <tom@tromey.com>
1378
1379 PR tui/25342:
1380 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1381
35a98237
TT
13822020-09-27 Tom Tromey <tom@tromey.com>
1383
1384 PR tui/25342:
1385 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1386
9e820dec
TT
13872020-09-27 Tom Tromey <tom@tromey.com>
1388
1389 * unittests/tui-selftests.c: Update.
1390 * tui/tui-winsource.h (struct tui_source_window_base)
1391 <extra_margin, show_line_number, refresh_pad>: New methods.
1392 <m_max_length, m_pad>: New members.
1393 (tui_copy_source_line): Update.
1394 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1395 first_col, line_width, ndigits parameters. Add length.
1396 (tui_source_window_base::show_source_line): Write to pad. Line
1397 number now 0-based.
1398 (tui_source_window_base::refresh_pad): New method.
1399 (tui_source_window_base::show_source_content): Write to pad. Call
1400 refresh_pad.
1401 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1402 not refill.
1403 (tui_source_window_base::update_exec_info): Call
1404 show_line_number.
1405 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1406 method.
1407 <m_digits>: New member.
1408 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1409 and m_max_length.
1410 (tui_source_window::show_line_number): New method.
1411 * tui/tui-io.h (tui_puts): Fix comment.
1412 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1413 m_max_length.
1414
c15c15c8
TT
14152020-09-27 Tom Tromey <tom@tromey.com>
1416
1417 * tui/tui-winsource.c
1418 (tui_source_window_base::set_is_exec_point_at): Don't call
1419 show_source_line.
1420
149830c1
TT
14212020-09-27 Tom Tromey <tom@tromey.com>
1422
1423 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1424 method.
1425 <erase>: Update.
1426 <cursor_x, cursor_y>: Remove.
1427 <m_inner_window>: New member.
1428 (tui_py_window::rerender): Create inner window.
1429 (tui_py_window::output): Write to inner window.
1430
8f9929bb
GR
14312020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1432
1433 PR python/26586
1434 * cli/cli-script.c (execute_control_commands): don't set
1435 instream to nullptr here as this breaks the from_tty argument
1436 to gdb.execute in Python.
1437 (execute_user_command): set instream to nullptr here instead.
1438
956bdb59
SM
14392020-09-25 Simon Marchi <simon.marchi@efficios.com>
1440
1441 * infrun.h (infrun_debug_printf): Fix formatting.
1442 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1443
3b93626b
SJ
14442020-09-25 Saagar Jha <saagar@saagarjha.com>
1445
1446 * compile/compile-object-load.h (struct munmap_list): Add
1447 explicitly-defined move constructor.
1448
b551a89f
TT
14492020-09-24 Tom Tromey <tromey@adacore.com>
1450
1451 PR tui/26638:
1452 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1453 method.
1454 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1455 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1456 (tui_prev_win): Rewrite.
1457
99bb393f
HD
14582020-09-23 Hannes Domani <ssbssa@yahoo.de>
1459
1460 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1461 in WOW64 processes as SIGINT.
1462 * nat/windows-nat.h: Make wow64_process a shared variable.
1463 * windows-nat.c: Remove static wow64_process variable.
1464
20a5fcbd
TT
14652020-09-23 Tom Tromey <tom@tromey.com>
1466
1467 PR symtab/25470:
1468 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1469 offset and bit size.
1470 * printcmd.c (print_scalar_formatted): Handle zero-length
1471 integer.
1472 (print_scalar_formatted): Use bit_size_differs_p.
1473 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1474 constant.
1475 (union type_specific): <int_stuff>: New member.
1476 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1477 methods.
1478 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1479 TYPE_SPECIFIC_FIELD.
1480 (recursive_dump_type, copy_type_recursive): Update.
1481 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1482 DW_AT_data_bit_offset.
1483
bac51ab7
TT
14842020-09-23 Tom Tromey <tom@tromey.com>
1485
1486 * utils.h (class gdb_argv): Add move operators.
1487 <append>: New methods.
1488 * compile/compile.c (build_argc_argv): Remove.
1489 (compile_args_argc): Remove.
1490 (compile_args_argv): Change type.
1491 (set_compile_args): Simplify.
1492 (append_args): Remove.
1493 (filter_args): Remove argcp parameter.
1494 (get_args): Return gdb_argv. Simplify.
1495 (compile_to_object): Update.
1496
92677124
TT
14972020-09-23 Tom Tromey <tom@tromey.com>
1498
1499 * compile/compile-object-run.c (do_module_cleanup)
1500 <~do_module_cleanup> :Remove.
1501 (do_module_cleanup): Update.
1502 * compile/compile-object-load.h (struct munmap_list): Add move
1503 assignment operator.
1504 <source_file>: Now a std::string.
1505 <munmap_list>: Rename. No longer a pointer.
1506 * compile/compile-object-load.c (struct setup_sections_data): Add
1507 constructor.
1508 <setup_one_section>: Declare.
1509 <munmap_list>: Move earlier.
1510 <m_bfd>: New member.
1511 <m_last_size, m_last_section_first, m_last_prot,
1512 m_last_max_alignment>: Rename, add initializers where needed.
1513 (setup_sections_data::setup_one_section): Rename from
1514 setup_sections. Update.
1515 (compile_object_load): Update. Don't use bfd_map_over_sections.
1516
e616f60a
TT
15172020-09-23 Tom Tromey <tom@tromey.com>
1518
1519 * compile/compile-object-run.c (struct do_module_cleanup): Add
1520 parameters to constructor. Update destructor.
1521 <source_file, scope, scope_data, out_value_type, out_value_addr,
1522 munmap_list_head, objfile_name_string>: Remove.
1523 <module>: New member.
1524 (do_module_cleanup): Update.
1525 (compile_object_run): Update.
1526
e947a848
TT
15272020-09-23 Tom Tromey <tom@tromey.com>
1528
1529 * compile/compile.c (eval_compile_command): Update.
1530 * compile/compile-object-run.h (compile_object_run): Take a
1531 compile_module_up.
1532 * compile/compile-object-run.c (compile_object_run): Take a
1533 compile_module_up.
1534 * compile/compile-object-load.h (struct compile_module): Add
1535 constructor, destructor.
1536 (compile_module_up): New typedef.
1537 (compile_object_load): Return compile_object_up.
1538 * compile/compile-object-load.c (compile_object_load): Return
1539 compile_module_up.
1540
0dbf6ee6
TT
15412020-09-23 Tom Tromey <tom@tromey.com>
1542
1543 * compile/compile-object-run.c (struct do_module_cleanup): Add
1544 constructor, destructor.
1545 <objfile_name_string>: Don't use struct hack.
1546 (do_module_cleanup): Use delete.
1547 (compile_object_run): Use new.
1548
ebe824f5
TT
15492020-09-23 Tom Tromey <tom@tromey.com>
1550
1551 * compile/compile-cplus-types.c
1552 (compile_cplus_convert_struct_or_union): Use std::vector.
1553 (compile_cplus_convert_func): Likewise.
1554 * compile/compile-c-types.c (convert_func): Use std::vector.
1555
5dd918d9
TT
15562020-09-21 Tom Tromey <tromey@adacore.com>
1557
1558 * sparc-tdep.c (sparc32_skip_prologue): Use
1559 skip_prologue_using_sal.
1560
5486c517
TT
15612020-09-19 Tom Tromey <tom@tromey.com>
1562
1563 * symfile.c (add_section_size_callback): Remove.
1564 (load_one_section): Rename from load_section_callback. Change
1565 parameters.
1566 (generic_load): Use foreach.
1567
8a6bb1d1
TT
15682020-09-19 Tom Tromey <tom@tromey.com>
1569
1570 * exec.c (add_to_section_table): Remove.
1571 (build_section_table): Use foreach.
1572
08f93a1a
TT
15732020-09-19 Tom Tromey <tom@tromey.com>
1574
1575 * elfread.c (elf_locate_sections): Change parameters.
1576 (elf_symfile_read): Use foreach.
1577
03cd72b8
TT
15782020-09-19 Tom Tromey <tom@tromey.com>
1579
1580 * cli/cli-dump.c (struct callback_data): Remove.
1581 (restore_one_section): Rename from restore_section_callback.
1582 Change parameters.
1583 (restore_binary_file): Change parameters.
1584 (restore_command): Use foreach.
1585
f4f2b85f
TT
15862020-09-19 Tom Tromey <tom@tromey.com>
1587
1588 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1589 (gcore_copy_callback): Likewise.
1590 (gcore_memory_sections): Use foreach.
1591
b35c1d1c
TT
15922020-09-19 Tom Tromey <tom@tromey.com>
1593
1594 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1595 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1596 parameters.
1597 (generic_elf_osabi_sniffer): Use foreach.
1598 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1599 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1600
5bb6e9dd
TT
16012020-09-19 Tom Tromey <tom@tromey.com>
1602
1603 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1604 (dwarf2_get_dwz_file): Use foreach.
1605 (dwarf2_locate_dwo_sections): Change parameters.
1606 (open_and_init_dwo_file): Use foreach.
1607 (dwarf2_locate_common_dwp_sections): Change parameters.
1608 (open_and_init_dwp_file): Use foreach.
1609
ad7277da
TT
16102020-09-19 Tom Tromey <tom@tromey.com>
1611
1612 * symfile.h: (find_lowest_section): Don't declare.
1613 * symfile.c (find_lowest_section): Now static. Change
1614 parameters.
1615 (struct place_section_arg): Remove.
1616 (place_section): Change parameters.
1617 (addr_info_make_relative): Use foreach.
1618 (symfile_dummy_outputs): Remove.
1619 (default_symfile_relocate): Use foreach.
1620
cb814f2e
TT
16212020-09-19 Tom Tromey <tom@tromey.com>
1622
1623 * objfiles.c (add_to_objfile_sections): Rename from
1624 add_to_objfile_sections_full.
1625 (add_to_objfile_sections): Remove.
1626 (build_objfile_section_table): Use foreach.
1627
3cabfd26
TT
16282020-09-19 Tom Tromey <tom@tromey.com>
1629
1630 * stap-probe.c (get_stap_base_address_1): Remove.
1631 (get_stap_base_address): Use foreach.
1632
1ce51eb5
TT
16332020-09-19 Tom Tromey <tom@tromey.com>
1634
1635 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1636 parameters.
1637 (gdb_bfd_close_or_warn): Use foreach.
1638
a190fabb
TT
16392020-09-19 Tom Tromey <tom@tromey.com>
1640
1641 * corelow.c (add_to_thread_list): Change parameters.
1642 (core_target_open): Use foreach.
1643
cafb0d81
TT
16442020-09-19 Tom Tromey <tom@tromey.com>
1645
1646 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1647 existing function.
1648
c8d5abea
AB
16492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1652 for arrays.
1653
6d816919
AB
16542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * eval.c: Remove 'f-lang.h' include.
1657 (value_f90_subarray): Moved to f-lang.c.
1658 (eval_call): Renamed to...
1659 (evaluate_subexp_do_call): ...this, is no longer static, header
1660 comment moved into header file.
1661 (evaluate_funcall): Update call to eval_call.
1662 (skip_undetermined_arglist): Moved to f-lang.c.
1663 (fortran_value_subarray): Likewise.
1664 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1665 moved to evaluate_subexp_f.
1666 (calc_f77_array_dims): Moved to f-lang.c
1667 * expprint.c (print_subexp_funcall): New function.
1668 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1669 moved to print_subexp_f, OP_FUNCALL uses new function.
1670 (dump_subexp_body_funcall): New function.
1671 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1672 moved to dump_subexp_f, OP_FUNCALL uses new function.
1673 * expression.h (evaluate_subexp_do_call): Declare.
1674 * f-lang.c (value_f90_subarray): Moved from eval.c.
1675 (skip_undetermined_arglist): Likewise.
1676 (calc_f77_array_dims): Likewise.
1677 (fortran_value_subarray): Likewise.
1678 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1679 (operator_length_f): Likewise.
1680 (print_subexp_f): Likewise.
1681 (dump_subexp_body_f): Likewise.
1682 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1683 declaration of this operation to here.
1684 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1685 support moved to operator_length_f.
1686 * parser-defs.h (dump_subexp_body_funcall): Declare.
1687 (print_subexp_funcall): Declare.
1688 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1689 fortran-operator.def.
1690
8c37706a
AB
16912020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * eval.c (fortran_value_subarray): New function, content is taken
1694 from...
1695 (evaluate_subexp_standard): ...here, in two places. Now arrays
1696 and strings both call the new function.
1697 (calc_f77_array_dims): Add header comment, handle strings.
1698
14f9473c
VC
16992020-09-18 Victor Collod <vcollod@nvidia.com>
1700
1701 PR gdb/26635
1702 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1703 (i386_analyze_prologue): Call i386_skip_endbr.
1704
b60cea74
TT
17052020-09-18 Tom Tromey <tromey@adacore.com>
1706
1707 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1708 (windows_nat_target::wait): Update.
1709 * target/wait.h (enum target_wait_flag): New. Use
1710 DEF_ENUM_FLAGS_TYPE.
1711 * target/target.h (target_wait): Change type of options.
1712 * target.h (target_options_to_string, default_target_wait):
1713 Update.
1714 (struct target_ops) <wait>: Change type of options.
1715 * target.c (target_wait, default_target_wait, do_option): Change
1716 type of "options".
1717 (target_options_to_string): Likewise.
1718 * target-delegates.c: Rebuild.
1719 * target-debug.h (target_debug_print_target_wait_flags): Rename
1720 from target_debug_print_options.
1721 * sol-thread.c (class sol_thread_target) <wait>: Update.
1722 (sol_thread_target::wait): Update.
1723 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1724 (rs6000_nat_target::wait): Update.
1725 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1726 Update.
1727 (remote_target::wait_ns, remote_target::wait_as): Change type of
1728 "options".
1729 (remote_target::wait): Update.
1730 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1731 (gdbsim_target::wait): Update.
1732 * record-full.c (class record_full_base_target) <wait>: Update.
1733 (record_full_wait_1): Change type of "options".
1734 (record_full_base_target::wait): Update.
1735 * record-btrace.c (class record_btrace_target) <wait>: Update.
1736 (record_btrace_target::wait): Update.
1737 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1738 Update.
1739 (ravenscar_thread_target::wait): Update.
1740 * procfs.c (class procfs_target) <wait>: Update.
1741 (procfs_target::wait): Update.
1742 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1743 * obsd-nat.c (obsd_nat_target::wait): Update.
1744 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1745 (nto_procfs_target::wait): Update.
1746 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1747 * nbsd-nat.c (nbsd_wait): Change type of "options".
1748 (nbsd_nat_target::wait): Update.
1749 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1750 (thread_db_target::wait): Update.
1751 * linux-nat.h (class linux_nat_target) <wait>: Update.
1752 * linux-nat.c (linux_nat_target::wait): Update.
1753 (linux_nat_wait_1): Update.
1754 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1755 "options".
1756 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1757 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1758 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1759 (go32_nat_target::wait): Update.
1760 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1761 * gnu-nat.c (gnu_nat_target::wait): Update.
1762 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1763 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1764 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1765 * darwin-nat.c (darwin_nat_target::wait): Update.
1766 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1767 (bsd_uthread_target::wait): Update.
1768 * aix-thread.c (class aix_thread_target) <wait>: Update.
1769 (aix_thread_target::wait): Update.
1770
0295dde6
AB
17712020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * compile/compile-object-run.c (create_copied_type_recursive): New
1774 function.
1775 (compile_object_run): Use new function.
1776
d3483b43
JT
17772020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1778
1779 * NEWS: Mention x86_64 Cygwin core file support.
1780
e7d612ad
JT
17812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1782
1783 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1784 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1785
aff9d387
JT
17862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1787
62a5151b
JT
1788 * windows-tdep.h: Add prototypes.
1789 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1790 (i386_windows_core_pid_to_str): Move and rename ...
1791 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1792 (windows_core_pid_to_str): ... and here.
1793 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1794
17952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1796 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1797 (amd64_windows_init_abi_common): ... and register.
1798
7d155da3
JT
17992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1800
1801 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1802 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1803
e8ef12b9
PA
18042020-09-18 Pedro Alves <pedro@palves.net>
1805
1806 PR gdb/26631
1807 * thread.c (thread_find_command): Switch inferior before calling
1808 target methods.
1809
c1e1314d
TT
18102020-09-17 Tom Tromey <tromey@adacore.com>
1811
1812 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1813 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1814 (tdesc_arch_data_up): New typedef.
1815 (tdesc_use_registers, tdesc_data_alloc): Update.
1816 (tdesc_data_cleanup): Don't declare.
1817 * target-descriptions.c (tdesc_data_alloc): Return a
1818 tdesc_arch_data_up.
1819 (tdesc_arch_data_deleter::operator()): Rename from
1820 tdesc_data_cleanup. Change argument type.
1821 (tdesc_use_registers): Change early_data to an rvalue reference.
1822 (tdesc_use_registers): Don't use delete.
1823 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1824 * s390-tdep.c (s390_gdbarch_init): Update.
1825 * rx-tdep.c (rx_gdbarch_init): Update.
1826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1827 * riscv-tdep.c (riscv_gdbarch_init): Update.
1828 * or1k-tdep.c (or1k_gdbarch_init): Update.
1829 * nios2-tdep.c (nios2_gdbarch_init): Update.
1830 * nds32-tdep.c (nds32_gdbarch_init): Update.
1831 * mips-tdep.c (mips_gdbarch_init): Update.
1832 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1833 * m68k-tdep.c (m68k_gdbarch_init): Update.
1834 * i386-tdep.c (i386_gdbarch_init): Update.
1835 * arm-tdep.c (arm_gdbarch_init): Update.
1836 * arc-tdep.c (arc_tdesc_init): Update.
1837 (arc_gdbarch_init): Update.
1838 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1839
0363df3d
HD
18402020-09-17 Hannes Domani <ssbssa@yahoo.de>
1841
1842 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1843 for WOW64 processes.
1844
280a9412
TT
18452020-09-17 Tom Tromey <tom@tromey.com>
1846
1847 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1848
6108fd18
TT
18492020-09-17 Tom Tromey <tom@tromey.com>
1850
1851 * value.c (preserve_values): Update.
1852 * python/py-type.c (save_objfile_types): Update.
1853 * guile/scm-type.c (save_objfile_types): Update.
1854 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1855 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1856 * compile/compile-object-run.c (compile_object_run): Update.
1857
fa9b1164
TT
18582020-09-17 Tom Tromey <tom@tromey.com>
1859
1860 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1861 Remove.
1862 <m_table>: Now htab_up.
1863 * typeprint.c (typedef_hash_table::recursively_update)
1864 (typedef_hash_table::add_template_parameters)
1865 (typedef_hash_table::typedef_hash_table): Update.
1866 (typedef_hash_table::~typedef_hash_table): Remove.
1867 (typedef_hash_table::typedef_hash_table)
1868 (typedef_hash_table::find_global_typedef)
1869 (typedef_hash_table::find_typedef): Update.
1870
eb53f105
TT
18712020-09-17 Tom Tromey <tom@tromey.com>
1872
1873 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1874
7a8a5d47
TT
18752020-09-17 Tom Tromey <tom@tromey.com>
1876
1877 * linespec.c (class decode_compound_collector)
1878 <~decode_compound_collector>: Remove.
1879 <m_unique_syms>: Now htab_up.
1880 (decode_compound_collector::operator ()): Update.
1881 (class symtab_collector) <~symtab_collector>: Remove.
1882 <m_symtab_table>: Now htab_up.
1883 (symtab_collector::operator ()): Update.
1884
99032cfc
TT
18852020-09-17 Tom Tromey <tom@tromey.com>
1886
1887 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1888 (filename_seen_cache::clear): Update.
1889 (~filename_seen_cache): Remove.
1890 (filename_seen_cache::seen): Update.
1891 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1892 htab_up.
1893 <~filename_seen_cache>: Remove.
1894 <traverse>: Update.
1895
32580f6d
TT
18962020-09-17 Tom Tromey <tom@tromey.com>
1897
1898 * completer.c (completion_tracker::discard_completions)
1899 (completion_tracker::~completion_tracker)
1900 (completion_tracker::maybe_add_completion)
1901 (completion_tracker::remove_completion)
1902 (completion_tracker::recompute_lowest_common_denominator)
1903 (completion_tracker::build_completion_result): Update.
1904 * completer.h (class completion_tracker) <have_completions>:
1905 Update.
1906 <m_entries_hash>: Now htab_up.
1907
c1fb9836
TT
19082020-09-17 Tom Tromey <tom@tromey.com>
1909
1910 * breakpoint.c (ambiguous_names_p): Use htab_up.
1911
88f07206
TT
19122020-09-17 Tom Tromey <tom@tromey.com>
1913
1914 * auto-load.c (struct auto_load_pspace_info)
1915 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1916 <loaded_script_files, loaded_script_texts>: Change type to
1917 htab_up.
1918 (~auto_load_pspace_info) Remove.
1919 (init_loaded_scripts_info, maybe_add_script_file)
1920 (maybe_add_script_text, auto_load_info_scripts): Update.
1921
9519b2ee
TT
19222020-09-17 Tom Tromey <tromey@adacore.com>
1923
1924 * c-exp.y (name_obstack): Now static.
1925
d2cd4113
CC
19262020-09-17 Chungyi Chi <demonic@csie.io>
1927
1928 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1929
b650a282
SM
19302020-09-16 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1933 (add_solib_catchpoint): Likewise.
1934 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1935 to bool.
1936 (add_solib_catchpoint): Change int parameter/variable to bool.
1937 (catch_load_or_unload): Likewise.
1938 (init_catchpoint): Likewise.
1939 (create_fork_vfork_event_catchpoint): Likewise.
1940 (catch_fork_command_1): Likewise.
1941 (catch_exec_command_1): Likewise.
1942
4d0bcfcf
SM
19432020-09-16 Simon Marchi <simon.marchi@efficios.com>
1944
1945 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1946 Change instance_flags to m_instance_flags.
1947
fe830662
TT
19482020-09-16 Tom Tromey <tromey@adacore.com>
1949
1950 PR gdb/26598:
1951 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1952
fe5ddfc3
JB
19532020-09-16 John Baldwin <jhb@FreeBSD.org>
1954
1955 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1956 PL_FLAG_EXEC.
1957 (fbsd_nat_target::insert_exec_catchpoint)
1958 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1959 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1960 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1961
e911c666
JB
19622020-09-16 John Baldwin <jhb@FreeBSD.org>
1963
1964 * configure.ac: Remove check for kinfo_getvmmap().
1965 * configure, config.in: Regenerate.
1966 * fbsd-nat.c (fbsd_read_mapping): Remove
1967 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1968 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1969 kinfo_get_vmmap() are always present.
1970
1f17d372
JB
19712020-09-16 John Baldwin <jhb@FreeBSD.org>
1972
1973 * fbsd-nat.c: Always include support for
1974 TARGET_OBJECT_SIGNAL_INFO.
1975
bcb1da7f
JB
19762020-09-16 John Baldwin <jhb@FreeBSD.org>
1977
1978 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1979 sysctl and remove procfs fallback.
1980
5515f729
JB
19812020-09-16 John Baldwin <jhb@FreeBSD.org>
1982
1983 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1984 * fbsd-nat.h: Likewise.
1985
da1df1db
TBA
19862020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1987
1988 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1989 argument.
1990
0e25e767
AB
19912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * ada-lang.c (ada_language_data): Delete.
1994 (ada_language): Remove references to ada_language_data.
1995 * c-lang.c (c_language_data): Delete.
1996 (c_language): Remove references to c_language_data.
1997 (cplus_language_data): Delete.
1998 (cplus_language): Remove references to cplus_language_data.
1999 (asm_language_data): Delete.
2000 (asm_language): Remove references to asm_language_data.
2001 (minimal_language_data): Delete.
2002 (minimal_language): Remove references to minimal_language_data.
2003 * d-lang.c (d_language_data): Delete.
2004 (d_language): Remove references to d_language_data.
2005 * f-lang.c (f_language_data): Delete.
2006 (f_language): Remove references to f_language_data.
2007 * go-lang.c (go_language_data): Delete.
2008 (go_language): Remove references to go_language_data.
2009 * language.c (unknown_language_data): Delete.
2010 (unknown_language): Remove references to unknown_language_data.
2011 (auto_language_data): Delete.
2012 (auto_language): Remove references to auto_language_data.
2013 * language.h (language_data): Delete struct.
2014 (language_defn): No longer inherit from language_data.
2015 * m2-lang.c (m2_language_data): Delete.
2016 (m2_language): Remove references to m2_language_data.
2017 * objc-lang.c (objc_language_data): Delete.
2018 (objc_language): Remove references to objc_language_data.
2019 * opencl-lang.c (opencl_language_data): Delete.
2020 (opencl_language): Remove references to opencl_language_data.
2021 * p-lang.c (pascal_language_data): Delete.
2022 (pascal_language): Remove references to pascal_language_data.
2023 * rust-lang.c (rust_language_data): Delete.
2024 (rust_language): Remove references to rust_language_data.
2025
b7c6e27d
AB
20262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2029 initializer.
2030 (ada_language::opcode_print_table): New member function.
2031 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2032 (c_language::opcode_print_table): New member function.
2033 (cplus_language_data): Remove la_op_print_tab initializer.
2034 (cplus_language::opcode_print_table): New member function.
2035 (asm_language_data): Remove la_op_print_tab initializer.
2036 (asm_language::opcode_print_table): New member function.
2037 (minimal_language_data): Remove la_op_print_tab initializer.
2038 (minimal_language::opcode_print_table): New member function.
2039 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2040 (d_language::opcode_print_table): New member function.
2041 * expprint.c (print_subexp_standard): Update call to
2042 opcode_print_table.
2043 (op_string): Likewise.
2044 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2045 (f_language::opcode_print_table): New member function.
2046 * go-lang.c (go_language_data): Remove la_op_print_tab
2047 initializer.
2048 (go_language::opcode_print_table): New member function.
2049 * language.c (unknown_language_data): Remove la_op_print_tab
2050 initializer.
2051 (unknown_language::opcode_print_table): New member function.
2052 (auto_language_data): Remove la_op_print_tab initializer.
2053 (auto_language::opcode_print_table): New member function.
2054 * language.h (language_data): Remove la_op_print_tab field.
2055 (language_defn::opcode_print_table): Declare new member function.
2056 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2057 initializer.
2058 (m2_language::opcode_print_table): New member function.
2059 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2060 initializer.
2061 (objc_language::opcode_print_table): New member function.
2062 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2063 initializer.
2064 (opencl_language::opcode_print_table): New member function.
2065 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2066 initializer.
2067 (pascal_language::opcode_print_table): New member function.
2068 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2069 initializer.
2070 (rust_language::opcode_print_table): New member function.
2071
5aba6ebe
AB
20722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2075 (ada_language::expression_ops): New member function.
2076 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2077 (c_language::expression_ops): New member function.
2078 (cplus_language_data): Remove la_exp_desc initializer.
2079 (cplus_language::expression_ops): New member function.
2080 (asm_language_data): Remove la_exp_desc initializer.
2081 (asm_language::expression_ops): New member function.
2082 (minimal_language_data): Remove la_exp_desc initializer.
2083 (minimal_language::expression_ops): New member function.
2084 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2085 (d_language::expression_ops): New member function.
2086 * eval.c (evaluate_subexp): Update call to expression_ops.
2087 * expprint.c (print_subexp): Likewise.
2088 (op_name): Likewise.
2089 (dump_subexp_body): Likewise.
2090 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2091 (f_language::expression_ops): New member function.
2092 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2093 (go_language::expression_ops): New member function.
2094 * language.c (language_defn::expression_ops): New function.
2095 (unknown_language_data): Remove la_exp_desc initializer.
2096 (auto_language_data): Likewise.
2097 * language.h (language_data): Remove la_exp_desc field.
2098 (language_defn::expression_ops): Declare new member function.
2099 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2100 (m2_language::expression_ops): New member function.
2101 * objc-lang.c (objc_language_data): Remove la_exp_desc
2102 initializer.
2103 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2104 initializer.
2105 (opencl_language::expression_ops): New member function.
2106 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2107 * parse.c (operator_length): Update call to expression_ops.
2108 (exp_iterate): Likewise.
2109 * rust-lang.c (rust_language_data): Remove la_exp_desc
2110 initializer.
2111 (ruse_language::expression_ops): New member function.
2112
b63a3f3f
AB
21132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2116 initializer.
2117 (ada_language::varobj_ops): New member function.
2118 * c-lang.c (c_language_data): Remove la_varobj_ops
2119 initializer.
2120 (cplus_language_data): Likewise.
2121 (cplus_language::varobj_ops): New member function.
2122 (asm_language_data): Remove la_varobj_ops initializer.
2123 (minimal_language_data): Likewise.
2124 * d-lang.c (d_language_data): Likewise.
2125 * f-lang.c (f_language_data): Likewise.
2126 * go-lang.c (go_language_data): Likewise.
2127 * language.c (language_defn::varobj_ops): New function.
2128 (unknown_language_data): Remove la_varobj_ops
2129 initializer.
2130 (auto_language_data): Likewise.
2131 * language.h (language_data): Remove la_varobj_ops field.
2132 (language_defn::varobj_ops): Declare new member function.
2133 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138 * varobj.c (varobj_create): Update call to varobj_ops.
2139 * varobj.h (default_varobj_ops): Delete define.
2140
1ac14a04
AB
21412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2144 initializer.
2145 * c-lang.c (c_language_data): Likewise.
2146 (c_language::macro_expansion): New member function.
2147 (cplus_language_data): Likewise.
2148 (cplus_language::macro_expansion): New member function.
2149 (asm_language_data): Likewise.
2150 (asm_language::macro_expansion): New member function.
2151 (minimal_language_data): Likewise.
2152 (minimal_language::macro_expansion): New member function.
2153 * d-lang.c (d_language_data): Remove la_macro_expansion
2154 initializer.
2155 * f-lang.c (f_language_data): Likewise.
2156 * go-lang.c (go_language_data): Likewise.
2157 * language.c (unknown_language_data): Likewise.
2158 (auto_language_data): Likewise.
2159 * language.h (language_data): Remove la_macro_expansion field.
2160 (language_defn::macro_expansion): New member function.
2161 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2162 initializer.
2163 * objc-lang.c (objc_language_data): Likewise.
2164 (objc_language::macro_expansion): New member function.
2165 * opencl-lang.c (opencl_language_data): Likewise.
2166 (opencl_language::macro_expansion): New member function.
2167 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2168 initializer.
2169 * rust-lang.c (rust_language_data): Likewise.
2170 * symtab.c (default_collect_symbol_completion_matches_break_on):
2171 Update call to macro_expansion.
2172
3a3440fb
AB
21732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * ada-lang.c (ada_language_data): Remove la_array_ordering
2176 initializer.
2177 * c-lang.c (c_language_data): Likewise.
2178 (cplus_language_data): Likewise.
2179 (asm_language_data): Likewise.
2180 (minimal_language_data): Likewise.
2181 * d-lang.c (d_language_data): Likewise.
2182 * dwarf2/read.c (read_array_order): Update for call to
2183 array_ordering.
2184 * f-lang.c (f_language_data): Remove la_array_ordering
2185 initializer.
2186 (f_language::array_ordering): New member function.
2187 * go-lang.c (go_language_data): Remove la_array_ordering
2188 initializer.
2189 * language.c (unknown_language_data): Likewise.
2190 (auto_language_data): Likewise.
2191 * language.h (language_data): Delete la_array_ordering field.
2192 (language_defn::array_ordering): New member function.
2193 * m2-lang.c (m2_language_data): Remove la_array_ordering
2194 initializer.
2195 * objc-lang.c (objc_language_data): Likewise.
2196 * opencl-lang.c (opencl_language_data): Likewise.
2197 * p-lang.c (pascal_language_data): Likewise.
2198 * rust-lang.c (rust_language_data): Likewise.
2199
0d201fa4
AB
22002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2203 initializer.
2204 * c-lang.c (c_language_data): Likewise.
2205 (cplus_language_data): Likewise.
2206 (asm_language_data): Likewise.
2207 (minimal_language_data): Likewise.
2208 * d-lang.c (d_language_data): Likewise.
2209 * f-lang.c (f_language_data): Likewise.
2210 (f_language::case_sensitivity): New member function.
2211 * go-lang.c (go_language_data): Remove la_case_sensitivity
2212 initializer.
2213 * language.c (enum case_mode): Moved here from language.h.
2214 (case_mode): Make static.
2215 (show_case_command): Update for case_sensitivity being a method.
2216 (set_case_command): Likewise.
2217 (set_range_case): Likewise.
2218 (unknown_language_data): Remove la_case_sensitivity initializer.
2219 (auto_language_data): Likewise.
2220 * language.h (case_mode): Delete, move enum declaration to
2221 language.c.
2222 (language_data): Delete la_case_sensitivity field.
2223 (language_defn::case_sensitivity): New member function.
2224 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2225 initializer.
2226 * objc-lang.c (objc_language_data): Likewise.
2227 * opencl-lang.c (opencl_language_data): Likewise.
2228 * p-lang.c (pascal_language_data): Likewise.
2229 * rust-lang.c (rust_language_data): Likewise.
2230
efdf6a73
AB
22312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * ada-lang.c (ada_language_data): Remove la_range_check
2234 initializer.
2235 * c-lang.c (c_language_data): Likewise.
2236 (cplus_language_data): Likewise.
2237 (asm_language_data): Likewise.
2238 (minimal_language_data): Likewise.
2239 * d-lang.c (d_language_data): Likewise.
2240 * f-lang.c (f_language_data): Likewise.
2241 (f_language::range_checking_on_by_default): New member function.
2242 * go-lang.c (go_language_data): Remove la_range_check initializer.
2243 * language.c (enum range_mode): Moved here from language.h.
2244 (range_mode): Made static.
2245 (show_range_command): Update to use
2246 range_checking_on_by_default.
2247 (set_range_command): Likewise.
2248 (set_range_case): Likewise.
2249 (unknown_language_data): Remove la_range_check initializer.
2250 (auto_language_data): Likewise.
2251 * language.h (range_mode): Delete. Enum definition moved to
2252 language.c.
2253 (language_data): Remove la_range_check field.
2254 (language_defn::range_checking_on_by_default): New member
2255 function.
2256 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2257 (m2_language::range_checking_on_by_default): New member function.
2258 * objc-lang.c (objc_language_data): Remove la_range_check
2259 initializer.
2260 * opencl-lang.c (opencl_language_data): Likewise.
2261 * p-lang.c (pascal_language_data): Likewise.
2262 (pascal_language::range_checking_on_by_default): New member
2263 function.
2264 * rust-lang.c (rust_language_data): Remove la_range_check
2265 initializer.
2266 (rust_language::range_checking_on_by_default): New member
2267 function.
2268
bf92aec5
AB
22692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * dwarf2/read.c (dwarf2_physname): Remove special case for
2272 language_go.
2273 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2274 member function.
2275
d3355e4d
AB
22762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * ada-lang.c (ada_language_data): Remove
2279 la_store_sym_names_in_linkage_form_p initializer.
2280 (ada_language::store_sym_names_in_linkage_form_p): New member
2281 function.
2282 * c-lang.c (c_language_data): Remove
2283 la_store_sym_names_in_linkage_form_p initializer.
2284 (c_language::store_sym_names_in_linkage_form_p): New member
2285 function.
2286 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2287 initializer.
2288 (asm_language_data): Likewise.
2289 (asm_language::store_sym_names_in_linkage_form_p): New member
2290 function.
2291 (minimal_language_data): Remove
2292 la_store_sym_names_in_linkage_form_p initializer.
2293 (minimal_language::store_sym_names_in_linkage_form_p): New member
2294 function.
2295 * d-lang.c (d_language_data): Remove
2296 la_store_sym_names_in_linkage_form_p initializer.
2297 * dwarf2/read.c (dwarf2_physname): Update call to
2298 store_sym_names_in_linkage_form_p.
2299 * f-lang.c (f_language_data): Remove
2300 la_store_sym_names_in_linkage_form_p initializer.
2301 * go-lang.c (go_language_data): Remove
2302 la_store_sym_names_in_linkage_form_p initializer.
2303 * language.c (unknown_language_data): Remove
2304 la_store_sym_names_in_linkage_form_p initializer.
2305 (unknown_language::store_sym_names_in_linkage_form_p): New member
2306 function.
2307 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2308 initializer.
2309 (auto_language::store_sym_names_in_linkage_form_p): New member
2310 function.
2311 * language.h (language_data): Remove
2312 la_store_sym_names_in_linkage_form_p member variable.
2313 (language_defn::store_sym_names_in_linkage_form_p): New member
2314 function.
2315 * m2-lang.c (m2_language_data): Remove
2316 la_store_sym_names_in_linkage_form_p initializer.
2317 * objc-lang.c (objc_language_data): Likewise.
2318 * opencl-lang.c (opencl_language_data): Likewise.
2319 * p-lang.c (pascal_language_data): Likewise.
2320 * rust-lang.c (rust_language_data): Likewise.
2321
22c12a6c
AB
23222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * ada-lang.c (ada_language_data): Remove string_lower_bound
2325 initializer.
2326 * c-lang.c (c_language_data): Likewise.
2327 (cplus_language_data): Likewise.
2328 (asm_language_data): Likewise.
2329 (minimal_language_data): Likewise.
2330 * d-lang.c (d_language_data): Likewise.
2331 * f-lang.c (f_language_data): Likewise.
2332 * go-lang.c (go_language_data): Likewise.
2333 * language.c (unknown_language_data): Likewise.
2334 (auto_language_data): Likewise.
2335 * language.h (language_data): Remove string_lower_bound field.
2336 (language_defn::string_lower_bound): New member function.
2337 * m2-lang.c (m2_language_data): Remove string_lower_bound
2338 initializer.
2339 (m2_language::string_lower_bound): New member function.
2340 * objc-lang.c (objc_language_data): Remove string_lower_bound
2341 initializer.
2342 * opencl-lang.c (opencl_language_data): Likewise.
2343 * p-lang.c (pascal_language_data): Likewise.
2344 * rust-lang.c (rust_language_data): Likewise.
2345 * valops.c (value_cstring): Update call to string_lower_bound.
2346 (value_string): Likewise.
2347 * value.c (allocate_repeated_value): Likewise.
2348
1c236ddd
AB
23492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * valops.c (value_repeat): Fix incorrect argument name in comment.
2352
67bd3fd5
AB
23532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2354
2355 * ada-lang.c (ada_language_data): Remove c_style_arrays
2356 initializer.
2357 (ada_language::c_style_arrays_p): New member fuction.
2358 * c-lang.c (c_language_data): Remove c_style_arrays
2359 initializer.
2360 (cplus_language_data): Likewise.
2361 (asm_language_data): Likewise.
2362 (minimal_language_data): Likewise.
2363 * d-lang.c (d_language_data): Likewise.
2364 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2365 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2366 (f_language::c_style_arrays_p): New member function.
2367 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2368 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2369 * language.c (unknown_language_data): Remove c_style_arrays
2370 initializer.
2371 (auto_language_data): Likewise.
2372 * language.h (language_data): Remove c_style_arrays field.
2373 (language_defn::c_style_arrays_p): New member function.
2374 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2375 (m2_language::c_style_arrays_p): New member function.
2376 * objc-lang.c (objc_language_data): Remove c_style_arrays
2377 initializer.
2378 * opencl-lang.c (opencl_language_data): Likewise.
2379 * p-lang.c (pascal_language_data): Likewise.
2380 * rust-lang.c (rust_language_data): Likewise.
2381 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2382 and update local variable to a bool.
2383 * valops.c (value_cast): Update call to c_style_arrays_p.
2384 (value_array): Likewise.
2385 * value.c (coerce_array): Likewise.
2386
85967615
AB
23872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language_data): Remove la_language initializer.
2390 * c-lang.c (c_language_data): Likewise.
2391 (cplus_language_data): Likewise.
2392 (asm_language_data): Likewise.
2393 (minimal_language_data): Likewise.
2394 * d-lang.c (d_language_data): Likewise.
2395 * f-lang.c (f_language_data): Likewise.
2396 * go-lang.c (go_language_data): Likewise.
2397 * language.c (unknown_language_data): Likewise.
2398 (auto_language_data): Likewise.
2399 * language.h (language_data): Remove la_language field.
2400 (language_defn::language_defn): Initialise la_language field.
2401 (language_defn::la_language): New member variable.
2402 * m2-lang.c (m2_language_data): Remove la_language field.
2403 * objc-lang.c (objc_language_data): Likewise.
2404 * opencl-lang.c (opencl_language_data): Likewise.
2405 * p-lang.c (pascal_language_data): Likewise.
2406 * rust-lang.c (rust_language_data): Likewise.
2407
e171d6f1
AB
24082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * ada-lang.c (ada_extensions): Delete, moved into
2411 ada_language::filename_extensions.
2412 (ada_language_data): Remove la_filename_extensions initializer.
2413 (ada_language::filename_extensions): New member function.
2414 * c-lang.c (c_extensions): Delete, moved into
2415 c_language::filename_extensions.
2416 (c_language_data): Remove la_filename_extensions initializer.
2417 (c_language::filename_extensions): New member function.
2418 (cplus_extensions): Delete, moved into
2419 cplus_language::filename_extensions.
2420 (cplus_language_data): Remove la_filename_extensions initializer.
2421 (cplus_language::filename_extensions): New member function.
2422 (asm_extensions): Delete, moved into
2423 asm_language::filename_extensions.
2424 (asm_language_data): Remove la_filename_extensions initializer.
2425 (asm_language::filename_extensions): New member function.
2426 (minimal_language_data): Remove la_filename_extensions
2427 initializer.
2428 * d-lang.c (d_extensions): Delete, moved into
2429 d_language::filename_extensions.
2430 (d_language_data): Remove la_filename_extensions initializer.
2431 (d_language::filename_extensions): New member function.
2432 * f-lang.c (f_extensions): Delete, moved into
2433 f_language::filename_extensions.
2434 (f_language_data): Remove la_filename_extensions initializer.
2435 (f_language::filename_extensions): New member function.
2436 * go-lang.c (go_language_data): Remove la_filename_extensions
2437 initializer.
2438 * language.c (add_set_language_command): Update now that
2439 filename_extensions returns a vector.
2440 (unknown_language_data): Remove la_filename_extensions
2441 initializer.
2442 (auto_language_data): Likewise.
2443 * language.h (language_data): Remove la_filename_extensions field.
2444 (language_defn::filename_extensions): New member function.
2445 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2446 initializer.
2447 * objc-lang.c (objc_extensions): Delete, moved into
2448 objc_language::filename_extensions.
2449 (objc_language_data): Remove la_filename_extensions initializer.
2450 (objc_language::filename_extensions): New member function.
2451 * opencl-lang.c (opencl_language_data): Remove
2452 la_filename_extensions initializer.
2453 * p-lang.c (pascal_extensions): Delete, moved into
2454 pascal_language::filename_extensions.
2455 (pascal_language_data): Remove la_filename_extensions initializer.
2456 (pascal_language::filename_extensions): New member function.
2457 * rust-lang.c (rust_extensions): Delete, moved into
2458 rust_language::filename_extensions.
2459 (rust_language_data): Remove la_filename_extensions initializer.
2460 (rust_language::filename_extensions): New member function.
2461 * symfile.c (add_filename_language): Add new assert.
2462
6f7664a9
AB
24632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * ada-lang.c (ada_language_data): Remove la_name and
2466 la_natural_name initializers.
2467 (ada_language::name): New member function.
2468 (ada_language::natural_name): New member function.
2469 * c-lang.c (c_language_data): Remove la_name and
2470 la_natural_name initializers.
2471 (c_language::name): New member function.
2472 (c_language::natural_name): New member function.
2473 (cplus_language_data): Remove la_name and
2474 la_natural_name initializers.
2475 (cplus_language::name): New member function.
2476 (cplus_language::natural_name): New member function.
2477 (asm_language_data): Remove la_name and
2478 la_natural_name initializers.
2479 (asm_language::name): New member function.
2480 (asm_language::natural_name): New member function.
2481 (minimal_language_data): Remove la_name and
2482 la_natural_name initializers.
2483 (minimal_language::name): New member function.
2484 (minimal_language::natural_name): New member function.
2485 * compile/compile.c (compile_to_object): Update call to
2486 lanugage_defn::name.
2487 * d-lang.c (d_language_data): Remove la_name and
2488 la_natural_name initializers.
2489 (d_language::name): New member function.
2490 (d_language::natural_name): New member function.
2491 * expprint.c (print_subexp_standard): Update call to
2492 language_defn::name.
2493 (dump_raw_expression): Likewise
2494 (dump_prefix_expression): Likewise.
2495 * f-lang.c (f_language_data): Remove la_name and
2496 la_natural_name initializers.
2497 (f_language::name): New member function.
2498 (f_language::natural_name): New member function.
2499 * go-lang.c (go_language_data): Remove la_name and
2500 la_natural_name initializers.
2501 (go_language::name): New member function.
2502 (go_language::natural_name): New member function.
2503 * language.c (show_language_command): Update call to
2504 language_defn::name.
2505 (set_language_command): Likewise.
2506 (language_enum): Likewise.
2507 (language_str): Likewise.
2508 (add_set_language_command): Likewise, use
2509 language_defn::natural_name in the doc string.
2510 (unknown_language_data): Remove la_name and
2511 la_natural_name initializers.
2512 (unknown_language::name): New member function.
2513 (unknown_language::natural_name): New member function.
2514 (auto_language_data): Remove la_name and
2515 la_natural_name initializers.
2516 (auto_language::name): New member function.
2517 (auto_language::natural_name): New member function.
2518 (language_lookup_primitive_type_as_symbol): Update call to
2519 language_defn::name.
2520 * language.h (language_data): Remove la_name and la_natural_name
2521 member variables.
2522 (language_defn::name): New member function.
2523 (language_defn::natural_name): New member function.
2524 * m2-lang.c (m2_language_data): Remove la_name and
2525 la_natural_name initializers.
2526 (m2_language::name): New member function.
2527 (m2_language::natural_name): New member function.
2528 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2529 language_defn::natural_name.
2530 * objc-lang.c (objc_language_data): Remove la_name and
2531 la_natural_name initializers.
2532 (objc_language::name): New member function.
2533 (objc_language::natural_name): New member function.
2534 * opencl-lang.c (opencl_language_data): Remove la_name and
2535 la_natural_name initializers.
2536 (opencl_language::name): New member function.
2537 (opencl_language::natural_name): New member function.
2538 * p-lang.c (pascal_language_data): Remove la_name and
2539 la_natural_name initializers.
2540 (pascal_language::name): New member function.
2541 (pascal_language::natural_name): New member function.
2542 * rust-lang.c (rust_language_data): Remove la_name and
2543 la_natural_name initializers.
2544 (rust_language::name): New member function.
2545 (rust_language::natural_name): New member function.
2546 * symtab.c (lookup_language_this): Update call to
2547 language_defn::name.
2548
5bae7c4e
AB
25492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (ada_language_data): Remove la_name_of_this
2552 initializer.
2553 * ax-gdb.c (gen_expr): Update call to name_of_this.
2554 * c-exp.y (classify_name): Likewise.
2555 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2556 (cplus_language_data): Likewise.
2557 (cplus_language::name_of_this): New member function.
2558 (asm_language_data): Remove la_name_of_this initializer.
2559 (minimal_language_data): Likewise.
2560 * d-lang.c (d_language_data): Likewise.
2561 (d_language::name_of_this): New member function.
2562 * expprint.c (print_subexp_standard): Update call to name_of_this.
2563 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2564 * go-lang.c (go_language_data): Likewise.
2565 * language.c (unknown_language_data): Likewise.
2566 (unknown_language::name_of_this): New member function.
2567 (auto_language_data): Remove la_name_of_this initializer.
2568 (auto_language::name_of_this): New member function.
2569 * language.h (language_data): Delete la_name_of_this member
2570 variable.
2571 (language_defn::name_of_this): New member function.
2572 * m2-lang.c (m2_language_data): Remove la_name_of_this
2573 initializer.
2574 * objc-lang.c (objc_language_data): Likewise.
2575 (objc_language::name_of_this): New member function.
2576 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2577 initializer.
2578 * p-lang.c (pascal_language_data): Likewise.
2579 (pascal_language::name_of_this): New member function.
2580 * rust-lang.c (rust_language_data): Remove la_name_of_this
2581 initializer.
2582 * symtab.c (lookup_language_this): Update call to name_of_this.
2583 (lookup_symbol_aux): Likewise.
2584 * valops.c (value_of_this): Likewise.
2585
22e3f3ed
AB
25862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * ada-lang.c (ada_language_data): Remove
2589 la_struct_too_deep_ellipsis initializer.
2590 (ada_language::struct_too_deep_ellipsis): New member function.
2591 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2592 initializer.
2593 (cplus_language_data): Likewise.
2594 (asm_language_data): Likewise.
2595 (minimal_language_data): Likewise.
2596 * cp-valprint.c (cp_print_value): Update call to
2597 struct_too_deep_ellipsis.
2598 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2599 initializer.
2600 * f-lang.c (f_language_data): Likewise.
2601 (f_language::struct_too_deep_ellipsis): New member function.
2602 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2603 initializer.
2604 * language.c (unknown_language_data): Likewise.
2605 (auto_language_data): Likewise.
2606 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2607 member variable.
2608 (language_defn::struct_too_deep_ellipsis): New member function.
2609 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2610 initializer.Q
2611 * objc-lang.c (objc_language_data): Likewise.
2612 * opencl-lang.c (opencl_language_data): Likewise.
2613 * p-lang.c (pascal_language_data): Likewise.
2614 * rust-lang.c (rust_language_data): Likewise.
2615 * valprint.c (val_print_check_max_depth): Update call to
2616 struct_too_deep_ellipsis.
2617
ed29e1c7
FW
26182020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2619
2620 * MAINTAINERS (Write After Approval): Add myself.
2621
12d8f940
TT
26222020-09-15 Tom Tromey <tom@tromey.com>
2623
2624 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2625 Remove.
2626
6b5a7bc7
TT
26272020-09-15 Tom Tromey <tom@tromey.com>
2628
2629 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2630 and TYPE_CODE_METHODPTR cases.
2631 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2632 (c_value_print_inner): Update.
2633 * valprint.c (generic_value_print_memberptr): New function, from
2634 c_value_print_memberptr.
2635 (generic_value_print): Use it. Call cplus_print_method_ptr.
2636
47f0e2ff
TT
26372020-09-15 Tom Tromey <tromey@adacore.com>
2638
2639 * python/python-internal.h (PyInt_FromLong): Remove define.
2640 * python/py-value.c (convert_value_from_python): Use
2641 gdb_py_object_from_longest.
2642 * python/py-type.c (typy_get_code): Use
2643 gdb_py_object_from_longest.
2644 * python/py-symtab.c (salpy_get_line): Use
2645 gdb_py_object_from_longest.
2646 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2647 gdb_py_object_from_longest.
2648 * python/py-record.c (recpy_gap_reason_code): Use
2649 gdb_py_object_from_longest.
2650 * python/py-record-btrace.c (recpy_bt_insn_size)
2651 (recpy_bt_func_level, btpy_list_count): Use
2652 gdb_py_object_from_longest.
2653 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2654 gdb_py_object_from_longest. Fix error handling.
2655 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2656 gdb_py_object_from_longest.
2657 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2658 gdb_py_object_from_longest.
2659 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2660 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2661 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2662
512116ce
TT
26632020-09-15 Tom Tromey <tromey@adacore.com>
2664
2665 * python/python.c (gdbpy_parameter_value): Use
2666 gdb_py_object_from_ulongest.
2667
4ab1029c
TT
26682020-09-15 Tom Tromey <tromey@adacore.com>
2669
2670 * python/py-infevents.c (create_register_changed_event_object):
2671 Use gdb_py_object_from_longest.
2672 * python/py-exitedevent.c (create_exited_event_object): Use
2673 gdb_py_object_from_longest.
2674
062534d4
TT
26752020-09-15 Tom Tromey <tromey@adacore.com>
2676
2677 * python/python.c (gdbpy_parameter_value): Use
2678 gdb_py_object_from_longest.
2679 * python/py-type.c (convert_field, typy_range): Use
2680 gdb_py_object_from_longest.
2681 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2682 gdb_py_object_from_longest.
2683 * python/py-lazy-string.c (stpy_get_length): Use
2684 gdb_py_object_from_longest.
2685 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2686 gdb_py_object_from_longest.
2687 * python/py-infevents.c (create_memory_changed_event_object): Use
2688 gdb_py_object_from_longest.
2689 * python/py-inferior.c (infpy_get_num): Use
2690 gdb_py_object_from_longest.
2691 (infpy_get_pid): Likewise.
2692
d1cab987
TT
26932020-09-15 Tom Tromey <tromey@adacore.com>
2694
2695 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2696 defines.
2697 * python/py-value.c (valpy_long): Use
2698 gdb_py_object_from_ulongest.
2699 * python/py-symtab.c (salpy_get_pc): Use
2700 gdb_py_object_from_ulongest.
2701 (salpy_get_last): Likewise.
2702 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2703 gdb_py_object_from_ulongest.
2704 * python/py-lazy-string.c (stpy_get_address): Use
2705 gdb_py_object_from_ulongest.
2706 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2707 * python/py-arch.c (archpy_disassemble): Use
2708 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2709 error handling.
2710
4bde49dc
TT
27112020-09-15 Tom Tromey <tromey@adacore.com>
2712
2713 * python/python-internal.h (gdb_py_long_from_longest): Remove
2714 defines.
2715 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2716 * python/py-type.c (convert_field, typy_get_sizeof): Use
2717 gdb_py_object_from_longest.
2718 * python/py-record-btrace.c (btpy_list_index): Use
2719 gdb_py_object_from_longest.
2720
37431074
TT
27212020-09-15 Tom Tromey <tromey@adacore.com>
2722
2723 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2724 * python/py-record.c (recpy_element_number): Use
2725 gdb_py_object_from_longest.
2726 (recpy_gap_number): Likewise.
2727
cbe25684
TT
27282020-09-15 Tom Tromey <tromey@adacore.com>
2729
2730 * top.c (ui::ui): Update.
2731 (highest_ui_num): Remove.
2732 * top.h (struct ui) <num>: Remove.
2733
db92ac45
TT
27342020-09-15 Tom Tromey <tromey@adacore.com>
2735
2736 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2737 * ui-style.c (ansi_regex_text): Now array.
2738 * rust-exp.y (number_regex_text): Now array.
2739 * linespec.c (linespec_quote_characters): Now array.
2740 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2741 Now arrays.
2742
d2b31b67
SM
27432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * debuginfod-support.c (debuginfod_client_deleter): New.
2746 (debuginfod_client_up): New.
2747 (debuginfod_init): Return debuginfod_client_up.
2748 (debuginfod_source_query): Adjust.
2749 (debuginfod_debuginfo_query): Adjust.
2750
3246bd8e
SM
27512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2752
2753 * debuginfod-support.c (debuginfod_source_query): Use
2754 make_unique_xstrdup.
2755
10242f36
SM
27562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2759 with `type::instance_flags`.
2760
e1044e6a
MM
27612020-09-14 Michael Mullin <masmullin@gmail.com>
2762
2763 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2764 Remove baton parameter.
2765
04902b09
PA
27662020-09-14 Pedro Alves <pedro@palves.net>
2767
2768 * Makefile.in (SELFTESTS_SRCS): Add
2769 unittests/enum-flags-selftests.c.
2770 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2771 btrace_function_flags instead of enum btrace_function_flag.
2772 * compile/compile-c-types.c (convert_qualified): Use
2773 enum_flags::raw.
2774 * compile/compile-cplus-symbols.c (convert_one_symbol)
2775 (convert_symbol_bmsym):
2776 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2777 (compile_cplus_convert_struct_or_union_methods)
2778 (compile_cplus_instance::convert_qualified_base):
2779 * go-exp.y (parse_string_or_char): Add cast to int.
2780 * unittests/enum-flags-selftests.c: New file.
2781 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2782 type to btrace_thread_flags from btrace_thread_flag.
2783 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2784 local's type to btrace_thread_flags from btrace_thread_flag. Add
2785 cast in DEBUG call.
2786
69896a2c
PA
27872020-09-14 Pedro Alves <pedro@palves.net>
2788
2789 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2790 * gdbtypes.c (address_space_name_to_int): Rename to ...
2791 (address_space_name_to_type_instance_flags): ... this.
2792 (address_space_int_to_name): Rename to ...
2793 (address_space_type_instance_flags_to_name): ... this.
2794 * gdbtypes.h (address_space_name_to_int): Rename to ...
2795 (address_space_name_to_type_instance_flags): ... this.
2796 (address_space_int_to_name): Rename to ...
2797 (address_space_type_instance_flags_to_name): ... this.
2798 * type-stack.c (type_stack::insert): Adjust to rename.
2799 * type-stack.h (type_stack::insert): Likewise.
2800
314ad88d
PA
28012020-09-14 Pedro Alves <pedro@palves.net>
2802 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * avr-tdep.c (avr_address_class_type_flags): Return
2805 type_instance_flags.
2806 (avr_address_class_type_flags_to_name): Take a
2807 type_instance_flags.
2808 (avr_address_class_name_to_type_flags): Return bool and take a
2809 type_instance_flags.
2810 * d-lang.c (build_d_types): Use type::set_instance_flags.
2811 * ft32-tdep.c (ft32_address_class_type_flags): Return
2812 type_instance_flags.
2813 (ft32_address_class_type_flags_to_name): Take a
2814 type_instance_flags.
2815 (ft32_address_class_name_to_type_flags): Return bool and take a
2816 type_instance_flags.
2817 (ft32_gdbarch_init): Use type::set_instance_flags.
2818 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2819 * gdbarch.h, gdbarch.c: Regenerate.
2820 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2821 (address_class_name_to_type_flags): Use type_instance_flags and
2822 bool.
2823 * gdbtypes.c (address_space_name_to_int)
2824 (address_space_int_to_name, make_qualified_type): Use
2825 type_instance_flags.
2826 (make_qualified_type): Use type_instance_flags and
2827 type::set_instance_flags.
2828 (make_type_with_address_space, make_cv_type, make_vector_type)
2829 (check_typedef): Use type_instance_flags.
2830 (recursive_dump_type): Cast type_instance_flags to unsigned for
2831 printing.
2832 (copy_type_recursive): Use type::set_instance_flags.
2833 (gdbtypes_post_init): Use type::set_instance_flags.
2834 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2835 <m_instance_flags>: ... this.
2836 <instance_flags, set_instance_flags>: New methods.
2837 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2838 (SET_TYPE_INSTANCE_FLAGS): New.
2839 (address_space_name_to_int, address_space_int_to_name)
2840 (make_type_with_address_space): Pass flags using
2841 type_instance_flags instead of int.
2842 * stabsread.c (cleanup_undefined_types_noname): Use
2843 type::set_instance_flags.
2844 * s390-tdep.c (s390_address_class_type_flags): Return
2845 type_instance_flags.
2846 (s390_address_class_type_flags_to_name): Take a
2847 type_instance_flags.
2848 (s390_address_class_name_to_type_flags): Return bool and take a
2849 type_instance_flags.
2850 * type-stack.c (type_stack::follow_types): Use
2851 type_instance_flags.
2852 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2853
27087b7f
TT
28542020-09-14 Tom Tromey <tromey@adacore.com>
2855
2856 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2857 * x86-tdep.c (x86_is_thunk_register_name)
2858 (x86_in_indirect_branch_thunk): Update.
2859 * sparc64-tdep.c (sparc64_fpu_register_names)
2860 (sparc64_cp0_register_names, sparc64_register_names)
2861 (sparc64_pseudo_register_names): Now const.
2862 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2863 cp0_registers_num>: Now const.
2864 * sparc-tdep.c (sparc_core_register_names)
2865 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2866 (sparc32_pseudo_register_names): Now const.
2867 (validate_tdesc_registers): Update.
2868 * rust-lang.c (rust_extensions): Now const.
2869 * p-lang.c (p_extensions): Now const.
2870 * objc-lang.c (objc_extensions): Now const.
2871 * nto-tdep.c (nto_thread_state_str): Now const.
2872 * moxie-tdep.c (moxie_register_names): Now const.
2873 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2874 Now const.
2875 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2876 (mips_linux_reg_names): Now const.
2877 (mips_gdbarch_init): Update.
2878 * microblaze-tdep.c (microblaze_register_names): Now const.
2879 * m68k-tdep.c (m68k_register_names): Now const.
2880 * m32r-tdep.c (m32r_register_names): Now const.
2881 * ia64-tdep.c (ia64_register_names): Now const.
2882 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2883 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2884 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2885 ymm_avx512_register_names, pkeys_register_names>: Now const.
2886 * i386-tdep.c (i386_register_names, i386_zmm_names)
2887 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2888 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2889 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2890 * f-lang.c (f_extensions): Now const.
2891 * d-lang.c (d_extensions): Now const.
2892 * csky-tdep.c (csky_register_names): Now const.
2893 * charset.c (default_charset_names, charset_enum): Now const.
2894 (_initialize_charset): Update.
2895 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2896 const.
2897 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2898 (bsd_uthread_solib_loaded): Update.
2899 (bsd_uthread_state): Now const.
2900 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2901 (amd64_ymm_avx512_names, amd64_ymmh_names)
2902 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2903 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2904 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2905 (amd64_dword_names): Now const.
2906 * agent.c (can_use_agent_enum): Now const.
2907 * ada-tasks.c (task_states, long_task_states): Now const.
2908 * ada-lang.c (known_runtime_file_name_patterns)
2909 (known_auxiliary_function_name_patterns, attribute_names)
2910 (standard_exc, ada_extensions): Now const.
2911
89806626
SM
29122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * bcache.h (struct bcache) <bcache>: Remove constructor.
2915 <m_hash_function, m_compare_function>: Remove.
2916 <~bcache>: Make virtual.
2917 <compare>: Remove static method, introduce virtual method.
2918 <default_hash>: Remove.
2919 <hash>: New virtual method.
2920 * bcache.c (bcache::expand_hash_table): Update.
2921 (bcache::insert): Update.
2922 (bcache::hash): New.
2923 (bcache::compare): Update comment and parameter names.
2924 * gdbtypes.c (types_deeply_equal): Update.
2925 * psymtab.h (struct psymbol_bcache): New struct.
2926 (class psymtab_storage) <psymtab_storage>: Make default.
2927 <psymbol_cache>: Change type to psymbol_bcache.
2928 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2929 (psymbol_hash): Change to...
2930 (psymbol_bcache::hash): ... this.
2931 (psymbol_compare): Change to...
2932 (psymbol_bcache::compare): ... this.
2933
677c92fe
SM
29342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2935
2936 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2937 checking for initial lwp.
2938
3eba3a01
TT
29392020-09-14 Tom Tromey <tromey@adacore.com>
2940
2941 * m68k-tdep.c (m68k_extract_return_value): Use
2942 pointer_result_regnum.
2943 (m68k_store_return_value): Likewise.
2944 (m68k_reg_struct_return_p): Handle vectors and arrays.
2945 (m68k_return_value): Handle arrays.
2946 (m68k_svr4_return_value): Fix single-element aggregate handling.
2947 Handle long double. Adjust for embedded ABI.
2948 (m68k_svr4_init_abi): Set pointer_result_regnum.
2949 (m68k_embedded_init_abi): New function.
2950 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2951 (m68k_osabi_sniffer): New function.
2952 (_initialize_m68k_tdep): Register osabi sniffer.
2953 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2954 member.
2955
33f4dd48
SM
29562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2959 with gdb::unique_xmalloc_ptr<char>.
2960
8400a90d
SM
29612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * xml-support.h (xml_fetch_another): Change type to be a
2964 function_view.
2965 (xml_process_xincludes): Remove baton parameter.
2966 (xml_fetch_content_from_file): Change baton parameter to
2967 dirname.
2968 * xml-support.c (struct xinclude_parsing_data)
2969 <xinclude_parsing_data>: Remove baton parameter.
2970 <fetcher_baton>: Remove.
2971 (xinclude_start_include): Adjust.
2972 (xml_process_xincludes): Adjust.
2973 (xml_fetch_content_from_file): Replace baton parameter with
2974 dirname.
2975 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2976 (xml_init_syscalls_info): Use a lambda.
2977 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2978 (file_read_description_xml): Use a lambda.
2979 (fetch_available_features_from_target): Change baton parameter
2980 to target_ops.
2981 (target_read_description_xml): Use a lambda.
2982 (target_fetch_description_xml): Use a lambda.
2983 (string_read_description_xml): Update.
2984
04f5bab2
SM
29852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2986
2987 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2988 uses with type::endianity_is_not_default.
2989
db558e34
SM
29902020-09-14 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * gdbtypes.h (struct type) <endianity_is_not_default,
2993 set_endianity_is_not_default>: New methods.
2994 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2995 type::endianity_is_not_default, change all write call sites to
2996 use type::set_endianity_is_not_default.
2997
22c4c60c
SM
29982020-09-14 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3001 uses with type::is_fixed_instance.
3002
9cdd0d12
SM
30032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3004
3005 * gdbtypes.h (struct type) <is_fixed_instance,
3006 set_is_fixed_instance>: New methods.
3007 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3008 write call sites to use type::set_is_fixed_instance.
3009
0becda7a
SM
30102020-09-14 Simon Marchi <simon.marchi@efficios.com>
3011
3012 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3013 uses with type::is_gnu_ifunc.
3014
03cc7249
SM
30152020-09-14 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3018 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3019 use type::set_is_gnu_ifunc.
3020
3f46044c
SM
30212020-09-14 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3024 uses with type::stub_is_supported.
3025
9baccff6
SM
30262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3029 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3030 use type::set_stub_is_supported.
3031
bd63c870
SM
30322020-09-14 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3035 uses with type::is_vector.
3036
2062087b
SM
30372020-09-14 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3040 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3041 use type::set_is_vector.
3042
a409645d
SM
30432020-09-14 Simon Marchi <simon.marchi@efficios.com>
3044
3045 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3046 uses with type::has_varargs.
3047
1d6286ed
SM
30482020-09-14 Simon Marchi <simon.marchi@efficios.com>
3049
3050 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3051 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3052 use type::set_has_varargs.
3053
7f9f399b
SM
30542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3057 uses with type::is_prototyped.
3058
27e69b7a
SM
30592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3062 New methods.
3063 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3064 call sites to use type::set_is_prototyped.
3065
d2183968
SM
30662020-09-14 Simon Marchi <simon.marchi@efficios.com>
3067
3068 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3069 uses with type::target_is_stub.
3070
8f53807e
SM
30712020-09-14 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3074 New methods.
3075 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3076 sites to use type::set_target_is_stub.
3077
e46d3488
SM
30782020-09-14 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * gdbtypes.h (TYPE_STUB): Remove, replace all
3081 uses with type::is_stub.
3082
b4b73759
SM
30832020-09-14 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3086 (TYPE_STUB): Use type::is_stub, change all write call sites to
3087 use type::set_is_stub.
3088
20ce4123
SM
30892020-09-14 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3092 type::has_no_signedness.
3093
15152a54
SM
30942020-09-14 Simon Marchi <simon.marchi@efficios.com>
3095
3096 * gdbtypes.h (struct type) <has_no_signedness,
3097 set_has_no_signedness>: New methods.
3098 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3099 call sites to use type::set_has_no_signedness.
3100
c6d940a9
SM
31012020-09-14 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3104 type::is_unsigned.
3105
653223d3
SM
31062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3109 methods.
3110 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3111 sites to use type::set_is_unsigned.
3112
55ea94da 31132020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3114 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3115
e851246a
SM
3116 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3117 pointer and stack frame offset when unwinding.
55ea94da 3118
6791b117
PA
31192020-09-13 Pedro Alves <pedro@palves.net>
3120
3121 * NEWS: Document "-break-insert --qualified".
3122 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3123
77f2120b
PA
31242020-09-13 Pedro Alves <pedro@palves.net>
3125
3126 * linespec.c (classify_mtype, compare_msyms): Delete.
3127 (search_minsyms_for_name): Remove classification logic. Instead
3128 filter out trampoline symbols if we also found an external
3129 function of the same name.
3130
ed6a896c
JB
31312020-09-13 Joel Brobecker <brobecker@adacore.com>
3132
3133 * NEWS: Create a new section for the next release branch.
3134 Rename the section of the current branch, now that it has
3135 been cut.
3136
32aea73e
JB
31372020-09-13 Joel Brobecker <brobecker@adacore.com>
3138
3139 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3140 * version.in: Bump version to 11.0.50.DATE-git.
3141
8087c3fa
JB
31422020-09-12 Joel Brobecker <brobecker@adacore.com>
3143
3144 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3145
2a67f09d
FW
31462020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3147 Felix Willgerodt <Felix.Willgerodt@intel.com>
3148
3149 * gdbarch.sh: Added bfloat16 type.
3150 * gdbarch.c: Regenerated.
3151 * gdbarch.h: Regenerated.
3152 * gdbtypes.c (floatformats_bfloat16): New struct.
3153 (gdbtypes_post_init): Add builtin_bfloat16.
3154 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3155 (floatformats_bfloat16): New struct.
3156 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3157 (i386_ymm_type): Add field "v16_bfloat16"
3158 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3159 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3160 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3161 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3162 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3163 * features/i386/64bit-avx512.c: Regenerated.
3164 * features/i386/64bit-sse.xml: Add bfloat16 type.
3165 * features/i386/64bit-sse.c: Regenerated.
3166
1347d111
FW
31672020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3168
3169 * i386-tdep.c (i386_zmm_type): Fix field names.
3170 (i386_ymm_type): Fix field names.
3171
7a4e8e7d
TBA
31722020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3173
3174 * breakpoint.c: Fix typo in the help message of the
3175 "set breakpoint condition-evaluation" command.
3176
cf4ac4be
KR
31772020-09-10 Kamil Rytarowski <n54@gmx.com>
3178
3179 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3180 * (nbsd_nat_target::pid_to_exec_file)
3181 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3182 (nbsd_nat_target::post_startup_inferior)
3183 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3184 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3185 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3186 * (nbsd_thread_lister): Remove.
3187
f404573e
KR
31882020-09-10 Kamil Rytarowski <n54@gmx.com>
3189
3190 * fork-inferior.c (startup_inferior): Avoid double free.
3191
1ccb2c17
KR
31922020-09-10 Kamil Rytarowski <n54@gmx.com>
3193
3194 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3195 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3196
feedfcc7
KR
31972020-09-10 Kamil Rytarowski <n54@gmx.com>
3198
3199 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3200 * netbsd-nat.c: Include <sys/ptrace.h>.
3201 * (netbsd_nat::enable_proc_events): Add.
3202
c489f8c6
KR
32032020-09-10 Kamil Rytarowski <n54@gmx.com>
3204
3205 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3206 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3207 (netbsd_nat::for_each_thread): Add.
3208 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3209 "gdbsupport/common-debug.h".
3210 * (netbsd_nat::netbsd_thread_lister)
3211 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3212 (netbsd_nat::for_each_thread): Add.
3213
330662f6
KR
32142020-09-10 Kamil Rytarowski <n54@gmx.com>
3215
3216 * netbsd-nat.h: Include <unistd.h>.
3217 * (netbsd_nat::pid_to_exec_file): Add.
3218 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3219 * (netbsd_nat::pid_to_exec_file) Add.
3220
70b67307
KR
32212020-09-10 Kamil Rytarowski <n54@gmx.com>
3222
3223 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3224
99cf6da6
KR
32252020-09-10 Kamil Rytarowski <n54@gmx.com>
3226
3227 * netbsd-nat.h: New file.
3228 * netbsd-nat.c: Likewise.
3229
1b788fb6
TT
32302020-09-09 Tom Tromey <tromey@adacore.com>
3231
3232 * ada-lang.c (remove_extra_symbols): Do not increment when
3233 removing an element
3234
03b0a45f
TT
32352020-09-08 Tom Tromey <tromey@adacore.com>
3236
3237 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3238
3cae4447
TT
32392020-09-08 Tom Tromey <tromey@adacore.com>
3240
3241 PR win32/25302:
3242 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3243 (gdb_bfd_init_data): New function.
3244 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3245
7f08fd51
TBA
32462020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3247
3248 * infrun.c (fetch_inferior_event): Use
3249 `switch_to_target_no_thread` to switch the target.
3250
3e6ff933
TT
32512020-09-06 Tom Tromey <tom@tromey.com>
3252
3253 * symfile.h (dwarf2_free_objfile): Don't declare.
3254
e56798df
AKS
32552020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3256
3257 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3258 to match 16 byte real/complex type generated by Flang compiler.
3259
8f5c6526
TV
32602020-09-03 Tom de Vries <tdevries@suse.de>
3261
3262 PR breakpoint/26546
3263 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3264 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3265
c5065df0
SM
32662020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3267
3268 * maint.c (index_digits): New function.
3269 (struct maint_print_section_data): Remove.
3270 (print_bfd_section_info): Remove print_data parameter, add arg
3271 and index_digits.
3272 (print_objfile_section_info): Likewise.
3273 (print_bfd_section_info_maybe_relocated): Likewise (plus
3274 objfile).
3275 (maintenance_info_sections): Adjust calls.
3276
02c6f3f1
TT
32772020-09-02 Tom Tromey <tromey@adacore.com>
3278
3279 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3280 for null pointers.
3281 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3282
ef5e5b0b
SM
32832020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 * bcache.h (struct bcache) <insert>: Change type of `added` to
3286 pointer to bool.
3287 * bcache.c (bcache::insert): Likewise.
3288 * gdbtypes.c (check_types_worklist): Adjust.
3289 * psymtab.c (add_psymbol_to_bcache): Adjust.
3290
973695d6
KB
32912020-08-31 Kevin Buettner <kevinb@redhat.com>
3292
3293 * corelow.c (unordered_set): Include.
3294 (class core_target): Add field 'm_core_unavailable_mappings'.
3295 (core_target::build_file_mappings): Print only one warning
3296 per inaccessible file. Add unavailable/broken mappings
3297 to m_core_unavailable_mappings.
3298 (core_target::xfer_partial): Call...
3299 (core_target::xfer_memory_via_mappings): New method.
3300
264fc0e2
SM
33012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3304 type to bool.
3305
2de01bdb
SM
33062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * dwarf2/read.c (struct field_info): Fix indentation.
3309
f3bd50f1
SM
33102020-08-31 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3313 ordering in comment.
3314 * frame.c (frame_id_eq): Fix indentation.
3315
22b9b4b0
SL
33162020-08-31 Scott Linder <scott@scottlinder.com>
3317 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3320 inline frame ids in outer frame.
3321
84154d16
SM
33222020-08-31 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3325 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3326 (outer_frame_id): Use FID_STACK_OUTER instead of
3327 FID_STACK_INVALID.
3328 (frame_id_p): Don't check for outer_frame_id.
3329
8efaf6b3
SM
33302020-08-31 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3333 regnum/frame in value. Call allocate_value_lazy.
3334 * frame.c (frame_unwind_register_value): Use
3335 val_print_not_saved.
3336
fe1fe7ea
SM
33372020-08-31 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3340
f7c7700d
PA
33412020-08-29 Pedro Alves <pedro@palves.net>
3342
3343 * progspace.c (print_program_space): Use all_inferiors. Switch to
3344 the inferior before calling target_pid_to_str.
3345
e0814aae
TT
33462020-08-28 Tom Tromey <tom@tromey.com>
3347
3348 * xcoffread.c (xcoff_end_psymtab): Update comment.
3349 * dbxread.c (dbx_end_psymtab): Update comment.
3350
626d2320
TV
33512020-08-28 Tom de Vries <tdevries@suse.de>
3352
3353 PR breakpoint/26544
3354 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3355 event_location.
3356 (create_breakpoint): Same.
3357 (base_breakpoint_decode_location): Same.
3358 (bkpt_create_sals_from_location): Same.
3359 (bkpt_decode_location): Same.
3360 (bkpt_probe_create_sals_from_location): Same.
3361 (bkpt_probe_decode_location): Same.
3362 (tracepoint_create_sals_from_location): Same.
3363 (tracepoint_decode_location): Same.
3364 (tracepoint_probe_decode_location): Same.
3365 (strace_marker_create_sals_from_location): Same.
3366 (strace_marker_decode_location): Same.
3367 (create_sals_from_location_default): Same.
3368 (decode_location_default): Same.
3369 * breakpoint.h (struct breakpoint_ops): Same.
3370 (create_breakpoint): Same.
3371 * linespec.h (decode_line_full): Same.
3372 * linespec.c (decode_line_full): Same. Throw error if
3373 result.size () == 0.
3374
df631783
PA
33752020-08-27 Pedro Alves <pedro@palves.net>
3376
3377 PR gdb/26524
3378 * breakpoint.c (until_break_fsm) <location_breakpoint,
3379 caller_breakpoint>: Delete fields.
3380 <breakpoints>: New field.
3381 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3382 two individual breakpoints.
3383 (until_break_fsm::should_stop): Loop over breakpoints in the
3384 breakpoint vector.
3385 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3386 vector.
3387 (until_break_command): Handle location expanding into multiple
3388 sals.
3389
b2b38aa4
PA
33902020-08-27 Pedro Alves <pedro@palves.net>
3391
3392 PR gdb/26523
3393 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3394 bp_until breakpoints user-specified locations. Update intro
3395 comment.
3396
b886559f
SM
33972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3400 gdb_bfd_sections): New.
3401 * maint.c (print_bfd_section_info): Change param type to
3402 maint_print_section_data.
3403 (print_objfile_section_info): Likewise.
3404 (print_bfd_section_info_maybe_relocated): Likewise.
3405 (maintenance_info_sections): Use gdb_bfd_sections.
3406
4c6e63bf
SV
34072020-08-25 Shahab Vahedi <shahab@synopsys.com>
3408
3409 * MAINTAINERS: Add ARC target and maintainer.
3410
8d7f0635
AK
34112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3412
3413 * configure.tgt: ARC support for GNU/Linux.
3414 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3415 * arc-linux-tdep.c: New file.
3416 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3417 * arc-tdep.c (arc_write_pc): Use it.
3418
fdd8731b
SV
34192020-08-25 Shahab Vahedi <shahab@synopsys.com>
3420
3421 * arc-tdep.c (arc_check_for_hardware_loop): New.
3422 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3423
22459524
SV
34242020-08-25 Shahab Vahedi <shahab@synopsys.com>
3425
3426 * arc-tdep.h: Include "gdbarch.h".
3427
995d3a19
SV
34282020-08-25 Shahab Vahedi <shahab@synopsys.com>
3429
3430 * arch/arc.h
3431 (arc_gdbarch_features): New class to stir the selection of target XML.
3432 (arc_create_target_description): Use FEATURES to choose XML target.
3433 (arc_lookup_target_description): Use arc_create_target_description
3434 to create _new_ target descriptions or return the already created
3435 ones if the FEATURES is the same.
3436 * arch/arc.c: Implementation of prototypes described above.
3437 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3438 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3439 * arc-tdep.c (*_feature_name): Make feature names consistent.
3440 (arc_register_feature): A new struct to hold information about
3441 registers of a particular target/feature.
3442 (arc_check_tdesc_feature): Check if XML provides registers in
3443 compliance with ARC_REGISTER_FEATURE structs.
3444 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3445 (determine_*_reg_feature_set): Which feature name to look for.
3446 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3447 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3448 to expected ISA enums to be used in arc_gdbarch_features structs.
3449 * features/Makefile (FEATURE_XMLFILES): Add new files.
3450 * gdb/features/arc/v1-aux.c: New file.
3451 * gdb/features/arc/v1-aux.xml: Likewise.
3452 * gdb/features/arc/v1-core.c: Likewise.
3453 * gdb/features/arc/v1-core.xml: Likewise.
3454 * gdb/features/arc/v2-aux.c: Likewise.
3455 * gdb/features/arc/v2-aux.xml: Likewise.
3456 * gdb/features/arc/v2-core.c: Likewise.
3457 * gdb/features/arc/v2-core.xml: Likewise.
3458 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3459
3945d2d7
GM
34602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3461 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 PR m2/26372
fc5d6901 3464 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3465 an assert. Remove single element array indexing pattern as the
3466 MULTI_SUBSCRIPT support will handle this case too.
3467
2677f2d3
SM
34682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3469
3470 * value.h (valprint_check_validity): Move declaration from
3471 here...
3472 * valprint.h (valprint_check_validity): ... to here.
3473
c426fddb
SM
34742020-08-24 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * debug.h: New file.
3477 * debug.c (debug_prefixed_vprintf): New function.
3478 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3479 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3480
1eb8556f
SM
34812020-08-24 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * infrun.h (infrun_debug_printf_1): New function declaration.
3484 (infrun_debug_printf): New macro.
3485 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3486 throughout.
3487 (infrun_debug_printf): New function.
3488 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3489 (handle_jit_event): Likewise.
3490
b8fff44e
MW
34912020-08-21 Mark Wielaard <mark@klomp.org>
3492
3493 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3494
d19c3068
SM
34952020-08-22 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * frame.c (enum class frame_id_status): New.
3498 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3499 (fprintf_frame): Update.
3500 (compute_frame_id): Set frame id status to "computing" on entry.
3501 Set it back to "not_computed" on failure and to "computed" on
3502 success.
3503 (get_frame_id): Assert the frame id is not being computed.
3504 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3505 (create_new_frame): Likewise.
3506 (frame_cleanup_after_sniffer): Update assert.
3507
b70e516e
SM
35082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * regcache.c (pid_ptid_regcache_map): New type.
3511 (target_ptid_regcache_map): Remove.
3512 (target_pid_ptid_regcache_map): New type.
3513 (regcaches): Change type to target_pid_ptid_regcache_map.
3514 (get_thread_arch_aspace_regcache): Update.
3515 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3516 case.
3517 (regcaches_size): Update.
3518 (regcache_count): Update.
3519 (registers_changed_ptid_target_pid_test): New.
3520 (_initialize_regcache): Register new test.
3521
cdd9148a
SM
35222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * regcache.c (regcache_count): New.
3525 (struct regcache_test_data): New.
3526 (regcache_test_data_up): New.
3527 (populate_regcaches_for_test): New.
3528 (regcaches_test): Remove.
3529 (get_thread_arch_aspace_regcache_test): New.
3530 (registers_changed_ptid_all_test): New.
3531 (registers_changed_ptid_target_test): New.
3532 (registers_changed_ptid_target_ptid_test): New.
3533 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3534 (_initialize_regcache): Register new tests.
3535
dd125343
SM
35362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3537
3538 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3539 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3540 gdbarch and aspace parameter. Use current inferior's aspace.
3541 Validate regcache's arch value.
3542 (regcaches_test): Update.
3543
3ee93972
SM
35442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3545
3546 * regcache.c (regcaches_test): Call registers_changed.
3547
33bf4c5c
TBA
35482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3549
3550 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3551
c2fd7fae
AKS
35522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3553
3554 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3555 to find the end of prologue for flang compiled binaries.
3556 * arm-tdep.c (arm_skip_prologue): Likewise.
3557 * i386-tdep.c (i386_skip_prologue): Likewise.
3558 * producer.c (producer_is_llvm): New function.
3559 (producer_parsing_tests): Added new tests for clang/flang.
3560 * producer.h (producer_is_llvm): New declaration.
3561
9327494e
SM
35622020-08-18 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * linux-nat.c (linux_nat_debug_printf): New function.
3565 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3566
d138725a
AM
35672020-08-18 Aaron Merey <amerey@redhat.com>
3568
3569 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3570 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3571 (CLIBS): Add DEBUGINFOD_LIBS.
3572
f9b11e6b
ST
35732020-08-17 Sergei Trofimovich <siarheit@google.com>
3574
3575 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3576 'gdbarch_num_regs'.
3577
3ae7ab99
TT
35782020-08-17 Tom Tromey <tromey@adacore.com>
3579
3580 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3581 ada_get_decoded_value returns NULL.
3582
b017825f
TT
35832020-08-17 Tom Tromey <tromey@adacore.com>
3584
3585 * python/py-inferior.c (infpy_search_memory): Use
3586 gdb_py_object_from_ulongest.
3587 * python/py-infevents.c (create_inferior_call_event_object)
3588 (create_memory_changed_event_object): Use
3589 gdb_py_object_from_ulongest.
3590 * python/py-linetable.c (ltpy_entry_get_pc): Use
3591 gdb_py_object_from_ulongest.
3592
7635cf79
SM
35932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3594
3595 * loc.c (class symbol_needs_eval_context): Fix indentation.
3596
f54be24b
SM
35972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3598
3599 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3600 bool.
3601
53d5a2a5
TV
36022020-08-17 Tom de Vries <tdevries@suse.de>
3603
3604 PR gdb/26393
3605 * gdbtypes.c (dump_dynamic_prop): New function.
3606 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3607
547ce8f0
TV
36082020-08-15 Tom de Vries <tdevries@suse.de>
3609
3610 PR backtrace/26390
3611 * stack.c (print_frame_args): Temporarily set the selected
3612 frame to FRAME while printing the frame's arguments.
3613
6ea815e7
PFC
36142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3615
3616 PR breakpoints/26385
3617 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3618 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3619
6e562fa3
PFC
36202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3621
3622 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3623 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3624 and >= to check return value instead of == -1 and != -1.
3625
d369b608
SM
36262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * utils.h (class gdb_argv) <as_array_view>: New method.
3629 * utils.c (gdb_argv_as_array_view_test): New.
3630 (_initialize_utils): Register selftest.
3631 * maint.c (maintenance_selftest): Use the new method.
3632
b31488a3
KR
36332020-08-13 Kamil Rytarowski <n54@gmx.com>
3634
3635 * target.h (supports_dumpcore, dumpcore): New
3636 function declarations.
3637 * target.c (supports_dumpcore, dumpcore): New
3638 functions.
3639 * target-delegates.c: Rebuild.
3640 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3641 and target_dumpcore ().
3642
002a3166
AM
36432020-08-13 Aaron Merey <amerey@redhat.com>
3644
3645 * debuginfod-support.c: Replace global variables with user_data.
3646
ece5bc8a
SM
36472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3648
3649 * maint.c (maintenance_selftest): Split args and pass array_view
3650 to run_tests.
3651
6d8a0a5e
LM
36522020-08-12 Luis Machado <luis.machado@linaro.org>
3653
3654 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3655 type's length.
3656 Use %s and pulongest to print the length.
3657
7cf663a9
PA
36582020-08-12 Pedro Alves <palves@redhat.com>
3659
3660 * NEWS: Move "Multi-target debugging support" item to the
3661 "Changes since GDB 9" section.
3662
27c7b875
PA
36632020-08-12 Pedro Alves <palves@redhat.com>
3664
3665 PR gdb/26336
3666 * progspace.c (program_space::remove_objfile): Invalidate the
3667 frame cache.
3668
1796a2a1
TV
36692020-08-11 Tom de Vries <tdevries@suse.de>
3670
3671 * MAINTAINERS: Mark ms1 as deleted.
3672
f8e3fe0d
LM
36732020-08-10 Luis Machado <luis.machado@linaro.org>
3674
3675 PR gdb/26310
3676
3677 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3678 act accordingly.
3679 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3680 movz/str/stur/stp skipping behavior.
3681
cc308722
LM
36822020-08-10 Luis Machado <luis.machado@linaro.org>
3683
3684 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3685 struct user_sve_header instead of struct sve_context.
3686
041d9819
SM
36872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3688
3689 * read.h (dwarf2_fetch_die_loc_sect_off,
3690 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3691 `void *` parameter with function_view.
3692 * read.c (dwarf2_fetch_die_loc_sect_off,
3693 dwarf2_fetch_die_loc_cu_off): Likewise.
3694 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3695 (per_cu_dwarf_call): Adjust.
3696 (get_frame_address_in_block_wrapper): Remove.
3697 (indirect_synthetic_pointer): Adjust.
3698 (get_ax_pc): Remove.
3699 (dwarf2_compile_expr_to_ax): Adjust.
3700
38f8aa06
TV
37012020-08-08 Tom de Vries <tdevries@suse.de>
3702
3703 PR build/26344
3704 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3705 constructor.
3706 * regcache.c (get_thread_arch_aspace_regcache): Same.
3707
a52b3ae2
TT
37082020-08-07 Tom Tromey <tromey@adacore.com>
3709
3710 * ravenscar-thread.c
3711 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3712 New method.
3713 (ravenscar_thread_target::wait): Check
3714 runtime_initialized.
3715 (ravenscar_thread_target::prepare_to_store)
3716 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3717 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3718 (ravenscar_thread_target::stopped_by_watchpoint)
3719 (ravenscar_thread_target::stopped_data_address)
3720 (ravenscar_thread_target::core_of_thread): Use
3721 scoped_restore_current_thread and
3722 set_base_thread_from_ravenscar_task.
3723
0e29517d
TT
37242020-08-07 Tom Tromey <tromey@adacore.com>
3725
3726 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3727
592f9bd7
TT
37282020-08-07 Tom Tromey <tromey@adacore.com>
3729
3730 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3731 update_inferior_ptid before update_thread_list.
3732 (temporarily_change_regcache_ptid): New class.
3733 (ravenscar_thread_target::fetch_registers)
3734 (ravenscar_thread_target::store_registers)
3735 (ravenscar_thread_target::prepare_to_store): Use base thread when
3736 forwarding operation.
3737
39e2018a
TT
37382020-08-07 Tom Tromey <tromey@adacore.com>
3739
3740 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3741 "is_pid" case.
3742
2080266b
TT
37432020-08-07 Tom Tromey <tromey@adacore.com>
3744
3745 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3746 New methods.
3747 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3748 first.
3749 (ravenscar_thread_target::add_thread): Rename from
3750 ravenscar_add_thread.
3751 (ravenscar_thread_target::update_thread_list): Use a lambda.
3752 (ravenscar_thread_target::xfer_partial): New method.
3753
78c02f21
TT
37542020-08-07 Tom Tromey <tromey@adacore.com>
3755
3756 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3757 gdb::function_view.
3758 (iterate_over_live_ada_tasks): Change type of argument.
3759 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3760 of argument.
3761
d5d833af
TT
37622020-08-07 Tom Tromey <tromey@adacore.com>
3763
3764 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3765 Remove.
3766 (ravenscar_thread_target::extra_thread_info): Remove.
3767 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3768 defer to target beneath for non-Ravenscar threads.
3769
a8ac85bb
TT
37702020-08-07 Tom Tromey <tromey@adacore.com>
3771
3772 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3773 get_base_thread_from_ravenscar_task>: Now methods.
3774 <m_cpu_map>: New member.
3775 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3776 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3777 (ravenscar_thread_target::task_is_currently_active): Update.
3778 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3779 Now a method.
3780 (ravenscar_thread_target::add_active_thread): Put initial thread
3781 into the m_cpu_map.
3782
550ab58d
TT
37832020-08-07 Tom Tromey <tromey@adacore.com>
3784
3785 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3786 event_ptid.
3787
e9546579
TT
37882020-08-07 Tom Tromey <tromey@adacore.com>
3789
3790 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3791 runtime_initialized.
3792
3d4470e5
TT
37932020-08-07 Tom Tromey <tromey@adacore.com>
3794
3795 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3796 add_active_thread.
3797 (ravenscar_thread_target::add_active_thread): Now public.
3798 (ravenscar_inferior_created): Call add_active_thread after pushing
3799 the target.
3800
888bdb2b
SM
38012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3802
3803 * regcache.c (ptid_regcache_map): New type.
3804 (target_ptid_regcache_map): New type.
3805 (regcaches): Change type to target_ptid_regcache_map.
3806 (get_thread_arch_aspace_regcache): Update to regcaches' new
3807 type.
3808 (regcache_thread_ptid_changed): Likewise.
3809 (registers_changed_ptid): Likewise.
3810 (regcaches_size): Likewise.
3811 (regcaches_test): Update.
3812 (regcache_thread_ptid_changed): Update.
3813 * regcache.h (regcache_up): New type.
3814 * gdbsupport/ptid.h (hash_ptid): New struct.
3815
b161a60d
SM
38162020-08-07 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * observable.h (thread_ptid_changed): Add parameter
3819 `process_stratum_target *`.
3820 * infrun.c (infrun_thread_ptid_changed): Add parameter
3821 `process_stratum_target *` and use it.
3822 (selftests): New namespace.
3823 (infrun_thread_ptid_changed): New function.
3824 (_initialize_infrun): Register selftest.
3825 * regcache.c (regcache_thread_ptid_changed): Add parameter
3826 `process_stratum_target *` and use it.
3827 (regcache_thread_ptid_changed): New function.
3828 (_initialize_regcache): Register selftest.
3829 * thread.c (thread_change_ptid): Pass target to
3830 thread_ptid_changed observable.
3831
d2854d8d
CT
38322020-08-06 Caroline Tice <cmtice@google.com>
3833
fe4c3d43
SM
3834 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3835 (struct dwp_sections): Update field comments. Add loclists and
3836 rnglists fields.
3837 (struct virtual_v2_dwo_sections): Rename struct to
3838 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3839 size & offset fields for loclists and rnglists.
3840 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3841 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3842 skipping dummy type units.
3843 (create_dwp_hash_table): Update the large comment above the function to
3844 discuss Version 5 DWP files as well, with references. Update all the
3845 version checks in the function to check for version 5 as well. Add new
3846 section at the end to create dwp hash table for version 5.
3847 (create_dwp_v2_section): Rename function to
3848 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3849 Add V5 to error message text.
3850 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3851 into calls to create_dwp_v2_or_v5_section.
3852 (create_dwo_unit_in_dwp_v5): New function.
3853 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3854 check for version2; add else clause to handle version 5.
3855 (open_and_init_dwo_file): Add code to check dwarf version & only call
3856 create_debug_types_hash_table (with sections.types) if version is not 5;
3857 else call create_debug_type_hash_table, with sections.info.
3858 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3859 version 5.
3860 (dwarf2_locate_v5_dwp_sections): New function.
3861 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3862 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3863
159ed7d9
SM
38642020-08-06 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * regcache.h (class regcache): Remove friend
3867 registers_changed_ptid.
3868 <regcache_thread_ptid_changed>: Remove.
3869 <regcaches>: Remove.
3870 * regcache.c (regcache::regcaches): Rename to...
3871 (regcaches): ... this. Make static.
3872 (get_thread_arch_aspace_regcache): Update.
3873 (regcache::regcache_thread_ptid_changed): Rename to...
3874 (regcache_thread_ptid_changed): ... this. Update.
3875 (class regcache_access): Remove.
3876 (regcaches_test): Update.
3877 (_initialize_regcache): Update.
3878 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3879 <forward_list>.
3880
174981ae
SM
38812020-08-06 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * regcache.h (class regcache) <current_regcache>: Rename to...
3884 <regcaches>: ... this. Move doc here.
3885 * regcache.c (regcache::current_regcache) Rename to...
3886 (regcache::regcaches): ... this. Move doc to header.
3887 (get_thread_arch_aspace_regcache): Update.
3888 (regcache::regcache_thread_ptid_changed): Update.
3889 (registers_changed_ptid): Update.
3890 (class regcache_access) <current_regcache_size>: Rename to...
3891 <regcaches_size>: ... this.
3892 (current_regcache_test): Rename to...
3893 (regcaches_test): ... this.
3894 (_initialize_regcache): Update.
3895
ed908db6
VC
38962020-08-06 Victor Collod <vcollod@nvidia.com>
3897
3898 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3899
b5582ab7
KB
39002020-08-05 Kevin Buettner <kevinb@redhat.com>
3901
3902 * corelow.c (core_target::build_file_mappings): Don't output
3903 null pathname in warning.
3904
ea946b86
SM
39052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3906
3907 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3908 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3909 gdb.dwarf2/dw2-single-line-discriminators.exp,
3910 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3911
57d02173
TT
39122020-08-05 Tom Tromey <tromey@adacore.com>
3913
3914 PR rust/26197:
3915 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3916 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3917 Fix off-by-one and type size errors in ordinary case.
3918
5555c86d
TV
39192020-08-05 Tom de Vries <tdevries@suse.de>
3920
3921 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3922 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3923
97916bfe
SM
39242020-08-04 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * frame.h (frame_id_p): Return bool.
3927 (frame_id_artificial_p): Return bool.
3928 (frame_id_eq): Return bool.
3929 (has_stack_frames): Return bool.
3930 (get_selected_frame): Fix typo in comment.
3931 (get_frame_pc_if_available): Return bool.
3932 (get_frame_address_in_block_if_available): Return bool.
3933 (get_frame_func_if_available): Return bool.
3934 (read_frame_register_unsigned): Return bool.
3935 (get_frame_register_bytes): Return bool.
3936 (safe_frame_unwind_memory): Return bool.
3937 (deprecated_frame_register_read): Return bool.
3938 (frame_unwinder_is): Return bool.
3939 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3940 bool.
3941 <this_id::p>: Likewise.
3942 <prev_p>: Likewise.
3943 (frame_stash_add): Return bool.
3944 (get_frame_id): Use bool.
3945 (frame_id_build_special) Use bool.
3946 (frame_id_build_unavailable_stack): Use bool.
3947 (frame_id_build): Use bool.
3948 (frame_id_p): Return bool, use true/false instead of 1/0.
3949 (frame_id_artificial_p): Likewise.
3950 (frame_id_eq): Likewise.
3951 (frame_id_inner): Likewise.
3952 (get_frame_func_if_available): Likewise.
3953 (read_frame_register_unsigned): Likewise.
3954 (deprecated_frame_register_read): Likewise.
3955 (get_frame_register_bytes): Likewise.
3956 (has_stack_frames): Likewise.
3957 (inside_main_func): Likewise.
3958 (inside_entry_func): Likewise.
3959 (get_frame_pc_if_available): Likewise.
3960 (get_frame_address_in_block_if_available): Likewise.
3961 (frame_unwinder_is): Likewise.
3962 (safe_frame_unwind_memory): Likewise.
3963 (frame_unwind_arch): Likewise.
3964
fedfee88
SM
39652020-08-04 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3968 type to cached_copy_status.
3969 (fprintf_frame): Adjust.
3970 (get_frame_func_if_available): Adjust.
3971 (frame_cleanup_after_sniffer): Adjust.
3972
6cfa9b59
MW
39732020-08-04 Mark Wielaard <mark@klomp.org>
3974
3975 * MAINTAINERS (Write After Approval): Update email address.
3976
66d6346b
SM
39772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3978
3979 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3980 dynamic_prop::const_val.
3981
8a6d5e35
SM
39822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3985 dynamic_prop::kind.
3986
51d6067d
SM
39872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3988
3989 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3990
b26e2ae7
JM
39912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3992
3993 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3994
39791af2
JM
39952020-08-04 Weimin Pan <weimin.pan@oracle.com>
3996 Jose E. Marchesi <jose.marchesi@oracle.com>
3997
3998 * configure.tgt: Add entry for bpf-*-*.
3999 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4000 (ALLDEPFILES): Add bpf-tdep.c.
4001 * bpf-tdep.c: New file.
4002 * MAINTAINERS: Add bpf target and maintainer.
4003 * NEWS: Mention the support for the new target.
4004
521894aa
TV
40052020-08-04 Tom de Vries <tdevries@suse.de>
4006
4007 PR symtab/23270
4008 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4009 Error.
4010
5d6356e9
JB
40112020-08-03 John Baldwin <jhb@FreeBSD.org>
4012
4013 * syscalls/freebsd.xml: Regenerate.
4014
0cf82b81
JB
40152020-08-03 John Baldwin <jhb@FreeBSD.org>
4016
4017 * syscalls/update-freebsd.sh: Fix usage and year range.
4018
8f34b746
TV
40192020-08-03 Tom de Vries <tdevries@suse.de>
4020
4021 PR symtab/26333
4022 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4023 DW_LNE_lo_user/DW_LNE_hi_user range.
4024
5e500d33
SM
40252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4026
4027 PR ada/26318
4028 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4029 kind.
4030
78319c15
TBA
40312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4032
4033 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4034
4c55e970
TBA
40352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4036
4037 * breakpoint.c (set_breakpoint_condition): Update the condition
4038 expressions after checking that the input condition string parses
4039 successfully and does not contain junk at the end.
4040
1e620590
TBA
40412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4042
4043 * breakpoint.c (set_breakpoint_condition): Update the
4044 condition string after parsing the new condition successfully.
4045
c8693053
RO
40462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4047
4048 * proc-api.c (_STRUCTURED_PROC): Don't define.
4049 * proc-events.c: Likewise.
4050 * proc-flags.c: Likewise.
4051 * proc-why.c: Likewise.
4052 * procfs.c: Likewise.
4053
4054 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4055 * configure, config.in: Regenerate.
4056
5a99adb8
TV
40572020-07-30 Tom de Vries <tdevries@suse.de>
4058
4059 PR build/26320
4060 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4061 m_red/m_green/m_blue in a union.
4062
8ba83e91
TV
40632020-07-29 Tom de Vries <tdevries@suse.de>
4064
4065 PR tdep/26280
4066 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4067
f75a0693
AB
40682020-07-28 Tom Tromey <tromey@adacore.com>
4069
4070 PR symtab/26270:
4071 * symtab.h (find_pc_partial_function_sym): Declare.
4072 * cli/cli-cmds.c (disassemble_command): Use
4073 find_pc_partial_function_sym. Check asm_demangle.
4074 * blockframe.c (cache_pc_function_sym): New global.
4075 (cache_pc_function_name): Remove.
4076 (clear_pc_function_cache): Update.
4077 (find_pc_partial_function_sym): New function, from
4078 find_pc_partial_function.
4079 (find_pc_partial_function): Rewrite using
4080 find_pc_partial_function_sym.
4081
16f3242c
TT
40822020-07-28 Tom Tromey <tromey@adacore.com>
4083
4084 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4085 help. Add usage.
4086
4888741a
TT
40872020-07-28 Tom Tromey <tromey@adacore.com>
4088
4089 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4090 <DW_OP_GNU_variable_value>: Cast to address type.
4091
4d46f402
KR
40922020-07-28 Kamil Rytarowski <n54@gmx.com>
4093
4094 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4095 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4096 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4097 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4098 (nbsd_get_siginfo_type): New.
4099 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4100 (_initialize_nbsd_tdep): New.
4101
d70f978b
L
41022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4103
4104 PR binutils/26301
4105 * configure: Regenerated.
4106
377170fa
L
41072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4108
4109 PR binutils/26301
4110 * configure: Regenerated.
4111
43d5901d
AB
41122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * python/py-frame.c: Remove 'user-regs.h' include.
4115 (frapy_read_register): Rewrite to make use of
4116 gdbpy_parse_register_id.
4117 * python/py-registers.c (gdbpy_parse_register_id): New function,
4118 moved here from python/py-unwind.c. Updated the return type, and
4119 also accepts register descriptor objects.
4120 * python/py-unwind.c: Remove 'user-regs.h' include.
4121 (pyuw_parse_register_id): Moved to python/py-registers.c.
4122 (unwind_infopy_add_saved_register): Update to use
4123 gdbpy_parse_register_id.
4124 (pending_framepy_read_register): Likewise.
4125 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4126
14fa8fb3
AB
41272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * python/py-registers.c: Add 'user-regs.h' include.
4130 (register_descriptor_iter_find): New function.
4131 (register_descriptor_iterator_object_methods): New static global
4132 methods array.
4133 (register_descriptor_iterator_object_type): Add pointer to methods
4134 array.
4135
ddce1758
JB
41362020-07-27 John Baldwin <jhb@FreeBSD.org>
4137
4138 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4139 for all architectures on FreeBSD 11.3 and later.
4140
a4089f52
TT
41412020-07-27 Tom Tromey <tromey@adacore.com>
4142
4143 * gcore.h (load_corefile): Don't declare.
4144
95420d30
TV
41452020-07-27 Tom de Vries <tdevries@suse.de>
4146
4147 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4148 * config.in: Regenerate.
4149 * configure: Regenerate.
4150
05a6b8c2
EZ
41512020-07-26 Eli Zaretskii <eliz@gnu.org>
4152
4153 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4154 ws2tcpip.h. When checking whether socklen_t type is defined, use
4155 ws2tcpip.h if it is available and sys/socket.h isn't.
4156 * configure: Regenerate.
4157 * config.in: Regenerate.
4158
e79eb02f
AB
41592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 PR fortran/23051
4162 PR fortran/26139
4163 * valops.c (value_ind): Pass address to
4164 readjust_indirect_value_type.
4165 * value.c (readjust_indirect_value_type): Make parameter
4166 non-const, and add extra address parameter. Resolve original type
4167 before using it.
4168 * value.h (readjust_indirect_value_type): Update function
4169 signature and comment.
4170
876518dd
TV
41712020-07-25 Tom de Vries <tdevries@suse.de>
4172
4173 PR symtab/26243
4174 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4175 entries.
4176
f6720b1c
AM
41772020-07-24 Aaron Merey <amerey@redhat.com>
4178
4179 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4180 * configure: Rebuild.
4181
513487e1
KB
41822020-07-23 Kevin Buettner <kevinb@redhat.com>
4183
4184 PR corefiles/26294
4185 * corelow.c (_initialize_corelow): Add period to help text
4186 for "maintenance print core-file-backed-mappings".
4187
e7bc9db8
PA
41882020-07-23 Pedro Alves <pedro@palves.net>
4189
4190 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4191 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4192 meanwhile.
4193 * frame.c (frame_cache_generation, get_frame_cache_generation):
4194 New.
4195 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4196 (get_prev_frame_if_no_cycle): On exception, don't touch
4197 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4198 * frame.h (get_frame_cache_generation): Declare.
4199
90fcc466
TV
42002020-07-23 Tom de Vries <tdevries@suse.de>
4201
4202 PR tui/26282
4203 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4204 New default constructor.
4205
78344df7
AB
42062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4209 exclude non-statement entries.
4210
b089853a
KB
42112020-07-22 Kevin Buettner <kevinb@redhat.com>
4212
4213 * NEWS (New commands): Mention new command
4214 "maintenance print core-file-backed-mappings".
4215
09c2f5d4
KB
42162020-07-22 Kevin Buettner <kevinb@redhat.com>
4217
4218 * corelow.c (gdbcmd.h): Include.
4219 (core_target::info_proc_mappings): New method.
4220 (get_current_core_target): New function.
4221 (maintenance_print_core_file_backed_mappings): New function.
4222 (_initialize_corelow): Add core-file-backed-mappings to
4223 "maint print" commands.
4224
9c5ec5c2 42252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4226
9c5ec5c2
KB
4227 * linux-tdep.c (dump_note_entry_p): New function.
4228 (linux_dump_mapping_p_ftype): New typedef.
4229 (linux_find_memory_regions_full): Add new parameter,
4230 should_dump_mapping_p.
4231 (linux_find_memory_regions): Adjust call to
4232 linux_find_memory_regions_full.
4233 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4234 call to linux_find_memory_regions_full.
4235
db082f59
KB
42362020-07-22 Kevin Buettner <kevinb@redhat.com>
4237
4238 * corelow.c (solist.h, unordered_map): Include.
4239 (class core_target): Add field m_core_file_mappings and
4240 method build_file_mappings.
4241 (core_target::core_target): Call build_file_mappings.
4242 (core_target::~core_target): Free memory associated with
4243 m_core_file_mappings.
4244 (core_target::build_file_mappings): New method.
4245 (core_target::xfer_partial): Use m_core_file_mappings
4246 for memory transfers.
4247 * linux-tdep.c (linux_read_core_file_mappings): New
4248 function.
4249 (linux_core_info_proc_mappings): Rewrite to use
4250 linux_read_core_file_mappings.
4251 (linux_init_abi): Register linux_read_core_file_mappings.
4252
7e183d27
KB
42532020-07-22 Kevin Buettner <kevinb@redhat.com>
4254
4255 * arch-utils.c (default_read_core_file_mappings): New function.
4256 * arch-utils.c (default_read_core_file_mappings): Declare.
4257 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4258 * gdbarch.h, gdbarch.c: Regenerate.
4259
2735d421
KB
42602020-07-22 Kevin Buettner <kevinb@redhat.com>
4261
4262 PR corefiles/25631
4263 * corelow.c (core_target:xfer_partial): Revise
4264 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4265 case after first checking the stratum beneath the core
4266 target.
4267 (has_all_memory): Return true.
4268 * target.c (raw_memory_xfer_partial): Revise comment
4269 regarding use of has_all_memory.
4270
e56cb451
KB
42712020-07-22 Kevin Buettner <kevinb@redhat.com>
4272
4273 * exec.h (section_table_xfer_memory): Revise declaration,
4274 replacing section name parameter with an optional callback
4275 predicate.
4276 * exec.c (section_table_xfer_memory): Likewise.
4277 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4278 of section_table_xfer_memory.
4279
32fa152e
TT
42802020-07-22 Tom Tromey <tromey@adacore.com>
4281
4282 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4283 lookup_symbol_search_name.
4284
a67a1c41
AB
42852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4286
4287 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4288 redundant local variable.
4289 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4290 reference, not pointer, update code accordingly.
4291
a7b4ff4f
SM
42922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4293 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4294
4295 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4296 * jit.c (jit_breakpoint_re_set_internal): Use the
4297 `skip_jit_symbol_lookup` field.
4298
2340e834
SM
42992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4300 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4301
4302 * jit.c (jit_read_descriptor): Define the descriptor address once,
4303 use twice.
4304 (jit_breakpoint_deleted): Move the declaration of the loop variable
4305 `iter` into the loop header.
4306 (jit_breakpoint_re_set_internal): Move the declaration of the local
4307 variable `objf_data` to the first point of definition.
4308 (jit_event_handler): Move the declaration of local variables
4309 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4310 Rename `objf` to `jited`.
4311
c1072906
SM
43122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4315 Remove.
4316 * jit.c (get_jiter_objfile_data): Update.
4317
c8474dc3
TBA
43182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4319 Simon Marchi <simon.marchi@polymtl.ca>
4320
4321 * jit.c (struct jit_program_space_data): Remove.
4322 (jit_program_space_key): Remove.
4323 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4324 stuff.
4325 (get_jit_program_space_data): Remove.
4326 (jit_breakpoint_deleted): Iterate on all of the program space's
4327 objfiles.
4328 (jit_inferior_init): Likewise.
4329 (jit_breakpoint_re_set_internal): Likewise. Also change return
4330 type to void.
4331 (jit_breakpoint_re_set): Pass current_program_space to
4332 jit_breakpoint_re_set_internal.
4333
77208eb7
SM
43342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * jit.h (struct jiter_objfile_data) <cached_code_address,
4337 jit_breakpoint>: Move to here from ...
4338 * jit.c (jit_program_space_data): ... here.
4339 (jiter_objfile_data::~jiter_objfile_data): Update.
4340 (jit_breakpoint_deleted): Update.
4341 (jit_breakpoint_re_set_internal): Update.
4342
8c1c720f
SM
43432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4346 checks.
4347 (jit_read_descriptor): Remove NULL check.
4348 (jit_event_handler): Add an assertion.
4349
0e74a041
SM
43502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4351
4352 * jit.h (struct jit_objfile_data): Split into...
4353 (struct jiter_objfile_data): ... this ...
4354 (struct jited_objfile_data): ... and this.
4355 * objfiles.h (struct objfile) <jit_data>: Remove.
4356 <jiter_data, jited_data>: New fields.
4357 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4358 (jiter_objfile_data::~jiter_objfile_data): ... this.
4359 (get_jit_objfile_data): Rename to ...
4360 (get_jiter_objfile_data): ... this.
4361 (add_objfile_entry): Update.
4362 (jit_read_descriptor): Use get_jiter_objfile_data.
4363 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4364 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4365 (jit_inferior_exit_hook): Use objfile's jited_data field.
4366
238b5c9f
SM
43672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * jit.h: Forward-declare `struct minimal_symbol`.
4370 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4371 constructor, destructor, and an objfile* field.
4372 * jit.c (jit_objfile_data): Remove.
4373 (struct jit_objfile_data): Migrate from here to jit.h.
4374 (jit_objfile_data::~jit_objfile_data): New destructor
4375 implementation with code moved from free_objfile_data.
4376 (free_objfile_data): Delete.
4377 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4378 (jit_find_objf_with_entry_addr): Ditto.
4379 (jit_inferior_exit_hook): Ditto.
4380 (_initialize_jit): Remove the call to
4381 register_objfile_data_with_cleanup.
4382 * objfiles.h (struct objfile) <jit_data>: New field.
4383
fe053b9e
TBA
43842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 * jit.h: Forward-declare `struct objfile`.
4387 (jit_event_handler): Add a second parameter, the JITer objfile.
4388 * jit.c (jit_read_descriptor): Change the signature to take the
4389 JITer objfile as an argument instead of the jit_program_space_data.
4390 (jit_inferior_init): Update the call to jit_read_descriptor.
4391 (jit_event_handler): Use the new JITer objfile argument when calling
4392 jit_read_descriptor.
4393 * breakpoint.c (handle_jit_event): Update the call to
4394 jit_event_handler to pass the JITer objfile.
4395
4cec0c66
JB
43962020-07-21 John Baldwin <jhb@FreeBSD.org>
4397
4398 * gdbarch.c: Regenerate.
4399 * gdbarch.h: Regenerate.
4400 * gdbarch.sh (handle_segmentation_fault): Remove method.
4401 * infrun.c (handle_segmentation_fault): Remove.
4402 (print_signal_received_reason): Remove call to
4403 handle_segmentation_fault.
4404
0e42f66a
JB
44052020-07-21 John Baldwin <jhb@FreeBSD.org>
4406
4407 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4408 Rename to sparc64_linux_report_signal_info and add siggnal
4409 argument.
4410 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4411 instead of sparc64_linux_handle_segmentation_fault.
4412
77bdfeb2
JB
44132020-07-21 John Baldwin <jhb@FreeBSD.org>
4414
4415 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4416 i386_linux_report_signal_info instead of
4417 i386_linux_handle_segmentation_fault.
4418 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4419 to i386_linux_report_signal_info and add siggnal argument.
4420 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4421 of i386_linux_handle_segmentation_fault.
4422 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4423 to i386_linux_report_signal_info and add siggnal argument.
4424
ad97bfc5
JB
44252020-07-21 John Baldwin <jhb@FreeBSD.org>
4426
4427 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4428 hook if present.
4429
272bb05c
JB
44302020-07-21 John Baldwin <jhb@FreeBSD.org>
4431
4432 * gdbarch.c: Regenerate.
4433 * gdbarch.h: Regenerate.
4434 * gdbarch.sh (report_signal_info): New method.
4435 * infrun.c (print_signal_received_reason): Invoke gdbarch
4436 report_signal_info hook if present.
4437
baf8791e
AB
44382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * python/py-registers.c : Add 'unordered_map' include.
4441 (gdbpy_new_reggroup): Renamed to...
4442 (gdbpy_get_reggroup): ...this. Update to only create register
4443 group descriptors when needed.
4444 (gdbpy_reggroup_iter_next): Update.
4445
f7306dac
AB
44462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * python/py-registers.c (gdbpy_register_object_data): New static
4449 global.
4450 (gdbpy_register_object_data_init): New function.
4451 (gdbpy_new_register_descriptor): Renamed to...
4452 (gdbpy_get_register_descriptor): ...this, and update to reuse
4453 existing register descriptors where possible.
4454 (gdbpy_register_descriptor_iter_next): Update.
4455 (gdbpy_initialize_registers): Register new gdbarch data.
4456
05c309a8
SM
44572020-07-21 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * linux-nat.c (stopped_pids): Make static.
4460
d1fd641e
SM
44612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 PR ada/26235
4464 * gdbtypes.c (ada_discrete_type_low_bound,
4465 ada_discrete_type_high_bound): Handle undefined bounds.
4466
1de14d77
KR
44672020-07-21 Kamil Rytarowski <n54@gmx.com>
4468
4469 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4470 declaration.
4471 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4472 function.
4473
ed810cc7
JB
44742020-07-20 John Baldwin <jhb@FreeBSD.org>
4475
4476 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4477 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4478 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4479 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4480 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4481 method.
4482
ae5369e7
LC
44832020-07-20 Ludovic Courtès <ludo@gnu.org>
4484
4485 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4486 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4487 which are deprecated in Guile 3.0.
4488 * configure.ac (try_guile_versions): Add "guile-3.0".
4489 * configure (try_guile_versions): Regenerate.
4490 * NEWS: Update entry.
4491
68cf161c
LC
44922020-07-20 Ludovic Courtès <ludo@gnu.org>
4493 Doug Evans <dje@google.com>
4494
4495 PR gdb/21104
4496 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4497 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4498 USING_GUILE_BEFORE_2_2.
4499 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4500 Change type to 'scm_t_port_type *'.
4501 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4502 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4503 parameter and honor it. Update callers.
4504 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4505 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4506 functions.
4507 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4508 USING_GUILE_BEFORE_2_2.
4509 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4510 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4511 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4512 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4513 and 'SCM_PORT_TYPE'.
4514 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4515 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4516 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4517 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4518 [!USING_GUILE_BEFORE_2_2]: New functions.
4519 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4520 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4521 'gdbscm_memory_port_read'.
4522 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4523 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4524 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4525 function.
4526 (ioscm_init_memory_port): Remove.
4527 (ioscm_init_memory_port_stream): New function
4528 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4529 function.
4530 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4531 Return scm_from_uint (0).
4532 (gdbscm_set_memory_port_read_buffer_size_x)
4533 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4534 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4535 Return scm_from_uint (0).
4536 (gdbscm_set_memory_port_write_buffer_size_x)
4537 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4538 * configure.ac (try_guile_versions): Add "guile-2.2".
4539 * configure: Regenerate.
4540 * NEWS: Add entry.
4541
aee91db3
TT
45422020-07-18 Tom Tromey <tom@tromey.com>
4543
4544 * linux-nat.c (linux_multi_process): Remove.
4545 (linux_nat_target::supports_multi_process): Return true.
4546
0e267416
AB
45472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4550 (riscv_lookup_target_description): Return pointer out of
4551 unique_ptr.
4552 * target-descriptions.c (allocate_target_description): Add
4553 comment.
4554 (target_desc_deleter::operator()): Likewise.
4555 * target-descriptions.h (struct target_desc_deleter): Moved to
4556 gdbsupport/tdesc.h.
4557 (target_desc_up): Likewise.
4558
f80c8ec4
TT
45592020-07-17 Tom Tromey <tromey@adacore.com>
4560
4561 * linux-nat.c (linux_nat_target::supports_non_stop)
4562 (linux_nat_target::always_non_stop_p): Use "true".
4563 (linux_nat_target::supports_disable_randomization): Use "true" and
4564 "false".
4565
d0ce17d8
CT
45662020-07-16 Caroline Tice <cmtice@google.com>
4567
4568 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4569 (RNGLIST_HEADER_SIZE64): New constant definition.
4570 (struct dwop_section_names): Add rnglists_dwo.
4571 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4572 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4573 (struct dwo_sections): Add rnglists field.
4574 (read_attribut_reprocess): Add tag parameter.
4575 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4576 (cu_debug_rnglists_section): New function (decl & definition).
4577 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4578 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4579 die whose range is being checked; get rnglist section from
4580 cu_debug_rnglists_section, to get from either objfile or dwo file as
4581 appropriate. Add cases for DW_RLE_base_addressx,
4582 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4583 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4584 test inside if-condition and updating complaint message.
4585 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4586 dwarf2_rnglists_process.
4587 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4588 dwarf2_ranges_process.
4589 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4590 need_ranges_base and update comment appropriately. Also pass die tag
4591 to dwarf2_ranges_read.
4592 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4593 need_ranges_base and update comment appropriately. Also pass die tag
4594 to dwarf2_ranges_process.
4595 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4596 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4597 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4598 need_ranges_base and update comment appropriately. Also pass die tag
4599 to read_attribute_reprocess and dwarf2_ranges_read.
4600 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4601 and update function comment appropriately.
4602 (read_loclist_index): Call read_loclists_rnglists_header instead of
4603 read_loclist_header.
4604 (read_rnglist_index): New function.
4605 (read_attribute_reprocess): Add tag parameter. Add code for
4606 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4607 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4608
3dcc261c
AB
46092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4610
4611 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4612 being resolved.
4613
ccb9eba6
AB
46142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4615
4616 * arch-utils.c (show_architecture): Update formatting of messages.
4617
cf88be68
SM
46182020-07-12 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (struct type) <bounds>: Handle array and string
4621 types.
4622 * ada-lang.c (assign_aggregate): Use type::bounds on
4623 array/string type.
4624 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4625 * c-varobj.c (c_number_of_children): Likewise.
4626 (c_describe_child): Likewise.
4627 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4628 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4629 (f_type_print_base): Likewise.
4630 * f-valprint.c (f77_array_offset_tbl): Likewise.
4631 (f77_get_upperbound): Likewise.
4632 (f77_print_array_1): Likewise.
4633 * guile/scm-type.c (gdbscm_type_range): Likewise.
4634 * m2-typeprint.c (m2_array): Likewise.
4635 (m2_is_long_set_of_type): Likewise.
4636 * m2-valprint.c (get_long_set_bounds): Likewise.
4637 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4638 * python/py-type.c (typy_range): Likewise.
4639 * rust-lang.c (rust_internal_print_type): Likewise.
4640 * type-stack.c (type_stack::follow_types): Likewise.
4641 * valarith.c (value_subscripted_rvalue): Likewise.
4642 * valops.c (value_cast): Likewise.
4643
509971ae
SM
46442020-07-12 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4647 callers to use the equivalent accessor methods.
4648
107406b7
SM
46492020-07-12 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4652 (struct type) <bit_stride>: New method.
4653 (TYPE_BIT_STRIDE): Remove.
4654 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4655
bb789949
SM
46562020-07-12 Simon Marchi <simon.marchi@efficios.com>
4657
4658 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4659 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4660 callers to use the equivalent accessor methods instead.
4661
39498edb
SM
46622020-07-12 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4665 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4666 callers to use the equivalent accessor methods instead.
4667
3b606f38
SM
46682020-07-12 Simon Marchi <simon.marchi@efficios.com>
4669
4670 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4671 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4672 to use dynamic_prop::kind.
4673
064d9cb9
SM
46742020-07-12 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4677 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4678 to get the bound property's kind and check against
4679 PROP_UNDEFINED.
4680
5537ddd0
SM
46812020-07-12 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4684 all callers to use type::range_bounds followed by
4685 dynamic_prop::{low,high}.
4686
8c2e4e06
SM
46872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4690 const_val, set_const_val, baton, set_locexpr, set_loclist,
4691 set_addr_offset, variant_parts, set_variant_parts,
4692 original_type, set_original_type>: New methods.
4693 <kind>: Rename to...
4694 <m_kind>: ... this. Update all users to use the new methods
4695 instead.
4696 <data>: Rename to...
4697 <m_data>: ... this. Update all users to use the new methods
4698 instead.
4699
7c6f2712
SM
47002020-07-12 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.c (get_discrete_bounds): Return failure if
4703 the range type's bounds are not both defined and constant
4704 values.
4705 (get_array_bounds): Update comment. Remove undefined bound check.
4706
599088e3
SM
47072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4710 the type::bounds method directly.
4711
c4dfcb36
SM
47122020-07-12 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4715 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4716 are used to set the range type's bounds to use set_bounds.
4717
0a278aa7
PW
47182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4719
4720 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4721
cce20f10
PA
47222020-07-10 Pedro Alves <pedro@palves.net>
4723
4724 * gdbthread.h (inferior_ref): Define.
4725 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4726 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4727 * thread.c
4728 (scoped_restore_current_thread::restore):
4729 Adjust to gdb::ref_ptr.
4730 (scoped_restore_current_thread::~scoped_restore_current_thread):
4731 Remove manual decref handling.
4732 (scoped_restore_current_thread::scoped_restore_current_thread):
4733 Adjust to use
4734 inferior_ref::new_reference/thread_info_ref::new_reference.
4735 Incref the thread before calling get_frame_id instead of after.
4736 Let TARGET_CLOSE_ERROR propagate.
4737
6d7aa592
PA
47382020-07-10 Pedro Alves <pedro@palves.net>
4739
4740 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4741 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4742 NOT_AVAILABLE_ERROR.
4743 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4744 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4745
b3e3a4c1
SM
47462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4747 Pedro Alves <pedro@palves.net>
4748
4749 PR gdb/26199
4750 * infrun.c (threads_are_resumed_pending_p): Delete.
4751 (do_target_wait): Remove threads_are_executing and
4752 threads_are_resumed_pending_p checks from the inferior_matches
4753 lambda. Update comments.
4754
d6cc5d98
PA
47552020-07-10 Pedro Alves <pedro@palves.net>
4756
4757 PR gdb/26199
4758 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4759 executing threads.
4760
7d3badc6
PA
47612020-07-10 Pedro Alves <pedro@palves.net>
4762
4763 PR gdb/26199
4764 * infrun.c (handle_no_resumed): Handle multiple targets.
4765
42bd97a6
PA
47662020-07-10 Pedro Alves <pedro@palves.net>
4767
4768 PR gdb/26199
4769 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4770 target_is_async_p.
4771
43667cc6
PA
47722020-07-10 Pedro Alves <pedro@palves.net>
4773
4774 PR gdb/26199
4775 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4776 threads, not all threads.
4777
96118d11
PA
47782020-07-10 Pedro Alves <pedro@palves.net>
4779
4780 PR gdb/26199
4781 * remote.c (remote_target::open_1): Pass remote target pointer as
4782 data to create_async_event_handler.
4783 (remote_async_inferior_event_handler): Mark async event handler
4784 before returning if the remote target still has either pending
4785 events or unacknowledged notifications.
4786
54904d81
JB
47872020-07-10 John Baldwin <jhb@FreeBSD.org>
4788
4789 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4790 declaration.
4791 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4792 function.
4793
f37e5866
JB
47942020-07-09 John Baldwin <jhb@FreeBSD.org>
4795
4796 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4797 inferior_ptid.
4798
fc238d4a
JB
47992020-07-09 John Baldwin <jhb@FreeBSD.org>
4800
4801 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4802 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4803 AT_FREEBSD_PS_STRINGS.
4804
6e2469ff
HD
48052020-07-08 Hannes Domani <ssbssa@yahoo.de>
4806
4807 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4808 of debugfile path on Windows.
4809
d1076c41
JB
48102020-07-08 John Baldwin <jhb@FreeBSD.org>
4811
4812 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4813 argument to 'data'.
4814
15f3b077
TT
48152020-07-08 Tom Tromey <tromey@adacore.com>
4816
4817 * ada-lang.c (ada_exception_message_1): Use read_memory.
4818
9fc501fd
AB
48192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 PR python/22748
4822 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4823 special handling for inline frames.
4824 * findvar.c (value_of_register_lazy): Skip inline frames when
4825 creating lazy register values.
4826 * frame.c (frame_id_computed_p): Delete definition.
4827 * frame.h (frame_id_computed_p): Delete declaration.
4828
64cb3757
AB
48292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4830
4831 * NEWS: Mention additions to Python API.
4832 * python/py-arch.c (archpy_register_groups): New function.
4833 (arch_object_methods): Add 'register_groups' method.
4834 * python/py-registers.c (reggroup_iterator_object): New struct.
4835 (reggroup_object): New struct.
4836 (gdbpy_new_reggroup): New function.
4837 (gdbpy_reggroup_to_string): New function.
4838 (gdbpy_reggroup_name): New function.
4839 (gdbpy_reggroup_iter): New function.
4840 (gdbpy_reggroup_iter_next): New function.
4841 (gdbpy_new_reggroup_iterator): New function
4842 (gdbpy_initialize_registers): Register new types.
4843 (reggroup_iterator_object_type): Define new Python type.
4844 (gdbpy_reggroup_getset): New static global.
4845 (reggroup_object_type): Define new Python type.
4846 * python/python-internal.h
4847
0f767f94
AB
48482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4849
4850 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4851 * python/py-arch.c (archpy_registers): New function.
4852 (arch_object_methods): Add 'registers' method.
4853 * python/py-registers.c: New file.
4854 * python/python-internal.h
4855 (gdbpy_new_register_descriptor_iterator): Declare.
4856 (gdbpy_initialize_registers): Declare.
4857 * python/python.c (do_start_initialization): Call
4858 gdbpy_initialize_registers.
4859 * NEWS: Mention additions to the Python API.
4860
87dbc774
AB
48612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4862
4863 * NEWS: Mention new Python API method.
4864 * python/py-unwind.c (pending_framepy_architecture): New function.
4865 (pending_frame_object_methods): Add architecture method.
4866
3bc98c0c
AB
48672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * gdbarch.c: Regenerate.
4870 * gdbarch.h: Regenerate.
4871 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4872 (gdbarch_data): Use internal_error for the case where
4873 deprecated_set_gdbarch_data was originally needed.
4874 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4875 and use passed in obstack.
4876 (libunwind_frame_set_descr): Should no longer get back NULL from
4877 gdbarch_data.
4878 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4879 type.
4880 * user-regs.c (user_regs_init): Update parameters, and use passed
4881 in obstack.
4882 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4883 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4884
d8cc8af6
TV
48852020-07-06 Tom de Vries <tdevries@suse.de>
4886
4887 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4888 End-Of-Sequence in lte_is_less_than.
4889 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4890 "gdb: Don't reorder line table entries too much when sorting".
4891
947f7597
TV
48922020-07-06 Tom de Vries <tdevries@suse.de>
4893
4894 PR tui/26205
4895 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4896
1e7c1b22
TV
48972020-07-05 Tom de Vries <tdevries@suse.de>
4898
4899 PR build/26187
4900 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4901 std::uncaught_exceptions instead of deprecated
4902 std::uncaught_exception.
4903
a36158ec
SM
49042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4905
4906 * macroexp.h (macro_stringify): Return
4907 gdb::unique_xmalloc_ptr<char>.
4908 * macroexp.c (macro_stringify): Likewise.
4909 * macrotab.c (fixup_definition): Update.
4910
14d960c8
SM
49112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4912
4913 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4914 (lex_one_token): Update.
4915 * macroexp.c (struct macro_buffer) <release>: Return
4916 gdb::unique_xmalloc_ptr<char>.
4917 (macro_stringify): Update.
4918 (macro_expand): Update.
4919 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4920 * macroexp.h (macro_expand_next): Likewise.
4921
211d5b1c
SM
49222020-07-02 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * macroexp.h (macro_lookup_ftype): Remove.
4925 (macro_expand, macro_expand_once, macro_expand_next): Remove
4926 lookup function parameters, add scope parameter.
4927 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4928 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4929 * macroscope.h (standard_macro_lookup): Change parameter type
4930 to macro_scope.
4931 * macroscope.c (standard_macro_lookup): Likewise.
4932 * c-exp.y (lex_one_token): Update.
4933 * macrocmd.c (macro_expand_command): Likewise.
4934 (macro_expand_once_command): Likewise.
4935
b1a35af2
SM
49362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4937
4938 * inf-loop.c (inferior_event_handler): Remove client_data param.
4939 * inf-loop.h (inferior_event_handler): Likewise.
4940 * infcmd.c (step_1): Adjust.
4941 * infrun.c (proceed): Adjust.
4942 (fetch_inferior_event): Remove client_data param.
4943 (infrun_async_inferior_event_handler): Adjust.
4944 * infrun.h (fetch_inferior_event): Remove `void *` param.
4945 * linux-nat.c (handle_target_event): Adjust.
4946 * record-btrace.c (record_btrace_handle_async_inferior_event):
4947 Adjust.
4948 * record-full.c (record_full_async_inferior_event_handler):
4949 Adjust.
4950 * remote.c (remote_async_inferior_event_handler): Adjust.
4951
1cdf9e33
TT
49522020-07-01 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4955 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4956
32c1e210
TT
49572020-07-01 Tom Tromey <tom@tromey.com>
4958
4959 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4960 tui_gen_win_info.
4961 (tui_win_info::make_window): Merge with
4962 tui_gen_win_info::make_window.
4963 (tui_win_info::make_visible): Move from tui_gen_win_info.
4964 * tui/tui-win.c (tui_win_info::max_width): Move from
4965 tui_gen_win_info.
4966 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4967 type.
4968 <window_factory>: Likewise.
4969 * tui/tui-layout.c (tui_win_info::resize): Move from
4970 tui_gen_win_info.
4971 (make_standard_window): Change return type.
4972 (get_locator_window, tui_get_window_by_name): Likewise.
4973 (tui_layout_window::apply): Remove a cast.
4974 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4975 (struct tui_win_info): Merge with tui_gen_win_info.
4976 (struct tui_gen_win_info): Remove.
4977
a30cb6da
TT
49782020-07-01 Tom Tromey <tom@tromey.com>
4979
4980 * tui/tui-stack.h (struct tui_locator_window): Derive from
4981 tui_win_info.
4982 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4983 <can_box>: New method.
4984
1eb2161f
TT
49852020-07-01 Tom Tromey <tom@tromey.com>
4986
4987 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4988
7134f2eb
TT
49892020-07-01 Tom Tromey <tom@tromey.com>
4990
4991 * tui/tui-regs.c (tui_data_window::display_registers_from)
4992 (tui_data_window::display_registers_from)
4993 (tui_data_window::first_data_item_displayed)
4994 (tui_data_window::delete_data_content_windows): Update.
4995 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4996 Remove.
4997 (tui_data_window::check_register_values): Update.
4998 (tui_data_item_window::rerender): Add parameters. Update.
4999 (tui_data_item_window::refresh_window): Remove.
5000 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5001 virtual.
5002 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5003 tui_gen_win_info.
5004 <refresh_window, max_height, min_height>: Remove.
5005 <rerender>: Add parameters.
5006 <x, y, visible>: New members.
5007 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5008 <m_item_width>: New member.
5009
22b7b041
TT
50102020-07-01 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-regs.c (tui_data_window::show_register_group)
5013 (tui_data_window::check_register_values): Update.
5014 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5015 from item_no.
5016
c9753adb
TT
50172020-07-01 Tom Tromey <tom@tromey.com>
5018
5019 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5020 useless "if".
5021
9ab26b4a
TT
50222020-07-01 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5025 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5026
e555083f
TT
50272020-07-01 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5030 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5031 (struct tui_line_or_address): Move from tui-data.h.
5032 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5033 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5034 (tui_cmd_window, tui_source_window_base, tui_source_window)
5035 (tui_disasm_window): Don't declare.
5036 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5037 to tui-winsource.h.
5038 (SINGLE_KEY): Move to tui-stack.c.
5039
7a02bab7
TT
50402020-07-01 Tom Tromey <tom@tromey.com>
5041
5042 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5043 std::string.
5044 * tui/tui-regs.c (class tab_expansion_file): New.
5045 (tab_expansion_file::write): New method.
5046 (tui_register_format): Change return type. Use
5047 tab_expansion_file.
5048 (tui_get_register, tui_data_window::display_registers_from)
5049 (tui_data_item_window::rerender): Update.
5050 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5051 * tui/tui-io.c (tui_expand_tabs): Remove.
5052
ea68593b
TT
50532020-07-01 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5056
a8caed5d
FS
50572020-07-01 Fangrui Song <maskray@google.com>
5058
5059 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5060
9cdf9820
AKS
50612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5062
5063 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5064 forms for DW_AT_associated and DW_AT_allocated attributes,
5065 which is already checked in function attr_to_dynamic_prop.
5066
a1520ad8
TT
50672020-06-30 Tom Tromey <tromey@adacore.com>
5068
5069 * dwarf2/read.c (quirk_rust_enum): Correctly call
5070 alloc_rust_variant for default-less enum.
5071
5ac58899
TT
50722020-06-30 Tom Tromey <tromey@adacore.com>
5073
5074 PR build/26183:
5075 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5076 gdb::to_string.
5077
19b187a9
SM
50782020-06-29 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5081 * gdbarch.h: Re-generate.
5082
cd4c4c07
TT
50832020-06-28 Tom Tromey <tom@tromey.com>
5084
5085 * command.h (cmd_types): Remove.
5086 (cmd_type): Don't declare.
5087 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5088 typedef.
5089 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5090 * cli/cli-decode.c (cmd_type): Remove.
5091
05779d57
PA
50922020-06-27 Pedro Alves <palves@redhat.com>
5093
5094 * fork-child.c (prefork_hook): Adjust.
5095 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5096 Delete.
5097 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5098 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5099 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5100 Remove declarations.
5101 (struct inferior) <set_tty, tty>: New methods.
5102 (struct inferior) <terminal>: Rename to ...
5103 (struct inferior) <m_terminal>: ... this and make private.
5104 * main.c (captured_main_1): Adjust.
5105 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5106 (mi_cmd_inferior_tty_show): Adjust.
5107 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5108 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5109
1776e3e5
NA
51102020-06-26 Nick Alcock <nick.alcock@oracle.com>
5111
5112 * configure.ac: Add --enable-libctf: handle --disable-static
5113 properly.
5114 * acinclude.m4: sinclude ../config/enable.m4.
5115 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5116 (LIBCTF): Substitute in.
5117 (CTF_DEPS): New, likewise.
5118 (CLIBS): libctf needs symbols from libbfd: move earlier.
5119 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5120 flags.
5121 * ctfread.c: Surround in ENABLE_LIBCTF.
5122 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5123 * configure: Regenerate.
5124 * config.in: Likewise.
5125
58373b80
SM
51262020-06-25 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5129
277474ee
SM
51302020-06-25 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * inferior.h (struct inferior) <terminal>: Change type to
5133 gdb::unique_xmalloc_ptr<char>.
5134 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5135 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5136 field, adjust to unique pointer.
5137 (get_inferior_io_terminal): Adjust to unique pointer.
5138
6d74da72
AB
51392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5142 registers, not just the known core set of registers.
5143
2e52d038
AB
51442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5147 fflags, frm, and fcsr registers.
5148 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5149 restore groups.
5150 (riscv_tdesc_unknown_reg): New function.
5151 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5152 tdesc_use_registers.
5153 * riscv-tdep.h (struct gdbarch_tdep): Add
5154 unknown_csrs_first_regnum, unknown_csrs_count,
5155 duplicate_fflags_regnum, duplicate_frm_regnum, and
5156 duplicate_fcsr_regnum fields.
5157
be64fd07
AB
51582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5161 callback, use the callback (when not null) to help number unknown
5162 registers.
5163 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5164 (tdesc_use_registers): Add extra parameter to declaration.
5165
3b9fce96
AB
51662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5169 in the file.
5170 (class riscv_pending_register_alias): Likewise.
5171 (riscv_register_feature::register_info): Change 'required_p' field
5172 to 'required', and change its type. Add 'check' member function.
5173 (riscv_register_feature::register_info::check): Define new member
5174 function.
5175 (riscv_xreg_feature): Change initialisation of 'required' field.
5176 (riscv_freg_feature): Likewise.
5177 (riscv_virtual_feature): Likewise.
5178 (riscv_csr_feature): Likewise.
5179 (riscv_check_tdesc_feature): Take extra parameter, the csr
5180 tdesc_feature, rewrite the function to use the new
5181 riscv_register_feature::register_info::check function.
5182 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5183
865bad26
AB
51842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * features/Makefile: Remove all references to the deleted files
5187 below.
5188 * features/riscv/32bit-csr.c: Deleted.
5189 * features/riscv/32bit-csr.xml: Deleted.
5190 * features/riscv/64bit-csr.c: Deleted.
5191 * features/riscv/64bit-csr.xml: Deleted.
5192 * features/riscv/rebuild-csr-xml.sh: Deleted.
5193
ed69cbc8
AB
51942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5197 whitespace error for declaration of names member variable.
5198 (struct riscv_register_feature): Add new prefer_first_name member
5199 variable, and fix whitespace error in declaration of registers.
5200 (riscv_xreg_feature): Initialize prefer_first_name field.
5201 (riscv_freg_feature): Likewise.
5202 (riscv_virtual_feature): Likewise.
5203 (riscv_csr_feature): Likewise.
5204 (riscv_register_name): Expand on comments. Remove register name
5205 modifications for CSR and virtual registers.
5206
4445e8f5
AB
52072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5210 errors.
5211
767a879e
AB
52122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5215 riscv-opc.h.
5216 (class riscv_pending_register_alias): New class.
5217 (riscv_check_tdesc_feature): Take vector of pending aliases and
5218 populate it as appropriate.
5219 (riscv_setup_register_aliases): Delete.
5220 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5221 to riscv_check_tdesc_feature in all cases. Use the vector to
5222 create the register aliases.
5223
bb6e55f3
RO
52242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5225
5226 * sol2-tdep.c (sol2_static_transform_name): Remove.
5227 (sol2_init_abi): Don't register it.
5228 * gdbarch.sh (static_transform_name): Remove.
5229 * gdbarch.c, gdbarch.h: Regenerate.
5230
5231 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5232 gdbarch_static_transform_name.
5233 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5234 * stabsread.c (define_symbol) <'X'>: Remove.
5235 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5236 handling.
5237 <'V'>: Likewise.
5238 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5239 <'S'>: Remove call to gdbarch_static_transform_name.
5240
c6d36836
RO
52412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5242
5243 * procfs.c (procfs_pre_trace): New function.
5244 (procfs_target::create_inferior): Pass it to fork_inferior.
5245
a7e6196b
RO
52462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5247
5248 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5249 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5250 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5251 sol2-tdep.o, sparc-sol2-tdep.o.
5252 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5253 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5254 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5255 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5256
d412e696
RO
52572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5258
5259 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5260 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5261 Call sol2_init_abi.
5262 Remove calls to set_gdbarch_skip_solib_resolver,
5263 set_gdbarch_core_pid_to_str.
5264 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5265 (i386_sol2_static_transform_name): Remove.
5266 (i386_sol2_init_abi): Call sol2_init_abi.
5267 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5268 set_gdbarch_static_transform_name,
5269 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5270 Use sol2_sigtramp_p.
5271 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5272 (sol2_sigtramp_p): New function.
5273 (sol2_static_transform_name): New function.
5274 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5275 (sol2_init_abi): New function.
5276 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5277 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5278 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5279 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5280 (sparc_sol2_static_transform_name): Remove.
5281 (sparc32_sol2_init_abi): Call sol2_init_abi.
5282 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5283 set_gdbarch_static_transform_name,
5284 set_gdbarch_skip_solib_resolver,
5285 set_gdbarch_core_pid_to_str.
5286 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5287 (sparc_sol2_static_transform_name): Remove
5288 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5289 call sol2_sigtramp_p.
5290 (sparc64_sol2_init_abi): Call sol2_init_abi.
5291 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5292 set_gdbarch_static_transform_name,
5293 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5294
a8654e7d
PW
52952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5296
5297 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5298 * exec.c (validate_exec_file): If from_tty, set both
5299 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5300 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5301 and from_tty, unconditionally ask a confirmation.
5302
caa7fd04
AB
53032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * target-descriptions.c (tdesc_architecture_name): Protect against
5306 NULL pointer dereference.
5307 (maint_print_xml_tdesc_cmd): New function.
5308 (_initialize_target_descriptions): Register new 'maint print
5309 xml-tdesc' command and give it the filename completer.
5310 * NEWS: Mention new 'maint print xml-tdesc' command.
5311
fbf42f4e
AB
53122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * target-descriptions.c (class tdesc_compatible_info): New class.
5315 (struct target_desc): Change type of compatible vector.
5316 (tdesc_compatible_p): Update for change in type of
5317 target_desc::compatible.
5318 (tdesc_compatible_info_list): New function.
5319 (tdesc_compatible_info_arch_name): New function.
5320 (tdesc_add_compatible): Update for change in type of
5321 target_desc::compatible.
5322 (print_c_tdesc::visit_pre): Likewise.
5323
20821f4e
AB
53242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5327 whitespace to underscore.
5328 (maint_print_c_tdesc_cmd): Use fake filename for target
5329 descriptions that came from the target.
5330 (_initialize_target_descriptions): Add filename command completion
5331 for 'maint print c-tdesc'.
5332
1fb5ee62
SM
53332020-06-23 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5336 lines.
5337
fc3ecb3e
SM
53382020-06-23 Simon Marchi <simon.marchi@efficios.com>
5339
5340 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5341 lines.
5342 (dwarf2_find_location_expression): Likewise.
5343 (call_site_parameter_matches): Likewise.
5344 (dwarf2_compile_expr_to_ax): Likewise.
5345 (disassemble_dwarf_expression): Likewise.
5346 (loclist_describe_location): Likewise.
5347
236ef034
PA
53482020-06-23 Pedro Alves <palves@redhat.com>
5349
5350 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5351 progspace-and-thread.h. Include scoped-mock-context.h instead.
5352 (register_to_value_test): Use scoped_mock_context.
5353 * regcache.c: Include "scoped-mock-context.h".
5354 (cooked_read_test): Don't error out if a target is already pushed.
5355 Use scoped_mock_context. Adjust.
5356 * scoped-mock-context.h: New file.
5357
39e7ecca
AB
53582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5361 initializer.
5362 (ada_language::is_string_type_p): New member function.
5363 * c-lang.c (c_language_data): Delete la_is_string_type_p
5364 initializer.
5365 (cplus_language_data): Likewise.
5366 (asm_language_data): Likewise.
5367 (minimal_language_data): Likewise.
5368 * d-lang.c (d_language_data): Likewise.
5369 * f-lang.c (f_is_string_type_p): Delete function, implementation
5370 moved to f_language::is_string_type_p.
5371 (f_language_data): Delete la_is_string_type_p initializer.
5372 (f_language::is_string_type_p): New member function,
5373 implementation from f_is_string_type_p.
5374 * go-lang.c (go_is_string_type_p): Delete function, implementation
5375 moved to go_language::is_string_type_p.
5376 (go_language_data): Delete la_is_string_type_p initializer.
5377 (go_language::is_string_type_p): New member function,
5378 implementation from go_is_string_type_p.
5379 * language.c (language_defn::is_string_type_p): Define new member
5380 function.
5381 (default_is_string_type_p): Make static, add comment copied from
5382 header file.
5383 (unknown_language_data): Delete la_is_string_type_p initializer.
5384 (unknown_language::is_string_type_p): New member function.
5385 (auto_language_data): Delete la_is_string_type_p initializer.
5386 (auto_language::is_string_type_p): New member function.
5387 * language.h (language_data): Delete la_is_string_type_p field.
5388 (language_defn::is_string_type_p): Declare new function.
5389 (default_is_string_type_p): Delete desclaration, move comment to
5390 definition.
5391 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5392 moved to m2_language::is_string_type_p.
5393 (m2_language_data): Delete la_is_string_type_p initializer.
5394 (m2_language::is_string_type_p): New member function,
5395 implementation from m2_is_string_type_p.
5396 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5397 initializer.
5398 * opencl-lang.c (opencl_language_data): Likewise.
5399 * p-lang.c (pascal_is_string_type_p): Delete function,
5400 implementation moved to pascal_language::is_string_type_p.
5401 (pascal_language_data): Delete la_is_string_type_p initializer.
5402 (pascal_language::is_string_type_p): New member function,
5403 implementation from pascal_is_string_type_p.
5404 * rust-lang.c (rust_is_string_type_p): Delete function,
5405 implementation moved to rust_language::is_string_type_p.
5406 (rust_language_data): Delete la_is_string_type_p initializer.
5407 (rust_language::is_string_type_p): New member function,
5408 implementation from rust_is_string_type_p.
5409 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5410 is_string_type_p.
5411
4ffc13fb
AB
54122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5413
5414 * ada-lang.c (ada_language_data): Delete la_print_typedef
5415 initializer.
5416 (ada_language::print_typedef): New member function.
5417 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5418 (cplus_language_data): Likewise.
5419 (asm_language_data): Likewise.
5420 (minimal_language_data): Likewise.
5421 * d-lang.c (d_language_data): Likewise.
5422 * f-lang.c (f_language_data): Likewise.
5423 (f_language::print_typedef): New member function.
5424 * go-lang.c (go_language_data): Delete la_print_typedef
5425 initializer.
5426 * language.c (language_defn::print_typedef): Define member
5427 function.
5428 (unknown_language_data): Delete la_print_typedef initializer.
5429 (unknown_language::print_typedef): New member function.
5430 (auto_language_data): Delete la_print_typedef initializer.
5431 (auto_language::print_typedef): New member function.
5432 * language.h (language_data): Delete la_print_typedef field.
5433 (language_defn::print_typedef): Declare new member function.
5434 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5435 (default_print_typedef): Delete declaration.
5436 * m2-lang.c (m2_language_data): Delete la_print_typedef
5437 initializer.
5438 (m2_language::print_typedef): New member function.
5439 * objc-lang.c (objc_language_data): Delete la_print_typedef
5440 initializer.
5441 * opencl-lang.c (opencl_language_data): Likewise.
5442 * p-lang.c (pascal_language_data): Likewise.
5443 (pascal_language::print_typedef): New member function.
5444 * rust-lang.c (rust_print_typedef): Delete function,
5445 implementation moved to rust_language::print_typedef.
5446 (rust_language): Delete la_print_typedef initializer.
5447 (rust_language::print_typedef): New member function,
5448 implementation from rust_print_typedef.
5449 * typeprint.c (default_print_typedef): Delete.
5450
d711ee67
AB
54512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5452
5453 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5454 (ada_language::printstr): New member function.
5455 * c-lang.c (c_language_data): Delete la_printstr initializer.
5456 (cplus_language_data): Likewise.
5457 (asm_language_data): Likewise.
5458 (minimal_language_data): Likewise.
5459 * d-lang.c (d_language_data): Likewise.
5460 * f-lang.c (f_printstr): Rename to f_language::printstr.
5461 (f_language_data): Delete la_printstr initializer.
5462 (f_language::printstr): New member function, implementation from
5463 f_printstr.
5464 * go-lang.c (go_language_data): Delete la_printstr initializer.
5465 * language.c (language_defn::printstr): Define new member
5466 function.
5467 (unk_lang_printstr): Delete.
5468 (unknown_language_data): Delete la_printstr initializer.
5469 (unknown_language::printstr): New member function.
5470 (auto_language_data): Delete la_printstr initializer.
5471 (auto_language::printstr): New member function.
5472 * language.h (language_data): Delete la_printstr field.
5473 (language_defn::printstr): Declare new member function.
5474 (LA_PRINT_STRING): Update call to printstr.
5475 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5476 (m2_language_data): Delete la_printstr initializer.
5477 (m2_language::printstr): New member function, implementation from
5478 m2_printstr.
5479 * objc-lang.c (objc_language_data): Delete la_printstr
5480 initializer.
5481 * opencl-lang.c (opencl_language_data): Likewise.
5482 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5483 (pascal_language_data): Delete la_printstr initializer.
5484 (pascal_language::printstr): New member function, implementation
5485 from pascal_printstr.
5486 * p-lang.h (pascal_printstr): Delete declaration.
5487 * rust-lang.c (rust_printstr): Update header comment.
5488 (rust_language_data): Delete la_printstr initializer.
5489 (rust_language::printstr): New member function.
5490
52b50f2c
AB
54912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5494 (ada_language::printchar): New member function.
5495 * c-lang.c (c_language_data): Delete la_printchar initializer.
5496 (cplus_language_data): Likewise.
5497 (asm_language_data): Likewise.
5498 (minimal_language_data): Likewise.
5499 * d-lang.c (d_language_data): Likewise.
5500 * f-lang.c (f_printchar): Rename to f_language::printchar.
5501 (f_language_data): Delete la_printchar initializer.
5502 (f_language::printchar): New member function, implementation from
5503 f_printchar.
5504 * go-lang.c (go_language_data): Delete la_printchar initializer.
5505 * language.c (unk_lang_printchar): Delete.
5506 (language_defn::printchar): Define new member function.
5507 (unknown_language_data): Delete la_printchar initializer.
5508 (unknown_language::printchar): New member function.
5509 (auto_language_data): Delete la_printchar initializer.
5510 (auto_language::printchar): New member function.
5511 * language.h (language_data): Delete la_printchar field.
5512 (language_defn::printchar): Declare new member function.
5513 (LA_PRINT_CHAR): Update call to printchar.
5514 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5515 (m2_language::printchar): New member function.
5516 * objc-lang.c (objc_language_data): Delete la_printchar
5517 initializer.
5518 * opencl-lang.c (opencl_language_data): Likewise.
5519 * p-lang.c (pascal_language_data): Delete la_printchar
5520 initializer.
5521 (pascal_language::printchar): New member function.
5522 * rust-lang.c (rust_printchar): Rename to
5523 rust_language::printchar.
5524 (rust_language_data): Delete la_printchar initializer.
5525 (rust_language::printchar): New member function, implementation
5526 from rust_printchar.
5527
ec8cec5b
AB
55282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5531 (ada_language_data): Delete la_emitchar initializer.
5532 (ada_language::emitchar): New member function, implementation from
5533 emit_char.
5534 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5535 (cplus_language_data): Likewise.
5536 (asm_language_data): Likewise.
5537 (minimal_language_data): Likewise.
5538 * d-lang.c (d_language_data): Likewise.
5539 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5540 (f_language_data): Delete la_emitchar initializer.
5541 (f_language::emitchar): New member function, implementation from
5542 f_emit_char.
5543 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5544 * language.c (unk_lang_emit_char): Delete.
5545 (language_defn::emitchar): New member function definition.
5546 (unknown_language_data): Delete la_emitchar initializer.
5547 (unknown_language::emitchar): New member function.
5548 (auto_language_data): Delete la_emitchar initializer.
5549 (auto_language::emitchar): New member function.
5550 * language.h (language_data): Delete la_emitchar field.
5551 (language_defn::emitchar): New member field declaration.
5552 (LA_EMIT_CHAR): Update call to emitchar.
5553 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5554 (m2_language_data): Delete la_emitchar initializer.
5555 (m2_language::emitchar): New member function, implementation from
5556 m2_emit_char.
5557 * objc-lang.c (objc_language_data): Delete la_emitchar
5558 initializer.
5559 * opencl-lang.c (opencl_language_data): Likewise.
5560 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5561 (pascal_language_data): Delete la_emitchar initializer.
5562 (pascal_language::emitchar): New member function, implementation
5563 from pascal_emit_char.
5564 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5565 (rust_language_data): Delete la_emitchar initializer.
5566 (rust_language::emitchar): New member function, implementation
5567 from rust_emitchar.
5568
1bf9c363
AB
55692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5570
5571 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5572 (ada_language_data): Delete la_post_parser initializer.
5573 (ada_language::post_parser): New member function.
5574 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5575 (cplus_language_data): Likewise.
5576 (asm_language_data): Likewise.
5577 (minimal_language_data): Likewise.
5578 * d-lang.c (d_language_data): Likewise.
5579 * f-lang.c (f_language_data): Likewise.
5580 * go-lang.c (go_language_data): Likewise.
5581 * language.c (unknown_language_data): Likewise.
5582 (auto_language_data): Likewise.
5583 * language.h (language_data): Delete la_post_parser field.
5584 (language_defn::post_parser): New member function.
5585 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5586 * objc-lang.c (objc_language_data): Likewise.
5587 * opencl-lang.c (opencl_language_data): Likewise.
5588 * p-lang.c (pascal_language_data): Likewise.
5589 * parse.c (parse_exp_in_context): Update call to post_parser.
5590 (null_post_parser): Delete definition.
5591 * parser-defs.h (null_post_parser): Delete declaration.
5592 * rust-lang.c (rust_language_data): Delete la_post_parser
5593 initializer.
5594
87afa652
AB
55952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5596
5597 * ada-lang.c (parse): Rename to ada_language::parser.
5598 (ada_language_data): Delete la_parser initializer.
5599 (ada_language::parser): New member function, implementation from
5600 parse.
5601 * c-lang.c (c_language_data): Delete la_parser initializer.
5602 (cplus_language_data): Likewise.
5603 (asm_language_data): Likewise.
5604 (minimal_language_data): Likewise.
5605 * d-lang.c (d_language_data): Likewise.
5606 (d_language::parser): New member function.
5607 * f-lang.c (f_language_data): Delete la_parser initializer.
5608 (f_language::parser): New member function.
5609 * go-lang.c (go_language_data): Delete la_parser initializer.
5610 (go_language::parser): New member function.
5611 * language.c (unk_lang_parser): Delete.
5612 (language_defn::parser): Define new member function.
5613 (unknown_language_data): Delete la_parser initializer.
5614 (unknown_language::parser): New member function.
5615 (auto_language_data): Delete la_parser initializer.
5616 (auto_language::parser): New member function.
5617 * language.h (language_data): Delete la_parser field.
5618 (language_defn::parser): Declare new member function.
5619 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5620 (m2_language::parser): New member function.
5621 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5622 * opencl-lang.c (opencl_language_data): Likewise.
5623 * p-lang.c (pascal_language_data): Likewise.
5624 (pascal_language::parser): New member function.
5625 * parse.c (parse_exp_in_context): Update call to parser.
5626 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5627 (rust_language::parser): New member function.
5628
37825800
AB
56292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5630
5631 * top.c (print_gdb_configuration): Print --with-python-libdir
5632 configuration value.
5633
5b860c93
PW
56342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5635
5636 * NEWS: Mention change to the alias command.
5637
cf00cd6f
PW
56382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5639
5640 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5641 (alias_command_completer)
5642 (make_alias_options_def_group): New functions.
5643 (alias_opts, alias_option_defs): New struct and array.
5644 (alias_usage_error): Update usage.
5645 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5646 Use option framework.
5647 (_initialize_cli_cmds): Update alias command help.
5648 Update aliases command help.
5649 (show_user):
5650 Add NULL for new default_args lookup_cmd argument.
5651 (valid_command_p): Rename to validate_aliased_command.
5652 Add NULL for new default_args lookup_cmd argument. Verify that the
5653 aliased_command has no default args.
5654 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5655 (lookup_cmd_1, lookup_cmd): New argument default_args.
5656 (add_alias_cmd):
5657 Add NULL for new default_args lookup_cmd argument.
5658 (print_help_for_command): Show default args under the layout
5659 alias some_alias = some_aliased_cmd some_alias_default_arg.
5660 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5661 xfree default_args in destructor.
5662 * cli/cli-script.c (process_next_line, do_define_command):
5663 Add NULL for new default_args lookup_cmd argument.
5664 * command.h: Declare new default_args argument in lookup_cmd
5665 and lookup_cmd_1.
5666 * completer.c (complete_line_internal_1):
5667 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5668 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5669 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5670 Likewise.
5671 * infcmd.c (_initialize_infcmd): Likewise.
5672 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5673 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5674 * python/py-param.c (add_setshow_generic): Likewise.
5675 * remote.c (_initialize_remote): Likewise.
5676 * top.c (execute_command): Prepend default_args if command has some.
5677 (set_verbose):
5678 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5679 * tracepoint.c (validate_actionline, encode_actions_1):
5680 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5681
bd920864
TBA
56822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5683
5684 * jit.c (jit_read_descriptor): Use bool as the return type.
5685 (jit_breakpoint_re_set_internal): Use bool as the return type.
5686 Invert the return value logic; return true if the jit breakpoint
5687 has been successfully initialized.
5688 (jit_inferior_init): Update the call to
5689 jit_breakpoint_re_set_internal.
5690
f8098322
PA
56912020-06-22 Pedro Alves <palves@redhat.com>
5692
5693 PR gdb/25939
5694 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5695 Use the current inferior instead. Don't return
5696 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5697 wait again.
5698 * sol-thread.c (sol_thread_target::wait): Don't reference
5699 inferior_ptid.
5700 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5701 (sol_update_thread_list_callback): Use the current inferior's pid
5702 instead of inferior_ptid.
5703
196535a6
RO
57042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5705
5706 * procfs.c: Cleanup many comments.
5707
5708 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5709 (AFTER_WATCHFLAG): Replace by value.
5710
5711 (MAIN_PROC_NAME_FORMAT): Inline ...
5712 (create_procinfo): ... here.
5713
5714 (procfs_debug_inferior): Remove SYS_exec handling.
5715 (syscall_is_exec): Likewise.
5716 (procfs_set_exec_trap): Likewise.
5717
5718 (syscall_is_lwp_exit): Inline in callers.
5719 (syscall_is_exit): Likewise.
5720 (syscall_is_exec): Likewise.
5721 (syscall_is_lwp_create): Likewise.
5722
5723 (invalidate_cache): Remove #if 0 code.
5724
5725 (make_signal_thread_runnable): Remove.
5726 (procfs_target::resume): Remove #if 0 code.
5727
cf6f3e86
RO
57282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5729
5730 PR gdb/25939
5731 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5732 call ...
5733 (procfs_target::create_inferior): ... here.
5734
48e9cc84
PW
57352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5736
5737 * exec.c (validate_exec_file): Ensure the build-id is up to
5738 date by calling reopen_exec_file (that checks file timestamp
5739 to decide to re-read the file).
5740
3922b302
PA
57412020-06-18 Pedro Alves <palves@redhat.com>
5742
5743 PR gdb/25412
5744 * gdbthread.h (delete_thread, delete_thread_silent)
5745 (find_thread_ptid): Update comments.
5746 * thread.c (current_thread_): New global.
5747 (is_current_thread): Move higher, and reimplement.
5748 (inferior_thread): Reimplement.
5749 (set_thread_exited): Use bool. Add assertions.
5750 (add_thread_silent): Simplify thread-reuse handling by always
5751 calling delete_thread.
5752 (delete_thread): Remove intro comment.
5753 (find_thread_ptid): Skip exited threads.
5754 (switch_to_thread_no_regs): Write to current_thread_.
5755 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5756 INFERIOR_PTID. Clear current_thread_.
5757
6dbdab44
PA
57582020-06-18 Pedro Alves <palves@redhat.com>
5759
5760 * aix-thread.c (pd_update): Use switch_to_thread.
5761
2da4b788
PA
57622020-06-18 Pedro Alves <palves@redhat.com>
5763
5764 * ravenscar-thread.c (ravenscar_thread_target): Update.
5765 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5766 (ravenscar_thread_target::add_active_thread): ... this. Don't
5767 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5768 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5769
50838d1b
PA
57702020-06-18 Pedro Alves <palves@redhat.com>
5771
5772 * nat/windows-nat.c (current_windows_thread): Remove.
5773 * nat/windows-nat.h (current_windows_thread): Remove.
5774 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5775 Adjust.
5776 (display_selectors): Adjust to fetch the current
5777 windows_thread_info based on inferior_ptid.
5778 (fake_create_process): No longer write to current_windows_thread.
5779 (windows_nat_target::get_windows_debug_event):
5780 Don't set inferior_ptid or current_windows_thread.
5781 (windows_nat_target::wait): Adjust to not rely on
5782 current_windows_thread.
5783 (do_initial_windows_stuff): Now a method of windows_nat_target.
5784 Switch to the last_ptid thread.
5785 (windows_nat_target::attach): Adjust.
5786 (windows_nat_target::detach): Use switch_to_no_thread instead of
5787 writing to inferior_ptid directly.
5788 (windows_nat_target::create_inferior): Adjust.
5789
31ce04e9
PA
57902020-06-18 Pedro Alves <palves@redhat.com>
5791
5792 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5793
1ee1a363
PA
57942020-06-18 Pedro Alves <palves@redhat.com>
5795
5796 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5797 after creating it, instead of writing to inferior_ptid. Don't
5798 write to inferior_ptid.
5799
6d350754
PA
58002020-06-18 Pedro Alves <palves@redhat.com>
5801
5802 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5803
5d971d48
PA
58042020-06-18 Pedro Alves <palves@redhat.com>
5805
5806 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5807 it, instead of writing to inferior_ptid.
5808
86e57d1b
PA
58092020-06-18 Pedro Alves <palves@redhat.com>
5810
5811 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5812 to inferior_ptid.
5813
f2e1c129
PA
58142020-06-18 Pedro Alves <palves@redhat.com>
5815
5816 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5817 instead of writing to inferior_ptid directly.
5818
60db1b85
PA
58192020-06-18 Pedro Alves <palves@redhat.com>
5820
5821 * corelow.c (core_target::close): Use switch_to_no_thread instead
5822 of writing to inferior_ptid directly.
5823 (add_to_thread_list, core_target_open): Use switch_to_thread
5824 instead of writing to inferior_ptid directly.
5825
fe7d6a8d
PA
58262020-06-18 Pedro Alves <palves@redhat.com>
5827
5828 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5829 inferior_ptid.
5830 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5831 inferior_ptid.
5832 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5833 inferior_ptid directly.
5834 (darwin_nat_target::init_thread_list): Switch to thread, instead
5835 of writing to inferior_ptid.
5836 (darwin_nat_target::attach): Don't write to inferior_ptid.
5837 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5838
975f8708
PA
58392020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5842 thread.
5843 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5844 Instead use switch_to_thread.
5845 (gnu_nat_target::detach): Use switch_to_no_thread
5846 instead of writing to inferior_ptid directly. Used passed-in
5847 inferior instead of looking up the inferior by pid.
5848
1a204730
PA
58492020-06-18 Pedro Alves <palves@redhat.com>
5850
5851 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5852 inferior_ptid.
5853
ebe84f23
PA
58542020-06-18 Pedro Alves <palves@redhat.com>
5855
5856 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5857 inferior_ptid.
5858 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5859 thread.
5860 (nto_procfs_target::detach): Avoid referencing
5861 inferior_ptid. Use switch_to_no_thread instead of writing to
5862 inferior_ptid directly.
5863 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5864 instead of writing to inferior_ptid directly.
5865 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5866 to thread.
5867
191f02e5
PA
58682020-06-18 Pedro Alves <palves@redhat.com>
5869
5870 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5871 after creating it, instead of writing to inferior_ptid.
5872 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5873 to inferior_ptid directly.
5874 (gdbsim_target::wait): Don't write to inferior_ptid.
5875
0ac55310
PA
58762020-06-18 Pedro Alves <palves@redhat.com>
5877
5878 * remote.c (remote_target::remote_notice_new_inferior): Use
5879 switch_to_thread instead of writing to inferior_ptid directly.
5880 (remote_target::add_current_inferior_and_thread): Use
5881 switch_to_no_thread instead of writing to inferior_ptid directly.
5882 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5883 and switch_to_thread instead of using set_current_inferior or
5884 writing to inferior_ptid directly.
5885
5233f39b
PA
58862020-06-18 Pedro Alves <palves@redhat.com>
5887
5888 * tracectf.c (ctf_target_open): Switch to added thread instead of
5889 writing to inferior_ptid directly.
5890 (ctf_target::close): Use switch_to_no_thread instead of writing to
5891 inferior_ptid directly.
5892
087e161b
PA
58932020-06-18 Pedro Alves <palves@redhat.com>
5894
5895 * tracefile-tfile.c (tfile_target_open): Don't write to
5896 inferior_ptid directly, instead switch to added thread.
5897 (tfile_target::close): Use switch_to_no_thread instead of writing
5898 to inferior_ptid directly.
5899
7fb43e53
PA
59002020-06-18 Pedro Alves <palves@redhat.com>
5901
5902 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5903 (procfs_target::detach): Use switch_to_no_thread
5904 instead of writing to inferior_ptid directly.
5905 (do_attach): Change return type to void. Switch to the added
5906 thread.
5907 (procfs_target::create_inferior): Switch to the added thread.
5908 (procfs_do_thread_registers): Don't write to inferior_ptid.
5909
18493a00
PA
59102020-06-18 Pedro Alves <palves@redhat.com>
5911
5912 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5913 of writing to inferior_ptid.
5914 (scoped_restore_exited_inferior): Delete.
5915 (handle_vfork_child_exec_or_exit): Simplify using
5916 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5917 instead of writing to inferior_ptid.
5918 (THREAD_STOPPED_BY): Delete.
5919 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5920 (thread_stopped_by_hw_breakpoint): Delete.
5921 (save_waitstatus): Use
5922 scoped_restore_current_thread+switch_to_thread, and call
5923 target_stopped_by_watchpoint instead of
5924 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5925 instead of thread_stopped_by_sw_breakpoint, and
5926 target_stopped_by_hw_breakpoint instead of
5927 thread_stopped_by_hw_breakpoint.
5928 (handle_inferior_event)
5929 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5930 inferior_ptid directly, nor
5931 set_current_inferior/set_current_program_space. Use
5932 switch_to_thread / switch_to_inferior_no_thread instead.
5933
a0776b13
PA
59342020-06-18 Pedro Alves <palves@redhat.com>
5935
5936 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5937 instead of writing to inferior_ptid.
5938
6155c136
PA
59392020-06-18 Pedro Alves <palves@redhat.com>
5940
5941 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5942 added thread.
5943 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5944 to the added thread.
5945 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5946 instead of writing to inferior_ptid.
5947
c5316fc6
PA
59482020-06-18 Pedro Alves <palves@redhat.com>
5949
5950 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5951 (register_to_value_test): Mock a program_space too. Heap-allocate
5952 the address space. Don't write to inferior_ptid. Use
5953 switch_to_thread instead.
5954
8df01799
PA
59552020-06-18 Pedro Alves <palves@redhat.com>
5956
5957 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5958 Delete.
5959 (find_signalled_thread()): New, factored out from
5960 linux_make_corefile_notes and adjusted to handle exited threads.
5961 (linux_make_corefile_notes): Adjust to use the new
5962 find_signalled_thread.
5963
41792d68
PA
59642020-06-18 Pedro Alves <palves@redhat.com>
5965
5966 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5967 of saving/restoring inferior_ptid.
5968
612f258a
TT
59692020-06-17 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5972 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5973 declare.
5974 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5975
efb763a5
SM
59762020-06-15 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5979 of partial symtabs.
5980
2951f6c0
SM
59812020-06-17 Simon Marchi <simon.marchi@efficios.com>
5982
5983 * regformats/reg-arm.dat: Remove.
5984 * regformats/reg-bfin.dat: Remove.
5985 * regformats/reg-cris.dat: Remove.
5986 * regformats/reg-crisv32.dat: Remove.
5987 * regformats/reg-m32r.dat: Remove.
5988 * regformats/reg-tilegx.dat: Remove.
5989 * regformats/reg-tilegx32.dat: Remove.
5990
7d458ea5
SM
59912020-06-17 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * features/Makefile (WHICH): Remove arm files.
5994 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5995 * regformats/arm/arm-with-neon.dat: Remove.
5996 * regformats/arm/arm-with-vfpv2.dat: Remove.
5997 * regformats/arm/arm-with-vfpv3.dat: Remove.
5998
3af96c0d
SM
59992020-06-17 Simon Marchi <simon.marchi@efficios.com>
6000
6001 * features/Makefile (XMLTOC): Remove rx.xml.
6002
b25e22fd
PA
60032020-06-17 Pedro Alves <palves@redhat.com>
6004
6005 * gdbthread.h (thread_control_state) <trap_expected> Update
6006 comments.
6007
a78a19b1
AB
60082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6009
6010 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6011 ada_language::lookup_symbol_nonlocal.
6012 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6013 (ada_language::lookup_symbol_nonlocal): New member function,
6014 implementation from ada_lookup_symbol_nonlocal.
6015 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6016 initializer.
6017 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6018 initializer.
6019 (cplus_language::lookup_symbol_nonlocal): New member function.
6020 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6021 (minimal_language_data) Likewise.
6022 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6023 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6024 initializer.
6025 (d_language::lookup_symbol_nonlocal): New member function.
6026 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6027 initializer.
6028 (f_language::lookup_symbol_nonlocal): New member function.
6029 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6030 initializer.
6031 * language.c (unknown_language_data): Likewise.
6032 (auto_language_data): Likewise.
6033 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6034 field.
6035 (language_defn::lookup_symbol_nonlocal): New member function.
6036 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6037 initializer.
6038 * objc-lang.c (objc_language_data): Likewise.
6039 * opencl-lang.c (opencl_language_data): Likewise.
6040 * p-lang.c (pascal_language_data): Likewise.
6041 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6042 rust_language::lookup_symbol_nonlocal.
6043 (rust_language_data): Delete la_lookup_symbol_nonlocal
6044 initializer.
6045 (rust_language::lookup_symbol_nonlocal): New member function,
6046 implementation from rust_lookup_symbol_nonlocal.
6047 * symtab.c (lookup_symbol_aux): Update call to
6048 lookup_symbol_nonlocal.
6049 (basic_lookup_symbol_nonlocal): Rename to...
6050 (language_defn::lookup_symbol_nonlocal): ...this, and update
6051 header comment. Remove language_defn parameter, and replace with
6052 uses of `this'.
6053 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6054
ebe2334e
AB
60552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6058 initializer.
6059 (ada_language::value_print_inner): New member function.
6060 * c-lang.c (c_language_data): Delete la_value_print_inner
6061 initializer.
6062 (cplus_language_data): Likewise.
6063 (asm_language_data): Likewise.
6064 (minimal_language_data): Likewise.
6065 * d-lang.c (d_language_data): Likewise.
6066 (d_language::value_print_inner): New member function.
6067 * f-lang.c (f_language_data): Delete la_value_print_inner
6068 initializer.
6069 (f_language::value_print_inner): New member function.
6070 * f-lang.h (f_value_print_innner): Rename to...
6071 (f_value_print_inner): ...this (note spelling of 'inner').
6072 * f-valprint.c (f_value_print_innner): Rename to...
6073 (f_value_print_inner): ...this (note spelling of 'inner').
6074 * go-lang.c (go_language_data): Delete la_value_print_inner
6075 initializer.
6076 (go_language::value_print_inner): New member function.
6077 * language.c (language_defn::value_print_inner): Define new member
6078 function.
6079 (unk_lang_value_print_inner): Delete.
6080 (unknown_language_data): Delete la_value_print_inner initializer.
6081 (unknown_language::value_print_inner): New member function.
6082 (auto_language_data): Delete la_value_print_inner initializer.
6083 (auto_language::value_print_inner): New member function.
6084 * language.h (language_data): Delete la_value_print_inner field.
6085 (language_defn::value_print_inner): Delcare new member function.
6086 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6087 initializer.
6088 (m2_language::value_print_inner): New member function.
6089 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6090 initializer.
6091 * opencl-lang.c (opencl_language_data): Likewise.
6092 * p-lang.c (pascal_language_data): Likewise.
6093 (pascal_language::value_print_inner): New member function.
6094 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6095 initializer.
6096 (rust_language::value_print_inner): New member function.
6097 * valprint.c (do_val_print): Update call to value_print_inner.
6098
a1d1fa3e
AB
60992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * ada-lang.c (ada_language_data): Delete la_value_print
6102 initializer.
6103 (ada_language::value_print): New member function.
6104 * c-lang.c (c_language_data): Delete la_value_print initializer.
6105 (cplus_language_data): Likewise.
6106 (asm_language_data): Likewise.
6107 (minimal_language_data): Likewise.
6108 * d-lang.c (d_language_data): Likewise.
6109 * f-lang.c (f_language_data): Likewise.
6110 * go-lang.c (go_language_data): Likewise.
6111 * language.c (unk_lang_value_print): Delete.
6112 (language_defn::value_print): Define new member function.
6113 (unknown_language_data): Delete la_value_print initializer.
6114 (unknown_language::value_print): New member function.
6115 (auto_language_data): Delete la_value_print initializer.
6116 (auto_language::value_print): New member function.
6117 * language.h (language_data): Delete la_value_print field.
6118 (language_defn::value_print): Declare new member function.
6119 (LA_VALUE_PRINT): Update call to value_print.
6120 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6121 * objc-lang.c (objc_language_data): Likewise.
6122 * opencl-lang.c (opencl_language_data): Likewise.
6123 * p-lang.c (pascal_language_data): Likewise.
6124 (pascal_language::value_print): New member function.
6125 * rust-lang.c (rust_language_data): Delete la_value_print
6126 initializer.
6127
f16a9f57
AB
61282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * ada-lang.c (ada_watch_location_expression): Rename to
6131 ada_language::watch_location_expression.
6132 (ada_language_data): Delete la_watch_location_expression
6133 initializer.
6134 (ada_language::watch_location_expression): New member function,
6135 implementation from ada_watch_location_expression.
6136 * breakpoint.c (watch_command_1): Update call to
6137 watch_location_expression.
6138 * c-lang.c (c_watch_location_expression): Rename to
6139 language_defn::watch_location_expression.
6140 (c_language_data): Delete la_watch_location_expression
6141 initializer.
6142 (cplus_language_data): Likewise.
6143 (asm_language_data): Likewise.
6144 (minimal_language_data): Likewise.
6145 * c-lang.h (c_watch_location_expression): Delete declaration.
6146 * d-lang.c (d_language_data): Delete la_watch_location_expression
6147 initializer.
6148 * f-lang.c (f_language_data): Likewise.
6149 * go-lang.c (go_language_data): Likewise.
6150 * language.c (language_defn::watch_location_expression): Member
6151 function implementation from c_watch_location_expression.
6152 (unknown_language_data): Delete la_watch_location_expression
6153 initializer.
6154 (auto_language_data): Likewise.
6155 * language.h (language_data): Delete la_watch_location_expression
6156 field.
6157 (language_defn::watch_location_expression): Declare new member
6158 function.
6159 * m2-lang.c (m2_language_data): Delete
6160 la_watch_location_expression initializer.
6161 * objc-lang.c (objc_language_data): Likewise.
6162 * opencl-lang.c (opencl_language_data): Likewise.
6163 * p-lang.c (pascal_language_data): Likewise.
6164 * rust-lang.c (rust_watch_location_expression): Rename to
6165 rust_language::watch_location_expression.
6166 (rust_language_data): Delete la_watch_location_expression
6167 initializer.
6168 (rust_language::watch_location_expression): New member function,
6169 implementation from rust_watch_location_expression.
6170
7e56227d
AB
61712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6172
6173 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6174 ada_language::collect_symbol_completion_matches.
6175 (ada_language_data): Delete la_collect_symbol_completion_matches
6176 initializer.
6177 (ada_language::collect_symbol_completion_matches): New member
6178 function, implementation from
6179 ada_collect_symbol_completion_matches.
6180 * c-lang.c (c_language_data): Delete
6181 la_collect_symbol_completion_matches initializer.
6182 (cplus_language_data): Likewise.
6183 (asm_language_data): Likewise.
6184 (minimal_language_data): Likewise.
6185 * d-lang.c (d_language_data): Likewise.
6186 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6187 f_language::collect_symbol_completion_matches.
6188 (f_language_data): Delete la_collect_symbol_completion_matches
6189 initializer.
6190 (f_language::collect_symbol_completion_matches) New member
6191 function, implementation from f_collect_symbol_completion_matches.
6192 * go-lang.c (go_language_data): Delete
6193 la_collect_symbol_completion_matches initializer.
6194 * language.c (unknown_language_data): Likewise.
6195 (auto_language_data): Likewise.
6196 * language.h (language_data): Delete
6197 la_collect_symbol_completion_matches field.
6198 (language_defn::collect_symbol_completion_matches): New member
6199 function.
6200 * m2-lang.c (m2_language_data): Delete
6201 la_collect_symbol_completion_matches initializer.
6202 * objc-lang.c (objc_language_data): Likewise.
6203 * opencl-lang.c (opencl_language_data): Likewise.
6204 * p-lang.c (pascal_language_data): Likewise.
6205 * rust-lang.c (rust_language_data): Likewise.
6206 * symtab.c (default_collect_symbol_completion_matches): Delete.
6207 (collect_symbol_completion_matches): Update call to
6208 collect_symbol_completion_matches.
6209 (collect_symbol_completion_matches_type): Likewise.
6210 * symtab.h (default_collect_symbol_completion_matches): Delete
6211 declaration.
6212
53fc67f8
AB
62132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6216 (ada_language_data): Delete la_word_break_characters initializer.
6217 (ada_language::word_break_characters): New member function.
6218 * c-lang.c (c_language_data): Delete la_word_break_characters
6219 initializer.
6220 (cplus_language_data): Likewise.
6221 (asm_language_data): Likewise.
6222 (minimal_language_data): Likewise.
6223 * completer.c: Update global comment.
6224 (advance_to_expression_complete_word_point): Update call to
6225 word_break_characters.
6226 (complete_files_symbols): Likewise.
6227 (complete_line_internal_1): Likewise.
6228 (default_completer_handle_brkchars): Likewise.
6229 (skip_quoted_chars): Likewise.
6230 * d-lang.c (d_language_data): Delete la_word_break_characters
6231 initializer.
6232 * f-lang.c (f_word_break_characters): Delete.
6233 (f_language_data): Delete la_word_break_characters initializer.
6234 (f_language::word_break_characters): New member function.
6235 * go-lang.c (go_language_data): Delete la_word_break_characters
6236 initializer.
6237 * language.c (unknown_language_data): Likewise.
6238 (auto_language_data): Likewise.
6239 * language.h (default_word_break_characters): Move declaration to
6240 earlier in the file.
6241 (language_data): Delete la_word_break_characters field.
6242 (language_defn::word_break_characters): New member function.
6243 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6244 initializer.
6245 * objc-lang.c (objc_language_data): Likewise.
6246 * opencl-lang.c (opencl_language_data): Likewise.
6247 * p-lang.c (pascal_language_data): Likewise.
6248 * rust-lang.c (rust_language_data): Likewise.
6249
c9debfb9
AB
62502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6251
6252 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6253 (ada_language_data): Delete la_get_symbol_name_matcher
6254 initializer.
6255 (language_defn::get_symbol_name_matcher_inner): New member
6256 function.
6257 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6258 initializer.
6259 (cplus_language_data): Likewise.
6260 (cplus_language::get_symbol_name_matcher_inner): New member
6261 function.
6262 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6263 (minimal_language_data): Likewise.
6264 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6265 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6266 initializer.
6267 * dictionary.c (iter_match_first_hashed): Update call to
6268 get_symbol_name_matcher.
6269 (iter_match_next_hashed): Likewise.
6270 (iter_match_next_linear): Likewise.
6271 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6272 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6273 initializer.
6274 (f_language::get_symbol_name_matcher_inner): New member function.
6275 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6276 initializer.
6277 * language.c (default_symbol_name_matcher): Update header comment,
6278 make static.
6279 (language_defn::get_symbol_name_matcher): New definition.
6280 (language_defn::get_symbol_name_matcher_inner): Likewise.
6281 (get_symbol_name_matcher): Delete.
6282 (unknown_language_data): Delete la_get_symbol_name_matcher
6283 initializer.
6284 (auto_language_data): Likewise.
6285 * language.h (language_data): Delete la_get_symbol_name_matcher
6286 field.
6287 (language_defn::get_symbol_name_matcher): New member function.
6288 (language_defn::get_symbol_name_matcher_inner): Likewise.
6289 (default_symbol_name_matcher): Delete declaration.
6290 * linespec.c (find_methods): Update call to
6291 get_symbol_name_matcher.
6292 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6293 initializer.
6294 * minsyms.c (lookup_minimal_symbol): Update call to
6295 get_symbol_name_matcher.
6296 (iterate_over_minimal_symbols): Likewise.
6297 * objc-lang.c (objc_language_data): Delete
6298 la_get_symbol_name_matcher initializer.
6299 * opencl-lang.c (opencl_language_data): Likewise.
6300 * p-lang.c (pascal_language_data): Likewise.
6301 * psymtab.c (psymbol_name_matches): Update call to
6302 get_symbol_name_matcher.
6303 * rust-lang.c (rust_language_data): Delete
6304 la_get_symbol_name_matcher initializer.
6305 * symtab.c (symbol_matches_search_name): Update call to
6306 get_symbol_name_matcher.
6307 (compare_symbol_name): Likewise.
6308
9a49ad8c
AB
63092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6310
6311 * ada-lang.c (ada_language_data): Delete la_compute_program
6312 initializer.
6313 * c-lang.c (c_language_data): Likewise.
6314 (c_language::compute_program): New member function.
6315 (cplus_language_data): Delete la_compute_program initializer.
6316 (cplus_language::compute_program): New member function.
6317 (asm_language_data): Delete la_compute_program initializer.
6318 (minimal_language_data): Likewise.
6319 * c-lang.h (c_compute_program): Update comment.
6320 (cplus_compute_program): Likewise.
6321 * compile/compile-c-support.c (c_compute_program): Likewise.
6322 (cplus_compute_program): Likewise.
6323 * compile/compile.c (compile_to_object): Update call to
6324 la_compute_program.
6325 * d-lang.c (d_language_data): Delete la_compute_program
6326 initializer.
6327 * f-lang.c (f_language_data): Likewise.
6328 * go-lang.c (go_language_data): Likewise.
6329 * language.c (unknown_language_data): Likewise.
6330 (auto_language_data): Likewise.
6331 * language.h (language_data): Delete la_compute_program field.
6332 (language_defn::compute_program): New member function.
6333 * m2-lang.c (m2_language_data): Delete la_compute_program
6334 initializer.
6335 * objc-lang.c (objc_language_data): Likewise.
6336 * opencl-lang.c (opencl_language_data): Likewise.
6337 * p-lang.c (pascal_language_data): Likewise.
6338 * rust-lang.c (rust_language_data): Likewise.
6339
eff93b4d
AB
63402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6341
6342 * ada-lang.c (ada_language_data) Delete
6343 la_class_name_from_physname initializer.
6344 * c-lang.c (c_language_data): Likewise.
6345 (cplus_language_data): Likewise.
6346 (cplus_language::class_name_from_physname): New member function.
6347 (asm_language_data): Delete la_class_name_from_physname
6348 initializer.
6349 (minimal_language_data): Likewise.
6350 * d-lang.c (d_language_data): Likewise.
6351 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6352 method on language_defn class.
6353 (guess_full_die_structure_name): Likewise.
6354 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6355 initializer.
6356 * go-lang.c (go_language_data): Likewise.
6357 * language.c (language_class_name_from_physname): Delete.
6358 (unk_lang_class_name): Delete.
6359 (unknown_language_data): Delete la_class_name_from_physname
6360 initializer.
6361 (auto_language_data): Likewise.
6362 * language.h (language_data): Delete la_class_name_from_physname
6363 field.
6364 (language_defn::class_name_from_physname): New function.
6365 (language_class_name_from_physname): Delete declaration.
6366 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6367 initializer.
6368 * objc-lang.c (objc_language_data): Likewise.
6369 * opencl-lang.c (opencl_language_data): Likewise.
6370 * p-lang.c (pascal_language_data): Likewise.
6371 * rust-lang.c (rust_language_data): Likewise.
6372
de543742
TT
63732020-06-16 Tom Tromey <tom@tromey.com>
6374
6375 * tui/tui-data.h (STATUS_NAME): New macro.
6376 * tui/tui-layout.c (tui_remove_some_windows)
6377 (initialize_known_windows, tui_register_window)
6378 (tui_layout_split::remove_windows, initialize_layouts)
6379 (tui_new_layout_command): Don't use hard-coded window names.
6380
a350efd4
TT
63812020-06-16 Tom Tromey <tom@tromey.com>
6382
6383 PR tui/25348:
6384 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6385 tui_initialize_readline. Only run once. Call rl_initialize.
6386 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6387 tui_initialize_readline.
6388 * tui/tui-io.c (tui_setup_io): Call
6389 tui_ensure_readline_initialized.
6390 * tui/tui-interp.c (tui_interp::init): Update.
6391
39ec0490
TT
63922020-06-16 Tom Tromey <tom@tromey.com>
6393
6394 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6395 Also preserve the status window.
6396
d2d1ea20
TT
63972020-06-16 Tom Tromey <tom@tromey.com>
6398
6399 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6400 where m_window==nullptr.
6401
66920317
TT
64022020-06-15 Tom Tromey <tromey@adacore.com>
6403
6404 * windows-nat.c (windows_nat::handle_output_debug_string):
6405 Update.
6406 (windows_nat::handle_ms_vc_exception): Update.
6407 * target.h (target_read_string): Change API.
6408 * target.c (target_read_string): Change API.
6409 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6410 Update.
6411 * solib-frv.c (frv_current_sos): Update.
6412 * solib-dsbt.c (dsbt_current_sos): Update.
6413 * solib-darwin.c (darwin_current_sos): Update.
6414 * linux-thread-db.c (inferior_has_bug): Update.
6415 * expprint.c (print_subexp_standard): Update.
6416 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6417 (ada_exception_message_1): Update.
6418
a5d871dd
TT
64192020-06-15 Tom Tromey <tromey@adacore.com>
6420
6421 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6422
670e35fa
TT
64232020-06-15 Tom Tromey <tromey@adacore.com>
6424
6425 * valprint.c (read_string): Update comment.
6426 * target.c (MIN): Remove.
6427 (target_read_string): Rewrite.
6428
f5272a3b
TT
64292020-06-15 Tom Tromey <tromey@adacore.com>
6430
6431 * corefile.c (read_memory_string): Remove.
6432 * ada-valprint.c (ada_value_print_ptr): Update.
6433 * ada-lang.h (ada_tag_name): Change return type.
6434 * ada-lang.c (type_from_tag): Update.
6435 (ada_tag_name_from_tsd): Change return type. Use
6436 target_read_string.
6437 (ada_tag_name): Likewise.
6438 * gdbcore.h (read_memory_string): Don't declare.
6439
2c074f49
HD
64402020-06-14 Hannes Domani <ssbssa@yahoo.de>
6441
6442 * symtab.c (rbreak_command): Ignore Windows drive colon.
6443
6a17d503
SM
64442020-06-12 Simon Marchi <simon.marchi@efficios.com>
6445
6446 * NEWS: Mention removed GDBserver host support.
6447
453c733f
NC
64482020-06-12 Nelson Chu <nelson.chu@sifive.com>
6449
6450 * features/riscv/rebuild-csr-xml.sh: Updated.
6451
2b4e6a3f
TT
64522020-06-11 Tom Tromey <tom@tromey.com>
6453
6454 PR gdb/18318:
6455 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6456
4412332f
JG
64572020-06-09 Jonny Grant <jg@jguk.org>
64582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6459
6460 * main.c (captured_main_1): Don't print new line after help.
6461 (print_gdb_help): add mailing list and IRC channel information
6462 to --help. Add new lines between items in the footer. Remove
6463 quotes around bug url.
6464
2f33032a
KS
64652020-06-11 Keith Seitz <keiths@redhat.com>
6466
6467 PR gdb/21356
6468 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6469 Resolve typedefs for type length calculations.
6470
7ab96794
TV
64712020-06-10 Tom de Vries <tdevries@suse.de>
6472
6473 PR ada/24713
6474 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6475 (write_psymbols): Enable .gdb_index for ada.
6476 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6477 ada.
6478
e5f3ece2
TV
64792020-06-10 Tom de Vries <tdevries@suse.de>
6480
6481 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6482 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6483 namei" instead of "const char *name" argument.
6484 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6485 dw2_symtab_iter_init.
6486
940da03e
SM
64872020-06-08 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6490 to use type::field and field::type instead.
6491
b6cdac4b
SM
64922020-06-08 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6495 to use field::type instead.
6496
5d14b6e5
SM
64972020-06-08 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * gdbtypes.h (struct field) <type, set_type>: New methods.
6500 Rename `type` field to...
6501 <m_type>: ... this. Change references throughout to use type or
6502 set_type methods.
6503 (FIELD_TYPE): Use field::type. Change call sites that modify
6504 the field's type to use field::set_type instead.
6505
3d967001
SM
65062020-06-08 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6509 to use type::index_type instead.
6510
262abc0d
SM
65112020-06-08 Simon Marchi <simon.marchi@efficios.com>
6512
6513 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6514 methods.
6515 (TYPE_INDEX_TYPE): Use type::index_type.
6516 * gdbtypes.c (create_array_type_with_stride): Likewise.
6517
82836c92
TT
65182020-06-07 Tom Tromey <tom@tromey.com>
6519
6520 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6521 parameter.
6522 (generic_value_print): Update.
6523
940dace9
AB
65242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6525
6526 Revert commit 982a38f60b0.
6527 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6528
982a38f6
AB
65292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6530
6531 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6532 avoid use after free.
6533
82f06518
TV
65342020-06-05 Tom de Vries <tdevries@suse.de>
6535
6536 * NEWS: Fix typos.
6537
f8c41851
SM
65382020-06-04 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6541 the per_bfd object.
6542 (dwarf2_read_debug_names): Likewise.
6543 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6544 object when re-using a per_bfd object with an index.
6545
f9b5d5ea
TV
65462020-06-03 Tom de Vries <tdevries@suse.de>
6547
6548 PR symtab/26046
6549 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6550 children for C++.
6551 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6552 DW_TAG_subprogram.
6553
f6eee2d0
AB
65542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6555
6556 * ada-lang.c (ada_language_data): Delete skip_trampoline
6557 initializer.
6558 * c-lang.c (c_language_data): Likewise.
6559 (cplus_language_data): Likewise.
6560 (cplus_language::skip_trampoline): New member function.
6561 (asm_language_data): Delete skip_trampoline initializer.
6562 (minimal_language_data): Likewise.
6563 * d-lang.c (d_language_data): Likewise.
6564 * f-lang.c (f_language_data): Likewise.
6565 * go-lang.c (go_language_data): Likewise.
6566 * language.c (unk_lang_trampoline): Delete function.
6567 (skip_language_trampoline): Update.
6568 (unknown_language_data): Delete skip_trampoline initializer.
6569 (auto_language_data): Likewise.
6570 * language.h (language_data): Delete skip_trampoline field.
6571 (language_defn::skip_trampoline): New function.
6572 * m2-lang.c (m2_language_data): Delete skip_trampoline
6573 initializer.
6574 * objc-lang.c (objc_skip_trampoline): Delete function, move
6575 implementation to objc_language::skip_trampoline.
6576 (objc_language_data): Delete skip_trampoline initializer.
6577 (objc_language::skip_trampoline): New member function with
6578 implementation from objc_skip_trampoline.
6579 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6580 initializer.
6581 * p-lang.c (pascal_language_data): Likewise.
6582 * rust-lang.c (rust_language_data): Likewise.
6583
0a50df5d
AB
65842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6585
6586 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6587 (ada_language::demangle): New member function.
6588 * c-lang.c (c_language_data): Delete la_demangle initializer.
6589 (cplus_language_data): Delete la_demangle initializer.
6590 (cplus_language::demangle): New member function.
6591 (asm_language_data): Delete la_demangle initializer.
6592 (minimal_language_data): Delete la_demangle initializer.
6593 * d-lang.c (d_language_data): Delete la_demangle initializer.
6594 (d_language::demangle): New member function.
6595 * f-lang.c (f_language_data): Delete la_demangle initializer.
6596 (f_language::demangle): New member function.
6597 * go-lang.c (go_language_data): Delete la_demangle initializer.
6598 (go_language::demangle): New member function.
6599 * language.c (language_demangle): Update.
6600 (unk_lang_demangle): Delete.
6601 (unknown_language_data): Delete la_demangle initializer.
6602 (unknown_language::demangle): New member function.
6603 (auto_language_data): Delete la_demangle initializer.
6604 (auto_language::demangle): New member function.
6605 * language.h (language_data): Delete la_demangle field.
6606 (language_defn::demangle): New function.
6607 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6608 * objc-lang.c (objc_language_data): Delete la_demangle
6609 initializer.
6610 (objc_language::demangle): New member function.
6611 * opencl-lang.c (opencl_language_data): Delete la_demangle
6612 initializer.
6613 * p-lang.c (pascal_language_data): Likewise.
6614 * rust-lang.c (rust_language_data): Likewise.
6615 (rust_language::demangle): New member function.
6616
fbfb0a46
AB
66172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6618
6619 * ada-lang.c (ada_language_data): Delete la_print_type
6620 initializer.
6621 (ada_language::print_type): New member function.
6622 * c-lang.c (c_language_data): Delete la_print_type initializer.
6623 (c_language::print_type): New member function.
6624 (cplus_language_data): Delete la_print_type initializer.
6625 (cplus_language::print_type): New member function.
6626 (asm_language_data): Delete la_print_type initializer.
6627 (asm_language::print_type): New member function.
6628 (minimal_language_data): Delete la_print_type initializer.
6629 (minimal_language::print_type): New member function.
6630 * d-lang.c (d_language_data): Delete la_print_type initializer.
6631 (d_language::print_type): New member function.
6632 * f-lang.c (f_language_data): Delete la_print_type initializer.
6633 (f_language::print_type): New member function.
6634 * go-lang.c (go_language_data): Delete la_print_type initializer.
6635 (go_language::print_type): New member function.
6636 * language.c (unk_lang_print_type): Delete.
6637 (unknown_language_data): Delete la_print_type initializer.
6638 (unknown_language::print_type): New member function.
6639 (auto_language_data): Delete la_print_type initializer.
6640 (auto_language::print_type): New member function.
6641 * language.h (language_data): Delete la_print_type field.
6642 (language_defn::print_type): New function.
6643 (LA_PRINT_TYPE): Update.
6644 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6645 (m2_language::print_type): New member function.
6646 * objc-lang.c (objc_language_data): Delete la_print_type
6647 initializer.
6648 (objc_language::print_type): New member function.
6649 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6650 to opencl_language::print_type.
6651 (opencl_language_data): Delete la_print_type initializer.
6652 (opencl_language::print_type): New member function, implementation
6653 from opencl_print_type.
6654 * p-lang.c (pascal_language_data): Delete la_print_type
6655 initializer.
6656 (pascal_language::print_type): New member function.
6657 * rust-lang.c (rust_print_type): Delete, implementation moved to
6658 rust_language::print_type.
6659 (rust_language_data): Delete la_print_type initializer.
6660 (rust_language::print_type): New member function, implementation
6661 from rust_print_type.
6662
6f827019
AB
66632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6666 implementation moves to...
6667 (ada_language::sniff_from_mangled_name): ...here. Update return
6668 type.
6669 (ada_language_data): Delete la_sniff_from_mangled_name
6670 initializer.
6671 * c-lang.c (c_language_data): Likewise.
6672 (cplus_language_data): Likewise.
6673 (cplus_language::sniff_from_mangled_name): New member function,
6674 implementation taken from gdb_sniff_from_mangled_name.
6675 (asm_language_data): Delete la_sniff_from_mangled_name
6676 initializer.
6677 (minimal_language_data): Likewise.
6678 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6679 implementation moves to cplus_language::sniff_from_mangled_name.
6680 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6681 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6682 moves to...
6683 (d_language::sniff_from_mangled_name): ...here.
6684 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6685 * f-lang.c (f_language_data): Likewise.
6686 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6687 moves to...
6688 (go_language::sniff_from_mangled_name): ...here.
6689 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6690 * language.c (language_sniff_from_mangled_name): Delete.
6691 (unknown_language_data): Delete la_sniff_from_mangled_name
6692 initializer.
6693 (auto_language_data): Likewise.
6694 * language.h (language_data): Delete la_sniff_from_mangled_name
6695 field.
6696 (language_defn::sniff_from_mangled_name): New function.
6697 (language_sniff_from_mangled_name): Delete declaration.
6698 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6699 field.
6700 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6701 implementation moves to...
6702 (objc_language::sniff_from_mangled_name): ...here.
6703 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6704 * opencl-lang.c (opencl_language_data): Likewise.
6705 * p-lang.c (pascal_language_data): Likewise.
6706 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6707 implementation moves to...
6708 (rust_language::sniff_from_mangled_name): ...here.
6709 (rust_language_data): Delete la_sniff_from_mangled_name
6710 initializer.
6711 * symtab.c (symbol_find_demangled_name): Call
6712 sniff_from_mangled_name member function.
6713
fb8006fd
AB
67142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6717 initializer.
6718 * c-lang.c (c_language_data): Likewise.
6719 (cplus_language_data): Likewise.
6720 (cplus_language::search_name_hash): New member function.
6721 (asm_language_data): Delete la_search_name_hash initializer.
6722 (minimal_language_data): Likewise.
6723 * d-lang.c (d_language_data): Likewise.
6724 * dictionary.c (default_search_name_hash): Rename to...
6725 (language_defn::search_name_hash): ...this.
6726 * f-lang.c (f_language_data): Likewise.
6727 (f_language::search_name_hash): New member function.
6728 * go-lang.c (go_language_data): Delete la_search_name_hash
6729 initializer.
6730 * language.c (unknown_language_data): Likewise.
6731 (auto_language_data): Likewise.
6732 * language.h (struct language_data): Delete la_search_name_hash
6733 field.
6734 (language_defn::search_name_hash): Declare new member function.
6735 (default_search_name_hash): Delete declaration.
6736 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6737 initializer.
6738 * objc-lang.c (objc_language_data): Likewise.
6739 * opencl-lang.c (opencl_language_data): Likewise.
6740 * p-lang.c (pascal_language_data): Likewise.
6741 * rust-lang.c (rust_language_data): Likewise.
6742 * symtab.c (search_name_hash): Update call.
6743
8e25bafe
AB
67442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6747 initializer.
6748 * c-lang.c (class compile_instance): Declare.
6749 (c_language_data): Delete la_get_compile_instance initializer.
6750 (c_language::get_compile_instance): New member function.
6751 (cplus_language_data): Delete la_get_compile_instance initializer.
6752 (cplus_language::get_compile_instance): New member function.
6753 (asm_language_data): Delete la_get_compile_instance initializer.
6754 (minimal_language_data): Likewise.
6755 * c-lang.h (c_get_compile_context): Update comment.
6756 (cplus_get_compile_context): Update comment.
6757 * compile/compile.c (compile_to_object): Update calls, don't rely
6758 on function pointer being NULL.
6759 * d-lang.c (d_language_data): Delete la_get_compile_instance
6760 initializer.
6761 * f-lang.c (f_language_data): Likewise.
6762 * go-lang.c (go_language_data): Likewise.
6763 * language.c (unknown_language_data): Likewise.
6764 (auto_language_data): Likewise.
6765 * language.h (language_data): Delete la_get_compile_instance field.
6766 (language_defn::get_compile_instance): New member function.
6767 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6768 initializer.
6769 * objc-lang.c (objc_language_data): Likewise.
6770 * opencl-lang.c (opencl_language_data): Likewise.
6771 * p-lang.c (pascal_language_data): Likewise.
6772 * rust-lang.c (rust_language_data): Likewise.
6773
4009ee92
AB
67742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * ada-lang.c (ada_add_all_symbols): Update comment.
6777 (ada_iterate_over_symbols): Delete, move implementation to...
6778 (ada_language::iterate_over_symbols): ...here, a new member
6779 function, rewrite to use range based for loop.
6780 (ada_language_data): Delete la_iterate_over_symbols initializer.
6781 * c-lang.c (c_language_data): Likewise.
6782 (cplus_language_data): Likewise.
6783 (asm_language_data): Likewise.
6784 (minimal_language_data): Likewise.
6785 * d-lang.c (d_language_data): Likewise.
6786 * f-lang.c (f_language_data): Likewise.
6787 * go-lang.c (go_language_data): Likewise.
6788 * language.c (unknown_language_data): Likewise.
6789 (auto_language_data): Likewise.
6790 * language.h (language_data): Delete la_iterate_over_symbols field.
6791 (language_defn::iterate_over_symbols): New member function.
6792 (LA_ITERATE_OVER_SYMBOLS): Update.
6793 * linespec.c (iterate_over_all_matching_symtabs): Update.
6794 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6795 initializer.
6796 * objc-lang.c (objc_language_data): Likewise.
6797 * opencl-lang.c (opencl_language_data): Likewise.
6798 * p-lang.c (pascal_language_data): Likewise.
6799 * rust-lang.c (rust_language_data): Likewise.
6800
54f4ca46
AB
68012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6802
6803 * ada-lang.c (ada_language_data): Delete
6804 la_lookup_transparent_type initializer.
6805 * c-lang.c (c_language_data): Likewise.
6806 (cplus_language_data): Likewise.
6807 (cplus_language::lookup_transparent_type): New member function.
6808 (asm_language_data): Delete la_lookup_transparent_type
6809 initializer.
6810 (minimal_language_data): Likewise.
6811 * d-lang.c (d_language_data): Likewise.
6812 * f-lang.c (f_language_data): Likewise.
6813 * go-lang.c (go_language_data): Likewise.
6814 * language.c (unknown_language_data): Likewise.
6815 (auto_language_data): Likewise.
6816 * language.h (struct language_data): Delete
6817 la_lookup_transparent_type field.
6818 (language_defn::lookup_transparent_type): New member function.
6819 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6820 initializer.
6821 * objc-lang.c (objc_language_data): Likewise.
6822 * opencl-lang.c (opencl_language_data): Likewise.
6823 * p-lang.c (pascal_language_data): Likewise.
6824 * rust-lang.c (rust_language_data): Likewise.
6825 * symtab.c (symbol_matches_domain): Update call.
6826
1fb314aa
AB
68272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6828
6829 * ada-lang.c (ada_language_arch_info): Delete function, move
6830 implementation to...
6831 (ada_language::language_arch_info): ...here, a new member
6832 function.
6833 (ada_language_data): Delete la_language_arch_info.
6834 * c-lang.c (c_language_data): Likewise.
6835 (c_language::language_arch_info): New member function.
6836 (cplus_language_arch_info): Delete function, move
6837 implementation to...
6838 (cplus_language::language_arch_info): ...here, a new member
6839 function.
6840 (cplus_language_data): Delete la_language_arch_info.
6841 (asm_language_data): Likewise.
6842 (asm_language::language_arch_info): New member function.
6843 (minimal_language_data): Delete la_language_arch_info.
6844 (minimal_language::language_arch_info): New member function.
6845 * d-lang.c (d_language_arch_info): Delete function, move
6846 implementation to...
6847 (d_language::language_arch_info): ...here, a new member
6848 function.
6849 (d_language_data): Delete la_language_arch_info.
6850 * f-lang.c (f_language_arch_info): Delete function, move
6851 implementation to...
6852 (f_language::language_arch_info): ...here, a new member
6853 function.
6854 (f_language_data): Delete la_language_arch_info.
6855 * go-lang.c (go_language_arch_info): Delete function, move
6856 implementation to...
6857 (go_language::language_arch_info): ...here, a new member
6858 function.
6859 (go_language_data): Delete la_language_arch_info.
6860 * language.c (unknown_language_data): Likewise.
6861 (unknown_language::language_arch_info): New member function.
6862 (auto_language_data): Delete la_language_arch_info.
6863 (auto_language::language_arch_info): New member function.
6864 (language_gdbarch_post_init): Update call to
6865 la_language_arch_info.
6866 * language.h (language_data): Delete la_language_arch_info
6867 function pointer.
6868 (language_defn::language_arch_info): New function.
6869 * m2-lang.c (m2_language_arch_info): Delete function, move
6870 implementation to...
6871 (m2_language::language_arch_info): ...here, a new member
6872 function.
6873 (m2_language_data): Delete la_language_arch_info.
6874 * objc-lang.c (objc_language_arch_info): Delete function, move
6875 implementation to...
6876 (objc_language::language_arch_info): ...here, a new member
6877 function.
6878 (objc_language_data): Delete la_language_arch_info.
6879 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6880 implementation to...
6881 (opencl_language::language_arch_info): ...here, a new member
6882 function.
6883 (opencl_language_data): Delete la_language_arch_info.
6884 * p-lang.c (pascal_language_arch_info): Delete function, move
6885 implementation to...
6886 (pascal_language::language_arch_info): ...here, a new member
6887 function.
6888 (pascal_language_data): Delete la_language_arch_info.
6889 * rust-lang.c (rust_language_arch_info): Delete function, move
6890 implementation to...
6891 (rust_language::language_arch_info): ...here, a new member
6892 function.
6893 (rust_language_data): Delete la_language_arch_info.
6894
48448202
AB
68952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6898 initializer.
6899 * c-lang.c (c_language_data): Likewise.
6900 (cplus_language_data): Likewise.
6901 (cplus_language::pass_by_reference_info): New method.
6902 (asm_language_data): Delete la_pass_by_reference initializer.
6903 (minimal_language_data): Likewise.
6904 * cp-abi.c (cp_pass_by_reference): Remove use of
6905 default_pass_by_reference.
6906 * d-lang.c (d_language_data): Likewise.
6907 * f-lang.c (f_language_data): Likewise.
6908 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6909 default_pass_by_reference.
6910 * go-lang.c (go_language_data): Likewise.
6911 * language.c (language_pass_by_reference): Update.
6912 (default_pass_by_reference): Delete.
6913 (unknown_language_data): Delete la_pass_by_reference
6914 initializer.
6915 (auto_language_data): Likewise.
6916 * language.h (struct language_data): Delete la_pass_by_reference
6917 field.
6918 (language_defn::pass_by_reference_info): New member function.
6919 (default_pass_by_reference): Delete declaration.
6920 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6921 initializer.
6922 * objc-lang.c (objc_language_data): Likewise.
6923 * opencl-lang.c (opencl_language_data): Likewise.
6924 * p-lang.c (pascal_language_data): Likewise.
6925 * rust-lang.c (rust_language_data): Likewise.
6926
15e5fd35
AB
69272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6928
6929 * ada-lang.c (ada_read_var_value): Delete function, move
6930 implementation to...
6931 (ada_language::read_var_value): ...here.
6932 (ada_language_data): Delete la_read_var_value initializer.
6933 * c-lang.c (c_language_data): Likewise.
6934 (cplus_language_data): Likewise.
6935 (minimal_language_data): Likewise.
6936 * d-lang.c (d_language_data): Likewise.
6937 * f-lang.c (f_language_data): Likewise.
6938 * findvar.c (default_read_var_value): Rename to...
6939 (language_defn::read_var_value): ...this.
6940 * findvar.c (read_var_value): Update header comment, and change to
6941 call member function instead of function pointer.
6942 * go-lang.c (go_language_data): Likewise.
6943 * language.c (unknown_language_data): Delete la_read_var_value
6944 initializer.
6945 (auto_language_data): Likewise.
6946 * language.h (struct language_data): Delete la_read_var_value
6947 field.
6948 (language_defn::read_var_value): New member function.
6949 (default_read_var_value): Delete declaration.
6950 * m2-lang.c (m2_language_data): Delete la_read_var_value
6951 initializer.
6952 * objc-lang.c (objc_language_data): Likewise.
6953 * opencl-lang.c (opencl_language_data): Likewise.
6954 * p-lang.c (pascal_language_data): Likewise.
6955 * rust-lang.c (rust_language_data): Likewise.
6956 * value.h (default_read_var_value): Delete declaration.
6957
5bd40f2a
AB
69582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * ada-lang.c (ada_print_array_index): Delete function, move
6961 implementation to...
6962 (ada_language::print_array_index): ...here.
6963 (ada_language_data): Delete la_print_array_index initializer.
6964 * c-lang.c (c_language_data): Likewise.
6965 (cplus_language_data): Likewise.
6966 (minimal_language_data): Likewise.
6967 * d-lang.c (d_language_data): Likewise.
6968 * f-lang.c (f_language_data): Likewise.
6969 * go-lang.c (go_language_data): Likewise.
6970 * language.c (default_print_array_index): Delete function, move
6971 implementation to...
6972 (language_defn::print_array_index): ...here.
6973 (unknown_language_data): Delete la_print_array_index initializer.
6974 (auto_language_data): Likewise.
6975 * language.h (struct language_data): Delete la_print_array_index
6976 field.
6977 (language_defn::print_array_index): New member function.
6978 (LA_PRINT_ARRAY_INDEX): Update.
6979 (default_print_array_index): Delete declaration.
6980 * m2-lang.c (m2_language_data): Delete la_print_array_index
6981 initializer.
6982 * objc-lang.c (objc_language_data): Likewise.
6983 * opencl-lang.c (opencl_language_data): Likewise.
6984 * p-lang.c (pascal_language_data): Likewise.
6985 * rust-lang.c (rust_language_data): Likewise.
6986
0874fd07
AB
69872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6988
6989 * gdb/ada-lang.c (ada_language_defn): Convert to...
6990 (ada_language_data): ...this.
6991 (class ada_language): New class.
6992 (ada_language_defn): New static global.
6993 * gdb/c-lang.c (c_language_defn): Convert to...
6994 (c_language_data): ...this.
6995 (class c_language): New class.
6996 (c_language_defn): New static global.
6997 (cplus_language_defn): Convert to...
6998 (cplus_language_data): ...this.
6999 (class cplus_language): New class.
7000 (cplus_language_defn): New static global.
7001 (asm_language_defn): Convert to...
7002 (asm_language_data): ...this.
7003 (class asm_language): New class.
7004 (asm_language_defn): New static global.
7005 (minimal_language_defn): Convert to...
7006 (minimal_language_data): ...this.
7007 (class minimal_language): New class.
7008 (minimal_language_defn): New static global.
7009 * gdb/d-lang.c (d_language_defn): Convert to...
7010 (d_language_data): ...this.
7011 (class d_language): New class.
7012 (d_language_defn): New static global.
7013 * gdb/f-lang.c (f_language_defn): Convert to...
7014 (f_language_data): ...this.
7015 (class f_language): New class.
7016 (f_language_defn): New static global.
7017 * gdb/go-lang.c (go_language_defn): Convert to...
7018 (go_language_data): ...this.
7019 (class go_language): New class.
7020 (go_language_defn): New static global.
7021 * gdb/language.c (unknown_language_defn): Remove declaration.
7022 (current_language): Initialize to nullptr, real initialization is
7023 moved to _initialize_language.
7024 (languages): Delete global.
7025 (language_defn::languages): Define.
7026 (set_language_command): Use language_defn::languages.
7027 (set_language): Likewise.
7028 (range_error): Likewise.
7029 (language_enum): Likewise.
7030 (language_def): Likewise.
7031 (add_set_language_command): Use language_def::languages for the
7032 language list, and language_def to lookup language pointers.
7033 (skip_language_trampoline): Use language_defn::languages.
7034 (unknown_language_defn): Convert to...
7035 (unknown_language_data): ...this.
7036 (class unknown_language): New class.
7037 (unknown_language_defn): New static global.
7038 (auto_language_defn): Convert to...
7039 (auto_language_data): ...this.
7040 (class auto_language): New class.
7041 (auto_language_defn): New static global.
7042 (language_gdbarch_post_init): Use language_defn::languages.
7043 (_initialize_language): Initialize current_language.
7044 * gdb/language.h (struct language_defn): Rename to...
7045 (struct language_data): ...this.
7046 (struct language_defn): New.
7047 (auto_language_defn): Delete.
7048 (unknown_language_defn): Delete.
7049 (minimal_language_defn): Delete.
7050 (ada_language_defn): Delete.
7051 (asm_language_defn): Delete.
7052 (c_language_defn): Delete.
7053 (cplus_language_defn): Delete.
7054 (d_language_defn): Delete.
7055 (f_language_defn): Delete.
7056 (go_language_defn): Delete.
7057 (m2_language_defn): Delete.
7058 (objc_language_defn): Delete.
7059 (opencl_language_defn): Delete.
7060 (pascal_language_defn): Delete.
7061 (rust_language_defn): Delete.
7062 * gdb/m2-lang.c (m2_language_defn): Convert to...
7063 (m2_language_data): ...this.
7064 (class m2_language): New class.
7065 (m2_language_defn): New static global.
7066 * gdb/objc-lang.c (objc_language_defn): Convert to...
7067 (objc_language_data): ...this.
7068 (class objc_language): New class.
7069 (objc_language_defn): New static global.
7070 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7071 (opencl_language_data): ...this.
7072 (class opencl_language): New class.
7073 (opencl_language_defn): New static global.
7074 * gdb/p-lang.c (pascal_language_defn): Convert to...
7075 (pascal_language_data): ...this.
7076 (class pascal_language): New class.
7077 (pascal_language_defn): New static global.
7078 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7079 language pointer, update comment format.
7080 * gdb/rust-lang.c (rust_language_defn): Convert to...
7081 (rust_language_data): ...this.
7082 (class rust_language): New class.
7083 (rust_language_defn): New static global.
7084
1313c56e
AB
70852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7086
7087 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7088 member variable.
7089 <m_stmt_at_address>: New member variable.
7090 (lnp_state_machine::record_line): Don't record some lines, update
7091 tracking of is_stmt at the same address.
7092 (lnp_state_machine::lnp_state_machine): Initialise new member
7093 variables.
7094
b7ed9f3d
ST
70952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7096
7097 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7098 "-include gnu-nat-mig.h".
7099 * gnu-nat-mig.h: New file.
7100 * gnu-nat.c: Include "gnu-nat-mig.h".
7101 (exc_server, msg_reply_server, notify_server,
7102 process_reply_server): Remove declarations.
7103
14a8ad62
ST
71042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7105
7106 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7107 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7108 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7109 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7110 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7111 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7112 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7113 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7114 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7115 to gnu_nat_target class.
7116 * gnu-nat.c: Likewise.
7117 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7118 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7119 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7120 object.
7121 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7122 instead of `gnu_target'.
7123
0af5e106
ST
71242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7125
7126 * i386-gnu-tdep.c: Include "gdbcore.h"
7127 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7128 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7129 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7130 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7131 i386_gnu_sigcontext_addr): New functions
7132 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7133 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7134 tdep.
7135
078f2fc9
ST
71362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7137
7138 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7139 before fork_inferior call. Avoid calling it if target_is_pushed returns
7140 true.
7141
53dff92c
ST
71422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7143
7144 * gnu-nat.h (gnu_target): New variable declaration.
7145 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7146 gnu_target.
7147 * gnu-nat.c (gnu_target): New variable.
7148 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7149 add_thread_silent, and add_thread calls.
7150 (gnu_nat_target::create_inferior): Pass gnu_target to
7151 add_thread_silent, thread_change_ptid call.
7152 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7153 call.
7154
5a8b8627
ST
71552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7156
7157 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7158 (gnu_nat_target::find_memory_regions): Remove unused
7159 `old_address' variable.
7160
366f550a
ST
71612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7162
7163 * gnu-nat.c: Include "gdbarch.h".
7164
f14871bf
ST
71652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7166
7167 * reply_mig_hack.awk (Error return): Cast function through
7168 void *, to bypass compiler function call check.
7169
c6887cfb
ST
71702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7171
7172 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7173 $(srcdir)/reply_mig_hack.awk.
7174
6930bffe
ST
71752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7176
7177 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7178
112c22ed
JG
71792020-05-30 Jonny Grant <jg@jguk.org>
7180
7181 * configure.ac (ACX_BUGURL): change bug URL to https.
7182
f68f85b5
PA
71832020-05-30 Pedro Alves <palves@redhat.com>
7184
7185 * cp-support.c (replace_typedefs_template): New.
7186 (replace_typedefs_qualified_name): Handle
7187 DEMANGLE_COMPONENT_TEMPLATE.
7188
976ca316
SM
71892020-05-29 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7192 dwarf2/index-cache.h, dwarf2/index-write.c,
7193 dwarf2/index-write.h, dwarf2/line-header.c,
7194 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7195 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7196 variables and fields from `dwarf2_per_objfile` to just
7197 `per_objfile` throughout.
7198
989ade05
SM
71992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7200
7201 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7202 <push_dwarf_reg_entry_value>: Add comment.
7203
c47bae85
KB
72042020-05-28 Kevin Buettner <kevinb@redhat.com>
7205 Keith Seitz <keiths@redhat.com>
7206
7207 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7208 instead of PyEval_ReleaseLock.
7209 (class gdbpy_gil): Move to earlier in file.
7210 (finalize_python): Set gdb_python_initialized.
7211 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7212 when not initialized.
7213
44486dcf
SM
72142020-05-28 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7217 <push_dwarf_reg_entry_value>: Remove assert. Override
7218 per_objfile with caller_per_objfile.
7219
f030440d
TV
72202020-05-28 Tom de Vries <tdevries@suse.de>
7221
7222 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7223 PR gold/15646 workaround to symbol kind "type".
7224
f0fbb768
TT
72252020-05-27 Tom Tromey <tromey@adacore.com>
7226
7227 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7228
af0b2a3e
TT
72292020-05-27 Tom Tromey <tromey@adacore.com>
7230
7231 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7232 Use htab_find_with_hash.
7233 <add_abbrev>: Remove "abbrev_number" parameter.
7234 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7235 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7236 (hash_abbrev): Add comment.
7237 (abbrev_table::lookup_abbrev): Move to header file.
7238 (abbrev_table::read): Update.
7239
7d00ffec
TT
72402020-05-27 Tom Tromey <tromey@adacore.com>
7241
7242 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7243 method.
7244 <canonical_name>: New member.
7245 <raw_name>: Rename from "name".
7246 (partial_die_info): Initialize canonical_name.
7247 (scan_partial_symbols): Check raw_name.
7248 (partial_die_parent_scope, partial_die_full_name)
7249 (add_partial_symbol, add_partial_subprogram)
7250 (add_partial_enumeration, load_partial_dies): Use "name" method.
7251 (partial_die_info::name): New method.
7252 (partial_die_info::read, guess_partial_die_structure_name)
7253 (partial_die_info::fixup): Update.
7254
697bba18
TT
72552020-05-27 Tom Tromey <tromey@adacore.com>
7256
7257 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7258 <get_ref_die_offset>: Inline.
7259 <get_ref_die_offset_complaint>: New method.
7260 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7261 (attribute::get_ref_die_offset_complaint): Rename from
7262 get_ref_die_offset. Just issue complaint.
7263
c17ace43
HD
72642020-05-27 Hannes Domani <ssbssa@yahoo.de>
7265
7266 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7267
96445f0b
HD
72682020-05-27 Hannes Domani <ssbssa@yahoo.de>
7269
7270 * exec.c (exec_file_attach): Use errno value of first openp failure.
7271
ac637ec3
HD
72722020-05-27 Hannes Domani <ssbssa@yahoo.de>
7273
7274 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7275 Don't close thread handle.
7276
17ee85fc
TT
72772020-05-27 Tom Tromey <tom@tromey.com>
7278 Simon Marchi <simon.marchi@efficios.com>
7279
7280 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7281 shared_ptr.
7282 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7283 member.
7284 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7285 dwarf2_per_bfd_objfile_data_key>: New globals.
7286 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7287 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7288 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7289 shared.
7290 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7291 short-circuit when sharing.
7292 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7293 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7294
39b16f87
SM
72952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7296
7297 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7298 to...
7299 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7300 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7301
fcf23d5b
SM
73022020-05-27 Simon Marchi <simon.marchi@efficios.com>
7303
7304 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7305 build_name_components, find_name_components_bounds>:
7306 Add per_objfile parameter.
7307 (struct mapped_index) <symbol_name_at>: Likewise.
7308 (struct mapped_debug_names): Remove constructor.
7309 <dwarf2_per_objfile>: Remove field.
7310 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7311 (mapped_index_base::find_name_components_bounds,
7312 mapped_index_base::build_name_components,
7313 dw2_expand_symtabs_matching_symbol): Likewise.
7314 (class mock_mapped_index) <symbol_name_at>: Likewise.
7315 (check_match): Likewise.
7316 (check_find_bounds_finds): Likewise.
7317 (test_mapped_index_find_name_component_bounds): Update.
7318 (CHECK_MATCH): Update.
7319 (dw2_expand_symtabs_matching): Update.
7320 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7321 per_objfile parameter.
7322 <find_vec_in_debug_names>: Likewise.
7323 <m_per_objfile>: New field.
7324 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7325 parameter.
7326 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7327 (dw2_debug_names_iterator::next): Update.
7328 (dw2_debug_names_lookup_symbol): Update.
7329 (dw2_debug_names_expand_symtabs_for_function): Update.
7330 (dw2_debug_names_map_matching_symbols): Update.
7331 (dw2_debug_names_expand_symtabs_matching): Update.
7332 (dwarf2_read_debug_names): Update.
7333
7188ed02
SM
73342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7335
7336 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7337 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7338 move to dwarf2_per_objfile.
7339 <read_in_chain>: Remove.
7340 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7341 remove_all_cus, age_comp_units>: New methods.
7342 <m_dwarf2_cus>: New member.
7343 (struct dwarf2_per_cu_data) <cu>: Remove.
7344 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7345 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7346 moved to methods of dwarf2_per_objfile.
7347 (dwarf2_clear_marks): Remove.
7348 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7349 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7350 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7351 (dwarf2_per_objfile::remove_all_cus): New.
7352 (class free_cached_comp_units) <~free_cached_comp_units>:
7353 Update.
7354 (load_cu): Update.
7355 (dw2_do_instantiate_symtab): Adjust.
7356 (fill_in_sig_entry_from_dwo_entry): Adjust.
7357 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7358 (cutu_reader::cutu_reader): Likewise.
7359 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7360 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7361 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7362 and dwarf2_per_objfile::age_comp_units.
7363 (load_partial_comp_unit): Update.
7364 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7365 (process_queue): Likewise.
7366 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7367 backlink.
7368 (dwarf2_read_addr_index): Likewise.
7369 (follow_die_offset): Likewise.
7370 (dwarf2_fetch_die_loc_sect_off): Likewise.
7371 (dwarf2_fetch_constant_bytes): Likewise.
7372 (dwarf2_fetch_die_type_sect_off): Likewise.
7373 (follow_die_sig_1): Likewise.
7374 (load_full_type_unit): Likewise.
7375 (read_signatured_type): Likewise.
7376 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7377 (dwarf2_cu::~dwarf2_cu): Remove.
7378 (dwarf2_per_objfile::get_cu): New.
7379 (dwarf2_per_objfile::set_cu): New.
7380 (age_cached_comp_units): Rename to...
7381 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7382 to std::unordered_map.
7383 (free_one_cached_comp_unit): Rename to...
7384 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7385 to std::unordered_map.
7386 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7387 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7388 a dwarf2_per_objfile in data.
7389 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7390 (dwarf2_clear_marks): Remove.
7391
2e671100
SM
73922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7393
7394 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7395 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7396 (init_tu_and_read_dwo_dies): Likewise.
7397 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7398 (cutu_reader::cutu_reader): Likewise.
7399 (load_partial_comp_unit): Likewise.
7400 (process_psymtab_comp_unit): Update.
7401 (build_type_psymtabs_1): Update.
7402 (process_skeletonless_type_unit): Update.
7403 (load_full_comp_unit): Update.
7404 (find_partial_die): Update.
7405 (dwarf2_read_addr_index): Update.
7406 (read_signatured_type): Update.
7407
2e6a9f79
SM
74082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7409
7410 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7411 m_header_read_in>: New fields.
7412 <get_header>: New method.
7413 * dwarf2/read.c (per_cu_header_read_in): Remove.
7414 (dwarf2_per_cu_data::get_header): New.
7415 (dwarf2_per_cu_data::addr_size): Update.
7416 (dwarf2_per_cu_data::offset_size): Update.
7417 (dwarf2_per_cu_data::ref_addr_size): Update.
7418
1b555f17
SM
74192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7420
7421 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7422 (dw2_do_instantiate_symtab): Update.
7423 (queue_and_load_all_dwo_tus): Change parameter from
7424 dwarf2_per_cu_data to dwarf2_cu.
7425 (dwarf2_fetch_die_loc_sect_off): Update.
7426 (dwarf2_fetch_constant_bytes): Update.
7427 (dwarf2_fetch_die_type_sect_off): Update.
7428
8fc0b21d
SM
74292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7430
7431 * dwarf2/read.c (process_full_comp_unit,
7432 process_full_type_unit): Remove per_cu, per_objfile paramters.
7433 Add dwarf2_cu parameter.
7434 (process_queue): Update.
7435
168c9250
SM
74362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * dwarf2/read.c (create_cu_from_index_list): Replace
7439 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7440 (create_cus_from_index_list): Likewise.
7441 (create_cus_from_index): Likewise.
7442 (create_signatured_type_table_from_index): Likewise.
7443 (create_cus_from_debug_names_list): Likewise.
7444 (create_cus_from_debug_names): Likewise.
7445 (dwarf2_read_gdb_index): Update.
7446 (dwarf2_read_debug_names): Update.
7447
e286671b
TT
74482020-05-27 Tom Tromey <tom@tromey.com>
7449 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * dwarf2/read.h (struct dwarf2_per_objfile)
7452 <get_type_for_signatured_type, set_type_for_signatured_type>:
7453 New methods.
7454 <m_type_map>: New member.
7455 (struct signatured_type) <type>: Remove.
7456 * dwarf2/read.c
7457 (dwarf2_per_objfile::get_type_for_signatured_type,
7458 dwarf2_per_objfile::set_type_for_signatured_type): New.
7459 (get_signatured_type): Use new methods.
7460
8adb8487
TT
74612020-05-27 Tom Tromey <tom@tromey.com>
7462 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7465 (struct dwarf2_per_objfile) <type_units>: New member.
7466 <get_type_unit_group_unshareable>: New method.
7467 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7468 num_symtabs, symtabs>: Remove; move to
7469 type_unit_group_unshareable.
7470 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7471 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7472 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7473
127bbf4b
SM
74742020-05-27 Simon Marchi <simon.marchi@efficios.com>
7475
7476 * dwarf2/read.h (struct dwarf2_per_cu_data):
7477 <dwarf2_per_objfile>: Remove.
7478 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7479 dwarf2_per_objfile.
7480 (create_signatured_type_table_from_index): Likewise.
7481 (create_signatured_type_table_from_debug_names): Likewise.
7482 (create_debug_type_hash_table): Likewise.
7483 (fill_in_sig_entry_from_dwo_entry): Likewise.
7484 (create_type_unit_group): Likewise.
7485 (read_comp_units_from_section): Likewise.
7486 (create_cus_hash_table): Likewise.
7487
f6e649dd
SM
74882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7491 dwarf2_per_cu_data::dwarf2_per_objfile.
7492 (compute_compunit_symtab_includes): Likewise.
7493 (dwarf2_cu::start_symtab): Likewise.
7494
aa66c379
SM
74952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7496
7497 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7498 parameter.
7499 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7500 (read_namespace_alias): Update.
7501 (lookup_die_type): Update.
7502 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7503 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7504 Update.
7505 (disassemble_dwarf_expression): Update.
7506
120ce1b5
SM
75072020-05-27 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * dwarf2/read.h (struct dwarf2_queue_item): Add
7510 dwarf2_per_objfile parameter, assign new parameter.
7511 <per_objfile>: New field.
7512 * dwarf2/read.c (free_one_cached_comp_unit): Add
7513 dwarf2_per_objfile parameter.
7514 (queue_comp_unit): Likewise.
7515 (dw2_do_instantiate_symtab): Update.
7516 (process_psymtab_comp_unit): Update.
7517 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7518 (process_imported_unit_die): Update.
7519 (queue_and_load_dwo_tu): Update.
7520 (follow_die_offset): Update.
7521 (follow_die_sig_1): Update.
7522
9f47c707
SM
75232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7526 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7527 (read_call_site_scope): Assign per_objfile.
7528 (dwarf2_per_cu_data::objfile): Remove.
7529 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7530 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7531 dwarf2_per_objfile parameter.
7532 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7533 dwarf2_per_objfile parameter.
7534 (dwarf_expr_reg_to_entry_parameter): Add output
7535 dwarf2_per_objfile parameter.
7536 (locexpr_get_frame_base): Update.
7537 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7538 <push_dwarf_reg_entry_value>: Update.
7539 <call_site_to_target_addr>: Update.
7540 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7541 parameter.
7542 (value_of_dwarf_reg_entry): Update.
7543 (rw_pieced_value): Update.
7544 (indirect_synthetic_pointer): Update.
7545 (dwarf2_evaluate_property): Update.
7546 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7547 parameter.
7548 (locexpr_read_variable): Update.
7549 (locexpr_get_symbol_read_needs): Update.
7550 (loclist_read_variable): Update.
7551
14095eb3
SM
75522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7553
7554 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7556 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7557 parameter.
7558 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7559 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7560 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7561 parameter.
7562 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7563 sect_variable_value): Add dwarf2_per_objfile parameter.
7564 (class dwarf_evaluate_loc_desc) <dwarf_call,
7565 dwarf_variable_value>: Update.
7566 (fetch_const_value_from_synthetic_pointer): Add
7567 dwarf2_per_objfile parameter.
7568 (fetch_const_value_from_synthetic_pointer): Update.
7569 (coerced_pieced_ref): Update.
7570 (class symbol_needs_eval_context) <dwarf_call,
7571 dwarf_variable_value>: Update.
7572 (dwarf2_compile_expr_to_ax): Update.
7573
3c3cd3d4
SM
75742020-05-27 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7577 parameter.
7578 (dwarf2_evaluate_loc_desc_full): Update.
7579
82ca3f51
SM
75802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7581
7582 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7583 parameter.
7584 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7585 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7586 dwarf2_per_objfile parameter.
7587 (decode_debug_loc_dwo_addresses): Likewise.
7588 (dwarf2_find_location_expression): Update.
7589 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7590 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7591 parameter.
7592 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7593 parameter.
7594 (locexpr_describe_location_1): Likewise.
7595 (locexpr_describe_location): Update.
7596
4b167ea1
SM
75972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7600 Remove.
7601 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7602 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7603 (dwarf2_compile_property_to_c): Update.
7604 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7605 use text offset from objfile.
7606 (locexpr_tracepoint_var_ref): Update.
7607 (locexpr_generate_c_location): Update.
7608 (loclist_describe_location): Update.
7609 (loclist_tracepoint_var_ref): Update.
7610 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7611 dwarf2_per_objfile parameter.
7612 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7613 use text offset from objfile.
7614 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7615
89b07335
SM
76162020-05-27 Simon Marchi <simon.marchi@efficios.com>
7617
7618 * dwarf2/expr.h (struct dwarf_expr_context)
7619 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7620 <offset>: Remove.
7621 <per_objfile>: New member.
7622 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7623 dwarf2_per_objfile parameter. Don't set offset, set
7624 per_objfile.
7625 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7626 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7627 a dwarf2_per_objfile object instead of an offset.
7628 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7629 constructor.
7630 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7631 to dwarf2_expr_executor constructor. Don't set offset.
7632 (dwarf2_fetch_cfa_info): Update.
7633 (struct dwarf2_frame_cache) <text_offset>: Remove.
7634 <per_objfile>: New field.
7635 (dwarf2_frame_cache): Update.
7636 (dwarf2_frame_prev_register): Update.
7637 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7638 <dwarf_evaluate_loc_desc>: Add constructor.
7639 (dwarf2_evaluate_loc_desc_full): Update.
7640 (dwarf2_locexpr_baton_eval): Update.
7641 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7642 Add constructor.
7643 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7644
293e7e51
SM
76452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7646
7647 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7648 addr_sized_int_type>: Move to dwarf2_cu.
7649 <int_type>: Move to dwarf2_per_objfile.
7650 (struct dwarf2_per_objfile) <int_type>: Move here.
7651 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7652 addr_sized_int_type>: Move here.
7653 (read_func_scope): Update.
7654 (read_array_type): Update.
7655 (read_tag_string_type): Update.
7656 (attr_to_dynamic_prop): Update.
7657 (dwarf2_per_cu_data::int_type): Rename to...
7658 (dwarf2_per_objfile::int_type): ... this.
7659 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7660 (dwarf2_cu::addr_sized_int_type): ... this.
7661 (read_subrange_type): Update.
7662 (dwarf2_per_cu_data::addr_type): Rename to...
7663 (dwarf2_cu::addr_type): ... this.
7664 (set_die_type): Update.
7665
64874a40
SM
76662020-05-27 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7669 data through per_cu->cu.
7670
4ab09049
SM
76712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7674 dwarf2_per_cu_data parameter fo dwarf2_cu.
7675 (lookup_dwo_type_unit): Likewise.
7676 (read_cutu_die_from_dwo): Likewise.
7677 (lookup_dwo_unit): Likewise.
7678 (open_and_init_dwo_file): Likewise.
7679 (lookup_dwo_cutu): Likewise.
7680 (lookup_dwo_comp_unit): Likewise.
7681 (lookup_dwo_type_unit): Likewise.
7682 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7683 (cutu_reader::cutu_reader): Update.
7684
47b14e86
SM
76852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7688 parameter.
7689 (process_full_type_unit): Likewise.
7690 (process_queue): Update.
7691
43182c09
SM
76922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * dwarf2/read.c (recursively_compute_inclusions): Add
7695 dwarf2_per_objfile parameter.
7696 (compute_compunit_symtab_includes): Likewise.
7697 (process_cu_includes): Update.
7698
7aa104c4
SM
76992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7702 parameter.
7703 (create_type_unit_group): Update.
7704 (process_psymtab_comp_unit_reader): Update.
7705 (build_type_psymtabs_reader): Update.
7706
e3beb21d
SM
77072020-05-27 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7710 object through m_this_cu->cu.
7711
d460f660
SM
77122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7715 the info parameter.
7716 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7717
ab432490
SM
77182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7721 per_objfile parameter.
7722 (load_full_type_unit): Add per_objfile parameter.
7723 (read_signatured_type): Likewise.
7724 (load_full_comp_unit): Likewise.
7725 (load_cu): Likewise.
7726 (dw2_do_instantiate_symtab): Likewise.
7727 (dw2_get_file_names): Likewise.
7728 (dw2_map_symtabs_matching_filename): Update.
7729 (dw_expand_symtabs_matching_file_matcher): Update.
7730 (dw2_map_symbol_filenames): Update.
7731 (process_psymtab_comp_unit): Add per_objfile parameter.
7732 (build_type_psymtabs_1): Update.
7733 (process_skeletonless_type_unit): Update.
7734 (dwarf2_build_psymtabs_hard): Update.
7735 (load_partial_comp_unit): Add per_objfile parameter.
7736 (scan_partial_symbols): Update.
7737 (load_full_comp_unit): Add per_objfile parameter.
7738 (process_imported_unit_die): Update.
7739 (create_cus_hash_table): Update.
7740 (find_partial_die): Update.
7741 (dwarf2_read_addr_index): Update.
7742 (follow_die_offset): Update.
7743 (dwarf2_fetch_die_loc_sect_off): Update.
7744 (dwarf2_fetch_constant_bytes): Update.
7745 (dwarf2_fetch_die_type_sect_off): Update.
7746 (follow_die_sig_1): Update.
7747 (load_full_type_unit): Add per_objfile parameter.
7748 (read_signatured_type): Likewise.
7749
313bad1b
SM
77502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7751
7752 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7753 of objfile_name.
7754
c3699833
SM
77552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7756
7757 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7758 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7759 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7760 field.
7761 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7762 (create_cus_from_index): Update.
7763 (dwarf2_read_gdb_index): Update.
7764 (create_cus_from_debug_names): Update.
7765 (dwarf2_read_debug_names): Update.
7766 (get_abbrev_section_for_cu): Update.
7767 (create_all_comp_units): Update.
7768 (read_attribute_value): Update.
7769 (get_debug_line_section): Update.
7770 * dwarf2/index-cache.c (index_cache::store): Update.
7771 * dwarf2/index-write.c (save_gdb_index_command): Update.
7772 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7773
1859c670
SM
77742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7775
7776 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7777 member.
7778 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7779 dwarf2_per_cu_data::per_bfd.
7780 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7781 (create_type_unit_group): Likewise.
7782 (queue_comp_unit): Remove reference to
7783 per_cu->dwarf2_per_objfile.
7784 (maybe_queue_comp_unit): Likewise.
7785 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7786 (create_cus_hash_table): Assign new field.
7787
5e22e966
SM
77882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7789
7790 * dwarf2/read.c: Replace
7791 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7792 dwarf2_cu->per_objfile throughout.
7793
97a1449a
SM
77942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7797 parameter, don't use per_cu->dwarf2_per_objfile.
7798 (dw2_instantiate_symtab): Likewise.
7799 (dw2_find_last_source_symtab): Update.
7800 (dw2_map_expand_apply): Update.
7801 (dw2_lookup_symbol): Update.
7802 (dw2_expand_symtabs_for_function): Update.
7803 (dw2_expand_all_symtabs): Update.
7804 (dw2_expand_symtabs_with_fullname): Update.
7805 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7806 don't use per_cu->dwarf2_per_objfile.
7807 (dw2_expand_marked_cus): Update.
7808 (dw2_find_pc_sect_compunit_symtab): Update.
7809 (dw2_debug_names_lookup_symbol): Update.
7810 (dw2_debug_names_expand_symtabs_for_function): Update.
7811 (dw2_debug_names_map_matching_symbols): Update.
7812 (dwarf2_psymtab::expand_psymtab): Update.
7813
9e021579
SM
78142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7817 <per_objfile>: New member.
7818 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7819 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7820 call to dwarf2_cu.
7821 (cutu_reader::cutu_reader): Update.
7822 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7823
ae090bdb
SM
78242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7825
7826 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7827 struct dwarf2_per_objfile.
7828 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7829 dwarf2_per_bfd.
7830 * dwarf2/read.c (set_die_type): Update.
7831 (get_die_type_at_offset): Update.
7832
af758d11
SM
78332020-05-27 Tom Tromey <tom@tromey.com>
7834 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7837 method.
7838 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7839 get_symtab, set_symtab>: New methods.
7840 <m_symtabs>: New field.
7841 (struct dwarf2_psymtab): Derive from partial_symtab.
7842 <readin_p, get_compunit_symtab>: Declare methods.
7843 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7844 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7845 New methods.
7846 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7847 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7848 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7849 (dw2_symtab_iter_next, dw2_print_stats)
7850 (dw2_expand_symtabs_with_fullname)
7851 (dw2_expand_symtabs_matching_one)
7852 (dw_expand_symtabs_matching_file_matcher)
7853 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7854 (dw2_debug_names_iterator::next)
7855 (dw2_debug_names_map_matching_symbols)
7856 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7857 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7858 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7859 New methods.
7860 (get_compunit_symtab, process_full_comp_unit)
7861 (process_full_type_unit): Update.
7862 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7863
5989a64e
SM
78642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7865
7866 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7867 then introduce a new dwarf2_per_objfile type.
7868 <read_line_string>: Move to the new dwarf2_per_objfile type.
7869 <objfile>: Likewise.
7870 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7871 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7872 dwarf2_per_objfile->per_bfd.
7873 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7874 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7875 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7876 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7877 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7878 (dwarf2_per_objfile::locate_sections): Rename to...
7879 (dwarf2_per_bfd::locate_sections): ... this.
7880 (dwarf2_per_objfile::get_cutu): Rename to...
7881 (dwarf2_per_bfd::get_cutu): ... this.
7882 (dwarf2_per_objfile::get_cu): Rename to...
7883 (dwarf2_per_bfd::get_cu): ... this.
7884 (dwarf2_per_objfile::get_tu): Rename to...
7885 (dwarf2_per_bfd::get_tu): ... this.
7886 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7887 (dwarf2_per_bfd::allocate_per_cu): ... this.
7888 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7889 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7890 (get_gdb_index_contents_ftype): Change parameter from
7891 dwarf2_per_objfile to dwarf2_per_bfd.
7892 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7893 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7894
a50264ba
TT
78952020-05-27 Tom Tromey <tom@tromey.com>
7896 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7899 (allocate_piece_closure): Set "per_objfile" member.
7900 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7901 (locexpr_describe_location, loclist_describe_location): Use new
7902 member.
7903 * dwarf2/read.c (read_call_site_scope)
7904 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7905 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7906 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7907 handle_data_member_location): Set per_objfile member.
7908 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7909 member.
7910 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7911
d3473f0c
TT
79122020-05-27 Tom Tromey <tom@tromey.com>
7913
7914 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7915 allocate_signatured_type>: Declare new methods.
7916 <m_num_psymtabs>: New member.
7917 (struct dwarf2_per_cu_data) <index>: New member.
7918 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7919 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7920 (create_cu_from_index_list): Use allocate_per_cu.
7921 (create_signatured_type_table_from_index)
7922 (create_signatured_type_table_from_debug_names)
7923 (create_debug_type_hash_table, add_type_unit)
7924 (read_comp_units_from_section): Use allocate_signatured_type.
7925
5717c425
TT
79262020-05-27 Tom Tromey <tom@tromey.com>
7927
7928 * psymtab.c (partial_map_expand_apply)
7929 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7930 (psym_lookup_global_symbol_language)
7931 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7932 (psym_print_stats, psym_expand_symtabs_for_function)
7933 (psym_map_symbol_filenames, psym_map_matching_symbols)
7934 (psym_expand_symtabs_matching)
7935 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7936 (maintenance_check_psymtabs): Update.
7937 * psympriv.h (struct partial_symtab) <readin_p,
7938 get_compunit_symtab>: Add objfile parameter.
7939 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7940 Likewise.
7941 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7942 get_compunit_symtab>: Likewise.
7943 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7944
45940949
TT
79452020-05-27 Tom Tromey <tom@tromey.com>
7946
7947 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7948 member.
7949 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7950 (create_cu_from_index_list)
7951 (create_signatured_type_table_from_index)
7952 (create_signatured_type_table_from_debug_names)
7953 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7954 (dwarf2_create_include_psymtab)
7955 (create_debug_type_hash_table, add_type_unit)
7956 (create_type_unit_group, read_comp_units_from_section)
7957 (dwarf2_compute_name, create_cus_hash_table)
7958 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7959 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7960 obstack.
7961 (dw2_get_real_path): Likewise. Change argument to
7962 dwarf2_per_objfile.
7963
f8c6d152
LM
79642020-05-27 Luis Machado <luis.machado@linaro.org>
7965
7966 PR tdep/26000
7967 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7968 for ldrd (immediate).
7969
e98d2e6d
PW
79702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7971
7972 * command.h: Add comment giving the name of class_tui.
7973 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7974 create the fake command for the help for class_tui.
7975
53a47a3e
TT
79762020-05-26 Tom Tromey <tromey@adacore.com>
7977
7978 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7979 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7980 (val_atr): New function.
7981 (value_val_atr): Use it.
7982 * ada-valprint.c (print_optional_low_bound): Change low bound
7983 handling for enums.
7984 (val_print_packed_array_elements): Don't call discrete_position.
7985 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7986 discrete_position for enum types.
7987 * language.c (default_print_array_index): Change type.
7988 * language.h (struct language_defn) <la_print_array_index>: Add
7989 index_type parameter, change type of index_value.
7990 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7991 (default_print_array_index): Update.
7992 * valprint.c (maybe_print_array_index): Don't call
7993 value_from_longest. Update.
7994 (value_print_array_elements): Don't call discrete_position.
7995
0bc2354b
TT
79962020-05-26 Tom Tromey <tromey@adacore.com>
7997
7998 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7999 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8000
1218a4bf
CDA
80012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8002
8003 PR gdb/13519
8004 * avr-tdep.c (avr_integer_to_address): Return data or code
8005 address accordingly to the second 'type' argument of the
8006 function.
8007
92651b1d
MW
80082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8009
8010 * infcmd.c, inferior.h: (construct_inferior_arguments):
8011 Moved function from here to gdbsupport/common-inferior.{h,cc}
8012
0a4f5f8c
TT
80132020-05-23 Tom Tromey <tom@tromey.com>
8014
8015 Revert commit eca1f90c:
8016 * NEWS: Remove entry for completion styling.
8017 * completer.c (_rl_completion_prefix_display_length): Move
8018 declaration later.
8019 (gdb_fnprint): Revert.
8020 (gdb_display_match_list_1): Likewise.
8021 * cli/cli-style.c (completion_prefix_style)
8022 (completion_difference_style, completion_suffix_style): Remove.
8023 (_initialize_cli_style): Revert.
8024 * cli/cli-style.h (completion_prefix_style)
8025 (completion_difference_style, completion_suffix_style): Don't
8026 declare.
8027
e08bd6c5
PA
80282020-05-24 Pedro Alves <palves@redhat.com>
8029
8030 * symtab.c (completion_list_add_name): Return boolean indication
8031 of whether the symbol matched.
8032 (completion_list_add_symbol): Don't try to remove C++ aliases if
8033 the symbol didn't match in the first place.
8034 * symtab.h (completion_list_add_name): Return bool.
8035
ceacbf6e
SM
80362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8037
8038 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8039 type::field.
8040
26f16254
JB
80412020-05-23 Joel Brobecker <brobecker@adacore.com>
8042
8043 GDB 9.2 released.
8044
eca1f90c
TT
80452020-05-23 Tom Tromey <tom@tromey.com>
8046
8047 * NEWS: Add entry for completion styling.
8048 * completer.c (_rl_completion_prefix_display_length): Move
8049 declaration earlier.
8050 (gdb_fnprint): Use completion_style.
8051 (gdb_display_match_list_1): Likewise.
8052 * cli/cli-style.c (completion_prefix_style)
8053 (completion_difference_style, completion_suffix_style): New
8054 globals.
8055 (_initialize_cli_style): Register new globals.
8056 * cli/cli-style.h (completion_prefix_style)
8057 (completion_difference_style, completion_suffix_style): Declare.
8058
51e2cfa2
PA
80592020-05-23 Pedro Alves <palves@redhat.com>
8060
8061 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8062 (parse_escape): Use ISDIGIT instead of isdigit.
8063 (puts_debug): Use gdb_isprint instead of isprint.
8064 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8065 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8066 ISSPACE instead of isspace.
8067 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8068 instead of isspace.
8069 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8070 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8071 instead of isxdigit and ISDIGIT instead of isdigit.
8072
80fc5e77
SM
80732020-05-22 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * gdbtypes.h (struct type) <field>: New method.
8076 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8077 or type::field.
8078
3cabb6b0
SM
80792020-05-22 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8082 (TYPE_FIELDS): Use type::fields. Change all call sites that
8083 modify the propery to use type::set_fields instead.
8084
1f704f76
SM
80852020-05-22 Simon Marchi <simon.marchi@efficios.com>
8086
8087 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8088 type::num_fields instead.
8089
5e33d5f4
SM
80902020-05-22 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8093 methods.
8094 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8095 that modify the number of fields to use type::set_num_fields
8096 instead.
8097
9392ebb3
TT
80982020-05-22 Tom Tromey <tromey@adacore.com>
8099
8100 * compile/compile-object-load.h (munmap_list_free): Don't
8101 declare.
8102
7c13f4e8
AB
81032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * annotate.c (annotate_source_line): Update return type, add call
8106 to update current symtab and line.
8107 * annotate.h (annotate_source_line): Update return type, and
8108 extend header comment.
8109 * source.c (info_line_command): Check annotation_level before
8110 calling annotate_source_line.
8111 * stack.c (print_frame_info): If calling annotate_source_line
8112 returns true, then don't print any other source line information.
8113
aa370940
SM
81142020-05-21 Simon Marchi <simon.marchi@efficios.com>
8115
8116 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8117
84d53fa9
SM
81182020-05-21 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * coffread.c (patch_type): Remove NULL check before xfree.
8121 * corefile.c (set_gnutarget): Likewise.
8122 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8123 * exec.c (build_section_table): Likewise.
8124 * remote.c (remote_target::pass_signals): Likewise.
8125 * utils.c (n_spaces): Likewise.
8126 * cli/cli-script.c (document_command): Likewise.
8127 * i386-windows-tdep.c (core_process_module_section): Likewise.
8128 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8129
9d428aae
SM
81302020-05-20 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * symfile.c (reread_symbols): Clear objfile's section_offsets
8133 vector and section indices, re-compute them by calling
8134 sym_offsets.
8135
250106a7
TT
81362020-05-20 Tom Tromey <tromey@adacore.com>
8137
8138 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8139 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8140
9a0bacfb
TV
81412020-05-20 Tom de Vries <tdevries@suse.de>
8142
8143 PR symtab/25833
8144 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8145
7b958a48
AM
81462020-05-20 Alan Modra <amodra@gmail.com>
8147
8148 PR 25993
8149 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8150 bfd_set_filename.
8151 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8152 passed to bfd_set_filename.
8153 * symfile-mem.c (add_vsyscall_page): Likewise for string
8154 passed to symbol_file_add_from_memory.
8155 (symbol_file_add_from_memory): Make name param a const char* and
8156 don't strdup.
8157
c7e97679
AM
81582020-05-20 Alan Modra <amodra@gmail.com>
8159
8160 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8161 rather than accessing bfd->filename directly.
8162 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8163 and use bfd_section_name.
8164 * dwarf2/frame.c (decode_frame_entry): Likewise.
8165 * exec.c (exec_set_section_address): Likewise.
8166 * solib-aix.c (solib_aix_bfd_open): Likewise.
8167 * stap-probe.c (get_stap_base_address): Likewise.
8168 * symfile.c (reread_symbols): Likewise.
8169
563c591b
TT
81702020-05-19 Tom Tromey <tromey@adacore.com>
8171
8172 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8173
f408d82c
SM
81742020-05-19 Simon Marchi <simon.marchi@efficios.com>
8175
8176 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8177
98c59b52
PA
81782020-05-19 Pedro Alves <palves@redhat.com>
8179
8180 * NEWS (set exec-file-mismatch): Adjust entry.
8181 * exec.c: Include "build-id.h".
8182 (validate_exec_file): Try to match build IDs instead of filenames.
8183 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8184 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8185 and pass down 'warn_if_slow'.
8186 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8187 gdb_bfd_open_closure to pass it down.
8188 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8189
4111f652
PA
81902020-05-19 Pedro Alves <palves@redhat.com>
8191
8192 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8193 * target.c (target_fileio_open_1): Rename to target_fileio_open
8194 and make extern. Use bool.
8195 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8196 (target_fileio_read_alloc_1): Adjust.
8197 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8198 (target_fileio_open_warn_if_slow): Delete declaration.
8199
ad80db5b
PA
82002020-05-19 Pedro Alves <palves@redhat.com>
8201
8202 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8203 Adjust all callers.
8204
1d6ce4d3
YS
82052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8206
8207 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8208 whether disp is negative.
8209
9005fbbb
SM
82102020-05-19 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * symfile.h (struct symfile_segment_data)
8213 <~symfile_segment_data>: Remove.
8214 <segment_info>: Change to std::vector.
8215 * symfile.c (default_symfile_segments): Update.
8216 * elfread.c (elf_symfile_segments): Update.
8217
68b888ff
SM
82182020-05-19 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8221 <segments>: New.
8222 <segment_bases, segment_sizes>: Remove.
8223 * symfile.c (default_symfile_segments): Update.
8224 * elfread.c (elf_symfile_segments): Update.
8225 * remote.c (remote_target::get_offsets): Update.
8226 * solib-target.c (solib_target_relocate_section_addresses):
8227 Update.
8228
62982abd
SM
82292020-05-19 Simon Marchi <simon.marchi@efficios.com>
8230
8231 * symfile.h (struct symfile_segment_data): Initialize fields.
8232 <~symfile_segment_data>: Add.
8233 (symfile_segment_data_up): New.
8234 (struct sym_fns) <sym_segments>: Return a
8235 symfile_segment_data_up.
8236 (default_symfile_segments): Return a symfile_segment_data_up.
8237 (free_symfile_segment_data): Remove.
8238 (get_symfile_segment_data): Return a symfile_segment_data_up.
8239 * symfile.c (default_symfile_segments): Likewise.
8240 (get_symfile_segment_data): Likewise.
8241 (free_symfile_segment_data): Remove.
8242 (symfile_find_segment_sections): Update.
8243 * elfread.c (elf_symfile_segments): Return a
8244 symfile_segment_data_up.
8245 * remote.c (remote_target::get_offsets): Update.
8246 * solib-target.c (solib_target_relocate_section_addresses):
8247 Update.
8248 * symfile-debug.c (debug_sym_segments): Return a
8249 symfile_segment_data_up.
8250
7f204339
RO
82512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8252
e52a0f1b
RO
8253 PR build/25981
8254 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8255 Hardcode register numbers.
8256
7f204339
RO
8257 PR build/25981
8258 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8259 procfs_find_LDT_entry): Remove.
8260 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8261 procfs_find_LDT_entry): Remove.
8262 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8263 Remove.
8264
7f32a4d5
PA
82652020-05-17 Pedro Alves <palves@redhat.com>
8266 Andrew Burgess <andrew.burgess@embecosm.com>
8267 Keno Fischer <keno@juliacomputing.com>
8268
8269 PR gdb/25741
8270 * breakpoint.c (build_target_condition_list): Update comments.
8271 (build_target_command_list): Update comments and skip matching
8272 locations.
8273 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8274 a separate function. Simplify "set breakpoint auto-hw off"
8275 handling.
8276 (insert_breakpoints): Update comment.
8277 (tracepoint_locations_match): New parameter. For breakpoints,
8278 compare location types too, if the caller wants to.
8279 (handle_automatic_hardware_breakpoints): New functions.
8280 (bp_location_is_less_than): Also sort by location type and
8281 hardware breakpoint length.
8282 (update_global_location_list): Handle "set breakpoint auto-hw on"
8283 here.
8284 (update_breakpoint_locations): Ask breakpoint_locations_match to
8285 ignore location types.
8286
7d93a1e0
SM
82872020-05-16 Simon Marchi <simon.marchi@efficios.com>
8288
8289 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8290 type::name instead.
8291
d0e39ea2
SM
82922020-05-16 Simon Marchi <simon.marchi@efficios.com>
8293
8294 * gdbtypes.h (struct type) <name, set_name>: New methods.
8295 (TYPE_CODE): Use type::name. Change all call sites used to set
8296 the name to use type::set_name instead.
8297
2dab0c7b
TT
82982020-05-16 Tom Tromey <tom@tromey.com>
8299
8300 * top.c (quit_force): Update.
8301 * infrun.c (handle_no_resumed): Update.
8302 * top.h (all_uis): New function.
8303 (ALL_UIS): Remove.
8304
59f7bd8d
SM
83052020-05-16 Simon Marchi <simon.marchi@efficios.com>
8306
8307 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8308
9bf058f0
PA
83092020-05-16 Pedro Alves <palves@redhat.com>
8310
8311 * ia64-linux-nat.c
8312 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8313 Declare method.
8314 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8315
8f86ae1a
SM
83162020-05-15 Simon Marchi <simon.marchi@efficios.com>
8317
8318 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8319 (sparc64_adi_info): Likewise.
8320
d6bc0792
TT
83212020-05-15 Tom Tromey <tom@tromey.com>
8322
8323 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8324 block_objfile.
8325 (lookup_objfile_from_block): Remove.
8326 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8327 (lookup_global_symbol): Use block_objfile.
8328 * symtab.h (lookup_objfile_from_block): Don't declare.
8329 * printcmd.c (clear_dangling_display_expressions): Use
8330 block_objfile.
8331 * parse.c (operator_check_standard): Use block_objfile.
8332
8c14c3a3
TT
83332020-05-15 Tom Tromey <tom@tromey.com>
8334
8335 * language.c (language_alloc_type_symbol): Set
8336 SYMBOL_SECTION.
8337 * symtab.c (initialize_objfile_symbol): Remove.
8338 (allocate_symbol): Remove.
8339 (allocate_template_symbol): Remove.
8340 * dwarf2/read.c (fixup_go_packaging): Use "new".
8341 (new_symbol): Use "new".
8342 (read_variable): Don't call initialize_objfile_symbol. Use
8343 "new".
8344 (read_func_scope): Use "new".
8345 * xcoffread.c (process_xcoff_symbol): Don't call
8346 initialize_objfile_symbol.
8347 (SYMBOL_DUP): Remove.
8348 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8349 "new".
8350 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8351 (allocate_template_symbol): Don't declare.
8352 (struct symbol): Add copy constructor. Change defaults.
8353 * jit.c (finalize_symtab): Use "new".
8354 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8355 Use "new".
8356 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8357 (common_block_end): Use "new".
8358 * mdebugread.c (parse_symbol): Use "new".
8359 (new_symbol): Likewise.
8360
5b4a1a8d
PW
83612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8362
8363 * NEWS: Mention changes to help and apropos.
8364
57b4f16e
PW
83652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8366
8367 * command.h (enum command_class): Improve comments, document
8368 that class_alias is for user-defined aliases, give the class
8369 name for each class, remove unused class_xdb.
8370 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8371 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8372 by a precise class.
8373 * infcmd.c (_initialize_infcmd): Likewise.
8374 * reverse.c (_initialize_reverse): Likewise.
8375 * stack.c (_initialize_stack): Likewise.
8376 * symfile.c (_initialize_symfile): Likewise.
8377 * tracepoint.c (_initialize_tracepoint): Likewise.
8378
7c05caf7
PW
83792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8380
8381 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8382 when their aliased command is traversed.
8383 (help_cmd): Add fput_command_names_styled call to
8384 output command name and aliases when command has an alias.
8385
3b3aaacb
PW
83862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8387
8388 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8389 * cli/cli-decode.c (help_cmd_list): Declare as static,
8390 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8391 a command together with the command.
8392 (fput_command_name_styled, fput_command_names_styled): New functions.
8393 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8394 fput_command_name_styled.
8395 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8396 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8397
7aa1b46f
PW
83982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8399
8400 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8401 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8402 * command.h (cmd_show_list): Likewise.
8403 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8404 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8405
89bcba74
PW
84062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8407
8408 * unittests/command-def-selftests.c (traverse_command_structure):
8409 Verify all commands of a list have the same prefix command and
8410 that only the top cmdlist commands have a null prefix.
8411
3f4d92eb
PW
84122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8413
8414 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8415 as prefix, not one of its aliases.
8416 (set_cmd_prefix): Remove.
8417 (do_add_cmd): Centralize the setting of the prefix of a command, when
8418 command is defined after its full chain of prefix commands.
8419 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8420 (add_setshow_cmd_full): Likewise.
8421 (update_prefix_field_of_prefixed_commands): New function.
8422 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8423 update_prefix_field_of_prefixed_commands.
8424 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8425 addresses of remote_set_cmdlist and remote_show_cmdlist given
8426 as argument, not the address of an argument.
8427 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8428 * gdb/remote.c (_initialize_remote): Likewise.
8429
0605465f
PW
84302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8431
8432 * cli/cli-cmds.c (alias_command): Check for an existing alias
8433 using lookup_cmd_composition, as valid_command_p is too strict
8434 and forbids aliases that are the prefix of an existing alias
8435 or command.
8436 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8437 command is properly recognised as a valid command.
8438
58e6ac70
PW
84392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8440
8441 * unittests/help-doc-selftests.c: Rename to
8442 unittests/command-def-selftests.c
8443 * unittests/command-def-selftests.c (help_doc_tests): Update some
8444 comments.
8445 (command_structure_tests, traverse_command_structure): New namespace
8446 and function.
8447 (command_structure_invariants_tests): New function.
8448 (_initialize_command_def_selftests) Renamed from
8449 _initialize_help_doc_selftests, register command_structure_invariants
8450 selftest.
8451
a7b9ceb8
PW
84522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8453
8454 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8455 an alias of 'show'.
8456
b2188a06
JB
84572020-05-15 Joel Brobecker <brobecker@adacore.com>
8458
8459 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8460 ada_is_fixed_point_type. Update all callers.
8461 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8462 all callers.
8463 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8464 Update all callers.
8465 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8466 print_fixed_point_type. Update all callers.
8467 * ada-valprint.c (ada_value_print_num): Replace call to
8468 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8469
a51951c2
KB
84702020-05-14 Kevin Buettner <kevinb@redhat.com>
8471
8472 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8473 processors.
8474 (cpu_supports_bts): Add CV_AMD case.
8475
29d6859f
LM
84762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8477 Simon Marchi <simon.marchi@efficios.com>
8478
8479 * infrun.c (stop_all_threads): Collect multiple wait events at
8480 each pass.
8481
78134374
SM
84822020-05-14 Simon Marchi <simon.marchi@efficios.com>
8483
8484 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8485 type::code instead.
8486
67607e24
SM
84872020-05-14 Simon Marchi <simon.marchi@efficios.com>
8488
8489 * gdbtypes.h (struct type) <code, set_code>: New methods.
8490 (TYPE_CODE): Use type::code. Change all call sites used to set
8491 the code to use type::set_code instead.
8492
a05575d3
TBA
84932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8494 Tom de Vries <tdevries@suse.de>
8495 Pedro Alves <palves@redhat.com>
8496
8497 PR threads/25478
8498 * infrun.c (stop_all_threads): Do NOT ignore
8499 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8500 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8501 received.
8502 (handle_no_resumed): Remove code handling a live inferior with no
8503 threads.
8504 * remote.c (has_single_non_exited_thread): New.
8505 (remote_target::update_thread_list): Do not delete a thread if is
8506 the last thread of the process.
8507 * thread.c (thread_select): Call delete_exited_threads instead of
8508 prune_threads.
8509
6ad82919
TBA
85102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8511
8512 * infrun.c (stop_all_threads): Enable/disable thread events of all
8513 targets. Move a debug message denoting the end of the function
8514 into the SCOPED_EXIT block.
8515
d890404b
TBA
85162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8517
8518 * process-stratum-target.h: Include <set>.
8519 (all_non_exited_process_targets, switch_to_target_no_thread): New
8520 function declarations.
8521 * process-stratum-target.c (all_non_exited_process_targets)
8522 (switch_to_target_no_thread): New function implementations.
8523
293b3ebc
TBA
85242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8525
8526 * infrun.c (handle_inferior_event): Extract out a piece of code
8527 into...
8528 (mark_non_executing_threads): ...this new function.
8529
7ca9b62a
TBA
85302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8531
8532 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8533 use.
8534
fc75c28b
TBA
85352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8536
8537 * regcache.c (regcache_read_pc_protected): New function
8538 implementation that returns 0 if the PC cannot read via
8539 'regcache_read_pc'.
8540 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8541 instead of 'regcache_read_pc'.
8542 (keep_going_pass_signal): Ditto.
8543
a89febbd
TT
85442020-05-13 Tom Tromey <tromey@adacore.com>
8545
8546 * ada-lang.c (align_value): Remove.
8547 (ada_template_to_fixed_record_type_1): Use align_up.
8548
f7e23710
TBA
85492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8550
8551 * async-event.c: Update the copyright year.
8552 * async-event.h: Update the copyright year.
8553
02ff80c2
SM
85542020-05-12 Simon Marchi <simon.marchi@efficios.com>
8555
8556 * objfiles.h (is_addr_in_objfile,
8557 shared_objfile_contains_address_p): Return bool.
8558 * objfile.c (is_addr_in_objfile,
8559 shared_objfile_contains_address_p): Return bool.
8560
4fd6c7e8
TT
85612020-05-11 Tom Tromey <tromey@adacore.com>
8562
8563 * cli/cli-cmds.c (info_command): Restore.
8564 (_initialize_cli_cmds): Use add_prefix_command for "info".
8565 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8566
5eb68a39
TT
85672020-05-11 Tom Tromey <tromey@adacore.com>
8568
8569 * ada-lang.c (ada_value_primitive_field): Now public.
8570 * ada-lang.h (ada_value_primitive_field): Declare.
8571 * ada-valprint.c (print_field_values): Use
8572 ada_value_primitive_field for wrapper fields.
8573
7666722f
TV
85742020-05-11 Tom de Vries <tdevries@suse.de>
8575
8576 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8577 MODULE_DOMAIN.
8578
3ee6bb11
TV
85792020-05-11 Tom de Vries <tdevries@suse.de>
8580
8581 PR symtab/25941
8582 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8583 with length 0, if not gdb-produced.
8584 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8585
43434996
TV
85862020-05-09 Tom de Vries <tdevries@suse.de>
8587
8588 PR gdb/25955
8589 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8590 calculation.
8591
2f78cffc
TT
85922020-05-09 Tom Tromey <tom@tromey.com>
8593
8594 * top.c (server_command): Now bool.
8595 * top.h (server_command): Now bool.
8596
4f7bc5ed
TT
85972020-05-08 Tom Tromey <tromey@adacore.com>
8598
8599 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8600 already being processed.
8601
8be4b118
TT
86022020-05-08 Tom Tromey <tom@tromey.com>
8603
8604 * printcmd.c (struct display) <next>: Remove.
8605 <display>: New constructor.
8606 <exp_string>: Now a std::string.
8607 <enabled_p>: Now a bool.
8608 (display_number): Move definition earlier.
8609 (displays): Rename from display_chain. Now a std::vector.
8610 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8611 (display_command): Update.
8612 (do_one_display, disable_display)
8613 (enable_disable_display_command, do_enable_disable_display):
8614 Update.
8615 (free_display): Remove.
8616 (clear_displays): Rewrite.
8617 (delete_display): Update.
8618 (map_display_numbers): Use function_view. Remove "data"
8619 parameter. Update.
8620 (do_delete_display): Remove.
8621 (undisplay_command): Update.
8622 (do_one_display, do_displays, disable_display)
8623 (info_display_command): Update.
8624 (do_enable_disable_display): Remove.
8625 (enable_disable_display_command)
8626 (clear_dangling_display_expressions): Update.
8627
94c93c35
TT
86282020-05-08 Tom Tromey <tom@tromey.com>
8629
8630 * symtab.c (set_symbol_cache_size)
8631 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8632 (maintenance_print_symbol_cache_statistics): Update.
8633 * symmisc.c (print_symbol_bcache_statistics)
8634 (print_objfile_statistics, maintenance_print_objfiles)
8635 (maintenance_info_symtabs, maintenance_check_symtabs)
8636 (maintenance_expand_symtabs, maintenance_info_line_tables):
8637 Update.
8638 * symfile-debug.c (set_debug_symfile): Update.
8639 * source.c (forget_cached_source_info): Update.
8640 * python/python.c (gdbpy_progspaces): Update.
8641 * psymtab.c (maintenance_info_psymtabs): Update.
8642 * probe.c (parse_probes): Update.
8643 * linespec.c (iterate_over_all_matching_symtabs)
8644 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8645 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8646 * exec.c (exec_target::close): Update.
8647 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8648 * breakpoint.c (print_one_breakpoint_location)
8649 (create_longjmp_master_breakpoint)
8650 (create_std_terminate_master_breakpoint): Update.
8651 * progspace.c (program_spaces): Now a std::vector.
8652 (maybe_new_address_space): Update.
8653 (add_program_space): Remove.
8654 (program_space::program_space): Update.
8655 (remove_program_space): Update.
8656 (number_of_program_spaces): Remove.
8657 (print_program_space, update_address_spaces): Update.
8658 * progspace.h (program_spaces): Change type.
8659 (ALL_PSPACES): Remove.
8660 (number_of_program_spaces): Don't declare.
8661 (struct program_space) <next>: Remove.
8662
a1fd1ac9
TT
86632020-05-08 Tom Tromey <tom@tromey.com>
8664
8665 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8666 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8667 (enable_break): Update.
8668 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8669 (frv_fdpic_find_canonical_descriptor): Update.
8670 (frv_fetch_objfile_link_map): Update.
8671 * progspace.c (program_space::free_all_objfiles): Update.
8672 (program_space::solibs): New method.
8673 * progspace.h (struct program_space) <solibs>: New method.
8674 * solist.h (master_so_list): Don't declare.
8675 (ALL_SO_LIBS): Remove.
8676 * solib.h (so_list_head): Remove.
8677 (update_solib_list): Update comment.
8678 * solib.c (master_so_list): Remove.
8679 (solib_used, update_solib_list, solib_add)
8680 (info_sharedlibrary_command, clear_solib)
8681 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8682
38eae084
TT
86832020-05-08 Tom Tromey <tom@tromey.com>
8684
8685 * extension.c (extension_languages): Now a std::array.
8686 (ALL_EXTENSION_LANGUAGES): Remove.
8687 (get_ext_lang_defn, get_ext_lang_of_file)
8688 (eval_ext_lang_from_control_command): Update.
8689 (finish_ext_lang_initialization)
8690 (auto_load_ext_lang_scripts_for_objfile)
8691 (ext_lang_type_printers::ext_lang_type_printers)
8692 (apply_ext_lang_type_printers)
8693 (ext_lang_type_printers::~ext_lang_type_printers)
8694 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8695 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8696 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8697 (get_matching_xmethod_workers, ext_lang_colorize)
8698 (ext_lang_before_prompt): Update.
8699 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8700
596dc4ad
TT
87012020-05-08 Tom Tromey <tom@tromey.com>
8702
8703 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8704 overload.
8705 <swap_string, m_string>: Remove.
8706 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8707 Update.
8708 * stabsread.c (define_symbol, read_type): Update.
8709 * linespec.c (find_linespec_symbols): Update.
8710 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8711 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8712 * dbxread.c (read_dbx_symtab): Update.
8713 * cp-support.h (cp_canonicalize_string_full)
8714 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8715 Return unique_xmalloc_ptr.
8716 * cp-support.c (inspect_type): Update.
8717 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8718 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8719 Likewise.
8720 * c-typeprint.c (print_name_maybe_canonical): Update.
8721 * break-catch-throw.c (check_status_exception_catchpoint):
8722 Update.
8723
bf4cb9be
TV
87242020-05-08 Tom de Vries <tdevries@suse.de>
8725
8726 * infrun.c (follow_fork): Copy current_line and current_symtab to
8727 child thread.
8728
a1b68f28
SM
87292020-05-07 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * async-event.c (struct async_signal_handler, struct
8732 async_event_handler): Reformat, remove typedef.
8733
98d48915
SM
87342020-05-07 Simon Marchi <simon.marchi@efficios.com>
8735
8736 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8737 access thistype->main_type->dyn_prop_list directly.
8738
7aa91313
SM
87392020-05-07 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8742 (remove_dyn_prop): Remove. Update all users to use
8743 type::remove_dyn_prop.
8744 * gdbtypes.c (remove_dyn_prop): Rename to...
8745 (type::remove_dyn_prop): ... this.
8746
5c54719c
SM
87472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8748
8749 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8750 (add_dyn_prop): Remove. Update all users to use
8751 type::add_dyn_prop.
8752 * gdbtypes.c (add_dyn_prop): Rename to...
8753 (type::add_dyn_prop): ... this.
8754
24e99c6c
SM
87552020-05-07 Simon Marchi <simon.marchi@efficios.com>
8756
8757 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8758 (get_dyn_prop): Remove. Update all users to use
8759 type::dyn_prop.
8760 * gdbtypes.c (get_dyn_prop): Rename to...
8761 (type::dyn_prop): ... this.
8762
0d4bf016
SM
87632020-05-06 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8766
ac4a4f1c
SM
87672020-05-06 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8770 instruction, skip it if it's there.
8771
a3bbacc1
SM
87722020-05-05 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8775
c3236f84
SM
87762020-05-04 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8779 * gdbtypes.c (recursive_dump_type): Remove use of
8780 TYPE_INCOMPLETE.
8781
3b6acaee
TT
87822020-05-03 Tom Tromey <tom@tromey.com>
8783
8784 * breakpoint.c (catch_command, tcatch_command): Remove.
8785 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8786 add_show_prefix_cmd.
8787 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8788 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8789 Remove.
8790 (add_internal_problem_command): Use add_basic_prefix_cmd,
8791 add_show_prefix_cmd.
8792 * mips-tdep.c (set_mipsfpu_command): Remove.
8793 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8794 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8795 (_initialize_index_cache): Use add_basic_prefix_cmd.
8796 * memattr.c (dummy_cmd): Remove.
8797 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8798 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8799 (_initialize_tui_win): Use add_basic_prefix_cmd,
8800 add_show_prefix_cmd.
8801 * cli/cli-logging.c (set_logging_command): Remove.
8802 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8803 add_show_prefix_cmd.
8804 (show_logging_command): Remove.
8805 * target.c (target_command): Remove.
8806 (add_target): Use add_basic_prefix_cmd.
8807
a51119cd
HD
88082020-05-02 Hannes Domani <ssbssa@yahoo.de>
8809
8810 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8811
652fc23a 88122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8813
652fc23a
PW
8814 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8815 info_command.
8816
117539e6
KR
88172020-04-30 Kamil Rytarowski <n54@gmx.com>
8818
8819 * nbsd-nat.c (nbsd_enable_proc_events)
8820 (nbsd_nat_target::post_startup_inferior): Add.
8821 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8822 (nbsd_nat_target::update_thread_list): Rewrite.
8823 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8824 "PTRACE_LWP_CREATE".
8825 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8826
102e38eb 88272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8828
102e38eb
PW
8829 * stack.c (_initialize_stack): Remove duplicated creation
8830 of "frame" command and "f" alias.
8831
ee9d1e5f
HD
88322020-04-30 Hannes Domani <ssbssa@yahoo.de>
8833
8834 PR gdb/18706
8835 * gdbtypes.c (check_typedef): Calculate size of array of
8836 stubbed type.
8837
627c7fb8
HD
88382020-04-30 Hannes Domani <ssbssa@yahoo.de>
8839
8840 PR gdb/15559
8841 * i386-tdep.c (i386_push_dummy_call): Call
8842 i386_thiscall_push_dummy_call.
8843 (i386_thiscall_push_dummy_call): New function.
8844 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8845 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8846 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8847
ffc2844e
SM
88482020-04-29 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * gdbarch.sh (do_read): Add shellcheck disable directive for
8851 warning SC2162.
8852
1207375d
SM
88532020-04-29 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8856 "referenced but not assigned" warning.
8857
9fdb2916
SM
88582020-04-29 Simon Marchi <simon.marchi@efficios.com>
8859
8860 * gdbarch.sh: Remove code that sets fallbackdefault.
8861
759cea5e
SM
88622020-04-29 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * gdbarch.sh: Use shell operators && and || instead of
8865 -a and -o.
8866
cb02ab24
SM
88672020-04-29 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * gdbarch.sh: Use $(...) instead of `...`.
8870
a6fc5ffc
SM
88712020-04-29 Simon Marchi <simon.marchi@efficios.com>
8872
8873 * gdbarch.sh: Use double quotes around variables.
8874
8d113d13
SM
88752020-04-29 Simon Marchi <simon.marchi@efficios.com>
8876
8877 * gdbarch.sh: Use %s with printf, instead of variables in the
8878 format string.
8879
ed6acedd
TT
88802020-04-29 Tom Tromey <tromey@adacore.com>
8881
8882 PR ada/25875:
8883 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8884 type fields here.
8885 (read_enumeration_type): Call
8886 update_enumeration_type_from_children later. Update comments.
8887 (process_enumeration_scope): Don't create type fields.
8888
b68b1b58
KR
88892020-04-29 Kamil Rytarowski <n54@gmx.com>
8890
8891 * nbsd-tdep.c: Include "xml-syscall.h".
8892 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8893
f94b2e03
KR
88942020-04-29 Kamil Rytarowski <n54@gmx.com>
8895
8896 * nbsd-nat.c: Include "sys/wait.h".
8897 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8898 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8899 (nbsd_nat_target::remove_exec_catchpoint)
8900 (nbsd_nat_target::set_syscall_catchpoint): Add.
8901 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8902 (nbsd_nat_target::insert_exec_catchpoint)
8903 (nbsd_nat_target::remove_exec_catchpoint)
8904 (nbsd_nat_target::set_syscall_catchpoint): Add.
8905 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8906 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8907 `nbsd_get_syscall_number'.
8908
fc49bc72
TT
89092020-04-29 Tom Tromey <tom@tromey.com>
8910
8911 * stack.c (print_block_frame_labels): Remove.
8912
d642b692
HD
89132020-04-29 Hannes Domani <ssbssa@yahoo.de>
8914
8915 PR gdb/17320
8916 * ada-valprint.c (val_print_packed_array_elements): Move array
8917 end bracket to new line.
8918 (ada_val_print_string): Remove extra spaces before first array
8919 element.
8920 * c-valprint.c (c_value_print_array): Likewise.
8921 * m2-valprint.c (m2_print_array_contents): Likewise.
8922 (m2_value_print_inner): Likewise.
8923 * p-valprint.c (pascal_value_print_inner): Likewise.
8924 * valprint.c (generic_val_print_array): Likewise.
8925 (value_print_array_elements): Move first array element and array
8926 end bracket to new line.
8927
ea90f227
TV
89282020-04-29 Tom de Vries <tdevries@suse.de>
8929
8930 PR symtab/25889
8931 * linespec.c (find_method): Fix ix calculation.
8932
4498ef4f
KR
89332020-04-28 Kamil Rytarowski <n54@gmx.com>
8934
8935 * syscalls/update-netbsd.sh: New file.
8936 * syscalls/netbsd.xml: Regenerate.
8937 * data-directory/Makefile.in: Register `netbsd.xml' in
8938 `SYSCALLS_FILES'.
8939
a55e30b5
SM
89402020-04-28 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * syscalls/update-freebsd.sh: Add double quotes.
8943
2b2fbab8
TT
89442020-04-28 Tom Tromey <tom@tromey.com>
8945
8946 * NEWS: Update.
8947 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8948 (cmdpy_init): Allow class_tui.
8949
a65189c9
TV
89502020-04-28 Mark Williams <mark@myosotissp.com>
8951
8952 PR gdb/24480
8953 * dwarf2read.c: Add missing assingments to list_in_scope when
8954 start_symtab was already called.
8955
1b95cdb7
SM
89562020-04-28 Simon Marchi <simon.marchi@efficios.com>
8957
8958 PR gdb/25881
8959 * dwarf2/read.c (offset_map_type): Use
8960 gdb:hash_enum<sect_offset> as hash function.
8961
15cd93d0
TV
89622020-04-28 Tom de Vries <tdevries@suse.de>
8963
8964 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8965 with DW_AT_signature.
8966
1eb39914
SM
89672020-04-27 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * configure.ac: Remove check for fs_base/gs_base in
8970 user_regs_struct.
8971 * configure: Re-generate.
8972 * config.in: Re-generate.
8973 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8974 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8975 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8976
991a3e2e
LM
89772020-04-27 Luis Machado <luis.machado@linaro.org>
8978
8979 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8980 problematic inline frame unwinding situation.
8981 * frame.c (frame_id_computed_p): New function.
8982 * frame.h (frame_id_computed_p): New prototype.
8983
361ba0e8
TT
89842020-04-26 Tom Tromey <tom@tromey.com>
8985
8986 * command.h (enum command_class) <class_pseudo>: Remove.
8987
bc3609fd
PW
89882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8989
8990 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8991 and whitespace.
8992
b9771db7
KR
89932020-04-25 Kamil Rytarowski <n54@gmx.com>
8994
ec16513e
SM
8995 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8996 `PT_GET_PROCESS_STATE' block.
b9771db7 8997
7151c1af
TT
89982020-04-24 Tom Tromey <tom@tromey.com>
8999
9000 * symtab.h (symbol_get_demangled_name): Don't declare.
9001 * symtab.c (symbol_get_demangled_name): Remove.
9002 (general_symbol_info::natural_name)
9003 (general_symbol_info::demangled_name): Update.
9004
906bb4c5
TT
90052020-04-24 Tom Tromey <tom@tromey.com>
9006
9007 PR rust/25025:
9008 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9009
bcfe6157
TT
90102020-04-24 Tom Tromey <tom@tromey.com>
9011
9012 PR symtab/12707:
9013 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9014 exists.
9015 (new_symbol): Likewise.
9016 * compile/compile-object-load.c (get_out_value_type): Use
9017 symbol_matches_search_name.
9018
f049a313
TT
90192020-04-24 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (add_partial_symbol): Do not call
9022 compute_and_set_names.
9023
76e288d1
TT
90242020-04-24 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9027 overload.
9028
2467f4f6
TT
90292020-04-24 Tom Tromey <tom@tromey.com>
9030
9031 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9032 (add_psymbol_to_list): New overload. Make old overload call new
9033 one.
9034 * psympriv.h (add_psymbol_to_list): New overload.
9035
e61108c9
TT
90362020-04-24 Tom Tromey <tom@tromey.com>
9037
9038 * dwarf2/read.c (partial_die_info::read) <case
9039 DW_AT_linkage_name>: Use value_as_string.
9040 (dwarf2_string_attr): Use value_as_string.
9041 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9042 method.
9043 * dwarf2/attribute.c (attribute::value_as_string): New method.
9044
8c87a452
TT
90452020-04-24 Tom Tromey <tom@tromey.com>
9046
9047 * symtab.c (general_symbol_info::natural_name)
9048 (general_symbol_info::demangled_name): Check for language_rust.
9049
787de330
TT
90502020-04-24 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9053 (dwarf2_physname): ... from here.
9054 (partial_die_info::read): Add Rust "{" hack.
9055
ff985671
TT
90562020-04-24 Tom Tromey <tom@tromey.com>
9057
9058 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9059 method.
9060 (symbol_set_demangled_name): Don't declare.
9061 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9062 symbol_set_demangled_name.
9063 (general_symbol_info::set_language)
9064 (general_symbol_info::compute_and_set_names): Update.
9065 * minsyms.c (minimal_symbol_reader::install): Update.
9066 * dwarf2/read.c (new_symbol): Update.
9067
1acda803
TT
90682020-04-24 Tom Tromey <tromey@adacore.com>
9069
9070 PR python/23662:
9071 * python/py-type.c (convert_field): Handle
9072 FIELD_LOC_KIND_DWARF_BLOCK.
9073 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9074 (typy_get_dynamic): Nw function.
9075 (type_object_getset): Add "dynamic".
9076 * NEWS: Add entry.
9077
d656f129
TT
90782020-04-24 Tom Tromey <tromey@adacore.com>
9079
9080 * ada-typeprint.c (print_choices, print_variant_part)
9081 (print_record_field_types_dynamic): New functions.
9082 (print_record_field_types): Use print_record_field_types_dynamic.
9083
7d79de9a
TT
90842020-04-24 Tom Tromey <tromey@adacore.com>
9085
9086 * dwarf2/read.c (handle_data_member_location): New overload.
9087 (dwarf2_add_field): Use it.
9088 (decode_locdesc): Add "computed" parameter. Update comment.
9089 * gdbtypes.c (is_dynamic_type_internal): Also look for
9090 FIELD_LOC_KIND_DWARF_BLOCK.
9091 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9092 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9093 virtual base classes.
9094 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9095 FIELD_LOC_KIND_DWARF_BLOCK.
9096
f8e89861
TT
90972020-04-24 Tom Tromey <tromey@adacore.com>
9098
9099 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9100 * gdbtypes.c (is_dynamic_type_internal): Check
9101 TYPE_HAS_DYNAMIC_LENGTH.
9102 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9103 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9104 New macros.
9105 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9106 constant.
9107
9c6a1327
TT
91082020-04-24 Tom Tromey <tromey@adacore.com>
9109
9110 * dwarf2/read.c (struct variant_field): Rewrite.
9111 (struct variant_part_builder): New.
9112 (struct nextfield): Remove "variant" field. Add "offset".
9113 (struct field_info): Add "current_variant_part" and
9114 "variant_parts".
9115 (alloc_discriminant_info): Remove.
9116 (alloc_rust_variant): New function.
9117 (quirk_rust_enum): Update.
9118 (dwarf2_add_field): Set "offset" member. Don't handle
9119 DW_TAG_variant_part.
9120 (offset_map_type): New typedef.
9121 (convert_variant_range, create_one_variant)
9122 (create_one_variant_part, create_variant_parts)
9123 (add_variant_property): New functions.
9124 (dwarf2_attach_fields_to_type): Call add_variant_property.
9125 (read_structure_type): Don't handle DW_TAG_variant_part.
9126 (handle_variant_part, handle_variant): New functions.
9127 (handle_struct_member_die): Use them.
9128 (process_structure_scope): Don't handle variant parts.
9129 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9130 (struct discriminant_info): Remove.
9131 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9132 (struct main_type) <flag_discriminated_union>: Remove.
9133 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9134 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9135 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9136 Update.
9137 * valops.c (value_union_variant): Remove.
9138 * value.h (value_union_variant): Don't declare.
9139
b249d2c2
TT
91402020-04-24 Tom Tromey <tromey@adacore.com>
9141
9142 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9143 (ada_value_primitive_packed_val): Update.
9144 * ada-valprint.c (ada_value_print_1): Update.
9145 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9146 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9147 just an address. Use evaluate_for_locexpr_baton.
9148 (dwarf2_evaluate_property): Update.
9149 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9150 array_view.
9151 * findvar.c (default_read_var_value): Update.
9152 * gdbtypes.c (compute_variant_fields_inner)
9153 (resolve_dynamic_type_internal): Update.
9154 (resolve_dynamic_type): Change type of valaddr parameter.
9155 * gdbtypes.h (resolve_dynamic_type): Update.
9156 * valarith.c (value_subscripted_rvalue): Update.
9157 * value.c (value_from_contents_and_address): Update.
9158
61122aa9
TT
91592020-04-24 Tom Tromey <tromey@adacore.com>
9160
9161 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9162 "push_initial_value" parameter.
9163 (dwarf2_evaluate_property): Likewise.
9164 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9165
ef83a141
TT
91662020-04-24 Tom Tromey <tromey@adacore.com>
9167
9168 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9169 (variant::matches, compute_variant_fields_recurse)
9170 (compute_variant_fields_inner, compute_variant_fields): New
9171 functions.
9172 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9173 Use resolved_type after type is made.
9174 (operator==): Add new cases.
9175 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9176 (struct discriminant_range, struct variant, struct variant_part):
9177 New.
9178 (union dynamic_prop_data) <variant_parts, original_type>: New
9179 members.
9180 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9181 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9182 constants.
9183 * value.c (unpack_bits_as_long): Now public.
9184 * value.h (unpack_bits_as_long): Declare.
9185
675127ec
TT
91862020-04-24 Tom Tromey <tromey@adacore.com>
9187
9188 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9189 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9190
9852ceef
HD
91912020-04-24 Hannes Domani <ssbssa@yahoo.de>
9192
9193 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9194
7632c6ce
KR
91952020-04-24 Kamil Rytarowski <n54@gmx.com>
9196
9197 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9198 (remove_fork_catchpoint, post_startup_inferior)
9199 (post_attach): Move...
9200 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9201 (remove_fork_catchpoint, post_startup_inferior)
9202 (post_attach): ...here.
9203 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9204 (remove_fork_catchpoint, post_startup_inferior)
9205 (post_attach): Move...
9206 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9207 (remove_fork_catchpoint, post_startup_inferior)
9208 (post_attach): ...here.
9209
7be2bb4f
TT
92102020-04-24 Tom Tromey <tromey@adacore.com>
9211
9212 * nat/windows-nat.h (struct windows_thread_info)
9213 <pc_adjusted>: New member.
9214 * windows-nat.c (windows_fetch_one_register): Check
9215 pc_adjusted.
9216 (windows_nat_target::get_windows_debug_event)
9217 (windows_nat_target::wait): Set pc_adjusted.
9218
f80cb3b4
TV
92192020-04-24 Tom de Vries <tdevries@suse.de>
9220
9221 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9222 Run gdb-add-index inside temp dir.
9223
29514b87
TT
92242020-04-23 Tom Tromey <tromey@adacore.com>
9225
9226 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9227 in loop.
9228
5939967b
LM
92292020-04-23 Luis Machado <luis.machado@linaro.org>
9230
9231 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9232 get_frame_register instead of gdbarch_unwind_pc.
9233
70bc38f5
TV
92342020-04-23 Tom de Vries <tdevries@suse.de>
9235
9236 * symtab.c (lookup_global_symbol): Prefer def over decl.
9237
de82891c
TV
92382020-04-23 Tom de Vries <tdevries@suse.de>
9239
9240 PR symtab/25807
9241 * block.c (best_symbol, better_symbol): Promote to external.
9242 * block.h (best_symbol, better_symbol): Declare.
9243 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9244 decl.
9245
ecc6c606
TT
92462020-04-23 Tom Tromey <tromey@adacore.com>
9247
9248 PR ada/25837:
9249 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9250 "const char *", not a "const std::string &".
9251 <name_and_matcher::operator==>: Update.
9252 * unittests/lookup_name_info-selftests.c: Change type of
9253 "result".
9254
740480b8
TT
92552020-04-23 Tom Tromey <tom@tromey.com>
9256
9257 * inferior.h (iterate_over_inferiors): Don't declare.
9258 * inferior.c (iterate_over_inferiors): Remove.
9259 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9260 Remove.
9261 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9262 use iterate_over_inferiors.
9263 (darwin_resume_inferior_it)
9264 (struct resume_inferior_threads_param)
9265 (darwin_resume_inferior_threads_it): Remove.
9266 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9267
ae3ab1f0
TV
92682020-04-23 Tom de Vries <tdevries@suse.de>
9269
9270 * blockframe.c (find_pc_partial_function): Use
9271 find_pc_sect_compunit_symtab rather than
9272 objfile->sf->qf->find_pc_sect_compunit_symtab.
9273
317d2668
TV
92742020-04-22 Tom de Vries <tdevries@suse.de>
9275
9276 PR symtab/25764
9277 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9278 in psymtabs.
9279
eea9e357
TV
92802020-04-22 Tom de Vries <tdevries@suse.de>
9281
9282 PR symtab/25801
9283 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9284 symtabs.
9285
3d5afab3
TV
92862020-04-22 Tom de Vries <tdevries@suse.de>
9287
9288 PR symtab/25700
9289 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9290 CU if already created.
9291
d43b7a2d
TBA
92922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9293
9294 * infrun.c (displaced_step_fixup): Switch to the event_thread
9295 before calling displaced_step_restore, not after.
9296
d89edf9b
MM
92972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9298
9299 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9300 its inferior is not recorded by us.
9301 (record_btrace_target_open): Replace call to
9302 all_non_exited_threads () with call to current_inferior
9303 ()->non_exited_threads ().
9304 (record_btrace_target::stop_recording): Likewise.
9305 (record_btrace_target::close): Likewise.
9306 (record_btrace_target::wait): Likewise.
9307 (record_btrace_target::record_stop_replaying): Likewise.
9308
5897fd49
MM
93092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9310
9311 * btrace.c (btrace_enable): Throw an error on double enables and
9312 when enabling recording fails.
9313 (btrace_disable): Throw an error if the thread is not recorded.
9314
1a476b6d
MM
93152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9316
9317 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9318 request if we do not have a thread_info.
9319
4778a5f8
TV
93202020-04-21 Tom de Vries <tdevries@suse.de>
9321
9322 PR gdb/25471
9323 * thread.c
9324 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9325 exception in get_frame_id.
9326
0fa7617d
TT
93272020-04-20 Tom Tromey <tromey@adacore.com>
9328
9329 * python/python.c (struct gdbpy_event): Mark move constructor as
9330 noexcept.
9331 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9332 constructor as noexcept.
9333 * completer.h (struct completion_result): Mark move constructor as
9334 noexcept.
9335 * completer.c (completion_result::completion_result): Use
9336 initialization style. Don't call reset_match_list.
9337
ad23bda0
MS
93382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9339
9340 * MAINTAINERS (Write After Approval): Add myself.
9341
45e1f031
TT
93422020-04-18 Tom Tromey <tom@tromey.com>
9343
9344 * windows-tdep.c (init_w32_command_list)
9345 (w32_prefix_command_valid): Restore.
9346 (_initialize_windows_tdep): Call init_w32_command_list.
9347
08feed99
TT
93482020-04-18 Tom Tromey <tom@tromey.com>
9349
9350 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9351 * value.c (value_fn_field): Update.
9352 * valops.c (find_function_in_inferior)
9353 (value_allocate_space_in_inferior): Update.
9354 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9355 Update.
9356 * tui/tui-source.c (tui_source_window::set_contents): Update.
9357 * symtab.c (lookup_global_or_static_symbol)
9358 (find_function_start_sal_1, skip_prologue_sal)
9359 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9360 * symmisc.c (dump_msymbols, dump_symtab_1)
9361 (maintenance_print_one_line_table): Update.
9362 * symfile.c (init_entry_point_info, section_is_mapped)
9363 (list_overlays_command, simple_read_overlay_table)
9364 (simple_overlay_update_1): Update.
9365 * stap-probe.c (handle_stap_probe): Update.
9366 * stabsread.c (dbx_init_float_type, define_symbol)
9367 (read_one_struct_field, read_enum_type, read_range_type): Update.
9368 * source.c (info_line_command): Update.
9369 * python/python.c (gdbpy_source_objfile_script)
9370 (gdbpy_execute_objfile_script): Update.
9371 * python/py-type.c (save_objfile_types): Update.
9372 * python/py-objfile.c (py_free_objfile): Update.
9373 * python/py-inferior.c (python_new_objfile): Update.
9374 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9375 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9376 (maintenance_check_psymtabs): Update.
9377 * printcmd.c (info_address_command): Update.
9378 * objfiles.h (struct objfile) <arch>: New method, from
9379 get_objfile_arch.
9380 (get_objfile_arch): Don't declare.
9381 * objfiles.c (get_objfile_arch): Remove.
9382 (filter_overlapping_sections): Update.
9383 * minsyms.c (msymbol_is_function): Update.
9384 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9385 (output_nondebug_symbol): Update.
9386 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9387 (mdebug_expand_psymtab): Update.
9388 * machoread.c (macho_add_oso_symfile): Update.
9389 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9390 Update.
9391 * linux-fork.c (checkpoint_command): Update.
9392 * linespec.c (convert_linespec_to_sals): Update.
9393 * jit.c (finalize_symtab): Update.
9394 * infrun.c (insert_exception_resume_from_probe): Update.
9395 * ia64-tdep.c (ia64_find_unwind_table): Update.
9396 * hppa-tdep.c (internalize_unwinds): Update.
9397 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9398 Update.
9399 * gcore.c (call_target_sbrk): Update.
9400 * elfread.c (record_minimal_symbol, elf_symtab_read)
9401 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9402 (elf_gnu_ifunc_resolve_by_got): Update.
9403 * dwarf2/read.c (create_addrmap_from_index)
9404 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9405 (read_debug_names_from_section)
9406 (process_psymtab_comp_unit_reader, add_partial_symbol)
9407 (add_partial_subprogram, process_full_comp_unit)
9408 (read_file_scope, read_func_scope, read_lexical_block_scope)
9409 (read_call_site_scope, dwarf2_ranges_read)
9410 (dwarf2_record_block_ranges, dwarf2_add_field)
9411 (mark_common_block_symbol_computed, read_tag_pointer_type)
9412 (read_tag_string_type, dwarf2_init_float_type)
9413 (dwarf2_init_complex_target_type, read_base_type)
9414 (partial_die_info::read, partial_die_info::read)
9415 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9416 (dwarf2_fetch_die_loc_sect_off): Update.
9417 * dwarf2/loc.c (dwarf2_find_location_expression)
9418 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9419 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9420 (dwarf2_loc_desc_get_symbol_read_needs)
9421 (locexpr_describe_location_piece, locexpr_describe_location_1)
9422 (loclist_describe_location): Update.
9423 * dwarf2/index-write.c (write_debug_names): Update.
9424 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9425 * dtrace-probe.c (dtrace_process_dof): Update.
9426 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9427 (process_one_symbol): Update.
9428 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9429 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9430 (coff_read_enum_type): Update.
9431 * cli/cli-cmds.c (edit_command, list_command): Update.
9432 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9433 * breakpoint.c (create_overlay_event_breakpoint)
9434 (create_longjmp_master_breakpoint)
9435 (create_std_terminate_master_breakpoint)
9436 (create_exception_master_breakpoint, get_sal_arch): Update.
9437 * block.c (block_gdbarch): Update.
9438 * annotate.c (annotate_source_line): Update.
9439
0743fc83
TT
94402020-04-17 Tom Tromey <tromey@adacore.com>
9441
9442 * auto-load.c (show_auto_load_cmd): Remove.
9443 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9444 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9445 (maintenance_print_arc_command): Remove.
9446 * tui/tui-win.c (tui_command): Remove.
9447 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9448 * tui/tui-layout.c (tui_layout_command): Remove.
9449 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9450 * python/python.c (user_set_python, user_show_python): Remove.
9451 (_initialize_python): Use add_basic_prefix_cmd,
9452 add_show_prefix_cmd.
9453 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9454 (install_gdb_commands): Use add_basic_prefix_cmd,
9455 add_show_prefix_cmd.
9456 (info_guile_command): Remove.
9457 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9458 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9459 add_show_prefix_cmd.
9460 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9461 Remove do_set and do_show parameters.
9462 * cli/cli-style.c (set_style, show_style): Remove.
9463 (_initialize_cli_style): Use add_basic_prefix_cmd,
9464 add_show_prefix_cmd.
9465 (cli_style_option::add_setshow_commands): Remove do_set and
9466 do_show parameters.
9467 (cli_style_option::add_setshow_commands): Use
9468 add_basic_prefix_cmd, add_show_prefix_cmd.
9469 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9470 (set_style_name): Remove.
9471 * cli/cli-dump.c (dump_command, append_command): Remove.
9472 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9473 (tekhex_dump_command, binary_dump_command)
9474 (binary_append_command): Remove.
9475 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9476 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9477 (init_w32_command_list): Remove; move into ...
9478 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9479 * valprint.c (set_print, show_print, set_print_raw)
9480 (show_print_raw): Remove.
9481 (_initialize_valprint): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 * typeprint.c (set_print_type, show_print_type): Remove.
9484 (_initialize_typeprint): Use add_basic_prefix_cmd,
9485 add_show_prefix_cmd.
9486 * record.c (set_record_command, show_record_command): Remove.
9487 (_initialize_record): Use add_basic_prefix_cmd,
9488 add_show_prefix_cmd.
9489 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9490 add_show_prefix_cmd.
9491 (info_command, show_command, set_debug, show_debug): Remove.
9492 * top.h (set_history, show_history): Don't declare.
9493 * top.c (set_history, show_history): Remove.
9494 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9495 (unset_tdesc_cmd): Remove.
9496 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9497 add_show_prefix_cmd.
9498 * symtab.c (info_module_command): Remove.
9499 (_initialize_symtab): Use add_basic_prefix_cmd.
9500 * symfile.c (overlay_command): Remove.
9501 (_initialize_symfile): Use add_basic_prefix_cmd.
9502 * sparc64-tdep.c (info_adi_command): Remove.
9503 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9504 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9505 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9506 add_show_prefix_cmd.
9507 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9508 (_initialize_serial): Use add_basic_prefix_cmd,
9509 add_show_prefix_cmd.
9510 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9511 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9512 add_show_prefix_cmd.
9513 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9514 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9515 add_show_prefix_cmd.
9516 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9517 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9518 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9519 add_show_prefix_cmd.
9520 * remote.c (remote_command, set_remote_cmd): Remove.
9521 (_initialize_remote): Use add_basic_prefix_cmd.
9522 * record-full.c (set_record_full_command)
9523 (show_record_full_command): Remove.
9524 (_initialize_record_full): Use add_basic_prefix_cmd,
9525 add_show_prefix_cmd.
9526 * record-btrace.c (cmd_set_record_btrace)
9527 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9528 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9529 (cmd_show_record_btrace_pt): Remove.
9530 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9531 add_show_prefix_cmd.
9532 * ravenscar-thread.c (set_ravenscar_command)
9533 (show_ravenscar_command): Remove.
9534 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9535 add_show_prefix_cmd.
9536 * mips-tdep.c (show_mips_command, set_mips_command)
9537 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9538 add_show_prefix_cmd.
9539 * maint.c (maintenance_command, maintenance_info_command)
9540 (maintenance_check_command, maintenance_print_command)
9541 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9542 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9543 add_show_prefix_cmd.
9544 (show_per_command_cmd): Remove.
9545 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9546 Remove.
9547 (maintenance_show_test_settings_cmd): Remove.
9548 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9549 add_show_prefix_cmd.
9550 * maint-test-options.c (maintenance_test_options_command):
9551 Remove.
9552 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9553 * macrocmd.c (macro_command): Remove
9554 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9555 * language.c (set_check, show_check): Remove.
9556 (_initialize_language): Use add_basic_prefix_cmd,
9557 add_show_prefix_cmd.
9558 * infcmd.c (unset_command): Remove.
9559 (_initialize_infcmd): Use add_basic_prefix_cmd.
9560 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9561 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9562 add_show_prefix_cmd.
9563 * go32-nat.c (go32_info_dos_command): Remove.
9564 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9565 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9566 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9567 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9568 (_initialize_frame): Use add_basic_prefix_cmd,
9569 add_show_prefix_cmd.
9570 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9571 (_initialize_dcache): Use add_basic_prefix_cmd,
9572 add_show_prefix_cmd.
9573 * cp-support.c (maint_cplus_command): Remove.
9574 (_initialize_cp_support): Use add_basic_prefix_cmd.
9575 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9576 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9577 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9578 add_basic_prefix_cmd, add_show_prefix_cmd.
9579 * breakpoint.c (save_command): Remove.
9580 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9581 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9582 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9583 add_show_prefix_cmd.
9584 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9585 (set_ada_command, show_ada_command): Remove.
9586 (_initialize_ada_language): Use add_basic_prefix_cmd,
9587 add_show_prefix_cmd.
9588 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9589
3557f442
KR
95902020-04-16 Kamil Rytarowski <n54@gmx.com>
9591
9592 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9593 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9594
16197208
SM
95952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9598 warning messages.
9599
00ac85d3
SM
96002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9601
9602 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9603 import table is not at beginning of .idata section.
9604
381ce63f
PA
96052020-04-16 Pedro Alves <palves@redhat.com>
9606
9607 * inferior.c (delete_inferior): Use delete operator directly
9608 instead of delete_program_space.
9609 * progspace.c (add_program_space): New, factored out from
9610 program_space::program_space.
9611 (remove_program_space): New, factored out from
9612 delete_program_space.
9613 (program_space::program_space): Remove intro comment. Rewrite.
9614 (program_space::~program_space): Remove intro comment. Call
9615 remove_program_space.
9616 (delete_program_space): Delete.
9617 * progspace.h (program_space::program_space): Make explicit. Move
9618 intro comment here, adjusted.
9619 (program_space::~program_space): Move intro comment here,
9620 adjusted.
9621 (delete_program_space): Remove.
9622
a010605f
TT
96232020-04-16 Tom Tromey <tromey@adacore.com>
9624
9625 * windows-nat.c (windows_nat::handle_access_violation): New
9626 function.
9627 * nat/windows-nat.h (handle_access_violation): Declare.
9628 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9629 windows-nat.c. Call handle_access_violation.
9630
efba5c23
TV
96312020-04-16 Tom de Vries <tdevries@suse.de>
9632
9633 PR symtab/25791
9634 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9635 CUs without psymtab.
9636
97ed802d
KB
96372020-04-16 Kevin Buettner <kevinb@redhat.com>
9638
9639 * python/python.c (do_start_initialization): Don't call
9640 PyEval_InitThreads for Python 3.9 and beyond.
9641
c7d64809
KR
96422020-04-15 Kamil Rytarowski <n54@gmx.com>
9643
9644 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9645 thread functions.
9646 (obsd_nat_target::wait): Likewise.
9647
ce127a96
TT
96482020-04-15 Tom Tromey <tromey@adacore.com>
9649
9650 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9651 (DEBUG_EXCEPT): Use debug_printf.
9652
99f1bc6a
AB
96532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9654
9655 * completer.c (class completion_tracker::completion_hash_entry)
9656 <hash_name>: New member function.
9657 (completion_tracker::discard_completions): New callback to hash a
9658 completion_hash_entry, pass this to htab_create_alloc.
9659
a0e9b532
JT
96602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9661
9662 * windows-nat.c (windows_make_so): Warn rather than stopping with
9663 an error if realpath() fails.
9664
06ca5dd4
KR
96652020-04-14 Kamil Rytarowski <n54@gmx.com>
9666
9667 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9668 (nbsd_nat_target::info_proc): Add do_status.
9669
194d088f
TV
96702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9671 Tom de Vries <tdevries@suse.de>
9672
9673 PR symtab/25718
9674 * psympriv.h (struct partial_symtab::read_symtab)
9675 (struct partial_symtab::expand_psymtab)
9676 (struct partial_symtab::read_dependencies): Update comments.
9677 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9678 read_symtab for includer.
9679 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9680 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9681 (struct dwarf2_include_psymtab::m_readin): Remove.
9682 (struct dwarf2_include_psymtab::includer): New member function.
9683 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9684
c1a66c06
TV
96852020-04-14 Tom de Vries <tdevries@suse.de>
9686
9687 PR symtab/25720
9688 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9689 with NULL symbol_matcher and lookup_name.
9690 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9691 and lookup_name.
9692 * dwarf2/read.c (dw2_expand_symtabs_matching)
9693 (dw2_debug_names_expand_symtabs_matching): Same.
9694 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9695 Make lookup_name a pointer. Update comment.
9696 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9697 lookup_name being a pointer.
9698 * symfile.c (expand_symtabs_matching): Same.
9699 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9700 * linespec.c (iterate_over_all_matching_symtabs): Same.
9701
400b5eca
TT
97022020-04-13 Tom Tromey <tom@tromey.com>
9703
9704 * run-on-main-thread.c: Update include.
9705 * unittests/main-thread-selftests.c: Update include.
9706 * tui/tui-win.c: Update include.
9707 * tui/tui-io.c: Update include.
9708 * tui/tui-interp.c: Update include.
9709 * tui/tui-hooks.c: Update include.
9710 * top.h: Update include.
9711 * top.c: Update include.
9712 * ser-base.c: Update include.
9713 * remote.c: Update include.
9714 * remote-notif.c: Update include.
9715 * remote-fileio.c: Update include.
9716 * record-full.c: Update include.
9717 * record-btrace.c: Update include.
9718 * python/python.c: Update include.
9719 * posix-hdep.c: Update include.
9720 * mingw-hdep.c: Update include.
9721 * mi/mi-main.c: Update include.
9722 * mi/mi-interp.c: Update include.
9723 * main.c: Update include.
9724 * linux-nat.c: Update include.
9725 * interps.c: Update include.
9726 * infrun.c: Update include.
9727 * inf-loop.c: Update include.
9728 * event-top.c: Update include.
9729 * event-loop.c: Move to ../gdbsupport/.
9730 * event-loop.h: Move to ../gdbsupport/.
9731 * async-event.h: Update include.
9732 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9733
93b54c8e
TT
97342020-04-13 Tom Tromey <tom@tromey.com>
9735
9736 * tui/tui-win.c: Include async-event.h.
9737 * remote.c: Include async-event.h.
9738 * remote-notif.c: Include async-event.h.
9739 * record-full.c: Include async-event.h.
9740 * record-btrace.c: Include async-event.h.
9741 * infrun.c: Include async-event.h.
9742 * event-top.c: Include async-event.h.
9743 * event-loop.h: Move some declarations to async-event.h.
9744 * event-loop.c: Don't include ser-event.h or top.h. Move some
9745 code to async-event.c.
9746 * async-event.h: New file.
9747 * async-event.c: New file.
9748 * Makefile.in (COMMON_SFILES): Add async-event.c.
9749 (HFILES_NO_SRCDIR): Add async-event.h.
9750
c1cd3163
TT
97512020-04-13 Tom Tromey <tom@tromey.com>
9752
9753 * utils.c (flush_streams): New function.
9754 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9755
29f2bf4f
TT
97562020-04-13 Tom Tromey <tom@tromey.com>
9757
9758 * event-loop.c (handle_file_event): Use warning, not
9759 printf_unfiltered.
9760
98029d02
TT
97612020-04-13 Tom Tromey <tom@tromey.com>
9762
9763 * event-loop.c: Include <chrono>.
9764
06cc9596
TT
97652020-04-13 Tom Tromey <tom@tromey.com>
9766
9767 * gdb_select.h: Move to ../gdbsupport/.
9768 * event-loop.c: Update include path.
9769 * top.c: Update include path.
9770 * ser-base.c: Update include path.
9771 * ui-file.c: Update include path.
9772 * ser-tcp.c: Update include path.
9773 * guile/scm-ports.c: Update include path.
9774 * posix-hdep.c: Update include path.
9775 * ser-unix.c: Update include path.
9776 * gdb_usleep.c: Update include path.
9777 * mingw-hdep.c: Update include path.
9778 * inflow.c: Update include path.
9779 * infrun.c: Update include path.
9780 * event-top.c: Update include path.
9781
8ae8e197
TT
97822020-04-13 Tom Tromey <tom@tromey.com>
9783
9784 * configure: Rebuild.
9785 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9786
58cf28e8
TT
97872020-04-13 Tom Tromey <tom@tromey.com>
9788
9789 * event-loop.h (start_event_loop): Don't declare.
9790 * event-loop.c (start_event_loop): Move...
9791 * main.c (start_event_loop): ...here. Now static.
9792
b7f999ae
SDJ
97932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9794
9795 * MAINTAINERS: Update my email address.
9796
1085dfd4
KR
97972020-04-12 Kamil Rytarowski <n54@gmx.com>
9798
9799 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9800 IP_ALL.
9801
49d1d1f5
KR
98022020-04-12 Kamil Rytarowski <n54@gmx.com>
9803
9804 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9805 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9806
b4848d2a
KR
98072020-04-12 Kamil Rytarowski <n54@gmx.com>
9808
9809 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9810 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9811
51c133d5
KR
98122020-04-12 Kamil Rytarowski <n54@gmx.com>
9813
9814 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9815
54b8cbd0
KR
98162020-04-11 Kamil Rytarowski <n54@gmx.com>
9817
9818 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9819 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9820 (nbsd_nat_target::info_proc): New functions.
9821 * nbsd-nat.c (kinfo_get_vmmap): New function.
9822 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9823 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9824 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9825 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9826 functions.
9827 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9828 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9829 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9830 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9831 (KINFO_VME_FLAG_GROWS_DOWN): New.
9832
cf83625d
AS
98332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9834
9835 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9836 bit shift.
9837
0c4311ab
TT
98382020-04-10 Tom Tromey <tromey@adacore.com>
9839
9840 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9841
3e65b3e9
TT
98422020-04-10 Tom Tromey <tromey@adacore.com>
9843
9844 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9845 separate debug files.
9846
13302e95
HD
98472020-04-10 Hannes Domani <ssbssa@yahoo.de>
9848
9849 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9850 Move to...
9851 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9852 ... here.
9853 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9854 Check for STATUS_WX86_BREAKPOINT.
9855 (windows_nat_target::wait): Same.
9856
bdfc1e8a
TV
98572020-04-10 Tom de Vries <tdevries@suse.de>
9858
9859 PR cli/25808
9860 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9861
f4460aec
SM
98622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9863
9864 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9865 (Write After Approval): Remove Tom de Vries.
9866
a25198bb
BE
98672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9868
9869 revert partially:
9870 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9871
aac66a4c
SM
9872 * buildsym.c (record_line): Fix undefined behavior and preserve
9873 lines at eof.
a25198bb 9874
206c98a6
KR
98752020-04-09 Kamil Rytarowski <n54@gmx.com>
9876
9877 * auxv.h (svr4_auxv_parse): New.
9878 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9879 and generic_auxv_parse.
9880 (svr4_auxv_parse): Add.
9881 * obsd-tdep.c: Include "auxv.h".
9882 (obsd_auxv_parse): Remove.
9883 (obsd_init_abi): Remove comment.
9884 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9885 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9886 * nbsd-tdep.c: Include "auxv.h".
9887 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9888
71fbdbaf
TT
98892020-04-08 Tom Tromey <tromey@adacore.com>
9890
9891 * nat/windows-nat.h (last_wait_event): Don't declare.
9892 (wait_for_debug_event): Update comment.
9893 * nat/windows-nat.c (last_wait_event): Now static.
9894
2c1d95e8
TT
98952020-04-08 Tom Tromey <tromey@adacore.com>
9896
9897 * windows-nat.c (wait_for_debug_event): Move to
9898 nat/windows-nat.c.
9899 * nat/windows-nat.h (wait_for_debug_event): Declare.
9900 * nat/windows-nat.c (wait_for_debug_event): Move from
9901 windows-nat.c. No longer static.
9902
d2977bc4
TT
99032020-04-08 Tom Tromey <tromey@adacore.com>
9904
9905 * windows-nat.c (get_windows_debug_event): Use
9906 fetch_pending_stop.
9907 * nat/windows-nat.h (fetch_pending_stop): Declare.
9908 * nat/windows-nat.c (fetch_pending_stop): New function.
9909
e758e19c
TT
99102020-04-08 Tom Tromey <tromey@adacore.com>
9911
9912 * windows-nat.c (windows_continue): Use matching_pending_stop and
9913 continue_last_debug_event.
9914 * nat/windows-nat.h (matching_pending_stop)
9915 (continue_last_debug_event): Declare.
9916 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9917 (matching_pending_stop, continue_last_debug_event): New
9918 functions.
9919
8d30e395
TT
99202020-04-08 Tom Tromey <tromey@adacore.com>
9921
9922 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9923 (handle_exception_result): Move to nat/windows-nat.h.
9924 (DEBUG_EXCEPTION_SIMPLE): Remove.
9925 (windows_nat::handle_ms_vc_exception): New function.
9926 (handle_exception): Move to nat/windows-nat.c.
9927 (get_windows_debug_event): Update.
9928 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9929 nat/windows-nat.c.
9930 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9931 (handle_exception_result): Move from windows-nat.c.
9932 (handle_exception): Declare.
9933 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9934 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9935 windows-nat.c.
9936
29de418d
TT
99372020-04-08 Tom Tromey <tromey@adacore.com>
9938
9939 * windows-nat.c (exception_count, event_count): Remove.
9940 (handle_exception, get_windows_debug_event)
9941 (do_initial_windows_stuff): Update.
9942
a816ba18
TT
99432020-04-08 Tom Tromey <tromey@adacore.com>
9944
9945 * windows-nat.c (windows_nat::handle_load_dll)
9946 (windows_nat::handle_unload_dll): Rename. No longer static.
9947 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9948 Declare.
9949
a00caa12
TT
99502020-04-08 Tom Tromey <tromey@adacore.com>
9951
9952 * complaints.h (stop_whining): Declare at top-level.
9953 (complaint): Don't declare stop_whining.
9954
d41b524f
TT
99552020-04-08 Tom Tromey <tromey@adacore.com>
9956
9957 * windows-nat.c (windows_nat::handle_output_debug_string):
9958 Rename. No longer static.
9959 * nat/windows-nat.h (handle_output_debug_string): Declare.
9960
3c76026d
TT
99612020-04-08 Tom Tromey <tromey@adacore.com>
9962
9963 * windows-nat.c (current_process_handle, current_process_id)
9964 (main_thread_id, last_sig, current_event, last_wait_event)
9965 (current_windows_thread, desired_stop_thread_id, pending_stops)
9966 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9967 (display_selectors, fake_create_process)
9968 (get_windows_debug_event): Update.
9969 * nat/windows-nat.h (current_process_handle, current_process_id)
9970 (main_thread_id, last_sig, current_event, last_wait_event)
9971 (current_windows_thread, desired_stop_thread_id, pending_stops)
9972 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9973 * nat/windows-nat.c (current_process_handle, current_process_id)
9974 (main_thread_id, last_sig, current_event, last_wait_event)
9975 (current_windows_thread, desired_stop_thread_id, pending_stops)
9976 (siginfo_er): New globals. Move from windows-nat.c.
9977
9d8679cc
TT
99782020-04-08 Tom Tromey <tromey@adacore.com>
9979
9980 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9981 (handle_load_dll): Update.
9982 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9983
28688adf
TT
99842020-04-08 Tom Tromey <tromey@adacore.com>
9985
9986 * windows-nat.c (enum thread_disposition_type): Move to
9987 nat/windows-nat.h.
9988 (windows_nat::thread_rec): Rename from thread_rec. No longer
9989 static.
9990 (windows_add_thread, windows_nat_target::fetch_registers)
9991 (windows_nat_target::store_registers, handle_exception)
9992 (windows_nat_target::resume, get_windows_debug_event)
9993 (windows_nat_target::get_tib_address)
9994 (windows_nat_target::thread_name)
9995 (windows_nat_target::thread_alive): Update.
9996 * nat/windows-nat.h (enum thread_disposition_type): Move from
9997 windows-nat.c.
9998 (thread_rec): Declare.
9999
4834dad0
TT
100002020-04-08 Tom Tromey <tromey@adacore.com>
10001
10002 * windows-nat.c: Add "using namespace".
10003 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10004 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10005
65bafd5b
TT
100062020-04-08 Tom Tromey <tromey@adacore.com>
10007
10008 * nat/windows-nat.h (struct windows_thread_info): Declare
10009 destructor.
10010 * nat/windows-nat.c (~windows_thread_info): New.
10011
0a4afda3
TT
100122020-04-08 Tom Tromey <tromey@adacore.com>
10013
10014 PR gdb/22992
10015 * windows-nat.c (current_event): Update comment.
10016 (last_wait_event, desired_stop_thread_id): New globals.
10017 (struct pending_stop): New.
10018 (pending_stops): New global.
10019 (windows_nat_target) <stopped_by_sw_breakpoint>
10020 <supports_stopped_by_sw_breakpoint>: New methods.
10021 (windows_fetch_one_register): Add assertions. Adjust PC.
10022 (windows_continue): Handle pending stops. Suspend other threads
10023 when stepping. Use last_wait_event
10024 (wait_for_debug_event): New function.
10025 (get_windows_debug_event): Use wait_for_debug_event. Handle
10026 pending stops. Queue spurious stops.
10027 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10028 (windows_nat_target::kill): Use wait_for_debug_event.
10029 * nat/windows-nat.h (struct windows_thread_info)
10030 <stopped_at_software_breakpoint>: New field.
10031 * nat/windows-nat.c (windows_thread_info::resume): Clear
10032 stopped_at_software_breakpoint.
10033
8e61ebec
TT
100342020-04-08 Tom Tromey <tromey@adacore.com>
10035
10036 * windows-nat.c (enum thread_disposition_type): New.
10037 (thread_rec): Replace "get_context" parameter with "disposition";
10038 change type.
10039 (windows_add_thread, windows_nat_target::fetch_registers)
10040 (windows_nat_target::store_registers, handle_exception)
10041 (windows_nat_target::resume, get_windows_debug_event)
10042 (windows_nat_target::get_tib_address)
10043 (windows_nat_target::thread_name)
10044 (windows_nat_target::thread_alive): Update.
10045
98a03287
TT
100462020-04-08 Tom Tromey <tromey@adacore.com>
10047
10048 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10049 (windows_continue): Use windows_continue::resume.
10050 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10051 resume>: Declare new methods.
10052 * nat/windows-nat.c: New file.
10053 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10054
7c7411bc
TT
100552020-04-08 Tom Tromey <tromey@adacore.com>
10056
10057 * windows-nat.c (windows_add_thread, windows_delete_thread)
10058 (windows_nat_target::fetch_registers)
10059 (windows_nat_target::store_registers, fake_create_process)
10060 (windows_nat_target::resume, windows_nat_target::resume)
10061 (get_windows_debug_event, windows_nat_target::wait)
10062 (windows_nat_target::pid_to_str)
10063 (windows_nat_target::get_tib_address)
10064 (windows_nat_target::get_ada_task_ptid)
10065 (windows_nat_target::thread_name)
10066 (windows_nat_target::thread_alive): Use lwp, not tid.
10067
2950fdf7
TT
100682020-04-08 Tom Tromey <tromey@adacore.com>
10069
10070 * windows-nat.c (handle_exception)
10071 (windows_nat_target::thread_name): Update.
10072 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10073 <name>: Now unique_xmalloc_ptr.
10074
62fe396b
TT
100752020-04-08 Tom Tromey <tromey@adacore.com>
10076
10077 * windows-nat.c (thread_rec)
10078 (windows_nat_target::fetch_registers): Update.
10079 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10080 Update comment.
10081 <debug_registers_changed, reload_context>: Now bool.
10082
e9534bd2
TT
100832020-04-08 Tom Tromey <tromey@adacore.com>
10084
10085 * windows-nat.c (windows_add_thread): Use new.
10086 (windows_init_thread_list, windows_delete_thread): Use delete.
10087 (get_windows_debug_event): Update.
10088 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10089 destructor, and initializers.
10090
ae1f8880
TT
100912020-04-08 Tom Tromey <tromey@adacore.com>
10092
10093 * windows-nat.c (struct windows_thread_info): Remove.
10094 * nat/windows-nat.h: New file.
10095
55a1e039
TT
100962020-04-08 Tom Tromey <tromey@adacore.com>
10097
10098 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10099 (thread_rec, windows_add_thread, windows_delete_thread)
10100 (windows_continue): Update.
10101
93366324
TT
101022020-04-08 Tom Tromey <tromey@adacore.com>
10103
10104 * windows-nat.c (struct windows_thread_info): Remove typedef.
10105 (thread_head): Remove.
10106 (thread_list): New global.
10107 (thread_rec, windows_add_thread, windows_init_thread_list)
10108 (windows_delete_thread, windows_continue): Update.
10109
0f2265e2
SM
101102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10111
10112 * windows-tdep.h (windows_init_abi): Add comment.
10113 (cygwin_init_abi): New declaration.
10114 * windows-tdep.c: Split signal enumeration in two, one for
10115 Windows and one for Cygwin.
10116 (windows_gdb_signal_to_target): Only deal with signal of the
10117 Windows OS ABI.
10118 (cygwin_gdb_signal_to_target): New function.
10119 (windows_init_abi): Rename to windows_init_abi_common, don't set
10120 gdb_signal_to_target gdbarch method. Add new new function with
10121 this name.
10122 (cygwin_init_abi): New function.
10123 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10124 comment. Don't call windows_init_abi.
10125 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10126 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10127 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10128 i386_windows_init_abi_common, don't call windows_init_abi. Add
10129 a new function of this name.
10130 (i386_cygwin_init_abi): New function.
10131 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10132 OS ABI Cygwin.
10133
3810f182
SM
101342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10135
10136 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10137 parameter.c.
10138 (dwarf2_read_gdb_index): Update.
10139
063f8e80
KR
101402020-04-07 Kamil Rytarowski <n54@gmx.com>
10141
10142 * nbsd-tdep.c: Include "objfiles.h".
10143 (nbsd_skip_solib_resolver): New.
10144 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10145
85a9510c 101462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10147
10148 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10149 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10150 with DW_LLE_base_addressx are being emitted in DWARFv5.
10151 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10152 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10153 unsigned integer.
10154
9fc3eaae 101552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10156
10157 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10158 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10159 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10160 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10161 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10162 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10163 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10164
10165
41144253 101662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10167
10168 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10169 (read_loclist_index): New function definition.
10170 (lookup_loclist_base): New function definition.
10171 (read_loclist_header): New function definition.
10172 (dwarf2_cu): Add loclist_base and loclist_header field.
10173 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10174 (read_full_die_1): Read the value of DW_AT_loclists_base.
10175 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10176 (read_attribute_value): Handle DW_FORM_loclistx.
10177 (skip_one_die): Handle DW_FORM_loclistx.
10178 (loclist_header): New structure declaration.
10179 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10180
9f4e76a4
SM
101812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10182
10183 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10184 constructor. Remove `addr` parameter from other constructor and
10185 add `per_cu` parameter.
10186 * dwarf2/read.c (create_partial_symtab): Update.
10187
25c11aca
TV
101882020-04-07 Tom de Vries <tdevries@suse.de>
10189
10190 PR symtab/25796
10191 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10192 (partial_die_info::fixup): Inherit has_const_value.
10193
5707e24b
TV
101942020-04-07 Tom de Vries <tdevries@suse.de>
10195
10196 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10197 symbols without address.
10198
05f00e22
KR
101992020-04-06 Kamil Rytarowski <n54@gmx.com>
10200
10201 * nbsd-nat.h (struct thread_info): Add forward declaration.
10202 (nbsd_nat_target::thread_alive): Add.
10203 (nbsd_nat_target::thread_name): Likewise.
10204 (nbsd_nat_target::update_thread_list): Likewise.
10205 (update_thread_list::post_attach): Likewise.
10206 (post_attach::pid_to_str): Likewise.
10207 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10208 (nbsd_thread_lister): Add.
10209 (nbsd_nat_target::thread_alive): Likewise.
10210 (nbsd_nat_target::thread_name): Likewise.
10211 (nbsd_add_threads): Likewise.
10212 (update_thread_list::post_attach): Likewise.
10213 (nbsd_nat_target::update_thread_list): Likewise.
10214 (post_attach::pid_to_str): Likewise.
10215
6ee448cc
TT
102162020-04-06 Tom Tromey <tromey@adacore.com>
10217
10218 * ada-valprint.c (print_variant_part): Extract the variant field.
10219 (print_field_values): Use the field as the outer value when
10220 recursing.
10221
dea34e8c
TT
102222020-04-06 Tom Tromey <tromey@adacore.com>
10223
10224 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10225 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10226 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10227 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10228 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10229
93689ce9
TT
102302020-04-06 Tom Tromey <tromey@adacore.com>
10231
10232 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10233 TYPE_CODE_ERROR.
10234
79743962
KR
102352020-04-06 Kamil Rytarowski <n54@gmx.com>
10236
10237 * nbsd-tdep.c: Include "gdbarch.h".
10238 Define enum with NetBSD signal numbers.
10239 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10240 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10241 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10242 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10243 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10244 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10245 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10246 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10247 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10248 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10249 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10250 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10251
9e7c9a03
HD
102522020-04-03 Hannes Domani <ssbssa@yahoo.de>
10253
10254 PR gdb/25325
10255 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10256
d9e49b61
TT
102572020-04-03 Tom Tromey <tromey@adacore.com>
10258
10259 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10260 Read constant block.
10261
e0fc5c3f
SM
102622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10263
10264 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10265 (gdb_bfd_get_full_section_contents): New declaration.
10266 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10267 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10268 gdb_bfd_get_full_section_contents.
10269
e2ff18a0
SM
102702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * exec.c (build_section_table): Replace internal_error with
10273 gdb_assert.
10274 (section_table_xfer_memory_partial): Likewise.
10275 * mdebugread.c (parse_partial_symbols): Likewise.
10276 * psymtab.c (lookup_partial_symbol): Likewise.
10277 * utils.c (wrap_here): Likewise.
10278
0830d301
TT
102792020-04-02 Tom Tromey <tromey@adacore.com>
10280
10281 * f-lang.c (build_fortran_types): Use arch_type to initialize
10282 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10283
e7da7f8f
TT
102842020-04-02 Tom Tromey <tromey@adacore.com>
10285
10286 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10287 of attributes.
10288
c90d28ac
AB
102892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10290 Bernd Edlinger <bernd.edlinger@hotmail.de>
10291 Tom Tromey <tromey@adacore.com>
10292
10293 * buildsym.c (buildsym_compunit::record_line): Remove
10294 deduplication code.
10295
1aa98955
TV
102962020-04-02 Tom de Vries <tdevries@suse.de>
10297
10298 PR ada/24671
10299 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10300
d3214198
TV
103012020-04-02 Tom de Vries <tdevries@suse.de>
10302
10303 * dwarf2/read.c (dwarf2_gdb_index_functions,
10304 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10305 NULL.
10306 * psymtab.c (psym_lookup_global_symbol_language): New function.
10307 (psym_functions): Init psym_lookup_global_symbol_language with
10308 psym_lookup_global_symbol_language.
10309 * symfile-debug.c (debug_sym_quick_functions): Init
10310 lookup_global_symbol_language with NULL.
10311 * symfile.c (set_initial_language): Remove fixme comment.
10312 * symfile.h (struct quick_symbol_functions): Add
10313 lookup_global_symbol_language.
10314 * symtab.c (find_quick_global_symbol_language): New function.
10315 (find_main_name): Use find_quick_global_symbol_language.
10316
2836752f
SM
103172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10318
10319 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10320
64dc2d4b
BE
103212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10322
10323 * buildsym.c (record_line): Fix undefined behavior and preserve
10324 lines at eof.
10325
bbe3dc41
BE
103262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10327
10328 * buildsym.c (record_line): Fix the resizing condition.
10329
6b4a335b
TT
103302020-04-01 Tom Tromey <tom@tromey.com>
10331
10332 * value.h (value_literal_complex): Add comment.
10333 * valops.c (value_literal_complex): Refer to value.h.
10334
3638a098
TT
103352020-04-01 Tom Tromey <tom@tromey.com>
10336
10337 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10338 (scalar_type): New rule, from typebase.
10339 (typebase): Use scalar_type. Recognize complex types.
10340 (field_name): Handle FLOAT_KEYWORD.
10341 (ident_tokens): Add _Complex and __complex__.
10342
c34e8714
TT
103432020-04-01 Tom Tromey <tom@tromey.com>
10344
10345 PR exp/25299:
10346 * valarith.c (promotion_type, complex_binop): New functions.
10347 (scalar_binop): Handle complex numbers. Use promotion_type.
10348 (value_pos, value_neg, value_complement): Handle complex numbers.
10349
fa649bb7
TT
103502020-04-01 Tom Tromey <tom@tromey.com>
10351
10352 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10353 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10354 (parse_number): Handle complex numbers.
10355
981c08ce
TT
103562020-04-01 Tom Tromey <tom@tromey.com>
10357
10358 * c-valprint.c (c_decorations): Change complex suffix to "i".
10359
4c99290d
TT
103602020-04-01 Tom Tromey <tom@tromey.com>
10361
10362 * valprint.c (generic_value_print_complex): Use accessors.
10363 * value.h (value_real_part, value_imaginary_part): Declare.
10364 * valops.c (value_real_part, value_imaginary_part): New
10365 functions.
10366 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10367
5b930b45
TT
103682020-04-01 Tom Tromey <tom@tromey.com>
10369
10370 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10371 (read_range_type): Update.
10372 * mdebugread.c (basic_type): Update.
10373 * go-lang.c (build_go_types): Use init_complex_type.
10374 * gdbtypes.h (struct main_type) <complex_type>: New member.
10375 (init_complex_type): Update.
10376 (arch_complex_type): Don't declare.
10377 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10378 Make name if none given. Use alloc_type_copy. Look for cached
10379 complex type.
10380 (arch_complex_type): Remove.
10381 (gdbtypes_post_init): Use init_complex_type.
10382 * f-lang.c (build_fortran_types): Use init_complex_type.
10383 * dwarf2/read.c (read_base_type): Update.
10384 * d-lang.c (build_d_types): Use init_complex_type.
10385 * ctfread.c (read_base_type): Update.
10386
53cccef1
TBA
103872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10388
10389 * infrun.c (stop_all_threads): Update assertion, plus when
10390 stopping threads, take into account that we might be trying
10391 to stop an all-stop target.
10392 (stop_waiting): Call 'stop_all_threads' if there exists a
10393 non-stop target.
10394
a0714d30
TBA
103952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10396
10397 * target.h (exists_non_stop_target): New function declaration.
10398 * target.c (exists_non_stop_target): New function.
10399
60e22c1e
HD
104002020-04-01 Hannes Domani <ssbssa@yahoo.de>
10401
10402 PR gdb/24789
10403 * eval.c (is_integral_or_integral_reference): New function.
10404 (evaluate_subexp_standard): Allow integer references in
10405 pointer arithmetic.
10406
e139a727
TBA
104072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10408
10409 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10410 check for no ptid in the stop reply when the target is non-stop.
10411
e0802d59
TT
104122020-04-01 Tom Tromey <tromey@adacore.com>
10413
10414 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10415 "name" parameter to rvalue reference. Initialize m_name_holder.
10416 <lookup_name_info>: New overloads.
10417 <name>: Return gdb::string_view.
10418 <c_str>: New method.
10419 <make_ignore_params>: Update.
10420 <search_name_hash>: Update.
10421 <language_lookup_name>: Return const char *.
10422 <m_name>: Change type.
10423 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10424 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10425 (lookup_name_info::match_any): Update.
10426 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10427 Update.
10428 * minsyms.c (linkage_name_str): Update.
10429 * language.c (default_symbol_name_matcher): Update.
10430 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10431 Update.
10432 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10433 (ada_lookup_name_info::ada_lookup_name_info): Update.
10434 (literal_symbol_name_matcher): Update.
10435
8c072cb6
TT
104362020-04-01 Tom Tromey <tromey@adacore.com>
10437
10438 * psymtab.c (psymtab_search_name): Remove function.
10439 (psym_lookup_symbol): Create search name and lookup name here.
10440 (lookup_partial_symbol): Remove "name" parameter; add
10441 lookup_name.
10442 (psym_expand_symtabs_for_function): Update.
10443
6f29a534
TT
104442020-03-31 Joel Jones <joelkevinjones@gmail.com>
10445
10446 PR tui/25597:
10447 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10448
af62665e
TT
104492020-03-31 Tom Tromey <tromey@adacore.com>
10450
10451 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10452 memcpy.
10453
d1a89da5
NC
104542020-03-30 Nelson Chu <nelson.chu@sifive.com>
10455
10456 * features/riscv/32bit-csr.xml: Regenerated.
10457 * features/riscv/64bit-csr.xml: Regenerated.
10458
d8af9068
TT
104592020-03-30 Tom Tromey <tromey@adacore.com>
10460
10461 * ada-valprint.c (print_variant_part): Update.
10462 * ada-lang.h (ada_which_variant_applies): Update.
10463 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10464 outer_valaddr parameters; replace with "outer" value parameter.
10465 (to_fixed_variant_branch_type): Update.
10466
227c0bf4
PFC
104672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10468
10469 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10470 <list>. Remove inclusion of observable.h.
10471 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10472 (struct arch_lwp_info): New struct.
10473 (class ppc_linux_dreg_interface): New class.
10474 (struct ppc_linux_process_info): New struct.
10475 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10476 <low_new_clone, low_forget_process, low_prepare_to_resume>
10477 <copy_thread_dreg_state, mark_thread_stale>
10478 <mark_debug_registers_changed, register_hw_breakpoint>
10479 <clear_hw_breakpoint, register_wp, clear_wp>
10480 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10481 <num_memory_accesses, get_trigger_type>
10482 <create_watchpoint_request, hwdebug_point_cmp>
10483 <init_arch_lwp_info, get_arch_lwp_info>
10484 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10485 methods.
10486 <struct ptid_hash>: New inner struct.
10487 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10488 members.
10489 (saved_dabr_value, hwdebug_info, max_slots_number)
10490 (struct hw_break_tuple, struct thread_points, ppc_threads)
10491 (have_ptrace_hwdebug_interface)
10492 (hwdebug_find_thread_points_by_tid)
10493 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10494 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10495 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10496 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10497 use m_dreg_interface.
10498 (hwdebug_point_cmp): Change to...
10499 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10500 reference arguments instead of pointers.
10501 (ppc_linux_nat_target::ranged_break_num_registers): Use
10502 m_dreg_interface.
10503 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10504 m_dreg_interface. Call register_hw_breakpoint.
10505 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10506 m_dreg_interface. Call clear_hw_breakpoint.
10507 (get_trigger_type): Change to...
10508 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10509 comment.
10510 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10511 use m_dreg_interface. Call register_hw_breakpoint.
10512 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10513 use m_dreg_interface. Call clear_hw_breakpoint.
10514 (can_use_watchpoint_cond_accel): Change to...
10515 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10516 method. Update comment, use m_dreg_interface and
10517 m_process_info.
10518 (calculate_dvc): Change to...
10519 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10520 m_dreg_interface.
10521 (num_memory_accesses): Change to...
10522 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10523 (check_condition): Change to...
10524 (ppc_linux_nat_target::check_condition): ...this method.
10525 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10526 comment, use m_dreg_interface.
10527 (create_watchpoint_request): Change to...
10528 (ppc_linux_nat_target::create_watchpoint_request): ...this
10529 method. Use m_dreg_interface.
10530 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10531 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10532 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10533 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10534 (ppc_linux_nat_target::low_forget_process)
10535 (ppc_linux_nat_target::low_new_fork)
10536 (ppc_linux_nat_target::low_new_clone)
10537 (ppc_linux_nat_target::low_delete_thread)
10538 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10539 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10540 only call mark_thread_stale.
10541 (ppc_linux_thread_exit): Remove.
10542 (ppc_linux_nat_target::stopped_data_address): Change to...
10543 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10544 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10545 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10546 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10547 comment. Call low_stopped_data_address.
10548 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10549 m_dreg_interface.
10550 (ppc_linux_nat_target::masked_watch_num_registers): Use
10551 m_dreg_interface.
10552 (ppc_linux_nat_target::copy_thread_dreg_state)
10553 (ppc_linux_nat_target::mark_thread_stale)
10554 (ppc_linux_nat_target::mark_debug_registers_changed)
10555 (ppc_linux_nat_target::register_hw_breakpoint)
10556 (ppc_linux_nat_target::clear_hw_breakpoint)
10557 (ppc_linux_nat_target::register_wp)
10558 (ppc_linux_nat_target::clear_wp)
10559 (ppc_linux_nat_target::init_arch_lwp_info)
10560 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10561 (_initialize_ppc_linux_nat): Remove observer callback.
10562
4db10d8f
PFC
105632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10564
10565 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10566 (ppc_linux_nat_target::auxv_parse)
10567 (ppc_linux_nat_target::read_description)
10568 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10569 Move up.
10570
1310c1b0
PFC
105712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10572
10573 * linux-nat.h (low_new_clone): New method.
10574 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10575
69b037c3
SM
105762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10577
10578 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10579 (dbx_expand_psymtab): ... this.
10580 (start_psymtab): Update.
10581 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10582 (mdebug_expand_psymtab): ... this.
10583 (parse_partial_symbols): Update.
10584 (new_psymtab): Update.
10585 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10586 (xcoff_expand_psymtab): ... this.
10587 (xcoff_start_psymtab): Update.
10588
48993951
SM
105892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10592 <expand_dependencies>: ... this.
10593 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10594 (partial_symtab::expand_dependencies): ... this.
10595 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10596 Update.
10597 (dwarf2_psymtab::expand_psymtab): Update.
10598 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10599 * mdebugread.c (psymtab_to_symtab_1): Update.
10600 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10601
3ad83046
SM
106022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10603
10604 * psympriv.h (discard_psymtab): Remove.
10605 * dbxread.c (dbx_end_psymtab): Update.
10606 * xcoffread.c (xcoff_end_psymtab): Update.
10607
4d1b9ab6
TT
106082020-03-28 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10611 comment.
10612
f1749218
TT
106132020-03-28 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10616
ebea7626
HD
106172020-03-27 Hannes Domani <ssbssa@yahoo.de>
10618
10619 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10620
a879b4d5
JB
106212020-03-26 John Baldwin <jhb@FreeBSD.org>
10622
10623 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10624
0826b30a
TT
106252020-03-26 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10628 (mark_common_block_symbol_computed, read_tag_string_type)
10629 (attr_to_dynamic_prop, read_subrange_type): Update.
10630 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10631 to be methods on struct attribute.
10632 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10633 (read_call_site_scope, partial_die_info::read)
10634 (partial_die_info::read, lookup_die_type, follow_die_ref):
10635 Update.
10636 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10637 from dwarf2_get_ref_die_offset.
10638 (attribute::constant_value): New method, from
10639 dwarf2_get_attr_constant_value.
10640 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10641 Declare method.
10642 <constant_value>: New method.
10643
2b2558bf
TT
106442020-03-26 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10647 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10648 (dwarf_type_encoding_name): Move to stringify.c.
10649 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10650 * dwarf2/stringify.c: New file.
10651 * dwarf2/stringify.h: New file.
10652
eeb64781
TT
106532020-03-26 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10656 Rewrite.
10657
a39fdb41
TT
106582020-03-26 Tom Tromey <tom@tromey.com>
10659
10660 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10661 methods.
10662 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10663 (lookup_ranges_base): Likewise.
10664 (read_cutu_die_from_dwo, read_full_die_1): Update.
10665
436c571c
TT
106662020-03-26 Tom Tromey <tom@tromey.com>
10667
10668 * dwarf2/read.c (read_import_statement, read_file_scope)
10669 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10670 (read_lexical_block_scope, read_call_site_scope)
10671 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10672 (handle_struct_member_die, process_structure_scope)
10673 (update_enumeration_type_from_children)
10674 (process_enumeration_scope, read_array_type, read_common_block)
10675 (read_namespace, read_module, read_subroutine_type): Update.
10676 (sibling_die): Remove.
10677
052c8bb8
TT
106782020-03-26 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10681 (build_type_psymtabs_reader, read_structure_type)
10682 (read_enumeration_type, read_full_die_1): Update.
10683 (dwarf2_attr_no_follow): Move to die.h.
10684 * dwarf2/die.h (struct die_info) <attr>: New method.
10685
2b24b6e4
TT
106862020-03-26 Tom Tromey <tom@tromey.com>
10687
10688 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10689 <base_address>: Now an optional.
10690 (dwarf2_find_base_address, dwarf2_rnglists_process)
10691 (dwarf2_ranges_process, fill_in_loclist_baton)
10692 (dwarf2_symbol_mark_computed): Update.
10693
c2d50fd0
TT
106942020-03-26 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/read.c (struct die_info): Move to die.h.
10697 * dwarf2/die.h: New file.
10698
0df7ad3a
TT
106992020-03-26 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10702 * dwarf2/read.c
10703 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10704 Move to line-header.c.
10705 (read_checked_initial_length_and_offset, read_formatted_entries):
10706 Likewise.
10707 (dwarf_decode_line_header): Split into two.
10708 * dwarf2/line-header.c
10709 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10710 Move from read.c.
10711 (read_checked_initial_length_and_offset, read_formatted_entries):
10712 Likewise.
10713 (dwarf_decode_line_header): New function, split from read.c.
10714
86c0bb4c
TT
107152020-03-26 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10718 Declare method.
10719 * dwarf2/read.c (read_attribute_value): Update.
10720 (dwarf2_per_objfile::read_line_string): Rename from
10721 read_indirect_line_string.
10722 (read_formatted_entries): Update.
10723
2ef46c2f
TT
107242020-03-26 Tom Tromey <tom@tromey.com>
10725
10726 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10727 variable.
10728
4f9c1eda
TT
107292020-03-26 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10732 const.
10733 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10734 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10735 parameter const.
10736
5a0e026f
TT
107372020-03-26 Tom Tromey <tom@tromey.com>
10738
10739 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10740 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10741 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10742 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10743
8844c11b
TT
107442020-03-26 Tom Tromey <tom@tromey.com>
10745
10746 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10747 file_names_size, file_full_name, file_file_name>: Use const.
10748 <file_name_at, file_names>: Add const overload.
10749 * dwarf2/line-header.c (line_header::file_file_name)
10750 (line_header::file_full_name): Update.
10751
c90ec28a
TT
107522020-03-26 Tom Tromey <tom@tromey.com>
10753
10754 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10755 (macro_start_file, consume_improper_spaces)
10756 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10757 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10758 (dwarf_decode_macros): Move to macro.c.
10759 * dwarf2/macro.c: New file.
10760 * dwarf2/macro.h: New file.
10761 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10762
4f44ae6c
TT
107632020-03-26 Tom Tromey <tom@tromey.com>
10764
10765 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10766 method.
10767 * dwarf2/section.c: New method. From
10768 read_indirect_string_at_offset_from.
10769 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10770 (read_indirect_string_at_offset_from): Move to section.c.
10771 (read_indirect_string_at_offset): Rewrite.
10772 (read_indirect_line_string_at_offset): Remove.
10773 (read_indirect_string, read_indirect_line_string)
10774 (dwarf_decode_macro_bytes): Update.
10775
a0194fa8
TT
107762020-03-26 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/section.h (struct dwarf2_section_info)
10779 <overload_complaint>: Declare.
10780 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10781 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10782 Rename from dwarf2_section_buffer_overflow_complaint.
10783 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10784 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10785
3d27bbdb
TT
107862020-03-26 Tom Tromey <tom@tromey.com>
10787
10788 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10789 Declare.
10790 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10791 Move from read.c.
10792 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10793 to section.c.
10794
9eac9650
TT
107952020-03-26 Tom Tromey <tom@tromey.com>
10796
10797 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10798
bf80d710
TT
107992020-03-26 Tom Tromey <tom@tromey.com>
10800
10801 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10802 "builder".
10803 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10804 parameter.
10805 (dwarf_decode_macros): Update.
10806
0314b390
TT
108072020-03-26 Tom Tromey <tom@tromey.com>
10808
10809 * dwarf2/read.c (read_attribute_value): Update.
10810 (read_indirect_string_from_dwz): Move to dwz.c; change into
10811 method.
10812 (dwarf_decode_macro_bytes): Update.
10813 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10814 * dwarf2/dwz.c: New file.
10815 * Makefile.in (COMMON_SFILES): Add dwz.c.
10816
9fda78b6
TT
108172020-03-26 Tom Tromey <tom@tromey.com>
10818
10819 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10820 * dwarf2/read.c: Add include.
10821 * dwarf2/index-write.c: Add include.
10822 * dwarf2/index-cache.c: Add include.
10823 * dwarf2/dwz.h: New file.
10824
33aa3c10
TT
108252020-03-25 Tom Tromey <tom@tromey.com>
10826
10827 * compile/compile-object-load.c (get_out_value_type): Mention
10828 correct symbol name in error message.
10829
d503b685
HD
108302020-03-25 Hannes Domani <ssbssa@yahoo.de>
10831
10832 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10833
7b1eff95
TV
108342020-03-25 Tom de Vries <tdevries@suse.de>
10835
10836 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10837 * symmisc.c (dump_symtab_1): Print user and includes fields.
10838 (maintenance_info_symtabs): Same.
10839
dd895392
AB
108402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10841
10842 PR gdb/25534
10843 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10844 (riscv_regcache_cooked_write): New function.
10845 (riscv_push_dummy_call): Use new function.
10846 (riscv_return_value): Likewise.
10847
5ab2fbf1
SM
108482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10849
10850 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10851 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10852 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10853 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10854 * infrun.c (follow_fork): Likewise.
10855 (follow_fork_inferior): Likewise.
10856 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10857 * linux-nat.h (class linux_nat_target): Likewise.
10858 * remote.c (class remote_target) <follow_fork>: Likewise.
10859 (remote_target::follow_fork): Likewise.
10860 * target-delegates.c: Re-generate.
10861 * target.c (default_follow_fork): Likewise.
10862 (target_follow_fork): Likewise.
10863 * target.h (struct target_ops) <follow_fork>: Likewise.
10864 (target_follow_fork): Likewise.
10865
a64fafb5
TV
108662020-03-24 Tom de Vries <tdevries@suse.de>
10867
10868 * psymtab.c (maintenance_info_psymtabs): Print user field.
10869
fe26d3a3
TT
108702020-03-20 Tom Tromey <tromey@adacore.com>
10871
10872 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10873 const.
10874 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10875 const.
10876
c884cc46
SM
108772020-03-20 Simon Marchi <simon.marchi@efficios.com>
10878
10879 * ptrace.m4: Don't check for ptrace declaration.
10880 * config.in: Re-generate.
10881 * configure: Re-generate.
10882 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10883 not defined.
10884
1ff700c2
KR
108852020-03-20 Kamil Rytarowski <n54@gmx.com>
10886
10887 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10888 `PTRACE_TYPE_RET'.
10889 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10890 * sparc-nat.c (gdb_ptrace): Likewise.
10891 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10892
f7d4f0b1
TT
108932020-03-20 Tom Tromey <tromey@adacore.com>
10894
10895 * c-exp.y (lex_one_token): Fix assert.
10896
f67210ff
TT
108972020-03-20 Tom Tromey <tromey@adacore.com>
10898
10899 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10900 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10901 strncpy call.
10902
1773be9e
TT
109032020-03-20 Tom Tromey <tromey@adacore.com>
10904
10905 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10906
70304be9
TT
109072020-03-20 Tom Tromey <tromey@adacore.com>
10908
10909 * ada-valprint.c (print_variant_part): Remove parameters; switch
10910 to value-based API.
10911 (print_field_values): Likewise.
10912 (ada_val_print_struct_union): Likewise.
10913 (ada_value_print_1): Update.
10914
9faa006d
KR
109152020-03-20 Kamil Rytarowski <n54@gmx.com>
10916
10917 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10918 nbsd_nat_target instead of inf_ptrace_target.
10919 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10920 nbsd_nat_target.
10921
4a90f062
KR
109222020-03-20 Kamil Rytarowski <n54@gmx.com>
10923
10924 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10925 it to the ptrace call.
10926 * (store_registers): Likewise.
10927
109282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10929
10930 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10931 it to the ptrace call.
10932 * (store_registers): Likewise.
10933
2d07da27
LM
109342020-03-19 Luis Machado <luis.machado@linaro.org>
10935
10936 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10937 valid, fetch vg value from ptrace.
10938
f09db380
KR
109392020-03-19 Kamil Rytarowski <n54@gmx.com>
10940 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10941 * inf-ptrace.c: Likewise.
10942 * (gdb_ptrace): Add.
10943 * (inf_ptrace_target::resume): Update.
10944 * (inf_ptrace_target::xfer_partial): Likewise.
10945 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10946 * (inf_ptrace_peek_poke): Update.
10947
fcc7376e
KR
109482020-03-19 Kamil Rytarowski <n54@gmx.com>
10949
10950 * x86-bsd-nat.c (gdb_ptrace): New.
10951 * (x86bsd_dr_set): Add new argument `ptid'.
10952 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10953 x86bsd_dr_set_addr): Update.
10954
cada5fc9
AB
109552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10956
10957 * remote.c (remote_target::process_stop_reply): Handle events for
10958 all threads differently.
10959
19a2740f
AB
109602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10961
10962 * completer.c (completion_tracker::remove_completion): Define new
10963 function.
10964 * completer.h (completion_tracker::remove_completion): Declare new
10965 function.
10966 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10967 when adding a C++ function symbol.
10968
724fd9ba
AB
109692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10970
10971 * completer.c (completion_tracker::completion_hash_entry): Define
10972 new class.
10973 (advance_to_filename_complete_word_point): Call
10974 recompute_lowest_common_denominator.
10975 (completion_tracker::completion_tracker): Call discard_completions
10976 to setup the hash table.
10977 (completion_tracker::discard_completions): Allow for being called
10978 from the constructor, pass new equal function, and element deleter
10979 when constructing the hash table. Initialise new class member
10980 variables.
10981 (completion_tracker::maybe_add_completion): Remove use of
10982 m_entries_vec, and store more information into m_entries_hash.
10983 (completion_tracker::recompute_lcd_visitor): New function, most
10984 content taken from...
10985 (completion_tracker::recompute_lowest_common_denominator):
10986 ...here, this now just visits each item in the hash calling the
10987 above visitor.
10988 (completion_tracker::build_completion_result): Remove use of
10989 m_entries_vec, call recompute_lowest_common_denominator.
10990 * completer.h (completion_tracker::have_completions): Remove use
10991 of m_entries_vec.
10992 (completion_tracker::completion_hash_entry): Declare new class.
10993 (completion_tracker::recompute_lowest_common_denominator): Change
10994 function signature.
10995 (completion_tracker::recompute_lcd_visitor): Declare new function.
10996 (completion_tracker::m_entries_vec): Delete.
10997 (completion_tracker::m_entries_hash): Initialize to NULL.
10998 (completion_tracker::m_lowest_common_denominator_valid): New
10999 member variable.
11000 (completion_tracker::m_lowest_common_denominator_max_length): New
11001 member variable.
11002
5a82b8a1
KR
110032020-03-17 Kamil Rytarowski <n54@gmx.com>
11004
11005 * regformats/regdef.h: Put reg in gdb namespace.
11006
fb516a69
KR
110072020-03-17 Kamil Rytarowski <n54@gmx.com>
11008
11009 * i386-bsd-nat.c (gdb_ptrace): New.
11010 * (i386bsd_fetch_inferior_registers,
11011 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11012 * (i386bsd_fetch_inferior_registers,
11013 i386bsd_store_inferior_registers) Use gdb_ptrace.
11014
1c0aa1fb
KR
110152020-03-17 Kamil Rytarowski <n54@gmx.com>
11016
11017 * amd64-bsd-nat.c (gdb_ptrace): New.
11018 * (amd64bsd_fetch_inferior_registers,
11019 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11020 * (amd64bsd_fetch_inferior_registers,
11021 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11022
5ccd2fb7
KR
110232020-03-17 Kamil Rytarowski <n54@gmx.com>
11024
11025 * user-regs.c (user_reg::read): Rename to...
11026 (user_reg::xread): ...this.
11027 * (append_user_reg): Rename argument `read' to `xread'.
11028 * (user_reg_add_builtin): Likewise.
11029 * (user_reg_add): Likewise.
11030 * (value_of_user_reg): Likewise.
11031
2108a63a
KR
110322020-03-17 Kamil Rytarowski <n54@gmx.com>
11033
11034 * sparc-nat.c (gdb_ptrace): New.
11035 * sparc-nat.c (sparc_fetch_inferior_registers)
11036 (sparc_store_inferior_registers) Remove obsolete comment.
11037 * sparc-nat.c (sparc_fetch_inferior_registers)
11038 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11039 * sparc-nat.c (sparc_fetch_inferior_registers)
11040 (sparc_store_inferior_registers) Use gdb_ptrace.
11041
a225c9a8
KR
110422020-03-17 Kamil Rytarowski <n54@gmx.com>
11043
11044 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11045 it to the ptrace call.
11046 * sh-nbsd-nat.c (store_registers): Likewise.
11047
98097623
KR
110482020-03-17 Kamil Rytarowski <n54@gmx.com>
11049
11050 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11051 nbsd_nat_target instead of inf_ptrace_target.
11052 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11053 nbsd_nat_target.
11054
9e38d619
KR
110552020-03-17 Kamil Rytarowski <n54@gmx.com>
11056
11057 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11058
a2ecbe9f
KR
110592020-03-17 Kamil Rytarowski <n54@gmx.com>
11060
11061 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11062 <sys/sysctl.h>.
11063 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11064
58990295
TV
110652020-03-17 Tom de Vries <tdevries@suse.de>
11066
11067 PR gdb/23710
11068 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11069 fields.
11070 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11071 fields.
11072 (process_imported_unit_die): Skip import of c++ CUs.
11073
771dd3a8
TT
110742020-03-16 Tom Tromey <tom@tromey.com>
11075
11076 * p-valprint.c (pascal_object_print_value): Initialize
11077 base_value.
11078
817a7585
AK
110792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11080 Shahab Vahedi <shahab@synopsys.com>
11081
11082 * Makefile.in: Add arch/arc.o
11083 * configure.tgt: Likewise.
11084 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11085 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11086 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11087 * arc-tdep.h (arc_read_description): Add proto type.
11088 * arch/arc.c: New file.
11089 * arch/arc.h: Likewise.
11090 * features/Makefile: Replace old target descriptions with new.
11091 * features/arc-arcompact.c: Remove.
11092 * features/arc-arcompact.xml: Likewise.
11093 * features/arc-v2.c: Likewise
11094 * features/arc-v2.xml: Likewise
11095 * features/arc/aux-arcompact.xml: New file.
11096 * features/arc/aux-v2.xml: Likewise.
11097 * features/arc/core-arcompact.xml: Likewise.
11098 * features/arc/core-v2.xml: Likewise.
11099 * features/arc/aux-arcompact.c: Generate.
11100 * features/arc/aux-v2.c: Likewise.
11101 * features/arc/core-arcompact.c: Likewise.
11102 * features/arc/core-v2.c: Likewise.
11103 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11104
67430cd0
TT
111052020-03-16 Tom Tromey <tromey@adacore.com>
11106
11107 PR gdb/25663:
11108 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11109 putting value into bcache.
11110
30efb6c7
SM
111112020-03-16 Simon Marchi <simon.marchi@efficios.com>
11112
11113 PR gdb/21500
11114 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11115 to...
11116 (amd64_windows_init_abi_common): ... this. Don't set size of
11117 long type.
11118 (amd64_windows_init_abi): New function.
11119 (amd64_cygwin_init_abi): New function.
11120 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11121 the Cygwin OS ABI.
11122 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11123 comment.
11124
8db52437
SM
111252020-03-16 Simon Marchi <simon.marchi@efficios.com>
11126
11127 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11128 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11129 (pe_import_directory_entry): New struct type.
11130 (is_linked_with_cygwin_dll): New function.
11131 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11132 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11133 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11134
5982a56a
SM
111352020-03-16 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11138 i386_cygwin_core_osabi_sniffer.
11139
7a1998df
SM
111402020-03-16 Simon Marchi <simon.marchi@efficios.com>
11141
11142 * i386-cygwin-tdep.c: Rename to...
11143 * i386-windows-tdep.c: ... this.
11144 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11145 i386-windows-tdep.c.
11146 * configure.tgt: Likewise.
11147
053205cc
SM
111482020-03-16 Simon Marchi <simon.marchi@efficios.com>
11149
11150 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11151 * osabi.c (gdb_osabi_names): Add "Windows".
11152 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11153 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11154 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11155 i386_cygwin_osabi_sniffer.
11156 (_initialize_i386_cygwin_tdep): Register OS ABI
11157 GDB_OSABI_WINDOWS for i386.
11158 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11159 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11160 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11161 for x86-64.
11162 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11163 when the target matches '*-*-mingw*'.
11164
fe4b2ee6
SM
111652020-03-16 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * defs.h (enum gdb_osabi): Move to...
11168 * osabi.h (enum gdb_osabi): ... here.
11169 * gdbarch.sh: Include osabi.h in gdbarch.h.
11170 * gdbarch.h: Re-generate.
11171
cb9b645d
SM
111722020-03-16 Simon Marchi <simon.marchi@efficios.com>
11173
11174 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11175 function.
11176 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11177
3293bbaf
TT
111782020-03-14 Tom Tromey <tom@tromey.com>
11179
11180 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11181 for C++.
11182 (c_type_print_modifier): Likewise. Add "language" parameter.
11183 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11184 (c_type_print_base_1): Update.
11185 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11186 constants.
11187 * type-stack.c (type_stack::insert): Handle tp_atomic and
11188 tp_restrict.
11189 (type_stack::follow_type_instance_flags): Likewise.
11190 (type_stack::follow_types): Likewise. Merge type-following code.
11191 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11192 (space_identifier, cv_with_space_id)
11193 (const_or_volatile_or_space_identifier_noopt)
11194 (const_or_volatile_or_space_identifier): Remove.
11195 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11196 rules.
11197 (ptr_operator, typebase): Update.
11198 (enum token_flag) <FLAG_C>: New constant.
11199 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11200 "_Atomic".
11201 (lex_one_token): Handle FLAG_C.
11202
154151a6
KR
112032020-03-14 Kamil Rytarowski <n54@gmx.com>
11204
11205 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11206 it to the ptrace call.
11207 * m68k-bsd-nat.c (store_registers): Likewise.
11208
bc107784
KR
112092020-03-14 Kamil Rytarowski <n54@gmx.com>
11210
11211 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11212 gdb_byte *.
11213 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11214 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11215 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11216
01a80117
KR
112172020-03-14 Kamil Rytarowski <n54@gmx.com>
11218
11219 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11220 nbsd_nat_target instead of inf_ptrace_target.
11221 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11222 nbsd_nat_target.
11223
f90280ca
KR
112242020-03-14 Kamil Rytarowski <n54@gmx.com>
11225
11226 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11227 register_t.
11228
6def66f1
KR
112292020-03-14 Kamil Rytarowski <n54@gmx.com>
11230
11231 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11232 it to the ptrace call.
11233 * alpha-bsd-nat.c (store_registers): Likewise.
11234
66eaca97
KR
112352020-03-14 Kamil Rytarowski <n54@gmx.com>
11236
11237 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11238 includes.
11239 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11240 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11241 fill_fpregset): Likewise.
11242
4fed520b
KR
112432020-03-14 Kamil Rytarowski <n54@gmx.com>
11244
11245 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11246 nbsd_nat_target instead of inf_ptrace_target.
11247 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11248 nbsd_nat_target.
11249
2190cf06
KR
112502020-03-14 Kamil Rytarowski <n54@gmx.com>
11251
11252 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11253 register_t.
11254
75c56d3d
KR
112552020-03-14 Kamil Rytarowski <n54@gmx.com>
11256
11257 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11258 it to the ptrace call.
11259 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11260 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11261 * arm-nbsd-nat.c (store_register): Likewise.
11262 * arm-nbsd-nat.c (store_regs): Likewise.
11263 * arm-nbsd-nat.c (store_fp_register): Likewise.
11264 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11265
6018d381
KR
112662020-03-14 Kamil Rytarowski <n54@gmx.com>
11267
11268 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11269 nbsd_nat_target instead of inf_ptrace_target.
11270 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11271 nbsd_nat_target.
11272
013f99f0
KR
112732020-03-14 Kamil Rytarowski <n54@gmx.com>
11274
11275 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11276 it to the ptrace call.
11277 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11278
12753073
KR
112792020-03-14 Kamil Rytarowski <n54@gmx.com>
11280
6227b330
KR
11281 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11282 it to the ptrace call.
11283 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11284
112852020-03-14 Kamil Rytarowski <n54@gmx.com>
11286
11287 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11288 gdb_byte *.
12753073
KR
11289 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11290
d5be5fa4
KR
112912020-03-14 Kamil Rytarowski <n54@gmx.com>
11292
11293 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11294 instead of inf_ptrace_target.
11295 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11296 nbsd_nat_target.
11297
8110f842
KR
112982020-03-14 Kamil Rytarowski <n54@gmx.com>
11299
11300 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11301 register_t.
11302
52feded7
KR
113032020-03-14 Kamil Rytarowski <n54@gmx.com>
11304
11305 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11306 register_t.
11307
25567eee
KR
113082020-03-14 Kamil Rytarowski <n54@gmx.com>
11309
11310 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11311 register_t.
11312
426a9c18
TT
113132020-03-13 Tom Tromey <tom@tromey.com>
11314
11315 * value.h (val_print): Don't declare.
11316 * valprint.h (val_print_array_elements)
11317 (val_print_scalar_formatted, generic_val_print): Don't declare.
11318 * valprint.c (generic_val_print_array): Take a struct value.
11319 (generic_val_print_ptr, generic_val_print_memberptr)
11320 (generic_val_print_bool, generic_val_print_int)
11321 (generic_val_print_char, generic_val_print_complex)
11322 (generic_val_print): Remove.
11323 (generic_value_print): Update.
11324 (do_val_print): Remove unused parameters. Don't call
11325 la_val_print.
11326 (val_print): Remove.
11327 (common_val_print): Update. Don't call value_check_printable.
11328 (val_print_scalar_formatted, val_print_array_elements): Remove.
11329 * rust-lang.c (rust_val_print): Remove.
11330 (rust_language_defn): Update.
11331 * p-valprint.c (pascal_val_print): Remove.
11332 (pascal_value_print_inner): Update.
11333 (pascal_object_print_val_fields, pascal_object_print_val):
11334 Remove.
11335 (pascal_object_print_static_field): Update.
11336 * p-lang.h (pascal_val_print): Don't declare.
11337 * p-lang.c (pascal_language_defn): Update.
11338 * opencl-lang.c (opencl_language_defn): Update.
11339 * objc-lang.c (objc_language_defn): Update.
11340 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11341 * m2-lang.h (m2_val_print): Don't declare.
11342 * m2-lang.c (m2_language_defn): Update.
11343 * language.h (struct language_defn) <la_val_print>: Remove.
11344 * language.c (unk_lang_value_print_inner): Rename. Change
11345 argument types.
11346 (unknown_language_defn, auto_language_defn): Update.
11347 * go-valprint.c (go_val_print): Remove.
11348 * go-lang.h (go_val_print): Don't declare.
11349 * go-lang.c (go_language_defn): Update.
11350 * f-valprint.c (f_val_print): Remove.
11351 * f-lang.h (f_value_print): Don't declare.
11352 * f-lang.c (f_language_defn): Update.
11353 * d-valprint.c (d_val_print): Remove.
11354 * d-lang.h (d_value_print): Don't declare.
11355 * d-lang.c (d_language_defn): Update.
11356 * cp-valprint.c (cp_print_value_fields)
11357 (cp_print_value_fields_rtti, cp_print_value): Remove.
11358 (cp_print_static_field): Update.
11359 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11360 (c_val_print_struct, c_val_print_union, c_val_print_int)
11361 (c_val_print_memberptr, c_val_print): Remove.
11362 * c-lang.h (c_val_print_array, cp_print_value_fields)
11363 (cp_print_value_fields_rtti): Don't declare.
11364 * c-lang.c (c_language_defn, cplus_language_defn)
11365 (asm_language_defn, minimal_language_defn): Update.
11366 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11367 (ada_val_print_enum): Take a struct value.
11368 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11369 (ada_val_print): Remove.
11370 (ada_value_print_1): Update.
11371 (printable_val_type): Remove.
11372 * ada-lang.h (ada_val_print): Don't declare.
11373 * ada-lang.c (ada_language_defn): Update.
11374
42331a1e
TT
113752020-03-13 Tom Tromey <tom@tromey.com>
11376
11377 * valprint.c (do_val_print): Update.
11378 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11379 a struct value.
11380 (value_to_value_object_no_release): Declare.
11381 * python/py-value.c (value_to_value_object_no_release): New
11382 function.
11383 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11384 struct value.
11385 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11386 function.
11387 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11388 a struct value.
11389 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11390 Declare.
11391 (gdbscm_apply_val_pretty_printer): Take a struct value.
11392 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11393 value.
11394 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11395 value.
11396 * extension-priv.h (struct extension_language_ops)
11397 <apply_val_pretty_printer>: Take a struct value.
11398 * cp-valprint.c (cp_print_value): Create a struct value.
11399 (cp_print_value): Update.
11400
3a916a97
TT
114012020-03-13 Tom Tromey <tom@tromey.com>
11402
11403 * ada-valprint.c (print_field_values): Call common_val_print.
11404
b59eac37
TT
114052020-03-13 Tom Tromey <tom@tromey.com>
11406
11407 * ada-valprint.c (val_print_packed_array_elements): Remove
11408 bitoffset and val parameters. Call common_val_print.
11409 (ada_val_print_string): Remove offset, address, and original_value
11410 parameters.
11411 (ada_val_print_array): Update.
11412 (ada_value_print_array): New function.
11413 (ada_value_print_1): Call it.
11414
03371129
TT
114152020-03-13 Tom Tromey <tom@tromey.com>
11416
11417 * ada-valprint.c (ada_value_print): Use common_val_print.
11418
2e088f8b
TT
114192020-03-13 Tom Tromey <tom@tromey.com>
11420
11421 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11422
39ef85a8
TT
114232020-03-13 Tom Tromey <tom@tromey.com>
11424
11425 * ada-valprint.c (ada_value_print_num): New function.
11426 (ada_value_print_1): Use it.
11427
b9fa6e07
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11431
416595d6
TT
114322020-03-13 Tom Tromey <tom@tromey.com>
11433
11434 * ada-valprint.c (ada_value_print_ptr): New function.
11435 (ada_value_print_1): Use it.
11436
5b5e15ec
TT
114372020-03-13 Tom Tromey <tom@tromey.com>
11438
11439 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11440 call common_val_print.
11441 (ada_val_print_1): Update.
11442 (ada_value_print_1): New function.
11443 (ada_value_print_inner): Rewrite.
11444
fbf54e75
TT
114452020-03-13 Tom Tromey <tom@tromey.com>
11446
11447 * cp-valprint.c (cp_print_value_fields): Update.
11448 (cp_print_value): New function.
11449
64b653ca
TT
114502020-03-13 Tom Tromey <tom@tromey.com>
11451
11452 * m2-valprint.c (m2_value_print_inner): Use
11453 cp_print_value_fields.
11454 * cp-valprint.c (cp_print_value_fields): New function.
11455 * c-valprint.c (c_value_print_struct): New function.
11456 (c_value_print_inner): Use c_value_print_struct.
11457 * c-lang.h (cp_print_value_fields): Declare.
11458
6999f067
TT
114592020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * c-valprint.c (c_value_print_array): New function.
11462 (c_value_print_inner): Use it.
11463
ce80b8bd
TT
114642020-03-13 Tom Tromey <tom@tromey.com>
11465
11466 * c-valprint.c (c_value_print_memberptr): New function.
11467 (c_value_print_inner): Use it.
11468
2faac269
TT
114692020-03-13 Tom Tromey <tom@tromey.com>
11470
11471 * c-valprint.c (c_value_print_int): New function.
11472 (c_value_print_inner): Use it.
11473
da3e2c29
TT
114742020-03-13 Tom Tromey <tom@tromey.com>
11475
11476 * c-valprint.c (c_value_print_ptr): New function.
11477 (c_value_print_inner): Use it.
11478
50836231
TT
114792020-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * c-valprint.c (c_value_print_inner): Rewrite.
11482
4f412b6e
TT
114832020-03-13 Tom Tromey <tom@tromey.com>
11484
11485 * valprint.c (generic_value_print_complex): New function.
11486 (generic_value_print): Use it.
11487
f5354008
TT
114882020-03-13 Tom Tromey <tom@tromey.com>
11489
11490 * valprint.c (generic_val_print_float): Don't call
11491 val_print_scalar_formatted.
11492 (generic_val_print, generic_value_print): Update.
11493
3eec3b05
TT
114942020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * valprint.c (generic_value_print_char): New function
11497 (generic_value_print): Use it.
11498
fdddfccb
TT
114992020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * valprint.c (generic_value_print_int): New function.
11502 (generic_value_print): Use it.
11503
6dde7521
TT
115042020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * valprint.c (generic_value_print_bool): New function.
11507 (generic_value_print): Use it.
11508
4112d2e6
TT
115092020-03-13 Tom Tromey <tom@tromey.com>
11510
11511 * valprint.c (generic_val_print_func): Simplify.
11512 (generic_val_print, generic_value_print): Update.
11513
65786af6
TT
115142020-03-13 Tom Tromey <tom@tromey.com>
11515
11516 * valprint.c (generic_val_print_flags): Remove.
11517 (generic_val_print, generic_value_print): Update.
11518 (val_print_type_code_flags): Add original_value parameter.
11519
40f3ce18
TT
115202020-03-13 Tom Tromey <tom@tromey.com>
11521
11522 * valprint.c (generic_val_print): Update.
11523 (generic_value_print): Update.
11524 * valprint.c (generic_val_print_enum): Don't call
11525 val_print_scalar_formatted.
11526
2a5b130b
TT
115272020-03-13 Tom Tromey <tom@tromey.com>
11528
11529 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11530 * valprint.c (generic_value_print_ptr): New function.
11531
abc66ce9
TT
115322020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * valprint.c (generic_value_print): Rewrite.
11535
07a32858
TT
115362020-03-13 Tom Tromey <tom@tromey.com>
11537
11538 * p-valprint.c (pascal_object_print_value_fields)
11539 (pascal_object_print_value): New functions.
11540
64d64d3a
TT
115412020-03-13 Tom Tromey <tom@tromey.com>
11542
11543 * p-valprint.c (pascal_value_print_inner): Rewrite.
11544
6a95a1f5
TT
115452020-03-13 Tom Tromey <tom@tromey.com>
11546
11547 * f-valprint.c (f_value_print_innner): Rewrite.
11548
59fcdac6
TT
115492020-03-13 Tom Tromey <tom@tromey.com>
11550
11551 * m2-valprint.c (m2_print_unbounded_array): New overload.
11552 (m2_print_unbounded_array): Update.
11553 (m2_print_array_contents): Take a struct value.
11554 (m2_value_print_inner): Rewrite.
11555
d133c3e1
TT
115562020-03-13 Tom Tromey <tom@tromey.com>
11557
11558 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11559 (d_value_print_inner): New function.
11560 * d-lang.h (d_value_print_inner): Declare.
11561 * d-lang.c (d_language_defn): Use d_value_print_inner.
11562
23b0f06b
TT
115632020-03-13 Tom Tromey <tom@tromey.com>
11564
11565 * go-valprint.c (go_value_print_inner): New function.
11566 * go-lang.h (go_value_print_inner): Declare.
11567 * go-lang.c (go_language_defn): Use go_value_print_inner.
11568
5f56f7cb
TT
115692020-03-13 Tom Tromey <tom@tromey.com>
11570
11571 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11572 API.
11573 (rust_val_print): Rewrite.
11574 (rust_value_print_inner): New function, from rust_val_print.
11575 (rust_language_defn): Use rust_value_print_inner.
11576
26792ee0
TT
115772020-03-13 Tom Tromey <tom@tromey.com>
11578
11579 * ada-valprint.c (ada_value_print_inner): New function.
11580 * ada-lang.h (ada_value_print_inner): Declare.
11581 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11582
24051bbe
TT
115832020-03-13 Tom Tromey <tom@tromey.com>
11584
11585 * f-valprint.c (f_value_print_innner): New function.
11586 * f-lang.h (f_value_print_innner): Declare.
11587 * f-lang.c (f_language_defn): Use f_value_print_innner.
11588
c0941be6
TT
115892020-03-13 Tom Tromey <tom@tromey.com>
11590
11591 * p-valprint.c (pascal_value_print_inner): New function.
11592 * p-lang.h (pascal_value_print_inner): Declare.
11593 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11594
62c4663d
TT
115952020-03-13 Tom Tromey <tom@tromey.com>
11596
11597 * m2-valprint.c (m2_value_print_inner): New function.
11598 * m2-lang.h (m2_value_print_inner): Declare.
11599 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11600
62182190
TT
116012020-03-13 Tom Tromey <tom@tromey.com>
11602
11603 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11604 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11605 * c-valprint.c (c_value_print_inner): New function.
11606 * c-lang.h (c_value_print_inner): Declare.
11607 * c-lang.c (c_language_defn, cplus_language_defn)
11608 (asm_language_defn, minimal_language_defn): Use
11609 c_value_print_inner.
11610
1e592a8a
TT
116112020-03-13 Tom Tromey <tom@tromey.com>
11612
11613 * p-valprint.c (pascal_object_print_value_fields): Now static.
11614 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11615
7fe471e9
TT
116162020-03-13 Tom Tromey <tom@tromey.com>
11617
11618 * c-valprint.c (c_val_print_array): Simplify.
11619
d121c6ce
TT
116202020-03-13 Tom Tromey <tom@tromey.com>
11621
11622 * valprint.c (value_print_array_elements): New function.
11623 * valprint.h (value_print_array_elements): Declare.
11624
4dba70ee
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11628 * mips-tdep.c (mips_print_register): Use
11629 value_print_scalar_formatted.
11630
4f9ae810
TT
116312020-03-13 Tom Tromey <tom@tromey.com>
11632
11633 * valprint.h (value_print_scalar_formatted): Declare.
11634 * valprint.c (value_print_scalar_formatted): New function.
11635
156bfec9
TT
116362020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * valprint.h (generic_value_print): Declare.
11639 * valprint.c (generic_value_print): New function.
11640
2b4e573d
TT
116412020-03-13 Tom Tromey <tom@tromey.com>
11642
11643 * valprint.c (do_val_print): Call la_value_print_inner, if
11644 available.
11645 * rust-lang.c (rust_language_defn): Update.
11646 * p-lang.c (pascal_language_defn): Update.
11647 * opencl-lang.c (opencl_language_defn): Update.
11648 * objc-lang.c (objc_language_defn): Update.
11649 * m2-lang.c (m2_language_defn): Update.
11650 * language.h (struct language_defn) <la_value_print_inner>: New
11651 member.
11652 * language.c (unknown_language_defn, auto_language_defn): Update.
11653 * go-lang.c (go_language_defn): Update.
11654 * f-lang.c (f_language_defn): Update.
11655 * d-lang.c (d_language_defn): Update.
11656 * c-lang.c (c_language_defn, cplus_language_defn)
11657 (asm_language_defn, minimal_language_defn): Update.
11658 * ada-lang.c (ada_language_defn): Update.
11659
a1f6a07c
TT
116602020-03-13 Tom Tromey <tom@tromey.com>
11661
11662 * c-valprint.c (c_value_print): Use common_val_print.
11663
410cf315
TT
116642020-03-13 Tom Tromey <tom@tromey.com>
11665
11666 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11667
72a45c93
TT
116682020-03-13 Tom Tromey <tom@tromey.com>
11669
11670 * f-valprint.c (f77_print_array_1, f_val_print): Use
11671 common_val_print.
11672
040f66bd
TT
116732020-03-13 Tom Tromey <tom@tromey.com>
11674
11675 * riscv-tdep.c (riscv_print_one_register_info): Use
11676 common_val_print.
11677
a6e05a6c
TT
116782020-03-13 Tom Tromey <tom@tromey.com>
11679
11680 * mi/mi-main.c (output_register): Use common_val_print.
11681
3444c526
TT
116822020-03-13 Tom Tromey <tom@tromey.com>
11683
11684 * infcmd.c (default_print_one_register_info): Use
11685 common_val_print.
11686
c2a44efe
TT
116872020-03-13 Tom Tromey <tom@tromey.com>
11688
11689 * valprint.h (common_val_print_checked): Declare.
11690 * valprint.c (common_val_print_checked): New function.
11691 * stack.c (print_frame_arg): Use common_val_print_checked.
11692
b0c26e99
TT
116932020-03-13 Tom Tromey <tom@tromey.com>
11694
11695 * valprint.c (do_val_print): New function, from val_print.
11696 (val_print): Use do_val_print.
11697 (common_val_print): Use do_val_print.
11698
ce3acbe9
TT
116992020-03-13 Tom Tromey <tom@tromey.com>
11700
11701 * valprint.c (value_print): Use scoped_value_mark.
11702
96c7f873
TV
117032020-03-13 Tom de Vries <tdevries@suse.de>
11704
11705 PR symtab/25646
11706 * psymtab.c (partial_symtab::partial_symtab): Don't set
11707 globals_offset and statics_offset. Push element onto
11708 current_global_psymbols and current_static_psymbols stacks.
11709 (concat): New function.
11710 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11711 element from current_global_psymbols and current_static_psymbols
11712 stacks. Concat popped elements to global_psymbols and
11713 static_symbols.
11714 (add_psymbol_to_list): Use current_global_psymbols and
11715 current_static_psymbols stacks.
11716 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11717 current_static_psymbols fields.
11718
6ba0a321
CB
117192020-03-12 Christian Biesinger <cbiesinger@google.com>
11720
11721 * corelow.c (sniff_core_bfd): Remove.
11722 (class core_target) <m_core_vec>: Remove.
11723 (core_target::core_target): Update.
11724 (core_file_fns): Remove.
11725 (deprecated_add_core_fns): Remove.
11726 (default_core_sniffer): Remove.
11727 (sniff_core_bfd): Remove.
11728 (default_check_format): Remove.
11729 (gdb_check_format): Remove.
11730 (core_target_open): Update.
11731 (core_target::get_core_register_section): Update.
11732 (get_core_registers_cb): Update.
11733 (core_target::fetch_registers): Update.
11734 * gdbcore.h (struct core_fns): Remove.
11735 (deprecated_add_core_fns): Remove.
11736 (default_core_sniffer): Remove.
11737 (default_check_format): Remove.
11738
227031b2
TT
117392020-03-12 Tom Tromey <tom@tromey.com>
11740
11741 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11742 CORE_ADDR.
11743 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11744
53807e9f
TT
117452020-03-12 Tom Tromey <tom@tromey.com>
11746
11747 * remote.c (remote_target::download_tracepoint)
11748 (remote_target::enable_tracepoint)
11749 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11750 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11751 sprintf_vma.
11752
64f25102
TT
117532020-03-12 Tom Tromey <tom@tromey.com>
11754
11755 * symfile-mem.c: Update CORE_ADDR size assert.
11756
272cd5a3
SM
117572020-03-12 Simon Marchi <simon.marchi@efficios.com>
11758
11759 * selftest.m4: Move to gdbsupport/.
11760 * acinclude.m4: Update path to selftest.m4.
11761
74cd3f9d
SM
117622020-03-12 Simon Marchi <simon.marchi@efficios.com>
11763
11764 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11765 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11766 gdbarch-selfselftests.c and selftest-arch.c.
11767 (SUBDIR_UNITTESTS_OBS): Rename to...
11768 (SELFTESTS_OBS): ... this.
11769 (COMMON_SFILES): Remove disasm-selftests.c and
11770 gdbarch-selftests.c.
11771 * configure.ac: Don't add selftest-arch.{c,o} to
11772 CONFIG_{SRCS,OBS}.
11773 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11774 preprocessor conditions.
11775
db6878ac
SM
117762020-03-12 Simon Marchi <simon.marchi@efficios.com>
11777
11778 * configure.ac: Don't source bfd/development.sh.
11779 * selftest.m4: Modify comment.
11780 * configure: Re-generate.
11781
4d696a5c
SM
117822020-03-12 Simon Marchi <simon.marchi@efficios.com>
11783
11784 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11785 not "true" or "false".
11786 * configure: Re-generate.
11787
8dd8e1c7
CB
117882020-03-12 Christian Biesinger <cbiesinger@google.com>
11789
11790 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11791 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11792 renamed to arm_nbsd_supply_gregset.
11793 (fetch_register): Update to call arm_nbsd_supply_gregset.
11794 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11795 (arm_netbsd_nat_target::fetch_registers): Update.
11796 (fetch_elfcore_registers): Removed.
11797 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11798 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11799 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11800 not require NetBSD system headers.
11801 (arm_nbsd_regset): New struct.
11802 (arm_nbsd_iterate_over_regset_sections): New function.
11803 (arm_netbsd_init_abi_common): Updated to call
11804 set_gdbarch_iterate_over_regset_sections.
11805 * arm-nbsd-tdep.h: New file.
11806
dd69bf7a
KB
118072020-03-11 Kevin Buettner <kevinb@redhat.com>
11808
11809 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11810 recursion.
11811
a0761e34
SM
118122020-03-11 Simon Marchi <simon.marchi@efficios.com>
11813
11814 * configure: Re-generate.
11815
e7a82140
TT
118162020-03-11 Tom Tromey <tromey@adacore.com>
11817
11818 * ada-typeprint.c (print_choices): Fix comment.
11819
dcc050c8
AB
118202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11821
11822 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11823 previous item in the list, when the list has no items.
11824
1c33af77
TV
118252020-03-11 Tom de Vries <tdevries@suse.de>
11826
11827 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11828 PROP_LOCLIST handling code.
11829
8c95582d
AB
118302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11831
11832 * buildsym-legacy.c (record_line): Pass extra parameter to
11833 record_line.
11834 * buildsym.c (buildsym_compunit::record_line): Take an extra
11835 parameter, reduce duplication in the line table, and record the
11836 is_stmt flag in the line table.
11837 * buildsym.h (buildsym_compunit::record_line): Add extra
11838 parameter.
11839 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11840 non-statement lines.
11841 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11842 this to the symtab builder.
11843 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11844 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11845 through to dwarf_record_line_1.
11846 * infrun.c (process_event_stop_test): When stepping, don't stop at
11847 a non-statement instruction, and only refresh the step info when
11848 we land in the middle of a line's range. Also add an extra
11849 comment.
11850 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11851 field.
11852 * record-btrace.c (btrace_find_line_range): Only record lines
11853 marked as is-statement.
11854 * stack.c (frame_show_address): Show the frame address if we are
11855 in a non-statement sal.
11856 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11857 (maintenance_print_one_line_table): Print a header for the is_stmt
11858 column, and include is_stmt information in the output.
11859 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11860 preference to non-statements.
11861 (find_pcs_for_symtab_line): Prefer is-statement entries.
11862 (find_line_common): Likewise.
11863 * symtab.h (struct linetable_entry): Add is_stmt field.
11864 (struct symtab_and_line): Likewise.
11865 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11866 arranging the line table.
11867
e4003a34
TV
118682020-03-07 Tom de Vries <tdevries@suse.de>
11869
11870 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11871 DIE.
11872
e8932576
TT
118732020-03-07 Tom Tromey <tom@tromey.com>
11874
11875 * valops.c (value_literal_complex): Remove obsolete comment.
11876 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11877 comment.
11878
29734269
SM
118792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11880
11881 * infrun.h: Forward-declare thread_info.
11882 (set_step_info): Add thread_info parameter, add doc.
11883 * infrun.c (set_step_info): Add thread_info parameter, move doc
11884 to header.
11885 * infrun.c (process_event_stop_test): Pass thread to
11886 set_step_info call.
11887 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11888 set_step_info.
11889 (prepare_one_step): Add thread_info parameter, pass it to
11890 set_step_frame and prepare_one_step (recursive) call.
11891 (step_1): Pass thread to prepare_one_step call.
11892 (step_command_fsm::should_stop): Pass thread to
11893 prepare_one_step.
11894 (until_next_fsm): Pass thread to set_step_frame call.
11895 (finish_command): Pass thread to set_step_info call.
11896
b7d64b29
HD
118972020-03-06 Hannes Domani <ssbssa@yahoo.de>
11898
11899 * windows-tdep.c (windows_solib_create_inferior_hook):
11900 Check if inferior is running.
11901
09f2921c
TV
119022020-03-06 Tom de Vries <tdevries@suse.de>
11903
11904 * NEWS: Fix "the the".
11905 * ctfread.c: Same.
11906
fd760e79
TV
119072020-03-06 Tom de Vries <tdevries@suse.de>
11908
11909 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11910
20ea4a60
AB
119112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11912
11913 * .dir-locals.el: Add a comment referencing the other copies of
11914 this file.
11915
0afbabf0
JB
119162020-03-05 John Baldwin <jhb@FreeBSD.org>
11917
11918 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11919 psargs.
11920
842806cb
TBA
119212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11922
11923 * .gitattributes: New file.
11924
be1e3d3e
TT
119252020-03-04 Tom Tromey <tom@tromey.com>
11926
11927 * symmisc.c (print_symbol_bcache_statistics)
11928 (print_objfile_statistics): Update.
11929 * symfile.c (allocate_symtab): Use intern.
11930 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11931 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11932 macro_cache>: Remove.
11933 <string_cache>: New member.
11934 (struct objfile) <intern>: New methods.
11935 * elfread.c (elf_symtab_read): Use intern.
11936 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11937 (dwarf2_compute_name, dwarf2_physname)
11938 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11939 names.
11940 (guess_partial_die_structure_name): Update.
11941 (partial_die_info::fixup): Intern name.
11942 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11943 name.
11944 (dwarf2_name): Intern name. Update.
11945 * buildsym.c (buildsym_compunit::get_macro_table): Use
11946 string_cache.
11947
4e7625fd
TT
119482020-03-04 Tom Tromey <tom@tromey.com>
11949
11950 * jit.c (bfd_open_from_target_memory): Make "target" const.
11951 * corefile.c (gnutarget): Now const.
11952 * gdbcore.h (gnutarget): Now const.
11953
46f9f931
HD
119542020-03-04 Hannes Domani <ssbssa@yahoo.de>
11955
11956 * NEWS: Mention support for WOW64 processes.
11957 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11958 (amd64_windows_segment_register_p): Remove static.
11959 (_initialize_amd64_windows_nat): Update.
11960 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11961 * i386-windows-nat.c (context_offset): Update.
11962 (i386_mappings): Rename and remove static.
11963 (i386_windows_segment_register_p): Remove static.
11964 (_initialize_i386_windows_nat): Update.
11965 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11966 (STATUS_WX86_SINGLE_STEP): New macro.
11967 (EnumProcessModulesEx): New macro.
11968 (Wow64SuspendThread): New macro.
11969 (Wow64GetThreadContext): New macro.
11970 (Wow64SetThreadContext): New macro.
11971 (Wow64GetThreadSelectorEntry): New macro.
11972 (windows_set_context_register_offsets): Add static.
11973 (windows_set_segment_register_p): Likewise.
11974 (windows_add_thread): Adapt for WOW64 processes.
11975 (windows_fetch_one_register): Likewise.
11976 (windows_nat_target::fetch_registers): Likewise.
11977 (windows_store_one_register): Likewise.
11978 (display_selector): Likewise.
11979 (display_selectors): Likewise.
11980 (handle_exception): Likewise.
11981 (windows_continue): Likewise.
11982 (windows_nat_target::resume): Likewise.
11983 (windows_add_all_dlls): Likewise.
11984 (do_initial_windows_stuff): Likewise.
11985 (windows_nat_target::attach): Likewise.
11986 (windows_get_exec_module_filename): Likewise.
11987 (windows_nat_target::create_inferior): Likewise.
11988 (windows_xfer_siginfo): Likewise.
11989 (_initialize_loadable): Initialize Wow64SuspendThread,
11990 Wow64GetThreadContext, Wow64SetThreadContext,
11991 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11992 * windows-nat.h (windows_set_context_register_offsets):
11993 Remove declaration.
11994 (windows_set_segment_register_p): Likewise.
11995 (i386_windows_segment_register_p): Add declaration.
11996 (amd64_windows_segment_register_p): Likewise.
11997
440cf44e
LM
119982020-03-04 Luis Machado <luis.machado@linaro.org>
11999
12000 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12001 in "info registers" for AArch64/ARM.
12002
12003 The change caused "info registers" to not print GPR's.
12004
12005 gdb/ChangeLog:
12006
12007 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12008
12009 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12010 when reg->group is empty and reggroup is not.
12011
1009d92f
TT
120122020-03-03 Tom Tromey <tromey@adacore.com>
12013
12014 * dwarf2/frame.c (struct dwarf2_frame_cache)
12015 <checked_tailcall_bottom, entry_cfa_sp_offset,
12016 entry_cfa_sp_offset_p>: Remove members.
12017 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12018 (dwarf2_frame_prev_register): Don't call
12019 dwarf2_tailcall_sniffer_first.
12020 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12021 * frame-unwind.c (add_unwinder): New fuction.
12022 (frame_unwind_init): Use it. Add tailcall unwinder.
12023
5e5d66b6
AB
120242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12025 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12026
12027 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12028 value should be printed as true.
12029
584cf46d
HD
120302020-03-03 Hannes Domani <ssbssa@yahoo.de>
12031
12032 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12033 (windows_init_abi): Set and use windows_so_ops.
12034
7b973adc
SDJ
120352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12036
12037 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12038 when verifying if dealing with a convenience variable.
12039
bb7b70ab
LM
120402020-03-03 Luis Machado <luis.machado@linaro.org>
12041
12042 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12043
9822cb57
SM
120442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12045
12046 * infrun.c (gdbarch_supports_displaced_stepping): New.
12047 (use_displaced_stepping): Break up conditions in smaller pieces.
12048 Use gdbarch_supports_displaced_stepping.
12049 (displaced_step_prepare_throw): Use
12050 gdbarch_supports_displaced_stepping.
12051
63e163f2
AB
120522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12053
12054 * NEWS: Mention new behaviour of the history filename.
12055 * top.c (write_history_p): Add comment.
12056 (show_write_history_p): Add header comment, give a different
12057 message when history writing is on, but the history filename is
12058 empty.
12059 (history_filename): Add comment.
12060 (history_filename_empty): New function.
12061 (show_history_filename): Add header comment, give a different
12062 message when the filename is empty.
12063 (init_history): Compare history_filename against nullptr, and only
12064 read history if the filename is not empty.
12065 (set_history_filename): Add header comment, and only make
12066 non-empty filenames absolute.
12067 (init_main): Make the filename argument to 'set history filename'
12068 optional.
12069
81b86b97
CB
120702020-03-02 Christian Biesinger <cbiesinger@google.com>
12071
12072 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12073 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12074 (fetch_fp_register): Update.
12075 (fetch_fp_regs): Update.
12076 (store_fp_register): Update.
12077 (store_fp_regs): Update.
12078 (arm_netbsd_nat_target::read_description): New function.
12079 (fetch_elfcore_registers): Update.
12080
24ed6739
AB
120812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12082
12083 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12084 general_thread if the stop reply is missing a thread-id.
12085 (remote_target::process_stop_reply): Use the first non-exited
12086 thread if the target didn't pass a thread-id.
12087 * infrun.c (do_target_wait): Move call to
12088 switch_to_inferior_no_thread to ....
12089 (do_target_wait_1): ... here.
12090
a84bb2a0
JT
120912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12092
12093 * debuginfod-support.c: Include defs.h first.
12094
658dadf0
TV
120952020-02-28 Tom de Vries <tdevries@suse.de>
12096
12097 * symfile.c (set_initial_language): Use default language for lookup.
12098
4ebe4877
SM
120992020-02-28 Simon Marchi <simon.marchi@efficios.com>
12100
12101 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12102 reader variable, pass `this` to read_cutu_die_from_dwo.
12103
e5da1139
AM
121042020-02-27 Aaron Merey <amerey@redhat.com>
12105
12106 * source.c (open_source_file): Check for nullptr when computing
12107 srcpath.
12108
317f7127
TT
121092020-02-27 Tom Tromey <tromey@adacore.com>
12110
12111 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12112 member.
12113 (dwarf2_add_field): Don't update nfields.
12114 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12115
3104d9ee
AB
121162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12117
12118 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12119 abs.
12120
b83470bf
TT
121212020-02-26 Tom Tromey <tom@tromey.com>
12122
12123 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12124 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12125 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12126 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12127 per_cu_data.
12128
edfe0a0c
TT
121292020-02-26 Tom Tromey <tom@tromey.com>
12130
12131 * dwarf2/index-write.c (psym_index_map): Change type.
12132 (add_address_entry_worker, write_one_signatured_type)
12133 (recursively_count_psymbols, recursively_write_psymbols)
12134 (class debug_names, psyms_seen_size, write_gdbindex)
12135 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12136
0d79cdc4
AM
121372020-02-26 Aaron Merey <amerey@redhat.com>
12138
12139 * Makefile.in: Handle optional debuginfod support.
12140 * NEWS: Update.
12141 * README: Add --with-debuginfod summary.
12142 * config.in: Regenerate.
12143 * configure: Regenerate.
12144 * configure.ac: Handle optional debuginfod support.
12145 * debuginfod-support.c: debuginfod helper functions.
12146 * debuginfod-support.h: Ditto.
12147 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12148 summary.
12149 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12150 when a dwz file cannot be found.
12151 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12152 debuginfo file cannot be found.
12153 * source.c (open_source_file): Query debuginfod servers when a
12154 source file cannot be found.
12155 * top.c (print_gdb_configuration): Include
12156 --{with,without}-debuginfod in the output.
12157
b65ce565
JG
121582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12159
12160 * thread.c (thr_try_catch_cmd): Print thread name.
12161
d4c9a4f8
SM
121622020-02-26 Simon Marchi <simon.marchi@efficios.com>
12163
12164 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12165 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12166 dwarf2_fetch_die_type_sect_off): Move to...
12167 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12168 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12169 dwarf2_fetch_die_type_sect_off): ... here.
12170 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12171 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12172 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12173
0dce4280
TV
121742020-02-26 Tom de Vries <tdevries@suse.de>
12175
12176 PR gdb/25603
12177 * symfile.c (set_initial_language): Exit-early if
12178 language_mode == language_mode_manual.
12179
450a1bfc
SM
121802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12181
12182 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12183 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12184 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12185
9e80cfa1
AB
121862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12187
12188 * gdbtypes.c (create_array_type_with_stride): Handle negative
12189 array strides.
12190 * valarith.c (value_subscripted_rvalue): Likewise.
12191
09624f1f
LM
121922020-02-25 Luis Machado <luis.machado@linaro.org>
12193
12194 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12195
8cb5117c
SM
121962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12197
12198 * loc.h (dwarf2_get_die_type): Move to...
12199 * read.h (dwarf2_get_die_type): ... here.
12200 * read.c (dwarf2_get_die_type): Move doc to header.
12201
c325c44e
JB
122022020-02-25 Joel Brobecker <brobecker@adacore.com>
12203
12204 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12205 'gnulib/Makefile.in' to the list.
12206
4ac93832
TT
122072020-02-24 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12210 Remove.
12211 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12212 XOBNEWVEC.
12213
197400e8
TT
122142020-02-24 Tom Tromey <tom@tromey.com>
12215
12216 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12217 New method.
12218 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12219 (dw2_do_instantiate_symtab, dw2_get_file_names)
12220 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12221
76935768
TT
122222020-02-24 Tom Tromey <tom@tromey.com>
12223
12224 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12225 make_scoped_restore.
12226 (dwarf2_psymtab::read_symtab): Don't clear
12227 reading_partial_symbols.
12228
a88ef40d
TV
122292020-02-24 Tom de Vries <tdevries@suse.de>
12230
12231 PR gdb/25592
12232 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12233
c9af6521
TV
122342020-02-24 Tom de Vries <tdevries@suse.de>
12235
12236 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12237 commands layout next/prev/regs.
12238
5707a07a
TT
122392020-02-22 Tom Tromey <tom@tromey.com>
12240
12241 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12242 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12243
3b0fb49e
TT
122442020-02-22 Tom Tromey <tom@tromey.com>
12245
12246 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12247
283be8bf
TT
122482020-02-22 Tom Tromey <tom@tromey.com>
12249
12250 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12251 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12252 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12253 * tui/tui.c (_initialize_tui): Add usage text.
12254
ca793b96
TT
122552020-02-22 Tom Tromey <tom@tromey.com>
12256
12257 * tui/tui-win.c (tui_set_focus_command)
12258 (tui_set_win_height_command): Use error_no_arg.
12259 (_initialize_tui_win): Update help text.
12260 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12261
432b5c40
TT
122622020-02-22 Tom Tromey <tom@tromey.com>
12263
12264 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12265 * tui/tui-disasm.h (struct tui_disasm_window)
12266 <display_start_addr>: Declare.
12267 * tui/tui-source.h (struct tui_source_window)
12268 <display_start_addr>: Declare.
12269 * tui/tui-winsource.h (struct tui_source_window_base)
12270 <show_source_line, display_start_addr>: New methods.
12271 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12272 Rename and move to protected section.
12273 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12274 (tui_source_window_base::do_erase_source_content): Update.
12275 (tui_source_window_base::show_source_line): Now a method.
12276 (tui_source_window_base::show_source_content)
12277 (tui_source_window_base::tui_source_window_base)
12278 (tui_source_window_base::rerender)
12279 (tui_source_window_base::refill)
12280 (tui_source_window_base::do_scroll_horizontal)
12281 (tui_source_window_base::set_is_exec_point_at)
12282 (tui_source_window_base::update_breakpoint_info)
12283 (tui_source_window_base::update_exec_info): Update.
12284 * tui/tui-source.c (tui_source_window::set_contents)
12285 (tui_source_window::showing_source_p)
12286 (tui_source_window::do_scroll_vertical)
12287 (tui_source_window::location_matches_p)
12288 (tui_source_window::line_is_displayed): Update.
12289 (tui_source_window::display_start_addr): New method.
12290 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12291 (tui_disasm_window::do_scroll_vertical)
12292 (tui_disasm_window::location_matches_p): Update.
12293 (tui_disasm_window::display_start_addr): New method.
12294
01b1af32
TT
122952020-02-22 Tom Tromey <tom@tromey.com>
12296
12297 * NEWS: Add entry for gdb.register_window_type.
12298 * tui/tui-layout.h (window_factory): New typedef.
12299 (tui_register_window): Declare.
12300 * tui/tui-layout.c (saved_tui_windows): New global.
12301 (tui_apply_current_layout): Use it.
12302 (tui_register_window): New function.
12303 * python/python.c (do_start_initialization): Call
12304 gdbpy_initialize_tui.
12305 (python_GdbMethods): Add "register_window_type" function.
12306 * python/python-internal.h (gdbpy_register_tui_window)
12307 (gdbpy_initialize_tui): Declare.
12308 * python/py-tui.c: New file.
12309 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12310
fc96d20b
TT
123112020-02-22 Tom Tromey <tom@tromey.com>
12312
12313 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12314
935c78c0
TT
123152020-02-22 Tom Tromey <tom@tromey.com>
12316
12317 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12318 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12319 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12320 (tui_set_win_focus_to): Move from tui-win.c.
12321
0240c8f1
TT
123222020-02-22 Tom Tromey <tom@tromey.com>
12323
12324 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12325 functions.
12326 (known_window_types): New global.
12327 (tui_get_window_by_name): Reimplement.
12328 (initialize_known_windows): New function.
12329 (validate_window_name): Rewrite.
12330 (_initialize_tui_layout): Call initialize_known_windows.
12331
fdb01f0c
TT
123322020-02-22 Tom Tromey <tom@tromey.com>
12333
12334 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12335 Remove constants.
12336 * tui/tui-winsource.h (struct tui_source_window_base)
12337 <tui_source_window_base>: Remove parameter.
12338 * tui/tui-winsource.c
12339 (tui_source_window_base::tui_source_window_base): Remove
12340 parameter.
12341 (tui_source_window_base::refill): Update.
12342 * tui/tui-stack.h (struct tui_locator_window)
12343 <tui_locator_window>: Update.
12344 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12345 Default the constructor.
12346 * tui/tui-regs.h (struct tui_data_item_window)
12347 <tui_data_item_window>: Default the constructor.
12348 (struct tui_data_window) <tui_data_window>: Likewise.
12349 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12350 Default the constructor.
12351 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12352 Default the constructor.
12353 <type>: Remove.
12354 (struct tui_win_info) <tui_win_info>: Default the constructor.
12355 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12356 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12357 Default the constructor.
12358
865a5aec
TT
123592020-02-22 Tom Tromey <tom@tromey.com>
12360
12361 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12362 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12363 * tui/tui-win.c (tui_resize_all): Don't call
12364 tui_delete_invisible_windows.
12365 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12366 done.
12367 (tui_set_layout): Update.
12368 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12369 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12370 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12371
e098d18c
TT
123722020-02-22 Tom Tromey <tom@tromey.com>
12373
12374 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12375 correctly.
12376
eb9c8874
TT
123772020-02-22 Tom Tromey <tom@tromey.com>
12378
12379 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12380
7eed1a8e
TT
123812020-02-22 Tom Tromey <tom@tromey.com>
12382
12383 * tui/tui-winsource.h (struct tui_source_window_iterator)
12384 <inner_iterator>: New etytypedef.
12385 <tui_source_window_iterator>: Take "end" parameter.
12386 <tui_source_window_iterator>: Take iterator.
12387 <operator*, advance>: Update.
12388 <m_iter>: Change type.
12389 <m_end>: New field.
12390 (struct tui_source_windows) <begin, end>: Update.
12391 * tui/tui-layout.c (tui_windows): New global.
12392 (tui_apply_current_layout): Clear tui_windows.
12393 (tui_layout_window::apply): Update tui_windows.
12394 * tui/tui-data.h (tui_windows): Declare.
12395 (all_tui_windows): Now inline function.
12396 (class tui_window_iterator, struct all_tui_windows): Remove.
12397
7c043ba6
TT
123982020-02-22 Tom Tromey <tom@tromey.com>
12399
12400 PR tui/17850:
12401 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12402 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12403 "height" argument.
12404 (class tui_layout_window) <get_sizes>: Likewise.
12405 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12406 argument.
12407 <get_sizes>: Add "height" argument.
12408 <m_vertical>: New field.
12409 * tui/tui-layout.c (tui_layout_split::clone): Update.
12410 (tui_layout_split::get_sizes): Add "height" argument.
12411 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12412 (tui_new_layout_command): Parse "-horizontal".
12413 (_initialize_tui_layout): Update help string.
12414 (tui_layout_split::specification): Add "-horizontal" when needed.
12415 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12416 argument.
12417 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12418 New methods.
12419
6bc56648
TT
124202020-02-22 Tom Tromey <tom@tromey.com>
12421
12422 * tui/tui-layout.h (enum tui_adjust_result): New.
12423 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12424 (class tui_layout_window) <adjust_size>: Return
12425 tui_adjust_result. Rewrite.
12426 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12427 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12428
c22fef7e
TT
124292020-02-22 Tom Tromey <tom@tromey.com>
12430
12431 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12432 parameter and return types.
12433 (class tui_layout_base) <specification>: Add "depth".
12434 (class tui_layout_window) <specification>: Add "depth".
12435 (class tui_layout_split) <specification>: Add "depth".
12436 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12437 and return types.
12438 (tui_new_layout_command): Parse sub-layouts.
12439 (_initialize_tui_layout): Update help string.
12440 (tui_layout_window::specification): Add "depth".
12441 (add_layout_command): Update.
12442
ee325b61
TT
124432020-02-22 Tom Tromey <tom@tromey.com>
12444
12445 * NEWS: Add "tui new-layout" item.
12446 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12447 Add new-layout command to help text.
12448 (validate_window_name): New function.
12449 (tui_new_layout_command): New function.
12450 (_initialize_tui_layout): Register "new-layout".
12451 (tui_layout_window::specification): New method.
12452 (tui_layout_window::specification): New method.
12453 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12454 method.
12455 (class tui_layout_window) <specification>: New method.
12456 (class tui_layout_split) <specification>: New method.
12457
416eb92d
TT
124582020-02-22 Tom Tromey <tom@tromey.com>
12459
12460 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12461 * tui/tui-win.c (window_name_completer): Update comment.
12462 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12463 Declare method.
12464 (class tui_layout_window) <replace_window>: Likewise.
12465 (class tui_layout_split) <replace_window>: Likewise.
12466 (tui_set_layout): Don't declare.
12467 (tui_set_initial_layout): Declare function.
12468 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12469 (asm_regs_layout): New globals.
12470 (tui_current_layout, show_layout): Remove.
12471 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12472 (find_layout, tui_apply_layout): New function.
12473 (layout_completer): Remove.
12474 (tui_next_layout): Reimplement.
12475 (tui_next_layout_command): New function.
12476 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12477 (tui_regs_layout): Reimplement.
12478 (tui_regs_layout_command): New function.
12479 (extract_display_start_addr): Rewrite.
12480 (next_layout, prev_layout): Remove.
12481 (tui_layout_window::replace_window): New method.
12482 (tui_layout_split::replace_window): New method.
12483 (destroy_layout): New function.
12484 (layout_list): New global.
12485 (add_layout_command): New function.
12486 (initialize_layouts): Update.
12487 (tui_layout_command): New function.
12488 (_initialize_tui_layout): Install "layout" commands.
12489 * tui/tui-data.h (enum tui_layout_type): Remove.
12490 (tui_current_layout): Don't declare.
12491
0dbc2fc7
TT
124922020-02-22 Tom Tromey <tom@tromey.com>
12493
12494 * tui/tui-regs.c (tui_reg_layout): Remove.
12495 (tui_reg_command): Use tui_regs_layout.
12496 * tui/tui-layout.h (tui_reg_command): Declare.
12497 * tui/tui-layout.c (tui_reg_command): New function.
12498
5afe342e
TT
124992020-02-22 Tom Tromey <tom@tromey.com>
12500
12501 * tui/tui.c (tui_rl_delete_other_windows): Call
12502 tui_remove_some_windows.
12503 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12504 Declare method.
12505 (class tui_layout_window) <remove_windows>: New method.
12506 (class tui_layout_split) <remove_windows>: Declare.
12507 (tui_remove_some_windows): Declare.
12508 * tui/tui-layout.c (tui_remove_some_windows): New function.
12509 (tui_layout_split::remove_windows): New method.
12510
427326a8
TT
125112020-02-22 Tom Tromey <tom@tromey.com>
12512
12513 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12514 * tui/tui-layout.h (tui_next_layout): Declare.
12515 * tui/tui-layout.c (tui_next_layout): New function.
12516
3fe12b6d
TT
125172020-02-22 Tom Tromey <tom@tromey.com>
12518
12519 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12520 correct coordinates.
12521
59b8b5d2
TT
125222020-02-22 Tom Tromey <tom@tromey.com>
12523
12524 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12525 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12526 DATA_WIN case.
12527
2a3d458b
TT
125282020-02-22 Tom Tromey <tom@tromey.com>
12529
12530 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12531 TUI_DISASM_WIN, not tui_win_list.
12532
3f0cbb04
TT
125332020-02-22 Tom Tromey <tom@tromey.com>
12534
12535 * valprint.c (generic_val_print_enum_1)
12536 (val_print_type_code_flags): Style member names.
12537 * rust-lang.c (val_print_struct, rust_print_enum)
12538 (rust_print_struct_def, rust_internal_print_type): Style member
12539 names.
12540 * p-valprint.c (pascal_object_print_value_fields): Style member
12541 names. Only call fprintf_symbol_filtered for static members.
12542 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12543 * f-valprint.c (f_val_print): Style member names.
12544 * f-typeprint.c (f_type_print_base): Style member names.
12545 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12546 call fprintf_symbol_filtered for static members.
12547 (cp_print_class_member): Style member names.
12548 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12549 member names.
12550 * ada-valprint.c (ada_print_scalar): Style enum names.
12551 (ada_val_print_enum): Likewise.
12552 * ada-typeprint.c (print_enum_type): Style enum names.
12553
d4d947ae
TT
125542020-02-21 Tom Tromey <tom@tromey.com>
12555
12556 * psympriv.h (struct partial_symtab): Update comment.
12557
e94e944b
TT
125582020-02-21 Tom Tromey <tromey@adacore.com>
12559
12560 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12561 type is CORE_ADDR.
12562
1eb73179
TV
125632020-02-21 Tom de Vries <tdevries@suse.de>
12564
12565 PR gdb/25534
12566 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12567 if dependencies[i]->user != NULL.
12568
4f180d53
AT
125692020-02-21 Ali Tamur <tamur@google.com>
12570
12571 * dwarf2/read.c (dwarf2_name): Add null check.
12572
22b6cd70
TT
125732020-02-20 Tom Tromey <tom@tromey.com>
12574
12575 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12576 ">=", in binary search.
12577 (dwarf2_find_containing_comp_unit): New overload.
12578 (run_test): New self-test.
12579 (_initialize_dwarf2_read): Register new test.
12580
bd0cf5a6
NC
125812020-02-20 Nelson Chu <nelson.chu@sifive.com>
12582
12583 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12584 * riscv-tdep.h: Likewise.
12585 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12586 rv32-only CSR.
12587 * features/riscv/64bit-csr.xml: Regenerated.
12588
3f702acd
SDJ
125892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12590 Tom Tromey <tom@tromey.com>
12591
12592 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12593 of 'fputc_unfiltered'.
12594 (putchar_unfiltered): Call 'fputc_unfiltered'.
12595 (fputc_unfiltered): Call 'fputs_unfiltered'.
12596
d13c7322
AB
125972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12598
12599 * config.in: Regenerate.
12600 * configure: Regenerate.
12601 * configure.ac: Add --with-python-libdir option.
12602 * main.c: Use WITH_PYTHON_LIBDIR.
12603
869d8950
TT
126042020-02-19 Tom Tromey <tom@tromey.com>
12605
12606 * symtab.c (general_symbol_info::compute_and_set_names): Use
12607 obstack_strndup. Simplify call to symbol_set_demangled_name.
12608
298e9637
SM
126092020-02-19 Simon Marchi <simon.marchi@efficios.com>
12610
12611 * dwarf2/read.c (allocate_signatured_type_table,
12612 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12613 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12614 Remove objfile parameter, update all callers.
12615
08410482
DE
126162020-02-19 Doug Evans <dje@google.com>
12617
12618 PR rust/25535
12619 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12620 rust_enum_variant calculation.
12621
dfdeeca1
TT
126222020-02-19 Tom Tromey <tromey@adacore.com>
12623
12624 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12625
2ef5453b
TT
126262020-02-19 Tom Tromey <tromey@adacore.com>
12627
12628 * ada-lang.c (cache_symbol): Use obstack_strdup.
12629
9f1528a1
AB
126302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12631
12632 * configure: Regenerate.
12633
d3c22fa8
TT
126342020-02-19 Tom Tromey <tromey@adacore.com>
12635
12636 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12637 NULL check.
12638
bf84f706
MR
126392020-02-19 Maciej W. Rozycki <macro@wdc.com>
12640
12641 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12642
d1c9b20f
AB
126432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12644
12645 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12646 if GDBSERVER is not defined.
12647 (riscv_tdesc_cache): Likewise, also store const target_desc.
12648 (STATIC_IN_GDB): Define.
12649 (riscv_create_target_description): Update declaration with
12650 STATIC_IN_GDB.
12651 (riscv_lookup_target_description): New function, only define if
12652 GDBSERVER is not defined.
12653 * arch/riscv.h (riscv_create_target_description): Declare only
12654 when GDBSERVER is defined.
12655 (riscv_lookup_target_description): New declaration when GDBSERVER
12656 is not defined.
12657 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12658 (riscv_linux_read_features): ...this, and return
12659 riscv_gdbarch_features instead of target_desc.
12660 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12661 (riscv_linux_read_description): Rename to...
12662 (riscv_linux_read_features): ...this.
12663 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12664 Update to use riscv_gdbarch_features and
12665 riscv_lookup_target_description.
12666 * riscv-tdep.c (riscv_find_default_target_description): Use
12667 riscv_lookup_target_description instead of
12668 riscv_create_target_description.
12669
373d7ac0
SM
126702020-02-18 Simon Marchi <simon.marchi@efficios.com>
12671
12672 * valprint.c (generic_val_print_enum_1): When printing a flag
12673 enum with value 0 and there is no enumerator with value 0, print
12674 just "0" instead of "(unknown: 0x0)".
12675
b29a2df0
SM
126762020-02-18 Simon Marchi <simon.marchi@efficios.com>
12677
12678 * valprint.c (generic_val_print_enum_1): Print unknown part of
12679 flag enum in hex.
12680
6740f0cc
SM
126812020-02-18 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12684 flag enums to contain duplicate enumerators.
12685 * valprint.c (generic_val_print_enum_1): Update comment.
12686
edd45eb0
SM
126872020-02-18 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * dwarf2/read.c: Include "count-one-bits.h".
12690 (update_enumeration_type_from_children): If an enumerator has
12691 multiple bits set, don't treat the enumeration as a "flag enum".
12692 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12693 of flag enums have 0 or 1 bit set.
12694
6d0cf446
BE
126952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12696
12697 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12698 conversion.
12699 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12700 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12701 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12702 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12703 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12704
7001c1b7
SM
127052020-02-18 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12708
fdb61c6c
SM
127092020-02-14 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12712 displaced_step_closure_up.
12713 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12714 (struct displaced_step_closure_up):
12715 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12716 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12717 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12718 Likewise.
12719 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12720 * gdbarch.c, gdbarch.h: Re-generate.
12721 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12722 displaced_step_closure_up.
12723 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12724 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12725 * infrun.h (displaced_step_closure_up): New type alias.
12726 (struct displaced_step_inferior_state) <step_closure>: Change
12727 type to displaced_step_closure_up.
12728 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12729 displaced_step_closure_up.
12730 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12731
a4a38eb4
TT
127322020-02-14 Tom Tromey <tom@tromey.com>
12733
12734 * minidebug.c (gnu_debug_key): New global.
12735 (find_separate_debug_file_in_section): Use it.
12736
e8217e61
SM
127372020-02-14 Simon Marchi <simon.marchi@efficios.com>
12738
12739 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12740 std::unique_ptr.
12741 * gdbarch.c: Re-generate.
12742 * gdbarch.h: Re-generate.
12743 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12744 change.
12745 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12746 type to std::unique_ptr.
12747 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12748 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12749 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12750 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12751 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12752 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12753 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12754 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12755 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12756
d8d83535
SM
127572020-02-14 Simon Marchi <simon.marchi@efficios.com>
12758
12759 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12760 std::unique_ptr.
12761 (displaced_step_clear): Rename to...
12762 (displaced_step_reset): ... this. Just call displaced->reset ().
12763 (displaced_step_clear_cleanup): Rename to...
12764 (displaced_step_reset_cleanup): ... this.
12765 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12766 (displaced_step_fixup): Likewise.
12767 (resume_1): Likewise.
12768 (handle_inferior_event): Restore child's memory before calling
12769 displaced_step_fixup on the parent.
12770 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12771 to std::unique_ptr.
12772 <step_closure>: Change type to std::unique_ptr.
12773
5f661e03
SM
127742020-02-14 Simon Marchi <simon.marchi@efficios.com>
12775
12776 * arm-tdep.c: Include count-one-bits.h.
12777 (cleanup_block_store_pc): Use count_one_bits.
12778 (cleanup_block_load_pc): Use count_one_bits.
12779 (arm_copy_block_xfer): Use count_one_bits.
12780 (thumb2_copy_block_xfer): Use count_one_bits.
12781 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12782 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12783 (thumb_get_next_pcs_raw): Use count_one_bits.
12784 (arm_get_next_pcs_raw): Use count_one_bits_l.
12785 * arch/arm.c (bitcount): Remove.
12786 * arch/arm.h (bitcount): Remove.
12787
8084e579
TT
127882020-02-14 Tom Tromey <tromey@adacore.com>
12789
12790 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12791 Update.
12792 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12793 * dwarf2/loc.c (call_site_find_chain_1): Return
12794 unique_xmalloc_ptr.
12795 (call_site_find_chain): Likewise.
12796
258bf0ee
RB
127972020-02-14 Richard Biener <rguenther@suse.de>
12798
12799 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12800 on expression with division operators.
12801
f98a8458
AKS
128022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12803
12804 * MAINTAINERS (Write After Approval): Adding myself.
12805
d1437c0e
TT
128062020-02-12 Tom Tromey <tom@tromey.com>
12807
12808 * event-loop.c (event_data, gdb_event, event_handler_func):
12809 Remove.
12810
3d4560f7
TT
128112020-02-12 Tom Tromey <tom@tromey.com>
12812
12813 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12814 (dwarf2_frame_objfile_data): Add comment.
12815 (find_comp_unit, set_comp_unit): New functions.
12816 (dwarf2_frame_find_fde): Use find_comp_unit.
12817 (dwarf2_build_frame_info): Use set_comp_unit.
12818
21982304
TT
128192020-02-12 Tom Tromey <tom@tromey.com>
12820
12821 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12822 (comp_unit): Don't initialize objfile.
12823 (execute_cfa_program): Add text_offset parameter.
12824 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12825 (dwarf2_frame_cache): Update.
12826 (dwarf2_build_frame_info): Don't set "objfile" member.
12827
4debb237
TT
128282020-02-12 Tom Tromey <tom@tromey.com>
12829
12830 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12831 (decode_frame_entry): Likewise.
12832 (dwarf2_build_frame_info): Update.
12833
0d404d44
TT
128342020-02-12 Tom Tromey <tom@tromey.com>
12835
12836 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12837 (decode_frame_entry_1): Use the comp_unit obstack.
12838
a7a3ae5c
TT
128392020-02-12 Tom Tromey <tom@tromey.com>
12840
12841 * dwarf2/frame.c (struct comp_unit): Add initializers and
12842 constructor.
12843 (dwarf2_frame_objfile_data): Store a comp_unit.
12844 (dwarf2_frame_find_fde): Update.
12845 (dwarf2_build_frame_info): Use "new".
12846
a9d65418
TT
128472020-02-12 Tom Tromey <tom@tromey.com>
12848
12849 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12850 (dwarf2_fde_table): Typedef for std::vector.
12851 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12852 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12853 (decode_frame_entry): Update.
12854 (dwarf2_build_frame_info): Use "new".
12855
7559c217
CB
128562020-02-12 Christian Biesinger <cbiesinger@google.com>
12857
12858 * arm-tdep.c (arm_gdbarch_init): Update.
12859 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12860 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12861 have_neon, is_m>: Change to bool.
12862
aeefc73c
CB
128632020-02-12 Christian Biesinger <cbiesinger@google.com>
12864
12865 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12866
d27b8e5f
TT
128672020-02-12 Tom Tromey <tom@tromey.com>
12868
12869 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12870
cd5900f3
HD
128712020-02-12 Hannes Domani <ssbssa@yahoo.de>
12872
12873 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12874 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12875
f056b22b
TT
128762020-02-11 Tom Tromey <tom@tromey.com>
12877
12878 * psymtab.h: Update comment.
12879
f92ff6b5
TT
128802020-02-11 Tom Tromey <tom@tromey.com>
12881
12882 * gdb_obstack.h (struct auto_obstack): Use
12883 DISABLE_COPY_AND_ASSIGN.
12884
3fd6912b
TT
128852020-02-11 Tom Tromey <tom@tromey.com>
12886
12887 * dwarf2/frame.h (struct objfile): Don't forward declare.
12888
69ed9b74
CB
128892020-02-11 Christian Biesinger <cbiesinger@google.com>
12890
12891 * cris-tdep.c (cris_supply_gregset): Change signature to match
12892 what struct regset expects.
12893 (cris_regset): New struct.
12894 (fetch_core_registers): Remove.
12895 (cris_iterate_over_regset_sections): New function.
12896 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12897 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12898
bda874f6
CB
128992020-02-11 Christian Biesinger <cbiesinger@google.com>
12900
12901 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12902 registers.
12903
754e1564
CB
129042020-02-11 Christian Biesinger <cbiesinger@google.com>
12905
12906 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12907
8ddd8e0e
SM
129082020-02-11 Simon Marchi <simon.marchi@efficios.com>
12909
12910 * configure: Re-generate.
12911
898e7f60
SM
129122020-02-11 Simon Marchi <simon.marchi@efficios.com>
12913
12914 * configure: Re-generate.
12915
58df732b
SM
129162020-02-11 Simon Marchi <simon.marchi@efficios.com>
12917
12918 * acinclude: Update warning.m4 path.
12919 * warning.m4: Move to gdbsupport.
12920
da5bd37e
TT
129212020-02-11 Tom Tromey <tromey@adacore.com>
12922
12923 * remote.c (remote_console_output): Update.
12924 * printcmd.c (printf_command): Update.
12925 * event-loop.c (gdb_wait_for_event): Update.
12926 * linux-nat.c (sigchld_handler): Update.
12927 * remote-sim.c (gdb_os_write_stdout): Update.
12928 (gdb_os_flush_stdout): Update.
12929 (gdb_os_flush_stderr): Update.
12930 (gdb_os_write_stderr): Update.
12931 * exceptions.c (print_exception): Update.
12932 * remote-fileio.c (remote_fileio_func_read): Update.
12933 (remote_fileio_func_write): Update.
12934 * tui/tui.c (tui_enable): Update.
12935 * tui/tui-interp.c (tui_interp::init): Update.
12936 * utils.c (init_page_info): Update.
12937 (putchar_unfiltered, fputc_unfiltered): Update.
12938 (gdb_flush): Update.
12939 (emit_style_escape): Update.
12940 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12941 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12942 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12943 (stderr_file::write): Update.
12944 (stderr_file::puts): Update.
12945 * ui-file.h (ui_file_isatty, ui_file_write)
12946 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12947 (ui_file_puts): Don't declare.
12948
85f0dd3c
TV
129492020-02-10 Tom de Vries <tdevries@suse.de>
12950
12951 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12952 sentinel to char *.
12953
2e927613
TV
129542020-02-09 Tom de Vries <tdevries@suse.de>
12955
12956 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12957 filename if it matches "<artificial>".
12958
6bafc845
HD
129592020-02-09 Hannes Domani <ssbssa@yahoo.de>
12960
12961 * windows-tdep.c (struct enum_value_name): New struct.
12962 (create_enum): New function.
12963 (windows_get_siginfo_type): Create and use enum types.
12964
7928d571
HD
129652020-02-09 Hannes Domani <ssbssa@yahoo.de>
12966
12967 * NEWS: Mention $_siginfo support for Windows.
12968 * windows-nat.c (handle_exception): Set siginfo_er.
12969 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12970 (windows_xfer_siginfo): New function.
12971 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12972 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12973 (init_windows_gdbarch_data): New function.
12974 (get_windows_gdbarch_data): New function.
12975 (windows_get_siginfo_type): New function.
12976 (windows_init_abi): Register windows_get_siginfo_type.
12977 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12978
6751ebae
TT
129792020-02-08 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12982 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12983 <keep>: Declare method.
12984 <m_keep>: Remove member.
12985 <~cutu_reader>: Remove.
12986 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12987 (cutu_reader::cutu_reader): Update.
12988 (cutu_reader::keep): Rename from ~cutu_reader.
12989 (process_psymtab_comp_unit, build_type_psymtabs_1)
12990 (process_skeletonless_type_unit, load_partial_comp_unit)
12991 (load_full_comp_unit, dwarf2_read_addr_index)
12992 (read_signatured_type): Update.
12993
135f5437
TT
129942020-02-08 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12997 "want_partial_unit" parameter.
12998 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12999 Inline check for DW_TAG_partial_unit.
13000 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13001
9f66ff1c
TT
130022020-02-08 Tom Tromey <tom@tromey.com>
13003
13004 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13005 read.c.
13006 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13007 read.c.
13008
c8a7a66f
TT
130092020-02-08 Tom Tromey <tom@tromey.com>
13010
13011 * dwarf2/read.c (read_address): Move to comp-unit.c.
13012 (dwarf2_rnglists_process, dwarf2_ranges_process)
13013 (read_attribute_value, dwarf_decode_lines_1)
13014 (var_decode_location, decode_locdesc): Update.
13015 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13016 read.c. Remove "cu" parameter.
13017 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13018 method.
13019
8266302d
TT
130202020-02-08 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13023 (read_indirect_line_string): Update.
13024 * dwarf2/comp-unit.c (read_offset): Remove.
13025 (read_comp_unit_head): Update.
13026 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13027 method.
13028 (read_offset): Don't declare.
13029
4057dfde
TT
130302020-02-08 Tom Tromey <tom@tromey.com>
13031
13032 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13033 * dwarf2/read.c (struct comp_unit_head): Move to
13034 dwarf2/comp-unit.h.
13035 (enum class rcuh_kind): Move to comp-unit.h.
13036 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13037 (read_comp_unit_head, error_check_comp_unit_head)
13038 (read_and_check_comp_unit_head): Move to comp-unit.c.
13039 (read_offset, dwarf_unit_type_name): Likewise.
13040 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13041 (cutu_reader::cutu_reader, read_call_site_scope)
13042 (find_partial_die, follow_die_offset): Update.
13043 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13044
24aa364d
TT
130452020-02-08 Tom Tromey <tom@tromey.com>
13046
13047 * dwarf2/read.c (read_offset_1): Move to leb.c.
13048 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13049 (dwarf_decode_macro_bytes): Update.
13050 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13051 * dwarf2/leb.h (read_offset): Declare.
13052
2c7d5afc
TT
130532020-02-08 Tom Tromey <tom@tromey.com>
13054
13055 * dwarf2/read.c (dwarf2_section_size): Remove.
13056 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13057 Update.
13058 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13059
4075cb26
TT
130602020-02-08 Tom Tromey <tom@tromey.com>
13061
13062 * dwarf2/read.c (read_initial_length): Move to leb.c.
13063 * dwarf2/leb.h (read_initial_length): Declare.
13064 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13065 handle_nonstd parameter.
13066 * dwarf2/frame.c (read_initial_length): Remove.
13067 (decode_frame_entry_1): Update.
13068
09ba997f
TT
130692020-02-08 Tom Tromey <tom@tromey.com>
13070
13071 * dwarf2/loc.c (dwarf2_find_location_expression)
13072 (dwarf_evaluate_loc_desc::get_tls_address)
13073 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13074 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13075 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13076 (dwarf2_compile_property_to_c)
13077 (dwarf2_loc_desc_get_symbol_read_needs)
13078 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13079 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13080 (loclist_describe_location, loclist_tracepoint_var_ref)
13081 (loclist_generate_c_location): Update.
13082 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13083 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13084 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13085 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13086 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13087 (dwarf2_per_cu_data::addr_size)
13088 (dwarf2_per_cu_data::ref_addr_size)
13089 (dwarf2_per_cu_data::text_offset)
13090 (dwarf2_per_cu_data::addr_type): Now methods.
13091 (per_cu_header_read_in): Make per_cu "const".
13092 (dwarf2_version): Remove.
13093 (dwarf2_per_cu_data::int_type): Now a method.
13094 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13095 (set_die_type, read_array_type, read_subrange_index_type)
13096 (read_tag_string_type, read_subrange_type): Update.
13097 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13098 offset_size, ref_addr_size, text_offset, addr_type, version,
13099 objfile, int_type, addr_sized_int_type>: Declare methods.
13100
96c738c0
TT
131012020-02-08 Tom Tromey <tom@tromey.com>
13102
13103 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13104 Move earlier.
13105
8fdd972c
TT
131062020-02-08 Tom Tromey <tom@tromey.com>
13107
13108 * dwarf2/read.h (dwarf_line_debug): Declare.
13109 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13110 * dwarf2/read.c: Move line_header code to new files.
13111 (dwarf_line_debug): No longer static.
13112 * dwarf2/line-header.c: New file.
13113 * dwarf2/line-header.h: New file.
13114
03075812
TT
131152020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2/read.c (struct line_header) <file_full_name,
13118 file_file_name>: Return unique_xmalloc_ptr.
13119 (line_header::file_file_name): Update.
13120 (line_header::file_full_name): Update.
13121 (dw2_get_file_names_reader): Update.
13122 (macro_start_file): Update.
13123
bb822404
TT
131242020-02-08 Tom Tromey <tom@tromey.com>
13125
13126 * dwarf2/read.c (struct line_header) <file_full_name,
13127 file_file_name>: Declare methods.
13128 (dw2_get_file_names_reader): Update.
13129 (file_file_name): Now a method.
13130 (file_full_name): Likewise.
13131 (macro_start_file): Update.
13132
009b64fc
TT
131332020-02-08 Tom Tromey <tom@tromey.com>
13134
13135 * dwarf2/read.c (dwarf_always_disassemble)
13136 (show_dwarf_always_disassemble): Move to loc.c.
13137 (_initialize_dwarf2_read): Move "always-disassemble" registration
13138 to loc.c.
13139 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13140 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13141 static.
13142 (show_dwarf_always_disassemble): Move from read.c.
13143 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13144
5895093f
TT
131452020-02-08 Tom Tromey <tom@tromey.com>
13146
13147 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13148 (create_quick_file_names_table): Return htab_up.
13149 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13150 Update.
13151 * dwarf2/read.h (struct dwarf2_per_objfile)
13152 <quick_file_names_table>: Now htab_up.
13153
b3b32279
TT
131542020-02-08 Tom Tromey <tom@tromey.com>
13155
13156 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13157
1d33d811
TT
131582020-02-08 Tom Tromey <tom@tromey.com>
13159
13160 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13161 Rewrite.
13162 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13163 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13164 (abbrev_table::abbrev_table): No longer inline.
13165 (ABBREV_HASH_SIZE): Remove.
13166 (abbrev_table::m_abbrevs): Now an htab_up.
13167
86de1d91
TT
131682020-02-08 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13171 (cutu_reader): Update.
13172 (build_type_psymtabs_1): Update.
13173 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13174 (abbrev_table::alloc_abbrev): Update.
13175 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13176 (abbrev_table::read): New static method, renamed from
13177 abbrev_table_read_table.
13178 (abbrev_table::alloc_abbrev)
13179 (abbrev_table::add_abbrev): Now private.
13180 (abbrev_table::abbrev_table): Now private.
13181 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13182
0335378b
TT
131832020-02-08 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13186 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13187 htab_up.
13188
48b490f2
TT
131892020-02-08 Tom Tromey <tom@tromey.com>
13190
13191 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13192 htab_up.
13193 (lookup_dwo_unit_in_dwp): Update.
13194 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13195 on obstack.
13196
bc68fb19
TT
131972020-02-08 Tom Tromey <tom@tromey.com>
13198
13199 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13200 obstack.
13201
d15acc42
TT
132022020-02-08 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13205 line_header_hash.
13206 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13207 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13208 Change type to htab_up.
13209
eaa5fa8b
TT
132102020-02-08 Tom Tromey <tom@tromey.com>
13211
13212 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13213 htab_up. Don't allocate on obstack.
13214 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13215 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13216 Change type to htab_up.
13217
b0b6a987
TT
132182020-02-08 Tom Tromey <tom@tromey.com>
13219
13220 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13221 Change type to htab_up.
13222 * dwarf2/read.c (create_signatured_type_table_from_index)
13223 (create_signatured_type_table_from_debug_names)
13224 (create_all_type_units, add_type_unit)
13225 (lookup_dwo_signatured_type, lookup_signatured_type)
13226 (process_skeletonless_type_unit): Update.
13227 (create_debug_type_hash_table, create_debug_types_hash_table):
13228 Change type of types_htab.
13229 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13230 htab_up. Don't allocate on obstack.
13231 (create_cus_hash_table): Change type of cus_htab parameter.
13232 (struct dwo_file) <cus, tus>: Now htab_up.
13233 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13234 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13235 (queue_and_load_all_dwo_tus): Update.
13236 * dwarf2/index-write.c (write_gdbindex): Update.
13237 (write_debug_names): Update.
13238
39856def
TT
132392020-02-08 Tom Tromey <tom@tromey.com>
13240
13241 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13242 dwarf2/read.c. Remove "next" member. Add constructor ntad
13243 destructor.
13244 (struct dwarf2_per_objfile) <queue>: New member.
13245 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13246 dwarf2/read.h.
13247 (dwarf2_queue, dwarf2_queue_tail): Remove.
13248 (class dwarf2_queue_guard): Add parameter to constructor. Use
13249 DISABLE_COPY_AND_ASSIGN.
13250 <m_per_objfile>: New member.
13251 <~dwarf2_queue_guard>: Rewrite.
13252 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13253 Update.
13254 (~dwarf2_queue_item): New.
13255
3e225074
TT
132562020-02-08 Tom Tromey <tom@tromey.com>
13257
13258 * dwarf2/read.c (struct die_info) <has_children>: New member.
13259 (dw2_get_file_names_reader): Remove has_children.
13260 (dw2_get_file_names): Update.
13261 (read_cutu_die_from_dwo): Remove has_children.
13262 (cutu_reader::init_tu_and_read_dwo_dies)
13263 (cutu_reader::cutu_reader): Update.
13264 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13265 Remove has_children.
13266 (build_type_psymtabs_1, process_skeletonless_type_unit)
13267 (load_partial_comp_unit, load_full_comp_unit): Update.
13268 (create_dwo_cu_reader): Remove has_children.
13269 (create_cus_hash_table, read_die_and_children): Update.
13270 (read_full_die_1,read_full_die): Remove has_children.
13271 (read_signatured_type): Update.
13272 (class cutu_reader) <has_children>: Remove.
13273
82ca8957
TT
132742020-02-08 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2/expr.c: Rename from dwarf2expr.c.
13277 * dwarf2/expr.h: Rename from dwarf2expr.h.
13278 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13279 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13280 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13281 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13282 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13283 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13284 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13285 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13286 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13287 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13288 * dwarf2/loc.c: Rename from dwarf2loc.c.
13289 * dwarf2/loc.h: Rename from dwarf2loc.h.
13290 * dwarf2/read.c: Rename from dwarf2read.c.
13291 * dwarf2/read.h: Rename from dwarf2read.h.
13292 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13293 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13294 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13295 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13296 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13297 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13298 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13299 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13300 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13301 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13302 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13303 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13304 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13305 Update.
13306 * Makefile.in (COMMON_SFILES): Update.
13307 (HFILES_NO_SRCDIR): Update.
13308
9e35d499
TT
133092020-02-08 Tom Tromey <tom@tromey.com>
13310
13311 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13312 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13313
1eba2311
TT
133142020-02-08 Tom Tromey <tom@tromey.com>
13315
13316 * dwarf2read.h (struct die_info): Don't declare.
13317
e41c2da2
TT
133182020-02-08 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2read.h (die_info_ptr): Remove typedef.
13321
4fc6c0d5
TT
133222020-02-08 Tom Tromey <tom@tromey.com>
13323
13324 * dwarf2read.c (read_call_site_scope)
13325 (handle_data_member_location, dwarf2_add_member_fn)
13326 (mark_common_block_symbol_computed, read_common_block)
13327 (attr_to_dynamic_prop, partial_die_info::read)
13328 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13329 (dwarf2_symbol_mark_computed, set_die_type): Update.
13330 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13331 method.
13332 (attr_form_is_block): Don't declare.
13333 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13334
cd6c91b4
TT
133352020-02-08 Tom Tromey <tom@tromey.com>
13336
13337 * dwarf2read.c (dwarf2_find_base_address, )
13338 (read_call_site_scope, rust_containing_type)
13339 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13340 (handle_data_member_location, dwarf2_add_member_fn)
13341 (get_alignment, read_structure_type, process_structure_scope)
13342 (mark_common_block_symbol_computed, read_common_block)
13343 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13344 (partial_die_info::read, read_attribute_value, new_symbol)
13345 (lookup_die_type, dwarf2_get_ref_die_offset)
13346 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13347 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13348 (dwarf2_symbol_mark_computed): Update.
13349 * dwarf2/attribute.h (struct attribute) <value_as_address,
13350 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13351 methods.
13352 (value_as_address, attr_form_is_section_offset)
13353 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13354 * dwarf2/attribute.c (attribute::value_as_address)
13355 (attribute::form_is_section_offset, attribute::form_is_constant)
13356 (attribute::form_is_ref): Now methods.
13357
162dce55
TT
133582020-02-08 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2read.c (struct attribute, DW_STRING)
13361 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13362 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13363 (attr_form_is_block, attr_form_is_section_offset)
13364 (attr_form_is_constant, attr_form_is_ref): Move.
13365 * dwarf2/attribute.h: New file.
13366 * dwarf2/attribute.c: New file, from dwarf2read.c.
13367 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13368
3054dd54
TT
133692020-02-08 Tom Tromey <tom@tromey.com>
13370
13371 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13372 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13373 Move.
13374 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13375 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13376 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13377 abbrev.c.
13378 * dwarf2/abbrev.h: New file.
13379 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13380 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13381
96b79293
TT
133822020-02-08 Tom Tromey <tom@tromey.com>
13383
13384 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13385 (dwarf2_section_size, dwarf2_get_section_info)
13386 (create_signatured_type_table_from_debug_names)
13387 (create_addrmap_from_aranges, read_debug_names_from_section)
13388 (get_gdb_index_contents_from_section, read_comp_unit_head)
13389 (error_check_comp_unit_head, read_abbrev_offset)
13390 (create_debug_type_hash_table, init_cu_die_reader)
13391 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13392 (read_comp_units_from_section, create_cus_hash_table)
13393 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13394 (create_dwp_v2_section, dwarf2_rnglists_process)
13395 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13396 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13397 (read_indirect_string_from_dwz, read_addr_index_1)
13398 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13399 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13400 (fill_in_loclist_baton): Update.
13401 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13402 get_containing_section, get_bfd_owner, get_bfd_section,
13403 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13404 (dwarf2_read_section, get_section_name, get_section_file_name)
13405 (get_containing_section, get_section_bfd_owner)
13406 (get_section_bfd_section, get_section_name, get_section_file_name)
13407 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13408 declare.
13409 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13410 (dwarf2_section_info::get_bfd_owner)
13411 (dwarf2_section_info::get_bfd_section)
13412 (dwarf2_section_info::get_name)
13413 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13414 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13415 (dwarf2_section_info::read): Now methods.
13416 * dwarf-index-write.c (class debug_names): Update.
13417
2c86cff9
TT
134182020-02-08 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13421 Move to dwarf2/section.h.
13422 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13423 (get_section_bfd_section, get_section_name)
13424 (get_section_file_name, get_section_id, get_section_flags)
13425 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13426 dwarf2/section.c.
13427 * dwarf2/section.h: New file.
13428 * dwarf2/section.c: New file, from dwarf2read.c.
13429 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13430
f4382c45
TT
134312020-02-08 Tom Tromey <tom@tromey.com>
13432
13433 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13434 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13435 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13436 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13437 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13438 * dwarf2/leb.h: New file, from dwarf2read.c.
13439 * dwarf2/leb.c: New file, from dwarf2read.c.
13440 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13441 Remove.
13442 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13443 (COMMON_SFILES): Add dwarf2/leb.c.
13444
01840b7a
JB
134452020-02-08 Joel Brobecker <brobecker@adacore.com>
13446
13447 GDB 9.1 released.
13448
dfcb27e4
IB
134492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13450
13451 PR gdb/25190:
aac66a4c
SM
13452 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13453 * gdb/remote.c (remote_console_output): Update.
13454 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13455 (ui_file_puts): ...this.
13456 * gdb/ui-file.h (ui_file_puts): Add declaration.
13457 * gdb/utils.c (emit_style_escape): Update.
13458 (flush_wrap_buffer): Update.
13459 (fputs_maybe_filtered): Update.
13460 (fputs_unfiltered): Add function.
dfcb27e4 13461
faa17681
IB
134622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13463
aac66a4c
SM
13464 * gdb/event-loop.c (gdb_wait_for_event): Update.
13465 * gdb/printcmd.c (printf_command): Update.
13466 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13467 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13468 (gdb_os_flush_stderr): Update.
13469 * gdb/remote.c (remote_console_output): Update.
13470 * gdb/ui-file.c (gdb_flush): Rename to...
13471 (ui_file_flush): ...this.
13472 (stderr_file::write): Update.
13473 (stderr_file::puts): Update.
13474 * gdb/ui-file.h (gdb_flush): Rename to...
13475 (ui_file_flush): ...this.
13476 * gdb/utils.c (gdb_flush): Add function.
13477 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13478
5abbbe1d
TT
134792020-02-07 Tom Tromey <tromey@adacore.com>
13480
13481 PR breakpoints/24915:
13482 * source.c (find_and_open_source): Do not check basenames_may_differ.
13483
919adfe8
TT
134842020-02-07 Tom Tromey <tom@tromey.com>
13485
13486 * README: Update gdbserver documentation.
13487 * gdbserver: Move to top level.
13488 * configure.tgt (build_gdbserver): Remove.
13489 * configure.ac: Remove --enable-gdbserver.
13490 * configure: Rebuild.
13491 * Makefile.in (distclean): Don't mention gdbserver.
13492
1d5d29e7
SV
134932020-02-06 Shahab Vahedi <shahab@synopsys.com>
13494
13495 * source-cache.c (source_cache::ensure): Surround
13496 get_plain_source_lines with a try/catch.
13497 (source_cache::get_line_charpos): Get rid of try/catch
13498 and only check for the return value of "ensure".
13499 * tui/tui-source.c (tui_source_window::set_contents):
13500 Simplify "nlines" calculation.
13501
6eb1129c
SV
135022020-02-06 Shahab Vahedi <shahab@synopsys.com>
13503
13504 * MAINTAINERS (Write After Approval): Add myself.
13505
c6a42d11
CB
135062020-02-05 Christian Biesinger <cbiesinger@google.com>
13507
13508 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13509 function call.
13510
c8ecdda6
CB
135112020-02-05 Christian Biesinger <cbiesinger@google.com>
13512
13513 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13514
f6480e70
MR
135152020-02-05 Maciej W. Rozycki <macro@wdc.com>
13516
13517 * nat/riscv-linux-tdesc.h: New file.
13518 * nat/riscv-linux-tdesc.c: New file, taking code from...
13519 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13520 ... here.
13521 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13522 NATDEPFILES.
13523
dcc9fbc6
AB
135242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13527 we don't set the fake simulator ptid to the null_ptid.
13528
719546c4
SM
135292020-02-03 Simon Marchi <simon.marchi@efficios.com>
13530
13531 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13532 * gdbthread.h (class thread_info) <resumed>: Likewise.
13533 * infrun.c (resume_1): Likewise.
13534 (proceed): Likewise.
13535 (infrun_thread_stop_requested): Likewise.
13536 (stop_all_threads): Likewise.
13537 (handle_inferior_event): Likewise.
13538 (restart_threads): Likewise.
13539 (finish_step_over): Likewise.
13540 (keep_going_stepped_thread): Likewise.
13541 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13542 (linux_handle_extended_wait): Likewise.
13543 * record-btrace.c (get_thread_current_frame_id): Likewise.
13544 * record-full.c (record_full_wait_1): Likewise.
13545 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13546 * target.c (target_resume): Likewise.
13547 * thread.c (set_running_thread): Likewise.
13548
e409c542
AKS
135492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13550
13551 * f-valprint.c (f77_print_array_1): Changed datatype of index
13552 variable to LONGEST from int to enable it to contain bound
13553 values correctly.
13554
ee98c0da
MR
135552020-02-03 Maciej W. Rozycki <macro@wdc.com>
13556
13557 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13558 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13559 offsets according to FLEN determined.
13560 (riscv_linux_nat_target::read_description): Determine FLEN
13561 dynamically.
13562 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13563 according to FLEN determined.
13564 (riscv_linux_nat_target::store_registers): Likewise.
13565
aa66aac4
SV
135662020-02-01 Shahab Vahedi <shahab@synopsys.com>
13567
13568 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13569 when reg->group is empty and reggroup is not.
13570
fd9faca8
TT
135712020-01-31 Tom Tromey <tromey@adacore.com>
13572
13573 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13574 Call beneath target's mourn_inferior after unpushing.
13575
42330a68
AB
135762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 PR tui/9765
13579 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13580 have enough lines to fill the screen, still return the lowest
13581 address we found.
13582
7a27a45b
AB
135832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13584
13585 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13586 '-', '<', and '>' commands.
13587
c47f70e2
PA
135882020-01-29 Pedro Alves <palves@redhat.com>
13589 Sergio Durigan Junior <sergiodj@redhat.com>
13590
13591 * infcmd.c (construct_inferior_arguments): Assert that
13592 'argc' is greater than 0.
13593
5133a315
LM
135942020-01-29 Luis Machado <luis.machado@linaro.org>
13595
13596 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13597 (BRK_INSN_MASK): Define to 0xd4200000.
13598 (aarch64_program_breakpoint_here_p): New function.
13599 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13600 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13601 breakpoint.c.
13602 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13603 breakpoint.h
13604 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13605 call gdbarch_program_breakpoint_here_p.
13606 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13607 default_program_breakpoint_here_p, changed return type to bool and
13608 simplified.
13609 * breakpoint.h (program_breakpoint_here): Moved prototype to
13610 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13611 return type to bool.
13612 * gdbarch.c: Regenerate.
13613 * gdbarch.h: Regenerate.
13614 * gdbarch.sh (program_breakpoint_here_p): New method.
13615 * infrun.c (handle_signal_stop): Call
13616 gdbarch_program_breakpoint_here_p.
13617
168f8c6b
TT
136182020-01-26 Tom Tromey <tom@tromey.com>
13619
13620 * ctfread.c (struct ctf_fp_info): Reindent.
13621 (_initialize_ctfread): Remove.
13622
128a391f
TT
136232020-01-26 Tom Tromey <tom@tromey.com>
13624
13625 * psymtab.c (partial_map_expand_apply)
13626 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13627 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13628 (psym_print_stats, psym_expand_symtabs_for_function)
13629 (psym_map_symbol_filenames, psym_map_matching_symbols)
13630 (psym_expand_symtabs_matching)
13631 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13632 (maintenance_check_psymtabs): Use new methods.
13633 * psympriv.h (struct partial_symtab) <readin_p,
13634 get_compunit_symtab>: New methods.
13635 <readin, compunit_symtab>: Remove members.
13636 (struct standard_psymtab): New.
13637 (struct legacy_psymtab): Derive from standard_psymtab.
13638 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13639 standard_psymtab.
13640 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13641
0494dbec
TT
136422020-01-26 Tom Tromey <tom@tromey.com>
13643
13644 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13645 read_dependencies. Add assert.
13646 * psymtab.c (partial_symtab::read_dependencies): New method.
13647 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13648 method.
13649 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13650 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13651 read_dependencies.
13652 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13653 Add assert.
13654
8566b89b
TT
136552020-01-26 Tom Tromey <tom@tromey.com>
13656
13657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13658 Call expand_psymtab.
13659 (xcoff_read_symtab): Call expand_psymtab.
13660 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13661 legacy_expand_psymtab.
13662 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13663 method.
13664 (struct legacy_psymtab) <expand_psymtab>: Implement.
13665 <legacy_expand_psymtab>: New member.
13666 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13667 (parse_partial_symbols): Set legacy_expand_psymtab.
13668 (psymtab_to_symtab_1): Change argument order. Call
13669 expand_psymtab.
13670 (new_psymtab): Set legacy_expand_psymtab.
13671 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13672 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13673 expand_psymtab.
13674 (dwarf2_psymtab::expand_psymtab): Rename from
13675 psymtab_to_symtab_1. Call expand_psymtab.
13676 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13677 (dbx_end_psymtab): Likewise.
13678 (dbx_psymtab_to_symtab_1): Change argument order. Call
13679 expand_psymtab.
13680 (dbx_read_symtab): Call expand_psymtab.
13681 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13682 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13683 (ctf_psymtab::read_symtab): Call expand_psymtab.
13684
077cbab2
TT
136852020-01-26 Tom Tromey <tom@tromey.com>
13686
13687 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13688 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13689 messages.
13690 * mdebugread.c (mdebug_read_symtab): Remove prints.
13691 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13692 assert.
13693 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13694
891813be
TT
136952020-01-26 Tom Tromey <tom@tromey.com>
13696
13697 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13698 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13699 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13700 legacy_symtab.
13701 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13702 * psymtab.c (psymtab_to_symtab): Call method.
13703 (dump_psymtab): Update.
13704 * psympriv.h (struct partial_symtab): Add virtual destructor.
13705 <read_symtab>: New method.
13706 (struct legacy_symtab): New.
13707 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13708 (struct pst_map) <pst>: Now a legacy_psymtab.
13709 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13710 (new_psymtab): Use legacy_psymtab.
13711 * dwarf2read.h (struct dwarf2_psymtab): New.
13712 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13713 * dwarf2read.c (dwarf2_create_include_psymtab)
13714 (dwarf2_build_include_psymtabs, create_type_unit_group)
13715 (create_partial_symtab, process_psymtab_comp_unit_reader)
13716 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13717 (set_partial_user): Use dwarf2_psymtab.
13718 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13719 (psymtab_to_symtab_1, process_full_comp_unit)
13720 (process_full_type_unit, dwarf2_ranges_read)
13721 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13722 (dwarf_decode_lines): Use dwarf2_psymtab.
13723 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13724 (add_address_entry_worker, write_one_signatured_type)
13725 (recursively_count_psymbols, recursively_write_psymbols)
13726 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13727 (write_debug_names): Likewise.
13728 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13729 <pst>: Now a legacy_psymtab.
13730 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13731 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13732 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13733 * ctfread.c (struct ctf_psymtab): New.
13734 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13735 ctf_psymtab.
13736 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13737 (create_partial_symtab): Return a ctf_psymtab.
13738 (scan_partial_symbols): Update.
13739
c3693a1d
TT
137402020-01-26 Tom Tromey <tom@tromey.com>
13741
13742 * xcoffread.c (xcoff_start_psymtab): Use new.
13743 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13744 renamed from start_psymtab_common.
13745 * psympriv.h (struct partial_symtab): Add new constructor.
13746 (start_psymtab_common): Don't declare.
13747 * mdebugread.c (parse_partial_symbols): Use new.
13748 * dwarf2read.c (create_partial_symtab): Use new.
13749 * dbxread.c (start_psymtab): Use new.
13750 * ctfread.c (create_partial_symtab): Use new.
13751
32caafd0
TT
137522020-01-26 Tom Tromey <tom@tromey.com>
13753
13754 * xcoffread.c (xcoff_end_psymtab): Use new.
13755 * psymtab.c (start_psymtab_common): Use new.
13756 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13757 Update.
13758 * psympriv.h (struct partial_symtab): Add parameters to
13759 constructor. Don't inline.
13760 (allocate_psymtab): Don't declare.
13761 * mdebugread.c (new_psymtab): Use new.
13762 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13763 * dbxread.c (dbx_end_psymtab): Use new.
13764
abaa2f23
TT
137652020-01-26 Tom Tromey <tom@tromey.com>
13766
13767 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13768 allocate_psymtab. Update documentation.
13769 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13770 allocate_psymtab. Do not use new.
13771 (allocate_psymtab): Use new. Update.
13772
6d94535f
TT
137732020-01-26 Tom Tromey <tom@tromey.com>
13774
13775 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13776 * psymtab.c (psym_print_stats): Update.
13777 * psympriv.h (struct partial_symtab) <readin,
13778 psymtabs_addrmap_supported, anonymous>: Now bool.
13779 * mdebugread.c (psymtab_to_symtab_1): Update.
13780 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13781 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13782 (process_full_comp_unit, process_full_type_unit): Update.
13783 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13784 * ctfread.c (psymtab_to_symtab): Update.
13785
6f17252b
TT
137862020-01-26 Tom Tromey <tom@tromey.com>
13787
13788 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13789 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13790 * psymtab.c (psymtab_storage): Delete psymtabs.
13791 (psymtab_storage::allocate_psymtab): Use new.
13792 (psymtab_storage::discard_psymtab): Use delete.
13793 * psympriv.h (struct partial_symtab): Add constructor and
13794 initializers.
13795
f6f1cebc
TT
137962020-01-26 Tom Tromey <tom@tromey.com>
13797
13798 * machoread.c: Do not include psympriv.h.
13799
e47e48f6
PW
138002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13801
13802 * NEWS: Mention the new option and the set/show commands.
13803
a2fedca9
PW
138042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13805
13806 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13807 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13808 (validate_exec_file): New variables, enums, functions.
13809 (exec_file_locate_attach, print_section_info): Style the filenames.
13810 (_initialize_exec): Install show_exec_file_mismatch_command and
13811 set_exec_file_mismatch_command.
13812 * gdbcore.h (validate_exec_file): Declare.
13813 * infcmd.c (attach_command): Call validate_exec_file.
13814 * remote.c ( remote_target::remote_add_inferior): Likewise.
13815
7ffa82e1
AB
138162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13817
13818 * frame.c (find_frame_sal): Move call to get_next_frame into more
13819 inner scope.
13820 * inline-frame.c (inilne_state) <inline_state>: Update argument
13821 types.
13822 (inilne_state) <skipped_symbol>: Rename to...
13823 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13824 (skip_inline_frames): Build vector of skipped symbols and use this
13825 to reate the inline_state.
13826 (inline_skipped_symbol): Add a comment and some assertions, fetch
13827 skipped symbol from the list.
13828
3d92a3e3
AB
138292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13830
13831 * buildsym.c (lte_is_less_than): Delete.
13832 (buildsym_compunit::end_symtab_with_blockvector): Create local
13833 lambda function to sort line table entries, and use
13834 std::stable_sort instead of std::sort.
13835 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13836 markers when looking for a previous line.
13837
94a72be7
AB
138382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13839
13840 * dwarf2read.c (lnp_state_machine::record_line): Include
13841 end_sequence parameter in debug print out. Record the line if we
13842 are at an end_sequence marker even if it's not the start of a
13843 statement.
13844 * symmisc.c (maintenance_print_one_line_table): Print end of
13845 sequence markers with 'END' not '0'.
13846
53af73bf
PA
138472020-01-24 Pedro Alves <palves@redhat.com>
13848
13849 PR gdb/25410
13850 * thread.c (scoped_restore_current_thread::restore): Use
13851 switch_to_inferior_no_thread.
13852 * exec.c: Include "progspace-and-thread.h".
13853 (add_target_sections, remove_target_sections):
13854 scoped_restore_current_pspace_and_thread instead of
13855 scoped_restore_current_thread.
13856 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13857 and aspace to the inferior before calling clone_program_space.
13858 Remove stale comment.
13859
3050c6f4
CB
138602020-01-24 Christian Biesinger <cbiesinger@google.com>
13861
13862 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13863 (arm_netbsd_nat_target::fetch_registers): ...this.
13864 (arm_nbsd_nat_target::store_registers): Rename to...
13865 (arm_netbsd_nat_target::store_registers): ...this.
13866
73685c7e
CB
138672020-01-24 Christian Biesinger <cbiesinger@google.com>
13868
13869 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13870 register_t.
13871
89203d40
CB
138722020-01-24 Christian Biesinger <cbiesinger@google.com>
13873
13874 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13875 Update comment.
13876 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13877 Likewise.
13878 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13879 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13880 the correct replacement (iterate_over_regset_sections).
13881 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13882 Update comment.
13883
1ba1ac88
AB
138842020-01-24 Graham Markall <graham.markall@embecosm.com>
13885
13886 PR gdb/23718
13887 * gdb/python/python.c (execute_gdb_command): Call
13888 async_enable_stdin in catch block.
13889
f3364a6d
AB
138902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13891
13892 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13893 SWITCH_THRU_ALL_UIS.
13894
733d0a67
AB
138952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13896
13897 PR tui/9765
13898 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13899 comment, add extra parameter, and update to store previous symbol
13900 when appropriate.
13901 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13902 add extra parameter.
13903 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13904 remove unneeded parameter, add try/catch around gdb_print_insn,
13905 rewrite to add items to asm_lines vector.
13906 (tui_find_backward_disassembly_start_address): New function.
13907 (tui_find_disassembly_address): Updated throughout.
13908 (tui_disasm_window::set_contents): Update for changes to
13909 tui_disassemble.
13910 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13911 number of lines to scroll.
13912
b3b3bada
SM
139132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13914
13915 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13916 (SECT_OFF_DATA): Likewise.
13917 (SECT_OFF_RODATA): Likewise.
13918 (SECT_OFF_TEXT): Likewise.
13919 (SECT_OFF_BSS): Likewise.
13920 (struct objfile) <text_section_offset, data_section_offset>: New
13921 methods.
13922 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13923 objfile::text_section_offset.
13924 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13925 * coffread.c (coff_symtab_read): Likewise.
13926 (enter_linenos): Likewise.
13927 (process_coff_symbol): Likewise.
13928 * ctfread.c (get_objfile_text_range): Likewise.
13929 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13930 Use objfile::data_section_offset.
13931 * dwarf2-frame.c (execute_cfa_program): Use
13932 objfile::text_section_offset.
13933 (dwarf2_frame_find_fde): Likewise.
13934 * dwarf2read.c (create_addrmap_from_index): Likewise.
13935 (create_addrmap_from_aranges): Likewise.
13936 (dw2_find_pc_sect_compunit_symtab): Likewise.
13937 (process_psymtab_comp_unit_reader): Likewise.
13938 (add_partial_symbol): Likewise.
13939 (add_partial_subprogram): Likewise.
13940 (process_full_comp_unit): Likewise.
13941 (read_file_scope): Likewise.
13942 (read_func_scope): Likewise.
13943 (read_lexical_block_scope): Likewise.
13944 (read_call_site_scope): Likewise.
13945 (dwarf2_rnglists_process): Likewise.
13946 (dwarf2_ranges_process): Likewise.
13947 (dwarf2_ranges_read): Likewise.
13948 (dwarf_decode_lines_1): Likewise.
13949 (new_symbol): Likewise.
13950 (dwarf2_fetch_die_loc_sect_off): Likewise.
13951 (dwarf2_per_cu_text_offset): Likewise.
13952 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13953 * hppa-tdep.c (read_unwind_info): Likewise.
13954 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13955 * psympriv.h (struct partial_symtab): Likewise.
13956 * psymtab.c (find_pc_sect_psymtab): Likewise.
13957 * solib-svr4.c (enable_break): Likewise.
13958 * stap-probe.c (relocate_address): Use
13959 objfile::data_section_offset.
13960 * xcoffread.c (enter_line_range): Use
13961 objfile::text_section_offset.
13962 (read_xcoff_symtab): Likewise.
13963
ab53f382
SM
139642020-01-23 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13967 declaration to narrower scopes.
13968
e7eee665
SM
139692020-01-23 Simon Marchi <simon.marchi@efficios.com>
13970
13971 * darwin-nat.h (struct darwin_exception_msg, enum
13972 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13973 Move up.
13974 (class darwin_nat_target) <wait_1, check_new_threads,
13975 decode_exception_message, decode_message, stop_inferior,
13976 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13977 * darwin-nat.c (darwin_check_new_threads): Rename to...
13978 (darwin_nat_target::check_new_threads): ... this.
13979 (darwin_suspend_inferior_it): Remove.
13980 (darwin_decode_exception_message): Rename to...
13981 (darwin_nat_target::decode_exception_message): ... this.
13982 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13983 (darwin_decode_message): Rename to...
13984 (darwin_nat_target::decode_message): ... this.
13985 (cancel_breakpoint): Rename to...
13986 (darwin_nat_target::cancel_breakpoint): ... this.
13987 (darwin_wait): Rename to...
13988 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13989 instead of iterate_over_inferiors.
13990 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13991 (darwin_stop_inferior): Rename to...
13992 (darwin_nat_target::stop_inferior): ... this.
13993 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13994 (darwin_init_thread_list): Rename to...
13995 (darwin_nat_target::init_thread_list): ... this.
13996 (darwin_ptrace_him): Rename to...
13997 (darwin_nat_target::ptrace_him): ... this.
13998 (darwin_nat_target::create_inferior): Pass lambda function to
13999 fork_inferior.
14000 (darwin_nat_target::detach): Call stop_inferior instead of
14001 darwin_stop_inferior.
14002 * fork-inferior.h (fork_inferior): Change init_trace_fun
14003 parameter to gdb::function_view.
14004 * fork-inferior.c (fork_inferior): Likewise.
14005
c162ed3e
HD
140062020-01-23 Hannes Domani <ssbssa@yahoo.de>
14007
14008 * i386-cygwin-tdep.c (core_process_module_section): Update.
14009 * windows-nat.c (struct lm_info_windows): Add text_offset.
14010 (windows_xfer_shared_libraries): Update.
14011 * windows-tdep.c (windows_xfer_shared_library):
14012 Add text_offset_cached argument.
14013 * windows-tdep.h (windows_xfer_shared_library): Update.
14014
a1237872
SM
140152020-01-21 Simon Marchi <simon.marchi@efficios.com>
14016
14017 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14018
b3ee6dd9
SM
140192020-01-21 Simon Marchi <simon.marchi@efficios.com>
14020
14021 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14022 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14023 replace with range-based for.
14024 (gdbsim_interrupt_inferior): Remove.
14025 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14026 with a range-based for. Inline code from
14027 gdbsim_interrupt_inferior.
14028
f9fac3c8
SM
140292020-01-21 Simon Marchi <simon.marchi@efficios.com>
14030
14031 * infrun.c (proceed): Fix indentation.
14032
f6474de9
TT
140332020-01-21 Tom Tromey <tromey@adacore.com>
14034
14035 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14036 * python/python.c (python_extension_ops): Update.
14037 (gdbpy_colorize): New function.
14038 * python/lib/gdb/__init__.py (colorize): New function.
14039 * extension.h (ext_lang_colorize): Declare.
14040 * extension.c (ext_lang_colorize): New function.
14041 * extension-priv.h (struct extension_language_ops) <colorize>: New
14042 member.
14043 * cli/cli-style.c (_initialize_cli_style): Update help text.
14044
f0c702d4
LM
140452020-01-21 Luis Machado <luis.machado@linaro.org>
14046
14047 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14048 <cond>: Change type to bool.
14049 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14050 (aarch64_displaced_step_cb): Likewise.
14051 (aarch64_displaced_step_tb): Likewise.
14052
1ab139e5
LM
140532020-01-21 Luis Machado <luis.machado@linaro.org>
14054
14055 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14056 output.
14057
0c271889
LM
140582020-01-21 Luis Machado <luis.machado@linaro.org>
14059
14060 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14061 <pc_adjust>: Adjust the documentation.
14062 (aarch64_displaced_step_fixup): Check if PC really moved before
14063 adjusting it.
14064
4d89c1c7
TT
140652020-01-19 Tom Tromey <tom@tromey.com>
14066
14067 * disasm.c (~gdb_disassembler): New destructor.
14068 (gdb_buffered_insn_length): Call disassemble_free_target.
14069 * disasm.h (class gdb_disassembler): Declare destructor. Use
14070 DISABLE_COPY_AND_ASSIGN.
14071
c0ab21c2
TT
140722020-01-19 Tom Tromey <tom@tromey.com>
14073
14074 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14075 (die_reader_func_ftype): Remove.
14076 (cutu_reader): New class.
14077 (dw2_get_file_names_reader): Remove "data" parameter.
14078 (dw2_get_file_names): Use cutu_reader.
14079 (create_debug_type_hash_table): Update.
14080 (read_cutu_die_from_dwo): Update comment.
14081 (lookup_dwo_unit): Add dwo_name parameter.
14082 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14083 die_reader_func_ftype and data parameters.
14084 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14085 Remove die_reader_func_ftype and data parameters.
14086 (~cutu_reader): New; from init_cutu_and_read_dies.
14087 (cutu_reader::cutu_reader): Rename from
14088 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14089 and data parameters.
14090 (init_cutu_and_read_dies_simple): Remove.
14091 (struct process_psymtab_comp_unit_data): Remove.
14092 (process_psymtab_comp_unit_reader): Remove data parameter; add
14093 want_partial_unit and pretend_language parameters.
14094 (process_psymtab_comp_unit): Use cutu_reader.
14095 (build_type_psymtabs_reader): Remove data parameter.
14096 (build_type_psymtabs_1): Use cutu_reader.
14097 (process_skeletonless_type_unit): Likewise.
14098 (load_partial_comp_unit_reader): Remove.
14099 (load_partial_comp_unit): Use cutu_reader.
14100 (load_full_comp_unit_reader): Remove.
14101 (load_full_comp_unit): Use cutu_reader.
14102 (struct create_dwo_cu_data): Remove.
14103 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14104 dwo_unit parameters.
14105 (create_cus_hash_table): Use cutu_reader.
14106 (struct dwarf2_read_addr_index_data): Remove.
14107 (dwarf2_read_addr_index_reader): Remove.
14108 (dwarf2_read_addr_index): Use cutu_reader.
14109 (read_signatured_type_reader): Remove.
14110 (read_signatured_type): Use cutu_reader.
14111
45bbae5c
TT
141122020-01-19 Tom Tromey <tom@tromey.com>
14113
14114 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14115 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14116 (tui_wrefresh): Declare.
14117 * tui/tui-wingeneral.c (suppress_output): New global.
14118 (tui_suppress_output, ~tui_suppress_output): New constructor and
14119 destructor.
14120 (tui_wrefresh): New function.
14121 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14122 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14123 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14124 method.
14125 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14126 tui_wrefresh.
14127 (tui_data_window::no_refresh): New method.
14128 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14129 (tui_reg_command): Use tui_suppress_output
14130 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14131 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14132 method.
14133 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14134
4f13c1c0
TT
141352020-01-19 Tom Tromey <tom@tromey.com>
14136
14137 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14138 Handle case where symtab is null.
14139
fa47e446
SM
141402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14141
14142 * linux-fork.c (one_fork_p): Simplify.
14143
26f42329
SM
141442020-01-17 Simon Marchi <simon.marchi@efficios.com>
14145
14146 * top.c (struct qt_args): Remove.
14147 (kill_or_detach): Change return type to void, replace `void *`
14148 parameter with a proper one.
14149 (print_inferior_quit_action): Likewise.
14150 (quit_confirm): Use range-based for loop to iterate over inferiors.
14151 (quit_force): Likewise.
14152
a9ac81b1
SM
141532020-01-17 Simon Marchi <simon.marchi@efficios.com>
14154
14155 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14156 `void *` parameter with proper parameters.
14157 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14158 (print_one_inferior): Change return type to void, replace `void *`
14159 parameter with proper parameters.
14160 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14161 inferiors.
14162 (get_other_inferior): Remove.
14163 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14164 inferiors.
14165
788eca49
SM
141662020-01-17 Simon Marchi <simon.marchi@efficios.com>
14167
14168 * mi/mi-interp.c (report_initial_inferior): Remove.
14169 (mi_interp::init): Use range-based for to iterate over inferiors.
14170
d9bc85b6
SM
141712020-01-17 Simon Marchi <simon.marchi@efficios.com>
14172
14173 * python/py-inferior.c (build_inferior_list): Remove.
14174 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14175
40c94099
CB
141762020-01-16 Christian Biesinger <cbiesinger@google.com>
14177
14178 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14179 (btrace_stitch_trace): Likewise.
14180 * charset.c (intermediate_encoding): Likewise (vaild).
14181 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14182 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14183 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14184
e0cdfe3c
HD
141852020-01-16 Hannes Domani <ssbssa@yahoo.de>
14186
14187 * windows-tdep.c (windows_get_tlb_type):
14188 Add rtl_user_process_parameters type.
14189
790f1718 141902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14191 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14192
14193 PR build/24805
14194 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14195 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14196 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14197 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14198 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14199 (ps_plog): Redeclare exported functions with default visibility.
14200
3112ed97
NA
142012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14202
14203 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14204 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14205
8dc3273e
SM
142062020-01-15 Simon Marchi <simon.marchi@efficios.com>
14207
14208 * infcmd.c (post_create_inferior): Use get_thread_regcache
14209 instead of get_current_regcache.
14210
ff47f4f0
TT
142112020-01-14 Tom Tromey <tom@tromey.com>
14212
14213 PR symtab/12535:
14214 * python/python.c (gdbpy_decode_line): Treat empty string the same
14215 as no argument.
14216
975f45b7
TT
142172020-01-14 Tom Tromey <tom@tromey.com>
14218
14219 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14220
25e57356
TT
142212020-01-14 Tom Tromey <tom@tromey.com>
14222
14223 * nat/linux-btrace.c: Don't include <config.h>.
14224 * nat/linux-ptrace.c: Don't include <config.h>.
14225 * nat/x86-linux-dregs.c: Don't include <config.h>.
14226
05ea2a05
TT
142272020-01-14 Tom Tromey <tom@tromey.com>
14228
14229 * configure: Rebuild.
14230 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14231
01027315
TT
142322020-01-14 Tom Tromey <tom@tromey.com>
14233
14234 * nat/x86-linux-dregs.c: Include configh.h.
14235 * nat/linux-ptrace.c: Include configh.h.
14236 * nat/linux-btrace.c: Include configh.h.
14237 * defs.h: Include config.h, bfd.h.
14238 * configure.ac: Don't source common.host.
14239 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14240 * configure: Rebuild.
14241 * acinclude.m4: Update path.
14242 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14243 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14244 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14245 (CLIBS): Add LIBSUPPORT.
14246 (CDEPS): Likewise.
14247 (COMMON_SFILES): Remove gdbsupport files.
14248 (HFILES_NO_SRCDIR): Likewise.
14249 (stamp-version): Update path to create-version.sh.
14250 (ALLDEPFILES): Remove gdbsupport files.
14251
b2ceabe8
TT
142522020-01-14 Tom Tromey <tom@tromey.com>
14253
14254 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14255 USE_WIN32API when needed.
14256 * configure.ac (USE_WIN32API): Don't define.
14257 (WIN32LIBS): Use WIN32APILIBS.
14258 * configure: Rebuild.
14259
25c51f71
TT
142602020-01-14 Tom Tromey <tom@tromey.com>
14261
14262 * configure: Rebuild.
14263 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14264
717c684d
BE
142652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14266
14267 * skip.c (skip_function_command): Make skip w/o arguments use the
14268 name of the inlined function if pc is inside any inlined function.
14269
7da6a5b9
LM
142702020-01-14 Luis Machado <luis.machado@linaro.org>
14271
14272 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14273 * infrun.c (resume_1): Likewise.
14274 (handle_inferior_event): Remove stale comment.
14275 * linux-nat.c (linux_nat_target::resume): Update comments.
14276 (save_stop_reason): Likewise.
14277 (linux_nat_filter_event): Likewise.
14278 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14279
44e4c775
AB
142802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14281
14282 * elfread.c (record_minimal_symbol): Set section index to 0 for
14283 non-allocatable sections.
14284
18a8505e
AT
14285
142862020-01-13 Ali Tamur <tamur@google.com>
14287
14288 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14289 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14290 to gdb::optional. Update comments.
14291 (dwo_file): Update comments.
14292 (read_attribute): Update API to take an additional out parameter,
14293 need_reprocess. This is used to mark attributes that need other
14294 attributes (e.g. str_offsets_base) for correct computation which may not
14295 have been read yet.
14296 (read_attribute_reprocess): New function declaration.
14297 (read_addr_index): Likewise.
14298 (read_dwo_str_index): Likewise.
14299 (read_stub_str_index): Likewise.
14300 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14301 (lookup_addr_base): New function definition.
14302 (lookup_ranges_base): Likewise.
14303 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14304 lookup_ranges_base.
14305 (init_cutu_and_read_dies): Update comments.
14306 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14307 unit. This is used to inherit parent's str_offsets_base and addr_base.
14308 Update comments.
14309 (init_cutu_and_read_dies_simple): Reflect API changes.
14310 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14311 (create_cus_hash_table): Change API to take parent compile unit.
14312 Reflect API changes.
14313 (open_and_init_dwo_file): Reflect API changes.
14314 (dwarf2_get_pc_bounds): Update comments.
14315 (dwarf2_record_block_ranges): Likewise.
14316 (read_full_die_1): Change implementation to reprocess attributes that
14317 need str_offsets_base and addr_base.
14318 (partial_die_info::read): Likewise.
14319 (read_attribute_reprocess): New function definition.
14320 (read_attribute_value): Change API to take an additional out parameter,
14321 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14322 when a non-dwo compile unit has index based attributes.
14323 (read_attribute): Reflect API changes.
14324 (read_addr_index_1): Reflect API changes. Update comments.
14325 (dwarf2_read_addr_index_data): Reflect API changes.
14326 (dwarf2_read_addr_index): Likewise.
14327 (read_str_index): Change API and implementation. This becomes a helper
14328 to be used by the new string index related methods. Update error
14329 message and comments.
14330 (read_dwo_str_index): New function definition.
14331 (read_stub_str_index): Likewise.
14332 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14333 * symfile.h (dwarf2_debug_sections): Likewise.
14334 * xcoffread.c (dwarf2_debug_sections): Likewise.
14335
0cac9354
SM
143362020-01-13 Simon Marchi <simon.marchi@efficios.com>
14337
14338 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14339 core_reg_sect type to gdb_byte *.
14340 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14341 * cris-tdep.c (fetch_core_registers): Likewise.
14342 * corelow.c (core_target::get_core_register_section): Change
14343 type of `contents` to gdb::byte_vector.
14344
9a6d629c
AB
143452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14346
14347 * tui/tui-wingeneral.c (box_win): Position the title in the center
14348 of the border.
14349
d8b2f9e3
SM
143502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14351
14352 * corelow.c (core_target::get_core_register_section): Use
14353 std::vector instead of alloca.
14354
bb564c58
SM
143552020-01-13 Simon Marchi <simon.marchi@efficios.com>
14356
14357 * warning.m4: Add -Wmissing-declarations to build_warnings.
14358 * configure: Re-generate.
14359
6b366111
SM
143602020-01-13 Simon Marchi <simon.marchi@efficios.com>
14361
14362 * python/python.c (init__gdb_module): Add declaration.
14363
6c265988
SM
143642020-01-13 Simon Marchi <simon.marchi@efficios.com>
14365
14366 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14367 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14368 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14369 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14370 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14371 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14372 * ada-exp.y (_initialize_ada_exp): Add declaration.
14373 * ada-lang.c (_initialize_ada_language): Add declaration.
14374 * ada-tasks.c (_initialize_tasks): Add declaration.
14375 * agent.c (_initialize_agent): Add declaration.
14376 * aix-thread.c (_initialize_aix_thread): Add declaration.
14377 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14378 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14379 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14380 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14381 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14382 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14383 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14384 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14385 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14386 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14387 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14388 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14389 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14390 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14391 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14392 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14393 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14394 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14395 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14396 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14397 * annotate.c (_initialize_annotate): Add declaration.
14398 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14399 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14400 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14401 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14402 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14403 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14404 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14405 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14406 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14407 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14408 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14409 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14410 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14411 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14412 * auto-load.c (_initialize_auto_load): Add declaration.
14413 * auxv.c (_initialize_auxv): Add declaration.
14414 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14415 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14416 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14417 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14418 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14419 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14420 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14421 * breakpoint.c (_initialize_breakpoint): Add declaration.
14422 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14423 * btrace.c (_initialize_btrace): Add declaration.
14424 * charset.c (_initialize_charset): Add declaration.
14425 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14426 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14427 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14428 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14429 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14430 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14431 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14432 * coffread.c (_initialize_coffread): Add declaration.
14433 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14434 * compile/compile.c (_initialize_compile): Add declaration.
14435 * complaints.c (_initialize_complaints): Add declaration.
14436 * completer.c (_initialize_completer): Add declaration.
14437 * copying.c (_initialize_copying): Add declaration.
14438 * corefile.c (_initialize_core): Add declaration.
14439 * corelow.c (_initialize_corelow): Add declaration.
14440 * cp-abi.c (_initialize_cp_abi): Add declaration.
14441 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14442 * cp-support.c (_initialize_cp_support): Add declaration.
14443 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14444 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14445 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14446 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14447 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14448 * ctfread.c (_initialize_ctfread): Add declaration.
14449 * d-lang.c (_initialize_d_language): Add declaration.
14450 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14451 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14452 * dbxread.c (_initialize_dbxread): Add declaration.
14453 * dcache.c (_initialize_dcache): Add declaration.
14454 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14455 * disasm.c (_initialize_disasm): Add declaration.
14456 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14457 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14458 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14459 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14460 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14461 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14462 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14463 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14464 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14465 * elfread.c (_initialize_elfread): Add declaration.
14466 * exec.c (_initialize_exec): Add declaration.
14467 * extension.c (_initialize_extension): Add declaration.
14468 * f-lang.c (_initialize_f_language): Add declaration.
14469 * f-valprint.c (_initialize_f_valprint): Add declaration.
14470 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14471 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14472 * filesystem.c (_initialize_filesystem): Add declaration.
14473 * findcmd.c (_initialize_mem_search): Add declaration.
14474 * findvar.c (_initialize_findvar): Add declaration.
14475 * fork-child.c (_initialize_fork_child): Add declaration.
14476 * frame-base.c (_initialize_frame_base): Add declaration.
14477 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14478 * frame.c (_initialize_frame): Add declaration.
14479 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14480 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14481 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14482 * gcore.c (_initialize_gcore): Add declaration.
14483 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14484 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14485 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14486 * gdbarch.c (_initialize_gdbarch): Add declaration.
14487 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14488 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14489 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14490 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14491 * go-lang.c (_initialize_go_language): Add declaration.
14492 * go32-nat.c (_initialize_go32_nat): Add declaration.
14493 * guile/guile.c (_initialize_guile): Add declaration.
14494 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14495 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14496 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14497 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14498 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14499 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14500 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14501 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14502 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14503 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14504 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14505 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14506 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14507 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14508 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14509 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14510 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14511 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14512 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14513 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14514 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14515 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14516 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14517 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14518 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14519 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14520 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14521 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14522 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14523 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14524 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14525 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14526 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14527 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14528 * infcall.c (_initialize_infcall): Add declaration.
14529 * infcmd.c (_initialize_infcmd): Add declaration.
14530 * inflow.c (_initialize_inflow): Add declaration.
14531 * infrun.c (_initialize_infrun): Add declaration.
14532 * interps.c (_initialize_interpreter): Add declaration.
14533 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14534 * jit.c (_initialize_jit): Add declaration.
14535 * language.c (_initialize_language): Add declaration.
14536 * linux-fork.c (_initialize_linux_fork): Add declaration.
14537 * linux-nat.c (_initialize_linux_nat): Add declaration.
14538 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14539 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14540 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14541 * m2-lang.c (_initialize_m2_language): Add declaration.
14542 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14543 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14544 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14545 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14546 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14547 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14548 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14549 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14550 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14551 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14552 * machoread.c (_initialize_machoread): Add declaration.
14553 * macrocmd.c (_initialize_macrocmd): Add declaration.
14554 * macroscope.c (_initialize_macroscope): Add declaration.
14555 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14556 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14557 * maint.c (_initialize_maint_cmds): Add declaration.
14558 * mdebugread.c (_initialize_mdebugread): Add declaration.
14559 * memattr.c (_initialize_mem): Add declaration.
14560 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14561 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14562 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14563 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14564 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14565 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14566 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14567 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14568 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14569 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14570 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14571 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14572 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14573 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14574 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14575 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14576 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14577 * mipsread.c (_initialize_mipsread): Add declaration.
14578 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14579 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14580 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14581 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14582 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14583 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14584 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14585 * nto-procfs.c (_initialize_procfs): Add declaration.
14586 * objc-lang.c (_initialize_objc_language): Add declaration.
14587 * observable.c (_initialize_observer): Add declaration.
14588 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14589 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14590 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14591 * osabi.c (_initialize_gdb_osabi): Add declaration.
14592 * osdata.c (_initialize_osdata): Add declaration.
14593 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14594 * parse.c (_initialize_parse): Add declaration.
14595 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14596 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14597 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14598 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14599 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14600 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14601 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14602 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14603 * printcmd.c (_initialize_printcmd): Add declaration.
14604 * probe.c (_initialize_probe): Add declaration.
14605 * proc-api.c (_initialize_proc_api): Add declaration.
14606 * proc-events.c (_initialize_proc_events): Add declaration.
14607 * proc-service.c (_initialize_proc_service): Add declaration.
14608 * procfs.c (_initialize_procfs): Add declaration.
14609 * producer.c (_initialize_producer): Add declaration.
14610 * psymtab.c (_initialize_psymtab): Add declaration.
14611 * python/python.c (_initialize_python): Add declaration.
14612 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14613 * record-btrace.c (_initialize_record_btrace): Add declaration.
14614 * record-full.c (_initialize_record_full): Add declaration.
14615 * record.c (_initialize_record): Add declaration.
14616 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14617 * regcache.c (_initialize_regcache): Add declaration.
14618 * reggroups.c (_initialize_reggroup): Add declaration.
14619 * remote-notif.c (_initialize_notif): Add declaration.
14620 * remote-sim.c (_initialize_remote_sim): Add declaration.
14621 * remote.c (_initialize_remote): Add declaration.
14622 * reverse.c (_initialize_reverse): Add declaration.
14623 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14624 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14625 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14626 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14627 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14628 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14629 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14630 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14631 Add declaration.
14632 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14633 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14634 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14635 * rust-exp.y (_initialize_rust_exp): Add declaration.
14636 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14637 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14638 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14639 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14640 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14641 * score-tdep.c (_initialize_score_tdep): Add declaration.
14642 * ser-go32.c (_initialize_ser_dos): Add declaration.
14643 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14644 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14645 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14646 * ser-uds.c (_initialize_ser_socket): Add declaration.
14647 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14648 * serial.c (_initialize_serial): Add declaration.
14649 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14650 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14651 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14652 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14653 * skip.c (_initialize_step_skip): Add declaration.
14654 * sol-thread.c (_initialize_sol_thread): Add declaration.
14655 * solib-aix.c (_initialize_solib_aix): Add declaration.
14656 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14657 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14658 * solib-frv.c (_initialize_frv_solib): Add declaration.
14659 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14660 * solib-target.c (_initialize_solib_target): Add declaration.
14661 * solib.c (_initialize_solib): Add declaration.
14662 * source-cache.c (_initialize_source_cache): Add declaration.
14663 * source.c (_initialize_source): Add declaration.
14664 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14665 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14666 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14667 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14668 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14669 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14670 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14671 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14672 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14673 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14674 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14675 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14676 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14677 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14678 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14679 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14680 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14681 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14682 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14683 * stabsread.c (_initialize_stabsread): Add declaration.
14684 * stack.c (_initialize_stack): Add declaration.
14685 * stap-probe.c (_initialize_stap_probe): Add declaration.
14686 * std-regs.c (_initialize_frame_reg): Add declaration.
14687 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14688 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14689 * symfile.c (_initialize_symfile): Add declaration.
14690 * symmisc.c (_initialize_symmisc): Add declaration.
14691 * symtab.c (_initialize_symtab): Add declaration.
14692 * target.c (_initialize_target): Add declaration.
14693 * target-connection.c (_initialize_target_connection): Add
14694 declaration.
14695 * target-dcache.c (_initialize_target_dcache): Add declaration.
14696 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14697 * thread.c (_initialize_thread): Add declaration.
14698 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14699 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14700 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14701 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14702 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14703 * tracectf.c (_initialize_ctf): Add declaration.
14704 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14705 * tracefile.c (_initialize_tracefile): Add declaration.
14706 * tracepoint.c (_initialize_tracepoint): Add declaration.
14707 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14708 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14709 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14710 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14711 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14712 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14713 * tui/tui.c (_initialize_tui): Add declaration.
14714 * typeprint.c (_initialize_typeprint): Add declaration.
14715 * ui-style.c (_initialize_ui_style): Add declaration.
14716 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14717 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14718 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14719 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14720 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14721 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14722 * unittests/filtered_iterator-selftests.c
14723 (_initialize_filtered_iterator_selftests): Add declaration.
14724 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14725 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14726 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14727 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14728 * unittests/main-thread-selftests.c
14729 (_initialize_main_thread_selftests): Add declaration.
14730 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14731 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14732 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14733 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14734 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14735 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14736 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14737 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14738 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14739 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14740 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14741 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14742 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14743 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14744 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14745 declaration.
14746 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14747 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14748 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14749 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14750 * user-regs.c (_initialize_user_regs): Add declaration.
14751 * utils.c (_initialize_utils): Add declaration.
14752 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14753 * valops.c (_initialize_valops): Add declaration.
14754 * valprint.c (_initialize_valprint): Add declaration.
14755 * value.c (_initialize_values): Add declaration.
14756 * varobj.c (_initialize_varobj): Add declaration.
14757 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14758 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14759 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14760 * windows-nat.c (_initialize_windows_nat): Add declaration.
14761 (_initialize_check_for_gdb_ini): Add declaration.
14762 (_initialize_loadable): Add declaration.
14763 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14764 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14765 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14766 * xcoffread.c (_initialize_xcoffread): Add declaration.
14767 * xml-support.c (_initialize_xml_support): Add declaration.
14768 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14769 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14770 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14771 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14772
e2de1eec
SM
147732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14774
14775 * regformats/regdat.sh: Generate declaration for init function.
14776
e0037b4c
SM
147772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14778
14779 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14780 up.
14781 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14782 close_one_inferior>: New methods.
14783 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14784 pass down target to find_inferior_pid.
14785 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14786 Pass down target to find_inferior_ptid.
14787 (gdbsim_target::create_inferior): Pass down target to
14788 add_thread_silent.
14789 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14790 target down to find_inferior_ptid and switch_to_thread.
14791 (gdbsim_target::close): Update to call close_one_inferior.
14792 (struct resume_data): Remove.
14793 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14794 directly, rather than through a void pointer.
14795 (gdbsim_target::resume): Update to call resume_one_inferior.
14796
58920b5b
SM
147972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14798
14799 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14800
4ec89149
PA
148012020-01-12 Pedro Alves <palves@redhat.com>
14802
14803 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14804 directly for the current inferior instead of
14805 discard_all_inferiors.
14806 (discard_all_inferiors): Delete.
14807
7c392d1d
TT
148082020-01-11 Tom Tromey <tom@tromey.com>
14809
14810 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14811 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14812 deprecated_safe_get_selected_frame.
14813
d9ebdab7
TBA
148142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14815
14816 * inferior.c (print_inferior): Switch inferior before printing it.
14817
f3c469b9
PA
148182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14819 Pedro Alves <palves@redhat.com>
14820
14821 * progspace-and-thread.c (switch_to_program_space_and_thread):
14822 Assert there's an inferior for PSPACE. Use
14823 switch_to_inferior_no_thread to switch the inferior too.
14824 * progspace.c (program_space::~program_space): Call
14825 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14826 (program_space::free_all_objfiles): Don't call clear_symtab_users
14827 here.
14828 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14829
65c574f6
PA
148302020-01-10 Pedro Alves <palves@redhat.com>
14831
14832 * NEWS: Mention multi-target debugging, "info connections", and
14833 "add-inferior -no-connection".
14834
2f4fcf00
PA
148352020-01-10 Pedro Alves <palves@redhat.com>
14836
14837 * infrun.c: Include "target-connection.h".
14838 (check_multi_target_resumption): New.
14839 (proceed): Call it.
14840 * target-connection.c (make_target_connection_string): Make
14841 extern.
14842 * target-connection.h (make_target_connection_string): Declare.
14843
121b3efd
PA
148442020-01-10 Pedro Alves <palves@redhat.com>
14845
14846 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14847 * inferior.c (uiout_field_connection): New function.
14848 (print_inferior): Add new "connection-id" column.
14849 (add_inferior_command): Show connection number/string of added
14850 inferior.
14851 * process-stratum-target.h
14852 (process_stratum_target::connection_string): New virtual method.
14853 (process_stratum_target::connection_number): New field.
14854 * remote.c (remote_target::connection_string): New override.
14855 * target-connection.c: New file.
14856 * target-connection.h: New file.
14857 * target.c (decref_target): Remove process_stratum targets from
14858 the connection list.
14859 (target_stack::push): Add process_stratum targets to the
14860 connection list.
14861
4f837581
PA
148622020-01-10 Pedro Alves <palves@redhat.com>
14863
14864 Revert:
14865 2016-04-12 Pedro Alves <palves@redhat.com>
14866 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14867 Remove references to name.
14868 * serial.h (struct serial) <name>: Delete.
14869
f4ec508e
PA
148702020-01-10 Pedro Alves <palves@redhat.com>
14871
14872 * gdbarch-selftests.c (register_to_value_test): Remove "target
14873 already pushed" check.
14874
5b6d1e4f
PA
148752020-01-10 Pedro Alves <palves@redhat.com>
14876 John Baldwin <jhb@FreeBSD.org>
14877
14878 * aarch64-linux-nat.c
14879 (aarch64_linux_nat_target::thread_architecture): Adjust.
14880 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14881 (task_command_1): Likewise.
14882 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14883 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14884 (aix_thread_target::store_registers)
14885 (aix_thread_target::thread_alive): Adjust.
14886 * amd64-fbsd-tdep.c: Include "inferior.h".
14887 (amd64fbsd_get_thread_local_address): Pass down target.
14888 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14889 thread's gdbarch instead of target_gdbarch.
14890 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14891 get_last_target_status.
14892 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14893 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14894 inferiors.
14895 (update_inserted_breakpoint_locations): Skip if inferiors with no
14896 execution.
14897 (update_global_location_list): When handling moribund locations,
14898 find representative inferior for location's pspace, and use thread
14899 count of its process_stratum target.
14900 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14901 * bsd-uthread.c (bsd_uthread_target::wait): Use
14902 as_process_stratum_target and adjust thread_change_ptid and
14903 add_thread calls.
14904 (bsd_uthread_target::update_thread_list): Use
14905 as_process_stratum_target and adjust find_thread_ptid,
14906 thread_change_ptid and add_thread calls.
14907 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14908 find_thread_ptid call.
14909 * corelow.c (add_to_thread_list): Adjust add_thread call.
14910 (core_target_open): Adjust add_thread_silent and thread_count
14911 calls.
14912 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14913 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14914 * event-top.c (async_disconnect): Pop targets from all inferiors.
14915 * exec.c (add_target_sections): Push exec target on all inferiors
14916 sharing the program space.
14917 (remove_target_sections): Remove the exec target from all
14918 inferiors sharing the program space.
14919 (exec_on_vfork): New.
14920 * exec.h (exec_on_vfork): Declare.
14921 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14922 Pass it down.
14923 (fbsd_nat_target::update_thread_list): Adjust.
14924 (fbsd_nat_target::resume): Adjust.
14925 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14926 down.
14927 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14928 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14929 get_thread_arch_regcache call.
14930 * fork-child.c (gdb_startup_inferior): Pass target down to
14931 startup_inferior and set_executing.
14932 * gdbthread.h (struct process_stratum_target): Forward declare.
14933 (add_thread, add_thread_silent, add_thread_with_info)
14934 (in_thread_list): Add process_stratum_target parameter.
14935 (find_thread_ptid(inferior*, ptid_t)): New overload.
14936 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14937 parameter.
14938 (all_threads()): Delete overload.
14939 (all_threads, all_non_exited_threads): Add process_stratum_target
14940 parameter.
14941 (all_threads_safe): Use brace initialization.
14942 (thread_count): Add process_stratum_target parameter.
14943 (set_resumed, set_running, set_stop_requested, set_executing)
14944 (threads_are_executing, finish_thread_state): Add
14945 process_stratum_target parameter.
14946 (switch_to_thread): Use is_current_thread.
14947 * i386-fbsd-tdep.c: Include "inferior.h".
14948 (i386fbsd_get_thread_local_address): Pass down target.
14949 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14950 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14951 have_inferiors check.
14952 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14953 (inf_ptrace_target::attach): Adjust.
14954 * infcall.c (run_inferior_call): Adjust.
14955 * infcmd.c (run_command_1): Pass target to
14956 scoped_finish_thread_state.
14957 (proceed_thread_callback): Skip inferiors with no execution.
14958 (continue_command): Rename 'all_threads' local to avoid hiding
14959 'all_threads' function. Adjust get_last_target_status call.
14960 (prepare_one_step): Adjust set_running call.
14961 (signal_command): Use user_visible_resume_target. Compare thread
14962 pointers instead of inferior_ptid.
14963 (info_program_command): Adjust to pass down target.
14964 (attach_command): Mark target's 'thread_executing' flag.
14965 (stop_current_target_threads_ns): New, factored out from ...
14966 (interrupt_target_1): ... this. Switch inferior before making
14967 target calls.
14968 * inferior-iter.h
14969 (struct all_inferiors_iterator, struct all_inferiors_range)
14970 (struct all_inferiors_safe_range)
14971 (struct all_non_exited_inferiors_range): Filter on
14972 process_stratum_target too. Remove explicit.
14973 * inferior.c (inferior::inferior): Push dummy target on target
14974 stack.
14975 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14976 Add process_stratum_target parameter, and pass it down.
14977 (have_live_inferiors): Adjust.
14978 (switch_to_inferior_and_push_target): New.
14979 (add_inferior_command, clone_inferior_command): Handle
14980 "-no-connection" parameter. Use
14981 switch_to_inferior_and_push_target.
14982 (_initialize_inferior): Mention "-no-connection" option in
14983 the help of "add-inferior" and "clone-inferior" commands.
14984 * inferior.h: Include "process-stratum-target.h".
14985 (interrupt_target_1): Use bool.
14986 (struct inferior) <push_target, unpush_target, target_is_pushed,
14987 find_target_beneath, top_target, process_target, target_at,
14988 m_stack>: New.
14989 (discard_all_inferiors): Delete.
14990 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14991 (all_inferiors, all_non_exited_inferiors): Add
14992 process_stratum_target parameter.
14993 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14994 (target_last_proc_target): New global.
14995 (follow_fork_inferior): Push target on new inferior. Pass target
14996 to add_thread_silent. Call exec_on_vfork. Handle target's
14997 reference count.
14998 (follow_fork): Adjust get_last_target_status call. Also consider
14999 target.
15000 (follow_exec): Push target on new inferior.
15001 (struct execution_control_state) <target>: New field.
15002 (user_visible_resume_target): New.
15003 (do_target_resume): Call target_async.
15004 (resume_1): Set target's threads_executing flag. Consider resume
15005 target.
15006 (commit_resume_all_targets): New.
15007 (proceed): Also consider resume target. Skip threads of inferiors
15008 with no execution. Commit resumtion in all targets.
15009 (start_remote): Pass current inferior to wait_for_inferior.
15010 (infrun_thread_stop_requested): Consider target as well. Pass
15011 thread_info pointer to clear_inline_frame_state instead of ptid.
15012 (infrun_thread_thread_exit): Consider target as well.
15013 (random_pending_event_thread): New inferior parameter. Use it.
15014 (do_target_wait): Rename to ...
15015 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15016 down.
15017 (threads_are_resumed_pending_p, do_target_wait): New.
15018 (prepare_for_detach): Adjust calls.
15019 (wait_for_inferior): New inferior parameter. Handle it. Use
15020 do_target_wait_1 instead of do_target_wait.
15021 (fetch_inferior_event): Adjust. Switch to representative
15022 inferior. Pass target down.
15023 (set_last_target_status): Add process_stratum_target parameter.
15024 Save target in global.
15025 (get_last_target_status): Add process_stratum_target parameter and
15026 handle it.
15027 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15028 (context_switch): Check inferior_ptid == null_ptid before calling
15029 inferior_thread().
15030 (get_inferior_stop_soon): Pass down target.
15031 (wait_one): Rename to ...
15032 (poll_one_curr_target): ... this.
15033 (struct wait_one_event): New.
15034 (wait_one): New.
15035 (stop_all_threads): Adjust.
15036 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15037 event's target.
15038 (switch_back_to_stepped_thread): Also consider target.
15039 (print_stop_event): Update.
15040 (normal_stop): Update. Also consider the resume target.
15041 * infrun.h (wait_for_inferior): Remove declaration.
15042 (user_visible_resume_target): New declaration.
15043 (get_last_target_status, set_last_target_status): New
15044 process_stratum_target parameter.
15045 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15046 process_stratum_target parameter, and use it.
15047 (clear_inline_frame_state (thread_info*)): New.
15048 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15049 process_stratum_target parameter.
15050 (clear_inline_frame_state (thread_info*)): Declare.
15051 * linux-fork.c (delete_checkpoint_command): Pass target down to
15052 find_thread_ptid.
15053 (checkpoint_command): Adjust.
15054 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15055 instead of just tweaking inferior_ptid.
15056 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15057 (exit_lwp): Pass target down to find_thread_ptid.
15058 (attach_proc_task_lwp_callback): Pass target down to
15059 add_thread/set_running/set_executing.
15060 (linux_nat_target::attach): Pass target down to
15061 thread_change_ptid.
15062 (get_detach_signal): Pass target down to find_thread_ptid.
15063 Consider last target status's target.
15064 (linux_resume_one_lwp_throw, resume_lwp)
15065 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15066 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15067 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15068 (linux_nat_target::async_wait_fd): New.
15069 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15070 target down.
15071 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15072 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15073 * linux-thread-db.c (struct thread_db_info::process_target): New
15074 field.
15075 (add_thread_db_info): Save target.
15076 (get_thread_db_info): New process_stratum_target parameter. Also
15077 match target.
15078 (delete_thread_db_info): New process_stratum_target parameter.
15079 Also match target.
15080 (thread_from_lwp): Adjust to pass down target.
15081 (thread_db_notice_clone): Pass down target.
15082 (check_thread_db_callback): Pass down target.
15083 (try_thread_db_load_1): Always push the thread_db target.
15084 (try_thread_db_load, record_thread): Pass target down.
15085 (thread_db_target::detach): Pass target down. Always unpush the
15086 thread_db target.
15087 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15088 target down. Always unpush the thread_db target.
15089 (find_new_threads_callback, thread_db_find_new_threads_2)
15090 (thread_db_target::update_thread_list): Pass target down.
15091 (thread_db_target::pid_to_str): Pass current inferior down.
15092 (thread_db_target::get_thread_local_address): Pass target down.
15093 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15094 target down.
15095 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15096 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15097 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15098 (procfs_init_inferior): Rename to ...
15099 (procfs_target::procfs_init_inferior): ... this and adjust.
15100 (procfs_target::create_inferior, procfs_notice_thread)
15101 (procfs_do_thread_registers): Adjust.
15102 * ppc-fbsd-tdep.c: Include "inferior.h".
15103 (ppcfbsd_get_thread_local_address): Pass down target.
15104 * proc-service.c (ps_xfer_memory): Switch current inferior and
15105 program space as well.
15106 (get_ps_regcache): Pass target down.
15107 * process-stratum-target.c
15108 (process_stratum_target::thread_address_space)
15109 (process_stratum_target::thread_architecture): Pass target down.
15110 * process-stratum-target.h
15111 (process_stratum_target::threads_executing): New field.
15112 (as_process_stratum_target): New.
15113 * ravenscar-thread.c
15114 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15115 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15116 down.
15117 * record-btrace.c (record_btrace_target::info_record): Adjust.
15118 (record_btrace_target::record_method)
15119 (record_btrace_target::record_is_replaying)
15120 (record_btrace_target::fetch_registers)
15121 (get_thread_current_frame_id, record_btrace_target::resume)
15122 (record_btrace_target::wait, record_btrace_target::stop): Pass
15123 target down.
15124 * record-full.c (record_full_wait_1): Switch to event thread.
15125 Pass target down.
15126 * regcache.c (regcache::regcache)
15127 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15128 process_stratum_target parameter and handle it.
15129 (current_thread_target): New global.
15130 (get_thread_regcache): Add process_stratum_target parameter and
15131 handle it. Switch inferior before calling target method.
15132 (get_thread_regcache): Pass target down.
15133 (get_thread_regcache_for_ptid): Pass target down.
15134 (registers_changed_ptid): Add process_stratum_target parameter and
15135 handle it.
15136 (registers_changed_thread, registers_changed): Pass target down.
15137 (test_get_thread_arch_aspace_regcache): New.
15138 (current_regcache_test): Define a couple local test_target_ops
15139 instances and use them for testing.
15140 (readwrite_regcache): Pass process_stratum_target parameter.
15141 (cooked_read_test, cooked_write_test): Pass mock_target down.
15142 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15143 (get_thread_arch_aspace_regcache): Add process_stratum_target
15144 parameter.
15145 (regcache::target): New method.
15146 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15147 (regcache::registers_changed_ptid): Add process_stratum_target
15148 parameter.
15149 (regcache::m_target): New field.
15150 (registers_changed_ptid): Add process_stratum_target parameter.
15151 * remote.c (remote_state::supports_vCont_probed): New field.
15152 (remote_target::async_wait_fd): New method.
15153 (remote_unpush_and_throw): Add remote_target parameter.
15154 (get_current_remote_target): Adjust.
15155 (remote_target::remote_add_inferior): Push target.
15156 (remote_target::remote_add_thread)
15157 (remote_target::remote_notice_new_inferior)
15158 (get_remote_thread_info): Pass target down.
15159 (remote_target::update_thread_list): Skip threads of inferiors
15160 bound to other targets. (remote_target::close): Don't discard
15161 inferiors. (remote_target::add_current_inferior_and_thread)
15162 (remote_target::process_initial_stop_replies)
15163 (remote_target::start_remote)
15164 (remote_target::remote_serial_quit_handler): Pass down target.
15165 (remote_target::remote_unpush_target): New remote_target
15166 parameter. Unpush the target from all inferiors.
15167 (remote_target::remote_unpush_and_throw): New remote_target
15168 parameter. Pass it down.
15169 (remote_target::open_1): Check whether the current inferior has
15170 execution instead of checking whether any inferior is live. Pass
15171 target down.
15172 (remote_target::remote_detach_1): Pass down target. Use
15173 remote_unpush_target.
15174 (extended_remote_target::attach): Pass down target.
15175 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15176 (remote_target::append_resumption): Pass down target.
15177 (remote_target::append_pending_thread_resumptions)
15178 (remote_target::remote_resume_with_hc, remote_target::resume)
15179 (remote_target::commit_resume): Pass down target.
15180 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15181 (remote_target::interrupt_query)
15182 (remote_target::remove_new_fork_children)
15183 (remote_target::check_pending_events_prevent_wildcard_vcont)
15184 (remote_target::remote_parse_stop_reply)
15185 (remote_target::process_stop_reply): Pass down target.
15186 (first_remote_resumed_thread): New remote_target parameter. Pass
15187 it down.
15188 (remote_target::wait_as): Pass down target.
15189 (unpush_and_perror): New remote_target parameter. Pass it down.
15190 (remote_target::readchar, remote_target::remote_serial_write)
15191 (remote_target::getpkt_or_notif_sane_1)
15192 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15193 down target.
15194 (remote_target::mourn_inferior): Pass down target. Use
15195 remote_unpush_target.
15196 (remote_target::core_of_thread)
15197 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15198 (remote_target::pid_to_exec_file)
15199 (remote_target::thread_handle_to_thread_info): Pass down target.
15200 (remote_target::async_wait_fd): New.
15201 * riscv-fbsd-tdep.c: Include "inferior.h".
15202 (riscv_fbsd_get_thread_local_address): Pass down target.
15203 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15204 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15205 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15206 Adjust.
15207 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15208 * solib-svr4.c (enable_break): Pass down target.
15209 * spu-multiarch.c (parse_spufs_run): Pass down target.
15210 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15211 * target-delegates.c: Regenerate.
15212 * target.c (g_target_stack): Delete.
15213 (current_top_target): Return the current inferior's top target.
15214 (target_has_execution_1): Refer to the passed-in inferior's top
15215 target.
15216 (target_supports_terminal_ours): Check whether the initial
15217 inferior was already created.
15218 (decref_target): New.
15219 (target_stack::push): Incref/decref the target.
15220 (push_target, push_target, unpush_target): Adjust.
15221 (target_stack::unpush): Defref target.
15222 (target_is_pushed): Return bool. Adjust to refer to the current
15223 inferior's target stack.
15224 (dispose_inferior): Delete, and inline parts ...
15225 (target_preopen): ... here. Only dispose of the current inferior.
15226 (target_detach): Hold strong target reference while detaching.
15227 Pass target down.
15228 (target_thread_name): Add assertion.
15229 (target_resume): Pass down target.
15230 (target_ops::beneath, find_target_at): Adjust to refer to the
15231 current inferior's target stack.
15232 (get_dummy_target): New.
15233 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15234 has a thread running.
15235 (initialize_targets): Rename to ...
15236 (_initialize_target): ... this.
15237 * target.h: Include "gdbsupport/refcounted-object.h".
15238 (struct target_ops): Inherit refcounted_object.
15239 (target_ops::shortname, target_ops::longname): Make const.
15240 (target_ops::async_wait_fd): New method.
15241 (decref_target): Declare.
15242 (struct target_ops_ref_policy): New.
15243 (target_ops_ref): New typedef.
15244 (get_dummy_target): Declare function.
15245 (target_is_pushed): Return bool.
15246 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15247 (all_matching_threads_iterator::all_matching_threads_iterator):
15248 Handle filter target.
15249 * thread-iter.h (struct all_matching_threads_iterator, struct
15250 all_matching_threads_range, class all_non_exited_threads_range):
15251 Filter by target too. Remove explicit.
15252 * thread.c (threads_executing): Delete.
15253 (inferior_thread): Pass down current inferior.
15254 (clear_thread_inferior_resources): Pass down thread pointer
15255 instead of ptid_t.
15256 (add_thread_silent, add_thread_with_info, add_thread): Add
15257 process_stratum_target parameter. Use it for thread and inferior
15258 searches.
15259 (is_current_thread): New.
15260 (thread_info::deletable): Use it.
15261 (find_thread_ptid, thread_count, in_thread_list)
15262 (thread_change_ptid, set_resumed, set_running): New
15263 process_stratum_target parameter. Pass it down.
15264 (set_executing): New process_stratum_target parameter. Pass it
15265 down. Adjust reference to 'threads_executing'.
15266 (threads_are_executing): New process_stratum_target parameter.
15267 Adjust reference to 'threads_executing'.
15268 (set_stop_requested, finish_thread_state): New
15269 process_stratum_target parameter. Pass it down.
15270 (switch_to_thread): Also match inferior.
15271 (switch_to_thread): New process_stratum_target parameter. Pass it
15272 down.
15273 (update_threads_executing): Reimplement.
15274 * top.c (quit_force): Pop targets from all inferior.
15275 (gdb_init): Don't call initialize_targets.
15276 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15277 Declare.
15278 (windows_add_thread, windows_delete_thread): Adjust.
15279 (get_windows_debug_event): Rename to ...
15280 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15281 * tracefile-tfile.c (tfile_target_open): Pass down target.
15282 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15283 Forward declare.
15284 (switch_to_thread): Add process_stratum_target parameter.
15285 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15286 parameter. Use it.
15287 (mi_on_resume): Pass target down.
15288 * nat/fork-inferior.c (startup_inferior): Add
15289 process_stratum_target parameter. Pass it down.
15290 * nat/fork-inferior.h (startup_inferior): Add
15291 process_stratum_target parameter.
15292 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15293
75c6c844
PA
152942020-01-10 Pedro Alves <palves@redhat.com>
15295
15296 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15297 directly. Instead find the first thread in the thread list and
15298 use switch_to_thread.
15299
78f2c40a
PA
153002020-01-10 Pedro Alves <palves@redhat.com>
15301
15302 * remote.c (remote_target::remote_add_inferior): Don't bind a
15303 process to the current inferior if the current inferior is already
15304 bound to a process.
15305
e7af6c70
TBA
153062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15307 Pedro Alves <palves@redhat.com>
15308
15309 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15310 If no process is specified, return null_ptid instead of
15311 inferior_ptid.
15312 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15313 TARGET_WAITKIND_SIGNALLED with no pid.
15314
31ba933e
PA
153152020-01-10 Pedro Alves <palves@redhat.com>
15316
15317 * remote.c (first_remote_resumed_thread): New.
15318 (remote_target::wait_as): Use it as default event_ptid instead of
15319 inferior_ptid.
15320
735fc2ca
PA
153212020-01-10 Pedro Alves <palves@redhat.com>
15322
15323 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15324
c17e02e1
PA
153252020-01-10 Pedro Alves <palves@redhat.com>
15326
15327 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15328 not -1.
15329
ab1ddbcf
PA
153302020-01-10 Pedro Alves <palves@redhat.com>
15331
15332 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15333 ptid to get_last_target_status.
15334 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15335 ptid to get_last_target_status.
15336 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15337 get_last_target_status.
15338 (info_program_command): Don't pass a target_waitstatus to
15339 get_last_target_status.
15340 * infrun.c (init_wait_for_inferior): Use
15341 nullify_last_target_wait_ptid.
15342 (get_last_target_status): Handle nullptr arguments.
15343 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15344 (print_stop_event): Don't pass a ptid to get_last_target_status.
15345 (normal_stop): Don't pass a ptid to get_last_target_status.
15346 * infrun.h (get_last_target_status, set_last_target_status): Move
15347 comments here and update.
15348 (nullify_last_target_wait_ptid): Declare.
15349 * linux-fork.c (fork_load_infrun_state): Remove local extern
15350 declaration of nullify_last_target_wait_ptid.
15351 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15352 to get_last_target_status.
15353
f3f8ece4
PA
153542020-01-10 Pedro Alves <palves@redhat.com>
15355
15356 * gdbthread.h (scoped_restore_current_thread)
15357 <dont_restore, restore, m_dont_restore>: Declare.
15358 * thread.c (thread_alive): Add assertion. Return bool.
15359 (switch_to_thread_if_alive): New.
15360 (prune_threads): Switch inferior/thread.
15361 (print_thread_info_1): Switch thread before calling target methods.
15362 (scoped_restore_current_thread::restore): New, factored out from
15363 ...
15364 (scoped_restore_current_thread::~scoped_restore_current_thread):
15365 ... this.
15366 (scoped_restore_current_thread::scoped_restore_current_thread):
15367 Add assertion.
15368 (thread_apply_all_command, thread_select): Use
15369 switch_to_thread_if_alive.
15370 * infrun.c (proceed, restart_threads, handle_signal_stop)
15371 (switch_back_to_stepped_thread): Switch current thread before
15372 calling target methods.
15373
db2d40f7
PA
153742020-01-10 Pedro Alves <palves@redhat.com>
15375
15376 * inferior.c (switch_to_inferior_no_thread): New function,
15377 factored out from ...
15378 (inferior_command): ... here.
15379 * inferior.h (switch_to_inferior_no_thread): Declare.
15380 * mi/mi-main.c (run_one_inferior): Use
15381 switch_to_inferior_no_thread.
15382
bd420a2d
PA
153832020-01-10 Pedro Alves <palves@redhat.com>
15384
15385 * infcmd.c (kill_command): Remove dead code.
15386
ddf5db90
PA
153872020-01-10 Pedro Alves <palves@redhat.com>
15388
15389 * remote.c (remote_target::mourn_inferior): No longer check
15390 whether the target is running.
15391
5018ce90
PA
153922020-01-10 Pedro Alves <palves@redhat.com>
15393
15394 * corelow.c (core_target::has_execution): Change parameter type to
15395 inferior pointer.
15396 * inferior.c (number_of_live_inferiors): Use
15397 inferior::has_execution instead of target_has_execution_1.
15398 * inferior.h (inferior::has_execution): New.
15399 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15400 inferior::has_execution instead of target_has_execution_1.
15401 * process-stratum-target.c
15402 (process_stratum_target::has_execution): Change parameter type to
15403 inferior pointer. Check the inferior's PID instead of
15404 inferior_ptid.
15405 * process-stratum-target.h
15406 (process_stratum_target::has_execution): Change parameter type to
15407 inferior pointer.
15408 * record-full.c (record_full_core_target::has_execution): Change
15409 parameter type to inferior pointer.
15410 * target.c (target_has_execution_1): Change parameter type to
15411 inferior pointer.
15412 (target_has_execution_current): Adjust.
15413 * target.h (target_ops::has_execution): Change parameter type to
15414 inferior pointer.
15415 (target_has_execution_1): Change parameter type to inferior
15416 pointer. Change return type to bool.
15417 * tracefile.h (tracefile_target::has_execution): Change parameter
15418 type to inferior pointer.
15419
74375d18
PA
154202020-01-10 Pedro Alves <palves@redhat.com>
15421
15422 * exceptions.c (print_flush): Remove current_top_target() check.
15423
acdf84a6
PA
154242020-01-10 Pedro Alves <palves@redhat.com>
15425
15426 * remote.c (show_remote_exec_file): Show the current inferior's
15427 exec-file instead of the command variable's value.
15428
ec506636
PA
154292020-01-10 Pedro Alves <palves@redhat.com>
15430
15431 * record-full.c (record_full_resume_ptid): New global.
15432 (record_full_target::resume): Set it.
15433 (record_full_wait_1): Use record_full_resume_ptid instead of
15434 inferior_ptid.
15435
873657b9
PA
154362020-01-10 Pedro Alves <palves@redhat.com>
15437
15438 * gdbthread.h (scoped_restore_current_thread)
15439 <dont_restore, restore, m_dont_restore>: Declare.
15440 * thread.c (thread_alive): Add assertion. Return bool.
15441 (switch_to_thread_if_alive): New.
15442 (prune_threads): Switch inferior/thread.
15443 (print_thread_info_1): Switch thread before calling target methods.
15444 (scoped_restore_current_thread::restore): New, factored out from
15445 ...
15446 (scoped_restore_current_thread::~scoped_restore_current_thread):
15447 ... this.
15448 (scoped_restore_current_thread::scoped_restore_current_thread):
15449 Add assertion.
15450 (thread_apply_all_command, thread_select): Use
15451 switch_to_thread_if_alive.
15452
7f0ae84c
GB
154532020-01-10 George Barrett <bob@bob131.so>
15454
15455 * stap-probe.c (stap_modify_semaphore): Don't check for null
15456 semaphores.
15457 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15458 for null semaphores.
15459
f5a7c406
AB
154602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15461
15462 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15463 all source windows, and maintain horizontal scroll status while
15464 doing so.
15465
9ae6bf64
TT
154662020-01-09 Tom Tromey <tom@tromey.com>
15467
15468 PR tui/18932:
15469 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15470 update_source_window, not print_source_lines.
15471
b2efe70c
AB
154722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15473
15474 * tui/tui.c (tui_enable): Register tui hooks after calling
15475 tui_display_main.
15476
5f23a082
CB
154772020-01-09 Christian Biesinger <cbiesinger@google.com>
15478
15479 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15480
3061113b
SM
154812020-01-08 Simon Marchi <simon.marchi@efficios.com>
15482
15483 * thread.c (print_thread_info_1): Fix indentation.
15484
57d75002
CB
154852020-01-09 Christian Biesinger <cbiesinger@google.com>
15486
15487 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15488 unique_xmalloc_ptr outside the if to always free the demangled name.
15489
6a053cb1
TT
154902020-01-08 Tom Tromey <tromey@adacore.com>
15491
15492 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15493 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15494 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15495 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15496 Remove.
15497 (section_offsets): New typedef.
15498 * symtab.c (fixup_section, get_msymbol_address): Update.
15499 * symmisc.c (dump_msymbols): Update.
15500 * symfile.h (relative_addr_info_to_section_offsets)
15501 (symfile_map_offsets_to_segments): Update.
15502 * symfile.c (build_section_addr_info_from_objfile)
15503 (init_objfile_sect_indices): Update.
15504 (struct place_section_arg): Change type of "offsets".
15505 (place_section): Update.
15506 (relative_addr_info_to_section_offsets): Change type of
15507 "section_offsets". Remove "num_sections" parameter.
15508 (default_symfile_offsets, syms_from_objfile_1)
15509 (set_objfile_default_section_offset): Update.
15510 (reread_symbols): No need to preserve section offsets by hand.
15511 (symfile_map_offsets_to_segments): Change type of "offsets".
15512 * stap-probe.c (relocate_address): Update.
15513 * stabsread.h (process_one_symbol): Update.
15514 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15515 (solib_target_relocate_section_addresses): Update.
15516 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15517 Update.
15518 * solib-frv.c (frv_relocate_main_executable): Update.
15519 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15520 * solib-aix.c (solib_aix_get_section_offsets): Change return
15521 type.
15522 (solib_aix_solib_create_inferior_hook): Update.
15523 * remote.c (remote_target::get_offsets): Update.
15524 * psymtab.c (find_pc_sect_psymtab): Update.
15525 * psympriv.h (struct partial_symbol) <address, text_low,
15526 text_high>: Update.
15527 * objfiles.h (obj_section_offset): Update.
15528 (struct objfile) <section_offsets>: Change type.
15529 <num_sections>: Remove.
15530 (objfile_relocate): Update.
15531 * objfiles.c (entry_point_address_query): Update
15532 (relocate_one_symbol): Change type of "section_offsets".
15533 (objfile_relocate1, objfile_relocate1): Change type of
15534 "new_offsets".
15535 (objfile_rebase1): Update.
15536 * mipsread.c (mipscoff_symfile_read): Update.
15537 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15538 parameter.
15539 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15540 (parse_external, psymtab_to_symtab_1): Update.
15541 * machoread.c (macho_symfile_offsets): Update.
15542 * ia64-tdep.c (ia64_find_unwind_table): Update.
15543 * hppa-tdep.c (read_unwind_info): Update.
15544 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15545 * dwarf2read.c (create_addrmap_from_index)
15546 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15547 (process_psymtab_comp_unit_reader, add_partial_symbol)
15548 (add_partial_subprogram, process_full_comp_unit)
15549 (read_file_scope, read_func_scope, read_lexical_block_scope)
15550 (read_call_site_scope, dwarf2_rnglists_process)
15551 (dwarf2_ranges_process, dwarf2_ranges_read)
15552 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15553 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15554 Update.
15555 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15556 Update.
15557 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15558 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15559 (process_one_symbol): Change type of "section_offsets".
15560 * ctfread.c (get_objfile_text_range): Update.
15561 * coffread.c (coff_symtab_read, enter_linenos)
15562 (process_coff_symbol): Update.
15563 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15564 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15565
456e800a
TT
155662020-01-08 Tom Tromey <tromey@adacore.com>
15567
15568 * dwarf2read.c (parse_macro_definition): Use std::string.
15569 (parse_macro_definition): Likewise.
15570
6dfa2fc2
TT
155712020-01-08 Tom Tromey <tromey@adacore.com>
15572
15573 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15574 (ATTR_ALLOC_CHUNK): Remove.
15575
421d1616
TT
155762020-01-08 Tom Tromey <tromey@adacore.com>
15577
15578 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15579
43816ebc
TT
155802020-01-08 Tom Tromey <tromey@adacore.com>
15581
15582 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15583 (dwarf2_compute_name, open_dwo_file): Likewise.
15584 (process_enumeration_scope): Use std::vector.
15585 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15586 (partial_die_info::fixup, dwarf2_start_subfile)
15587 (guess_full_die_structure_name, dwarf2_name): Likewise.
15588 (determine_prefix): Update.
15589 (guess_full_die_structure_name): Make return type const.
15590 (partial_die_full_name): Return unique_xmalloc_ptr.
15591 (DW_FIELD_ALLOC_CHUNK): Remove.
15592
4212d509
TT
155932020-01-07 Tom Tromey <tromey@adacore.com>
15594
15595 PR build/24937:
15596 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15597
06a6207a
JT
155982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15599
15600 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15601
153d79c4
AB
156022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15603
15604 * stack.c (print_frame_info): Move disassemble_next_line code
15605 inside source_print block.
15606
66182876
EZ
156072020-01-06 Eli Zaretskii <eliz@gnu.org>
15608
15609 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15610 gdb/signals.h, as we are now using native signal symbols.
15611
cbfa8581
SV
156122020-01-06 Shahab Vahedi <shahab@synopsys.com>
15613
15614 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15615 overflow by an early check of content vs threshold.
aac66a4c 15616 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15617 Likewise.
15618
3f602821
EZ
156192020-01-06 Eli Zaretskii <eliz@gnu.org>
15620
15621 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15622
a08c904d
JT
156232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15624
15625 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15626 export table if no section contains it's RVA.
15627
89a65580
EZ
156282020-01-06 Eli Zaretskii <eliz@gnu.org>
15629
15630 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15631
8b7fcda2
HD
156322020-01-06 Hannes Domani <ssbssa@yahoo.de>
15633
15634 * source.c (print_source_lines_base): Set last_line_listed.
15635
a61b4f69
SV
156362020-01-06 Shahab Vahedi <shahab@synopsys.com>
15637
15638 * tui/tui-disasm.c: Remove trailing spaces.
15639
559e7e50
EZ
156402020-01-06 Eli Zaretskii <eliz@gnu.org>
15641 Pedro Alves <palves@redhat.com>
15642
15643 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15644 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15645 (windows_gdb_signal_to_target): New function, uses the above
15646 enumeration to convert GDB internal signal codes to equivalent
15647 Windows codes.
15648 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15649 * windows-nat.c: Include "gdb_wait.h".
15650 (get_windows_debug_event): Extract the fatal exception from the
15651 exit status and convert to the equivalent Posix signal number.
15652 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15653 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15654 * gdbsupport/gdb_wait.c: New file, implements
15655 windows_status_to_termsig.
15656 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15657 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15658
f2302a34
AB
156592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15660
15661 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15662 show_layout.
15663
6a5206eb
LM
156642020-01-05 Luis Machado <luis.machado@linaro.org>
15665
15666 * aarch64-linux-nat.c
15667 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15668 and bfd_mach_aarch64.
15669
6ec1d75e
PW
156702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15671
15672 * ui-file.c (stdio_file::can_emit_style_escape)
15673 (tee_file::can_emit_style_escape): Ensure style is used also on
15674 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15675 to gdb_stdout.
15676 * main.c (set_gdb_data_directory): Use file style to output the
15677 warning that the given pathname is not a directory.
15678 * top.c (show_history_filename, gdb_safe_append_history)
15679 (show_gdb_datadir): Use file style.
15680
44f81a76
HD
156812020-01-03 Hannes Domani <ssbssa@yahoo.de>
15682
15683 * solib-target.c (struct lm_info_target):
15684 Change offsets to be a unique_xmalloc_ptr.
15685 (solib_target_relocate_section_addresses): Update.
15686
25057eb0
HD
156872020-01-03 Hannes Domani <ssbssa@yahoo.de>
15688
15689 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15690
6e2118f5
BE
156912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15692
15693 * MAINTAINERS (Write After Approval): Add myself.
15694
8133c7dc
LM
156952020-01-02 Luis Machado <luis.machado@linaro.org>
15696
15697 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15698 Cell BE architecture.
15699 * target.h (struct target_ops) <thread_architecture>: Likewise.
15700
48189bec
HD
157012020-01-01 Hannes Domani <ssbssa@yahoo.de>
15702
15703 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15704
ead1063b
HD
157052020-01-01 Hannes Domani <ssbssa@yahoo.de>
15706
15707 * MAINTAINERS (Write After Approval): Add myself.
15708
e5d78223
JB
157092020-01-01 Joel Brobecker <brobecker@adacore.com>
15710
15711 * gdbarch.sh: Update copyright year range of generated files.
15712
b811d2c2
JB
157132020-01-01 Joel Brobecker <brobecker@adacore.com>
15714
15715 Update copyright year range in all GDB files.
15716
5f4def5c
JB
157172020-01-01 Joel Brobecker <brobecker@adacore.com>
15718
15719 * copyright.py: Convert to Python 3.
15720
51fd4002
JB
157212020-01-01 Joel Brobecker <brobecker@adacore.com>
15722
15723 * copyright.py: Adapt after move of gnulib directory from gdb
15724 directory to toplevel directory.
15725
5fb651f2
JB
157262020-01-01 Joel Brobecker <brobecker@adacore.com>
15727
15728 * copyright.py (main): Exit if run from the wrong directory.
15729
5dd8bf88
JB
157302020-01-01 Joel Brobecker <brobecker@adacore.com>
15731
15732 * top.c (print_gdb_version): Change copyright year to 2020.
15733
9f71dacb 157342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15735
9f71dacb 15736 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15737
9f71dacb 15738For older changes see ChangeLog-2019.
c906108c
SS
15739\f
15740Local Variables:
15741mode: change-log
15742left-margin: 8
15743fill-column: 74
15744version-control: never
57da7796 15745coding: utf-8
c906108c 15746End: