]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[gdb/testsuite] Prevent pagination in GDB_INTERNALFLAGS
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
006811bc
SM
12020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * acinclude.m4: Update ptrace.m4 path.
4 * ptrace.m4: Moved to gdbsupport.
5
c75e31a1
SM
62020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
9 instead of target_gdbarch.
10
32495661
SM
112020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
12
13 * jit.c (jit_reader_load_command): Pass current inferior.
14 (jit_inferior_init): Change parameter type to inferior, use it.
15 (jit_inferior_created): Remove.
16 (jit_inferior_created_hook): Pass inferior parameter down.
17 (_initialize_jit): Use jit_inferior_created_hook instead of
18 jit_inferior_created.
19 * jit.h (jit_inferior_created_hook): Add inferior parameter.
20 * infrun.c (follow_exec): Pass inferior to
21 jit_inferior_created_hook.
22
3f66685e
SM
232020-10-24 Simon Marchi <simon.marchi@efficios.com>
24
25 * linux-thread-db.c (check_pid_namespace_match): Add inferior
26 parameter and use it.
27 (thread_db_inferior_created): Pass inferior argument.
28
a0ff652f
SM
292020-10-24 Simon Marchi <simon.marchi@efficios.com>
30
31 * aix-thread.c (aix_thread_inferior_created): Add inferior
32 parameter.
33 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
34 * dummy-frame.c (cleanup_dummy_frames): Likewise.
35 * jit.c (jit_inferior_created): Likewise.
36 * linux-thread-db.c (thread_db_inferior_created): Likewise.
37 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
38 * observable.h (inferior_created): Likewise.
39 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
40 * symfile-mem.c (add_vsyscall_page): Likewise.
41 * infcmd.c (post_create_inferior): Pass inferior argument.
42
3c67532c
JB
432020-10-24 Joel Brobecker <brobecker@adacore.com>
44
45 GDB 10.1 released.
46
8747316e
JB
472020-10-23 Joel Brobecker <brobecker@adacore.com>
48
49 * ada-typeprint.c (ada_print_type): Remove superfluous second call
50 to ada_check_typedef.
51
1a0ea399
AB
522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
53
54 * f-exp.y (f_parse): Rename to...
55 (f_language::parser): ...this.
56 * f-lang.c (f_get_encoding): Rename to...
57 (f_language::get_encoding): ...this.
58 (f_op_print_tab): Rename to...
59 (f_language::op_print_tab): ...this.
60 (exp_descriptor_f): Rename to...
61 (f_language::exp_descriptor_tab): ...this.
62 (class f_language): Moved to f-lang.h.
63 (f_language::language_arch_info): New function, moved out of class
64 declaration.
65 (f_language::search_name_hash): Likewise.
66 (f_language::lookup_symbol_nonlocal): Likewise.
67 (f_language::get_symbol_name_matcher_inner): Likewise.
68 * f-lang.h: Add 'valprint.h' include.
69 (class f_language): Moved here from f-lang.c.
70 * f-typeprint.c (f_type_print_args): Delete commented out
71 declaration.
72 (f_print_typedef): Rename to...
73 (f_language::print_typedef): ...this.
74 (f_print_type): Rename to...
75 (f_language::print_type): ...this.
76 (f_type_print_varspec_prefix): Delete declaration and rename to...
77 (f_language::f_type_print_varspec_prefix): ...this.
78 (f_type_print_varspec_suffix): Delete declaration and rename to...
79 (f_language::f_type_print_varspec_suffix): ...this.
80 (f_type_print_base): Delete declaration and rename to...
81 (f_language::f_type_print_base): ...this.
82 * f-valprint.c (f_value_print_inner): Rename to...
83 (f_language::value_print_inner): ...this.
84 * parse.c: Delete 'f-lang.h' include.
85
88cefd9b
AB
862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * language.h (language_defn::print_type): Add variable names in
89 declaration, and update header comment.
90
5399db93
AB
912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * ada-lang.c (ada_language::demangle): Rename to...
94 (ada_language::demangle_symbol): ...this.
95 * c-lang.c (cplus_language::demangle): Rename to...
96 (cplus_language::demangle_symbol): ...this.
97 * d-lang.c (d_language::demangle): Rename to...
98 (d_language::demangle_symbol): ...this.
99 * f-lang.c (f_language::demangle): Rename to...
100 (f_language::demangle_symbol): ...this.
101 * go-lang.c (go_language::demangle): Rename to...
102 (go_language::demangle_symbol): ...this.
103 * language.c (language_demangle): Update call to demangle_symbol.
104 (auto_or_unknown_language::demangle): Rename to...
105 (auto_or_unknown_language::demangle_symbol): ...this.
106 * language.h (language_defn::demangle): Rename to...
107 (language_defn::demangle_symbol): ...this.
108 * objc-lang.c (objc_language::demangle): Rename to...
109 (objc_language::demangle_symbol): ...this.
110 * rust-lang.c (rust_language::demangle): Rename to...
111 (rust_language::demangle_symbol): ...this.
112
4b2f86ef
AB
1132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
114
115 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
116 (iterate_over_file_blocks): Replace use of macro with the macros
117 definition.
118
e74b39de
AB
1192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
122 * valprint.c (maybe_print_array_index): Replace use of macro with
123 the macros definition.
124
00c696a6
AB
1252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * ada-lang.c (ada_language::print_array_index): Call value_print
128 directly.
129 * language.c (language_defn::print_array_index): Likewise.
130 * language.h (LA_VALUE_PRINT): Delete.
131 * valprint.c (value_print): Call value_print on the
132 current_language directly.
133
d3b67c56
AB
1342020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * language.h (LA_PRINT_TYPEDEF): Delete.
137 * typeprint.c (typedef_print): Call print_typedef directly on the
138 current_language object.
139
790e2a12
AB
1402020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * m2-exp.y (m2_parse): Rename to...
143 (m2_language::parser): ...this. Update function signature.
144 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
145 (m2_op_print): Rename to...
146 (m2_language::op_print_tab): ...this, and make const.
147 (exp_descriptor_modula2): Rename to...
148 (m2_language::exp_descriptor_modula2): ...this.
149 (class m2_language): Move to m2-lang.h.
150 (m2_language::language_arch_info): New function, moved out of
151 class declaration.
152 (m2_language::printchar): New function, body from m2_printchar.
153 (m2_language::printstr): New function, moved out of class
154 declaration.
155 (m2_language::emitchar): Likewise.
156 * m2-lang.h (m2_parse): Delete declaration.
157 (m2_print_typedef): Delete declaration.
158 (m2_value_print_inner): Delete declaration.
159 (class m2_language): Class declaration moved from m2-lang.c,
160 larger functions are left in m2-lang.c.
161 * m2-typeprint.c (m2_print_typedef): Rename to...
162 (m2_language::print_typedef): ...this, and update function
163 signature.
164 * m2-valprint.c (m2_value_print_inner): Rename to...
165 (m2_language::value_print_inner): ...this, replace use of
166 LA_PRINT_STRING with a direct call to printstr member function,
167 and update recursive call.
168
b01175fc
AB
1692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 * language.c (default_is_string_type_p): Delete, implementation
172 moved into auto_or_unknown_language::is_string_type_p.
173 (unk_op_print_tab): Moved into
174 auto_or_unknown_language::opcode_print_table.
175 (unknown_language_arch_info): Delete, implementation moved into
176 auto_or_unknown_language::language_arch_info.
177 (class auto_or_unknown_language): New class, member functions
178 copied from unknown_language class, with some updates.
179 (class unknown_language): Most member functions moved into
180 auto_or_unknown_language class. Inherit from
181 auto_or_unknown_language class.
182 (class auto_language): Inherit from auto_or_unknown_language.
183 Delete most member functions.
184
1a97fe8c
HD
1852020-10-22 Hannes Domani <ssbssa@yahoo.de>
186
187 * stabsread.c (read_member_functions): Remove gdb_assert.
188
6b9d0dfd
HD
1892020-10-22 Hannes Domani <ssbssa@yahoo.de>
190
191 * gdbtypes.c (init_complex_type): Check target type name.
192
4b4bb603
SM
1932020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * target-debug.h (target_debug_print_struct_target_ops_p):
196 Remove.
197 (target_debug_print_async_callback_ftype_p): Remove.
198 (target_debug_print_struct_trace_state_variable_p): Remove.
199 (target_debug_print_struct_traceframe_info_p): Remove.
200 (target_debug_print_VEC__btrace_block_s__pp): Remove.
201 (target_debug_print_enum_btrace_format): Remove.
202 (target_debug_print_enum_info_proc_what): Remove.
203 (target_debug_print_thread_info_pp): Remove.
204
24f5300a
SM
2052020-10-22 Simon Marchi <simon.marchi@efficios.com>
206
207 * target.h (struct target_ops) <make_corefile_notes>:
208 Change return type to unique pointer.
209 * target.c (dummy_make_corefile_notes): Likewise.
210 * exec.c (struct exec_target) <make_corefile_notes>:
211 Likewise.
212 (exec_target::make_corefile_notes): Likewise.
213 * procfs.c (class procfs_target) <make_corefile_notes>:
214 Likewise.
215 (procfs_do_thread_registers): Adjust to unique pointer.
216 (struct procfs_corefile_thread_data): Add constructor.
217 <note_data>: Change type to unique pointer.
218 (procfs_corefile_thread_callback): Adjust to unique pointer.
219 (procfs_target::make_corefile_notes): Change return type to
220 unique pointer.
221 * target-delegates.c: Re-generate.
222 * gcore.c (write_gcore_file_1): Adjust.
223 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
224 New.
225
5fb4027f
TV
2262020-10-22 Tom de Vries <tdevries@suse.de>
227
228 * block.c (find_block_in_blockvector): Make sure the returned block
229 contains pc.
230
4a636814
SM
2312020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
232
233 PR gdb/26693
234 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
235 parameter.
236 (load_cu): Pass existing CU.
237 (process_imported_unit_die): Likewise.
238 (follow_die_offset): Likewise.
239
1bd57575
LM
2402020-10-22 Luis Machado <luis.machado@linaro.org>
241
242 * corelow.c (core_target::xfer_partial): Also check for an empty
243 m_core_unavailable_mappings vector.
244
6b4c676c
AB
2452020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
248 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
249 * f-exp.y (arglist): Allow for a series of subranges.
250 (subrange): Add cases for subranges with strides.
251 * f-lang.c (value_f90_subarray): Catch use of array strides and
252 throw an error.
253 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
254
f2d8e4c5
AB
2552020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 * expprint.c (print_subexp_standard): Change enum range_type to
258 range_flag and rename variables to match.
259 (dump_subexp_body_standard): Likewise.
260 * expression.h (enum range_type): Rename to...
261 (enum range_flag): ...this.
262 (range_types): Rename to...
263 (range_flags): ...this.
264 * f-lang.c (value_f90_subarray): Change enum range_type to
265 range_flag and rename variables to match.
266 * parse.c (operator_length_standard): Likewise.
267 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
268 range_type to range_flag.
269 * rust-lang.c (rust_evaluate_funcall): Likewise.
270 (rust_range): Likewise.
271 (rust_compute_range): Likewise.
272 (rust_subscript): Likewise.
273
2f1b18db
AB
2742020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * expprint.c (print_subexp_standard): Update to reflect changes to
277 enum range_type.
278 (dump_subexp_body_standard): Likewise.
279 * expression.h (enum range_type): Convert to a bit field enum, and
280 make the enum unsigned.
281 * f-exp.y (subrange): Update to reflect changes to enum
282 range_type.
283 * f-lang.c (value_f90_subarray): Likewise.
284 * parse.c (operator_length_standard): Likewise.
285 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
286 * rust-lang.c (rust_range): Likewise.
287 (rust_compute_range): Likewise.
288 (rust_subscript): Likewise.
289
a46d1843
SM
2902020-10-21 Simon Marchi <simon.marchi@efficios.com>
291
292 * infrun.c (displaced_step_in_progress_thread): Fix comment.
293 (displaced_step_in_progress): Fix comment.
294
c21f37a8
SM
2952020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
296
297 * gdbarch.sh (make_corefile_notes): Return unique pointer.
298 * gdbarch.c: Re-generate.
299 * gdbarch.h: Re-generate.
300 * gcore.c (write_gcore_file_1): Adjust.
301 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
302 constructor.
303 <note_data>: Change type to unique pointer.
304 <abort_iteration>: Change type to bool.
305 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
306 (fbsd_collect_thread_registers): Return void, adjust.
307 (struct fbsd_corefile_thread_data): Add construtor.
308 <note_data>: Change type to unique pointer.
309 (fbsd_corefile_thread): Adjust.
310 (fbsd_make_corefile_notes): Return unique pointer, adjust.
311 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
312 to unique pointer, adjust.
313 (struct linux_collect_regset_section_cb_data): Add constructor.
314 <note_data>: Change type to unique pointer.
315 <abort_iteration>: Change type to bool.
316 (linux_collect_thread_registers): Return void, adjust.
317 (struct linux_corefile_thread_data): Add constructor.
318 <note_data>: Change type to unique pointer.
319 (linux_corefile_thread): Adjust.
320 (linux_make_corefile_notes): Return unique pointer, adjust.
321
07fbbd01
SM
3222020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
325 * gdbarch.c: Re-generate.
326 * gdbarch.h: Re-generate.
327 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
328 bool.
329 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
330 Likewise.
331 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
332 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
333 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
334 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
335
39535193
SM
3362020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * gdbarch.sh: Make generated predicates return bool.
339 * gdbarch.c: Re-generate.
340 * gdbarch.h: Re-generate.
341
ad523d01
TT
3422020-10-20 Tom Tromey <tom@tromey.com>
343
344 * varobj-iter.h (struct varobj_item): Remove typedef.
345
c4464ade
SM
3462020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * infrun.c (currently_stepping): Change int to bool
349 (maybe_software_singlestep): Likewise.
350 (show_stop_on_solib_events): Likewise.
351 (stepping_past_nonsteppable_watchpoint): Likewise.
352 (displaced_step_in_progress_any_inferior): Likewise.
353 (displaced_step_in_progress_thread): Likewise.
354 (keep_going_stepped_thread): Likewise.
355 (thread_still_needs_step_over): Likewise.
356 (start_step_over): Likewise.
357 (do_target_resume): Likewise.
358 (resume_1): Likewise.
359 (clear_proceed_status): Likewise.
360 (thread_still_needs_step_over_bp): Likewise.
361 (proceed): Likewise.
362 (switch_back_to_stepped_thread): Likewise.
363 (adjust_pc_after_break): Likewise.
364 (stepped_in_from): Likewise.
365 (handle_stop_requested): Likewise.
366 (handle_syscall_event): Likewise.
367 (handle_no_resumed): Likewise.
368 (handle_inferior_event): Likewise.
369 (finish_step_over): Likewise.
370 (handle_signal_stop): Likewise.
371 (process_event_stop_test): Likewise.
372
2eb20436
SM
3732020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
374
375 * infrun.c (get_displaced_stepping_state): Fix comment.
376
e0c45ded
AS
3772020-10-20 Andreas Schwab <schwab@linux-m68k.org>
378
379 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
380
22cc388e
TT
3812020-10-19 Tom Tromey <tromey@adacore.com>
382
383 PR tui/26719
384 * tui/tui-winsource.h (struct tui_source_window_base)
385 <refresh_window>: Rename from refresh_pad.
386 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
387 Rename from refresh_pad.
388 (tui_source_window_base::show_source_content)
389 (tui_source_window_base::do_scroll_horizontal): Update.
390
3c6eb4d4
TBA
3912020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
392
393 * thread.c (_initialize_thread): Fine-tune the help text of
394 'info threads'.
395
26703721
TBA
3962020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
397
398 * frame.c: Remove the unused 'uinteger_option_def' type alias.
399
61c26be8
MS
4002020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
401
402 * breakpoint.c (handle_jit_event): Add an argument, change how
403 `jit_event_handler` is called.
404
932539d7
TT
4052020-10-17 Tom Tromey <tom@tromey.com>
406
407 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
408 (scan_xcoff_symtab): Update.
409 * psymtab.h (class psymtab_storage) <global_psymbols,
410 static_psymbols, current_global_psymbols,
411 current_static_psymbols>: Remove.
412 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
413 (match_partial_symbol, lookup_partial_symbol): Update.
414 (print_partial_symbols): Change parameters.
415 (dump_psymtab, recursively_search_psymtabs)
416 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
417 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
418 (concat): Remove.
419 (end_psymtab_common): Simplify.
420 (append_psymbol_to_list): Change parameters.
421 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
422 (init_psymbol_list): Simplify.
423 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
424 * psympriv.h (struct partial_symtab) <empty>: New method.
425 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
426 Remove.
427 <global_psymbols, static_psymbols>: New members.
428 <add_psymbol>: New methods.
429 (add_psymbol_to_list): Don't declare.
430 (psymbol_placement): Move earlier.
431 * mdebugread.c (parse_partial_symbols): Update.
432 (handle_psymbol_enumerators): Change parameters.
433 (mdebug_expand_psymtab): Update.
434 * dwarf2/read.c (process_psymtab_comp_unit_reader)
435 (add_partial_symbol): Update.
436 * dwarf2/index-write.c (write_psymbols): Change parameters.
437 (write_one_signatured_type): Update.
438 (recursively_count_psymbols): Update.
439 (recursively_write_psymbols): Update.
440 (class debug_names) <recursively_write_psymbols>: Update.
441 <write_psymbols>: Change parameters.
442 <write_one_signatured_type>: Update.
443 * dbxread.c (read_dbx_symtab): Update.
444 (dbx_end_psymtab): Use partial_symtab::empty.
445 * ctfread.c (struct ctf_context) <pst>: New member.
446 (create_partial_symtab): Set it.
447 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
448 (scan_partial_symbols): Use the psymtab's context. Update.
449
cfabbd35
TT
4502020-10-17 Tom Tromey <tom@tromey.com>
451
452 * valprint.c (generic_value_print): Remove comment.
453 * m2-valprint.c (m2_value_print_inner): Remove comment.
454 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
455 type.
456
520596f2
TV
4572020-10-17 Tom de Vries <tdevries@suse.de>
458
459 PR symtab/26317
460 * source.c (select_source_symtab): Handling sal.symtab == NULL for
461 symbol main.
462
76547ab3
TV
4632020-10-14 Tom de Vries <tdevries@suse.de>
464
465 PR gdb/26733
466 * solib.c (solib_contains_address_p): Handle
467 'solib->sections == nullptr'.
468
d3a07122
SM
4692020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
470
471 PR gdb/26642
472 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
473 target can't do async.
474 * target.c (target_wait): Assert that we don't pass
475 TARGET_WNOHANG to a target that can't async.
476
1b71cfcf
KR
4772020-10-13 Kamil Rytarowski <n54@gmx.com>
478
479 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
480 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
481 * alpha-bsd-nat.c: Adjust include.
482 * alpha-bsd-tdep.h: Adjust comment.
483 * alpha-nbsd-tdep.c: Rename to ...
484 * alpha-netbsd-tdep.c: ... this, adjust include.
485 * amd64-nbsd-nat.c: Rename to ...
486 * amd64-netbsd-nat.c: ... this, adjust include.
487 * amd64-nbsd-tdep.c: Rename to ...
488 * amd64-netbsd-tdep.c: ... this, adjust include.
489 * amd64-tdep.h: Adjust include.
490 * arm-nbsd-nat.c: Rename to ...
491 * arm-netbsd-nat.c: ... this, adjust include.
492 * arm-nbsd-tdep.c: Rename to ...
493 * arm-netbsd-tdep.c: ... this, adjust include.
494 * arm-nbsd-tdep.h: Rename to ...
495 * arm-netbsd-tdep.h: ... this, adjust include.
496 * configure.nat: Adjust file lists.
497 * configure.tgt: Likewise.
498 * hppa-nbsd-nat.c: Rename to ...
499 * hppa-netbsd-nat.c: ... this, adjust include.
500 * hppa-nbsd-tdep.c: Rename to ...
501 * hppa-netbsd-tdep.c: ... this, adjust include.
502 * i386-nbsd-nat.c: Rename to ...
503 * i386-netbsd-nat.c: ... this, adjust include.
504 * i386-nbsd-tdep.c: Rename to ...
505 * i386-netbsd-tdep.c: ... this, adjust include.
506 * m68k-bsd-nat.c: Adjust include.
507 * mips-nbsd-nat.c: Rename to ...
508 * mips-netbsd-nat.c: ... this, adjust include.
509 * mips-nbsd-tdep.c: Rename to ...
510 * mips-netbsd-tdep.c: ... this, adjust include.
511 * mips-nbsd-tdep.h: Rename to ...
512 * mips-netbsd-tdep.h: ... this.
513 * nbsd-nat.c: Rename to ...
514 * netbsd-nat.c: ... this, adjust include.
515 * nbsd-nat.h: Rename to ...
516 * netbsd-nat.h: ... this, adjust include.
517 * nbsd-tdep.c: Rename to ...
518 * netbsd-tdep.c: ... this, adjust include.
519 * nbsd-tdep.h: Rename to ...
520 * netbsd-tdep.h: ... this.
521 * ppc-nbsd-nat.c: Rename to ...
522 * ppc-netbsd-nat.c: ... this, adjust include.
523 * ppc-nbsd-tdep.c: Rename to ...
524 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
525 * ppc-nbsd-tdep.h: Rename to ...
526 * ppc-netbsd-tdep.h: ... this.
527 * sh-nbsd-nat.c: Rename to ...
528 * sh-netbsd-nat.c: ... this, adjust include.
529 * sh-nbsd-tdep.c: Rename to ...
530 * sh-netbsd-tdep.c: ... this, adjust include.
531 * sparc-nbsd-nat.c: Rename to ...
532 * sparc-netbsd-nat.c: ... this.
533 * sparc-nbsd-tdep.c: Rename to ...
534 * sparc-netbsd-tdep.c: ... this, adjust include.
535 * sparc64-nbsd-nat.c: Rename to ...
536 * sparc64-netbsd-nat.c: ... this.
537 * sparc64-nbsd-tdep.c: Rename to ...
538 * sparc64-netbsd-tdep.c: ... this, adjust include.
539 * sparc64-tdep.h: Adjust comment.
540 * vax-bsd-nat.c: Adjust include.
541 * vax-nbsd-tdep.c: Rename to ...
542 * vax-netbsd-tdep.c: ... this, adjust include.
543
d7a78e5c
TT
5442020-10-12 Tom Tromey <tom@tromey.com>
545
546 * target.h (struct target_ops) <get_section_table>: Update.
547 (target_get_section_table): Update.
548 * target.c (target_get_section_table, target_section_by_addr)
549 (memory_xfer_partial_1): Update.
550 * target-section.h (target_section_table): Now an alias.
551 * target-delegates.c: Rebuild.
552 * target-debug.h (target_debug_print_target_section_table_p):
553 Rename from target_debug_print_struct_target_section_table_p.
554 * symfile.c (build_section_addr_info_from_section_table): Update.
555 * solib.c (solib_map_sections, solib_contains_address_p): Update.
556 * solib-svr4.c (scan_dyntag): Update.
557 * solib-dsbt.c (scan_dyntag): Update.
558 * remote.c (remote_target::remote_xfer_live_readonly_partial):
559 Update.
560 * record-full.c (record_full_core_target::xfer_partial): Update.
561 * progspace.h (struct program_space) <target_sections>: Update.
562 * exec.h (print_section_info): Update.
563 * exec.c (exec_target::close, build_section_table)
564 (add_target_sections, add_target_sections_of_objfile)
565 (remove_target_sections, exec_on_vfork)
566 (section_table_available_memory)
567 (section_table_xfer_memory_partial)
568 (exec_target::get_section_table, exec_target::xfer_partial)
569 (print_section_info, set_section_command)
570 (exec_set_section_address, exec_target::has_memory): Update.
571 * corelow.c (core_target::build_file_mappings)
572 (core_target::xfer_partial, core_target::info_proc_mappings)
573 (core_target::info_proc_mappings): Update.
574 * bfd-target.c (class target_bfd): Update
575
eda214ce
TT
5762020-10-12 Tom Tromey <tom@tromey.com>
577
578 * progspace.c (program_space::~program_space): Don't call
579 clear_section_table.
580 * exec.h (clear_section_table): Don't declare.
581 * exec.c (exec_target::close): Update.
582 (clear_section_table): Remove.
583
91840ee3
TT
5842020-10-12 Tom Tromey <tom@tromey.com>
585
586 * exec.c (add_target_sections_of_objfile): Simplify.
587
2d128614
TT
5882020-10-12 Tom Tromey <tom@tromey.com>
589
590 * solib.c (solib_map_sections): Update.
591 * record-full.c (record_full_core_open_1): Update.
592 * exec.h (build_section_table): Return a target_section_table.
593 * exec.c (exec_file_attach): Update.
594 (build_section_table): Return a target_section_table.
595 * corelow.c (core_target::core_target): Update.
596 * bfd-target.c (target_bfd::target_bfd): Update.
597
bb2a6777
TT
5982020-10-12 Tom Tromey <tom@tromey.com>
599
600 * target.c (target_section_by_addr, memory_xfer_partial_1):
601 Update.
602 * target-section.h (struct target_section_table): Use
603 std::vector.
604 * symfile.h (build_section_addr_info_from_section_table): Take a
605 target_section_table.
606 * symfile.c (build_section_addr_info_from_section_table): Take a
607 target_section_table.
608 * solist.h (struct so_list) <sections>: Change type.
609 <sections_end>: Remove.
610 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
611 (solib_contains_address_p): Update.
612 * solib-svr4.c (scan_dyntag): Update.
613 * solib-dsbt.c (scan_dyntag): Update.
614 * remote.c (remote_target::remote_xfer_live_readonly_partial):
615 Update.
616 * record-full.c (record_full_core_start, record_full_core_end):
617 Remove.
618 (record_full_core_sections): New global.
619 (record_full_core_open_1, record_full_core_target::xfer_partial):
620 Update.
621 * exec.h (build_section_table, section_table_xfer_memory_partial)
622 (add_target_sections): Take a target_section_table.
623 * exec.c (exec_file_attach, clear_section_table): Update.
624 (resize_section_table): Remove.
625 (build_section_table, add_target_sections): Take a
626 target_section_table.
627 (add_target_sections_of_objfile, remove_target_sections)
628 (exec_on_vfork): Update.
629 (section_table_available_memory): Take a target_section_table.
630 (section_table_read_available_memory): Update.
631 (section_table_xfer_memory_partial): Take a target_section_table.
632 (print_section_info, set_section_command)
633 (exec_set_section_address, exec_target::has_memory): Update.
634 * corelow.c (class core_target) <m_core_section_table,
635 m_core_file_mappings>: Remove braces.
636 <~core_target>: Remove.
637 (core_target::core_target): Update.
638 (core_target::~core_target): Remove.
639 (core_target::build_file_mappings)
640 (core_target::xfer_memory_via_mappings)
641 (core_target::xfer_partial, core_target::info_proc_mappings):
642 Update.
643 * bfd-target.c (target_bfd::xfer_partial): Update.
644 (target_bfd::target_bfd): Update.
645 (target_bfd::~target_bfd): Remove.
646
7b466b10
TT
6472020-10-12 Tom Tromey <tom@tromey.com>
648
649 * target.h (struct target_section, struct target_section_table):
650 Move to target-section.h.
651 * target-section.h: New file.
652
87a37e5e
PA
6532020-10-12 Pedro Alves <pedro@palves.net>
654
655 PR exp/26602
656 * valops.c (struct struct_field_searcher): New.
657 (update_search_result): Rename to ...
658 (struct_field_searcher::update_result): ... this. Simplify
659 prototype. Record all found fields.
660 (do_search_struct_field): Rename to ...
661 (struct_field_searcher::search): ... this. Simplify prototype.
662 Maintain stack of visited baseclass path. Call update_result for
663 fields too. Keep searching fields in baseclasses instead of
664 stopping at the first found field.
665 (search_struct_field): Use struct_field_searcher. When looking
666 for fields, report ambiguous access attempts.
667
9370fd51
AB
6682020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * frame.c (inside_main_func): Check full symbols as well as
671 minimal symbols.
672
59c8a30b
JB
6732020-10-09 Joel Brobecker <brobecker@adacore.com>
674
675 * ada-lang.c (advance_wild_match): Rewrite the function's
676 description. Change the type of target0, t0 and t1 to char.
677
7c184d33
TT
6782020-10-09 Tom Tromey <tromey@adacore.com>
679
680 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
681
5c4258f4
TT
6822020-10-09 Tom Tromey <tromey@adacore.com>
683
684 * ada-lang.h (ada_encode): Return std::string.
685 * ada-lang.c (ada_encode_1): Return std::string.
686 (ada_encode): Likewise.
687 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
688 Update.
689 * ada-exp.y (block_lookup, write_var_or_type): Update.
690
3d87245c
HD
6912020-10-09 Hannes Domani <ssbssa@yahoo.de>
692
693 PR exp/26714
694 * printcmd.c (print_formatted): Handle void results as
695 unformatted prints.
696
bbb826f5
AB
6972020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * arch/aarch32.c (aarch32_create_target_description): Release the
700 target_desc_up as late as possible.
701 * arch/aarch64.c (aarch64_create_target_description): Likewise.
702 * arch/amd64.c (amd64_create_target_description): Likewise.
703 * arch/arc.c (arc_create_target_description): Return a
704 target_desc_up, don't release it.
705 * arch/arc.h (arc_create_target_description): Update declaration.
706 (arc_lookup_target_description): Move target_desc_up into the
707 cache, and return a borrowed pointer.
708 * arch/arm.c (arm_create_target_description): Release the
709 target_desc_up as late as possible.
710 * arch/i386.c (i386_create_target_description): Likewise.
711 * arch/riscv.h (riscv_create_target_description): Update
712 declaration to match definition.
713 * arch/tic6x.c (tic6x_create_target_description): Release the
714 target_desc_up as late as possible.
715
361cb219
AB
7162020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
719 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
720
f5c4b229
JV
7212020-10-09 Jan Vrany <jan.vrany@labware.com>
722
723 * source.c (directory_command): Notify observers that "directories"
724 parameter has changed.
725
b2701685
TT
7262020-10-08 Tom Tromey <tom@tromey.com>
727
728 * cli/cli-cmds.c (print_disassembly): Style function name and
729 addresses. Add _() wrappers.
730
ada508b6
SV
7312020-10-08 Shahab Vahedi <shahab@synopsys.com>
732
733 * NEWS: Mention ARC support in GDBserver.
734
51a948fd
AB
7352020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * arch/aarch32.c (aarch32_create_target_description): Release
738 unique_ptr returned from allocate_target_description.
739 * arch/aarch64.c (aarch64_create_target_description): Likewise.
740 * arch/amd64.c (amd64_create_target_description): Likewise.
741 * arch/arc.c (arc_create_target_description): Likewise.
742 * arch/arm.c (arm_create_target_description): Likewise.
743 * arch/i386.c (i386_create_target_description): Likewise.
744 * arch/riscv.c (riscv_create_target_description): Update return
745 type. Handle allocate_target_description returning a unique_ptr.
746 (riscv_lookup_target_description): Update to handle unique_ptr.
747 * arch/tic6x.c (tic6x_create_target_description): Release
748 unique_ptr returned from allocate_target_description.
749 * features/microblaze-with-stack-protect.c: Regenerate.
750 * features/microblaze.c: Regenerate.
751 * features/mips-dsp-linux.c: Regenerate.
752 * features/mips-linux.c: Regenerate.
753 * features/mips64-dsp-linux.c: Regenerate.
754 * features/mips64-linux.c: Regenerate.
755 * features/nds32.c: Regenerate.
756 * features/nios2.c: Regenerate.
757 * features/or1k.c: Regenerate.
758 * features/rs6000/powerpc-32.c: Regenerate.
759 * features/rs6000/powerpc-32l.c: Regenerate.
760 * features/rs6000/powerpc-403.c: Regenerate.
761 * features/rs6000/powerpc-403gc.c: Regenerate.
762 * features/rs6000/powerpc-405.c: Regenerate.
763 * features/rs6000/powerpc-505.c: Regenerate.
764 * features/rs6000/powerpc-601.c: Regenerate.
765 * features/rs6000/powerpc-602.c: Regenerate.
766 * features/rs6000/powerpc-603.c: Regenerate.
767 * features/rs6000/powerpc-604.c: Regenerate.
768 * features/rs6000/powerpc-64.c: Regenerate.
769 * features/rs6000/powerpc-64l.c: Regenerate.
770 * features/rs6000/powerpc-7400.c: Regenerate.
771 * features/rs6000/powerpc-750.c: Regenerate.
772 * features/rs6000/powerpc-860.c: Regenerate.
773 * features/rs6000/powerpc-altivec32.c: Regenerate.
774 * features/rs6000/powerpc-altivec32l.c: Regenerate.
775 * features/rs6000/powerpc-altivec64.c: Regenerate.
776 * features/rs6000/powerpc-altivec64l.c: Regenerate.
777 * features/rs6000/powerpc-e500.c: Regenerate.
778 * features/rs6000/powerpc-e500l.c: Regenerate.
779 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
780 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
781 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
782 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
783 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
784 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
785 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
786 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
787 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
788 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
789 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
790 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
791 * features/rs6000/powerpc-vsx32.c: Regenerate.
792 * features/rs6000/powerpc-vsx32l.c: Regenerate.
793 * features/rs6000/powerpc-vsx64.c: Regenerate.
794 * features/rs6000/powerpc-vsx64l.c: Regenerate.
795 * features/rs6000/rs6000.c: Regenerate.
796 * features/rx.c: Regenerate.
797 * features/s390-gs-linux64.c: Regenerate.
798 * features/s390-linux32.c: Regenerate.
799 * features/s390-linux32v1.c: Regenerate.
800 * features/s390-linux32v2.c: Regenerate.
801 * features/s390-linux64.c: Regenerate.
802 * features/s390-linux64v1.c: Regenerate.
803 * features/s390-linux64v2.c: Regenerate.
804 * features/s390-te-linux64.c: Regenerate.
805 * features/s390-tevx-linux64.c: Regenerate.
806 * features/s390-vx-linux64.c: Regenerate.
807 * features/s390x-gs-linux64.c: Regenerate.
808 * features/s390x-linux64.c: Regenerate.
809 * features/s390x-linux64v1.c: Regenerate.
810 * features/s390x-linux64v2.c: Regenerate.
811 * features/s390x-te-linux64.c: Regenerate.
812 * features/s390x-tevx-linux64.c: Regenerate.
813 * features/s390x-vx-linux64.c: Regenerate.
814 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
815 from allocate_target_description.
816 * target-descriptions.c (allocate_target_description): Update
817 return type.
818 (print_c_tdesc::visit_pre): Release unique_ptr returned from
819 allocate_target_description.
820
485c47e5
TT
8212020-10-07 Tom Tromey <tromey@adacore.com>
822
823 * unittests/search-memory-selftests.c: New file.
824 * Makefile.in (SELFTESTS_SRCS): Add
825 unittests/search-memory-selftests.c.
826
3a135a91
TT
8272020-10-07 Tom Tromey <tromey@adacore.com>
828
829 PR gdb/16930:
830 * findcmd.c (_initialize_mem_search): Mention that the range is
831 inclusive.
832
4a72de73
TT
8332020-10-07 Tom Tromey <tromey@adacore.com>
834
835 * target.h (simple_search_memory): Don't declare.
836 * target.c (simple_search_memory): Move to gdbsupport.
837 (default_search_memory): Update.
838 * remote.c (remote_target::search_memory): Update.
839
a038ffd8
SM
8402020-10-07 Simon Marchi <simon.marchi@efficios.com>
841
842 * Makefile.in (COMPILE): Add CXXFLAGS.
843 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
844 (check-headers): Add CXXFLAGS.
845
cc463201
AK
8462020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
847
848 * arc-linux-tdep.h: New file.
849 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
850 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
851 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
852 arc_linux_gregset, arc_linux_v2_regset,
853 arc_linux_iterate_over_regset_sections,
854 arc_linux_core_read_description): Implement.
855 (arc_linux_init_osabi): Set iterate_over_regset_sections.
856 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
857 (arc_gdbarch_features_create): Add.
858 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
859
e4bd363f
SV
8602020-10-07 Shahab Vahedi <shahab@synopsys.com>
861
862 * arch/arc.h: Rename "arc_gdbarch_features" to
863 "arc_arch_features".
864 * arc-tdep.h: Likewise.
865 * arc-tdep.c: Likewise.
866
b68bef99
TBA
8672020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868
869 * infcmd.c (attach_command): Remove the redundant call to
870 `clear_proceed_status`.
871
4641551a
KR
8722020-10-07 Kamil Rytarowski <n54@gmx.com>
873
874 * nat/netbsd-nat.c (write_memory, read_memory): Update.
875
91e5e8db
KR
8762020-10-07 Kamil Rytarowski <n54@gmx.com>
877
878 * nat/netbsd-nat.c (write_memory, read_memory): Add.
879 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
880 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
881
64c03bdb
SM
8822020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
885 (_initialize_break_catch_sig): Don't allocate array.
886
31a8f60f
AB
8872020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
888
889 * symtab.c (find_pc_line): Return unmapped addresses when the
890 requested address is also unmapped.
891
9e6dbd8b
SM
8922020-10-05 Simon Marchi <simon.marchi@efficios.com>
893
894 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
895 tui/tui-out.h.
896
a1d217e8
SM
8972020-10-05 Simon Marchi <simon.marchi@efficios.com>
898
899 * amd64-windows-tdep.c (amd64_windows_return_value): Use
900 type::is_vector instead of TYPE_VECTOR.
901
7d144117
SM
9022020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
903
904 * auto-load.c (auto_load_objfile_script_1): Don't use
905 debugfile_holder as temporary variable when stripping drive
906 letter.
907
cd096ec8
HD
9082020-10-05 Hannes Domani <ssbssa@yahoo.de>
909
910 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
911 Add TYPE_CODE_COMPLEX.
912 (amd64_windows_return_value): Fix types returned via XMM0.
913
b58e7f72
AH
9142020-10-05 Alan Hayward <alan.hayward@arm.com>
915
916 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
917 AArch64/ARM maintainers.
918
8d378f27
SM
9192020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * NEWS: Mention set/show debug event-loop.
922
d5519913
TT
9232020-10-02 Tom Tromey <tromey@adacore.com>
924
925 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
926 REG_EXTENDED.
927
18b67edc
SM
9282020-10-02 Simon Marchi <simon.marchi@efficios.com>
929
930 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
931 * procfs.c (procfs_inferior_created): Remove.
932 (_initialize_procfs): Don't register procfs_inferior_created.
933
6b01403b
SM
9342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * async-event.c (invoke_async_signal_handlers): Add debug
937 print.
938 (check_async_event_handlers): Likewise.
939 * event-top.c (show_debug_event_loop): New function.
940 (_initialize_event_top): Register "set debug event-loop"
941 setting.
942
ba988419
SM
9432020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
944
945 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
946 * debug.h: Remove.
947 * infrun.c: Include gdbsupport/common-debug.h.
948 * linux-nat.c: Likewise.
949
db20ebdf
SM
9502020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * async-event.h (create_async_signal_handler): Add name
953 parameter.
954 (create_async_event_handler): Likewise.
955 * async-event.c (struct async_signal_handler) <name>: New field.
956 (struct async_event_handler) <name>: New field.
957 (create_async_signal_handler): Assign name.
958 (create_async_event_handler): Assign name.
959 * event-top.c (async_init_signals): Pass name when creating
960 handler.
961 * infrun.c (_initialize_infrun): Likewise.
962 * record-btrace.c (record_btrace_push_target): Likewise.
963 * record-full.c (record_full_open): Likewise.
964 * remote-notif.c (remote_notif_state_allocate): Likewise.
965 * remote.c (remote_target::open_1): Likewise.
966 * tui/tui-win.c (tui_initialize_win): Likewise.
967
2554f6f5
SM
9682020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * async-event.c (initialize_async_signal_handlers): Pass name to
971 add_file_handler
972 * event-top.c (ui_register_input_event_handler): Likewise.
973 * linux-nat.c (linux_nat_target::async): Likewise.
974 * run-on-main-thread.c (_initialize_run_on_main_thread):
975 Likewise
976 * ser-base.c (reschedule): Likewise.
977 (ser_base_async): Likewise.
978 * tui/tui-io.c: Likewise.
979 * top.h (struct ui) <num>: New field.
980 * top.c (highest_ui_num): New variable.
981 (ui::ui): Initialize num.
982
a7aba266
SM
9832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * observable.h <inferior_created>: Remove parameters. Update all
986 listeners.
987 * inferior.h (post_create_inferior): Remove target parameter.
988 Update all callers.
989
048fde1e 9902020-10-02 Nitika Achra <Nitika.Achra@amd.com>
991
992 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
993 and DW_MACRO_undef_strx.
994 (dwarf_decode_macros): Likewise
995 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
996 which is the value of DW_AT_str_offsets_base.
997 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
998 str_offsets_base.
999
064280be
KR
10002020-10-01 Kamil Rytarowski <n54@gmx.com>
1001
1002 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1003
6ff33035
KR
10042020-10-01 Kamil Rytarowski <n54@gmx.com>
1005
1006 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1007 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1008
1eb6eb79
KR
10092020-10-01 Kamil Rytarowski <n54@gmx.com>
1010
1011 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1012
95eb9e54
TV
10132020-09-30 Tom de Vries <tdevries@suse.de>
1014
1015 PR symtab/26683
1016 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1017
cae21f8e
TT
10182020-09-30 Tom Tromey <tromey@adacore.com>
1019
1020 * dwarf2/read.c (handle_variant): Use constant_value.
1021
529908cb
TT
10222020-09-29 Tom Tromey <tom@tromey.com>
1023
1024 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1025 (read_file_scope, dwarf2_get_pc_bounds)
1026 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1027 (read_structure_type, handle_struct_member_die)
1028 (read_enumeration_type, read_array_type, read_set_type)
1029 (read_tag_pointer_type, read_tag_reference_type)
1030 (read_subroutine_type, read_base_type, read_subrange_type)
1031 (read_full_die_1, partial_die_info::read)
1032 (partial_die_info::read, by, new_symbol)
1033 (dwarf2_const_value_data, dwarf2_const_value_attr)
1034 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1035 (prepare_one_comp_unit): Update.
1036 * dwarf2/attribute.h (DW_UNSND): Remove.
1037
c45bc3f8
TT
10382020-09-29 Tom Tromey <tom@tromey.com>
1039
1040 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1041 (read_subroutine_type, partial_die_info::read)
1042 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1043 (dwarf2_add_member_fn): Update.
1044 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1045 * dwarf2/attribute.c (attribute::as_boolean): New method.
1046
23dca5c3
TT
10472020-09-29 Tom Tromey <tom@tromey.com>
1048
1049 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1050 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1051 method.
1052 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1053
52c14d11
TT
10542020-09-29 Tom Tromey <tom@tromey.com>
1055
1056 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1057 the attribute's form.
1058
e8e5c158
TT
10592020-09-29 Tom Tromey <tom@tromey.com>
1060
1061 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1062 (dwarf2_add_member_fn): Update.
1063 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1064 * dwarf2/attribute.c (attribute::defaulted): New method, from
1065 is_valid_DW_AT_defaulted.
1066
d4df075e
TT
10672020-09-29 Tom Tromey <tom@tromey.com>
1068
1069 * dwarf2/read.c (dw2_get_file_names_reader)
1070 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1071 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1072 (dwarf2_symbol_mark_computed): Use as_unsigned.
1073 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1074 method.
1075 <form_is_section_offset>: Update comment.
1076
bf23a268
TT
10772020-09-29 Tom Tromey <tom@tromey.com>
1078
1079 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1080 dwarf2_default_access_attribute. Look up attribute.
1081 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1082 Update.
1083
7a5f294d
TT
10842020-09-29 Tom Tromey <tom@tromey.com>
1085
1086 * dwarf2/read.c (skip_one_die): Update.
1087 (read_full_die_1): Change how reprocessing is done.
1088 (partial_die_info::read): Update.
1089 (read_attribute_value): Remove need_reprocess parameter.
1090 (read_attribute): Likewise.
1091 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1092 New method.
1093
36d378cf
TT
10942020-09-29 Tom Tromey <tom@tromey.com>
1095
1096 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1097 (dwarf2_const_value_attr, dump_die_shallow)
1098 (dwarf2_fetch_constant_bytes): Update.
1099 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1100 comment.
1101 <set_address>: New method.
1102 (DW_ADDR): Remove.
1103 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1104 (attribute::as_string, attribute::as_address): Add assert.
1105
fe56917a
TT
11062020-09-29 Tom Tromey <tom@tromey.com>
1107
1108 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1109 (read_attribute_reprocess, read_attribute_value): Update.
1110 (read_attribute): Clear requires_reprocessing.
1111 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1112 form_requires_reprocessing>: New methods.
1113 <string_init>: Clear requires_reprocessing.
1114 <set_unsigned_reprocess>: New method.
1115 <name>: Shrink by one bit.
1116 <requires_reprocessing>: New member.
1117 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1118 method.
1119
414ad644
TT
11202020-09-29 Tom Tromey <tom@tromey.com>
1121
1122 * dwarf2/read.c (read_attribute_value): Update.
1123 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1124 set_unsigned>: New methods.
1125 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1126
1bc397c5
TT
11272020-09-29 Tom Tromey <tom@tromey.com>
1128
1129 * dwarf2/read.c (get_alignment, read_array_order)
1130 (read_attribute_value, dwarf2_const_value_attr)
1131 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1132 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1133 New methods.
1134 (DW_SND): Remove.
1135
630ed6b9
TT
11362020-09-29 Tom Tromey <tom@tromey.com>
1137
1138 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1139 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1140 Update.
1141 * dwarf2/attribute.h (struct attribute) <as_signature,
1142 set_signature>: New methods.
1143 (DW_SIGNATURE): Remove.
1144
9d2246fc
TT
11452020-09-29 Tom Tromey <tom@tromey.com>
1146
1147 * dwarf2/read.c (read_call_site_scope)
1148 (handle_data_member_location, dwarf2_add_member_fn)
1149 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1150 (partial_die_info::read, read_attribute_value)
1151 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1152 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1153 (dwarf2_symbol_mark_computed): Update.
1154 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1155 methods.
1156 (DW_BLOCK): Remove.
1157 * dwarf2/attribute.c (attribute::form_is_block): Add
1158 DW_FORM_data16.
1159
c6481205
TT
11602020-09-29 Tom Tromey <tom@tromey.com>
1161
1162 * dwarf2/read.c (read_cutu_die_from_dwo)
1163 (read_attribute_reprocess, read_attribute_value, read_attribute)
1164 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1165 (dwarf2_fetch_constant_bytes): Update.
1166 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1167 <set_string_noncanonical, set_string_canonical>: New methods.
1168 <string_is_canonical>: Update comment.
1169 <canonical_string_p>: Add assert.
1170 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1171 * dwarf2/attribute.c (attribute::form_is_string): New method.
1172 (attribute::string): Use it.
1173
3b64bf15
TT
11742020-09-29 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1177 (dump_die_shallow): Use canonical_string_p.
1178 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1179 method.
1180
2c830f54
TT
11812020-09-29 Tom Tromey <tom@tromey.com>
1182
1183 * dwarf2/read.c (partial_die_info::read)
1184 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1185 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1186 attribute::as_string.
1187
6c412691
TT
11882020-09-29 Tom Tromey <tom@tromey.com>
1189
1190 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1191 DW_ADDR.
1192 (attribute::string): Don't use DW_STRING.
1193 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1194 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1195
95f982e5
TT
11962020-09-29 Tom Tromey <tom@tromey.com>
1197
1198 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1199 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1200 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1201 * dwarf2/attribute.h (struct attribute): Rename methods.
1202 * dwarf2/attribute.c (attribute::as_address): Rename from
1203 value_as_address.
1204 (attribute::as_string): Rename from value_as_string.
1205
f800b00e
TT
12062020-09-29 Tom Tromey <tom@tromey.com>
1207
1208 * dwarf2/read.c (partial_die_info::read) <case
1209 DW_AT_linkage_name>: Use value_as_string.
1210 (dwarf2_string_attr): Use value_as_string.
1211 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1212 method.
1213 * dwarf2/attribute.c (attribute::value_as_string): New method.
1214
de38d64a
PA
12152020-09-29 Pedro Alves <pedro@palves.net>
1216
1217 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1218 defined before using '#pragma GCC diagnostic' instead of checking
1219 __clang__.
1220
9aed480c
TT
12212020-09-28 Tom Tromey <tom@tromey.com>
1222
1223 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1224 (handle_signal_stop): Update.
1225 * procfs.c (procfs_target::insert_watchpoint): Update.
1226 * target.h (target_have_steppable_watchpoint): Now a function.
1227
8a3ecb79
TT
12282020-09-28 Tom Tromey <tom@tromey.com>
1229
1230 * infrun.c (set_schedlock_func): Update.
1231 * target.h (target_can_lock_scheduler): Now a function.
1232
55f6301a
TT
12332020-09-28 Tom Tromey <tom@tromey.com>
1234
1235 * inferior.h (class inferior) <has_execution>: Update.
1236 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1237 * valops.c (find_function_in_inferior)
1238 (value_allocate_space_in_inferior): Update.
1239 * top.c (kill_or_detach): Update.
1240 * target.c (target_preopen, set_target_permissions): Update.
1241 (target_has_execution_current): Remove.
1242 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1243 Update.
1244 * solib.c (update_solib_list, reload_shared_libraries): Update.
1245 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1246 * solib-dsbt.c (enable_break): Update.
1247 * score-tdep.c (score7_fetch_inst): Update.
1248 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1249 Update.
1250 * remote.c (remote_target::start_remote)
1251 (remote_target::remote_check_symbols, remote_target::open_1)
1252 (remote_target::remote_detach_1, remote_target::verify_memory)
1253 (remote_target::xfer_partial, remote_target::read_description)
1254 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1255 * record-full.c (record_full_open_1): Update.
1256 * record-btrace.c (record_btrace_target_open): Update.
1257 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1258 (value_nsstring): Update.
1259 * linux-thread-db.c (add_thread_db_info)
1260 (thread_db_find_new_threads_silently, check_thread_db_callback)
1261 (try_thread_db_load_1, record_thread): Update.
1262 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1263 Update.
1264 * linux-fork.c (checkpoint_command): Update.
1265 * infrun.c (set_non_stop, set_observer_mode)
1266 (check_multi_target_resumption, for_each_just_stopped_thread)
1267 (maybe_remove_breakpoints, normal_stop)
1268 (class infcall_suspend_state): Update.
1269 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1270 (info_program_command, attach_command): Update.
1271 * infcall.c (call_function_by_hand_dummy): Update.
1272 * inf-loop.c (inferior_event_handler): Update.
1273 * gcore.c (gcore_command, derive_heap_segment): Update.
1274 * exec.c (exec_file_command): Update.
1275 * eval.c (evaluate_subexp): Update.
1276 * compile/compile.c (compile_to_object): Update.
1277 * cli/cli-dump.c (restore_command): Update.
1278 * breakpoint.c (update_watchpoint)
1279 (update_inserted_breakpoint_locations)
1280 (insert_breakpoint_locations, get_bpstat_thread): Update.
1281 * target.h (target_has_execution): Remove macro.
1282 (target_has_execution_current): Don't declare.
1283 (target_has_execution): Rename from target_has_execution_1. Add
1284 argument default.
1285
05374cfd
TT
12862020-09-28 Tom Tromey <tom@tromey.com>
1287
1288 * mi/mi-main.c (exec_reverse_continue)
1289 (mi_cmd_list_target_features): Update.
1290 * infrun.c (set_exec_direction_func): Update.
1291 * target.c (default_execution_direction): Update.
1292 * reverse.c (exec_reverse_once): Update.
1293 * target.h (target_can_execute_reverse): Now a function.
1294
9dccd06e
TT
12952020-09-28 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-regs.c (tui_get_register)
1298 (tui_data_window::show_registers): Update.
1299 * thread.c (scoped_restore_current_thread::restore)
1300 (scoped_restore_current_thread::scoped_restore_current_thread):
1301 Update.
1302 * regcache-dump.c (regcache_print): Update.
1303 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1304 Update.
1305 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1306 * mep-tdep.c (current_me_module, current_options): Update.
1307 * linux-thread-db.c (thread_db_load): Update.
1308 * infcmd.c (registers_info, info_vector_command)
1309 (info_float_command): Update.
1310 * ia64-tdep.c (ia64_frame_prev_register)
1311 (ia64_sigtramp_frame_prev_register): Update.
1312 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1313 * gcore.c (derive_stack_segment): Update.
1314 * frame.c (get_current_frame, has_stack_frames): Update.
1315 * findvar.c (language_defn::read_var_value): Update.
1316 * arm-tdep.c (arm_pc_is_thumb): Update.
1317 * target.c (target_has_registers): Rename from
1318 target_has_registers_1.
1319 * target.h (target_has_registers): Remove macro.
1320 (target_has_registers): Rename from target_has_registers_1.
1321
841de120
TT
13222020-09-28 Tom Tromey <tom@tromey.com>
1323
1324 * windows-tdep.c (tlb_make_value): Update.
1325 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1326 * thread.c (scoped_restore_current_thread::restore)
1327 (scoped_restore_current_thread::scoped_restore_current_thread)
1328 (thread_command): Update.
1329 * stack.c (backtrace_command_1, frame_apply_level_command)
1330 (frame_apply_all_command, frame_apply_command): Update.
1331 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1332 Update.
1333 * gcore.c (derive_stack_segment): Update.
1334 * frame.c (get_current_frame, has_stack_frames): Update.
1335 * auxv.c (info_auxv_command): Update.
1336 * ada-tasks.c (ada_build_task_list): Update.
1337 * target.c (target_has_stack): Rename from target_has_stack_1.
1338 * target.h (target_has_stack): Remove macro.
1339 (target_has_stack): Rename from target_has_stack_1.
1340
a739972c
TT
13412020-09-28 Tom Tromey <tom@tromey.com>
1342
1343 * target.c (target_has_memory): Rename from target_has_memory_1.
1344 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1345 * thread.c (scoped_restore_current_thread::restore)
1346 (scoped_restore_current_thread::scoped_restore_current_thread):
1347 Update.
1348 * frame.c (get_current_frame, has_stack_frames): Update.
1349 * target.h (target_has_memory): Remove macro.
1350 (target_has_memory): Rename from target_has_memory_1.
1351
5b8a4776
TT
13522020-09-28 Tom Tromey <tom@tromey.com>
1353
1354 * target.c (target_has_all_memory_1): Remove.
1355 * target.h (target_has_all_memory): Remove define.
1356 (target_has_all_memory_1): Don't declare.
1357
bd356ec6
SM
13582020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * ser-base.c: Adjust comments formatting.
1361
2c72d5e5
TT
13622020-09-27 Tom Tromey <tom@tromey.com>
1363
1364 PR tui/25342:
1365 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1366
35a98237
TT
13672020-09-27 Tom Tromey <tom@tromey.com>
1368
1369 PR tui/25342:
1370 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1371
9e820dec
TT
13722020-09-27 Tom Tromey <tom@tromey.com>
1373
1374 * unittests/tui-selftests.c: Update.
1375 * tui/tui-winsource.h (struct tui_source_window_base)
1376 <extra_margin, show_line_number, refresh_pad>: New methods.
1377 <m_max_length, m_pad>: New members.
1378 (tui_copy_source_line): Update.
1379 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1380 first_col, line_width, ndigits parameters. Add length.
1381 (tui_source_window_base::show_source_line): Write to pad. Line
1382 number now 0-based.
1383 (tui_source_window_base::refresh_pad): New method.
1384 (tui_source_window_base::show_source_content): Write to pad. Call
1385 refresh_pad.
1386 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1387 not refill.
1388 (tui_source_window_base::update_exec_info): Call
1389 show_line_number.
1390 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1391 method.
1392 <m_digits>: New member.
1393 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1394 and m_max_length.
1395 (tui_source_window::show_line_number): New method.
1396 * tui/tui-io.h (tui_puts): Fix comment.
1397 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1398 m_max_length.
1399
c15c15c8
TT
14002020-09-27 Tom Tromey <tom@tromey.com>
1401
1402 * tui/tui-winsource.c
1403 (tui_source_window_base::set_is_exec_point_at): Don't call
1404 show_source_line.
1405
149830c1
TT
14062020-09-27 Tom Tromey <tom@tromey.com>
1407
1408 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1409 method.
1410 <erase>: Update.
1411 <cursor_x, cursor_y>: Remove.
1412 <m_inner_window>: New member.
1413 (tui_py_window::rerender): Create inner window.
1414 (tui_py_window::output): Write to inner window.
1415
8f9929bb
GR
14162020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1417
1418 PR python/26586
1419 * cli/cli-script.c (execute_control_commands): don't set
1420 instream to nullptr here as this breaks the from_tty argument
1421 to gdb.execute in Python.
1422 (execute_user_command): set instream to nullptr here instead.
1423
956bdb59
SM
14242020-09-25 Simon Marchi <simon.marchi@efficios.com>
1425
1426 * infrun.h (infrun_debug_printf): Fix formatting.
1427 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1428
3b93626b
SJ
14292020-09-25 Saagar Jha <saagar@saagarjha.com>
1430
1431 * compile/compile-object-load.h (struct munmap_list): Add
1432 explicitly-defined move constructor.
1433
b551a89f
TT
14342020-09-24 Tom Tromey <tromey@adacore.com>
1435
1436 PR tui/26638:
1437 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1438 method.
1439 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1440 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1441 (tui_prev_win): Rewrite.
1442
99bb393f
HD
14432020-09-23 Hannes Domani <ssbssa@yahoo.de>
1444
1445 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1446 in WOW64 processes as SIGINT.
1447 * nat/windows-nat.h: Make wow64_process a shared variable.
1448 * windows-nat.c: Remove static wow64_process variable.
1449
20a5fcbd
TT
14502020-09-23 Tom Tromey <tom@tromey.com>
1451
1452 PR symtab/25470:
1453 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1454 offset and bit size.
1455 * printcmd.c (print_scalar_formatted): Handle zero-length
1456 integer.
1457 (print_scalar_formatted): Use bit_size_differs_p.
1458 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1459 constant.
1460 (union type_specific): <int_stuff>: New member.
1461 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1462 methods.
1463 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1464 TYPE_SPECIFIC_FIELD.
1465 (recursive_dump_type, copy_type_recursive): Update.
1466 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1467 DW_AT_data_bit_offset.
1468
bac51ab7
TT
14692020-09-23 Tom Tromey <tom@tromey.com>
1470
1471 * utils.h (class gdb_argv): Add move operators.
1472 <append>: New methods.
1473 * compile/compile.c (build_argc_argv): Remove.
1474 (compile_args_argc): Remove.
1475 (compile_args_argv): Change type.
1476 (set_compile_args): Simplify.
1477 (append_args): Remove.
1478 (filter_args): Remove argcp parameter.
1479 (get_args): Return gdb_argv. Simplify.
1480 (compile_to_object): Update.
1481
92677124
TT
14822020-09-23 Tom Tromey <tom@tromey.com>
1483
1484 * compile/compile-object-run.c (do_module_cleanup)
1485 <~do_module_cleanup> :Remove.
1486 (do_module_cleanup): Update.
1487 * compile/compile-object-load.h (struct munmap_list): Add move
1488 assignment operator.
1489 <source_file>: Now a std::string.
1490 <munmap_list>: Rename. No longer a pointer.
1491 * compile/compile-object-load.c (struct setup_sections_data): Add
1492 constructor.
1493 <setup_one_section>: Declare.
1494 <munmap_list>: Move earlier.
1495 <m_bfd>: New member.
1496 <m_last_size, m_last_section_first, m_last_prot,
1497 m_last_max_alignment>: Rename, add initializers where needed.
1498 (setup_sections_data::setup_one_section): Rename from
1499 setup_sections. Update.
1500 (compile_object_load): Update. Don't use bfd_map_over_sections.
1501
e616f60a
TT
15022020-09-23 Tom Tromey <tom@tromey.com>
1503
1504 * compile/compile-object-run.c (struct do_module_cleanup): Add
1505 parameters to constructor. Update destructor.
1506 <source_file, scope, scope_data, out_value_type, out_value_addr,
1507 munmap_list_head, objfile_name_string>: Remove.
1508 <module>: New member.
1509 (do_module_cleanup): Update.
1510 (compile_object_run): Update.
1511
e947a848
TT
15122020-09-23 Tom Tromey <tom@tromey.com>
1513
1514 * compile/compile.c (eval_compile_command): Update.
1515 * compile/compile-object-run.h (compile_object_run): Take a
1516 compile_module_up.
1517 * compile/compile-object-run.c (compile_object_run): Take a
1518 compile_module_up.
1519 * compile/compile-object-load.h (struct compile_module): Add
1520 constructor, destructor.
1521 (compile_module_up): New typedef.
1522 (compile_object_load): Return compile_object_up.
1523 * compile/compile-object-load.c (compile_object_load): Return
1524 compile_module_up.
1525
0dbf6ee6
TT
15262020-09-23 Tom Tromey <tom@tromey.com>
1527
1528 * compile/compile-object-run.c (struct do_module_cleanup): Add
1529 constructor, destructor.
1530 <objfile_name_string>: Don't use struct hack.
1531 (do_module_cleanup): Use delete.
1532 (compile_object_run): Use new.
1533
ebe824f5
TT
15342020-09-23 Tom Tromey <tom@tromey.com>
1535
1536 * compile/compile-cplus-types.c
1537 (compile_cplus_convert_struct_or_union): Use std::vector.
1538 (compile_cplus_convert_func): Likewise.
1539 * compile/compile-c-types.c (convert_func): Use std::vector.
1540
5dd918d9
TT
15412020-09-21 Tom Tromey <tromey@adacore.com>
1542
1543 * sparc-tdep.c (sparc32_skip_prologue): Use
1544 skip_prologue_using_sal.
1545
5486c517
TT
15462020-09-19 Tom Tromey <tom@tromey.com>
1547
1548 * symfile.c (add_section_size_callback): Remove.
1549 (load_one_section): Rename from load_section_callback. Change
1550 parameters.
1551 (generic_load): Use foreach.
1552
8a6bb1d1
TT
15532020-09-19 Tom Tromey <tom@tromey.com>
1554
1555 * exec.c (add_to_section_table): Remove.
1556 (build_section_table): Use foreach.
1557
08f93a1a
TT
15582020-09-19 Tom Tromey <tom@tromey.com>
1559
1560 * elfread.c (elf_locate_sections): Change parameters.
1561 (elf_symfile_read): Use foreach.
1562
03cd72b8
TT
15632020-09-19 Tom Tromey <tom@tromey.com>
1564
1565 * cli/cli-dump.c (struct callback_data): Remove.
1566 (restore_one_section): Rename from restore_section_callback.
1567 Change parameters.
1568 (restore_binary_file): Change parameters.
1569 (restore_command): Use foreach.
1570
f4f2b85f
TT
15712020-09-19 Tom Tromey <tom@tromey.com>
1572
1573 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1574 (gcore_copy_callback): Likewise.
1575 (gcore_memory_sections): Use foreach.
1576
b35c1d1c
TT
15772020-09-19 Tom Tromey <tom@tromey.com>
1578
1579 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1580 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1581 parameters.
1582 (generic_elf_osabi_sniffer): Use foreach.
1583 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1584 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1585
5bb6e9dd
TT
15862020-09-19 Tom Tromey <tom@tromey.com>
1587
1588 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1589 (dwarf2_get_dwz_file): Use foreach.
1590 (dwarf2_locate_dwo_sections): Change parameters.
1591 (open_and_init_dwo_file): Use foreach.
1592 (dwarf2_locate_common_dwp_sections): Change parameters.
1593 (open_and_init_dwp_file): Use foreach.
1594
ad7277da
TT
15952020-09-19 Tom Tromey <tom@tromey.com>
1596
1597 * symfile.h: (find_lowest_section): Don't declare.
1598 * symfile.c (find_lowest_section): Now static. Change
1599 parameters.
1600 (struct place_section_arg): Remove.
1601 (place_section): Change parameters.
1602 (addr_info_make_relative): Use foreach.
1603 (symfile_dummy_outputs): Remove.
1604 (default_symfile_relocate): Use foreach.
1605
cb814f2e
TT
16062020-09-19 Tom Tromey <tom@tromey.com>
1607
1608 * objfiles.c (add_to_objfile_sections): Rename from
1609 add_to_objfile_sections_full.
1610 (add_to_objfile_sections): Remove.
1611 (build_objfile_section_table): Use foreach.
1612
3cabfd26
TT
16132020-09-19 Tom Tromey <tom@tromey.com>
1614
1615 * stap-probe.c (get_stap_base_address_1): Remove.
1616 (get_stap_base_address): Use foreach.
1617
1ce51eb5
TT
16182020-09-19 Tom Tromey <tom@tromey.com>
1619
1620 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1621 parameters.
1622 (gdb_bfd_close_or_warn): Use foreach.
1623
a190fabb
TT
16242020-09-19 Tom Tromey <tom@tromey.com>
1625
1626 * corelow.c (add_to_thread_list): Change parameters.
1627 (core_target_open): Use foreach.
1628
cafb0d81
TT
16292020-09-19 Tom Tromey <tom@tromey.com>
1630
1631 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1632 existing function.
1633
c8d5abea
AB
16342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1637 for arrays.
1638
6d816919
AB
16392020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * eval.c: Remove 'f-lang.h' include.
1642 (value_f90_subarray): Moved to f-lang.c.
1643 (eval_call): Renamed to...
1644 (evaluate_subexp_do_call): ...this, is no longer static, header
1645 comment moved into header file.
1646 (evaluate_funcall): Update call to eval_call.
1647 (skip_undetermined_arglist): Moved to f-lang.c.
1648 (fortran_value_subarray): Likewise.
1649 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1650 moved to evaluate_subexp_f.
1651 (calc_f77_array_dims): Moved to f-lang.c
1652 * expprint.c (print_subexp_funcall): New function.
1653 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1654 moved to print_subexp_f, OP_FUNCALL uses new function.
1655 (dump_subexp_body_funcall): New function.
1656 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1657 moved to dump_subexp_f, OP_FUNCALL uses new function.
1658 * expression.h (evaluate_subexp_do_call): Declare.
1659 * f-lang.c (value_f90_subarray): Moved from eval.c.
1660 (skip_undetermined_arglist): Likewise.
1661 (calc_f77_array_dims): Likewise.
1662 (fortran_value_subarray): Likewise.
1663 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1664 (operator_length_f): Likewise.
1665 (print_subexp_f): Likewise.
1666 (dump_subexp_body_f): Likewise.
1667 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1668 declaration of this operation to here.
1669 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1670 support moved to operator_length_f.
1671 * parser-defs.h (dump_subexp_body_funcall): Declare.
1672 (print_subexp_funcall): Declare.
1673 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1674 fortran-operator.def.
1675
8c37706a
AB
16762020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * eval.c (fortran_value_subarray): New function, content is taken
1679 from...
1680 (evaluate_subexp_standard): ...here, in two places. Now arrays
1681 and strings both call the new function.
1682 (calc_f77_array_dims): Add header comment, handle strings.
1683
14f9473c
VC
16842020-09-18 Victor Collod <vcollod@nvidia.com>
1685
1686 PR gdb/26635
1687 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1688 (i386_analyze_prologue): Call i386_skip_endbr.
1689
b60cea74
TT
16902020-09-18 Tom Tromey <tromey@adacore.com>
1691
1692 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1693 (windows_nat_target::wait): Update.
1694 * target/wait.h (enum target_wait_flag): New. Use
1695 DEF_ENUM_FLAGS_TYPE.
1696 * target/target.h (target_wait): Change type of options.
1697 * target.h (target_options_to_string, default_target_wait):
1698 Update.
1699 (struct target_ops) <wait>: Change type of options.
1700 * target.c (target_wait, default_target_wait, do_option): Change
1701 type of "options".
1702 (target_options_to_string): Likewise.
1703 * target-delegates.c: Rebuild.
1704 * target-debug.h (target_debug_print_target_wait_flags): Rename
1705 from target_debug_print_options.
1706 * sol-thread.c (class sol_thread_target) <wait>: Update.
1707 (sol_thread_target::wait): Update.
1708 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1709 (rs6000_nat_target::wait): Update.
1710 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1711 Update.
1712 (remote_target::wait_ns, remote_target::wait_as): Change type of
1713 "options".
1714 (remote_target::wait): Update.
1715 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1716 (gdbsim_target::wait): Update.
1717 * record-full.c (class record_full_base_target) <wait>: Update.
1718 (record_full_wait_1): Change type of "options".
1719 (record_full_base_target::wait): Update.
1720 * record-btrace.c (class record_btrace_target) <wait>: Update.
1721 (record_btrace_target::wait): Update.
1722 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1723 Update.
1724 (ravenscar_thread_target::wait): Update.
1725 * procfs.c (class procfs_target) <wait>: Update.
1726 (procfs_target::wait): Update.
1727 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1728 * obsd-nat.c (obsd_nat_target::wait): Update.
1729 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1730 (nto_procfs_target::wait): Update.
1731 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1732 * nbsd-nat.c (nbsd_wait): Change type of "options".
1733 (nbsd_nat_target::wait): Update.
1734 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1735 (thread_db_target::wait): Update.
1736 * linux-nat.h (class linux_nat_target) <wait>: Update.
1737 * linux-nat.c (linux_nat_target::wait): Update.
1738 (linux_nat_wait_1): Update.
1739 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1740 "options".
1741 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1742 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1743 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1744 (go32_nat_target::wait): Update.
1745 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1746 * gnu-nat.c (gnu_nat_target::wait): Update.
1747 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1748 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1749 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1750 * darwin-nat.c (darwin_nat_target::wait): Update.
1751 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1752 (bsd_uthread_target::wait): Update.
1753 * aix-thread.c (class aix_thread_target) <wait>: Update.
1754 (aix_thread_target::wait): Update.
1755
0295dde6
AB
17562020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * compile/compile-object-run.c (create_copied_type_recursive): New
1759 function.
1760 (compile_object_run): Use new function.
1761
d3483b43
JT
17622020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1763
1764 * NEWS: Mention x86_64 Cygwin core file support.
1765
e7d612ad
JT
17662020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1767
1768 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1769 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1770
aff9d387
JT
17712020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1772
62a5151b
JT
1773 * windows-tdep.h: Add prototypes.
1774 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1775 (i386_windows_core_pid_to_str): Move and rename ...
1776 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1777 (windows_core_pid_to_str): ... and here.
1778 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1779
17802020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1781 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1782 (amd64_windows_init_abi_common): ... and register.
1783
7d155da3
JT
17842020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1785
1786 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1787 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1788
e8ef12b9
PA
17892020-09-18 Pedro Alves <pedro@palves.net>
1790
1791 PR gdb/26631
1792 * thread.c (thread_find_command): Switch inferior before calling
1793 target methods.
1794
c1e1314d
TT
17952020-09-17 Tom Tromey <tromey@adacore.com>
1796
1797 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1798 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1799 (tdesc_arch_data_up): New typedef.
1800 (tdesc_use_registers, tdesc_data_alloc): Update.
1801 (tdesc_data_cleanup): Don't declare.
1802 * target-descriptions.c (tdesc_data_alloc): Return a
1803 tdesc_arch_data_up.
1804 (tdesc_arch_data_deleter::operator()): Rename from
1805 tdesc_data_cleanup. Change argument type.
1806 (tdesc_use_registers): Change early_data to an rvalue reference.
1807 (tdesc_use_registers): Don't use delete.
1808 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1809 * s390-tdep.c (s390_gdbarch_init): Update.
1810 * rx-tdep.c (rx_gdbarch_init): Update.
1811 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1812 * riscv-tdep.c (riscv_gdbarch_init): Update.
1813 * or1k-tdep.c (or1k_gdbarch_init): Update.
1814 * nios2-tdep.c (nios2_gdbarch_init): Update.
1815 * nds32-tdep.c (nds32_gdbarch_init): Update.
1816 * mips-tdep.c (mips_gdbarch_init): Update.
1817 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1818 * m68k-tdep.c (m68k_gdbarch_init): Update.
1819 * i386-tdep.c (i386_gdbarch_init): Update.
1820 * arm-tdep.c (arm_gdbarch_init): Update.
1821 * arc-tdep.c (arc_tdesc_init): Update.
1822 (arc_gdbarch_init): Update.
1823 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1824
0363df3d
HD
18252020-09-17 Hannes Domani <ssbssa@yahoo.de>
1826
1827 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1828 for WOW64 processes.
1829
280a9412
TT
18302020-09-17 Tom Tromey <tom@tromey.com>
1831
1832 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1833
6108fd18
TT
18342020-09-17 Tom Tromey <tom@tromey.com>
1835
1836 * value.c (preserve_values): Update.
1837 * python/py-type.c (save_objfile_types): Update.
1838 * guile/scm-type.c (save_objfile_types): Update.
1839 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1840 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1841 * compile/compile-object-run.c (compile_object_run): Update.
1842
fa9b1164
TT
18432020-09-17 Tom Tromey <tom@tromey.com>
1844
1845 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1846 Remove.
1847 <m_table>: Now htab_up.
1848 * typeprint.c (typedef_hash_table::recursively_update)
1849 (typedef_hash_table::add_template_parameters)
1850 (typedef_hash_table::typedef_hash_table): Update.
1851 (typedef_hash_table::~typedef_hash_table): Remove.
1852 (typedef_hash_table::typedef_hash_table)
1853 (typedef_hash_table::find_global_typedef)
1854 (typedef_hash_table::find_typedef): Update.
1855
eb53f105
TT
18562020-09-17 Tom Tromey <tom@tromey.com>
1857
1858 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1859
7a8a5d47
TT
18602020-09-17 Tom Tromey <tom@tromey.com>
1861
1862 * linespec.c (class decode_compound_collector)
1863 <~decode_compound_collector>: Remove.
1864 <m_unique_syms>: Now htab_up.
1865 (decode_compound_collector::operator ()): Update.
1866 (class symtab_collector) <~symtab_collector>: Remove.
1867 <m_symtab_table>: Now htab_up.
1868 (symtab_collector::operator ()): Update.
1869
99032cfc
TT
18702020-09-17 Tom Tromey <tom@tromey.com>
1871
1872 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1873 (filename_seen_cache::clear): Update.
1874 (~filename_seen_cache): Remove.
1875 (filename_seen_cache::seen): Update.
1876 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1877 htab_up.
1878 <~filename_seen_cache>: Remove.
1879 <traverse>: Update.
1880
32580f6d
TT
18812020-09-17 Tom Tromey <tom@tromey.com>
1882
1883 * completer.c (completion_tracker::discard_completions)
1884 (completion_tracker::~completion_tracker)
1885 (completion_tracker::maybe_add_completion)
1886 (completion_tracker::remove_completion)
1887 (completion_tracker::recompute_lowest_common_denominator)
1888 (completion_tracker::build_completion_result): Update.
1889 * completer.h (class completion_tracker) <have_completions>:
1890 Update.
1891 <m_entries_hash>: Now htab_up.
1892
c1fb9836
TT
18932020-09-17 Tom Tromey <tom@tromey.com>
1894
1895 * breakpoint.c (ambiguous_names_p): Use htab_up.
1896
88f07206
TT
18972020-09-17 Tom Tromey <tom@tromey.com>
1898
1899 * auto-load.c (struct auto_load_pspace_info)
1900 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1901 <loaded_script_files, loaded_script_texts>: Change type to
1902 htab_up.
1903 (~auto_load_pspace_info) Remove.
1904 (init_loaded_scripts_info, maybe_add_script_file)
1905 (maybe_add_script_text, auto_load_info_scripts): Update.
1906
9519b2ee
TT
19072020-09-17 Tom Tromey <tromey@adacore.com>
1908
1909 * c-exp.y (name_obstack): Now static.
1910
d2cd4113
CC
19112020-09-17 Chungyi Chi <demonic@csie.io>
1912
1913 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1914
b650a282
SM
19152020-09-16 Simon Marchi <simon.marchi@efficios.com>
1916
1917 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1918 (add_solib_catchpoint): Likewise.
1919 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1920 to bool.
1921 (add_solib_catchpoint): Change int parameter/variable to bool.
1922 (catch_load_or_unload): Likewise.
1923 (init_catchpoint): Likewise.
1924 (create_fork_vfork_event_catchpoint): Likewise.
1925 (catch_fork_command_1): Likewise.
1926 (catch_exec_command_1): Likewise.
1927
4d0bcfcf
SM
19282020-09-16 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1931 Change instance_flags to m_instance_flags.
1932
fe830662
TT
19332020-09-16 Tom Tromey <tromey@adacore.com>
1934
1935 PR gdb/26598:
1936 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1937
fe5ddfc3
JB
19382020-09-16 John Baldwin <jhb@FreeBSD.org>
1939
1940 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1941 PL_FLAG_EXEC.
1942 (fbsd_nat_target::insert_exec_catchpoint)
1943 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1944 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1945 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1946
e911c666
JB
19472020-09-16 John Baldwin <jhb@FreeBSD.org>
1948
1949 * configure.ac: Remove check for kinfo_getvmmap().
1950 * configure, config.in: Regenerate.
1951 * fbsd-nat.c (fbsd_read_mapping): Remove
1952 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1953 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1954 kinfo_get_vmmap() are always present.
1955
1f17d372
JB
19562020-09-16 John Baldwin <jhb@FreeBSD.org>
1957
1958 * fbsd-nat.c: Always include support for
1959 TARGET_OBJECT_SIGNAL_INFO.
1960
bcb1da7f
JB
19612020-09-16 John Baldwin <jhb@FreeBSD.org>
1962
1963 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1964 sysctl and remove procfs fallback.
1965
5515f729
JB
19662020-09-16 John Baldwin <jhb@FreeBSD.org>
1967
1968 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1969 * fbsd-nat.h: Likewise.
1970
da1df1db
TBA
19712020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972
1973 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1974 argument.
1975
0e25e767
AB
19762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * ada-lang.c (ada_language_data): Delete.
1979 (ada_language): Remove references to ada_language_data.
1980 * c-lang.c (c_language_data): Delete.
1981 (c_language): Remove references to c_language_data.
1982 (cplus_language_data): Delete.
1983 (cplus_language): Remove references to cplus_language_data.
1984 (asm_language_data): Delete.
1985 (asm_language): Remove references to asm_language_data.
1986 (minimal_language_data): Delete.
1987 (minimal_language): Remove references to minimal_language_data.
1988 * d-lang.c (d_language_data): Delete.
1989 (d_language): Remove references to d_language_data.
1990 * f-lang.c (f_language_data): Delete.
1991 (f_language): Remove references to f_language_data.
1992 * go-lang.c (go_language_data): Delete.
1993 (go_language): Remove references to go_language_data.
1994 * language.c (unknown_language_data): Delete.
1995 (unknown_language): Remove references to unknown_language_data.
1996 (auto_language_data): Delete.
1997 (auto_language): Remove references to auto_language_data.
1998 * language.h (language_data): Delete struct.
1999 (language_defn): No longer inherit from language_data.
2000 * m2-lang.c (m2_language_data): Delete.
2001 (m2_language): Remove references to m2_language_data.
2002 * objc-lang.c (objc_language_data): Delete.
2003 (objc_language): Remove references to objc_language_data.
2004 * opencl-lang.c (opencl_language_data): Delete.
2005 (opencl_language): Remove references to opencl_language_data.
2006 * p-lang.c (pascal_language_data): Delete.
2007 (pascal_language): Remove references to pascal_language_data.
2008 * rust-lang.c (rust_language_data): Delete.
2009 (rust_language): Remove references to rust_language_data.
2010
b7c6e27d
AB
20112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2014 initializer.
2015 (ada_language::opcode_print_table): New member function.
2016 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2017 (c_language::opcode_print_table): New member function.
2018 (cplus_language_data): Remove la_op_print_tab initializer.
2019 (cplus_language::opcode_print_table): New member function.
2020 (asm_language_data): Remove la_op_print_tab initializer.
2021 (asm_language::opcode_print_table): New member function.
2022 (minimal_language_data): Remove la_op_print_tab initializer.
2023 (minimal_language::opcode_print_table): New member function.
2024 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2025 (d_language::opcode_print_table): New member function.
2026 * expprint.c (print_subexp_standard): Update call to
2027 opcode_print_table.
2028 (op_string): Likewise.
2029 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2030 (f_language::opcode_print_table): New member function.
2031 * go-lang.c (go_language_data): Remove la_op_print_tab
2032 initializer.
2033 (go_language::opcode_print_table): New member function.
2034 * language.c (unknown_language_data): Remove la_op_print_tab
2035 initializer.
2036 (unknown_language::opcode_print_table): New member function.
2037 (auto_language_data): Remove la_op_print_tab initializer.
2038 (auto_language::opcode_print_table): New member function.
2039 * language.h (language_data): Remove la_op_print_tab field.
2040 (language_defn::opcode_print_table): Declare new member function.
2041 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2042 initializer.
2043 (m2_language::opcode_print_table): New member function.
2044 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2045 initializer.
2046 (objc_language::opcode_print_table): New member function.
2047 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2048 initializer.
2049 (opencl_language::opcode_print_table): New member function.
2050 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2051 initializer.
2052 (pascal_language::opcode_print_table): New member function.
2053 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2054 initializer.
2055 (rust_language::opcode_print_table): New member function.
2056
5aba6ebe
AB
20572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2060 (ada_language::expression_ops): New member function.
2061 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2062 (c_language::expression_ops): New member function.
2063 (cplus_language_data): Remove la_exp_desc initializer.
2064 (cplus_language::expression_ops): New member function.
2065 (asm_language_data): Remove la_exp_desc initializer.
2066 (asm_language::expression_ops): New member function.
2067 (minimal_language_data): Remove la_exp_desc initializer.
2068 (minimal_language::expression_ops): New member function.
2069 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2070 (d_language::expression_ops): New member function.
2071 * eval.c (evaluate_subexp): Update call to expression_ops.
2072 * expprint.c (print_subexp): Likewise.
2073 (op_name): Likewise.
2074 (dump_subexp_body): Likewise.
2075 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2076 (f_language::expression_ops): New member function.
2077 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2078 (go_language::expression_ops): New member function.
2079 * language.c (language_defn::expression_ops): New function.
2080 (unknown_language_data): Remove la_exp_desc initializer.
2081 (auto_language_data): Likewise.
2082 * language.h (language_data): Remove la_exp_desc field.
2083 (language_defn::expression_ops): Declare new member function.
2084 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2085 (m2_language::expression_ops): New member function.
2086 * objc-lang.c (objc_language_data): Remove la_exp_desc
2087 initializer.
2088 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2089 initializer.
2090 (opencl_language::expression_ops): New member function.
2091 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2092 * parse.c (operator_length): Update call to expression_ops.
2093 (exp_iterate): Likewise.
2094 * rust-lang.c (rust_language_data): Remove la_exp_desc
2095 initializer.
2096 (ruse_language::expression_ops): New member function.
2097
b63a3f3f
AB
20982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2101 initializer.
2102 (ada_language::varobj_ops): New member function.
2103 * c-lang.c (c_language_data): Remove la_varobj_ops
2104 initializer.
2105 (cplus_language_data): Likewise.
2106 (cplus_language::varobj_ops): New member function.
2107 (asm_language_data): Remove la_varobj_ops initializer.
2108 (minimal_language_data): Likewise.
2109 * d-lang.c (d_language_data): Likewise.
2110 * f-lang.c (f_language_data): Likewise.
2111 * go-lang.c (go_language_data): Likewise.
2112 * language.c (language_defn::varobj_ops): New function.
2113 (unknown_language_data): Remove la_varobj_ops
2114 initializer.
2115 (auto_language_data): Likewise.
2116 * language.h (language_data): Remove la_varobj_ops field.
2117 (language_defn::varobj_ops): Declare new member function.
2118 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2119 * objc-lang.c (objc_language_data): Likewise.
2120 * opencl-lang.c (opencl_language_data): Likewise.
2121 * p-lang.c (pascal_language_data): Likewise.
2122 * rust-lang.c (rust_language_data): Likewise.
2123 * varobj.c (varobj_create): Update call to varobj_ops.
2124 * varobj.h (default_varobj_ops): Delete define.
2125
1ac14a04
AB
21262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2127
2128 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2129 initializer.
2130 * c-lang.c (c_language_data): Likewise.
2131 (c_language::macro_expansion): New member function.
2132 (cplus_language_data): Likewise.
2133 (cplus_language::macro_expansion): New member function.
2134 (asm_language_data): Likewise.
2135 (asm_language::macro_expansion): New member function.
2136 (minimal_language_data): Likewise.
2137 (minimal_language::macro_expansion): New member function.
2138 * d-lang.c (d_language_data): Remove la_macro_expansion
2139 initializer.
2140 * f-lang.c (f_language_data): Likewise.
2141 * go-lang.c (go_language_data): Likewise.
2142 * language.c (unknown_language_data): Likewise.
2143 (auto_language_data): Likewise.
2144 * language.h (language_data): Remove la_macro_expansion field.
2145 (language_defn::macro_expansion): New member function.
2146 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2147 initializer.
2148 * objc-lang.c (objc_language_data): Likewise.
2149 (objc_language::macro_expansion): New member function.
2150 * opencl-lang.c (opencl_language_data): Likewise.
2151 (opencl_language::macro_expansion): New member function.
2152 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2153 initializer.
2154 * rust-lang.c (rust_language_data): Likewise.
2155 * symtab.c (default_collect_symbol_completion_matches_break_on):
2156 Update call to macro_expansion.
2157
3a3440fb
AB
21582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * ada-lang.c (ada_language_data): Remove la_array_ordering
2161 initializer.
2162 * c-lang.c (c_language_data): Likewise.
2163 (cplus_language_data): Likewise.
2164 (asm_language_data): Likewise.
2165 (minimal_language_data): Likewise.
2166 * d-lang.c (d_language_data): Likewise.
2167 * dwarf2/read.c (read_array_order): Update for call to
2168 array_ordering.
2169 * f-lang.c (f_language_data): Remove la_array_ordering
2170 initializer.
2171 (f_language::array_ordering): New member function.
2172 * go-lang.c (go_language_data): Remove la_array_ordering
2173 initializer.
2174 * language.c (unknown_language_data): Likewise.
2175 (auto_language_data): Likewise.
2176 * language.h (language_data): Delete la_array_ordering field.
2177 (language_defn::array_ordering): New member function.
2178 * m2-lang.c (m2_language_data): Remove la_array_ordering
2179 initializer.
2180 * objc-lang.c (objc_language_data): Likewise.
2181 * opencl-lang.c (opencl_language_data): Likewise.
2182 * p-lang.c (pascal_language_data): Likewise.
2183 * rust-lang.c (rust_language_data): Likewise.
2184
0d201fa4
AB
21852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2188 initializer.
2189 * c-lang.c (c_language_data): Likewise.
2190 (cplus_language_data): Likewise.
2191 (asm_language_data): Likewise.
2192 (minimal_language_data): Likewise.
2193 * d-lang.c (d_language_data): Likewise.
2194 * f-lang.c (f_language_data): Likewise.
2195 (f_language::case_sensitivity): New member function.
2196 * go-lang.c (go_language_data): Remove la_case_sensitivity
2197 initializer.
2198 * language.c (enum case_mode): Moved here from language.h.
2199 (case_mode): Make static.
2200 (show_case_command): Update for case_sensitivity being a method.
2201 (set_case_command): Likewise.
2202 (set_range_case): Likewise.
2203 (unknown_language_data): Remove la_case_sensitivity initializer.
2204 (auto_language_data): Likewise.
2205 * language.h (case_mode): Delete, move enum declaration to
2206 language.c.
2207 (language_data): Delete la_case_sensitivity field.
2208 (language_defn::case_sensitivity): New member function.
2209 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2210 initializer.
2211 * objc-lang.c (objc_language_data): Likewise.
2212 * opencl-lang.c (opencl_language_data): Likewise.
2213 * p-lang.c (pascal_language_data): Likewise.
2214 * rust-lang.c (rust_language_data): Likewise.
2215
efdf6a73
AB
22162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * ada-lang.c (ada_language_data): Remove la_range_check
2219 initializer.
2220 * c-lang.c (c_language_data): Likewise.
2221 (cplus_language_data): Likewise.
2222 (asm_language_data): Likewise.
2223 (minimal_language_data): Likewise.
2224 * d-lang.c (d_language_data): Likewise.
2225 * f-lang.c (f_language_data): Likewise.
2226 (f_language::range_checking_on_by_default): New member function.
2227 * go-lang.c (go_language_data): Remove la_range_check initializer.
2228 * language.c (enum range_mode): Moved here from language.h.
2229 (range_mode): Made static.
2230 (show_range_command): Update to use
2231 range_checking_on_by_default.
2232 (set_range_command): Likewise.
2233 (set_range_case): Likewise.
2234 (unknown_language_data): Remove la_range_check initializer.
2235 (auto_language_data): Likewise.
2236 * language.h (range_mode): Delete. Enum definition moved to
2237 language.c.
2238 (language_data): Remove la_range_check field.
2239 (language_defn::range_checking_on_by_default): New member
2240 function.
2241 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2242 (m2_language::range_checking_on_by_default): New member function.
2243 * objc-lang.c (objc_language_data): Remove la_range_check
2244 initializer.
2245 * opencl-lang.c (opencl_language_data): Likewise.
2246 * p-lang.c (pascal_language_data): Likewise.
2247 (pascal_language::range_checking_on_by_default): New member
2248 function.
2249 * rust-lang.c (rust_language_data): Remove la_range_check
2250 initializer.
2251 (rust_language::range_checking_on_by_default): New member
2252 function.
2253
bf92aec5
AB
22542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * dwarf2/read.c (dwarf2_physname): Remove special case for
2257 language_go.
2258 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2259 member function.
2260
d3355e4d
AB
22612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * ada-lang.c (ada_language_data): Remove
2264 la_store_sym_names_in_linkage_form_p initializer.
2265 (ada_language::store_sym_names_in_linkage_form_p): New member
2266 function.
2267 * c-lang.c (c_language_data): Remove
2268 la_store_sym_names_in_linkage_form_p initializer.
2269 (c_language::store_sym_names_in_linkage_form_p): New member
2270 function.
2271 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2272 initializer.
2273 (asm_language_data): Likewise.
2274 (asm_language::store_sym_names_in_linkage_form_p): New member
2275 function.
2276 (minimal_language_data): Remove
2277 la_store_sym_names_in_linkage_form_p initializer.
2278 (minimal_language::store_sym_names_in_linkage_form_p): New member
2279 function.
2280 * d-lang.c (d_language_data): Remove
2281 la_store_sym_names_in_linkage_form_p initializer.
2282 * dwarf2/read.c (dwarf2_physname): Update call to
2283 store_sym_names_in_linkage_form_p.
2284 * f-lang.c (f_language_data): Remove
2285 la_store_sym_names_in_linkage_form_p initializer.
2286 * go-lang.c (go_language_data): Remove
2287 la_store_sym_names_in_linkage_form_p initializer.
2288 * language.c (unknown_language_data): Remove
2289 la_store_sym_names_in_linkage_form_p initializer.
2290 (unknown_language::store_sym_names_in_linkage_form_p): New member
2291 function.
2292 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2293 initializer.
2294 (auto_language::store_sym_names_in_linkage_form_p): New member
2295 function.
2296 * language.h (language_data): Remove
2297 la_store_sym_names_in_linkage_form_p member variable.
2298 (language_defn::store_sym_names_in_linkage_form_p): New member
2299 function.
2300 * m2-lang.c (m2_language_data): Remove
2301 la_store_sym_names_in_linkage_form_p initializer.
2302 * objc-lang.c (objc_language_data): Likewise.
2303 * opencl-lang.c (opencl_language_data): Likewise.
2304 * p-lang.c (pascal_language_data): Likewise.
2305 * rust-lang.c (rust_language_data): Likewise.
2306
22c12a6c
AB
23072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2308
2309 * ada-lang.c (ada_language_data): Remove string_lower_bound
2310 initializer.
2311 * c-lang.c (c_language_data): Likewise.
2312 (cplus_language_data): Likewise.
2313 (asm_language_data): Likewise.
2314 (minimal_language_data): Likewise.
2315 * d-lang.c (d_language_data): Likewise.
2316 * f-lang.c (f_language_data): Likewise.
2317 * go-lang.c (go_language_data): Likewise.
2318 * language.c (unknown_language_data): Likewise.
2319 (auto_language_data): Likewise.
2320 * language.h (language_data): Remove string_lower_bound field.
2321 (language_defn::string_lower_bound): New member function.
2322 * m2-lang.c (m2_language_data): Remove string_lower_bound
2323 initializer.
2324 (m2_language::string_lower_bound): New member function.
2325 * objc-lang.c (objc_language_data): Remove string_lower_bound
2326 initializer.
2327 * opencl-lang.c (opencl_language_data): Likewise.
2328 * p-lang.c (pascal_language_data): Likewise.
2329 * rust-lang.c (rust_language_data): Likewise.
2330 * valops.c (value_cstring): Update call to string_lower_bound.
2331 (value_string): Likewise.
2332 * value.c (allocate_repeated_value): Likewise.
2333
1c236ddd
AB
23342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * valops.c (value_repeat): Fix incorrect argument name in comment.
2337
67bd3fd5
AB
23382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * ada-lang.c (ada_language_data): Remove c_style_arrays
2341 initializer.
2342 (ada_language::c_style_arrays_p): New member fuction.
2343 * c-lang.c (c_language_data): Remove c_style_arrays
2344 initializer.
2345 (cplus_language_data): Likewise.
2346 (asm_language_data): Likewise.
2347 (minimal_language_data): Likewise.
2348 * d-lang.c (d_language_data): Likewise.
2349 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2350 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2351 (f_language::c_style_arrays_p): New member function.
2352 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2353 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2354 * language.c (unknown_language_data): Remove c_style_arrays
2355 initializer.
2356 (auto_language_data): Likewise.
2357 * language.h (language_data): Remove c_style_arrays field.
2358 (language_defn::c_style_arrays_p): New member function.
2359 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2360 (m2_language::c_style_arrays_p): New member function.
2361 * objc-lang.c (objc_language_data): Remove c_style_arrays
2362 initializer.
2363 * opencl-lang.c (opencl_language_data): Likewise.
2364 * p-lang.c (pascal_language_data): Likewise.
2365 * rust-lang.c (rust_language_data): Likewise.
2366 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2367 and update local variable to a bool.
2368 * valops.c (value_cast): Update call to c_style_arrays_p.
2369 (value_array): Likewise.
2370 * value.c (coerce_array): Likewise.
2371
85967615
AB
23722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * ada-lang.c (ada_language_data): Remove la_language initializer.
2375 * c-lang.c (c_language_data): Likewise.
2376 (cplus_language_data): Likewise.
2377 (asm_language_data): Likewise.
2378 (minimal_language_data): Likewise.
2379 * d-lang.c (d_language_data): Likewise.
2380 * f-lang.c (f_language_data): Likewise.
2381 * go-lang.c (go_language_data): Likewise.
2382 * language.c (unknown_language_data): Likewise.
2383 (auto_language_data): Likewise.
2384 * language.h (language_data): Remove la_language field.
2385 (language_defn::language_defn): Initialise la_language field.
2386 (language_defn::la_language): New member variable.
2387 * m2-lang.c (m2_language_data): Remove la_language field.
2388 * objc-lang.c (objc_language_data): Likewise.
2389 * opencl-lang.c (opencl_language_data): Likewise.
2390 * p-lang.c (pascal_language_data): Likewise.
2391 * rust-lang.c (rust_language_data): Likewise.
2392
e171d6f1
AB
23932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * ada-lang.c (ada_extensions): Delete, moved into
2396 ada_language::filename_extensions.
2397 (ada_language_data): Remove la_filename_extensions initializer.
2398 (ada_language::filename_extensions): New member function.
2399 * c-lang.c (c_extensions): Delete, moved into
2400 c_language::filename_extensions.
2401 (c_language_data): Remove la_filename_extensions initializer.
2402 (c_language::filename_extensions): New member function.
2403 (cplus_extensions): Delete, moved into
2404 cplus_language::filename_extensions.
2405 (cplus_language_data): Remove la_filename_extensions initializer.
2406 (cplus_language::filename_extensions): New member function.
2407 (asm_extensions): Delete, moved into
2408 asm_language::filename_extensions.
2409 (asm_language_data): Remove la_filename_extensions initializer.
2410 (asm_language::filename_extensions): New member function.
2411 (minimal_language_data): Remove la_filename_extensions
2412 initializer.
2413 * d-lang.c (d_extensions): Delete, moved into
2414 d_language::filename_extensions.
2415 (d_language_data): Remove la_filename_extensions initializer.
2416 (d_language::filename_extensions): New member function.
2417 * f-lang.c (f_extensions): Delete, moved into
2418 f_language::filename_extensions.
2419 (f_language_data): Remove la_filename_extensions initializer.
2420 (f_language::filename_extensions): New member function.
2421 * go-lang.c (go_language_data): Remove la_filename_extensions
2422 initializer.
2423 * language.c (add_set_language_command): Update now that
2424 filename_extensions returns a vector.
2425 (unknown_language_data): Remove la_filename_extensions
2426 initializer.
2427 (auto_language_data): Likewise.
2428 * language.h (language_data): Remove la_filename_extensions field.
2429 (language_defn::filename_extensions): New member function.
2430 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2431 initializer.
2432 * objc-lang.c (objc_extensions): Delete, moved into
2433 objc_language::filename_extensions.
2434 (objc_language_data): Remove la_filename_extensions initializer.
2435 (objc_language::filename_extensions): New member function.
2436 * opencl-lang.c (opencl_language_data): Remove
2437 la_filename_extensions initializer.
2438 * p-lang.c (pascal_extensions): Delete, moved into
2439 pascal_language::filename_extensions.
2440 (pascal_language_data): Remove la_filename_extensions initializer.
2441 (pascal_language::filename_extensions): New member function.
2442 * rust-lang.c (rust_extensions): Delete, moved into
2443 rust_language::filename_extensions.
2444 (rust_language_data): Remove la_filename_extensions initializer.
2445 (rust_language::filename_extensions): New member function.
2446 * symfile.c (add_filename_language): Add new assert.
2447
6f7664a9
AB
24482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * ada-lang.c (ada_language_data): Remove la_name and
2451 la_natural_name initializers.
2452 (ada_language::name): New member function.
2453 (ada_language::natural_name): New member function.
2454 * c-lang.c (c_language_data): Remove la_name and
2455 la_natural_name initializers.
2456 (c_language::name): New member function.
2457 (c_language::natural_name): New member function.
2458 (cplus_language_data): Remove la_name and
2459 la_natural_name initializers.
2460 (cplus_language::name): New member function.
2461 (cplus_language::natural_name): New member function.
2462 (asm_language_data): Remove la_name and
2463 la_natural_name initializers.
2464 (asm_language::name): New member function.
2465 (asm_language::natural_name): New member function.
2466 (minimal_language_data): Remove la_name and
2467 la_natural_name initializers.
2468 (minimal_language::name): New member function.
2469 (minimal_language::natural_name): New member function.
2470 * compile/compile.c (compile_to_object): Update call to
2471 lanugage_defn::name.
2472 * d-lang.c (d_language_data): Remove la_name and
2473 la_natural_name initializers.
2474 (d_language::name): New member function.
2475 (d_language::natural_name): New member function.
2476 * expprint.c (print_subexp_standard): Update call to
2477 language_defn::name.
2478 (dump_raw_expression): Likewise
2479 (dump_prefix_expression): Likewise.
2480 * f-lang.c (f_language_data): Remove la_name and
2481 la_natural_name initializers.
2482 (f_language::name): New member function.
2483 (f_language::natural_name): New member function.
2484 * go-lang.c (go_language_data): Remove la_name and
2485 la_natural_name initializers.
2486 (go_language::name): New member function.
2487 (go_language::natural_name): New member function.
2488 * language.c (show_language_command): Update call to
2489 language_defn::name.
2490 (set_language_command): Likewise.
2491 (language_enum): Likewise.
2492 (language_str): Likewise.
2493 (add_set_language_command): Likewise, use
2494 language_defn::natural_name in the doc string.
2495 (unknown_language_data): Remove la_name and
2496 la_natural_name initializers.
2497 (unknown_language::name): New member function.
2498 (unknown_language::natural_name): New member function.
2499 (auto_language_data): Remove la_name and
2500 la_natural_name initializers.
2501 (auto_language::name): New member function.
2502 (auto_language::natural_name): New member function.
2503 (language_lookup_primitive_type_as_symbol): Update call to
2504 language_defn::name.
2505 * language.h (language_data): Remove la_name and la_natural_name
2506 member variables.
2507 (language_defn::name): New member function.
2508 (language_defn::natural_name): New member function.
2509 * m2-lang.c (m2_language_data): Remove la_name and
2510 la_natural_name initializers.
2511 (m2_language::name): New member function.
2512 (m2_language::natural_name): New member function.
2513 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2514 language_defn::natural_name.
2515 * objc-lang.c (objc_language_data): Remove la_name and
2516 la_natural_name initializers.
2517 (objc_language::name): New member function.
2518 (objc_language::natural_name): New member function.
2519 * opencl-lang.c (opencl_language_data): Remove la_name and
2520 la_natural_name initializers.
2521 (opencl_language::name): New member function.
2522 (opencl_language::natural_name): New member function.
2523 * p-lang.c (pascal_language_data): Remove la_name and
2524 la_natural_name initializers.
2525 (pascal_language::name): New member function.
2526 (pascal_language::natural_name): New member function.
2527 * rust-lang.c (rust_language_data): Remove la_name and
2528 la_natural_name initializers.
2529 (rust_language::name): New member function.
2530 (rust_language::natural_name): New member function.
2531 * symtab.c (lookup_language_this): Update call to
2532 language_defn::name.
2533
5bae7c4e
AB
25342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 * ada-lang.c (ada_language_data): Remove la_name_of_this
2537 initializer.
2538 * ax-gdb.c (gen_expr): Update call to name_of_this.
2539 * c-exp.y (classify_name): Likewise.
2540 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2541 (cplus_language_data): Likewise.
2542 (cplus_language::name_of_this): New member function.
2543 (asm_language_data): Remove la_name_of_this initializer.
2544 (minimal_language_data): Likewise.
2545 * d-lang.c (d_language_data): Likewise.
2546 (d_language::name_of_this): New member function.
2547 * expprint.c (print_subexp_standard): Update call to name_of_this.
2548 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2549 * go-lang.c (go_language_data): Likewise.
2550 * language.c (unknown_language_data): Likewise.
2551 (unknown_language::name_of_this): New member function.
2552 (auto_language_data): Remove la_name_of_this initializer.
2553 (auto_language::name_of_this): New member function.
2554 * language.h (language_data): Delete la_name_of_this member
2555 variable.
2556 (language_defn::name_of_this): New member function.
2557 * m2-lang.c (m2_language_data): Remove la_name_of_this
2558 initializer.
2559 * objc-lang.c (objc_language_data): Likewise.
2560 (objc_language::name_of_this): New member function.
2561 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2562 initializer.
2563 * p-lang.c (pascal_language_data): Likewise.
2564 (pascal_language::name_of_this): New member function.
2565 * rust-lang.c (rust_language_data): Remove la_name_of_this
2566 initializer.
2567 * symtab.c (lookup_language_this): Update call to name_of_this.
2568 (lookup_symbol_aux): Likewise.
2569 * valops.c (value_of_this): Likewise.
2570
22e3f3ed
AB
25712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * ada-lang.c (ada_language_data): Remove
2574 la_struct_too_deep_ellipsis initializer.
2575 (ada_language::struct_too_deep_ellipsis): New member function.
2576 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2577 initializer.
2578 (cplus_language_data): Likewise.
2579 (asm_language_data): Likewise.
2580 (minimal_language_data): Likewise.
2581 * cp-valprint.c (cp_print_value): Update call to
2582 struct_too_deep_ellipsis.
2583 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2584 initializer.
2585 * f-lang.c (f_language_data): Likewise.
2586 (f_language::struct_too_deep_ellipsis): New member function.
2587 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2588 initializer.
2589 * language.c (unknown_language_data): Likewise.
2590 (auto_language_data): Likewise.
2591 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2592 member variable.
2593 (language_defn::struct_too_deep_ellipsis): New member function.
2594 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2595 initializer.Q
2596 * objc-lang.c (objc_language_data): Likewise.
2597 * opencl-lang.c (opencl_language_data): Likewise.
2598 * p-lang.c (pascal_language_data): Likewise.
2599 * rust-lang.c (rust_language_data): Likewise.
2600 * valprint.c (val_print_check_max_depth): Update call to
2601 struct_too_deep_ellipsis.
2602
ed29e1c7
FW
26032020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2604
2605 * MAINTAINERS (Write After Approval): Add myself.
2606
12d8f940
TT
26072020-09-15 Tom Tromey <tom@tromey.com>
2608
2609 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2610 Remove.
2611
6b5a7bc7
TT
26122020-09-15 Tom Tromey <tom@tromey.com>
2613
2614 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2615 and TYPE_CODE_METHODPTR cases.
2616 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2617 (c_value_print_inner): Update.
2618 * valprint.c (generic_value_print_memberptr): New function, from
2619 c_value_print_memberptr.
2620 (generic_value_print): Use it. Call cplus_print_method_ptr.
2621
47f0e2ff
TT
26222020-09-15 Tom Tromey <tromey@adacore.com>
2623
2624 * python/python-internal.h (PyInt_FromLong): Remove define.
2625 * python/py-value.c (convert_value_from_python): Use
2626 gdb_py_object_from_longest.
2627 * python/py-type.c (typy_get_code): Use
2628 gdb_py_object_from_longest.
2629 * python/py-symtab.c (salpy_get_line): Use
2630 gdb_py_object_from_longest.
2631 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2632 gdb_py_object_from_longest.
2633 * python/py-record.c (recpy_gap_reason_code): Use
2634 gdb_py_object_from_longest.
2635 * python/py-record-btrace.c (recpy_bt_insn_size)
2636 (recpy_bt_func_level, btpy_list_count): Use
2637 gdb_py_object_from_longest.
2638 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2639 gdb_py_object_from_longest. Fix error handling.
2640 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2641 gdb_py_object_from_longest.
2642 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2643 gdb_py_object_from_longest.
2644 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2645 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2646 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2647
512116ce
TT
26482020-09-15 Tom Tromey <tromey@adacore.com>
2649
2650 * python/python.c (gdbpy_parameter_value): Use
2651 gdb_py_object_from_ulongest.
2652
4ab1029c
TT
26532020-09-15 Tom Tromey <tromey@adacore.com>
2654
2655 * python/py-infevents.c (create_register_changed_event_object):
2656 Use gdb_py_object_from_longest.
2657 * python/py-exitedevent.c (create_exited_event_object): Use
2658 gdb_py_object_from_longest.
2659
062534d4
TT
26602020-09-15 Tom Tromey <tromey@adacore.com>
2661
2662 * python/python.c (gdbpy_parameter_value): Use
2663 gdb_py_object_from_longest.
2664 * python/py-type.c (convert_field, typy_range): Use
2665 gdb_py_object_from_longest.
2666 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2667 gdb_py_object_from_longest.
2668 * python/py-lazy-string.c (stpy_get_length): Use
2669 gdb_py_object_from_longest.
2670 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2671 gdb_py_object_from_longest.
2672 * python/py-infevents.c (create_memory_changed_event_object): Use
2673 gdb_py_object_from_longest.
2674 * python/py-inferior.c (infpy_get_num): Use
2675 gdb_py_object_from_longest.
2676 (infpy_get_pid): Likewise.
2677
d1cab987
TT
26782020-09-15 Tom Tromey <tromey@adacore.com>
2679
2680 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2681 defines.
2682 * python/py-value.c (valpy_long): Use
2683 gdb_py_object_from_ulongest.
2684 * python/py-symtab.c (salpy_get_pc): Use
2685 gdb_py_object_from_ulongest.
2686 (salpy_get_last): Likewise.
2687 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2688 gdb_py_object_from_ulongest.
2689 * python/py-lazy-string.c (stpy_get_address): Use
2690 gdb_py_object_from_ulongest.
2691 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2692 * python/py-arch.c (archpy_disassemble): Use
2693 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2694 error handling.
2695
4bde49dc
TT
26962020-09-15 Tom Tromey <tromey@adacore.com>
2697
2698 * python/python-internal.h (gdb_py_long_from_longest): Remove
2699 defines.
2700 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2701 * python/py-type.c (convert_field, typy_get_sizeof): Use
2702 gdb_py_object_from_longest.
2703 * python/py-record-btrace.c (btpy_list_index): Use
2704 gdb_py_object_from_longest.
2705
37431074
TT
27062020-09-15 Tom Tromey <tromey@adacore.com>
2707
2708 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2709 * python/py-record.c (recpy_element_number): Use
2710 gdb_py_object_from_longest.
2711 (recpy_gap_number): Likewise.
2712
cbe25684
TT
27132020-09-15 Tom Tromey <tromey@adacore.com>
2714
2715 * top.c (ui::ui): Update.
2716 (highest_ui_num): Remove.
2717 * top.h (struct ui) <num>: Remove.
2718
db92ac45
TT
27192020-09-15 Tom Tromey <tromey@adacore.com>
2720
2721 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2722 * ui-style.c (ansi_regex_text): Now array.
2723 * rust-exp.y (number_regex_text): Now array.
2724 * linespec.c (linespec_quote_characters): Now array.
2725 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2726 Now arrays.
2727
d2b31b67
SM
27282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * debuginfod-support.c (debuginfod_client_deleter): New.
2731 (debuginfod_client_up): New.
2732 (debuginfod_init): Return debuginfod_client_up.
2733 (debuginfod_source_query): Adjust.
2734 (debuginfod_debuginfo_query): Adjust.
2735
3246bd8e
SM
27362020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * debuginfod-support.c (debuginfod_source_query): Use
2739 make_unique_xstrdup.
2740
10242f36
SM
27412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2742
2743 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2744 with `type::instance_flags`.
2745
e1044e6a
MM
27462020-09-14 Michael Mullin <masmullin@gmail.com>
2747
2748 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2749 Remove baton parameter.
2750
04902b09
PA
27512020-09-14 Pedro Alves <pedro@palves.net>
2752
2753 * Makefile.in (SELFTESTS_SRCS): Add
2754 unittests/enum-flags-selftests.c.
2755 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2756 btrace_function_flags instead of enum btrace_function_flag.
2757 * compile/compile-c-types.c (convert_qualified): Use
2758 enum_flags::raw.
2759 * compile/compile-cplus-symbols.c (convert_one_symbol)
2760 (convert_symbol_bmsym):
2761 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2762 (compile_cplus_convert_struct_or_union_methods)
2763 (compile_cplus_instance::convert_qualified_base):
2764 * go-exp.y (parse_string_or_char): Add cast to int.
2765 * unittests/enum-flags-selftests.c: New file.
2766 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2767 type to btrace_thread_flags from btrace_thread_flag.
2768 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2769 local's type to btrace_thread_flags from btrace_thread_flag. Add
2770 cast in DEBUG call.
2771
69896a2c
PA
27722020-09-14 Pedro Alves <pedro@palves.net>
2773
2774 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2775 * gdbtypes.c (address_space_name_to_int): Rename to ...
2776 (address_space_name_to_type_instance_flags): ... this.
2777 (address_space_int_to_name): Rename to ...
2778 (address_space_type_instance_flags_to_name): ... this.
2779 * gdbtypes.h (address_space_name_to_int): Rename to ...
2780 (address_space_name_to_type_instance_flags): ... this.
2781 (address_space_int_to_name): Rename to ...
2782 (address_space_type_instance_flags_to_name): ... this.
2783 * type-stack.c (type_stack::insert): Adjust to rename.
2784 * type-stack.h (type_stack::insert): Likewise.
2785
314ad88d
PA
27862020-09-14 Pedro Alves <pedro@palves.net>
2787 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * avr-tdep.c (avr_address_class_type_flags): Return
2790 type_instance_flags.
2791 (avr_address_class_type_flags_to_name): Take a
2792 type_instance_flags.
2793 (avr_address_class_name_to_type_flags): Return bool and take a
2794 type_instance_flags.
2795 * d-lang.c (build_d_types): Use type::set_instance_flags.
2796 * ft32-tdep.c (ft32_address_class_type_flags): Return
2797 type_instance_flags.
2798 (ft32_address_class_type_flags_to_name): Take a
2799 type_instance_flags.
2800 (ft32_address_class_name_to_type_flags): Return bool and take a
2801 type_instance_flags.
2802 (ft32_gdbarch_init): Use type::set_instance_flags.
2803 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2804 * gdbarch.h, gdbarch.c: Regenerate.
2805 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2806 (address_class_name_to_type_flags): Use type_instance_flags and
2807 bool.
2808 * gdbtypes.c (address_space_name_to_int)
2809 (address_space_int_to_name, make_qualified_type): Use
2810 type_instance_flags.
2811 (make_qualified_type): Use type_instance_flags and
2812 type::set_instance_flags.
2813 (make_type_with_address_space, make_cv_type, make_vector_type)
2814 (check_typedef): Use type_instance_flags.
2815 (recursive_dump_type): Cast type_instance_flags to unsigned for
2816 printing.
2817 (copy_type_recursive): Use type::set_instance_flags.
2818 (gdbtypes_post_init): Use type::set_instance_flags.
2819 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2820 <m_instance_flags>: ... this.
2821 <instance_flags, set_instance_flags>: New methods.
2822 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2823 (SET_TYPE_INSTANCE_FLAGS): New.
2824 (address_space_name_to_int, address_space_int_to_name)
2825 (make_type_with_address_space): Pass flags using
2826 type_instance_flags instead of int.
2827 * stabsread.c (cleanup_undefined_types_noname): Use
2828 type::set_instance_flags.
2829 * s390-tdep.c (s390_address_class_type_flags): Return
2830 type_instance_flags.
2831 (s390_address_class_type_flags_to_name): Take a
2832 type_instance_flags.
2833 (s390_address_class_name_to_type_flags): Return bool and take a
2834 type_instance_flags.
2835 * type-stack.c (type_stack::follow_types): Use
2836 type_instance_flags.
2837 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2838
27087b7f
TT
28392020-09-14 Tom Tromey <tromey@adacore.com>
2840
2841 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2842 * x86-tdep.c (x86_is_thunk_register_name)
2843 (x86_in_indirect_branch_thunk): Update.
2844 * sparc64-tdep.c (sparc64_fpu_register_names)
2845 (sparc64_cp0_register_names, sparc64_register_names)
2846 (sparc64_pseudo_register_names): Now const.
2847 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2848 cp0_registers_num>: Now const.
2849 * sparc-tdep.c (sparc_core_register_names)
2850 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2851 (sparc32_pseudo_register_names): Now const.
2852 (validate_tdesc_registers): Update.
2853 * rust-lang.c (rust_extensions): Now const.
2854 * p-lang.c (p_extensions): Now const.
2855 * objc-lang.c (objc_extensions): Now const.
2856 * nto-tdep.c (nto_thread_state_str): Now const.
2857 * moxie-tdep.c (moxie_register_names): Now const.
2858 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2859 Now const.
2860 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2861 (mips_linux_reg_names): Now const.
2862 (mips_gdbarch_init): Update.
2863 * microblaze-tdep.c (microblaze_register_names): Now const.
2864 * m68k-tdep.c (m68k_register_names): Now const.
2865 * m32r-tdep.c (m32r_register_names): Now const.
2866 * ia64-tdep.c (ia64_register_names): Now const.
2867 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2868 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2869 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2870 ymm_avx512_register_names, pkeys_register_names>: Now const.
2871 * i386-tdep.c (i386_register_names, i386_zmm_names)
2872 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2873 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2874 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2875 * f-lang.c (f_extensions): Now const.
2876 * d-lang.c (d_extensions): Now const.
2877 * csky-tdep.c (csky_register_names): Now const.
2878 * charset.c (default_charset_names, charset_enum): Now const.
2879 (_initialize_charset): Update.
2880 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2881 const.
2882 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2883 (bsd_uthread_solib_loaded): Update.
2884 (bsd_uthread_state): Now const.
2885 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2886 (amd64_ymm_avx512_names, amd64_ymmh_names)
2887 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2888 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2889 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2890 (amd64_dword_names): Now const.
2891 * agent.c (can_use_agent_enum): Now const.
2892 * ada-tasks.c (task_states, long_task_states): Now const.
2893 * ada-lang.c (known_runtime_file_name_patterns)
2894 (known_auxiliary_function_name_patterns, attribute_names)
2895 (standard_exc, ada_extensions): Now const.
2896
89806626
SM
28972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2898
2899 * bcache.h (struct bcache) <bcache>: Remove constructor.
2900 <m_hash_function, m_compare_function>: Remove.
2901 <~bcache>: Make virtual.
2902 <compare>: Remove static method, introduce virtual method.
2903 <default_hash>: Remove.
2904 <hash>: New virtual method.
2905 * bcache.c (bcache::expand_hash_table): Update.
2906 (bcache::insert): Update.
2907 (bcache::hash): New.
2908 (bcache::compare): Update comment and parameter names.
2909 * gdbtypes.c (types_deeply_equal): Update.
2910 * psymtab.h (struct psymbol_bcache): New struct.
2911 (class psymtab_storage) <psymtab_storage>: Make default.
2912 <psymbol_cache>: Change type to psymbol_bcache.
2913 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2914 (psymbol_hash): Change to...
2915 (psymbol_bcache::hash): ... this.
2916 (psymbol_compare): Change to...
2917 (psymbol_bcache::compare): ... this.
2918
677c92fe
SM
29192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2922 checking for initial lwp.
2923
3eba3a01
TT
29242020-09-14 Tom Tromey <tromey@adacore.com>
2925
2926 * m68k-tdep.c (m68k_extract_return_value): Use
2927 pointer_result_regnum.
2928 (m68k_store_return_value): Likewise.
2929 (m68k_reg_struct_return_p): Handle vectors and arrays.
2930 (m68k_return_value): Handle arrays.
2931 (m68k_svr4_return_value): Fix single-element aggregate handling.
2932 Handle long double. Adjust for embedded ABI.
2933 (m68k_svr4_init_abi): Set pointer_result_regnum.
2934 (m68k_embedded_init_abi): New function.
2935 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2936 (m68k_osabi_sniffer): New function.
2937 (_initialize_m68k_tdep): Register osabi sniffer.
2938 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2939 member.
2940
33f4dd48
SM
29412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2942
2943 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2944 with gdb::unique_xmalloc_ptr<char>.
2945
8400a90d
SM
29462020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * xml-support.h (xml_fetch_another): Change type to be a
2949 function_view.
2950 (xml_process_xincludes): Remove baton parameter.
2951 (xml_fetch_content_from_file): Change baton parameter to
2952 dirname.
2953 * xml-support.c (struct xinclude_parsing_data)
2954 <xinclude_parsing_data>: Remove baton parameter.
2955 <fetcher_baton>: Remove.
2956 (xinclude_start_include): Adjust.
2957 (xml_process_xincludes): Adjust.
2958 (xml_fetch_content_from_file): Replace baton parameter with
2959 dirname.
2960 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2961 (xml_init_syscalls_info): Use a lambda.
2962 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2963 (file_read_description_xml): Use a lambda.
2964 (fetch_available_features_from_target): Change baton parameter
2965 to target_ops.
2966 (target_read_description_xml): Use a lambda.
2967 (target_fetch_description_xml): Use a lambda.
2968 (string_read_description_xml): Update.
2969
04f5bab2
SM
29702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2973 uses with type::endianity_is_not_default.
2974
db558e34
SM
29752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * gdbtypes.h (struct type) <endianity_is_not_default,
2978 set_endianity_is_not_default>: New methods.
2979 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2980 type::endianity_is_not_default, change all write call sites to
2981 use type::set_endianity_is_not_default.
2982
22c4c60c
SM
29832020-09-14 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2986 uses with type::is_fixed_instance.
2987
9cdd0d12
SM
29882020-09-14 Simon Marchi <simon.marchi@efficios.com>
2989
2990 * gdbtypes.h (struct type) <is_fixed_instance,
2991 set_is_fixed_instance>: New methods.
2992 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2993 write call sites to use type::set_is_fixed_instance.
2994
0becda7a
SM
29952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2996
2997 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2998 uses with type::is_gnu_ifunc.
2999
03cc7249
SM
30002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3003 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3004 use type::set_is_gnu_ifunc.
3005
3f46044c
SM
30062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3009 uses with type::stub_is_supported.
3010
9baccff6
SM
30112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3014 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3015 use type::set_stub_is_supported.
3016
bd63c870
SM
30172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3020 uses with type::is_vector.
3021
2062087b
SM
30222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3025 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3026 use type::set_is_vector.
3027
a409645d
SM
30282020-09-14 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3031 uses with type::has_varargs.
3032
1d6286ed
SM
30332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3036 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3037 use type::set_has_varargs.
3038
7f9f399b
SM
30392020-09-14 Simon Marchi <simon.marchi@efficios.com>
3040
3041 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3042 uses with type::is_prototyped.
3043
27e69b7a
SM
30442020-09-14 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3047 New methods.
3048 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3049 call sites to use type::set_is_prototyped.
3050
d2183968
SM
30512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3054 uses with type::target_is_stub.
3055
8f53807e
SM
30562020-09-14 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3059 New methods.
3060 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3061 sites to use type::set_target_is_stub.
3062
e46d3488
SM
30632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * gdbtypes.h (TYPE_STUB): Remove, replace all
3066 uses with type::is_stub.
3067
b4b73759
SM
30682020-09-14 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3071 (TYPE_STUB): Use type::is_stub, change all write call sites to
3072 use type::set_is_stub.
3073
20ce4123
SM
30742020-09-14 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3077 type::has_no_signedness.
3078
15152a54
SM
30792020-09-14 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (struct type) <has_no_signedness,
3082 set_has_no_signedness>: New methods.
3083 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3084 call sites to use type::set_has_no_signedness.
3085
c6d940a9
SM
30862020-09-14 Simon Marchi <simon.marchi@efficios.com>
3087
3088 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3089 type::is_unsigned.
3090
653223d3
SM
30912020-09-14 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3094 methods.
3095 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3096 sites to use type::set_is_unsigned.
3097
55ea94da 30982020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3099 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3100
e851246a
SM
3101 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3102 pointer and stack frame offset when unwinding.
55ea94da 3103
6791b117
PA
31042020-09-13 Pedro Alves <pedro@palves.net>
3105
3106 * NEWS: Document "-break-insert --qualified".
3107 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3108
77f2120b
PA
31092020-09-13 Pedro Alves <pedro@palves.net>
3110
3111 * linespec.c (classify_mtype, compare_msyms): Delete.
3112 (search_minsyms_for_name): Remove classification logic. Instead
3113 filter out trampoline symbols if we also found an external
3114 function of the same name.
3115
ed6a896c
JB
31162020-09-13 Joel Brobecker <brobecker@adacore.com>
3117
3118 * NEWS: Create a new section for the next release branch.
3119 Rename the section of the current branch, now that it has
3120 been cut.
3121
32aea73e
JB
31222020-09-13 Joel Brobecker <brobecker@adacore.com>
3123
3124 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3125 * version.in: Bump version to 11.0.50.DATE-git.
3126
8087c3fa
JB
31272020-09-12 Joel Brobecker <brobecker@adacore.com>
3128
3129 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3130
2a67f09d
FW
31312020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3132 Felix Willgerodt <Felix.Willgerodt@intel.com>
3133
3134 * gdbarch.sh: Added bfloat16 type.
3135 * gdbarch.c: Regenerated.
3136 * gdbarch.h: Regenerated.
3137 * gdbtypes.c (floatformats_bfloat16): New struct.
3138 (gdbtypes_post_init): Add builtin_bfloat16.
3139 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3140 (floatformats_bfloat16): New struct.
3141 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3142 (i386_ymm_type): Add field "v16_bfloat16"
3143 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3144 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3145 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3146 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3147 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3148 * features/i386/64bit-avx512.c: Regenerated.
3149 * features/i386/64bit-sse.xml: Add bfloat16 type.
3150 * features/i386/64bit-sse.c: Regenerated.
3151
1347d111
FW
31522020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3153
3154 * i386-tdep.c (i386_zmm_type): Fix field names.
3155 (i386_ymm_type): Fix field names.
3156
7a4e8e7d
TBA
31572020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158
3159 * breakpoint.c: Fix typo in the help message of the
3160 "set breakpoint condition-evaluation" command.
3161
cf4ac4be
KR
31622020-09-10 Kamil Rytarowski <n54@gmx.com>
3163
3164 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3165 * (nbsd_nat_target::pid_to_exec_file)
3166 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3167 (nbsd_nat_target::post_startup_inferior)
3168 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3169 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3170 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3171 * (nbsd_thread_lister): Remove.
3172
f404573e
KR
31732020-09-10 Kamil Rytarowski <n54@gmx.com>
3174
3175 * fork-inferior.c (startup_inferior): Avoid double free.
3176
1ccb2c17
KR
31772020-09-10 Kamil Rytarowski <n54@gmx.com>
3178
3179 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3180 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3181
feedfcc7
KR
31822020-09-10 Kamil Rytarowski <n54@gmx.com>
3183
3184 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3185 * netbsd-nat.c: Include <sys/ptrace.h>.
3186 * (netbsd_nat::enable_proc_events): Add.
3187
c489f8c6
KR
31882020-09-10 Kamil Rytarowski <n54@gmx.com>
3189
3190 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3191 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3192 (netbsd_nat::for_each_thread): Add.
3193 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3194 "gdbsupport/common-debug.h".
3195 * (netbsd_nat::netbsd_thread_lister)
3196 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3197 (netbsd_nat::for_each_thread): Add.
3198
330662f6
KR
31992020-09-10 Kamil Rytarowski <n54@gmx.com>
3200
3201 * netbsd-nat.h: Include <unistd.h>.
3202 * (netbsd_nat::pid_to_exec_file): Add.
3203 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3204 * (netbsd_nat::pid_to_exec_file) Add.
3205
70b67307
KR
32062020-09-10 Kamil Rytarowski <n54@gmx.com>
3207
3208 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3209
99cf6da6
KR
32102020-09-10 Kamil Rytarowski <n54@gmx.com>
3211
3212 * netbsd-nat.h: New file.
3213 * netbsd-nat.c: Likewise.
3214
1b788fb6
TT
32152020-09-09 Tom Tromey <tromey@adacore.com>
3216
3217 * ada-lang.c (remove_extra_symbols): Do not increment when
3218 removing an element
3219
03b0a45f
TT
32202020-09-08 Tom Tromey <tromey@adacore.com>
3221
3222 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3223
3cae4447
TT
32242020-09-08 Tom Tromey <tromey@adacore.com>
3225
3226 PR win32/25302:
3227 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3228 (gdb_bfd_init_data): New function.
3229 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3230
7f08fd51
TBA
32312020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3232
3233 * infrun.c (fetch_inferior_event): Use
3234 `switch_to_target_no_thread` to switch the target.
3235
3e6ff933
TT
32362020-09-06 Tom Tromey <tom@tromey.com>
3237
3238 * symfile.h (dwarf2_free_objfile): Don't declare.
3239
e56798df
AKS
32402020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3241
3242 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3243 to match 16 byte real/complex type generated by Flang compiler.
3244
8f5c6526
TV
32452020-09-03 Tom de Vries <tdevries@suse.de>
3246
3247 PR breakpoint/26546
3248 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3249 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3250
c5065df0
SM
32512020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * maint.c (index_digits): New function.
3254 (struct maint_print_section_data): Remove.
3255 (print_bfd_section_info): Remove print_data parameter, add arg
3256 and index_digits.
3257 (print_objfile_section_info): Likewise.
3258 (print_bfd_section_info_maybe_relocated): Likewise (plus
3259 objfile).
3260 (maintenance_info_sections): Adjust calls.
3261
02c6f3f1
TT
32622020-09-02 Tom Tromey <tromey@adacore.com>
3263
3264 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3265 for null pointers.
3266 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3267
ef5e5b0b
SM
32682020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * bcache.h (struct bcache) <insert>: Change type of `added` to
3271 pointer to bool.
3272 * bcache.c (bcache::insert): Likewise.
3273 * gdbtypes.c (check_types_worklist): Adjust.
3274 * psymtab.c (add_psymbol_to_bcache): Adjust.
3275
973695d6
KB
32762020-08-31 Kevin Buettner <kevinb@redhat.com>
3277
3278 * corelow.c (unordered_set): Include.
3279 (class core_target): Add field 'm_core_unavailable_mappings'.
3280 (core_target::build_file_mappings): Print only one warning
3281 per inaccessible file. Add unavailable/broken mappings
3282 to m_core_unavailable_mappings.
3283 (core_target::xfer_partial): Call...
3284 (core_target::xfer_memory_via_mappings): New method.
3285
264fc0e2
SM
32862020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3289 type to bool.
3290
2de01bdb
SM
32912020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * dwarf2/read.c (struct field_info): Fix indentation.
3294
f3bd50f1
SM
32952020-08-31 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3298 ordering in comment.
3299 * frame.c (frame_id_eq): Fix indentation.
3300
22b9b4b0
SL
33012020-08-31 Scott Linder <scott@scottlinder.com>
3302 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3305 inline frame ids in outer frame.
3306
84154d16
SM
33072020-08-31 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3310 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3311 (outer_frame_id): Use FID_STACK_OUTER instead of
3312 FID_STACK_INVALID.
3313 (frame_id_p): Don't check for outer_frame_id.
3314
8efaf6b3
SM
33152020-08-31 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3318 regnum/frame in value. Call allocate_value_lazy.
3319 * frame.c (frame_unwind_register_value): Use
3320 val_print_not_saved.
3321
fe1fe7ea
SM
33222020-08-31 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3325
f7c7700d
PA
33262020-08-29 Pedro Alves <pedro@palves.net>
3327
3328 * progspace.c (print_program_space): Use all_inferiors. Switch to
3329 the inferior before calling target_pid_to_str.
3330
e0814aae
TT
33312020-08-28 Tom Tromey <tom@tromey.com>
3332
3333 * xcoffread.c (xcoff_end_psymtab): Update comment.
3334 * dbxread.c (dbx_end_psymtab): Update comment.
3335
626d2320
TV
33362020-08-28 Tom de Vries <tdevries@suse.de>
3337
3338 PR breakpoint/26544
3339 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3340 event_location.
3341 (create_breakpoint): Same.
3342 (base_breakpoint_decode_location): Same.
3343 (bkpt_create_sals_from_location): Same.
3344 (bkpt_decode_location): Same.
3345 (bkpt_probe_create_sals_from_location): Same.
3346 (bkpt_probe_decode_location): Same.
3347 (tracepoint_create_sals_from_location): Same.
3348 (tracepoint_decode_location): Same.
3349 (tracepoint_probe_decode_location): Same.
3350 (strace_marker_create_sals_from_location): Same.
3351 (strace_marker_decode_location): Same.
3352 (create_sals_from_location_default): Same.
3353 (decode_location_default): Same.
3354 * breakpoint.h (struct breakpoint_ops): Same.
3355 (create_breakpoint): Same.
3356 * linespec.h (decode_line_full): Same.
3357 * linespec.c (decode_line_full): Same. Throw error if
3358 result.size () == 0.
3359
df631783
PA
33602020-08-27 Pedro Alves <pedro@palves.net>
3361
3362 PR gdb/26524
3363 * breakpoint.c (until_break_fsm) <location_breakpoint,
3364 caller_breakpoint>: Delete fields.
3365 <breakpoints>: New field.
3366 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3367 two individual breakpoints.
3368 (until_break_fsm::should_stop): Loop over breakpoints in the
3369 breakpoint vector.
3370 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3371 vector.
3372 (until_break_command): Handle location expanding into multiple
3373 sals.
3374
b2b38aa4
PA
33752020-08-27 Pedro Alves <pedro@palves.net>
3376
3377 PR gdb/26523
3378 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3379 bp_until breakpoints user-specified locations. Update intro
3380 comment.
3381
b886559f
SM
33822020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3385 gdb_bfd_sections): New.
3386 * maint.c (print_bfd_section_info): Change param type to
3387 maint_print_section_data.
3388 (print_objfile_section_info): Likewise.
3389 (print_bfd_section_info_maybe_relocated): Likewise.
3390 (maintenance_info_sections): Use gdb_bfd_sections.
3391
4c6e63bf
SV
33922020-08-25 Shahab Vahedi <shahab@synopsys.com>
3393
3394 * MAINTAINERS: Add ARC target and maintainer.
3395
8d7f0635
AK
33962020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3397
3398 * configure.tgt: ARC support for GNU/Linux.
3399 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3400 * arc-linux-tdep.c: New file.
3401 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3402 * arc-tdep.c (arc_write_pc): Use it.
3403
fdd8731b
SV
34042020-08-25 Shahab Vahedi <shahab@synopsys.com>
3405
3406 * arc-tdep.c (arc_check_for_hardware_loop): New.
3407 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3408
22459524
SV
34092020-08-25 Shahab Vahedi <shahab@synopsys.com>
3410
3411 * arc-tdep.h: Include "gdbarch.h".
3412
995d3a19
SV
34132020-08-25 Shahab Vahedi <shahab@synopsys.com>
3414
3415 * arch/arc.h
3416 (arc_gdbarch_features): New class to stir the selection of target XML.
3417 (arc_create_target_description): Use FEATURES to choose XML target.
3418 (arc_lookup_target_description): Use arc_create_target_description
3419 to create _new_ target descriptions or return the already created
3420 ones if the FEATURES is the same.
3421 * arch/arc.c: Implementation of prototypes described above.
3422 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3423 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3424 * arc-tdep.c (*_feature_name): Make feature names consistent.
3425 (arc_register_feature): A new struct to hold information about
3426 registers of a particular target/feature.
3427 (arc_check_tdesc_feature): Check if XML provides registers in
3428 compliance with ARC_REGISTER_FEATURE structs.
3429 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3430 (determine_*_reg_feature_set): Which feature name to look for.
3431 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3432 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3433 to expected ISA enums to be used in arc_gdbarch_features structs.
3434 * features/Makefile (FEATURE_XMLFILES): Add new files.
3435 * gdb/features/arc/v1-aux.c: New file.
3436 * gdb/features/arc/v1-aux.xml: Likewise.
3437 * gdb/features/arc/v1-core.c: Likewise.
3438 * gdb/features/arc/v1-core.xml: Likewise.
3439 * gdb/features/arc/v2-aux.c: Likewise.
3440 * gdb/features/arc/v2-aux.xml: Likewise.
3441 * gdb/features/arc/v2-core.c: Likewise.
3442 * gdb/features/arc/v2-core.xml: Likewise.
3443 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3444
3945d2d7
GM
34452020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3446 Andrew Burgess <andrew.burgess@embecosm.com>
3447
3448 PR m2/26372
fc5d6901 3449 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3450 an assert. Remove single element array indexing pattern as the
3451 MULTI_SUBSCRIPT support will handle this case too.
3452
2677f2d3
SM
34532020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * value.h (valprint_check_validity): Move declaration from
3456 here...
3457 * valprint.h (valprint_check_validity): ... to here.
3458
c426fddb
SM
34592020-08-24 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * debug.h: New file.
3462 * debug.c (debug_prefixed_vprintf): New function.
3463 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3464 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3465
1eb8556f
SM
34662020-08-24 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * infrun.h (infrun_debug_printf_1): New function declaration.
3469 (infrun_debug_printf): New macro.
3470 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3471 throughout.
3472 (infrun_debug_printf): New function.
3473 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3474 (handle_jit_event): Likewise.
3475
b8fff44e
MW
34762020-08-21 Mark Wielaard <mark@klomp.org>
3477
3478 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3479
d19c3068
SM
34802020-08-22 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * frame.c (enum class frame_id_status): New.
3483 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3484 (fprintf_frame): Update.
3485 (compute_frame_id): Set frame id status to "computing" on entry.
3486 Set it back to "not_computed" on failure and to "computed" on
3487 success.
3488 (get_frame_id): Assert the frame id is not being computed.
3489 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3490 (create_new_frame): Likewise.
3491 (frame_cleanup_after_sniffer): Update assert.
3492
b70e516e
SM
34932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * regcache.c (pid_ptid_regcache_map): New type.
3496 (target_ptid_regcache_map): Remove.
3497 (target_pid_ptid_regcache_map): New type.
3498 (regcaches): Change type to target_pid_ptid_regcache_map.
3499 (get_thread_arch_aspace_regcache): Update.
3500 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3501 case.
3502 (regcaches_size): Update.
3503 (regcache_count): Update.
3504 (registers_changed_ptid_target_pid_test): New.
3505 (_initialize_regcache): Register new test.
3506
cdd9148a
SM
35072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * regcache.c (regcache_count): New.
3510 (struct regcache_test_data): New.
3511 (regcache_test_data_up): New.
3512 (populate_regcaches_for_test): New.
3513 (regcaches_test): Remove.
3514 (get_thread_arch_aspace_regcache_test): New.
3515 (registers_changed_ptid_all_test): New.
3516 (registers_changed_ptid_target_test): New.
3517 (registers_changed_ptid_target_ptid_test): New.
3518 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3519 (_initialize_regcache): Register new tests.
3520
dd125343
SM
35212020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3522
3523 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3524 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3525 gdbarch and aspace parameter. Use current inferior's aspace.
3526 Validate regcache's arch value.
3527 (regcaches_test): Update.
3528
3ee93972
SM
35292020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3530
3531 * regcache.c (regcaches_test): Call registers_changed.
3532
33bf4c5c
TBA
35332020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3534
3535 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3536
c2fd7fae
AKS
35372020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3538
3539 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3540 to find the end of prologue for flang compiled binaries.
3541 * arm-tdep.c (arm_skip_prologue): Likewise.
3542 * i386-tdep.c (i386_skip_prologue): Likewise.
3543 * producer.c (producer_is_llvm): New function.
3544 (producer_parsing_tests): Added new tests for clang/flang.
3545 * producer.h (producer_is_llvm): New declaration.
3546
9327494e
SM
35472020-08-18 Simon Marchi <simon.marchi@efficios.com>
3548
3549 * linux-nat.c (linux_nat_debug_printf): New function.
3550 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3551
d138725a
AM
35522020-08-18 Aaron Merey <amerey@redhat.com>
3553
3554 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3555 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3556 (CLIBS): Add DEBUGINFOD_LIBS.
3557
f9b11e6b
ST
35582020-08-17 Sergei Trofimovich <siarheit@google.com>
3559
3560 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3561 'gdbarch_num_regs'.
3562
3ae7ab99
TT
35632020-08-17 Tom Tromey <tromey@adacore.com>
3564
3565 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3566 ada_get_decoded_value returns NULL.
3567
b017825f
TT
35682020-08-17 Tom Tromey <tromey@adacore.com>
3569
3570 * python/py-inferior.c (infpy_search_memory): Use
3571 gdb_py_object_from_ulongest.
3572 * python/py-infevents.c (create_inferior_call_event_object)
3573 (create_memory_changed_event_object): Use
3574 gdb_py_object_from_ulongest.
3575 * python/py-linetable.c (ltpy_entry_get_pc): Use
3576 gdb_py_object_from_ulongest.
3577
7635cf79
SM
35782020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * loc.c (class symbol_needs_eval_context): Fix indentation.
3581
f54be24b
SM
35822020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3583
3584 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3585 bool.
3586
53d5a2a5
TV
35872020-08-17 Tom de Vries <tdevries@suse.de>
3588
3589 PR gdb/26393
3590 * gdbtypes.c (dump_dynamic_prop): New function.
3591 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3592
547ce8f0
TV
35932020-08-15 Tom de Vries <tdevries@suse.de>
3594
3595 PR backtrace/26390
3596 * stack.c (print_frame_args): Temporarily set the selected
3597 frame to FRAME while printing the frame's arguments.
3598
6ea815e7
PFC
35992020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3600
3601 PR breakpoints/26385
3602 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3603 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3604
6e562fa3
PFC
36052020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3606
3607 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3608 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3609 and >= to check return value instead of == -1 and != -1.
3610
d369b608
SM
36112020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 * utils.h (class gdb_argv) <as_array_view>: New method.
3614 * utils.c (gdb_argv_as_array_view_test): New.
3615 (_initialize_utils): Register selftest.
3616 * maint.c (maintenance_selftest): Use the new method.
3617
b31488a3
KR
36182020-08-13 Kamil Rytarowski <n54@gmx.com>
3619
3620 * target.h (supports_dumpcore, dumpcore): New
3621 function declarations.
3622 * target.c (supports_dumpcore, dumpcore): New
3623 functions.
3624 * target-delegates.c: Rebuild.
3625 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3626 and target_dumpcore ().
3627
002a3166
AM
36282020-08-13 Aaron Merey <amerey@redhat.com>
3629
3630 * debuginfod-support.c: Replace global variables with user_data.
3631
ece5bc8a
SM
36322020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * maint.c (maintenance_selftest): Split args and pass array_view
3635 to run_tests.
3636
6d8a0a5e
LM
36372020-08-12 Luis Machado <luis.machado@linaro.org>
3638
3639 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3640 type's length.
3641 Use %s and pulongest to print the length.
3642
7cf663a9
PA
36432020-08-12 Pedro Alves <palves@redhat.com>
3644
3645 * NEWS: Move "Multi-target debugging support" item to the
3646 "Changes since GDB 9" section.
3647
27c7b875
PA
36482020-08-12 Pedro Alves <palves@redhat.com>
3649
3650 PR gdb/26336
3651 * progspace.c (program_space::remove_objfile): Invalidate the
3652 frame cache.
3653
1796a2a1
TV
36542020-08-11 Tom de Vries <tdevries@suse.de>
3655
3656 * MAINTAINERS: Mark ms1 as deleted.
3657
f8e3fe0d
LM
36582020-08-10 Luis Machado <luis.machado@linaro.org>
3659
3660 PR gdb/26310
3661
3662 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3663 act accordingly.
3664 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3665 movz/str/stur/stp skipping behavior.
3666
cc308722
LM
36672020-08-10 Luis Machado <luis.machado@linaro.org>
3668
3669 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3670 struct user_sve_header instead of struct sve_context.
3671
041d9819
SM
36722020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3673
3674 * read.h (dwarf2_fetch_die_loc_sect_off,
3675 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3676 `void *` parameter with function_view.
3677 * read.c (dwarf2_fetch_die_loc_sect_off,
3678 dwarf2_fetch_die_loc_cu_off): Likewise.
3679 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3680 (per_cu_dwarf_call): Adjust.
3681 (get_frame_address_in_block_wrapper): Remove.
3682 (indirect_synthetic_pointer): Adjust.
3683 (get_ax_pc): Remove.
3684 (dwarf2_compile_expr_to_ax): Adjust.
3685
38f8aa06
TV
36862020-08-08 Tom de Vries <tdevries@suse.de>
3687
3688 PR build/26344
3689 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3690 constructor.
3691 * regcache.c (get_thread_arch_aspace_regcache): Same.
3692
a52b3ae2
TT
36932020-08-07 Tom Tromey <tromey@adacore.com>
3694
3695 * ravenscar-thread.c
3696 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3697 New method.
3698 (ravenscar_thread_target::wait): Check
3699 runtime_initialized.
3700 (ravenscar_thread_target::prepare_to_store)
3701 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3702 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3703 (ravenscar_thread_target::stopped_by_watchpoint)
3704 (ravenscar_thread_target::stopped_data_address)
3705 (ravenscar_thread_target::core_of_thread): Use
3706 scoped_restore_current_thread and
3707 set_base_thread_from_ravenscar_task.
3708
0e29517d
TT
37092020-08-07 Tom Tromey <tromey@adacore.com>
3710
3711 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3712
592f9bd7
TT
37132020-08-07 Tom Tromey <tromey@adacore.com>
3714
3715 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3716 update_inferior_ptid before update_thread_list.
3717 (temporarily_change_regcache_ptid): New class.
3718 (ravenscar_thread_target::fetch_registers)
3719 (ravenscar_thread_target::store_registers)
3720 (ravenscar_thread_target::prepare_to_store): Use base thread when
3721 forwarding operation.
3722
39e2018a
TT
37232020-08-07 Tom Tromey <tromey@adacore.com>
3724
3725 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3726 "is_pid" case.
3727
2080266b
TT
37282020-08-07 Tom Tromey <tromey@adacore.com>
3729
3730 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3731 New methods.
3732 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3733 first.
3734 (ravenscar_thread_target::add_thread): Rename from
3735 ravenscar_add_thread.
3736 (ravenscar_thread_target::update_thread_list): Use a lambda.
3737 (ravenscar_thread_target::xfer_partial): New method.
3738
78c02f21
TT
37392020-08-07 Tom Tromey <tromey@adacore.com>
3740
3741 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3742 gdb::function_view.
3743 (iterate_over_live_ada_tasks): Change type of argument.
3744 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3745 of argument.
3746
d5d833af
TT
37472020-08-07 Tom Tromey <tromey@adacore.com>
3748
3749 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3750 Remove.
3751 (ravenscar_thread_target::extra_thread_info): Remove.
3752 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3753 defer to target beneath for non-Ravenscar threads.
3754
a8ac85bb
TT
37552020-08-07 Tom Tromey <tromey@adacore.com>
3756
3757 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3758 get_base_thread_from_ravenscar_task>: Now methods.
3759 <m_cpu_map>: New member.
3760 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3761 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3762 (ravenscar_thread_target::task_is_currently_active): Update.
3763 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3764 Now a method.
3765 (ravenscar_thread_target::add_active_thread): Put initial thread
3766 into the m_cpu_map.
3767
550ab58d
TT
37682020-08-07 Tom Tromey <tromey@adacore.com>
3769
3770 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3771 event_ptid.
3772
e9546579
TT
37732020-08-07 Tom Tromey <tromey@adacore.com>
3774
3775 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3776 runtime_initialized.
3777
3d4470e5
TT
37782020-08-07 Tom Tromey <tromey@adacore.com>
3779
3780 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3781 add_active_thread.
3782 (ravenscar_thread_target::add_active_thread): Now public.
3783 (ravenscar_inferior_created): Call add_active_thread after pushing
3784 the target.
3785
888bdb2b
SM
37862020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3787
3788 * regcache.c (ptid_regcache_map): New type.
3789 (target_ptid_regcache_map): New type.
3790 (regcaches): Change type to target_ptid_regcache_map.
3791 (get_thread_arch_aspace_regcache): Update to regcaches' new
3792 type.
3793 (regcache_thread_ptid_changed): Likewise.
3794 (registers_changed_ptid): Likewise.
3795 (regcaches_size): Likewise.
3796 (regcaches_test): Update.
3797 (regcache_thread_ptid_changed): Update.
3798 * regcache.h (regcache_up): New type.
3799 * gdbsupport/ptid.h (hash_ptid): New struct.
3800
b161a60d
SM
38012020-08-07 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * observable.h (thread_ptid_changed): Add parameter
3804 `process_stratum_target *`.
3805 * infrun.c (infrun_thread_ptid_changed): Add parameter
3806 `process_stratum_target *` and use it.
3807 (selftests): New namespace.
3808 (infrun_thread_ptid_changed): New function.
3809 (_initialize_infrun): Register selftest.
3810 * regcache.c (regcache_thread_ptid_changed): Add parameter
3811 `process_stratum_target *` and use it.
3812 (regcache_thread_ptid_changed): New function.
3813 (_initialize_regcache): Register selftest.
3814 * thread.c (thread_change_ptid): Pass target to
3815 thread_ptid_changed observable.
3816
d2854d8d
CT
38172020-08-06 Caroline Tice <cmtice@google.com>
3818
fe4c3d43
SM
3819 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3820 (struct dwp_sections): Update field comments. Add loclists and
3821 rnglists fields.
3822 (struct virtual_v2_dwo_sections): Rename struct to
3823 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3824 size & offset fields for loclists and rnglists.
3825 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3826 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3827 skipping dummy type units.
3828 (create_dwp_hash_table): Update the large comment above the function to
3829 discuss Version 5 DWP files as well, with references. Update all the
3830 version checks in the function to check for version 5 as well. Add new
3831 section at the end to create dwp hash table for version 5.
3832 (create_dwp_v2_section): Rename function to
3833 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3834 Add V5 to error message text.
3835 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3836 into calls to create_dwp_v2_or_v5_section.
3837 (create_dwo_unit_in_dwp_v5): New function.
3838 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3839 check for version2; add else clause to handle version 5.
3840 (open_and_init_dwo_file): Add code to check dwarf version & only call
3841 create_debug_types_hash_table (with sections.types) if version is not 5;
3842 else call create_debug_type_hash_table, with sections.info.
3843 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3844 version 5.
3845 (dwarf2_locate_v5_dwp_sections): New function.
3846 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3847 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3848
159ed7d9
SM
38492020-08-06 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * regcache.h (class regcache): Remove friend
3852 registers_changed_ptid.
3853 <regcache_thread_ptid_changed>: Remove.
3854 <regcaches>: Remove.
3855 * regcache.c (regcache::regcaches): Rename to...
3856 (regcaches): ... this. Make static.
3857 (get_thread_arch_aspace_regcache): Update.
3858 (regcache::regcache_thread_ptid_changed): Rename to...
3859 (regcache_thread_ptid_changed): ... this. Update.
3860 (class regcache_access): Remove.
3861 (regcaches_test): Update.
3862 (_initialize_regcache): Update.
3863 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3864 <forward_list>.
3865
174981ae
SM
38662020-08-06 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * regcache.h (class regcache) <current_regcache>: Rename to...
3869 <regcaches>: ... this. Move doc here.
3870 * regcache.c (regcache::current_regcache) Rename to...
3871 (regcache::regcaches): ... this. Move doc to header.
3872 (get_thread_arch_aspace_regcache): Update.
3873 (regcache::regcache_thread_ptid_changed): Update.
3874 (registers_changed_ptid): Update.
3875 (class regcache_access) <current_regcache_size>: Rename to...
3876 <regcaches_size>: ... this.
3877 (current_regcache_test): Rename to...
3878 (regcaches_test): ... this.
3879 (_initialize_regcache): Update.
3880
ed908db6
VC
38812020-08-06 Victor Collod <vcollod@nvidia.com>
3882
3883 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3884
b5582ab7
KB
38852020-08-05 Kevin Buettner <kevinb@redhat.com>
3886
3887 * corelow.c (core_target::build_file_mappings): Don't output
3888 null pathname in warning.
3889
ea946b86
SM
38902020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3891
3892 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3893 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3894 gdb.dwarf2/dw2-single-line-discriminators.exp,
3895 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3896
57d02173
TT
38972020-08-05 Tom Tromey <tromey@adacore.com>
3898
3899 PR rust/26197:
3900 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3901 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3902 Fix off-by-one and type size errors in ordinary case.
3903
5555c86d
TV
39042020-08-05 Tom de Vries <tdevries@suse.de>
3905
3906 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3907 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3908
97916bfe
SM
39092020-08-04 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * frame.h (frame_id_p): Return bool.
3912 (frame_id_artificial_p): Return bool.
3913 (frame_id_eq): Return bool.
3914 (has_stack_frames): Return bool.
3915 (get_selected_frame): Fix typo in comment.
3916 (get_frame_pc_if_available): Return bool.
3917 (get_frame_address_in_block_if_available): Return bool.
3918 (get_frame_func_if_available): Return bool.
3919 (read_frame_register_unsigned): Return bool.
3920 (get_frame_register_bytes): Return bool.
3921 (safe_frame_unwind_memory): Return bool.
3922 (deprecated_frame_register_read): Return bool.
3923 (frame_unwinder_is): Return bool.
3924 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3925 bool.
3926 <this_id::p>: Likewise.
3927 <prev_p>: Likewise.
3928 (frame_stash_add): Return bool.
3929 (get_frame_id): Use bool.
3930 (frame_id_build_special) Use bool.
3931 (frame_id_build_unavailable_stack): Use bool.
3932 (frame_id_build): Use bool.
3933 (frame_id_p): Return bool, use true/false instead of 1/0.
3934 (frame_id_artificial_p): Likewise.
3935 (frame_id_eq): Likewise.
3936 (frame_id_inner): Likewise.
3937 (get_frame_func_if_available): Likewise.
3938 (read_frame_register_unsigned): Likewise.
3939 (deprecated_frame_register_read): Likewise.
3940 (get_frame_register_bytes): Likewise.
3941 (has_stack_frames): Likewise.
3942 (inside_main_func): Likewise.
3943 (inside_entry_func): Likewise.
3944 (get_frame_pc_if_available): Likewise.
3945 (get_frame_address_in_block_if_available): Likewise.
3946 (frame_unwinder_is): Likewise.
3947 (safe_frame_unwind_memory): Likewise.
3948 (frame_unwind_arch): Likewise.
3949
fedfee88
SM
39502020-08-04 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3953 type to cached_copy_status.
3954 (fprintf_frame): Adjust.
3955 (get_frame_func_if_available): Adjust.
3956 (frame_cleanup_after_sniffer): Adjust.
3957
6cfa9b59
MW
39582020-08-04 Mark Wielaard <mark@klomp.org>
3959
3960 * MAINTAINERS (Write After Approval): Update email address.
3961
66d6346b
SM
39622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3963
3964 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3965 dynamic_prop::const_val.
3966
8a6d5e35
SM
39672020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3970 dynamic_prop::kind.
3971
51d6067d
SM
39722020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3975
b26e2ae7
JM
39762020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3977
3978 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3979
39791af2
JM
39802020-08-04 Weimin Pan <weimin.pan@oracle.com>
3981 Jose E. Marchesi <jose.marchesi@oracle.com>
3982
3983 * configure.tgt: Add entry for bpf-*-*.
3984 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3985 (ALLDEPFILES): Add bpf-tdep.c.
3986 * bpf-tdep.c: New file.
3987 * MAINTAINERS: Add bpf target and maintainer.
3988 * NEWS: Mention the support for the new target.
3989
521894aa
TV
39902020-08-04 Tom de Vries <tdevries@suse.de>
3991
3992 PR symtab/23270
3993 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3994 Error.
3995
5d6356e9
JB
39962020-08-03 John Baldwin <jhb@FreeBSD.org>
3997
3998 * syscalls/freebsd.xml: Regenerate.
3999
0cf82b81
JB
40002020-08-03 John Baldwin <jhb@FreeBSD.org>
4001
4002 * syscalls/update-freebsd.sh: Fix usage and year range.
4003
8f34b746
TV
40042020-08-03 Tom de Vries <tdevries@suse.de>
4005
4006 PR symtab/26333
4007 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4008 DW_LNE_lo_user/DW_LNE_hi_user range.
4009
5e500d33
SM
40102020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4011
4012 PR ada/26318
4013 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4014 kind.
4015
78319c15
TBA
40162020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017
4018 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4019
4c55e970
TBA
40202020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4021
4022 * breakpoint.c (set_breakpoint_condition): Update the condition
4023 expressions after checking that the input condition string parses
4024 successfully and does not contain junk at the end.
4025
1e620590
TBA
40262020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4027
4028 * breakpoint.c (set_breakpoint_condition): Update the
4029 condition string after parsing the new condition successfully.
4030
c8693053
RO
40312020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4032
4033 * proc-api.c (_STRUCTURED_PROC): Don't define.
4034 * proc-events.c: Likewise.
4035 * proc-flags.c: Likewise.
4036 * proc-why.c: Likewise.
4037 * procfs.c: Likewise.
4038
4039 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4040 * configure, config.in: Regenerate.
4041
5a99adb8
TV
40422020-07-30 Tom de Vries <tdevries@suse.de>
4043
4044 PR build/26320
4045 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4046 m_red/m_green/m_blue in a union.
4047
8ba83e91
TV
40482020-07-29 Tom de Vries <tdevries@suse.de>
4049
4050 PR tdep/26280
4051 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4052
f75a0693
AB
40532020-07-28 Tom Tromey <tromey@adacore.com>
4054
4055 PR symtab/26270:
4056 * symtab.h (find_pc_partial_function_sym): Declare.
4057 * cli/cli-cmds.c (disassemble_command): Use
4058 find_pc_partial_function_sym. Check asm_demangle.
4059 * blockframe.c (cache_pc_function_sym): New global.
4060 (cache_pc_function_name): Remove.
4061 (clear_pc_function_cache): Update.
4062 (find_pc_partial_function_sym): New function, from
4063 find_pc_partial_function.
4064 (find_pc_partial_function): Rewrite using
4065 find_pc_partial_function_sym.
4066
16f3242c
TT
40672020-07-28 Tom Tromey <tromey@adacore.com>
4068
4069 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4070 help. Add usage.
4071
4888741a
TT
40722020-07-28 Tom Tromey <tromey@adacore.com>
4073
4074 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4075 <DW_OP_GNU_variable_value>: Cast to address type.
4076
4d46f402
KR
40772020-07-28 Kamil Rytarowski <n54@gmx.com>
4078
4079 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4080 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4081 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4082 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4083 (nbsd_get_siginfo_type): New.
4084 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4085 (_initialize_nbsd_tdep): New.
4086
d70f978b
L
40872020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4088
4089 PR binutils/26301
4090 * configure: Regenerated.
4091
377170fa
L
40922020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4093
4094 PR binutils/26301
4095 * configure: Regenerated.
4096
43d5901d
AB
40972020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * python/py-frame.c: Remove 'user-regs.h' include.
4100 (frapy_read_register): Rewrite to make use of
4101 gdbpy_parse_register_id.
4102 * python/py-registers.c (gdbpy_parse_register_id): New function,
4103 moved here from python/py-unwind.c. Updated the return type, and
4104 also accepts register descriptor objects.
4105 * python/py-unwind.c: Remove 'user-regs.h' include.
4106 (pyuw_parse_register_id): Moved to python/py-registers.c.
4107 (unwind_infopy_add_saved_register): Update to use
4108 gdbpy_parse_register_id.
4109 (pending_framepy_read_register): Likewise.
4110 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4111
14fa8fb3
AB
41122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * python/py-registers.c: Add 'user-regs.h' include.
4115 (register_descriptor_iter_find): New function.
4116 (register_descriptor_iterator_object_methods): New static global
4117 methods array.
4118 (register_descriptor_iterator_object_type): Add pointer to methods
4119 array.
4120
ddce1758
JB
41212020-07-27 John Baldwin <jhb@FreeBSD.org>
4122
4123 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4124 for all architectures on FreeBSD 11.3 and later.
4125
a4089f52
TT
41262020-07-27 Tom Tromey <tromey@adacore.com>
4127
4128 * gcore.h (load_corefile): Don't declare.
4129
95420d30
TV
41302020-07-27 Tom de Vries <tdevries@suse.de>
4131
4132 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4133 * config.in: Regenerate.
4134 * configure: Regenerate.
4135
05a6b8c2
EZ
41362020-07-26 Eli Zaretskii <eliz@gnu.org>
4137
4138 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4139 ws2tcpip.h. When checking whether socklen_t type is defined, use
4140 ws2tcpip.h if it is available and sys/socket.h isn't.
4141 * configure: Regenerate.
4142 * config.in: Regenerate.
4143
e79eb02f
AB
41442020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 PR fortran/23051
4147 PR fortran/26139
4148 * valops.c (value_ind): Pass address to
4149 readjust_indirect_value_type.
4150 * value.c (readjust_indirect_value_type): Make parameter
4151 non-const, and add extra address parameter. Resolve original type
4152 before using it.
4153 * value.h (readjust_indirect_value_type): Update function
4154 signature and comment.
4155
876518dd
TV
41562020-07-25 Tom de Vries <tdevries@suse.de>
4157
4158 PR symtab/26243
4159 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4160 entries.
4161
f6720b1c
AM
41622020-07-24 Aaron Merey <amerey@redhat.com>
4163
4164 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4165 * configure: Rebuild.
4166
513487e1
KB
41672020-07-23 Kevin Buettner <kevinb@redhat.com>
4168
4169 PR corefiles/26294
4170 * corelow.c (_initialize_corelow): Add period to help text
4171 for "maintenance print core-file-backed-mappings".
4172
e7bc9db8
PA
41732020-07-23 Pedro Alves <pedro@palves.net>
4174
4175 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4176 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4177 meanwhile.
4178 * frame.c (frame_cache_generation, get_frame_cache_generation):
4179 New.
4180 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4181 (get_prev_frame_if_no_cycle): On exception, don't touch
4182 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4183 * frame.h (get_frame_cache_generation): Declare.
4184
90fcc466
TV
41852020-07-23 Tom de Vries <tdevries@suse.de>
4186
4187 PR tui/26282
4188 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4189 New default constructor.
4190
78344df7
AB
41912020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4192
4193 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4194 exclude non-statement entries.
4195
b089853a
KB
41962020-07-22 Kevin Buettner <kevinb@redhat.com>
4197
4198 * NEWS (New commands): Mention new command
4199 "maintenance print core-file-backed-mappings".
4200
09c2f5d4
KB
42012020-07-22 Kevin Buettner <kevinb@redhat.com>
4202
4203 * corelow.c (gdbcmd.h): Include.
4204 (core_target::info_proc_mappings): New method.
4205 (get_current_core_target): New function.
4206 (maintenance_print_core_file_backed_mappings): New function.
4207 (_initialize_corelow): Add core-file-backed-mappings to
4208 "maint print" commands.
4209
9c5ec5c2 42102020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4211
9c5ec5c2
KB
4212 * linux-tdep.c (dump_note_entry_p): New function.
4213 (linux_dump_mapping_p_ftype): New typedef.
4214 (linux_find_memory_regions_full): Add new parameter,
4215 should_dump_mapping_p.
4216 (linux_find_memory_regions): Adjust call to
4217 linux_find_memory_regions_full.
4218 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4219 call to linux_find_memory_regions_full.
4220
db082f59
KB
42212020-07-22 Kevin Buettner <kevinb@redhat.com>
4222
4223 * corelow.c (solist.h, unordered_map): Include.
4224 (class core_target): Add field m_core_file_mappings and
4225 method build_file_mappings.
4226 (core_target::core_target): Call build_file_mappings.
4227 (core_target::~core_target): Free memory associated with
4228 m_core_file_mappings.
4229 (core_target::build_file_mappings): New method.
4230 (core_target::xfer_partial): Use m_core_file_mappings
4231 for memory transfers.
4232 * linux-tdep.c (linux_read_core_file_mappings): New
4233 function.
4234 (linux_core_info_proc_mappings): Rewrite to use
4235 linux_read_core_file_mappings.
4236 (linux_init_abi): Register linux_read_core_file_mappings.
4237
7e183d27
KB
42382020-07-22 Kevin Buettner <kevinb@redhat.com>
4239
4240 * arch-utils.c (default_read_core_file_mappings): New function.
4241 * arch-utils.c (default_read_core_file_mappings): Declare.
4242 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4243 * gdbarch.h, gdbarch.c: Regenerate.
4244
2735d421
KB
42452020-07-22 Kevin Buettner <kevinb@redhat.com>
4246
4247 PR corefiles/25631
4248 * corelow.c (core_target:xfer_partial): Revise
4249 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4250 case after first checking the stratum beneath the core
4251 target.
4252 (has_all_memory): Return true.
4253 * target.c (raw_memory_xfer_partial): Revise comment
4254 regarding use of has_all_memory.
4255
e56cb451
KB
42562020-07-22 Kevin Buettner <kevinb@redhat.com>
4257
4258 * exec.h (section_table_xfer_memory): Revise declaration,
4259 replacing section name parameter with an optional callback
4260 predicate.
4261 * exec.c (section_table_xfer_memory): Likewise.
4262 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4263 of section_table_xfer_memory.
4264
32fa152e
TT
42652020-07-22 Tom Tromey <tromey@adacore.com>
4266
4267 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4268 lookup_symbol_search_name.
4269
a67a1c41
AB
42702020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4271
4272 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4273 redundant local variable.
4274 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4275 reference, not pointer, update code accordingly.
4276
a7b4ff4f
SM
42772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4278 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4279
4280 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4281 * jit.c (jit_breakpoint_re_set_internal): Use the
4282 `skip_jit_symbol_lookup` field.
4283
2340e834
SM
42842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4285 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4286
4287 * jit.c (jit_read_descriptor): Define the descriptor address once,
4288 use twice.
4289 (jit_breakpoint_deleted): Move the declaration of the loop variable
4290 `iter` into the loop header.
4291 (jit_breakpoint_re_set_internal): Move the declaration of the local
4292 variable `objf_data` to the first point of definition.
4293 (jit_event_handler): Move the declaration of local variables
4294 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4295 Rename `objf` to `jited`.
4296
c1072906
SM
42972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4300 Remove.
4301 * jit.c (get_jiter_objfile_data): Update.
4302
c8474dc3
TBA
43032020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4304 Simon Marchi <simon.marchi@polymtl.ca>
4305
4306 * jit.c (struct jit_program_space_data): Remove.
4307 (jit_program_space_key): Remove.
4308 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4309 stuff.
4310 (get_jit_program_space_data): Remove.
4311 (jit_breakpoint_deleted): Iterate on all of the program space's
4312 objfiles.
4313 (jit_inferior_init): Likewise.
4314 (jit_breakpoint_re_set_internal): Likewise. Also change return
4315 type to void.
4316 (jit_breakpoint_re_set): Pass current_program_space to
4317 jit_breakpoint_re_set_internal.
4318
77208eb7
SM
43192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4320
4321 * jit.h (struct jiter_objfile_data) <cached_code_address,
4322 jit_breakpoint>: Move to here from ...
4323 * jit.c (jit_program_space_data): ... here.
4324 (jiter_objfile_data::~jiter_objfile_data): Update.
4325 (jit_breakpoint_deleted): Update.
4326 (jit_breakpoint_re_set_internal): Update.
4327
8c1c720f
SM
43282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4329
4330 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4331 checks.
4332 (jit_read_descriptor): Remove NULL check.
4333 (jit_event_handler): Add an assertion.
4334
0e74a041
SM
43352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4336
4337 * jit.h (struct jit_objfile_data): Split into...
4338 (struct jiter_objfile_data): ... this ...
4339 (struct jited_objfile_data): ... and this.
4340 * objfiles.h (struct objfile) <jit_data>: Remove.
4341 <jiter_data, jited_data>: New fields.
4342 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4343 (jiter_objfile_data::~jiter_objfile_data): ... this.
4344 (get_jit_objfile_data): Rename to ...
4345 (get_jiter_objfile_data): ... this.
4346 (add_objfile_entry): Update.
4347 (jit_read_descriptor): Use get_jiter_objfile_data.
4348 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4349 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4350 (jit_inferior_exit_hook): Use objfile's jited_data field.
4351
238b5c9f
SM
43522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4353
4354 * jit.h: Forward-declare `struct minimal_symbol`.
4355 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4356 constructor, destructor, and an objfile* field.
4357 * jit.c (jit_objfile_data): Remove.
4358 (struct jit_objfile_data): Migrate from here to jit.h.
4359 (jit_objfile_data::~jit_objfile_data): New destructor
4360 implementation with code moved from free_objfile_data.
4361 (free_objfile_data): Delete.
4362 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4363 (jit_find_objf_with_entry_addr): Ditto.
4364 (jit_inferior_exit_hook): Ditto.
4365 (_initialize_jit): Remove the call to
4366 register_objfile_data_with_cleanup.
4367 * objfiles.h (struct objfile) <jit_data>: New field.
4368
fe053b9e
TBA
43692020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4370
4371 * jit.h: Forward-declare `struct objfile`.
4372 (jit_event_handler): Add a second parameter, the JITer objfile.
4373 * jit.c (jit_read_descriptor): Change the signature to take the
4374 JITer objfile as an argument instead of the jit_program_space_data.
4375 (jit_inferior_init): Update the call to jit_read_descriptor.
4376 (jit_event_handler): Use the new JITer objfile argument when calling
4377 jit_read_descriptor.
4378 * breakpoint.c (handle_jit_event): Update the call to
4379 jit_event_handler to pass the JITer objfile.
4380
4cec0c66
JB
43812020-07-21 John Baldwin <jhb@FreeBSD.org>
4382
4383 * gdbarch.c: Regenerate.
4384 * gdbarch.h: Regenerate.
4385 * gdbarch.sh (handle_segmentation_fault): Remove method.
4386 * infrun.c (handle_segmentation_fault): Remove.
4387 (print_signal_received_reason): Remove call to
4388 handle_segmentation_fault.
4389
0e42f66a
JB
43902020-07-21 John Baldwin <jhb@FreeBSD.org>
4391
4392 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4393 Rename to sparc64_linux_report_signal_info and add siggnal
4394 argument.
4395 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4396 instead of sparc64_linux_handle_segmentation_fault.
4397
77bdfeb2
JB
43982020-07-21 John Baldwin <jhb@FreeBSD.org>
4399
4400 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4401 i386_linux_report_signal_info instead of
4402 i386_linux_handle_segmentation_fault.
4403 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4404 to i386_linux_report_signal_info and add siggnal argument.
4405 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4406 of i386_linux_handle_segmentation_fault.
4407 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4408 to i386_linux_report_signal_info and add siggnal argument.
4409
ad97bfc5
JB
44102020-07-21 John Baldwin <jhb@FreeBSD.org>
4411
4412 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4413 hook if present.
4414
272bb05c
JB
44152020-07-21 John Baldwin <jhb@FreeBSD.org>
4416
4417 * gdbarch.c: Regenerate.
4418 * gdbarch.h: Regenerate.
4419 * gdbarch.sh (report_signal_info): New method.
4420 * infrun.c (print_signal_received_reason): Invoke gdbarch
4421 report_signal_info hook if present.
4422
baf8791e
AB
44232020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * python/py-registers.c : Add 'unordered_map' include.
4426 (gdbpy_new_reggroup): Renamed to...
4427 (gdbpy_get_reggroup): ...this. Update to only create register
4428 group descriptors when needed.
4429 (gdbpy_reggroup_iter_next): Update.
4430
f7306dac
AB
44312020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * python/py-registers.c (gdbpy_register_object_data): New static
4434 global.
4435 (gdbpy_register_object_data_init): New function.
4436 (gdbpy_new_register_descriptor): Renamed to...
4437 (gdbpy_get_register_descriptor): ...this, and update to reuse
4438 existing register descriptors where possible.
4439 (gdbpy_register_descriptor_iter_next): Update.
4440 (gdbpy_initialize_registers): Register new gdbarch data.
4441
05c309a8
SM
44422020-07-21 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * linux-nat.c (stopped_pids): Make static.
4445
d1fd641e
SM
44462020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4447
4448 PR ada/26235
4449 * gdbtypes.c (ada_discrete_type_low_bound,
4450 ada_discrete_type_high_bound): Handle undefined bounds.
4451
1de14d77
KR
44522020-07-21 Kamil Rytarowski <n54@gmx.com>
4453
4454 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4455 declaration.
4456 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4457 function.
4458
ed810cc7
JB
44592020-07-20 John Baldwin <jhb@FreeBSD.org>
4460
4461 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4462 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4463 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4464 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4465 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4466 method.
4467
ae5369e7
LC
44682020-07-20 Ludovic Courtès <ludo@gnu.org>
4469
4470 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4471 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4472 which are deprecated in Guile 3.0.
4473 * configure.ac (try_guile_versions): Add "guile-3.0".
4474 * configure (try_guile_versions): Regenerate.
4475 * NEWS: Update entry.
4476
68cf161c
LC
44772020-07-20 Ludovic Courtès <ludo@gnu.org>
4478 Doug Evans <dje@google.com>
4479
4480 PR gdb/21104
4481 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4482 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4483 USING_GUILE_BEFORE_2_2.
4484 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4485 Change type to 'scm_t_port_type *'.
4486 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4487 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4488 parameter and honor it. Update callers.
4489 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4490 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4491 functions.
4492 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4493 USING_GUILE_BEFORE_2_2.
4494 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4495 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4496 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4497 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4498 and 'SCM_PORT_TYPE'.
4499 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4500 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4501 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4502 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4503 [!USING_GUILE_BEFORE_2_2]: New functions.
4504 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4505 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4506 'gdbscm_memory_port_read'.
4507 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4508 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4509 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4510 function.
4511 (ioscm_init_memory_port): Remove.
4512 (ioscm_init_memory_port_stream): New function
4513 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4514 function.
4515 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4516 Return scm_from_uint (0).
4517 (gdbscm_set_memory_port_read_buffer_size_x)
4518 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4519 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4520 Return scm_from_uint (0).
4521 (gdbscm_set_memory_port_write_buffer_size_x)
4522 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4523 * configure.ac (try_guile_versions): Add "guile-2.2".
4524 * configure: Regenerate.
4525 * NEWS: Add entry.
4526
aee91db3
TT
45272020-07-18 Tom Tromey <tom@tromey.com>
4528
4529 * linux-nat.c (linux_multi_process): Remove.
4530 (linux_nat_target::supports_multi_process): Return true.
4531
0e267416
AB
45322020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4533
4534 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4535 (riscv_lookup_target_description): Return pointer out of
4536 unique_ptr.
4537 * target-descriptions.c (allocate_target_description): Add
4538 comment.
4539 (target_desc_deleter::operator()): Likewise.
4540 * target-descriptions.h (struct target_desc_deleter): Moved to
4541 gdbsupport/tdesc.h.
4542 (target_desc_up): Likewise.
4543
f80c8ec4
TT
45442020-07-17 Tom Tromey <tromey@adacore.com>
4545
4546 * linux-nat.c (linux_nat_target::supports_non_stop)
4547 (linux_nat_target::always_non_stop_p): Use "true".
4548 (linux_nat_target::supports_disable_randomization): Use "true" and
4549 "false".
4550
d0ce17d8
CT
45512020-07-16 Caroline Tice <cmtice@google.com>
4552
4553 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4554 (RNGLIST_HEADER_SIZE64): New constant definition.
4555 (struct dwop_section_names): Add rnglists_dwo.
4556 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4557 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4558 (struct dwo_sections): Add rnglists field.
4559 (read_attribut_reprocess): Add tag parameter.
4560 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4561 (cu_debug_rnglists_section): New function (decl & definition).
4562 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4563 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4564 die whose range is being checked; get rnglist section from
4565 cu_debug_rnglists_section, to get from either objfile or dwo file as
4566 appropriate. Add cases for DW_RLE_base_addressx,
4567 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4568 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4569 test inside if-condition and updating complaint message.
4570 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4571 dwarf2_rnglists_process.
4572 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4573 dwarf2_ranges_process.
4574 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4575 need_ranges_base and update comment appropriately. Also pass die tag
4576 to dwarf2_ranges_read.
4577 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4578 need_ranges_base and update comment appropriately. Also pass die tag
4579 to dwarf2_ranges_process.
4580 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4581 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4582 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4583 need_ranges_base and update comment appropriately. Also pass die tag
4584 to read_attribute_reprocess and dwarf2_ranges_read.
4585 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4586 and update function comment appropriately.
4587 (read_loclist_index): Call read_loclists_rnglists_header instead of
4588 read_loclist_header.
4589 (read_rnglist_index): New function.
4590 (read_attribute_reprocess): Add tag parameter. Add code for
4591 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4592 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4593
3dcc261c
AB
45942020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4597 being resolved.
4598
ccb9eba6
AB
45992020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 * arch-utils.c (show_architecture): Update formatting of messages.
4602
cf88be68
SM
46032020-07-12 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbtypes.h (struct type) <bounds>: Handle array and string
4606 types.
4607 * ada-lang.c (assign_aggregate): Use type::bounds on
4608 array/string type.
4609 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4610 * c-varobj.c (c_number_of_children): Likewise.
4611 (c_describe_child): Likewise.
4612 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4613 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4614 (f_type_print_base): Likewise.
4615 * f-valprint.c (f77_array_offset_tbl): Likewise.
4616 (f77_get_upperbound): Likewise.
4617 (f77_print_array_1): Likewise.
4618 * guile/scm-type.c (gdbscm_type_range): Likewise.
4619 * m2-typeprint.c (m2_array): Likewise.
4620 (m2_is_long_set_of_type): Likewise.
4621 * m2-valprint.c (get_long_set_bounds): Likewise.
4622 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4623 * python/py-type.c (typy_range): Likewise.
4624 * rust-lang.c (rust_internal_print_type): Likewise.
4625 * type-stack.c (type_stack::follow_types): Likewise.
4626 * valarith.c (value_subscripted_rvalue): Likewise.
4627 * valops.c (value_cast): Likewise.
4628
509971ae
SM
46292020-07-12 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4632 callers to use the equivalent accessor methods.
4633
107406b7
SM
46342020-07-12 Simon Marchi <simon.marchi@efficios.com>
4635
4636 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4637 (struct type) <bit_stride>: New method.
4638 (TYPE_BIT_STRIDE): Remove.
4639 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4640
bb789949
SM
46412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4644 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4645 callers to use the equivalent accessor methods instead.
4646
39498edb
SM
46472020-07-12 Simon Marchi <simon.marchi@efficios.com>
4648
4649 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4650 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4651 callers to use the equivalent accessor methods instead.
4652
3b606f38
SM
46532020-07-12 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4656 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4657 to use dynamic_prop::kind.
4658
064d9cb9
SM
46592020-07-12 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4662 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4663 to get the bound property's kind and check against
4664 PROP_UNDEFINED.
4665
5537ddd0
SM
46662020-07-12 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4669 all callers to use type::range_bounds followed by
4670 dynamic_prop::{low,high}.
4671
8c2e4e06
SM
46722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4675 const_val, set_const_val, baton, set_locexpr, set_loclist,
4676 set_addr_offset, variant_parts, set_variant_parts,
4677 original_type, set_original_type>: New methods.
4678 <kind>: Rename to...
4679 <m_kind>: ... this. Update all users to use the new methods
4680 instead.
4681 <data>: Rename to...
4682 <m_data>: ... this. Update all users to use the new methods
4683 instead.
4684
7c6f2712
SM
46852020-07-12 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.c (get_discrete_bounds): Return failure if
4688 the range type's bounds are not both defined and constant
4689 values.
4690 (get_array_bounds): Update comment. Remove undefined bound check.
4691
599088e3
SM
46922020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4695 the type::bounds method directly.
4696
c4dfcb36
SM
46972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4700 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4701 are used to set the range type's bounds to use set_bounds.
4702
0a278aa7
PW
47032020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4706
cce20f10
PA
47072020-07-10 Pedro Alves <pedro@palves.net>
4708
4709 * gdbthread.h (inferior_ref): Define.
4710 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4711 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4712 * thread.c
4713 (scoped_restore_current_thread::restore):
4714 Adjust to gdb::ref_ptr.
4715 (scoped_restore_current_thread::~scoped_restore_current_thread):
4716 Remove manual decref handling.
4717 (scoped_restore_current_thread::scoped_restore_current_thread):
4718 Adjust to use
4719 inferior_ref::new_reference/thread_info_ref::new_reference.
4720 Incref the thread before calling get_frame_id instead of after.
4721 Let TARGET_CLOSE_ERROR propagate.
4722
6d7aa592
PA
47232020-07-10 Pedro Alves <pedro@palves.net>
4724
4725 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4726 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4727 NOT_AVAILABLE_ERROR.
4728 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4729 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4730
b3e3a4c1
SM
47312020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4732 Pedro Alves <pedro@palves.net>
4733
4734 PR gdb/26199
4735 * infrun.c (threads_are_resumed_pending_p): Delete.
4736 (do_target_wait): Remove threads_are_executing and
4737 threads_are_resumed_pending_p checks from the inferior_matches
4738 lambda. Update comments.
4739
d6cc5d98
PA
47402020-07-10 Pedro Alves <pedro@palves.net>
4741
4742 PR gdb/26199
4743 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4744 executing threads.
4745
7d3badc6
PA
47462020-07-10 Pedro Alves <pedro@palves.net>
4747
4748 PR gdb/26199
4749 * infrun.c (handle_no_resumed): Handle multiple targets.
4750
42bd97a6
PA
47512020-07-10 Pedro Alves <pedro@palves.net>
4752
4753 PR gdb/26199
4754 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4755 target_is_async_p.
4756
43667cc6
PA
47572020-07-10 Pedro Alves <pedro@palves.net>
4758
4759 PR gdb/26199
4760 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4761 threads, not all threads.
4762
96118d11
PA
47632020-07-10 Pedro Alves <pedro@palves.net>
4764
4765 PR gdb/26199
4766 * remote.c (remote_target::open_1): Pass remote target pointer as
4767 data to create_async_event_handler.
4768 (remote_async_inferior_event_handler): Mark async event handler
4769 before returning if the remote target still has either pending
4770 events or unacknowledged notifications.
4771
54904d81
JB
47722020-07-10 John Baldwin <jhb@FreeBSD.org>
4773
4774 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4775 declaration.
4776 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4777 function.
4778
f37e5866
JB
47792020-07-09 John Baldwin <jhb@FreeBSD.org>
4780
4781 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4782 inferior_ptid.
4783
fc238d4a
JB
47842020-07-09 John Baldwin <jhb@FreeBSD.org>
4785
4786 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4787 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4788 AT_FREEBSD_PS_STRINGS.
4789
6e2469ff
HD
47902020-07-08 Hannes Domani <ssbssa@yahoo.de>
4791
4792 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4793 of debugfile path on Windows.
4794
d1076c41
JB
47952020-07-08 John Baldwin <jhb@FreeBSD.org>
4796
4797 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4798 argument to 'data'.
4799
15f3b077
TT
48002020-07-08 Tom Tromey <tromey@adacore.com>
4801
4802 * ada-lang.c (ada_exception_message_1): Use read_memory.
4803
9fc501fd
AB
48042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 PR python/22748
4807 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4808 special handling for inline frames.
4809 * findvar.c (value_of_register_lazy): Skip inline frames when
4810 creating lazy register values.
4811 * frame.c (frame_id_computed_p): Delete definition.
4812 * frame.h (frame_id_computed_p): Delete declaration.
4813
64cb3757
AB
48142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4815
4816 * NEWS: Mention additions to Python API.
4817 * python/py-arch.c (archpy_register_groups): New function.
4818 (arch_object_methods): Add 'register_groups' method.
4819 * python/py-registers.c (reggroup_iterator_object): New struct.
4820 (reggroup_object): New struct.
4821 (gdbpy_new_reggroup): New function.
4822 (gdbpy_reggroup_to_string): New function.
4823 (gdbpy_reggroup_name): New function.
4824 (gdbpy_reggroup_iter): New function.
4825 (gdbpy_reggroup_iter_next): New function.
4826 (gdbpy_new_reggroup_iterator): New function
4827 (gdbpy_initialize_registers): Register new types.
4828 (reggroup_iterator_object_type): Define new Python type.
4829 (gdbpy_reggroup_getset): New static global.
4830 (reggroup_object_type): Define new Python type.
4831 * python/python-internal.h
4832
0f767f94
AB
48332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4834
4835 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4836 * python/py-arch.c (archpy_registers): New function.
4837 (arch_object_methods): Add 'registers' method.
4838 * python/py-registers.c: New file.
4839 * python/python-internal.h
4840 (gdbpy_new_register_descriptor_iterator): Declare.
4841 (gdbpy_initialize_registers): Declare.
4842 * python/python.c (do_start_initialization): Call
4843 gdbpy_initialize_registers.
4844 * NEWS: Mention additions to the Python API.
4845
87dbc774
AB
48462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * NEWS: Mention new Python API method.
4849 * python/py-unwind.c (pending_framepy_architecture): New function.
4850 (pending_frame_object_methods): Add architecture method.
4851
3bc98c0c
AB
48522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * gdbarch.c: Regenerate.
4855 * gdbarch.h: Regenerate.
4856 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4857 (gdbarch_data): Use internal_error for the case where
4858 deprecated_set_gdbarch_data was originally needed.
4859 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4860 and use passed in obstack.
4861 (libunwind_frame_set_descr): Should no longer get back NULL from
4862 gdbarch_data.
4863 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4864 type.
4865 * user-regs.c (user_regs_init): Update parameters, and use passed
4866 in obstack.
4867 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4868 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4869
d8cc8af6
TV
48702020-07-06 Tom de Vries <tdevries@suse.de>
4871
4872 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4873 End-Of-Sequence in lte_is_less_than.
4874 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4875 "gdb: Don't reorder line table entries too much when sorting".
4876
947f7597
TV
48772020-07-06 Tom de Vries <tdevries@suse.de>
4878
4879 PR tui/26205
4880 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4881
1e7c1b22
TV
48822020-07-05 Tom de Vries <tdevries@suse.de>
4883
4884 PR build/26187
4885 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4886 std::uncaught_exceptions instead of deprecated
4887 std::uncaught_exception.
4888
a36158ec
SM
48892020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4890
4891 * macroexp.h (macro_stringify): Return
4892 gdb::unique_xmalloc_ptr<char>.
4893 * macroexp.c (macro_stringify): Likewise.
4894 * macrotab.c (fixup_definition): Update.
4895
14d960c8
SM
48962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4899 (lex_one_token): Update.
4900 * macroexp.c (struct macro_buffer) <release>: Return
4901 gdb::unique_xmalloc_ptr<char>.
4902 (macro_stringify): Update.
4903 (macro_expand): Update.
4904 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4905 * macroexp.h (macro_expand_next): Likewise.
4906
211d5b1c
SM
49072020-07-02 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * macroexp.h (macro_lookup_ftype): Remove.
4910 (macro_expand, macro_expand_once, macro_expand_next): Remove
4911 lookup function parameters, add scope parameter.
4912 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4913 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4914 * macroscope.h (standard_macro_lookup): Change parameter type
4915 to macro_scope.
4916 * macroscope.c (standard_macro_lookup): Likewise.
4917 * c-exp.y (lex_one_token): Update.
4918 * macrocmd.c (macro_expand_command): Likewise.
4919 (macro_expand_once_command): Likewise.
4920
b1a35af2
SM
49212020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * inf-loop.c (inferior_event_handler): Remove client_data param.
4924 * inf-loop.h (inferior_event_handler): Likewise.
4925 * infcmd.c (step_1): Adjust.
4926 * infrun.c (proceed): Adjust.
4927 (fetch_inferior_event): Remove client_data param.
4928 (infrun_async_inferior_event_handler): Adjust.
4929 * infrun.h (fetch_inferior_event): Remove `void *` param.
4930 * linux-nat.c (handle_target_event): Adjust.
4931 * record-btrace.c (record_btrace_handle_async_inferior_event):
4932 Adjust.
4933 * record-full.c (record_full_async_inferior_event_handler):
4934 Adjust.
4935 * remote.c (remote_async_inferior_event_handler): Adjust.
4936
1cdf9e33
TT
49372020-07-01 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4940 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4941
32c1e210
TT
49422020-07-01 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4945 tui_gen_win_info.
4946 (tui_win_info::make_window): Merge with
4947 tui_gen_win_info::make_window.
4948 (tui_win_info::make_visible): Move from tui_gen_win_info.
4949 * tui/tui-win.c (tui_win_info::max_width): Move from
4950 tui_gen_win_info.
4951 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4952 type.
4953 <window_factory>: Likewise.
4954 * tui/tui-layout.c (tui_win_info::resize): Move from
4955 tui_gen_win_info.
4956 (make_standard_window): Change return type.
4957 (get_locator_window, tui_get_window_by_name): Likewise.
4958 (tui_layout_window::apply): Remove a cast.
4959 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4960 (struct tui_win_info): Merge with tui_gen_win_info.
4961 (struct tui_gen_win_info): Remove.
4962
a30cb6da
TT
49632020-07-01 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui-stack.h (struct tui_locator_window): Derive from
4966 tui_win_info.
4967 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4968 <can_box>: New method.
4969
1eb2161f
TT
49702020-07-01 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4973
7134f2eb
TT
49742020-07-01 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-regs.c (tui_data_window::display_registers_from)
4977 (tui_data_window::display_registers_from)
4978 (tui_data_window::first_data_item_displayed)
4979 (tui_data_window::delete_data_content_windows): Update.
4980 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4981 Remove.
4982 (tui_data_window::check_register_values): Update.
4983 (tui_data_item_window::rerender): Add parameters. Update.
4984 (tui_data_item_window::refresh_window): Remove.
4985 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4986 virtual.
4987 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4988 tui_gen_win_info.
4989 <refresh_window, max_height, min_height>: Remove.
4990 <rerender>: Add parameters.
4991 <x, y, visible>: New members.
4992 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4993 <m_item_width>: New member.
4994
22b7b041
TT
49952020-07-01 Tom Tromey <tom@tromey.com>
4996
4997 * tui/tui-regs.c (tui_data_window::show_register_group)
4998 (tui_data_window::check_register_values): Update.
4999 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5000 from item_no.
5001
c9753adb
TT
50022020-07-01 Tom Tromey <tom@tromey.com>
5003
5004 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5005 useless "if".
5006
9ab26b4a
TT
50072020-07-01 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5010 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5011
e555083f
TT
50122020-07-01 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5015 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5016 (struct tui_line_or_address): Move from tui-data.h.
5017 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5018 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5019 (tui_cmd_window, tui_source_window_base, tui_source_window)
5020 (tui_disasm_window): Don't declare.
5021 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5022 to tui-winsource.h.
5023 (SINGLE_KEY): Move to tui-stack.c.
5024
7a02bab7
TT
50252020-07-01 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5028 std::string.
5029 * tui/tui-regs.c (class tab_expansion_file): New.
5030 (tab_expansion_file::write): New method.
5031 (tui_register_format): Change return type. Use
5032 tab_expansion_file.
5033 (tui_get_register, tui_data_window::display_registers_from)
5034 (tui_data_item_window::rerender): Update.
5035 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5036 * tui/tui-io.c (tui_expand_tabs): Remove.
5037
ea68593b
TT
50382020-07-01 Tom Tromey <tom@tromey.com>
5039
5040 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5041
a8caed5d
FS
50422020-07-01 Fangrui Song <maskray@google.com>
5043
5044 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5045
9cdf9820
AKS
50462020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5047
5048 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5049 forms for DW_AT_associated and DW_AT_allocated attributes,
5050 which is already checked in function attr_to_dynamic_prop.
5051
a1520ad8
TT
50522020-06-30 Tom Tromey <tromey@adacore.com>
5053
5054 * dwarf2/read.c (quirk_rust_enum): Correctly call
5055 alloc_rust_variant for default-less enum.
5056
5ac58899
TT
50572020-06-30 Tom Tromey <tromey@adacore.com>
5058
5059 PR build/26183:
5060 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5061 gdb::to_string.
5062
19b187a9
SM
50632020-06-29 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5066 * gdbarch.h: Re-generate.
5067
cd4c4c07
TT
50682020-06-28 Tom Tromey <tom@tromey.com>
5069
5070 * command.h (cmd_types): Remove.
5071 (cmd_type): Don't declare.
5072 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5073 typedef.
5074 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5075 * cli/cli-decode.c (cmd_type): Remove.
5076
05779d57
PA
50772020-06-27 Pedro Alves <palves@redhat.com>
5078
5079 * fork-child.c (prefork_hook): Adjust.
5080 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5081 Delete.
5082 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5083 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5084 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5085 Remove declarations.
5086 (struct inferior) <set_tty, tty>: New methods.
5087 (struct inferior) <terminal>: Rename to ...
5088 (struct inferior) <m_terminal>: ... this and make private.
5089 * main.c (captured_main_1): Adjust.
5090 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5091 (mi_cmd_inferior_tty_show): Adjust.
5092 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5093 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5094
1776e3e5
NA
50952020-06-26 Nick Alcock <nick.alcock@oracle.com>
5096
5097 * configure.ac: Add --enable-libctf: handle --disable-static
5098 properly.
5099 * acinclude.m4: sinclude ../config/enable.m4.
5100 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5101 (LIBCTF): Substitute in.
5102 (CTF_DEPS): New, likewise.
5103 (CLIBS): libctf needs symbols from libbfd: move earlier.
5104 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5105 flags.
5106 * ctfread.c: Surround in ENABLE_LIBCTF.
5107 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5108 * configure: Regenerate.
5109 * config.in: Likewise.
5110
58373b80
SM
51112020-06-25 Simon Marchi <simon.marchi@efficios.com>
5112
5113 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5114
277474ee
SM
51152020-06-25 Simon Marchi <simon.marchi@efficios.com>
5116
5117 * inferior.h (struct inferior) <terminal>: Change type to
5118 gdb::unique_xmalloc_ptr<char>.
5119 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5120 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5121 field, adjust to unique pointer.
5122 (get_inferior_io_terminal): Adjust to unique pointer.
5123
6d74da72
AB
51242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5125
5126 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5127 registers, not just the known core set of registers.
5128
2e52d038
AB
51292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5132 fflags, frm, and fcsr registers.
5133 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5134 restore groups.
5135 (riscv_tdesc_unknown_reg): New function.
5136 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5137 tdesc_use_registers.
5138 * riscv-tdep.h (struct gdbarch_tdep): Add
5139 unknown_csrs_first_regnum, unknown_csrs_count,
5140 duplicate_fflags_regnum, duplicate_frm_regnum, and
5141 duplicate_fcsr_regnum fields.
5142
be64fd07
AB
51432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5144
5145 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5146 callback, use the callback (when not null) to help number unknown
5147 registers.
5148 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5149 (tdesc_use_registers): Add extra parameter to declaration.
5150
3b9fce96
AB
51512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5154 in the file.
5155 (class riscv_pending_register_alias): Likewise.
5156 (riscv_register_feature::register_info): Change 'required_p' field
5157 to 'required', and change its type. Add 'check' member function.
5158 (riscv_register_feature::register_info::check): Define new member
5159 function.
5160 (riscv_xreg_feature): Change initialisation of 'required' field.
5161 (riscv_freg_feature): Likewise.
5162 (riscv_virtual_feature): Likewise.
5163 (riscv_csr_feature): Likewise.
5164 (riscv_check_tdesc_feature): Take extra parameter, the csr
5165 tdesc_feature, rewrite the function to use the new
5166 riscv_register_feature::register_info::check function.
5167 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5168
865bad26
AB
51692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * features/Makefile: Remove all references to the deleted files
5172 below.
5173 * features/riscv/32bit-csr.c: Deleted.
5174 * features/riscv/32bit-csr.xml: Deleted.
5175 * features/riscv/64bit-csr.c: Deleted.
5176 * features/riscv/64bit-csr.xml: Deleted.
5177 * features/riscv/rebuild-csr-xml.sh: Deleted.
5178
ed69cbc8
AB
51792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5182 whitespace error for declaration of names member variable.
5183 (struct riscv_register_feature): Add new prefer_first_name member
5184 variable, and fix whitespace error in declaration of registers.
5185 (riscv_xreg_feature): Initialize prefer_first_name field.
5186 (riscv_freg_feature): Likewise.
5187 (riscv_virtual_feature): Likewise.
5188 (riscv_csr_feature): Likewise.
5189 (riscv_register_name): Expand on comments. Remove register name
5190 modifications for CSR and virtual registers.
5191
4445e8f5
AB
51922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5193
5194 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5195 errors.
5196
767a879e
AB
51972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5200 riscv-opc.h.
5201 (class riscv_pending_register_alias): New class.
5202 (riscv_check_tdesc_feature): Take vector of pending aliases and
5203 populate it as appropriate.
5204 (riscv_setup_register_aliases): Delete.
5205 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5206 to riscv_check_tdesc_feature in all cases. Use the vector to
5207 create the register aliases.
5208
bb6e55f3
RO
52092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5210
5211 * sol2-tdep.c (sol2_static_transform_name): Remove.
5212 (sol2_init_abi): Don't register it.
5213 * gdbarch.sh (static_transform_name): Remove.
5214 * gdbarch.c, gdbarch.h: Regenerate.
5215
5216 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5217 gdbarch_static_transform_name.
5218 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5219 * stabsread.c (define_symbol) <'X'>: Remove.
5220 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5221 handling.
5222 <'V'>: Likewise.
5223 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5224 <'S'>: Remove call to gdbarch_static_transform_name.
5225
c6d36836
RO
52262020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5227
5228 * procfs.c (procfs_pre_trace): New function.
5229 (procfs_target::create_inferior): Pass it to fork_inferior.
5230
a7e6196b
RO
52312020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5232
5233 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5234 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5235 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5236 sol2-tdep.o, sparc-sol2-tdep.o.
5237 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5238 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5239 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5240 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5241
d412e696
RO
52422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5243
5244 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5245 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5246 Call sol2_init_abi.
5247 Remove calls to set_gdbarch_skip_solib_resolver,
5248 set_gdbarch_core_pid_to_str.
5249 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5250 (i386_sol2_static_transform_name): Remove.
5251 (i386_sol2_init_abi): Call sol2_init_abi.
5252 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5253 set_gdbarch_static_transform_name,
5254 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5255 Use sol2_sigtramp_p.
5256 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5257 (sol2_sigtramp_p): New function.
5258 (sol2_static_transform_name): New function.
5259 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5260 (sol2_init_abi): New function.
5261 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5262 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5263 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5264 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5265 (sparc_sol2_static_transform_name): Remove.
5266 (sparc32_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,
5270 set_gdbarch_core_pid_to_str.
5271 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5272 (sparc_sol2_static_transform_name): Remove
5273 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5274 call sol2_sigtramp_p.
5275 (sparc64_sol2_init_abi): Call sol2_init_abi.
5276 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5277 set_gdbarch_static_transform_name,
5278 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5279
a8654e7d
PW
52802020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5281
5282 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5283 * exec.c (validate_exec_file): If from_tty, set both
5284 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5285 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5286 and from_tty, unconditionally ask a confirmation.
5287
caa7fd04
AB
52882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * target-descriptions.c (tdesc_architecture_name): Protect against
5291 NULL pointer dereference.
5292 (maint_print_xml_tdesc_cmd): New function.
5293 (_initialize_target_descriptions): Register new 'maint print
5294 xml-tdesc' command and give it the filename completer.
5295 * NEWS: Mention new 'maint print xml-tdesc' command.
5296
fbf42f4e
AB
52972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 * target-descriptions.c (class tdesc_compatible_info): New class.
5300 (struct target_desc): Change type of compatible vector.
5301 (tdesc_compatible_p): Update for change in type of
5302 target_desc::compatible.
5303 (tdesc_compatible_info_list): New function.
5304 (tdesc_compatible_info_arch_name): New function.
5305 (tdesc_add_compatible): Update for change in type of
5306 target_desc::compatible.
5307 (print_c_tdesc::visit_pre): Likewise.
5308
20821f4e
AB
53092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5312 whitespace to underscore.
5313 (maint_print_c_tdesc_cmd): Use fake filename for target
5314 descriptions that came from the target.
5315 (_initialize_target_descriptions): Add filename command completion
5316 for 'maint print c-tdesc'.
5317
1fb5ee62
SM
53182020-06-23 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5321 lines.
5322
fc3ecb3e
SM
53232020-06-23 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5326 lines.
5327 (dwarf2_find_location_expression): Likewise.
5328 (call_site_parameter_matches): Likewise.
5329 (dwarf2_compile_expr_to_ax): Likewise.
5330 (disassemble_dwarf_expression): Likewise.
5331 (loclist_describe_location): Likewise.
5332
236ef034
PA
53332020-06-23 Pedro Alves <palves@redhat.com>
5334
5335 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5336 progspace-and-thread.h. Include scoped-mock-context.h instead.
5337 (register_to_value_test): Use scoped_mock_context.
5338 * regcache.c: Include "scoped-mock-context.h".
5339 (cooked_read_test): Don't error out if a target is already pushed.
5340 Use scoped_mock_context. Adjust.
5341 * scoped-mock-context.h: New file.
5342
39e7ecca
AB
53432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5344
5345 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5346 initializer.
5347 (ada_language::is_string_type_p): New member function.
5348 * c-lang.c (c_language_data): Delete la_is_string_type_p
5349 initializer.
5350 (cplus_language_data): Likewise.
5351 (asm_language_data): Likewise.
5352 (minimal_language_data): Likewise.
5353 * d-lang.c (d_language_data): Likewise.
5354 * f-lang.c (f_is_string_type_p): Delete function, implementation
5355 moved to f_language::is_string_type_p.
5356 (f_language_data): Delete la_is_string_type_p initializer.
5357 (f_language::is_string_type_p): New member function,
5358 implementation from f_is_string_type_p.
5359 * go-lang.c (go_is_string_type_p): Delete function, implementation
5360 moved to go_language::is_string_type_p.
5361 (go_language_data): Delete la_is_string_type_p initializer.
5362 (go_language::is_string_type_p): New member function,
5363 implementation from go_is_string_type_p.
5364 * language.c (language_defn::is_string_type_p): Define new member
5365 function.
5366 (default_is_string_type_p): Make static, add comment copied from
5367 header file.
5368 (unknown_language_data): Delete la_is_string_type_p initializer.
5369 (unknown_language::is_string_type_p): New member function.
5370 (auto_language_data): Delete la_is_string_type_p initializer.
5371 (auto_language::is_string_type_p): New member function.
5372 * language.h (language_data): Delete la_is_string_type_p field.
5373 (language_defn::is_string_type_p): Declare new function.
5374 (default_is_string_type_p): Delete desclaration, move comment to
5375 definition.
5376 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5377 moved to m2_language::is_string_type_p.
5378 (m2_language_data): Delete la_is_string_type_p initializer.
5379 (m2_language::is_string_type_p): New member function,
5380 implementation from m2_is_string_type_p.
5381 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5382 initializer.
5383 * opencl-lang.c (opencl_language_data): Likewise.
5384 * p-lang.c (pascal_is_string_type_p): Delete function,
5385 implementation moved to pascal_language::is_string_type_p.
5386 (pascal_language_data): Delete la_is_string_type_p initializer.
5387 (pascal_language::is_string_type_p): New member function,
5388 implementation from pascal_is_string_type_p.
5389 * rust-lang.c (rust_is_string_type_p): Delete function,
5390 implementation moved to rust_language::is_string_type_p.
5391 (rust_language_data): Delete la_is_string_type_p initializer.
5392 (rust_language::is_string_type_p): New member function,
5393 implementation from rust_is_string_type_p.
5394 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5395 is_string_type_p.
5396
4ffc13fb
AB
53972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5398
5399 * ada-lang.c (ada_language_data): Delete la_print_typedef
5400 initializer.
5401 (ada_language::print_typedef): New member function.
5402 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5403 (cplus_language_data): Likewise.
5404 (asm_language_data): Likewise.
5405 (minimal_language_data): Likewise.
5406 * d-lang.c (d_language_data): Likewise.
5407 * f-lang.c (f_language_data): Likewise.
5408 (f_language::print_typedef): New member function.
5409 * go-lang.c (go_language_data): Delete la_print_typedef
5410 initializer.
5411 * language.c (language_defn::print_typedef): Define member
5412 function.
5413 (unknown_language_data): Delete la_print_typedef initializer.
5414 (unknown_language::print_typedef): New member function.
5415 (auto_language_data): Delete la_print_typedef initializer.
5416 (auto_language::print_typedef): New member function.
5417 * language.h (language_data): Delete la_print_typedef field.
5418 (language_defn::print_typedef): Declare new member function.
5419 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5420 (default_print_typedef): Delete declaration.
5421 * m2-lang.c (m2_language_data): Delete la_print_typedef
5422 initializer.
5423 (m2_language::print_typedef): New member function.
5424 * objc-lang.c (objc_language_data): Delete la_print_typedef
5425 initializer.
5426 * opencl-lang.c (opencl_language_data): Likewise.
5427 * p-lang.c (pascal_language_data): Likewise.
5428 (pascal_language::print_typedef): New member function.
5429 * rust-lang.c (rust_print_typedef): Delete function,
5430 implementation moved to rust_language::print_typedef.
5431 (rust_language): Delete la_print_typedef initializer.
5432 (rust_language::print_typedef): New member function,
5433 implementation from rust_print_typedef.
5434 * typeprint.c (default_print_typedef): Delete.
5435
d711ee67
AB
54362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5439 (ada_language::printstr): New member function.
5440 * c-lang.c (c_language_data): Delete la_printstr initializer.
5441 (cplus_language_data): Likewise.
5442 (asm_language_data): Likewise.
5443 (minimal_language_data): Likewise.
5444 * d-lang.c (d_language_data): Likewise.
5445 * f-lang.c (f_printstr): Rename to f_language::printstr.
5446 (f_language_data): Delete la_printstr initializer.
5447 (f_language::printstr): New member function, implementation from
5448 f_printstr.
5449 * go-lang.c (go_language_data): Delete la_printstr initializer.
5450 * language.c (language_defn::printstr): Define new member
5451 function.
5452 (unk_lang_printstr): Delete.
5453 (unknown_language_data): Delete la_printstr initializer.
5454 (unknown_language::printstr): New member function.
5455 (auto_language_data): Delete la_printstr initializer.
5456 (auto_language::printstr): New member function.
5457 * language.h (language_data): Delete la_printstr field.
5458 (language_defn::printstr): Declare new member function.
5459 (LA_PRINT_STRING): Update call to printstr.
5460 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5461 (m2_language_data): Delete la_printstr initializer.
5462 (m2_language::printstr): New member function, implementation from
5463 m2_printstr.
5464 * objc-lang.c (objc_language_data): Delete la_printstr
5465 initializer.
5466 * opencl-lang.c (opencl_language_data): Likewise.
5467 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5468 (pascal_language_data): Delete la_printstr initializer.
5469 (pascal_language::printstr): New member function, implementation
5470 from pascal_printstr.
5471 * p-lang.h (pascal_printstr): Delete declaration.
5472 * rust-lang.c (rust_printstr): Update header comment.
5473 (rust_language_data): Delete la_printstr initializer.
5474 (rust_language::printstr): New member function.
5475
52b50f2c
AB
54762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5477
5478 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5479 (ada_language::printchar): New member function.
5480 * c-lang.c (c_language_data): Delete la_printchar initializer.
5481 (cplus_language_data): Likewise.
5482 (asm_language_data): Likewise.
5483 (minimal_language_data): Likewise.
5484 * d-lang.c (d_language_data): Likewise.
5485 * f-lang.c (f_printchar): Rename to f_language::printchar.
5486 (f_language_data): Delete la_printchar initializer.
5487 (f_language::printchar): New member function, implementation from
5488 f_printchar.
5489 * go-lang.c (go_language_data): Delete la_printchar initializer.
5490 * language.c (unk_lang_printchar): Delete.
5491 (language_defn::printchar): Define new member function.
5492 (unknown_language_data): Delete la_printchar initializer.
5493 (unknown_language::printchar): New member function.
5494 (auto_language_data): Delete la_printchar initializer.
5495 (auto_language::printchar): New member function.
5496 * language.h (language_data): Delete la_printchar field.
5497 (language_defn::printchar): Declare new member function.
5498 (LA_PRINT_CHAR): Update call to printchar.
5499 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5500 (m2_language::printchar): New member function.
5501 * objc-lang.c (objc_language_data): Delete la_printchar
5502 initializer.
5503 * opencl-lang.c (opencl_language_data): Likewise.
5504 * p-lang.c (pascal_language_data): Delete la_printchar
5505 initializer.
5506 (pascal_language::printchar): New member function.
5507 * rust-lang.c (rust_printchar): Rename to
5508 rust_language::printchar.
5509 (rust_language_data): Delete la_printchar initializer.
5510 (rust_language::printchar): New member function, implementation
5511 from rust_printchar.
5512
ec8cec5b
AB
55132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5514
5515 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5516 (ada_language_data): Delete la_emitchar initializer.
5517 (ada_language::emitchar): New member function, implementation from
5518 emit_char.
5519 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5520 (cplus_language_data): Likewise.
5521 (asm_language_data): Likewise.
5522 (minimal_language_data): Likewise.
5523 * d-lang.c (d_language_data): Likewise.
5524 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5525 (f_language_data): Delete la_emitchar initializer.
5526 (f_language::emitchar): New member function, implementation from
5527 f_emit_char.
5528 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5529 * language.c (unk_lang_emit_char): Delete.
5530 (language_defn::emitchar): New member function definition.
5531 (unknown_language_data): Delete la_emitchar initializer.
5532 (unknown_language::emitchar): New member function.
5533 (auto_language_data): Delete la_emitchar initializer.
5534 (auto_language::emitchar): New member function.
5535 * language.h (language_data): Delete la_emitchar field.
5536 (language_defn::emitchar): New member field declaration.
5537 (LA_EMIT_CHAR): Update call to emitchar.
5538 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5539 (m2_language_data): Delete la_emitchar initializer.
5540 (m2_language::emitchar): New member function, implementation from
5541 m2_emit_char.
5542 * objc-lang.c (objc_language_data): Delete la_emitchar
5543 initializer.
5544 * opencl-lang.c (opencl_language_data): Likewise.
5545 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5546 (pascal_language_data): Delete la_emitchar initializer.
5547 (pascal_language::emitchar): New member function, implementation
5548 from pascal_emit_char.
5549 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5550 (rust_language_data): Delete la_emitchar initializer.
5551 (rust_language::emitchar): New member function, implementation
5552 from rust_emitchar.
5553
1bf9c363
AB
55542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5555
5556 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5557 (ada_language_data): Delete la_post_parser initializer.
5558 (ada_language::post_parser): New member function.
5559 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5560 (cplus_language_data): Likewise.
5561 (asm_language_data): Likewise.
5562 (minimal_language_data): Likewise.
5563 * d-lang.c (d_language_data): Likewise.
5564 * f-lang.c (f_language_data): Likewise.
5565 * go-lang.c (go_language_data): Likewise.
5566 * language.c (unknown_language_data): Likewise.
5567 (auto_language_data): Likewise.
5568 * language.h (language_data): Delete la_post_parser field.
5569 (language_defn::post_parser): New member function.
5570 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5571 * objc-lang.c (objc_language_data): Likewise.
5572 * opencl-lang.c (opencl_language_data): Likewise.
5573 * p-lang.c (pascal_language_data): Likewise.
5574 * parse.c (parse_exp_in_context): Update call to post_parser.
5575 (null_post_parser): Delete definition.
5576 * parser-defs.h (null_post_parser): Delete declaration.
5577 * rust-lang.c (rust_language_data): Delete la_post_parser
5578 initializer.
5579
87afa652
AB
55802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5581
5582 * ada-lang.c (parse): Rename to ada_language::parser.
5583 (ada_language_data): Delete la_parser initializer.
5584 (ada_language::parser): New member function, implementation from
5585 parse.
5586 * c-lang.c (c_language_data): Delete la_parser initializer.
5587 (cplus_language_data): Likewise.
5588 (asm_language_data): Likewise.
5589 (minimal_language_data): Likewise.
5590 * d-lang.c (d_language_data): Likewise.
5591 (d_language::parser): New member function.
5592 * f-lang.c (f_language_data): Delete la_parser initializer.
5593 (f_language::parser): New member function.
5594 * go-lang.c (go_language_data): Delete la_parser initializer.
5595 (go_language::parser): New member function.
5596 * language.c (unk_lang_parser): Delete.
5597 (language_defn::parser): Define new member function.
5598 (unknown_language_data): Delete la_parser initializer.
5599 (unknown_language::parser): New member function.
5600 (auto_language_data): Delete la_parser initializer.
5601 (auto_language::parser): New member function.
5602 * language.h (language_data): Delete la_parser field.
5603 (language_defn::parser): Declare new member function.
5604 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5605 (m2_language::parser): New member function.
5606 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5607 * opencl-lang.c (opencl_language_data): Likewise.
5608 * p-lang.c (pascal_language_data): Likewise.
5609 (pascal_language::parser): New member function.
5610 * parse.c (parse_exp_in_context): Update call to parser.
5611 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5612 (rust_language::parser): New member function.
5613
37825800
AB
56142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * top.c (print_gdb_configuration): Print --with-python-libdir
5617 configuration value.
5618
5b860c93
PW
56192020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5620
5621 * NEWS: Mention change to the alias command.
5622
cf00cd6f
PW
56232020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624
5625 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5626 (alias_command_completer)
5627 (make_alias_options_def_group): New functions.
5628 (alias_opts, alias_option_defs): New struct and array.
5629 (alias_usage_error): Update usage.
5630 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5631 Use option framework.
5632 (_initialize_cli_cmds): Update alias command help.
5633 Update aliases command help.
5634 (show_user):
5635 Add NULL for new default_args lookup_cmd argument.
5636 (valid_command_p): Rename to validate_aliased_command.
5637 Add NULL for new default_args lookup_cmd argument. Verify that the
5638 aliased_command has no default args.
5639 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5640 (lookup_cmd_1, lookup_cmd): New argument default_args.
5641 (add_alias_cmd):
5642 Add NULL for new default_args lookup_cmd argument.
5643 (print_help_for_command): Show default args under the layout
5644 alias some_alias = some_aliased_cmd some_alias_default_arg.
5645 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5646 xfree default_args in destructor.
5647 * cli/cli-script.c (process_next_line, do_define_command):
5648 Add NULL for new default_args lookup_cmd argument.
5649 * command.h: Declare new default_args argument in lookup_cmd
5650 and lookup_cmd_1.
5651 * completer.c (complete_line_internal_1):
5652 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5653 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5654 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5655 Likewise.
5656 * infcmd.c (_initialize_infcmd): Likewise.
5657 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5658 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5659 * python/py-param.c (add_setshow_generic): Likewise.
5660 * remote.c (_initialize_remote): Likewise.
5661 * top.c (execute_command): Prepend default_args if command has some.
5662 (set_verbose):
5663 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5664 * tracepoint.c (validate_actionline, encode_actions_1):
5665 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5666
bd920864
TBA
56672020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5668
5669 * jit.c (jit_read_descriptor): Use bool as the return type.
5670 (jit_breakpoint_re_set_internal): Use bool as the return type.
5671 Invert the return value logic; return true if the jit breakpoint
5672 has been successfully initialized.
5673 (jit_inferior_init): Update the call to
5674 jit_breakpoint_re_set_internal.
5675
f8098322
PA
56762020-06-22 Pedro Alves <palves@redhat.com>
5677
5678 PR gdb/25939
5679 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5680 Use the current inferior instead. Don't return
5681 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5682 wait again.
5683 * sol-thread.c (sol_thread_target::wait): Don't reference
5684 inferior_ptid.
5685 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5686 (sol_update_thread_list_callback): Use the current inferior's pid
5687 instead of inferior_ptid.
5688
196535a6
RO
56892020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5690
5691 * procfs.c: Cleanup many comments.
5692
5693 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5694 (AFTER_WATCHFLAG): Replace by value.
5695
5696 (MAIN_PROC_NAME_FORMAT): Inline ...
5697 (create_procinfo): ... here.
5698
5699 (procfs_debug_inferior): Remove SYS_exec handling.
5700 (syscall_is_exec): Likewise.
5701 (procfs_set_exec_trap): Likewise.
5702
5703 (syscall_is_lwp_exit): Inline in callers.
5704 (syscall_is_exit): Likewise.
5705 (syscall_is_exec): Likewise.
5706 (syscall_is_lwp_create): Likewise.
5707
5708 (invalidate_cache): Remove #if 0 code.
5709
5710 (make_signal_thread_runnable): Remove.
5711 (procfs_target::resume): Remove #if 0 code.
5712
cf6f3e86
RO
57132020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5714
5715 PR gdb/25939
5716 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5717 call ...
5718 (procfs_target::create_inferior): ... here.
5719
48e9cc84
PW
57202020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5721
5722 * exec.c (validate_exec_file): Ensure the build-id is up to
5723 date by calling reopen_exec_file (that checks file timestamp
5724 to decide to re-read the file).
5725
3922b302
PA
57262020-06-18 Pedro Alves <palves@redhat.com>
5727
5728 PR gdb/25412
5729 * gdbthread.h (delete_thread, delete_thread_silent)
5730 (find_thread_ptid): Update comments.
5731 * thread.c (current_thread_): New global.
5732 (is_current_thread): Move higher, and reimplement.
5733 (inferior_thread): Reimplement.
5734 (set_thread_exited): Use bool. Add assertions.
5735 (add_thread_silent): Simplify thread-reuse handling by always
5736 calling delete_thread.
5737 (delete_thread): Remove intro comment.
5738 (find_thread_ptid): Skip exited threads.
5739 (switch_to_thread_no_regs): Write to current_thread_.
5740 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5741 INFERIOR_PTID. Clear current_thread_.
5742
6dbdab44
PA
57432020-06-18 Pedro Alves <palves@redhat.com>
5744
5745 * aix-thread.c (pd_update): Use switch_to_thread.
5746
2da4b788
PA
57472020-06-18 Pedro Alves <palves@redhat.com>
5748
5749 * ravenscar-thread.c (ravenscar_thread_target): Update.
5750 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5751 (ravenscar_thread_target::add_active_thread): ... this. Don't
5752 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5753 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5754
50838d1b
PA
57552020-06-18 Pedro Alves <palves@redhat.com>
5756
5757 * nat/windows-nat.c (current_windows_thread): Remove.
5758 * nat/windows-nat.h (current_windows_thread): Remove.
5759 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5760 Adjust.
5761 (display_selectors): Adjust to fetch the current
5762 windows_thread_info based on inferior_ptid.
5763 (fake_create_process): No longer write to current_windows_thread.
5764 (windows_nat_target::get_windows_debug_event):
5765 Don't set inferior_ptid or current_windows_thread.
5766 (windows_nat_target::wait): Adjust to not rely on
5767 current_windows_thread.
5768 (do_initial_windows_stuff): Now a method of windows_nat_target.
5769 Switch to the last_ptid thread.
5770 (windows_nat_target::attach): Adjust.
5771 (windows_nat_target::detach): Use switch_to_no_thread instead of
5772 writing to inferior_ptid directly.
5773 (windows_nat_target::create_inferior): Adjust.
5774
31ce04e9
PA
57752020-06-18 Pedro Alves <palves@redhat.com>
5776
5777 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5778
1ee1a363
PA
57792020-06-18 Pedro Alves <palves@redhat.com>
5780
5781 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5782 after creating it, instead of writing to inferior_ptid. Don't
5783 write to inferior_ptid.
5784
6d350754
PA
57852020-06-18 Pedro Alves <palves@redhat.com>
5786
5787 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5788
5d971d48
PA
57892020-06-18 Pedro Alves <palves@redhat.com>
5790
5791 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5792 it, instead of writing to inferior_ptid.
5793
86e57d1b
PA
57942020-06-18 Pedro Alves <palves@redhat.com>
5795
5796 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5797 to inferior_ptid.
5798
f2e1c129
PA
57992020-06-18 Pedro Alves <palves@redhat.com>
5800
5801 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5802 instead of writing to inferior_ptid directly.
5803
60db1b85
PA
58042020-06-18 Pedro Alves <palves@redhat.com>
5805
5806 * corelow.c (core_target::close): Use switch_to_no_thread instead
5807 of writing to inferior_ptid directly.
5808 (add_to_thread_list, core_target_open): Use switch_to_thread
5809 instead of writing to inferior_ptid directly.
5810
fe7d6a8d
PA
58112020-06-18 Pedro Alves <palves@redhat.com>
5812
5813 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5814 inferior_ptid.
5815 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5816 inferior_ptid.
5817 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5818 inferior_ptid directly.
5819 (darwin_nat_target::init_thread_list): Switch to thread, instead
5820 of writing to inferior_ptid.
5821 (darwin_nat_target::attach): Don't write to inferior_ptid.
5822 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5823
975f8708
PA
58242020-06-18 Pedro Alves <palves@redhat.com>
5825
5826 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5827 thread.
5828 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5829 Instead use switch_to_thread.
5830 (gnu_nat_target::detach): Use switch_to_no_thread
5831 instead of writing to inferior_ptid directly. Used passed-in
5832 inferior instead of looking up the inferior by pid.
5833
1a204730
PA
58342020-06-18 Pedro Alves <palves@redhat.com>
5835
5836 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5837 inferior_ptid.
5838
ebe84f23
PA
58392020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5842 inferior_ptid.
5843 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5844 thread.
5845 (nto_procfs_target::detach): Avoid referencing
5846 inferior_ptid. Use switch_to_no_thread instead of writing to
5847 inferior_ptid directly.
5848 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5849 instead of writing to inferior_ptid directly.
5850 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5851 to thread.
5852
191f02e5
PA
58532020-06-18 Pedro Alves <palves@redhat.com>
5854
5855 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5856 after creating it, instead of writing to inferior_ptid.
5857 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5858 to inferior_ptid directly.
5859 (gdbsim_target::wait): Don't write to inferior_ptid.
5860
0ac55310
PA
58612020-06-18 Pedro Alves <palves@redhat.com>
5862
5863 * remote.c (remote_target::remote_notice_new_inferior): Use
5864 switch_to_thread instead of writing to inferior_ptid directly.
5865 (remote_target::add_current_inferior_and_thread): Use
5866 switch_to_no_thread instead of writing to inferior_ptid directly.
5867 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5868 and switch_to_thread instead of using set_current_inferior or
5869 writing to inferior_ptid directly.
5870
5233f39b
PA
58712020-06-18 Pedro Alves <palves@redhat.com>
5872
5873 * tracectf.c (ctf_target_open): Switch to added thread instead of
5874 writing to inferior_ptid directly.
5875 (ctf_target::close): Use switch_to_no_thread instead of writing to
5876 inferior_ptid directly.
5877
087e161b
PA
58782020-06-18 Pedro Alves <palves@redhat.com>
5879
5880 * tracefile-tfile.c (tfile_target_open): Don't write to
5881 inferior_ptid directly, instead switch to added thread.
5882 (tfile_target::close): Use switch_to_no_thread instead of writing
5883 to inferior_ptid directly.
5884
7fb43e53
PA
58852020-06-18 Pedro Alves <palves@redhat.com>
5886
5887 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5888 (procfs_target::detach): Use switch_to_no_thread
5889 instead of writing to inferior_ptid directly.
5890 (do_attach): Change return type to void. Switch to the added
5891 thread.
5892 (procfs_target::create_inferior): Switch to the added thread.
5893 (procfs_do_thread_registers): Don't write to inferior_ptid.
5894
18493a00
PA
58952020-06-18 Pedro Alves <palves@redhat.com>
5896
5897 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5898 of writing to inferior_ptid.
5899 (scoped_restore_exited_inferior): Delete.
5900 (handle_vfork_child_exec_or_exit): Simplify using
5901 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5902 instead of writing to inferior_ptid.
5903 (THREAD_STOPPED_BY): Delete.
5904 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5905 (thread_stopped_by_hw_breakpoint): Delete.
5906 (save_waitstatus): Use
5907 scoped_restore_current_thread+switch_to_thread, and call
5908 target_stopped_by_watchpoint instead of
5909 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5910 instead of thread_stopped_by_sw_breakpoint, and
5911 target_stopped_by_hw_breakpoint instead of
5912 thread_stopped_by_hw_breakpoint.
5913 (handle_inferior_event)
5914 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5915 inferior_ptid directly, nor
5916 set_current_inferior/set_current_program_space. Use
5917 switch_to_thread / switch_to_inferior_no_thread instead.
5918
a0776b13
PA
59192020-06-18 Pedro Alves <palves@redhat.com>
5920
5921 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5922 instead of writing to inferior_ptid.
5923
6155c136
PA
59242020-06-18 Pedro Alves <palves@redhat.com>
5925
5926 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5927 added thread.
5928 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5929 to the added thread.
5930 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5931 instead of writing to inferior_ptid.
5932
c5316fc6
PA
59332020-06-18 Pedro Alves <palves@redhat.com>
5934
5935 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5936 (register_to_value_test): Mock a program_space too. Heap-allocate
5937 the address space. Don't write to inferior_ptid. Use
5938 switch_to_thread instead.
5939
8df01799
PA
59402020-06-18 Pedro Alves <palves@redhat.com>
5941
5942 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5943 Delete.
5944 (find_signalled_thread()): New, factored out from
5945 linux_make_corefile_notes and adjusted to handle exited threads.
5946 (linux_make_corefile_notes): Adjust to use the new
5947 find_signalled_thread.
5948
41792d68
PA
59492020-06-18 Pedro Alves <palves@redhat.com>
5950
5951 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5952 of saving/restoring inferior_ptid.
5953
612f258a
TT
59542020-06-17 Tom Tromey <tom@tromey.com>
5955
5956 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5957 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5958 declare.
5959 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5960
efb763a5
SM
59612020-06-15 Simon Marchi <simon.marchi@efficios.com>
5962
5963 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5964 of partial symtabs.
5965
2951f6c0
SM
59662020-06-17 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * regformats/reg-arm.dat: Remove.
5969 * regformats/reg-bfin.dat: Remove.
5970 * regformats/reg-cris.dat: Remove.
5971 * regformats/reg-crisv32.dat: Remove.
5972 * regformats/reg-m32r.dat: Remove.
5973 * regformats/reg-tilegx.dat: Remove.
5974 * regformats/reg-tilegx32.dat: Remove.
5975
7d458ea5
SM
59762020-06-17 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * features/Makefile (WHICH): Remove arm files.
5979 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5980 * regformats/arm/arm-with-neon.dat: Remove.
5981 * regformats/arm/arm-with-vfpv2.dat: Remove.
5982 * regformats/arm/arm-with-vfpv3.dat: Remove.
5983
3af96c0d
SM
59842020-06-17 Simon Marchi <simon.marchi@efficios.com>
5985
5986 * features/Makefile (XMLTOC): Remove rx.xml.
5987
b25e22fd
PA
59882020-06-17 Pedro Alves <palves@redhat.com>
5989
5990 * gdbthread.h (thread_control_state) <trap_expected> Update
5991 comments.
5992
a78a19b1
AB
59932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5994
5995 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5996 ada_language::lookup_symbol_nonlocal.
5997 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5998 (ada_language::lookup_symbol_nonlocal): New member function,
5999 implementation from ada_lookup_symbol_nonlocal.
6000 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6001 initializer.
6002 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6003 initializer.
6004 (cplus_language::lookup_symbol_nonlocal): New member function.
6005 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6006 (minimal_language_data) Likewise.
6007 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6008 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6009 initializer.
6010 (d_language::lookup_symbol_nonlocal): New member function.
6011 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6012 initializer.
6013 (f_language::lookup_symbol_nonlocal): New member function.
6014 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6015 initializer.
6016 * language.c (unknown_language_data): Likewise.
6017 (auto_language_data): Likewise.
6018 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6019 field.
6020 (language_defn::lookup_symbol_nonlocal): New member function.
6021 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6022 initializer.
6023 * objc-lang.c (objc_language_data): Likewise.
6024 * opencl-lang.c (opencl_language_data): Likewise.
6025 * p-lang.c (pascal_language_data): Likewise.
6026 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6027 rust_language::lookup_symbol_nonlocal.
6028 (rust_language_data): Delete la_lookup_symbol_nonlocal
6029 initializer.
6030 (rust_language::lookup_symbol_nonlocal): New member function,
6031 implementation from rust_lookup_symbol_nonlocal.
6032 * symtab.c (lookup_symbol_aux): Update call to
6033 lookup_symbol_nonlocal.
6034 (basic_lookup_symbol_nonlocal): Rename to...
6035 (language_defn::lookup_symbol_nonlocal): ...this, and update
6036 header comment. Remove language_defn parameter, and replace with
6037 uses of `this'.
6038 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6039
ebe2334e
AB
60402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6043 initializer.
6044 (ada_language::value_print_inner): New member function.
6045 * c-lang.c (c_language_data): Delete la_value_print_inner
6046 initializer.
6047 (cplus_language_data): Likewise.
6048 (asm_language_data): Likewise.
6049 (minimal_language_data): Likewise.
6050 * d-lang.c (d_language_data): Likewise.
6051 (d_language::value_print_inner): New member function.
6052 * f-lang.c (f_language_data): Delete la_value_print_inner
6053 initializer.
6054 (f_language::value_print_inner): New member function.
6055 * f-lang.h (f_value_print_innner): Rename to...
6056 (f_value_print_inner): ...this (note spelling of 'inner').
6057 * f-valprint.c (f_value_print_innner): Rename to...
6058 (f_value_print_inner): ...this (note spelling of 'inner').
6059 * go-lang.c (go_language_data): Delete la_value_print_inner
6060 initializer.
6061 (go_language::value_print_inner): New member function.
6062 * language.c (language_defn::value_print_inner): Define new member
6063 function.
6064 (unk_lang_value_print_inner): Delete.
6065 (unknown_language_data): Delete la_value_print_inner initializer.
6066 (unknown_language::value_print_inner): New member function.
6067 (auto_language_data): Delete la_value_print_inner initializer.
6068 (auto_language::value_print_inner): New member function.
6069 * language.h (language_data): Delete la_value_print_inner field.
6070 (language_defn::value_print_inner): Delcare new member function.
6071 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6072 initializer.
6073 (m2_language::value_print_inner): New member function.
6074 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6075 initializer.
6076 * opencl-lang.c (opencl_language_data): Likewise.
6077 * p-lang.c (pascal_language_data): Likewise.
6078 (pascal_language::value_print_inner): New member function.
6079 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6080 initializer.
6081 (rust_language::value_print_inner): New member function.
6082 * valprint.c (do_val_print): Update call to value_print_inner.
6083
a1d1fa3e
AB
60842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * ada-lang.c (ada_language_data): Delete la_value_print
6087 initializer.
6088 (ada_language::value_print): New member function.
6089 * c-lang.c (c_language_data): Delete la_value_print initializer.
6090 (cplus_language_data): Likewise.
6091 (asm_language_data): Likewise.
6092 (minimal_language_data): Likewise.
6093 * d-lang.c (d_language_data): Likewise.
6094 * f-lang.c (f_language_data): Likewise.
6095 * go-lang.c (go_language_data): Likewise.
6096 * language.c (unk_lang_value_print): Delete.
6097 (language_defn::value_print): Define new member function.
6098 (unknown_language_data): Delete la_value_print initializer.
6099 (unknown_language::value_print): New member function.
6100 (auto_language_data): Delete la_value_print initializer.
6101 (auto_language::value_print): New member function.
6102 * language.h (language_data): Delete la_value_print field.
6103 (language_defn::value_print): Declare new member function.
6104 (LA_VALUE_PRINT): Update call to value_print.
6105 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6106 * objc-lang.c (objc_language_data): Likewise.
6107 * opencl-lang.c (opencl_language_data): Likewise.
6108 * p-lang.c (pascal_language_data): Likewise.
6109 (pascal_language::value_print): New member function.
6110 * rust-lang.c (rust_language_data): Delete la_value_print
6111 initializer.
6112
f16a9f57
AB
61132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6114
6115 * ada-lang.c (ada_watch_location_expression): Rename to
6116 ada_language::watch_location_expression.
6117 (ada_language_data): Delete la_watch_location_expression
6118 initializer.
6119 (ada_language::watch_location_expression): New member function,
6120 implementation from ada_watch_location_expression.
6121 * breakpoint.c (watch_command_1): Update call to
6122 watch_location_expression.
6123 * c-lang.c (c_watch_location_expression): Rename to
6124 language_defn::watch_location_expression.
6125 (c_language_data): Delete la_watch_location_expression
6126 initializer.
6127 (cplus_language_data): Likewise.
6128 (asm_language_data): Likewise.
6129 (minimal_language_data): Likewise.
6130 * c-lang.h (c_watch_location_expression): Delete declaration.
6131 * d-lang.c (d_language_data): Delete la_watch_location_expression
6132 initializer.
6133 * f-lang.c (f_language_data): Likewise.
6134 * go-lang.c (go_language_data): Likewise.
6135 * language.c (language_defn::watch_location_expression): Member
6136 function implementation from c_watch_location_expression.
6137 (unknown_language_data): Delete la_watch_location_expression
6138 initializer.
6139 (auto_language_data): Likewise.
6140 * language.h (language_data): Delete la_watch_location_expression
6141 field.
6142 (language_defn::watch_location_expression): Declare new member
6143 function.
6144 * m2-lang.c (m2_language_data): Delete
6145 la_watch_location_expression initializer.
6146 * objc-lang.c (objc_language_data): Likewise.
6147 * opencl-lang.c (opencl_language_data): Likewise.
6148 * p-lang.c (pascal_language_data): Likewise.
6149 * rust-lang.c (rust_watch_location_expression): Rename to
6150 rust_language::watch_location_expression.
6151 (rust_language_data): Delete la_watch_location_expression
6152 initializer.
6153 (rust_language::watch_location_expression): New member function,
6154 implementation from rust_watch_location_expression.
6155
7e56227d
AB
61562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6159 ada_language::collect_symbol_completion_matches.
6160 (ada_language_data): Delete la_collect_symbol_completion_matches
6161 initializer.
6162 (ada_language::collect_symbol_completion_matches): New member
6163 function, implementation from
6164 ada_collect_symbol_completion_matches.
6165 * c-lang.c (c_language_data): Delete
6166 la_collect_symbol_completion_matches initializer.
6167 (cplus_language_data): Likewise.
6168 (asm_language_data): Likewise.
6169 (minimal_language_data): Likewise.
6170 * d-lang.c (d_language_data): Likewise.
6171 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6172 f_language::collect_symbol_completion_matches.
6173 (f_language_data): Delete la_collect_symbol_completion_matches
6174 initializer.
6175 (f_language::collect_symbol_completion_matches) New member
6176 function, implementation from f_collect_symbol_completion_matches.
6177 * go-lang.c (go_language_data): Delete
6178 la_collect_symbol_completion_matches initializer.
6179 * language.c (unknown_language_data): Likewise.
6180 (auto_language_data): Likewise.
6181 * language.h (language_data): Delete
6182 la_collect_symbol_completion_matches field.
6183 (language_defn::collect_symbol_completion_matches): New member
6184 function.
6185 * m2-lang.c (m2_language_data): Delete
6186 la_collect_symbol_completion_matches initializer.
6187 * objc-lang.c (objc_language_data): Likewise.
6188 * opencl-lang.c (opencl_language_data): Likewise.
6189 * p-lang.c (pascal_language_data): Likewise.
6190 * rust-lang.c (rust_language_data): Likewise.
6191 * symtab.c (default_collect_symbol_completion_matches): Delete.
6192 (collect_symbol_completion_matches): Update call to
6193 collect_symbol_completion_matches.
6194 (collect_symbol_completion_matches_type): Likewise.
6195 * symtab.h (default_collect_symbol_completion_matches): Delete
6196 declaration.
6197
53fc67f8
AB
61982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6201 (ada_language_data): Delete la_word_break_characters initializer.
6202 (ada_language::word_break_characters): New member function.
6203 * c-lang.c (c_language_data): Delete la_word_break_characters
6204 initializer.
6205 (cplus_language_data): Likewise.
6206 (asm_language_data): Likewise.
6207 (minimal_language_data): Likewise.
6208 * completer.c: Update global comment.
6209 (advance_to_expression_complete_word_point): Update call to
6210 word_break_characters.
6211 (complete_files_symbols): Likewise.
6212 (complete_line_internal_1): Likewise.
6213 (default_completer_handle_brkchars): Likewise.
6214 (skip_quoted_chars): Likewise.
6215 * d-lang.c (d_language_data): Delete la_word_break_characters
6216 initializer.
6217 * f-lang.c (f_word_break_characters): Delete.
6218 (f_language_data): Delete la_word_break_characters initializer.
6219 (f_language::word_break_characters): New member function.
6220 * go-lang.c (go_language_data): Delete la_word_break_characters
6221 initializer.
6222 * language.c (unknown_language_data): Likewise.
6223 (auto_language_data): Likewise.
6224 * language.h (default_word_break_characters): Move declaration to
6225 earlier in the file.
6226 (language_data): Delete la_word_break_characters field.
6227 (language_defn::word_break_characters): New member function.
6228 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6229 initializer.
6230 * objc-lang.c (objc_language_data): Likewise.
6231 * opencl-lang.c (opencl_language_data): Likewise.
6232 * p-lang.c (pascal_language_data): Likewise.
6233 * rust-lang.c (rust_language_data): Likewise.
6234
c9debfb9
AB
62352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6236
6237 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6238 (ada_language_data): Delete la_get_symbol_name_matcher
6239 initializer.
6240 (language_defn::get_symbol_name_matcher_inner): New member
6241 function.
6242 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6243 initializer.
6244 (cplus_language_data): Likewise.
6245 (cplus_language::get_symbol_name_matcher_inner): New member
6246 function.
6247 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6248 (minimal_language_data): Likewise.
6249 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6250 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6251 initializer.
6252 * dictionary.c (iter_match_first_hashed): Update call to
6253 get_symbol_name_matcher.
6254 (iter_match_next_hashed): Likewise.
6255 (iter_match_next_linear): Likewise.
6256 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6257 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6258 initializer.
6259 (f_language::get_symbol_name_matcher_inner): New member function.
6260 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6261 initializer.
6262 * language.c (default_symbol_name_matcher): Update header comment,
6263 make static.
6264 (language_defn::get_symbol_name_matcher): New definition.
6265 (language_defn::get_symbol_name_matcher_inner): Likewise.
6266 (get_symbol_name_matcher): Delete.
6267 (unknown_language_data): Delete la_get_symbol_name_matcher
6268 initializer.
6269 (auto_language_data): Likewise.
6270 * language.h (language_data): Delete la_get_symbol_name_matcher
6271 field.
6272 (language_defn::get_symbol_name_matcher): New member function.
6273 (language_defn::get_symbol_name_matcher_inner): Likewise.
6274 (default_symbol_name_matcher): Delete declaration.
6275 * linespec.c (find_methods): Update call to
6276 get_symbol_name_matcher.
6277 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6278 initializer.
6279 * minsyms.c (lookup_minimal_symbol): Update call to
6280 get_symbol_name_matcher.
6281 (iterate_over_minimal_symbols): Likewise.
6282 * objc-lang.c (objc_language_data): Delete
6283 la_get_symbol_name_matcher initializer.
6284 * opencl-lang.c (opencl_language_data): Likewise.
6285 * p-lang.c (pascal_language_data): Likewise.
6286 * psymtab.c (psymbol_name_matches): Update call to
6287 get_symbol_name_matcher.
6288 * rust-lang.c (rust_language_data): Delete
6289 la_get_symbol_name_matcher initializer.
6290 * symtab.c (symbol_matches_search_name): Update call to
6291 get_symbol_name_matcher.
6292 (compare_symbol_name): Likewise.
6293
9a49ad8c
AB
62942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * ada-lang.c (ada_language_data): Delete la_compute_program
6297 initializer.
6298 * c-lang.c (c_language_data): Likewise.
6299 (c_language::compute_program): New member function.
6300 (cplus_language_data): Delete la_compute_program initializer.
6301 (cplus_language::compute_program): New member function.
6302 (asm_language_data): Delete la_compute_program initializer.
6303 (minimal_language_data): Likewise.
6304 * c-lang.h (c_compute_program): Update comment.
6305 (cplus_compute_program): Likewise.
6306 * compile/compile-c-support.c (c_compute_program): Likewise.
6307 (cplus_compute_program): Likewise.
6308 * compile/compile.c (compile_to_object): Update call to
6309 la_compute_program.
6310 * d-lang.c (d_language_data): Delete la_compute_program
6311 initializer.
6312 * f-lang.c (f_language_data): Likewise.
6313 * go-lang.c (go_language_data): Likewise.
6314 * language.c (unknown_language_data): Likewise.
6315 (auto_language_data): Likewise.
6316 * language.h (language_data): Delete la_compute_program field.
6317 (language_defn::compute_program): New member function.
6318 * m2-lang.c (m2_language_data): Delete la_compute_program
6319 initializer.
6320 * objc-lang.c (objc_language_data): Likewise.
6321 * opencl-lang.c (opencl_language_data): Likewise.
6322 * p-lang.c (pascal_language_data): Likewise.
6323 * rust-lang.c (rust_language_data): Likewise.
6324
eff93b4d
AB
63252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6326
6327 * ada-lang.c (ada_language_data) Delete
6328 la_class_name_from_physname initializer.
6329 * c-lang.c (c_language_data): Likewise.
6330 (cplus_language_data): Likewise.
6331 (cplus_language::class_name_from_physname): New member function.
6332 (asm_language_data): Delete la_class_name_from_physname
6333 initializer.
6334 (minimal_language_data): Likewise.
6335 * d-lang.c (d_language_data): Likewise.
6336 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6337 method on language_defn class.
6338 (guess_full_die_structure_name): Likewise.
6339 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6340 initializer.
6341 * go-lang.c (go_language_data): Likewise.
6342 * language.c (language_class_name_from_physname): Delete.
6343 (unk_lang_class_name): Delete.
6344 (unknown_language_data): Delete la_class_name_from_physname
6345 initializer.
6346 (auto_language_data): Likewise.
6347 * language.h (language_data): Delete la_class_name_from_physname
6348 field.
6349 (language_defn::class_name_from_physname): New function.
6350 (language_class_name_from_physname): Delete declaration.
6351 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6352 initializer.
6353 * objc-lang.c (objc_language_data): Likewise.
6354 * opencl-lang.c (opencl_language_data): Likewise.
6355 * p-lang.c (pascal_language_data): Likewise.
6356 * rust-lang.c (rust_language_data): Likewise.
6357
de543742
TT
63582020-06-16 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-data.h (STATUS_NAME): New macro.
6361 * tui/tui-layout.c (tui_remove_some_windows)
6362 (initialize_known_windows, tui_register_window)
6363 (tui_layout_split::remove_windows, initialize_layouts)
6364 (tui_new_layout_command): Don't use hard-coded window names.
6365
a350efd4
TT
63662020-06-16 Tom Tromey <tom@tromey.com>
6367
6368 PR tui/25348:
6369 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6370 tui_initialize_readline. Only run once. Call rl_initialize.
6371 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6372 tui_initialize_readline.
6373 * tui/tui-io.c (tui_setup_io): Call
6374 tui_ensure_readline_initialized.
6375 * tui/tui-interp.c (tui_interp::init): Update.
6376
39ec0490
TT
63772020-06-16 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6380 Also preserve the status window.
6381
d2d1ea20
TT
63822020-06-16 Tom Tromey <tom@tromey.com>
6383
6384 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6385 where m_window==nullptr.
6386
66920317
TT
63872020-06-15 Tom Tromey <tromey@adacore.com>
6388
6389 * windows-nat.c (windows_nat::handle_output_debug_string):
6390 Update.
6391 (windows_nat::handle_ms_vc_exception): Update.
6392 * target.h (target_read_string): Change API.
6393 * target.c (target_read_string): Change API.
6394 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6395 Update.
6396 * solib-frv.c (frv_current_sos): Update.
6397 * solib-dsbt.c (dsbt_current_sos): Update.
6398 * solib-darwin.c (darwin_current_sos): Update.
6399 * linux-thread-db.c (inferior_has_bug): Update.
6400 * expprint.c (print_subexp_standard): Update.
6401 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6402 (ada_exception_message_1): Update.
6403
a5d871dd
TT
64042020-06-15 Tom Tromey <tromey@adacore.com>
6405
6406 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6407
670e35fa
TT
64082020-06-15 Tom Tromey <tromey@adacore.com>
6409
6410 * valprint.c (read_string): Update comment.
6411 * target.c (MIN): Remove.
6412 (target_read_string): Rewrite.
6413
f5272a3b
TT
64142020-06-15 Tom Tromey <tromey@adacore.com>
6415
6416 * corefile.c (read_memory_string): Remove.
6417 * ada-valprint.c (ada_value_print_ptr): Update.
6418 * ada-lang.h (ada_tag_name): Change return type.
6419 * ada-lang.c (type_from_tag): Update.
6420 (ada_tag_name_from_tsd): Change return type. Use
6421 target_read_string.
6422 (ada_tag_name): Likewise.
6423 * gdbcore.h (read_memory_string): Don't declare.
6424
2c074f49
HD
64252020-06-14 Hannes Domani <ssbssa@yahoo.de>
6426
6427 * symtab.c (rbreak_command): Ignore Windows drive colon.
6428
6a17d503
SM
64292020-06-12 Simon Marchi <simon.marchi@efficios.com>
6430
6431 * NEWS: Mention removed GDBserver host support.
6432
453c733f
NC
64332020-06-12 Nelson Chu <nelson.chu@sifive.com>
6434
6435 * features/riscv/rebuild-csr-xml.sh: Updated.
6436
2b4e6a3f
TT
64372020-06-11 Tom Tromey <tom@tromey.com>
6438
6439 PR gdb/18318:
6440 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6441
4412332f
JG
64422020-06-09 Jonny Grant <jg@jguk.org>
64432020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6444
6445 * main.c (captured_main_1): Don't print new line after help.
6446 (print_gdb_help): add mailing list and IRC channel information
6447 to --help. Add new lines between items in the footer. Remove
6448 quotes around bug url.
6449
2f33032a
KS
64502020-06-11 Keith Seitz <keiths@redhat.com>
6451
6452 PR gdb/21356
6453 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6454 Resolve typedefs for type length calculations.
6455
7ab96794
TV
64562020-06-10 Tom de Vries <tdevries@suse.de>
6457
6458 PR ada/24713
6459 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6460 (write_psymbols): Enable .gdb_index for ada.
6461 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6462 ada.
6463
e5f3ece2
TV
64642020-06-10 Tom de Vries <tdevries@suse.de>
6465
6466 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6467 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6468 namei" instead of "const char *name" argument.
6469 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6470 dw2_symtab_iter_init.
6471
940da03e
SM
64722020-06-08 Simon Marchi <simon.marchi@efficios.com>
6473
6474 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6475 to use type::field and field::type instead.
6476
b6cdac4b
SM
64772020-06-08 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6480 to use field::type instead.
6481
5d14b6e5
SM
64822020-06-08 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * gdbtypes.h (struct field) <type, set_type>: New methods.
6485 Rename `type` field to...
6486 <m_type>: ... this. Change references throughout to use type or
6487 set_type methods.
6488 (FIELD_TYPE): Use field::type. Change call sites that modify
6489 the field's type to use field::set_type instead.
6490
3d967001
SM
64912020-06-08 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6494 to use type::index_type instead.
6495
262abc0d
SM
64962020-06-08 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6499 methods.
6500 (TYPE_INDEX_TYPE): Use type::index_type.
6501 * gdbtypes.c (create_array_type_with_stride): Likewise.
6502
82836c92
TT
65032020-06-07 Tom Tromey <tom@tromey.com>
6504
6505 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6506 parameter.
6507 (generic_value_print): Update.
6508
940dace9
AB
65092020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 Revert commit 982a38f60b0.
6512 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6513
982a38f6
AB
65142020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6517 avoid use after free.
6518
82f06518
TV
65192020-06-05 Tom de Vries <tdevries@suse.de>
6520
6521 * NEWS: Fix typos.
6522
f8c41851
SM
65232020-06-04 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6526 the per_bfd object.
6527 (dwarf2_read_debug_names): Likewise.
6528 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6529 object when re-using a per_bfd object with an index.
6530
f9b5d5ea
TV
65312020-06-03 Tom de Vries <tdevries@suse.de>
6532
6533 PR symtab/26046
6534 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6535 children for C++.
6536 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6537 DW_TAG_subprogram.
6538
f6eee2d0
AB
65392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6540
6541 * ada-lang.c (ada_language_data): Delete skip_trampoline
6542 initializer.
6543 * c-lang.c (c_language_data): Likewise.
6544 (cplus_language_data): Likewise.
6545 (cplus_language::skip_trampoline): New member function.
6546 (asm_language_data): Delete skip_trampoline initializer.
6547 (minimal_language_data): Likewise.
6548 * d-lang.c (d_language_data): Likewise.
6549 * f-lang.c (f_language_data): Likewise.
6550 * go-lang.c (go_language_data): Likewise.
6551 * language.c (unk_lang_trampoline): Delete function.
6552 (skip_language_trampoline): Update.
6553 (unknown_language_data): Delete skip_trampoline initializer.
6554 (auto_language_data): Likewise.
6555 * language.h (language_data): Delete skip_trampoline field.
6556 (language_defn::skip_trampoline): New function.
6557 * m2-lang.c (m2_language_data): Delete skip_trampoline
6558 initializer.
6559 * objc-lang.c (objc_skip_trampoline): Delete function, move
6560 implementation to objc_language::skip_trampoline.
6561 (objc_language_data): Delete skip_trampoline initializer.
6562 (objc_language::skip_trampoline): New member function with
6563 implementation from objc_skip_trampoline.
6564 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6565 initializer.
6566 * p-lang.c (pascal_language_data): Likewise.
6567 * rust-lang.c (rust_language_data): Likewise.
6568
0a50df5d
AB
65692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6570
6571 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6572 (ada_language::demangle): New member function.
6573 * c-lang.c (c_language_data): Delete la_demangle initializer.
6574 (cplus_language_data): Delete la_demangle initializer.
6575 (cplus_language::demangle): New member function.
6576 (asm_language_data): Delete la_demangle initializer.
6577 (minimal_language_data): Delete la_demangle initializer.
6578 * d-lang.c (d_language_data): Delete la_demangle initializer.
6579 (d_language::demangle): New member function.
6580 * f-lang.c (f_language_data): Delete la_demangle initializer.
6581 (f_language::demangle): New member function.
6582 * go-lang.c (go_language_data): Delete la_demangle initializer.
6583 (go_language::demangle): New member function.
6584 * language.c (language_demangle): Update.
6585 (unk_lang_demangle): Delete.
6586 (unknown_language_data): Delete la_demangle initializer.
6587 (unknown_language::demangle): New member function.
6588 (auto_language_data): Delete la_demangle initializer.
6589 (auto_language::demangle): New member function.
6590 * language.h (language_data): Delete la_demangle field.
6591 (language_defn::demangle): New function.
6592 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6593 * objc-lang.c (objc_language_data): Delete la_demangle
6594 initializer.
6595 (objc_language::demangle): New member function.
6596 * opencl-lang.c (opencl_language_data): Delete la_demangle
6597 initializer.
6598 * p-lang.c (pascal_language_data): Likewise.
6599 * rust-lang.c (rust_language_data): Likewise.
6600 (rust_language::demangle): New member function.
6601
fbfb0a46
AB
66022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * ada-lang.c (ada_language_data): Delete la_print_type
6605 initializer.
6606 (ada_language::print_type): New member function.
6607 * c-lang.c (c_language_data): Delete la_print_type initializer.
6608 (c_language::print_type): New member function.
6609 (cplus_language_data): Delete la_print_type initializer.
6610 (cplus_language::print_type): New member function.
6611 (asm_language_data): Delete la_print_type initializer.
6612 (asm_language::print_type): New member function.
6613 (minimal_language_data): Delete la_print_type initializer.
6614 (minimal_language::print_type): New member function.
6615 * d-lang.c (d_language_data): Delete la_print_type initializer.
6616 (d_language::print_type): New member function.
6617 * f-lang.c (f_language_data): Delete la_print_type initializer.
6618 (f_language::print_type): New member function.
6619 * go-lang.c (go_language_data): Delete la_print_type initializer.
6620 (go_language::print_type): New member function.
6621 * language.c (unk_lang_print_type): Delete.
6622 (unknown_language_data): Delete la_print_type initializer.
6623 (unknown_language::print_type): New member function.
6624 (auto_language_data): Delete la_print_type initializer.
6625 (auto_language::print_type): New member function.
6626 * language.h (language_data): Delete la_print_type field.
6627 (language_defn::print_type): New function.
6628 (LA_PRINT_TYPE): Update.
6629 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6630 (m2_language::print_type): New member function.
6631 * objc-lang.c (objc_language_data): Delete la_print_type
6632 initializer.
6633 (objc_language::print_type): New member function.
6634 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6635 to opencl_language::print_type.
6636 (opencl_language_data): Delete la_print_type initializer.
6637 (opencl_language::print_type): New member function, implementation
6638 from opencl_print_type.
6639 * p-lang.c (pascal_language_data): Delete la_print_type
6640 initializer.
6641 (pascal_language::print_type): New member function.
6642 * rust-lang.c (rust_print_type): Delete, implementation moved to
6643 rust_language::print_type.
6644 (rust_language_data): Delete la_print_type initializer.
6645 (rust_language::print_type): New member function, implementation
6646 from rust_print_type.
6647
6f827019
AB
66482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6649
6650 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6651 implementation moves to...
6652 (ada_language::sniff_from_mangled_name): ...here. Update return
6653 type.
6654 (ada_language_data): Delete la_sniff_from_mangled_name
6655 initializer.
6656 * c-lang.c (c_language_data): Likewise.
6657 (cplus_language_data): Likewise.
6658 (cplus_language::sniff_from_mangled_name): New member function,
6659 implementation taken from gdb_sniff_from_mangled_name.
6660 (asm_language_data): Delete la_sniff_from_mangled_name
6661 initializer.
6662 (minimal_language_data): Likewise.
6663 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6664 implementation moves to cplus_language::sniff_from_mangled_name.
6665 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6666 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6667 moves to...
6668 (d_language::sniff_from_mangled_name): ...here.
6669 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6670 * f-lang.c (f_language_data): Likewise.
6671 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6672 moves to...
6673 (go_language::sniff_from_mangled_name): ...here.
6674 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6675 * language.c (language_sniff_from_mangled_name): Delete.
6676 (unknown_language_data): Delete la_sniff_from_mangled_name
6677 initializer.
6678 (auto_language_data): Likewise.
6679 * language.h (language_data): Delete la_sniff_from_mangled_name
6680 field.
6681 (language_defn::sniff_from_mangled_name): New function.
6682 (language_sniff_from_mangled_name): Delete declaration.
6683 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6684 field.
6685 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6686 implementation moves to...
6687 (objc_language::sniff_from_mangled_name): ...here.
6688 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6689 * opencl-lang.c (opencl_language_data): Likewise.
6690 * p-lang.c (pascal_language_data): Likewise.
6691 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6692 implementation moves to...
6693 (rust_language::sniff_from_mangled_name): ...here.
6694 (rust_language_data): Delete la_sniff_from_mangled_name
6695 initializer.
6696 * symtab.c (symbol_find_demangled_name): Call
6697 sniff_from_mangled_name member function.
6698
fb8006fd
AB
66992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6700
6701 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6702 initializer.
6703 * c-lang.c (c_language_data): Likewise.
6704 (cplus_language_data): Likewise.
6705 (cplus_language::search_name_hash): New member function.
6706 (asm_language_data): Delete la_search_name_hash initializer.
6707 (minimal_language_data): Likewise.
6708 * d-lang.c (d_language_data): Likewise.
6709 * dictionary.c (default_search_name_hash): Rename to...
6710 (language_defn::search_name_hash): ...this.
6711 * f-lang.c (f_language_data): Likewise.
6712 (f_language::search_name_hash): New member function.
6713 * go-lang.c (go_language_data): Delete la_search_name_hash
6714 initializer.
6715 * language.c (unknown_language_data): Likewise.
6716 (auto_language_data): Likewise.
6717 * language.h (struct language_data): Delete la_search_name_hash
6718 field.
6719 (language_defn::search_name_hash): Declare new member function.
6720 (default_search_name_hash): Delete declaration.
6721 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6722 initializer.
6723 * objc-lang.c (objc_language_data): Likewise.
6724 * opencl-lang.c (opencl_language_data): Likewise.
6725 * p-lang.c (pascal_language_data): Likewise.
6726 * rust-lang.c (rust_language_data): Likewise.
6727 * symtab.c (search_name_hash): Update call.
6728
8e25bafe
AB
67292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6730
6731 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6732 initializer.
6733 * c-lang.c (class compile_instance): Declare.
6734 (c_language_data): Delete la_get_compile_instance initializer.
6735 (c_language::get_compile_instance): New member function.
6736 (cplus_language_data): Delete la_get_compile_instance initializer.
6737 (cplus_language::get_compile_instance): New member function.
6738 (asm_language_data): Delete la_get_compile_instance initializer.
6739 (minimal_language_data): Likewise.
6740 * c-lang.h (c_get_compile_context): Update comment.
6741 (cplus_get_compile_context): Update comment.
6742 * compile/compile.c (compile_to_object): Update calls, don't rely
6743 on function pointer being NULL.
6744 * d-lang.c (d_language_data): Delete la_get_compile_instance
6745 initializer.
6746 * f-lang.c (f_language_data): Likewise.
6747 * go-lang.c (go_language_data): Likewise.
6748 * language.c (unknown_language_data): Likewise.
6749 (auto_language_data): Likewise.
6750 * language.h (language_data): Delete la_get_compile_instance field.
6751 (language_defn::get_compile_instance): New member function.
6752 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6753 initializer.
6754 * objc-lang.c (objc_language_data): Likewise.
6755 * opencl-lang.c (opencl_language_data): Likewise.
6756 * p-lang.c (pascal_language_data): Likewise.
6757 * rust-lang.c (rust_language_data): Likewise.
6758
4009ee92
AB
67592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * ada-lang.c (ada_add_all_symbols): Update comment.
6762 (ada_iterate_over_symbols): Delete, move implementation to...
6763 (ada_language::iterate_over_symbols): ...here, a new member
6764 function, rewrite to use range based for loop.
6765 (ada_language_data): Delete la_iterate_over_symbols initializer.
6766 * c-lang.c (c_language_data): Likewise.
6767 (cplus_language_data): Likewise.
6768 (asm_language_data): Likewise.
6769 (minimal_language_data): Likewise.
6770 * d-lang.c (d_language_data): Likewise.
6771 * f-lang.c (f_language_data): Likewise.
6772 * go-lang.c (go_language_data): Likewise.
6773 * language.c (unknown_language_data): Likewise.
6774 (auto_language_data): Likewise.
6775 * language.h (language_data): Delete la_iterate_over_symbols field.
6776 (language_defn::iterate_over_symbols): New member function.
6777 (LA_ITERATE_OVER_SYMBOLS): Update.
6778 * linespec.c (iterate_over_all_matching_symtabs): Update.
6779 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6780 initializer.
6781 * objc-lang.c (objc_language_data): Likewise.
6782 * opencl-lang.c (opencl_language_data): Likewise.
6783 * p-lang.c (pascal_language_data): Likewise.
6784 * rust-lang.c (rust_language_data): Likewise.
6785
54f4ca46
AB
67862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6787
6788 * ada-lang.c (ada_language_data): Delete
6789 la_lookup_transparent_type initializer.
6790 * c-lang.c (c_language_data): Likewise.
6791 (cplus_language_data): Likewise.
6792 (cplus_language::lookup_transparent_type): New member function.
6793 (asm_language_data): Delete la_lookup_transparent_type
6794 initializer.
6795 (minimal_language_data): Likewise.
6796 * d-lang.c (d_language_data): Likewise.
6797 * f-lang.c (f_language_data): Likewise.
6798 * go-lang.c (go_language_data): Likewise.
6799 * language.c (unknown_language_data): Likewise.
6800 (auto_language_data): Likewise.
6801 * language.h (struct language_data): Delete
6802 la_lookup_transparent_type field.
6803 (language_defn::lookup_transparent_type): New member function.
6804 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6805 initializer.
6806 * objc-lang.c (objc_language_data): Likewise.
6807 * opencl-lang.c (opencl_language_data): Likewise.
6808 * p-lang.c (pascal_language_data): Likewise.
6809 * rust-lang.c (rust_language_data): Likewise.
6810 * symtab.c (symbol_matches_domain): Update call.
6811
1fb314aa
AB
68122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6813
6814 * ada-lang.c (ada_language_arch_info): Delete function, move
6815 implementation to...
6816 (ada_language::language_arch_info): ...here, a new member
6817 function.
6818 (ada_language_data): Delete la_language_arch_info.
6819 * c-lang.c (c_language_data): Likewise.
6820 (c_language::language_arch_info): New member function.
6821 (cplus_language_arch_info): Delete function, move
6822 implementation to...
6823 (cplus_language::language_arch_info): ...here, a new member
6824 function.
6825 (cplus_language_data): Delete la_language_arch_info.
6826 (asm_language_data): Likewise.
6827 (asm_language::language_arch_info): New member function.
6828 (minimal_language_data): Delete la_language_arch_info.
6829 (minimal_language::language_arch_info): New member function.
6830 * d-lang.c (d_language_arch_info): Delete function, move
6831 implementation to...
6832 (d_language::language_arch_info): ...here, a new member
6833 function.
6834 (d_language_data): Delete la_language_arch_info.
6835 * f-lang.c (f_language_arch_info): Delete function, move
6836 implementation to...
6837 (f_language::language_arch_info): ...here, a new member
6838 function.
6839 (f_language_data): Delete la_language_arch_info.
6840 * go-lang.c (go_language_arch_info): Delete function, move
6841 implementation to...
6842 (go_language::language_arch_info): ...here, a new member
6843 function.
6844 (go_language_data): Delete la_language_arch_info.
6845 * language.c (unknown_language_data): Likewise.
6846 (unknown_language::language_arch_info): New member function.
6847 (auto_language_data): Delete la_language_arch_info.
6848 (auto_language::language_arch_info): New member function.
6849 (language_gdbarch_post_init): Update call to
6850 la_language_arch_info.
6851 * language.h (language_data): Delete la_language_arch_info
6852 function pointer.
6853 (language_defn::language_arch_info): New function.
6854 * m2-lang.c (m2_language_arch_info): Delete function, move
6855 implementation to...
6856 (m2_language::language_arch_info): ...here, a new member
6857 function.
6858 (m2_language_data): Delete la_language_arch_info.
6859 * objc-lang.c (objc_language_arch_info): Delete function, move
6860 implementation to...
6861 (objc_language::language_arch_info): ...here, a new member
6862 function.
6863 (objc_language_data): Delete la_language_arch_info.
6864 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6865 implementation to...
6866 (opencl_language::language_arch_info): ...here, a new member
6867 function.
6868 (opencl_language_data): Delete la_language_arch_info.
6869 * p-lang.c (pascal_language_arch_info): Delete function, move
6870 implementation to...
6871 (pascal_language::language_arch_info): ...here, a new member
6872 function.
6873 (pascal_language_data): Delete la_language_arch_info.
6874 * rust-lang.c (rust_language_arch_info): Delete function, move
6875 implementation to...
6876 (rust_language::language_arch_info): ...here, a new member
6877 function.
6878 (rust_language_data): Delete la_language_arch_info.
6879
48448202
AB
68802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6883 initializer.
6884 * c-lang.c (c_language_data): Likewise.
6885 (cplus_language_data): Likewise.
6886 (cplus_language::pass_by_reference_info): New method.
6887 (asm_language_data): Delete la_pass_by_reference initializer.
6888 (minimal_language_data): Likewise.
6889 * cp-abi.c (cp_pass_by_reference): Remove use of
6890 default_pass_by_reference.
6891 * d-lang.c (d_language_data): Likewise.
6892 * f-lang.c (f_language_data): Likewise.
6893 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6894 default_pass_by_reference.
6895 * go-lang.c (go_language_data): Likewise.
6896 * language.c (language_pass_by_reference): Update.
6897 (default_pass_by_reference): Delete.
6898 (unknown_language_data): Delete la_pass_by_reference
6899 initializer.
6900 (auto_language_data): Likewise.
6901 * language.h (struct language_data): Delete la_pass_by_reference
6902 field.
6903 (language_defn::pass_by_reference_info): New member function.
6904 (default_pass_by_reference): Delete declaration.
6905 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6906 initializer.
6907 * objc-lang.c (objc_language_data): Likewise.
6908 * opencl-lang.c (opencl_language_data): Likewise.
6909 * p-lang.c (pascal_language_data): Likewise.
6910 * rust-lang.c (rust_language_data): Likewise.
6911
15e5fd35
AB
69122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6913
6914 * ada-lang.c (ada_read_var_value): Delete function, move
6915 implementation to...
6916 (ada_language::read_var_value): ...here.
6917 (ada_language_data): Delete la_read_var_value initializer.
6918 * c-lang.c (c_language_data): Likewise.
6919 (cplus_language_data): Likewise.
6920 (minimal_language_data): Likewise.
6921 * d-lang.c (d_language_data): Likewise.
6922 * f-lang.c (f_language_data): Likewise.
6923 * findvar.c (default_read_var_value): Rename to...
6924 (language_defn::read_var_value): ...this.
6925 * findvar.c (read_var_value): Update header comment, and change to
6926 call member function instead of function pointer.
6927 * go-lang.c (go_language_data): Likewise.
6928 * language.c (unknown_language_data): Delete la_read_var_value
6929 initializer.
6930 (auto_language_data): Likewise.
6931 * language.h (struct language_data): Delete la_read_var_value
6932 field.
6933 (language_defn::read_var_value): New member function.
6934 (default_read_var_value): Delete declaration.
6935 * m2-lang.c (m2_language_data): Delete la_read_var_value
6936 initializer.
6937 * objc-lang.c (objc_language_data): Likewise.
6938 * opencl-lang.c (opencl_language_data): Likewise.
6939 * p-lang.c (pascal_language_data): Likewise.
6940 * rust-lang.c (rust_language_data): Likewise.
6941 * value.h (default_read_var_value): Delete declaration.
6942
5bd40f2a
AB
69432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * ada-lang.c (ada_print_array_index): Delete function, move
6946 implementation to...
6947 (ada_language::print_array_index): ...here.
6948 (ada_language_data): Delete la_print_array_index initializer.
6949 * c-lang.c (c_language_data): Likewise.
6950 (cplus_language_data): Likewise.
6951 (minimal_language_data): Likewise.
6952 * d-lang.c (d_language_data): Likewise.
6953 * f-lang.c (f_language_data): Likewise.
6954 * go-lang.c (go_language_data): Likewise.
6955 * language.c (default_print_array_index): Delete function, move
6956 implementation to...
6957 (language_defn::print_array_index): ...here.
6958 (unknown_language_data): Delete la_print_array_index initializer.
6959 (auto_language_data): Likewise.
6960 * language.h (struct language_data): Delete la_print_array_index
6961 field.
6962 (language_defn::print_array_index): New member function.
6963 (LA_PRINT_ARRAY_INDEX): Update.
6964 (default_print_array_index): Delete declaration.
6965 * m2-lang.c (m2_language_data): Delete la_print_array_index
6966 initializer.
6967 * objc-lang.c (objc_language_data): Likewise.
6968 * opencl-lang.c (opencl_language_data): Likewise.
6969 * p-lang.c (pascal_language_data): Likewise.
6970 * rust-lang.c (rust_language_data): Likewise.
6971
0874fd07
AB
69722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6973
6974 * gdb/ada-lang.c (ada_language_defn): Convert to...
6975 (ada_language_data): ...this.
6976 (class ada_language): New class.
6977 (ada_language_defn): New static global.
6978 * gdb/c-lang.c (c_language_defn): Convert to...
6979 (c_language_data): ...this.
6980 (class c_language): New class.
6981 (c_language_defn): New static global.
6982 (cplus_language_defn): Convert to...
6983 (cplus_language_data): ...this.
6984 (class cplus_language): New class.
6985 (cplus_language_defn): New static global.
6986 (asm_language_defn): Convert to...
6987 (asm_language_data): ...this.
6988 (class asm_language): New class.
6989 (asm_language_defn): New static global.
6990 (minimal_language_defn): Convert to...
6991 (minimal_language_data): ...this.
6992 (class minimal_language): New class.
6993 (minimal_language_defn): New static global.
6994 * gdb/d-lang.c (d_language_defn): Convert to...
6995 (d_language_data): ...this.
6996 (class d_language): New class.
6997 (d_language_defn): New static global.
6998 * gdb/f-lang.c (f_language_defn): Convert to...
6999 (f_language_data): ...this.
7000 (class f_language): New class.
7001 (f_language_defn): New static global.
7002 * gdb/go-lang.c (go_language_defn): Convert to...
7003 (go_language_data): ...this.
7004 (class go_language): New class.
7005 (go_language_defn): New static global.
7006 * gdb/language.c (unknown_language_defn): Remove declaration.
7007 (current_language): Initialize to nullptr, real initialization is
7008 moved to _initialize_language.
7009 (languages): Delete global.
7010 (language_defn::languages): Define.
7011 (set_language_command): Use language_defn::languages.
7012 (set_language): Likewise.
7013 (range_error): Likewise.
7014 (language_enum): Likewise.
7015 (language_def): Likewise.
7016 (add_set_language_command): Use language_def::languages for the
7017 language list, and language_def to lookup language pointers.
7018 (skip_language_trampoline): Use language_defn::languages.
7019 (unknown_language_defn): Convert to...
7020 (unknown_language_data): ...this.
7021 (class unknown_language): New class.
7022 (unknown_language_defn): New static global.
7023 (auto_language_defn): Convert to...
7024 (auto_language_data): ...this.
7025 (class auto_language): New class.
7026 (auto_language_defn): New static global.
7027 (language_gdbarch_post_init): Use language_defn::languages.
7028 (_initialize_language): Initialize current_language.
7029 * gdb/language.h (struct language_defn): Rename to...
7030 (struct language_data): ...this.
7031 (struct language_defn): New.
7032 (auto_language_defn): Delete.
7033 (unknown_language_defn): Delete.
7034 (minimal_language_defn): Delete.
7035 (ada_language_defn): Delete.
7036 (asm_language_defn): Delete.
7037 (c_language_defn): Delete.
7038 (cplus_language_defn): Delete.
7039 (d_language_defn): Delete.
7040 (f_language_defn): Delete.
7041 (go_language_defn): Delete.
7042 (m2_language_defn): Delete.
7043 (objc_language_defn): Delete.
7044 (opencl_language_defn): Delete.
7045 (pascal_language_defn): Delete.
7046 (rust_language_defn): Delete.
7047 * gdb/m2-lang.c (m2_language_defn): Convert to...
7048 (m2_language_data): ...this.
7049 (class m2_language): New class.
7050 (m2_language_defn): New static global.
7051 * gdb/objc-lang.c (objc_language_defn): Convert to...
7052 (objc_language_data): ...this.
7053 (class objc_language): New class.
7054 (objc_language_defn): New static global.
7055 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7056 (opencl_language_data): ...this.
7057 (class opencl_language): New class.
7058 (opencl_language_defn): New static global.
7059 * gdb/p-lang.c (pascal_language_defn): Convert to...
7060 (pascal_language_data): ...this.
7061 (class pascal_language): New class.
7062 (pascal_language_defn): New static global.
7063 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7064 language pointer, update comment format.
7065 * gdb/rust-lang.c (rust_language_defn): Convert to...
7066 (rust_language_data): ...this.
7067 (class rust_language): New class.
7068 (rust_language_defn): New static global.
7069
1313c56e
AB
70702020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7073 member variable.
7074 <m_stmt_at_address>: New member variable.
7075 (lnp_state_machine::record_line): Don't record some lines, update
7076 tracking of is_stmt at the same address.
7077 (lnp_state_machine::lnp_state_machine): Initialise new member
7078 variables.
7079
b7ed9f3d
ST
70802020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7081
7082 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7083 "-include gnu-nat-mig.h".
7084 * gnu-nat-mig.h: New file.
7085 * gnu-nat.c: Include "gnu-nat-mig.h".
7086 (exc_server, msg_reply_server, notify_server,
7087 process_reply_server): Remove declarations.
7088
14a8ad62
ST
70892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7090
7091 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7092 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7093 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7094 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7095 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7096 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7097 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7098 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7099 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7100 to gnu_nat_target class.
7101 * gnu-nat.c: Likewise.
7102 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7103 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7104 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7105 object.
7106 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7107 instead of `gnu_target'.
7108
0af5e106
ST
71092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7110
7111 * i386-gnu-tdep.c: Include "gdbcore.h"
7112 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7113 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7114 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7115 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7116 i386_gnu_sigcontext_addr): New functions
7117 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7118 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7119 tdep.
7120
078f2fc9
ST
71212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7122
7123 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7124 before fork_inferior call. Avoid calling it if target_is_pushed returns
7125 true.
7126
53dff92c
ST
71272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7128
7129 * gnu-nat.h (gnu_target): New variable declaration.
7130 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7131 gnu_target.
7132 * gnu-nat.c (gnu_target): New variable.
7133 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7134 add_thread_silent, and add_thread calls.
7135 (gnu_nat_target::create_inferior): Pass gnu_target to
7136 add_thread_silent, thread_change_ptid call.
7137 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7138 call.
7139
5a8b8627
ST
71402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7141
7142 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7143 (gnu_nat_target::find_memory_regions): Remove unused
7144 `old_address' variable.
7145
366f550a
ST
71462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7147
7148 * gnu-nat.c: Include "gdbarch.h".
7149
f14871bf
ST
71502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7151
7152 * reply_mig_hack.awk (Error return): Cast function through
7153 void *, to bypass compiler function call check.
7154
c6887cfb
ST
71552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7156
7157 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7158 $(srcdir)/reply_mig_hack.awk.
7159
6930bffe
ST
71602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7161
7162 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7163
112c22ed
JG
71642020-05-30 Jonny Grant <jg@jguk.org>
7165
7166 * configure.ac (ACX_BUGURL): change bug URL to https.
7167
f68f85b5
PA
71682020-05-30 Pedro Alves <palves@redhat.com>
7169
7170 * cp-support.c (replace_typedefs_template): New.
7171 (replace_typedefs_qualified_name): Handle
7172 DEMANGLE_COMPONENT_TEMPLATE.
7173
976ca316
SM
71742020-05-29 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7177 dwarf2/index-cache.h, dwarf2/index-write.c,
7178 dwarf2/index-write.h, dwarf2/line-header.c,
7179 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7180 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7181 variables and fields from `dwarf2_per_objfile` to just
7182 `per_objfile` throughout.
7183
989ade05
SM
71842020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7187 <push_dwarf_reg_entry_value>: Add comment.
7188
c47bae85
KB
71892020-05-28 Kevin Buettner <kevinb@redhat.com>
7190 Keith Seitz <keiths@redhat.com>
7191
7192 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7193 instead of PyEval_ReleaseLock.
7194 (class gdbpy_gil): Move to earlier in file.
7195 (finalize_python): Set gdb_python_initialized.
7196 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7197 when not initialized.
7198
44486dcf
SM
71992020-05-28 Simon Marchi <simon.marchi@efficios.com>
7200
7201 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7202 <push_dwarf_reg_entry_value>: Remove assert. Override
7203 per_objfile with caller_per_objfile.
7204
f030440d
TV
72052020-05-28 Tom de Vries <tdevries@suse.de>
7206
7207 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7208 PR gold/15646 workaround to symbol kind "type".
7209
f0fbb768
TT
72102020-05-27 Tom Tromey <tromey@adacore.com>
7211
7212 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7213
af0b2a3e
TT
72142020-05-27 Tom Tromey <tromey@adacore.com>
7215
7216 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7217 Use htab_find_with_hash.
7218 <add_abbrev>: Remove "abbrev_number" parameter.
7219 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7220 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7221 (hash_abbrev): Add comment.
7222 (abbrev_table::lookup_abbrev): Move to header file.
7223 (abbrev_table::read): Update.
7224
7d00ffec
TT
72252020-05-27 Tom Tromey <tromey@adacore.com>
7226
7227 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7228 method.
7229 <canonical_name>: New member.
7230 <raw_name>: Rename from "name".
7231 (partial_die_info): Initialize canonical_name.
7232 (scan_partial_symbols): Check raw_name.
7233 (partial_die_parent_scope, partial_die_full_name)
7234 (add_partial_symbol, add_partial_subprogram)
7235 (add_partial_enumeration, load_partial_dies): Use "name" method.
7236 (partial_die_info::name): New method.
7237 (partial_die_info::read, guess_partial_die_structure_name)
7238 (partial_die_info::fixup): Update.
7239
697bba18
TT
72402020-05-27 Tom Tromey <tromey@adacore.com>
7241
7242 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7243 <get_ref_die_offset>: Inline.
7244 <get_ref_die_offset_complaint>: New method.
7245 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7246 (attribute::get_ref_die_offset_complaint): Rename from
7247 get_ref_die_offset. Just issue complaint.
7248
c17ace43
HD
72492020-05-27 Hannes Domani <ssbssa@yahoo.de>
7250
7251 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7252
96445f0b
HD
72532020-05-27 Hannes Domani <ssbssa@yahoo.de>
7254
7255 * exec.c (exec_file_attach): Use errno value of first openp failure.
7256
ac637ec3
HD
72572020-05-27 Hannes Domani <ssbssa@yahoo.de>
7258
7259 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7260 Don't close thread handle.
7261
17ee85fc
TT
72622020-05-27 Tom Tromey <tom@tromey.com>
7263 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7266 shared_ptr.
7267 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7268 member.
7269 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7270 dwarf2_per_bfd_objfile_data_key>: New globals.
7271 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7272 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7273 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7274 shared.
7275 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7276 short-circuit when sharing.
7277 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7278 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7279
39b16f87
SM
72802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7283 to...
7284 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7285 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7286
fcf23d5b
SM
72872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7288
7289 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7290 build_name_components, find_name_components_bounds>:
7291 Add per_objfile parameter.
7292 (struct mapped_index) <symbol_name_at>: Likewise.
7293 (struct mapped_debug_names): Remove constructor.
7294 <dwarf2_per_objfile>: Remove field.
7295 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7296 (mapped_index_base::find_name_components_bounds,
7297 mapped_index_base::build_name_components,
7298 dw2_expand_symtabs_matching_symbol): Likewise.
7299 (class mock_mapped_index) <symbol_name_at>: Likewise.
7300 (check_match): Likewise.
7301 (check_find_bounds_finds): Likewise.
7302 (test_mapped_index_find_name_component_bounds): Update.
7303 (CHECK_MATCH): Update.
7304 (dw2_expand_symtabs_matching): Update.
7305 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7306 per_objfile parameter.
7307 <find_vec_in_debug_names>: Likewise.
7308 <m_per_objfile>: New field.
7309 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7310 parameter.
7311 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7312 (dw2_debug_names_iterator::next): Update.
7313 (dw2_debug_names_lookup_symbol): Update.
7314 (dw2_debug_names_expand_symtabs_for_function): Update.
7315 (dw2_debug_names_map_matching_symbols): Update.
7316 (dw2_debug_names_expand_symtabs_matching): Update.
7317 (dwarf2_read_debug_names): Update.
7318
7188ed02
SM
73192020-05-27 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7322 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7323 move to dwarf2_per_objfile.
7324 <read_in_chain>: Remove.
7325 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7326 remove_all_cus, age_comp_units>: New methods.
7327 <m_dwarf2_cus>: New member.
7328 (struct dwarf2_per_cu_data) <cu>: Remove.
7329 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7330 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7331 moved to methods of dwarf2_per_objfile.
7332 (dwarf2_clear_marks): Remove.
7333 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7334 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7335 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7336 (dwarf2_per_objfile::remove_all_cus): New.
7337 (class free_cached_comp_units) <~free_cached_comp_units>:
7338 Update.
7339 (load_cu): Update.
7340 (dw2_do_instantiate_symtab): Adjust.
7341 (fill_in_sig_entry_from_dwo_entry): Adjust.
7342 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7343 (cutu_reader::cutu_reader): Likewise.
7344 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7345 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7346 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7347 and dwarf2_per_objfile::age_comp_units.
7348 (load_partial_comp_unit): Update.
7349 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7350 (process_queue): Likewise.
7351 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7352 backlink.
7353 (dwarf2_read_addr_index): Likewise.
7354 (follow_die_offset): Likewise.
7355 (dwarf2_fetch_die_loc_sect_off): Likewise.
7356 (dwarf2_fetch_constant_bytes): Likewise.
7357 (dwarf2_fetch_die_type_sect_off): Likewise.
7358 (follow_die_sig_1): Likewise.
7359 (load_full_type_unit): Likewise.
7360 (read_signatured_type): Likewise.
7361 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7362 (dwarf2_cu::~dwarf2_cu): Remove.
7363 (dwarf2_per_objfile::get_cu): New.
7364 (dwarf2_per_objfile::set_cu): New.
7365 (age_cached_comp_units): Rename to...
7366 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7367 to std::unordered_map.
7368 (free_one_cached_comp_unit): Rename to...
7369 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7370 to std::unordered_map.
7371 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7372 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7373 a dwarf2_per_objfile in data.
7374 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7375 (dwarf2_clear_marks): Remove.
7376
2e671100
SM
73772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7380 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7381 (init_tu_and_read_dwo_dies): Likewise.
7382 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7383 (cutu_reader::cutu_reader): Likewise.
7384 (load_partial_comp_unit): Likewise.
7385 (process_psymtab_comp_unit): Update.
7386 (build_type_psymtabs_1): Update.
7387 (process_skeletonless_type_unit): Update.
7388 (load_full_comp_unit): Update.
7389 (find_partial_die): Update.
7390 (dwarf2_read_addr_index): Update.
7391 (read_signatured_type): Update.
7392
2e6a9f79
SM
73932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7394
7395 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7396 m_header_read_in>: New fields.
7397 <get_header>: New method.
7398 * dwarf2/read.c (per_cu_header_read_in): Remove.
7399 (dwarf2_per_cu_data::get_header): New.
7400 (dwarf2_per_cu_data::addr_size): Update.
7401 (dwarf2_per_cu_data::offset_size): Update.
7402 (dwarf2_per_cu_data::ref_addr_size): Update.
7403
1b555f17
SM
74042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7405
7406 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7407 (dw2_do_instantiate_symtab): Update.
7408 (queue_and_load_all_dwo_tus): Change parameter from
7409 dwarf2_per_cu_data to dwarf2_cu.
7410 (dwarf2_fetch_die_loc_sect_off): Update.
7411 (dwarf2_fetch_constant_bytes): Update.
7412 (dwarf2_fetch_die_type_sect_off): Update.
7413
8fc0b21d
SM
74142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7415
7416 * dwarf2/read.c (process_full_comp_unit,
7417 process_full_type_unit): Remove per_cu, per_objfile paramters.
7418 Add dwarf2_cu parameter.
7419 (process_queue): Update.
7420
168c9250
SM
74212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7422
7423 * dwarf2/read.c (create_cu_from_index_list): Replace
7424 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7425 (create_cus_from_index_list): Likewise.
7426 (create_cus_from_index): Likewise.
7427 (create_signatured_type_table_from_index): Likewise.
7428 (create_cus_from_debug_names_list): Likewise.
7429 (create_cus_from_debug_names): Likewise.
7430 (dwarf2_read_gdb_index): Update.
7431 (dwarf2_read_debug_names): Update.
7432
e286671b
TT
74332020-05-27 Tom Tromey <tom@tromey.com>
7434 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * dwarf2/read.h (struct dwarf2_per_objfile)
7437 <get_type_for_signatured_type, set_type_for_signatured_type>:
7438 New methods.
7439 <m_type_map>: New member.
7440 (struct signatured_type) <type>: Remove.
7441 * dwarf2/read.c
7442 (dwarf2_per_objfile::get_type_for_signatured_type,
7443 dwarf2_per_objfile::set_type_for_signatured_type): New.
7444 (get_signatured_type): Use new methods.
7445
8adb8487
TT
74462020-05-27 Tom Tromey <tom@tromey.com>
7447 Simon Marchi <simon.marchi@efficios.com>
7448
7449 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7450 (struct dwarf2_per_objfile) <type_units>: New member.
7451 <get_type_unit_group_unshareable>: New method.
7452 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7453 num_symtabs, symtabs>: Remove; move to
7454 type_unit_group_unshareable.
7455 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7456 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7457 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7458
127bbf4b
SM
74592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * dwarf2/read.h (struct dwarf2_per_cu_data):
7462 <dwarf2_per_objfile>: Remove.
7463 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7464 dwarf2_per_objfile.
7465 (create_signatured_type_table_from_index): Likewise.
7466 (create_signatured_type_table_from_debug_names): Likewise.
7467 (create_debug_type_hash_table): Likewise.
7468 (fill_in_sig_entry_from_dwo_entry): Likewise.
7469 (create_type_unit_group): Likewise.
7470 (read_comp_units_from_section): Likewise.
7471 (create_cus_hash_table): Likewise.
7472
f6e649dd
SM
74732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7476 dwarf2_per_cu_data::dwarf2_per_objfile.
7477 (compute_compunit_symtab_includes): Likewise.
7478 (dwarf2_cu::start_symtab): Likewise.
7479
aa66c379
SM
74802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7481
7482 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7483 parameter.
7484 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7485 (read_namespace_alias): Update.
7486 (lookup_die_type): Update.
7487 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7488 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7489 Update.
7490 (disassemble_dwarf_expression): Update.
7491
120ce1b5
SM
74922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7493
7494 * dwarf2/read.h (struct dwarf2_queue_item): Add
7495 dwarf2_per_objfile parameter, assign new parameter.
7496 <per_objfile>: New field.
7497 * dwarf2/read.c (free_one_cached_comp_unit): Add
7498 dwarf2_per_objfile parameter.
7499 (queue_comp_unit): Likewise.
7500 (dw2_do_instantiate_symtab): Update.
7501 (process_psymtab_comp_unit): Update.
7502 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7503 (process_imported_unit_die): Update.
7504 (queue_and_load_dwo_tu): Update.
7505 (follow_die_offset): Update.
7506 (follow_die_sig_1): Update.
7507
9f47c707
SM
75082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7511 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7512 (read_call_site_scope): Assign per_objfile.
7513 (dwarf2_per_cu_data::objfile): Remove.
7514 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7515 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7516 dwarf2_per_objfile parameter.
7517 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7518 dwarf2_per_objfile parameter.
7519 (dwarf_expr_reg_to_entry_parameter): Add output
7520 dwarf2_per_objfile parameter.
7521 (locexpr_get_frame_base): Update.
7522 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7523 <push_dwarf_reg_entry_value>: Update.
7524 <call_site_to_target_addr>: Update.
7525 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7526 parameter.
7527 (value_of_dwarf_reg_entry): Update.
7528 (rw_pieced_value): Update.
7529 (indirect_synthetic_pointer): Update.
7530 (dwarf2_evaluate_property): Update.
7531 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7532 parameter.
7533 (locexpr_read_variable): Update.
7534 (locexpr_get_symbol_read_needs): Update.
7535 (loclist_read_variable): Update.
7536
14095eb3
SM
75372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7540 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7541 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7542 parameter.
7543 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7544 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7545 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7546 parameter.
7547 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7548 sect_variable_value): Add dwarf2_per_objfile parameter.
7549 (class dwarf_evaluate_loc_desc) <dwarf_call,
7550 dwarf_variable_value>: Update.
7551 (fetch_const_value_from_synthetic_pointer): Add
7552 dwarf2_per_objfile parameter.
7553 (fetch_const_value_from_synthetic_pointer): Update.
7554 (coerced_pieced_ref): Update.
7555 (class symbol_needs_eval_context) <dwarf_call,
7556 dwarf_variable_value>: Update.
7557 (dwarf2_compile_expr_to_ax): Update.
7558
3c3cd3d4
SM
75592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7562 parameter.
7563 (dwarf2_evaluate_loc_desc_full): Update.
7564
82ca3f51
SM
75652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7568 parameter.
7569 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7570 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7571 dwarf2_per_objfile parameter.
7572 (decode_debug_loc_dwo_addresses): Likewise.
7573 (dwarf2_find_location_expression): Update.
7574 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7575 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7576 parameter.
7577 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7578 parameter.
7579 (locexpr_describe_location_1): Likewise.
7580 (locexpr_describe_location): Update.
7581
4b167ea1
SM
75822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7583
7584 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7585 Remove.
7586 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7587 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7588 (dwarf2_compile_property_to_c): Update.
7589 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7590 use text offset from objfile.
7591 (locexpr_tracepoint_var_ref): Update.
7592 (locexpr_generate_c_location): Update.
7593 (loclist_describe_location): Update.
7594 (loclist_tracepoint_var_ref): Update.
7595 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7596 dwarf2_per_objfile parameter.
7597 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7598 use text offset from objfile.
7599 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7600
89b07335
SM
76012020-05-27 Simon Marchi <simon.marchi@efficios.com>
7602
7603 * dwarf2/expr.h (struct dwarf_expr_context)
7604 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7605 <offset>: Remove.
7606 <per_objfile>: New member.
7607 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7608 dwarf2_per_objfile parameter. Don't set offset, set
7609 per_objfile.
7610 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7611 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7612 a dwarf2_per_objfile object instead of an offset.
7613 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7614 constructor.
7615 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7616 to dwarf2_expr_executor constructor. Don't set offset.
7617 (dwarf2_fetch_cfa_info): Update.
7618 (struct dwarf2_frame_cache) <text_offset>: Remove.
7619 <per_objfile>: New field.
7620 (dwarf2_frame_cache): Update.
7621 (dwarf2_frame_prev_register): Update.
7622 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7623 <dwarf_evaluate_loc_desc>: Add constructor.
7624 (dwarf2_evaluate_loc_desc_full): Update.
7625 (dwarf2_locexpr_baton_eval): Update.
7626 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7627 Add constructor.
7628 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7629
293e7e51
SM
76302020-05-27 Simon Marchi <simon.marchi@efficios.com>
7631
7632 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7633 addr_sized_int_type>: Move to dwarf2_cu.
7634 <int_type>: Move to dwarf2_per_objfile.
7635 (struct dwarf2_per_objfile) <int_type>: Move here.
7636 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7637 addr_sized_int_type>: Move here.
7638 (read_func_scope): Update.
7639 (read_array_type): Update.
7640 (read_tag_string_type): Update.
7641 (attr_to_dynamic_prop): Update.
7642 (dwarf2_per_cu_data::int_type): Rename to...
7643 (dwarf2_per_objfile::int_type): ... this.
7644 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7645 (dwarf2_cu::addr_sized_int_type): ... this.
7646 (read_subrange_type): Update.
7647 (dwarf2_per_cu_data::addr_type): Rename to...
7648 (dwarf2_cu::addr_type): ... this.
7649 (set_die_type): Update.
7650
64874a40
SM
76512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7654 data through per_cu->cu.
7655
4ab09049
SM
76562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7659 dwarf2_per_cu_data parameter fo dwarf2_cu.
7660 (lookup_dwo_type_unit): Likewise.
7661 (read_cutu_die_from_dwo): Likewise.
7662 (lookup_dwo_unit): Likewise.
7663 (open_and_init_dwo_file): Likewise.
7664 (lookup_dwo_cutu): Likewise.
7665 (lookup_dwo_comp_unit): Likewise.
7666 (lookup_dwo_type_unit): Likewise.
7667 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7668 (cutu_reader::cutu_reader): Update.
7669
47b14e86
SM
76702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7673 parameter.
7674 (process_full_type_unit): Likewise.
7675 (process_queue): Update.
7676
43182c09
SM
76772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7678
7679 * dwarf2/read.c (recursively_compute_inclusions): Add
7680 dwarf2_per_objfile parameter.
7681 (compute_compunit_symtab_includes): Likewise.
7682 (process_cu_includes): Update.
7683
7aa104c4
SM
76842020-05-27 Simon Marchi <simon.marchi@efficios.com>
7685
7686 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7687 parameter.
7688 (create_type_unit_group): Update.
7689 (process_psymtab_comp_unit_reader): Update.
7690 (build_type_psymtabs_reader): Update.
7691
e3beb21d
SM
76922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7693
7694 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7695 object through m_this_cu->cu.
7696
d460f660
SM
76972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7698
7699 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7700 the info parameter.
7701 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7702
ab432490
SM
77032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7706 per_objfile parameter.
7707 (load_full_type_unit): Add per_objfile parameter.
7708 (read_signatured_type): Likewise.
7709 (load_full_comp_unit): Likewise.
7710 (load_cu): Likewise.
7711 (dw2_do_instantiate_symtab): Likewise.
7712 (dw2_get_file_names): Likewise.
7713 (dw2_map_symtabs_matching_filename): Update.
7714 (dw_expand_symtabs_matching_file_matcher): Update.
7715 (dw2_map_symbol_filenames): Update.
7716 (process_psymtab_comp_unit): Add per_objfile parameter.
7717 (build_type_psymtabs_1): Update.
7718 (process_skeletonless_type_unit): Update.
7719 (dwarf2_build_psymtabs_hard): Update.
7720 (load_partial_comp_unit): Add per_objfile parameter.
7721 (scan_partial_symbols): Update.
7722 (load_full_comp_unit): Add per_objfile parameter.
7723 (process_imported_unit_die): Update.
7724 (create_cus_hash_table): Update.
7725 (find_partial_die): Update.
7726 (dwarf2_read_addr_index): Update.
7727 (follow_die_offset): Update.
7728 (dwarf2_fetch_die_loc_sect_off): Update.
7729 (dwarf2_fetch_constant_bytes): Update.
7730 (dwarf2_fetch_die_type_sect_off): Update.
7731 (follow_die_sig_1): Update.
7732 (load_full_type_unit): Add per_objfile parameter.
7733 (read_signatured_type): Likewise.
7734
313bad1b
SM
77352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7738 of objfile_name.
7739
c3699833
SM
77402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7743 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7744 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7745 field.
7746 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7747 (create_cus_from_index): Update.
7748 (dwarf2_read_gdb_index): Update.
7749 (create_cus_from_debug_names): Update.
7750 (dwarf2_read_debug_names): Update.
7751 (get_abbrev_section_for_cu): Update.
7752 (create_all_comp_units): Update.
7753 (read_attribute_value): Update.
7754 (get_debug_line_section): Update.
7755 * dwarf2/index-cache.c (index_cache::store): Update.
7756 * dwarf2/index-write.c (save_gdb_index_command): Update.
7757 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7758
1859c670
SM
77592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7760
7761 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7762 member.
7763 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7764 dwarf2_per_cu_data::per_bfd.
7765 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7766 (create_type_unit_group): Likewise.
7767 (queue_comp_unit): Remove reference to
7768 per_cu->dwarf2_per_objfile.
7769 (maybe_queue_comp_unit): Likewise.
7770 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7771 (create_cus_hash_table): Assign new field.
7772
5e22e966
SM
77732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7774
7775 * dwarf2/read.c: Replace
7776 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7777 dwarf2_cu->per_objfile throughout.
7778
97a1449a
SM
77792020-05-27 Simon Marchi <simon.marchi@efficios.com>
7780
7781 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7782 parameter, don't use per_cu->dwarf2_per_objfile.
7783 (dw2_instantiate_symtab): Likewise.
7784 (dw2_find_last_source_symtab): Update.
7785 (dw2_map_expand_apply): Update.
7786 (dw2_lookup_symbol): Update.
7787 (dw2_expand_symtabs_for_function): Update.
7788 (dw2_expand_all_symtabs): Update.
7789 (dw2_expand_symtabs_with_fullname): Update.
7790 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7791 don't use per_cu->dwarf2_per_objfile.
7792 (dw2_expand_marked_cus): Update.
7793 (dw2_find_pc_sect_compunit_symtab): Update.
7794 (dw2_debug_names_lookup_symbol): Update.
7795 (dw2_debug_names_expand_symtabs_for_function): Update.
7796 (dw2_debug_names_map_matching_symbols): Update.
7797 (dwarf2_psymtab::expand_psymtab): Update.
7798
9e021579
SM
77992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7802 <per_objfile>: New member.
7803 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7804 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7805 call to dwarf2_cu.
7806 (cutu_reader::cutu_reader): Update.
7807 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7808
ae090bdb
SM
78092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7810
7811 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7812 struct dwarf2_per_objfile.
7813 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7814 dwarf2_per_bfd.
7815 * dwarf2/read.c (set_die_type): Update.
7816 (get_die_type_at_offset): Update.
7817
af758d11
SM
78182020-05-27 Tom Tromey <tom@tromey.com>
7819 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7822 method.
7823 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7824 get_symtab, set_symtab>: New methods.
7825 <m_symtabs>: New field.
7826 (struct dwarf2_psymtab): Derive from partial_symtab.
7827 <readin_p, get_compunit_symtab>: Declare methods.
7828 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7829 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7830 New methods.
7831 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7832 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7833 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7834 (dw2_symtab_iter_next, dw2_print_stats)
7835 (dw2_expand_symtabs_with_fullname)
7836 (dw2_expand_symtabs_matching_one)
7837 (dw_expand_symtabs_matching_file_matcher)
7838 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7839 (dw2_debug_names_iterator::next)
7840 (dw2_debug_names_map_matching_symbols)
7841 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7842 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7843 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7844 New methods.
7845 (get_compunit_symtab, process_full_comp_unit)
7846 (process_full_type_unit): Update.
7847 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7848
5989a64e
SM
78492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7850
7851 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7852 then introduce a new dwarf2_per_objfile type.
7853 <read_line_string>: Move to the new dwarf2_per_objfile type.
7854 <objfile>: Likewise.
7855 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7856 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7857 dwarf2_per_objfile->per_bfd.
7858 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7859 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7860 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7861 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7862 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7863 (dwarf2_per_objfile::locate_sections): Rename to...
7864 (dwarf2_per_bfd::locate_sections): ... this.
7865 (dwarf2_per_objfile::get_cutu): Rename to...
7866 (dwarf2_per_bfd::get_cutu): ... this.
7867 (dwarf2_per_objfile::get_cu): Rename to...
7868 (dwarf2_per_bfd::get_cu): ... this.
7869 (dwarf2_per_objfile::get_tu): Rename to...
7870 (dwarf2_per_bfd::get_tu): ... this.
7871 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7872 (dwarf2_per_bfd::allocate_per_cu): ... this.
7873 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7874 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7875 (get_gdb_index_contents_ftype): Change parameter from
7876 dwarf2_per_objfile to dwarf2_per_bfd.
7877 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7878 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7879
a50264ba
TT
78802020-05-27 Tom Tromey <tom@tromey.com>
7881 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7884 (allocate_piece_closure): Set "per_objfile" member.
7885 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7886 (locexpr_describe_location, loclist_describe_location): Use new
7887 member.
7888 * dwarf2/read.c (read_call_site_scope)
7889 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7890 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7891 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7892 handle_data_member_location): Set per_objfile member.
7893 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7894 member.
7895 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7896
d3473f0c
TT
78972020-05-27 Tom Tromey <tom@tromey.com>
7898
7899 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7900 allocate_signatured_type>: Declare new methods.
7901 <m_num_psymtabs>: New member.
7902 (struct dwarf2_per_cu_data) <index>: New member.
7903 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7904 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7905 (create_cu_from_index_list): Use allocate_per_cu.
7906 (create_signatured_type_table_from_index)
7907 (create_signatured_type_table_from_debug_names)
7908 (create_debug_type_hash_table, add_type_unit)
7909 (read_comp_units_from_section): Use allocate_signatured_type.
7910
5717c425
TT
79112020-05-27 Tom Tromey <tom@tromey.com>
7912
7913 * psymtab.c (partial_map_expand_apply)
7914 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7915 (psym_lookup_global_symbol_language)
7916 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7917 (psym_print_stats, psym_expand_symtabs_for_function)
7918 (psym_map_symbol_filenames, psym_map_matching_symbols)
7919 (psym_expand_symtabs_matching)
7920 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7921 (maintenance_check_psymtabs): Update.
7922 * psympriv.h (struct partial_symtab) <readin_p,
7923 get_compunit_symtab>: Add objfile parameter.
7924 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7925 Likewise.
7926 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7927 get_compunit_symtab>: Likewise.
7928 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7929
45940949
TT
79302020-05-27 Tom Tromey <tom@tromey.com>
7931
7932 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7933 member.
7934 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7935 (create_cu_from_index_list)
7936 (create_signatured_type_table_from_index)
7937 (create_signatured_type_table_from_debug_names)
7938 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7939 (dwarf2_create_include_psymtab)
7940 (create_debug_type_hash_table, add_type_unit)
7941 (create_type_unit_group, read_comp_units_from_section)
7942 (dwarf2_compute_name, create_cus_hash_table)
7943 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7944 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7945 obstack.
7946 (dw2_get_real_path): Likewise. Change argument to
7947 dwarf2_per_objfile.
7948
f8c6d152
LM
79492020-05-27 Luis Machado <luis.machado@linaro.org>
7950
7951 PR tdep/26000
7952 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7953 for ldrd (immediate).
7954
e98d2e6d
PW
79552020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7956
7957 * command.h: Add comment giving the name of class_tui.
7958 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7959 create the fake command for the help for class_tui.
7960
53a47a3e
TT
79612020-05-26 Tom Tromey <tromey@adacore.com>
7962
7963 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7964 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7965 (val_atr): New function.
7966 (value_val_atr): Use it.
7967 * ada-valprint.c (print_optional_low_bound): Change low bound
7968 handling for enums.
7969 (val_print_packed_array_elements): Don't call discrete_position.
7970 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7971 discrete_position for enum types.
7972 * language.c (default_print_array_index): Change type.
7973 * language.h (struct language_defn) <la_print_array_index>: Add
7974 index_type parameter, change type of index_value.
7975 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7976 (default_print_array_index): Update.
7977 * valprint.c (maybe_print_array_index): Don't call
7978 value_from_longest. Update.
7979 (value_print_array_elements): Don't call discrete_position.
7980
0bc2354b
TT
79812020-05-26 Tom Tromey <tromey@adacore.com>
7982
7983 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7984 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7985
1218a4bf
CDA
79862020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7987
7988 PR gdb/13519
7989 * avr-tdep.c (avr_integer_to_address): Return data or code
7990 address accordingly to the second 'type' argument of the
7991 function.
7992
92651b1d
MW
79932020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7994
7995 * infcmd.c, inferior.h: (construct_inferior_arguments):
7996 Moved function from here to gdbsupport/common-inferior.{h,cc}
7997
0a4f5f8c
TT
79982020-05-23 Tom Tromey <tom@tromey.com>
7999
8000 Revert commit eca1f90c:
8001 * NEWS: Remove entry for completion styling.
8002 * completer.c (_rl_completion_prefix_display_length): Move
8003 declaration later.
8004 (gdb_fnprint): Revert.
8005 (gdb_display_match_list_1): Likewise.
8006 * cli/cli-style.c (completion_prefix_style)
8007 (completion_difference_style, completion_suffix_style): Remove.
8008 (_initialize_cli_style): Revert.
8009 * cli/cli-style.h (completion_prefix_style)
8010 (completion_difference_style, completion_suffix_style): Don't
8011 declare.
8012
e08bd6c5
PA
80132020-05-24 Pedro Alves <palves@redhat.com>
8014
8015 * symtab.c (completion_list_add_name): Return boolean indication
8016 of whether the symbol matched.
8017 (completion_list_add_symbol): Don't try to remove C++ aliases if
8018 the symbol didn't match in the first place.
8019 * symtab.h (completion_list_add_name): Return bool.
8020
ceacbf6e
SM
80212020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8022
8023 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8024 type::field.
8025
26f16254
JB
80262020-05-23 Joel Brobecker <brobecker@adacore.com>
8027
8028 GDB 9.2 released.
8029
eca1f90c
TT
80302020-05-23 Tom Tromey <tom@tromey.com>
8031
8032 * NEWS: Add entry for completion styling.
8033 * completer.c (_rl_completion_prefix_display_length): Move
8034 declaration earlier.
8035 (gdb_fnprint): Use completion_style.
8036 (gdb_display_match_list_1): Likewise.
8037 * cli/cli-style.c (completion_prefix_style)
8038 (completion_difference_style, completion_suffix_style): New
8039 globals.
8040 (_initialize_cli_style): Register new globals.
8041 * cli/cli-style.h (completion_prefix_style)
8042 (completion_difference_style, completion_suffix_style): Declare.
8043
51e2cfa2
PA
80442020-05-23 Pedro Alves <palves@redhat.com>
8045
8046 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8047 (parse_escape): Use ISDIGIT instead of isdigit.
8048 (puts_debug): Use gdb_isprint instead of isprint.
8049 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8050 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8051 ISSPACE instead of isspace.
8052 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8053 instead of isspace.
8054 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8055 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8056 instead of isxdigit and ISDIGIT instead of isdigit.
8057
80fc5e77
SM
80582020-05-22 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * gdbtypes.h (struct type) <field>: New method.
8061 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8062 or type::field.
8063
3cabb6b0
SM
80642020-05-22 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8067 (TYPE_FIELDS): Use type::fields. Change all call sites that
8068 modify the propery to use type::set_fields instead.
8069
1f704f76
SM
80702020-05-22 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8073 type::num_fields instead.
8074
5e33d5f4
SM
80752020-05-22 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8078 methods.
8079 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8080 that modify the number of fields to use type::set_num_fields
8081 instead.
8082
9392ebb3
TT
80832020-05-22 Tom Tromey <tromey@adacore.com>
8084
8085 * compile/compile-object-load.h (munmap_list_free): Don't
8086 declare.
8087
7c13f4e8
AB
80882020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * annotate.c (annotate_source_line): Update return type, add call
8091 to update current symtab and line.
8092 * annotate.h (annotate_source_line): Update return type, and
8093 extend header comment.
8094 * source.c (info_line_command): Check annotation_level before
8095 calling annotate_source_line.
8096 * stack.c (print_frame_info): If calling annotate_source_line
8097 returns true, then don't print any other source line information.
8098
aa370940
SM
80992020-05-21 Simon Marchi <simon.marchi@efficios.com>
8100
8101 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8102
84d53fa9
SM
81032020-05-21 Simon Marchi <simon.marchi@efficios.com>
8104
8105 * coffread.c (patch_type): Remove NULL check before xfree.
8106 * corefile.c (set_gnutarget): Likewise.
8107 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8108 * exec.c (build_section_table): Likewise.
8109 * remote.c (remote_target::pass_signals): Likewise.
8110 * utils.c (n_spaces): Likewise.
8111 * cli/cli-script.c (document_command): Likewise.
8112 * i386-windows-tdep.c (core_process_module_section): Likewise.
8113 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8114
9d428aae
SM
81152020-05-20 Simon Marchi <simon.marchi@efficios.com>
8116
8117 * symfile.c (reread_symbols): Clear objfile's section_offsets
8118 vector and section indices, re-compute them by calling
8119 sym_offsets.
8120
250106a7
TT
81212020-05-20 Tom Tromey <tromey@adacore.com>
8122
8123 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8124 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8125
9a0bacfb
TV
81262020-05-20 Tom de Vries <tdevries@suse.de>
8127
8128 PR symtab/25833
8129 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8130
7b958a48
AM
81312020-05-20 Alan Modra <amodra@gmail.com>
8132
8133 PR 25993
8134 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8135 bfd_set_filename.
8136 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8137 passed to bfd_set_filename.
8138 * symfile-mem.c (add_vsyscall_page): Likewise for string
8139 passed to symbol_file_add_from_memory.
8140 (symbol_file_add_from_memory): Make name param a const char* and
8141 don't strdup.
8142
c7e97679
AM
81432020-05-20 Alan Modra <amodra@gmail.com>
8144
8145 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8146 rather than accessing bfd->filename directly.
8147 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8148 and use bfd_section_name.
8149 * dwarf2/frame.c (decode_frame_entry): Likewise.
8150 * exec.c (exec_set_section_address): Likewise.
8151 * solib-aix.c (solib_aix_bfd_open): Likewise.
8152 * stap-probe.c (get_stap_base_address): Likewise.
8153 * symfile.c (reread_symbols): Likewise.
8154
563c591b
TT
81552020-05-19 Tom Tromey <tromey@adacore.com>
8156
8157 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8158
f408d82c
SM
81592020-05-19 Simon Marchi <simon.marchi@efficios.com>
8160
8161 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8162
98c59b52
PA
81632020-05-19 Pedro Alves <palves@redhat.com>
8164
8165 * NEWS (set exec-file-mismatch): Adjust entry.
8166 * exec.c: Include "build-id.h".
8167 (validate_exec_file): Try to match build IDs instead of filenames.
8168 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8169 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8170 and pass down 'warn_if_slow'.
8171 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8172 gdb_bfd_open_closure to pass it down.
8173 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8174
4111f652
PA
81752020-05-19 Pedro Alves <palves@redhat.com>
8176
8177 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8178 * target.c (target_fileio_open_1): Rename to target_fileio_open
8179 and make extern. Use bool.
8180 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8181 (target_fileio_read_alloc_1): Adjust.
8182 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8183 (target_fileio_open_warn_if_slow): Delete declaration.
8184
ad80db5b
PA
81852020-05-19 Pedro Alves <palves@redhat.com>
8186
8187 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8188 Adjust all callers.
8189
1d6ce4d3
YS
81902020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8191
8192 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8193 whether disp is negative.
8194
9005fbbb
SM
81952020-05-19 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * symfile.h (struct symfile_segment_data)
8198 <~symfile_segment_data>: Remove.
8199 <segment_info>: Change to std::vector.
8200 * symfile.c (default_symfile_segments): Update.
8201 * elfread.c (elf_symfile_segments): Update.
8202
68b888ff
SM
82032020-05-19 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8206 <segments>: New.
8207 <segment_bases, segment_sizes>: Remove.
8208 * symfile.c (default_symfile_segments): Update.
8209 * elfread.c (elf_symfile_segments): Update.
8210 * remote.c (remote_target::get_offsets): Update.
8211 * solib-target.c (solib_target_relocate_section_addresses):
8212 Update.
8213
62982abd
SM
82142020-05-19 Simon Marchi <simon.marchi@efficios.com>
8215
8216 * symfile.h (struct symfile_segment_data): Initialize fields.
8217 <~symfile_segment_data>: Add.
8218 (symfile_segment_data_up): New.
8219 (struct sym_fns) <sym_segments>: Return a
8220 symfile_segment_data_up.
8221 (default_symfile_segments): Return a symfile_segment_data_up.
8222 (free_symfile_segment_data): Remove.
8223 (get_symfile_segment_data): Return a symfile_segment_data_up.
8224 * symfile.c (default_symfile_segments): Likewise.
8225 (get_symfile_segment_data): Likewise.
8226 (free_symfile_segment_data): Remove.
8227 (symfile_find_segment_sections): Update.
8228 * elfread.c (elf_symfile_segments): Return a
8229 symfile_segment_data_up.
8230 * remote.c (remote_target::get_offsets): Update.
8231 * solib-target.c (solib_target_relocate_section_addresses):
8232 Update.
8233 * symfile-debug.c (debug_sym_segments): Return a
8234 symfile_segment_data_up.
8235
7f204339
RO
82362020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8237
e52a0f1b
RO
8238 PR build/25981
8239 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8240 Hardcode register numbers.
8241
7f204339
RO
8242 PR build/25981
8243 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8244 procfs_find_LDT_entry): Remove.
8245 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8246 procfs_find_LDT_entry): Remove.
8247 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8248 Remove.
8249
7f32a4d5
PA
82502020-05-17 Pedro Alves <palves@redhat.com>
8251 Andrew Burgess <andrew.burgess@embecosm.com>
8252 Keno Fischer <keno@juliacomputing.com>
8253
8254 PR gdb/25741
8255 * breakpoint.c (build_target_condition_list): Update comments.
8256 (build_target_command_list): Update comments and skip matching
8257 locations.
8258 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8259 a separate function. Simplify "set breakpoint auto-hw off"
8260 handling.
8261 (insert_breakpoints): Update comment.
8262 (tracepoint_locations_match): New parameter. For breakpoints,
8263 compare location types too, if the caller wants to.
8264 (handle_automatic_hardware_breakpoints): New functions.
8265 (bp_location_is_less_than): Also sort by location type and
8266 hardware breakpoint length.
8267 (update_global_location_list): Handle "set breakpoint auto-hw on"
8268 here.
8269 (update_breakpoint_locations): Ask breakpoint_locations_match to
8270 ignore location types.
8271
7d93a1e0
SM
82722020-05-16 Simon Marchi <simon.marchi@efficios.com>
8273
8274 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8275 type::name instead.
8276
d0e39ea2
SM
82772020-05-16 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * gdbtypes.h (struct type) <name, set_name>: New methods.
8280 (TYPE_CODE): Use type::name. Change all call sites used to set
8281 the name to use type::set_name instead.
8282
2dab0c7b
TT
82832020-05-16 Tom Tromey <tom@tromey.com>
8284
8285 * top.c (quit_force): Update.
8286 * infrun.c (handle_no_resumed): Update.
8287 * top.h (all_uis): New function.
8288 (ALL_UIS): Remove.
8289
59f7bd8d
SM
82902020-05-16 Simon Marchi <simon.marchi@efficios.com>
8291
8292 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8293
9bf058f0
PA
82942020-05-16 Pedro Alves <palves@redhat.com>
8295
8296 * ia64-linux-nat.c
8297 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8298 Declare method.
8299 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8300
8f86ae1a
SM
83012020-05-15 Simon Marchi <simon.marchi@efficios.com>
8302
8303 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8304 (sparc64_adi_info): Likewise.
8305
d6bc0792
TT
83062020-05-15 Tom Tromey <tom@tromey.com>
8307
8308 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8309 block_objfile.
8310 (lookup_objfile_from_block): Remove.
8311 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8312 (lookup_global_symbol): Use block_objfile.
8313 * symtab.h (lookup_objfile_from_block): Don't declare.
8314 * printcmd.c (clear_dangling_display_expressions): Use
8315 block_objfile.
8316 * parse.c (operator_check_standard): Use block_objfile.
8317
8c14c3a3
TT
83182020-05-15 Tom Tromey <tom@tromey.com>
8319
8320 * language.c (language_alloc_type_symbol): Set
8321 SYMBOL_SECTION.
8322 * symtab.c (initialize_objfile_symbol): Remove.
8323 (allocate_symbol): Remove.
8324 (allocate_template_symbol): Remove.
8325 * dwarf2/read.c (fixup_go_packaging): Use "new".
8326 (new_symbol): Use "new".
8327 (read_variable): Don't call initialize_objfile_symbol. Use
8328 "new".
8329 (read_func_scope): Use "new".
8330 * xcoffread.c (process_xcoff_symbol): Don't call
8331 initialize_objfile_symbol.
8332 (SYMBOL_DUP): Remove.
8333 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8334 "new".
8335 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8336 (allocate_template_symbol): Don't declare.
8337 (struct symbol): Add copy constructor. Change defaults.
8338 * jit.c (finalize_symtab): Use "new".
8339 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8340 Use "new".
8341 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8342 (common_block_end): Use "new".
8343 * mdebugread.c (parse_symbol): Use "new".
8344 (new_symbol): Likewise.
8345
5b4a1a8d
PW
83462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8347
8348 * NEWS: Mention changes to help and apropos.
8349
57b4f16e
PW
83502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8351
8352 * command.h (enum command_class): Improve comments, document
8353 that class_alias is for user-defined aliases, give the class
8354 name for each class, remove unused class_xdb.
8355 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8356 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8357 by a precise class.
8358 * infcmd.c (_initialize_infcmd): Likewise.
8359 * reverse.c (_initialize_reverse): Likewise.
8360 * stack.c (_initialize_stack): Likewise.
8361 * symfile.c (_initialize_symfile): Likewise.
8362 * tracepoint.c (_initialize_tracepoint): Likewise.
8363
7c05caf7
PW
83642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8365
8366 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8367 when their aliased command is traversed.
8368 (help_cmd): Add fput_command_names_styled call to
8369 output command name and aliases when command has an alias.
8370
3b3aaacb
PW
83712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8372
8373 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8374 * cli/cli-decode.c (help_cmd_list): Declare as static,
8375 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8376 a command together with the command.
8377 (fput_command_name_styled, fput_command_names_styled): New functions.
8378 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8379 fput_command_name_styled.
8380 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8381 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8382
7aa1b46f
PW
83832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8384
8385 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8386 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8387 * command.h (cmd_show_list): Likewise.
8388 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8389 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8390
89bcba74
PW
83912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8392
8393 * unittests/command-def-selftests.c (traverse_command_structure):
8394 Verify all commands of a list have the same prefix command and
8395 that only the top cmdlist commands have a null prefix.
8396
3f4d92eb
PW
83972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8398
8399 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8400 as prefix, not one of its aliases.
8401 (set_cmd_prefix): Remove.
8402 (do_add_cmd): Centralize the setting of the prefix of a command, when
8403 command is defined after its full chain of prefix commands.
8404 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8405 (add_setshow_cmd_full): Likewise.
8406 (update_prefix_field_of_prefixed_commands): New function.
8407 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8408 update_prefix_field_of_prefixed_commands.
8409 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8410 addresses of remote_set_cmdlist and remote_show_cmdlist given
8411 as argument, not the address of an argument.
8412 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8413 * gdb/remote.c (_initialize_remote): Likewise.
8414
0605465f
PW
84152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8416
8417 * cli/cli-cmds.c (alias_command): Check for an existing alias
8418 using lookup_cmd_composition, as valid_command_p is too strict
8419 and forbids aliases that are the prefix of an existing alias
8420 or command.
8421 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8422 command is properly recognised as a valid command.
8423
58e6ac70
PW
84242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8425
8426 * unittests/help-doc-selftests.c: Rename to
8427 unittests/command-def-selftests.c
8428 * unittests/command-def-selftests.c (help_doc_tests): Update some
8429 comments.
8430 (command_structure_tests, traverse_command_structure): New namespace
8431 and function.
8432 (command_structure_invariants_tests): New function.
8433 (_initialize_command_def_selftests) Renamed from
8434 _initialize_help_doc_selftests, register command_structure_invariants
8435 selftest.
8436
a7b9ceb8
PW
84372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8438
8439 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8440 an alias of 'show'.
8441
b2188a06
JB
84422020-05-15 Joel Brobecker <brobecker@adacore.com>
8443
8444 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8445 ada_is_fixed_point_type. Update all callers.
8446 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8447 all callers.
8448 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8449 Update all callers.
8450 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8451 print_fixed_point_type. Update all callers.
8452 * ada-valprint.c (ada_value_print_num): Replace call to
8453 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8454
a51951c2
KB
84552020-05-14 Kevin Buettner <kevinb@redhat.com>
8456
8457 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8458 processors.
8459 (cpu_supports_bts): Add CV_AMD case.
8460
29d6859f
LM
84612020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8462 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * infrun.c (stop_all_threads): Collect multiple wait events at
8465 each pass.
8466
78134374
SM
84672020-05-14 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8470 type::code instead.
8471
67607e24
SM
84722020-05-14 Simon Marchi <simon.marchi@efficios.com>
8473
8474 * gdbtypes.h (struct type) <code, set_code>: New methods.
8475 (TYPE_CODE): Use type::code. Change all call sites used to set
8476 the code to use type::set_code instead.
8477
a05575d3
TBA
84782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8479 Tom de Vries <tdevries@suse.de>
8480 Pedro Alves <palves@redhat.com>
8481
8482 PR threads/25478
8483 * infrun.c (stop_all_threads): Do NOT ignore
8484 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8485 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8486 received.
8487 (handle_no_resumed): Remove code handling a live inferior with no
8488 threads.
8489 * remote.c (has_single_non_exited_thread): New.
8490 (remote_target::update_thread_list): Do not delete a thread if is
8491 the last thread of the process.
8492 * thread.c (thread_select): Call delete_exited_threads instead of
8493 prune_threads.
8494
6ad82919
TBA
84952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8496
8497 * infrun.c (stop_all_threads): Enable/disable thread events of all
8498 targets. Move a debug message denoting the end of the function
8499 into the SCOPED_EXIT block.
8500
d890404b
TBA
85012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8502
8503 * process-stratum-target.h: Include <set>.
8504 (all_non_exited_process_targets, switch_to_target_no_thread): New
8505 function declarations.
8506 * process-stratum-target.c (all_non_exited_process_targets)
8507 (switch_to_target_no_thread): New function implementations.
8508
293b3ebc
TBA
85092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8510
8511 * infrun.c (handle_inferior_event): Extract out a piece of code
8512 into...
8513 (mark_non_executing_threads): ...this new function.
8514
7ca9b62a
TBA
85152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8516
8517 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8518 use.
8519
fc75c28b
TBA
85202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8521
8522 * regcache.c (regcache_read_pc_protected): New function
8523 implementation that returns 0 if the PC cannot read via
8524 'regcache_read_pc'.
8525 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8526 instead of 'regcache_read_pc'.
8527 (keep_going_pass_signal): Ditto.
8528
a89febbd
TT
85292020-05-13 Tom Tromey <tromey@adacore.com>
8530
8531 * ada-lang.c (align_value): Remove.
8532 (ada_template_to_fixed_record_type_1): Use align_up.
8533
f7e23710
TBA
85342020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8535
8536 * async-event.c: Update the copyright year.
8537 * async-event.h: Update the copyright year.
8538
02ff80c2
SM
85392020-05-12 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * objfiles.h (is_addr_in_objfile,
8542 shared_objfile_contains_address_p): Return bool.
8543 * objfile.c (is_addr_in_objfile,
8544 shared_objfile_contains_address_p): Return bool.
8545
4fd6c7e8
TT
85462020-05-11 Tom Tromey <tromey@adacore.com>
8547
8548 * cli/cli-cmds.c (info_command): Restore.
8549 (_initialize_cli_cmds): Use add_prefix_command for "info".
8550 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8551
5eb68a39
TT
85522020-05-11 Tom Tromey <tromey@adacore.com>
8553
8554 * ada-lang.c (ada_value_primitive_field): Now public.
8555 * ada-lang.h (ada_value_primitive_field): Declare.
8556 * ada-valprint.c (print_field_values): Use
8557 ada_value_primitive_field for wrapper fields.
8558
7666722f
TV
85592020-05-11 Tom de Vries <tdevries@suse.de>
8560
8561 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8562 MODULE_DOMAIN.
8563
3ee6bb11
TV
85642020-05-11 Tom de Vries <tdevries@suse.de>
8565
8566 PR symtab/25941
8567 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8568 with length 0, if not gdb-produced.
8569 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8570
43434996
TV
85712020-05-09 Tom de Vries <tdevries@suse.de>
8572
8573 PR gdb/25955
8574 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8575 calculation.
8576
2f78cffc
TT
85772020-05-09 Tom Tromey <tom@tromey.com>
8578
8579 * top.c (server_command): Now bool.
8580 * top.h (server_command): Now bool.
8581
4f7bc5ed
TT
85822020-05-08 Tom Tromey <tromey@adacore.com>
8583
8584 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8585 already being processed.
8586
8be4b118
TT
85872020-05-08 Tom Tromey <tom@tromey.com>
8588
8589 * printcmd.c (struct display) <next>: Remove.
8590 <display>: New constructor.
8591 <exp_string>: Now a std::string.
8592 <enabled_p>: Now a bool.
8593 (display_number): Move definition earlier.
8594 (displays): Rename from display_chain. Now a std::vector.
8595 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8596 (display_command): Update.
8597 (do_one_display, disable_display)
8598 (enable_disable_display_command, do_enable_disable_display):
8599 Update.
8600 (free_display): Remove.
8601 (clear_displays): Rewrite.
8602 (delete_display): Update.
8603 (map_display_numbers): Use function_view. Remove "data"
8604 parameter. Update.
8605 (do_delete_display): Remove.
8606 (undisplay_command): Update.
8607 (do_one_display, do_displays, disable_display)
8608 (info_display_command): Update.
8609 (do_enable_disable_display): Remove.
8610 (enable_disable_display_command)
8611 (clear_dangling_display_expressions): Update.
8612
94c93c35
TT
86132020-05-08 Tom Tromey <tom@tromey.com>
8614
8615 * symtab.c (set_symbol_cache_size)
8616 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8617 (maintenance_print_symbol_cache_statistics): Update.
8618 * symmisc.c (print_symbol_bcache_statistics)
8619 (print_objfile_statistics, maintenance_print_objfiles)
8620 (maintenance_info_symtabs, maintenance_check_symtabs)
8621 (maintenance_expand_symtabs, maintenance_info_line_tables):
8622 Update.
8623 * symfile-debug.c (set_debug_symfile): Update.
8624 * source.c (forget_cached_source_info): Update.
8625 * python/python.c (gdbpy_progspaces): Update.
8626 * psymtab.c (maintenance_info_psymtabs): Update.
8627 * probe.c (parse_probes): Update.
8628 * linespec.c (iterate_over_all_matching_symtabs)
8629 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8630 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8631 * exec.c (exec_target::close): Update.
8632 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8633 * breakpoint.c (print_one_breakpoint_location)
8634 (create_longjmp_master_breakpoint)
8635 (create_std_terminate_master_breakpoint): Update.
8636 * progspace.c (program_spaces): Now a std::vector.
8637 (maybe_new_address_space): Update.
8638 (add_program_space): Remove.
8639 (program_space::program_space): Update.
8640 (remove_program_space): Update.
8641 (number_of_program_spaces): Remove.
8642 (print_program_space, update_address_spaces): Update.
8643 * progspace.h (program_spaces): Change type.
8644 (ALL_PSPACES): Remove.
8645 (number_of_program_spaces): Don't declare.
8646 (struct program_space) <next>: Remove.
8647
a1fd1ac9
TT
86482020-05-08 Tom Tromey <tom@tromey.com>
8649
8650 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8651 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8652 (enable_break): Update.
8653 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8654 (frv_fdpic_find_canonical_descriptor): Update.
8655 (frv_fetch_objfile_link_map): Update.
8656 * progspace.c (program_space::free_all_objfiles): Update.
8657 (program_space::solibs): New method.
8658 * progspace.h (struct program_space) <solibs>: New method.
8659 * solist.h (master_so_list): Don't declare.
8660 (ALL_SO_LIBS): Remove.
8661 * solib.h (so_list_head): Remove.
8662 (update_solib_list): Update comment.
8663 * solib.c (master_so_list): Remove.
8664 (solib_used, update_solib_list, solib_add)
8665 (info_sharedlibrary_command, clear_solib)
8666 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8667
38eae084
TT
86682020-05-08 Tom Tromey <tom@tromey.com>
8669
8670 * extension.c (extension_languages): Now a std::array.
8671 (ALL_EXTENSION_LANGUAGES): Remove.
8672 (get_ext_lang_defn, get_ext_lang_of_file)
8673 (eval_ext_lang_from_control_command): Update.
8674 (finish_ext_lang_initialization)
8675 (auto_load_ext_lang_scripts_for_objfile)
8676 (ext_lang_type_printers::ext_lang_type_printers)
8677 (apply_ext_lang_type_printers)
8678 (ext_lang_type_printers::~ext_lang_type_printers)
8679 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8680 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8681 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8682 (get_matching_xmethod_workers, ext_lang_colorize)
8683 (ext_lang_before_prompt): Update.
8684 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8685
596dc4ad
TT
86862020-05-08 Tom Tromey <tom@tromey.com>
8687
8688 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8689 overload.
8690 <swap_string, m_string>: Remove.
8691 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8692 Update.
8693 * stabsread.c (define_symbol, read_type): Update.
8694 * linespec.c (find_linespec_symbols): Update.
8695 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8696 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8697 * dbxread.c (read_dbx_symtab): Update.
8698 * cp-support.h (cp_canonicalize_string_full)
8699 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8700 Return unique_xmalloc_ptr.
8701 * cp-support.c (inspect_type): Update.
8702 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8703 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8704 Likewise.
8705 * c-typeprint.c (print_name_maybe_canonical): Update.
8706 * break-catch-throw.c (check_status_exception_catchpoint):
8707 Update.
8708
bf4cb9be
TV
87092020-05-08 Tom de Vries <tdevries@suse.de>
8710
8711 * infrun.c (follow_fork): Copy current_line and current_symtab to
8712 child thread.
8713
a1b68f28
SM
87142020-05-07 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * async-event.c (struct async_signal_handler, struct
8717 async_event_handler): Reformat, remove typedef.
8718
98d48915
SM
87192020-05-07 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8722 access thistype->main_type->dyn_prop_list directly.
8723
7aa91313
SM
87242020-05-07 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8727 (remove_dyn_prop): Remove. Update all users to use
8728 type::remove_dyn_prop.
8729 * gdbtypes.c (remove_dyn_prop): Rename to...
8730 (type::remove_dyn_prop): ... this.
8731
5c54719c
SM
87322020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8733
8734 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8735 (add_dyn_prop): Remove. Update all users to use
8736 type::add_dyn_prop.
8737 * gdbtypes.c (add_dyn_prop): Rename to...
8738 (type::add_dyn_prop): ... this.
8739
24e99c6c
SM
87402020-05-07 Simon Marchi <simon.marchi@efficios.com>
8741
8742 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8743 (get_dyn_prop): Remove. Update all users to use
8744 type::dyn_prop.
8745 * gdbtypes.c (get_dyn_prop): Rename to...
8746 (type::dyn_prop): ... this.
8747
0d4bf016
SM
87482020-05-06 Simon Marchi <simon.marchi@efficios.com>
8749
8750 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8751
ac4a4f1c
SM
87522020-05-06 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8755 instruction, skip it if it's there.
8756
a3bbacc1
SM
87572020-05-05 Simon Marchi <simon.marchi@efficios.com>
8758
8759 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8760
c3236f84
SM
87612020-05-04 Simon Marchi <simon.marchi@efficios.com>
8762
8763 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8764 * gdbtypes.c (recursive_dump_type): Remove use of
8765 TYPE_INCOMPLETE.
8766
3b6acaee
TT
87672020-05-03 Tom Tromey <tom@tromey.com>
8768
8769 * breakpoint.c (catch_command, tcatch_command): Remove.
8770 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8771 add_show_prefix_cmd.
8772 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8773 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8774 Remove.
8775 (add_internal_problem_command): Use add_basic_prefix_cmd,
8776 add_show_prefix_cmd.
8777 * mips-tdep.c (set_mipsfpu_command): Remove.
8778 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8779 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8780 (_initialize_index_cache): Use add_basic_prefix_cmd.
8781 * memattr.c (dummy_cmd): Remove.
8782 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8783 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8784 (_initialize_tui_win): Use add_basic_prefix_cmd,
8785 add_show_prefix_cmd.
8786 * cli/cli-logging.c (set_logging_command): Remove.
8787 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8788 add_show_prefix_cmd.
8789 (show_logging_command): Remove.
8790 * target.c (target_command): Remove.
8791 (add_target): Use add_basic_prefix_cmd.
8792
a51119cd
HD
87932020-05-02 Hannes Domani <ssbssa@yahoo.de>
8794
8795 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8796
652fc23a 87972020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8798
652fc23a
PW
8799 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8800 info_command.
8801
117539e6
KR
88022020-04-30 Kamil Rytarowski <n54@gmx.com>
8803
8804 * nbsd-nat.c (nbsd_enable_proc_events)
8805 (nbsd_nat_target::post_startup_inferior): Add.
8806 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8807 (nbsd_nat_target::update_thread_list): Rewrite.
8808 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8809 "PTRACE_LWP_CREATE".
8810 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8811
102e38eb 88122020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8813
102e38eb
PW
8814 * stack.c (_initialize_stack): Remove duplicated creation
8815 of "frame" command and "f" alias.
8816
ee9d1e5f
HD
88172020-04-30 Hannes Domani <ssbssa@yahoo.de>
8818
8819 PR gdb/18706
8820 * gdbtypes.c (check_typedef): Calculate size of array of
8821 stubbed type.
8822
627c7fb8
HD
88232020-04-30 Hannes Domani <ssbssa@yahoo.de>
8824
8825 PR gdb/15559
8826 * i386-tdep.c (i386_push_dummy_call): Call
8827 i386_thiscall_push_dummy_call.
8828 (i386_thiscall_push_dummy_call): New function.
8829 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8830 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8831 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8832
ffc2844e
SM
88332020-04-29 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * gdbarch.sh (do_read): Add shellcheck disable directive for
8836 warning SC2162.
8837
1207375d
SM
88382020-04-29 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8841 "referenced but not assigned" warning.
8842
9fdb2916
SM
88432020-04-29 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * gdbarch.sh: Remove code that sets fallbackdefault.
8846
759cea5e
SM
88472020-04-29 Simon Marchi <simon.marchi@efficios.com>
8848
8849 * gdbarch.sh: Use shell operators && and || instead of
8850 -a and -o.
8851
cb02ab24
SM
88522020-04-29 Simon Marchi <simon.marchi@efficios.com>
8853
8854 * gdbarch.sh: Use $(...) instead of `...`.
8855
a6fc5ffc
SM
88562020-04-29 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * gdbarch.sh: Use double quotes around variables.
8859
8d113d13
SM
88602020-04-29 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * gdbarch.sh: Use %s with printf, instead of variables in the
8863 format string.
8864
ed6acedd
TT
88652020-04-29 Tom Tromey <tromey@adacore.com>
8866
8867 PR ada/25875:
8868 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8869 type fields here.
8870 (read_enumeration_type): Call
8871 update_enumeration_type_from_children later. Update comments.
8872 (process_enumeration_scope): Don't create type fields.
8873
b68b1b58
KR
88742020-04-29 Kamil Rytarowski <n54@gmx.com>
8875
8876 * nbsd-tdep.c: Include "xml-syscall.h".
8877 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8878
f94b2e03
KR
88792020-04-29 Kamil Rytarowski <n54@gmx.com>
8880
8881 * nbsd-nat.c: Include "sys/wait.h".
8882 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8883 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8884 (nbsd_nat_target::remove_exec_catchpoint)
8885 (nbsd_nat_target::set_syscall_catchpoint): Add.
8886 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8887 (nbsd_nat_target::insert_exec_catchpoint)
8888 (nbsd_nat_target::remove_exec_catchpoint)
8889 (nbsd_nat_target::set_syscall_catchpoint): Add.
8890 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8891 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8892 `nbsd_get_syscall_number'.
8893
fc49bc72
TT
88942020-04-29 Tom Tromey <tom@tromey.com>
8895
8896 * stack.c (print_block_frame_labels): Remove.
8897
d642b692
HD
88982020-04-29 Hannes Domani <ssbssa@yahoo.de>
8899
8900 PR gdb/17320
8901 * ada-valprint.c (val_print_packed_array_elements): Move array
8902 end bracket to new line.
8903 (ada_val_print_string): Remove extra spaces before first array
8904 element.
8905 * c-valprint.c (c_value_print_array): Likewise.
8906 * m2-valprint.c (m2_print_array_contents): Likewise.
8907 (m2_value_print_inner): Likewise.
8908 * p-valprint.c (pascal_value_print_inner): Likewise.
8909 * valprint.c (generic_val_print_array): Likewise.
8910 (value_print_array_elements): Move first array element and array
8911 end bracket to new line.
8912
ea90f227
TV
89132020-04-29 Tom de Vries <tdevries@suse.de>
8914
8915 PR symtab/25889
8916 * linespec.c (find_method): Fix ix calculation.
8917
4498ef4f
KR
89182020-04-28 Kamil Rytarowski <n54@gmx.com>
8919
8920 * syscalls/update-netbsd.sh: New file.
8921 * syscalls/netbsd.xml: Regenerate.
8922 * data-directory/Makefile.in: Register `netbsd.xml' in
8923 `SYSCALLS_FILES'.
8924
a55e30b5
SM
89252020-04-28 Simon Marchi <simon.marchi@efficios.com>
8926
8927 * syscalls/update-freebsd.sh: Add double quotes.
8928
2b2fbab8
TT
89292020-04-28 Tom Tromey <tom@tromey.com>
8930
8931 * NEWS: Update.
8932 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8933 (cmdpy_init): Allow class_tui.
8934
a65189c9
TV
89352020-04-28 Mark Williams <mark@myosotissp.com>
8936
8937 PR gdb/24480
8938 * dwarf2read.c: Add missing assingments to list_in_scope when
8939 start_symtab was already called.
8940
1b95cdb7
SM
89412020-04-28 Simon Marchi <simon.marchi@efficios.com>
8942
8943 PR gdb/25881
8944 * dwarf2/read.c (offset_map_type): Use
8945 gdb:hash_enum<sect_offset> as hash function.
8946
15cd93d0
TV
89472020-04-28 Tom de Vries <tdevries@suse.de>
8948
8949 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8950 with DW_AT_signature.
8951
1eb39914
SM
89522020-04-27 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * configure.ac: Remove check for fs_base/gs_base in
8955 user_regs_struct.
8956 * configure: Re-generate.
8957 * config.in: Re-generate.
8958 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8959 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8960 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8961
991a3e2e
LM
89622020-04-27 Luis Machado <luis.machado@linaro.org>
8963
8964 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8965 problematic inline frame unwinding situation.
8966 * frame.c (frame_id_computed_p): New function.
8967 * frame.h (frame_id_computed_p): New prototype.
8968
361ba0e8
TT
89692020-04-26 Tom Tromey <tom@tromey.com>
8970
8971 * command.h (enum command_class) <class_pseudo>: Remove.
8972
bc3609fd
PW
89732020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8974
8975 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8976 and whitespace.
8977
b9771db7
KR
89782020-04-25 Kamil Rytarowski <n54@gmx.com>
8979
ec16513e
SM
8980 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8981 `PT_GET_PROCESS_STATE' block.
b9771db7 8982
7151c1af
TT
89832020-04-24 Tom Tromey <tom@tromey.com>
8984
8985 * symtab.h (symbol_get_demangled_name): Don't declare.
8986 * symtab.c (symbol_get_demangled_name): Remove.
8987 (general_symbol_info::natural_name)
8988 (general_symbol_info::demangled_name): Update.
8989
906bb4c5
TT
89902020-04-24 Tom Tromey <tom@tromey.com>
8991
8992 PR rust/25025:
8993 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8994
bcfe6157
TT
89952020-04-24 Tom Tromey <tom@tromey.com>
8996
8997 PR symtab/12707:
8998 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8999 exists.
9000 (new_symbol): Likewise.
9001 * compile/compile-object-load.c (get_out_value_type): Use
9002 symbol_matches_search_name.
9003
f049a313
TT
90042020-04-24 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/read.c (add_partial_symbol): Do not call
9007 compute_and_set_names.
9008
76e288d1
TT
90092020-04-24 Tom Tromey <tom@tromey.com>
9010
9011 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9012 overload.
9013
2467f4f6
TT
90142020-04-24 Tom Tromey <tom@tromey.com>
9015
9016 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9017 (add_psymbol_to_list): New overload. Make old overload call new
9018 one.
9019 * psympriv.h (add_psymbol_to_list): New overload.
9020
e61108c9
TT
90212020-04-24 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (partial_die_info::read) <case
9024 DW_AT_linkage_name>: Use value_as_string.
9025 (dwarf2_string_attr): Use value_as_string.
9026 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9027 method.
9028 * dwarf2/attribute.c (attribute::value_as_string): New method.
9029
8c87a452
TT
90302020-04-24 Tom Tromey <tom@tromey.com>
9031
9032 * symtab.c (general_symbol_info::natural_name)
9033 (general_symbol_info::demangled_name): Check for language_rust.
9034
787de330
TT
90352020-04-24 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9038 (dwarf2_physname): ... from here.
9039 (partial_die_info::read): Add Rust "{" hack.
9040
ff985671
TT
90412020-04-24 Tom Tromey <tom@tromey.com>
9042
9043 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9044 method.
9045 (symbol_set_demangled_name): Don't declare.
9046 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9047 symbol_set_demangled_name.
9048 (general_symbol_info::set_language)
9049 (general_symbol_info::compute_and_set_names): Update.
9050 * minsyms.c (minimal_symbol_reader::install): Update.
9051 * dwarf2/read.c (new_symbol): Update.
9052
1acda803
TT
90532020-04-24 Tom Tromey <tromey@adacore.com>
9054
9055 PR python/23662:
9056 * python/py-type.c (convert_field): Handle
9057 FIELD_LOC_KIND_DWARF_BLOCK.
9058 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9059 (typy_get_dynamic): Nw function.
9060 (type_object_getset): Add "dynamic".
9061 * NEWS: Add entry.
9062
d656f129
TT
90632020-04-24 Tom Tromey <tromey@adacore.com>
9064
9065 * ada-typeprint.c (print_choices, print_variant_part)
9066 (print_record_field_types_dynamic): New functions.
9067 (print_record_field_types): Use print_record_field_types_dynamic.
9068
7d79de9a
TT
90692020-04-24 Tom Tromey <tromey@adacore.com>
9070
9071 * dwarf2/read.c (handle_data_member_location): New overload.
9072 (dwarf2_add_field): Use it.
9073 (decode_locdesc): Add "computed" parameter. Update comment.
9074 * gdbtypes.c (is_dynamic_type_internal): Also look for
9075 FIELD_LOC_KIND_DWARF_BLOCK.
9076 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9077 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9078 virtual base classes.
9079 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9080 FIELD_LOC_KIND_DWARF_BLOCK.
9081
f8e89861
TT
90822020-04-24 Tom Tromey <tromey@adacore.com>
9083
9084 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9085 * gdbtypes.c (is_dynamic_type_internal): Check
9086 TYPE_HAS_DYNAMIC_LENGTH.
9087 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9088 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9089 New macros.
9090 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9091 constant.
9092
9c6a1327
TT
90932020-04-24 Tom Tromey <tromey@adacore.com>
9094
9095 * dwarf2/read.c (struct variant_field): Rewrite.
9096 (struct variant_part_builder): New.
9097 (struct nextfield): Remove "variant" field. Add "offset".
9098 (struct field_info): Add "current_variant_part" and
9099 "variant_parts".
9100 (alloc_discriminant_info): Remove.
9101 (alloc_rust_variant): New function.
9102 (quirk_rust_enum): Update.
9103 (dwarf2_add_field): Set "offset" member. Don't handle
9104 DW_TAG_variant_part.
9105 (offset_map_type): New typedef.
9106 (convert_variant_range, create_one_variant)
9107 (create_one_variant_part, create_variant_parts)
9108 (add_variant_property): New functions.
9109 (dwarf2_attach_fields_to_type): Call add_variant_property.
9110 (read_structure_type): Don't handle DW_TAG_variant_part.
9111 (handle_variant_part, handle_variant): New functions.
9112 (handle_struct_member_die): Use them.
9113 (process_structure_scope): Don't handle variant parts.
9114 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9115 (struct discriminant_info): Remove.
9116 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9117 (struct main_type) <flag_discriminated_union>: Remove.
9118 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9119 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9120 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9121 Update.
9122 * valops.c (value_union_variant): Remove.
9123 * value.h (value_union_variant): Don't declare.
9124
b249d2c2
TT
91252020-04-24 Tom Tromey <tromey@adacore.com>
9126
9127 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9128 (ada_value_primitive_packed_val): Update.
9129 * ada-valprint.c (ada_value_print_1): Update.
9130 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9131 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9132 just an address. Use evaluate_for_locexpr_baton.
9133 (dwarf2_evaluate_property): Update.
9134 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9135 array_view.
9136 * findvar.c (default_read_var_value): Update.
9137 * gdbtypes.c (compute_variant_fields_inner)
9138 (resolve_dynamic_type_internal): Update.
9139 (resolve_dynamic_type): Change type of valaddr parameter.
9140 * gdbtypes.h (resolve_dynamic_type): Update.
9141 * valarith.c (value_subscripted_rvalue): Update.
9142 * value.c (value_from_contents_and_address): Update.
9143
61122aa9
TT
91442020-04-24 Tom Tromey <tromey@adacore.com>
9145
9146 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9147 "push_initial_value" parameter.
9148 (dwarf2_evaluate_property): Likewise.
9149 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9150
ef83a141
TT
91512020-04-24 Tom Tromey <tromey@adacore.com>
9152
9153 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9154 (variant::matches, compute_variant_fields_recurse)
9155 (compute_variant_fields_inner, compute_variant_fields): New
9156 functions.
9157 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9158 Use resolved_type after type is made.
9159 (operator==): Add new cases.
9160 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9161 (struct discriminant_range, struct variant, struct variant_part):
9162 New.
9163 (union dynamic_prop_data) <variant_parts, original_type>: New
9164 members.
9165 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9166 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9167 constants.
9168 * value.c (unpack_bits_as_long): Now public.
9169 * value.h (unpack_bits_as_long): Declare.
9170
675127ec
TT
91712020-04-24 Tom Tromey <tromey@adacore.com>
9172
9173 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9174 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9175
9852ceef
HD
91762020-04-24 Hannes Domani <ssbssa@yahoo.de>
9177
9178 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9179
7632c6ce
KR
91802020-04-24 Kamil Rytarowski <n54@gmx.com>
9181
9182 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9183 (remove_fork_catchpoint, post_startup_inferior)
9184 (post_attach): Move...
9185 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9186 (remove_fork_catchpoint, post_startup_inferior)
9187 (post_attach): ...here.
9188 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9189 (remove_fork_catchpoint, post_startup_inferior)
9190 (post_attach): Move...
9191 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9192 (remove_fork_catchpoint, post_startup_inferior)
9193 (post_attach): ...here.
9194
7be2bb4f
TT
91952020-04-24 Tom Tromey <tromey@adacore.com>
9196
9197 * nat/windows-nat.h (struct windows_thread_info)
9198 <pc_adjusted>: New member.
9199 * windows-nat.c (windows_fetch_one_register): Check
9200 pc_adjusted.
9201 (windows_nat_target::get_windows_debug_event)
9202 (windows_nat_target::wait): Set pc_adjusted.
9203
f80cb3b4
TV
92042020-04-24 Tom de Vries <tdevries@suse.de>
9205
9206 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9207 Run gdb-add-index inside temp dir.
9208
29514b87
TT
92092020-04-23 Tom Tromey <tromey@adacore.com>
9210
9211 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9212 in loop.
9213
5939967b
LM
92142020-04-23 Luis Machado <luis.machado@linaro.org>
9215
9216 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9217 get_frame_register instead of gdbarch_unwind_pc.
9218
70bc38f5
TV
92192020-04-23 Tom de Vries <tdevries@suse.de>
9220
9221 * symtab.c (lookup_global_symbol): Prefer def over decl.
9222
de82891c
TV
92232020-04-23 Tom de Vries <tdevries@suse.de>
9224
9225 PR symtab/25807
9226 * block.c (best_symbol, better_symbol): Promote to external.
9227 * block.h (best_symbol, better_symbol): Declare.
9228 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9229 decl.
9230
ecc6c606
TT
92312020-04-23 Tom Tromey <tromey@adacore.com>
9232
9233 PR ada/25837:
9234 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9235 "const char *", not a "const std::string &".
9236 <name_and_matcher::operator==>: Update.
9237 * unittests/lookup_name_info-selftests.c: Change type of
9238 "result".
9239
740480b8
TT
92402020-04-23 Tom Tromey <tom@tromey.com>
9241
9242 * inferior.h (iterate_over_inferiors): Don't declare.
9243 * inferior.c (iterate_over_inferiors): Remove.
9244 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9245 Remove.
9246 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9247 use iterate_over_inferiors.
9248 (darwin_resume_inferior_it)
9249 (struct resume_inferior_threads_param)
9250 (darwin_resume_inferior_threads_it): Remove.
9251 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9252
ae3ab1f0
TV
92532020-04-23 Tom de Vries <tdevries@suse.de>
9254
9255 * blockframe.c (find_pc_partial_function): Use
9256 find_pc_sect_compunit_symtab rather than
9257 objfile->sf->qf->find_pc_sect_compunit_symtab.
9258
317d2668
TV
92592020-04-22 Tom de Vries <tdevries@suse.de>
9260
9261 PR symtab/25764
9262 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9263 in psymtabs.
9264
eea9e357
TV
92652020-04-22 Tom de Vries <tdevries@suse.de>
9266
9267 PR symtab/25801
9268 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9269 symtabs.
9270
3d5afab3
TV
92712020-04-22 Tom de Vries <tdevries@suse.de>
9272
9273 PR symtab/25700
9274 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9275 CU if already created.
9276
d43b7a2d
TBA
92772020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9278
9279 * infrun.c (displaced_step_fixup): Switch to the event_thread
9280 before calling displaced_step_restore, not after.
9281
d89edf9b
MM
92822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9283
9284 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9285 its inferior is not recorded by us.
9286 (record_btrace_target_open): Replace call to
9287 all_non_exited_threads () with call to current_inferior
9288 ()->non_exited_threads ().
9289 (record_btrace_target::stop_recording): Likewise.
9290 (record_btrace_target::close): Likewise.
9291 (record_btrace_target::wait): Likewise.
9292 (record_btrace_target::record_stop_replaying): Likewise.
9293
5897fd49
MM
92942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9295
9296 * btrace.c (btrace_enable): Throw an error on double enables and
9297 when enabling recording fails.
9298 (btrace_disable): Throw an error if the thread is not recorded.
9299
1a476b6d
MM
93002020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9301
9302 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9303 request if we do not have a thread_info.
9304
4778a5f8
TV
93052020-04-21 Tom de Vries <tdevries@suse.de>
9306
9307 PR gdb/25471
9308 * thread.c
9309 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9310 exception in get_frame_id.
9311
0fa7617d
TT
93122020-04-20 Tom Tromey <tromey@adacore.com>
9313
9314 * python/python.c (struct gdbpy_event): Mark move constructor as
9315 noexcept.
9316 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9317 constructor as noexcept.
9318 * completer.h (struct completion_result): Mark move constructor as
9319 noexcept.
9320 * completer.c (completion_result::completion_result): Use
9321 initialization style. Don't call reset_match_list.
9322
ad23bda0
MS
93232020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9324
9325 * MAINTAINERS (Write After Approval): Add myself.
9326
45e1f031
TT
93272020-04-18 Tom Tromey <tom@tromey.com>
9328
9329 * windows-tdep.c (init_w32_command_list)
9330 (w32_prefix_command_valid): Restore.
9331 (_initialize_windows_tdep): Call init_w32_command_list.
9332
08feed99
TT
93332020-04-18 Tom Tromey <tom@tromey.com>
9334
9335 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9336 * value.c (value_fn_field): Update.
9337 * valops.c (find_function_in_inferior)
9338 (value_allocate_space_in_inferior): Update.
9339 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9340 Update.
9341 * tui/tui-source.c (tui_source_window::set_contents): Update.
9342 * symtab.c (lookup_global_or_static_symbol)
9343 (find_function_start_sal_1, skip_prologue_sal)
9344 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9345 * symmisc.c (dump_msymbols, dump_symtab_1)
9346 (maintenance_print_one_line_table): Update.
9347 * symfile.c (init_entry_point_info, section_is_mapped)
9348 (list_overlays_command, simple_read_overlay_table)
9349 (simple_overlay_update_1): Update.
9350 * stap-probe.c (handle_stap_probe): Update.
9351 * stabsread.c (dbx_init_float_type, define_symbol)
9352 (read_one_struct_field, read_enum_type, read_range_type): Update.
9353 * source.c (info_line_command): Update.
9354 * python/python.c (gdbpy_source_objfile_script)
9355 (gdbpy_execute_objfile_script): Update.
9356 * python/py-type.c (save_objfile_types): Update.
9357 * python/py-objfile.c (py_free_objfile): Update.
9358 * python/py-inferior.c (python_new_objfile): Update.
9359 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9360 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9361 (maintenance_check_psymtabs): Update.
9362 * printcmd.c (info_address_command): Update.
9363 * objfiles.h (struct objfile) <arch>: New method, from
9364 get_objfile_arch.
9365 (get_objfile_arch): Don't declare.
9366 * objfiles.c (get_objfile_arch): Remove.
9367 (filter_overlapping_sections): Update.
9368 * minsyms.c (msymbol_is_function): Update.
9369 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9370 (output_nondebug_symbol): Update.
9371 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9372 (mdebug_expand_psymtab): Update.
9373 * machoread.c (macho_add_oso_symfile): Update.
9374 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9375 Update.
9376 * linux-fork.c (checkpoint_command): Update.
9377 * linespec.c (convert_linespec_to_sals): Update.
9378 * jit.c (finalize_symtab): Update.
9379 * infrun.c (insert_exception_resume_from_probe): Update.
9380 * ia64-tdep.c (ia64_find_unwind_table): Update.
9381 * hppa-tdep.c (internalize_unwinds): Update.
9382 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9383 Update.
9384 * gcore.c (call_target_sbrk): Update.
9385 * elfread.c (record_minimal_symbol, elf_symtab_read)
9386 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9387 (elf_gnu_ifunc_resolve_by_got): Update.
9388 * dwarf2/read.c (create_addrmap_from_index)
9389 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9390 (read_debug_names_from_section)
9391 (process_psymtab_comp_unit_reader, add_partial_symbol)
9392 (add_partial_subprogram, process_full_comp_unit)
9393 (read_file_scope, read_func_scope, read_lexical_block_scope)
9394 (read_call_site_scope, dwarf2_ranges_read)
9395 (dwarf2_record_block_ranges, dwarf2_add_field)
9396 (mark_common_block_symbol_computed, read_tag_pointer_type)
9397 (read_tag_string_type, dwarf2_init_float_type)
9398 (dwarf2_init_complex_target_type, read_base_type)
9399 (partial_die_info::read, partial_die_info::read)
9400 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9401 (dwarf2_fetch_die_loc_sect_off): Update.
9402 * dwarf2/loc.c (dwarf2_find_location_expression)
9403 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9404 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9405 (dwarf2_loc_desc_get_symbol_read_needs)
9406 (locexpr_describe_location_piece, locexpr_describe_location_1)
9407 (loclist_describe_location): Update.
9408 * dwarf2/index-write.c (write_debug_names): Update.
9409 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9410 * dtrace-probe.c (dtrace_process_dof): Update.
9411 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9412 (process_one_symbol): Update.
9413 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9414 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9415 (coff_read_enum_type): Update.
9416 * cli/cli-cmds.c (edit_command, list_command): Update.
9417 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9418 * breakpoint.c (create_overlay_event_breakpoint)
9419 (create_longjmp_master_breakpoint)
9420 (create_std_terminate_master_breakpoint)
9421 (create_exception_master_breakpoint, get_sal_arch): Update.
9422 * block.c (block_gdbarch): Update.
9423 * annotate.c (annotate_source_line): Update.
9424
0743fc83
TT
94252020-04-17 Tom Tromey <tromey@adacore.com>
9426
9427 * auto-load.c (show_auto_load_cmd): Remove.
9428 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9429 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9430 (maintenance_print_arc_command): Remove.
9431 * tui/tui-win.c (tui_command): Remove.
9432 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9433 * tui/tui-layout.c (tui_layout_command): Remove.
9434 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9435 * python/python.c (user_set_python, user_show_python): Remove.
9436 (_initialize_python): Use add_basic_prefix_cmd,
9437 add_show_prefix_cmd.
9438 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9439 (install_gdb_commands): Use add_basic_prefix_cmd,
9440 add_show_prefix_cmd.
9441 (info_guile_command): Remove.
9442 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9443 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9444 add_show_prefix_cmd.
9445 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9446 Remove do_set and do_show parameters.
9447 * cli/cli-style.c (set_style, show_style): Remove.
9448 (_initialize_cli_style): Use add_basic_prefix_cmd,
9449 add_show_prefix_cmd.
9450 (cli_style_option::add_setshow_commands): Remove do_set and
9451 do_show parameters.
9452 (cli_style_option::add_setshow_commands): Use
9453 add_basic_prefix_cmd, add_show_prefix_cmd.
9454 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9455 (set_style_name): Remove.
9456 * cli/cli-dump.c (dump_command, append_command): Remove.
9457 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9458 (tekhex_dump_command, binary_dump_command)
9459 (binary_append_command): Remove.
9460 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9461 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9462 (init_w32_command_list): Remove; move into ...
9463 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9464 * valprint.c (set_print, show_print, set_print_raw)
9465 (show_print_raw): Remove.
9466 (_initialize_valprint): Use add_basic_prefix_cmd,
9467 add_show_prefix_cmd.
9468 * typeprint.c (set_print_type, show_print_type): Remove.
9469 (_initialize_typeprint): Use add_basic_prefix_cmd,
9470 add_show_prefix_cmd.
9471 * record.c (set_record_command, show_record_command): Remove.
9472 (_initialize_record): Use add_basic_prefix_cmd,
9473 add_show_prefix_cmd.
9474 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9475 add_show_prefix_cmd.
9476 (info_command, show_command, set_debug, show_debug): Remove.
9477 * top.h (set_history, show_history): Don't declare.
9478 * top.c (set_history, show_history): Remove.
9479 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9480 (unset_tdesc_cmd): Remove.
9481 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 * symtab.c (info_module_command): Remove.
9484 (_initialize_symtab): Use add_basic_prefix_cmd.
9485 * symfile.c (overlay_command): Remove.
9486 (_initialize_symfile): Use add_basic_prefix_cmd.
9487 * sparc64-tdep.c (info_adi_command): Remove.
9488 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9489 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9490 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9491 add_show_prefix_cmd.
9492 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9493 (_initialize_serial): Use add_basic_prefix_cmd,
9494 add_show_prefix_cmd.
9495 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9496 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9497 add_show_prefix_cmd.
9498 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9499 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9500 add_show_prefix_cmd.
9501 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9502 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9503 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9504 add_show_prefix_cmd.
9505 * remote.c (remote_command, set_remote_cmd): Remove.
9506 (_initialize_remote): Use add_basic_prefix_cmd.
9507 * record-full.c (set_record_full_command)
9508 (show_record_full_command): Remove.
9509 (_initialize_record_full): Use add_basic_prefix_cmd,
9510 add_show_prefix_cmd.
9511 * record-btrace.c (cmd_set_record_btrace)
9512 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9513 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9514 (cmd_show_record_btrace_pt): Remove.
9515 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9516 add_show_prefix_cmd.
9517 * ravenscar-thread.c (set_ravenscar_command)
9518 (show_ravenscar_command): Remove.
9519 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9520 add_show_prefix_cmd.
9521 * mips-tdep.c (show_mips_command, set_mips_command)
9522 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9523 add_show_prefix_cmd.
9524 * maint.c (maintenance_command, maintenance_info_command)
9525 (maintenance_check_command, maintenance_print_command)
9526 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9527 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9528 add_show_prefix_cmd.
9529 (show_per_command_cmd): Remove.
9530 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9531 Remove.
9532 (maintenance_show_test_settings_cmd): Remove.
9533 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9534 add_show_prefix_cmd.
9535 * maint-test-options.c (maintenance_test_options_command):
9536 Remove.
9537 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9538 * macrocmd.c (macro_command): Remove
9539 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9540 * language.c (set_check, show_check): Remove.
9541 (_initialize_language): Use add_basic_prefix_cmd,
9542 add_show_prefix_cmd.
9543 * infcmd.c (unset_command): Remove.
9544 (_initialize_infcmd): Use add_basic_prefix_cmd.
9545 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9546 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9547 add_show_prefix_cmd.
9548 * go32-nat.c (go32_info_dos_command): Remove.
9549 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9550 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9551 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9552 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9553 (_initialize_frame): Use add_basic_prefix_cmd,
9554 add_show_prefix_cmd.
9555 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9556 (_initialize_dcache): Use add_basic_prefix_cmd,
9557 add_show_prefix_cmd.
9558 * cp-support.c (maint_cplus_command): Remove.
9559 (_initialize_cp_support): Use add_basic_prefix_cmd.
9560 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9561 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9562 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9563 add_basic_prefix_cmd, add_show_prefix_cmd.
9564 * breakpoint.c (save_command): Remove.
9565 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9566 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9567 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9568 add_show_prefix_cmd.
9569 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9570 (set_ada_command, show_ada_command): Remove.
9571 (_initialize_ada_language): Use add_basic_prefix_cmd,
9572 add_show_prefix_cmd.
9573 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9574
3557f442
KR
95752020-04-16 Kamil Rytarowski <n54@gmx.com>
9576
9577 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9578 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9579
16197208
SM
95802020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9581
9582 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9583 warning messages.
9584
00ac85d3
SM
95852020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9586
9587 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9588 import table is not at beginning of .idata section.
9589
381ce63f
PA
95902020-04-16 Pedro Alves <palves@redhat.com>
9591
9592 * inferior.c (delete_inferior): Use delete operator directly
9593 instead of delete_program_space.
9594 * progspace.c (add_program_space): New, factored out from
9595 program_space::program_space.
9596 (remove_program_space): New, factored out from
9597 delete_program_space.
9598 (program_space::program_space): Remove intro comment. Rewrite.
9599 (program_space::~program_space): Remove intro comment. Call
9600 remove_program_space.
9601 (delete_program_space): Delete.
9602 * progspace.h (program_space::program_space): Make explicit. Move
9603 intro comment here, adjusted.
9604 (program_space::~program_space): Move intro comment here,
9605 adjusted.
9606 (delete_program_space): Remove.
9607
a010605f
TT
96082020-04-16 Tom Tromey <tromey@adacore.com>
9609
9610 * windows-nat.c (windows_nat::handle_access_violation): New
9611 function.
9612 * nat/windows-nat.h (handle_access_violation): Declare.
9613 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9614 windows-nat.c. Call handle_access_violation.
9615
efba5c23
TV
96162020-04-16 Tom de Vries <tdevries@suse.de>
9617
9618 PR symtab/25791
9619 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9620 CUs without psymtab.
9621
97ed802d
KB
96222020-04-16 Kevin Buettner <kevinb@redhat.com>
9623
9624 * python/python.c (do_start_initialization): Don't call
9625 PyEval_InitThreads for Python 3.9 and beyond.
9626
c7d64809
KR
96272020-04-15 Kamil Rytarowski <n54@gmx.com>
9628
9629 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9630 thread functions.
9631 (obsd_nat_target::wait): Likewise.
9632
ce127a96
TT
96332020-04-15 Tom Tromey <tromey@adacore.com>
9634
9635 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9636 (DEBUG_EXCEPT): Use debug_printf.
9637
99f1bc6a
AB
96382020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9639
9640 * completer.c (class completion_tracker::completion_hash_entry)
9641 <hash_name>: New member function.
9642 (completion_tracker::discard_completions): New callback to hash a
9643 completion_hash_entry, pass this to htab_create_alloc.
9644
a0e9b532
JT
96452016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9646
9647 * windows-nat.c (windows_make_so): Warn rather than stopping with
9648 an error if realpath() fails.
9649
06ca5dd4
KR
96502020-04-14 Kamil Rytarowski <n54@gmx.com>
9651
9652 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9653 (nbsd_nat_target::info_proc): Add do_status.
9654
194d088f
TV
96552020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9656 Tom de Vries <tdevries@suse.de>
9657
9658 PR symtab/25718
9659 * psympriv.h (struct partial_symtab::read_symtab)
9660 (struct partial_symtab::expand_psymtab)
9661 (struct partial_symtab::read_dependencies): Update comments.
9662 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9663 read_symtab for includer.
9664 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9665 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9666 (struct dwarf2_include_psymtab::m_readin): Remove.
9667 (struct dwarf2_include_psymtab::includer): New member function.
9668 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9669
c1a66c06
TV
96702020-04-14 Tom de Vries <tdevries@suse.de>
9671
9672 PR symtab/25720
9673 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9674 with NULL symbol_matcher and lookup_name.
9675 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9676 and lookup_name.
9677 * dwarf2/read.c (dw2_expand_symtabs_matching)
9678 (dw2_debug_names_expand_symtabs_matching): Same.
9679 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9680 Make lookup_name a pointer. Update comment.
9681 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9682 lookup_name being a pointer.
9683 * symfile.c (expand_symtabs_matching): Same.
9684 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9685 * linespec.c (iterate_over_all_matching_symtabs): Same.
9686
400b5eca
TT
96872020-04-13 Tom Tromey <tom@tromey.com>
9688
9689 * run-on-main-thread.c: Update include.
9690 * unittests/main-thread-selftests.c: Update include.
9691 * tui/tui-win.c: Update include.
9692 * tui/tui-io.c: Update include.
9693 * tui/tui-interp.c: Update include.
9694 * tui/tui-hooks.c: Update include.
9695 * top.h: Update include.
9696 * top.c: Update include.
9697 * ser-base.c: Update include.
9698 * remote.c: Update include.
9699 * remote-notif.c: Update include.
9700 * remote-fileio.c: Update include.
9701 * record-full.c: Update include.
9702 * record-btrace.c: Update include.
9703 * python/python.c: Update include.
9704 * posix-hdep.c: Update include.
9705 * mingw-hdep.c: Update include.
9706 * mi/mi-main.c: Update include.
9707 * mi/mi-interp.c: Update include.
9708 * main.c: Update include.
9709 * linux-nat.c: Update include.
9710 * interps.c: Update include.
9711 * infrun.c: Update include.
9712 * inf-loop.c: Update include.
9713 * event-top.c: Update include.
9714 * event-loop.c: Move to ../gdbsupport/.
9715 * event-loop.h: Move to ../gdbsupport/.
9716 * async-event.h: Update include.
9717 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9718
93b54c8e
TT
97192020-04-13 Tom Tromey <tom@tromey.com>
9720
9721 * tui/tui-win.c: Include async-event.h.
9722 * remote.c: Include async-event.h.
9723 * remote-notif.c: Include async-event.h.
9724 * record-full.c: Include async-event.h.
9725 * record-btrace.c: Include async-event.h.
9726 * infrun.c: Include async-event.h.
9727 * event-top.c: Include async-event.h.
9728 * event-loop.h: Move some declarations to async-event.h.
9729 * event-loop.c: Don't include ser-event.h or top.h. Move some
9730 code to async-event.c.
9731 * async-event.h: New file.
9732 * async-event.c: New file.
9733 * Makefile.in (COMMON_SFILES): Add async-event.c.
9734 (HFILES_NO_SRCDIR): Add async-event.h.
9735
c1cd3163
TT
97362020-04-13 Tom Tromey <tom@tromey.com>
9737
9738 * utils.c (flush_streams): New function.
9739 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9740
29f2bf4f
TT
97412020-04-13 Tom Tromey <tom@tromey.com>
9742
9743 * event-loop.c (handle_file_event): Use warning, not
9744 printf_unfiltered.
9745
98029d02
TT
97462020-04-13 Tom Tromey <tom@tromey.com>
9747
9748 * event-loop.c: Include <chrono>.
9749
06cc9596
TT
97502020-04-13 Tom Tromey <tom@tromey.com>
9751
9752 * gdb_select.h: Move to ../gdbsupport/.
9753 * event-loop.c: Update include path.
9754 * top.c: Update include path.
9755 * ser-base.c: Update include path.
9756 * ui-file.c: Update include path.
9757 * ser-tcp.c: Update include path.
9758 * guile/scm-ports.c: Update include path.
9759 * posix-hdep.c: Update include path.
9760 * ser-unix.c: Update include path.
9761 * gdb_usleep.c: Update include path.
9762 * mingw-hdep.c: Update include path.
9763 * inflow.c: Update include path.
9764 * infrun.c: Update include path.
9765 * event-top.c: Update include path.
9766
8ae8e197
TT
97672020-04-13 Tom Tromey <tom@tromey.com>
9768
9769 * configure: Rebuild.
9770 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9771
58cf28e8
TT
97722020-04-13 Tom Tromey <tom@tromey.com>
9773
9774 * event-loop.h (start_event_loop): Don't declare.
9775 * event-loop.c (start_event_loop): Move...
9776 * main.c (start_event_loop): ...here. Now static.
9777
b7f999ae
SDJ
97782020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9779
9780 * MAINTAINERS: Update my email address.
9781
1085dfd4
KR
97822020-04-12 Kamil Rytarowski <n54@gmx.com>
9783
9784 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9785 IP_ALL.
9786
49d1d1f5
KR
97872020-04-12 Kamil Rytarowski <n54@gmx.com>
9788
9789 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9790 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9791
b4848d2a
KR
97922020-04-12 Kamil Rytarowski <n54@gmx.com>
9793
9794 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9795 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9796
51c133d5
KR
97972020-04-12 Kamil Rytarowski <n54@gmx.com>
9798
9799 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9800
54b8cbd0
KR
98012020-04-11 Kamil Rytarowski <n54@gmx.com>
9802
9803 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9804 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9805 (nbsd_nat_target::info_proc): New functions.
9806 * nbsd-nat.c (kinfo_get_vmmap): New function.
9807 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9808 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9809 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9810 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9811 functions.
9812 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9813 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9814 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9815 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9816 (KINFO_VME_FLAG_GROWS_DOWN): New.
9817
cf83625d
AS
98182020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9819
9820 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9821 bit shift.
9822
0c4311ab
TT
98232020-04-10 Tom Tromey <tromey@adacore.com>
9824
9825 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9826
3e65b3e9
TT
98272020-04-10 Tom Tromey <tromey@adacore.com>
9828
9829 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9830 separate debug files.
9831
13302e95
HD
98322020-04-10 Hannes Domani <ssbssa@yahoo.de>
9833
9834 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9835 Move to...
9836 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9837 ... here.
9838 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9839 Check for STATUS_WX86_BREAKPOINT.
9840 (windows_nat_target::wait): Same.
9841
bdfc1e8a
TV
98422020-04-10 Tom de Vries <tdevries@suse.de>
9843
9844 PR cli/25808
9845 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9846
f4460aec
SM
98472020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9848
9849 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9850 (Write After Approval): Remove Tom de Vries.
9851
a25198bb
BE
98522020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9853
9854 revert partially:
9855 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9856
aac66a4c
SM
9857 * buildsym.c (record_line): Fix undefined behavior and preserve
9858 lines at eof.
a25198bb 9859
206c98a6
KR
98602020-04-09 Kamil Rytarowski <n54@gmx.com>
9861
9862 * auxv.h (svr4_auxv_parse): New.
9863 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9864 and generic_auxv_parse.
9865 (svr4_auxv_parse): Add.
9866 * obsd-tdep.c: Include "auxv.h".
9867 (obsd_auxv_parse): Remove.
9868 (obsd_init_abi): Remove comment.
9869 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9870 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9871 * nbsd-tdep.c: Include "auxv.h".
9872 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9873
71fbdbaf
TT
98742020-04-08 Tom Tromey <tromey@adacore.com>
9875
9876 * nat/windows-nat.h (last_wait_event): Don't declare.
9877 (wait_for_debug_event): Update comment.
9878 * nat/windows-nat.c (last_wait_event): Now static.
9879
2c1d95e8
TT
98802020-04-08 Tom Tromey <tromey@adacore.com>
9881
9882 * windows-nat.c (wait_for_debug_event): Move to
9883 nat/windows-nat.c.
9884 * nat/windows-nat.h (wait_for_debug_event): Declare.
9885 * nat/windows-nat.c (wait_for_debug_event): Move from
9886 windows-nat.c. No longer static.
9887
d2977bc4
TT
98882020-04-08 Tom Tromey <tromey@adacore.com>
9889
9890 * windows-nat.c (get_windows_debug_event): Use
9891 fetch_pending_stop.
9892 * nat/windows-nat.h (fetch_pending_stop): Declare.
9893 * nat/windows-nat.c (fetch_pending_stop): New function.
9894
e758e19c
TT
98952020-04-08 Tom Tromey <tromey@adacore.com>
9896
9897 * windows-nat.c (windows_continue): Use matching_pending_stop and
9898 continue_last_debug_event.
9899 * nat/windows-nat.h (matching_pending_stop)
9900 (continue_last_debug_event): Declare.
9901 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9902 (matching_pending_stop, continue_last_debug_event): New
9903 functions.
9904
8d30e395
TT
99052020-04-08 Tom Tromey <tromey@adacore.com>
9906
9907 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9908 (handle_exception_result): Move to nat/windows-nat.h.
9909 (DEBUG_EXCEPTION_SIMPLE): Remove.
9910 (windows_nat::handle_ms_vc_exception): New function.
9911 (handle_exception): Move to nat/windows-nat.c.
9912 (get_windows_debug_event): Update.
9913 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9914 nat/windows-nat.c.
9915 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9916 (handle_exception_result): Move from windows-nat.c.
9917 (handle_exception): Declare.
9918 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9919 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9920 windows-nat.c.
9921
29de418d
TT
99222020-04-08 Tom Tromey <tromey@adacore.com>
9923
9924 * windows-nat.c (exception_count, event_count): Remove.
9925 (handle_exception, get_windows_debug_event)
9926 (do_initial_windows_stuff): Update.
9927
a816ba18
TT
99282020-04-08 Tom Tromey <tromey@adacore.com>
9929
9930 * windows-nat.c (windows_nat::handle_load_dll)
9931 (windows_nat::handle_unload_dll): Rename. No longer static.
9932 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9933 Declare.
9934
a00caa12
TT
99352020-04-08 Tom Tromey <tromey@adacore.com>
9936
9937 * complaints.h (stop_whining): Declare at top-level.
9938 (complaint): Don't declare stop_whining.
9939
d41b524f
TT
99402020-04-08 Tom Tromey <tromey@adacore.com>
9941
9942 * windows-nat.c (windows_nat::handle_output_debug_string):
9943 Rename. No longer static.
9944 * nat/windows-nat.h (handle_output_debug_string): Declare.
9945
3c76026d
TT
99462020-04-08 Tom Tromey <tromey@adacore.com>
9947
9948 * windows-nat.c (current_process_handle, current_process_id)
9949 (main_thread_id, last_sig, current_event, last_wait_event)
9950 (current_windows_thread, desired_stop_thread_id, pending_stops)
9951 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9952 (display_selectors, fake_create_process)
9953 (get_windows_debug_event): Update.
9954 * nat/windows-nat.h (current_process_handle, current_process_id)
9955 (main_thread_id, last_sig, current_event, last_wait_event)
9956 (current_windows_thread, desired_stop_thread_id, pending_stops)
9957 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9958 * nat/windows-nat.c (current_process_handle, current_process_id)
9959 (main_thread_id, last_sig, current_event, last_wait_event)
9960 (current_windows_thread, desired_stop_thread_id, pending_stops)
9961 (siginfo_er): New globals. Move from windows-nat.c.
9962
9d8679cc
TT
99632020-04-08 Tom Tromey <tromey@adacore.com>
9964
9965 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9966 (handle_load_dll): Update.
9967 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9968
28688adf
TT
99692020-04-08 Tom Tromey <tromey@adacore.com>
9970
9971 * windows-nat.c (enum thread_disposition_type): Move to
9972 nat/windows-nat.h.
9973 (windows_nat::thread_rec): Rename from thread_rec. No longer
9974 static.
9975 (windows_add_thread, windows_nat_target::fetch_registers)
9976 (windows_nat_target::store_registers, handle_exception)
9977 (windows_nat_target::resume, get_windows_debug_event)
9978 (windows_nat_target::get_tib_address)
9979 (windows_nat_target::thread_name)
9980 (windows_nat_target::thread_alive): Update.
9981 * nat/windows-nat.h (enum thread_disposition_type): Move from
9982 windows-nat.c.
9983 (thread_rec): Declare.
9984
4834dad0
TT
99852020-04-08 Tom Tromey <tromey@adacore.com>
9986
9987 * windows-nat.c: Add "using namespace".
9988 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9989 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9990
65bafd5b
TT
99912020-04-08 Tom Tromey <tromey@adacore.com>
9992
9993 * nat/windows-nat.h (struct windows_thread_info): Declare
9994 destructor.
9995 * nat/windows-nat.c (~windows_thread_info): New.
9996
0a4afda3
TT
99972020-04-08 Tom Tromey <tromey@adacore.com>
9998
9999 PR gdb/22992
10000 * windows-nat.c (current_event): Update comment.
10001 (last_wait_event, desired_stop_thread_id): New globals.
10002 (struct pending_stop): New.
10003 (pending_stops): New global.
10004 (windows_nat_target) <stopped_by_sw_breakpoint>
10005 <supports_stopped_by_sw_breakpoint>: New methods.
10006 (windows_fetch_one_register): Add assertions. Adjust PC.
10007 (windows_continue): Handle pending stops. Suspend other threads
10008 when stepping. Use last_wait_event
10009 (wait_for_debug_event): New function.
10010 (get_windows_debug_event): Use wait_for_debug_event. Handle
10011 pending stops. Queue spurious stops.
10012 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10013 (windows_nat_target::kill): Use wait_for_debug_event.
10014 * nat/windows-nat.h (struct windows_thread_info)
10015 <stopped_at_software_breakpoint>: New field.
10016 * nat/windows-nat.c (windows_thread_info::resume): Clear
10017 stopped_at_software_breakpoint.
10018
8e61ebec
TT
100192020-04-08 Tom Tromey <tromey@adacore.com>
10020
10021 * windows-nat.c (enum thread_disposition_type): New.
10022 (thread_rec): Replace "get_context" parameter with "disposition";
10023 change type.
10024 (windows_add_thread, windows_nat_target::fetch_registers)
10025 (windows_nat_target::store_registers, handle_exception)
10026 (windows_nat_target::resume, get_windows_debug_event)
10027 (windows_nat_target::get_tib_address)
10028 (windows_nat_target::thread_name)
10029 (windows_nat_target::thread_alive): Update.
10030
98a03287
TT
100312020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10034 (windows_continue): Use windows_continue::resume.
10035 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10036 resume>: Declare new methods.
10037 * nat/windows-nat.c: New file.
10038 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10039
7c7411bc
TT
100402020-04-08 Tom Tromey <tromey@adacore.com>
10041
10042 * windows-nat.c (windows_add_thread, windows_delete_thread)
10043 (windows_nat_target::fetch_registers)
10044 (windows_nat_target::store_registers, fake_create_process)
10045 (windows_nat_target::resume, windows_nat_target::resume)
10046 (get_windows_debug_event, windows_nat_target::wait)
10047 (windows_nat_target::pid_to_str)
10048 (windows_nat_target::get_tib_address)
10049 (windows_nat_target::get_ada_task_ptid)
10050 (windows_nat_target::thread_name)
10051 (windows_nat_target::thread_alive): Use lwp, not tid.
10052
2950fdf7
TT
100532020-04-08 Tom Tromey <tromey@adacore.com>
10054
10055 * windows-nat.c (handle_exception)
10056 (windows_nat_target::thread_name): Update.
10057 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10058 <name>: Now unique_xmalloc_ptr.
10059
62fe396b
TT
100602020-04-08 Tom Tromey <tromey@adacore.com>
10061
10062 * windows-nat.c (thread_rec)
10063 (windows_nat_target::fetch_registers): Update.
10064 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10065 Update comment.
10066 <debug_registers_changed, reload_context>: Now bool.
10067
e9534bd2
TT
100682020-04-08 Tom Tromey <tromey@adacore.com>
10069
10070 * windows-nat.c (windows_add_thread): Use new.
10071 (windows_init_thread_list, windows_delete_thread): Use delete.
10072 (get_windows_debug_event): Update.
10073 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10074 destructor, and initializers.
10075
ae1f8880
TT
100762020-04-08 Tom Tromey <tromey@adacore.com>
10077
10078 * windows-nat.c (struct windows_thread_info): Remove.
10079 * nat/windows-nat.h: New file.
10080
55a1e039
TT
100812020-04-08 Tom Tromey <tromey@adacore.com>
10082
10083 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10084 (thread_rec, windows_add_thread, windows_delete_thread)
10085 (windows_continue): Update.
10086
93366324
TT
100872020-04-08 Tom Tromey <tromey@adacore.com>
10088
10089 * windows-nat.c (struct windows_thread_info): Remove typedef.
10090 (thread_head): Remove.
10091 (thread_list): New global.
10092 (thread_rec, windows_add_thread, windows_init_thread_list)
10093 (windows_delete_thread, windows_continue): Update.
10094
0f2265e2
SM
100952020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10096
10097 * windows-tdep.h (windows_init_abi): Add comment.
10098 (cygwin_init_abi): New declaration.
10099 * windows-tdep.c: Split signal enumeration in two, one for
10100 Windows and one for Cygwin.
10101 (windows_gdb_signal_to_target): Only deal with signal of the
10102 Windows OS ABI.
10103 (cygwin_gdb_signal_to_target): New function.
10104 (windows_init_abi): Rename to windows_init_abi_common, don't set
10105 gdb_signal_to_target gdbarch method. Add new new function with
10106 this name.
10107 (cygwin_init_abi): New function.
10108 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10109 comment. Don't call windows_init_abi.
10110 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10111 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10112 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10113 i386_windows_init_abi_common, don't call windows_init_abi. Add
10114 a new function of this name.
10115 (i386_cygwin_init_abi): New function.
10116 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10117 OS ABI Cygwin.
10118
3810f182
SM
101192020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10120
10121 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10122 parameter.c.
10123 (dwarf2_read_gdb_index): Update.
10124
063f8e80
KR
101252020-04-07 Kamil Rytarowski <n54@gmx.com>
10126
10127 * nbsd-tdep.c: Include "objfiles.h".
10128 (nbsd_skip_solib_resolver): New.
10129 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10130
85a9510c 101312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10132
10133 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10134 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10135 with DW_LLE_base_addressx are being emitted in DWARFv5.
10136 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10137 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10138 unsigned integer.
10139
9fc3eaae 101402020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10141
10142 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10143 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10144 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10145 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10146 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10147 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10148 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10149
10150
41144253 101512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10152
10153 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10154 (read_loclist_index): New function definition.
10155 (lookup_loclist_base): New function definition.
10156 (read_loclist_header): New function definition.
10157 (dwarf2_cu): Add loclist_base and loclist_header field.
10158 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10159 (read_full_die_1): Read the value of DW_AT_loclists_base.
10160 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10161 (read_attribute_value): Handle DW_FORM_loclistx.
10162 (skip_one_die): Handle DW_FORM_loclistx.
10163 (loclist_header): New structure declaration.
10164 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10165
9f4e76a4
SM
101662020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10167
10168 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10169 constructor. Remove `addr` parameter from other constructor and
10170 add `per_cu` parameter.
10171 * dwarf2/read.c (create_partial_symtab): Update.
10172
25c11aca
TV
101732020-04-07 Tom de Vries <tdevries@suse.de>
10174
10175 PR symtab/25796
10176 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10177 (partial_die_info::fixup): Inherit has_const_value.
10178
5707e24b
TV
101792020-04-07 Tom de Vries <tdevries@suse.de>
10180
10181 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10182 symbols without address.
10183
05f00e22
KR
101842020-04-06 Kamil Rytarowski <n54@gmx.com>
10185
10186 * nbsd-nat.h (struct thread_info): Add forward declaration.
10187 (nbsd_nat_target::thread_alive): Add.
10188 (nbsd_nat_target::thread_name): Likewise.
10189 (nbsd_nat_target::update_thread_list): Likewise.
10190 (update_thread_list::post_attach): Likewise.
10191 (post_attach::pid_to_str): Likewise.
10192 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10193 (nbsd_thread_lister): Add.
10194 (nbsd_nat_target::thread_alive): Likewise.
10195 (nbsd_nat_target::thread_name): Likewise.
10196 (nbsd_add_threads): Likewise.
10197 (update_thread_list::post_attach): Likewise.
10198 (nbsd_nat_target::update_thread_list): Likewise.
10199 (post_attach::pid_to_str): Likewise.
10200
6ee448cc
TT
102012020-04-06 Tom Tromey <tromey@adacore.com>
10202
10203 * ada-valprint.c (print_variant_part): Extract the variant field.
10204 (print_field_values): Use the field as the outer value when
10205 recursing.
10206
dea34e8c
TT
102072020-04-06 Tom Tromey <tromey@adacore.com>
10208
10209 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10210 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10211 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10212 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10213 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10214
93689ce9
TT
102152020-04-06 Tom Tromey <tromey@adacore.com>
10216
10217 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10218 TYPE_CODE_ERROR.
10219
79743962
KR
102202020-04-06 Kamil Rytarowski <n54@gmx.com>
10221
10222 * nbsd-tdep.c: Include "gdbarch.h".
10223 Define enum with NetBSD signal numbers.
10224 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10225 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10226 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10227 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10228 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10229 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10230 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10231 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10232 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10233 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10234 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10235 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10236
9e7c9a03
HD
102372020-04-03 Hannes Domani <ssbssa@yahoo.de>
10238
10239 PR gdb/25325
10240 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10241
d9e49b61
TT
102422020-04-03 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10245 Read constant block.
10246
e0fc5c3f
SM
102472020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10248
10249 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10250 (gdb_bfd_get_full_section_contents): New declaration.
10251 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10252 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10253 gdb_bfd_get_full_section_contents.
10254
e2ff18a0
SM
102552020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10256
10257 * exec.c (build_section_table): Replace internal_error with
10258 gdb_assert.
10259 (section_table_xfer_memory_partial): Likewise.
10260 * mdebugread.c (parse_partial_symbols): Likewise.
10261 * psymtab.c (lookup_partial_symbol): Likewise.
10262 * utils.c (wrap_here): Likewise.
10263
0830d301
TT
102642020-04-02 Tom Tromey <tromey@adacore.com>
10265
10266 * f-lang.c (build_fortran_types): Use arch_type to initialize
10267 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10268
e7da7f8f
TT
102692020-04-02 Tom Tromey <tromey@adacore.com>
10270
10271 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10272 of attributes.
10273
c90d28ac
AB
102742020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10275 Bernd Edlinger <bernd.edlinger@hotmail.de>
10276 Tom Tromey <tromey@adacore.com>
10277
10278 * buildsym.c (buildsym_compunit::record_line): Remove
10279 deduplication code.
10280
1aa98955
TV
102812020-04-02 Tom de Vries <tdevries@suse.de>
10282
10283 PR ada/24671
10284 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10285
d3214198
TV
102862020-04-02 Tom de Vries <tdevries@suse.de>
10287
10288 * dwarf2/read.c (dwarf2_gdb_index_functions,
10289 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10290 NULL.
10291 * psymtab.c (psym_lookup_global_symbol_language): New function.
10292 (psym_functions): Init psym_lookup_global_symbol_language with
10293 psym_lookup_global_symbol_language.
10294 * symfile-debug.c (debug_sym_quick_functions): Init
10295 lookup_global_symbol_language with NULL.
10296 * symfile.c (set_initial_language): Remove fixme comment.
10297 * symfile.h (struct quick_symbol_functions): Add
10298 lookup_global_symbol_language.
10299 * symtab.c (find_quick_global_symbol_language): New function.
10300 (find_main_name): Use find_quick_global_symbol_language.
10301
2836752f
SM
103022020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10303
10304 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10305
64dc2d4b
BE
103062020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10307
10308 * buildsym.c (record_line): Fix undefined behavior and preserve
10309 lines at eof.
10310
bbe3dc41
BE
103112020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10312
10313 * buildsym.c (record_line): Fix the resizing condition.
10314
6b4a335b
TT
103152020-04-01 Tom Tromey <tom@tromey.com>
10316
10317 * value.h (value_literal_complex): Add comment.
10318 * valops.c (value_literal_complex): Refer to value.h.
10319
3638a098
TT
103202020-04-01 Tom Tromey <tom@tromey.com>
10321
10322 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10323 (scalar_type): New rule, from typebase.
10324 (typebase): Use scalar_type. Recognize complex types.
10325 (field_name): Handle FLOAT_KEYWORD.
10326 (ident_tokens): Add _Complex and __complex__.
10327
c34e8714
TT
103282020-04-01 Tom Tromey <tom@tromey.com>
10329
10330 PR exp/25299:
10331 * valarith.c (promotion_type, complex_binop): New functions.
10332 (scalar_binop): Handle complex numbers. Use promotion_type.
10333 (value_pos, value_neg, value_complement): Handle complex numbers.
10334
fa649bb7
TT
103352020-04-01 Tom Tromey <tom@tromey.com>
10336
10337 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10338 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10339 (parse_number): Handle complex numbers.
10340
981c08ce
TT
103412020-04-01 Tom Tromey <tom@tromey.com>
10342
10343 * c-valprint.c (c_decorations): Change complex suffix to "i".
10344
4c99290d
TT
103452020-04-01 Tom Tromey <tom@tromey.com>
10346
10347 * valprint.c (generic_value_print_complex): Use accessors.
10348 * value.h (value_real_part, value_imaginary_part): Declare.
10349 * valops.c (value_real_part, value_imaginary_part): New
10350 functions.
10351 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10352
5b930b45
TT
103532020-04-01 Tom Tromey <tom@tromey.com>
10354
10355 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10356 (read_range_type): Update.
10357 * mdebugread.c (basic_type): Update.
10358 * go-lang.c (build_go_types): Use init_complex_type.
10359 * gdbtypes.h (struct main_type) <complex_type>: New member.
10360 (init_complex_type): Update.
10361 (arch_complex_type): Don't declare.
10362 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10363 Make name if none given. Use alloc_type_copy. Look for cached
10364 complex type.
10365 (arch_complex_type): Remove.
10366 (gdbtypes_post_init): Use init_complex_type.
10367 * f-lang.c (build_fortran_types): Use init_complex_type.
10368 * dwarf2/read.c (read_base_type): Update.
10369 * d-lang.c (build_d_types): Use init_complex_type.
10370 * ctfread.c (read_base_type): Update.
10371
53cccef1
TBA
103722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10373
10374 * infrun.c (stop_all_threads): Update assertion, plus when
10375 stopping threads, take into account that we might be trying
10376 to stop an all-stop target.
10377 (stop_waiting): Call 'stop_all_threads' if there exists a
10378 non-stop target.
10379
a0714d30
TBA
103802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10381
10382 * target.h (exists_non_stop_target): New function declaration.
10383 * target.c (exists_non_stop_target): New function.
10384
60e22c1e
HD
103852020-04-01 Hannes Domani <ssbssa@yahoo.de>
10386
10387 PR gdb/24789
10388 * eval.c (is_integral_or_integral_reference): New function.
10389 (evaluate_subexp_standard): Allow integer references in
10390 pointer arithmetic.
10391
e139a727
TBA
103922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10393
10394 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10395 check for no ptid in the stop reply when the target is non-stop.
10396
e0802d59
TT
103972020-04-01 Tom Tromey <tromey@adacore.com>
10398
10399 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10400 "name" parameter to rvalue reference. Initialize m_name_holder.
10401 <lookup_name_info>: New overloads.
10402 <name>: Return gdb::string_view.
10403 <c_str>: New method.
10404 <make_ignore_params>: Update.
10405 <search_name_hash>: Update.
10406 <language_lookup_name>: Return const char *.
10407 <m_name>: Change type.
10408 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10409 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10410 (lookup_name_info::match_any): Update.
10411 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10412 Update.
10413 * minsyms.c (linkage_name_str): Update.
10414 * language.c (default_symbol_name_matcher): Update.
10415 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10416 Update.
10417 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10418 (ada_lookup_name_info::ada_lookup_name_info): Update.
10419 (literal_symbol_name_matcher): Update.
10420
8c072cb6
TT
104212020-04-01 Tom Tromey <tromey@adacore.com>
10422
10423 * psymtab.c (psymtab_search_name): Remove function.
10424 (psym_lookup_symbol): Create search name and lookup name here.
10425 (lookup_partial_symbol): Remove "name" parameter; add
10426 lookup_name.
10427 (psym_expand_symtabs_for_function): Update.
10428
6f29a534
TT
104292020-03-31 Joel Jones <joelkevinjones@gmail.com>
10430
10431 PR tui/25597:
10432 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10433
af62665e
TT
104342020-03-31 Tom Tromey <tromey@adacore.com>
10435
10436 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10437 memcpy.
10438
d1a89da5
NC
104392020-03-30 Nelson Chu <nelson.chu@sifive.com>
10440
10441 * features/riscv/32bit-csr.xml: Regenerated.
10442 * features/riscv/64bit-csr.xml: Regenerated.
10443
d8af9068
TT
104442020-03-30 Tom Tromey <tromey@adacore.com>
10445
10446 * ada-valprint.c (print_variant_part): Update.
10447 * ada-lang.h (ada_which_variant_applies): Update.
10448 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10449 outer_valaddr parameters; replace with "outer" value parameter.
10450 (to_fixed_variant_branch_type): Update.
10451
227c0bf4
PFC
104522020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10453
10454 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10455 <list>. Remove inclusion of observable.h.
10456 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10457 (struct arch_lwp_info): New struct.
10458 (class ppc_linux_dreg_interface): New class.
10459 (struct ppc_linux_process_info): New struct.
10460 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10461 <low_new_clone, low_forget_process, low_prepare_to_resume>
10462 <copy_thread_dreg_state, mark_thread_stale>
10463 <mark_debug_registers_changed, register_hw_breakpoint>
10464 <clear_hw_breakpoint, register_wp, clear_wp>
10465 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10466 <num_memory_accesses, get_trigger_type>
10467 <create_watchpoint_request, hwdebug_point_cmp>
10468 <init_arch_lwp_info, get_arch_lwp_info>
10469 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10470 methods.
10471 <struct ptid_hash>: New inner struct.
10472 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10473 members.
10474 (saved_dabr_value, hwdebug_info, max_slots_number)
10475 (struct hw_break_tuple, struct thread_points, ppc_threads)
10476 (have_ptrace_hwdebug_interface)
10477 (hwdebug_find_thread_points_by_tid)
10478 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10479 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10480 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10481 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10482 use m_dreg_interface.
10483 (hwdebug_point_cmp): Change to...
10484 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10485 reference arguments instead of pointers.
10486 (ppc_linux_nat_target::ranged_break_num_registers): Use
10487 m_dreg_interface.
10488 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10489 m_dreg_interface. Call register_hw_breakpoint.
10490 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10491 m_dreg_interface. Call clear_hw_breakpoint.
10492 (get_trigger_type): Change to...
10493 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10494 comment.
10495 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10496 use m_dreg_interface. Call register_hw_breakpoint.
10497 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10498 use m_dreg_interface. Call clear_hw_breakpoint.
10499 (can_use_watchpoint_cond_accel): Change to...
10500 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10501 method. Update comment, use m_dreg_interface and
10502 m_process_info.
10503 (calculate_dvc): Change to...
10504 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10505 m_dreg_interface.
10506 (num_memory_accesses): Change to...
10507 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10508 (check_condition): Change to...
10509 (ppc_linux_nat_target::check_condition): ...this method.
10510 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10511 comment, use m_dreg_interface.
10512 (create_watchpoint_request): Change to...
10513 (ppc_linux_nat_target::create_watchpoint_request): ...this
10514 method. Use m_dreg_interface.
10515 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10516 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10517 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10518 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10519 (ppc_linux_nat_target::low_forget_process)
10520 (ppc_linux_nat_target::low_new_fork)
10521 (ppc_linux_nat_target::low_new_clone)
10522 (ppc_linux_nat_target::low_delete_thread)
10523 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10524 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10525 only call mark_thread_stale.
10526 (ppc_linux_thread_exit): Remove.
10527 (ppc_linux_nat_target::stopped_data_address): Change to...
10528 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10529 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10530 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10531 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10532 comment. Call low_stopped_data_address.
10533 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10534 m_dreg_interface.
10535 (ppc_linux_nat_target::masked_watch_num_registers): Use
10536 m_dreg_interface.
10537 (ppc_linux_nat_target::copy_thread_dreg_state)
10538 (ppc_linux_nat_target::mark_thread_stale)
10539 (ppc_linux_nat_target::mark_debug_registers_changed)
10540 (ppc_linux_nat_target::register_hw_breakpoint)
10541 (ppc_linux_nat_target::clear_hw_breakpoint)
10542 (ppc_linux_nat_target::register_wp)
10543 (ppc_linux_nat_target::clear_wp)
10544 (ppc_linux_nat_target::init_arch_lwp_info)
10545 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10546 (_initialize_ppc_linux_nat): Remove observer callback.
10547
4db10d8f
PFC
105482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10549
10550 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10551 (ppc_linux_nat_target::auxv_parse)
10552 (ppc_linux_nat_target::read_description)
10553 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10554 Move up.
10555
1310c1b0
PFC
105562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10557
10558 * linux-nat.h (low_new_clone): New method.
10559 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10560
69b037c3
SM
105612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10562
10563 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10564 (dbx_expand_psymtab): ... this.
10565 (start_psymtab): Update.
10566 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10567 (mdebug_expand_psymtab): ... this.
10568 (parse_partial_symbols): Update.
10569 (new_psymtab): Update.
10570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10571 (xcoff_expand_psymtab): ... this.
10572 (xcoff_start_psymtab): Update.
10573
48993951
SM
105742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10575
10576 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10577 <expand_dependencies>: ... this.
10578 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10579 (partial_symtab::expand_dependencies): ... this.
10580 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10581 Update.
10582 (dwarf2_psymtab::expand_psymtab): Update.
10583 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10584 * mdebugread.c (psymtab_to_symtab_1): Update.
10585 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10586
3ad83046
SM
105872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10588
10589 * psympriv.h (discard_psymtab): Remove.
10590 * dbxread.c (dbx_end_psymtab): Update.
10591 * xcoffread.c (xcoff_end_psymtab): Update.
10592
4d1b9ab6
TT
105932020-03-28 Tom Tromey <tom@tromey.com>
10594
10595 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10596 comment.
10597
f1749218
TT
105982020-03-28 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10601
ebea7626
HD
106022020-03-27 Hannes Domani <ssbssa@yahoo.de>
10603
10604 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10605
a879b4d5
JB
106062020-03-26 John Baldwin <jhb@FreeBSD.org>
10607
10608 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10609
0826b30a
TT
106102020-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10613 (mark_common_block_symbol_computed, read_tag_string_type)
10614 (attr_to_dynamic_prop, read_subrange_type): Update.
10615 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10616 to be methods on struct attribute.
10617 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10618 (read_call_site_scope, partial_die_info::read)
10619 (partial_die_info::read, lookup_die_type, follow_die_ref):
10620 Update.
10621 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10622 from dwarf2_get_ref_die_offset.
10623 (attribute::constant_value): New method, from
10624 dwarf2_get_attr_constant_value.
10625 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10626 Declare method.
10627 <constant_value>: New method.
10628
2b2558bf
TT
106292020-03-26 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10632 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10633 (dwarf_type_encoding_name): Move to stringify.c.
10634 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10635 * dwarf2/stringify.c: New file.
10636 * dwarf2/stringify.h: New file.
10637
eeb64781
TT
106382020-03-26 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10641 Rewrite.
10642
a39fdb41
TT
106432020-03-26 Tom Tromey <tom@tromey.com>
10644
10645 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10646 methods.
10647 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10648 (lookup_ranges_base): Likewise.
10649 (read_cutu_die_from_dwo, read_full_die_1): Update.
10650
436c571c
TT
106512020-03-26 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2/read.c (read_import_statement, read_file_scope)
10654 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10655 (read_lexical_block_scope, read_call_site_scope)
10656 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10657 (handle_struct_member_die, process_structure_scope)
10658 (update_enumeration_type_from_children)
10659 (process_enumeration_scope, read_array_type, read_common_block)
10660 (read_namespace, read_module, read_subroutine_type): Update.
10661 (sibling_die): Remove.
10662
052c8bb8
TT
106632020-03-26 Tom Tromey <tom@tromey.com>
10664
10665 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10666 (build_type_psymtabs_reader, read_structure_type)
10667 (read_enumeration_type, read_full_die_1): Update.
10668 (dwarf2_attr_no_follow): Move to die.h.
10669 * dwarf2/die.h (struct die_info) <attr>: New method.
10670
2b24b6e4
TT
106712020-03-26 Tom Tromey <tom@tromey.com>
10672
10673 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10674 <base_address>: Now an optional.
10675 (dwarf2_find_base_address, dwarf2_rnglists_process)
10676 (dwarf2_ranges_process, fill_in_loclist_baton)
10677 (dwarf2_symbol_mark_computed): Update.
10678
c2d50fd0
TT
106792020-03-26 Tom Tromey <tom@tromey.com>
10680
10681 * dwarf2/read.c (struct die_info): Move to die.h.
10682 * dwarf2/die.h: New file.
10683
0df7ad3a
TT
106842020-03-26 Tom Tromey <tom@tromey.com>
10685
10686 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10687 * dwarf2/read.c
10688 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10689 Move to line-header.c.
10690 (read_checked_initial_length_and_offset, read_formatted_entries):
10691 Likewise.
10692 (dwarf_decode_line_header): Split into two.
10693 * dwarf2/line-header.c
10694 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10695 Move from read.c.
10696 (read_checked_initial_length_and_offset, read_formatted_entries):
10697 Likewise.
10698 (dwarf_decode_line_header): New function, split from read.c.
10699
86c0bb4c
TT
107002020-03-26 Tom Tromey <tom@tromey.com>
10701
10702 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10703 Declare method.
10704 * dwarf2/read.c (read_attribute_value): Update.
10705 (dwarf2_per_objfile::read_line_string): Rename from
10706 read_indirect_line_string.
10707 (read_formatted_entries): Update.
10708
2ef46c2f
TT
107092020-03-26 Tom Tromey <tom@tromey.com>
10710
10711 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10712 variable.
10713
4f9c1eda
TT
107142020-03-26 Tom Tromey <tom@tromey.com>
10715
10716 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10717 const.
10718 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10719 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10720 parameter const.
10721
5a0e026f
TT
107222020-03-26 Tom Tromey <tom@tromey.com>
10723
10724 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10725 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10726 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10727 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10728
8844c11b
TT
107292020-03-26 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10732 file_names_size, file_full_name, file_file_name>: Use const.
10733 <file_name_at, file_names>: Add const overload.
10734 * dwarf2/line-header.c (line_header::file_file_name)
10735 (line_header::file_full_name): Update.
10736
c90ec28a
TT
107372020-03-26 Tom Tromey <tom@tromey.com>
10738
10739 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10740 (macro_start_file, consume_improper_spaces)
10741 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10742 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10743 (dwarf_decode_macros): Move to macro.c.
10744 * dwarf2/macro.c: New file.
10745 * dwarf2/macro.h: New file.
10746 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10747
4f44ae6c
TT
107482020-03-26 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10751 method.
10752 * dwarf2/section.c: New method. From
10753 read_indirect_string_at_offset_from.
10754 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10755 (read_indirect_string_at_offset_from): Move to section.c.
10756 (read_indirect_string_at_offset): Rewrite.
10757 (read_indirect_line_string_at_offset): Remove.
10758 (read_indirect_string, read_indirect_line_string)
10759 (dwarf_decode_macro_bytes): Update.
10760
a0194fa8
TT
107612020-03-26 Tom Tromey <tom@tromey.com>
10762
10763 * dwarf2/section.h (struct dwarf2_section_info)
10764 <overload_complaint>: Declare.
10765 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10766 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10767 Rename from dwarf2_section_buffer_overflow_complaint.
10768 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10769 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10770
3d27bbdb
TT
107712020-03-26 Tom Tromey <tom@tromey.com>
10772
10773 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10774 Declare.
10775 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10776 Move from read.c.
10777 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10778 to section.c.
10779
9eac9650
TT
107802020-03-26 Tom Tromey <tom@tromey.com>
10781
10782 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10783
bf80d710
TT
107842020-03-26 Tom Tromey <tom@tromey.com>
10785
10786 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10787 "builder".
10788 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10789 parameter.
10790 (dwarf_decode_macros): Update.
10791
0314b390
TT
107922020-03-26 Tom Tromey <tom@tromey.com>
10793
10794 * dwarf2/read.c (read_attribute_value): Update.
10795 (read_indirect_string_from_dwz): Move to dwz.c; change into
10796 method.
10797 (dwarf_decode_macro_bytes): Update.
10798 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10799 * dwarf2/dwz.c: New file.
10800 * Makefile.in (COMMON_SFILES): Add dwz.c.
10801
9fda78b6
TT
108022020-03-26 Tom Tromey <tom@tromey.com>
10803
10804 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10805 * dwarf2/read.c: Add include.
10806 * dwarf2/index-write.c: Add include.
10807 * dwarf2/index-cache.c: Add include.
10808 * dwarf2/dwz.h: New file.
10809
33aa3c10
TT
108102020-03-25 Tom Tromey <tom@tromey.com>
10811
10812 * compile/compile-object-load.c (get_out_value_type): Mention
10813 correct symbol name in error message.
10814
d503b685
HD
108152020-03-25 Hannes Domani <ssbssa@yahoo.de>
10816
10817 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10818
7b1eff95
TV
108192020-03-25 Tom de Vries <tdevries@suse.de>
10820
10821 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10822 * symmisc.c (dump_symtab_1): Print user and includes fields.
10823 (maintenance_info_symtabs): Same.
10824
dd895392
AB
108252020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 PR gdb/25534
10828 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10829 (riscv_regcache_cooked_write): New function.
10830 (riscv_push_dummy_call): Use new function.
10831 (riscv_return_value): Likewise.
10832
5ab2fbf1
SM
108332020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10834
10835 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10836 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10837 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10838 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10839 * infrun.c (follow_fork): Likewise.
10840 (follow_fork_inferior): Likewise.
10841 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10842 * linux-nat.h (class linux_nat_target): Likewise.
10843 * remote.c (class remote_target) <follow_fork>: Likewise.
10844 (remote_target::follow_fork): Likewise.
10845 * target-delegates.c: Re-generate.
10846 * target.c (default_follow_fork): Likewise.
10847 (target_follow_fork): Likewise.
10848 * target.h (struct target_ops) <follow_fork>: Likewise.
10849 (target_follow_fork): Likewise.
10850
a64fafb5
TV
108512020-03-24 Tom de Vries <tdevries@suse.de>
10852
10853 * psymtab.c (maintenance_info_psymtabs): Print user field.
10854
fe26d3a3
TT
108552020-03-20 Tom Tromey <tromey@adacore.com>
10856
10857 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10858 const.
10859 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10860 const.
10861
c884cc46
SM
108622020-03-20 Simon Marchi <simon.marchi@efficios.com>
10863
10864 * ptrace.m4: Don't check for ptrace declaration.
10865 * config.in: Re-generate.
10866 * configure: Re-generate.
10867 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10868 not defined.
10869
1ff700c2
KR
108702020-03-20 Kamil Rytarowski <n54@gmx.com>
10871
10872 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10873 `PTRACE_TYPE_RET'.
10874 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10875 * sparc-nat.c (gdb_ptrace): Likewise.
10876 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10877
f7d4f0b1
TT
108782020-03-20 Tom Tromey <tromey@adacore.com>
10879
10880 * c-exp.y (lex_one_token): Fix assert.
10881
f67210ff
TT
108822020-03-20 Tom Tromey <tromey@adacore.com>
10883
10884 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10885 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10886 strncpy call.
10887
1773be9e
TT
108882020-03-20 Tom Tromey <tromey@adacore.com>
10889
10890 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10891
70304be9
TT
108922020-03-20 Tom Tromey <tromey@adacore.com>
10893
10894 * ada-valprint.c (print_variant_part): Remove parameters; switch
10895 to value-based API.
10896 (print_field_values): Likewise.
10897 (ada_val_print_struct_union): Likewise.
10898 (ada_value_print_1): Update.
10899
9faa006d
KR
109002020-03-20 Kamil Rytarowski <n54@gmx.com>
10901
10902 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10903 nbsd_nat_target instead of inf_ptrace_target.
10904 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10905 nbsd_nat_target.
10906
4a90f062
KR
109072020-03-20 Kamil Rytarowski <n54@gmx.com>
10908
10909 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10910 it to the ptrace call.
10911 * (store_registers): Likewise.
10912
109132020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10914
10915 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10916 it to the ptrace call.
10917 * (store_registers): Likewise.
10918
2d07da27
LM
109192020-03-19 Luis Machado <luis.machado@linaro.org>
10920
10921 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10922 valid, fetch vg value from ptrace.
10923
f09db380
KR
109242020-03-19 Kamil Rytarowski <n54@gmx.com>
10925 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10926 * inf-ptrace.c: Likewise.
10927 * (gdb_ptrace): Add.
10928 * (inf_ptrace_target::resume): Update.
10929 * (inf_ptrace_target::xfer_partial): Likewise.
10930 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10931 * (inf_ptrace_peek_poke): Update.
10932
fcc7376e
KR
109332020-03-19 Kamil Rytarowski <n54@gmx.com>
10934
10935 * x86-bsd-nat.c (gdb_ptrace): New.
10936 * (x86bsd_dr_set): Add new argument `ptid'.
10937 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10938 x86bsd_dr_set_addr): Update.
10939
cada5fc9
AB
109402020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10941
10942 * remote.c (remote_target::process_stop_reply): Handle events for
10943 all threads differently.
10944
19a2740f
AB
109452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10946
10947 * completer.c (completion_tracker::remove_completion): Define new
10948 function.
10949 * completer.h (completion_tracker::remove_completion): Declare new
10950 function.
10951 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10952 when adding a C++ function symbol.
10953
724fd9ba
AB
109542020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * completer.c (completion_tracker::completion_hash_entry): Define
10957 new class.
10958 (advance_to_filename_complete_word_point): Call
10959 recompute_lowest_common_denominator.
10960 (completion_tracker::completion_tracker): Call discard_completions
10961 to setup the hash table.
10962 (completion_tracker::discard_completions): Allow for being called
10963 from the constructor, pass new equal function, and element deleter
10964 when constructing the hash table. Initialise new class member
10965 variables.
10966 (completion_tracker::maybe_add_completion): Remove use of
10967 m_entries_vec, and store more information into m_entries_hash.
10968 (completion_tracker::recompute_lcd_visitor): New function, most
10969 content taken from...
10970 (completion_tracker::recompute_lowest_common_denominator):
10971 ...here, this now just visits each item in the hash calling the
10972 above visitor.
10973 (completion_tracker::build_completion_result): Remove use of
10974 m_entries_vec, call recompute_lowest_common_denominator.
10975 * completer.h (completion_tracker::have_completions): Remove use
10976 of m_entries_vec.
10977 (completion_tracker::completion_hash_entry): Declare new class.
10978 (completion_tracker::recompute_lowest_common_denominator): Change
10979 function signature.
10980 (completion_tracker::recompute_lcd_visitor): Declare new function.
10981 (completion_tracker::m_entries_vec): Delete.
10982 (completion_tracker::m_entries_hash): Initialize to NULL.
10983 (completion_tracker::m_lowest_common_denominator_valid): New
10984 member variable.
10985 (completion_tracker::m_lowest_common_denominator_max_length): New
10986 member variable.
10987
5a82b8a1
KR
109882020-03-17 Kamil Rytarowski <n54@gmx.com>
10989
10990 * regformats/regdef.h: Put reg in gdb namespace.
10991
fb516a69
KR
109922020-03-17 Kamil Rytarowski <n54@gmx.com>
10993
10994 * i386-bsd-nat.c (gdb_ptrace): New.
10995 * (i386bsd_fetch_inferior_registers,
10996 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10997 * (i386bsd_fetch_inferior_registers,
10998 i386bsd_store_inferior_registers) Use gdb_ptrace.
10999
1c0aa1fb
KR
110002020-03-17 Kamil Rytarowski <n54@gmx.com>
11001
11002 * amd64-bsd-nat.c (gdb_ptrace): New.
11003 * (amd64bsd_fetch_inferior_registers,
11004 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11005 * (amd64bsd_fetch_inferior_registers,
11006 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11007
5ccd2fb7
KR
110082020-03-17 Kamil Rytarowski <n54@gmx.com>
11009
11010 * user-regs.c (user_reg::read): Rename to...
11011 (user_reg::xread): ...this.
11012 * (append_user_reg): Rename argument `read' to `xread'.
11013 * (user_reg_add_builtin): Likewise.
11014 * (user_reg_add): Likewise.
11015 * (value_of_user_reg): Likewise.
11016
2108a63a
KR
110172020-03-17 Kamil Rytarowski <n54@gmx.com>
11018
11019 * sparc-nat.c (gdb_ptrace): New.
11020 * sparc-nat.c (sparc_fetch_inferior_registers)
11021 (sparc_store_inferior_registers) Remove obsolete comment.
11022 * sparc-nat.c (sparc_fetch_inferior_registers)
11023 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11024 * sparc-nat.c (sparc_fetch_inferior_registers)
11025 (sparc_store_inferior_registers) Use gdb_ptrace.
11026
a225c9a8
KR
110272020-03-17 Kamil Rytarowski <n54@gmx.com>
11028
11029 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11030 it to the ptrace call.
11031 * sh-nbsd-nat.c (store_registers): Likewise.
11032
98097623
KR
110332020-03-17 Kamil Rytarowski <n54@gmx.com>
11034
11035 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11036 nbsd_nat_target instead of inf_ptrace_target.
11037 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11038 nbsd_nat_target.
11039
9e38d619
KR
110402020-03-17 Kamil Rytarowski <n54@gmx.com>
11041
11042 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11043
a2ecbe9f
KR
110442020-03-17 Kamil Rytarowski <n54@gmx.com>
11045
11046 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11047 <sys/sysctl.h>.
11048 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11049
58990295
TV
110502020-03-17 Tom de Vries <tdevries@suse.de>
11051
11052 PR gdb/23710
11053 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11054 fields.
11055 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11056 fields.
11057 (process_imported_unit_die): Skip import of c++ CUs.
11058
771dd3a8
TT
110592020-03-16 Tom Tromey <tom@tromey.com>
11060
11061 * p-valprint.c (pascal_object_print_value): Initialize
11062 base_value.
11063
817a7585
AK
110642020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11065 Shahab Vahedi <shahab@synopsys.com>
11066
11067 * Makefile.in: Add arch/arc.o
11068 * configure.tgt: Likewise.
11069 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11070 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11071 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11072 * arc-tdep.h (arc_read_description): Add proto type.
11073 * arch/arc.c: New file.
11074 * arch/arc.h: Likewise.
11075 * features/Makefile: Replace old target descriptions with new.
11076 * features/arc-arcompact.c: Remove.
11077 * features/arc-arcompact.xml: Likewise.
11078 * features/arc-v2.c: Likewise
11079 * features/arc-v2.xml: Likewise
11080 * features/arc/aux-arcompact.xml: New file.
11081 * features/arc/aux-v2.xml: Likewise.
11082 * features/arc/core-arcompact.xml: Likewise.
11083 * features/arc/core-v2.xml: Likewise.
11084 * features/arc/aux-arcompact.c: Generate.
11085 * features/arc/aux-v2.c: Likewise.
11086 * features/arc/core-arcompact.c: Likewise.
11087 * features/arc/core-v2.c: Likewise.
11088 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11089
67430cd0
TT
110902020-03-16 Tom Tromey <tromey@adacore.com>
11091
11092 PR gdb/25663:
11093 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11094 putting value into bcache.
11095
30efb6c7
SM
110962020-03-16 Simon Marchi <simon.marchi@efficios.com>
11097
11098 PR gdb/21500
11099 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11100 to...
11101 (amd64_windows_init_abi_common): ... this. Don't set size of
11102 long type.
11103 (amd64_windows_init_abi): New function.
11104 (amd64_cygwin_init_abi): New function.
11105 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11106 the Cygwin OS ABI.
11107 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11108 comment.
11109
8db52437
SM
111102020-03-16 Simon Marchi <simon.marchi@efficios.com>
11111
11112 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11113 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11114 (pe_import_directory_entry): New struct type.
11115 (is_linked_with_cygwin_dll): New function.
11116 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11117 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11118 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11119
5982a56a
SM
111202020-03-16 Simon Marchi <simon.marchi@efficios.com>
11121
11122 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11123 i386_cygwin_core_osabi_sniffer.
11124
7a1998df
SM
111252020-03-16 Simon Marchi <simon.marchi@efficios.com>
11126
11127 * i386-cygwin-tdep.c: Rename to...
11128 * i386-windows-tdep.c: ... this.
11129 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11130 i386-windows-tdep.c.
11131 * configure.tgt: Likewise.
11132
053205cc
SM
111332020-03-16 Simon Marchi <simon.marchi@efficios.com>
11134
11135 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11136 * osabi.c (gdb_osabi_names): Add "Windows".
11137 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11138 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11139 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11140 i386_cygwin_osabi_sniffer.
11141 (_initialize_i386_cygwin_tdep): Register OS ABI
11142 GDB_OSABI_WINDOWS for i386.
11143 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11144 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11145 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11146 for x86-64.
11147 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11148 when the target matches '*-*-mingw*'.
11149
fe4b2ee6
SM
111502020-03-16 Simon Marchi <simon.marchi@efficios.com>
11151
11152 * defs.h (enum gdb_osabi): Move to...
11153 * osabi.h (enum gdb_osabi): ... here.
11154 * gdbarch.sh: Include osabi.h in gdbarch.h.
11155 * gdbarch.h: Re-generate.
11156
cb9b645d
SM
111572020-03-16 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11160 function.
11161 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11162
3293bbaf
TT
111632020-03-14 Tom Tromey <tom@tromey.com>
11164
11165 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11166 for C++.
11167 (c_type_print_modifier): Likewise. Add "language" parameter.
11168 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11169 (c_type_print_base_1): Update.
11170 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11171 constants.
11172 * type-stack.c (type_stack::insert): Handle tp_atomic and
11173 tp_restrict.
11174 (type_stack::follow_type_instance_flags): Likewise.
11175 (type_stack::follow_types): Likewise. Merge type-following code.
11176 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11177 (space_identifier, cv_with_space_id)
11178 (const_or_volatile_or_space_identifier_noopt)
11179 (const_or_volatile_or_space_identifier): Remove.
11180 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11181 rules.
11182 (ptr_operator, typebase): Update.
11183 (enum token_flag) <FLAG_C>: New constant.
11184 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11185 "_Atomic".
11186 (lex_one_token): Handle FLAG_C.
11187
154151a6
KR
111882020-03-14 Kamil Rytarowski <n54@gmx.com>
11189
11190 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11191 it to the ptrace call.
11192 * m68k-bsd-nat.c (store_registers): Likewise.
11193
bc107784
KR
111942020-03-14 Kamil Rytarowski <n54@gmx.com>
11195
11196 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11197 gdb_byte *.
11198 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11199 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11200 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11201
01a80117
KR
112022020-03-14 Kamil Rytarowski <n54@gmx.com>
11203
11204 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11205 nbsd_nat_target instead of inf_ptrace_target.
11206 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11207 nbsd_nat_target.
11208
f90280ca
KR
112092020-03-14 Kamil Rytarowski <n54@gmx.com>
11210
11211 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11212 register_t.
11213
6def66f1
KR
112142020-03-14 Kamil Rytarowski <n54@gmx.com>
11215
11216 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11217 it to the ptrace call.
11218 * alpha-bsd-nat.c (store_registers): Likewise.
11219
66eaca97
KR
112202020-03-14 Kamil Rytarowski <n54@gmx.com>
11221
11222 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11223 includes.
11224 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11225 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11226 fill_fpregset): Likewise.
11227
4fed520b
KR
112282020-03-14 Kamil Rytarowski <n54@gmx.com>
11229
11230 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11231 nbsd_nat_target instead of inf_ptrace_target.
11232 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11233 nbsd_nat_target.
11234
2190cf06
KR
112352020-03-14 Kamil Rytarowski <n54@gmx.com>
11236
11237 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11238 register_t.
11239
75c56d3d
KR
112402020-03-14 Kamil Rytarowski <n54@gmx.com>
11241
11242 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11243 it to the ptrace call.
11244 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11245 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11246 * arm-nbsd-nat.c (store_register): Likewise.
11247 * arm-nbsd-nat.c (store_regs): Likewise.
11248 * arm-nbsd-nat.c (store_fp_register): Likewise.
11249 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11250
6018d381
KR
112512020-03-14 Kamil Rytarowski <n54@gmx.com>
11252
11253 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11254 nbsd_nat_target instead of inf_ptrace_target.
11255 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11256 nbsd_nat_target.
11257
013f99f0
KR
112582020-03-14 Kamil Rytarowski <n54@gmx.com>
11259
11260 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11261 it to the ptrace call.
11262 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11263
12753073
KR
112642020-03-14 Kamil Rytarowski <n54@gmx.com>
11265
6227b330
KR
11266 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11267 it to the ptrace call.
11268 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11269
112702020-03-14 Kamil Rytarowski <n54@gmx.com>
11271
11272 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11273 gdb_byte *.
12753073
KR
11274 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11275
d5be5fa4
KR
112762020-03-14 Kamil Rytarowski <n54@gmx.com>
11277
11278 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11279 instead of inf_ptrace_target.
11280 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11281 nbsd_nat_target.
11282
8110f842
KR
112832020-03-14 Kamil Rytarowski <n54@gmx.com>
11284
11285 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11286 register_t.
11287
52feded7
KR
112882020-03-14 Kamil Rytarowski <n54@gmx.com>
11289
11290 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11291 register_t.
11292
25567eee
KR
112932020-03-14 Kamil Rytarowski <n54@gmx.com>
11294
11295 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11296 register_t.
11297
426a9c18
TT
112982020-03-13 Tom Tromey <tom@tromey.com>
11299
11300 * value.h (val_print): Don't declare.
11301 * valprint.h (val_print_array_elements)
11302 (val_print_scalar_formatted, generic_val_print): Don't declare.
11303 * valprint.c (generic_val_print_array): Take a struct value.
11304 (generic_val_print_ptr, generic_val_print_memberptr)
11305 (generic_val_print_bool, generic_val_print_int)
11306 (generic_val_print_char, generic_val_print_complex)
11307 (generic_val_print): Remove.
11308 (generic_value_print): Update.
11309 (do_val_print): Remove unused parameters. Don't call
11310 la_val_print.
11311 (val_print): Remove.
11312 (common_val_print): Update. Don't call value_check_printable.
11313 (val_print_scalar_formatted, val_print_array_elements): Remove.
11314 * rust-lang.c (rust_val_print): Remove.
11315 (rust_language_defn): Update.
11316 * p-valprint.c (pascal_val_print): Remove.
11317 (pascal_value_print_inner): Update.
11318 (pascal_object_print_val_fields, pascal_object_print_val):
11319 Remove.
11320 (pascal_object_print_static_field): Update.
11321 * p-lang.h (pascal_val_print): Don't declare.
11322 * p-lang.c (pascal_language_defn): Update.
11323 * opencl-lang.c (opencl_language_defn): Update.
11324 * objc-lang.c (objc_language_defn): Update.
11325 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11326 * m2-lang.h (m2_val_print): Don't declare.
11327 * m2-lang.c (m2_language_defn): Update.
11328 * language.h (struct language_defn) <la_val_print>: Remove.
11329 * language.c (unk_lang_value_print_inner): Rename. Change
11330 argument types.
11331 (unknown_language_defn, auto_language_defn): Update.
11332 * go-valprint.c (go_val_print): Remove.
11333 * go-lang.h (go_val_print): Don't declare.
11334 * go-lang.c (go_language_defn): Update.
11335 * f-valprint.c (f_val_print): Remove.
11336 * f-lang.h (f_value_print): Don't declare.
11337 * f-lang.c (f_language_defn): Update.
11338 * d-valprint.c (d_val_print): Remove.
11339 * d-lang.h (d_value_print): Don't declare.
11340 * d-lang.c (d_language_defn): Update.
11341 * cp-valprint.c (cp_print_value_fields)
11342 (cp_print_value_fields_rtti, cp_print_value): Remove.
11343 (cp_print_static_field): Update.
11344 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11345 (c_val_print_struct, c_val_print_union, c_val_print_int)
11346 (c_val_print_memberptr, c_val_print): Remove.
11347 * c-lang.h (c_val_print_array, cp_print_value_fields)
11348 (cp_print_value_fields_rtti): Don't declare.
11349 * c-lang.c (c_language_defn, cplus_language_defn)
11350 (asm_language_defn, minimal_language_defn): Update.
11351 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11352 (ada_val_print_enum): Take a struct value.
11353 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11354 (ada_val_print): Remove.
11355 (ada_value_print_1): Update.
11356 (printable_val_type): Remove.
11357 * ada-lang.h (ada_val_print): Don't declare.
11358 * ada-lang.c (ada_language_defn): Update.
11359
42331a1e
TT
113602020-03-13 Tom Tromey <tom@tromey.com>
11361
11362 * valprint.c (do_val_print): Update.
11363 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11364 a struct value.
11365 (value_to_value_object_no_release): Declare.
11366 * python/py-value.c (value_to_value_object_no_release): New
11367 function.
11368 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11369 struct value.
11370 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11371 function.
11372 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11373 a struct value.
11374 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11375 Declare.
11376 (gdbscm_apply_val_pretty_printer): Take a struct value.
11377 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11378 value.
11379 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11380 value.
11381 * extension-priv.h (struct extension_language_ops)
11382 <apply_val_pretty_printer>: Take a struct value.
11383 * cp-valprint.c (cp_print_value): Create a struct value.
11384 (cp_print_value): Update.
11385
3a916a97
TT
113862020-03-13 Tom Tromey <tom@tromey.com>
11387
11388 * ada-valprint.c (print_field_values): Call common_val_print.
11389
b59eac37
TT
113902020-03-13 Tom Tromey <tom@tromey.com>
11391
11392 * ada-valprint.c (val_print_packed_array_elements): Remove
11393 bitoffset and val parameters. Call common_val_print.
11394 (ada_val_print_string): Remove offset, address, and original_value
11395 parameters.
11396 (ada_val_print_array): Update.
11397 (ada_value_print_array): New function.
11398 (ada_value_print_1): Call it.
11399
03371129
TT
114002020-03-13 Tom Tromey <tom@tromey.com>
11401
11402 * ada-valprint.c (ada_value_print): Use common_val_print.
11403
2e088f8b
TT
114042020-03-13 Tom Tromey <tom@tromey.com>
11405
11406 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11407
39ef85a8
TT
114082020-03-13 Tom Tromey <tom@tromey.com>
11409
11410 * ada-valprint.c (ada_value_print_num): New function.
11411 (ada_value_print_1): Use it.
11412
b9fa6e07
TT
114132020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11416
416595d6
TT
114172020-03-13 Tom Tromey <tom@tromey.com>
11418
11419 * ada-valprint.c (ada_value_print_ptr): New function.
11420 (ada_value_print_1): Use it.
11421
5b5e15ec
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11425 call common_val_print.
11426 (ada_val_print_1): Update.
11427 (ada_value_print_1): New function.
11428 (ada_value_print_inner): Rewrite.
11429
fbf54e75
TT
114302020-03-13 Tom Tromey <tom@tromey.com>
11431
11432 * cp-valprint.c (cp_print_value_fields): Update.
11433 (cp_print_value): New function.
11434
64b653ca
TT
114352020-03-13 Tom Tromey <tom@tromey.com>
11436
11437 * m2-valprint.c (m2_value_print_inner): Use
11438 cp_print_value_fields.
11439 * cp-valprint.c (cp_print_value_fields): New function.
11440 * c-valprint.c (c_value_print_struct): New function.
11441 (c_value_print_inner): Use c_value_print_struct.
11442 * c-lang.h (cp_print_value_fields): Declare.
11443
6999f067
TT
114442020-03-13 Tom Tromey <tom@tromey.com>
11445
11446 * c-valprint.c (c_value_print_array): New function.
11447 (c_value_print_inner): Use it.
11448
ce80b8bd
TT
114492020-03-13 Tom Tromey <tom@tromey.com>
11450
11451 * c-valprint.c (c_value_print_memberptr): New function.
11452 (c_value_print_inner): Use it.
11453
2faac269
TT
114542020-03-13 Tom Tromey <tom@tromey.com>
11455
11456 * c-valprint.c (c_value_print_int): New function.
11457 (c_value_print_inner): Use it.
11458
da3e2c29
TT
114592020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * c-valprint.c (c_value_print_ptr): New function.
11462 (c_value_print_inner): Use it.
11463
50836231
TT
114642020-03-13 Tom Tromey <tom@tromey.com>
11465
11466 * c-valprint.c (c_value_print_inner): Rewrite.
11467
4f412b6e
TT
114682020-03-13 Tom Tromey <tom@tromey.com>
11469
11470 * valprint.c (generic_value_print_complex): New function.
11471 (generic_value_print): Use it.
11472
f5354008
TT
114732020-03-13 Tom Tromey <tom@tromey.com>
11474
11475 * valprint.c (generic_val_print_float): Don't call
11476 val_print_scalar_formatted.
11477 (generic_val_print, generic_value_print): Update.
11478
3eec3b05
TT
114792020-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * valprint.c (generic_value_print_char): New function
11482 (generic_value_print): Use it.
11483
fdddfccb
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * valprint.c (generic_value_print_int): New function.
11487 (generic_value_print): Use it.
11488
6dde7521
TT
114892020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * valprint.c (generic_value_print_bool): New function.
11492 (generic_value_print): Use it.
11493
4112d2e6
TT
114942020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * valprint.c (generic_val_print_func): Simplify.
11497 (generic_val_print, generic_value_print): Update.
11498
65786af6
TT
114992020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * valprint.c (generic_val_print_flags): Remove.
11502 (generic_val_print, generic_value_print): Update.
11503 (val_print_type_code_flags): Add original_value parameter.
11504
40f3ce18
TT
115052020-03-13 Tom Tromey <tom@tromey.com>
11506
11507 * valprint.c (generic_val_print): Update.
11508 (generic_value_print): Update.
11509 * valprint.c (generic_val_print_enum): Don't call
11510 val_print_scalar_formatted.
11511
2a5b130b
TT
115122020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11515 * valprint.c (generic_value_print_ptr): New function.
11516
abc66ce9
TT
115172020-03-13 Tom Tromey <tom@tromey.com>
11518
11519 * valprint.c (generic_value_print): Rewrite.
11520
07a32858
TT
115212020-03-13 Tom Tromey <tom@tromey.com>
11522
11523 * p-valprint.c (pascal_object_print_value_fields)
11524 (pascal_object_print_value): New functions.
11525
64d64d3a
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * p-valprint.c (pascal_value_print_inner): Rewrite.
11529
6a95a1f5
TT
115302020-03-13 Tom Tromey <tom@tromey.com>
11531
11532 * f-valprint.c (f_value_print_innner): Rewrite.
11533
59fcdac6
TT
115342020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * m2-valprint.c (m2_print_unbounded_array): New overload.
11537 (m2_print_unbounded_array): Update.
11538 (m2_print_array_contents): Take a struct value.
11539 (m2_value_print_inner): Rewrite.
11540
d133c3e1
TT
115412020-03-13 Tom Tromey <tom@tromey.com>
11542
11543 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11544 (d_value_print_inner): New function.
11545 * d-lang.h (d_value_print_inner): Declare.
11546 * d-lang.c (d_language_defn): Use d_value_print_inner.
11547
23b0f06b
TT
115482020-03-13 Tom Tromey <tom@tromey.com>
11549
11550 * go-valprint.c (go_value_print_inner): New function.
11551 * go-lang.h (go_value_print_inner): Declare.
11552 * go-lang.c (go_language_defn): Use go_value_print_inner.
11553
5f56f7cb
TT
115542020-03-13 Tom Tromey <tom@tromey.com>
11555
11556 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11557 API.
11558 (rust_val_print): Rewrite.
11559 (rust_value_print_inner): New function, from rust_val_print.
11560 (rust_language_defn): Use rust_value_print_inner.
11561
26792ee0
TT
115622020-03-13 Tom Tromey <tom@tromey.com>
11563
11564 * ada-valprint.c (ada_value_print_inner): New function.
11565 * ada-lang.h (ada_value_print_inner): Declare.
11566 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11567
24051bbe
TT
115682020-03-13 Tom Tromey <tom@tromey.com>
11569
11570 * f-valprint.c (f_value_print_innner): New function.
11571 * f-lang.h (f_value_print_innner): Declare.
11572 * f-lang.c (f_language_defn): Use f_value_print_innner.
11573
c0941be6
TT
115742020-03-13 Tom Tromey <tom@tromey.com>
11575
11576 * p-valprint.c (pascal_value_print_inner): New function.
11577 * p-lang.h (pascal_value_print_inner): Declare.
11578 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11579
62c4663d
TT
115802020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * m2-valprint.c (m2_value_print_inner): New function.
11583 * m2-lang.h (m2_value_print_inner): Declare.
11584 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11585
62182190
TT
115862020-03-13 Tom Tromey <tom@tromey.com>
11587
11588 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11589 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11590 * c-valprint.c (c_value_print_inner): New function.
11591 * c-lang.h (c_value_print_inner): Declare.
11592 * c-lang.c (c_language_defn, cplus_language_defn)
11593 (asm_language_defn, minimal_language_defn): Use
11594 c_value_print_inner.
11595
1e592a8a
TT
115962020-03-13 Tom Tromey <tom@tromey.com>
11597
11598 * p-valprint.c (pascal_object_print_value_fields): Now static.
11599 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11600
7fe471e9
TT
116012020-03-13 Tom Tromey <tom@tromey.com>
11602
11603 * c-valprint.c (c_val_print_array): Simplify.
11604
d121c6ce
TT
116052020-03-13 Tom Tromey <tom@tromey.com>
11606
11607 * valprint.c (value_print_array_elements): New function.
11608 * valprint.h (value_print_array_elements): Declare.
11609
4dba70ee
TT
116102020-03-13 Tom Tromey <tom@tromey.com>
11611
11612 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11613 * mips-tdep.c (mips_print_register): Use
11614 value_print_scalar_formatted.
11615
4f9ae810
TT
116162020-03-13 Tom Tromey <tom@tromey.com>
11617
11618 * valprint.h (value_print_scalar_formatted): Declare.
11619 * valprint.c (value_print_scalar_formatted): New function.
11620
156bfec9
TT
116212020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * valprint.h (generic_value_print): Declare.
11624 * valprint.c (generic_value_print): New function.
11625
2b4e573d
TT
116262020-03-13 Tom Tromey <tom@tromey.com>
11627
11628 * valprint.c (do_val_print): Call la_value_print_inner, if
11629 available.
11630 * rust-lang.c (rust_language_defn): Update.
11631 * p-lang.c (pascal_language_defn): Update.
11632 * opencl-lang.c (opencl_language_defn): Update.
11633 * objc-lang.c (objc_language_defn): Update.
11634 * m2-lang.c (m2_language_defn): Update.
11635 * language.h (struct language_defn) <la_value_print_inner>: New
11636 member.
11637 * language.c (unknown_language_defn, auto_language_defn): Update.
11638 * go-lang.c (go_language_defn): Update.
11639 * f-lang.c (f_language_defn): Update.
11640 * d-lang.c (d_language_defn): Update.
11641 * c-lang.c (c_language_defn, cplus_language_defn)
11642 (asm_language_defn, minimal_language_defn): Update.
11643 * ada-lang.c (ada_language_defn): Update.
11644
a1f6a07c
TT
116452020-03-13 Tom Tromey <tom@tromey.com>
11646
11647 * c-valprint.c (c_value_print): Use common_val_print.
11648
410cf315
TT
116492020-03-13 Tom Tromey <tom@tromey.com>
11650
11651 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11652
72a45c93
TT
116532020-03-13 Tom Tromey <tom@tromey.com>
11654
11655 * f-valprint.c (f77_print_array_1, f_val_print): Use
11656 common_val_print.
11657
040f66bd
TT
116582020-03-13 Tom Tromey <tom@tromey.com>
11659
11660 * riscv-tdep.c (riscv_print_one_register_info): Use
11661 common_val_print.
11662
a6e05a6c
TT
116632020-03-13 Tom Tromey <tom@tromey.com>
11664
11665 * mi/mi-main.c (output_register): Use common_val_print.
11666
3444c526
TT
116672020-03-13 Tom Tromey <tom@tromey.com>
11668
11669 * infcmd.c (default_print_one_register_info): Use
11670 common_val_print.
11671
c2a44efe
TT
116722020-03-13 Tom Tromey <tom@tromey.com>
11673
11674 * valprint.h (common_val_print_checked): Declare.
11675 * valprint.c (common_val_print_checked): New function.
11676 * stack.c (print_frame_arg): Use common_val_print_checked.
11677
b0c26e99
TT
116782020-03-13 Tom Tromey <tom@tromey.com>
11679
11680 * valprint.c (do_val_print): New function, from val_print.
11681 (val_print): Use do_val_print.
11682 (common_val_print): Use do_val_print.
11683
ce3acbe9
TT
116842020-03-13 Tom Tromey <tom@tromey.com>
11685
11686 * valprint.c (value_print): Use scoped_value_mark.
11687
96c7f873
TV
116882020-03-13 Tom de Vries <tdevries@suse.de>
11689
11690 PR symtab/25646
11691 * psymtab.c (partial_symtab::partial_symtab): Don't set
11692 globals_offset and statics_offset. Push element onto
11693 current_global_psymbols and current_static_psymbols stacks.
11694 (concat): New function.
11695 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11696 element from current_global_psymbols and current_static_psymbols
11697 stacks. Concat popped elements to global_psymbols and
11698 static_symbols.
11699 (add_psymbol_to_list): Use current_global_psymbols and
11700 current_static_psymbols stacks.
11701 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11702 current_static_psymbols fields.
11703
6ba0a321
CB
117042020-03-12 Christian Biesinger <cbiesinger@google.com>
11705
11706 * corelow.c (sniff_core_bfd): Remove.
11707 (class core_target) <m_core_vec>: Remove.
11708 (core_target::core_target): Update.
11709 (core_file_fns): Remove.
11710 (deprecated_add_core_fns): Remove.
11711 (default_core_sniffer): Remove.
11712 (sniff_core_bfd): Remove.
11713 (default_check_format): Remove.
11714 (gdb_check_format): Remove.
11715 (core_target_open): Update.
11716 (core_target::get_core_register_section): Update.
11717 (get_core_registers_cb): Update.
11718 (core_target::fetch_registers): Update.
11719 * gdbcore.h (struct core_fns): Remove.
11720 (deprecated_add_core_fns): Remove.
11721 (default_core_sniffer): Remove.
11722 (default_check_format): Remove.
11723
227031b2
TT
117242020-03-12 Tom Tromey <tom@tromey.com>
11725
11726 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11727 CORE_ADDR.
11728 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11729
53807e9f
TT
117302020-03-12 Tom Tromey <tom@tromey.com>
11731
11732 * remote.c (remote_target::download_tracepoint)
11733 (remote_target::enable_tracepoint)
11734 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11735 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11736 sprintf_vma.
11737
64f25102
TT
117382020-03-12 Tom Tromey <tom@tromey.com>
11739
11740 * symfile-mem.c: Update CORE_ADDR size assert.
11741
272cd5a3
SM
117422020-03-12 Simon Marchi <simon.marchi@efficios.com>
11743
11744 * selftest.m4: Move to gdbsupport/.
11745 * acinclude.m4: Update path to selftest.m4.
11746
74cd3f9d
SM
117472020-03-12 Simon Marchi <simon.marchi@efficios.com>
11748
11749 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11750 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11751 gdbarch-selfselftests.c and selftest-arch.c.
11752 (SUBDIR_UNITTESTS_OBS): Rename to...
11753 (SELFTESTS_OBS): ... this.
11754 (COMMON_SFILES): Remove disasm-selftests.c and
11755 gdbarch-selftests.c.
11756 * configure.ac: Don't add selftest-arch.{c,o} to
11757 CONFIG_{SRCS,OBS}.
11758 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11759 preprocessor conditions.
11760
db6878ac
SM
117612020-03-12 Simon Marchi <simon.marchi@efficios.com>
11762
11763 * configure.ac: Don't source bfd/development.sh.
11764 * selftest.m4: Modify comment.
11765 * configure: Re-generate.
11766
4d696a5c
SM
117672020-03-12 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11770 not "true" or "false".
11771 * configure: Re-generate.
11772
8dd8e1c7
CB
117732020-03-12 Christian Biesinger <cbiesinger@google.com>
11774
11775 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11776 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11777 renamed to arm_nbsd_supply_gregset.
11778 (fetch_register): Update to call arm_nbsd_supply_gregset.
11779 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11780 (arm_netbsd_nat_target::fetch_registers): Update.
11781 (fetch_elfcore_registers): Removed.
11782 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11783 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11784 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11785 not require NetBSD system headers.
11786 (arm_nbsd_regset): New struct.
11787 (arm_nbsd_iterate_over_regset_sections): New function.
11788 (arm_netbsd_init_abi_common): Updated to call
11789 set_gdbarch_iterate_over_regset_sections.
11790 * arm-nbsd-tdep.h: New file.
11791
dd69bf7a
KB
117922020-03-11 Kevin Buettner <kevinb@redhat.com>
11793
11794 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11795 recursion.
11796
a0761e34
SM
117972020-03-11 Simon Marchi <simon.marchi@efficios.com>
11798
11799 * configure: Re-generate.
11800
e7a82140
TT
118012020-03-11 Tom Tromey <tromey@adacore.com>
11802
11803 * ada-typeprint.c (print_choices): Fix comment.
11804
dcc050c8
AB
118052020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11806
11807 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11808 previous item in the list, when the list has no items.
11809
1c33af77
TV
118102020-03-11 Tom de Vries <tdevries@suse.de>
11811
11812 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11813 PROP_LOCLIST handling code.
11814
8c95582d
AB
118152020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11816
11817 * buildsym-legacy.c (record_line): Pass extra parameter to
11818 record_line.
11819 * buildsym.c (buildsym_compunit::record_line): Take an extra
11820 parameter, reduce duplication in the line table, and record the
11821 is_stmt flag in the line table.
11822 * buildsym.h (buildsym_compunit::record_line): Add extra
11823 parameter.
11824 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11825 non-statement lines.
11826 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11827 this to the symtab builder.
11828 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11829 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11830 through to dwarf_record_line_1.
11831 * infrun.c (process_event_stop_test): When stepping, don't stop at
11832 a non-statement instruction, and only refresh the step info when
11833 we land in the middle of a line's range. Also add an extra
11834 comment.
11835 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11836 field.
11837 * record-btrace.c (btrace_find_line_range): Only record lines
11838 marked as is-statement.
11839 * stack.c (frame_show_address): Show the frame address if we are
11840 in a non-statement sal.
11841 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11842 (maintenance_print_one_line_table): Print a header for the is_stmt
11843 column, and include is_stmt information in the output.
11844 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11845 preference to non-statements.
11846 (find_pcs_for_symtab_line): Prefer is-statement entries.
11847 (find_line_common): Likewise.
11848 * symtab.h (struct linetable_entry): Add is_stmt field.
11849 (struct symtab_and_line): Likewise.
11850 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11851 arranging the line table.
11852
e4003a34
TV
118532020-03-07 Tom de Vries <tdevries@suse.de>
11854
11855 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11856 DIE.
11857
e8932576
TT
118582020-03-07 Tom Tromey <tom@tromey.com>
11859
11860 * valops.c (value_literal_complex): Remove obsolete comment.
11861 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11862 comment.
11863
29734269
SM
118642020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11865
11866 * infrun.h: Forward-declare thread_info.
11867 (set_step_info): Add thread_info parameter, add doc.
11868 * infrun.c (set_step_info): Add thread_info parameter, move doc
11869 to header.
11870 * infrun.c (process_event_stop_test): Pass thread to
11871 set_step_info call.
11872 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11873 set_step_info.
11874 (prepare_one_step): Add thread_info parameter, pass it to
11875 set_step_frame and prepare_one_step (recursive) call.
11876 (step_1): Pass thread to prepare_one_step call.
11877 (step_command_fsm::should_stop): Pass thread to
11878 prepare_one_step.
11879 (until_next_fsm): Pass thread to set_step_frame call.
11880 (finish_command): Pass thread to set_step_info call.
11881
b7d64b29
HD
118822020-03-06 Hannes Domani <ssbssa@yahoo.de>
11883
11884 * windows-tdep.c (windows_solib_create_inferior_hook):
11885 Check if inferior is running.
11886
09f2921c
TV
118872020-03-06 Tom de Vries <tdevries@suse.de>
11888
11889 * NEWS: Fix "the the".
11890 * ctfread.c: Same.
11891
fd760e79
TV
118922020-03-06 Tom de Vries <tdevries@suse.de>
11893
11894 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11895
20ea4a60
AB
118962020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11897
11898 * .dir-locals.el: Add a comment referencing the other copies of
11899 this file.
11900
0afbabf0
JB
119012020-03-05 John Baldwin <jhb@FreeBSD.org>
11902
11903 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11904 psargs.
11905
842806cb
TBA
119062020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11907
11908 * .gitattributes: New file.
11909
be1e3d3e
TT
119102020-03-04 Tom Tromey <tom@tromey.com>
11911
11912 * symmisc.c (print_symbol_bcache_statistics)
11913 (print_objfile_statistics): Update.
11914 * symfile.c (allocate_symtab): Use intern.
11915 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11916 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11917 macro_cache>: Remove.
11918 <string_cache>: New member.
11919 (struct objfile) <intern>: New methods.
11920 * elfread.c (elf_symtab_read): Use intern.
11921 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11922 (dwarf2_compute_name, dwarf2_physname)
11923 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11924 names.
11925 (guess_partial_die_structure_name): Update.
11926 (partial_die_info::fixup): Intern name.
11927 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11928 name.
11929 (dwarf2_name): Intern name. Update.
11930 * buildsym.c (buildsym_compunit::get_macro_table): Use
11931 string_cache.
11932
4e7625fd
TT
119332020-03-04 Tom Tromey <tom@tromey.com>
11934
11935 * jit.c (bfd_open_from_target_memory): Make "target" const.
11936 * corefile.c (gnutarget): Now const.
11937 * gdbcore.h (gnutarget): Now const.
11938
46f9f931
HD
119392020-03-04 Hannes Domani <ssbssa@yahoo.de>
11940
11941 * NEWS: Mention support for WOW64 processes.
11942 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11943 (amd64_windows_segment_register_p): Remove static.
11944 (_initialize_amd64_windows_nat): Update.
11945 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11946 * i386-windows-nat.c (context_offset): Update.
11947 (i386_mappings): Rename and remove static.
11948 (i386_windows_segment_register_p): Remove static.
11949 (_initialize_i386_windows_nat): Update.
11950 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11951 (STATUS_WX86_SINGLE_STEP): New macro.
11952 (EnumProcessModulesEx): New macro.
11953 (Wow64SuspendThread): New macro.
11954 (Wow64GetThreadContext): New macro.
11955 (Wow64SetThreadContext): New macro.
11956 (Wow64GetThreadSelectorEntry): New macro.
11957 (windows_set_context_register_offsets): Add static.
11958 (windows_set_segment_register_p): Likewise.
11959 (windows_add_thread): Adapt for WOW64 processes.
11960 (windows_fetch_one_register): Likewise.
11961 (windows_nat_target::fetch_registers): Likewise.
11962 (windows_store_one_register): Likewise.
11963 (display_selector): Likewise.
11964 (display_selectors): Likewise.
11965 (handle_exception): Likewise.
11966 (windows_continue): Likewise.
11967 (windows_nat_target::resume): Likewise.
11968 (windows_add_all_dlls): Likewise.
11969 (do_initial_windows_stuff): Likewise.
11970 (windows_nat_target::attach): Likewise.
11971 (windows_get_exec_module_filename): Likewise.
11972 (windows_nat_target::create_inferior): Likewise.
11973 (windows_xfer_siginfo): Likewise.
11974 (_initialize_loadable): Initialize Wow64SuspendThread,
11975 Wow64GetThreadContext, Wow64SetThreadContext,
11976 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11977 * windows-nat.h (windows_set_context_register_offsets):
11978 Remove declaration.
11979 (windows_set_segment_register_p): Likewise.
11980 (i386_windows_segment_register_p): Add declaration.
11981 (amd64_windows_segment_register_p): Likewise.
11982
440cf44e
LM
119832020-03-04 Luis Machado <luis.machado@linaro.org>
11984
11985 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11986 in "info registers" for AArch64/ARM.
11987
11988 The change caused "info registers" to not print GPR's.
11989
11990 gdb/ChangeLog:
11991
11992 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11993
11994 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11995 when reg->group is empty and reggroup is not.
11996
1009d92f
TT
119972020-03-03 Tom Tromey <tromey@adacore.com>
11998
11999 * dwarf2/frame.c (struct dwarf2_frame_cache)
12000 <checked_tailcall_bottom, entry_cfa_sp_offset,
12001 entry_cfa_sp_offset_p>: Remove members.
12002 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12003 (dwarf2_frame_prev_register): Don't call
12004 dwarf2_tailcall_sniffer_first.
12005 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12006 * frame-unwind.c (add_unwinder): New fuction.
12007 (frame_unwind_init): Use it. Add tailcall unwinder.
12008
5e5d66b6
AB
120092020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12010 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12011
12012 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12013 value should be printed as true.
12014
584cf46d
HD
120152020-03-03 Hannes Domani <ssbssa@yahoo.de>
12016
12017 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12018 (windows_init_abi): Set and use windows_so_ops.
12019
7b973adc
SDJ
120202020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12021
12022 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12023 when verifying if dealing with a convenience variable.
12024
bb7b70ab
LM
120252020-03-03 Luis Machado <luis.machado@linaro.org>
12026
12027 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12028
9822cb57
SM
120292020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * infrun.c (gdbarch_supports_displaced_stepping): New.
12032 (use_displaced_stepping): Break up conditions in smaller pieces.
12033 Use gdbarch_supports_displaced_stepping.
12034 (displaced_step_prepare_throw): Use
12035 gdbarch_supports_displaced_stepping.
12036
63e163f2
AB
120372020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12038
12039 * NEWS: Mention new behaviour of the history filename.
12040 * top.c (write_history_p): Add comment.
12041 (show_write_history_p): Add header comment, give a different
12042 message when history writing is on, but the history filename is
12043 empty.
12044 (history_filename): Add comment.
12045 (history_filename_empty): New function.
12046 (show_history_filename): Add header comment, give a different
12047 message when the filename is empty.
12048 (init_history): Compare history_filename against nullptr, and only
12049 read history if the filename is not empty.
12050 (set_history_filename): Add header comment, and only make
12051 non-empty filenames absolute.
12052 (init_main): Make the filename argument to 'set history filename'
12053 optional.
12054
81b86b97
CB
120552020-03-02 Christian Biesinger <cbiesinger@google.com>
12056
12057 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12058 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12059 (fetch_fp_register): Update.
12060 (fetch_fp_regs): Update.
12061 (store_fp_register): Update.
12062 (store_fp_regs): Update.
12063 (arm_netbsd_nat_target::read_description): New function.
12064 (fetch_elfcore_registers): Update.
12065
24ed6739
AB
120662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12067
12068 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12069 general_thread if the stop reply is missing a thread-id.
12070 (remote_target::process_stop_reply): Use the first non-exited
12071 thread if the target didn't pass a thread-id.
12072 * infrun.c (do_target_wait): Move call to
12073 switch_to_inferior_no_thread to ....
12074 (do_target_wait_1): ... here.
12075
a84bb2a0
JT
120762020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12077
12078 * debuginfod-support.c: Include defs.h first.
12079
658dadf0
TV
120802020-02-28 Tom de Vries <tdevries@suse.de>
12081
12082 * symfile.c (set_initial_language): Use default language for lookup.
12083
4ebe4877
SM
120842020-02-28 Simon Marchi <simon.marchi@efficios.com>
12085
12086 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12087 reader variable, pass `this` to read_cutu_die_from_dwo.
12088
e5da1139
AM
120892020-02-27 Aaron Merey <amerey@redhat.com>
12090
12091 * source.c (open_source_file): Check for nullptr when computing
12092 srcpath.
12093
317f7127
TT
120942020-02-27 Tom Tromey <tromey@adacore.com>
12095
12096 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12097 member.
12098 (dwarf2_add_field): Don't update nfields.
12099 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12100
3104d9ee
AB
121012020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12102
12103 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12104 abs.
12105
b83470bf
TT
121062020-02-26 Tom Tromey <tom@tromey.com>
12107
12108 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12109 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12110 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12111 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12112 per_cu_data.
12113
edfe0a0c
TT
121142020-02-26 Tom Tromey <tom@tromey.com>
12115
12116 * dwarf2/index-write.c (psym_index_map): Change type.
12117 (add_address_entry_worker, write_one_signatured_type)
12118 (recursively_count_psymbols, recursively_write_psymbols)
12119 (class debug_names, psyms_seen_size, write_gdbindex)
12120 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12121
0d79cdc4
AM
121222020-02-26 Aaron Merey <amerey@redhat.com>
12123
12124 * Makefile.in: Handle optional debuginfod support.
12125 * NEWS: Update.
12126 * README: Add --with-debuginfod summary.
12127 * config.in: Regenerate.
12128 * configure: Regenerate.
12129 * configure.ac: Handle optional debuginfod support.
12130 * debuginfod-support.c: debuginfod helper functions.
12131 * debuginfod-support.h: Ditto.
12132 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12133 summary.
12134 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12135 when a dwz file cannot be found.
12136 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12137 debuginfo file cannot be found.
12138 * source.c (open_source_file): Query debuginfod servers when a
12139 source file cannot be found.
12140 * top.c (print_gdb_configuration): Include
12141 --{with,without}-debuginfod in the output.
12142
b65ce565
JG
121432020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12144
12145 * thread.c (thr_try_catch_cmd): Print thread name.
12146
d4c9a4f8
SM
121472020-02-26 Simon Marchi <simon.marchi@efficios.com>
12148
12149 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12150 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12151 dwarf2_fetch_die_type_sect_off): Move to...
12152 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12153 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12154 dwarf2_fetch_die_type_sect_off): ... here.
12155 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12156 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12157 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12158
0dce4280
TV
121592020-02-26 Tom de Vries <tdevries@suse.de>
12160
12161 PR gdb/25603
12162 * symfile.c (set_initial_language): Exit-early if
12163 language_mode == language_mode_manual.
12164
450a1bfc
SM
121652020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12166
12167 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12168 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12169 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12170
9e80cfa1
AB
121712020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12172
12173 * gdbtypes.c (create_array_type_with_stride): Handle negative
12174 array strides.
12175 * valarith.c (value_subscripted_rvalue): Likewise.
12176
09624f1f
LM
121772020-02-25 Luis Machado <luis.machado@linaro.org>
12178
12179 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12180
8cb5117c
SM
121812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12182
12183 * loc.h (dwarf2_get_die_type): Move to...
12184 * read.h (dwarf2_get_die_type): ... here.
12185 * read.c (dwarf2_get_die_type): Move doc to header.
12186
c325c44e
JB
121872020-02-25 Joel Brobecker <brobecker@adacore.com>
12188
12189 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12190 'gnulib/Makefile.in' to the list.
12191
4ac93832
TT
121922020-02-24 Tom Tromey <tom@tromey.com>
12193
12194 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12195 Remove.
12196 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12197 XOBNEWVEC.
12198
197400e8
TT
121992020-02-24 Tom Tromey <tom@tromey.com>
12200
12201 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12202 New method.
12203 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12204 (dw2_do_instantiate_symtab, dw2_get_file_names)
12205 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12206
76935768
TT
122072020-02-24 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12210 make_scoped_restore.
12211 (dwarf2_psymtab::read_symtab): Don't clear
12212 reading_partial_symbols.
12213
a88ef40d
TV
122142020-02-24 Tom de Vries <tdevries@suse.de>
12215
12216 PR gdb/25592
12217 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12218
c9af6521
TV
122192020-02-24 Tom de Vries <tdevries@suse.de>
12220
12221 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12222 commands layout next/prev/regs.
12223
5707a07a
TT
122242020-02-22 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12227 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12228
3b0fb49e
TT
122292020-02-22 Tom Tromey <tom@tromey.com>
12230
12231 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12232
283be8bf
TT
122332020-02-22 Tom Tromey <tom@tromey.com>
12234
12235 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12236 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12237 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12238 * tui/tui.c (_initialize_tui): Add usage text.
12239
ca793b96
TT
122402020-02-22 Tom Tromey <tom@tromey.com>
12241
12242 * tui/tui-win.c (tui_set_focus_command)
12243 (tui_set_win_height_command): Use error_no_arg.
12244 (_initialize_tui_win): Update help text.
12245 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12246
432b5c40
TT
122472020-02-22 Tom Tromey <tom@tromey.com>
12248
12249 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12250 * tui/tui-disasm.h (struct tui_disasm_window)
12251 <display_start_addr>: Declare.
12252 * tui/tui-source.h (struct tui_source_window)
12253 <display_start_addr>: Declare.
12254 * tui/tui-winsource.h (struct tui_source_window_base)
12255 <show_source_line, display_start_addr>: New methods.
12256 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12257 Rename and move to protected section.
12258 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12259 (tui_source_window_base::do_erase_source_content): Update.
12260 (tui_source_window_base::show_source_line): Now a method.
12261 (tui_source_window_base::show_source_content)
12262 (tui_source_window_base::tui_source_window_base)
12263 (tui_source_window_base::rerender)
12264 (tui_source_window_base::refill)
12265 (tui_source_window_base::do_scroll_horizontal)
12266 (tui_source_window_base::set_is_exec_point_at)
12267 (tui_source_window_base::update_breakpoint_info)
12268 (tui_source_window_base::update_exec_info): Update.
12269 * tui/tui-source.c (tui_source_window::set_contents)
12270 (tui_source_window::showing_source_p)
12271 (tui_source_window::do_scroll_vertical)
12272 (tui_source_window::location_matches_p)
12273 (tui_source_window::line_is_displayed): Update.
12274 (tui_source_window::display_start_addr): New method.
12275 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12276 (tui_disasm_window::do_scroll_vertical)
12277 (tui_disasm_window::location_matches_p): Update.
12278 (tui_disasm_window::display_start_addr): New method.
12279
01b1af32
TT
122802020-02-22 Tom Tromey <tom@tromey.com>
12281
12282 * NEWS: Add entry for gdb.register_window_type.
12283 * tui/tui-layout.h (window_factory): New typedef.
12284 (tui_register_window): Declare.
12285 * tui/tui-layout.c (saved_tui_windows): New global.
12286 (tui_apply_current_layout): Use it.
12287 (tui_register_window): New function.
12288 * python/python.c (do_start_initialization): Call
12289 gdbpy_initialize_tui.
12290 (python_GdbMethods): Add "register_window_type" function.
12291 * python/python-internal.h (gdbpy_register_tui_window)
12292 (gdbpy_initialize_tui): Declare.
12293 * python/py-tui.c: New file.
12294 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12295
fc96d20b
TT
122962020-02-22 Tom Tromey <tom@tromey.com>
12297
12298 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12299
935c78c0
TT
123002020-02-22 Tom Tromey <tom@tromey.com>
12301
12302 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12303 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12304 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12305 (tui_set_win_focus_to): Move from tui-win.c.
12306
0240c8f1
TT
123072020-02-22 Tom Tromey <tom@tromey.com>
12308
12309 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12310 functions.
12311 (known_window_types): New global.
12312 (tui_get_window_by_name): Reimplement.
12313 (initialize_known_windows): New function.
12314 (validate_window_name): Rewrite.
12315 (_initialize_tui_layout): Call initialize_known_windows.
12316
fdb01f0c
TT
123172020-02-22 Tom Tromey <tom@tromey.com>
12318
12319 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12320 Remove constants.
12321 * tui/tui-winsource.h (struct tui_source_window_base)
12322 <tui_source_window_base>: Remove parameter.
12323 * tui/tui-winsource.c
12324 (tui_source_window_base::tui_source_window_base): Remove
12325 parameter.
12326 (tui_source_window_base::refill): Update.
12327 * tui/tui-stack.h (struct tui_locator_window)
12328 <tui_locator_window>: Update.
12329 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12330 Default the constructor.
12331 * tui/tui-regs.h (struct tui_data_item_window)
12332 <tui_data_item_window>: Default the constructor.
12333 (struct tui_data_window) <tui_data_window>: Likewise.
12334 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12335 Default the constructor.
12336 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12337 Default the constructor.
12338 <type>: Remove.
12339 (struct tui_win_info) <tui_win_info>: Default the constructor.
12340 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12341 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12342 Default the constructor.
12343
865a5aec
TT
123442020-02-22 Tom Tromey <tom@tromey.com>
12345
12346 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12347 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12348 * tui/tui-win.c (tui_resize_all): Don't call
12349 tui_delete_invisible_windows.
12350 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12351 done.
12352 (tui_set_layout): Update.
12353 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12354 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12355 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12356
e098d18c
TT
123572020-02-22 Tom Tromey <tom@tromey.com>
12358
12359 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12360 correctly.
12361
eb9c8874
TT
123622020-02-22 Tom Tromey <tom@tromey.com>
12363
12364 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12365
7eed1a8e
TT
123662020-02-22 Tom Tromey <tom@tromey.com>
12367
12368 * tui/tui-winsource.h (struct tui_source_window_iterator)
12369 <inner_iterator>: New etytypedef.
12370 <tui_source_window_iterator>: Take "end" parameter.
12371 <tui_source_window_iterator>: Take iterator.
12372 <operator*, advance>: Update.
12373 <m_iter>: Change type.
12374 <m_end>: New field.
12375 (struct tui_source_windows) <begin, end>: Update.
12376 * tui/tui-layout.c (tui_windows): New global.
12377 (tui_apply_current_layout): Clear tui_windows.
12378 (tui_layout_window::apply): Update tui_windows.
12379 * tui/tui-data.h (tui_windows): Declare.
12380 (all_tui_windows): Now inline function.
12381 (class tui_window_iterator, struct all_tui_windows): Remove.
12382
7c043ba6
TT
123832020-02-22 Tom Tromey <tom@tromey.com>
12384
12385 PR tui/17850:
12386 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12387 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12388 "height" argument.
12389 (class tui_layout_window) <get_sizes>: Likewise.
12390 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12391 argument.
12392 <get_sizes>: Add "height" argument.
12393 <m_vertical>: New field.
12394 * tui/tui-layout.c (tui_layout_split::clone): Update.
12395 (tui_layout_split::get_sizes): Add "height" argument.
12396 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12397 (tui_new_layout_command): Parse "-horizontal".
12398 (_initialize_tui_layout): Update help string.
12399 (tui_layout_split::specification): Add "-horizontal" when needed.
12400 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12401 argument.
12402 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12403 New methods.
12404
6bc56648
TT
124052020-02-22 Tom Tromey <tom@tromey.com>
12406
12407 * tui/tui-layout.h (enum tui_adjust_result): New.
12408 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12409 (class tui_layout_window) <adjust_size>: Return
12410 tui_adjust_result. Rewrite.
12411 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12412 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12413
c22fef7e
TT
124142020-02-22 Tom Tromey <tom@tromey.com>
12415
12416 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12417 parameter and return types.
12418 (class tui_layout_base) <specification>: Add "depth".
12419 (class tui_layout_window) <specification>: Add "depth".
12420 (class tui_layout_split) <specification>: Add "depth".
12421 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12422 and return types.
12423 (tui_new_layout_command): Parse sub-layouts.
12424 (_initialize_tui_layout): Update help string.
12425 (tui_layout_window::specification): Add "depth".
12426 (add_layout_command): Update.
12427
ee325b61
TT
124282020-02-22 Tom Tromey <tom@tromey.com>
12429
12430 * NEWS: Add "tui new-layout" item.
12431 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12432 Add new-layout command to help text.
12433 (validate_window_name): New function.
12434 (tui_new_layout_command): New function.
12435 (_initialize_tui_layout): Register "new-layout".
12436 (tui_layout_window::specification): New method.
12437 (tui_layout_window::specification): New method.
12438 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12439 method.
12440 (class tui_layout_window) <specification>: New method.
12441 (class tui_layout_split) <specification>: New method.
12442
416eb92d
TT
124432020-02-22 Tom Tromey <tom@tromey.com>
12444
12445 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12446 * tui/tui-win.c (window_name_completer): Update comment.
12447 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12448 Declare method.
12449 (class tui_layout_window) <replace_window>: Likewise.
12450 (class tui_layout_split) <replace_window>: Likewise.
12451 (tui_set_layout): Don't declare.
12452 (tui_set_initial_layout): Declare function.
12453 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12454 (asm_regs_layout): New globals.
12455 (tui_current_layout, show_layout): Remove.
12456 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12457 (find_layout, tui_apply_layout): New function.
12458 (layout_completer): Remove.
12459 (tui_next_layout): Reimplement.
12460 (tui_next_layout_command): New function.
12461 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12462 (tui_regs_layout): Reimplement.
12463 (tui_regs_layout_command): New function.
12464 (extract_display_start_addr): Rewrite.
12465 (next_layout, prev_layout): Remove.
12466 (tui_layout_window::replace_window): New method.
12467 (tui_layout_split::replace_window): New method.
12468 (destroy_layout): New function.
12469 (layout_list): New global.
12470 (add_layout_command): New function.
12471 (initialize_layouts): Update.
12472 (tui_layout_command): New function.
12473 (_initialize_tui_layout): Install "layout" commands.
12474 * tui/tui-data.h (enum tui_layout_type): Remove.
12475 (tui_current_layout): Don't declare.
12476
0dbc2fc7
TT
124772020-02-22 Tom Tromey <tom@tromey.com>
12478
12479 * tui/tui-regs.c (tui_reg_layout): Remove.
12480 (tui_reg_command): Use tui_regs_layout.
12481 * tui/tui-layout.h (tui_reg_command): Declare.
12482 * tui/tui-layout.c (tui_reg_command): New function.
12483
5afe342e
TT
124842020-02-22 Tom Tromey <tom@tromey.com>
12485
12486 * tui/tui.c (tui_rl_delete_other_windows): Call
12487 tui_remove_some_windows.
12488 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12489 Declare method.
12490 (class tui_layout_window) <remove_windows>: New method.
12491 (class tui_layout_split) <remove_windows>: Declare.
12492 (tui_remove_some_windows): Declare.
12493 * tui/tui-layout.c (tui_remove_some_windows): New function.
12494 (tui_layout_split::remove_windows): New method.
12495
427326a8
TT
124962020-02-22 Tom Tromey <tom@tromey.com>
12497
12498 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12499 * tui/tui-layout.h (tui_next_layout): Declare.
12500 * tui/tui-layout.c (tui_next_layout): New function.
12501
3fe12b6d
TT
125022020-02-22 Tom Tromey <tom@tromey.com>
12503
12504 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12505 correct coordinates.
12506
59b8b5d2
TT
125072020-02-22 Tom Tromey <tom@tromey.com>
12508
12509 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12510 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12511 DATA_WIN case.
12512
2a3d458b
TT
125132020-02-22 Tom Tromey <tom@tromey.com>
12514
12515 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12516 TUI_DISASM_WIN, not tui_win_list.
12517
3f0cbb04
TT
125182020-02-22 Tom Tromey <tom@tromey.com>
12519
12520 * valprint.c (generic_val_print_enum_1)
12521 (val_print_type_code_flags): Style member names.
12522 * rust-lang.c (val_print_struct, rust_print_enum)
12523 (rust_print_struct_def, rust_internal_print_type): Style member
12524 names.
12525 * p-valprint.c (pascal_object_print_value_fields): Style member
12526 names. Only call fprintf_symbol_filtered for static members.
12527 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12528 * f-valprint.c (f_val_print): Style member names.
12529 * f-typeprint.c (f_type_print_base): Style member names.
12530 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12531 call fprintf_symbol_filtered for static members.
12532 (cp_print_class_member): Style member names.
12533 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12534 member names.
12535 * ada-valprint.c (ada_print_scalar): Style enum names.
12536 (ada_val_print_enum): Likewise.
12537 * ada-typeprint.c (print_enum_type): Style enum names.
12538
d4d947ae
TT
125392020-02-21 Tom Tromey <tom@tromey.com>
12540
12541 * psympriv.h (struct partial_symtab): Update comment.
12542
e94e944b
TT
125432020-02-21 Tom Tromey <tromey@adacore.com>
12544
12545 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12546 type is CORE_ADDR.
12547
1eb73179
TV
125482020-02-21 Tom de Vries <tdevries@suse.de>
12549
12550 PR gdb/25534
12551 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12552 if dependencies[i]->user != NULL.
12553
4f180d53
AT
125542020-02-21 Ali Tamur <tamur@google.com>
12555
12556 * dwarf2/read.c (dwarf2_name): Add null check.
12557
22b6cd70
TT
125582020-02-20 Tom Tromey <tom@tromey.com>
12559
12560 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12561 ">=", in binary search.
12562 (dwarf2_find_containing_comp_unit): New overload.
12563 (run_test): New self-test.
12564 (_initialize_dwarf2_read): Register new test.
12565
bd0cf5a6
NC
125662020-02-20 Nelson Chu <nelson.chu@sifive.com>
12567
12568 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12569 * riscv-tdep.h: Likewise.
12570 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12571 rv32-only CSR.
12572 * features/riscv/64bit-csr.xml: Regenerated.
12573
3f702acd
SDJ
125742020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12575 Tom Tromey <tom@tromey.com>
12576
12577 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12578 of 'fputc_unfiltered'.
12579 (putchar_unfiltered): Call 'fputc_unfiltered'.
12580 (fputc_unfiltered): Call 'fputs_unfiltered'.
12581
d13c7322
AB
125822020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12583
12584 * config.in: Regenerate.
12585 * configure: Regenerate.
12586 * configure.ac: Add --with-python-libdir option.
12587 * main.c: Use WITH_PYTHON_LIBDIR.
12588
869d8950
TT
125892020-02-19 Tom Tromey <tom@tromey.com>
12590
12591 * symtab.c (general_symbol_info::compute_and_set_names): Use
12592 obstack_strndup. Simplify call to symbol_set_demangled_name.
12593
298e9637
SM
125942020-02-19 Simon Marchi <simon.marchi@efficios.com>
12595
12596 * dwarf2/read.c (allocate_signatured_type_table,
12597 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12598 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12599 Remove objfile parameter, update all callers.
12600
08410482
DE
126012020-02-19 Doug Evans <dje@google.com>
12602
12603 PR rust/25535
12604 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12605 rust_enum_variant calculation.
12606
dfdeeca1
TT
126072020-02-19 Tom Tromey <tromey@adacore.com>
12608
12609 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12610
2ef5453b
TT
126112020-02-19 Tom Tromey <tromey@adacore.com>
12612
12613 * ada-lang.c (cache_symbol): Use obstack_strdup.
12614
9f1528a1
AB
126152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12616
12617 * configure: Regenerate.
12618
d3c22fa8
TT
126192020-02-19 Tom Tromey <tromey@adacore.com>
12620
12621 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12622 NULL check.
12623
bf84f706
MR
126242020-02-19 Maciej W. Rozycki <macro@wdc.com>
12625
12626 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12627
d1c9b20f
AB
126282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12629
12630 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12631 if GDBSERVER is not defined.
12632 (riscv_tdesc_cache): Likewise, also store const target_desc.
12633 (STATIC_IN_GDB): Define.
12634 (riscv_create_target_description): Update declaration with
12635 STATIC_IN_GDB.
12636 (riscv_lookup_target_description): New function, only define if
12637 GDBSERVER is not defined.
12638 * arch/riscv.h (riscv_create_target_description): Declare only
12639 when GDBSERVER is defined.
12640 (riscv_lookup_target_description): New declaration when GDBSERVER
12641 is not defined.
12642 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12643 (riscv_linux_read_features): ...this, and return
12644 riscv_gdbarch_features instead of target_desc.
12645 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12646 (riscv_linux_read_description): Rename to...
12647 (riscv_linux_read_features): ...this.
12648 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12649 Update to use riscv_gdbarch_features and
12650 riscv_lookup_target_description.
12651 * riscv-tdep.c (riscv_find_default_target_description): Use
12652 riscv_lookup_target_description instead of
12653 riscv_create_target_description.
12654
373d7ac0
SM
126552020-02-18 Simon Marchi <simon.marchi@efficios.com>
12656
12657 * valprint.c (generic_val_print_enum_1): When printing a flag
12658 enum with value 0 and there is no enumerator with value 0, print
12659 just "0" instead of "(unknown: 0x0)".
12660
b29a2df0
SM
126612020-02-18 Simon Marchi <simon.marchi@efficios.com>
12662
12663 * valprint.c (generic_val_print_enum_1): Print unknown part of
12664 flag enum in hex.
12665
6740f0cc
SM
126662020-02-18 Simon Marchi <simon.marchi@efficios.com>
12667
12668 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12669 flag enums to contain duplicate enumerators.
12670 * valprint.c (generic_val_print_enum_1): Update comment.
12671
edd45eb0
SM
126722020-02-18 Simon Marchi <simon.marchi@efficios.com>
12673
12674 * dwarf2/read.c: Include "count-one-bits.h".
12675 (update_enumeration_type_from_children): If an enumerator has
12676 multiple bits set, don't treat the enumeration as a "flag enum".
12677 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12678 of flag enums have 0 or 1 bit set.
12679
6d0cf446
BE
126802020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12681
12682 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12683 conversion.
12684 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12685 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12686 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12687 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12688 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12689
7001c1b7
SM
126902020-02-18 Simon Marchi <simon.marchi@efficios.com>
12691
12692 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12693
fdb61c6c
SM
126942020-02-14 Simon Marchi <simon.marchi@efficios.com>
12695
12696 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12697 displaced_step_closure_up.
12698 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12699 (struct displaced_step_closure_up):
12700 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12701 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12702 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12703 Likewise.
12704 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12705 * gdbarch.c, gdbarch.h: Re-generate.
12706 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12707 displaced_step_closure_up.
12708 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12709 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12710 * infrun.h (displaced_step_closure_up): New type alias.
12711 (struct displaced_step_inferior_state) <step_closure>: Change
12712 type to displaced_step_closure_up.
12713 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12714 displaced_step_closure_up.
12715 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12716
a4a38eb4
TT
127172020-02-14 Tom Tromey <tom@tromey.com>
12718
12719 * minidebug.c (gnu_debug_key): New global.
12720 (find_separate_debug_file_in_section): Use it.
12721
e8217e61
SM
127222020-02-14 Simon Marchi <simon.marchi@efficios.com>
12723
12724 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12725 std::unique_ptr.
12726 * gdbarch.c: Re-generate.
12727 * gdbarch.h: Re-generate.
12728 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12729 change.
12730 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12731 type to std::unique_ptr.
12732 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12733 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12734 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12735 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12736 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12737 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12738 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12739 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12740 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12741
d8d83535
SM
127422020-02-14 Simon Marchi <simon.marchi@efficios.com>
12743
12744 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12745 std::unique_ptr.
12746 (displaced_step_clear): Rename to...
12747 (displaced_step_reset): ... this. Just call displaced->reset ().
12748 (displaced_step_clear_cleanup): Rename to...
12749 (displaced_step_reset_cleanup): ... this.
12750 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12751 (displaced_step_fixup): Likewise.
12752 (resume_1): Likewise.
12753 (handle_inferior_event): Restore child's memory before calling
12754 displaced_step_fixup on the parent.
12755 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12756 to std::unique_ptr.
12757 <step_closure>: Change type to std::unique_ptr.
12758
5f661e03
SM
127592020-02-14 Simon Marchi <simon.marchi@efficios.com>
12760
12761 * arm-tdep.c: Include count-one-bits.h.
12762 (cleanup_block_store_pc): Use count_one_bits.
12763 (cleanup_block_load_pc): Use count_one_bits.
12764 (arm_copy_block_xfer): Use count_one_bits.
12765 (thumb2_copy_block_xfer): Use count_one_bits.
12766 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12767 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12768 (thumb_get_next_pcs_raw): Use count_one_bits.
12769 (arm_get_next_pcs_raw): Use count_one_bits_l.
12770 * arch/arm.c (bitcount): Remove.
12771 * arch/arm.h (bitcount): Remove.
12772
8084e579
TT
127732020-02-14 Tom Tromey <tromey@adacore.com>
12774
12775 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12776 Update.
12777 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12778 * dwarf2/loc.c (call_site_find_chain_1): Return
12779 unique_xmalloc_ptr.
12780 (call_site_find_chain): Likewise.
12781
258bf0ee
RB
127822020-02-14 Richard Biener <rguenther@suse.de>
12783
12784 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12785 on expression with division operators.
12786
f98a8458
AKS
127872020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12788
12789 * MAINTAINERS (Write After Approval): Adding myself.
12790
d1437c0e
TT
127912020-02-12 Tom Tromey <tom@tromey.com>
12792
12793 * event-loop.c (event_data, gdb_event, event_handler_func):
12794 Remove.
12795
3d4560f7
TT
127962020-02-12 Tom Tromey <tom@tromey.com>
12797
12798 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12799 (dwarf2_frame_objfile_data): Add comment.
12800 (find_comp_unit, set_comp_unit): New functions.
12801 (dwarf2_frame_find_fde): Use find_comp_unit.
12802 (dwarf2_build_frame_info): Use set_comp_unit.
12803
21982304
TT
128042020-02-12 Tom Tromey <tom@tromey.com>
12805
12806 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12807 (comp_unit): Don't initialize objfile.
12808 (execute_cfa_program): Add text_offset parameter.
12809 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12810 (dwarf2_frame_cache): Update.
12811 (dwarf2_build_frame_info): Don't set "objfile" member.
12812
4debb237
TT
128132020-02-12 Tom Tromey <tom@tromey.com>
12814
12815 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12816 (decode_frame_entry): Likewise.
12817 (dwarf2_build_frame_info): Update.
12818
0d404d44
TT
128192020-02-12 Tom Tromey <tom@tromey.com>
12820
12821 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12822 (decode_frame_entry_1): Use the comp_unit obstack.
12823
a7a3ae5c
TT
128242020-02-12 Tom Tromey <tom@tromey.com>
12825
12826 * dwarf2/frame.c (struct comp_unit): Add initializers and
12827 constructor.
12828 (dwarf2_frame_objfile_data): Store a comp_unit.
12829 (dwarf2_frame_find_fde): Update.
12830 (dwarf2_build_frame_info): Use "new".
12831
a9d65418
TT
128322020-02-12 Tom Tromey <tom@tromey.com>
12833
12834 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12835 (dwarf2_fde_table): Typedef for std::vector.
12836 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12837 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12838 (decode_frame_entry): Update.
12839 (dwarf2_build_frame_info): Use "new".
12840
7559c217
CB
128412020-02-12 Christian Biesinger <cbiesinger@google.com>
12842
12843 * arm-tdep.c (arm_gdbarch_init): Update.
12844 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12845 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12846 have_neon, is_m>: Change to bool.
12847
aeefc73c
CB
128482020-02-12 Christian Biesinger <cbiesinger@google.com>
12849
12850 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12851
d27b8e5f
TT
128522020-02-12 Tom Tromey <tom@tromey.com>
12853
12854 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12855
cd5900f3
HD
128562020-02-12 Hannes Domani <ssbssa@yahoo.de>
12857
12858 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12859 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12860
f056b22b
TT
128612020-02-11 Tom Tromey <tom@tromey.com>
12862
12863 * psymtab.h: Update comment.
12864
f92ff6b5
TT
128652020-02-11 Tom Tromey <tom@tromey.com>
12866
12867 * gdb_obstack.h (struct auto_obstack): Use
12868 DISABLE_COPY_AND_ASSIGN.
12869
3fd6912b
TT
128702020-02-11 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/frame.h (struct objfile): Don't forward declare.
12873
69ed9b74
CB
128742020-02-11 Christian Biesinger <cbiesinger@google.com>
12875
12876 * cris-tdep.c (cris_supply_gregset): Change signature to match
12877 what struct regset expects.
12878 (cris_regset): New struct.
12879 (fetch_core_registers): Remove.
12880 (cris_iterate_over_regset_sections): New function.
12881 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12882 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12883
bda874f6
CB
128842020-02-11 Christian Biesinger <cbiesinger@google.com>
12885
12886 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12887 registers.
12888
754e1564
CB
128892020-02-11 Christian Biesinger <cbiesinger@google.com>
12890
12891 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12892
8ddd8e0e
SM
128932020-02-11 Simon Marchi <simon.marchi@efficios.com>
12894
12895 * configure: Re-generate.
12896
898e7f60
SM
128972020-02-11 Simon Marchi <simon.marchi@efficios.com>
12898
12899 * configure: Re-generate.
12900
58df732b
SM
129012020-02-11 Simon Marchi <simon.marchi@efficios.com>
12902
12903 * acinclude: Update warning.m4 path.
12904 * warning.m4: Move to gdbsupport.
12905
da5bd37e
TT
129062020-02-11 Tom Tromey <tromey@adacore.com>
12907
12908 * remote.c (remote_console_output): Update.
12909 * printcmd.c (printf_command): Update.
12910 * event-loop.c (gdb_wait_for_event): Update.
12911 * linux-nat.c (sigchld_handler): Update.
12912 * remote-sim.c (gdb_os_write_stdout): Update.
12913 (gdb_os_flush_stdout): Update.
12914 (gdb_os_flush_stderr): Update.
12915 (gdb_os_write_stderr): Update.
12916 * exceptions.c (print_exception): Update.
12917 * remote-fileio.c (remote_fileio_func_read): Update.
12918 (remote_fileio_func_write): Update.
12919 * tui/tui.c (tui_enable): Update.
12920 * tui/tui-interp.c (tui_interp::init): Update.
12921 * utils.c (init_page_info): Update.
12922 (putchar_unfiltered, fputc_unfiltered): Update.
12923 (gdb_flush): Update.
12924 (emit_style_escape): Update.
12925 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12926 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12927 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12928 (stderr_file::write): Update.
12929 (stderr_file::puts): Update.
12930 * ui-file.h (ui_file_isatty, ui_file_write)
12931 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12932 (ui_file_puts): Don't declare.
12933
85f0dd3c
TV
129342020-02-10 Tom de Vries <tdevries@suse.de>
12935
12936 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12937 sentinel to char *.
12938
2e927613
TV
129392020-02-09 Tom de Vries <tdevries@suse.de>
12940
12941 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12942 filename if it matches "<artificial>".
12943
6bafc845
HD
129442020-02-09 Hannes Domani <ssbssa@yahoo.de>
12945
12946 * windows-tdep.c (struct enum_value_name): New struct.
12947 (create_enum): New function.
12948 (windows_get_siginfo_type): Create and use enum types.
12949
7928d571
HD
129502020-02-09 Hannes Domani <ssbssa@yahoo.de>
12951
12952 * NEWS: Mention $_siginfo support for Windows.
12953 * windows-nat.c (handle_exception): Set siginfo_er.
12954 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12955 (windows_xfer_siginfo): New function.
12956 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12957 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12958 (init_windows_gdbarch_data): New function.
12959 (get_windows_gdbarch_data): New function.
12960 (windows_get_siginfo_type): New function.
12961 (windows_init_abi): Register windows_get_siginfo_type.
12962 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12963
6751ebae
TT
129642020-02-08 Tom Tromey <tom@tromey.com>
12965
12966 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12967 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12968 <keep>: Declare method.
12969 <m_keep>: Remove member.
12970 <~cutu_reader>: Remove.
12971 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12972 (cutu_reader::cutu_reader): Update.
12973 (cutu_reader::keep): Rename from ~cutu_reader.
12974 (process_psymtab_comp_unit, build_type_psymtabs_1)
12975 (process_skeletonless_type_unit, load_partial_comp_unit)
12976 (load_full_comp_unit, dwarf2_read_addr_index)
12977 (read_signatured_type): Update.
12978
135f5437
TT
129792020-02-08 Tom Tromey <tom@tromey.com>
12980
12981 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12982 "want_partial_unit" parameter.
12983 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12984 Inline check for DW_TAG_partial_unit.
12985 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12986
9f66ff1c
TT
129872020-02-08 Tom Tromey <tom@tromey.com>
12988
12989 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12990 read.c.
12991 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12992 read.c.
12993
c8a7a66f
TT
129942020-02-08 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (read_address): Move to comp-unit.c.
12997 (dwarf2_rnglists_process, dwarf2_ranges_process)
12998 (read_attribute_value, dwarf_decode_lines_1)
12999 (var_decode_location, decode_locdesc): Update.
13000 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13001 read.c. Remove "cu" parameter.
13002 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13003 method.
13004
8266302d
TT
130052020-02-08 Tom Tromey <tom@tromey.com>
13006
13007 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13008 (read_indirect_line_string): Update.
13009 * dwarf2/comp-unit.c (read_offset): Remove.
13010 (read_comp_unit_head): Update.
13011 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13012 method.
13013 (read_offset): Don't declare.
13014
4057dfde
TT
130152020-02-08 Tom Tromey <tom@tromey.com>
13016
13017 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13018 * dwarf2/read.c (struct comp_unit_head): Move to
13019 dwarf2/comp-unit.h.
13020 (enum class rcuh_kind): Move to comp-unit.h.
13021 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13022 (read_comp_unit_head, error_check_comp_unit_head)
13023 (read_and_check_comp_unit_head): Move to comp-unit.c.
13024 (read_offset, dwarf_unit_type_name): Likewise.
13025 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13026 (cutu_reader::cutu_reader, read_call_site_scope)
13027 (find_partial_die, follow_die_offset): Update.
13028 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13029
24aa364d
TT
130302020-02-08 Tom Tromey <tom@tromey.com>
13031
13032 * dwarf2/read.c (read_offset_1): Move to leb.c.
13033 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13034 (dwarf_decode_macro_bytes): Update.
13035 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13036 * dwarf2/leb.h (read_offset): Declare.
13037
2c7d5afc
TT
130382020-02-08 Tom Tromey <tom@tromey.com>
13039
13040 * dwarf2/read.c (dwarf2_section_size): Remove.
13041 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13042 Update.
13043 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13044
4075cb26
TT
130452020-02-08 Tom Tromey <tom@tromey.com>
13046
13047 * dwarf2/read.c (read_initial_length): Move to leb.c.
13048 * dwarf2/leb.h (read_initial_length): Declare.
13049 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13050 handle_nonstd parameter.
13051 * dwarf2/frame.c (read_initial_length): Remove.
13052 (decode_frame_entry_1): Update.
13053
09ba997f
TT
130542020-02-08 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/loc.c (dwarf2_find_location_expression)
13057 (dwarf_evaluate_loc_desc::get_tls_address)
13058 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13059 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13060 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13061 (dwarf2_compile_property_to_c)
13062 (dwarf2_loc_desc_get_symbol_read_needs)
13063 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13064 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13065 (loclist_describe_location, loclist_tracepoint_var_ref)
13066 (loclist_generate_c_location): Update.
13067 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13068 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13069 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13070 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13071 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13072 (dwarf2_per_cu_data::addr_size)
13073 (dwarf2_per_cu_data::ref_addr_size)
13074 (dwarf2_per_cu_data::text_offset)
13075 (dwarf2_per_cu_data::addr_type): Now methods.
13076 (per_cu_header_read_in): Make per_cu "const".
13077 (dwarf2_version): Remove.
13078 (dwarf2_per_cu_data::int_type): Now a method.
13079 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13080 (set_die_type, read_array_type, read_subrange_index_type)
13081 (read_tag_string_type, read_subrange_type): Update.
13082 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13083 offset_size, ref_addr_size, text_offset, addr_type, version,
13084 objfile, int_type, addr_sized_int_type>: Declare methods.
13085
96c738c0
TT
130862020-02-08 Tom Tromey <tom@tromey.com>
13087
13088 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13089 Move earlier.
13090
8fdd972c
TT
130912020-02-08 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/read.h (dwarf_line_debug): Declare.
13094 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13095 * dwarf2/read.c: Move line_header code to new files.
13096 (dwarf_line_debug): No longer static.
13097 * dwarf2/line-header.c: New file.
13098 * dwarf2/line-header.h: New file.
13099
03075812
TT
131002020-02-08 Tom Tromey <tom@tromey.com>
13101
13102 * dwarf2/read.c (struct line_header) <file_full_name,
13103 file_file_name>: Return unique_xmalloc_ptr.
13104 (line_header::file_file_name): Update.
13105 (line_header::file_full_name): Update.
13106 (dw2_get_file_names_reader): Update.
13107 (macro_start_file): Update.
13108
bb822404
TT
131092020-02-08 Tom Tromey <tom@tromey.com>
13110
13111 * dwarf2/read.c (struct line_header) <file_full_name,
13112 file_file_name>: Declare methods.
13113 (dw2_get_file_names_reader): Update.
13114 (file_file_name): Now a method.
13115 (file_full_name): Likewise.
13116 (macro_start_file): Update.
13117
009b64fc
TT
131182020-02-08 Tom Tromey <tom@tromey.com>
13119
13120 * dwarf2/read.c (dwarf_always_disassemble)
13121 (show_dwarf_always_disassemble): Move to loc.c.
13122 (_initialize_dwarf2_read): Move "always-disassemble" registration
13123 to loc.c.
13124 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13125 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13126 static.
13127 (show_dwarf_always_disassemble): Move from read.c.
13128 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13129
5895093f
TT
131302020-02-08 Tom Tromey <tom@tromey.com>
13131
13132 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13133 (create_quick_file_names_table): Return htab_up.
13134 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13135 Update.
13136 * dwarf2/read.h (struct dwarf2_per_objfile)
13137 <quick_file_names_table>: Now htab_up.
13138
b3b32279
TT
131392020-02-08 Tom Tromey <tom@tromey.com>
13140
13141 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13142
1d33d811
TT
131432020-02-08 Tom Tromey <tom@tromey.com>
13144
13145 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13146 Rewrite.
13147 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13148 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13149 (abbrev_table::abbrev_table): No longer inline.
13150 (ABBREV_HASH_SIZE): Remove.
13151 (abbrev_table::m_abbrevs): Now an htab_up.
13152
86de1d91
TT
131532020-02-08 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13156 (cutu_reader): Update.
13157 (build_type_psymtabs_1): Update.
13158 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13159 (abbrev_table::alloc_abbrev): Update.
13160 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13161 (abbrev_table::read): New static method, renamed from
13162 abbrev_table_read_table.
13163 (abbrev_table::alloc_abbrev)
13164 (abbrev_table::add_abbrev): Now private.
13165 (abbrev_table::abbrev_table): Now private.
13166 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13167
0335378b
TT
131682020-02-08 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13171 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13172 htab_up.
13173
48b490f2
TT
131742020-02-08 Tom Tromey <tom@tromey.com>
13175
13176 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13177 htab_up.
13178 (lookup_dwo_unit_in_dwp): Update.
13179 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13180 on obstack.
13181
bc68fb19
TT
131822020-02-08 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13185 obstack.
13186
d15acc42
TT
131872020-02-08 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13190 line_header_hash.
13191 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13192 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13193 Change type to htab_up.
13194
eaa5fa8b
TT
131952020-02-08 Tom Tromey <tom@tromey.com>
13196
13197 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13198 htab_up. Don't allocate on obstack.
13199 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13200 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13201 Change type to htab_up.
13202
b0b6a987
TT
132032020-02-08 Tom Tromey <tom@tromey.com>
13204
13205 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13206 Change type to htab_up.
13207 * dwarf2/read.c (create_signatured_type_table_from_index)
13208 (create_signatured_type_table_from_debug_names)
13209 (create_all_type_units, add_type_unit)
13210 (lookup_dwo_signatured_type, lookup_signatured_type)
13211 (process_skeletonless_type_unit): Update.
13212 (create_debug_type_hash_table, create_debug_types_hash_table):
13213 Change type of types_htab.
13214 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13215 htab_up. Don't allocate on obstack.
13216 (create_cus_hash_table): Change type of cus_htab parameter.
13217 (struct dwo_file) <cus, tus>: Now htab_up.
13218 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13219 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13220 (queue_and_load_all_dwo_tus): Update.
13221 * dwarf2/index-write.c (write_gdbindex): Update.
13222 (write_debug_names): Update.
13223
39856def
TT
132242020-02-08 Tom Tromey <tom@tromey.com>
13225
13226 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13227 dwarf2/read.c. Remove "next" member. Add constructor ntad
13228 destructor.
13229 (struct dwarf2_per_objfile) <queue>: New member.
13230 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13231 dwarf2/read.h.
13232 (dwarf2_queue, dwarf2_queue_tail): Remove.
13233 (class dwarf2_queue_guard): Add parameter to constructor. Use
13234 DISABLE_COPY_AND_ASSIGN.
13235 <m_per_objfile>: New member.
13236 <~dwarf2_queue_guard>: Rewrite.
13237 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13238 Update.
13239 (~dwarf2_queue_item): New.
13240
3e225074
TT
132412020-02-08 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/read.c (struct die_info) <has_children>: New member.
13244 (dw2_get_file_names_reader): Remove has_children.
13245 (dw2_get_file_names): Update.
13246 (read_cutu_die_from_dwo): Remove has_children.
13247 (cutu_reader::init_tu_and_read_dwo_dies)
13248 (cutu_reader::cutu_reader): Update.
13249 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13250 Remove has_children.
13251 (build_type_psymtabs_1, process_skeletonless_type_unit)
13252 (load_partial_comp_unit, load_full_comp_unit): Update.
13253 (create_dwo_cu_reader): Remove has_children.
13254 (create_cus_hash_table, read_die_and_children): Update.
13255 (read_full_die_1,read_full_die): Remove has_children.
13256 (read_signatured_type): Update.
13257 (class cutu_reader) <has_children>: Remove.
13258
82ca8957
TT
132592020-02-08 Tom Tromey <tom@tromey.com>
13260
13261 * dwarf2/expr.c: Rename from dwarf2expr.c.
13262 * dwarf2/expr.h: Rename from dwarf2expr.h.
13263 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13264 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13265 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13266 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13267 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13268 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13269 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13270 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13271 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13272 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13273 * dwarf2/loc.c: Rename from dwarf2loc.c.
13274 * dwarf2/loc.h: Rename from dwarf2loc.h.
13275 * dwarf2/read.c: Rename from dwarf2read.c.
13276 * dwarf2/read.h: Rename from dwarf2read.h.
13277 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13278 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13279 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13280 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13281 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13282 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13283 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13284 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13285 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13286 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13287 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13288 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13289 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13290 Update.
13291 * Makefile.in (COMMON_SFILES): Update.
13292 (HFILES_NO_SRCDIR): Update.
13293
9e35d499
TT
132942020-02-08 Tom Tromey <tom@tromey.com>
13295
13296 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13297 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13298
1eba2311
TT
132992020-02-08 Tom Tromey <tom@tromey.com>
13300
13301 * dwarf2read.h (struct die_info): Don't declare.
13302
e41c2da2
TT
133032020-02-08 Tom Tromey <tom@tromey.com>
13304
13305 * dwarf2read.h (die_info_ptr): Remove typedef.
13306
4fc6c0d5
TT
133072020-02-08 Tom Tromey <tom@tromey.com>
13308
13309 * dwarf2read.c (read_call_site_scope)
13310 (handle_data_member_location, dwarf2_add_member_fn)
13311 (mark_common_block_symbol_computed, read_common_block)
13312 (attr_to_dynamic_prop, partial_die_info::read)
13313 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13314 (dwarf2_symbol_mark_computed, set_die_type): Update.
13315 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13316 method.
13317 (attr_form_is_block): Don't declare.
13318 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13319
cd6c91b4
TT
133202020-02-08 Tom Tromey <tom@tromey.com>
13321
13322 * dwarf2read.c (dwarf2_find_base_address, )
13323 (read_call_site_scope, rust_containing_type)
13324 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13325 (handle_data_member_location, dwarf2_add_member_fn)
13326 (get_alignment, read_structure_type, process_structure_scope)
13327 (mark_common_block_symbol_computed, read_common_block)
13328 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13329 (partial_die_info::read, read_attribute_value, new_symbol)
13330 (lookup_die_type, dwarf2_get_ref_die_offset)
13331 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13332 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13333 (dwarf2_symbol_mark_computed): Update.
13334 * dwarf2/attribute.h (struct attribute) <value_as_address,
13335 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13336 methods.
13337 (value_as_address, attr_form_is_section_offset)
13338 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13339 * dwarf2/attribute.c (attribute::value_as_address)
13340 (attribute::form_is_section_offset, attribute::form_is_constant)
13341 (attribute::form_is_ref): Now methods.
13342
162dce55
TT
133432020-02-08 Tom Tromey <tom@tromey.com>
13344
13345 * dwarf2read.c (struct attribute, DW_STRING)
13346 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13347 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13348 (attr_form_is_block, attr_form_is_section_offset)
13349 (attr_form_is_constant, attr_form_is_ref): Move.
13350 * dwarf2/attribute.h: New file.
13351 * dwarf2/attribute.c: New file, from dwarf2read.c.
13352 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13353
3054dd54
TT
133542020-02-08 Tom Tromey <tom@tromey.com>
13355
13356 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13357 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13358 Move.
13359 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13360 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13361 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13362 abbrev.c.
13363 * dwarf2/abbrev.h: New file.
13364 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13365 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13366
96b79293
TT
133672020-02-08 Tom Tromey <tom@tromey.com>
13368
13369 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13370 (dwarf2_section_size, dwarf2_get_section_info)
13371 (create_signatured_type_table_from_debug_names)
13372 (create_addrmap_from_aranges, read_debug_names_from_section)
13373 (get_gdb_index_contents_from_section, read_comp_unit_head)
13374 (error_check_comp_unit_head, read_abbrev_offset)
13375 (create_debug_type_hash_table, init_cu_die_reader)
13376 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13377 (read_comp_units_from_section, create_cus_hash_table)
13378 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13379 (create_dwp_v2_section, dwarf2_rnglists_process)
13380 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13381 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13382 (read_indirect_string_from_dwz, read_addr_index_1)
13383 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13384 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13385 (fill_in_loclist_baton): Update.
13386 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13387 get_containing_section, get_bfd_owner, get_bfd_section,
13388 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13389 (dwarf2_read_section, get_section_name, get_section_file_name)
13390 (get_containing_section, get_section_bfd_owner)
13391 (get_section_bfd_section, get_section_name, get_section_file_name)
13392 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13393 declare.
13394 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13395 (dwarf2_section_info::get_bfd_owner)
13396 (dwarf2_section_info::get_bfd_section)
13397 (dwarf2_section_info::get_name)
13398 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13399 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13400 (dwarf2_section_info::read): Now methods.
13401 * dwarf-index-write.c (class debug_names): Update.
13402
2c86cff9
TT
134032020-02-08 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13406 Move to dwarf2/section.h.
13407 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13408 (get_section_bfd_section, get_section_name)
13409 (get_section_file_name, get_section_id, get_section_flags)
13410 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13411 dwarf2/section.c.
13412 * dwarf2/section.h: New file.
13413 * dwarf2/section.c: New file, from dwarf2read.c.
13414 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13415
f4382c45
TT
134162020-02-08 Tom Tromey <tom@tromey.com>
13417
13418 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13419 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13420 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13421 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13422 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13423 * dwarf2/leb.h: New file, from dwarf2read.c.
13424 * dwarf2/leb.c: New file, from dwarf2read.c.
13425 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13426 Remove.
13427 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13428 (COMMON_SFILES): Add dwarf2/leb.c.
13429
01840b7a
JB
134302020-02-08 Joel Brobecker <brobecker@adacore.com>
13431
13432 GDB 9.1 released.
13433
dfcb27e4
IB
134342020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13435
13436 PR gdb/25190:
aac66a4c
SM
13437 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13438 * gdb/remote.c (remote_console_output): Update.
13439 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13440 (ui_file_puts): ...this.
13441 * gdb/ui-file.h (ui_file_puts): Add declaration.
13442 * gdb/utils.c (emit_style_escape): Update.
13443 (flush_wrap_buffer): Update.
13444 (fputs_maybe_filtered): Update.
13445 (fputs_unfiltered): Add function.
dfcb27e4 13446
faa17681
IB
134472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13448
aac66a4c
SM
13449 * gdb/event-loop.c (gdb_wait_for_event): Update.
13450 * gdb/printcmd.c (printf_command): Update.
13451 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13452 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13453 (gdb_os_flush_stderr): Update.
13454 * gdb/remote.c (remote_console_output): Update.
13455 * gdb/ui-file.c (gdb_flush): Rename to...
13456 (ui_file_flush): ...this.
13457 (stderr_file::write): Update.
13458 (stderr_file::puts): Update.
13459 * gdb/ui-file.h (gdb_flush): Rename to...
13460 (ui_file_flush): ...this.
13461 * gdb/utils.c (gdb_flush): Add function.
13462 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13463
5abbbe1d
TT
134642020-02-07 Tom Tromey <tromey@adacore.com>
13465
13466 PR breakpoints/24915:
13467 * source.c (find_and_open_source): Do not check basenames_may_differ.
13468
919adfe8
TT
134692020-02-07 Tom Tromey <tom@tromey.com>
13470
13471 * README: Update gdbserver documentation.
13472 * gdbserver: Move to top level.
13473 * configure.tgt (build_gdbserver): Remove.
13474 * configure.ac: Remove --enable-gdbserver.
13475 * configure: Rebuild.
13476 * Makefile.in (distclean): Don't mention gdbserver.
13477
1d5d29e7
SV
134782020-02-06 Shahab Vahedi <shahab@synopsys.com>
13479
13480 * source-cache.c (source_cache::ensure): Surround
13481 get_plain_source_lines with a try/catch.
13482 (source_cache::get_line_charpos): Get rid of try/catch
13483 and only check for the return value of "ensure".
13484 * tui/tui-source.c (tui_source_window::set_contents):
13485 Simplify "nlines" calculation.
13486
6eb1129c
SV
134872020-02-06 Shahab Vahedi <shahab@synopsys.com>
13488
13489 * MAINTAINERS (Write After Approval): Add myself.
13490
c6a42d11
CB
134912020-02-05 Christian Biesinger <cbiesinger@google.com>
13492
13493 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13494 function call.
13495
c8ecdda6
CB
134962020-02-05 Christian Biesinger <cbiesinger@google.com>
13497
13498 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13499
f6480e70
MR
135002020-02-05 Maciej W. Rozycki <macro@wdc.com>
13501
13502 * nat/riscv-linux-tdesc.h: New file.
13503 * nat/riscv-linux-tdesc.c: New file, taking code from...
13504 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13505 ... here.
13506 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13507 NATDEPFILES.
13508
dcc9fbc6
AB
135092020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13510
13511 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13512 we don't set the fake simulator ptid to the null_ptid.
13513
719546c4
SM
135142020-02-03 Simon Marchi <simon.marchi@efficios.com>
13515
13516 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13517 * gdbthread.h (class thread_info) <resumed>: Likewise.
13518 * infrun.c (resume_1): Likewise.
13519 (proceed): Likewise.
13520 (infrun_thread_stop_requested): Likewise.
13521 (stop_all_threads): Likewise.
13522 (handle_inferior_event): Likewise.
13523 (restart_threads): Likewise.
13524 (finish_step_over): Likewise.
13525 (keep_going_stepped_thread): Likewise.
13526 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13527 (linux_handle_extended_wait): Likewise.
13528 * record-btrace.c (get_thread_current_frame_id): Likewise.
13529 * record-full.c (record_full_wait_1): Likewise.
13530 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13531 * target.c (target_resume): Likewise.
13532 * thread.c (set_running_thread): Likewise.
13533
e409c542
AKS
135342020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13535
13536 * f-valprint.c (f77_print_array_1): Changed datatype of index
13537 variable to LONGEST from int to enable it to contain bound
13538 values correctly.
13539
ee98c0da
MR
135402020-02-03 Maciej W. Rozycki <macro@wdc.com>
13541
13542 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13543 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13544 offsets according to FLEN determined.
13545 (riscv_linux_nat_target::read_description): Determine FLEN
13546 dynamically.
13547 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13548 according to FLEN determined.
13549 (riscv_linux_nat_target::store_registers): Likewise.
13550
aa66aac4
SV
135512020-02-01 Shahab Vahedi <shahab@synopsys.com>
13552
13553 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13554 when reg->group is empty and reggroup is not.
13555
fd9faca8
TT
135562020-01-31 Tom Tromey <tromey@adacore.com>
13557
13558 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13559 Call beneath target's mourn_inferior after unpushing.
13560
42330a68
AB
135612020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13562
13563 PR tui/9765
13564 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13565 have enough lines to fill the screen, still return the lowest
13566 address we found.
13567
7a27a45b
AB
135682020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13569
13570 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13571 '-', '<', and '>' commands.
13572
c47f70e2
PA
135732020-01-29 Pedro Alves <palves@redhat.com>
13574 Sergio Durigan Junior <sergiodj@redhat.com>
13575
13576 * infcmd.c (construct_inferior_arguments): Assert that
13577 'argc' is greater than 0.
13578
5133a315
LM
135792020-01-29 Luis Machado <luis.machado@linaro.org>
13580
13581 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13582 (BRK_INSN_MASK): Define to 0xd4200000.
13583 (aarch64_program_breakpoint_here_p): New function.
13584 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13585 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13586 breakpoint.c.
13587 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13588 breakpoint.h
13589 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13590 call gdbarch_program_breakpoint_here_p.
13591 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13592 default_program_breakpoint_here_p, changed return type to bool and
13593 simplified.
13594 * breakpoint.h (program_breakpoint_here): Moved prototype to
13595 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13596 return type to bool.
13597 * gdbarch.c: Regenerate.
13598 * gdbarch.h: Regenerate.
13599 * gdbarch.sh (program_breakpoint_here_p): New method.
13600 * infrun.c (handle_signal_stop): Call
13601 gdbarch_program_breakpoint_here_p.
13602
168f8c6b
TT
136032020-01-26 Tom Tromey <tom@tromey.com>
13604
13605 * ctfread.c (struct ctf_fp_info): Reindent.
13606 (_initialize_ctfread): Remove.
13607
128a391f
TT
136082020-01-26 Tom Tromey <tom@tromey.com>
13609
13610 * psymtab.c (partial_map_expand_apply)
13611 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13612 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13613 (psym_print_stats, psym_expand_symtabs_for_function)
13614 (psym_map_symbol_filenames, psym_map_matching_symbols)
13615 (psym_expand_symtabs_matching)
13616 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13617 (maintenance_check_psymtabs): Use new methods.
13618 * psympriv.h (struct partial_symtab) <readin_p,
13619 get_compunit_symtab>: New methods.
13620 <readin, compunit_symtab>: Remove members.
13621 (struct standard_psymtab): New.
13622 (struct legacy_psymtab): Derive from standard_psymtab.
13623 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13624 standard_psymtab.
13625 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13626
0494dbec
TT
136272020-01-26 Tom Tromey <tom@tromey.com>
13628
13629 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13630 read_dependencies. Add assert.
13631 * psymtab.c (partial_symtab::read_dependencies): New method.
13632 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13633 method.
13634 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13635 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13636 read_dependencies.
13637 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13638 Add assert.
13639
8566b89b
TT
136402020-01-26 Tom Tromey <tom@tromey.com>
13641
13642 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13643 Call expand_psymtab.
13644 (xcoff_read_symtab): Call expand_psymtab.
13645 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13646 legacy_expand_psymtab.
13647 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13648 method.
13649 (struct legacy_psymtab) <expand_psymtab>: Implement.
13650 <legacy_expand_psymtab>: New member.
13651 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13652 (parse_partial_symbols): Set legacy_expand_psymtab.
13653 (psymtab_to_symtab_1): Change argument order. Call
13654 expand_psymtab.
13655 (new_psymtab): Set legacy_expand_psymtab.
13656 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13657 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13658 expand_psymtab.
13659 (dwarf2_psymtab::expand_psymtab): Rename from
13660 psymtab_to_symtab_1. Call expand_psymtab.
13661 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13662 (dbx_end_psymtab): Likewise.
13663 (dbx_psymtab_to_symtab_1): Change argument order. Call
13664 expand_psymtab.
13665 (dbx_read_symtab): Call expand_psymtab.
13666 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13667 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13668 (ctf_psymtab::read_symtab): Call expand_psymtab.
13669
077cbab2
TT
136702020-01-26 Tom Tromey <tom@tromey.com>
13671
13672 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13673 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13674 messages.
13675 * mdebugread.c (mdebug_read_symtab): Remove prints.
13676 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13677 assert.
13678 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13679
891813be
TT
136802020-01-26 Tom Tromey <tom@tromey.com>
13681
13682 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13683 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13684 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13685 legacy_symtab.
13686 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13687 * psymtab.c (psymtab_to_symtab): Call method.
13688 (dump_psymtab): Update.
13689 * psympriv.h (struct partial_symtab): Add virtual destructor.
13690 <read_symtab>: New method.
13691 (struct legacy_symtab): New.
13692 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13693 (struct pst_map) <pst>: Now a legacy_psymtab.
13694 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13695 (new_psymtab): Use legacy_psymtab.
13696 * dwarf2read.h (struct dwarf2_psymtab): New.
13697 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13698 * dwarf2read.c (dwarf2_create_include_psymtab)
13699 (dwarf2_build_include_psymtabs, create_type_unit_group)
13700 (create_partial_symtab, process_psymtab_comp_unit_reader)
13701 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13702 (set_partial_user): Use dwarf2_psymtab.
13703 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13704 (psymtab_to_symtab_1, process_full_comp_unit)
13705 (process_full_type_unit, dwarf2_ranges_read)
13706 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13707 (dwarf_decode_lines): Use dwarf2_psymtab.
13708 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13709 (add_address_entry_worker, write_one_signatured_type)
13710 (recursively_count_psymbols, recursively_write_psymbols)
13711 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13712 (write_debug_names): Likewise.
13713 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13714 <pst>: Now a legacy_psymtab.
13715 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13716 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13717 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13718 * ctfread.c (struct ctf_psymtab): New.
13719 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13720 ctf_psymtab.
13721 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13722 (create_partial_symtab): Return a ctf_psymtab.
13723 (scan_partial_symbols): Update.
13724
c3693a1d
TT
137252020-01-26 Tom Tromey <tom@tromey.com>
13726
13727 * xcoffread.c (xcoff_start_psymtab): Use new.
13728 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13729 renamed from start_psymtab_common.
13730 * psympriv.h (struct partial_symtab): Add new constructor.
13731 (start_psymtab_common): Don't declare.
13732 * mdebugread.c (parse_partial_symbols): Use new.
13733 * dwarf2read.c (create_partial_symtab): Use new.
13734 * dbxread.c (start_psymtab): Use new.
13735 * ctfread.c (create_partial_symtab): Use new.
13736
32caafd0
TT
137372020-01-26 Tom Tromey <tom@tromey.com>
13738
13739 * xcoffread.c (xcoff_end_psymtab): Use new.
13740 * psymtab.c (start_psymtab_common): Use new.
13741 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13742 Update.
13743 * psympriv.h (struct partial_symtab): Add parameters to
13744 constructor. Don't inline.
13745 (allocate_psymtab): Don't declare.
13746 * mdebugread.c (new_psymtab): Use new.
13747 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13748 * dbxread.c (dbx_end_psymtab): Use new.
13749
abaa2f23
TT
137502020-01-26 Tom Tromey <tom@tromey.com>
13751
13752 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13753 allocate_psymtab. Update documentation.
13754 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13755 allocate_psymtab. Do not use new.
13756 (allocate_psymtab): Use new. Update.
13757
6d94535f
TT
137582020-01-26 Tom Tromey <tom@tromey.com>
13759
13760 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13761 * psymtab.c (psym_print_stats): Update.
13762 * psympriv.h (struct partial_symtab) <readin,
13763 psymtabs_addrmap_supported, anonymous>: Now bool.
13764 * mdebugread.c (psymtab_to_symtab_1): Update.
13765 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13766 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13767 (process_full_comp_unit, process_full_type_unit): Update.
13768 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13769 * ctfread.c (psymtab_to_symtab): Update.
13770
6f17252b
TT
137712020-01-26 Tom Tromey <tom@tromey.com>
13772
13773 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13774 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13775 * psymtab.c (psymtab_storage): Delete psymtabs.
13776 (psymtab_storage::allocate_psymtab): Use new.
13777 (psymtab_storage::discard_psymtab): Use delete.
13778 * psympriv.h (struct partial_symtab): Add constructor and
13779 initializers.
13780
f6f1cebc
TT
137812020-01-26 Tom Tromey <tom@tromey.com>
13782
13783 * machoread.c: Do not include psympriv.h.
13784
e47e48f6
PW
137852020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13786
13787 * NEWS: Mention the new option and the set/show commands.
13788
a2fedca9
PW
137892020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13790
13791 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13792 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13793 (validate_exec_file): New variables, enums, functions.
13794 (exec_file_locate_attach, print_section_info): Style the filenames.
13795 (_initialize_exec): Install show_exec_file_mismatch_command and
13796 set_exec_file_mismatch_command.
13797 * gdbcore.h (validate_exec_file): Declare.
13798 * infcmd.c (attach_command): Call validate_exec_file.
13799 * remote.c ( remote_target::remote_add_inferior): Likewise.
13800
7ffa82e1
AB
138012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13802
13803 * frame.c (find_frame_sal): Move call to get_next_frame into more
13804 inner scope.
13805 * inline-frame.c (inilne_state) <inline_state>: Update argument
13806 types.
13807 (inilne_state) <skipped_symbol>: Rename to...
13808 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13809 (skip_inline_frames): Build vector of skipped symbols and use this
13810 to reate the inline_state.
13811 (inline_skipped_symbol): Add a comment and some assertions, fetch
13812 skipped symbol from the list.
13813
3d92a3e3
AB
138142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13815
13816 * buildsym.c (lte_is_less_than): Delete.
13817 (buildsym_compunit::end_symtab_with_blockvector): Create local
13818 lambda function to sort line table entries, and use
13819 std::stable_sort instead of std::sort.
13820 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13821 markers when looking for a previous line.
13822
94a72be7
AB
138232020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13824
13825 * dwarf2read.c (lnp_state_machine::record_line): Include
13826 end_sequence parameter in debug print out. Record the line if we
13827 are at an end_sequence marker even if it's not the start of a
13828 statement.
13829 * symmisc.c (maintenance_print_one_line_table): Print end of
13830 sequence markers with 'END' not '0'.
13831
53af73bf
PA
138322020-01-24 Pedro Alves <palves@redhat.com>
13833
13834 PR gdb/25410
13835 * thread.c (scoped_restore_current_thread::restore): Use
13836 switch_to_inferior_no_thread.
13837 * exec.c: Include "progspace-and-thread.h".
13838 (add_target_sections, remove_target_sections):
13839 scoped_restore_current_pspace_and_thread instead of
13840 scoped_restore_current_thread.
13841 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13842 and aspace to the inferior before calling clone_program_space.
13843 Remove stale comment.
13844
3050c6f4
CB
138452020-01-24 Christian Biesinger <cbiesinger@google.com>
13846
13847 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13848 (arm_netbsd_nat_target::fetch_registers): ...this.
13849 (arm_nbsd_nat_target::store_registers): Rename to...
13850 (arm_netbsd_nat_target::store_registers): ...this.
13851
73685c7e
CB
138522020-01-24 Christian Biesinger <cbiesinger@google.com>
13853
13854 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13855 register_t.
13856
89203d40
CB
138572020-01-24 Christian Biesinger <cbiesinger@google.com>
13858
13859 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13860 Update comment.
13861 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13862 Likewise.
13863 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13864 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13865 the correct replacement (iterate_over_regset_sections).
13866 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13867 Update comment.
13868
1ba1ac88
AB
138692020-01-24 Graham Markall <graham.markall@embecosm.com>
13870
13871 PR gdb/23718
13872 * gdb/python/python.c (execute_gdb_command): Call
13873 async_enable_stdin in catch block.
13874
f3364a6d
AB
138752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13876
13877 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13878 SWITCH_THRU_ALL_UIS.
13879
733d0a67
AB
138802020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13881
13882 PR tui/9765
13883 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13884 comment, add extra parameter, and update to store previous symbol
13885 when appropriate.
13886 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13887 add extra parameter.
13888 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13889 remove unneeded parameter, add try/catch around gdb_print_insn,
13890 rewrite to add items to asm_lines vector.
13891 (tui_find_backward_disassembly_start_address): New function.
13892 (tui_find_disassembly_address): Updated throughout.
13893 (tui_disasm_window::set_contents): Update for changes to
13894 tui_disassemble.
13895 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13896 number of lines to scroll.
13897
b3b3bada
SM
138982020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13899
13900 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13901 (SECT_OFF_DATA): Likewise.
13902 (SECT_OFF_RODATA): Likewise.
13903 (SECT_OFF_TEXT): Likewise.
13904 (SECT_OFF_BSS): Likewise.
13905 (struct objfile) <text_section_offset, data_section_offset>: New
13906 methods.
13907 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13908 objfile::text_section_offset.
13909 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13910 * coffread.c (coff_symtab_read): Likewise.
13911 (enter_linenos): Likewise.
13912 (process_coff_symbol): Likewise.
13913 * ctfread.c (get_objfile_text_range): Likewise.
13914 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13915 Use objfile::data_section_offset.
13916 * dwarf2-frame.c (execute_cfa_program): Use
13917 objfile::text_section_offset.
13918 (dwarf2_frame_find_fde): Likewise.
13919 * dwarf2read.c (create_addrmap_from_index): Likewise.
13920 (create_addrmap_from_aranges): Likewise.
13921 (dw2_find_pc_sect_compunit_symtab): Likewise.
13922 (process_psymtab_comp_unit_reader): Likewise.
13923 (add_partial_symbol): Likewise.
13924 (add_partial_subprogram): Likewise.
13925 (process_full_comp_unit): Likewise.
13926 (read_file_scope): Likewise.
13927 (read_func_scope): Likewise.
13928 (read_lexical_block_scope): Likewise.
13929 (read_call_site_scope): Likewise.
13930 (dwarf2_rnglists_process): Likewise.
13931 (dwarf2_ranges_process): Likewise.
13932 (dwarf2_ranges_read): Likewise.
13933 (dwarf_decode_lines_1): Likewise.
13934 (new_symbol): Likewise.
13935 (dwarf2_fetch_die_loc_sect_off): Likewise.
13936 (dwarf2_per_cu_text_offset): Likewise.
13937 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13938 * hppa-tdep.c (read_unwind_info): Likewise.
13939 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13940 * psympriv.h (struct partial_symtab): Likewise.
13941 * psymtab.c (find_pc_sect_psymtab): Likewise.
13942 * solib-svr4.c (enable_break): Likewise.
13943 * stap-probe.c (relocate_address): Use
13944 objfile::data_section_offset.
13945 * xcoffread.c (enter_line_range): Use
13946 objfile::text_section_offset.
13947 (read_xcoff_symtab): Likewise.
13948
ab53f382
SM
139492020-01-23 Simon Marchi <simon.marchi@efficios.com>
13950
13951 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13952 declaration to narrower scopes.
13953
e7eee665
SM
139542020-01-23 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * darwin-nat.h (struct darwin_exception_msg, enum
13957 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13958 Move up.
13959 (class darwin_nat_target) <wait_1, check_new_threads,
13960 decode_exception_message, decode_message, stop_inferior,
13961 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13962 * darwin-nat.c (darwin_check_new_threads): Rename to...
13963 (darwin_nat_target::check_new_threads): ... this.
13964 (darwin_suspend_inferior_it): Remove.
13965 (darwin_decode_exception_message): Rename to...
13966 (darwin_nat_target::decode_exception_message): ... this.
13967 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13968 (darwin_decode_message): Rename to...
13969 (darwin_nat_target::decode_message): ... this.
13970 (cancel_breakpoint): Rename to...
13971 (darwin_nat_target::cancel_breakpoint): ... this.
13972 (darwin_wait): Rename to...
13973 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13974 instead of iterate_over_inferiors.
13975 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13976 (darwin_stop_inferior): Rename to...
13977 (darwin_nat_target::stop_inferior): ... this.
13978 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13979 (darwin_init_thread_list): Rename to...
13980 (darwin_nat_target::init_thread_list): ... this.
13981 (darwin_ptrace_him): Rename to...
13982 (darwin_nat_target::ptrace_him): ... this.
13983 (darwin_nat_target::create_inferior): Pass lambda function to
13984 fork_inferior.
13985 (darwin_nat_target::detach): Call stop_inferior instead of
13986 darwin_stop_inferior.
13987 * fork-inferior.h (fork_inferior): Change init_trace_fun
13988 parameter to gdb::function_view.
13989 * fork-inferior.c (fork_inferior): Likewise.
13990
c162ed3e
HD
139912020-01-23 Hannes Domani <ssbssa@yahoo.de>
13992
13993 * i386-cygwin-tdep.c (core_process_module_section): Update.
13994 * windows-nat.c (struct lm_info_windows): Add text_offset.
13995 (windows_xfer_shared_libraries): Update.
13996 * windows-tdep.c (windows_xfer_shared_library):
13997 Add text_offset_cached argument.
13998 * windows-tdep.h (windows_xfer_shared_library): Update.
13999
a1237872
SM
140002020-01-21 Simon Marchi <simon.marchi@efficios.com>
14001
14002 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14003
b3ee6dd9
SM
140042020-01-21 Simon Marchi <simon.marchi@efficios.com>
14005
14006 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14007 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14008 replace with range-based for.
14009 (gdbsim_interrupt_inferior): Remove.
14010 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14011 with a range-based for. Inline code from
14012 gdbsim_interrupt_inferior.
14013
f9fac3c8
SM
140142020-01-21 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * infrun.c (proceed): Fix indentation.
14017
f6474de9
TT
140182020-01-21 Tom Tromey <tromey@adacore.com>
14019
14020 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14021 * python/python.c (python_extension_ops): Update.
14022 (gdbpy_colorize): New function.
14023 * python/lib/gdb/__init__.py (colorize): New function.
14024 * extension.h (ext_lang_colorize): Declare.
14025 * extension.c (ext_lang_colorize): New function.
14026 * extension-priv.h (struct extension_language_ops) <colorize>: New
14027 member.
14028 * cli/cli-style.c (_initialize_cli_style): Update help text.
14029
f0c702d4
LM
140302020-01-21 Luis Machado <luis.machado@linaro.org>
14031
14032 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14033 <cond>: Change type to bool.
14034 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14035 (aarch64_displaced_step_cb): Likewise.
14036 (aarch64_displaced_step_tb): Likewise.
14037
1ab139e5
LM
140382020-01-21 Luis Machado <luis.machado@linaro.org>
14039
14040 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14041 output.
14042
0c271889
LM
140432020-01-21 Luis Machado <luis.machado@linaro.org>
14044
14045 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14046 <pc_adjust>: Adjust the documentation.
14047 (aarch64_displaced_step_fixup): Check if PC really moved before
14048 adjusting it.
14049
4d89c1c7
TT
140502020-01-19 Tom Tromey <tom@tromey.com>
14051
14052 * disasm.c (~gdb_disassembler): New destructor.
14053 (gdb_buffered_insn_length): Call disassemble_free_target.
14054 * disasm.h (class gdb_disassembler): Declare destructor. Use
14055 DISABLE_COPY_AND_ASSIGN.
14056
c0ab21c2
TT
140572020-01-19 Tom Tromey <tom@tromey.com>
14058
14059 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14060 (die_reader_func_ftype): Remove.
14061 (cutu_reader): New class.
14062 (dw2_get_file_names_reader): Remove "data" parameter.
14063 (dw2_get_file_names): Use cutu_reader.
14064 (create_debug_type_hash_table): Update.
14065 (read_cutu_die_from_dwo): Update comment.
14066 (lookup_dwo_unit): Add dwo_name parameter.
14067 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14068 die_reader_func_ftype and data parameters.
14069 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14070 Remove die_reader_func_ftype and data parameters.
14071 (~cutu_reader): New; from init_cutu_and_read_dies.
14072 (cutu_reader::cutu_reader): Rename from
14073 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14074 and data parameters.
14075 (init_cutu_and_read_dies_simple): Remove.
14076 (struct process_psymtab_comp_unit_data): Remove.
14077 (process_psymtab_comp_unit_reader): Remove data parameter; add
14078 want_partial_unit and pretend_language parameters.
14079 (process_psymtab_comp_unit): Use cutu_reader.
14080 (build_type_psymtabs_reader): Remove data parameter.
14081 (build_type_psymtabs_1): Use cutu_reader.
14082 (process_skeletonless_type_unit): Likewise.
14083 (load_partial_comp_unit_reader): Remove.
14084 (load_partial_comp_unit): Use cutu_reader.
14085 (load_full_comp_unit_reader): Remove.
14086 (load_full_comp_unit): Use cutu_reader.
14087 (struct create_dwo_cu_data): Remove.
14088 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14089 dwo_unit parameters.
14090 (create_cus_hash_table): Use cutu_reader.
14091 (struct dwarf2_read_addr_index_data): Remove.
14092 (dwarf2_read_addr_index_reader): Remove.
14093 (dwarf2_read_addr_index): Use cutu_reader.
14094 (read_signatured_type_reader): Remove.
14095 (read_signatured_type): Use cutu_reader.
14096
45bbae5c
TT
140972020-01-19 Tom Tromey <tom@tromey.com>
14098
14099 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14100 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14101 (tui_wrefresh): Declare.
14102 * tui/tui-wingeneral.c (suppress_output): New global.
14103 (tui_suppress_output, ~tui_suppress_output): New constructor and
14104 destructor.
14105 (tui_wrefresh): New function.
14106 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14107 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14108 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14109 method.
14110 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14111 tui_wrefresh.
14112 (tui_data_window::no_refresh): New method.
14113 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14114 (tui_reg_command): Use tui_suppress_output
14115 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14116 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14117 method.
14118 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14119
4f13c1c0
TT
141202020-01-19 Tom Tromey <tom@tromey.com>
14121
14122 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14123 Handle case where symtab is null.
14124
fa47e446
SM
141252020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14126
14127 * linux-fork.c (one_fork_p): Simplify.
14128
26f42329
SM
141292020-01-17 Simon Marchi <simon.marchi@efficios.com>
14130
14131 * top.c (struct qt_args): Remove.
14132 (kill_or_detach): Change return type to void, replace `void *`
14133 parameter with a proper one.
14134 (print_inferior_quit_action): Likewise.
14135 (quit_confirm): Use range-based for loop to iterate over inferiors.
14136 (quit_force): Likewise.
14137
a9ac81b1
SM
141382020-01-17 Simon Marchi <simon.marchi@efficios.com>
14139
14140 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14141 `void *` parameter with proper parameters.
14142 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14143 (print_one_inferior): Change return type to void, replace `void *`
14144 parameter with proper parameters.
14145 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14146 inferiors.
14147 (get_other_inferior): Remove.
14148 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14149 inferiors.
14150
788eca49
SM
141512020-01-17 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * mi/mi-interp.c (report_initial_inferior): Remove.
14154 (mi_interp::init): Use range-based for to iterate over inferiors.
14155
d9bc85b6
SM
141562020-01-17 Simon Marchi <simon.marchi@efficios.com>
14157
14158 * python/py-inferior.c (build_inferior_list): Remove.
14159 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14160
40c94099
CB
141612020-01-16 Christian Biesinger <cbiesinger@google.com>
14162
14163 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14164 (btrace_stitch_trace): Likewise.
14165 * charset.c (intermediate_encoding): Likewise (vaild).
14166 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14167 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14168 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14169
e0cdfe3c
HD
141702020-01-16 Hannes Domani <ssbssa@yahoo.de>
14171
14172 * windows-tdep.c (windows_get_tlb_type):
14173 Add rtl_user_process_parameters type.
14174
790f1718 141752020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14176 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14177
14178 PR build/24805
14179 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14180 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14181 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14182 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14183 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14184 (ps_plog): Redeclare exported functions with default visibility.
14185
3112ed97
NA
141862020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14187
14188 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14189 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14190
8dc3273e
SM
141912020-01-15 Simon Marchi <simon.marchi@efficios.com>
14192
14193 * infcmd.c (post_create_inferior): Use get_thread_regcache
14194 instead of get_current_regcache.
14195
ff47f4f0
TT
141962020-01-14 Tom Tromey <tom@tromey.com>
14197
14198 PR symtab/12535:
14199 * python/python.c (gdbpy_decode_line): Treat empty string the same
14200 as no argument.
14201
975f45b7
TT
142022020-01-14 Tom Tromey <tom@tromey.com>
14203
14204 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14205
25e57356
TT
142062020-01-14 Tom Tromey <tom@tromey.com>
14207
14208 * nat/linux-btrace.c: Don't include <config.h>.
14209 * nat/linux-ptrace.c: Don't include <config.h>.
14210 * nat/x86-linux-dregs.c: Don't include <config.h>.
14211
05ea2a05
TT
142122020-01-14 Tom Tromey <tom@tromey.com>
14213
14214 * configure: Rebuild.
14215 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14216
01027315
TT
142172020-01-14 Tom Tromey <tom@tromey.com>
14218
14219 * nat/x86-linux-dregs.c: Include configh.h.
14220 * nat/linux-ptrace.c: Include configh.h.
14221 * nat/linux-btrace.c: Include configh.h.
14222 * defs.h: Include config.h, bfd.h.
14223 * configure.ac: Don't source common.host.
14224 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14225 * configure: Rebuild.
14226 * acinclude.m4: Update path.
14227 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14228 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14229 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14230 (CLIBS): Add LIBSUPPORT.
14231 (CDEPS): Likewise.
14232 (COMMON_SFILES): Remove gdbsupport files.
14233 (HFILES_NO_SRCDIR): Likewise.
14234 (stamp-version): Update path to create-version.sh.
14235 (ALLDEPFILES): Remove gdbsupport files.
14236
b2ceabe8
TT
142372020-01-14 Tom Tromey <tom@tromey.com>
14238
14239 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14240 USE_WIN32API when needed.
14241 * configure.ac (USE_WIN32API): Don't define.
14242 (WIN32LIBS): Use WIN32APILIBS.
14243 * configure: Rebuild.
14244
25c51f71
TT
142452020-01-14 Tom Tromey <tom@tromey.com>
14246
14247 * configure: Rebuild.
14248 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14249
717c684d
BE
142502020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14251
14252 * skip.c (skip_function_command): Make skip w/o arguments use the
14253 name of the inlined function if pc is inside any inlined function.
14254
7da6a5b9
LM
142552020-01-14 Luis Machado <luis.machado@linaro.org>
14256
14257 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14258 * infrun.c (resume_1): Likewise.
14259 (handle_inferior_event): Remove stale comment.
14260 * linux-nat.c (linux_nat_target::resume): Update comments.
14261 (save_stop_reason): Likewise.
14262 (linux_nat_filter_event): Likewise.
14263 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14264
44e4c775
AB
142652020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14266
14267 * elfread.c (record_minimal_symbol): Set section index to 0 for
14268 non-allocatable sections.
14269
18a8505e
AT
14270
142712020-01-13 Ali Tamur <tamur@google.com>
14272
14273 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14274 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14275 to gdb::optional. Update comments.
14276 (dwo_file): Update comments.
14277 (read_attribute): Update API to take an additional out parameter,
14278 need_reprocess. This is used to mark attributes that need other
14279 attributes (e.g. str_offsets_base) for correct computation which may not
14280 have been read yet.
14281 (read_attribute_reprocess): New function declaration.
14282 (read_addr_index): Likewise.
14283 (read_dwo_str_index): Likewise.
14284 (read_stub_str_index): Likewise.
14285 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14286 (lookup_addr_base): New function definition.
14287 (lookup_ranges_base): Likewise.
14288 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14289 lookup_ranges_base.
14290 (init_cutu_and_read_dies): Update comments.
14291 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14292 unit. This is used to inherit parent's str_offsets_base and addr_base.
14293 Update comments.
14294 (init_cutu_and_read_dies_simple): Reflect API changes.
14295 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14296 (create_cus_hash_table): Change API to take parent compile unit.
14297 Reflect API changes.
14298 (open_and_init_dwo_file): Reflect API changes.
14299 (dwarf2_get_pc_bounds): Update comments.
14300 (dwarf2_record_block_ranges): Likewise.
14301 (read_full_die_1): Change implementation to reprocess attributes that
14302 need str_offsets_base and addr_base.
14303 (partial_die_info::read): Likewise.
14304 (read_attribute_reprocess): New function definition.
14305 (read_attribute_value): Change API to take an additional out parameter,
14306 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14307 when a non-dwo compile unit has index based attributes.
14308 (read_attribute): Reflect API changes.
14309 (read_addr_index_1): Reflect API changes. Update comments.
14310 (dwarf2_read_addr_index_data): Reflect API changes.
14311 (dwarf2_read_addr_index): Likewise.
14312 (read_str_index): Change API and implementation. This becomes a helper
14313 to be used by the new string index related methods. Update error
14314 message and comments.
14315 (read_dwo_str_index): New function definition.
14316 (read_stub_str_index): Likewise.
14317 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14318 * symfile.h (dwarf2_debug_sections): Likewise.
14319 * xcoffread.c (dwarf2_debug_sections): Likewise.
14320
0cac9354
SM
143212020-01-13 Simon Marchi <simon.marchi@efficios.com>
14322
14323 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14324 core_reg_sect type to gdb_byte *.
14325 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14326 * cris-tdep.c (fetch_core_registers): Likewise.
14327 * corelow.c (core_target::get_core_register_section): Change
14328 type of `contents` to gdb::byte_vector.
14329
9a6d629c
AB
143302020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14331
14332 * tui/tui-wingeneral.c (box_win): Position the title in the center
14333 of the border.
14334
d8b2f9e3
SM
143352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14336
14337 * corelow.c (core_target::get_core_register_section): Use
14338 std::vector instead of alloca.
14339
bb564c58
SM
143402020-01-13 Simon Marchi <simon.marchi@efficios.com>
14341
14342 * warning.m4: Add -Wmissing-declarations to build_warnings.
14343 * configure: Re-generate.
14344
6b366111
SM
143452020-01-13 Simon Marchi <simon.marchi@efficios.com>
14346
14347 * python/python.c (init__gdb_module): Add declaration.
14348
6c265988
SM
143492020-01-13 Simon Marchi <simon.marchi@efficios.com>
14350
14351 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14352 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14353 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14354 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14355 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14356 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14357 * ada-exp.y (_initialize_ada_exp): Add declaration.
14358 * ada-lang.c (_initialize_ada_language): Add declaration.
14359 * ada-tasks.c (_initialize_tasks): Add declaration.
14360 * agent.c (_initialize_agent): Add declaration.
14361 * aix-thread.c (_initialize_aix_thread): Add declaration.
14362 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14363 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14364 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14365 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14366 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14367 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14368 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14369 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14370 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14371 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14372 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14373 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14374 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14375 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14376 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14377 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14378 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14379 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14380 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14381 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14382 * annotate.c (_initialize_annotate): Add declaration.
14383 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14384 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14385 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14386 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14387 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14388 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14389 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14390 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14391 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14392 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14393 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14394 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14395 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14396 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14397 * auto-load.c (_initialize_auto_load): Add declaration.
14398 * auxv.c (_initialize_auxv): Add declaration.
14399 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14400 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14401 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14402 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14403 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14404 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14405 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14406 * breakpoint.c (_initialize_breakpoint): Add declaration.
14407 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14408 * btrace.c (_initialize_btrace): Add declaration.
14409 * charset.c (_initialize_charset): Add declaration.
14410 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14411 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14412 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14413 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14414 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14415 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14416 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14417 * coffread.c (_initialize_coffread): Add declaration.
14418 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14419 * compile/compile.c (_initialize_compile): Add declaration.
14420 * complaints.c (_initialize_complaints): Add declaration.
14421 * completer.c (_initialize_completer): Add declaration.
14422 * copying.c (_initialize_copying): Add declaration.
14423 * corefile.c (_initialize_core): Add declaration.
14424 * corelow.c (_initialize_corelow): Add declaration.
14425 * cp-abi.c (_initialize_cp_abi): Add declaration.
14426 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14427 * cp-support.c (_initialize_cp_support): Add declaration.
14428 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14429 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14430 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14431 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14432 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14433 * ctfread.c (_initialize_ctfread): Add declaration.
14434 * d-lang.c (_initialize_d_language): Add declaration.
14435 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14436 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14437 * dbxread.c (_initialize_dbxread): Add declaration.
14438 * dcache.c (_initialize_dcache): Add declaration.
14439 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14440 * disasm.c (_initialize_disasm): Add declaration.
14441 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14442 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14443 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14444 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14445 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14446 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14447 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14448 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14449 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14450 * elfread.c (_initialize_elfread): Add declaration.
14451 * exec.c (_initialize_exec): Add declaration.
14452 * extension.c (_initialize_extension): Add declaration.
14453 * f-lang.c (_initialize_f_language): Add declaration.
14454 * f-valprint.c (_initialize_f_valprint): Add declaration.
14455 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14456 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14457 * filesystem.c (_initialize_filesystem): Add declaration.
14458 * findcmd.c (_initialize_mem_search): Add declaration.
14459 * findvar.c (_initialize_findvar): Add declaration.
14460 * fork-child.c (_initialize_fork_child): Add declaration.
14461 * frame-base.c (_initialize_frame_base): Add declaration.
14462 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14463 * frame.c (_initialize_frame): Add declaration.
14464 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14465 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14466 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14467 * gcore.c (_initialize_gcore): Add declaration.
14468 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14469 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14470 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14471 * gdbarch.c (_initialize_gdbarch): Add declaration.
14472 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14473 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14474 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14475 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14476 * go-lang.c (_initialize_go_language): Add declaration.
14477 * go32-nat.c (_initialize_go32_nat): Add declaration.
14478 * guile/guile.c (_initialize_guile): Add declaration.
14479 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14480 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14481 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14482 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14483 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14484 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14485 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14486 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14487 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14488 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14489 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14490 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14491 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14492 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14493 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14494 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14495 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14496 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14497 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14498 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14499 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14500 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14501 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14502 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14503 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14504 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14505 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14506 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14507 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14508 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14509 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14510 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14511 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14512 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14513 * infcall.c (_initialize_infcall): Add declaration.
14514 * infcmd.c (_initialize_infcmd): Add declaration.
14515 * inflow.c (_initialize_inflow): Add declaration.
14516 * infrun.c (_initialize_infrun): Add declaration.
14517 * interps.c (_initialize_interpreter): Add declaration.
14518 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14519 * jit.c (_initialize_jit): Add declaration.
14520 * language.c (_initialize_language): Add declaration.
14521 * linux-fork.c (_initialize_linux_fork): Add declaration.
14522 * linux-nat.c (_initialize_linux_nat): Add declaration.
14523 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14524 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14525 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14526 * m2-lang.c (_initialize_m2_language): Add declaration.
14527 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14528 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14529 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14530 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14531 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14532 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14533 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14534 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14535 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14536 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14537 * machoread.c (_initialize_machoread): Add declaration.
14538 * macrocmd.c (_initialize_macrocmd): Add declaration.
14539 * macroscope.c (_initialize_macroscope): Add declaration.
14540 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14541 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14542 * maint.c (_initialize_maint_cmds): Add declaration.
14543 * mdebugread.c (_initialize_mdebugread): Add declaration.
14544 * memattr.c (_initialize_mem): Add declaration.
14545 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14546 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14547 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14548 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14549 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14550 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14551 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14552 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14553 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14554 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14555 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14556 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14557 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14558 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14559 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14560 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14561 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14562 * mipsread.c (_initialize_mipsread): Add declaration.
14563 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14564 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14565 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14566 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14567 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14568 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14569 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14570 * nto-procfs.c (_initialize_procfs): Add declaration.
14571 * objc-lang.c (_initialize_objc_language): Add declaration.
14572 * observable.c (_initialize_observer): Add declaration.
14573 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14574 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14575 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14576 * osabi.c (_initialize_gdb_osabi): Add declaration.
14577 * osdata.c (_initialize_osdata): Add declaration.
14578 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14579 * parse.c (_initialize_parse): Add declaration.
14580 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14581 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14582 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14583 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14584 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14585 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14586 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14587 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14588 * printcmd.c (_initialize_printcmd): Add declaration.
14589 * probe.c (_initialize_probe): Add declaration.
14590 * proc-api.c (_initialize_proc_api): Add declaration.
14591 * proc-events.c (_initialize_proc_events): Add declaration.
14592 * proc-service.c (_initialize_proc_service): Add declaration.
14593 * procfs.c (_initialize_procfs): Add declaration.
14594 * producer.c (_initialize_producer): Add declaration.
14595 * psymtab.c (_initialize_psymtab): Add declaration.
14596 * python/python.c (_initialize_python): Add declaration.
14597 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14598 * record-btrace.c (_initialize_record_btrace): Add declaration.
14599 * record-full.c (_initialize_record_full): Add declaration.
14600 * record.c (_initialize_record): Add declaration.
14601 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14602 * regcache.c (_initialize_regcache): Add declaration.
14603 * reggroups.c (_initialize_reggroup): Add declaration.
14604 * remote-notif.c (_initialize_notif): Add declaration.
14605 * remote-sim.c (_initialize_remote_sim): Add declaration.
14606 * remote.c (_initialize_remote): Add declaration.
14607 * reverse.c (_initialize_reverse): Add declaration.
14608 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14609 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14610 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14611 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14612 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14613 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14614 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14615 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14616 Add declaration.
14617 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14618 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14619 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14620 * rust-exp.y (_initialize_rust_exp): Add declaration.
14621 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14622 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14623 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14624 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14625 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14626 * score-tdep.c (_initialize_score_tdep): Add declaration.
14627 * ser-go32.c (_initialize_ser_dos): Add declaration.
14628 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14629 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14630 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14631 * ser-uds.c (_initialize_ser_socket): Add declaration.
14632 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14633 * serial.c (_initialize_serial): Add declaration.
14634 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14635 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14636 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14637 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14638 * skip.c (_initialize_step_skip): Add declaration.
14639 * sol-thread.c (_initialize_sol_thread): Add declaration.
14640 * solib-aix.c (_initialize_solib_aix): Add declaration.
14641 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14642 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14643 * solib-frv.c (_initialize_frv_solib): Add declaration.
14644 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14645 * solib-target.c (_initialize_solib_target): Add declaration.
14646 * solib.c (_initialize_solib): Add declaration.
14647 * source-cache.c (_initialize_source_cache): Add declaration.
14648 * source.c (_initialize_source): Add declaration.
14649 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14650 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14651 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14652 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14653 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14654 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14655 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14656 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14657 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14658 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14659 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14660 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14661 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14662 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14663 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14664 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14665 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14666 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14667 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14668 * stabsread.c (_initialize_stabsread): Add declaration.
14669 * stack.c (_initialize_stack): Add declaration.
14670 * stap-probe.c (_initialize_stap_probe): Add declaration.
14671 * std-regs.c (_initialize_frame_reg): Add declaration.
14672 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14673 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14674 * symfile.c (_initialize_symfile): Add declaration.
14675 * symmisc.c (_initialize_symmisc): Add declaration.
14676 * symtab.c (_initialize_symtab): Add declaration.
14677 * target.c (_initialize_target): Add declaration.
14678 * target-connection.c (_initialize_target_connection): Add
14679 declaration.
14680 * target-dcache.c (_initialize_target_dcache): Add declaration.
14681 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14682 * thread.c (_initialize_thread): Add declaration.
14683 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14684 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14685 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14686 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14687 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14688 * tracectf.c (_initialize_ctf): Add declaration.
14689 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14690 * tracefile.c (_initialize_tracefile): Add declaration.
14691 * tracepoint.c (_initialize_tracepoint): Add declaration.
14692 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14693 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14694 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14695 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14696 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14697 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14698 * tui/tui.c (_initialize_tui): Add declaration.
14699 * typeprint.c (_initialize_typeprint): Add declaration.
14700 * ui-style.c (_initialize_ui_style): Add declaration.
14701 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14702 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14703 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14704 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14705 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14706 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14707 * unittests/filtered_iterator-selftests.c
14708 (_initialize_filtered_iterator_selftests): Add declaration.
14709 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14710 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14711 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14712 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14713 * unittests/main-thread-selftests.c
14714 (_initialize_main_thread_selftests): Add declaration.
14715 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14716 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14717 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14718 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14719 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14720 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14721 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14722 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14723 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14724 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14725 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14726 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14727 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14728 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14729 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14730 declaration.
14731 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14732 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14733 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14734 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14735 * user-regs.c (_initialize_user_regs): Add declaration.
14736 * utils.c (_initialize_utils): Add declaration.
14737 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14738 * valops.c (_initialize_valops): Add declaration.
14739 * valprint.c (_initialize_valprint): Add declaration.
14740 * value.c (_initialize_values): Add declaration.
14741 * varobj.c (_initialize_varobj): Add declaration.
14742 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14743 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14744 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14745 * windows-nat.c (_initialize_windows_nat): Add declaration.
14746 (_initialize_check_for_gdb_ini): Add declaration.
14747 (_initialize_loadable): Add declaration.
14748 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14749 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14750 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14751 * xcoffread.c (_initialize_xcoffread): Add declaration.
14752 * xml-support.c (_initialize_xml_support): Add declaration.
14753 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14754 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14755 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14756 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14757
e2de1eec
SM
147582020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14759
14760 * regformats/regdat.sh: Generate declaration for init function.
14761
e0037b4c
SM
147622020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14763
14764 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14765 up.
14766 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14767 close_one_inferior>: New methods.
14768 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14769 pass down target to find_inferior_pid.
14770 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14771 Pass down target to find_inferior_ptid.
14772 (gdbsim_target::create_inferior): Pass down target to
14773 add_thread_silent.
14774 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14775 target down to find_inferior_ptid and switch_to_thread.
14776 (gdbsim_target::close): Update to call close_one_inferior.
14777 (struct resume_data): Remove.
14778 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14779 directly, rather than through a void pointer.
14780 (gdbsim_target::resume): Update to call resume_one_inferior.
14781
58920b5b
SM
147822020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14783
14784 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14785
4ec89149
PA
147862020-01-12 Pedro Alves <palves@redhat.com>
14787
14788 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14789 directly for the current inferior instead of
14790 discard_all_inferiors.
14791 (discard_all_inferiors): Delete.
14792
7c392d1d
TT
147932020-01-11 Tom Tromey <tom@tromey.com>
14794
14795 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14796 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14797 deprecated_safe_get_selected_frame.
14798
d9ebdab7
TBA
147992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14800
14801 * inferior.c (print_inferior): Switch inferior before printing it.
14802
f3c469b9
PA
148032020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14804 Pedro Alves <palves@redhat.com>
14805
14806 * progspace-and-thread.c (switch_to_program_space_and_thread):
14807 Assert there's an inferior for PSPACE. Use
14808 switch_to_inferior_no_thread to switch the inferior too.
14809 * progspace.c (program_space::~program_space): Call
14810 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14811 (program_space::free_all_objfiles): Don't call clear_symtab_users
14812 here.
14813 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14814
65c574f6
PA
148152020-01-10 Pedro Alves <palves@redhat.com>
14816
14817 * NEWS: Mention multi-target debugging, "info connections", and
14818 "add-inferior -no-connection".
14819
2f4fcf00
PA
148202020-01-10 Pedro Alves <palves@redhat.com>
14821
14822 * infrun.c: Include "target-connection.h".
14823 (check_multi_target_resumption): New.
14824 (proceed): Call it.
14825 * target-connection.c (make_target_connection_string): Make
14826 extern.
14827 * target-connection.h (make_target_connection_string): Declare.
14828
121b3efd
PA
148292020-01-10 Pedro Alves <palves@redhat.com>
14830
14831 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14832 * inferior.c (uiout_field_connection): New function.
14833 (print_inferior): Add new "connection-id" column.
14834 (add_inferior_command): Show connection number/string of added
14835 inferior.
14836 * process-stratum-target.h
14837 (process_stratum_target::connection_string): New virtual method.
14838 (process_stratum_target::connection_number): New field.
14839 * remote.c (remote_target::connection_string): New override.
14840 * target-connection.c: New file.
14841 * target-connection.h: New file.
14842 * target.c (decref_target): Remove process_stratum targets from
14843 the connection list.
14844 (target_stack::push): Add process_stratum targets to the
14845 connection list.
14846
4f837581
PA
148472020-01-10 Pedro Alves <palves@redhat.com>
14848
14849 Revert:
14850 2016-04-12 Pedro Alves <palves@redhat.com>
14851 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14852 Remove references to name.
14853 * serial.h (struct serial) <name>: Delete.
14854
f4ec508e
PA
148552020-01-10 Pedro Alves <palves@redhat.com>
14856
14857 * gdbarch-selftests.c (register_to_value_test): Remove "target
14858 already pushed" check.
14859
5b6d1e4f
PA
148602020-01-10 Pedro Alves <palves@redhat.com>
14861 John Baldwin <jhb@FreeBSD.org>
14862
14863 * aarch64-linux-nat.c
14864 (aarch64_linux_nat_target::thread_architecture): Adjust.
14865 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14866 (task_command_1): Likewise.
14867 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14868 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14869 (aix_thread_target::store_registers)
14870 (aix_thread_target::thread_alive): Adjust.
14871 * amd64-fbsd-tdep.c: Include "inferior.h".
14872 (amd64fbsd_get_thread_local_address): Pass down target.
14873 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14874 thread's gdbarch instead of target_gdbarch.
14875 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14876 get_last_target_status.
14877 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14878 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14879 inferiors.
14880 (update_inserted_breakpoint_locations): Skip if inferiors with no
14881 execution.
14882 (update_global_location_list): When handling moribund locations,
14883 find representative inferior for location's pspace, and use thread
14884 count of its process_stratum target.
14885 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14886 * bsd-uthread.c (bsd_uthread_target::wait): Use
14887 as_process_stratum_target and adjust thread_change_ptid and
14888 add_thread calls.
14889 (bsd_uthread_target::update_thread_list): Use
14890 as_process_stratum_target and adjust find_thread_ptid,
14891 thread_change_ptid and add_thread calls.
14892 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14893 find_thread_ptid call.
14894 * corelow.c (add_to_thread_list): Adjust add_thread call.
14895 (core_target_open): Adjust add_thread_silent and thread_count
14896 calls.
14897 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14898 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14899 * event-top.c (async_disconnect): Pop targets from all inferiors.
14900 * exec.c (add_target_sections): Push exec target on all inferiors
14901 sharing the program space.
14902 (remove_target_sections): Remove the exec target from all
14903 inferiors sharing the program space.
14904 (exec_on_vfork): New.
14905 * exec.h (exec_on_vfork): Declare.
14906 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14907 Pass it down.
14908 (fbsd_nat_target::update_thread_list): Adjust.
14909 (fbsd_nat_target::resume): Adjust.
14910 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14911 down.
14912 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14913 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14914 get_thread_arch_regcache call.
14915 * fork-child.c (gdb_startup_inferior): Pass target down to
14916 startup_inferior and set_executing.
14917 * gdbthread.h (struct process_stratum_target): Forward declare.
14918 (add_thread, add_thread_silent, add_thread_with_info)
14919 (in_thread_list): Add process_stratum_target parameter.
14920 (find_thread_ptid(inferior*, ptid_t)): New overload.
14921 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14922 parameter.
14923 (all_threads()): Delete overload.
14924 (all_threads, all_non_exited_threads): Add process_stratum_target
14925 parameter.
14926 (all_threads_safe): Use brace initialization.
14927 (thread_count): Add process_stratum_target parameter.
14928 (set_resumed, set_running, set_stop_requested, set_executing)
14929 (threads_are_executing, finish_thread_state): Add
14930 process_stratum_target parameter.
14931 (switch_to_thread): Use is_current_thread.
14932 * i386-fbsd-tdep.c: Include "inferior.h".
14933 (i386fbsd_get_thread_local_address): Pass down target.
14934 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14935 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14936 have_inferiors check.
14937 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14938 (inf_ptrace_target::attach): Adjust.
14939 * infcall.c (run_inferior_call): Adjust.
14940 * infcmd.c (run_command_1): Pass target to
14941 scoped_finish_thread_state.
14942 (proceed_thread_callback): Skip inferiors with no execution.
14943 (continue_command): Rename 'all_threads' local to avoid hiding
14944 'all_threads' function. Adjust get_last_target_status call.
14945 (prepare_one_step): Adjust set_running call.
14946 (signal_command): Use user_visible_resume_target. Compare thread
14947 pointers instead of inferior_ptid.
14948 (info_program_command): Adjust to pass down target.
14949 (attach_command): Mark target's 'thread_executing' flag.
14950 (stop_current_target_threads_ns): New, factored out from ...
14951 (interrupt_target_1): ... this. Switch inferior before making
14952 target calls.
14953 * inferior-iter.h
14954 (struct all_inferiors_iterator, struct all_inferiors_range)
14955 (struct all_inferiors_safe_range)
14956 (struct all_non_exited_inferiors_range): Filter on
14957 process_stratum_target too. Remove explicit.
14958 * inferior.c (inferior::inferior): Push dummy target on target
14959 stack.
14960 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14961 Add process_stratum_target parameter, and pass it down.
14962 (have_live_inferiors): Adjust.
14963 (switch_to_inferior_and_push_target): New.
14964 (add_inferior_command, clone_inferior_command): Handle
14965 "-no-connection" parameter. Use
14966 switch_to_inferior_and_push_target.
14967 (_initialize_inferior): Mention "-no-connection" option in
14968 the help of "add-inferior" and "clone-inferior" commands.
14969 * inferior.h: Include "process-stratum-target.h".
14970 (interrupt_target_1): Use bool.
14971 (struct inferior) <push_target, unpush_target, target_is_pushed,
14972 find_target_beneath, top_target, process_target, target_at,
14973 m_stack>: New.
14974 (discard_all_inferiors): Delete.
14975 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14976 (all_inferiors, all_non_exited_inferiors): Add
14977 process_stratum_target parameter.
14978 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14979 (target_last_proc_target): New global.
14980 (follow_fork_inferior): Push target on new inferior. Pass target
14981 to add_thread_silent. Call exec_on_vfork. Handle target's
14982 reference count.
14983 (follow_fork): Adjust get_last_target_status call. Also consider
14984 target.
14985 (follow_exec): Push target on new inferior.
14986 (struct execution_control_state) <target>: New field.
14987 (user_visible_resume_target): New.
14988 (do_target_resume): Call target_async.
14989 (resume_1): Set target's threads_executing flag. Consider resume
14990 target.
14991 (commit_resume_all_targets): New.
14992 (proceed): Also consider resume target. Skip threads of inferiors
14993 with no execution. Commit resumtion in all targets.
14994 (start_remote): Pass current inferior to wait_for_inferior.
14995 (infrun_thread_stop_requested): Consider target as well. Pass
14996 thread_info pointer to clear_inline_frame_state instead of ptid.
14997 (infrun_thread_thread_exit): Consider target as well.
14998 (random_pending_event_thread): New inferior parameter. Use it.
14999 (do_target_wait): Rename to ...
15000 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15001 down.
15002 (threads_are_resumed_pending_p, do_target_wait): New.
15003 (prepare_for_detach): Adjust calls.
15004 (wait_for_inferior): New inferior parameter. Handle it. Use
15005 do_target_wait_1 instead of do_target_wait.
15006 (fetch_inferior_event): Adjust. Switch to representative
15007 inferior. Pass target down.
15008 (set_last_target_status): Add process_stratum_target parameter.
15009 Save target in global.
15010 (get_last_target_status): Add process_stratum_target parameter and
15011 handle it.
15012 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15013 (context_switch): Check inferior_ptid == null_ptid before calling
15014 inferior_thread().
15015 (get_inferior_stop_soon): Pass down target.
15016 (wait_one): Rename to ...
15017 (poll_one_curr_target): ... this.
15018 (struct wait_one_event): New.
15019 (wait_one): New.
15020 (stop_all_threads): Adjust.
15021 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15022 event's target.
15023 (switch_back_to_stepped_thread): Also consider target.
15024 (print_stop_event): Update.
15025 (normal_stop): Update. Also consider the resume target.
15026 * infrun.h (wait_for_inferior): Remove declaration.
15027 (user_visible_resume_target): New declaration.
15028 (get_last_target_status, set_last_target_status): New
15029 process_stratum_target parameter.
15030 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15031 process_stratum_target parameter, and use it.
15032 (clear_inline_frame_state (thread_info*)): New.
15033 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15034 process_stratum_target parameter.
15035 (clear_inline_frame_state (thread_info*)): Declare.
15036 * linux-fork.c (delete_checkpoint_command): Pass target down to
15037 find_thread_ptid.
15038 (checkpoint_command): Adjust.
15039 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15040 instead of just tweaking inferior_ptid.
15041 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15042 (exit_lwp): Pass target down to find_thread_ptid.
15043 (attach_proc_task_lwp_callback): Pass target down to
15044 add_thread/set_running/set_executing.
15045 (linux_nat_target::attach): Pass target down to
15046 thread_change_ptid.
15047 (get_detach_signal): Pass target down to find_thread_ptid.
15048 Consider last target status's target.
15049 (linux_resume_one_lwp_throw, resume_lwp)
15050 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15051 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15052 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15053 (linux_nat_target::async_wait_fd): New.
15054 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15055 target down.
15056 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15057 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15058 * linux-thread-db.c (struct thread_db_info::process_target): New
15059 field.
15060 (add_thread_db_info): Save target.
15061 (get_thread_db_info): New process_stratum_target parameter. Also
15062 match target.
15063 (delete_thread_db_info): New process_stratum_target parameter.
15064 Also match target.
15065 (thread_from_lwp): Adjust to pass down target.
15066 (thread_db_notice_clone): Pass down target.
15067 (check_thread_db_callback): Pass down target.
15068 (try_thread_db_load_1): Always push the thread_db target.
15069 (try_thread_db_load, record_thread): Pass target down.
15070 (thread_db_target::detach): Pass target down. Always unpush the
15071 thread_db target.
15072 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15073 target down. Always unpush the thread_db target.
15074 (find_new_threads_callback, thread_db_find_new_threads_2)
15075 (thread_db_target::update_thread_list): Pass target down.
15076 (thread_db_target::pid_to_str): Pass current inferior down.
15077 (thread_db_target::get_thread_local_address): Pass target down.
15078 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15079 target down.
15080 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15081 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15082 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15083 (procfs_init_inferior): Rename to ...
15084 (procfs_target::procfs_init_inferior): ... this and adjust.
15085 (procfs_target::create_inferior, procfs_notice_thread)
15086 (procfs_do_thread_registers): Adjust.
15087 * ppc-fbsd-tdep.c: Include "inferior.h".
15088 (ppcfbsd_get_thread_local_address): Pass down target.
15089 * proc-service.c (ps_xfer_memory): Switch current inferior and
15090 program space as well.
15091 (get_ps_regcache): Pass target down.
15092 * process-stratum-target.c
15093 (process_stratum_target::thread_address_space)
15094 (process_stratum_target::thread_architecture): Pass target down.
15095 * process-stratum-target.h
15096 (process_stratum_target::threads_executing): New field.
15097 (as_process_stratum_target): New.
15098 * ravenscar-thread.c
15099 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15100 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15101 down.
15102 * record-btrace.c (record_btrace_target::info_record): Adjust.
15103 (record_btrace_target::record_method)
15104 (record_btrace_target::record_is_replaying)
15105 (record_btrace_target::fetch_registers)
15106 (get_thread_current_frame_id, record_btrace_target::resume)
15107 (record_btrace_target::wait, record_btrace_target::stop): Pass
15108 target down.
15109 * record-full.c (record_full_wait_1): Switch to event thread.
15110 Pass target down.
15111 * regcache.c (regcache::regcache)
15112 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15113 process_stratum_target parameter and handle it.
15114 (current_thread_target): New global.
15115 (get_thread_regcache): Add process_stratum_target parameter and
15116 handle it. Switch inferior before calling target method.
15117 (get_thread_regcache): Pass target down.
15118 (get_thread_regcache_for_ptid): Pass target down.
15119 (registers_changed_ptid): Add process_stratum_target parameter and
15120 handle it.
15121 (registers_changed_thread, registers_changed): Pass target down.
15122 (test_get_thread_arch_aspace_regcache): New.
15123 (current_regcache_test): Define a couple local test_target_ops
15124 instances and use them for testing.
15125 (readwrite_regcache): Pass process_stratum_target parameter.
15126 (cooked_read_test, cooked_write_test): Pass mock_target down.
15127 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15128 (get_thread_arch_aspace_regcache): Add process_stratum_target
15129 parameter.
15130 (regcache::target): New method.
15131 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15132 (regcache::registers_changed_ptid): Add process_stratum_target
15133 parameter.
15134 (regcache::m_target): New field.
15135 (registers_changed_ptid): Add process_stratum_target parameter.
15136 * remote.c (remote_state::supports_vCont_probed): New field.
15137 (remote_target::async_wait_fd): New method.
15138 (remote_unpush_and_throw): Add remote_target parameter.
15139 (get_current_remote_target): Adjust.
15140 (remote_target::remote_add_inferior): Push target.
15141 (remote_target::remote_add_thread)
15142 (remote_target::remote_notice_new_inferior)
15143 (get_remote_thread_info): Pass target down.
15144 (remote_target::update_thread_list): Skip threads of inferiors
15145 bound to other targets. (remote_target::close): Don't discard
15146 inferiors. (remote_target::add_current_inferior_and_thread)
15147 (remote_target::process_initial_stop_replies)
15148 (remote_target::start_remote)
15149 (remote_target::remote_serial_quit_handler): Pass down target.
15150 (remote_target::remote_unpush_target): New remote_target
15151 parameter. Unpush the target from all inferiors.
15152 (remote_target::remote_unpush_and_throw): New remote_target
15153 parameter. Pass it down.
15154 (remote_target::open_1): Check whether the current inferior has
15155 execution instead of checking whether any inferior is live. Pass
15156 target down.
15157 (remote_target::remote_detach_1): Pass down target. Use
15158 remote_unpush_target.
15159 (extended_remote_target::attach): Pass down target.
15160 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15161 (remote_target::append_resumption): Pass down target.
15162 (remote_target::append_pending_thread_resumptions)
15163 (remote_target::remote_resume_with_hc, remote_target::resume)
15164 (remote_target::commit_resume): Pass down target.
15165 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15166 (remote_target::interrupt_query)
15167 (remote_target::remove_new_fork_children)
15168 (remote_target::check_pending_events_prevent_wildcard_vcont)
15169 (remote_target::remote_parse_stop_reply)
15170 (remote_target::process_stop_reply): Pass down target.
15171 (first_remote_resumed_thread): New remote_target parameter. Pass
15172 it down.
15173 (remote_target::wait_as): Pass down target.
15174 (unpush_and_perror): New remote_target parameter. Pass it down.
15175 (remote_target::readchar, remote_target::remote_serial_write)
15176 (remote_target::getpkt_or_notif_sane_1)
15177 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15178 down target.
15179 (remote_target::mourn_inferior): Pass down target. Use
15180 remote_unpush_target.
15181 (remote_target::core_of_thread)
15182 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15183 (remote_target::pid_to_exec_file)
15184 (remote_target::thread_handle_to_thread_info): Pass down target.
15185 (remote_target::async_wait_fd): New.
15186 * riscv-fbsd-tdep.c: Include "inferior.h".
15187 (riscv_fbsd_get_thread_local_address): Pass down target.
15188 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15189 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15190 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15191 Adjust.
15192 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15193 * solib-svr4.c (enable_break): Pass down target.
15194 * spu-multiarch.c (parse_spufs_run): Pass down target.
15195 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15196 * target-delegates.c: Regenerate.
15197 * target.c (g_target_stack): Delete.
15198 (current_top_target): Return the current inferior's top target.
15199 (target_has_execution_1): Refer to the passed-in inferior's top
15200 target.
15201 (target_supports_terminal_ours): Check whether the initial
15202 inferior was already created.
15203 (decref_target): New.
15204 (target_stack::push): Incref/decref the target.
15205 (push_target, push_target, unpush_target): Adjust.
15206 (target_stack::unpush): Defref target.
15207 (target_is_pushed): Return bool. Adjust to refer to the current
15208 inferior's target stack.
15209 (dispose_inferior): Delete, and inline parts ...
15210 (target_preopen): ... here. Only dispose of the current inferior.
15211 (target_detach): Hold strong target reference while detaching.
15212 Pass target down.
15213 (target_thread_name): Add assertion.
15214 (target_resume): Pass down target.
15215 (target_ops::beneath, find_target_at): Adjust to refer to the
15216 current inferior's target stack.
15217 (get_dummy_target): New.
15218 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15219 has a thread running.
15220 (initialize_targets): Rename to ...
15221 (_initialize_target): ... this.
15222 * target.h: Include "gdbsupport/refcounted-object.h".
15223 (struct target_ops): Inherit refcounted_object.
15224 (target_ops::shortname, target_ops::longname): Make const.
15225 (target_ops::async_wait_fd): New method.
15226 (decref_target): Declare.
15227 (struct target_ops_ref_policy): New.
15228 (target_ops_ref): New typedef.
15229 (get_dummy_target): Declare function.
15230 (target_is_pushed): Return bool.
15231 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15232 (all_matching_threads_iterator::all_matching_threads_iterator):
15233 Handle filter target.
15234 * thread-iter.h (struct all_matching_threads_iterator, struct
15235 all_matching_threads_range, class all_non_exited_threads_range):
15236 Filter by target too. Remove explicit.
15237 * thread.c (threads_executing): Delete.
15238 (inferior_thread): Pass down current inferior.
15239 (clear_thread_inferior_resources): Pass down thread pointer
15240 instead of ptid_t.
15241 (add_thread_silent, add_thread_with_info, add_thread): Add
15242 process_stratum_target parameter. Use it for thread and inferior
15243 searches.
15244 (is_current_thread): New.
15245 (thread_info::deletable): Use it.
15246 (find_thread_ptid, thread_count, in_thread_list)
15247 (thread_change_ptid, set_resumed, set_running): New
15248 process_stratum_target parameter. Pass it down.
15249 (set_executing): New process_stratum_target parameter. Pass it
15250 down. Adjust reference to 'threads_executing'.
15251 (threads_are_executing): New process_stratum_target parameter.
15252 Adjust reference to 'threads_executing'.
15253 (set_stop_requested, finish_thread_state): New
15254 process_stratum_target parameter. Pass it down.
15255 (switch_to_thread): Also match inferior.
15256 (switch_to_thread): New process_stratum_target parameter. Pass it
15257 down.
15258 (update_threads_executing): Reimplement.
15259 * top.c (quit_force): Pop targets from all inferior.
15260 (gdb_init): Don't call initialize_targets.
15261 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15262 Declare.
15263 (windows_add_thread, windows_delete_thread): Adjust.
15264 (get_windows_debug_event): Rename to ...
15265 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15266 * tracefile-tfile.c (tfile_target_open): Pass down target.
15267 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15268 Forward declare.
15269 (switch_to_thread): Add process_stratum_target parameter.
15270 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15271 parameter. Use it.
15272 (mi_on_resume): Pass target down.
15273 * nat/fork-inferior.c (startup_inferior): Add
15274 process_stratum_target parameter. Pass it down.
15275 * nat/fork-inferior.h (startup_inferior): Add
15276 process_stratum_target parameter.
15277 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15278
75c6c844
PA
152792020-01-10 Pedro Alves <palves@redhat.com>
15280
15281 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15282 directly. Instead find the first thread in the thread list and
15283 use switch_to_thread.
15284
78f2c40a
PA
152852020-01-10 Pedro Alves <palves@redhat.com>
15286
15287 * remote.c (remote_target::remote_add_inferior): Don't bind a
15288 process to the current inferior if the current inferior is already
15289 bound to a process.
15290
e7af6c70
TBA
152912020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15292 Pedro Alves <palves@redhat.com>
15293
15294 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15295 If no process is specified, return null_ptid instead of
15296 inferior_ptid.
15297 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15298 TARGET_WAITKIND_SIGNALLED with no pid.
15299
31ba933e
PA
153002020-01-10 Pedro Alves <palves@redhat.com>
15301
15302 * remote.c (first_remote_resumed_thread): New.
15303 (remote_target::wait_as): Use it as default event_ptid instead of
15304 inferior_ptid.
15305
735fc2ca
PA
153062020-01-10 Pedro Alves <palves@redhat.com>
15307
15308 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15309
c17e02e1
PA
153102020-01-10 Pedro Alves <palves@redhat.com>
15311
15312 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15313 not -1.
15314
ab1ddbcf
PA
153152020-01-10 Pedro Alves <palves@redhat.com>
15316
15317 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15318 ptid to get_last_target_status.
15319 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15320 ptid to get_last_target_status.
15321 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15322 get_last_target_status.
15323 (info_program_command): Don't pass a target_waitstatus to
15324 get_last_target_status.
15325 * infrun.c (init_wait_for_inferior): Use
15326 nullify_last_target_wait_ptid.
15327 (get_last_target_status): Handle nullptr arguments.
15328 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15329 (print_stop_event): Don't pass a ptid to get_last_target_status.
15330 (normal_stop): Don't pass a ptid to get_last_target_status.
15331 * infrun.h (get_last_target_status, set_last_target_status): Move
15332 comments here and update.
15333 (nullify_last_target_wait_ptid): Declare.
15334 * linux-fork.c (fork_load_infrun_state): Remove local extern
15335 declaration of nullify_last_target_wait_ptid.
15336 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15337 to get_last_target_status.
15338
f3f8ece4
PA
153392020-01-10 Pedro Alves <palves@redhat.com>
15340
15341 * gdbthread.h (scoped_restore_current_thread)
15342 <dont_restore, restore, m_dont_restore>: Declare.
15343 * thread.c (thread_alive): Add assertion. Return bool.
15344 (switch_to_thread_if_alive): New.
15345 (prune_threads): Switch inferior/thread.
15346 (print_thread_info_1): Switch thread before calling target methods.
15347 (scoped_restore_current_thread::restore): New, factored out from
15348 ...
15349 (scoped_restore_current_thread::~scoped_restore_current_thread):
15350 ... this.
15351 (scoped_restore_current_thread::scoped_restore_current_thread):
15352 Add assertion.
15353 (thread_apply_all_command, thread_select): Use
15354 switch_to_thread_if_alive.
15355 * infrun.c (proceed, restart_threads, handle_signal_stop)
15356 (switch_back_to_stepped_thread): Switch current thread before
15357 calling target methods.
15358
db2d40f7
PA
153592020-01-10 Pedro Alves <palves@redhat.com>
15360
15361 * inferior.c (switch_to_inferior_no_thread): New function,
15362 factored out from ...
15363 (inferior_command): ... here.
15364 * inferior.h (switch_to_inferior_no_thread): Declare.
15365 * mi/mi-main.c (run_one_inferior): Use
15366 switch_to_inferior_no_thread.
15367
bd420a2d
PA
153682020-01-10 Pedro Alves <palves@redhat.com>
15369
15370 * infcmd.c (kill_command): Remove dead code.
15371
ddf5db90
PA
153722020-01-10 Pedro Alves <palves@redhat.com>
15373
15374 * remote.c (remote_target::mourn_inferior): No longer check
15375 whether the target is running.
15376
5018ce90
PA
153772020-01-10 Pedro Alves <palves@redhat.com>
15378
15379 * corelow.c (core_target::has_execution): Change parameter type to
15380 inferior pointer.
15381 * inferior.c (number_of_live_inferiors): Use
15382 inferior::has_execution instead of target_has_execution_1.
15383 * inferior.h (inferior::has_execution): New.
15384 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15385 inferior::has_execution instead of target_has_execution_1.
15386 * process-stratum-target.c
15387 (process_stratum_target::has_execution): Change parameter type to
15388 inferior pointer. Check the inferior's PID instead of
15389 inferior_ptid.
15390 * process-stratum-target.h
15391 (process_stratum_target::has_execution): Change parameter type to
15392 inferior pointer.
15393 * record-full.c (record_full_core_target::has_execution): Change
15394 parameter type to inferior pointer.
15395 * target.c (target_has_execution_1): Change parameter type to
15396 inferior pointer.
15397 (target_has_execution_current): Adjust.
15398 * target.h (target_ops::has_execution): Change parameter type to
15399 inferior pointer.
15400 (target_has_execution_1): Change parameter type to inferior
15401 pointer. Change return type to bool.
15402 * tracefile.h (tracefile_target::has_execution): Change parameter
15403 type to inferior pointer.
15404
74375d18
PA
154052020-01-10 Pedro Alves <palves@redhat.com>
15406
15407 * exceptions.c (print_flush): Remove current_top_target() check.
15408
acdf84a6
PA
154092020-01-10 Pedro Alves <palves@redhat.com>
15410
15411 * remote.c (show_remote_exec_file): Show the current inferior's
15412 exec-file instead of the command variable's value.
15413
ec506636
PA
154142020-01-10 Pedro Alves <palves@redhat.com>
15415
15416 * record-full.c (record_full_resume_ptid): New global.
15417 (record_full_target::resume): Set it.
15418 (record_full_wait_1): Use record_full_resume_ptid instead of
15419 inferior_ptid.
15420
873657b9
PA
154212020-01-10 Pedro Alves <palves@redhat.com>
15422
15423 * gdbthread.h (scoped_restore_current_thread)
15424 <dont_restore, restore, m_dont_restore>: Declare.
15425 * thread.c (thread_alive): Add assertion. Return bool.
15426 (switch_to_thread_if_alive): New.
15427 (prune_threads): Switch inferior/thread.
15428 (print_thread_info_1): Switch thread before calling target methods.
15429 (scoped_restore_current_thread::restore): New, factored out from
15430 ...
15431 (scoped_restore_current_thread::~scoped_restore_current_thread):
15432 ... this.
15433 (scoped_restore_current_thread::scoped_restore_current_thread):
15434 Add assertion.
15435 (thread_apply_all_command, thread_select): Use
15436 switch_to_thread_if_alive.
15437
7f0ae84c
GB
154382020-01-10 George Barrett <bob@bob131.so>
15439
15440 * stap-probe.c (stap_modify_semaphore): Don't check for null
15441 semaphores.
15442 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15443 for null semaphores.
15444
f5a7c406
AB
154452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15446
15447 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15448 all source windows, and maintain horizontal scroll status while
15449 doing so.
15450
9ae6bf64
TT
154512020-01-09 Tom Tromey <tom@tromey.com>
15452
15453 PR tui/18932:
15454 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15455 update_source_window, not print_source_lines.
15456
b2efe70c
AB
154572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15458
15459 * tui/tui.c (tui_enable): Register tui hooks after calling
15460 tui_display_main.
15461
5f23a082
CB
154622020-01-09 Christian Biesinger <cbiesinger@google.com>
15463
15464 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15465
3061113b
SM
154662020-01-08 Simon Marchi <simon.marchi@efficios.com>
15467
15468 * thread.c (print_thread_info_1): Fix indentation.
15469
57d75002
CB
154702020-01-09 Christian Biesinger <cbiesinger@google.com>
15471
15472 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15473 unique_xmalloc_ptr outside the if to always free the demangled name.
15474
6a053cb1
TT
154752020-01-08 Tom Tromey <tromey@adacore.com>
15476
15477 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15478 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15479 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15480 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15481 Remove.
15482 (section_offsets): New typedef.
15483 * symtab.c (fixup_section, get_msymbol_address): Update.
15484 * symmisc.c (dump_msymbols): Update.
15485 * symfile.h (relative_addr_info_to_section_offsets)
15486 (symfile_map_offsets_to_segments): Update.
15487 * symfile.c (build_section_addr_info_from_objfile)
15488 (init_objfile_sect_indices): Update.
15489 (struct place_section_arg): Change type of "offsets".
15490 (place_section): Update.
15491 (relative_addr_info_to_section_offsets): Change type of
15492 "section_offsets". Remove "num_sections" parameter.
15493 (default_symfile_offsets, syms_from_objfile_1)
15494 (set_objfile_default_section_offset): Update.
15495 (reread_symbols): No need to preserve section offsets by hand.
15496 (symfile_map_offsets_to_segments): Change type of "offsets".
15497 * stap-probe.c (relocate_address): Update.
15498 * stabsread.h (process_one_symbol): Update.
15499 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15500 (solib_target_relocate_section_addresses): Update.
15501 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15502 Update.
15503 * solib-frv.c (frv_relocate_main_executable): Update.
15504 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15505 * solib-aix.c (solib_aix_get_section_offsets): Change return
15506 type.
15507 (solib_aix_solib_create_inferior_hook): Update.
15508 * remote.c (remote_target::get_offsets): Update.
15509 * psymtab.c (find_pc_sect_psymtab): Update.
15510 * psympriv.h (struct partial_symbol) <address, text_low,
15511 text_high>: Update.
15512 * objfiles.h (obj_section_offset): Update.
15513 (struct objfile) <section_offsets>: Change type.
15514 <num_sections>: Remove.
15515 (objfile_relocate): Update.
15516 * objfiles.c (entry_point_address_query): Update
15517 (relocate_one_symbol): Change type of "section_offsets".
15518 (objfile_relocate1, objfile_relocate1): Change type of
15519 "new_offsets".
15520 (objfile_rebase1): Update.
15521 * mipsread.c (mipscoff_symfile_read): Update.
15522 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15523 parameter.
15524 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15525 (parse_external, psymtab_to_symtab_1): Update.
15526 * machoread.c (macho_symfile_offsets): Update.
15527 * ia64-tdep.c (ia64_find_unwind_table): Update.
15528 * hppa-tdep.c (read_unwind_info): Update.
15529 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15530 * dwarf2read.c (create_addrmap_from_index)
15531 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15532 (process_psymtab_comp_unit_reader, add_partial_symbol)
15533 (add_partial_subprogram, process_full_comp_unit)
15534 (read_file_scope, read_func_scope, read_lexical_block_scope)
15535 (read_call_site_scope, dwarf2_rnglists_process)
15536 (dwarf2_ranges_process, dwarf2_ranges_read)
15537 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15538 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15539 Update.
15540 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15541 Update.
15542 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15543 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15544 (process_one_symbol): Change type of "section_offsets".
15545 * ctfread.c (get_objfile_text_range): Update.
15546 * coffread.c (coff_symtab_read, enter_linenos)
15547 (process_coff_symbol): Update.
15548 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15549 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15550
456e800a
TT
155512020-01-08 Tom Tromey <tromey@adacore.com>
15552
15553 * dwarf2read.c (parse_macro_definition): Use std::string.
15554 (parse_macro_definition): Likewise.
15555
6dfa2fc2
TT
155562020-01-08 Tom Tromey <tromey@adacore.com>
15557
15558 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15559 (ATTR_ALLOC_CHUNK): Remove.
15560
421d1616
TT
155612020-01-08 Tom Tromey <tromey@adacore.com>
15562
15563 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15564
43816ebc
TT
155652020-01-08 Tom Tromey <tromey@adacore.com>
15566
15567 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15568 (dwarf2_compute_name, open_dwo_file): Likewise.
15569 (process_enumeration_scope): Use std::vector.
15570 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15571 (partial_die_info::fixup, dwarf2_start_subfile)
15572 (guess_full_die_structure_name, dwarf2_name): Likewise.
15573 (determine_prefix): Update.
15574 (guess_full_die_structure_name): Make return type const.
15575 (partial_die_full_name): Return unique_xmalloc_ptr.
15576 (DW_FIELD_ALLOC_CHUNK): Remove.
15577
4212d509
TT
155782020-01-07 Tom Tromey <tromey@adacore.com>
15579
15580 PR build/24937:
15581 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15582
06a6207a
JT
155832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15584
15585 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15586
153d79c4
AB
155872020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15588
15589 * stack.c (print_frame_info): Move disassemble_next_line code
15590 inside source_print block.
15591
66182876
EZ
155922020-01-06 Eli Zaretskii <eliz@gnu.org>
15593
15594 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15595 gdb/signals.h, as we are now using native signal symbols.
15596
cbfa8581
SV
155972020-01-06 Shahab Vahedi <shahab@synopsys.com>
15598
15599 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15600 overflow by an early check of content vs threshold.
aac66a4c 15601 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15602 Likewise.
15603
3f602821
EZ
156042020-01-06 Eli Zaretskii <eliz@gnu.org>
15605
15606 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15607
a08c904d
JT
156082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15609
15610 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15611 export table if no section contains it's RVA.
15612
89a65580
EZ
156132020-01-06 Eli Zaretskii <eliz@gnu.org>
15614
15615 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15616
8b7fcda2
HD
156172020-01-06 Hannes Domani <ssbssa@yahoo.de>
15618
15619 * source.c (print_source_lines_base): Set last_line_listed.
15620
a61b4f69
SV
156212020-01-06 Shahab Vahedi <shahab@synopsys.com>
15622
15623 * tui/tui-disasm.c: Remove trailing spaces.
15624
559e7e50
EZ
156252020-01-06 Eli Zaretskii <eliz@gnu.org>
15626 Pedro Alves <palves@redhat.com>
15627
15628 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15629 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15630 (windows_gdb_signal_to_target): New function, uses the above
15631 enumeration to convert GDB internal signal codes to equivalent
15632 Windows codes.
15633 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15634 * windows-nat.c: Include "gdb_wait.h".
15635 (get_windows_debug_event): Extract the fatal exception from the
15636 exit status and convert to the equivalent Posix signal number.
15637 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15638 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15639 * gdbsupport/gdb_wait.c: New file, implements
15640 windows_status_to_termsig.
15641 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15642 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15643
f2302a34
AB
156442020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15645
15646 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15647 show_layout.
15648
6a5206eb
LM
156492020-01-05 Luis Machado <luis.machado@linaro.org>
15650
15651 * aarch64-linux-nat.c
15652 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15653 and bfd_mach_aarch64.
15654
6ec1d75e
PW
156552020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15656
15657 * ui-file.c (stdio_file::can_emit_style_escape)
15658 (tee_file::can_emit_style_escape): Ensure style is used also on
15659 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15660 to gdb_stdout.
15661 * main.c (set_gdb_data_directory): Use file style to output the
15662 warning that the given pathname is not a directory.
15663 * top.c (show_history_filename, gdb_safe_append_history)
15664 (show_gdb_datadir): Use file style.
15665
44f81a76
HD
156662020-01-03 Hannes Domani <ssbssa@yahoo.de>
15667
15668 * solib-target.c (struct lm_info_target):
15669 Change offsets to be a unique_xmalloc_ptr.
15670 (solib_target_relocate_section_addresses): Update.
15671
25057eb0
HD
156722020-01-03 Hannes Domani <ssbssa@yahoo.de>
15673
15674 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15675
6e2118f5
BE
156762020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15677
15678 * MAINTAINERS (Write After Approval): Add myself.
15679
8133c7dc
LM
156802020-01-02 Luis Machado <luis.machado@linaro.org>
15681
15682 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15683 Cell BE architecture.
15684 * target.h (struct target_ops) <thread_architecture>: Likewise.
15685
48189bec
HD
156862020-01-01 Hannes Domani <ssbssa@yahoo.de>
15687
15688 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15689
ead1063b
HD
156902020-01-01 Hannes Domani <ssbssa@yahoo.de>
15691
15692 * MAINTAINERS (Write After Approval): Add myself.
15693
e5d78223
JB
156942020-01-01 Joel Brobecker <brobecker@adacore.com>
15695
15696 * gdbarch.sh: Update copyright year range of generated files.
15697
b811d2c2
JB
156982020-01-01 Joel Brobecker <brobecker@adacore.com>
15699
15700 Update copyright year range in all GDB files.
15701
5f4def5c
JB
157022020-01-01 Joel Brobecker <brobecker@adacore.com>
15703
15704 * copyright.py: Convert to Python 3.
15705
51fd4002
JB
157062020-01-01 Joel Brobecker <brobecker@adacore.com>
15707
15708 * copyright.py: Adapt after move of gnulib directory from gdb
15709 directory to toplevel directory.
15710
5fb651f2
JB
157112020-01-01 Joel Brobecker <brobecker@adacore.com>
15712
15713 * copyright.py (main): Exit if run from the wrong directory.
15714
5dd8bf88
JB
157152020-01-01 Joel Brobecker <brobecker@adacore.com>
15716
15717 * top.c (print_gdb_version): Change copyright year to 2020.
15718
9f71dacb 157192020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15720
9f71dacb 15721 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15722
9f71dacb 15723For older changes see ChangeLog-2019.
c906108c
SS
15724\f
15725Local Variables:
15726mode: change-log
15727left-margin: 8
15728fill-column: 74
15729version-control: never
57da7796 15730coding: utf-8
c906108c 15731End: