]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/breakpoint: add flags to 'condition' and 'break' commands to force condition
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
733d554a
TBA
12020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
4 * breakpoint.c: Update the help text of the 'condition' and 'break'
5 commands.
6 (set_breakpoint_condition): Take a new bool parameter
7 to control whether condition definition should be forced even when
8 the condition expression is invalid in all of the current locations.
9 (condition_command): Update the call to 'set_breakpoint_condition'.
10 (find_condition_and_thread): Take the "-force-condition" flag into
11 account.
12 * linespec.c (linespec_keywords): Add "-force-condition" as an
13 element.
14 (FORCE_KEYWORD_INDEX): New #define.
15 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
16 as a keyword.
17 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
18 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
19 * python/py-breakpoint.c (bppy_set_condition): Ditto.
20 * NEWS: Mention the changes to the 'break' and 'condition' commands.
21
b5fa468f
TBA
222020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
23
24 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
25 * breakpoint.c (set_breakpoint_location_condition): New function.
26 (set_breakpoint_condition): Disable a breakpoint location if parsing
27 the condition string gives an error.
28 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
29 (build_target_condition_list): Ditto.
30 (build_target_command_list): Ditto.
31 (build_bpstat_chain): Ditto.
32 (print_one_breakpoint_location): Ditto.
33 (print_one_breakpoint): Ditto.
34 (breakpoint_1): Ditto.
35 (bp_location::bp_location): Ditto.
36 (locations_are_equal): Ditto.
37 (update_breakpoint_locations): Ditto.
38 (enable_disable_bp_num_loc): Ditto.
39 (init_breakpoint_sal): Use set_breakpoint_location_condition.
40 (find_condition_and_thread_for_sals): New static function.
41 (create_breakpoint): Call find_condition_and_thread_for_sals.
42 (location_to_sals): Call find_condition_and_thread_for_sals instead
43 of find_condition_and_thread.
44
1c47ec3e
TV
452020-10-26 Tom de Vries <tdevries@suse.de>
46
47 * dwarf2/read.c (process_full_comp_unit): Call
48 dwarf2_find_base_address.
49
6390859c
TT
502020-10-26 Tom Tromey <tromey@adacore.com>
51
52 * gdbtypes.c (create_range_type): Revert previous patch. Add
53 comment.
54
d744f0f9
PA
552020-10-26 Pedro Alves <pedro@palves.net>
56
57 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
58 (my_waitpid): Use gdb::handle_eintr.
59
006811bc
SM
602020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * acinclude.m4: Update ptrace.m4 path.
63 * ptrace.m4: Moved to gdbsupport.
64
c75e31a1
SM
652020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
66
67 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
68 instead of target_gdbarch.
69
32495661
SM
702020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * jit.c (jit_reader_load_command): Pass current inferior.
73 (jit_inferior_init): Change parameter type to inferior, use it.
74 (jit_inferior_created): Remove.
75 (jit_inferior_created_hook): Pass inferior parameter down.
76 (_initialize_jit): Use jit_inferior_created_hook instead of
77 jit_inferior_created.
78 * jit.h (jit_inferior_created_hook): Add inferior parameter.
79 * infrun.c (follow_exec): Pass inferior to
80 jit_inferior_created_hook.
81
3f66685e
SM
822020-10-24 Simon Marchi <simon.marchi@efficios.com>
83
84 * linux-thread-db.c (check_pid_namespace_match): Add inferior
85 parameter and use it.
86 (thread_db_inferior_created): Pass inferior argument.
87
a0ff652f
SM
882020-10-24 Simon Marchi <simon.marchi@efficios.com>
89
90 * aix-thread.c (aix_thread_inferior_created): Add inferior
91 parameter.
92 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
93 * dummy-frame.c (cleanup_dummy_frames): Likewise.
94 * jit.c (jit_inferior_created): Likewise.
95 * linux-thread-db.c (thread_db_inferior_created): Likewise.
96 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
97 * observable.h (inferior_created): Likewise.
98 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
99 * symfile-mem.c (add_vsyscall_page): Likewise.
100 * infcmd.c (post_create_inferior): Pass inferior argument.
101
3c67532c
JB
1022020-10-24 Joel Brobecker <brobecker@adacore.com>
103
104 GDB 10.1 released.
105
8747316e
JB
1062020-10-23 Joel Brobecker <brobecker@adacore.com>
107
108 * ada-typeprint.c (ada_print_type): Remove superfluous second call
109 to ada_check_typedef.
110
1a0ea399
AB
1112020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * f-exp.y (f_parse): Rename to...
114 (f_language::parser): ...this.
115 * f-lang.c (f_get_encoding): Rename to...
116 (f_language::get_encoding): ...this.
117 (f_op_print_tab): Rename to...
118 (f_language::op_print_tab): ...this.
119 (exp_descriptor_f): Rename to...
120 (f_language::exp_descriptor_tab): ...this.
121 (class f_language): Moved to f-lang.h.
122 (f_language::language_arch_info): New function, moved out of class
123 declaration.
124 (f_language::search_name_hash): Likewise.
125 (f_language::lookup_symbol_nonlocal): Likewise.
126 (f_language::get_symbol_name_matcher_inner): Likewise.
127 * f-lang.h: Add 'valprint.h' include.
128 (class f_language): Moved here from f-lang.c.
129 * f-typeprint.c (f_type_print_args): Delete commented out
130 declaration.
131 (f_print_typedef): Rename to...
132 (f_language::print_typedef): ...this.
133 (f_print_type): Rename to...
134 (f_language::print_type): ...this.
135 (f_type_print_varspec_prefix): Delete declaration and rename to...
136 (f_language::f_type_print_varspec_prefix): ...this.
137 (f_type_print_varspec_suffix): Delete declaration and rename to...
138 (f_language::f_type_print_varspec_suffix): ...this.
139 (f_type_print_base): Delete declaration and rename to...
140 (f_language::f_type_print_base): ...this.
141 * f-valprint.c (f_value_print_inner): Rename to...
142 (f_language::value_print_inner): ...this.
143 * parse.c: Delete 'f-lang.h' include.
144
88cefd9b
AB
1452020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * language.h (language_defn::print_type): Add variable names in
148 declaration, and update header comment.
149
5399db93
AB
1502020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * ada-lang.c (ada_language::demangle): Rename to...
153 (ada_language::demangle_symbol): ...this.
154 * c-lang.c (cplus_language::demangle): Rename to...
155 (cplus_language::demangle_symbol): ...this.
156 * d-lang.c (d_language::demangle): Rename to...
157 (d_language::demangle_symbol): ...this.
158 * f-lang.c (f_language::demangle): Rename to...
159 (f_language::demangle_symbol): ...this.
160 * go-lang.c (go_language::demangle): Rename to...
161 (go_language::demangle_symbol): ...this.
162 * language.c (language_demangle): Update call to demangle_symbol.
163 (auto_or_unknown_language::demangle): Rename to...
164 (auto_or_unknown_language::demangle_symbol): ...this.
165 * language.h (language_defn::demangle): Rename to...
166 (language_defn::demangle_symbol): ...this.
167 * objc-lang.c (objc_language::demangle): Rename to...
168 (objc_language::demangle_symbol): ...this.
169 * rust-lang.c (rust_language::demangle): Rename to...
170 (rust_language::demangle_symbol): ...this.
171
4b2f86ef
AB
1722020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
175 (iterate_over_file_blocks): Replace use of macro with the macros
176 definition.
177
e74b39de
AB
1782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
181 * valprint.c (maybe_print_array_index): Replace use of macro with
182 the macros definition.
183
00c696a6
AB
1842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * ada-lang.c (ada_language::print_array_index): Call value_print
187 directly.
188 * language.c (language_defn::print_array_index): Likewise.
189 * language.h (LA_VALUE_PRINT): Delete.
190 * valprint.c (value_print): Call value_print on the
191 current_language directly.
192
d3b67c56
AB
1932020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * language.h (LA_PRINT_TYPEDEF): Delete.
196 * typeprint.c (typedef_print): Call print_typedef directly on the
197 current_language object.
198
790e2a12
AB
1992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * m2-exp.y (m2_parse): Rename to...
202 (m2_language::parser): ...this. Update function signature.
203 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
204 (m2_op_print): Rename to...
205 (m2_language::op_print_tab): ...this, and make const.
206 (exp_descriptor_modula2): Rename to...
207 (m2_language::exp_descriptor_modula2): ...this.
208 (class m2_language): Move to m2-lang.h.
209 (m2_language::language_arch_info): New function, moved out of
210 class declaration.
211 (m2_language::printchar): New function, body from m2_printchar.
212 (m2_language::printstr): New function, moved out of class
213 declaration.
214 (m2_language::emitchar): Likewise.
215 * m2-lang.h (m2_parse): Delete declaration.
216 (m2_print_typedef): Delete declaration.
217 (m2_value_print_inner): Delete declaration.
218 (class m2_language): Class declaration moved from m2-lang.c,
219 larger functions are left in m2-lang.c.
220 * m2-typeprint.c (m2_print_typedef): Rename to...
221 (m2_language::print_typedef): ...this, and update function
222 signature.
223 * m2-valprint.c (m2_value_print_inner): Rename to...
224 (m2_language::value_print_inner): ...this, replace use of
225 LA_PRINT_STRING with a direct call to printstr member function,
226 and update recursive call.
227
b01175fc
AB
2282020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * language.c (default_is_string_type_p): Delete, implementation
231 moved into auto_or_unknown_language::is_string_type_p.
232 (unk_op_print_tab): Moved into
233 auto_or_unknown_language::opcode_print_table.
234 (unknown_language_arch_info): Delete, implementation moved into
235 auto_or_unknown_language::language_arch_info.
236 (class auto_or_unknown_language): New class, member functions
237 copied from unknown_language class, with some updates.
238 (class unknown_language): Most member functions moved into
239 auto_or_unknown_language class. Inherit from
240 auto_or_unknown_language class.
241 (class auto_language): Inherit from auto_or_unknown_language.
242 Delete most member functions.
243
1a97fe8c
HD
2442020-10-22 Hannes Domani <ssbssa@yahoo.de>
245
246 * stabsread.c (read_member_functions): Remove gdb_assert.
247
6b9d0dfd
HD
2482020-10-22 Hannes Domani <ssbssa@yahoo.de>
249
250 * gdbtypes.c (init_complex_type): Check target type name.
251
4b4bb603
SM
2522020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * target-debug.h (target_debug_print_struct_target_ops_p):
255 Remove.
256 (target_debug_print_async_callback_ftype_p): Remove.
257 (target_debug_print_struct_trace_state_variable_p): Remove.
258 (target_debug_print_struct_traceframe_info_p): Remove.
259 (target_debug_print_VEC__btrace_block_s__pp): Remove.
260 (target_debug_print_enum_btrace_format): Remove.
261 (target_debug_print_enum_info_proc_what): Remove.
262 (target_debug_print_thread_info_pp): Remove.
263
24f5300a
SM
2642020-10-22 Simon Marchi <simon.marchi@efficios.com>
265
266 * target.h (struct target_ops) <make_corefile_notes>:
267 Change return type to unique pointer.
268 * target.c (dummy_make_corefile_notes): Likewise.
269 * exec.c (struct exec_target) <make_corefile_notes>:
270 Likewise.
271 (exec_target::make_corefile_notes): Likewise.
272 * procfs.c (class procfs_target) <make_corefile_notes>:
273 Likewise.
274 (procfs_do_thread_registers): Adjust to unique pointer.
275 (struct procfs_corefile_thread_data): Add constructor.
276 <note_data>: Change type to unique pointer.
277 (procfs_corefile_thread_callback): Adjust to unique pointer.
278 (procfs_target::make_corefile_notes): Change return type to
279 unique pointer.
280 * target-delegates.c: Re-generate.
281 * gcore.c (write_gcore_file_1): Adjust.
282 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
283 New.
284
5fb4027f
TV
2852020-10-22 Tom de Vries <tdevries@suse.de>
286
287 * block.c (find_block_in_blockvector): Make sure the returned block
288 contains pc.
289
4a636814
SM
2902020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
291
292 PR gdb/26693
293 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
294 parameter.
295 (load_cu): Pass existing CU.
296 (process_imported_unit_die): Likewise.
297 (follow_die_offset): Likewise.
298
1bd57575
LM
2992020-10-22 Luis Machado <luis.machado@linaro.org>
300
301 * corelow.c (core_target::xfer_partial): Also check for an empty
302 m_core_unavailable_mappings vector.
303
6b4c676c
AB
3042020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
307 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
308 * f-exp.y (arglist): Allow for a series of subranges.
309 (subrange): Add cases for subranges with strides.
310 * f-lang.c (value_f90_subarray): Catch use of array strides and
311 throw an error.
312 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
313
f2d8e4c5
AB
3142020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * expprint.c (print_subexp_standard): Change enum range_type to
317 range_flag and rename variables to match.
318 (dump_subexp_body_standard): Likewise.
319 * expression.h (enum range_type): Rename to...
320 (enum range_flag): ...this.
321 (range_types): Rename to...
322 (range_flags): ...this.
323 * f-lang.c (value_f90_subarray): Change enum range_type to
324 range_flag and rename variables to match.
325 * parse.c (operator_length_standard): Likewise.
326 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
327 range_type to range_flag.
328 * rust-lang.c (rust_evaluate_funcall): Likewise.
329 (rust_range): Likewise.
330 (rust_compute_range): Likewise.
331 (rust_subscript): Likewise.
332
2f1b18db
AB
3332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
334
335 * expprint.c (print_subexp_standard): Update to reflect changes to
336 enum range_type.
337 (dump_subexp_body_standard): Likewise.
338 * expression.h (enum range_type): Convert to a bit field enum, and
339 make the enum unsigned.
340 * f-exp.y (subrange): Update to reflect changes to enum
341 range_type.
342 * f-lang.c (value_f90_subarray): Likewise.
343 * parse.c (operator_length_standard): Likewise.
344 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
345 * rust-lang.c (rust_range): Likewise.
346 (rust_compute_range): Likewise.
347 (rust_subscript): Likewise.
348
a46d1843
SM
3492020-10-21 Simon Marchi <simon.marchi@efficios.com>
350
351 * infrun.c (displaced_step_in_progress_thread): Fix comment.
352 (displaced_step_in_progress): Fix comment.
353
c21f37a8
SM
3542020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * gdbarch.sh (make_corefile_notes): Return unique pointer.
357 * gdbarch.c: Re-generate.
358 * gdbarch.h: Re-generate.
359 * gcore.c (write_gcore_file_1): Adjust.
360 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
361 constructor.
362 <note_data>: Change type to unique pointer.
363 <abort_iteration>: Change type to bool.
364 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
365 (fbsd_collect_thread_registers): Return void, adjust.
366 (struct fbsd_corefile_thread_data): Add construtor.
367 <note_data>: Change type to unique pointer.
368 (fbsd_corefile_thread): Adjust.
369 (fbsd_make_corefile_notes): Return unique pointer, adjust.
370 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
371 to unique pointer, adjust.
372 (struct linux_collect_regset_section_cb_data): Add constructor.
373 <note_data>: Change type to unique pointer.
374 <abort_iteration>: Change type to bool.
375 (linux_collect_thread_registers): Return void, adjust.
376 (struct linux_corefile_thread_data): Add constructor.
377 <note_data>: Change type to unique pointer.
378 (linux_corefile_thread): Adjust.
379 (linux_make_corefile_notes): Return unique pointer, adjust.
380
07fbbd01
SM
3812020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
384 * gdbarch.c: Re-generate.
385 * gdbarch.h: Re-generate.
386 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
387 bool.
388 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
389 Likewise.
390 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
391 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
392 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
393 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
394
39535193
SM
3952020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * gdbarch.sh: Make generated predicates return bool.
398 * gdbarch.c: Re-generate.
399 * gdbarch.h: Re-generate.
400
ad523d01
TT
4012020-10-20 Tom Tromey <tom@tromey.com>
402
403 * varobj-iter.h (struct varobj_item): Remove typedef.
404
c4464ade
SM
4052020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
406
407 * infrun.c (currently_stepping): Change int to bool
408 (maybe_software_singlestep): Likewise.
409 (show_stop_on_solib_events): Likewise.
410 (stepping_past_nonsteppable_watchpoint): Likewise.
411 (displaced_step_in_progress_any_inferior): Likewise.
412 (displaced_step_in_progress_thread): Likewise.
413 (keep_going_stepped_thread): Likewise.
414 (thread_still_needs_step_over): Likewise.
415 (start_step_over): Likewise.
416 (do_target_resume): Likewise.
417 (resume_1): Likewise.
418 (clear_proceed_status): Likewise.
419 (thread_still_needs_step_over_bp): Likewise.
420 (proceed): Likewise.
421 (switch_back_to_stepped_thread): Likewise.
422 (adjust_pc_after_break): Likewise.
423 (stepped_in_from): Likewise.
424 (handle_stop_requested): Likewise.
425 (handle_syscall_event): Likewise.
426 (handle_no_resumed): Likewise.
427 (handle_inferior_event): Likewise.
428 (finish_step_over): Likewise.
429 (handle_signal_stop): Likewise.
430 (process_event_stop_test): Likewise.
431
2eb20436
SM
4322020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * infrun.c (get_displaced_stepping_state): Fix comment.
435
e0c45ded
AS
4362020-10-20 Andreas Schwab <schwab@linux-m68k.org>
437
438 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
439
22cc388e
TT
4402020-10-19 Tom Tromey <tromey@adacore.com>
441
442 PR tui/26719
443 * tui/tui-winsource.h (struct tui_source_window_base)
444 <refresh_window>: Rename from refresh_pad.
445 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
446 Rename from refresh_pad.
447 (tui_source_window_base::show_source_content)
448 (tui_source_window_base::do_scroll_horizontal): Update.
449
3c6eb4d4
TBA
4502020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
451
452 * thread.c (_initialize_thread): Fine-tune the help text of
453 'info threads'.
454
26703721
TBA
4552020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
456
457 * frame.c: Remove the unused 'uinteger_option_def' type alias.
458
61c26be8
MS
4592020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
460
461 * breakpoint.c (handle_jit_event): Add an argument, change how
462 `jit_event_handler` is called.
463
932539d7
TT
4642020-10-17 Tom Tromey <tom@tromey.com>
465
466 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
467 (scan_xcoff_symtab): Update.
468 * psymtab.h (class psymtab_storage) <global_psymbols,
469 static_psymbols, current_global_psymbols,
470 current_static_psymbols>: Remove.
471 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
472 (match_partial_symbol, lookup_partial_symbol): Update.
473 (print_partial_symbols): Change parameters.
474 (dump_psymtab, recursively_search_psymtabs)
475 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
476 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
477 (concat): Remove.
478 (end_psymtab_common): Simplify.
479 (append_psymbol_to_list): Change parameters.
480 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
481 (init_psymbol_list): Simplify.
482 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
483 * psympriv.h (struct partial_symtab) <empty>: New method.
484 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
485 Remove.
486 <global_psymbols, static_psymbols>: New members.
487 <add_psymbol>: New methods.
488 (add_psymbol_to_list): Don't declare.
489 (psymbol_placement): Move earlier.
490 * mdebugread.c (parse_partial_symbols): Update.
491 (handle_psymbol_enumerators): Change parameters.
492 (mdebug_expand_psymtab): Update.
493 * dwarf2/read.c (process_psymtab_comp_unit_reader)
494 (add_partial_symbol): Update.
495 * dwarf2/index-write.c (write_psymbols): Change parameters.
496 (write_one_signatured_type): Update.
497 (recursively_count_psymbols): Update.
498 (recursively_write_psymbols): Update.
499 (class debug_names) <recursively_write_psymbols>: Update.
500 <write_psymbols>: Change parameters.
501 <write_one_signatured_type>: Update.
502 * dbxread.c (read_dbx_symtab): Update.
503 (dbx_end_psymtab): Use partial_symtab::empty.
504 * ctfread.c (struct ctf_context) <pst>: New member.
505 (create_partial_symtab): Set it.
506 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
507 (scan_partial_symbols): Use the psymtab's context. Update.
508
cfabbd35
TT
5092020-10-17 Tom Tromey <tom@tromey.com>
510
511 * valprint.c (generic_value_print): Remove comment.
512 * m2-valprint.c (m2_value_print_inner): Remove comment.
513 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
514 type.
515
520596f2
TV
5162020-10-17 Tom de Vries <tdevries@suse.de>
517
518 PR symtab/26317
519 * source.c (select_source_symtab): Handling sal.symtab == NULL for
520 symbol main.
521
76547ab3
TV
5222020-10-14 Tom de Vries <tdevries@suse.de>
523
524 PR gdb/26733
525 * solib.c (solib_contains_address_p): Handle
526 'solib->sections == nullptr'.
527
d3a07122
SM
5282020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
529
530 PR gdb/26642
531 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
532 target can't do async.
533 * target.c (target_wait): Assert that we don't pass
534 TARGET_WNOHANG to a target that can't async.
535
1b71cfcf
KR
5362020-10-13 Kamil Rytarowski <n54@gmx.com>
537
538 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
539 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
540 * alpha-bsd-nat.c: Adjust include.
541 * alpha-bsd-tdep.h: Adjust comment.
542 * alpha-nbsd-tdep.c: Rename to ...
543 * alpha-netbsd-tdep.c: ... this, adjust include.
544 * amd64-nbsd-nat.c: Rename to ...
545 * amd64-netbsd-nat.c: ... this, adjust include.
546 * amd64-nbsd-tdep.c: Rename to ...
547 * amd64-netbsd-tdep.c: ... this, adjust include.
548 * amd64-tdep.h: Adjust include.
549 * arm-nbsd-nat.c: Rename to ...
550 * arm-netbsd-nat.c: ... this, adjust include.
551 * arm-nbsd-tdep.c: Rename to ...
552 * arm-netbsd-tdep.c: ... this, adjust include.
553 * arm-nbsd-tdep.h: Rename to ...
554 * arm-netbsd-tdep.h: ... this, adjust include.
555 * configure.nat: Adjust file lists.
556 * configure.tgt: Likewise.
557 * hppa-nbsd-nat.c: Rename to ...
558 * hppa-netbsd-nat.c: ... this, adjust include.
559 * hppa-nbsd-tdep.c: Rename to ...
560 * hppa-netbsd-tdep.c: ... this, adjust include.
561 * i386-nbsd-nat.c: Rename to ...
562 * i386-netbsd-nat.c: ... this, adjust include.
563 * i386-nbsd-tdep.c: Rename to ...
564 * i386-netbsd-tdep.c: ... this, adjust include.
565 * m68k-bsd-nat.c: Adjust include.
566 * mips-nbsd-nat.c: Rename to ...
567 * mips-netbsd-nat.c: ... this, adjust include.
568 * mips-nbsd-tdep.c: Rename to ...
569 * mips-netbsd-tdep.c: ... this, adjust include.
570 * mips-nbsd-tdep.h: Rename to ...
571 * mips-netbsd-tdep.h: ... this.
572 * nbsd-nat.c: Rename to ...
573 * netbsd-nat.c: ... this, adjust include.
574 * nbsd-nat.h: Rename to ...
575 * netbsd-nat.h: ... this, adjust include.
576 * nbsd-tdep.c: Rename to ...
577 * netbsd-tdep.c: ... this, adjust include.
578 * nbsd-tdep.h: Rename to ...
579 * netbsd-tdep.h: ... this.
580 * ppc-nbsd-nat.c: Rename to ...
581 * ppc-netbsd-nat.c: ... this, adjust include.
582 * ppc-nbsd-tdep.c: Rename to ...
583 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
584 * ppc-nbsd-tdep.h: Rename to ...
585 * ppc-netbsd-tdep.h: ... this.
586 * sh-nbsd-nat.c: Rename to ...
587 * sh-netbsd-nat.c: ... this, adjust include.
588 * sh-nbsd-tdep.c: Rename to ...
589 * sh-netbsd-tdep.c: ... this, adjust include.
590 * sparc-nbsd-nat.c: Rename to ...
591 * sparc-netbsd-nat.c: ... this.
592 * sparc-nbsd-tdep.c: Rename to ...
593 * sparc-netbsd-tdep.c: ... this, adjust include.
594 * sparc64-nbsd-nat.c: Rename to ...
595 * sparc64-netbsd-nat.c: ... this.
596 * sparc64-nbsd-tdep.c: Rename to ...
597 * sparc64-netbsd-tdep.c: ... this, adjust include.
598 * sparc64-tdep.h: Adjust comment.
599 * vax-bsd-nat.c: Adjust include.
600 * vax-nbsd-tdep.c: Rename to ...
601 * vax-netbsd-tdep.c: ... this, adjust include.
602
d7a78e5c
TT
6032020-10-12 Tom Tromey <tom@tromey.com>
604
605 * target.h (struct target_ops) <get_section_table>: Update.
606 (target_get_section_table): Update.
607 * target.c (target_get_section_table, target_section_by_addr)
608 (memory_xfer_partial_1): Update.
609 * target-section.h (target_section_table): Now an alias.
610 * target-delegates.c: Rebuild.
611 * target-debug.h (target_debug_print_target_section_table_p):
612 Rename from target_debug_print_struct_target_section_table_p.
613 * symfile.c (build_section_addr_info_from_section_table): Update.
614 * solib.c (solib_map_sections, solib_contains_address_p): Update.
615 * solib-svr4.c (scan_dyntag): Update.
616 * solib-dsbt.c (scan_dyntag): Update.
617 * remote.c (remote_target::remote_xfer_live_readonly_partial):
618 Update.
619 * record-full.c (record_full_core_target::xfer_partial): Update.
620 * progspace.h (struct program_space) <target_sections>: Update.
621 * exec.h (print_section_info): Update.
622 * exec.c (exec_target::close, build_section_table)
623 (add_target_sections, add_target_sections_of_objfile)
624 (remove_target_sections, exec_on_vfork)
625 (section_table_available_memory)
626 (section_table_xfer_memory_partial)
627 (exec_target::get_section_table, exec_target::xfer_partial)
628 (print_section_info, set_section_command)
629 (exec_set_section_address, exec_target::has_memory): Update.
630 * corelow.c (core_target::build_file_mappings)
631 (core_target::xfer_partial, core_target::info_proc_mappings)
632 (core_target::info_proc_mappings): Update.
633 * bfd-target.c (class target_bfd): Update
634
eda214ce
TT
6352020-10-12 Tom Tromey <tom@tromey.com>
636
637 * progspace.c (program_space::~program_space): Don't call
638 clear_section_table.
639 * exec.h (clear_section_table): Don't declare.
640 * exec.c (exec_target::close): Update.
641 (clear_section_table): Remove.
642
91840ee3
TT
6432020-10-12 Tom Tromey <tom@tromey.com>
644
645 * exec.c (add_target_sections_of_objfile): Simplify.
646
2d128614
TT
6472020-10-12 Tom Tromey <tom@tromey.com>
648
649 * solib.c (solib_map_sections): Update.
650 * record-full.c (record_full_core_open_1): Update.
651 * exec.h (build_section_table): Return a target_section_table.
652 * exec.c (exec_file_attach): Update.
653 (build_section_table): Return a target_section_table.
654 * corelow.c (core_target::core_target): Update.
655 * bfd-target.c (target_bfd::target_bfd): Update.
656
bb2a6777
TT
6572020-10-12 Tom Tromey <tom@tromey.com>
658
659 * target.c (target_section_by_addr, memory_xfer_partial_1):
660 Update.
661 * target-section.h (struct target_section_table): Use
662 std::vector.
663 * symfile.h (build_section_addr_info_from_section_table): Take a
664 target_section_table.
665 * symfile.c (build_section_addr_info_from_section_table): Take a
666 target_section_table.
667 * solist.h (struct so_list) <sections>: Change type.
668 <sections_end>: Remove.
669 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
670 (solib_contains_address_p): Update.
671 * solib-svr4.c (scan_dyntag): Update.
672 * solib-dsbt.c (scan_dyntag): Update.
673 * remote.c (remote_target::remote_xfer_live_readonly_partial):
674 Update.
675 * record-full.c (record_full_core_start, record_full_core_end):
676 Remove.
677 (record_full_core_sections): New global.
678 (record_full_core_open_1, record_full_core_target::xfer_partial):
679 Update.
680 * exec.h (build_section_table, section_table_xfer_memory_partial)
681 (add_target_sections): Take a target_section_table.
682 * exec.c (exec_file_attach, clear_section_table): Update.
683 (resize_section_table): Remove.
684 (build_section_table, add_target_sections): Take a
685 target_section_table.
686 (add_target_sections_of_objfile, remove_target_sections)
687 (exec_on_vfork): Update.
688 (section_table_available_memory): Take a target_section_table.
689 (section_table_read_available_memory): Update.
690 (section_table_xfer_memory_partial): Take a target_section_table.
691 (print_section_info, set_section_command)
692 (exec_set_section_address, exec_target::has_memory): Update.
693 * corelow.c (class core_target) <m_core_section_table,
694 m_core_file_mappings>: Remove braces.
695 <~core_target>: Remove.
696 (core_target::core_target): Update.
697 (core_target::~core_target): Remove.
698 (core_target::build_file_mappings)
699 (core_target::xfer_memory_via_mappings)
700 (core_target::xfer_partial, core_target::info_proc_mappings):
701 Update.
702 * bfd-target.c (target_bfd::xfer_partial): Update.
703 (target_bfd::target_bfd): Update.
704 (target_bfd::~target_bfd): Remove.
705
7b466b10
TT
7062020-10-12 Tom Tromey <tom@tromey.com>
707
708 * target.h (struct target_section, struct target_section_table):
709 Move to target-section.h.
710 * target-section.h: New file.
711
87a37e5e
PA
7122020-10-12 Pedro Alves <pedro@palves.net>
713
714 PR exp/26602
715 * valops.c (struct struct_field_searcher): New.
716 (update_search_result): Rename to ...
717 (struct_field_searcher::update_result): ... this. Simplify
718 prototype. Record all found fields.
719 (do_search_struct_field): Rename to ...
720 (struct_field_searcher::search): ... this. Simplify prototype.
721 Maintain stack of visited baseclass path. Call update_result for
722 fields too. Keep searching fields in baseclasses instead of
723 stopping at the first found field.
724 (search_struct_field): Use struct_field_searcher. When looking
725 for fields, report ambiguous access attempts.
726
9370fd51
AB
7272020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * frame.c (inside_main_func): Check full symbols as well as
730 minimal symbols.
731
59c8a30b
JB
7322020-10-09 Joel Brobecker <brobecker@adacore.com>
733
734 * ada-lang.c (advance_wild_match): Rewrite the function's
735 description. Change the type of target0, t0 and t1 to char.
736
7c184d33
TT
7372020-10-09 Tom Tromey <tromey@adacore.com>
738
739 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
740
5c4258f4
TT
7412020-10-09 Tom Tromey <tromey@adacore.com>
742
743 * ada-lang.h (ada_encode): Return std::string.
744 * ada-lang.c (ada_encode_1): Return std::string.
745 (ada_encode): Likewise.
746 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
747 Update.
748 * ada-exp.y (block_lookup, write_var_or_type): Update.
749
3d87245c
HD
7502020-10-09 Hannes Domani <ssbssa@yahoo.de>
751
752 PR exp/26714
753 * printcmd.c (print_formatted): Handle void results as
754 unformatted prints.
755
bbb826f5
AB
7562020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
757
758 * arch/aarch32.c (aarch32_create_target_description): Release the
759 target_desc_up as late as possible.
760 * arch/aarch64.c (aarch64_create_target_description): Likewise.
761 * arch/amd64.c (amd64_create_target_description): Likewise.
762 * arch/arc.c (arc_create_target_description): Return a
763 target_desc_up, don't release it.
764 * arch/arc.h (arc_create_target_description): Update declaration.
765 (arc_lookup_target_description): Move target_desc_up into the
766 cache, and return a borrowed pointer.
767 * arch/arm.c (arm_create_target_description): Release the
768 target_desc_up as late as possible.
769 * arch/i386.c (i386_create_target_description): Likewise.
770 * arch/riscv.h (riscv_create_target_description): Update
771 declaration to match definition.
772 * arch/tic6x.c (tic6x_create_target_description): Release the
773 target_desc_up as late as possible.
774
361cb219
AB
7752020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
778 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
779
f5c4b229
JV
7802020-10-09 Jan Vrany <jan.vrany@labware.com>
781
782 * source.c (directory_command): Notify observers that "directories"
783 parameter has changed.
784
b2701685
TT
7852020-10-08 Tom Tromey <tom@tromey.com>
786
787 * cli/cli-cmds.c (print_disassembly): Style function name and
788 addresses. Add _() wrappers.
789
ada508b6
SV
7902020-10-08 Shahab Vahedi <shahab@synopsys.com>
791
792 * NEWS: Mention ARC support in GDBserver.
793
51a948fd
AB
7942020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * arch/aarch32.c (aarch32_create_target_description): Release
797 unique_ptr returned from allocate_target_description.
798 * arch/aarch64.c (aarch64_create_target_description): Likewise.
799 * arch/amd64.c (amd64_create_target_description): Likewise.
800 * arch/arc.c (arc_create_target_description): Likewise.
801 * arch/arm.c (arm_create_target_description): Likewise.
802 * arch/i386.c (i386_create_target_description): Likewise.
803 * arch/riscv.c (riscv_create_target_description): Update return
804 type. Handle allocate_target_description returning a unique_ptr.
805 (riscv_lookup_target_description): Update to handle unique_ptr.
806 * arch/tic6x.c (tic6x_create_target_description): Release
807 unique_ptr returned from allocate_target_description.
808 * features/microblaze-with-stack-protect.c: Regenerate.
809 * features/microblaze.c: Regenerate.
810 * features/mips-dsp-linux.c: Regenerate.
811 * features/mips-linux.c: Regenerate.
812 * features/mips64-dsp-linux.c: Regenerate.
813 * features/mips64-linux.c: Regenerate.
814 * features/nds32.c: Regenerate.
815 * features/nios2.c: Regenerate.
816 * features/or1k.c: Regenerate.
817 * features/rs6000/powerpc-32.c: Regenerate.
818 * features/rs6000/powerpc-32l.c: Regenerate.
819 * features/rs6000/powerpc-403.c: Regenerate.
820 * features/rs6000/powerpc-403gc.c: Regenerate.
821 * features/rs6000/powerpc-405.c: Regenerate.
822 * features/rs6000/powerpc-505.c: Regenerate.
823 * features/rs6000/powerpc-601.c: Regenerate.
824 * features/rs6000/powerpc-602.c: Regenerate.
825 * features/rs6000/powerpc-603.c: Regenerate.
826 * features/rs6000/powerpc-604.c: Regenerate.
827 * features/rs6000/powerpc-64.c: Regenerate.
828 * features/rs6000/powerpc-64l.c: Regenerate.
829 * features/rs6000/powerpc-7400.c: Regenerate.
830 * features/rs6000/powerpc-750.c: Regenerate.
831 * features/rs6000/powerpc-860.c: Regenerate.
832 * features/rs6000/powerpc-altivec32.c: Regenerate.
833 * features/rs6000/powerpc-altivec32l.c: Regenerate.
834 * features/rs6000/powerpc-altivec64.c: Regenerate.
835 * features/rs6000/powerpc-altivec64l.c: Regenerate.
836 * features/rs6000/powerpc-e500.c: Regenerate.
837 * features/rs6000/powerpc-e500l.c: Regenerate.
838 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
839 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
840 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
841 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
842 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
843 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
844 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
845 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
846 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
847 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
848 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
849 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
850 * features/rs6000/powerpc-vsx32.c: Regenerate.
851 * features/rs6000/powerpc-vsx32l.c: Regenerate.
852 * features/rs6000/powerpc-vsx64.c: Regenerate.
853 * features/rs6000/powerpc-vsx64l.c: Regenerate.
854 * features/rs6000/rs6000.c: Regenerate.
855 * features/rx.c: Regenerate.
856 * features/s390-gs-linux64.c: Regenerate.
857 * features/s390-linux32.c: Regenerate.
858 * features/s390-linux32v1.c: Regenerate.
859 * features/s390-linux32v2.c: Regenerate.
860 * features/s390-linux64.c: Regenerate.
861 * features/s390-linux64v1.c: Regenerate.
862 * features/s390-linux64v2.c: Regenerate.
863 * features/s390-te-linux64.c: Regenerate.
864 * features/s390-tevx-linux64.c: Regenerate.
865 * features/s390-vx-linux64.c: Regenerate.
866 * features/s390x-gs-linux64.c: Regenerate.
867 * features/s390x-linux64.c: Regenerate.
868 * features/s390x-linux64v1.c: Regenerate.
869 * features/s390x-linux64v2.c: Regenerate.
870 * features/s390x-te-linux64.c: Regenerate.
871 * features/s390x-tevx-linux64.c: Regenerate.
872 * features/s390x-vx-linux64.c: Regenerate.
873 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
874 from allocate_target_description.
875 * target-descriptions.c (allocate_target_description): Update
876 return type.
877 (print_c_tdesc::visit_pre): Release unique_ptr returned from
878 allocate_target_description.
879
485c47e5
TT
8802020-10-07 Tom Tromey <tromey@adacore.com>
881
882 * unittests/search-memory-selftests.c: New file.
883 * Makefile.in (SELFTESTS_SRCS): Add
884 unittests/search-memory-selftests.c.
885
3a135a91
TT
8862020-10-07 Tom Tromey <tromey@adacore.com>
887
888 PR gdb/16930:
889 * findcmd.c (_initialize_mem_search): Mention that the range is
890 inclusive.
891
4a72de73
TT
8922020-10-07 Tom Tromey <tromey@adacore.com>
893
894 * target.h (simple_search_memory): Don't declare.
895 * target.c (simple_search_memory): Move to gdbsupport.
896 (default_search_memory): Update.
897 * remote.c (remote_target::search_memory): Update.
898
a038ffd8
SM
8992020-10-07 Simon Marchi <simon.marchi@efficios.com>
900
901 * Makefile.in (COMPILE): Add CXXFLAGS.
902 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
903 (check-headers): Add CXXFLAGS.
904
cc463201
AK
9052020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
906
907 * arc-linux-tdep.h: New file.
908 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
909 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
910 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
911 arc_linux_gregset, arc_linux_v2_regset,
912 arc_linux_iterate_over_regset_sections,
913 arc_linux_core_read_description): Implement.
914 (arc_linux_init_osabi): Set iterate_over_regset_sections.
915 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
916 (arc_gdbarch_features_create): Add.
917 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
918
e4bd363f
SV
9192020-10-07 Shahab Vahedi <shahab@synopsys.com>
920
921 * arch/arc.h: Rename "arc_gdbarch_features" to
922 "arc_arch_features".
923 * arc-tdep.h: Likewise.
924 * arc-tdep.c: Likewise.
925
b68bef99
TBA
9262020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927
928 * infcmd.c (attach_command): Remove the redundant call to
929 `clear_proceed_status`.
930
4641551a
KR
9312020-10-07 Kamil Rytarowski <n54@gmx.com>
932
933 * nat/netbsd-nat.c (write_memory, read_memory): Update.
934
91e5e8db
KR
9352020-10-07 Kamil Rytarowski <n54@gmx.com>
936
937 * nat/netbsd-nat.c (write_memory, read_memory): Add.
938 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
939 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
940
64c03bdb
SM
9412020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
942
943 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
944 (_initialize_break_catch_sig): Don't allocate array.
945
31a8f60f
AB
9462020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
947
948 * symtab.c (find_pc_line): Return unmapped addresses when the
949 requested address is also unmapped.
950
9e6dbd8b
SM
9512020-10-05 Simon Marchi <simon.marchi@efficios.com>
952
953 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
954 tui/tui-out.h.
955
a1d217e8
SM
9562020-10-05 Simon Marchi <simon.marchi@efficios.com>
957
958 * amd64-windows-tdep.c (amd64_windows_return_value): Use
959 type::is_vector instead of TYPE_VECTOR.
960
7d144117
SM
9612020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * auto-load.c (auto_load_objfile_script_1): Don't use
964 debugfile_holder as temporary variable when stripping drive
965 letter.
966
cd096ec8
HD
9672020-10-05 Hannes Domani <ssbssa@yahoo.de>
968
969 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
970 Add TYPE_CODE_COMPLEX.
971 (amd64_windows_return_value): Fix types returned via XMM0.
972
b58e7f72
AH
9732020-10-05 Alan Hayward <alan.hayward@arm.com>
974
975 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
976 AArch64/ARM maintainers.
977
8d378f27
SM
9782020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
979
980 * NEWS: Mention set/show debug event-loop.
981
d5519913
TT
9822020-10-02 Tom Tromey <tromey@adacore.com>
983
984 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
985 REG_EXTENDED.
986
18b67edc
SM
9872020-10-02 Simon Marchi <simon.marchi@efficios.com>
988
989 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
990 * procfs.c (procfs_inferior_created): Remove.
991 (_initialize_procfs): Don't register procfs_inferior_created.
992
6b01403b
SM
9932020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * async-event.c (invoke_async_signal_handlers): Add debug
996 print.
997 (check_async_event_handlers): Likewise.
998 * event-top.c (show_debug_event_loop): New function.
999 (_initialize_event_top): Register "set debug event-loop"
1000 setting.
1001
ba988419
SM
10022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1003
1004 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
1005 * debug.h: Remove.
1006 * infrun.c: Include gdbsupport/common-debug.h.
1007 * linux-nat.c: Likewise.
1008
db20ebdf
SM
10092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * async-event.h (create_async_signal_handler): Add name
1012 parameter.
1013 (create_async_event_handler): Likewise.
1014 * async-event.c (struct async_signal_handler) <name>: New field.
1015 (struct async_event_handler) <name>: New field.
1016 (create_async_signal_handler): Assign name.
1017 (create_async_event_handler): Assign name.
1018 * event-top.c (async_init_signals): Pass name when creating
1019 handler.
1020 * infrun.c (_initialize_infrun): Likewise.
1021 * record-btrace.c (record_btrace_push_target): Likewise.
1022 * record-full.c (record_full_open): Likewise.
1023 * remote-notif.c (remote_notif_state_allocate): Likewise.
1024 * remote.c (remote_target::open_1): Likewise.
1025 * tui/tui-win.c (tui_initialize_win): Likewise.
1026
2554f6f5
SM
10272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * async-event.c (initialize_async_signal_handlers): Pass name to
1030 add_file_handler
1031 * event-top.c (ui_register_input_event_handler): Likewise.
1032 * linux-nat.c (linux_nat_target::async): Likewise.
1033 * run-on-main-thread.c (_initialize_run_on_main_thread):
1034 Likewise
1035 * ser-base.c (reschedule): Likewise.
1036 (ser_base_async): Likewise.
1037 * tui/tui-io.c: Likewise.
1038 * top.h (struct ui) <num>: New field.
1039 * top.c (highest_ui_num): New variable.
1040 (ui::ui): Initialize num.
1041
a7aba266
SM
10422020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
1043
1044 * observable.h <inferior_created>: Remove parameters. Update all
1045 listeners.
1046 * inferior.h (post_create_inferior): Remove target parameter.
1047 Update all callers.
1048
048fde1e 10492020-10-02 Nitika Achra <Nitika.Achra@amd.com>
1050
1051 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
1052 and DW_MACRO_undef_strx.
1053 (dwarf_decode_macros): Likewise
1054 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
1055 which is the value of DW_AT_str_offsets_base.
1056 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
1057 str_offsets_base.
1058
064280be
KR
10592020-10-01 Kamil Rytarowski <n54@gmx.com>
1060
1061 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
1062
6ff33035
KR
10632020-10-01 Kamil Rytarowski <n54@gmx.com>
1064
1065 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
1066 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
1067
1eb6eb79
KR
10682020-10-01 Kamil Rytarowski <n54@gmx.com>
1069
1070 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
1071
95eb9e54
TV
10722020-09-30 Tom de Vries <tdevries@suse.de>
1073
1074 PR symtab/26683
1075 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
1076
cae21f8e
TT
10772020-09-30 Tom Tromey <tromey@adacore.com>
1078
1079 * dwarf2/read.c (handle_variant): Use constant_value.
1080
529908cb
TT
10812020-09-29 Tom Tromey <tom@tromey.com>
1082
1083 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1084 (read_file_scope, dwarf2_get_pc_bounds)
1085 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1086 (read_structure_type, handle_struct_member_die)
1087 (read_enumeration_type, read_array_type, read_set_type)
1088 (read_tag_pointer_type, read_tag_reference_type)
1089 (read_subroutine_type, read_base_type, read_subrange_type)
1090 (read_full_die_1, partial_die_info::read)
1091 (partial_die_info::read, by, new_symbol)
1092 (dwarf2_const_value_data, dwarf2_const_value_attr)
1093 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1094 (prepare_one_comp_unit): Update.
1095 * dwarf2/attribute.h (DW_UNSND): Remove.
1096
c45bc3f8
TT
10972020-09-29 Tom Tromey <tom@tromey.com>
1098
1099 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1100 (read_subroutine_type, partial_die_info::read)
1101 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1102 (dwarf2_add_member_fn): Update.
1103 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1104 * dwarf2/attribute.c (attribute::as_boolean): New method.
1105
23dca5c3
TT
11062020-09-29 Tom Tromey <tom@tromey.com>
1107
1108 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1109 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1110 method.
1111 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1112
52c14d11
TT
11132020-09-29 Tom Tromey <tom@tromey.com>
1114
1115 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1116 the attribute's form.
1117
e8e5c158
TT
11182020-09-29 Tom Tromey <tom@tromey.com>
1119
1120 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1121 (dwarf2_add_member_fn): Update.
1122 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1123 * dwarf2/attribute.c (attribute::defaulted): New method, from
1124 is_valid_DW_AT_defaulted.
1125
d4df075e
TT
11262020-09-29 Tom Tromey <tom@tromey.com>
1127
1128 * dwarf2/read.c (dw2_get_file_names_reader)
1129 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1130 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1131 (dwarf2_symbol_mark_computed): Use as_unsigned.
1132 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1133 method.
1134 <form_is_section_offset>: Update comment.
1135
bf23a268
TT
11362020-09-29 Tom Tromey <tom@tromey.com>
1137
1138 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1139 dwarf2_default_access_attribute. Look up attribute.
1140 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1141 Update.
1142
7a5f294d
TT
11432020-09-29 Tom Tromey <tom@tromey.com>
1144
1145 * dwarf2/read.c (skip_one_die): Update.
1146 (read_full_die_1): Change how reprocessing is done.
1147 (partial_die_info::read): Update.
1148 (read_attribute_value): Remove need_reprocess parameter.
1149 (read_attribute): Likewise.
1150 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1151 New method.
1152
36d378cf
TT
11532020-09-29 Tom Tromey <tom@tromey.com>
1154
1155 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1156 (dwarf2_const_value_attr, dump_die_shallow)
1157 (dwarf2_fetch_constant_bytes): Update.
1158 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1159 comment.
1160 <set_address>: New method.
1161 (DW_ADDR): Remove.
1162 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1163 (attribute::as_string, attribute::as_address): Add assert.
1164
fe56917a
TT
11652020-09-29 Tom Tromey <tom@tromey.com>
1166
1167 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1168 (read_attribute_reprocess, read_attribute_value): Update.
1169 (read_attribute): Clear requires_reprocessing.
1170 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1171 form_requires_reprocessing>: New methods.
1172 <string_init>: Clear requires_reprocessing.
1173 <set_unsigned_reprocess>: New method.
1174 <name>: Shrink by one bit.
1175 <requires_reprocessing>: New member.
1176 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1177 method.
1178
414ad644
TT
11792020-09-29 Tom Tromey <tom@tromey.com>
1180
1181 * dwarf2/read.c (read_attribute_value): Update.
1182 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1183 set_unsigned>: New methods.
1184 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1185
1bc397c5
TT
11862020-09-29 Tom Tromey <tom@tromey.com>
1187
1188 * dwarf2/read.c (get_alignment, read_array_order)
1189 (read_attribute_value, dwarf2_const_value_attr)
1190 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1191 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1192 New methods.
1193 (DW_SND): Remove.
1194
630ed6b9
TT
11952020-09-29 Tom Tromey <tom@tromey.com>
1196
1197 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1198 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1199 Update.
1200 * dwarf2/attribute.h (struct attribute) <as_signature,
1201 set_signature>: New methods.
1202 (DW_SIGNATURE): Remove.
1203
9d2246fc
TT
12042020-09-29 Tom Tromey <tom@tromey.com>
1205
1206 * dwarf2/read.c (read_call_site_scope)
1207 (handle_data_member_location, dwarf2_add_member_fn)
1208 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1209 (partial_die_info::read, read_attribute_value)
1210 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1211 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1212 (dwarf2_symbol_mark_computed): Update.
1213 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1214 methods.
1215 (DW_BLOCK): Remove.
1216 * dwarf2/attribute.c (attribute::form_is_block): Add
1217 DW_FORM_data16.
1218
c6481205
TT
12192020-09-29 Tom Tromey <tom@tromey.com>
1220
1221 * dwarf2/read.c (read_cutu_die_from_dwo)
1222 (read_attribute_reprocess, read_attribute_value, read_attribute)
1223 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1224 (dwarf2_fetch_constant_bytes): Update.
1225 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1226 <set_string_noncanonical, set_string_canonical>: New methods.
1227 <string_is_canonical>: Update comment.
1228 <canonical_string_p>: Add assert.
1229 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1230 * dwarf2/attribute.c (attribute::form_is_string): New method.
1231 (attribute::string): Use it.
1232
3b64bf15
TT
12332020-09-29 Tom Tromey <tom@tromey.com>
1234
1235 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1236 (dump_die_shallow): Use canonical_string_p.
1237 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1238 method.
1239
2c830f54
TT
12402020-09-29 Tom Tromey <tom@tromey.com>
1241
1242 * dwarf2/read.c (partial_die_info::read)
1243 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1244 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1245 attribute::as_string.
1246
6c412691
TT
12472020-09-29 Tom Tromey <tom@tromey.com>
1248
1249 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1250 DW_ADDR.
1251 (attribute::string): Don't use DW_STRING.
1252 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1253 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1254
95f982e5
TT
12552020-09-29 Tom Tromey <tom@tromey.com>
1256
1257 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1258 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1259 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1260 * dwarf2/attribute.h (struct attribute): Rename methods.
1261 * dwarf2/attribute.c (attribute::as_address): Rename from
1262 value_as_address.
1263 (attribute::as_string): Rename from value_as_string.
1264
f800b00e
TT
12652020-09-29 Tom Tromey <tom@tromey.com>
1266
1267 * dwarf2/read.c (partial_die_info::read) <case
1268 DW_AT_linkage_name>: Use value_as_string.
1269 (dwarf2_string_attr): Use value_as_string.
1270 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1271 method.
1272 * dwarf2/attribute.c (attribute::value_as_string): New method.
1273
de38d64a
PA
12742020-09-29 Pedro Alves <pedro@palves.net>
1275
1276 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1277 defined before using '#pragma GCC diagnostic' instead of checking
1278 __clang__.
1279
9aed480c
TT
12802020-09-28 Tom Tromey <tom@tromey.com>
1281
1282 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1283 (handle_signal_stop): Update.
1284 * procfs.c (procfs_target::insert_watchpoint): Update.
1285 * target.h (target_have_steppable_watchpoint): Now a function.
1286
8a3ecb79
TT
12872020-09-28 Tom Tromey <tom@tromey.com>
1288
1289 * infrun.c (set_schedlock_func): Update.
1290 * target.h (target_can_lock_scheduler): Now a function.
1291
55f6301a
TT
12922020-09-28 Tom Tromey <tom@tromey.com>
1293
1294 * inferior.h (class inferior) <has_execution>: Update.
1295 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1296 * valops.c (find_function_in_inferior)
1297 (value_allocate_space_in_inferior): Update.
1298 * top.c (kill_or_detach): Update.
1299 * target.c (target_preopen, set_target_permissions): Update.
1300 (target_has_execution_current): Remove.
1301 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1302 Update.
1303 * solib.c (update_solib_list, reload_shared_libraries): Update.
1304 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1305 * solib-dsbt.c (enable_break): Update.
1306 * score-tdep.c (score7_fetch_inst): Update.
1307 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1308 Update.
1309 * remote.c (remote_target::start_remote)
1310 (remote_target::remote_check_symbols, remote_target::open_1)
1311 (remote_target::remote_detach_1, remote_target::verify_memory)
1312 (remote_target::xfer_partial, remote_target::read_description)
1313 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1314 * record-full.c (record_full_open_1): Update.
1315 * record-btrace.c (record_btrace_target_open): Update.
1316 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1317 (value_nsstring): Update.
1318 * linux-thread-db.c (add_thread_db_info)
1319 (thread_db_find_new_threads_silently, check_thread_db_callback)
1320 (try_thread_db_load_1, record_thread): Update.
1321 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1322 Update.
1323 * linux-fork.c (checkpoint_command): Update.
1324 * infrun.c (set_non_stop, set_observer_mode)
1325 (check_multi_target_resumption, for_each_just_stopped_thread)
1326 (maybe_remove_breakpoints, normal_stop)
1327 (class infcall_suspend_state): Update.
1328 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1329 (info_program_command, attach_command): Update.
1330 * infcall.c (call_function_by_hand_dummy): Update.
1331 * inf-loop.c (inferior_event_handler): Update.
1332 * gcore.c (gcore_command, derive_heap_segment): Update.
1333 * exec.c (exec_file_command): Update.
1334 * eval.c (evaluate_subexp): Update.
1335 * compile/compile.c (compile_to_object): Update.
1336 * cli/cli-dump.c (restore_command): Update.
1337 * breakpoint.c (update_watchpoint)
1338 (update_inserted_breakpoint_locations)
1339 (insert_breakpoint_locations, get_bpstat_thread): Update.
1340 * target.h (target_has_execution): Remove macro.
1341 (target_has_execution_current): Don't declare.
1342 (target_has_execution): Rename from target_has_execution_1. Add
1343 argument default.
1344
05374cfd
TT
13452020-09-28 Tom Tromey <tom@tromey.com>
1346
1347 * mi/mi-main.c (exec_reverse_continue)
1348 (mi_cmd_list_target_features): Update.
1349 * infrun.c (set_exec_direction_func): Update.
1350 * target.c (default_execution_direction): Update.
1351 * reverse.c (exec_reverse_once): Update.
1352 * target.h (target_can_execute_reverse): Now a function.
1353
9dccd06e
TT
13542020-09-28 Tom Tromey <tom@tromey.com>
1355
1356 * tui/tui-regs.c (tui_get_register)
1357 (tui_data_window::show_registers): Update.
1358 * thread.c (scoped_restore_current_thread::restore)
1359 (scoped_restore_current_thread::scoped_restore_current_thread):
1360 Update.
1361 * regcache-dump.c (regcache_print): Update.
1362 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1363 Update.
1364 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1365 * mep-tdep.c (current_me_module, current_options): Update.
1366 * linux-thread-db.c (thread_db_load): Update.
1367 * infcmd.c (registers_info, info_vector_command)
1368 (info_float_command): Update.
1369 * ia64-tdep.c (ia64_frame_prev_register)
1370 (ia64_sigtramp_frame_prev_register): Update.
1371 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1372 * gcore.c (derive_stack_segment): Update.
1373 * frame.c (get_current_frame, has_stack_frames): Update.
1374 * findvar.c (language_defn::read_var_value): Update.
1375 * arm-tdep.c (arm_pc_is_thumb): Update.
1376 * target.c (target_has_registers): Rename from
1377 target_has_registers_1.
1378 * target.h (target_has_registers): Remove macro.
1379 (target_has_registers): Rename from target_has_registers_1.
1380
841de120
TT
13812020-09-28 Tom Tromey <tom@tromey.com>
1382
1383 * windows-tdep.c (tlb_make_value): Update.
1384 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1385 * thread.c (scoped_restore_current_thread::restore)
1386 (scoped_restore_current_thread::scoped_restore_current_thread)
1387 (thread_command): Update.
1388 * stack.c (backtrace_command_1, frame_apply_level_command)
1389 (frame_apply_all_command, frame_apply_command): Update.
1390 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1391 Update.
1392 * gcore.c (derive_stack_segment): Update.
1393 * frame.c (get_current_frame, has_stack_frames): Update.
1394 * auxv.c (info_auxv_command): Update.
1395 * ada-tasks.c (ada_build_task_list): Update.
1396 * target.c (target_has_stack): Rename from target_has_stack_1.
1397 * target.h (target_has_stack): Remove macro.
1398 (target_has_stack): Rename from target_has_stack_1.
1399
a739972c
TT
14002020-09-28 Tom Tromey <tom@tromey.com>
1401
1402 * target.c (target_has_memory): Rename from target_has_memory_1.
1403 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1404 * thread.c (scoped_restore_current_thread::restore)
1405 (scoped_restore_current_thread::scoped_restore_current_thread):
1406 Update.
1407 * frame.c (get_current_frame, has_stack_frames): Update.
1408 * target.h (target_has_memory): Remove macro.
1409 (target_has_memory): Rename from target_has_memory_1.
1410
5b8a4776
TT
14112020-09-28 Tom Tromey <tom@tromey.com>
1412
1413 * target.c (target_has_all_memory_1): Remove.
1414 * target.h (target_has_all_memory): Remove define.
1415 (target_has_all_memory_1): Don't declare.
1416
bd356ec6
SM
14172020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * ser-base.c: Adjust comments formatting.
1420
2c72d5e5
TT
14212020-09-27 Tom Tromey <tom@tromey.com>
1422
1423 PR tui/25342:
1424 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1425
35a98237
TT
14262020-09-27 Tom Tromey <tom@tromey.com>
1427
1428 PR tui/25342:
1429 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1430
9e820dec
TT
14312020-09-27 Tom Tromey <tom@tromey.com>
1432
1433 * unittests/tui-selftests.c: Update.
1434 * tui/tui-winsource.h (struct tui_source_window_base)
1435 <extra_margin, show_line_number, refresh_pad>: New methods.
1436 <m_max_length, m_pad>: New members.
1437 (tui_copy_source_line): Update.
1438 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1439 first_col, line_width, ndigits parameters. Add length.
1440 (tui_source_window_base::show_source_line): Write to pad. Line
1441 number now 0-based.
1442 (tui_source_window_base::refresh_pad): New method.
1443 (tui_source_window_base::show_source_content): Write to pad. Call
1444 refresh_pad.
1445 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1446 not refill.
1447 (tui_source_window_base::update_exec_info): Call
1448 show_line_number.
1449 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1450 method.
1451 <m_digits>: New member.
1452 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1453 and m_max_length.
1454 (tui_source_window::show_line_number): New method.
1455 * tui/tui-io.h (tui_puts): Fix comment.
1456 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1457 m_max_length.
1458
c15c15c8
TT
14592020-09-27 Tom Tromey <tom@tromey.com>
1460
1461 * tui/tui-winsource.c
1462 (tui_source_window_base::set_is_exec_point_at): Don't call
1463 show_source_line.
1464
149830c1
TT
14652020-09-27 Tom Tromey <tom@tromey.com>
1466
1467 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1468 method.
1469 <erase>: Update.
1470 <cursor_x, cursor_y>: Remove.
1471 <m_inner_window>: New member.
1472 (tui_py_window::rerender): Create inner window.
1473 (tui_py_window::output): Write to inner window.
1474
8f9929bb
GR
14752020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1476
1477 PR python/26586
1478 * cli/cli-script.c (execute_control_commands): don't set
1479 instream to nullptr here as this breaks the from_tty argument
1480 to gdb.execute in Python.
1481 (execute_user_command): set instream to nullptr here instead.
1482
956bdb59
SM
14832020-09-25 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * infrun.h (infrun_debug_printf): Fix formatting.
1486 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1487
3b93626b
SJ
14882020-09-25 Saagar Jha <saagar@saagarjha.com>
1489
1490 * compile/compile-object-load.h (struct munmap_list): Add
1491 explicitly-defined move constructor.
1492
b551a89f
TT
14932020-09-24 Tom Tromey <tromey@adacore.com>
1494
1495 PR tui/26638:
1496 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1497 method.
1498 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1499 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1500 (tui_prev_win): Rewrite.
1501
99bb393f
HD
15022020-09-23 Hannes Domani <ssbssa@yahoo.de>
1503
1504 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1505 in WOW64 processes as SIGINT.
1506 * nat/windows-nat.h: Make wow64_process a shared variable.
1507 * windows-nat.c: Remove static wow64_process variable.
1508
20a5fcbd
TT
15092020-09-23 Tom Tromey <tom@tromey.com>
1510
1511 PR symtab/25470:
1512 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1513 offset and bit size.
1514 * printcmd.c (print_scalar_formatted): Handle zero-length
1515 integer.
1516 (print_scalar_formatted): Use bit_size_differs_p.
1517 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1518 constant.
1519 (union type_specific): <int_stuff>: New member.
1520 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1521 methods.
1522 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1523 TYPE_SPECIFIC_FIELD.
1524 (recursive_dump_type, copy_type_recursive): Update.
1525 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1526 DW_AT_data_bit_offset.
1527
bac51ab7
TT
15282020-09-23 Tom Tromey <tom@tromey.com>
1529
1530 * utils.h (class gdb_argv): Add move operators.
1531 <append>: New methods.
1532 * compile/compile.c (build_argc_argv): Remove.
1533 (compile_args_argc): Remove.
1534 (compile_args_argv): Change type.
1535 (set_compile_args): Simplify.
1536 (append_args): Remove.
1537 (filter_args): Remove argcp parameter.
1538 (get_args): Return gdb_argv. Simplify.
1539 (compile_to_object): Update.
1540
92677124
TT
15412020-09-23 Tom Tromey <tom@tromey.com>
1542
1543 * compile/compile-object-run.c (do_module_cleanup)
1544 <~do_module_cleanup> :Remove.
1545 (do_module_cleanup): Update.
1546 * compile/compile-object-load.h (struct munmap_list): Add move
1547 assignment operator.
1548 <source_file>: Now a std::string.
1549 <munmap_list>: Rename. No longer a pointer.
1550 * compile/compile-object-load.c (struct setup_sections_data): Add
1551 constructor.
1552 <setup_one_section>: Declare.
1553 <munmap_list>: Move earlier.
1554 <m_bfd>: New member.
1555 <m_last_size, m_last_section_first, m_last_prot,
1556 m_last_max_alignment>: Rename, add initializers where needed.
1557 (setup_sections_data::setup_one_section): Rename from
1558 setup_sections. Update.
1559 (compile_object_load): Update. Don't use bfd_map_over_sections.
1560
e616f60a
TT
15612020-09-23 Tom Tromey <tom@tromey.com>
1562
1563 * compile/compile-object-run.c (struct do_module_cleanup): Add
1564 parameters to constructor. Update destructor.
1565 <source_file, scope, scope_data, out_value_type, out_value_addr,
1566 munmap_list_head, objfile_name_string>: Remove.
1567 <module>: New member.
1568 (do_module_cleanup): Update.
1569 (compile_object_run): Update.
1570
e947a848
TT
15712020-09-23 Tom Tromey <tom@tromey.com>
1572
1573 * compile/compile.c (eval_compile_command): Update.
1574 * compile/compile-object-run.h (compile_object_run): Take a
1575 compile_module_up.
1576 * compile/compile-object-run.c (compile_object_run): Take a
1577 compile_module_up.
1578 * compile/compile-object-load.h (struct compile_module): Add
1579 constructor, destructor.
1580 (compile_module_up): New typedef.
1581 (compile_object_load): Return compile_object_up.
1582 * compile/compile-object-load.c (compile_object_load): Return
1583 compile_module_up.
1584
0dbf6ee6
TT
15852020-09-23 Tom Tromey <tom@tromey.com>
1586
1587 * compile/compile-object-run.c (struct do_module_cleanup): Add
1588 constructor, destructor.
1589 <objfile_name_string>: Don't use struct hack.
1590 (do_module_cleanup): Use delete.
1591 (compile_object_run): Use new.
1592
ebe824f5
TT
15932020-09-23 Tom Tromey <tom@tromey.com>
1594
1595 * compile/compile-cplus-types.c
1596 (compile_cplus_convert_struct_or_union): Use std::vector.
1597 (compile_cplus_convert_func): Likewise.
1598 * compile/compile-c-types.c (convert_func): Use std::vector.
1599
5dd918d9
TT
16002020-09-21 Tom Tromey <tromey@adacore.com>
1601
1602 * sparc-tdep.c (sparc32_skip_prologue): Use
1603 skip_prologue_using_sal.
1604
5486c517
TT
16052020-09-19 Tom Tromey <tom@tromey.com>
1606
1607 * symfile.c (add_section_size_callback): Remove.
1608 (load_one_section): Rename from load_section_callback. Change
1609 parameters.
1610 (generic_load): Use foreach.
1611
8a6bb1d1
TT
16122020-09-19 Tom Tromey <tom@tromey.com>
1613
1614 * exec.c (add_to_section_table): Remove.
1615 (build_section_table): Use foreach.
1616
08f93a1a
TT
16172020-09-19 Tom Tromey <tom@tromey.com>
1618
1619 * elfread.c (elf_locate_sections): Change parameters.
1620 (elf_symfile_read): Use foreach.
1621
03cd72b8
TT
16222020-09-19 Tom Tromey <tom@tromey.com>
1623
1624 * cli/cli-dump.c (struct callback_data): Remove.
1625 (restore_one_section): Rename from restore_section_callback.
1626 Change parameters.
1627 (restore_binary_file): Change parameters.
1628 (restore_command): Use foreach.
1629
f4f2b85f
TT
16302020-09-19 Tom Tromey <tom@tromey.com>
1631
1632 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1633 (gcore_copy_callback): Likewise.
1634 (gcore_memory_sections): Use foreach.
1635
b35c1d1c
TT
16362020-09-19 Tom Tromey <tom@tromey.com>
1637
1638 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1639 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1640 parameters.
1641 (generic_elf_osabi_sniffer): Use foreach.
1642 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1643 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1644
5bb6e9dd
TT
16452020-09-19 Tom Tromey <tom@tromey.com>
1646
1647 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1648 (dwarf2_get_dwz_file): Use foreach.
1649 (dwarf2_locate_dwo_sections): Change parameters.
1650 (open_and_init_dwo_file): Use foreach.
1651 (dwarf2_locate_common_dwp_sections): Change parameters.
1652 (open_and_init_dwp_file): Use foreach.
1653
ad7277da
TT
16542020-09-19 Tom Tromey <tom@tromey.com>
1655
1656 * symfile.h: (find_lowest_section): Don't declare.
1657 * symfile.c (find_lowest_section): Now static. Change
1658 parameters.
1659 (struct place_section_arg): Remove.
1660 (place_section): Change parameters.
1661 (addr_info_make_relative): Use foreach.
1662 (symfile_dummy_outputs): Remove.
1663 (default_symfile_relocate): Use foreach.
1664
cb814f2e
TT
16652020-09-19 Tom Tromey <tom@tromey.com>
1666
1667 * objfiles.c (add_to_objfile_sections): Rename from
1668 add_to_objfile_sections_full.
1669 (add_to_objfile_sections): Remove.
1670 (build_objfile_section_table): Use foreach.
1671
3cabfd26
TT
16722020-09-19 Tom Tromey <tom@tromey.com>
1673
1674 * stap-probe.c (get_stap_base_address_1): Remove.
1675 (get_stap_base_address): Use foreach.
1676
1ce51eb5
TT
16772020-09-19 Tom Tromey <tom@tromey.com>
1678
1679 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1680 parameters.
1681 (gdb_bfd_close_or_warn): Use foreach.
1682
a190fabb
TT
16832020-09-19 Tom Tromey <tom@tromey.com>
1684
1685 * corelow.c (add_to_thread_list): Change parameters.
1686 (core_target_open): Use foreach.
1687
cafb0d81
TT
16882020-09-19 Tom Tromey <tom@tromey.com>
1689
1690 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1691 existing function.
1692
c8d5abea
AB
16932020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1696 for arrays.
1697
6d816919
AB
16982020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * eval.c: Remove 'f-lang.h' include.
1701 (value_f90_subarray): Moved to f-lang.c.
1702 (eval_call): Renamed to...
1703 (evaluate_subexp_do_call): ...this, is no longer static, header
1704 comment moved into header file.
1705 (evaluate_funcall): Update call to eval_call.
1706 (skip_undetermined_arglist): Moved to f-lang.c.
1707 (fortran_value_subarray): Likewise.
1708 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1709 moved to evaluate_subexp_f.
1710 (calc_f77_array_dims): Moved to f-lang.c
1711 * expprint.c (print_subexp_funcall): New function.
1712 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1713 moved to print_subexp_f, OP_FUNCALL uses new function.
1714 (dump_subexp_body_funcall): New function.
1715 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1716 moved to dump_subexp_f, OP_FUNCALL uses new function.
1717 * expression.h (evaluate_subexp_do_call): Declare.
1718 * f-lang.c (value_f90_subarray): Moved from eval.c.
1719 (skip_undetermined_arglist): Likewise.
1720 (calc_f77_array_dims): Likewise.
1721 (fortran_value_subarray): Likewise.
1722 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1723 (operator_length_f): Likewise.
1724 (print_subexp_f): Likewise.
1725 (dump_subexp_body_f): Likewise.
1726 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1727 declaration of this operation to here.
1728 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1729 support moved to operator_length_f.
1730 * parser-defs.h (dump_subexp_body_funcall): Declare.
1731 (print_subexp_funcall): Declare.
1732 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1733 fortran-operator.def.
1734
8c37706a
AB
17352020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * eval.c (fortran_value_subarray): New function, content is taken
1738 from...
1739 (evaluate_subexp_standard): ...here, in two places. Now arrays
1740 and strings both call the new function.
1741 (calc_f77_array_dims): Add header comment, handle strings.
1742
14f9473c
VC
17432020-09-18 Victor Collod <vcollod@nvidia.com>
1744
1745 PR gdb/26635
1746 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1747 (i386_analyze_prologue): Call i386_skip_endbr.
1748
b60cea74
TT
17492020-09-18 Tom Tromey <tromey@adacore.com>
1750
1751 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1752 (windows_nat_target::wait): Update.
1753 * target/wait.h (enum target_wait_flag): New. Use
1754 DEF_ENUM_FLAGS_TYPE.
1755 * target/target.h (target_wait): Change type of options.
1756 * target.h (target_options_to_string, default_target_wait):
1757 Update.
1758 (struct target_ops) <wait>: Change type of options.
1759 * target.c (target_wait, default_target_wait, do_option): Change
1760 type of "options".
1761 (target_options_to_string): Likewise.
1762 * target-delegates.c: Rebuild.
1763 * target-debug.h (target_debug_print_target_wait_flags): Rename
1764 from target_debug_print_options.
1765 * sol-thread.c (class sol_thread_target) <wait>: Update.
1766 (sol_thread_target::wait): Update.
1767 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1768 (rs6000_nat_target::wait): Update.
1769 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1770 Update.
1771 (remote_target::wait_ns, remote_target::wait_as): Change type of
1772 "options".
1773 (remote_target::wait): Update.
1774 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1775 (gdbsim_target::wait): Update.
1776 * record-full.c (class record_full_base_target) <wait>: Update.
1777 (record_full_wait_1): Change type of "options".
1778 (record_full_base_target::wait): Update.
1779 * record-btrace.c (class record_btrace_target) <wait>: Update.
1780 (record_btrace_target::wait): Update.
1781 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1782 Update.
1783 (ravenscar_thread_target::wait): Update.
1784 * procfs.c (class procfs_target) <wait>: Update.
1785 (procfs_target::wait): Update.
1786 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1787 * obsd-nat.c (obsd_nat_target::wait): Update.
1788 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1789 (nto_procfs_target::wait): Update.
1790 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1791 * nbsd-nat.c (nbsd_wait): Change type of "options".
1792 (nbsd_nat_target::wait): Update.
1793 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1794 (thread_db_target::wait): Update.
1795 * linux-nat.h (class linux_nat_target) <wait>: Update.
1796 * linux-nat.c (linux_nat_target::wait): Update.
1797 (linux_nat_wait_1): Update.
1798 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1799 "options".
1800 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1801 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1802 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1803 (go32_nat_target::wait): Update.
1804 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1805 * gnu-nat.c (gnu_nat_target::wait): Update.
1806 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1807 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1808 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1809 * darwin-nat.c (darwin_nat_target::wait): Update.
1810 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1811 (bsd_uthread_target::wait): Update.
1812 * aix-thread.c (class aix_thread_target) <wait>: Update.
1813 (aix_thread_target::wait): Update.
1814
0295dde6
AB
18152020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * compile/compile-object-run.c (create_copied_type_recursive): New
1818 function.
1819 (compile_object_run): Use new function.
1820
d3483b43
JT
18212020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1822
1823 * NEWS: Mention x86_64 Cygwin core file support.
1824
e7d612ad
JT
18252020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1826
1827 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1828 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1829
aff9d387
JT
18302020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1831
62a5151b
JT
1832 * windows-tdep.h: Add prototypes.
1833 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1834 (i386_windows_core_pid_to_str): Move and rename ...
1835 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1836 (windows_core_pid_to_str): ... and here.
1837 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1838
18392020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1840 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1841 (amd64_windows_init_abi_common): ... and register.
1842
7d155da3
JT
18432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1844
1845 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1846 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1847
e8ef12b9
PA
18482020-09-18 Pedro Alves <pedro@palves.net>
1849
1850 PR gdb/26631
1851 * thread.c (thread_find_command): Switch inferior before calling
1852 target methods.
1853
c1e1314d
TT
18542020-09-17 Tom Tromey <tromey@adacore.com>
1855
1856 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1857 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1858 (tdesc_arch_data_up): New typedef.
1859 (tdesc_use_registers, tdesc_data_alloc): Update.
1860 (tdesc_data_cleanup): Don't declare.
1861 * target-descriptions.c (tdesc_data_alloc): Return a
1862 tdesc_arch_data_up.
1863 (tdesc_arch_data_deleter::operator()): Rename from
1864 tdesc_data_cleanup. Change argument type.
1865 (tdesc_use_registers): Change early_data to an rvalue reference.
1866 (tdesc_use_registers): Don't use delete.
1867 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1868 * s390-tdep.c (s390_gdbarch_init): Update.
1869 * rx-tdep.c (rx_gdbarch_init): Update.
1870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1871 * riscv-tdep.c (riscv_gdbarch_init): Update.
1872 * or1k-tdep.c (or1k_gdbarch_init): Update.
1873 * nios2-tdep.c (nios2_gdbarch_init): Update.
1874 * nds32-tdep.c (nds32_gdbarch_init): Update.
1875 * mips-tdep.c (mips_gdbarch_init): Update.
1876 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1877 * m68k-tdep.c (m68k_gdbarch_init): Update.
1878 * i386-tdep.c (i386_gdbarch_init): Update.
1879 * arm-tdep.c (arm_gdbarch_init): Update.
1880 * arc-tdep.c (arc_tdesc_init): Update.
1881 (arc_gdbarch_init): Update.
1882 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1883
0363df3d
HD
18842020-09-17 Hannes Domani <ssbssa@yahoo.de>
1885
1886 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1887 for WOW64 processes.
1888
280a9412
TT
18892020-09-17 Tom Tromey <tom@tromey.com>
1890
1891 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1892
6108fd18
TT
18932020-09-17 Tom Tromey <tom@tromey.com>
1894
1895 * value.c (preserve_values): Update.
1896 * python/py-type.c (save_objfile_types): Update.
1897 * guile/scm-type.c (save_objfile_types): Update.
1898 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1899 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1900 * compile/compile-object-run.c (compile_object_run): Update.
1901
fa9b1164
TT
19022020-09-17 Tom Tromey <tom@tromey.com>
1903
1904 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1905 Remove.
1906 <m_table>: Now htab_up.
1907 * typeprint.c (typedef_hash_table::recursively_update)
1908 (typedef_hash_table::add_template_parameters)
1909 (typedef_hash_table::typedef_hash_table): Update.
1910 (typedef_hash_table::~typedef_hash_table): Remove.
1911 (typedef_hash_table::typedef_hash_table)
1912 (typedef_hash_table::find_global_typedef)
1913 (typedef_hash_table::find_typedef): Update.
1914
eb53f105
TT
19152020-09-17 Tom Tromey <tom@tromey.com>
1916
1917 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1918
7a8a5d47
TT
19192020-09-17 Tom Tromey <tom@tromey.com>
1920
1921 * linespec.c (class decode_compound_collector)
1922 <~decode_compound_collector>: Remove.
1923 <m_unique_syms>: Now htab_up.
1924 (decode_compound_collector::operator ()): Update.
1925 (class symtab_collector) <~symtab_collector>: Remove.
1926 <m_symtab_table>: Now htab_up.
1927 (symtab_collector::operator ()): Update.
1928
99032cfc
TT
19292020-09-17 Tom Tromey <tom@tromey.com>
1930
1931 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1932 (filename_seen_cache::clear): Update.
1933 (~filename_seen_cache): Remove.
1934 (filename_seen_cache::seen): Update.
1935 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1936 htab_up.
1937 <~filename_seen_cache>: Remove.
1938 <traverse>: Update.
1939
32580f6d
TT
19402020-09-17 Tom Tromey <tom@tromey.com>
1941
1942 * completer.c (completion_tracker::discard_completions)
1943 (completion_tracker::~completion_tracker)
1944 (completion_tracker::maybe_add_completion)
1945 (completion_tracker::remove_completion)
1946 (completion_tracker::recompute_lowest_common_denominator)
1947 (completion_tracker::build_completion_result): Update.
1948 * completer.h (class completion_tracker) <have_completions>:
1949 Update.
1950 <m_entries_hash>: Now htab_up.
1951
c1fb9836
TT
19522020-09-17 Tom Tromey <tom@tromey.com>
1953
1954 * breakpoint.c (ambiguous_names_p): Use htab_up.
1955
88f07206
TT
19562020-09-17 Tom Tromey <tom@tromey.com>
1957
1958 * auto-load.c (struct auto_load_pspace_info)
1959 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1960 <loaded_script_files, loaded_script_texts>: Change type to
1961 htab_up.
1962 (~auto_load_pspace_info) Remove.
1963 (init_loaded_scripts_info, maybe_add_script_file)
1964 (maybe_add_script_text, auto_load_info_scripts): Update.
1965
9519b2ee
TT
19662020-09-17 Tom Tromey <tromey@adacore.com>
1967
1968 * c-exp.y (name_obstack): Now static.
1969
d2cd4113
CC
19702020-09-17 Chungyi Chi <demonic@csie.io>
1971
1972 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1973
b650a282
SM
19742020-09-16 Simon Marchi <simon.marchi@efficios.com>
1975
1976 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1977 (add_solib_catchpoint): Likewise.
1978 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1979 to bool.
1980 (add_solib_catchpoint): Change int parameter/variable to bool.
1981 (catch_load_or_unload): Likewise.
1982 (init_catchpoint): Likewise.
1983 (create_fork_vfork_event_catchpoint): Likewise.
1984 (catch_fork_command_1): Likewise.
1985 (catch_exec_command_1): Likewise.
1986
4d0bcfcf
SM
19872020-09-16 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1990 Change instance_flags to m_instance_flags.
1991
fe830662
TT
19922020-09-16 Tom Tromey <tromey@adacore.com>
1993
1994 PR gdb/26598:
1995 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1996
fe5ddfc3
JB
19972020-09-16 John Baldwin <jhb@FreeBSD.org>
1998
1999 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
2000 PL_FLAG_EXEC.
2001 (fbsd_nat_target::insert_exec_catchpoint)
2002 (fbsd_nat_target::remove_exec_catchpoint): Always define.
2003 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
2004 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
2005
e911c666
JB
20062020-09-16 John Baldwin <jhb@FreeBSD.org>
2007
2008 * configure.ac: Remove check for kinfo_getvmmap().
2009 * configure, config.in: Regenerate.
2010 * fbsd-nat.c (fbsd_read_mapping): Remove
2011 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
2012 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
2013 kinfo_get_vmmap() are always present.
2014
1f17d372
JB
20152020-09-16 John Baldwin <jhb@FreeBSD.org>
2016
2017 * fbsd-nat.c: Always include support for
2018 TARGET_OBJECT_SIGNAL_INFO.
2019
bcb1da7f
JB
20202020-09-16 John Baldwin <jhb@FreeBSD.org>
2021
2022 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
2023 sysctl and remove procfs fallback.
2024
5515f729
JB
20252020-09-16 John Baldwin <jhb@FreeBSD.org>
2026
2027 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
2028 * fbsd-nat.h: Likewise.
2029
da1df1db
TBA
20302020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2031
2032 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
2033 argument.
2034
0e25e767
AB
20352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * ada-lang.c (ada_language_data): Delete.
2038 (ada_language): Remove references to ada_language_data.
2039 * c-lang.c (c_language_data): Delete.
2040 (c_language): Remove references to c_language_data.
2041 (cplus_language_data): Delete.
2042 (cplus_language): Remove references to cplus_language_data.
2043 (asm_language_data): Delete.
2044 (asm_language): Remove references to asm_language_data.
2045 (minimal_language_data): Delete.
2046 (minimal_language): Remove references to minimal_language_data.
2047 * d-lang.c (d_language_data): Delete.
2048 (d_language): Remove references to d_language_data.
2049 * f-lang.c (f_language_data): Delete.
2050 (f_language): Remove references to f_language_data.
2051 * go-lang.c (go_language_data): Delete.
2052 (go_language): Remove references to go_language_data.
2053 * language.c (unknown_language_data): Delete.
2054 (unknown_language): Remove references to unknown_language_data.
2055 (auto_language_data): Delete.
2056 (auto_language): Remove references to auto_language_data.
2057 * language.h (language_data): Delete struct.
2058 (language_defn): No longer inherit from language_data.
2059 * m2-lang.c (m2_language_data): Delete.
2060 (m2_language): Remove references to m2_language_data.
2061 * objc-lang.c (objc_language_data): Delete.
2062 (objc_language): Remove references to objc_language_data.
2063 * opencl-lang.c (opencl_language_data): Delete.
2064 (opencl_language): Remove references to opencl_language_data.
2065 * p-lang.c (pascal_language_data): Delete.
2066 (pascal_language): Remove references to pascal_language_data.
2067 * rust-lang.c (rust_language_data): Delete.
2068 (rust_language): Remove references to rust_language_data.
2069
b7c6e27d
AB
20702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * ada-lang.c (ada_language_data): Remove la_op_print_tab
2073 initializer.
2074 (ada_language::opcode_print_table): New member function.
2075 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
2076 (c_language::opcode_print_table): New member function.
2077 (cplus_language_data): Remove la_op_print_tab initializer.
2078 (cplus_language::opcode_print_table): New member function.
2079 (asm_language_data): Remove la_op_print_tab initializer.
2080 (asm_language::opcode_print_table): New member function.
2081 (minimal_language_data): Remove la_op_print_tab initializer.
2082 (minimal_language::opcode_print_table): New member function.
2083 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2084 (d_language::opcode_print_table): New member function.
2085 * expprint.c (print_subexp_standard): Update call to
2086 opcode_print_table.
2087 (op_string): Likewise.
2088 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2089 (f_language::opcode_print_table): New member function.
2090 * go-lang.c (go_language_data): Remove la_op_print_tab
2091 initializer.
2092 (go_language::opcode_print_table): New member function.
2093 * language.c (unknown_language_data): Remove la_op_print_tab
2094 initializer.
2095 (unknown_language::opcode_print_table): New member function.
2096 (auto_language_data): Remove la_op_print_tab initializer.
2097 (auto_language::opcode_print_table): New member function.
2098 * language.h (language_data): Remove la_op_print_tab field.
2099 (language_defn::opcode_print_table): Declare new member function.
2100 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2101 initializer.
2102 (m2_language::opcode_print_table): New member function.
2103 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2104 initializer.
2105 (objc_language::opcode_print_table): New member function.
2106 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2107 initializer.
2108 (opencl_language::opcode_print_table): New member function.
2109 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2110 initializer.
2111 (pascal_language::opcode_print_table): New member function.
2112 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2113 initializer.
2114 (rust_language::opcode_print_table): New member function.
2115
5aba6ebe
AB
21162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2119 (ada_language::expression_ops): New member function.
2120 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2121 (c_language::expression_ops): New member function.
2122 (cplus_language_data): Remove la_exp_desc initializer.
2123 (cplus_language::expression_ops): New member function.
2124 (asm_language_data): Remove la_exp_desc initializer.
2125 (asm_language::expression_ops): New member function.
2126 (minimal_language_data): Remove la_exp_desc initializer.
2127 (minimal_language::expression_ops): New member function.
2128 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2129 (d_language::expression_ops): New member function.
2130 * eval.c (evaluate_subexp): Update call to expression_ops.
2131 * expprint.c (print_subexp): Likewise.
2132 (op_name): Likewise.
2133 (dump_subexp_body): Likewise.
2134 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2135 (f_language::expression_ops): New member function.
2136 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2137 (go_language::expression_ops): New member function.
2138 * language.c (language_defn::expression_ops): New function.
2139 (unknown_language_data): Remove la_exp_desc initializer.
2140 (auto_language_data): Likewise.
2141 * language.h (language_data): Remove la_exp_desc field.
2142 (language_defn::expression_ops): Declare new member function.
2143 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2144 (m2_language::expression_ops): New member function.
2145 * objc-lang.c (objc_language_data): Remove la_exp_desc
2146 initializer.
2147 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2148 initializer.
2149 (opencl_language::expression_ops): New member function.
2150 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2151 * parse.c (operator_length): Update call to expression_ops.
2152 (exp_iterate): Likewise.
2153 * rust-lang.c (rust_language_data): Remove la_exp_desc
2154 initializer.
2155 (ruse_language::expression_ops): New member function.
2156
b63a3f3f
AB
21572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2160 initializer.
2161 (ada_language::varobj_ops): New member function.
2162 * c-lang.c (c_language_data): Remove la_varobj_ops
2163 initializer.
2164 (cplus_language_data): Likewise.
2165 (cplus_language::varobj_ops): New member function.
2166 (asm_language_data): Remove la_varobj_ops initializer.
2167 (minimal_language_data): Likewise.
2168 * d-lang.c (d_language_data): Likewise.
2169 * f-lang.c (f_language_data): Likewise.
2170 * go-lang.c (go_language_data): Likewise.
2171 * language.c (language_defn::varobj_ops): New function.
2172 (unknown_language_data): Remove la_varobj_ops
2173 initializer.
2174 (auto_language_data): Likewise.
2175 * language.h (language_data): Remove la_varobj_ops field.
2176 (language_defn::varobj_ops): Declare new member function.
2177 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2178 * objc-lang.c (objc_language_data): Likewise.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182 * varobj.c (varobj_create): Update call to varobj_ops.
2183 * varobj.h (default_varobj_ops): Delete define.
2184
1ac14a04
AB
21852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2188 initializer.
2189 * c-lang.c (c_language_data): Likewise.
2190 (c_language::macro_expansion): New member function.
2191 (cplus_language_data): Likewise.
2192 (cplus_language::macro_expansion): New member function.
2193 (asm_language_data): Likewise.
2194 (asm_language::macro_expansion): New member function.
2195 (minimal_language_data): Likewise.
2196 (minimal_language::macro_expansion): New member function.
2197 * d-lang.c (d_language_data): Remove la_macro_expansion
2198 initializer.
2199 * f-lang.c (f_language_data): Likewise.
2200 * go-lang.c (go_language_data): Likewise.
2201 * language.c (unknown_language_data): Likewise.
2202 (auto_language_data): Likewise.
2203 * language.h (language_data): Remove la_macro_expansion field.
2204 (language_defn::macro_expansion): New member function.
2205 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2206 initializer.
2207 * objc-lang.c (objc_language_data): Likewise.
2208 (objc_language::macro_expansion): New member function.
2209 * opencl-lang.c (opencl_language_data): Likewise.
2210 (opencl_language::macro_expansion): New member function.
2211 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2212 initializer.
2213 * rust-lang.c (rust_language_data): Likewise.
2214 * symtab.c (default_collect_symbol_completion_matches_break_on):
2215 Update call to macro_expansion.
2216
3a3440fb
AB
22172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * ada-lang.c (ada_language_data): Remove la_array_ordering
2220 initializer.
2221 * c-lang.c (c_language_data): Likewise.
2222 (cplus_language_data): Likewise.
2223 (asm_language_data): Likewise.
2224 (minimal_language_data): Likewise.
2225 * d-lang.c (d_language_data): Likewise.
2226 * dwarf2/read.c (read_array_order): Update for call to
2227 array_ordering.
2228 * f-lang.c (f_language_data): Remove la_array_ordering
2229 initializer.
2230 (f_language::array_ordering): New member function.
2231 * go-lang.c (go_language_data): Remove la_array_ordering
2232 initializer.
2233 * language.c (unknown_language_data): Likewise.
2234 (auto_language_data): Likewise.
2235 * language.h (language_data): Delete la_array_ordering field.
2236 (language_defn::array_ordering): New member function.
2237 * m2-lang.c (m2_language_data): Remove la_array_ordering
2238 initializer.
2239 * objc-lang.c (objc_language_data): Likewise.
2240 * opencl-lang.c (opencl_language_data): Likewise.
2241 * p-lang.c (pascal_language_data): Likewise.
2242 * rust-lang.c (rust_language_data): Likewise.
2243
0d201fa4
AB
22442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2245
2246 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2247 initializer.
2248 * c-lang.c (c_language_data): Likewise.
2249 (cplus_language_data): Likewise.
2250 (asm_language_data): Likewise.
2251 (minimal_language_data): Likewise.
2252 * d-lang.c (d_language_data): Likewise.
2253 * f-lang.c (f_language_data): Likewise.
2254 (f_language::case_sensitivity): New member function.
2255 * go-lang.c (go_language_data): Remove la_case_sensitivity
2256 initializer.
2257 * language.c (enum case_mode): Moved here from language.h.
2258 (case_mode): Make static.
2259 (show_case_command): Update for case_sensitivity being a method.
2260 (set_case_command): Likewise.
2261 (set_range_case): Likewise.
2262 (unknown_language_data): Remove la_case_sensitivity initializer.
2263 (auto_language_data): Likewise.
2264 * language.h (case_mode): Delete, move enum declaration to
2265 language.c.
2266 (language_data): Delete la_case_sensitivity field.
2267 (language_defn::case_sensitivity): New member function.
2268 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2269 initializer.
2270 * objc-lang.c (objc_language_data): Likewise.
2271 * opencl-lang.c (opencl_language_data): Likewise.
2272 * p-lang.c (pascal_language_data): Likewise.
2273 * rust-lang.c (rust_language_data): Likewise.
2274
efdf6a73
AB
22752020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * ada-lang.c (ada_language_data): Remove la_range_check
2278 initializer.
2279 * c-lang.c (c_language_data): Likewise.
2280 (cplus_language_data): Likewise.
2281 (asm_language_data): Likewise.
2282 (minimal_language_data): Likewise.
2283 * d-lang.c (d_language_data): Likewise.
2284 * f-lang.c (f_language_data): Likewise.
2285 (f_language::range_checking_on_by_default): New member function.
2286 * go-lang.c (go_language_data): Remove la_range_check initializer.
2287 * language.c (enum range_mode): Moved here from language.h.
2288 (range_mode): Made static.
2289 (show_range_command): Update to use
2290 range_checking_on_by_default.
2291 (set_range_command): Likewise.
2292 (set_range_case): Likewise.
2293 (unknown_language_data): Remove la_range_check initializer.
2294 (auto_language_data): Likewise.
2295 * language.h (range_mode): Delete. Enum definition moved to
2296 language.c.
2297 (language_data): Remove la_range_check field.
2298 (language_defn::range_checking_on_by_default): New member
2299 function.
2300 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2301 (m2_language::range_checking_on_by_default): New member function.
2302 * objc-lang.c (objc_language_data): Remove la_range_check
2303 initializer.
2304 * opencl-lang.c (opencl_language_data): Likewise.
2305 * p-lang.c (pascal_language_data): Likewise.
2306 (pascal_language::range_checking_on_by_default): New member
2307 function.
2308 * rust-lang.c (rust_language_data): Remove la_range_check
2309 initializer.
2310 (rust_language::range_checking_on_by_default): New member
2311 function.
2312
bf92aec5
AB
23132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * dwarf2/read.c (dwarf2_physname): Remove special case for
2316 language_go.
2317 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2318 member function.
2319
d3355e4d
AB
23202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * ada-lang.c (ada_language_data): Remove
2323 la_store_sym_names_in_linkage_form_p initializer.
2324 (ada_language::store_sym_names_in_linkage_form_p): New member
2325 function.
2326 * c-lang.c (c_language_data): Remove
2327 la_store_sym_names_in_linkage_form_p initializer.
2328 (c_language::store_sym_names_in_linkage_form_p): New member
2329 function.
2330 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2331 initializer.
2332 (asm_language_data): Likewise.
2333 (asm_language::store_sym_names_in_linkage_form_p): New member
2334 function.
2335 (minimal_language_data): Remove
2336 la_store_sym_names_in_linkage_form_p initializer.
2337 (minimal_language::store_sym_names_in_linkage_form_p): New member
2338 function.
2339 * d-lang.c (d_language_data): Remove
2340 la_store_sym_names_in_linkage_form_p initializer.
2341 * dwarf2/read.c (dwarf2_physname): Update call to
2342 store_sym_names_in_linkage_form_p.
2343 * f-lang.c (f_language_data): Remove
2344 la_store_sym_names_in_linkage_form_p initializer.
2345 * go-lang.c (go_language_data): Remove
2346 la_store_sym_names_in_linkage_form_p initializer.
2347 * language.c (unknown_language_data): Remove
2348 la_store_sym_names_in_linkage_form_p initializer.
2349 (unknown_language::store_sym_names_in_linkage_form_p): New member
2350 function.
2351 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2352 initializer.
2353 (auto_language::store_sym_names_in_linkage_form_p): New member
2354 function.
2355 * language.h (language_data): Remove
2356 la_store_sym_names_in_linkage_form_p member variable.
2357 (language_defn::store_sym_names_in_linkage_form_p): New member
2358 function.
2359 * m2-lang.c (m2_language_data): Remove
2360 la_store_sym_names_in_linkage_form_p initializer.
2361 * objc-lang.c (objc_language_data): Likewise.
2362 * opencl-lang.c (opencl_language_data): Likewise.
2363 * p-lang.c (pascal_language_data): Likewise.
2364 * rust-lang.c (rust_language_data): Likewise.
2365
22c12a6c
AB
23662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * ada-lang.c (ada_language_data): Remove string_lower_bound
2369 initializer.
2370 * c-lang.c (c_language_data): Likewise.
2371 (cplus_language_data): Likewise.
2372 (asm_language_data): Likewise.
2373 (minimal_language_data): Likewise.
2374 * d-lang.c (d_language_data): Likewise.
2375 * f-lang.c (f_language_data): Likewise.
2376 * go-lang.c (go_language_data): Likewise.
2377 * language.c (unknown_language_data): Likewise.
2378 (auto_language_data): Likewise.
2379 * language.h (language_data): Remove string_lower_bound field.
2380 (language_defn::string_lower_bound): New member function.
2381 * m2-lang.c (m2_language_data): Remove string_lower_bound
2382 initializer.
2383 (m2_language::string_lower_bound): New member function.
2384 * objc-lang.c (objc_language_data): Remove string_lower_bound
2385 initializer.
2386 * opencl-lang.c (opencl_language_data): Likewise.
2387 * p-lang.c (pascal_language_data): Likewise.
2388 * rust-lang.c (rust_language_data): Likewise.
2389 * valops.c (value_cstring): Update call to string_lower_bound.
2390 (value_string): Likewise.
2391 * value.c (allocate_repeated_value): Likewise.
2392
1c236ddd
AB
23932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * valops.c (value_repeat): Fix incorrect argument name in comment.
2396
67bd3fd5
AB
23972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * ada-lang.c (ada_language_data): Remove c_style_arrays
2400 initializer.
2401 (ada_language::c_style_arrays_p): New member fuction.
2402 * c-lang.c (c_language_data): Remove c_style_arrays
2403 initializer.
2404 (cplus_language_data): Likewise.
2405 (asm_language_data): Likewise.
2406 (minimal_language_data): Likewise.
2407 * d-lang.c (d_language_data): Likewise.
2408 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2409 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2410 (f_language::c_style_arrays_p): New member function.
2411 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2412 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2413 * language.c (unknown_language_data): Remove c_style_arrays
2414 initializer.
2415 (auto_language_data): Likewise.
2416 * language.h (language_data): Remove c_style_arrays field.
2417 (language_defn::c_style_arrays_p): New member function.
2418 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2419 (m2_language::c_style_arrays_p): New member function.
2420 * objc-lang.c (objc_language_data): Remove c_style_arrays
2421 initializer.
2422 * opencl-lang.c (opencl_language_data): Likewise.
2423 * p-lang.c (pascal_language_data): Likewise.
2424 * rust-lang.c (rust_language_data): Likewise.
2425 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2426 and update local variable to a bool.
2427 * valops.c (value_cast): Update call to c_style_arrays_p.
2428 (value_array): Likewise.
2429 * value.c (coerce_array): Likewise.
2430
85967615
AB
24312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * ada-lang.c (ada_language_data): Remove la_language initializer.
2434 * c-lang.c (c_language_data): Likewise.
2435 (cplus_language_data): Likewise.
2436 (asm_language_data): Likewise.
2437 (minimal_language_data): Likewise.
2438 * d-lang.c (d_language_data): Likewise.
2439 * f-lang.c (f_language_data): Likewise.
2440 * go-lang.c (go_language_data): Likewise.
2441 * language.c (unknown_language_data): Likewise.
2442 (auto_language_data): Likewise.
2443 * language.h (language_data): Remove la_language field.
2444 (language_defn::language_defn): Initialise la_language field.
2445 (language_defn::la_language): New member variable.
2446 * m2-lang.c (m2_language_data): Remove la_language field.
2447 * objc-lang.c (objc_language_data): Likewise.
2448 * opencl-lang.c (opencl_language_data): Likewise.
2449 * p-lang.c (pascal_language_data): Likewise.
2450 * rust-lang.c (rust_language_data): Likewise.
2451
e171d6f1
AB
24522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * ada-lang.c (ada_extensions): Delete, moved into
2455 ada_language::filename_extensions.
2456 (ada_language_data): Remove la_filename_extensions initializer.
2457 (ada_language::filename_extensions): New member function.
2458 * c-lang.c (c_extensions): Delete, moved into
2459 c_language::filename_extensions.
2460 (c_language_data): Remove la_filename_extensions initializer.
2461 (c_language::filename_extensions): New member function.
2462 (cplus_extensions): Delete, moved into
2463 cplus_language::filename_extensions.
2464 (cplus_language_data): Remove la_filename_extensions initializer.
2465 (cplus_language::filename_extensions): New member function.
2466 (asm_extensions): Delete, moved into
2467 asm_language::filename_extensions.
2468 (asm_language_data): Remove la_filename_extensions initializer.
2469 (asm_language::filename_extensions): New member function.
2470 (minimal_language_data): Remove la_filename_extensions
2471 initializer.
2472 * d-lang.c (d_extensions): Delete, moved into
2473 d_language::filename_extensions.
2474 (d_language_data): Remove la_filename_extensions initializer.
2475 (d_language::filename_extensions): New member function.
2476 * f-lang.c (f_extensions): Delete, moved into
2477 f_language::filename_extensions.
2478 (f_language_data): Remove la_filename_extensions initializer.
2479 (f_language::filename_extensions): New member function.
2480 * go-lang.c (go_language_data): Remove la_filename_extensions
2481 initializer.
2482 * language.c (add_set_language_command): Update now that
2483 filename_extensions returns a vector.
2484 (unknown_language_data): Remove la_filename_extensions
2485 initializer.
2486 (auto_language_data): Likewise.
2487 * language.h (language_data): Remove la_filename_extensions field.
2488 (language_defn::filename_extensions): New member function.
2489 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2490 initializer.
2491 * objc-lang.c (objc_extensions): Delete, moved into
2492 objc_language::filename_extensions.
2493 (objc_language_data): Remove la_filename_extensions initializer.
2494 (objc_language::filename_extensions): New member function.
2495 * opencl-lang.c (opencl_language_data): Remove
2496 la_filename_extensions initializer.
2497 * p-lang.c (pascal_extensions): Delete, moved into
2498 pascal_language::filename_extensions.
2499 (pascal_language_data): Remove la_filename_extensions initializer.
2500 (pascal_language::filename_extensions): New member function.
2501 * rust-lang.c (rust_extensions): Delete, moved into
2502 rust_language::filename_extensions.
2503 (rust_language_data): Remove la_filename_extensions initializer.
2504 (rust_language::filename_extensions): New member function.
2505 * symfile.c (add_filename_language): Add new assert.
2506
6f7664a9
AB
25072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2508
2509 * ada-lang.c (ada_language_data): Remove la_name and
2510 la_natural_name initializers.
2511 (ada_language::name): New member function.
2512 (ada_language::natural_name): New member function.
2513 * c-lang.c (c_language_data): Remove la_name and
2514 la_natural_name initializers.
2515 (c_language::name): New member function.
2516 (c_language::natural_name): New member function.
2517 (cplus_language_data): Remove la_name and
2518 la_natural_name initializers.
2519 (cplus_language::name): New member function.
2520 (cplus_language::natural_name): New member function.
2521 (asm_language_data): Remove la_name and
2522 la_natural_name initializers.
2523 (asm_language::name): New member function.
2524 (asm_language::natural_name): New member function.
2525 (minimal_language_data): Remove la_name and
2526 la_natural_name initializers.
2527 (minimal_language::name): New member function.
2528 (minimal_language::natural_name): New member function.
2529 * compile/compile.c (compile_to_object): Update call to
2530 lanugage_defn::name.
2531 * d-lang.c (d_language_data): Remove la_name and
2532 la_natural_name initializers.
2533 (d_language::name): New member function.
2534 (d_language::natural_name): New member function.
2535 * expprint.c (print_subexp_standard): Update call to
2536 language_defn::name.
2537 (dump_raw_expression): Likewise
2538 (dump_prefix_expression): Likewise.
2539 * f-lang.c (f_language_data): Remove la_name and
2540 la_natural_name initializers.
2541 (f_language::name): New member function.
2542 (f_language::natural_name): New member function.
2543 * go-lang.c (go_language_data): Remove la_name and
2544 la_natural_name initializers.
2545 (go_language::name): New member function.
2546 (go_language::natural_name): New member function.
2547 * language.c (show_language_command): Update call to
2548 language_defn::name.
2549 (set_language_command): Likewise.
2550 (language_enum): Likewise.
2551 (language_str): Likewise.
2552 (add_set_language_command): Likewise, use
2553 language_defn::natural_name in the doc string.
2554 (unknown_language_data): Remove la_name and
2555 la_natural_name initializers.
2556 (unknown_language::name): New member function.
2557 (unknown_language::natural_name): New member function.
2558 (auto_language_data): Remove la_name and
2559 la_natural_name initializers.
2560 (auto_language::name): New member function.
2561 (auto_language::natural_name): New member function.
2562 (language_lookup_primitive_type_as_symbol): Update call to
2563 language_defn::name.
2564 * language.h (language_data): Remove la_name and la_natural_name
2565 member variables.
2566 (language_defn::name): New member function.
2567 (language_defn::natural_name): New member function.
2568 * m2-lang.c (m2_language_data): Remove la_name and
2569 la_natural_name initializers.
2570 (m2_language::name): New member function.
2571 (m2_language::natural_name): New member function.
2572 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2573 language_defn::natural_name.
2574 * objc-lang.c (objc_language_data): Remove la_name and
2575 la_natural_name initializers.
2576 (objc_language::name): New member function.
2577 (objc_language::natural_name): New member function.
2578 * opencl-lang.c (opencl_language_data): Remove la_name and
2579 la_natural_name initializers.
2580 (opencl_language::name): New member function.
2581 (opencl_language::natural_name): New member function.
2582 * p-lang.c (pascal_language_data): Remove la_name and
2583 la_natural_name initializers.
2584 (pascal_language::name): New member function.
2585 (pascal_language::natural_name): New member function.
2586 * rust-lang.c (rust_language_data): Remove la_name and
2587 la_natural_name initializers.
2588 (rust_language::name): New member function.
2589 (rust_language::natural_name): New member function.
2590 * symtab.c (lookup_language_this): Update call to
2591 language_defn::name.
2592
5bae7c4e
AB
25932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-lang.c (ada_language_data): Remove la_name_of_this
2596 initializer.
2597 * ax-gdb.c (gen_expr): Update call to name_of_this.
2598 * c-exp.y (classify_name): Likewise.
2599 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2600 (cplus_language_data): Likewise.
2601 (cplus_language::name_of_this): New member function.
2602 (asm_language_data): Remove la_name_of_this initializer.
2603 (minimal_language_data): Likewise.
2604 * d-lang.c (d_language_data): Likewise.
2605 (d_language::name_of_this): New member function.
2606 * expprint.c (print_subexp_standard): Update call to name_of_this.
2607 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2608 * go-lang.c (go_language_data): Likewise.
2609 * language.c (unknown_language_data): Likewise.
2610 (unknown_language::name_of_this): New member function.
2611 (auto_language_data): Remove la_name_of_this initializer.
2612 (auto_language::name_of_this): New member function.
2613 * language.h (language_data): Delete la_name_of_this member
2614 variable.
2615 (language_defn::name_of_this): New member function.
2616 * m2-lang.c (m2_language_data): Remove la_name_of_this
2617 initializer.
2618 * objc-lang.c (objc_language_data): Likewise.
2619 (objc_language::name_of_this): New member function.
2620 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2621 initializer.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 (pascal_language::name_of_this): New member function.
2624 * rust-lang.c (rust_language_data): Remove la_name_of_this
2625 initializer.
2626 * symtab.c (lookup_language_this): Update call to name_of_this.
2627 (lookup_symbol_aux): Likewise.
2628 * valops.c (value_of_this): Likewise.
2629
22e3f3ed
AB
26302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * ada-lang.c (ada_language_data): Remove
2633 la_struct_too_deep_ellipsis initializer.
2634 (ada_language::struct_too_deep_ellipsis): New member function.
2635 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2636 initializer.
2637 (cplus_language_data): Likewise.
2638 (asm_language_data): Likewise.
2639 (minimal_language_data): Likewise.
2640 * cp-valprint.c (cp_print_value): Update call to
2641 struct_too_deep_ellipsis.
2642 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2643 initializer.
2644 * f-lang.c (f_language_data): Likewise.
2645 (f_language::struct_too_deep_ellipsis): New member function.
2646 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2647 initializer.
2648 * language.c (unknown_language_data): Likewise.
2649 (auto_language_data): Likewise.
2650 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2651 member variable.
2652 (language_defn::struct_too_deep_ellipsis): New member function.
2653 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2654 initializer.Q
2655 * objc-lang.c (objc_language_data): Likewise.
2656 * opencl-lang.c (opencl_language_data): Likewise.
2657 * p-lang.c (pascal_language_data): Likewise.
2658 * rust-lang.c (rust_language_data): Likewise.
2659 * valprint.c (val_print_check_max_depth): Update call to
2660 struct_too_deep_ellipsis.
2661
ed29e1c7
FW
26622020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2663
2664 * MAINTAINERS (Write After Approval): Add myself.
2665
12d8f940
TT
26662020-09-15 Tom Tromey <tom@tromey.com>
2667
2668 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2669 Remove.
2670
6b5a7bc7
TT
26712020-09-15 Tom Tromey <tom@tromey.com>
2672
2673 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2674 and TYPE_CODE_METHODPTR cases.
2675 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2676 (c_value_print_inner): Update.
2677 * valprint.c (generic_value_print_memberptr): New function, from
2678 c_value_print_memberptr.
2679 (generic_value_print): Use it. Call cplus_print_method_ptr.
2680
47f0e2ff
TT
26812020-09-15 Tom Tromey <tromey@adacore.com>
2682
2683 * python/python-internal.h (PyInt_FromLong): Remove define.
2684 * python/py-value.c (convert_value_from_python): Use
2685 gdb_py_object_from_longest.
2686 * python/py-type.c (typy_get_code): Use
2687 gdb_py_object_from_longest.
2688 * python/py-symtab.c (salpy_get_line): Use
2689 gdb_py_object_from_longest.
2690 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2691 gdb_py_object_from_longest.
2692 * python/py-record.c (recpy_gap_reason_code): Use
2693 gdb_py_object_from_longest.
2694 * python/py-record-btrace.c (recpy_bt_insn_size)
2695 (recpy_bt_func_level, btpy_list_count): Use
2696 gdb_py_object_from_longest.
2697 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2698 gdb_py_object_from_longest. Fix error handling.
2699 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2700 gdb_py_object_from_longest.
2701 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2702 gdb_py_object_from_longest.
2703 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2704 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2705 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2706
512116ce
TT
27072020-09-15 Tom Tromey <tromey@adacore.com>
2708
2709 * python/python.c (gdbpy_parameter_value): Use
2710 gdb_py_object_from_ulongest.
2711
4ab1029c
TT
27122020-09-15 Tom Tromey <tromey@adacore.com>
2713
2714 * python/py-infevents.c (create_register_changed_event_object):
2715 Use gdb_py_object_from_longest.
2716 * python/py-exitedevent.c (create_exited_event_object): Use
2717 gdb_py_object_from_longest.
2718
062534d4
TT
27192020-09-15 Tom Tromey <tromey@adacore.com>
2720
2721 * python/python.c (gdbpy_parameter_value): Use
2722 gdb_py_object_from_longest.
2723 * python/py-type.c (convert_field, typy_range): Use
2724 gdb_py_object_from_longest.
2725 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2726 gdb_py_object_from_longest.
2727 * python/py-lazy-string.c (stpy_get_length): Use
2728 gdb_py_object_from_longest.
2729 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2730 gdb_py_object_from_longest.
2731 * python/py-infevents.c (create_memory_changed_event_object): Use
2732 gdb_py_object_from_longest.
2733 * python/py-inferior.c (infpy_get_num): Use
2734 gdb_py_object_from_longest.
2735 (infpy_get_pid): Likewise.
2736
d1cab987
TT
27372020-09-15 Tom Tromey <tromey@adacore.com>
2738
2739 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2740 defines.
2741 * python/py-value.c (valpy_long): Use
2742 gdb_py_object_from_ulongest.
2743 * python/py-symtab.c (salpy_get_pc): Use
2744 gdb_py_object_from_ulongest.
2745 (salpy_get_last): Likewise.
2746 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2747 gdb_py_object_from_ulongest.
2748 * python/py-lazy-string.c (stpy_get_address): Use
2749 gdb_py_object_from_ulongest.
2750 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2751 * python/py-arch.c (archpy_disassemble): Use
2752 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2753 error handling.
2754
4bde49dc
TT
27552020-09-15 Tom Tromey <tromey@adacore.com>
2756
2757 * python/python-internal.h (gdb_py_long_from_longest): Remove
2758 defines.
2759 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2760 * python/py-type.c (convert_field, typy_get_sizeof): Use
2761 gdb_py_object_from_longest.
2762 * python/py-record-btrace.c (btpy_list_index): Use
2763 gdb_py_object_from_longest.
2764
37431074
TT
27652020-09-15 Tom Tromey <tromey@adacore.com>
2766
2767 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2768 * python/py-record.c (recpy_element_number): Use
2769 gdb_py_object_from_longest.
2770 (recpy_gap_number): Likewise.
2771
cbe25684
TT
27722020-09-15 Tom Tromey <tromey@adacore.com>
2773
2774 * top.c (ui::ui): Update.
2775 (highest_ui_num): Remove.
2776 * top.h (struct ui) <num>: Remove.
2777
db92ac45
TT
27782020-09-15 Tom Tromey <tromey@adacore.com>
2779
2780 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2781 * ui-style.c (ansi_regex_text): Now array.
2782 * rust-exp.y (number_regex_text): Now array.
2783 * linespec.c (linespec_quote_characters): Now array.
2784 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2785 Now arrays.
2786
d2b31b67
SM
27872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * debuginfod-support.c (debuginfod_client_deleter): New.
2790 (debuginfod_client_up): New.
2791 (debuginfod_init): Return debuginfod_client_up.
2792 (debuginfod_source_query): Adjust.
2793 (debuginfod_debuginfo_query): Adjust.
2794
3246bd8e
SM
27952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * debuginfod-support.c (debuginfod_source_query): Use
2798 make_unique_xstrdup.
2799
10242f36
SM
28002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2803 with `type::instance_flags`.
2804
e1044e6a
MM
28052020-09-14 Michael Mullin <masmullin@gmail.com>
2806
2807 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2808 Remove baton parameter.
2809
04902b09
PA
28102020-09-14 Pedro Alves <pedro@palves.net>
2811
2812 * Makefile.in (SELFTESTS_SRCS): Add
2813 unittests/enum-flags-selftests.c.
2814 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2815 btrace_function_flags instead of enum btrace_function_flag.
2816 * compile/compile-c-types.c (convert_qualified): Use
2817 enum_flags::raw.
2818 * compile/compile-cplus-symbols.c (convert_one_symbol)
2819 (convert_symbol_bmsym):
2820 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2821 (compile_cplus_convert_struct_or_union_methods)
2822 (compile_cplus_instance::convert_qualified_base):
2823 * go-exp.y (parse_string_or_char): Add cast to int.
2824 * unittests/enum-flags-selftests.c: New file.
2825 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2826 type to btrace_thread_flags from btrace_thread_flag.
2827 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2828 local's type to btrace_thread_flags from btrace_thread_flag. Add
2829 cast in DEBUG call.
2830
69896a2c
PA
28312020-09-14 Pedro Alves <pedro@palves.net>
2832
2833 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2834 * gdbtypes.c (address_space_name_to_int): Rename to ...
2835 (address_space_name_to_type_instance_flags): ... this.
2836 (address_space_int_to_name): Rename to ...
2837 (address_space_type_instance_flags_to_name): ... this.
2838 * gdbtypes.h (address_space_name_to_int): Rename to ...
2839 (address_space_name_to_type_instance_flags): ... this.
2840 (address_space_int_to_name): Rename to ...
2841 (address_space_type_instance_flags_to_name): ... this.
2842 * type-stack.c (type_stack::insert): Adjust to rename.
2843 * type-stack.h (type_stack::insert): Likewise.
2844
314ad88d
PA
28452020-09-14 Pedro Alves <pedro@palves.net>
2846 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * avr-tdep.c (avr_address_class_type_flags): Return
2849 type_instance_flags.
2850 (avr_address_class_type_flags_to_name): Take a
2851 type_instance_flags.
2852 (avr_address_class_name_to_type_flags): Return bool and take a
2853 type_instance_flags.
2854 * d-lang.c (build_d_types): Use type::set_instance_flags.
2855 * ft32-tdep.c (ft32_address_class_type_flags): Return
2856 type_instance_flags.
2857 (ft32_address_class_type_flags_to_name): Take a
2858 type_instance_flags.
2859 (ft32_address_class_name_to_type_flags): Return bool and take a
2860 type_instance_flags.
2861 (ft32_gdbarch_init): Use type::set_instance_flags.
2862 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2863 * gdbarch.h, gdbarch.c: Regenerate.
2864 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2865 (address_class_name_to_type_flags): Use type_instance_flags and
2866 bool.
2867 * gdbtypes.c (address_space_name_to_int)
2868 (address_space_int_to_name, make_qualified_type): Use
2869 type_instance_flags.
2870 (make_qualified_type): Use type_instance_flags and
2871 type::set_instance_flags.
2872 (make_type_with_address_space, make_cv_type, make_vector_type)
2873 (check_typedef): Use type_instance_flags.
2874 (recursive_dump_type): Cast type_instance_flags to unsigned for
2875 printing.
2876 (copy_type_recursive): Use type::set_instance_flags.
2877 (gdbtypes_post_init): Use type::set_instance_flags.
2878 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2879 <m_instance_flags>: ... this.
2880 <instance_flags, set_instance_flags>: New methods.
2881 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2882 (SET_TYPE_INSTANCE_FLAGS): New.
2883 (address_space_name_to_int, address_space_int_to_name)
2884 (make_type_with_address_space): Pass flags using
2885 type_instance_flags instead of int.
2886 * stabsread.c (cleanup_undefined_types_noname): Use
2887 type::set_instance_flags.
2888 * s390-tdep.c (s390_address_class_type_flags): Return
2889 type_instance_flags.
2890 (s390_address_class_type_flags_to_name): Take a
2891 type_instance_flags.
2892 (s390_address_class_name_to_type_flags): Return bool and take a
2893 type_instance_flags.
2894 * type-stack.c (type_stack::follow_types): Use
2895 type_instance_flags.
2896 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2897
27087b7f
TT
28982020-09-14 Tom Tromey <tromey@adacore.com>
2899
2900 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2901 * x86-tdep.c (x86_is_thunk_register_name)
2902 (x86_in_indirect_branch_thunk): Update.
2903 * sparc64-tdep.c (sparc64_fpu_register_names)
2904 (sparc64_cp0_register_names, sparc64_register_names)
2905 (sparc64_pseudo_register_names): Now const.
2906 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2907 cp0_registers_num>: Now const.
2908 * sparc-tdep.c (sparc_core_register_names)
2909 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2910 (sparc32_pseudo_register_names): Now const.
2911 (validate_tdesc_registers): Update.
2912 * rust-lang.c (rust_extensions): Now const.
2913 * p-lang.c (p_extensions): Now const.
2914 * objc-lang.c (objc_extensions): Now const.
2915 * nto-tdep.c (nto_thread_state_str): Now const.
2916 * moxie-tdep.c (moxie_register_names): Now const.
2917 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2918 Now const.
2919 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2920 (mips_linux_reg_names): Now const.
2921 (mips_gdbarch_init): Update.
2922 * microblaze-tdep.c (microblaze_register_names): Now const.
2923 * m68k-tdep.c (m68k_register_names): Now const.
2924 * m32r-tdep.c (m32r_register_names): Now const.
2925 * ia64-tdep.c (ia64_register_names): Now const.
2926 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2927 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2928 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2929 ymm_avx512_register_names, pkeys_register_names>: Now const.
2930 * i386-tdep.c (i386_register_names, i386_zmm_names)
2931 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2932 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2933 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2934 * f-lang.c (f_extensions): Now const.
2935 * d-lang.c (d_extensions): Now const.
2936 * csky-tdep.c (csky_register_names): Now const.
2937 * charset.c (default_charset_names, charset_enum): Now const.
2938 (_initialize_charset): Update.
2939 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2940 const.
2941 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2942 (bsd_uthread_solib_loaded): Update.
2943 (bsd_uthread_state): Now const.
2944 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2945 (amd64_ymm_avx512_names, amd64_ymmh_names)
2946 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2947 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2948 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2949 (amd64_dword_names): Now const.
2950 * agent.c (can_use_agent_enum): Now const.
2951 * ada-tasks.c (task_states, long_task_states): Now const.
2952 * ada-lang.c (known_runtime_file_name_patterns)
2953 (known_auxiliary_function_name_patterns, attribute_names)
2954 (standard_exc, ada_extensions): Now const.
2955
89806626
SM
29562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * bcache.h (struct bcache) <bcache>: Remove constructor.
2959 <m_hash_function, m_compare_function>: Remove.
2960 <~bcache>: Make virtual.
2961 <compare>: Remove static method, introduce virtual method.
2962 <default_hash>: Remove.
2963 <hash>: New virtual method.
2964 * bcache.c (bcache::expand_hash_table): Update.
2965 (bcache::insert): Update.
2966 (bcache::hash): New.
2967 (bcache::compare): Update comment and parameter names.
2968 * gdbtypes.c (types_deeply_equal): Update.
2969 * psymtab.h (struct psymbol_bcache): New struct.
2970 (class psymtab_storage) <psymtab_storage>: Make default.
2971 <psymbol_cache>: Change type to psymbol_bcache.
2972 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2973 (psymbol_hash): Change to...
2974 (psymbol_bcache::hash): ... this.
2975 (psymbol_compare): Change to...
2976 (psymbol_bcache::compare): ... this.
2977
677c92fe
SM
29782020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2981 checking for initial lwp.
2982
3eba3a01
TT
29832020-09-14 Tom Tromey <tromey@adacore.com>
2984
2985 * m68k-tdep.c (m68k_extract_return_value): Use
2986 pointer_result_regnum.
2987 (m68k_store_return_value): Likewise.
2988 (m68k_reg_struct_return_p): Handle vectors and arrays.
2989 (m68k_return_value): Handle arrays.
2990 (m68k_svr4_return_value): Fix single-element aggregate handling.
2991 Handle long double. Adjust for embedded ABI.
2992 (m68k_svr4_init_abi): Set pointer_result_regnum.
2993 (m68k_embedded_init_abi): New function.
2994 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2995 (m68k_osabi_sniffer): New function.
2996 (_initialize_m68k_tdep): Register osabi sniffer.
2997 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2998 member.
2999
33f4dd48
SM
30002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * xml-support.c (xml_fetch_content_from_file): Replace xfree
3003 with gdb::unique_xmalloc_ptr<char>.
3004
8400a90d
SM
30052020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3006
3007 * xml-support.h (xml_fetch_another): Change type to be a
3008 function_view.
3009 (xml_process_xincludes): Remove baton parameter.
3010 (xml_fetch_content_from_file): Change baton parameter to
3011 dirname.
3012 * xml-support.c (struct xinclude_parsing_data)
3013 <xinclude_parsing_data>: Remove baton parameter.
3014 <fetcher_baton>: Remove.
3015 (xinclude_start_include): Adjust.
3016 (xml_process_xincludes): Adjust.
3017 (xml_fetch_content_from_file): Replace baton parameter with
3018 dirname.
3019 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
3020 (xml_init_syscalls_info): Use a lambda.
3021 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
3022 (file_read_description_xml): Use a lambda.
3023 (fetch_available_features_from_target): Change baton parameter
3024 to target_ops.
3025 (target_read_description_xml): Use a lambda.
3026 (target_fetch_description_xml): Use a lambda.
3027 (string_read_description_xml): Update.
3028
04f5bab2
SM
30292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
3032 uses with type::endianity_is_not_default.
3033
db558e34
SM
30342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * gdbtypes.h (struct type) <endianity_is_not_default,
3037 set_endianity_is_not_default>: New methods.
3038 (TYPE_ENDIANITY_NOT_DEFAULT): Use
3039 type::endianity_is_not_default, change all write call sites to
3040 use type::set_endianity_is_not_default.
3041
22c4c60c
SM
30422020-09-14 Simon Marchi <simon.marchi@efficios.com>
3043
3044 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
3045 uses with type::is_fixed_instance.
3046
9cdd0d12
SM
30472020-09-14 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * gdbtypes.h (struct type) <is_fixed_instance,
3050 set_is_fixed_instance>: New methods.
3051 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
3052 write call sites to use type::set_is_fixed_instance.
3053
0becda7a
SM
30542020-09-14 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
3057 uses with type::is_gnu_ifunc.
3058
03cc7249
SM
30592020-09-14 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
3062 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
3063 use type::set_is_gnu_ifunc.
3064
3f46044c
SM
30652020-09-14 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
3068 uses with type::stub_is_supported.
3069
9baccff6
SM
30702020-09-14 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
3073 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
3074 use type::set_stub_is_supported.
3075
bd63c870
SM
30762020-09-14 Simon Marchi <simon.marchi@efficios.com>
3077
3078 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
3079 uses with type::is_vector.
3080
2062087b
SM
30812020-09-14 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3084 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3085 use type::set_is_vector.
3086
a409645d
SM
30872020-09-14 Simon Marchi <simon.marchi@efficios.com>
3088
3089 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3090 uses with type::has_varargs.
3091
1d6286ed
SM
30922020-09-14 Simon Marchi <simon.marchi@efficios.com>
3093
3094 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3095 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3096 use type::set_has_varargs.
3097
7f9f399b
SM
30982020-09-14 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3101 uses with type::is_prototyped.
3102
27e69b7a
SM
31032020-09-14 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3106 New methods.
3107 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3108 call sites to use type::set_is_prototyped.
3109
d2183968
SM
31102020-09-14 Simon Marchi <simon.marchi@efficios.com>
3111
3112 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3113 uses with type::target_is_stub.
3114
8f53807e
SM
31152020-09-14 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3118 New methods.
3119 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3120 sites to use type::set_target_is_stub.
3121
e46d3488
SM
31222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * gdbtypes.h (TYPE_STUB): Remove, replace all
3125 uses with type::is_stub.
3126
b4b73759
SM
31272020-09-14 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3130 (TYPE_STUB): Use type::is_stub, change all write call sites to
3131 use type::set_is_stub.
3132
20ce4123
SM
31332020-09-14 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3136 type::has_no_signedness.
3137
15152a54
SM
31382020-09-14 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * gdbtypes.h (struct type) <has_no_signedness,
3141 set_has_no_signedness>: New methods.
3142 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3143 call sites to use type::set_has_no_signedness.
3144
c6d940a9
SM
31452020-09-14 Simon Marchi <simon.marchi@efficios.com>
3146
3147 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3148 type::is_unsigned.
3149
653223d3
SM
31502020-09-14 Simon Marchi <simon.marchi@efficios.com>
3151
3152 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3153 methods.
3154 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3155 sites to use type::set_is_unsigned.
3156
55ea94da 31572020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3158 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3159
e851246a
SM
3160 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3161 pointer and stack frame offset when unwinding.
55ea94da 3162
6791b117
PA
31632020-09-13 Pedro Alves <pedro@palves.net>
3164
3165 * NEWS: Document "-break-insert --qualified".
3166 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3167
77f2120b
PA
31682020-09-13 Pedro Alves <pedro@palves.net>
3169
3170 * linespec.c (classify_mtype, compare_msyms): Delete.
3171 (search_minsyms_for_name): Remove classification logic. Instead
3172 filter out trampoline symbols if we also found an external
3173 function of the same name.
3174
ed6a896c
JB
31752020-09-13 Joel Brobecker <brobecker@adacore.com>
3176
3177 * NEWS: Create a new section for the next release branch.
3178 Rename the section of the current branch, now that it has
3179 been cut.
3180
32aea73e
JB
31812020-09-13 Joel Brobecker <brobecker@adacore.com>
3182
3183 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3184 * version.in: Bump version to 11.0.50.DATE-git.
3185
8087c3fa
JB
31862020-09-12 Joel Brobecker <brobecker@adacore.com>
3187
3188 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3189
2a67f09d
FW
31902020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3191 Felix Willgerodt <Felix.Willgerodt@intel.com>
3192
3193 * gdbarch.sh: Added bfloat16 type.
3194 * gdbarch.c: Regenerated.
3195 * gdbarch.h: Regenerated.
3196 * gdbtypes.c (floatformats_bfloat16): New struct.
3197 (gdbtypes_post_init): Add builtin_bfloat16.
3198 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3199 (floatformats_bfloat16): New struct.
3200 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3201 (i386_ymm_type): Add field "v16_bfloat16"
3202 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3203 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3204 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3205 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3206 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3207 * features/i386/64bit-avx512.c: Regenerated.
3208 * features/i386/64bit-sse.xml: Add bfloat16 type.
3209 * features/i386/64bit-sse.c: Regenerated.
3210
1347d111
FW
32112020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3212
3213 * i386-tdep.c (i386_zmm_type): Fix field names.
3214 (i386_ymm_type): Fix field names.
3215
7a4e8e7d
TBA
32162020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3217
3218 * breakpoint.c: Fix typo in the help message of the
3219 "set breakpoint condition-evaluation" command.
3220
cf4ac4be
KR
32212020-09-10 Kamil Rytarowski <n54@gmx.com>
3222
3223 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3224 * (nbsd_nat_target::pid_to_exec_file)
3225 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3226 (nbsd_nat_target::post_startup_inferior)
3227 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3228 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3229 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3230 * (nbsd_thread_lister): Remove.
3231
f404573e
KR
32322020-09-10 Kamil Rytarowski <n54@gmx.com>
3233
3234 * fork-inferior.c (startup_inferior): Avoid double free.
3235
1ccb2c17
KR
32362020-09-10 Kamil Rytarowski <n54@gmx.com>
3237
3238 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3239 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3240
feedfcc7
KR
32412020-09-10 Kamil Rytarowski <n54@gmx.com>
3242
3243 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3244 * netbsd-nat.c: Include <sys/ptrace.h>.
3245 * (netbsd_nat::enable_proc_events): Add.
3246
c489f8c6
KR
32472020-09-10 Kamil Rytarowski <n54@gmx.com>
3248
3249 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3250 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3251 (netbsd_nat::for_each_thread): Add.
3252 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3253 "gdbsupport/common-debug.h".
3254 * (netbsd_nat::netbsd_thread_lister)
3255 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3256 (netbsd_nat::for_each_thread): Add.
3257
330662f6
KR
32582020-09-10 Kamil Rytarowski <n54@gmx.com>
3259
3260 * netbsd-nat.h: Include <unistd.h>.
3261 * (netbsd_nat::pid_to_exec_file): Add.
3262 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3263 * (netbsd_nat::pid_to_exec_file) Add.
3264
70b67307
KR
32652020-09-10 Kamil Rytarowski <n54@gmx.com>
3266
3267 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3268
99cf6da6
KR
32692020-09-10 Kamil Rytarowski <n54@gmx.com>
3270
3271 * netbsd-nat.h: New file.
3272 * netbsd-nat.c: Likewise.
3273
1b788fb6
TT
32742020-09-09 Tom Tromey <tromey@adacore.com>
3275
3276 * ada-lang.c (remove_extra_symbols): Do not increment when
3277 removing an element
3278
03b0a45f
TT
32792020-09-08 Tom Tromey <tromey@adacore.com>
3280
3281 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3282
3cae4447
TT
32832020-09-08 Tom Tromey <tromey@adacore.com>
3284
3285 PR win32/25302:
3286 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3287 (gdb_bfd_init_data): New function.
3288 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3289
7f08fd51
TBA
32902020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3291
3292 * infrun.c (fetch_inferior_event): Use
3293 `switch_to_target_no_thread` to switch the target.
3294
3e6ff933
TT
32952020-09-06 Tom Tromey <tom@tromey.com>
3296
3297 * symfile.h (dwarf2_free_objfile): Don't declare.
3298
e56798df
AKS
32992020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3300
3301 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3302 to match 16 byte real/complex type generated by Flang compiler.
3303
8f5c6526
TV
33042020-09-03 Tom de Vries <tdevries@suse.de>
3305
3306 PR breakpoint/26546
3307 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3308 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3309
c5065df0
SM
33102020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * maint.c (index_digits): New function.
3313 (struct maint_print_section_data): Remove.
3314 (print_bfd_section_info): Remove print_data parameter, add arg
3315 and index_digits.
3316 (print_objfile_section_info): Likewise.
3317 (print_bfd_section_info_maybe_relocated): Likewise (plus
3318 objfile).
3319 (maintenance_info_sections): Adjust calls.
3320
02c6f3f1
TT
33212020-09-02 Tom Tromey <tromey@adacore.com>
3322
3323 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3324 for null pointers.
3325 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3326
ef5e5b0b
SM
33272020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 * bcache.h (struct bcache) <insert>: Change type of `added` to
3330 pointer to bool.
3331 * bcache.c (bcache::insert): Likewise.
3332 * gdbtypes.c (check_types_worklist): Adjust.
3333 * psymtab.c (add_psymbol_to_bcache): Adjust.
3334
973695d6
KB
33352020-08-31 Kevin Buettner <kevinb@redhat.com>
3336
3337 * corelow.c (unordered_set): Include.
3338 (class core_target): Add field 'm_core_unavailable_mappings'.
3339 (core_target::build_file_mappings): Print only one warning
3340 per inaccessible file. Add unavailable/broken mappings
3341 to m_core_unavailable_mappings.
3342 (core_target::xfer_partial): Call...
3343 (core_target::xfer_memory_via_mappings): New method.
3344
264fc0e2
SM
33452020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3348 type to bool.
3349
2de01bdb
SM
33502020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * dwarf2/read.c (struct field_info): Fix indentation.
3353
f3bd50f1
SM
33542020-08-31 Simon Marchi <simon.marchi@efficios.com>
3355
3356 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3357 ordering in comment.
3358 * frame.c (frame_id_eq): Fix indentation.
3359
22b9b4b0
SL
33602020-08-31 Scott Linder <scott@scottlinder.com>
3361 Simon Marchi <simon.marchi@efficios.com>
3362
3363 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3364 inline frame ids in outer frame.
3365
84154d16
SM
33662020-08-31 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3369 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3370 (outer_frame_id): Use FID_STACK_OUTER instead of
3371 FID_STACK_INVALID.
3372 (frame_id_p): Don't check for outer_frame_id.
3373
8efaf6b3
SM
33742020-08-31 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3377 regnum/frame in value. Call allocate_value_lazy.
3378 * frame.c (frame_unwind_register_value): Use
3379 val_print_not_saved.
3380
fe1fe7ea
SM
33812020-08-31 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3384
f7c7700d
PA
33852020-08-29 Pedro Alves <pedro@palves.net>
3386
3387 * progspace.c (print_program_space): Use all_inferiors. Switch to
3388 the inferior before calling target_pid_to_str.
3389
e0814aae
TT
33902020-08-28 Tom Tromey <tom@tromey.com>
3391
3392 * xcoffread.c (xcoff_end_psymtab): Update comment.
3393 * dbxread.c (dbx_end_psymtab): Update comment.
3394
626d2320
TV
33952020-08-28 Tom de Vries <tdevries@suse.de>
3396
3397 PR breakpoint/26544
3398 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3399 event_location.
3400 (create_breakpoint): Same.
3401 (base_breakpoint_decode_location): Same.
3402 (bkpt_create_sals_from_location): Same.
3403 (bkpt_decode_location): Same.
3404 (bkpt_probe_create_sals_from_location): Same.
3405 (bkpt_probe_decode_location): Same.
3406 (tracepoint_create_sals_from_location): Same.
3407 (tracepoint_decode_location): Same.
3408 (tracepoint_probe_decode_location): Same.
3409 (strace_marker_create_sals_from_location): Same.
3410 (strace_marker_decode_location): Same.
3411 (create_sals_from_location_default): Same.
3412 (decode_location_default): Same.
3413 * breakpoint.h (struct breakpoint_ops): Same.
3414 (create_breakpoint): Same.
3415 * linespec.h (decode_line_full): Same.
3416 * linespec.c (decode_line_full): Same. Throw error if
3417 result.size () == 0.
3418
df631783
PA
34192020-08-27 Pedro Alves <pedro@palves.net>
3420
3421 PR gdb/26524
3422 * breakpoint.c (until_break_fsm) <location_breakpoint,
3423 caller_breakpoint>: Delete fields.
3424 <breakpoints>: New field.
3425 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3426 two individual breakpoints.
3427 (until_break_fsm::should_stop): Loop over breakpoints in the
3428 breakpoint vector.
3429 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3430 vector.
3431 (until_break_command): Handle location expanding into multiple
3432 sals.
3433
b2b38aa4
PA
34342020-08-27 Pedro Alves <pedro@palves.net>
3435
3436 PR gdb/26523
3437 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3438 bp_until breakpoints user-specified locations. Update intro
3439 comment.
3440
b886559f
SM
34412020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3442
3443 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3444 gdb_bfd_sections): New.
3445 * maint.c (print_bfd_section_info): Change param type to
3446 maint_print_section_data.
3447 (print_objfile_section_info): Likewise.
3448 (print_bfd_section_info_maybe_relocated): Likewise.
3449 (maintenance_info_sections): Use gdb_bfd_sections.
3450
4c6e63bf
SV
34512020-08-25 Shahab Vahedi <shahab@synopsys.com>
3452
3453 * MAINTAINERS: Add ARC target and maintainer.
3454
8d7f0635
AK
34552020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3456
3457 * configure.tgt: ARC support for GNU/Linux.
3458 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3459 * arc-linux-tdep.c: New file.
3460 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3461 * arc-tdep.c (arc_write_pc): Use it.
3462
fdd8731b
SV
34632020-08-25 Shahab Vahedi <shahab@synopsys.com>
3464
3465 * arc-tdep.c (arc_check_for_hardware_loop): New.
3466 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3467
22459524
SV
34682020-08-25 Shahab Vahedi <shahab@synopsys.com>
3469
3470 * arc-tdep.h: Include "gdbarch.h".
3471
995d3a19
SV
34722020-08-25 Shahab Vahedi <shahab@synopsys.com>
3473
3474 * arch/arc.h
3475 (arc_gdbarch_features): New class to stir the selection of target XML.
3476 (arc_create_target_description): Use FEATURES to choose XML target.
3477 (arc_lookup_target_description): Use arc_create_target_description
3478 to create _new_ target descriptions or return the already created
3479 ones if the FEATURES is the same.
3480 * arch/arc.c: Implementation of prototypes described above.
3481 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3482 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3483 * arc-tdep.c (*_feature_name): Make feature names consistent.
3484 (arc_register_feature): A new struct to hold information about
3485 registers of a particular target/feature.
3486 (arc_check_tdesc_feature): Check if XML provides registers in
3487 compliance with ARC_REGISTER_FEATURE structs.
3488 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3489 (determine_*_reg_feature_set): Which feature name to look for.
3490 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3491 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3492 to expected ISA enums to be used in arc_gdbarch_features structs.
3493 * features/Makefile (FEATURE_XMLFILES): Add new files.
3494 * gdb/features/arc/v1-aux.c: New file.
3495 * gdb/features/arc/v1-aux.xml: Likewise.
3496 * gdb/features/arc/v1-core.c: Likewise.
3497 * gdb/features/arc/v1-core.xml: Likewise.
3498 * gdb/features/arc/v2-aux.c: Likewise.
3499 * gdb/features/arc/v2-aux.xml: Likewise.
3500 * gdb/features/arc/v2-core.c: Likewise.
3501 * gdb/features/arc/v2-core.xml: Likewise.
3502 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3503
3945d2d7
GM
35042020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3505 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 PR m2/26372
fc5d6901 3508 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3509 an assert. Remove single element array indexing pattern as the
3510 MULTI_SUBSCRIPT support will handle this case too.
3511
2677f2d3
SM
35122020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * value.h (valprint_check_validity): Move declaration from
3515 here...
3516 * valprint.h (valprint_check_validity): ... to here.
3517
c426fddb
SM
35182020-08-24 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * debug.h: New file.
3521 * debug.c (debug_prefixed_vprintf): New function.
3522 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3523 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3524
1eb8556f
SM
35252020-08-24 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * infrun.h (infrun_debug_printf_1): New function declaration.
3528 (infrun_debug_printf): New macro.
3529 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3530 throughout.
3531 (infrun_debug_printf): New function.
3532 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3533 (handle_jit_event): Likewise.
3534
b8fff44e
MW
35352020-08-21 Mark Wielaard <mark@klomp.org>
3536
3537 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3538
d19c3068
SM
35392020-08-22 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * frame.c (enum class frame_id_status): New.
3542 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3543 (fprintf_frame): Update.
3544 (compute_frame_id): Set frame id status to "computing" on entry.
3545 Set it back to "not_computed" on failure and to "computed" on
3546 success.
3547 (get_frame_id): Assert the frame id is not being computed.
3548 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3549 (create_new_frame): Likewise.
3550 (frame_cleanup_after_sniffer): Update assert.
3551
b70e516e
SM
35522020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3553
3554 * regcache.c (pid_ptid_regcache_map): New type.
3555 (target_ptid_regcache_map): Remove.
3556 (target_pid_ptid_regcache_map): New type.
3557 (regcaches): Change type to target_pid_ptid_regcache_map.
3558 (get_thread_arch_aspace_regcache): Update.
3559 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3560 case.
3561 (regcaches_size): Update.
3562 (regcache_count): Update.
3563 (registers_changed_ptid_target_pid_test): New.
3564 (_initialize_regcache): Register new test.
3565
cdd9148a
SM
35662020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3567
3568 * regcache.c (regcache_count): New.
3569 (struct regcache_test_data): New.
3570 (regcache_test_data_up): New.
3571 (populate_regcaches_for_test): New.
3572 (regcaches_test): Remove.
3573 (get_thread_arch_aspace_regcache_test): New.
3574 (registers_changed_ptid_all_test): New.
3575 (registers_changed_ptid_target_test): New.
3576 (registers_changed_ptid_target_ptid_test): New.
3577 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3578 (_initialize_regcache): Register new tests.
3579
dd125343
SM
35802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3581
3582 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3583 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3584 gdbarch and aspace parameter. Use current inferior's aspace.
3585 Validate regcache's arch value.
3586 (regcaches_test): Update.
3587
3ee93972
SM
35882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * regcache.c (regcaches_test): Call registers_changed.
3591
33bf4c5c
TBA
35922020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3593
3594 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3595
c2fd7fae
AKS
35962020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3597
3598 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3599 to find the end of prologue for flang compiled binaries.
3600 * arm-tdep.c (arm_skip_prologue): Likewise.
3601 * i386-tdep.c (i386_skip_prologue): Likewise.
3602 * producer.c (producer_is_llvm): New function.
3603 (producer_parsing_tests): Added new tests for clang/flang.
3604 * producer.h (producer_is_llvm): New declaration.
3605
9327494e
SM
36062020-08-18 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * linux-nat.c (linux_nat_debug_printf): New function.
3609 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3610
d138725a
AM
36112020-08-18 Aaron Merey <amerey@redhat.com>
3612
3613 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3614 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3615 (CLIBS): Add DEBUGINFOD_LIBS.
3616
f9b11e6b
ST
36172020-08-17 Sergei Trofimovich <siarheit@google.com>
3618
3619 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3620 'gdbarch_num_regs'.
3621
3ae7ab99
TT
36222020-08-17 Tom Tromey <tromey@adacore.com>
3623
3624 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3625 ada_get_decoded_value returns NULL.
3626
b017825f
TT
36272020-08-17 Tom Tromey <tromey@adacore.com>
3628
3629 * python/py-inferior.c (infpy_search_memory): Use
3630 gdb_py_object_from_ulongest.
3631 * python/py-infevents.c (create_inferior_call_event_object)
3632 (create_memory_changed_event_object): Use
3633 gdb_py_object_from_ulongest.
3634 * python/py-linetable.c (ltpy_entry_get_pc): Use
3635 gdb_py_object_from_ulongest.
3636
7635cf79
SM
36372020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * loc.c (class symbol_needs_eval_context): Fix indentation.
3640
f54be24b
SM
36412020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3642
3643 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3644 bool.
3645
53d5a2a5
TV
36462020-08-17 Tom de Vries <tdevries@suse.de>
3647
3648 PR gdb/26393
3649 * gdbtypes.c (dump_dynamic_prop): New function.
3650 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3651
547ce8f0
TV
36522020-08-15 Tom de Vries <tdevries@suse.de>
3653
3654 PR backtrace/26390
3655 * stack.c (print_frame_args): Temporarily set the selected
3656 frame to FRAME while printing the frame's arguments.
3657
6ea815e7
PFC
36582020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3659
3660 PR breakpoints/26385
3661 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3662 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3663
6e562fa3
PFC
36642020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3665
3666 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3667 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3668 and >= to check return value instead of == -1 and != -1.
3669
d369b608
SM
36702020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * utils.h (class gdb_argv) <as_array_view>: New method.
3673 * utils.c (gdb_argv_as_array_view_test): New.
3674 (_initialize_utils): Register selftest.
3675 * maint.c (maintenance_selftest): Use the new method.
3676
b31488a3
KR
36772020-08-13 Kamil Rytarowski <n54@gmx.com>
3678
3679 * target.h (supports_dumpcore, dumpcore): New
3680 function declarations.
3681 * target.c (supports_dumpcore, dumpcore): New
3682 functions.
3683 * target-delegates.c: Rebuild.
3684 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3685 and target_dumpcore ().
3686
002a3166
AM
36872020-08-13 Aaron Merey <amerey@redhat.com>
3688
3689 * debuginfod-support.c: Replace global variables with user_data.
3690
ece5bc8a
SM
36912020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3692
3693 * maint.c (maintenance_selftest): Split args and pass array_view
3694 to run_tests.
3695
6d8a0a5e
LM
36962020-08-12 Luis Machado <luis.machado@linaro.org>
3697
3698 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3699 type's length.
3700 Use %s and pulongest to print the length.
3701
7cf663a9
PA
37022020-08-12 Pedro Alves <palves@redhat.com>
3703
3704 * NEWS: Move "Multi-target debugging support" item to the
3705 "Changes since GDB 9" section.
3706
27c7b875
PA
37072020-08-12 Pedro Alves <palves@redhat.com>
3708
3709 PR gdb/26336
3710 * progspace.c (program_space::remove_objfile): Invalidate the
3711 frame cache.
3712
1796a2a1
TV
37132020-08-11 Tom de Vries <tdevries@suse.de>
3714
3715 * MAINTAINERS: Mark ms1 as deleted.
3716
f8e3fe0d
LM
37172020-08-10 Luis Machado <luis.machado@linaro.org>
3718
3719 PR gdb/26310
3720
3721 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3722 act accordingly.
3723 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3724 movz/str/stur/stp skipping behavior.
3725
cc308722
LM
37262020-08-10 Luis Machado <luis.machado@linaro.org>
3727
3728 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3729 struct user_sve_header instead of struct sve_context.
3730
041d9819
SM
37312020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3732
3733 * read.h (dwarf2_fetch_die_loc_sect_off,
3734 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3735 `void *` parameter with function_view.
3736 * read.c (dwarf2_fetch_die_loc_sect_off,
3737 dwarf2_fetch_die_loc_cu_off): Likewise.
3738 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3739 (per_cu_dwarf_call): Adjust.
3740 (get_frame_address_in_block_wrapper): Remove.
3741 (indirect_synthetic_pointer): Adjust.
3742 (get_ax_pc): Remove.
3743 (dwarf2_compile_expr_to_ax): Adjust.
3744
38f8aa06
TV
37452020-08-08 Tom de Vries <tdevries@suse.de>
3746
3747 PR build/26344
3748 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3749 constructor.
3750 * regcache.c (get_thread_arch_aspace_regcache): Same.
3751
a52b3ae2
TT
37522020-08-07 Tom Tromey <tromey@adacore.com>
3753
3754 * ravenscar-thread.c
3755 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3756 New method.
3757 (ravenscar_thread_target::wait): Check
3758 runtime_initialized.
3759 (ravenscar_thread_target::prepare_to_store)
3760 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3761 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3762 (ravenscar_thread_target::stopped_by_watchpoint)
3763 (ravenscar_thread_target::stopped_data_address)
3764 (ravenscar_thread_target::core_of_thread): Use
3765 scoped_restore_current_thread and
3766 set_base_thread_from_ravenscar_task.
3767
0e29517d
TT
37682020-08-07 Tom Tromey <tromey@adacore.com>
3769
3770 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3771
592f9bd7
TT
37722020-08-07 Tom Tromey <tromey@adacore.com>
3773
3774 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3775 update_inferior_ptid before update_thread_list.
3776 (temporarily_change_regcache_ptid): New class.
3777 (ravenscar_thread_target::fetch_registers)
3778 (ravenscar_thread_target::store_registers)
3779 (ravenscar_thread_target::prepare_to_store): Use base thread when
3780 forwarding operation.
3781
39e2018a
TT
37822020-08-07 Tom Tromey <tromey@adacore.com>
3783
3784 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3785 "is_pid" case.
3786
2080266b
TT
37872020-08-07 Tom Tromey <tromey@adacore.com>
3788
3789 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3790 New methods.
3791 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3792 first.
3793 (ravenscar_thread_target::add_thread): Rename from
3794 ravenscar_add_thread.
3795 (ravenscar_thread_target::update_thread_list): Use a lambda.
3796 (ravenscar_thread_target::xfer_partial): New method.
3797
78c02f21
TT
37982020-08-07 Tom Tromey <tromey@adacore.com>
3799
3800 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3801 gdb::function_view.
3802 (iterate_over_live_ada_tasks): Change type of argument.
3803 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3804 of argument.
3805
d5d833af
TT
38062020-08-07 Tom Tromey <tromey@adacore.com>
3807
3808 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3809 Remove.
3810 (ravenscar_thread_target::extra_thread_info): Remove.
3811 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3812 defer to target beneath for non-Ravenscar threads.
3813
a8ac85bb
TT
38142020-08-07 Tom Tromey <tromey@adacore.com>
3815
3816 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3817 get_base_thread_from_ravenscar_task>: Now methods.
3818 <m_cpu_map>: New member.
3819 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3820 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3821 (ravenscar_thread_target::task_is_currently_active): Update.
3822 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3823 Now a method.
3824 (ravenscar_thread_target::add_active_thread): Put initial thread
3825 into the m_cpu_map.
3826
550ab58d
TT
38272020-08-07 Tom Tromey <tromey@adacore.com>
3828
3829 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3830 event_ptid.
3831
e9546579
TT
38322020-08-07 Tom Tromey <tromey@adacore.com>
3833
3834 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3835 runtime_initialized.
3836
3d4470e5
TT
38372020-08-07 Tom Tromey <tromey@adacore.com>
3838
3839 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3840 add_active_thread.
3841 (ravenscar_thread_target::add_active_thread): Now public.
3842 (ravenscar_inferior_created): Call add_active_thread after pushing
3843 the target.
3844
888bdb2b
SM
38452020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3846
3847 * regcache.c (ptid_regcache_map): New type.
3848 (target_ptid_regcache_map): New type.
3849 (regcaches): Change type to target_ptid_regcache_map.
3850 (get_thread_arch_aspace_regcache): Update to regcaches' new
3851 type.
3852 (regcache_thread_ptid_changed): Likewise.
3853 (registers_changed_ptid): Likewise.
3854 (regcaches_size): Likewise.
3855 (regcaches_test): Update.
3856 (regcache_thread_ptid_changed): Update.
3857 * regcache.h (regcache_up): New type.
3858 * gdbsupport/ptid.h (hash_ptid): New struct.
3859
b161a60d
SM
38602020-08-07 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * observable.h (thread_ptid_changed): Add parameter
3863 `process_stratum_target *`.
3864 * infrun.c (infrun_thread_ptid_changed): Add parameter
3865 `process_stratum_target *` and use it.
3866 (selftests): New namespace.
3867 (infrun_thread_ptid_changed): New function.
3868 (_initialize_infrun): Register selftest.
3869 * regcache.c (regcache_thread_ptid_changed): Add parameter
3870 `process_stratum_target *` and use it.
3871 (regcache_thread_ptid_changed): New function.
3872 (_initialize_regcache): Register selftest.
3873 * thread.c (thread_change_ptid): Pass target to
3874 thread_ptid_changed observable.
3875
d2854d8d
CT
38762020-08-06 Caroline Tice <cmtice@google.com>
3877
fe4c3d43
SM
3878 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3879 (struct dwp_sections): Update field comments. Add loclists and
3880 rnglists fields.
3881 (struct virtual_v2_dwo_sections): Rename struct to
3882 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3883 size & offset fields for loclists and rnglists.
3884 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3885 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3886 skipping dummy type units.
3887 (create_dwp_hash_table): Update the large comment above the function to
3888 discuss Version 5 DWP files as well, with references. Update all the
3889 version checks in the function to check for version 5 as well. Add new
3890 section at the end to create dwp hash table for version 5.
3891 (create_dwp_v2_section): Rename function to
3892 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3893 Add V5 to error message text.
3894 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3895 into calls to create_dwp_v2_or_v5_section.
3896 (create_dwo_unit_in_dwp_v5): New function.
3897 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3898 check for version2; add else clause to handle version 5.
3899 (open_and_init_dwo_file): Add code to check dwarf version & only call
3900 create_debug_types_hash_table (with sections.types) if version is not 5;
3901 else call create_debug_type_hash_table, with sections.info.
3902 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3903 version 5.
3904 (dwarf2_locate_v5_dwp_sections): New function.
3905 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3906 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3907
159ed7d9
SM
39082020-08-06 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * regcache.h (class regcache): Remove friend
3911 registers_changed_ptid.
3912 <regcache_thread_ptid_changed>: Remove.
3913 <regcaches>: Remove.
3914 * regcache.c (regcache::regcaches): Rename to...
3915 (regcaches): ... this. Make static.
3916 (get_thread_arch_aspace_regcache): Update.
3917 (regcache::regcache_thread_ptid_changed): Rename to...
3918 (regcache_thread_ptid_changed): ... this. Update.
3919 (class regcache_access): Remove.
3920 (regcaches_test): Update.
3921 (_initialize_regcache): Update.
3922 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3923 <forward_list>.
3924
174981ae
SM
39252020-08-06 Simon Marchi <simon.marchi@efficios.com>
3926
3927 * regcache.h (class regcache) <current_regcache>: Rename to...
3928 <regcaches>: ... this. Move doc here.
3929 * regcache.c (regcache::current_regcache) Rename to...
3930 (regcache::regcaches): ... this. Move doc to header.
3931 (get_thread_arch_aspace_regcache): Update.
3932 (regcache::regcache_thread_ptid_changed): Update.
3933 (registers_changed_ptid): Update.
3934 (class regcache_access) <current_regcache_size>: Rename to...
3935 <regcaches_size>: ... this.
3936 (current_regcache_test): Rename to...
3937 (regcaches_test): ... this.
3938 (_initialize_regcache): Update.
3939
ed908db6
VC
39402020-08-06 Victor Collod <vcollod@nvidia.com>
3941
3942 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3943
b5582ab7
KB
39442020-08-05 Kevin Buettner <kevinb@redhat.com>
3945
3946 * corelow.c (core_target::build_file_mappings): Don't output
3947 null pathname in warning.
3948
ea946b86
SM
39492020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3952 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3953 gdb.dwarf2/dw2-single-line-discriminators.exp,
3954 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3955
57d02173
TT
39562020-08-05 Tom Tromey <tromey@adacore.com>
3957
3958 PR rust/26197:
3959 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3960 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3961 Fix off-by-one and type size errors in ordinary case.
3962
5555c86d
TV
39632020-08-05 Tom de Vries <tdevries@suse.de>
3964
3965 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3966 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3967
97916bfe
SM
39682020-08-04 Simon Marchi <simon.marchi@efficios.com>
3969
3970 * frame.h (frame_id_p): Return bool.
3971 (frame_id_artificial_p): Return bool.
3972 (frame_id_eq): Return bool.
3973 (has_stack_frames): Return bool.
3974 (get_selected_frame): Fix typo in comment.
3975 (get_frame_pc_if_available): Return bool.
3976 (get_frame_address_in_block_if_available): Return bool.
3977 (get_frame_func_if_available): Return bool.
3978 (read_frame_register_unsigned): Return bool.
3979 (get_frame_register_bytes): Return bool.
3980 (safe_frame_unwind_memory): Return bool.
3981 (deprecated_frame_register_read): Return bool.
3982 (frame_unwinder_is): Return bool.
3983 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3984 bool.
3985 <this_id::p>: Likewise.
3986 <prev_p>: Likewise.
3987 (frame_stash_add): Return bool.
3988 (get_frame_id): Use bool.
3989 (frame_id_build_special) Use bool.
3990 (frame_id_build_unavailable_stack): Use bool.
3991 (frame_id_build): Use bool.
3992 (frame_id_p): Return bool, use true/false instead of 1/0.
3993 (frame_id_artificial_p): Likewise.
3994 (frame_id_eq): Likewise.
3995 (frame_id_inner): Likewise.
3996 (get_frame_func_if_available): Likewise.
3997 (read_frame_register_unsigned): Likewise.
3998 (deprecated_frame_register_read): Likewise.
3999 (get_frame_register_bytes): Likewise.
4000 (has_stack_frames): Likewise.
4001 (inside_main_func): Likewise.
4002 (inside_entry_func): Likewise.
4003 (get_frame_pc_if_available): Likewise.
4004 (get_frame_address_in_block_if_available): Likewise.
4005 (frame_unwinder_is): Likewise.
4006 (safe_frame_unwind_memory): Likewise.
4007 (frame_unwind_arch): Likewise.
4008
fedfee88
SM
40092020-08-04 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4012 type to cached_copy_status.
4013 (fprintf_frame): Adjust.
4014 (get_frame_func_if_available): Adjust.
4015 (frame_cleanup_after_sniffer): Adjust.
4016
6cfa9b59
MW
40172020-08-04 Mark Wielaard <mark@klomp.org>
4018
4019 * MAINTAINERS (Write After Approval): Update email address.
4020
66d6346b
SM
40212020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
4024 dynamic_prop::const_val.
4025
8a6d5e35
SM
40262020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4027
4028 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4029 dynamic_prop::kind.
4030
51d6067d
SM
40312020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4032
4033 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
4034
b26e2ae7
JM
40352020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
4036
4037 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4038
39791af2
JM
40392020-08-04 Weimin Pan <weimin.pan@oracle.com>
4040 Jose E. Marchesi <jose.marchesi@oracle.com>
4041
4042 * configure.tgt: Add entry for bpf-*-*.
4043 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
4044 (ALLDEPFILES): Add bpf-tdep.c.
4045 * bpf-tdep.c: New file.
4046 * MAINTAINERS: Add bpf target and maintainer.
4047 * NEWS: Mention the support for the new target.
4048
521894aa
TV
40492020-08-04 Tom de Vries <tdevries@suse.de>
4050
4051 PR symtab/23270
4052 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
4053 Error.
4054
5d6356e9
JB
40552020-08-03 John Baldwin <jhb@FreeBSD.org>
4056
4057 * syscalls/freebsd.xml: Regenerate.
4058
0cf82b81
JB
40592020-08-03 John Baldwin <jhb@FreeBSD.org>
4060
4061 * syscalls/update-freebsd.sh: Fix usage and year range.
4062
8f34b746
TV
40632020-08-03 Tom de Vries <tdevries@suse.de>
4064
4065 PR symtab/26333
4066 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
4067 DW_LNE_lo_user/DW_LNE_hi_user range.
4068
5e500d33
SM
40692020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
4070
4071 PR ada/26318
4072 * ada-lang.c (ada_modulus): Return 0 if property is not of const
4073 kind.
4074
78319c15
TBA
40752020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4076
4077 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
4078
4c55e970
TBA
40792020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4080
4081 * breakpoint.c (set_breakpoint_condition): Update the condition
4082 expressions after checking that the input condition string parses
4083 successfully and does not contain junk at the end.
4084
1e620590
TBA
40852020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4086
4087 * breakpoint.c (set_breakpoint_condition): Update the
4088 condition string after parsing the new condition successfully.
4089
c8693053
RO
40902020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4091
4092 * proc-api.c (_STRUCTURED_PROC): Don't define.
4093 * proc-events.c: Likewise.
4094 * proc-flags.c: Likewise.
4095 * proc-why.c: Likewise.
4096 * procfs.c: Likewise.
4097
4098 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4099 * configure, config.in: Regenerate.
4100
5a99adb8
TV
41012020-07-30 Tom de Vries <tdevries@suse.de>
4102
4103 PR build/26320
4104 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4105 m_red/m_green/m_blue in a union.
4106
8ba83e91
TV
41072020-07-29 Tom de Vries <tdevries@suse.de>
4108
4109 PR tdep/26280
4110 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4111
f75a0693
AB
41122020-07-28 Tom Tromey <tromey@adacore.com>
4113
4114 PR symtab/26270:
4115 * symtab.h (find_pc_partial_function_sym): Declare.
4116 * cli/cli-cmds.c (disassemble_command): Use
4117 find_pc_partial_function_sym. Check asm_demangle.
4118 * blockframe.c (cache_pc_function_sym): New global.
4119 (cache_pc_function_name): Remove.
4120 (clear_pc_function_cache): Update.
4121 (find_pc_partial_function_sym): New function, from
4122 find_pc_partial_function.
4123 (find_pc_partial_function): Rewrite using
4124 find_pc_partial_function_sym.
4125
16f3242c
TT
41262020-07-28 Tom Tromey <tromey@adacore.com>
4127
4128 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4129 help. Add usage.
4130
4888741a
TT
41312020-07-28 Tom Tromey <tromey@adacore.com>
4132
4133 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4134 <DW_OP_GNU_variable_value>: Cast to address type.
4135
4d46f402
KR
41362020-07-28 Kamil Rytarowski <n54@gmx.com>
4137
4138 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4139 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4140 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4141 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4142 (nbsd_get_siginfo_type): New.
4143 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4144 (_initialize_nbsd_tdep): New.
4145
d70f978b
L
41462020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4147
4148 PR binutils/26301
4149 * configure: Regenerated.
4150
377170fa
L
41512020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4152
4153 PR binutils/26301
4154 * configure: Regenerated.
4155
43d5901d
AB
41562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * python/py-frame.c: Remove 'user-regs.h' include.
4159 (frapy_read_register): Rewrite to make use of
4160 gdbpy_parse_register_id.
4161 * python/py-registers.c (gdbpy_parse_register_id): New function,
4162 moved here from python/py-unwind.c. Updated the return type, and
4163 also accepts register descriptor objects.
4164 * python/py-unwind.c: Remove 'user-regs.h' include.
4165 (pyuw_parse_register_id): Moved to python/py-registers.c.
4166 (unwind_infopy_add_saved_register): Update to use
4167 gdbpy_parse_register_id.
4168 (pending_framepy_read_register): Likewise.
4169 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4170
14fa8fb3
AB
41712020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4172
4173 * python/py-registers.c: Add 'user-regs.h' include.
4174 (register_descriptor_iter_find): New function.
4175 (register_descriptor_iterator_object_methods): New static global
4176 methods array.
4177 (register_descriptor_iterator_object_type): Add pointer to methods
4178 array.
4179
ddce1758
JB
41802020-07-27 John Baldwin <jhb@FreeBSD.org>
4181
4182 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4183 for all architectures on FreeBSD 11.3 and later.
4184
a4089f52
TT
41852020-07-27 Tom Tromey <tromey@adacore.com>
4186
4187 * gcore.h (load_corefile): Don't declare.
4188
95420d30
TV
41892020-07-27 Tom de Vries <tdevries@suse.de>
4190
4191 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4192 * config.in: Regenerate.
4193 * configure: Regenerate.
4194
05a6b8c2
EZ
41952020-07-26 Eli Zaretskii <eliz@gnu.org>
4196
4197 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4198 ws2tcpip.h. When checking whether socklen_t type is defined, use
4199 ws2tcpip.h if it is available and sys/socket.h isn't.
4200 * configure: Regenerate.
4201 * config.in: Regenerate.
4202
e79eb02f
AB
42032020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 PR fortran/23051
4206 PR fortran/26139
4207 * valops.c (value_ind): Pass address to
4208 readjust_indirect_value_type.
4209 * value.c (readjust_indirect_value_type): Make parameter
4210 non-const, and add extra address parameter. Resolve original type
4211 before using it.
4212 * value.h (readjust_indirect_value_type): Update function
4213 signature and comment.
4214
876518dd
TV
42152020-07-25 Tom de Vries <tdevries@suse.de>
4216
4217 PR symtab/26243
4218 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4219 entries.
4220
f6720b1c
AM
42212020-07-24 Aaron Merey <amerey@redhat.com>
4222
4223 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4224 * configure: Rebuild.
4225
513487e1
KB
42262020-07-23 Kevin Buettner <kevinb@redhat.com>
4227
4228 PR corefiles/26294
4229 * corelow.c (_initialize_corelow): Add period to help text
4230 for "maintenance print core-file-backed-mappings".
4231
e7bc9db8
PA
42322020-07-23 Pedro Alves <pedro@palves.net>
4233
4234 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4235 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4236 meanwhile.
4237 * frame.c (frame_cache_generation, get_frame_cache_generation):
4238 New.
4239 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4240 (get_prev_frame_if_no_cycle): On exception, don't touch
4241 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4242 * frame.h (get_frame_cache_generation): Declare.
4243
90fcc466
TV
42442020-07-23 Tom de Vries <tdevries@suse.de>
4245
4246 PR tui/26282
4247 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4248 New default constructor.
4249
78344df7
AB
42502020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4253 exclude non-statement entries.
4254
b089853a
KB
42552020-07-22 Kevin Buettner <kevinb@redhat.com>
4256
4257 * NEWS (New commands): Mention new command
4258 "maintenance print core-file-backed-mappings".
4259
09c2f5d4
KB
42602020-07-22 Kevin Buettner <kevinb@redhat.com>
4261
4262 * corelow.c (gdbcmd.h): Include.
4263 (core_target::info_proc_mappings): New method.
4264 (get_current_core_target): New function.
4265 (maintenance_print_core_file_backed_mappings): New function.
4266 (_initialize_corelow): Add core-file-backed-mappings to
4267 "maint print" commands.
4268
9c5ec5c2 42692020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4270
9c5ec5c2
KB
4271 * linux-tdep.c (dump_note_entry_p): New function.
4272 (linux_dump_mapping_p_ftype): New typedef.
4273 (linux_find_memory_regions_full): Add new parameter,
4274 should_dump_mapping_p.
4275 (linux_find_memory_regions): Adjust call to
4276 linux_find_memory_regions_full.
4277 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4278 call to linux_find_memory_regions_full.
4279
db082f59
KB
42802020-07-22 Kevin Buettner <kevinb@redhat.com>
4281
4282 * corelow.c (solist.h, unordered_map): Include.
4283 (class core_target): Add field m_core_file_mappings and
4284 method build_file_mappings.
4285 (core_target::core_target): Call build_file_mappings.
4286 (core_target::~core_target): Free memory associated with
4287 m_core_file_mappings.
4288 (core_target::build_file_mappings): New method.
4289 (core_target::xfer_partial): Use m_core_file_mappings
4290 for memory transfers.
4291 * linux-tdep.c (linux_read_core_file_mappings): New
4292 function.
4293 (linux_core_info_proc_mappings): Rewrite to use
4294 linux_read_core_file_mappings.
4295 (linux_init_abi): Register linux_read_core_file_mappings.
4296
7e183d27
KB
42972020-07-22 Kevin Buettner <kevinb@redhat.com>
4298
4299 * arch-utils.c (default_read_core_file_mappings): New function.
4300 * arch-utils.c (default_read_core_file_mappings): Declare.
4301 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4302 * gdbarch.h, gdbarch.c: Regenerate.
4303
2735d421
KB
43042020-07-22 Kevin Buettner <kevinb@redhat.com>
4305
4306 PR corefiles/25631
4307 * corelow.c (core_target:xfer_partial): Revise
4308 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4309 case after first checking the stratum beneath the core
4310 target.
4311 (has_all_memory): Return true.
4312 * target.c (raw_memory_xfer_partial): Revise comment
4313 regarding use of has_all_memory.
4314
e56cb451
KB
43152020-07-22 Kevin Buettner <kevinb@redhat.com>
4316
4317 * exec.h (section_table_xfer_memory): Revise declaration,
4318 replacing section name parameter with an optional callback
4319 predicate.
4320 * exec.c (section_table_xfer_memory): Likewise.
4321 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4322 of section_table_xfer_memory.
4323
32fa152e
TT
43242020-07-22 Tom Tromey <tromey@adacore.com>
4325
4326 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4327 lookup_symbol_search_name.
4328
a67a1c41
AB
43292020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4332 redundant local variable.
4333 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4334 reference, not pointer, update code accordingly.
4335
a7b4ff4f
SM
43362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4337 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4338
4339 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4340 * jit.c (jit_breakpoint_re_set_internal): Use the
4341 `skip_jit_symbol_lookup` field.
4342
2340e834
SM
43432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4344 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4345
4346 * jit.c (jit_read_descriptor): Define the descriptor address once,
4347 use twice.
4348 (jit_breakpoint_deleted): Move the declaration of the loop variable
4349 `iter` into the loop header.
4350 (jit_breakpoint_re_set_internal): Move the declaration of the local
4351 variable `objf_data` to the first point of definition.
4352 (jit_event_handler): Move the declaration of local variables
4353 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4354 Rename `objf` to `jited`.
4355
c1072906
SM
43562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4357
4358 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4359 Remove.
4360 * jit.c (get_jiter_objfile_data): Update.
4361
c8474dc3
TBA
43622020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4363 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 * jit.c (struct jit_program_space_data): Remove.
4366 (jit_program_space_key): Remove.
4367 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4368 stuff.
4369 (get_jit_program_space_data): Remove.
4370 (jit_breakpoint_deleted): Iterate on all of the program space's
4371 objfiles.
4372 (jit_inferior_init): Likewise.
4373 (jit_breakpoint_re_set_internal): Likewise. Also change return
4374 type to void.
4375 (jit_breakpoint_re_set): Pass current_program_space to
4376 jit_breakpoint_re_set_internal.
4377
77208eb7
SM
43782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4379
4380 * jit.h (struct jiter_objfile_data) <cached_code_address,
4381 jit_breakpoint>: Move to here from ...
4382 * jit.c (jit_program_space_data): ... here.
4383 (jiter_objfile_data::~jiter_objfile_data): Update.
4384 (jit_breakpoint_deleted): Update.
4385 (jit_breakpoint_re_set_internal): Update.
4386
8c1c720f
SM
43872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4388
4389 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4390 checks.
4391 (jit_read_descriptor): Remove NULL check.
4392 (jit_event_handler): Add an assertion.
4393
0e74a041
SM
43942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4395
4396 * jit.h (struct jit_objfile_data): Split into...
4397 (struct jiter_objfile_data): ... this ...
4398 (struct jited_objfile_data): ... and this.
4399 * objfiles.h (struct objfile) <jit_data>: Remove.
4400 <jiter_data, jited_data>: New fields.
4401 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4402 (jiter_objfile_data::~jiter_objfile_data): ... this.
4403 (get_jit_objfile_data): Rename to ...
4404 (get_jiter_objfile_data): ... this.
4405 (add_objfile_entry): Update.
4406 (jit_read_descriptor): Use get_jiter_objfile_data.
4407 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4408 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4409 (jit_inferior_exit_hook): Use objfile's jited_data field.
4410
238b5c9f
SM
44112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * jit.h: Forward-declare `struct minimal_symbol`.
4414 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4415 constructor, destructor, and an objfile* field.
4416 * jit.c (jit_objfile_data): Remove.
4417 (struct jit_objfile_data): Migrate from here to jit.h.
4418 (jit_objfile_data::~jit_objfile_data): New destructor
4419 implementation with code moved from free_objfile_data.
4420 (free_objfile_data): Delete.
4421 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4422 (jit_find_objf_with_entry_addr): Ditto.
4423 (jit_inferior_exit_hook): Ditto.
4424 (_initialize_jit): Remove the call to
4425 register_objfile_data_with_cleanup.
4426 * objfiles.h (struct objfile) <jit_data>: New field.
4427
fe053b9e
TBA
44282020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4429
4430 * jit.h: Forward-declare `struct objfile`.
4431 (jit_event_handler): Add a second parameter, the JITer objfile.
4432 * jit.c (jit_read_descriptor): Change the signature to take the
4433 JITer objfile as an argument instead of the jit_program_space_data.
4434 (jit_inferior_init): Update the call to jit_read_descriptor.
4435 (jit_event_handler): Use the new JITer objfile argument when calling
4436 jit_read_descriptor.
4437 * breakpoint.c (handle_jit_event): Update the call to
4438 jit_event_handler to pass the JITer objfile.
4439
4cec0c66
JB
44402020-07-21 John Baldwin <jhb@FreeBSD.org>
4441
4442 * gdbarch.c: Regenerate.
4443 * gdbarch.h: Regenerate.
4444 * gdbarch.sh (handle_segmentation_fault): Remove method.
4445 * infrun.c (handle_segmentation_fault): Remove.
4446 (print_signal_received_reason): Remove call to
4447 handle_segmentation_fault.
4448
0e42f66a
JB
44492020-07-21 John Baldwin <jhb@FreeBSD.org>
4450
4451 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4452 Rename to sparc64_linux_report_signal_info and add siggnal
4453 argument.
4454 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4455 instead of sparc64_linux_handle_segmentation_fault.
4456
77bdfeb2
JB
44572020-07-21 John Baldwin <jhb@FreeBSD.org>
4458
4459 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4460 i386_linux_report_signal_info instead of
4461 i386_linux_handle_segmentation_fault.
4462 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4463 to i386_linux_report_signal_info and add siggnal argument.
4464 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4465 of i386_linux_handle_segmentation_fault.
4466 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4467 to i386_linux_report_signal_info and add siggnal argument.
4468
ad97bfc5
JB
44692020-07-21 John Baldwin <jhb@FreeBSD.org>
4470
4471 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4472 hook if present.
4473
272bb05c
JB
44742020-07-21 John Baldwin <jhb@FreeBSD.org>
4475
4476 * gdbarch.c: Regenerate.
4477 * gdbarch.h: Regenerate.
4478 * gdbarch.sh (report_signal_info): New method.
4479 * infrun.c (print_signal_received_reason): Invoke gdbarch
4480 report_signal_info hook if present.
4481
baf8791e
AB
44822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4483
4484 * python/py-registers.c : Add 'unordered_map' include.
4485 (gdbpy_new_reggroup): Renamed to...
4486 (gdbpy_get_reggroup): ...this. Update to only create register
4487 group descriptors when needed.
4488 (gdbpy_reggroup_iter_next): Update.
4489
f7306dac
AB
44902020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * python/py-registers.c (gdbpy_register_object_data): New static
4493 global.
4494 (gdbpy_register_object_data_init): New function.
4495 (gdbpy_new_register_descriptor): Renamed to...
4496 (gdbpy_get_register_descriptor): ...this, and update to reuse
4497 existing register descriptors where possible.
4498 (gdbpy_register_descriptor_iter_next): Update.
4499 (gdbpy_initialize_registers): Register new gdbarch data.
4500
05c309a8
SM
45012020-07-21 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * linux-nat.c (stopped_pids): Make static.
4504
d1fd641e
SM
45052020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4506
4507 PR ada/26235
4508 * gdbtypes.c (ada_discrete_type_low_bound,
4509 ada_discrete_type_high_bound): Handle undefined bounds.
4510
1de14d77
KR
45112020-07-21 Kamil Rytarowski <n54@gmx.com>
4512
4513 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4514 declaration.
4515 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4516 function.
4517
ed810cc7
JB
45182020-07-20 John Baldwin <jhb@FreeBSD.org>
4519
4520 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4521 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4522 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4523 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4524 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4525 method.
4526
ae5369e7
LC
45272020-07-20 Ludovic Courtès <ludo@gnu.org>
4528
4529 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4530 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4531 which are deprecated in Guile 3.0.
4532 * configure.ac (try_guile_versions): Add "guile-3.0".
4533 * configure (try_guile_versions): Regenerate.
4534 * NEWS: Update entry.
4535
68cf161c
LC
45362020-07-20 Ludovic Courtès <ludo@gnu.org>
4537 Doug Evans <dje@google.com>
4538
4539 PR gdb/21104
4540 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4541 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4542 USING_GUILE_BEFORE_2_2.
4543 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4544 Change type to 'scm_t_port_type *'.
4545 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4546 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4547 parameter and honor it. Update callers.
4548 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4549 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4550 functions.
4551 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4552 USING_GUILE_BEFORE_2_2.
4553 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4554 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4555 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4556 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4557 and 'SCM_PORT_TYPE'.
4558 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4559 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4560 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4561 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4562 [!USING_GUILE_BEFORE_2_2]: New functions.
4563 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4564 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4565 'gdbscm_memory_port_read'.
4566 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4567 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4568 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4569 function.
4570 (ioscm_init_memory_port): Remove.
4571 (ioscm_init_memory_port_stream): New function
4572 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4573 function.
4574 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4575 Return scm_from_uint (0).
4576 (gdbscm_set_memory_port_read_buffer_size_x)
4577 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4578 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4579 Return scm_from_uint (0).
4580 (gdbscm_set_memory_port_write_buffer_size_x)
4581 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4582 * configure.ac (try_guile_versions): Add "guile-2.2".
4583 * configure: Regenerate.
4584 * NEWS: Add entry.
4585
aee91db3
TT
45862020-07-18 Tom Tromey <tom@tromey.com>
4587
4588 * linux-nat.c (linux_multi_process): Remove.
4589 (linux_nat_target::supports_multi_process): Return true.
4590
0e267416
AB
45912020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4594 (riscv_lookup_target_description): Return pointer out of
4595 unique_ptr.
4596 * target-descriptions.c (allocate_target_description): Add
4597 comment.
4598 (target_desc_deleter::operator()): Likewise.
4599 * target-descriptions.h (struct target_desc_deleter): Moved to
4600 gdbsupport/tdesc.h.
4601 (target_desc_up): Likewise.
4602
f80c8ec4
TT
46032020-07-17 Tom Tromey <tromey@adacore.com>
4604
4605 * linux-nat.c (linux_nat_target::supports_non_stop)
4606 (linux_nat_target::always_non_stop_p): Use "true".
4607 (linux_nat_target::supports_disable_randomization): Use "true" and
4608 "false".
4609
d0ce17d8
CT
46102020-07-16 Caroline Tice <cmtice@google.com>
4611
4612 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4613 (RNGLIST_HEADER_SIZE64): New constant definition.
4614 (struct dwop_section_names): Add rnglists_dwo.
4615 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4616 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4617 (struct dwo_sections): Add rnglists field.
4618 (read_attribut_reprocess): Add tag parameter.
4619 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4620 (cu_debug_rnglists_section): New function (decl & definition).
4621 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4622 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4623 die whose range is being checked; get rnglist section from
4624 cu_debug_rnglists_section, to get from either objfile or dwo file as
4625 appropriate. Add cases for DW_RLE_base_addressx,
4626 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4627 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4628 test inside if-condition and updating complaint message.
4629 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4630 dwarf2_rnglists_process.
4631 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4632 dwarf2_ranges_process.
4633 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4634 need_ranges_base and update comment appropriately. Also pass die tag
4635 to dwarf2_ranges_read.
4636 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4637 need_ranges_base and update comment appropriately. Also pass die tag
4638 to dwarf2_ranges_process.
4639 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4640 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4641 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4642 need_ranges_base and update comment appropriately. Also pass die tag
4643 to read_attribute_reprocess and dwarf2_ranges_read.
4644 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4645 and update function comment appropriately.
4646 (read_loclist_index): Call read_loclists_rnglists_header instead of
4647 read_loclist_header.
4648 (read_rnglist_index): New function.
4649 (read_attribute_reprocess): Add tag parameter. Add code for
4650 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4651 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4652
3dcc261c
AB
46532020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4654
4655 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4656 being resolved.
4657
ccb9eba6
AB
46582020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * arch-utils.c (show_architecture): Update formatting of messages.
4661
cf88be68
SM
46622020-07-12 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (struct type) <bounds>: Handle array and string
4665 types.
4666 * ada-lang.c (assign_aggregate): Use type::bounds on
4667 array/string type.
4668 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4669 * c-varobj.c (c_number_of_children): Likewise.
4670 (c_describe_child): Likewise.
4671 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4672 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4673 (f_type_print_base): Likewise.
4674 * f-valprint.c (f77_array_offset_tbl): Likewise.
4675 (f77_get_upperbound): Likewise.
4676 (f77_print_array_1): Likewise.
4677 * guile/scm-type.c (gdbscm_type_range): Likewise.
4678 * m2-typeprint.c (m2_array): Likewise.
4679 (m2_is_long_set_of_type): Likewise.
4680 * m2-valprint.c (get_long_set_bounds): Likewise.
4681 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4682 * python/py-type.c (typy_range): Likewise.
4683 * rust-lang.c (rust_internal_print_type): Likewise.
4684 * type-stack.c (type_stack::follow_types): Likewise.
4685 * valarith.c (value_subscripted_rvalue): Likewise.
4686 * valops.c (value_cast): Likewise.
4687
509971ae
SM
46882020-07-12 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4691 callers to use the equivalent accessor methods.
4692
107406b7
SM
46932020-07-12 Simon Marchi <simon.marchi@efficios.com>
4694
4695 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4696 (struct type) <bit_stride>: New method.
4697 (TYPE_BIT_STRIDE): Remove.
4698 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4699
bb789949
SM
47002020-07-12 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4703 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4704 callers to use the equivalent accessor methods instead.
4705
39498edb
SM
47062020-07-12 Simon Marchi <simon.marchi@efficios.com>
4707
4708 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4709 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4710 callers to use the equivalent accessor methods instead.
4711
3b606f38
SM
47122020-07-12 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4715 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4716 to use dynamic_prop::kind.
4717
064d9cb9
SM
47182020-07-12 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4721 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4722 to get the bound property's kind and check against
4723 PROP_UNDEFINED.
4724
5537ddd0
SM
47252020-07-12 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4728 all callers to use type::range_bounds followed by
4729 dynamic_prop::{low,high}.
4730
8c2e4e06
SM
47312020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4732
4733 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4734 const_val, set_const_val, baton, set_locexpr, set_loclist,
4735 set_addr_offset, variant_parts, set_variant_parts,
4736 original_type, set_original_type>: New methods.
4737 <kind>: Rename to...
4738 <m_kind>: ... this. Update all users to use the new methods
4739 instead.
4740 <data>: Rename to...
4741 <m_data>: ... this. Update all users to use the new methods
4742 instead.
4743
7c6f2712
SM
47442020-07-12 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * gdbtypes.c (get_discrete_bounds): Return failure if
4747 the range type's bounds are not both defined and constant
4748 values.
4749 (get_array_bounds): Update comment. Remove undefined bound check.
4750
599088e3
SM
47512020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4754 the type::bounds method directly.
4755
c4dfcb36
SM
47562020-07-12 Simon Marchi <simon.marchi@efficios.com>
4757
4758 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4759 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4760 are used to set the range type's bounds to use set_bounds.
4761
0a278aa7
PW
47622020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4763
4764 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4765
cce20f10
PA
47662020-07-10 Pedro Alves <pedro@palves.net>
4767
4768 * gdbthread.h (inferior_ref): Define.
4769 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4770 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4771 * thread.c
4772 (scoped_restore_current_thread::restore):
4773 Adjust to gdb::ref_ptr.
4774 (scoped_restore_current_thread::~scoped_restore_current_thread):
4775 Remove manual decref handling.
4776 (scoped_restore_current_thread::scoped_restore_current_thread):
4777 Adjust to use
4778 inferior_ref::new_reference/thread_info_ref::new_reference.
4779 Incref the thread before calling get_frame_id instead of after.
4780 Let TARGET_CLOSE_ERROR propagate.
4781
6d7aa592
PA
47822020-07-10 Pedro Alves <pedro@palves.net>
4783
4784 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4785 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4786 NOT_AVAILABLE_ERROR.
4787 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4788 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4789
b3e3a4c1
SM
47902020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4791 Pedro Alves <pedro@palves.net>
4792
4793 PR gdb/26199
4794 * infrun.c (threads_are_resumed_pending_p): Delete.
4795 (do_target_wait): Remove threads_are_executing and
4796 threads_are_resumed_pending_p checks from the inferior_matches
4797 lambda. Update comments.
4798
d6cc5d98
PA
47992020-07-10 Pedro Alves <pedro@palves.net>
4800
4801 PR gdb/26199
4802 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4803 executing threads.
4804
7d3badc6
PA
48052020-07-10 Pedro Alves <pedro@palves.net>
4806
4807 PR gdb/26199
4808 * infrun.c (handle_no_resumed): Handle multiple targets.
4809
42bd97a6
PA
48102020-07-10 Pedro Alves <pedro@palves.net>
4811
4812 PR gdb/26199
4813 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4814 target_is_async_p.
4815
43667cc6
PA
48162020-07-10 Pedro Alves <pedro@palves.net>
4817
4818 PR gdb/26199
4819 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4820 threads, not all threads.
4821
96118d11
PA
48222020-07-10 Pedro Alves <pedro@palves.net>
4823
4824 PR gdb/26199
4825 * remote.c (remote_target::open_1): Pass remote target pointer as
4826 data to create_async_event_handler.
4827 (remote_async_inferior_event_handler): Mark async event handler
4828 before returning if the remote target still has either pending
4829 events or unacknowledged notifications.
4830
54904d81
JB
48312020-07-10 John Baldwin <jhb@FreeBSD.org>
4832
4833 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4834 declaration.
4835 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4836 function.
4837
f37e5866
JB
48382020-07-09 John Baldwin <jhb@FreeBSD.org>
4839
4840 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4841 inferior_ptid.
4842
fc238d4a
JB
48432020-07-09 John Baldwin <jhb@FreeBSD.org>
4844
4845 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4846 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4847 AT_FREEBSD_PS_STRINGS.
4848
6e2469ff
HD
48492020-07-08 Hannes Domani <ssbssa@yahoo.de>
4850
4851 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4852 of debugfile path on Windows.
4853
d1076c41
JB
48542020-07-08 John Baldwin <jhb@FreeBSD.org>
4855
4856 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4857 argument to 'data'.
4858
15f3b077
TT
48592020-07-08 Tom Tromey <tromey@adacore.com>
4860
4861 * ada-lang.c (ada_exception_message_1): Use read_memory.
4862
9fc501fd
AB
48632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4864
4865 PR python/22748
4866 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4867 special handling for inline frames.
4868 * findvar.c (value_of_register_lazy): Skip inline frames when
4869 creating lazy register values.
4870 * frame.c (frame_id_computed_p): Delete definition.
4871 * frame.h (frame_id_computed_p): Delete declaration.
4872
64cb3757
AB
48732020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * NEWS: Mention additions to Python API.
4876 * python/py-arch.c (archpy_register_groups): New function.
4877 (arch_object_methods): Add 'register_groups' method.
4878 * python/py-registers.c (reggroup_iterator_object): New struct.
4879 (reggroup_object): New struct.
4880 (gdbpy_new_reggroup): New function.
4881 (gdbpy_reggroup_to_string): New function.
4882 (gdbpy_reggroup_name): New function.
4883 (gdbpy_reggroup_iter): New function.
4884 (gdbpy_reggroup_iter_next): New function.
4885 (gdbpy_new_reggroup_iterator): New function
4886 (gdbpy_initialize_registers): Register new types.
4887 (reggroup_iterator_object_type): Define new Python type.
4888 (gdbpy_reggroup_getset): New static global.
4889 (reggroup_object_type): Define new Python type.
4890 * python/python-internal.h
4891
0f767f94
AB
48922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4895 * python/py-arch.c (archpy_registers): New function.
4896 (arch_object_methods): Add 'registers' method.
4897 * python/py-registers.c: New file.
4898 * python/python-internal.h
4899 (gdbpy_new_register_descriptor_iterator): Declare.
4900 (gdbpy_initialize_registers): Declare.
4901 * python/python.c (do_start_initialization): Call
4902 gdbpy_initialize_registers.
4903 * NEWS: Mention additions to the Python API.
4904
87dbc774
AB
49052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4906
4907 * NEWS: Mention new Python API method.
4908 * python/py-unwind.c (pending_framepy_architecture): New function.
4909 (pending_frame_object_methods): Add architecture method.
4910
3bc98c0c
AB
49112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * gdbarch.c: Regenerate.
4914 * gdbarch.h: Regenerate.
4915 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4916 (gdbarch_data): Use internal_error for the case where
4917 deprecated_set_gdbarch_data was originally needed.
4918 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4919 and use passed in obstack.
4920 (libunwind_frame_set_descr): Should no longer get back NULL from
4921 gdbarch_data.
4922 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4923 type.
4924 * user-regs.c (user_regs_init): Update parameters, and use passed
4925 in obstack.
4926 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4927 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4928
d8cc8af6
TV
49292020-07-06 Tom de Vries <tdevries@suse.de>
4930
4931 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4932 End-Of-Sequence in lte_is_less_than.
4933 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4934 "gdb: Don't reorder line table entries too much when sorting".
4935
947f7597
TV
49362020-07-06 Tom de Vries <tdevries@suse.de>
4937
4938 PR tui/26205
4939 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4940
1e7c1b22
TV
49412020-07-05 Tom de Vries <tdevries@suse.de>
4942
4943 PR build/26187
4944 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4945 std::uncaught_exceptions instead of deprecated
4946 std::uncaught_exception.
4947
a36158ec
SM
49482020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4949
4950 * macroexp.h (macro_stringify): Return
4951 gdb::unique_xmalloc_ptr<char>.
4952 * macroexp.c (macro_stringify): Likewise.
4953 * macrotab.c (fixup_definition): Update.
4954
14d960c8
SM
49552020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4956
4957 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4958 (lex_one_token): Update.
4959 * macroexp.c (struct macro_buffer) <release>: Return
4960 gdb::unique_xmalloc_ptr<char>.
4961 (macro_stringify): Update.
4962 (macro_expand): Update.
4963 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4964 * macroexp.h (macro_expand_next): Likewise.
4965
211d5b1c
SM
49662020-07-02 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * macroexp.h (macro_lookup_ftype): Remove.
4969 (macro_expand, macro_expand_once, macro_expand_next): Remove
4970 lookup function parameters, add scope parameter.
4971 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4972 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4973 * macroscope.h (standard_macro_lookup): Change parameter type
4974 to macro_scope.
4975 * macroscope.c (standard_macro_lookup): Likewise.
4976 * c-exp.y (lex_one_token): Update.
4977 * macrocmd.c (macro_expand_command): Likewise.
4978 (macro_expand_once_command): Likewise.
4979
b1a35af2
SM
49802020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4981
4982 * inf-loop.c (inferior_event_handler): Remove client_data param.
4983 * inf-loop.h (inferior_event_handler): Likewise.
4984 * infcmd.c (step_1): Adjust.
4985 * infrun.c (proceed): Adjust.
4986 (fetch_inferior_event): Remove client_data param.
4987 (infrun_async_inferior_event_handler): Adjust.
4988 * infrun.h (fetch_inferior_event): Remove `void *` param.
4989 * linux-nat.c (handle_target_event): Adjust.
4990 * record-btrace.c (record_btrace_handle_async_inferior_event):
4991 Adjust.
4992 * record-full.c (record_full_async_inferior_event_handler):
4993 Adjust.
4994 * remote.c (remote_async_inferior_event_handler): Adjust.
4995
1cdf9e33
TT
49962020-07-01 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4999 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
5000
32c1e210
TT
50012020-07-01 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
5004 tui_gen_win_info.
5005 (tui_win_info::make_window): Merge with
5006 tui_gen_win_info::make_window.
5007 (tui_win_info::make_visible): Move from tui_gen_win_info.
5008 * tui/tui-win.c (tui_win_info::max_width): Move from
5009 tui_gen_win_info.
5010 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
5011 type.
5012 <window_factory>: Likewise.
5013 * tui/tui-layout.c (tui_win_info::resize): Move from
5014 tui_gen_win_info.
5015 (make_standard_window): Change return type.
5016 (get_locator_window, tui_get_window_by_name): Likewise.
5017 (tui_layout_window::apply): Remove a cast.
5018 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
5019 (struct tui_win_info): Merge with tui_gen_win_info.
5020 (struct tui_gen_win_info): Remove.
5021
a30cb6da
TT
50222020-07-01 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-stack.h (struct tui_locator_window): Derive from
5025 tui_win_info.
5026 <do_scroll_horizontal, do_scroll_vertical>: New methods.
5027 <can_box>: New method.
5028
1eb2161f
TT
50292020-07-01 Tom Tromey <tom@tromey.com>
5030
5031 * tui/tui-stack.h (struct tui_locator_window): Remove body.
5032
7134f2eb
TT
50332020-07-01 Tom Tromey <tom@tromey.com>
5034
5035 * tui/tui-regs.c (tui_data_window::display_registers_from)
5036 (tui_data_window::display_registers_from)
5037 (tui_data_window::first_data_item_displayed)
5038 (tui_data_window::delete_data_content_windows): Update.
5039 (tui_data_window::refresh_window, tui_data_window::no_refresh):
5040 Remove.
5041 (tui_data_window::check_register_values): Update.
5042 (tui_data_item_window::rerender): Add parameters. Update.
5043 (tui_data_item_window::refresh_window): Remove.
5044 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
5045 virtual.
5046 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
5047 tui_gen_win_info.
5048 <refresh_window, max_height, min_height>: Remove.
5049 <rerender>: Add parameters.
5050 <x, y, visible>: New members.
5051 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
5052 <m_item_width>: New member.
5053
22b7b041
TT
50542020-07-01 Tom Tromey <tom@tromey.com>
5055
5056 * tui/tui-regs.c (tui_data_window::show_register_group)
5057 (tui_data_window::check_register_values): Update.
5058 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
5059 from item_no.
5060
c9753adb
TT
50612020-07-01 Tom Tromey <tom@tromey.com>
5062
5063 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
5064 useless "if".
5065
9ab26b4a
TT
50662020-07-01 Tom Tromey <tom@tromey.com>
5067
5068 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5069 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
5070
e555083f
TT
50712020-07-01 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
5074 * tui/tui-winsource.h (enum tui_line_or_address_kind)
5075 (struct tui_line_or_address): Move from tui-data.h.
5076 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
5077 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
5078 (tui_cmd_window, tui_source_window_base, tui_source_window)
5079 (tui_disasm_window): Don't declare.
5080 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5081 to tui-winsource.h.
5082 (SINGLE_KEY): Move to tui-stack.c.
5083
7a02bab7
TT
50842020-07-01 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5087 std::string.
5088 * tui/tui-regs.c (class tab_expansion_file): New.
5089 (tab_expansion_file::write): New method.
5090 (tui_register_format): Change return type. Use
5091 tab_expansion_file.
5092 (tui_get_register, tui_data_window::display_registers_from)
5093 (tui_data_item_window::rerender): Update.
5094 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5095 * tui/tui-io.c (tui_expand_tabs): Remove.
5096
ea68593b
TT
50972020-07-01 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5100
a8caed5d
FS
51012020-07-01 Fangrui Song <maskray@google.com>
5102
5103 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5104
9cdf9820
AKS
51052020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5106
5107 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5108 forms for DW_AT_associated and DW_AT_allocated attributes,
5109 which is already checked in function attr_to_dynamic_prop.
5110
a1520ad8
TT
51112020-06-30 Tom Tromey <tromey@adacore.com>
5112
5113 * dwarf2/read.c (quirk_rust_enum): Correctly call
5114 alloc_rust_variant for default-less enum.
5115
5ac58899
TT
51162020-06-30 Tom Tromey <tromey@adacore.com>
5117
5118 PR build/26183:
5119 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5120 gdb::to_string.
5121
19b187a9
SM
51222020-06-29 Simon Marchi <simon.marchi@efficios.com>
5123
5124 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5125 * gdbarch.h: Re-generate.
5126
cd4c4c07
TT
51272020-06-28 Tom Tromey <tom@tromey.com>
5128
5129 * command.h (cmd_types): Remove.
5130 (cmd_type): Don't declare.
5131 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5132 typedef.
5133 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5134 * cli/cli-decode.c (cmd_type): Remove.
5135
05779d57
PA
51362020-06-27 Pedro Alves <palves@redhat.com>
5137
5138 * fork-child.c (prefork_hook): Adjust.
5139 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5140 Delete.
5141 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5142 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5143 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5144 Remove declarations.
5145 (struct inferior) <set_tty, tty>: New methods.
5146 (struct inferior) <terminal>: Rename to ...
5147 (struct inferior) <m_terminal>: ... this and make private.
5148 * main.c (captured_main_1): Adjust.
5149 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5150 (mi_cmd_inferior_tty_show): Adjust.
5151 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5152 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5153
1776e3e5
NA
51542020-06-26 Nick Alcock <nick.alcock@oracle.com>
5155
5156 * configure.ac: Add --enable-libctf: handle --disable-static
5157 properly.
5158 * acinclude.m4: sinclude ../config/enable.m4.
5159 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5160 (LIBCTF): Substitute in.
5161 (CTF_DEPS): New, likewise.
5162 (CLIBS): libctf needs symbols from libbfd: move earlier.
5163 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5164 flags.
5165 * ctfread.c: Surround in ENABLE_LIBCTF.
5166 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5167 * configure: Regenerate.
5168 * config.in: Likewise.
5169
58373b80
SM
51702020-06-25 Simon Marchi <simon.marchi@efficios.com>
5171
5172 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5173
277474ee
SM
51742020-06-25 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * inferior.h (struct inferior) <terminal>: Change type to
5177 gdb::unique_xmalloc_ptr<char>.
5178 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5179 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5180 field, adjust to unique pointer.
5181 (get_inferior_io_terminal): Adjust to unique pointer.
5182
6d74da72
AB
51832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5184
5185 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5186 registers, not just the known core set of registers.
5187
2e52d038
AB
51882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5189
5190 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5191 fflags, frm, and fcsr registers.
5192 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5193 restore groups.
5194 (riscv_tdesc_unknown_reg): New function.
5195 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5196 tdesc_use_registers.
5197 * riscv-tdep.h (struct gdbarch_tdep): Add
5198 unknown_csrs_first_regnum, unknown_csrs_count,
5199 duplicate_fflags_regnum, duplicate_frm_regnum, and
5200 duplicate_fcsr_regnum fields.
5201
be64fd07
AB
52022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5203
5204 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5205 callback, use the callback (when not null) to help number unknown
5206 registers.
5207 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5208 (tdesc_use_registers): Add extra parameter to declaration.
5209
3b9fce96
AB
52102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5213 in the file.
5214 (class riscv_pending_register_alias): Likewise.
5215 (riscv_register_feature::register_info): Change 'required_p' field
5216 to 'required', and change its type. Add 'check' member function.
5217 (riscv_register_feature::register_info::check): Define new member
5218 function.
5219 (riscv_xreg_feature): Change initialisation of 'required' field.
5220 (riscv_freg_feature): Likewise.
5221 (riscv_virtual_feature): Likewise.
5222 (riscv_csr_feature): Likewise.
5223 (riscv_check_tdesc_feature): Take extra parameter, the csr
5224 tdesc_feature, rewrite the function to use the new
5225 riscv_register_feature::register_info::check function.
5226 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5227
865bad26
AB
52282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * features/Makefile: Remove all references to the deleted files
5231 below.
5232 * features/riscv/32bit-csr.c: Deleted.
5233 * features/riscv/32bit-csr.xml: Deleted.
5234 * features/riscv/64bit-csr.c: Deleted.
5235 * features/riscv/64bit-csr.xml: Deleted.
5236 * features/riscv/rebuild-csr-xml.sh: Deleted.
5237
ed69cbc8
AB
52382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5239
5240 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5241 whitespace error for declaration of names member variable.
5242 (struct riscv_register_feature): Add new prefer_first_name member
5243 variable, and fix whitespace error in declaration of registers.
5244 (riscv_xreg_feature): Initialize prefer_first_name field.
5245 (riscv_freg_feature): Likewise.
5246 (riscv_virtual_feature): Likewise.
5247 (riscv_csr_feature): Likewise.
5248 (riscv_register_name): Expand on comments. Remove register name
5249 modifications for CSR and virtual registers.
5250
4445e8f5
AB
52512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5252
5253 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5254 errors.
5255
767a879e
AB
52562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5259 riscv-opc.h.
5260 (class riscv_pending_register_alias): New class.
5261 (riscv_check_tdesc_feature): Take vector of pending aliases and
5262 populate it as appropriate.
5263 (riscv_setup_register_aliases): Delete.
5264 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5265 to riscv_check_tdesc_feature in all cases. Use the vector to
5266 create the register aliases.
5267
bb6e55f3
RO
52682020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5269
5270 * sol2-tdep.c (sol2_static_transform_name): Remove.
5271 (sol2_init_abi): Don't register it.
5272 * gdbarch.sh (static_transform_name): Remove.
5273 * gdbarch.c, gdbarch.h: Regenerate.
5274
5275 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5276 gdbarch_static_transform_name.
5277 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5278 * stabsread.c (define_symbol) <'X'>: Remove.
5279 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5280 handling.
5281 <'V'>: Likewise.
5282 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5283 <'S'>: Remove call to gdbarch_static_transform_name.
5284
c6d36836
RO
52852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5286
5287 * procfs.c (procfs_pre_trace): New function.
5288 (procfs_target::create_inferior): Pass it to fork_inferior.
5289
a7e6196b
RO
52902020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5291
5292 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5293 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5294 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5295 sol2-tdep.o, sparc-sol2-tdep.o.
5296 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5297 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5298 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5299 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5300
d412e696
RO
53012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5302
5303 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5304 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5305 Call sol2_init_abi.
5306 Remove calls to set_gdbarch_skip_solib_resolver,
5307 set_gdbarch_core_pid_to_str.
5308 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5309 (i386_sol2_static_transform_name): Remove.
5310 (i386_sol2_init_abi): Call sol2_init_abi.
5311 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5312 set_gdbarch_static_transform_name,
5313 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5314 Use sol2_sigtramp_p.
5315 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5316 (sol2_sigtramp_p): New function.
5317 (sol2_static_transform_name): New function.
5318 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5319 (sol2_init_abi): New function.
5320 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5321 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5322 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5323 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5324 (sparc_sol2_static_transform_name): Remove.
5325 (sparc32_sol2_init_abi): Call sol2_init_abi.
5326 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5327 set_gdbarch_static_transform_name,
5328 set_gdbarch_skip_solib_resolver,
5329 set_gdbarch_core_pid_to_str.
5330 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5331 (sparc_sol2_static_transform_name): Remove
5332 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5333 call sol2_sigtramp_p.
5334 (sparc64_sol2_init_abi): Call sol2_init_abi.
5335 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5336 set_gdbarch_static_transform_name,
5337 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5338
a8654e7d
PW
53392020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5340
5341 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5342 * exec.c (validate_exec_file): If from_tty, set both
5343 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5344 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5345 and from_tty, unconditionally ask a confirmation.
5346
caa7fd04
AB
53472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5348
5349 * target-descriptions.c (tdesc_architecture_name): Protect against
5350 NULL pointer dereference.
5351 (maint_print_xml_tdesc_cmd): New function.
5352 (_initialize_target_descriptions): Register new 'maint print
5353 xml-tdesc' command and give it the filename completer.
5354 * NEWS: Mention new 'maint print xml-tdesc' command.
5355
fbf42f4e
AB
53562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * target-descriptions.c (class tdesc_compatible_info): New class.
5359 (struct target_desc): Change type of compatible vector.
5360 (tdesc_compatible_p): Update for change in type of
5361 target_desc::compatible.
5362 (tdesc_compatible_info_list): New function.
5363 (tdesc_compatible_info_arch_name): New function.
5364 (tdesc_add_compatible): Update for change in type of
5365 target_desc::compatible.
5366 (print_c_tdesc::visit_pre): Likewise.
5367
20821f4e
AB
53682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5369
5370 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5371 whitespace to underscore.
5372 (maint_print_c_tdesc_cmd): Use fake filename for target
5373 descriptions that came from the target.
5374 (_initialize_target_descriptions): Add filename command completion
5375 for 'maint print c-tdesc'.
5376
1fb5ee62
SM
53772020-06-23 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5380 lines.
5381
fc3ecb3e
SM
53822020-06-23 Simon Marchi <simon.marchi@efficios.com>
5383
5384 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5385 lines.
5386 (dwarf2_find_location_expression): Likewise.
5387 (call_site_parameter_matches): Likewise.
5388 (dwarf2_compile_expr_to_ax): Likewise.
5389 (disassemble_dwarf_expression): Likewise.
5390 (loclist_describe_location): Likewise.
5391
236ef034
PA
53922020-06-23 Pedro Alves <palves@redhat.com>
5393
5394 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5395 progspace-and-thread.h. Include scoped-mock-context.h instead.
5396 (register_to_value_test): Use scoped_mock_context.
5397 * regcache.c: Include "scoped-mock-context.h".
5398 (cooked_read_test): Don't error out if a target is already pushed.
5399 Use scoped_mock_context. Adjust.
5400 * scoped-mock-context.h: New file.
5401
39e7ecca
AB
54022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5405 initializer.
5406 (ada_language::is_string_type_p): New member function.
5407 * c-lang.c (c_language_data): Delete la_is_string_type_p
5408 initializer.
5409 (cplus_language_data): Likewise.
5410 (asm_language_data): Likewise.
5411 (minimal_language_data): Likewise.
5412 * d-lang.c (d_language_data): Likewise.
5413 * f-lang.c (f_is_string_type_p): Delete function, implementation
5414 moved to f_language::is_string_type_p.
5415 (f_language_data): Delete la_is_string_type_p initializer.
5416 (f_language::is_string_type_p): New member function,
5417 implementation from f_is_string_type_p.
5418 * go-lang.c (go_is_string_type_p): Delete function, implementation
5419 moved to go_language::is_string_type_p.
5420 (go_language_data): Delete la_is_string_type_p initializer.
5421 (go_language::is_string_type_p): New member function,
5422 implementation from go_is_string_type_p.
5423 * language.c (language_defn::is_string_type_p): Define new member
5424 function.
5425 (default_is_string_type_p): Make static, add comment copied from
5426 header file.
5427 (unknown_language_data): Delete la_is_string_type_p initializer.
5428 (unknown_language::is_string_type_p): New member function.
5429 (auto_language_data): Delete la_is_string_type_p initializer.
5430 (auto_language::is_string_type_p): New member function.
5431 * language.h (language_data): Delete la_is_string_type_p field.
5432 (language_defn::is_string_type_p): Declare new function.
5433 (default_is_string_type_p): Delete desclaration, move comment to
5434 definition.
5435 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5436 moved to m2_language::is_string_type_p.
5437 (m2_language_data): Delete la_is_string_type_p initializer.
5438 (m2_language::is_string_type_p): New member function,
5439 implementation from m2_is_string_type_p.
5440 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5441 initializer.
5442 * opencl-lang.c (opencl_language_data): Likewise.
5443 * p-lang.c (pascal_is_string_type_p): Delete function,
5444 implementation moved to pascal_language::is_string_type_p.
5445 (pascal_language_data): Delete la_is_string_type_p initializer.
5446 (pascal_language::is_string_type_p): New member function,
5447 implementation from pascal_is_string_type_p.
5448 * rust-lang.c (rust_is_string_type_p): Delete function,
5449 implementation moved to rust_language::is_string_type_p.
5450 (rust_language_data): Delete la_is_string_type_p initializer.
5451 (rust_language::is_string_type_p): New member function,
5452 implementation from rust_is_string_type_p.
5453 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5454 is_string_type_p.
5455
4ffc13fb
AB
54562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * ada-lang.c (ada_language_data): Delete la_print_typedef
5459 initializer.
5460 (ada_language::print_typedef): New member function.
5461 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5462 (cplus_language_data): Likewise.
5463 (asm_language_data): Likewise.
5464 (minimal_language_data): Likewise.
5465 * d-lang.c (d_language_data): Likewise.
5466 * f-lang.c (f_language_data): Likewise.
5467 (f_language::print_typedef): New member function.
5468 * go-lang.c (go_language_data): Delete la_print_typedef
5469 initializer.
5470 * language.c (language_defn::print_typedef): Define member
5471 function.
5472 (unknown_language_data): Delete la_print_typedef initializer.
5473 (unknown_language::print_typedef): New member function.
5474 (auto_language_data): Delete la_print_typedef initializer.
5475 (auto_language::print_typedef): New member function.
5476 * language.h (language_data): Delete la_print_typedef field.
5477 (language_defn::print_typedef): Declare new member function.
5478 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5479 (default_print_typedef): Delete declaration.
5480 * m2-lang.c (m2_language_data): Delete la_print_typedef
5481 initializer.
5482 (m2_language::print_typedef): New member function.
5483 * objc-lang.c (objc_language_data): Delete la_print_typedef
5484 initializer.
5485 * opencl-lang.c (opencl_language_data): Likewise.
5486 * p-lang.c (pascal_language_data): Likewise.
5487 (pascal_language::print_typedef): New member function.
5488 * rust-lang.c (rust_print_typedef): Delete function,
5489 implementation moved to rust_language::print_typedef.
5490 (rust_language): Delete la_print_typedef initializer.
5491 (rust_language::print_typedef): New member function,
5492 implementation from rust_print_typedef.
5493 * typeprint.c (default_print_typedef): Delete.
5494
d711ee67
AB
54952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5496
5497 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5498 (ada_language::printstr): New member function.
5499 * c-lang.c (c_language_data): Delete la_printstr initializer.
5500 (cplus_language_data): Likewise.
5501 (asm_language_data): Likewise.
5502 (minimal_language_data): Likewise.
5503 * d-lang.c (d_language_data): Likewise.
5504 * f-lang.c (f_printstr): Rename to f_language::printstr.
5505 (f_language_data): Delete la_printstr initializer.
5506 (f_language::printstr): New member function, implementation from
5507 f_printstr.
5508 * go-lang.c (go_language_data): Delete la_printstr initializer.
5509 * language.c (language_defn::printstr): Define new member
5510 function.
5511 (unk_lang_printstr): Delete.
5512 (unknown_language_data): Delete la_printstr initializer.
5513 (unknown_language::printstr): New member function.
5514 (auto_language_data): Delete la_printstr initializer.
5515 (auto_language::printstr): New member function.
5516 * language.h (language_data): Delete la_printstr field.
5517 (language_defn::printstr): Declare new member function.
5518 (LA_PRINT_STRING): Update call to printstr.
5519 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5520 (m2_language_data): Delete la_printstr initializer.
5521 (m2_language::printstr): New member function, implementation from
5522 m2_printstr.
5523 * objc-lang.c (objc_language_data): Delete la_printstr
5524 initializer.
5525 * opencl-lang.c (opencl_language_data): Likewise.
5526 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5527 (pascal_language_data): Delete la_printstr initializer.
5528 (pascal_language::printstr): New member function, implementation
5529 from pascal_printstr.
5530 * p-lang.h (pascal_printstr): Delete declaration.
5531 * rust-lang.c (rust_printstr): Update header comment.
5532 (rust_language_data): Delete la_printstr initializer.
5533 (rust_language::printstr): New member function.
5534
52b50f2c
AB
55352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5536
5537 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5538 (ada_language::printchar): New member function.
5539 * c-lang.c (c_language_data): Delete la_printchar initializer.
5540 (cplus_language_data): Likewise.
5541 (asm_language_data): Likewise.
5542 (minimal_language_data): Likewise.
5543 * d-lang.c (d_language_data): Likewise.
5544 * f-lang.c (f_printchar): Rename to f_language::printchar.
5545 (f_language_data): Delete la_printchar initializer.
5546 (f_language::printchar): New member function, implementation from
5547 f_printchar.
5548 * go-lang.c (go_language_data): Delete la_printchar initializer.
5549 * language.c (unk_lang_printchar): Delete.
5550 (language_defn::printchar): Define new member function.
5551 (unknown_language_data): Delete la_printchar initializer.
5552 (unknown_language::printchar): New member function.
5553 (auto_language_data): Delete la_printchar initializer.
5554 (auto_language::printchar): New member function.
5555 * language.h (language_data): Delete la_printchar field.
5556 (language_defn::printchar): Declare new member function.
5557 (LA_PRINT_CHAR): Update call to printchar.
5558 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5559 (m2_language::printchar): New member function.
5560 * objc-lang.c (objc_language_data): Delete la_printchar
5561 initializer.
5562 * opencl-lang.c (opencl_language_data): Likewise.
5563 * p-lang.c (pascal_language_data): Delete la_printchar
5564 initializer.
5565 (pascal_language::printchar): New member function.
5566 * rust-lang.c (rust_printchar): Rename to
5567 rust_language::printchar.
5568 (rust_language_data): Delete la_printchar initializer.
5569 (rust_language::printchar): New member function, implementation
5570 from rust_printchar.
5571
ec8cec5b
AB
55722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5575 (ada_language_data): Delete la_emitchar initializer.
5576 (ada_language::emitchar): New member function, implementation from
5577 emit_char.
5578 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5579 (cplus_language_data): Likewise.
5580 (asm_language_data): Likewise.
5581 (minimal_language_data): Likewise.
5582 * d-lang.c (d_language_data): Likewise.
5583 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5584 (f_language_data): Delete la_emitchar initializer.
5585 (f_language::emitchar): New member function, implementation from
5586 f_emit_char.
5587 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5588 * language.c (unk_lang_emit_char): Delete.
5589 (language_defn::emitchar): New member function definition.
5590 (unknown_language_data): Delete la_emitchar initializer.
5591 (unknown_language::emitchar): New member function.
5592 (auto_language_data): Delete la_emitchar initializer.
5593 (auto_language::emitchar): New member function.
5594 * language.h (language_data): Delete la_emitchar field.
5595 (language_defn::emitchar): New member field declaration.
5596 (LA_EMIT_CHAR): Update call to emitchar.
5597 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5598 (m2_language_data): Delete la_emitchar initializer.
5599 (m2_language::emitchar): New member function, implementation from
5600 m2_emit_char.
5601 * objc-lang.c (objc_language_data): Delete la_emitchar
5602 initializer.
5603 * opencl-lang.c (opencl_language_data): Likewise.
5604 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5605 (pascal_language_data): Delete la_emitchar initializer.
5606 (pascal_language::emitchar): New member function, implementation
5607 from pascal_emit_char.
5608 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5609 (rust_language_data): Delete la_emitchar initializer.
5610 (rust_language::emitchar): New member function, implementation
5611 from rust_emitchar.
5612
1bf9c363
AB
56132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5614
5615 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5616 (ada_language_data): Delete la_post_parser initializer.
5617 (ada_language::post_parser): New member function.
5618 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5619 (cplus_language_data): Likewise.
5620 (asm_language_data): Likewise.
5621 (minimal_language_data): Likewise.
5622 * d-lang.c (d_language_data): Likewise.
5623 * f-lang.c (f_language_data): Likewise.
5624 * go-lang.c (go_language_data): Likewise.
5625 * language.c (unknown_language_data): Likewise.
5626 (auto_language_data): Likewise.
5627 * language.h (language_data): Delete la_post_parser field.
5628 (language_defn::post_parser): New member function.
5629 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5630 * objc-lang.c (objc_language_data): Likewise.
5631 * opencl-lang.c (opencl_language_data): Likewise.
5632 * p-lang.c (pascal_language_data): Likewise.
5633 * parse.c (parse_exp_in_context): Update call to post_parser.
5634 (null_post_parser): Delete definition.
5635 * parser-defs.h (null_post_parser): Delete declaration.
5636 * rust-lang.c (rust_language_data): Delete la_post_parser
5637 initializer.
5638
87afa652
AB
56392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5640
5641 * ada-lang.c (parse): Rename to ada_language::parser.
5642 (ada_language_data): Delete la_parser initializer.
5643 (ada_language::parser): New member function, implementation from
5644 parse.
5645 * c-lang.c (c_language_data): Delete la_parser initializer.
5646 (cplus_language_data): Likewise.
5647 (asm_language_data): Likewise.
5648 (minimal_language_data): Likewise.
5649 * d-lang.c (d_language_data): Likewise.
5650 (d_language::parser): New member function.
5651 * f-lang.c (f_language_data): Delete la_parser initializer.
5652 (f_language::parser): New member function.
5653 * go-lang.c (go_language_data): Delete la_parser initializer.
5654 (go_language::parser): New member function.
5655 * language.c (unk_lang_parser): Delete.
5656 (language_defn::parser): Define new member function.
5657 (unknown_language_data): Delete la_parser initializer.
5658 (unknown_language::parser): New member function.
5659 (auto_language_data): Delete la_parser initializer.
5660 (auto_language::parser): New member function.
5661 * language.h (language_data): Delete la_parser field.
5662 (language_defn::parser): Declare new member function.
5663 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5664 (m2_language::parser): New member function.
5665 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5666 * opencl-lang.c (opencl_language_data): Likewise.
5667 * p-lang.c (pascal_language_data): Likewise.
5668 (pascal_language::parser): New member function.
5669 * parse.c (parse_exp_in_context): Update call to parser.
5670 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5671 (rust_language::parser): New member function.
5672
37825800
AB
56732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5674
5675 * top.c (print_gdb_configuration): Print --with-python-libdir
5676 configuration value.
5677
5b860c93
PW
56782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5679
5680 * NEWS: Mention change to the alias command.
5681
cf00cd6f
PW
56822020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5683
5684 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5685 (alias_command_completer)
5686 (make_alias_options_def_group): New functions.
5687 (alias_opts, alias_option_defs): New struct and array.
5688 (alias_usage_error): Update usage.
5689 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5690 Use option framework.
5691 (_initialize_cli_cmds): Update alias command help.
5692 Update aliases command help.
5693 (show_user):
5694 Add NULL for new default_args lookup_cmd argument.
5695 (valid_command_p): Rename to validate_aliased_command.
5696 Add NULL for new default_args lookup_cmd argument. Verify that the
5697 aliased_command has no default args.
5698 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5699 (lookup_cmd_1, lookup_cmd): New argument default_args.
5700 (add_alias_cmd):
5701 Add NULL for new default_args lookup_cmd argument.
5702 (print_help_for_command): Show default args under the layout
5703 alias some_alias = some_aliased_cmd some_alias_default_arg.
5704 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5705 xfree default_args in destructor.
5706 * cli/cli-script.c (process_next_line, do_define_command):
5707 Add NULL for new default_args lookup_cmd argument.
5708 * command.h: Declare new default_args argument in lookup_cmd
5709 and lookup_cmd_1.
5710 * completer.c (complete_line_internal_1):
5711 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5712 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5713 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5714 Likewise.
5715 * infcmd.c (_initialize_infcmd): Likewise.
5716 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5717 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5718 * python/py-param.c (add_setshow_generic): Likewise.
5719 * remote.c (_initialize_remote): Likewise.
5720 * top.c (execute_command): Prepend default_args if command has some.
5721 (set_verbose):
5722 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5723 * tracepoint.c (validate_actionline, encode_actions_1):
5724 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5725
bd920864
TBA
57262020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5727
5728 * jit.c (jit_read_descriptor): Use bool as the return type.
5729 (jit_breakpoint_re_set_internal): Use bool as the return type.
5730 Invert the return value logic; return true if the jit breakpoint
5731 has been successfully initialized.
5732 (jit_inferior_init): Update the call to
5733 jit_breakpoint_re_set_internal.
5734
f8098322
PA
57352020-06-22 Pedro Alves <palves@redhat.com>
5736
5737 PR gdb/25939
5738 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5739 Use the current inferior instead. Don't return
5740 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5741 wait again.
5742 * sol-thread.c (sol_thread_target::wait): Don't reference
5743 inferior_ptid.
5744 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5745 (sol_update_thread_list_callback): Use the current inferior's pid
5746 instead of inferior_ptid.
5747
196535a6
RO
57482020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5749
5750 * procfs.c: Cleanup many comments.
5751
5752 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5753 (AFTER_WATCHFLAG): Replace by value.
5754
5755 (MAIN_PROC_NAME_FORMAT): Inline ...
5756 (create_procinfo): ... here.
5757
5758 (procfs_debug_inferior): Remove SYS_exec handling.
5759 (syscall_is_exec): Likewise.
5760 (procfs_set_exec_trap): Likewise.
5761
5762 (syscall_is_lwp_exit): Inline in callers.
5763 (syscall_is_exit): Likewise.
5764 (syscall_is_exec): Likewise.
5765 (syscall_is_lwp_create): Likewise.
5766
5767 (invalidate_cache): Remove #if 0 code.
5768
5769 (make_signal_thread_runnable): Remove.
5770 (procfs_target::resume): Remove #if 0 code.
5771
cf6f3e86
RO
57722020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5773
5774 PR gdb/25939
5775 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5776 call ...
5777 (procfs_target::create_inferior): ... here.
5778
48e9cc84
PW
57792020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5780
5781 * exec.c (validate_exec_file): Ensure the build-id is up to
5782 date by calling reopen_exec_file (that checks file timestamp
5783 to decide to re-read the file).
5784
3922b302
PA
57852020-06-18 Pedro Alves <palves@redhat.com>
5786
5787 PR gdb/25412
5788 * gdbthread.h (delete_thread, delete_thread_silent)
5789 (find_thread_ptid): Update comments.
5790 * thread.c (current_thread_): New global.
5791 (is_current_thread): Move higher, and reimplement.
5792 (inferior_thread): Reimplement.
5793 (set_thread_exited): Use bool. Add assertions.
5794 (add_thread_silent): Simplify thread-reuse handling by always
5795 calling delete_thread.
5796 (delete_thread): Remove intro comment.
5797 (find_thread_ptid): Skip exited threads.
5798 (switch_to_thread_no_regs): Write to current_thread_.
5799 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5800 INFERIOR_PTID. Clear current_thread_.
5801
6dbdab44
PA
58022020-06-18 Pedro Alves <palves@redhat.com>
5803
5804 * aix-thread.c (pd_update): Use switch_to_thread.
5805
2da4b788
PA
58062020-06-18 Pedro Alves <palves@redhat.com>
5807
5808 * ravenscar-thread.c (ravenscar_thread_target): Update.
5809 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5810 (ravenscar_thread_target::add_active_thread): ... this. Don't
5811 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5812 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5813
50838d1b
PA
58142020-06-18 Pedro Alves <palves@redhat.com>
5815
5816 * nat/windows-nat.c (current_windows_thread): Remove.
5817 * nat/windows-nat.h (current_windows_thread): Remove.
5818 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5819 Adjust.
5820 (display_selectors): Adjust to fetch the current
5821 windows_thread_info based on inferior_ptid.
5822 (fake_create_process): No longer write to current_windows_thread.
5823 (windows_nat_target::get_windows_debug_event):
5824 Don't set inferior_ptid or current_windows_thread.
5825 (windows_nat_target::wait): Adjust to not rely on
5826 current_windows_thread.
5827 (do_initial_windows_stuff): Now a method of windows_nat_target.
5828 Switch to the last_ptid thread.
5829 (windows_nat_target::attach): Adjust.
5830 (windows_nat_target::detach): Use switch_to_no_thread instead of
5831 writing to inferior_ptid directly.
5832 (windows_nat_target::create_inferior): Adjust.
5833
31ce04e9
PA
58342020-06-18 Pedro Alves <palves@redhat.com>
5835
5836 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5837
1ee1a363
PA
58382020-06-18 Pedro Alves <palves@redhat.com>
5839
5840 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5841 after creating it, instead of writing to inferior_ptid. Don't
5842 write to inferior_ptid.
5843
6d350754
PA
58442020-06-18 Pedro Alves <palves@redhat.com>
5845
5846 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5847
5d971d48
PA
58482020-06-18 Pedro Alves <palves@redhat.com>
5849
5850 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5851 it, instead of writing to inferior_ptid.
5852
86e57d1b
PA
58532020-06-18 Pedro Alves <palves@redhat.com>
5854
5855 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5856 to inferior_ptid.
5857
f2e1c129
PA
58582020-06-18 Pedro Alves <palves@redhat.com>
5859
5860 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5861 instead of writing to inferior_ptid directly.
5862
60db1b85
PA
58632020-06-18 Pedro Alves <palves@redhat.com>
5864
5865 * corelow.c (core_target::close): Use switch_to_no_thread instead
5866 of writing to inferior_ptid directly.
5867 (add_to_thread_list, core_target_open): Use switch_to_thread
5868 instead of writing to inferior_ptid directly.
5869
fe7d6a8d
PA
58702020-06-18 Pedro Alves <palves@redhat.com>
5871
5872 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5873 inferior_ptid.
5874 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5875 inferior_ptid.
5876 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5877 inferior_ptid directly.
5878 (darwin_nat_target::init_thread_list): Switch to thread, instead
5879 of writing to inferior_ptid.
5880 (darwin_nat_target::attach): Don't write to inferior_ptid.
5881 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5882
975f8708
PA
58832020-06-18 Pedro Alves <palves@redhat.com>
5884
5885 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5886 thread.
5887 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5888 Instead use switch_to_thread.
5889 (gnu_nat_target::detach): Use switch_to_no_thread
5890 instead of writing to inferior_ptid directly. Used passed-in
5891 inferior instead of looking up the inferior by pid.
5892
1a204730
PA
58932020-06-18 Pedro Alves <palves@redhat.com>
5894
5895 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5896 inferior_ptid.
5897
ebe84f23
PA
58982020-06-18 Pedro Alves <palves@redhat.com>
5899
5900 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5901 inferior_ptid.
5902 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5903 thread.
5904 (nto_procfs_target::detach): Avoid referencing
5905 inferior_ptid. Use switch_to_no_thread instead of writing to
5906 inferior_ptid directly.
5907 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5908 instead of writing to inferior_ptid directly.
5909 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5910 to thread.
5911
191f02e5
PA
59122020-06-18 Pedro Alves <palves@redhat.com>
5913
5914 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5915 after creating it, instead of writing to inferior_ptid.
5916 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5917 to inferior_ptid directly.
5918 (gdbsim_target::wait): Don't write to inferior_ptid.
5919
0ac55310
PA
59202020-06-18 Pedro Alves <palves@redhat.com>
5921
5922 * remote.c (remote_target::remote_notice_new_inferior): Use
5923 switch_to_thread instead of writing to inferior_ptid directly.
5924 (remote_target::add_current_inferior_and_thread): Use
5925 switch_to_no_thread instead of writing to inferior_ptid directly.
5926 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5927 and switch_to_thread instead of using set_current_inferior or
5928 writing to inferior_ptid directly.
5929
5233f39b
PA
59302020-06-18 Pedro Alves <palves@redhat.com>
5931
5932 * tracectf.c (ctf_target_open): Switch to added thread instead of
5933 writing to inferior_ptid directly.
5934 (ctf_target::close): Use switch_to_no_thread instead of writing to
5935 inferior_ptid directly.
5936
087e161b
PA
59372020-06-18 Pedro Alves <palves@redhat.com>
5938
5939 * tracefile-tfile.c (tfile_target_open): Don't write to
5940 inferior_ptid directly, instead switch to added thread.
5941 (tfile_target::close): Use switch_to_no_thread instead of writing
5942 to inferior_ptid directly.
5943
7fb43e53
PA
59442020-06-18 Pedro Alves <palves@redhat.com>
5945
5946 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5947 (procfs_target::detach): Use switch_to_no_thread
5948 instead of writing to inferior_ptid directly.
5949 (do_attach): Change return type to void. Switch to the added
5950 thread.
5951 (procfs_target::create_inferior): Switch to the added thread.
5952 (procfs_do_thread_registers): Don't write to inferior_ptid.
5953
18493a00
PA
59542020-06-18 Pedro Alves <palves@redhat.com>
5955
5956 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5957 of writing to inferior_ptid.
5958 (scoped_restore_exited_inferior): Delete.
5959 (handle_vfork_child_exec_or_exit): Simplify using
5960 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5961 instead of writing to inferior_ptid.
5962 (THREAD_STOPPED_BY): Delete.
5963 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5964 (thread_stopped_by_hw_breakpoint): Delete.
5965 (save_waitstatus): Use
5966 scoped_restore_current_thread+switch_to_thread, and call
5967 target_stopped_by_watchpoint instead of
5968 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5969 instead of thread_stopped_by_sw_breakpoint, and
5970 target_stopped_by_hw_breakpoint instead of
5971 thread_stopped_by_hw_breakpoint.
5972 (handle_inferior_event)
5973 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5974 inferior_ptid directly, nor
5975 set_current_inferior/set_current_program_space. Use
5976 switch_to_thread / switch_to_inferior_no_thread instead.
5977
a0776b13
PA
59782020-06-18 Pedro Alves <palves@redhat.com>
5979
5980 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5981 instead of writing to inferior_ptid.
5982
6155c136
PA
59832020-06-18 Pedro Alves <palves@redhat.com>
5984
5985 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5986 added thread.
5987 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5988 to the added thread.
5989 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5990 instead of writing to inferior_ptid.
5991
c5316fc6
PA
59922020-06-18 Pedro Alves <palves@redhat.com>
5993
5994 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5995 (register_to_value_test): Mock a program_space too. Heap-allocate
5996 the address space. Don't write to inferior_ptid. Use
5997 switch_to_thread instead.
5998
8df01799
PA
59992020-06-18 Pedro Alves <palves@redhat.com>
6000
6001 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
6002 Delete.
6003 (find_signalled_thread()): New, factored out from
6004 linux_make_corefile_notes and adjusted to handle exited threads.
6005 (linux_make_corefile_notes): Adjust to use the new
6006 find_signalled_thread.
6007
41792d68
PA
60082020-06-18 Pedro Alves <palves@redhat.com>
6009
6010 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
6011 of saving/restoring inferior_ptid.
6012
612f258a
TT
60132020-06-17 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
6016 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
6017 declare.
6018 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
6019
efb763a5
SM
60202020-06-15 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
6023 of partial symtabs.
6024
2951f6c0
SM
60252020-06-17 Simon Marchi <simon.marchi@efficios.com>
6026
6027 * regformats/reg-arm.dat: Remove.
6028 * regformats/reg-bfin.dat: Remove.
6029 * regformats/reg-cris.dat: Remove.
6030 * regformats/reg-crisv32.dat: Remove.
6031 * regformats/reg-m32r.dat: Remove.
6032 * regformats/reg-tilegx.dat: Remove.
6033 * regformats/reg-tilegx32.dat: Remove.
6034
7d458ea5
SM
60352020-06-17 Simon Marchi <simon.marchi@efficios.com>
6036
6037 * features/Makefile (WHICH): Remove arm files.
6038 * regformats/arm/arm-with-iwmmxt.dat: Remove.
6039 * regformats/arm/arm-with-neon.dat: Remove.
6040 * regformats/arm/arm-with-vfpv2.dat: Remove.
6041 * regformats/arm/arm-with-vfpv3.dat: Remove.
6042
3af96c0d
SM
60432020-06-17 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * features/Makefile (XMLTOC): Remove rx.xml.
6046
b25e22fd
PA
60472020-06-17 Pedro Alves <palves@redhat.com>
6048
6049 * gdbthread.h (thread_control_state) <trap_expected> Update
6050 comments.
6051
a78a19b1
AB
60522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
6055 ada_language::lookup_symbol_nonlocal.
6056 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
6057 (ada_language::lookup_symbol_nonlocal): New member function,
6058 implementation from ada_lookup_symbol_nonlocal.
6059 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
6060 initializer.
6061 (cplus_language_data): Delete la_lookup_symbol_nonlocal
6062 initializer.
6063 (cplus_language::lookup_symbol_nonlocal): New member function.
6064 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
6065 (minimal_language_data) Likewise.
6066 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
6067 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
6068 initializer.
6069 (d_language::lookup_symbol_nonlocal): New member function.
6070 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
6071 initializer.
6072 (f_language::lookup_symbol_nonlocal): New member function.
6073 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
6074 initializer.
6075 * language.c (unknown_language_data): Likewise.
6076 (auto_language_data): Likewise.
6077 * language.h (language_data): Delete la_lookup_symbol_nonlocal
6078 field.
6079 (language_defn::lookup_symbol_nonlocal): New member function.
6080 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6081 initializer.
6082 * objc-lang.c (objc_language_data): Likewise.
6083 * opencl-lang.c (opencl_language_data): Likewise.
6084 * p-lang.c (pascal_language_data): Likewise.
6085 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6086 rust_language::lookup_symbol_nonlocal.
6087 (rust_language_data): Delete la_lookup_symbol_nonlocal
6088 initializer.
6089 (rust_language::lookup_symbol_nonlocal): New member function,
6090 implementation from rust_lookup_symbol_nonlocal.
6091 * symtab.c (lookup_symbol_aux): Update call to
6092 lookup_symbol_nonlocal.
6093 (basic_lookup_symbol_nonlocal): Rename to...
6094 (language_defn::lookup_symbol_nonlocal): ...this, and update
6095 header comment. Remove language_defn parameter, and replace with
6096 uses of `this'.
6097 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6098
ebe2334e
AB
60992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6102 initializer.
6103 (ada_language::value_print_inner): New member function.
6104 * c-lang.c (c_language_data): Delete la_value_print_inner
6105 initializer.
6106 (cplus_language_data): Likewise.
6107 (asm_language_data): Likewise.
6108 (minimal_language_data): Likewise.
6109 * d-lang.c (d_language_data): Likewise.
6110 (d_language::value_print_inner): New member function.
6111 * f-lang.c (f_language_data): Delete la_value_print_inner
6112 initializer.
6113 (f_language::value_print_inner): New member function.
6114 * f-lang.h (f_value_print_innner): Rename to...
6115 (f_value_print_inner): ...this (note spelling of 'inner').
6116 * f-valprint.c (f_value_print_innner): Rename to...
6117 (f_value_print_inner): ...this (note spelling of 'inner').
6118 * go-lang.c (go_language_data): Delete la_value_print_inner
6119 initializer.
6120 (go_language::value_print_inner): New member function.
6121 * language.c (language_defn::value_print_inner): Define new member
6122 function.
6123 (unk_lang_value_print_inner): Delete.
6124 (unknown_language_data): Delete la_value_print_inner initializer.
6125 (unknown_language::value_print_inner): New member function.
6126 (auto_language_data): Delete la_value_print_inner initializer.
6127 (auto_language::value_print_inner): New member function.
6128 * language.h (language_data): Delete la_value_print_inner field.
6129 (language_defn::value_print_inner): Delcare new member function.
6130 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6131 initializer.
6132 (m2_language::value_print_inner): New member function.
6133 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6134 initializer.
6135 * opencl-lang.c (opencl_language_data): Likewise.
6136 * p-lang.c (pascal_language_data): Likewise.
6137 (pascal_language::value_print_inner): New member function.
6138 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6139 initializer.
6140 (rust_language::value_print_inner): New member function.
6141 * valprint.c (do_val_print): Update call to value_print_inner.
6142
a1d1fa3e
AB
61432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6144
6145 * ada-lang.c (ada_language_data): Delete la_value_print
6146 initializer.
6147 (ada_language::value_print): New member function.
6148 * c-lang.c (c_language_data): Delete la_value_print initializer.
6149 (cplus_language_data): Likewise.
6150 (asm_language_data): Likewise.
6151 (minimal_language_data): Likewise.
6152 * d-lang.c (d_language_data): Likewise.
6153 * f-lang.c (f_language_data): Likewise.
6154 * go-lang.c (go_language_data): Likewise.
6155 * language.c (unk_lang_value_print): Delete.
6156 (language_defn::value_print): Define new member function.
6157 (unknown_language_data): Delete la_value_print initializer.
6158 (unknown_language::value_print): New member function.
6159 (auto_language_data): Delete la_value_print initializer.
6160 (auto_language::value_print): New member function.
6161 * language.h (language_data): Delete la_value_print field.
6162 (language_defn::value_print): Declare new member function.
6163 (LA_VALUE_PRINT): Update call to value_print.
6164 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6165 * objc-lang.c (objc_language_data): Likewise.
6166 * opencl-lang.c (opencl_language_data): Likewise.
6167 * p-lang.c (pascal_language_data): Likewise.
6168 (pascal_language::value_print): New member function.
6169 * rust-lang.c (rust_language_data): Delete la_value_print
6170 initializer.
6171
f16a9f57
AB
61722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6173
6174 * ada-lang.c (ada_watch_location_expression): Rename to
6175 ada_language::watch_location_expression.
6176 (ada_language_data): Delete la_watch_location_expression
6177 initializer.
6178 (ada_language::watch_location_expression): New member function,
6179 implementation from ada_watch_location_expression.
6180 * breakpoint.c (watch_command_1): Update call to
6181 watch_location_expression.
6182 * c-lang.c (c_watch_location_expression): Rename to
6183 language_defn::watch_location_expression.
6184 (c_language_data): Delete la_watch_location_expression
6185 initializer.
6186 (cplus_language_data): Likewise.
6187 (asm_language_data): Likewise.
6188 (minimal_language_data): Likewise.
6189 * c-lang.h (c_watch_location_expression): Delete declaration.
6190 * d-lang.c (d_language_data): Delete la_watch_location_expression
6191 initializer.
6192 * f-lang.c (f_language_data): Likewise.
6193 * go-lang.c (go_language_data): Likewise.
6194 * language.c (language_defn::watch_location_expression): Member
6195 function implementation from c_watch_location_expression.
6196 (unknown_language_data): Delete la_watch_location_expression
6197 initializer.
6198 (auto_language_data): Likewise.
6199 * language.h (language_data): Delete la_watch_location_expression
6200 field.
6201 (language_defn::watch_location_expression): Declare new member
6202 function.
6203 * m2-lang.c (m2_language_data): Delete
6204 la_watch_location_expression initializer.
6205 * objc-lang.c (objc_language_data): Likewise.
6206 * opencl-lang.c (opencl_language_data): Likewise.
6207 * p-lang.c (pascal_language_data): Likewise.
6208 * rust-lang.c (rust_watch_location_expression): Rename to
6209 rust_language::watch_location_expression.
6210 (rust_language_data): Delete la_watch_location_expression
6211 initializer.
6212 (rust_language::watch_location_expression): New member function,
6213 implementation from rust_watch_location_expression.
6214
7e56227d
AB
62152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6216
6217 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6218 ada_language::collect_symbol_completion_matches.
6219 (ada_language_data): Delete la_collect_symbol_completion_matches
6220 initializer.
6221 (ada_language::collect_symbol_completion_matches): New member
6222 function, implementation from
6223 ada_collect_symbol_completion_matches.
6224 * c-lang.c (c_language_data): Delete
6225 la_collect_symbol_completion_matches initializer.
6226 (cplus_language_data): Likewise.
6227 (asm_language_data): Likewise.
6228 (minimal_language_data): Likewise.
6229 * d-lang.c (d_language_data): Likewise.
6230 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6231 f_language::collect_symbol_completion_matches.
6232 (f_language_data): Delete la_collect_symbol_completion_matches
6233 initializer.
6234 (f_language::collect_symbol_completion_matches) New member
6235 function, implementation from f_collect_symbol_completion_matches.
6236 * go-lang.c (go_language_data): Delete
6237 la_collect_symbol_completion_matches initializer.
6238 * language.c (unknown_language_data): Likewise.
6239 (auto_language_data): Likewise.
6240 * language.h (language_data): Delete
6241 la_collect_symbol_completion_matches field.
6242 (language_defn::collect_symbol_completion_matches): New member
6243 function.
6244 * m2-lang.c (m2_language_data): Delete
6245 la_collect_symbol_completion_matches initializer.
6246 * objc-lang.c (objc_language_data): Likewise.
6247 * opencl-lang.c (opencl_language_data): Likewise.
6248 * p-lang.c (pascal_language_data): Likewise.
6249 * rust-lang.c (rust_language_data): Likewise.
6250 * symtab.c (default_collect_symbol_completion_matches): Delete.
6251 (collect_symbol_completion_matches): Update call to
6252 collect_symbol_completion_matches.
6253 (collect_symbol_completion_matches_type): Likewise.
6254 * symtab.h (default_collect_symbol_completion_matches): Delete
6255 declaration.
6256
53fc67f8
AB
62572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6258
6259 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6260 (ada_language_data): Delete la_word_break_characters initializer.
6261 (ada_language::word_break_characters): New member function.
6262 * c-lang.c (c_language_data): Delete la_word_break_characters
6263 initializer.
6264 (cplus_language_data): Likewise.
6265 (asm_language_data): Likewise.
6266 (minimal_language_data): Likewise.
6267 * completer.c: Update global comment.
6268 (advance_to_expression_complete_word_point): Update call to
6269 word_break_characters.
6270 (complete_files_symbols): Likewise.
6271 (complete_line_internal_1): Likewise.
6272 (default_completer_handle_brkchars): Likewise.
6273 (skip_quoted_chars): Likewise.
6274 * d-lang.c (d_language_data): Delete la_word_break_characters
6275 initializer.
6276 * f-lang.c (f_word_break_characters): Delete.
6277 (f_language_data): Delete la_word_break_characters initializer.
6278 (f_language::word_break_characters): New member function.
6279 * go-lang.c (go_language_data): Delete la_word_break_characters
6280 initializer.
6281 * language.c (unknown_language_data): Likewise.
6282 (auto_language_data): Likewise.
6283 * language.h (default_word_break_characters): Move declaration to
6284 earlier in the file.
6285 (language_data): Delete la_word_break_characters field.
6286 (language_defn::word_break_characters): New member function.
6287 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6288 initializer.
6289 * objc-lang.c (objc_language_data): Likewise.
6290 * opencl-lang.c (opencl_language_data): Likewise.
6291 * p-lang.c (pascal_language_data): Likewise.
6292 * rust-lang.c (rust_language_data): Likewise.
6293
c9debfb9
AB
62942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6295
6296 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6297 (ada_language_data): Delete la_get_symbol_name_matcher
6298 initializer.
6299 (language_defn::get_symbol_name_matcher_inner): New member
6300 function.
6301 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6302 initializer.
6303 (cplus_language_data): Likewise.
6304 (cplus_language::get_symbol_name_matcher_inner): New member
6305 function.
6306 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6307 (minimal_language_data): Likewise.
6308 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6309 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6310 initializer.
6311 * dictionary.c (iter_match_first_hashed): Update call to
6312 get_symbol_name_matcher.
6313 (iter_match_next_hashed): Likewise.
6314 (iter_match_next_linear): Likewise.
6315 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6316 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6317 initializer.
6318 (f_language::get_symbol_name_matcher_inner): New member function.
6319 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6320 initializer.
6321 * language.c (default_symbol_name_matcher): Update header comment,
6322 make static.
6323 (language_defn::get_symbol_name_matcher): New definition.
6324 (language_defn::get_symbol_name_matcher_inner): Likewise.
6325 (get_symbol_name_matcher): Delete.
6326 (unknown_language_data): Delete la_get_symbol_name_matcher
6327 initializer.
6328 (auto_language_data): Likewise.
6329 * language.h (language_data): Delete la_get_symbol_name_matcher
6330 field.
6331 (language_defn::get_symbol_name_matcher): New member function.
6332 (language_defn::get_symbol_name_matcher_inner): Likewise.
6333 (default_symbol_name_matcher): Delete declaration.
6334 * linespec.c (find_methods): Update call to
6335 get_symbol_name_matcher.
6336 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6337 initializer.
6338 * minsyms.c (lookup_minimal_symbol): Update call to
6339 get_symbol_name_matcher.
6340 (iterate_over_minimal_symbols): Likewise.
6341 * objc-lang.c (objc_language_data): Delete
6342 la_get_symbol_name_matcher initializer.
6343 * opencl-lang.c (opencl_language_data): Likewise.
6344 * p-lang.c (pascal_language_data): Likewise.
6345 * psymtab.c (psymbol_name_matches): Update call to
6346 get_symbol_name_matcher.
6347 * rust-lang.c (rust_language_data): Delete
6348 la_get_symbol_name_matcher initializer.
6349 * symtab.c (symbol_matches_search_name): Update call to
6350 get_symbol_name_matcher.
6351 (compare_symbol_name): Likewise.
6352
9a49ad8c
AB
63532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6354
6355 * ada-lang.c (ada_language_data): Delete la_compute_program
6356 initializer.
6357 * c-lang.c (c_language_data): Likewise.
6358 (c_language::compute_program): New member function.
6359 (cplus_language_data): Delete la_compute_program initializer.
6360 (cplus_language::compute_program): New member function.
6361 (asm_language_data): Delete la_compute_program initializer.
6362 (minimal_language_data): Likewise.
6363 * c-lang.h (c_compute_program): Update comment.
6364 (cplus_compute_program): Likewise.
6365 * compile/compile-c-support.c (c_compute_program): Likewise.
6366 (cplus_compute_program): Likewise.
6367 * compile/compile.c (compile_to_object): Update call to
6368 la_compute_program.
6369 * d-lang.c (d_language_data): Delete la_compute_program
6370 initializer.
6371 * f-lang.c (f_language_data): Likewise.
6372 * go-lang.c (go_language_data): Likewise.
6373 * language.c (unknown_language_data): Likewise.
6374 (auto_language_data): Likewise.
6375 * language.h (language_data): Delete la_compute_program field.
6376 (language_defn::compute_program): New member function.
6377 * m2-lang.c (m2_language_data): Delete la_compute_program
6378 initializer.
6379 * objc-lang.c (objc_language_data): Likewise.
6380 * opencl-lang.c (opencl_language_data): Likewise.
6381 * p-lang.c (pascal_language_data): Likewise.
6382 * rust-lang.c (rust_language_data): Likewise.
6383
eff93b4d
AB
63842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6385
6386 * ada-lang.c (ada_language_data) Delete
6387 la_class_name_from_physname initializer.
6388 * c-lang.c (c_language_data): Likewise.
6389 (cplus_language_data): Likewise.
6390 (cplus_language::class_name_from_physname): New member function.
6391 (asm_language_data): Delete la_class_name_from_physname
6392 initializer.
6393 (minimal_language_data): Likewise.
6394 * d-lang.c (d_language_data): Likewise.
6395 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6396 method on language_defn class.
6397 (guess_full_die_structure_name): Likewise.
6398 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6399 initializer.
6400 * go-lang.c (go_language_data): Likewise.
6401 * language.c (language_class_name_from_physname): Delete.
6402 (unk_lang_class_name): Delete.
6403 (unknown_language_data): Delete la_class_name_from_physname
6404 initializer.
6405 (auto_language_data): Likewise.
6406 * language.h (language_data): Delete la_class_name_from_physname
6407 field.
6408 (language_defn::class_name_from_physname): New function.
6409 (language_class_name_from_physname): Delete declaration.
6410 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6411 initializer.
6412 * objc-lang.c (objc_language_data): Likewise.
6413 * opencl-lang.c (opencl_language_data): Likewise.
6414 * p-lang.c (pascal_language_data): Likewise.
6415 * rust-lang.c (rust_language_data): Likewise.
6416
de543742
TT
64172020-06-16 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-data.h (STATUS_NAME): New macro.
6420 * tui/tui-layout.c (tui_remove_some_windows)
6421 (initialize_known_windows, tui_register_window)
6422 (tui_layout_split::remove_windows, initialize_layouts)
6423 (tui_new_layout_command): Don't use hard-coded window names.
6424
a350efd4
TT
64252020-06-16 Tom Tromey <tom@tromey.com>
6426
6427 PR tui/25348:
6428 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6429 tui_initialize_readline. Only run once. Call rl_initialize.
6430 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6431 tui_initialize_readline.
6432 * tui/tui-io.c (tui_setup_io): Call
6433 tui_ensure_readline_initialized.
6434 * tui/tui-interp.c (tui_interp::init): Update.
6435
39ec0490
TT
64362020-06-16 Tom Tromey <tom@tromey.com>
6437
6438 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6439 Also preserve the status window.
6440
d2d1ea20
TT
64412020-06-16 Tom Tromey <tom@tromey.com>
6442
6443 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6444 where m_window==nullptr.
6445
66920317
TT
64462020-06-15 Tom Tromey <tromey@adacore.com>
6447
6448 * windows-nat.c (windows_nat::handle_output_debug_string):
6449 Update.
6450 (windows_nat::handle_ms_vc_exception): Update.
6451 * target.h (target_read_string): Change API.
6452 * target.c (target_read_string): Change API.
6453 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6454 Update.
6455 * solib-frv.c (frv_current_sos): Update.
6456 * solib-dsbt.c (dsbt_current_sos): Update.
6457 * solib-darwin.c (darwin_current_sos): Update.
6458 * linux-thread-db.c (inferior_has_bug): Update.
6459 * expprint.c (print_subexp_standard): Update.
6460 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6461 (ada_exception_message_1): Update.
6462
a5d871dd
TT
64632020-06-15 Tom Tromey <tromey@adacore.com>
6464
6465 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6466
670e35fa
TT
64672020-06-15 Tom Tromey <tromey@adacore.com>
6468
6469 * valprint.c (read_string): Update comment.
6470 * target.c (MIN): Remove.
6471 (target_read_string): Rewrite.
6472
f5272a3b
TT
64732020-06-15 Tom Tromey <tromey@adacore.com>
6474
6475 * corefile.c (read_memory_string): Remove.
6476 * ada-valprint.c (ada_value_print_ptr): Update.
6477 * ada-lang.h (ada_tag_name): Change return type.
6478 * ada-lang.c (type_from_tag): Update.
6479 (ada_tag_name_from_tsd): Change return type. Use
6480 target_read_string.
6481 (ada_tag_name): Likewise.
6482 * gdbcore.h (read_memory_string): Don't declare.
6483
2c074f49
HD
64842020-06-14 Hannes Domani <ssbssa@yahoo.de>
6485
6486 * symtab.c (rbreak_command): Ignore Windows drive colon.
6487
6a17d503
SM
64882020-06-12 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * NEWS: Mention removed GDBserver host support.
6491
453c733f
NC
64922020-06-12 Nelson Chu <nelson.chu@sifive.com>
6493
6494 * features/riscv/rebuild-csr-xml.sh: Updated.
6495
2b4e6a3f
TT
64962020-06-11 Tom Tromey <tom@tromey.com>
6497
6498 PR gdb/18318:
6499 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6500
4412332f
JG
65012020-06-09 Jonny Grant <jg@jguk.org>
65022020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * main.c (captured_main_1): Don't print new line after help.
6505 (print_gdb_help): add mailing list and IRC channel information
6506 to --help. Add new lines between items in the footer. Remove
6507 quotes around bug url.
6508
2f33032a
KS
65092020-06-11 Keith Seitz <keiths@redhat.com>
6510
6511 PR gdb/21356
6512 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6513 Resolve typedefs for type length calculations.
6514
7ab96794
TV
65152020-06-10 Tom de Vries <tdevries@suse.de>
6516
6517 PR ada/24713
6518 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6519 (write_psymbols): Enable .gdb_index for ada.
6520 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6521 ada.
6522
e5f3ece2
TV
65232020-06-10 Tom de Vries <tdevries@suse.de>
6524
6525 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6526 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6527 namei" instead of "const char *name" argument.
6528 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6529 dw2_symtab_iter_init.
6530
940da03e
SM
65312020-06-08 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6534 to use type::field and field::type instead.
6535
b6cdac4b
SM
65362020-06-08 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6539 to use field::type instead.
6540
5d14b6e5
SM
65412020-06-08 Simon Marchi <simon.marchi@efficios.com>
6542
6543 * gdbtypes.h (struct field) <type, set_type>: New methods.
6544 Rename `type` field to...
6545 <m_type>: ... this. Change references throughout to use type or
6546 set_type methods.
6547 (FIELD_TYPE): Use field::type. Change call sites that modify
6548 the field's type to use field::set_type instead.
6549
3d967001
SM
65502020-06-08 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6553 to use type::index_type instead.
6554
262abc0d
SM
65552020-06-08 Simon Marchi <simon.marchi@efficios.com>
6556
6557 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6558 methods.
6559 (TYPE_INDEX_TYPE): Use type::index_type.
6560 * gdbtypes.c (create_array_type_with_stride): Likewise.
6561
82836c92
TT
65622020-06-07 Tom Tromey <tom@tromey.com>
6563
6564 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6565 parameter.
6566 (generic_value_print): Update.
6567
940dace9
AB
65682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6569
6570 Revert commit 982a38f60b0.
6571 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6572
982a38f6
AB
65732020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6574
6575 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6576 avoid use after free.
6577
82f06518
TV
65782020-06-05 Tom de Vries <tdevries@suse.de>
6579
6580 * NEWS: Fix typos.
6581
f8c41851
SM
65822020-06-04 Simon Marchi <simon.marchi@efficios.com>
6583
6584 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6585 the per_bfd object.
6586 (dwarf2_read_debug_names): Likewise.
6587 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6588 object when re-using a per_bfd object with an index.
6589
f9b5d5ea
TV
65902020-06-03 Tom de Vries <tdevries@suse.de>
6591
6592 PR symtab/26046
6593 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6594 children for C++.
6595 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6596 DW_TAG_subprogram.
6597
f6eee2d0
AB
65982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * ada-lang.c (ada_language_data): Delete skip_trampoline
6601 initializer.
6602 * c-lang.c (c_language_data): Likewise.
6603 (cplus_language_data): Likewise.
6604 (cplus_language::skip_trampoline): New member function.
6605 (asm_language_data): Delete skip_trampoline initializer.
6606 (minimal_language_data): Likewise.
6607 * d-lang.c (d_language_data): Likewise.
6608 * f-lang.c (f_language_data): Likewise.
6609 * go-lang.c (go_language_data): Likewise.
6610 * language.c (unk_lang_trampoline): Delete function.
6611 (skip_language_trampoline): Update.
6612 (unknown_language_data): Delete skip_trampoline initializer.
6613 (auto_language_data): Likewise.
6614 * language.h (language_data): Delete skip_trampoline field.
6615 (language_defn::skip_trampoline): New function.
6616 * m2-lang.c (m2_language_data): Delete skip_trampoline
6617 initializer.
6618 * objc-lang.c (objc_skip_trampoline): Delete function, move
6619 implementation to objc_language::skip_trampoline.
6620 (objc_language_data): Delete skip_trampoline initializer.
6621 (objc_language::skip_trampoline): New member function with
6622 implementation from objc_skip_trampoline.
6623 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6624 initializer.
6625 * p-lang.c (pascal_language_data): Likewise.
6626 * rust-lang.c (rust_language_data): Likewise.
6627
0a50df5d
AB
66282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6631 (ada_language::demangle): New member function.
6632 * c-lang.c (c_language_data): Delete la_demangle initializer.
6633 (cplus_language_data): Delete la_demangle initializer.
6634 (cplus_language::demangle): New member function.
6635 (asm_language_data): Delete la_demangle initializer.
6636 (minimal_language_data): Delete la_demangle initializer.
6637 * d-lang.c (d_language_data): Delete la_demangle initializer.
6638 (d_language::demangle): New member function.
6639 * f-lang.c (f_language_data): Delete la_demangle initializer.
6640 (f_language::demangle): New member function.
6641 * go-lang.c (go_language_data): Delete la_demangle initializer.
6642 (go_language::demangle): New member function.
6643 * language.c (language_demangle): Update.
6644 (unk_lang_demangle): Delete.
6645 (unknown_language_data): Delete la_demangle initializer.
6646 (unknown_language::demangle): New member function.
6647 (auto_language_data): Delete la_demangle initializer.
6648 (auto_language::demangle): New member function.
6649 * language.h (language_data): Delete la_demangle field.
6650 (language_defn::demangle): New function.
6651 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6652 * objc-lang.c (objc_language_data): Delete la_demangle
6653 initializer.
6654 (objc_language::demangle): New member function.
6655 * opencl-lang.c (opencl_language_data): Delete la_demangle
6656 initializer.
6657 * p-lang.c (pascal_language_data): Likewise.
6658 * rust-lang.c (rust_language_data): Likewise.
6659 (rust_language::demangle): New member function.
6660
fbfb0a46
AB
66612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6662
6663 * ada-lang.c (ada_language_data): Delete la_print_type
6664 initializer.
6665 (ada_language::print_type): New member function.
6666 * c-lang.c (c_language_data): Delete la_print_type initializer.
6667 (c_language::print_type): New member function.
6668 (cplus_language_data): Delete la_print_type initializer.
6669 (cplus_language::print_type): New member function.
6670 (asm_language_data): Delete la_print_type initializer.
6671 (asm_language::print_type): New member function.
6672 (minimal_language_data): Delete la_print_type initializer.
6673 (minimal_language::print_type): New member function.
6674 * d-lang.c (d_language_data): Delete la_print_type initializer.
6675 (d_language::print_type): New member function.
6676 * f-lang.c (f_language_data): Delete la_print_type initializer.
6677 (f_language::print_type): New member function.
6678 * go-lang.c (go_language_data): Delete la_print_type initializer.
6679 (go_language::print_type): New member function.
6680 * language.c (unk_lang_print_type): Delete.
6681 (unknown_language_data): Delete la_print_type initializer.
6682 (unknown_language::print_type): New member function.
6683 (auto_language_data): Delete la_print_type initializer.
6684 (auto_language::print_type): New member function.
6685 * language.h (language_data): Delete la_print_type field.
6686 (language_defn::print_type): New function.
6687 (LA_PRINT_TYPE): Update.
6688 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6689 (m2_language::print_type): New member function.
6690 * objc-lang.c (objc_language_data): Delete la_print_type
6691 initializer.
6692 (objc_language::print_type): New member function.
6693 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6694 to opencl_language::print_type.
6695 (opencl_language_data): Delete la_print_type initializer.
6696 (opencl_language::print_type): New member function, implementation
6697 from opencl_print_type.
6698 * p-lang.c (pascal_language_data): Delete la_print_type
6699 initializer.
6700 (pascal_language::print_type): New member function.
6701 * rust-lang.c (rust_print_type): Delete, implementation moved to
6702 rust_language::print_type.
6703 (rust_language_data): Delete la_print_type initializer.
6704 (rust_language::print_type): New member function, implementation
6705 from rust_print_type.
6706
6f827019
AB
67072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6710 implementation moves to...
6711 (ada_language::sniff_from_mangled_name): ...here. Update return
6712 type.
6713 (ada_language_data): Delete la_sniff_from_mangled_name
6714 initializer.
6715 * c-lang.c (c_language_data): Likewise.
6716 (cplus_language_data): Likewise.
6717 (cplus_language::sniff_from_mangled_name): New member function,
6718 implementation taken from gdb_sniff_from_mangled_name.
6719 (asm_language_data): Delete la_sniff_from_mangled_name
6720 initializer.
6721 (minimal_language_data): Likewise.
6722 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6723 implementation moves to cplus_language::sniff_from_mangled_name.
6724 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6725 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6726 moves to...
6727 (d_language::sniff_from_mangled_name): ...here.
6728 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6729 * f-lang.c (f_language_data): Likewise.
6730 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6731 moves to...
6732 (go_language::sniff_from_mangled_name): ...here.
6733 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6734 * language.c (language_sniff_from_mangled_name): Delete.
6735 (unknown_language_data): Delete la_sniff_from_mangled_name
6736 initializer.
6737 (auto_language_data): Likewise.
6738 * language.h (language_data): Delete la_sniff_from_mangled_name
6739 field.
6740 (language_defn::sniff_from_mangled_name): New function.
6741 (language_sniff_from_mangled_name): Delete declaration.
6742 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6743 field.
6744 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6745 implementation moves to...
6746 (objc_language::sniff_from_mangled_name): ...here.
6747 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6748 * opencl-lang.c (opencl_language_data): Likewise.
6749 * p-lang.c (pascal_language_data): Likewise.
6750 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6751 implementation moves to...
6752 (rust_language::sniff_from_mangled_name): ...here.
6753 (rust_language_data): Delete la_sniff_from_mangled_name
6754 initializer.
6755 * symtab.c (symbol_find_demangled_name): Call
6756 sniff_from_mangled_name member function.
6757
fb8006fd
AB
67582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6761 initializer.
6762 * c-lang.c (c_language_data): Likewise.
6763 (cplus_language_data): Likewise.
6764 (cplus_language::search_name_hash): New member function.
6765 (asm_language_data): Delete la_search_name_hash initializer.
6766 (minimal_language_data): Likewise.
6767 * d-lang.c (d_language_data): Likewise.
6768 * dictionary.c (default_search_name_hash): Rename to...
6769 (language_defn::search_name_hash): ...this.
6770 * f-lang.c (f_language_data): Likewise.
6771 (f_language::search_name_hash): New member function.
6772 * go-lang.c (go_language_data): Delete la_search_name_hash
6773 initializer.
6774 * language.c (unknown_language_data): Likewise.
6775 (auto_language_data): Likewise.
6776 * language.h (struct language_data): Delete la_search_name_hash
6777 field.
6778 (language_defn::search_name_hash): Declare new member function.
6779 (default_search_name_hash): Delete declaration.
6780 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6781 initializer.
6782 * objc-lang.c (objc_language_data): Likewise.
6783 * opencl-lang.c (opencl_language_data): Likewise.
6784 * p-lang.c (pascal_language_data): Likewise.
6785 * rust-lang.c (rust_language_data): Likewise.
6786 * symtab.c (search_name_hash): Update call.
6787
8e25bafe
AB
67882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6791 initializer.
6792 * c-lang.c (class compile_instance): Declare.
6793 (c_language_data): Delete la_get_compile_instance initializer.
6794 (c_language::get_compile_instance): New member function.
6795 (cplus_language_data): Delete la_get_compile_instance initializer.
6796 (cplus_language::get_compile_instance): New member function.
6797 (asm_language_data): Delete la_get_compile_instance initializer.
6798 (minimal_language_data): Likewise.
6799 * c-lang.h (c_get_compile_context): Update comment.
6800 (cplus_get_compile_context): Update comment.
6801 * compile/compile.c (compile_to_object): Update calls, don't rely
6802 on function pointer being NULL.
6803 * d-lang.c (d_language_data): Delete la_get_compile_instance
6804 initializer.
6805 * f-lang.c (f_language_data): Likewise.
6806 * go-lang.c (go_language_data): Likewise.
6807 * language.c (unknown_language_data): Likewise.
6808 (auto_language_data): Likewise.
6809 * language.h (language_data): Delete la_get_compile_instance field.
6810 (language_defn::get_compile_instance): New member function.
6811 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6812 initializer.
6813 * objc-lang.c (objc_language_data): Likewise.
6814 * opencl-lang.c (opencl_language_data): Likewise.
6815 * p-lang.c (pascal_language_data): Likewise.
6816 * rust-lang.c (rust_language_data): Likewise.
6817
4009ee92
AB
68182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6819
6820 * ada-lang.c (ada_add_all_symbols): Update comment.
6821 (ada_iterate_over_symbols): Delete, move implementation to...
6822 (ada_language::iterate_over_symbols): ...here, a new member
6823 function, rewrite to use range based for loop.
6824 (ada_language_data): Delete la_iterate_over_symbols initializer.
6825 * c-lang.c (c_language_data): Likewise.
6826 (cplus_language_data): Likewise.
6827 (asm_language_data): Likewise.
6828 (minimal_language_data): Likewise.
6829 * d-lang.c (d_language_data): Likewise.
6830 * f-lang.c (f_language_data): Likewise.
6831 * go-lang.c (go_language_data): Likewise.
6832 * language.c (unknown_language_data): Likewise.
6833 (auto_language_data): Likewise.
6834 * language.h (language_data): Delete la_iterate_over_symbols field.
6835 (language_defn::iterate_over_symbols): New member function.
6836 (LA_ITERATE_OVER_SYMBOLS): Update.
6837 * linespec.c (iterate_over_all_matching_symtabs): Update.
6838 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6839 initializer.
6840 * objc-lang.c (objc_language_data): Likewise.
6841 * opencl-lang.c (opencl_language_data): Likewise.
6842 * p-lang.c (pascal_language_data): Likewise.
6843 * rust-lang.c (rust_language_data): Likewise.
6844
54f4ca46
AB
68452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6846
6847 * ada-lang.c (ada_language_data): Delete
6848 la_lookup_transparent_type initializer.
6849 * c-lang.c (c_language_data): Likewise.
6850 (cplus_language_data): Likewise.
6851 (cplus_language::lookup_transparent_type): New member function.
6852 (asm_language_data): Delete la_lookup_transparent_type
6853 initializer.
6854 (minimal_language_data): Likewise.
6855 * d-lang.c (d_language_data): Likewise.
6856 * f-lang.c (f_language_data): Likewise.
6857 * go-lang.c (go_language_data): Likewise.
6858 * language.c (unknown_language_data): Likewise.
6859 (auto_language_data): Likewise.
6860 * language.h (struct language_data): Delete
6861 la_lookup_transparent_type field.
6862 (language_defn::lookup_transparent_type): New member function.
6863 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6864 initializer.
6865 * objc-lang.c (objc_language_data): Likewise.
6866 * opencl-lang.c (opencl_language_data): Likewise.
6867 * p-lang.c (pascal_language_data): Likewise.
6868 * rust-lang.c (rust_language_data): Likewise.
6869 * symtab.c (symbol_matches_domain): Update call.
6870
1fb314aa
AB
68712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6872
6873 * ada-lang.c (ada_language_arch_info): Delete function, move
6874 implementation to...
6875 (ada_language::language_arch_info): ...here, a new member
6876 function.
6877 (ada_language_data): Delete la_language_arch_info.
6878 * c-lang.c (c_language_data): Likewise.
6879 (c_language::language_arch_info): New member function.
6880 (cplus_language_arch_info): Delete function, move
6881 implementation to...
6882 (cplus_language::language_arch_info): ...here, a new member
6883 function.
6884 (cplus_language_data): Delete la_language_arch_info.
6885 (asm_language_data): Likewise.
6886 (asm_language::language_arch_info): New member function.
6887 (minimal_language_data): Delete la_language_arch_info.
6888 (minimal_language::language_arch_info): New member function.
6889 * d-lang.c (d_language_arch_info): Delete function, move
6890 implementation to...
6891 (d_language::language_arch_info): ...here, a new member
6892 function.
6893 (d_language_data): Delete la_language_arch_info.
6894 * f-lang.c (f_language_arch_info): Delete function, move
6895 implementation to...
6896 (f_language::language_arch_info): ...here, a new member
6897 function.
6898 (f_language_data): Delete la_language_arch_info.
6899 * go-lang.c (go_language_arch_info): Delete function, move
6900 implementation to...
6901 (go_language::language_arch_info): ...here, a new member
6902 function.
6903 (go_language_data): Delete la_language_arch_info.
6904 * language.c (unknown_language_data): Likewise.
6905 (unknown_language::language_arch_info): New member function.
6906 (auto_language_data): Delete la_language_arch_info.
6907 (auto_language::language_arch_info): New member function.
6908 (language_gdbarch_post_init): Update call to
6909 la_language_arch_info.
6910 * language.h (language_data): Delete la_language_arch_info
6911 function pointer.
6912 (language_defn::language_arch_info): New function.
6913 * m2-lang.c (m2_language_arch_info): Delete function, move
6914 implementation to...
6915 (m2_language::language_arch_info): ...here, a new member
6916 function.
6917 (m2_language_data): Delete la_language_arch_info.
6918 * objc-lang.c (objc_language_arch_info): Delete function, move
6919 implementation to...
6920 (objc_language::language_arch_info): ...here, a new member
6921 function.
6922 (objc_language_data): Delete la_language_arch_info.
6923 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6924 implementation to...
6925 (opencl_language::language_arch_info): ...here, a new member
6926 function.
6927 (opencl_language_data): Delete la_language_arch_info.
6928 * p-lang.c (pascal_language_arch_info): Delete function, move
6929 implementation to...
6930 (pascal_language::language_arch_info): ...here, a new member
6931 function.
6932 (pascal_language_data): Delete la_language_arch_info.
6933 * rust-lang.c (rust_language_arch_info): Delete function, move
6934 implementation to...
6935 (rust_language::language_arch_info): ...here, a new member
6936 function.
6937 (rust_language_data): Delete la_language_arch_info.
6938
48448202
AB
69392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6940
6941 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6942 initializer.
6943 * c-lang.c (c_language_data): Likewise.
6944 (cplus_language_data): Likewise.
6945 (cplus_language::pass_by_reference_info): New method.
6946 (asm_language_data): Delete la_pass_by_reference initializer.
6947 (minimal_language_data): Likewise.
6948 * cp-abi.c (cp_pass_by_reference): Remove use of
6949 default_pass_by_reference.
6950 * d-lang.c (d_language_data): Likewise.
6951 * f-lang.c (f_language_data): Likewise.
6952 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6953 default_pass_by_reference.
6954 * go-lang.c (go_language_data): Likewise.
6955 * language.c (language_pass_by_reference): Update.
6956 (default_pass_by_reference): Delete.
6957 (unknown_language_data): Delete la_pass_by_reference
6958 initializer.
6959 (auto_language_data): Likewise.
6960 * language.h (struct language_data): Delete la_pass_by_reference
6961 field.
6962 (language_defn::pass_by_reference_info): New member function.
6963 (default_pass_by_reference): Delete declaration.
6964 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6965 initializer.
6966 * objc-lang.c (objc_language_data): Likewise.
6967 * opencl-lang.c (opencl_language_data): Likewise.
6968 * p-lang.c (pascal_language_data): Likewise.
6969 * rust-lang.c (rust_language_data): Likewise.
6970
15e5fd35
AB
69712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * ada-lang.c (ada_read_var_value): Delete function, move
6974 implementation to...
6975 (ada_language::read_var_value): ...here.
6976 (ada_language_data): Delete la_read_var_value initializer.
6977 * c-lang.c (c_language_data): Likewise.
6978 (cplus_language_data): Likewise.
6979 (minimal_language_data): Likewise.
6980 * d-lang.c (d_language_data): Likewise.
6981 * f-lang.c (f_language_data): Likewise.
6982 * findvar.c (default_read_var_value): Rename to...
6983 (language_defn::read_var_value): ...this.
6984 * findvar.c (read_var_value): Update header comment, and change to
6985 call member function instead of function pointer.
6986 * go-lang.c (go_language_data): Likewise.
6987 * language.c (unknown_language_data): Delete la_read_var_value
6988 initializer.
6989 (auto_language_data): Likewise.
6990 * language.h (struct language_data): Delete la_read_var_value
6991 field.
6992 (language_defn::read_var_value): New member function.
6993 (default_read_var_value): Delete declaration.
6994 * m2-lang.c (m2_language_data): Delete la_read_var_value
6995 initializer.
6996 * objc-lang.c (objc_language_data): Likewise.
6997 * opencl-lang.c (opencl_language_data): Likewise.
6998 * p-lang.c (pascal_language_data): Likewise.
6999 * rust-lang.c (rust_language_data): Likewise.
7000 * value.h (default_read_var_value): Delete declaration.
7001
5bd40f2a
AB
70022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * ada-lang.c (ada_print_array_index): Delete function, move
7005 implementation to...
7006 (ada_language::print_array_index): ...here.
7007 (ada_language_data): Delete la_print_array_index initializer.
7008 * c-lang.c (c_language_data): Likewise.
7009 (cplus_language_data): Likewise.
7010 (minimal_language_data): Likewise.
7011 * d-lang.c (d_language_data): Likewise.
7012 * f-lang.c (f_language_data): Likewise.
7013 * go-lang.c (go_language_data): Likewise.
7014 * language.c (default_print_array_index): Delete function, move
7015 implementation to...
7016 (language_defn::print_array_index): ...here.
7017 (unknown_language_data): Delete la_print_array_index initializer.
7018 (auto_language_data): Likewise.
7019 * language.h (struct language_data): Delete la_print_array_index
7020 field.
7021 (language_defn::print_array_index): New member function.
7022 (LA_PRINT_ARRAY_INDEX): Update.
7023 (default_print_array_index): Delete declaration.
7024 * m2-lang.c (m2_language_data): Delete la_print_array_index
7025 initializer.
7026 * objc-lang.c (objc_language_data): Likewise.
7027 * opencl-lang.c (opencl_language_data): Likewise.
7028 * p-lang.c (pascal_language_data): Likewise.
7029 * rust-lang.c (rust_language_data): Likewise.
7030
0874fd07
AB
70312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
7032
7033 * gdb/ada-lang.c (ada_language_defn): Convert to...
7034 (ada_language_data): ...this.
7035 (class ada_language): New class.
7036 (ada_language_defn): New static global.
7037 * gdb/c-lang.c (c_language_defn): Convert to...
7038 (c_language_data): ...this.
7039 (class c_language): New class.
7040 (c_language_defn): New static global.
7041 (cplus_language_defn): Convert to...
7042 (cplus_language_data): ...this.
7043 (class cplus_language): New class.
7044 (cplus_language_defn): New static global.
7045 (asm_language_defn): Convert to...
7046 (asm_language_data): ...this.
7047 (class asm_language): New class.
7048 (asm_language_defn): New static global.
7049 (minimal_language_defn): Convert to...
7050 (minimal_language_data): ...this.
7051 (class minimal_language): New class.
7052 (minimal_language_defn): New static global.
7053 * gdb/d-lang.c (d_language_defn): Convert to...
7054 (d_language_data): ...this.
7055 (class d_language): New class.
7056 (d_language_defn): New static global.
7057 * gdb/f-lang.c (f_language_defn): Convert to...
7058 (f_language_data): ...this.
7059 (class f_language): New class.
7060 (f_language_defn): New static global.
7061 * gdb/go-lang.c (go_language_defn): Convert to...
7062 (go_language_data): ...this.
7063 (class go_language): New class.
7064 (go_language_defn): New static global.
7065 * gdb/language.c (unknown_language_defn): Remove declaration.
7066 (current_language): Initialize to nullptr, real initialization is
7067 moved to _initialize_language.
7068 (languages): Delete global.
7069 (language_defn::languages): Define.
7070 (set_language_command): Use language_defn::languages.
7071 (set_language): Likewise.
7072 (range_error): Likewise.
7073 (language_enum): Likewise.
7074 (language_def): Likewise.
7075 (add_set_language_command): Use language_def::languages for the
7076 language list, and language_def to lookup language pointers.
7077 (skip_language_trampoline): Use language_defn::languages.
7078 (unknown_language_defn): Convert to...
7079 (unknown_language_data): ...this.
7080 (class unknown_language): New class.
7081 (unknown_language_defn): New static global.
7082 (auto_language_defn): Convert to...
7083 (auto_language_data): ...this.
7084 (class auto_language): New class.
7085 (auto_language_defn): New static global.
7086 (language_gdbarch_post_init): Use language_defn::languages.
7087 (_initialize_language): Initialize current_language.
7088 * gdb/language.h (struct language_defn): Rename to...
7089 (struct language_data): ...this.
7090 (struct language_defn): New.
7091 (auto_language_defn): Delete.
7092 (unknown_language_defn): Delete.
7093 (minimal_language_defn): Delete.
7094 (ada_language_defn): Delete.
7095 (asm_language_defn): Delete.
7096 (c_language_defn): Delete.
7097 (cplus_language_defn): Delete.
7098 (d_language_defn): Delete.
7099 (f_language_defn): Delete.
7100 (go_language_defn): Delete.
7101 (m2_language_defn): Delete.
7102 (objc_language_defn): Delete.
7103 (opencl_language_defn): Delete.
7104 (pascal_language_defn): Delete.
7105 (rust_language_defn): Delete.
7106 * gdb/m2-lang.c (m2_language_defn): Convert to...
7107 (m2_language_data): ...this.
7108 (class m2_language): New class.
7109 (m2_language_defn): New static global.
7110 * gdb/objc-lang.c (objc_language_defn): Convert to...
7111 (objc_language_data): ...this.
7112 (class objc_language): New class.
7113 (objc_language_defn): New static global.
7114 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7115 (opencl_language_data): ...this.
7116 (class opencl_language): New class.
7117 (opencl_language_defn): New static global.
7118 * gdb/p-lang.c (pascal_language_defn): Convert to...
7119 (pascal_language_data): ...this.
7120 (class pascal_language): New class.
7121 (pascal_language_defn): New static global.
7122 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7123 language pointer, update comment format.
7124 * gdb/rust-lang.c (rust_language_defn): Convert to...
7125 (rust_language_data): ...this.
7126 (class rust_language): New class.
7127 (rust_language_defn): New static global.
7128
1313c56e
AB
71292020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7130
7131 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7132 member variable.
7133 <m_stmt_at_address>: New member variable.
7134 (lnp_state_machine::record_line): Don't record some lines, update
7135 tracking of is_stmt at the same address.
7136 (lnp_state_machine::lnp_state_machine): Initialise new member
7137 variables.
7138
b7ed9f3d
ST
71392020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7140
7141 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7142 "-include gnu-nat-mig.h".
7143 * gnu-nat-mig.h: New file.
7144 * gnu-nat.c: Include "gnu-nat-mig.h".
7145 (exc_server, msg_reply_server, notify_server,
7146 process_reply_server): Remove declarations.
7147
14a8ad62
ST
71482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7149
7150 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7151 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7152 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7153 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7154 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7155 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7156 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7157 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7158 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7159 to gnu_nat_target class.
7160 * gnu-nat.c: Likewise.
7161 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7162 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7163 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7164 object.
7165 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7166 instead of `gnu_target'.
7167
0af5e106
ST
71682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7169
7170 * i386-gnu-tdep.c: Include "gdbcore.h"
7171 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7172 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7173 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7174 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7175 i386_gnu_sigcontext_addr): New functions
7176 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7177 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7178 tdep.
7179
078f2fc9
ST
71802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7181
7182 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7183 before fork_inferior call. Avoid calling it if target_is_pushed returns
7184 true.
7185
53dff92c
ST
71862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7187
7188 * gnu-nat.h (gnu_target): New variable declaration.
7189 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7190 gnu_target.
7191 * gnu-nat.c (gnu_target): New variable.
7192 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7193 add_thread_silent, and add_thread calls.
7194 (gnu_nat_target::create_inferior): Pass gnu_target to
7195 add_thread_silent, thread_change_ptid call.
7196 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7197 call.
7198
5a8b8627
ST
71992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7200
7201 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7202 (gnu_nat_target::find_memory_regions): Remove unused
7203 `old_address' variable.
7204
366f550a
ST
72052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7206
7207 * gnu-nat.c: Include "gdbarch.h".
7208
f14871bf
ST
72092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7210
7211 * reply_mig_hack.awk (Error return): Cast function through
7212 void *, to bypass compiler function call check.
7213
c6887cfb
ST
72142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7215
7216 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7217 $(srcdir)/reply_mig_hack.awk.
7218
6930bffe
ST
72192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7220
7221 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7222
112c22ed
JG
72232020-05-30 Jonny Grant <jg@jguk.org>
7224
7225 * configure.ac (ACX_BUGURL): change bug URL to https.
7226
f68f85b5
PA
72272020-05-30 Pedro Alves <palves@redhat.com>
7228
7229 * cp-support.c (replace_typedefs_template): New.
7230 (replace_typedefs_qualified_name): Handle
7231 DEMANGLE_COMPONENT_TEMPLATE.
7232
976ca316
SM
72332020-05-29 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7236 dwarf2/index-cache.h, dwarf2/index-write.c,
7237 dwarf2/index-write.h, dwarf2/line-header.c,
7238 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7239 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7240 variables and fields from `dwarf2_per_objfile` to just
7241 `per_objfile` throughout.
7242
989ade05
SM
72432020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7244
7245 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7246 <push_dwarf_reg_entry_value>: Add comment.
7247
c47bae85
KB
72482020-05-28 Kevin Buettner <kevinb@redhat.com>
7249 Keith Seitz <keiths@redhat.com>
7250
7251 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7252 instead of PyEval_ReleaseLock.
7253 (class gdbpy_gil): Move to earlier in file.
7254 (finalize_python): Set gdb_python_initialized.
7255 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7256 when not initialized.
7257
44486dcf
SM
72582020-05-28 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7261 <push_dwarf_reg_entry_value>: Remove assert. Override
7262 per_objfile with caller_per_objfile.
7263
f030440d
TV
72642020-05-28 Tom de Vries <tdevries@suse.de>
7265
7266 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7267 PR gold/15646 workaround to symbol kind "type".
7268
f0fbb768
TT
72692020-05-27 Tom Tromey <tromey@adacore.com>
7270
7271 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7272
af0b2a3e
TT
72732020-05-27 Tom Tromey <tromey@adacore.com>
7274
7275 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7276 Use htab_find_with_hash.
7277 <add_abbrev>: Remove "abbrev_number" parameter.
7278 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7279 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7280 (hash_abbrev): Add comment.
7281 (abbrev_table::lookup_abbrev): Move to header file.
7282 (abbrev_table::read): Update.
7283
7d00ffec
TT
72842020-05-27 Tom Tromey <tromey@adacore.com>
7285
7286 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7287 method.
7288 <canonical_name>: New member.
7289 <raw_name>: Rename from "name".
7290 (partial_die_info): Initialize canonical_name.
7291 (scan_partial_symbols): Check raw_name.
7292 (partial_die_parent_scope, partial_die_full_name)
7293 (add_partial_symbol, add_partial_subprogram)
7294 (add_partial_enumeration, load_partial_dies): Use "name" method.
7295 (partial_die_info::name): New method.
7296 (partial_die_info::read, guess_partial_die_structure_name)
7297 (partial_die_info::fixup): Update.
7298
697bba18
TT
72992020-05-27 Tom Tromey <tromey@adacore.com>
7300
7301 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7302 <get_ref_die_offset>: Inline.
7303 <get_ref_die_offset_complaint>: New method.
7304 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7305 (attribute::get_ref_die_offset_complaint): Rename from
7306 get_ref_die_offset. Just issue complaint.
7307
c17ace43
HD
73082020-05-27 Hannes Domani <ssbssa@yahoo.de>
7309
7310 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7311
96445f0b
HD
73122020-05-27 Hannes Domani <ssbssa@yahoo.de>
7313
7314 * exec.c (exec_file_attach): Use errno value of first openp failure.
7315
ac637ec3
HD
73162020-05-27 Hannes Domani <ssbssa@yahoo.de>
7317
7318 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7319 Don't close thread handle.
7320
17ee85fc
TT
73212020-05-27 Tom Tromey <tom@tromey.com>
7322 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7325 shared_ptr.
7326 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7327 member.
7328 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7329 dwarf2_per_bfd_objfile_data_key>: New globals.
7330 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7331 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7332 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7333 shared.
7334 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7335 short-circuit when sharing.
7336 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7337 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7338
39b16f87
SM
73392020-05-27 Simon Marchi <simon.marchi@efficios.com>
7340
7341 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7342 to...
7343 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7344 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7345
fcf23d5b
SM
73462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7347
7348 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7349 build_name_components, find_name_components_bounds>:
7350 Add per_objfile parameter.
7351 (struct mapped_index) <symbol_name_at>: Likewise.
7352 (struct mapped_debug_names): Remove constructor.
7353 <dwarf2_per_objfile>: Remove field.
7354 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7355 (mapped_index_base::find_name_components_bounds,
7356 mapped_index_base::build_name_components,
7357 dw2_expand_symtabs_matching_symbol): Likewise.
7358 (class mock_mapped_index) <symbol_name_at>: Likewise.
7359 (check_match): Likewise.
7360 (check_find_bounds_finds): Likewise.
7361 (test_mapped_index_find_name_component_bounds): Update.
7362 (CHECK_MATCH): Update.
7363 (dw2_expand_symtabs_matching): Update.
7364 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7365 per_objfile parameter.
7366 <find_vec_in_debug_names>: Likewise.
7367 <m_per_objfile>: New field.
7368 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7369 parameter.
7370 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7371 (dw2_debug_names_iterator::next): Update.
7372 (dw2_debug_names_lookup_symbol): Update.
7373 (dw2_debug_names_expand_symtabs_for_function): Update.
7374 (dw2_debug_names_map_matching_symbols): Update.
7375 (dw2_debug_names_expand_symtabs_matching): Update.
7376 (dwarf2_read_debug_names): Update.
7377
7188ed02
SM
73782020-05-27 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7381 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7382 move to dwarf2_per_objfile.
7383 <read_in_chain>: Remove.
7384 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7385 remove_all_cus, age_comp_units>: New methods.
7386 <m_dwarf2_cus>: New member.
7387 (struct dwarf2_per_cu_data) <cu>: Remove.
7388 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7389 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7390 moved to methods of dwarf2_per_objfile.
7391 (dwarf2_clear_marks): Remove.
7392 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7393 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7394 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7395 (dwarf2_per_objfile::remove_all_cus): New.
7396 (class free_cached_comp_units) <~free_cached_comp_units>:
7397 Update.
7398 (load_cu): Update.
7399 (dw2_do_instantiate_symtab): Adjust.
7400 (fill_in_sig_entry_from_dwo_entry): Adjust.
7401 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7402 (cutu_reader::cutu_reader): Likewise.
7403 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7404 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7405 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7406 and dwarf2_per_objfile::age_comp_units.
7407 (load_partial_comp_unit): Update.
7408 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7409 (process_queue): Likewise.
7410 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7411 backlink.
7412 (dwarf2_read_addr_index): Likewise.
7413 (follow_die_offset): Likewise.
7414 (dwarf2_fetch_die_loc_sect_off): Likewise.
7415 (dwarf2_fetch_constant_bytes): Likewise.
7416 (dwarf2_fetch_die_type_sect_off): Likewise.
7417 (follow_die_sig_1): Likewise.
7418 (load_full_type_unit): Likewise.
7419 (read_signatured_type): Likewise.
7420 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7421 (dwarf2_cu::~dwarf2_cu): Remove.
7422 (dwarf2_per_objfile::get_cu): New.
7423 (dwarf2_per_objfile::set_cu): New.
7424 (age_cached_comp_units): Rename to...
7425 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7426 to std::unordered_map.
7427 (free_one_cached_comp_unit): Rename to...
7428 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7429 to std::unordered_map.
7430 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7431 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7432 a dwarf2_per_objfile in data.
7433 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7434 (dwarf2_clear_marks): Remove.
7435
2e671100
SM
74362020-05-27 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7439 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7440 (init_tu_and_read_dwo_dies): Likewise.
7441 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7442 (cutu_reader::cutu_reader): Likewise.
7443 (load_partial_comp_unit): Likewise.
7444 (process_psymtab_comp_unit): Update.
7445 (build_type_psymtabs_1): Update.
7446 (process_skeletonless_type_unit): Update.
7447 (load_full_comp_unit): Update.
7448 (find_partial_die): Update.
7449 (dwarf2_read_addr_index): Update.
7450 (read_signatured_type): Update.
7451
2e6a9f79
SM
74522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7455 m_header_read_in>: New fields.
7456 <get_header>: New method.
7457 * dwarf2/read.c (per_cu_header_read_in): Remove.
7458 (dwarf2_per_cu_data::get_header): New.
7459 (dwarf2_per_cu_data::addr_size): Update.
7460 (dwarf2_per_cu_data::offset_size): Update.
7461 (dwarf2_per_cu_data::ref_addr_size): Update.
7462
1b555f17
SM
74632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7464
7465 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7466 (dw2_do_instantiate_symtab): Update.
7467 (queue_and_load_all_dwo_tus): Change parameter from
7468 dwarf2_per_cu_data to dwarf2_cu.
7469 (dwarf2_fetch_die_loc_sect_off): Update.
7470 (dwarf2_fetch_constant_bytes): Update.
7471 (dwarf2_fetch_die_type_sect_off): Update.
7472
8fc0b21d
SM
74732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7474
7475 * dwarf2/read.c (process_full_comp_unit,
7476 process_full_type_unit): Remove per_cu, per_objfile paramters.
7477 Add dwarf2_cu parameter.
7478 (process_queue): Update.
7479
168c9250
SM
74802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7481
7482 * dwarf2/read.c (create_cu_from_index_list): Replace
7483 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7484 (create_cus_from_index_list): Likewise.
7485 (create_cus_from_index): Likewise.
7486 (create_signatured_type_table_from_index): Likewise.
7487 (create_cus_from_debug_names_list): Likewise.
7488 (create_cus_from_debug_names): Likewise.
7489 (dwarf2_read_gdb_index): Update.
7490 (dwarf2_read_debug_names): Update.
7491
e286671b
TT
74922020-05-27 Tom Tromey <tom@tromey.com>
7493 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * dwarf2/read.h (struct dwarf2_per_objfile)
7496 <get_type_for_signatured_type, set_type_for_signatured_type>:
7497 New methods.
7498 <m_type_map>: New member.
7499 (struct signatured_type) <type>: Remove.
7500 * dwarf2/read.c
7501 (dwarf2_per_objfile::get_type_for_signatured_type,
7502 dwarf2_per_objfile::set_type_for_signatured_type): New.
7503 (get_signatured_type): Use new methods.
7504
8adb8487
TT
75052020-05-27 Tom Tromey <tom@tromey.com>
7506 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7509 (struct dwarf2_per_objfile) <type_units>: New member.
7510 <get_type_unit_group_unshareable>: New method.
7511 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7512 num_symtabs, symtabs>: Remove; move to
7513 type_unit_group_unshareable.
7514 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7515 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7516 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7517
127bbf4b
SM
75182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * dwarf2/read.h (struct dwarf2_per_cu_data):
7521 <dwarf2_per_objfile>: Remove.
7522 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7523 dwarf2_per_objfile.
7524 (create_signatured_type_table_from_index): Likewise.
7525 (create_signatured_type_table_from_debug_names): Likewise.
7526 (create_debug_type_hash_table): Likewise.
7527 (fill_in_sig_entry_from_dwo_entry): Likewise.
7528 (create_type_unit_group): Likewise.
7529 (read_comp_units_from_section): Likewise.
7530 (create_cus_hash_table): Likewise.
7531
f6e649dd
SM
75322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7535 dwarf2_per_cu_data::dwarf2_per_objfile.
7536 (compute_compunit_symtab_includes): Likewise.
7537 (dwarf2_cu::start_symtab): Likewise.
7538
aa66c379
SM
75392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7540
7541 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7542 parameter.
7543 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7544 (read_namespace_alias): Update.
7545 (lookup_die_type): Update.
7546 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7547 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7548 Update.
7549 (disassemble_dwarf_expression): Update.
7550
120ce1b5
SM
75512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * dwarf2/read.h (struct dwarf2_queue_item): Add
7554 dwarf2_per_objfile parameter, assign new parameter.
7555 <per_objfile>: New field.
7556 * dwarf2/read.c (free_one_cached_comp_unit): Add
7557 dwarf2_per_objfile parameter.
7558 (queue_comp_unit): Likewise.
7559 (dw2_do_instantiate_symtab): Update.
7560 (process_psymtab_comp_unit): Update.
7561 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7562 (process_imported_unit_die): Update.
7563 (queue_and_load_dwo_tu): Update.
7564 (follow_die_offset): Update.
7565 (follow_die_sig_1): Update.
7566
9f47c707
SM
75672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7568
7569 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7570 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7571 (read_call_site_scope): Assign per_objfile.
7572 (dwarf2_per_cu_data::objfile): Remove.
7573 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7574 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7575 dwarf2_per_objfile parameter.
7576 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7577 dwarf2_per_objfile parameter.
7578 (dwarf_expr_reg_to_entry_parameter): Add output
7579 dwarf2_per_objfile parameter.
7580 (locexpr_get_frame_base): Update.
7581 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7582 <push_dwarf_reg_entry_value>: Update.
7583 <call_site_to_target_addr>: Update.
7584 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7585 parameter.
7586 (value_of_dwarf_reg_entry): Update.
7587 (rw_pieced_value): Update.
7588 (indirect_synthetic_pointer): Update.
7589 (dwarf2_evaluate_property): Update.
7590 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7591 parameter.
7592 (locexpr_read_variable): Update.
7593 (locexpr_get_symbol_read_needs): Update.
7594 (loclist_read_variable): Update.
7595
14095eb3
SM
75962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7597
7598 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7599 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7600 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7601 parameter.
7602 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7603 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7604 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7605 parameter.
7606 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7607 sect_variable_value): Add dwarf2_per_objfile parameter.
7608 (class dwarf_evaluate_loc_desc) <dwarf_call,
7609 dwarf_variable_value>: Update.
7610 (fetch_const_value_from_synthetic_pointer): Add
7611 dwarf2_per_objfile parameter.
7612 (fetch_const_value_from_synthetic_pointer): Update.
7613 (coerced_pieced_ref): Update.
7614 (class symbol_needs_eval_context) <dwarf_call,
7615 dwarf_variable_value>: Update.
7616 (dwarf2_compile_expr_to_ax): Update.
7617
3c3cd3d4
SM
76182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7621 parameter.
7622 (dwarf2_evaluate_loc_desc_full): Update.
7623
82ca3f51
SM
76242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7625
7626 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7627 parameter.
7628 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7629 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7630 dwarf2_per_objfile parameter.
7631 (decode_debug_loc_dwo_addresses): Likewise.
7632 (dwarf2_find_location_expression): Update.
7633 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7634 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7635 parameter.
7636 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7637 parameter.
7638 (locexpr_describe_location_1): Likewise.
7639 (locexpr_describe_location): Update.
7640
4b167ea1
SM
76412020-05-27 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7644 Remove.
7645 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7646 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7647 (dwarf2_compile_property_to_c): Update.
7648 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7649 use text offset from objfile.
7650 (locexpr_tracepoint_var_ref): Update.
7651 (locexpr_generate_c_location): Update.
7652 (loclist_describe_location): Update.
7653 (loclist_tracepoint_var_ref): Update.
7654 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7655 dwarf2_per_objfile parameter.
7656 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7657 use text offset from objfile.
7658 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7659
89b07335
SM
76602020-05-27 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * dwarf2/expr.h (struct dwarf_expr_context)
7663 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7664 <offset>: Remove.
7665 <per_objfile>: New member.
7666 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7667 dwarf2_per_objfile parameter. Don't set offset, set
7668 per_objfile.
7669 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7670 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7671 a dwarf2_per_objfile object instead of an offset.
7672 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7673 constructor.
7674 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7675 to dwarf2_expr_executor constructor. Don't set offset.
7676 (dwarf2_fetch_cfa_info): Update.
7677 (struct dwarf2_frame_cache) <text_offset>: Remove.
7678 <per_objfile>: New field.
7679 (dwarf2_frame_cache): Update.
7680 (dwarf2_frame_prev_register): Update.
7681 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7682 <dwarf_evaluate_loc_desc>: Add constructor.
7683 (dwarf2_evaluate_loc_desc_full): Update.
7684 (dwarf2_locexpr_baton_eval): Update.
7685 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7686 Add constructor.
7687 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7688
293e7e51
SM
76892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7690
7691 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7692 addr_sized_int_type>: Move to dwarf2_cu.
7693 <int_type>: Move to dwarf2_per_objfile.
7694 (struct dwarf2_per_objfile) <int_type>: Move here.
7695 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7696 addr_sized_int_type>: Move here.
7697 (read_func_scope): Update.
7698 (read_array_type): Update.
7699 (read_tag_string_type): Update.
7700 (attr_to_dynamic_prop): Update.
7701 (dwarf2_per_cu_data::int_type): Rename to...
7702 (dwarf2_per_objfile::int_type): ... this.
7703 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7704 (dwarf2_cu::addr_sized_int_type): ... this.
7705 (read_subrange_type): Update.
7706 (dwarf2_per_cu_data::addr_type): Rename to...
7707 (dwarf2_cu::addr_type): ... this.
7708 (set_die_type): Update.
7709
64874a40
SM
77102020-05-27 Simon Marchi <simon.marchi@efficios.com>
7711
7712 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7713 data through per_cu->cu.
7714
4ab09049
SM
77152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7716
7717 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7718 dwarf2_per_cu_data parameter fo dwarf2_cu.
7719 (lookup_dwo_type_unit): Likewise.
7720 (read_cutu_die_from_dwo): Likewise.
7721 (lookup_dwo_unit): Likewise.
7722 (open_and_init_dwo_file): Likewise.
7723 (lookup_dwo_cutu): Likewise.
7724 (lookup_dwo_comp_unit): Likewise.
7725 (lookup_dwo_type_unit): Likewise.
7726 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7727 (cutu_reader::cutu_reader): Update.
7728
47b14e86
SM
77292020-05-27 Simon Marchi <simon.marchi@efficios.com>
7730
7731 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7732 parameter.
7733 (process_full_type_unit): Likewise.
7734 (process_queue): Update.
7735
43182c09
SM
77362020-05-27 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * dwarf2/read.c (recursively_compute_inclusions): Add
7739 dwarf2_per_objfile parameter.
7740 (compute_compunit_symtab_includes): Likewise.
7741 (process_cu_includes): Update.
7742
7aa104c4
SM
77432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7744
7745 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7746 parameter.
7747 (create_type_unit_group): Update.
7748 (process_psymtab_comp_unit_reader): Update.
7749 (build_type_psymtabs_reader): Update.
7750
e3beb21d
SM
77512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7754 object through m_this_cu->cu.
7755
d460f660
SM
77562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7757
7758 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7759 the info parameter.
7760 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7761
ab432490
SM
77622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7765 per_objfile parameter.
7766 (load_full_type_unit): Add per_objfile parameter.
7767 (read_signatured_type): Likewise.
7768 (load_full_comp_unit): Likewise.
7769 (load_cu): Likewise.
7770 (dw2_do_instantiate_symtab): Likewise.
7771 (dw2_get_file_names): Likewise.
7772 (dw2_map_symtabs_matching_filename): Update.
7773 (dw_expand_symtabs_matching_file_matcher): Update.
7774 (dw2_map_symbol_filenames): Update.
7775 (process_psymtab_comp_unit): Add per_objfile parameter.
7776 (build_type_psymtabs_1): Update.
7777 (process_skeletonless_type_unit): Update.
7778 (dwarf2_build_psymtabs_hard): Update.
7779 (load_partial_comp_unit): Add per_objfile parameter.
7780 (scan_partial_symbols): Update.
7781 (load_full_comp_unit): Add per_objfile parameter.
7782 (process_imported_unit_die): Update.
7783 (create_cus_hash_table): Update.
7784 (find_partial_die): Update.
7785 (dwarf2_read_addr_index): Update.
7786 (follow_die_offset): Update.
7787 (dwarf2_fetch_die_loc_sect_off): Update.
7788 (dwarf2_fetch_constant_bytes): Update.
7789 (dwarf2_fetch_die_type_sect_off): Update.
7790 (follow_die_sig_1): Update.
7791 (load_full_type_unit): Add per_objfile parameter.
7792 (read_signatured_type): Likewise.
7793
313bad1b
SM
77942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7797 of objfile_name.
7798
c3699833
SM
77992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7800
7801 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7802 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7803 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7804 field.
7805 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7806 (create_cus_from_index): Update.
7807 (dwarf2_read_gdb_index): Update.
7808 (create_cus_from_debug_names): Update.
7809 (dwarf2_read_debug_names): Update.
7810 (get_abbrev_section_for_cu): Update.
7811 (create_all_comp_units): Update.
7812 (read_attribute_value): Update.
7813 (get_debug_line_section): Update.
7814 * dwarf2/index-cache.c (index_cache::store): Update.
7815 * dwarf2/index-write.c (save_gdb_index_command): Update.
7816 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7817
1859c670
SM
78182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7819
7820 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7821 member.
7822 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7823 dwarf2_per_cu_data::per_bfd.
7824 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7825 (create_type_unit_group): Likewise.
7826 (queue_comp_unit): Remove reference to
7827 per_cu->dwarf2_per_objfile.
7828 (maybe_queue_comp_unit): Likewise.
7829 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7830 (create_cus_hash_table): Assign new field.
7831
5e22e966
SM
78322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7833
7834 * dwarf2/read.c: Replace
7835 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7836 dwarf2_cu->per_objfile throughout.
7837
97a1449a
SM
78382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7841 parameter, don't use per_cu->dwarf2_per_objfile.
7842 (dw2_instantiate_symtab): Likewise.
7843 (dw2_find_last_source_symtab): Update.
7844 (dw2_map_expand_apply): Update.
7845 (dw2_lookup_symbol): Update.
7846 (dw2_expand_symtabs_for_function): Update.
7847 (dw2_expand_all_symtabs): Update.
7848 (dw2_expand_symtabs_with_fullname): Update.
7849 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7850 don't use per_cu->dwarf2_per_objfile.
7851 (dw2_expand_marked_cus): Update.
7852 (dw2_find_pc_sect_compunit_symtab): Update.
7853 (dw2_debug_names_lookup_symbol): Update.
7854 (dw2_debug_names_expand_symtabs_for_function): Update.
7855 (dw2_debug_names_map_matching_symbols): Update.
7856 (dwarf2_psymtab::expand_psymtab): Update.
7857
9e021579
SM
78582020-05-27 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7861 <per_objfile>: New member.
7862 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7863 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7864 call to dwarf2_cu.
7865 (cutu_reader::cutu_reader): Update.
7866 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7867
ae090bdb
SM
78682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7869
7870 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7871 struct dwarf2_per_objfile.
7872 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7873 dwarf2_per_bfd.
7874 * dwarf2/read.c (set_die_type): Update.
7875 (get_die_type_at_offset): Update.
7876
af758d11
SM
78772020-05-27 Tom Tromey <tom@tromey.com>
7878 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7881 method.
7882 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7883 get_symtab, set_symtab>: New methods.
7884 <m_symtabs>: New field.
7885 (struct dwarf2_psymtab): Derive from partial_symtab.
7886 <readin_p, get_compunit_symtab>: Declare methods.
7887 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7888 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7889 New methods.
7890 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7891 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7892 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7893 (dw2_symtab_iter_next, dw2_print_stats)
7894 (dw2_expand_symtabs_with_fullname)
7895 (dw2_expand_symtabs_matching_one)
7896 (dw_expand_symtabs_matching_file_matcher)
7897 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7898 (dw2_debug_names_iterator::next)
7899 (dw2_debug_names_map_matching_symbols)
7900 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7901 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7902 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7903 New methods.
7904 (get_compunit_symtab, process_full_comp_unit)
7905 (process_full_type_unit): Update.
7906 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7907
5989a64e
SM
79082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7909
7910 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7911 then introduce a new dwarf2_per_objfile type.
7912 <read_line_string>: Move to the new dwarf2_per_objfile type.
7913 <objfile>: Likewise.
7914 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7915 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7916 dwarf2_per_objfile->per_bfd.
7917 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7918 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7919 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7920 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7921 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7922 (dwarf2_per_objfile::locate_sections): Rename to...
7923 (dwarf2_per_bfd::locate_sections): ... this.
7924 (dwarf2_per_objfile::get_cutu): Rename to...
7925 (dwarf2_per_bfd::get_cutu): ... this.
7926 (dwarf2_per_objfile::get_cu): Rename to...
7927 (dwarf2_per_bfd::get_cu): ... this.
7928 (dwarf2_per_objfile::get_tu): Rename to...
7929 (dwarf2_per_bfd::get_tu): ... this.
7930 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7931 (dwarf2_per_bfd::allocate_per_cu): ... this.
7932 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7933 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7934 (get_gdb_index_contents_ftype): Change parameter from
7935 dwarf2_per_objfile to dwarf2_per_bfd.
7936 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7937 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7938
a50264ba
TT
79392020-05-27 Tom Tromey <tom@tromey.com>
7940 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7943 (allocate_piece_closure): Set "per_objfile" member.
7944 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7945 (locexpr_describe_location, loclist_describe_location): Use new
7946 member.
7947 * dwarf2/read.c (read_call_site_scope)
7948 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7949 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7950 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7951 handle_data_member_location): Set per_objfile member.
7952 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7953 member.
7954 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7955
d3473f0c
TT
79562020-05-27 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7959 allocate_signatured_type>: Declare new methods.
7960 <m_num_psymtabs>: New member.
7961 (struct dwarf2_per_cu_data) <index>: New member.
7962 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7963 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7964 (create_cu_from_index_list): Use allocate_per_cu.
7965 (create_signatured_type_table_from_index)
7966 (create_signatured_type_table_from_debug_names)
7967 (create_debug_type_hash_table, add_type_unit)
7968 (read_comp_units_from_section): Use allocate_signatured_type.
7969
5717c425
TT
79702020-05-27 Tom Tromey <tom@tromey.com>
7971
7972 * psymtab.c (partial_map_expand_apply)
7973 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7974 (psym_lookup_global_symbol_language)
7975 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7976 (psym_print_stats, psym_expand_symtabs_for_function)
7977 (psym_map_symbol_filenames, psym_map_matching_symbols)
7978 (psym_expand_symtabs_matching)
7979 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7980 (maintenance_check_psymtabs): Update.
7981 * psympriv.h (struct partial_symtab) <readin_p,
7982 get_compunit_symtab>: Add objfile parameter.
7983 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7984 Likewise.
7985 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7986 get_compunit_symtab>: Likewise.
7987 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7988
45940949
TT
79892020-05-27 Tom Tromey <tom@tromey.com>
7990
7991 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7992 member.
7993 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7994 (create_cu_from_index_list)
7995 (create_signatured_type_table_from_index)
7996 (create_signatured_type_table_from_debug_names)
7997 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7998 (dwarf2_create_include_psymtab)
7999 (create_debug_type_hash_table, add_type_unit)
8000 (create_type_unit_group, read_comp_units_from_section)
8001 (dwarf2_compute_name, create_cus_hash_table)
8002 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
8003 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
8004 obstack.
8005 (dw2_get_real_path): Likewise. Change argument to
8006 dwarf2_per_objfile.
8007
f8c6d152
LM
80082020-05-27 Luis Machado <luis.machado@linaro.org>
8009
8010 PR tdep/26000
8011 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
8012 for ldrd (immediate).
8013
e98d2e6d
PW
80142020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8015
8016 * command.h: Add comment giving the name of class_tui.
8017 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
8018 create the fake command for the help for class_tui.
8019
53a47a3e
TT
80202020-05-26 Tom Tromey <tromey@adacore.com>
8021
8022 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
8023 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
8024 (val_atr): New function.
8025 (value_val_atr): Use it.
8026 * ada-valprint.c (print_optional_low_bound): Change low bound
8027 handling for enums.
8028 (val_print_packed_array_elements): Don't call discrete_position.
8029 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
8030 discrete_position for enum types.
8031 * language.c (default_print_array_index): Change type.
8032 * language.h (struct language_defn) <la_print_array_index>: Add
8033 index_type parameter, change type of index_value.
8034 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
8035 (default_print_array_index): Update.
8036 * valprint.c (maybe_print_array_index): Don't call
8037 value_from_longest. Update.
8038 (value_print_array_elements): Don't call discrete_position.
8039
0bc2354b
TT
80402020-05-26 Tom Tromey <tromey@adacore.com>
8041
8042 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
8043 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
8044
1218a4bf
CDA
80452020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
8046
8047 PR gdb/13519
8048 * avr-tdep.c (avr_integer_to_address): Return data or code
8049 address accordingly to the second 'type' argument of the
8050 function.
8051
92651b1d
MW
80522020-05-25 Michael Weghorn <m.weghorn@posteo.de>
8053
8054 * infcmd.c, inferior.h: (construct_inferior_arguments):
8055 Moved function from here to gdbsupport/common-inferior.{h,cc}
8056
0a4f5f8c
TT
80572020-05-23 Tom Tromey <tom@tromey.com>
8058
8059 Revert commit eca1f90c:
8060 * NEWS: Remove entry for completion styling.
8061 * completer.c (_rl_completion_prefix_display_length): Move
8062 declaration later.
8063 (gdb_fnprint): Revert.
8064 (gdb_display_match_list_1): Likewise.
8065 * cli/cli-style.c (completion_prefix_style)
8066 (completion_difference_style, completion_suffix_style): Remove.
8067 (_initialize_cli_style): Revert.
8068 * cli/cli-style.h (completion_prefix_style)
8069 (completion_difference_style, completion_suffix_style): Don't
8070 declare.
8071
e08bd6c5
PA
80722020-05-24 Pedro Alves <palves@redhat.com>
8073
8074 * symtab.c (completion_list_add_name): Return boolean indication
8075 of whether the symbol matched.
8076 (completion_list_add_symbol): Don't try to remove C++ aliases if
8077 the symbol didn't match in the first place.
8078 * symtab.h (completion_list_add_name): Return bool.
8079
ceacbf6e
SM
80802020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8081
8082 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8083 type::field.
8084
26f16254
JB
80852020-05-23 Joel Brobecker <brobecker@adacore.com>
8086
8087 GDB 9.2 released.
8088
eca1f90c
TT
80892020-05-23 Tom Tromey <tom@tromey.com>
8090
8091 * NEWS: Add entry for completion styling.
8092 * completer.c (_rl_completion_prefix_display_length): Move
8093 declaration earlier.
8094 (gdb_fnprint): Use completion_style.
8095 (gdb_display_match_list_1): Likewise.
8096 * cli/cli-style.c (completion_prefix_style)
8097 (completion_difference_style, completion_suffix_style): New
8098 globals.
8099 (_initialize_cli_style): Register new globals.
8100 * cli/cli-style.h (completion_prefix_style)
8101 (completion_difference_style, completion_suffix_style): Declare.
8102
51e2cfa2
PA
81032020-05-23 Pedro Alves <palves@redhat.com>
8104
8105 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8106 (parse_escape): Use ISDIGIT instead of isdigit.
8107 (puts_debug): Use gdb_isprint instead of isprint.
8108 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8109 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8110 ISSPACE instead of isspace.
8111 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8112 instead of isspace.
8113 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8114 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8115 instead of isxdigit and ISDIGIT instead of isdigit.
8116
80fc5e77
SM
81172020-05-22 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * gdbtypes.h (struct type) <field>: New method.
8120 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8121 or type::field.
8122
3cabb6b0
SM
81232020-05-22 Simon Marchi <simon.marchi@efficios.com>
8124
8125 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8126 (TYPE_FIELDS): Use type::fields. Change all call sites that
8127 modify the propery to use type::set_fields instead.
8128
1f704f76
SM
81292020-05-22 Simon Marchi <simon.marchi@efficios.com>
8130
8131 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8132 type::num_fields instead.
8133
5e33d5f4
SM
81342020-05-22 Simon Marchi <simon.marchi@efficios.com>
8135
8136 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8137 methods.
8138 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8139 that modify the number of fields to use type::set_num_fields
8140 instead.
8141
9392ebb3
TT
81422020-05-22 Tom Tromey <tromey@adacore.com>
8143
8144 * compile/compile-object-load.h (munmap_list_free): Don't
8145 declare.
8146
7c13f4e8
AB
81472020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8148
8149 * annotate.c (annotate_source_line): Update return type, add call
8150 to update current symtab and line.
8151 * annotate.h (annotate_source_line): Update return type, and
8152 extend header comment.
8153 * source.c (info_line_command): Check annotation_level before
8154 calling annotate_source_line.
8155 * stack.c (print_frame_info): If calling annotate_source_line
8156 returns true, then don't print any other source line information.
8157
aa370940
SM
81582020-05-21 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8161
84d53fa9
SM
81622020-05-21 Simon Marchi <simon.marchi@efficios.com>
8163
8164 * coffread.c (patch_type): Remove NULL check before xfree.
8165 * corefile.c (set_gnutarget): Likewise.
8166 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8167 * exec.c (build_section_table): Likewise.
8168 * remote.c (remote_target::pass_signals): Likewise.
8169 * utils.c (n_spaces): Likewise.
8170 * cli/cli-script.c (document_command): Likewise.
8171 * i386-windows-tdep.c (core_process_module_section): Likewise.
8172 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8173
9d428aae
SM
81742020-05-20 Simon Marchi <simon.marchi@efficios.com>
8175
8176 * symfile.c (reread_symbols): Clear objfile's section_offsets
8177 vector and section indices, re-compute them by calling
8178 sym_offsets.
8179
250106a7
TT
81802020-05-20 Tom Tromey <tromey@adacore.com>
8181
8182 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8183 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8184
9a0bacfb
TV
81852020-05-20 Tom de Vries <tdevries@suse.de>
8186
8187 PR symtab/25833
8188 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8189
7b958a48
AM
81902020-05-20 Alan Modra <amodra@gmail.com>
8191
8192 PR 25993
8193 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8194 bfd_set_filename.
8195 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8196 passed to bfd_set_filename.
8197 * symfile-mem.c (add_vsyscall_page): Likewise for string
8198 passed to symbol_file_add_from_memory.
8199 (symbol_file_add_from_memory): Make name param a const char* and
8200 don't strdup.
8201
c7e97679
AM
82022020-05-20 Alan Modra <amodra@gmail.com>
8203
8204 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8205 rather than accessing bfd->filename directly.
8206 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8207 and use bfd_section_name.
8208 * dwarf2/frame.c (decode_frame_entry): Likewise.
8209 * exec.c (exec_set_section_address): Likewise.
8210 * solib-aix.c (solib_aix_bfd_open): Likewise.
8211 * stap-probe.c (get_stap_base_address): Likewise.
8212 * symfile.c (reread_symbols): Likewise.
8213
563c591b
TT
82142020-05-19 Tom Tromey <tromey@adacore.com>
8215
8216 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8217
f408d82c
SM
82182020-05-19 Simon Marchi <simon.marchi@efficios.com>
8219
8220 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8221
98c59b52
PA
82222020-05-19 Pedro Alves <palves@redhat.com>
8223
8224 * NEWS (set exec-file-mismatch): Adjust entry.
8225 * exec.c: Include "build-id.h".
8226 (validate_exec_file): Try to match build IDs instead of filenames.
8227 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8228 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8229 and pass down 'warn_if_slow'.
8230 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8231 gdb_bfd_open_closure to pass it down.
8232 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8233
4111f652
PA
82342020-05-19 Pedro Alves <palves@redhat.com>
8235
8236 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8237 * target.c (target_fileio_open_1): Rename to target_fileio_open
8238 and make extern. Use bool.
8239 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8240 (target_fileio_read_alloc_1): Adjust.
8241 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8242 (target_fileio_open_warn_if_slow): Delete declaration.
8243
ad80db5b
PA
82442020-05-19 Pedro Alves <palves@redhat.com>
8245
8246 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8247 Adjust all callers.
8248
1d6ce4d3
YS
82492020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8250
8251 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8252 whether disp is negative.
8253
9005fbbb
SM
82542020-05-19 Simon Marchi <simon.marchi@efficios.com>
8255
8256 * symfile.h (struct symfile_segment_data)
8257 <~symfile_segment_data>: Remove.
8258 <segment_info>: Change to std::vector.
8259 * symfile.c (default_symfile_segments): Update.
8260 * elfread.c (elf_symfile_segments): Update.
8261
68b888ff
SM
82622020-05-19 Simon Marchi <simon.marchi@efficios.com>
8263
8264 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8265 <segments>: New.
8266 <segment_bases, segment_sizes>: Remove.
8267 * symfile.c (default_symfile_segments): Update.
8268 * elfread.c (elf_symfile_segments): Update.
8269 * remote.c (remote_target::get_offsets): Update.
8270 * solib-target.c (solib_target_relocate_section_addresses):
8271 Update.
8272
62982abd
SM
82732020-05-19 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * symfile.h (struct symfile_segment_data): Initialize fields.
8276 <~symfile_segment_data>: Add.
8277 (symfile_segment_data_up): New.
8278 (struct sym_fns) <sym_segments>: Return a
8279 symfile_segment_data_up.
8280 (default_symfile_segments): Return a symfile_segment_data_up.
8281 (free_symfile_segment_data): Remove.
8282 (get_symfile_segment_data): Return a symfile_segment_data_up.
8283 * symfile.c (default_symfile_segments): Likewise.
8284 (get_symfile_segment_data): Likewise.
8285 (free_symfile_segment_data): Remove.
8286 (symfile_find_segment_sections): Update.
8287 * elfread.c (elf_symfile_segments): Return a
8288 symfile_segment_data_up.
8289 * remote.c (remote_target::get_offsets): Update.
8290 * solib-target.c (solib_target_relocate_section_addresses):
8291 Update.
8292 * symfile-debug.c (debug_sym_segments): Return a
8293 symfile_segment_data_up.
8294
7f204339
RO
82952020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8296
e52a0f1b
RO
8297 PR build/25981
8298 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8299 Hardcode register numbers.
8300
7f204339
RO
8301 PR build/25981
8302 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8303 procfs_find_LDT_entry): Remove.
8304 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8305 procfs_find_LDT_entry): Remove.
8306 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8307 Remove.
8308
7f32a4d5
PA
83092020-05-17 Pedro Alves <palves@redhat.com>
8310 Andrew Burgess <andrew.burgess@embecosm.com>
8311 Keno Fischer <keno@juliacomputing.com>
8312
8313 PR gdb/25741
8314 * breakpoint.c (build_target_condition_list): Update comments.
8315 (build_target_command_list): Update comments and skip matching
8316 locations.
8317 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8318 a separate function. Simplify "set breakpoint auto-hw off"
8319 handling.
8320 (insert_breakpoints): Update comment.
8321 (tracepoint_locations_match): New parameter. For breakpoints,
8322 compare location types too, if the caller wants to.
8323 (handle_automatic_hardware_breakpoints): New functions.
8324 (bp_location_is_less_than): Also sort by location type and
8325 hardware breakpoint length.
8326 (update_global_location_list): Handle "set breakpoint auto-hw on"
8327 here.
8328 (update_breakpoint_locations): Ask breakpoint_locations_match to
8329 ignore location types.
8330
7d93a1e0
SM
83312020-05-16 Simon Marchi <simon.marchi@efficios.com>
8332
8333 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8334 type::name instead.
8335
d0e39ea2
SM
83362020-05-16 Simon Marchi <simon.marchi@efficios.com>
8337
8338 * gdbtypes.h (struct type) <name, set_name>: New methods.
8339 (TYPE_CODE): Use type::name. Change all call sites used to set
8340 the name to use type::set_name instead.
8341
2dab0c7b
TT
83422020-05-16 Tom Tromey <tom@tromey.com>
8343
8344 * top.c (quit_force): Update.
8345 * infrun.c (handle_no_resumed): Update.
8346 * top.h (all_uis): New function.
8347 (ALL_UIS): Remove.
8348
59f7bd8d
SM
83492020-05-16 Simon Marchi <simon.marchi@efficios.com>
8350
8351 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8352
9bf058f0
PA
83532020-05-16 Pedro Alves <palves@redhat.com>
8354
8355 * ia64-linux-nat.c
8356 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8357 Declare method.
8358 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8359
8f86ae1a
SM
83602020-05-15 Simon Marchi <simon.marchi@efficios.com>
8361
8362 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8363 (sparc64_adi_info): Likewise.
8364
d6bc0792
TT
83652020-05-15 Tom Tromey <tom@tromey.com>
8366
8367 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8368 block_objfile.
8369 (lookup_objfile_from_block): Remove.
8370 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8371 (lookup_global_symbol): Use block_objfile.
8372 * symtab.h (lookup_objfile_from_block): Don't declare.
8373 * printcmd.c (clear_dangling_display_expressions): Use
8374 block_objfile.
8375 * parse.c (operator_check_standard): Use block_objfile.
8376
8c14c3a3
TT
83772020-05-15 Tom Tromey <tom@tromey.com>
8378
8379 * language.c (language_alloc_type_symbol): Set
8380 SYMBOL_SECTION.
8381 * symtab.c (initialize_objfile_symbol): Remove.
8382 (allocate_symbol): Remove.
8383 (allocate_template_symbol): Remove.
8384 * dwarf2/read.c (fixup_go_packaging): Use "new".
8385 (new_symbol): Use "new".
8386 (read_variable): Don't call initialize_objfile_symbol. Use
8387 "new".
8388 (read_func_scope): Use "new".
8389 * xcoffread.c (process_xcoff_symbol): Don't call
8390 initialize_objfile_symbol.
8391 (SYMBOL_DUP): Remove.
8392 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8393 "new".
8394 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8395 (allocate_template_symbol): Don't declare.
8396 (struct symbol): Add copy constructor. Change defaults.
8397 * jit.c (finalize_symtab): Use "new".
8398 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8399 Use "new".
8400 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8401 (common_block_end): Use "new".
8402 * mdebugread.c (parse_symbol): Use "new".
8403 (new_symbol): Likewise.
8404
5b4a1a8d
PW
84052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8406
8407 * NEWS: Mention changes to help and apropos.
8408
57b4f16e
PW
84092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8410
8411 * command.h (enum command_class): Improve comments, document
8412 that class_alias is for user-defined aliases, give the class
8413 name for each class, remove unused class_xdb.
8414 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8415 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8416 by a precise class.
8417 * infcmd.c (_initialize_infcmd): Likewise.
8418 * reverse.c (_initialize_reverse): Likewise.
8419 * stack.c (_initialize_stack): Likewise.
8420 * symfile.c (_initialize_symfile): Likewise.
8421 * tracepoint.c (_initialize_tracepoint): Likewise.
8422
7c05caf7
PW
84232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8424
8425 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8426 when their aliased command is traversed.
8427 (help_cmd): Add fput_command_names_styled call to
8428 output command name and aliases when command has an alias.
8429
3b3aaacb
PW
84302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8431
8432 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8433 * cli/cli-decode.c (help_cmd_list): Declare as static,
8434 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8435 a command together with the command.
8436 (fput_command_name_styled, fput_command_names_styled): New functions.
8437 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8438 fput_command_name_styled.
8439 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8440 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8441
7aa1b46f
PW
84422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8443
8444 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8445 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8446 * command.h (cmd_show_list): Likewise.
8447 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8448 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8449
89bcba74
PW
84502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8451
8452 * unittests/command-def-selftests.c (traverse_command_structure):
8453 Verify all commands of a list have the same prefix command and
8454 that only the top cmdlist commands have a null prefix.
8455
3f4d92eb
PW
84562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8457
8458 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8459 as prefix, not one of its aliases.
8460 (set_cmd_prefix): Remove.
8461 (do_add_cmd): Centralize the setting of the prefix of a command, when
8462 command is defined after its full chain of prefix commands.
8463 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8464 (add_setshow_cmd_full): Likewise.
8465 (update_prefix_field_of_prefixed_commands): New function.
8466 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8467 update_prefix_field_of_prefixed_commands.
8468 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8469 addresses of remote_set_cmdlist and remote_show_cmdlist given
8470 as argument, not the address of an argument.
8471 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8472 * gdb/remote.c (_initialize_remote): Likewise.
8473
0605465f
PW
84742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8475
8476 * cli/cli-cmds.c (alias_command): Check for an existing alias
8477 using lookup_cmd_composition, as valid_command_p is too strict
8478 and forbids aliases that are the prefix of an existing alias
8479 or command.
8480 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8481 command is properly recognised as a valid command.
8482
58e6ac70
PW
84832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8484
8485 * unittests/help-doc-selftests.c: Rename to
8486 unittests/command-def-selftests.c
8487 * unittests/command-def-selftests.c (help_doc_tests): Update some
8488 comments.
8489 (command_structure_tests, traverse_command_structure): New namespace
8490 and function.
8491 (command_structure_invariants_tests): New function.
8492 (_initialize_command_def_selftests) Renamed from
8493 _initialize_help_doc_selftests, register command_structure_invariants
8494 selftest.
8495
a7b9ceb8
PW
84962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8497
8498 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8499 an alias of 'show'.
8500
b2188a06
JB
85012020-05-15 Joel Brobecker <brobecker@adacore.com>
8502
8503 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8504 ada_is_fixed_point_type. Update all callers.
8505 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8506 all callers.
8507 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8508 Update all callers.
8509 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8510 print_fixed_point_type. Update all callers.
8511 * ada-valprint.c (ada_value_print_num): Replace call to
8512 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8513
a51951c2
KB
85142020-05-14 Kevin Buettner <kevinb@redhat.com>
8515
8516 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8517 processors.
8518 (cpu_supports_bts): Add CV_AMD case.
8519
29d6859f
LM
85202020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8521 Simon Marchi <simon.marchi@efficios.com>
8522
8523 * infrun.c (stop_all_threads): Collect multiple wait events at
8524 each pass.
8525
78134374
SM
85262020-05-14 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8529 type::code instead.
8530
67607e24
SM
85312020-05-14 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * gdbtypes.h (struct type) <code, set_code>: New methods.
8534 (TYPE_CODE): Use type::code. Change all call sites used to set
8535 the code to use type::set_code instead.
8536
a05575d3
TBA
85372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8538 Tom de Vries <tdevries@suse.de>
8539 Pedro Alves <palves@redhat.com>
8540
8541 PR threads/25478
8542 * infrun.c (stop_all_threads): Do NOT ignore
8543 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8544 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8545 received.
8546 (handle_no_resumed): Remove code handling a live inferior with no
8547 threads.
8548 * remote.c (has_single_non_exited_thread): New.
8549 (remote_target::update_thread_list): Do not delete a thread if is
8550 the last thread of the process.
8551 * thread.c (thread_select): Call delete_exited_threads instead of
8552 prune_threads.
8553
6ad82919
TBA
85542020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8555
8556 * infrun.c (stop_all_threads): Enable/disable thread events of all
8557 targets. Move a debug message denoting the end of the function
8558 into the SCOPED_EXIT block.
8559
d890404b
TBA
85602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8561
8562 * process-stratum-target.h: Include <set>.
8563 (all_non_exited_process_targets, switch_to_target_no_thread): New
8564 function declarations.
8565 * process-stratum-target.c (all_non_exited_process_targets)
8566 (switch_to_target_no_thread): New function implementations.
8567
293b3ebc
TBA
85682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8569
8570 * infrun.c (handle_inferior_event): Extract out a piece of code
8571 into...
8572 (mark_non_executing_threads): ...this new function.
8573
7ca9b62a
TBA
85742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8575
8576 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8577 use.
8578
fc75c28b
TBA
85792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8580
8581 * regcache.c (regcache_read_pc_protected): New function
8582 implementation that returns 0 if the PC cannot read via
8583 'regcache_read_pc'.
8584 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8585 instead of 'regcache_read_pc'.
8586 (keep_going_pass_signal): Ditto.
8587
a89febbd
TT
85882020-05-13 Tom Tromey <tromey@adacore.com>
8589
8590 * ada-lang.c (align_value): Remove.
8591 (ada_template_to_fixed_record_type_1): Use align_up.
8592
f7e23710
TBA
85932020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8594
8595 * async-event.c: Update the copyright year.
8596 * async-event.h: Update the copyright year.
8597
02ff80c2
SM
85982020-05-12 Simon Marchi <simon.marchi@efficios.com>
8599
8600 * objfiles.h (is_addr_in_objfile,
8601 shared_objfile_contains_address_p): Return bool.
8602 * objfile.c (is_addr_in_objfile,
8603 shared_objfile_contains_address_p): Return bool.
8604
4fd6c7e8
TT
86052020-05-11 Tom Tromey <tromey@adacore.com>
8606
8607 * cli/cli-cmds.c (info_command): Restore.
8608 (_initialize_cli_cmds): Use add_prefix_command for "info".
8609 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8610
5eb68a39
TT
86112020-05-11 Tom Tromey <tromey@adacore.com>
8612
8613 * ada-lang.c (ada_value_primitive_field): Now public.
8614 * ada-lang.h (ada_value_primitive_field): Declare.
8615 * ada-valprint.c (print_field_values): Use
8616 ada_value_primitive_field for wrapper fields.
8617
7666722f
TV
86182020-05-11 Tom de Vries <tdevries@suse.de>
8619
8620 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8621 MODULE_DOMAIN.
8622
3ee6bb11
TV
86232020-05-11 Tom de Vries <tdevries@suse.de>
8624
8625 PR symtab/25941
8626 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8627 with length 0, if not gdb-produced.
8628 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8629
43434996
TV
86302020-05-09 Tom de Vries <tdevries@suse.de>
8631
8632 PR gdb/25955
8633 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8634 calculation.
8635
2f78cffc
TT
86362020-05-09 Tom Tromey <tom@tromey.com>
8637
8638 * top.c (server_command): Now bool.
8639 * top.h (server_command): Now bool.
8640
4f7bc5ed
TT
86412020-05-08 Tom Tromey <tromey@adacore.com>
8642
8643 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8644 already being processed.
8645
8be4b118
TT
86462020-05-08 Tom Tromey <tom@tromey.com>
8647
8648 * printcmd.c (struct display) <next>: Remove.
8649 <display>: New constructor.
8650 <exp_string>: Now a std::string.
8651 <enabled_p>: Now a bool.
8652 (display_number): Move definition earlier.
8653 (displays): Rename from display_chain. Now a std::vector.
8654 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8655 (display_command): Update.
8656 (do_one_display, disable_display)
8657 (enable_disable_display_command, do_enable_disable_display):
8658 Update.
8659 (free_display): Remove.
8660 (clear_displays): Rewrite.
8661 (delete_display): Update.
8662 (map_display_numbers): Use function_view. Remove "data"
8663 parameter. Update.
8664 (do_delete_display): Remove.
8665 (undisplay_command): Update.
8666 (do_one_display, do_displays, disable_display)
8667 (info_display_command): Update.
8668 (do_enable_disable_display): Remove.
8669 (enable_disable_display_command)
8670 (clear_dangling_display_expressions): Update.
8671
94c93c35
TT
86722020-05-08 Tom Tromey <tom@tromey.com>
8673
8674 * symtab.c (set_symbol_cache_size)
8675 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8676 (maintenance_print_symbol_cache_statistics): Update.
8677 * symmisc.c (print_symbol_bcache_statistics)
8678 (print_objfile_statistics, maintenance_print_objfiles)
8679 (maintenance_info_symtabs, maintenance_check_symtabs)
8680 (maintenance_expand_symtabs, maintenance_info_line_tables):
8681 Update.
8682 * symfile-debug.c (set_debug_symfile): Update.
8683 * source.c (forget_cached_source_info): Update.
8684 * python/python.c (gdbpy_progspaces): Update.
8685 * psymtab.c (maintenance_info_psymtabs): Update.
8686 * probe.c (parse_probes): Update.
8687 * linespec.c (iterate_over_all_matching_symtabs)
8688 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8689 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8690 * exec.c (exec_target::close): Update.
8691 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8692 * breakpoint.c (print_one_breakpoint_location)
8693 (create_longjmp_master_breakpoint)
8694 (create_std_terminate_master_breakpoint): Update.
8695 * progspace.c (program_spaces): Now a std::vector.
8696 (maybe_new_address_space): Update.
8697 (add_program_space): Remove.
8698 (program_space::program_space): Update.
8699 (remove_program_space): Update.
8700 (number_of_program_spaces): Remove.
8701 (print_program_space, update_address_spaces): Update.
8702 * progspace.h (program_spaces): Change type.
8703 (ALL_PSPACES): Remove.
8704 (number_of_program_spaces): Don't declare.
8705 (struct program_space) <next>: Remove.
8706
a1fd1ac9
TT
87072020-05-08 Tom Tromey <tom@tromey.com>
8708
8709 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8710 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8711 (enable_break): Update.
8712 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8713 (frv_fdpic_find_canonical_descriptor): Update.
8714 (frv_fetch_objfile_link_map): Update.
8715 * progspace.c (program_space::free_all_objfiles): Update.
8716 (program_space::solibs): New method.
8717 * progspace.h (struct program_space) <solibs>: New method.
8718 * solist.h (master_so_list): Don't declare.
8719 (ALL_SO_LIBS): Remove.
8720 * solib.h (so_list_head): Remove.
8721 (update_solib_list): Update comment.
8722 * solib.c (master_so_list): Remove.
8723 (solib_used, update_solib_list, solib_add)
8724 (info_sharedlibrary_command, clear_solib)
8725 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8726
38eae084
TT
87272020-05-08 Tom Tromey <tom@tromey.com>
8728
8729 * extension.c (extension_languages): Now a std::array.
8730 (ALL_EXTENSION_LANGUAGES): Remove.
8731 (get_ext_lang_defn, get_ext_lang_of_file)
8732 (eval_ext_lang_from_control_command): Update.
8733 (finish_ext_lang_initialization)
8734 (auto_load_ext_lang_scripts_for_objfile)
8735 (ext_lang_type_printers::ext_lang_type_printers)
8736 (apply_ext_lang_type_printers)
8737 (ext_lang_type_printers::~ext_lang_type_printers)
8738 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8739 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8740 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8741 (get_matching_xmethod_workers, ext_lang_colorize)
8742 (ext_lang_before_prompt): Update.
8743 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8744
596dc4ad
TT
87452020-05-08 Tom Tromey <tom@tromey.com>
8746
8747 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8748 overload.
8749 <swap_string, m_string>: Remove.
8750 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8751 Update.
8752 * stabsread.c (define_symbol, read_type): Update.
8753 * linespec.c (find_linespec_symbols): Update.
8754 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8755 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8756 * dbxread.c (read_dbx_symtab): Update.
8757 * cp-support.h (cp_canonicalize_string_full)
8758 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8759 Return unique_xmalloc_ptr.
8760 * cp-support.c (inspect_type): Update.
8761 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8762 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8763 Likewise.
8764 * c-typeprint.c (print_name_maybe_canonical): Update.
8765 * break-catch-throw.c (check_status_exception_catchpoint):
8766 Update.
8767
bf4cb9be
TV
87682020-05-08 Tom de Vries <tdevries@suse.de>
8769
8770 * infrun.c (follow_fork): Copy current_line and current_symtab to
8771 child thread.
8772
a1b68f28
SM
87732020-05-07 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * async-event.c (struct async_signal_handler, struct
8776 async_event_handler): Reformat, remove typedef.
8777
98d48915
SM
87782020-05-07 Simon Marchi <simon.marchi@efficios.com>
8779
8780 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8781 access thistype->main_type->dyn_prop_list directly.
8782
7aa91313
SM
87832020-05-07 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8786 (remove_dyn_prop): Remove. Update all users to use
8787 type::remove_dyn_prop.
8788 * gdbtypes.c (remove_dyn_prop): Rename to...
8789 (type::remove_dyn_prop): ... this.
8790
5c54719c
SM
87912020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8792
8793 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8794 (add_dyn_prop): Remove. Update all users to use
8795 type::add_dyn_prop.
8796 * gdbtypes.c (add_dyn_prop): Rename to...
8797 (type::add_dyn_prop): ... this.
8798
24e99c6c
SM
87992020-05-07 Simon Marchi <simon.marchi@efficios.com>
8800
8801 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8802 (get_dyn_prop): Remove. Update all users to use
8803 type::dyn_prop.
8804 * gdbtypes.c (get_dyn_prop): Rename to...
8805 (type::dyn_prop): ... this.
8806
0d4bf016
SM
88072020-05-06 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8810
ac4a4f1c
SM
88112020-05-06 Simon Marchi <simon.marchi@efficios.com>
8812
8813 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8814 instruction, skip it if it's there.
8815
a3bbacc1
SM
88162020-05-05 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8819
c3236f84
SM
88202020-05-04 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8823 * gdbtypes.c (recursive_dump_type): Remove use of
8824 TYPE_INCOMPLETE.
8825
3b6acaee
TT
88262020-05-03 Tom Tromey <tom@tromey.com>
8827
8828 * breakpoint.c (catch_command, tcatch_command): Remove.
8829 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8830 add_show_prefix_cmd.
8831 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8832 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8833 Remove.
8834 (add_internal_problem_command): Use add_basic_prefix_cmd,
8835 add_show_prefix_cmd.
8836 * mips-tdep.c (set_mipsfpu_command): Remove.
8837 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8838 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8839 (_initialize_index_cache): Use add_basic_prefix_cmd.
8840 * memattr.c (dummy_cmd): Remove.
8841 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8842 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8843 (_initialize_tui_win): Use add_basic_prefix_cmd,
8844 add_show_prefix_cmd.
8845 * cli/cli-logging.c (set_logging_command): Remove.
8846 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8847 add_show_prefix_cmd.
8848 (show_logging_command): Remove.
8849 * target.c (target_command): Remove.
8850 (add_target): Use add_basic_prefix_cmd.
8851
a51119cd
HD
88522020-05-02 Hannes Domani <ssbssa@yahoo.de>
8853
8854 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8855
652fc23a 88562020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8857
652fc23a
PW
8858 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8859 info_command.
8860
117539e6
KR
88612020-04-30 Kamil Rytarowski <n54@gmx.com>
8862
8863 * nbsd-nat.c (nbsd_enable_proc_events)
8864 (nbsd_nat_target::post_startup_inferior): Add.
8865 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8866 (nbsd_nat_target::update_thread_list): Rewrite.
8867 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8868 "PTRACE_LWP_CREATE".
8869 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8870
102e38eb 88712020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8872
102e38eb
PW
8873 * stack.c (_initialize_stack): Remove duplicated creation
8874 of "frame" command and "f" alias.
8875
ee9d1e5f
HD
88762020-04-30 Hannes Domani <ssbssa@yahoo.de>
8877
8878 PR gdb/18706
8879 * gdbtypes.c (check_typedef): Calculate size of array of
8880 stubbed type.
8881
627c7fb8
HD
88822020-04-30 Hannes Domani <ssbssa@yahoo.de>
8883
8884 PR gdb/15559
8885 * i386-tdep.c (i386_push_dummy_call): Call
8886 i386_thiscall_push_dummy_call.
8887 (i386_thiscall_push_dummy_call): New function.
8888 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8889 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8890 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8891
ffc2844e
SM
88922020-04-29 Simon Marchi <simon.marchi@efficios.com>
8893
8894 * gdbarch.sh (do_read): Add shellcheck disable directive for
8895 warning SC2162.
8896
1207375d
SM
88972020-04-29 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8900 "referenced but not assigned" warning.
8901
9fdb2916
SM
89022020-04-29 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * gdbarch.sh: Remove code that sets fallbackdefault.
8905
759cea5e
SM
89062020-04-29 Simon Marchi <simon.marchi@efficios.com>
8907
8908 * gdbarch.sh: Use shell operators && and || instead of
8909 -a and -o.
8910
cb02ab24
SM
89112020-04-29 Simon Marchi <simon.marchi@efficios.com>
8912
8913 * gdbarch.sh: Use $(...) instead of `...`.
8914
a6fc5ffc
SM
89152020-04-29 Simon Marchi <simon.marchi@efficios.com>
8916
8917 * gdbarch.sh: Use double quotes around variables.
8918
8d113d13
SM
89192020-04-29 Simon Marchi <simon.marchi@efficios.com>
8920
8921 * gdbarch.sh: Use %s with printf, instead of variables in the
8922 format string.
8923
ed6acedd
TT
89242020-04-29 Tom Tromey <tromey@adacore.com>
8925
8926 PR ada/25875:
8927 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8928 type fields here.
8929 (read_enumeration_type): Call
8930 update_enumeration_type_from_children later. Update comments.
8931 (process_enumeration_scope): Don't create type fields.
8932
b68b1b58
KR
89332020-04-29 Kamil Rytarowski <n54@gmx.com>
8934
8935 * nbsd-tdep.c: Include "xml-syscall.h".
8936 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8937
f94b2e03
KR
89382020-04-29 Kamil Rytarowski <n54@gmx.com>
8939
8940 * nbsd-nat.c: Include "sys/wait.h".
8941 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8942 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8943 (nbsd_nat_target::remove_exec_catchpoint)
8944 (nbsd_nat_target::set_syscall_catchpoint): Add.
8945 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8946 (nbsd_nat_target::insert_exec_catchpoint)
8947 (nbsd_nat_target::remove_exec_catchpoint)
8948 (nbsd_nat_target::set_syscall_catchpoint): Add.
8949 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8950 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8951 `nbsd_get_syscall_number'.
8952
fc49bc72
TT
89532020-04-29 Tom Tromey <tom@tromey.com>
8954
8955 * stack.c (print_block_frame_labels): Remove.
8956
d642b692
HD
89572020-04-29 Hannes Domani <ssbssa@yahoo.de>
8958
8959 PR gdb/17320
8960 * ada-valprint.c (val_print_packed_array_elements): Move array
8961 end bracket to new line.
8962 (ada_val_print_string): Remove extra spaces before first array
8963 element.
8964 * c-valprint.c (c_value_print_array): Likewise.
8965 * m2-valprint.c (m2_print_array_contents): Likewise.
8966 (m2_value_print_inner): Likewise.
8967 * p-valprint.c (pascal_value_print_inner): Likewise.
8968 * valprint.c (generic_val_print_array): Likewise.
8969 (value_print_array_elements): Move first array element and array
8970 end bracket to new line.
8971
ea90f227
TV
89722020-04-29 Tom de Vries <tdevries@suse.de>
8973
8974 PR symtab/25889
8975 * linespec.c (find_method): Fix ix calculation.
8976
4498ef4f
KR
89772020-04-28 Kamil Rytarowski <n54@gmx.com>
8978
8979 * syscalls/update-netbsd.sh: New file.
8980 * syscalls/netbsd.xml: Regenerate.
8981 * data-directory/Makefile.in: Register `netbsd.xml' in
8982 `SYSCALLS_FILES'.
8983
a55e30b5
SM
89842020-04-28 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * syscalls/update-freebsd.sh: Add double quotes.
8987
2b2fbab8
TT
89882020-04-28 Tom Tromey <tom@tromey.com>
8989
8990 * NEWS: Update.
8991 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8992 (cmdpy_init): Allow class_tui.
8993
a65189c9
TV
89942020-04-28 Mark Williams <mark@myosotissp.com>
8995
8996 PR gdb/24480
8997 * dwarf2read.c: Add missing assingments to list_in_scope when
8998 start_symtab was already called.
8999
1b95cdb7
SM
90002020-04-28 Simon Marchi <simon.marchi@efficios.com>
9001
9002 PR gdb/25881
9003 * dwarf2/read.c (offset_map_type): Use
9004 gdb:hash_enum<sect_offset> as hash function.
9005
15cd93d0
TV
90062020-04-28 Tom de Vries <tdevries@suse.de>
9007
9008 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
9009 with DW_AT_signature.
9010
1eb39914
SM
90112020-04-27 Simon Marchi <simon.marchi@efficios.com>
9012
9013 * configure.ac: Remove check for fs_base/gs_base in
9014 user_regs_struct.
9015 * configure: Re-generate.
9016 * config.in: Re-generate.
9017 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
9018 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
9019 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
9020
991a3e2e
LM
90212020-04-27 Luis Machado <luis.machado@linaro.org>
9022
9023 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
9024 problematic inline frame unwinding situation.
9025 * frame.c (frame_id_computed_p): New function.
9026 * frame.h (frame_id_computed_p): New prototype.
9027
361ba0e8
TT
90282020-04-26 Tom Tromey <tom@tromey.com>
9029
9030 * command.h (enum command_class) <class_pseudo>: Remove.
9031
bc3609fd
PW
90322020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9033
9034 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
9035 and whitespace.
9036
b9771db7
KR
90372020-04-25 Kamil Rytarowski <n54@gmx.com>
9038
ec16513e
SM
9039 * inf-ptrace.c (inf_ptrace_target::wait): Remove
9040 `PT_GET_PROCESS_STATE' block.
b9771db7 9041
7151c1af
TT
90422020-04-24 Tom Tromey <tom@tromey.com>
9043
9044 * symtab.h (symbol_get_demangled_name): Don't declare.
9045 * symtab.c (symbol_get_demangled_name): Remove.
9046 (general_symbol_info::natural_name)
9047 (general_symbol_info::demangled_name): Update.
9048
906bb4c5
TT
90492020-04-24 Tom Tromey <tom@tromey.com>
9050
9051 PR rust/25025:
9052 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
9053
bcfe6157
TT
90542020-04-24 Tom Tromey <tom@tromey.com>
9055
9056 PR symtab/12707:
9057 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
9058 exists.
9059 (new_symbol): Likewise.
9060 * compile/compile-object-load.c (get_out_value_type): Use
9061 symbol_matches_search_name.
9062
f049a313
TT
90632020-04-24 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2/read.c (add_partial_symbol): Do not call
9066 compute_and_set_names.
9067
76e288d1
TT
90682020-04-24 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
9071 overload.
9072
2467f4f6
TT
90732020-04-24 Tom Tromey <tom@tromey.com>
9074
9075 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
9076 (add_psymbol_to_list): New overload. Make old overload call new
9077 one.
9078 * psympriv.h (add_psymbol_to_list): New overload.
9079
e61108c9
TT
90802020-04-24 Tom Tromey <tom@tromey.com>
9081
9082 * dwarf2/read.c (partial_die_info::read) <case
9083 DW_AT_linkage_name>: Use value_as_string.
9084 (dwarf2_string_attr): Use value_as_string.
9085 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9086 method.
9087 * dwarf2/attribute.c (attribute::value_as_string): New method.
9088
8c87a452
TT
90892020-04-24 Tom Tromey <tom@tromey.com>
9090
9091 * symtab.c (general_symbol_info::natural_name)
9092 (general_symbol_info::demangled_name): Check for language_rust.
9093
787de330
TT
90942020-04-24 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9097 (dwarf2_physname): ... from here.
9098 (partial_die_info::read): Add Rust "{" hack.
9099
ff985671
TT
91002020-04-24 Tom Tromey <tom@tromey.com>
9101
9102 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9103 method.
9104 (symbol_set_demangled_name): Don't declare.
9105 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9106 symbol_set_demangled_name.
9107 (general_symbol_info::set_language)
9108 (general_symbol_info::compute_and_set_names): Update.
9109 * minsyms.c (minimal_symbol_reader::install): Update.
9110 * dwarf2/read.c (new_symbol): Update.
9111
1acda803
TT
91122020-04-24 Tom Tromey <tromey@adacore.com>
9113
9114 PR python/23662:
9115 * python/py-type.c (convert_field): Handle
9116 FIELD_LOC_KIND_DWARF_BLOCK.
9117 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9118 (typy_get_dynamic): Nw function.
9119 (type_object_getset): Add "dynamic".
9120 * NEWS: Add entry.
9121
d656f129
TT
91222020-04-24 Tom Tromey <tromey@adacore.com>
9123
9124 * ada-typeprint.c (print_choices, print_variant_part)
9125 (print_record_field_types_dynamic): New functions.
9126 (print_record_field_types): Use print_record_field_types_dynamic.
9127
7d79de9a
TT
91282020-04-24 Tom Tromey <tromey@adacore.com>
9129
9130 * dwarf2/read.c (handle_data_member_location): New overload.
9131 (dwarf2_add_field): Use it.
9132 (decode_locdesc): Add "computed" parameter. Update comment.
9133 * gdbtypes.c (is_dynamic_type_internal): Also look for
9134 FIELD_LOC_KIND_DWARF_BLOCK.
9135 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9136 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9137 virtual base classes.
9138 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9139 FIELD_LOC_KIND_DWARF_BLOCK.
9140
f8e89861
TT
91412020-04-24 Tom Tromey <tromey@adacore.com>
9142
9143 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9144 * gdbtypes.c (is_dynamic_type_internal): Check
9145 TYPE_HAS_DYNAMIC_LENGTH.
9146 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9147 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9148 New macros.
9149 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9150 constant.
9151
9c6a1327
TT
91522020-04-24 Tom Tromey <tromey@adacore.com>
9153
9154 * dwarf2/read.c (struct variant_field): Rewrite.
9155 (struct variant_part_builder): New.
9156 (struct nextfield): Remove "variant" field. Add "offset".
9157 (struct field_info): Add "current_variant_part" and
9158 "variant_parts".
9159 (alloc_discriminant_info): Remove.
9160 (alloc_rust_variant): New function.
9161 (quirk_rust_enum): Update.
9162 (dwarf2_add_field): Set "offset" member. Don't handle
9163 DW_TAG_variant_part.
9164 (offset_map_type): New typedef.
9165 (convert_variant_range, create_one_variant)
9166 (create_one_variant_part, create_variant_parts)
9167 (add_variant_property): New functions.
9168 (dwarf2_attach_fields_to_type): Call add_variant_property.
9169 (read_structure_type): Don't handle DW_TAG_variant_part.
9170 (handle_variant_part, handle_variant): New functions.
9171 (handle_struct_member_die): Use them.
9172 (process_structure_scope): Don't handle variant parts.
9173 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9174 (struct discriminant_info): Remove.
9175 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9176 (struct main_type) <flag_discriminated_union>: Remove.
9177 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9178 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9179 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9180 Update.
9181 * valops.c (value_union_variant): Remove.
9182 * value.h (value_union_variant): Don't declare.
9183
b249d2c2
TT
91842020-04-24 Tom Tromey <tromey@adacore.com>
9185
9186 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9187 (ada_value_primitive_packed_val): Update.
9188 * ada-valprint.c (ada_value_print_1): Update.
9189 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9190 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9191 just an address. Use evaluate_for_locexpr_baton.
9192 (dwarf2_evaluate_property): Update.
9193 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9194 array_view.
9195 * findvar.c (default_read_var_value): Update.
9196 * gdbtypes.c (compute_variant_fields_inner)
9197 (resolve_dynamic_type_internal): Update.
9198 (resolve_dynamic_type): Change type of valaddr parameter.
9199 * gdbtypes.h (resolve_dynamic_type): Update.
9200 * valarith.c (value_subscripted_rvalue): Update.
9201 * value.c (value_from_contents_and_address): Update.
9202
61122aa9
TT
92032020-04-24 Tom Tromey <tromey@adacore.com>
9204
9205 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9206 "push_initial_value" parameter.
9207 (dwarf2_evaluate_property): Likewise.
9208 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9209
ef83a141
TT
92102020-04-24 Tom Tromey <tromey@adacore.com>
9211
9212 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9213 (variant::matches, compute_variant_fields_recurse)
9214 (compute_variant_fields_inner, compute_variant_fields): New
9215 functions.
9216 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9217 Use resolved_type after type is made.
9218 (operator==): Add new cases.
9219 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9220 (struct discriminant_range, struct variant, struct variant_part):
9221 New.
9222 (union dynamic_prop_data) <variant_parts, original_type>: New
9223 members.
9224 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9225 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9226 constants.
9227 * value.c (unpack_bits_as_long): Now public.
9228 * value.h (unpack_bits_as_long): Declare.
9229
675127ec
TT
92302020-04-24 Tom Tromey <tromey@adacore.com>
9231
9232 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9233 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9234
9852ceef
HD
92352020-04-24 Hannes Domani <ssbssa@yahoo.de>
9236
9237 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9238
7632c6ce
KR
92392020-04-24 Kamil Rytarowski <n54@gmx.com>
9240
9241 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9242 (remove_fork_catchpoint, post_startup_inferior)
9243 (post_attach): Move...
9244 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9245 (remove_fork_catchpoint, post_startup_inferior)
9246 (post_attach): ...here.
9247 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9248 (remove_fork_catchpoint, post_startup_inferior)
9249 (post_attach): Move...
9250 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9251 (remove_fork_catchpoint, post_startup_inferior)
9252 (post_attach): ...here.
9253
7be2bb4f
TT
92542020-04-24 Tom Tromey <tromey@adacore.com>
9255
9256 * nat/windows-nat.h (struct windows_thread_info)
9257 <pc_adjusted>: New member.
9258 * windows-nat.c (windows_fetch_one_register): Check
9259 pc_adjusted.
9260 (windows_nat_target::get_windows_debug_event)
9261 (windows_nat_target::wait): Set pc_adjusted.
9262
f80cb3b4
TV
92632020-04-24 Tom de Vries <tdevries@suse.de>
9264
9265 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9266 Run gdb-add-index inside temp dir.
9267
29514b87
TT
92682020-04-23 Tom Tromey <tromey@adacore.com>
9269
9270 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9271 in loop.
9272
5939967b
LM
92732020-04-23 Luis Machado <luis.machado@linaro.org>
9274
9275 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9276 get_frame_register instead of gdbarch_unwind_pc.
9277
70bc38f5
TV
92782020-04-23 Tom de Vries <tdevries@suse.de>
9279
9280 * symtab.c (lookup_global_symbol): Prefer def over decl.
9281
de82891c
TV
92822020-04-23 Tom de Vries <tdevries@suse.de>
9283
9284 PR symtab/25807
9285 * block.c (best_symbol, better_symbol): Promote to external.
9286 * block.h (best_symbol, better_symbol): Declare.
9287 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9288 decl.
9289
ecc6c606
TT
92902020-04-23 Tom Tromey <tromey@adacore.com>
9291
9292 PR ada/25837:
9293 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9294 "const char *", not a "const std::string &".
9295 <name_and_matcher::operator==>: Update.
9296 * unittests/lookup_name_info-selftests.c: Change type of
9297 "result".
9298
740480b8
TT
92992020-04-23 Tom Tromey <tom@tromey.com>
9300
9301 * inferior.h (iterate_over_inferiors): Don't declare.
9302 * inferior.c (iterate_over_inferiors): Remove.
9303 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9304 Remove.
9305 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9306 use iterate_over_inferiors.
9307 (darwin_resume_inferior_it)
9308 (struct resume_inferior_threads_param)
9309 (darwin_resume_inferior_threads_it): Remove.
9310 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9311
ae3ab1f0
TV
93122020-04-23 Tom de Vries <tdevries@suse.de>
9313
9314 * blockframe.c (find_pc_partial_function): Use
9315 find_pc_sect_compunit_symtab rather than
9316 objfile->sf->qf->find_pc_sect_compunit_symtab.
9317
317d2668
TV
93182020-04-22 Tom de Vries <tdevries@suse.de>
9319
9320 PR symtab/25764
9321 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9322 in psymtabs.
9323
eea9e357
TV
93242020-04-22 Tom de Vries <tdevries@suse.de>
9325
9326 PR symtab/25801
9327 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9328 symtabs.
9329
3d5afab3
TV
93302020-04-22 Tom de Vries <tdevries@suse.de>
9331
9332 PR symtab/25700
9333 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9334 CU if already created.
9335
d43b7a2d
TBA
93362020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9337
9338 * infrun.c (displaced_step_fixup): Switch to the event_thread
9339 before calling displaced_step_restore, not after.
9340
d89edf9b
MM
93412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9342
9343 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9344 its inferior is not recorded by us.
9345 (record_btrace_target_open): Replace call to
9346 all_non_exited_threads () with call to current_inferior
9347 ()->non_exited_threads ().
9348 (record_btrace_target::stop_recording): Likewise.
9349 (record_btrace_target::close): Likewise.
9350 (record_btrace_target::wait): Likewise.
9351 (record_btrace_target::record_stop_replaying): Likewise.
9352
5897fd49
MM
93532020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9354
9355 * btrace.c (btrace_enable): Throw an error on double enables and
9356 when enabling recording fails.
9357 (btrace_disable): Throw an error if the thread is not recorded.
9358
1a476b6d
MM
93592020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9360
9361 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9362 request if we do not have a thread_info.
9363
4778a5f8
TV
93642020-04-21 Tom de Vries <tdevries@suse.de>
9365
9366 PR gdb/25471
9367 * thread.c
9368 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9369 exception in get_frame_id.
9370
0fa7617d
TT
93712020-04-20 Tom Tromey <tromey@adacore.com>
9372
9373 * python/python.c (struct gdbpy_event): Mark move constructor as
9374 noexcept.
9375 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9376 constructor as noexcept.
9377 * completer.h (struct completion_result): Mark move constructor as
9378 noexcept.
9379 * completer.c (completion_result::completion_result): Use
9380 initialization style. Don't call reset_match_list.
9381
ad23bda0
MS
93822020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9383
9384 * MAINTAINERS (Write After Approval): Add myself.
9385
45e1f031
TT
93862020-04-18 Tom Tromey <tom@tromey.com>
9387
9388 * windows-tdep.c (init_w32_command_list)
9389 (w32_prefix_command_valid): Restore.
9390 (_initialize_windows_tdep): Call init_w32_command_list.
9391
08feed99
TT
93922020-04-18 Tom Tromey <tom@tromey.com>
9393
9394 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9395 * value.c (value_fn_field): Update.
9396 * valops.c (find_function_in_inferior)
9397 (value_allocate_space_in_inferior): Update.
9398 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9399 Update.
9400 * tui/tui-source.c (tui_source_window::set_contents): Update.
9401 * symtab.c (lookup_global_or_static_symbol)
9402 (find_function_start_sal_1, skip_prologue_sal)
9403 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9404 * symmisc.c (dump_msymbols, dump_symtab_1)
9405 (maintenance_print_one_line_table): Update.
9406 * symfile.c (init_entry_point_info, section_is_mapped)
9407 (list_overlays_command, simple_read_overlay_table)
9408 (simple_overlay_update_1): Update.
9409 * stap-probe.c (handle_stap_probe): Update.
9410 * stabsread.c (dbx_init_float_type, define_symbol)
9411 (read_one_struct_field, read_enum_type, read_range_type): Update.
9412 * source.c (info_line_command): Update.
9413 * python/python.c (gdbpy_source_objfile_script)
9414 (gdbpy_execute_objfile_script): Update.
9415 * python/py-type.c (save_objfile_types): Update.
9416 * python/py-objfile.c (py_free_objfile): Update.
9417 * python/py-inferior.c (python_new_objfile): Update.
9418 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9419 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9420 (maintenance_check_psymtabs): Update.
9421 * printcmd.c (info_address_command): Update.
9422 * objfiles.h (struct objfile) <arch>: New method, from
9423 get_objfile_arch.
9424 (get_objfile_arch): Don't declare.
9425 * objfiles.c (get_objfile_arch): Remove.
9426 (filter_overlapping_sections): Update.
9427 * minsyms.c (msymbol_is_function): Update.
9428 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9429 (output_nondebug_symbol): Update.
9430 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9431 (mdebug_expand_psymtab): Update.
9432 * machoread.c (macho_add_oso_symfile): Update.
9433 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9434 Update.
9435 * linux-fork.c (checkpoint_command): Update.
9436 * linespec.c (convert_linespec_to_sals): Update.
9437 * jit.c (finalize_symtab): Update.
9438 * infrun.c (insert_exception_resume_from_probe): Update.
9439 * ia64-tdep.c (ia64_find_unwind_table): Update.
9440 * hppa-tdep.c (internalize_unwinds): Update.
9441 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9442 Update.
9443 * gcore.c (call_target_sbrk): Update.
9444 * elfread.c (record_minimal_symbol, elf_symtab_read)
9445 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9446 (elf_gnu_ifunc_resolve_by_got): Update.
9447 * dwarf2/read.c (create_addrmap_from_index)
9448 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9449 (read_debug_names_from_section)
9450 (process_psymtab_comp_unit_reader, add_partial_symbol)
9451 (add_partial_subprogram, process_full_comp_unit)
9452 (read_file_scope, read_func_scope, read_lexical_block_scope)
9453 (read_call_site_scope, dwarf2_ranges_read)
9454 (dwarf2_record_block_ranges, dwarf2_add_field)
9455 (mark_common_block_symbol_computed, read_tag_pointer_type)
9456 (read_tag_string_type, dwarf2_init_float_type)
9457 (dwarf2_init_complex_target_type, read_base_type)
9458 (partial_die_info::read, partial_die_info::read)
9459 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9460 (dwarf2_fetch_die_loc_sect_off): Update.
9461 * dwarf2/loc.c (dwarf2_find_location_expression)
9462 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9463 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9464 (dwarf2_loc_desc_get_symbol_read_needs)
9465 (locexpr_describe_location_piece, locexpr_describe_location_1)
9466 (loclist_describe_location): Update.
9467 * dwarf2/index-write.c (write_debug_names): Update.
9468 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9469 * dtrace-probe.c (dtrace_process_dof): Update.
9470 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9471 (process_one_symbol): Update.
9472 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9473 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9474 (coff_read_enum_type): Update.
9475 * cli/cli-cmds.c (edit_command, list_command): Update.
9476 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9477 * breakpoint.c (create_overlay_event_breakpoint)
9478 (create_longjmp_master_breakpoint)
9479 (create_std_terminate_master_breakpoint)
9480 (create_exception_master_breakpoint, get_sal_arch): Update.
9481 * block.c (block_gdbarch): Update.
9482 * annotate.c (annotate_source_line): Update.
9483
0743fc83
TT
94842020-04-17 Tom Tromey <tromey@adacore.com>
9485
9486 * auto-load.c (show_auto_load_cmd): Remove.
9487 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9488 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9489 (maintenance_print_arc_command): Remove.
9490 * tui/tui-win.c (tui_command): Remove.
9491 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9492 * tui/tui-layout.c (tui_layout_command): Remove.
9493 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9494 * python/python.c (user_set_python, user_show_python): Remove.
9495 (_initialize_python): Use add_basic_prefix_cmd,
9496 add_show_prefix_cmd.
9497 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9498 (install_gdb_commands): Use add_basic_prefix_cmd,
9499 add_show_prefix_cmd.
9500 (info_guile_command): Remove.
9501 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9502 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9503 add_show_prefix_cmd.
9504 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9505 Remove do_set and do_show parameters.
9506 * cli/cli-style.c (set_style, show_style): Remove.
9507 (_initialize_cli_style): Use add_basic_prefix_cmd,
9508 add_show_prefix_cmd.
9509 (cli_style_option::add_setshow_commands): Remove do_set and
9510 do_show parameters.
9511 (cli_style_option::add_setshow_commands): Use
9512 add_basic_prefix_cmd, add_show_prefix_cmd.
9513 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9514 (set_style_name): Remove.
9515 * cli/cli-dump.c (dump_command, append_command): Remove.
9516 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9517 (tekhex_dump_command, binary_dump_command)
9518 (binary_append_command): Remove.
9519 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9520 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9521 (init_w32_command_list): Remove; move into ...
9522 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9523 * valprint.c (set_print, show_print, set_print_raw)
9524 (show_print_raw): Remove.
9525 (_initialize_valprint): Use add_basic_prefix_cmd,
9526 add_show_prefix_cmd.
9527 * typeprint.c (set_print_type, show_print_type): Remove.
9528 (_initialize_typeprint): Use add_basic_prefix_cmd,
9529 add_show_prefix_cmd.
9530 * record.c (set_record_command, show_record_command): Remove.
9531 (_initialize_record): Use add_basic_prefix_cmd,
9532 add_show_prefix_cmd.
9533 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9534 add_show_prefix_cmd.
9535 (info_command, show_command, set_debug, show_debug): Remove.
9536 * top.h (set_history, show_history): Don't declare.
9537 * top.c (set_history, show_history): Remove.
9538 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9539 (unset_tdesc_cmd): Remove.
9540 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9541 add_show_prefix_cmd.
9542 * symtab.c (info_module_command): Remove.
9543 (_initialize_symtab): Use add_basic_prefix_cmd.
9544 * symfile.c (overlay_command): Remove.
9545 (_initialize_symfile): Use add_basic_prefix_cmd.
9546 * sparc64-tdep.c (info_adi_command): Remove.
9547 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9548 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9549 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9550 add_show_prefix_cmd.
9551 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9552 (_initialize_serial): Use add_basic_prefix_cmd,
9553 add_show_prefix_cmd.
9554 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9555 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9556 add_show_prefix_cmd.
9557 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9558 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9559 add_show_prefix_cmd.
9560 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9561 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9562 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9563 add_show_prefix_cmd.
9564 * remote.c (remote_command, set_remote_cmd): Remove.
9565 (_initialize_remote): Use add_basic_prefix_cmd.
9566 * record-full.c (set_record_full_command)
9567 (show_record_full_command): Remove.
9568 (_initialize_record_full): Use add_basic_prefix_cmd,
9569 add_show_prefix_cmd.
9570 * record-btrace.c (cmd_set_record_btrace)
9571 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9572 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9573 (cmd_show_record_btrace_pt): Remove.
9574 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9575 add_show_prefix_cmd.
9576 * ravenscar-thread.c (set_ravenscar_command)
9577 (show_ravenscar_command): Remove.
9578 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9579 add_show_prefix_cmd.
9580 * mips-tdep.c (show_mips_command, set_mips_command)
9581 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9582 add_show_prefix_cmd.
9583 * maint.c (maintenance_command, maintenance_info_command)
9584 (maintenance_check_command, maintenance_print_command)
9585 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9586 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9587 add_show_prefix_cmd.
9588 (show_per_command_cmd): Remove.
9589 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9590 Remove.
9591 (maintenance_show_test_settings_cmd): Remove.
9592 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9593 add_show_prefix_cmd.
9594 * maint-test-options.c (maintenance_test_options_command):
9595 Remove.
9596 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9597 * macrocmd.c (macro_command): Remove
9598 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9599 * language.c (set_check, show_check): Remove.
9600 (_initialize_language): Use add_basic_prefix_cmd,
9601 add_show_prefix_cmd.
9602 * infcmd.c (unset_command): Remove.
9603 (_initialize_infcmd): Use add_basic_prefix_cmd.
9604 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9605 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9606 add_show_prefix_cmd.
9607 * go32-nat.c (go32_info_dos_command): Remove.
9608 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9609 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9610 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9611 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9612 (_initialize_frame): Use add_basic_prefix_cmd,
9613 add_show_prefix_cmd.
9614 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9615 (_initialize_dcache): Use add_basic_prefix_cmd,
9616 add_show_prefix_cmd.
9617 * cp-support.c (maint_cplus_command): Remove.
9618 (_initialize_cp_support): Use add_basic_prefix_cmd.
9619 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9620 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9621 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9622 add_basic_prefix_cmd, add_show_prefix_cmd.
9623 * breakpoint.c (save_command): Remove.
9624 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9625 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9626 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9627 add_show_prefix_cmd.
9628 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9629 (set_ada_command, show_ada_command): Remove.
9630 (_initialize_ada_language): Use add_basic_prefix_cmd,
9631 add_show_prefix_cmd.
9632 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9633
3557f442
KR
96342020-04-16 Kamil Rytarowski <n54@gmx.com>
9635
9636 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9637 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9638
16197208
SM
96392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9640
9641 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9642 warning messages.
9643
00ac85d3
SM
96442020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9645
9646 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9647 import table is not at beginning of .idata section.
9648
381ce63f
PA
96492020-04-16 Pedro Alves <palves@redhat.com>
9650
9651 * inferior.c (delete_inferior): Use delete operator directly
9652 instead of delete_program_space.
9653 * progspace.c (add_program_space): New, factored out from
9654 program_space::program_space.
9655 (remove_program_space): New, factored out from
9656 delete_program_space.
9657 (program_space::program_space): Remove intro comment. Rewrite.
9658 (program_space::~program_space): Remove intro comment. Call
9659 remove_program_space.
9660 (delete_program_space): Delete.
9661 * progspace.h (program_space::program_space): Make explicit. Move
9662 intro comment here, adjusted.
9663 (program_space::~program_space): Move intro comment here,
9664 adjusted.
9665 (delete_program_space): Remove.
9666
a010605f
TT
96672020-04-16 Tom Tromey <tromey@adacore.com>
9668
9669 * windows-nat.c (windows_nat::handle_access_violation): New
9670 function.
9671 * nat/windows-nat.h (handle_access_violation): Declare.
9672 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9673 windows-nat.c. Call handle_access_violation.
9674
efba5c23
TV
96752020-04-16 Tom de Vries <tdevries@suse.de>
9676
9677 PR symtab/25791
9678 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9679 CUs without psymtab.
9680
97ed802d
KB
96812020-04-16 Kevin Buettner <kevinb@redhat.com>
9682
9683 * python/python.c (do_start_initialization): Don't call
9684 PyEval_InitThreads for Python 3.9 and beyond.
9685
c7d64809
KR
96862020-04-15 Kamil Rytarowski <n54@gmx.com>
9687
9688 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9689 thread functions.
9690 (obsd_nat_target::wait): Likewise.
9691
ce127a96
TT
96922020-04-15 Tom Tromey <tromey@adacore.com>
9693
9694 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9695 (DEBUG_EXCEPT): Use debug_printf.
9696
99f1bc6a
AB
96972020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9698
9699 * completer.c (class completion_tracker::completion_hash_entry)
9700 <hash_name>: New member function.
9701 (completion_tracker::discard_completions): New callback to hash a
9702 completion_hash_entry, pass this to htab_create_alloc.
9703
a0e9b532
JT
97042016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9705
9706 * windows-nat.c (windows_make_so): Warn rather than stopping with
9707 an error if realpath() fails.
9708
06ca5dd4
KR
97092020-04-14 Kamil Rytarowski <n54@gmx.com>
9710
9711 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9712 (nbsd_nat_target::info_proc): Add do_status.
9713
194d088f
TV
97142020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9715 Tom de Vries <tdevries@suse.de>
9716
9717 PR symtab/25718
9718 * psympriv.h (struct partial_symtab::read_symtab)
9719 (struct partial_symtab::expand_psymtab)
9720 (struct partial_symtab::read_dependencies): Update comments.
9721 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9722 read_symtab for includer.
9723 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9724 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9725 (struct dwarf2_include_psymtab::m_readin): Remove.
9726 (struct dwarf2_include_psymtab::includer): New member function.
9727 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9728
c1a66c06
TV
97292020-04-14 Tom de Vries <tdevries@suse.de>
9730
9731 PR symtab/25720
9732 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9733 with NULL symbol_matcher and lookup_name.
9734 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9735 and lookup_name.
9736 * dwarf2/read.c (dw2_expand_symtabs_matching)
9737 (dw2_debug_names_expand_symtabs_matching): Same.
9738 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9739 Make lookup_name a pointer. Update comment.
9740 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9741 lookup_name being a pointer.
9742 * symfile.c (expand_symtabs_matching): Same.
9743 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9744 * linespec.c (iterate_over_all_matching_symtabs): Same.
9745
400b5eca
TT
97462020-04-13 Tom Tromey <tom@tromey.com>
9747
9748 * run-on-main-thread.c: Update include.
9749 * unittests/main-thread-selftests.c: Update include.
9750 * tui/tui-win.c: Update include.
9751 * tui/tui-io.c: Update include.
9752 * tui/tui-interp.c: Update include.
9753 * tui/tui-hooks.c: Update include.
9754 * top.h: Update include.
9755 * top.c: Update include.
9756 * ser-base.c: Update include.
9757 * remote.c: Update include.
9758 * remote-notif.c: Update include.
9759 * remote-fileio.c: Update include.
9760 * record-full.c: Update include.
9761 * record-btrace.c: Update include.
9762 * python/python.c: Update include.
9763 * posix-hdep.c: Update include.
9764 * mingw-hdep.c: Update include.
9765 * mi/mi-main.c: Update include.
9766 * mi/mi-interp.c: Update include.
9767 * main.c: Update include.
9768 * linux-nat.c: Update include.
9769 * interps.c: Update include.
9770 * infrun.c: Update include.
9771 * inf-loop.c: Update include.
9772 * event-top.c: Update include.
9773 * event-loop.c: Move to ../gdbsupport/.
9774 * event-loop.h: Move to ../gdbsupport/.
9775 * async-event.h: Update include.
9776 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9777
93b54c8e
TT
97782020-04-13 Tom Tromey <tom@tromey.com>
9779
9780 * tui/tui-win.c: Include async-event.h.
9781 * remote.c: Include async-event.h.
9782 * remote-notif.c: Include async-event.h.
9783 * record-full.c: Include async-event.h.
9784 * record-btrace.c: Include async-event.h.
9785 * infrun.c: Include async-event.h.
9786 * event-top.c: Include async-event.h.
9787 * event-loop.h: Move some declarations to async-event.h.
9788 * event-loop.c: Don't include ser-event.h or top.h. Move some
9789 code to async-event.c.
9790 * async-event.h: New file.
9791 * async-event.c: New file.
9792 * Makefile.in (COMMON_SFILES): Add async-event.c.
9793 (HFILES_NO_SRCDIR): Add async-event.h.
9794
c1cd3163
TT
97952020-04-13 Tom Tromey <tom@tromey.com>
9796
9797 * utils.c (flush_streams): New function.
9798 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9799
29f2bf4f
TT
98002020-04-13 Tom Tromey <tom@tromey.com>
9801
9802 * event-loop.c (handle_file_event): Use warning, not
9803 printf_unfiltered.
9804
98029d02
TT
98052020-04-13 Tom Tromey <tom@tromey.com>
9806
9807 * event-loop.c: Include <chrono>.
9808
06cc9596
TT
98092020-04-13 Tom Tromey <tom@tromey.com>
9810
9811 * gdb_select.h: Move to ../gdbsupport/.
9812 * event-loop.c: Update include path.
9813 * top.c: Update include path.
9814 * ser-base.c: Update include path.
9815 * ui-file.c: Update include path.
9816 * ser-tcp.c: Update include path.
9817 * guile/scm-ports.c: Update include path.
9818 * posix-hdep.c: Update include path.
9819 * ser-unix.c: Update include path.
9820 * gdb_usleep.c: Update include path.
9821 * mingw-hdep.c: Update include path.
9822 * inflow.c: Update include path.
9823 * infrun.c: Update include path.
9824 * event-top.c: Update include path.
9825
8ae8e197
TT
98262020-04-13 Tom Tromey <tom@tromey.com>
9827
9828 * configure: Rebuild.
9829 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9830
58cf28e8
TT
98312020-04-13 Tom Tromey <tom@tromey.com>
9832
9833 * event-loop.h (start_event_loop): Don't declare.
9834 * event-loop.c (start_event_loop): Move...
9835 * main.c (start_event_loop): ...here. Now static.
9836
b7f999ae
SDJ
98372020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9838
9839 * MAINTAINERS: Update my email address.
9840
1085dfd4
KR
98412020-04-12 Kamil Rytarowski <n54@gmx.com>
9842
9843 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9844 IP_ALL.
9845
49d1d1f5
KR
98462020-04-12 Kamil Rytarowski <n54@gmx.com>
9847
9848 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9849 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9850
b4848d2a
KR
98512020-04-12 Kamil Rytarowski <n54@gmx.com>
9852
9853 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9854 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9855
51c133d5
KR
98562020-04-12 Kamil Rytarowski <n54@gmx.com>
9857
9858 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9859
54b8cbd0
KR
98602020-04-11 Kamil Rytarowski <n54@gmx.com>
9861
9862 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9863 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9864 (nbsd_nat_target::info_proc): New functions.
9865 * nbsd-nat.c (kinfo_get_vmmap): New function.
9866 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9867 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9868 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9869 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9870 functions.
9871 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9872 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9873 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9874 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9875 (KINFO_VME_FLAG_GROWS_DOWN): New.
9876
cf83625d
AS
98772020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9878
9879 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9880 bit shift.
9881
0c4311ab
TT
98822020-04-10 Tom Tromey <tromey@adacore.com>
9883
9884 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9885
3e65b3e9
TT
98862020-04-10 Tom Tromey <tromey@adacore.com>
9887
9888 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9889 separate debug files.
9890
13302e95
HD
98912020-04-10 Hannes Domani <ssbssa@yahoo.de>
9892
9893 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9894 Move to...
9895 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9896 ... here.
9897 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9898 Check for STATUS_WX86_BREAKPOINT.
9899 (windows_nat_target::wait): Same.
9900
bdfc1e8a
TV
99012020-04-10 Tom de Vries <tdevries@suse.de>
9902
9903 PR cli/25808
9904 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9905
f4460aec
SM
99062020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9907
9908 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9909 (Write After Approval): Remove Tom de Vries.
9910
a25198bb
BE
99112020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9912
9913 revert partially:
9914 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9915
aac66a4c
SM
9916 * buildsym.c (record_line): Fix undefined behavior and preserve
9917 lines at eof.
a25198bb 9918
206c98a6
KR
99192020-04-09 Kamil Rytarowski <n54@gmx.com>
9920
9921 * auxv.h (svr4_auxv_parse): New.
9922 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9923 and generic_auxv_parse.
9924 (svr4_auxv_parse): Add.
9925 * obsd-tdep.c: Include "auxv.h".
9926 (obsd_auxv_parse): Remove.
9927 (obsd_init_abi): Remove comment.
9928 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9929 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9930 * nbsd-tdep.c: Include "auxv.h".
9931 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9932
71fbdbaf
TT
99332020-04-08 Tom Tromey <tromey@adacore.com>
9934
9935 * nat/windows-nat.h (last_wait_event): Don't declare.
9936 (wait_for_debug_event): Update comment.
9937 * nat/windows-nat.c (last_wait_event): Now static.
9938
2c1d95e8
TT
99392020-04-08 Tom Tromey <tromey@adacore.com>
9940
9941 * windows-nat.c (wait_for_debug_event): Move to
9942 nat/windows-nat.c.
9943 * nat/windows-nat.h (wait_for_debug_event): Declare.
9944 * nat/windows-nat.c (wait_for_debug_event): Move from
9945 windows-nat.c. No longer static.
9946
d2977bc4
TT
99472020-04-08 Tom Tromey <tromey@adacore.com>
9948
9949 * windows-nat.c (get_windows_debug_event): Use
9950 fetch_pending_stop.
9951 * nat/windows-nat.h (fetch_pending_stop): Declare.
9952 * nat/windows-nat.c (fetch_pending_stop): New function.
9953
e758e19c
TT
99542020-04-08 Tom Tromey <tromey@adacore.com>
9955
9956 * windows-nat.c (windows_continue): Use matching_pending_stop and
9957 continue_last_debug_event.
9958 * nat/windows-nat.h (matching_pending_stop)
9959 (continue_last_debug_event): Declare.
9960 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9961 (matching_pending_stop, continue_last_debug_event): New
9962 functions.
9963
8d30e395
TT
99642020-04-08 Tom Tromey <tromey@adacore.com>
9965
9966 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9967 (handle_exception_result): Move to nat/windows-nat.h.
9968 (DEBUG_EXCEPTION_SIMPLE): Remove.
9969 (windows_nat::handle_ms_vc_exception): New function.
9970 (handle_exception): Move to nat/windows-nat.c.
9971 (get_windows_debug_event): Update.
9972 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9973 nat/windows-nat.c.
9974 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9975 (handle_exception_result): Move from windows-nat.c.
9976 (handle_exception): Declare.
9977 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9978 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9979 windows-nat.c.
9980
29de418d
TT
99812020-04-08 Tom Tromey <tromey@adacore.com>
9982
9983 * windows-nat.c (exception_count, event_count): Remove.
9984 (handle_exception, get_windows_debug_event)
9985 (do_initial_windows_stuff): Update.
9986
a816ba18
TT
99872020-04-08 Tom Tromey <tromey@adacore.com>
9988
9989 * windows-nat.c (windows_nat::handle_load_dll)
9990 (windows_nat::handle_unload_dll): Rename. No longer static.
9991 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9992 Declare.
9993
a00caa12
TT
99942020-04-08 Tom Tromey <tromey@adacore.com>
9995
9996 * complaints.h (stop_whining): Declare at top-level.
9997 (complaint): Don't declare stop_whining.
9998
d41b524f
TT
99992020-04-08 Tom Tromey <tromey@adacore.com>
10000
10001 * windows-nat.c (windows_nat::handle_output_debug_string):
10002 Rename. No longer static.
10003 * nat/windows-nat.h (handle_output_debug_string): Declare.
10004
3c76026d
TT
100052020-04-08 Tom Tromey <tromey@adacore.com>
10006
10007 * windows-nat.c (current_process_handle, current_process_id)
10008 (main_thread_id, last_sig, current_event, last_wait_event)
10009 (current_windows_thread, desired_stop_thread_id, pending_stops)
10010 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
10011 (display_selectors, fake_create_process)
10012 (get_windows_debug_event): Update.
10013 * nat/windows-nat.h (current_process_handle, current_process_id)
10014 (main_thread_id, last_sig, current_event, last_wait_event)
10015 (current_windows_thread, desired_stop_thread_id, pending_stops)
10016 (struct pending_stop, siginfo_er): Move from windows-nat.c.
10017 * nat/windows-nat.c (current_process_handle, current_process_id)
10018 (main_thread_id, last_sig, current_event, last_wait_event)
10019 (current_windows_thread, desired_stop_thread_id, pending_stops)
10020 (siginfo_er): New globals. Move from windows-nat.c.
10021
9d8679cc
TT
100222020-04-08 Tom Tromey <tromey@adacore.com>
10023
10024 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
10025 (handle_load_dll): Update.
10026 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
10027
28688adf
TT
100282020-04-08 Tom Tromey <tromey@adacore.com>
10029
10030 * windows-nat.c (enum thread_disposition_type): Move to
10031 nat/windows-nat.h.
10032 (windows_nat::thread_rec): Rename from thread_rec. No longer
10033 static.
10034 (windows_add_thread, windows_nat_target::fetch_registers)
10035 (windows_nat_target::store_registers, handle_exception)
10036 (windows_nat_target::resume, get_windows_debug_event)
10037 (windows_nat_target::get_tib_address)
10038 (windows_nat_target::thread_name)
10039 (windows_nat_target::thread_alive): Update.
10040 * nat/windows-nat.h (enum thread_disposition_type): Move from
10041 windows-nat.c.
10042 (thread_rec): Declare.
10043
4834dad0
TT
100442020-04-08 Tom Tromey <tromey@adacore.com>
10045
10046 * windows-nat.c: Add "using namespace".
10047 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
10048 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
10049
65bafd5b
TT
100502020-04-08 Tom Tromey <tromey@adacore.com>
10051
10052 * nat/windows-nat.h (struct windows_thread_info): Declare
10053 destructor.
10054 * nat/windows-nat.c (~windows_thread_info): New.
10055
0a4afda3
TT
100562020-04-08 Tom Tromey <tromey@adacore.com>
10057
10058 PR gdb/22992
10059 * windows-nat.c (current_event): Update comment.
10060 (last_wait_event, desired_stop_thread_id): New globals.
10061 (struct pending_stop): New.
10062 (pending_stops): New global.
10063 (windows_nat_target) <stopped_by_sw_breakpoint>
10064 <supports_stopped_by_sw_breakpoint>: New methods.
10065 (windows_fetch_one_register): Add assertions. Adjust PC.
10066 (windows_continue): Handle pending stops. Suspend other threads
10067 when stepping. Use last_wait_event
10068 (wait_for_debug_event): New function.
10069 (get_windows_debug_event): Use wait_for_debug_event. Handle
10070 pending stops. Queue spurious stops.
10071 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
10072 (windows_nat_target::kill): Use wait_for_debug_event.
10073 * nat/windows-nat.h (struct windows_thread_info)
10074 <stopped_at_software_breakpoint>: New field.
10075 * nat/windows-nat.c (windows_thread_info::resume): Clear
10076 stopped_at_software_breakpoint.
10077
8e61ebec
TT
100782020-04-08 Tom Tromey <tromey@adacore.com>
10079
10080 * windows-nat.c (enum thread_disposition_type): New.
10081 (thread_rec): Replace "get_context" parameter with "disposition";
10082 change type.
10083 (windows_add_thread, windows_nat_target::fetch_registers)
10084 (windows_nat_target::store_registers, handle_exception)
10085 (windows_nat_target::resume, get_windows_debug_event)
10086 (windows_nat_target::get_tib_address)
10087 (windows_nat_target::thread_name)
10088 (windows_nat_target::thread_alive): Update.
10089
98a03287
TT
100902020-04-08 Tom Tromey <tromey@adacore.com>
10091
10092 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10093 (windows_continue): Use windows_continue::resume.
10094 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10095 resume>: Declare new methods.
10096 * nat/windows-nat.c: New file.
10097 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10098
7c7411bc
TT
100992020-04-08 Tom Tromey <tromey@adacore.com>
10100
10101 * windows-nat.c (windows_add_thread, windows_delete_thread)
10102 (windows_nat_target::fetch_registers)
10103 (windows_nat_target::store_registers, fake_create_process)
10104 (windows_nat_target::resume, windows_nat_target::resume)
10105 (get_windows_debug_event, windows_nat_target::wait)
10106 (windows_nat_target::pid_to_str)
10107 (windows_nat_target::get_tib_address)
10108 (windows_nat_target::get_ada_task_ptid)
10109 (windows_nat_target::thread_name)
10110 (windows_nat_target::thread_alive): Use lwp, not tid.
10111
2950fdf7
TT
101122020-04-08 Tom Tromey <tromey@adacore.com>
10113
10114 * windows-nat.c (handle_exception)
10115 (windows_nat_target::thread_name): Update.
10116 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10117 <name>: Now unique_xmalloc_ptr.
10118
62fe396b
TT
101192020-04-08 Tom Tromey <tromey@adacore.com>
10120
10121 * windows-nat.c (thread_rec)
10122 (windows_nat_target::fetch_registers): Update.
10123 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10124 Update comment.
10125 <debug_registers_changed, reload_context>: Now bool.
10126
e9534bd2
TT
101272020-04-08 Tom Tromey <tromey@adacore.com>
10128
10129 * windows-nat.c (windows_add_thread): Use new.
10130 (windows_init_thread_list, windows_delete_thread): Use delete.
10131 (get_windows_debug_event): Update.
10132 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10133 destructor, and initializers.
10134
ae1f8880
TT
101352020-04-08 Tom Tromey <tromey@adacore.com>
10136
10137 * windows-nat.c (struct windows_thread_info): Remove.
10138 * nat/windows-nat.h: New file.
10139
55a1e039
TT
101402020-04-08 Tom Tromey <tromey@adacore.com>
10141
10142 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10143 (thread_rec, windows_add_thread, windows_delete_thread)
10144 (windows_continue): Update.
10145
93366324
TT
101462020-04-08 Tom Tromey <tromey@adacore.com>
10147
10148 * windows-nat.c (struct windows_thread_info): Remove typedef.
10149 (thread_head): Remove.
10150 (thread_list): New global.
10151 (thread_rec, windows_add_thread, windows_init_thread_list)
10152 (windows_delete_thread, windows_continue): Update.
10153
0f2265e2
SM
101542020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10155
10156 * windows-tdep.h (windows_init_abi): Add comment.
10157 (cygwin_init_abi): New declaration.
10158 * windows-tdep.c: Split signal enumeration in two, one for
10159 Windows and one for Cygwin.
10160 (windows_gdb_signal_to_target): Only deal with signal of the
10161 Windows OS ABI.
10162 (cygwin_gdb_signal_to_target): New function.
10163 (windows_init_abi): Rename to windows_init_abi_common, don't set
10164 gdb_signal_to_target gdbarch method. Add new new function with
10165 this name.
10166 (cygwin_init_abi): New function.
10167 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10168 comment. Don't call windows_init_abi.
10169 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10170 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10171 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10172 i386_windows_init_abi_common, don't call windows_init_abi. Add
10173 a new function of this name.
10174 (i386_cygwin_init_abi): New function.
10175 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10176 OS ABI Cygwin.
10177
3810f182
SM
101782020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10179
10180 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10181 parameter.c.
10182 (dwarf2_read_gdb_index): Update.
10183
063f8e80
KR
101842020-04-07 Kamil Rytarowski <n54@gmx.com>
10185
10186 * nbsd-tdep.c: Include "objfiles.h".
10187 (nbsd_skip_solib_resolver): New.
10188 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10189
85a9510c 101902020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10191
10192 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10193 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10194 with DW_LLE_base_addressx are being emitted in DWARFv5.
10195 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10196 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10197 unsigned integer.
10198
9fc3eaae 101992020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10200
10201 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10202 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10203 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10204 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10205 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10206 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10207 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10208
10209
41144253 102102020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10211
10212 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10213 (read_loclist_index): New function definition.
10214 (lookup_loclist_base): New function definition.
10215 (read_loclist_header): New function definition.
10216 (dwarf2_cu): Add loclist_base and loclist_header field.
10217 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10218 (read_full_die_1): Read the value of DW_AT_loclists_base.
10219 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10220 (read_attribute_value): Handle DW_FORM_loclistx.
10221 (skip_one_die): Handle DW_FORM_loclistx.
10222 (loclist_header): New structure declaration.
10223 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10224
9f4e76a4
SM
102252020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10226
10227 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10228 constructor. Remove `addr` parameter from other constructor and
10229 add `per_cu` parameter.
10230 * dwarf2/read.c (create_partial_symtab): Update.
10231
25c11aca
TV
102322020-04-07 Tom de Vries <tdevries@suse.de>
10233
10234 PR symtab/25796
10235 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10236 (partial_die_info::fixup): Inherit has_const_value.
10237
5707e24b
TV
102382020-04-07 Tom de Vries <tdevries@suse.de>
10239
10240 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10241 symbols without address.
10242
05f00e22
KR
102432020-04-06 Kamil Rytarowski <n54@gmx.com>
10244
10245 * nbsd-nat.h (struct thread_info): Add forward declaration.
10246 (nbsd_nat_target::thread_alive): Add.
10247 (nbsd_nat_target::thread_name): Likewise.
10248 (nbsd_nat_target::update_thread_list): Likewise.
10249 (update_thread_list::post_attach): Likewise.
10250 (post_attach::pid_to_str): Likewise.
10251 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10252 (nbsd_thread_lister): Add.
10253 (nbsd_nat_target::thread_alive): Likewise.
10254 (nbsd_nat_target::thread_name): Likewise.
10255 (nbsd_add_threads): Likewise.
10256 (update_thread_list::post_attach): Likewise.
10257 (nbsd_nat_target::update_thread_list): Likewise.
10258 (post_attach::pid_to_str): Likewise.
10259
6ee448cc
TT
102602020-04-06 Tom Tromey <tromey@adacore.com>
10261
10262 * ada-valprint.c (print_variant_part): Extract the variant field.
10263 (print_field_values): Use the field as the outer value when
10264 recursing.
10265
dea34e8c
TT
102662020-04-06 Tom Tromey <tromey@adacore.com>
10267
10268 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10269 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10270 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10271 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10272 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10273
93689ce9
TT
102742020-04-06 Tom Tromey <tromey@adacore.com>
10275
10276 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10277 TYPE_CODE_ERROR.
10278
79743962
KR
102792020-04-06 Kamil Rytarowski <n54@gmx.com>
10280
10281 * nbsd-tdep.c: Include "gdbarch.h".
10282 Define enum with NetBSD signal numbers.
10283 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10284 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10285 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10286 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10287 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10288 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10289 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10290 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10291 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10292 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10293 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10294 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10295
9e7c9a03
HD
102962020-04-03 Hannes Domani <ssbssa@yahoo.de>
10297
10298 PR gdb/25325
10299 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10300
d9e49b61
TT
103012020-04-03 Tom Tromey <tromey@adacore.com>
10302
10303 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10304 Read constant block.
10305
e0fc5c3f
SM
103062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10307
10308 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10309 (gdb_bfd_get_full_section_contents): New declaration.
10310 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10311 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10312 gdb_bfd_get_full_section_contents.
10313
e2ff18a0
SM
103142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * exec.c (build_section_table): Replace internal_error with
10317 gdb_assert.
10318 (section_table_xfer_memory_partial): Likewise.
10319 * mdebugread.c (parse_partial_symbols): Likewise.
10320 * psymtab.c (lookup_partial_symbol): Likewise.
10321 * utils.c (wrap_here): Likewise.
10322
0830d301
TT
103232020-04-02 Tom Tromey <tromey@adacore.com>
10324
10325 * f-lang.c (build_fortran_types): Use arch_type to initialize
10326 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10327
e7da7f8f
TT
103282020-04-02 Tom Tromey <tromey@adacore.com>
10329
10330 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10331 of attributes.
10332
c90d28ac
AB
103332020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10334 Bernd Edlinger <bernd.edlinger@hotmail.de>
10335 Tom Tromey <tromey@adacore.com>
10336
10337 * buildsym.c (buildsym_compunit::record_line): Remove
10338 deduplication code.
10339
1aa98955
TV
103402020-04-02 Tom de Vries <tdevries@suse.de>
10341
10342 PR ada/24671
10343 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10344
d3214198
TV
103452020-04-02 Tom de Vries <tdevries@suse.de>
10346
10347 * dwarf2/read.c (dwarf2_gdb_index_functions,
10348 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10349 NULL.
10350 * psymtab.c (psym_lookup_global_symbol_language): New function.
10351 (psym_functions): Init psym_lookup_global_symbol_language with
10352 psym_lookup_global_symbol_language.
10353 * symfile-debug.c (debug_sym_quick_functions): Init
10354 lookup_global_symbol_language with NULL.
10355 * symfile.c (set_initial_language): Remove fixme comment.
10356 * symfile.h (struct quick_symbol_functions): Add
10357 lookup_global_symbol_language.
10358 * symtab.c (find_quick_global_symbol_language): New function.
10359 (find_main_name): Use find_quick_global_symbol_language.
10360
2836752f
SM
103612020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10362
10363 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10364
64dc2d4b
BE
103652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10366
10367 * buildsym.c (record_line): Fix undefined behavior and preserve
10368 lines at eof.
10369
bbe3dc41
BE
103702020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10371
10372 * buildsym.c (record_line): Fix the resizing condition.
10373
6b4a335b
TT
103742020-04-01 Tom Tromey <tom@tromey.com>
10375
10376 * value.h (value_literal_complex): Add comment.
10377 * valops.c (value_literal_complex): Refer to value.h.
10378
3638a098
TT
103792020-04-01 Tom Tromey <tom@tromey.com>
10380
10381 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10382 (scalar_type): New rule, from typebase.
10383 (typebase): Use scalar_type. Recognize complex types.
10384 (field_name): Handle FLOAT_KEYWORD.
10385 (ident_tokens): Add _Complex and __complex__.
10386
c34e8714
TT
103872020-04-01 Tom Tromey <tom@tromey.com>
10388
10389 PR exp/25299:
10390 * valarith.c (promotion_type, complex_binop): New functions.
10391 (scalar_binop): Handle complex numbers. Use promotion_type.
10392 (value_pos, value_neg, value_complement): Handle complex numbers.
10393
fa649bb7
TT
103942020-04-01 Tom Tromey <tom@tromey.com>
10395
10396 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10397 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10398 (parse_number): Handle complex numbers.
10399
981c08ce
TT
104002020-04-01 Tom Tromey <tom@tromey.com>
10401
10402 * c-valprint.c (c_decorations): Change complex suffix to "i".
10403
4c99290d
TT
104042020-04-01 Tom Tromey <tom@tromey.com>
10405
10406 * valprint.c (generic_value_print_complex): Use accessors.
10407 * value.h (value_real_part, value_imaginary_part): Declare.
10408 * valops.c (value_real_part, value_imaginary_part): New
10409 functions.
10410 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10411
5b930b45
TT
104122020-04-01 Tom Tromey <tom@tromey.com>
10413
10414 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10415 (read_range_type): Update.
10416 * mdebugread.c (basic_type): Update.
10417 * go-lang.c (build_go_types): Use init_complex_type.
10418 * gdbtypes.h (struct main_type) <complex_type>: New member.
10419 (init_complex_type): Update.
10420 (arch_complex_type): Don't declare.
10421 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10422 Make name if none given. Use alloc_type_copy. Look for cached
10423 complex type.
10424 (arch_complex_type): Remove.
10425 (gdbtypes_post_init): Use init_complex_type.
10426 * f-lang.c (build_fortran_types): Use init_complex_type.
10427 * dwarf2/read.c (read_base_type): Update.
10428 * d-lang.c (build_d_types): Use init_complex_type.
10429 * ctfread.c (read_base_type): Update.
10430
53cccef1
TBA
104312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10432
10433 * infrun.c (stop_all_threads): Update assertion, plus when
10434 stopping threads, take into account that we might be trying
10435 to stop an all-stop target.
10436 (stop_waiting): Call 'stop_all_threads' if there exists a
10437 non-stop target.
10438
a0714d30
TBA
104392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10440
10441 * target.h (exists_non_stop_target): New function declaration.
10442 * target.c (exists_non_stop_target): New function.
10443
60e22c1e
HD
104442020-04-01 Hannes Domani <ssbssa@yahoo.de>
10445
10446 PR gdb/24789
10447 * eval.c (is_integral_or_integral_reference): New function.
10448 (evaluate_subexp_standard): Allow integer references in
10449 pointer arithmetic.
10450
e139a727
TBA
104512020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10452
10453 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10454 check for no ptid in the stop reply when the target is non-stop.
10455
e0802d59
TT
104562020-04-01 Tom Tromey <tromey@adacore.com>
10457
10458 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10459 "name" parameter to rvalue reference. Initialize m_name_holder.
10460 <lookup_name_info>: New overloads.
10461 <name>: Return gdb::string_view.
10462 <c_str>: New method.
10463 <make_ignore_params>: Update.
10464 <search_name_hash>: Update.
10465 <language_lookup_name>: Return const char *.
10466 <m_name>: Change type.
10467 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10468 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10469 (lookup_name_info::match_any): Update.
10470 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10471 Update.
10472 * minsyms.c (linkage_name_str): Update.
10473 * language.c (default_symbol_name_matcher): Update.
10474 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10475 Update.
10476 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10477 (ada_lookup_name_info::ada_lookup_name_info): Update.
10478 (literal_symbol_name_matcher): Update.
10479
8c072cb6
TT
104802020-04-01 Tom Tromey <tromey@adacore.com>
10481
10482 * psymtab.c (psymtab_search_name): Remove function.
10483 (psym_lookup_symbol): Create search name and lookup name here.
10484 (lookup_partial_symbol): Remove "name" parameter; add
10485 lookup_name.
10486 (psym_expand_symtabs_for_function): Update.
10487
6f29a534
TT
104882020-03-31 Joel Jones <joelkevinjones@gmail.com>
10489
10490 PR tui/25597:
10491 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10492
af62665e
TT
104932020-03-31 Tom Tromey <tromey@adacore.com>
10494
10495 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10496 memcpy.
10497
d1a89da5
NC
104982020-03-30 Nelson Chu <nelson.chu@sifive.com>
10499
10500 * features/riscv/32bit-csr.xml: Regenerated.
10501 * features/riscv/64bit-csr.xml: Regenerated.
10502
d8af9068
TT
105032020-03-30 Tom Tromey <tromey@adacore.com>
10504
10505 * ada-valprint.c (print_variant_part): Update.
10506 * ada-lang.h (ada_which_variant_applies): Update.
10507 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10508 outer_valaddr parameters; replace with "outer" value parameter.
10509 (to_fixed_variant_branch_type): Update.
10510
227c0bf4
PFC
105112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10512
10513 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10514 <list>. Remove inclusion of observable.h.
10515 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10516 (struct arch_lwp_info): New struct.
10517 (class ppc_linux_dreg_interface): New class.
10518 (struct ppc_linux_process_info): New struct.
10519 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10520 <low_new_clone, low_forget_process, low_prepare_to_resume>
10521 <copy_thread_dreg_state, mark_thread_stale>
10522 <mark_debug_registers_changed, register_hw_breakpoint>
10523 <clear_hw_breakpoint, register_wp, clear_wp>
10524 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10525 <num_memory_accesses, get_trigger_type>
10526 <create_watchpoint_request, hwdebug_point_cmp>
10527 <init_arch_lwp_info, get_arch_lwp_info>
10528 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10529 methods.
10530 <struct ptid_hash>: New inner struct.
10531 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10532 members.
10533 (saved_dabr_value, hwdebug_info, max_slots_number)
10534 (struct hw_break_tuple, struct thread_points, ppc_threads)
10535 (have_ptrace_hwdebug_interface)
10536 (hwdebug_find_thread_points_by_tid)
10537 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10538 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10539 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10540 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10541 use m_dreg_interface.
10542 (hwdebug_point_cmp): Change to...
10543 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10544 reference arguments instead of pointers.
10545 (ppc_linux_nat_target::ranged_break_num_registers): Use
10546 m_dreg_interface.
10547 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10548 m_dreg_interface. Call register_hw_breakpoint.
10549 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10550 m_dreg_interface. Call clear_hw_breakpoint.
10551 (get_trigger_type): Change to...
10552 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10553 comment.
10554 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10555 use m_dreg_interface. Call register_hw_breakpoint.
10556 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10557 use m_dreg_interface. Call clear_hw_breakpoint.
10558 (can_use_watchpoint_cond_accel): Change to...
10559 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10560 method. Update comment, use m_dreg_interface and
10561 m_process_info.
10562 (calculate_dvc): Change to...
10563 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10564 m_dreg_interface.
10565 (num_memory_accesses): Change to...
10566 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10567 (check_condition): Change to...
10568 (ppc_linux_nat_target::check_condition): ...this method.
10569 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10570 comment, use m_dreg_interface.
10571 (create_watchpoint_request): Change to...
10572 (ppc_linux_nat_target::create_watchpoint_request): ...this
10573 method. Use m_dreg_interface.
10574 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10575 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10576 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10577 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10578 (ppc_linux_nat_target::low_forget_process)
10579 (ppc_linux_nat_target::low_new_fork)
10580 (ppc_linux_nat_target::low_new_clone)
10581 (ppc_linux_nat_target::low_delete_thread)
10582 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10583 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10584 only call mark_thread_stale.
10585 (ppc_linux_thread_exit): Remove.
10586 (ppc_linux_nat_target::stopped_data_address): Change to...
10587 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10588 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10589 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10590 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10591 comment. Call low_stopped_data_address.
10592 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10593 m_dreg_interface.
10594 (ppc_linux_nat_target::masked_watch_num_registers): Use
10595 m_dreg_interface.
10596 (ppc_linux_nat_target::copy_thread_dreg_state)
10597 (ppc_linux_nat_target::mark_thread_stale)
10598 (ppc_linux_nat_target::mark_debug_registers_changed)
10599 (ppc_linux_nat_target::register_hw_breakpoint)
10600 (ppc_linux_nat_target::clear_hw_breakpoint)
10601 (ppc_linux_nat_target::register_wp)
10602 (ppc_linux_nat_target::clear_wp)
10603 (ppc_linux_nat_target::init_arch_lwp_info)
10604 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10605 (_initialize_ppc_linux_nat): Remove observer callback.
10606
4db10d8f
PFC
106072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10608
10609 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10610 (ppc_linux_nat_target::auxv_parse)
10611 (ppc_linux_nat_target::read_description)
10612 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10613 Move up.
10614
1310c1b0
PFC
106152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10616
10617 * linux-nat.h (low_new_clone): New method.
10618 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10619
69b037c3
SM
106202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10621
10622 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10623 (dbx_expand_psymtab): ... this.
10624 (start_psymtab): Update.
10625 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10626 (mdebug_expand_psymtab): ... this.
10627 (parse_partial_symbols): Update.
10628 (new_psymtab): Update.
10629 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10630 (xcoff_expand_psymtab): ... this.
10631 (xcoff_start_psymtab): Update.
10632
48993951
SM
106332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10634
10635 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10636 <expand_dependencies>: ... this.
10637 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10638 (partial_symtab::expand_dependencies): ... this.
10639 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10640 Update.
10641 (dwarf2_psymtab::expand_psymtab): Update.
10642 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10643 * mdebugread.c (psymtab_to_symtab_1): Update.
10644 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10645
3ad83046
SM
106462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10647
10648 * psympriv.h (discard_psymtab): Remove.
10649 * dbxread.c (dbx_end_psymtab): Update.
10650 * xcoffread.c (xcoff_end_psymtab): Update.
10651
4d1b9ab6
TT
106522020-03-28 Tom Tromey <tom@tromey.com>
10653
10654 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10655 comment.
10656
f1749218
TT
106572020-03-28 Tom Tromey <tom@tromey.com>
10658
10659 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10660
ebea7626
HD
106612020-03-27 Hannes Domani <ssbssa@yahoo.de>
10662
10663 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10664
a879b4d5
JB
106652020-03-26 John Baldwin <jhb@FreeBSD.org>
10666
10667 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10668
0826b30a
TT
106692020-03-26 Tom Tromey <tom@tromey.com>
10670
10671 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10672 (mark_common_block_symbol_computed, read_tag_string_type)
10673 (attr_to_dynamic_prop, read_subrange_type): Update.
10674 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10675 to be methods on struct attribute.
10676 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10677 (read_call_site_scope, partial_die_info::read)
10678 (partial_die_info::read, lookup_die_type, follow_die_ref):
10679 Update.
10680 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10681 from dwarf2_get_ref_die_offset.
10682 (attribute::constant_value): New method, from
10683 dwarf2_get_attr_constant_value.
10684 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10685 Declare method.
10686 <constant_value>: New method.
10687
2b2558bf
TT
106882020-03-26 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10691 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10692 (dwarf_type_encoding_name): Move to stringify.c.
10693 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10694 * dwarf2/stringify.c: New file.
10695 * dwarf2/stringify.h: New file.
10696
eeb64781
TT
106972020-03-26 Tom Tromey <tom@tromey.com>
10698
10699 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10700 Rewrite.
10701
a39fdb41
TT
107022020-03-26 Tom Tromey <tom@tromey.com>
10703
10704 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10705 methods.
10706 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10707 (lookup_ranges_base): Likewise.
10708 (read_cutu_die_from_dwo, read_full_die_1): Update.
10709
436c571c
TT
107102020-03-26 Tom Tromey <tom@tromey.com>
10711
10712 * dwarf2/read.c (read_import_statement, read_file_scope)
10713 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10714 (read_lexical_block_scope, read_call_site_scope)
10715 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10716 (handle_struct_member_die, process_structure_scope)
10717 (update_enumeration_type_from_children)
10718 (process_enumeration_scope, read_array_type, read_common_block)
10719 (read_namespace, read_module, read_subroutine_type): Update.
10720 (sibling_die): Remove.
10721
052c8bb8
TT
107222020-03-26 Tom Tromey <tom@tromey.com>
10723
10724 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10725 (build_type_psymtabs_reader, read_structure_type)
10726 (read_enumeration_type, read_full_die_1): Update.
10727 (dwarf2_attr_no_follow): Move to die.h.
10728 * dwarf2/die.h (struct die_info) <attr>: New method.
10729
2b24b6e4
TT
107302020-03-26 Tom Tromey <tom@tromey.com>
10731
10732 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10733 <base_address>: Now an optional.
10734 (dwarf2_find_base_address, dwarf2_rnglists_process)
10735 (dwarf2_ranges_process, fill_in_loclist_baton)
10736 (dwarf2_symbol_mark_computed): Update.
10737
c2d50fd0
TT
107382020-03-26 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (struct die_info): Move to die.h.
10741 * dwarf2/die.h: New file.
10742
0df7ad3a
TT
107432020-03-26 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10746 * dwarf2/read.c
10747 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10748 Move to line-header.c.
10749 (read_checked_initial_length_and_offset, read_formatted_entries):
10750 Likewise.
10751 (dwarf_decode_line_header): Split into two.
10752 * dwarf2/line-header.c
10753 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10754 Move from read.c.
10755 (read_checked_initial_length_and_offset, read_formatted_entries):
10756 Likewise.
10757 (dwarf_decode_line_header): New function, split from read.c.
10758
86c0bb4c
TT
107592020-03-26 Tom Tromey <tom@tromey.com>
10760
10761 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10762 Declare method.
10763 * dwarf2/read.c (read_attribute_value): Update.
10764 (dwarf2_per_objfile::read_line_string): Rename from
10765 read_indirect_line_string.
10766 (read_formatted_entries): Update.
10767
2ef46c2f
TT
107682020-03-26 Tom Tromey <tom@tromey.com>
10769
10770 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10771 variable.
10772
4f9c1eda
TT
107732020-03-26 Tom Tromey <tom@tromey.com>
10774
10775 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10776 const.
10777 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10778 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10779 parameter const.
10780
5a0e026f
TT
107812020-03-26 Tom Tromey <tom@tromey.com>
10782
10783 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10784 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10785 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10786 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10787
8844c11b
TT
107882020-03-26 Tom Tromey <tom@tromey.com>
10789
10790 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10791 file_names_size, file_full_name, file_file_name>: Use const.
10792 <file_name_at, file_names>: Add const overload.
10793 * dwarf2/line-header.c (line_header::file_file_name)
10794 (line_header::file_full_name): Update.
10795
c90ec28a
TT
107962020-03-26 Tom Tromey <tom@tromey.com>
10797
10798 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10799 (macro_start_file, consume_improper_spaces)
10800 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10801 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10802 (dwarf_decode_macros): Move to macro.c.
10803 * dwarf2/macro.c: New file.
10804 * dwarf2/macro.h: New file.
10805 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10806
4f44ae6c
TT
108072020-03-26 Tom Tromey <tom@tromey.com>
10808
10809 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10810 method.
10811 * dwarf2/section.c: New method. From
10812 read_indirect_string_at_offset_from.
10813 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10814 (read_indirect_string_at_offset_from): Move to section.c.
10815 (read_indirect_string_at_offset): Rewrite.
10816 (read_indirect_line_string_at_offset): Remove.
10817 (read_indirect_string, read_indirect_line_string)
10818 (dwarf_decode_macro_bytes): Update.
10819
a0194fa8
TT
108202020-03-26 Tom Tromey <tom@tromey.com>
10821
10822 * dwarf2/section.h (struct dwarf2_section_info)
10823 <overload_complaint>: Declare.
10824 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10825 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10826 Rename from dwarf2_section_buffer_overflow_complaint.
10827 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10828 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10829
3d27bbdb
TT
108302020-03-26 Tom Tromey <tom@tromey.com>
10831
10832 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10833 Declare.
10834 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10835 Move from read.c.
10836 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10837 to section.c.
10838
9eac9650
TT
108392020-03-26 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10842
bf80d710
TT
108432020-03-26 Tom Tromey <tom@tromey.com>
10844
10845 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10846 "builder".
10847 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10848 parameter.
10849 (dwarf_decode_macros): Update.
10850
0314b390
TT
108512020-03-26 Tom Tromey <tom@tromey.com>
10852
10853 * dwarf2/read.c (read_attribute_value): Update.
10854 (read_indirect_string_from_dwz): Move to dwz.c; change into
10855 method.
10856 (dwarf_decode_macro_bytes): Update.
10857 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10858 * dwarf2/dwz.c: New file.
10859 * Makefile.in (COMMON_SFILES): Add dwz.c.
10860
9fda78b6
TT
108612020-03-26 Tom Tromey <tom@tromey.com>
10862
10863 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10864 * dwarf2/read.c: Add include.
10865 * dwarf2/index-write.c: Add include.
10866 * dwarf2/index-cache.c: Add include.
10867 * dwarf2/dwz.h: New file.
10868
33aa3c10
TT
108692020-03-25 Tom Tromey <tom@tromey.com>
10870
10871 * compile/compile-object-load.c (get_out_value_type): Mention
10872 correct symbol name in error message.
10873
d503b685
HD
108742020-03-25 Hannes Domani <ssbssa@yahoo.de>
10875
10876 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10877
7b1eff95
TV
108782020-03-25 Tom de Vries <tdevries@suse.de>
10879
10880 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10881 * symmisc.c (dump_symtab_1): Print user and includes fields.
10882 (maintenance_info_symtabs): Same.
10883
dd895392
AB
108842020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10885
10886 PR gdb/25534
10887 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10888 (riscv_regcache_cooked_write): New function.
10889 (riscv_push_dummy_call): Use new function.
10890 (riscv_return_value): Likewise.
10891
5ab2fbf1
SM
108922020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10893
10894 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10895 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10896 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10897 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10898 * infrun.c (follow_fork): Likewise.
10899 (follow_fork_inferior): Likewise.
10900 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10901 * linux-nat.h (class linux_nat_target): Likewise.
10902 * remote.c (class remote_target) <follow_fork>: Likewise.
10903 (remote_target::follow_fork): Likewise.
10904 * target-delegates.c: Re-generate.
10905 * target.c (default_follow_fork): Likewise.
10906 (target_follow_fork): Likewise.
10907 * target.h (struct target_ops) <follow_fork>: Likewise.
10908 (target_follow_fork): Likewise.
10909
a64fafb5
TV
109102020-03-24 Tom de Vries <tdevries@suse.de>
10911
10912 * psymtab.c (maintenance_info_psymtabs): Print user field.
10913
fe26d3a3
TT
109142020-03-20 Tom Tromey <tromey@adacore.com>
10915
10916 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10917 const.
10918 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10919 const.
10920
c884cc46
SM
109212020-03-20 Simon Marchi <simon.marchi@efficios.com>
10922
10923 * ptrace.m4: Don't check for ptrace declaration.
10924 * config.in: Re-generate.
10925 * configure: Re-generate.
10926 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10927 not defined.
10928
1ff700c2
KR
109292020-03-20 Kamil Rytarowski <n54@gmx.com>
10930
10931 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10932 `PTRACE_TYPE_RET'.
10933 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10934 * sparc-nat.c (gdb_ptrace): Likewise.
10935 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10936
f7d4f0b1
TT
109372020-03-20 Tom Tromey <tromey@adacore.com>
10938
10939 * c-exp.y (lex_one_token): Fix assert.
10940
f67210ff
TT
109412020-03-20 Tom Tromey <tromey@adacore.com>
10942
10943 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10944 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10945 strncpy call.
10946
1773be9e
TT
109472020-03-20 Tom Tromey <tromey@adacore.com>
10948
10949 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10950
70304be9
TT
109512020-03-20 Tom Tromey <tromey@adacore.com>
10952
10953 * ada-valprint.c (print_variant_part): Remove parameters; switch
10954 to value-based API.
10955 (print_field_values): Likewise.
10956 (ada_val_print_struct_union): Likewise.
10957 (ada_value_print_1): Update.
10958
9faa006d
KR
109592020-03-20 Kamil Rytarowski <n54@gmx.com>
10960
10961 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10962 nbsd_nat_target instead of inf_ptrace_target.
10963 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10964 nbsd_nat_target.
10965
4a90f062
KR
109662020-03-20 Kamil Rytarowski <n54@gmx.com>
10967
10968 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10969 it to the ptrace call.
10970 * (store_registers): Likewise.
10971
109722020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10973
10974 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10975 it to the ptrace call.
10976 * (store_registers): Likewise.
10977
2d07da27
LM
109782020-03-19 Luis Machado <luis.machado@linaro.org>
10979
10980 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10981 valid, fetch vg value from ptrace.
10982
f09db380
KR
109832020-03-19 Kamil Rytarowski <n54@gmx.com>
10984 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10985 * inf-ptrace.c: Likewise.
10986 * (gdb_ptrace): Add.
10987 * (inf_ptrace_target::resume): Update.
10988 * (inf_ptrace_target::xfer_partial): Likewise.
10989 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10990 * (inf_ptrace_peek_poke): Update.
10991
fcc7376e
KR
109922020-03-19 Kamil Rytarowski <n54@gmx.com>
10993
10994 * x86-bsd-nat.c (gdb_ptrace): New.
10995 * (x86bsd_dr_set): Add new argument `ptid'.
10996 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10997 x86bsd_dr_set_addr): Update.
10998
cada5fc9
AB
109992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11000
11001 * remote.c (remote_target::process_stop_reply): Handle events for
11002 all threads differently.
11003
19a2740f
AB
110042020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11005
11006 * completer.c (completion_tracker::remove_completion): Define new
11007 function.
11008 * completer.h (completion_tracker::remove_completion): Declare new
11009 function.
11010 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
11011 when adding a C++ function symbol.
11012
724fd9ba
AB
110132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
11014
11015 * completer.c (completion_tracker::completion_hash_entry): Define
11016 new class.
11017 (advance_to_filename_complete_word_point): Call
11018 recompute_lowest_common_denominator.
11019 (completion_tracker::completion_tracker): Call discard_completions
11020 to setup the hash table.
11021 (completion_tracker::discard_completions): Allow for being called
11022 from the constructor, pass new equal function, and element deleter
11023 when constructing the hash table. Initialise new class member
11024 variables.
11025 (completion_tracker::maybe_add_completion): Remove use of
11026 m_entries_vec, and store more information into m_entries_hash.
11027 (completion_tracker::recompute_lcd_visitor): New function, most
11028 content taken from...
11029 (completion_tracker::recompute_lowest_common_denominator):
11030 ...here, this now just visits each item in the hash calling the
11031 above visitor.
11032 (completion_tracker::build_completion_result): Remove use of
11033 m_entries_vec, call recompute_lowest_common_denominator.
11034 * completer.h (completion_tracker::have_completions): Remove use
11035 of m_entries_vec.
11036 (completion_tracker::completion_hash_entry): Declare new class.
11037 (completion_tracker::recompute_lowest_common_denominator): Change
11038 function signature.
11039 (completion_tracker::recompute_lcd_visitor): Declare new function.
11040 (completion_tracker::m_entries_vec): Delete.
11041 (completion_tracker::m_entries_hash): Initialize to NULL.
11042 (completion_tracker::m_lowest_common_denominator_valid): New
11043 member variable.
11044 (completion_tracker::m_lowest_common_denominator_max_length): New
11045 member variable.
11046
5a82b8a1
KR
110472020-03-17 Kamil Rytarowski <n54@gmx.com>
11048
11049 * regformats/regdef.h: Put reg in gdb namespace.
11050
fb516a69
KR
110512020-03-17 Kamil Rytarowski <n54@gmx.com>
11052
11053 * i386-bsd-nat.c (gdb_ptrace): New.
11054 * (i386bsd_fetch_inferior_registers,
11055 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11056 * (i386bsd_fetch_inferior_registers,
11057 i386bsd_store_inferior_registers) Use gdb_ptrace.
11058
1c0aa1fb
KR
110592020-03-17 Kamil Rytarowski <n54@gmx.com>
11060
11061 * amd64-bsd-nat.c (gdb_ptrace): New.
11062 * (amd64bsd_fetch_inferior_registers,
11063 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
11064 * (amd64bsd_fetch_inferior_registers,
11065 amd64bsd_store_inferior_registers) Use gdb_ptrace.
11066
5ccd2fb7
KR
110672020-03-17 Kamil Rytarowski <n54@gmx.com>
11068
11069 * user-regs.c (user_reg::read): Rename to...
11070 (user_reg::xread): ...this.
11071 * (append_user_reg): Rename argument `read' to `xread'.
11072 * (user_reg_add_builtin): Likewise.
11073 * (user_reg_add): Likewise.
11074 * (value_of_user_reg): Likewise.
11075
2108a63a
KR
110762020-03-17 Kamil Rytarowski <n54@gmx.com>
11077
11078 * sparc-nat.c (gdb_ptrace): New.
11079 * sparc-nat.c (sparc_fetch_inferior_registers)
11080 (sparc_store_inferior_registers) Remove obsolete comment.
11081 * sparc-nat.c (sparc_fetch_inferior_registers)
11082 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11083 * sparc-nat.c (sparc_fetch_inferior_registers)
11084 (sparc_store_inferior_registers) Use gdb_ptrace.
11085
a225c9a8
KR
110862020-03-17 Kamil Rytarowski <n54@gmx.com>
11087
11088 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11089 it to the ptrace call.
11090 * sh-nbsd-nat.c (store_registers): Likewise.
11091
98097623
KR
110922020-03-17 Kamil Rytarowski <n54@gmx.com>
11093
11094 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11095 nbsd_nat_target instead of inf_ptrace_target.
11096 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11097 nbsd_nat_target.
11098
9e38d619
KR
110992020-03-17 Kamil Rytarowski <n54@gmx.com>
11100
11101 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11102
a2ecbe9f
KR
111032020-03-17 Kamil Rytarowski <n54@gmx.com>
11104
11105 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11106 <sys/sysctl.h>.
11107 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11108
58990295
TV
111092020-03-17 Tom de Vries <tdevries@suse.de>
11110
11111 PR gdb/23710
11112 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11113 fields.
11114 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11115 fields.
11116 (process_imported_unit_die): Skip import of c++ CUs.
11117
771dd3a8
TT
111182020-03-16 Tom Tromey <tom@tromey.com>
11119
11120 * p-valprint.c (pascal_object_print_value): Initialize
11121 base_value.
11122
817a7585
AK
111232020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11124 Shahab Vahedi <shahab@synopsys.com>
11125
11126 * Makefile.in: Add arch/arc.o
11127 * configure.tgt: Likewise.
11128 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11129 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11130 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11131 * arc-tdep.h (arc_read_description): Add proto type.
11132 * arch/arc.c: New file.
11133 * arch/arc.h: Likewise.
11134 * features/Makefile: Replace old target descriptions with new.
11135 * features/arc-arcompact.c: Remove.
11136 * features/arc-arcompact.xml: Likewise.
11137 * features/arc-v2.c: Likewise
11138 * features/arc-v2.xml: Likewise
11139 * features/arc/aux-arcompact.xml: New file.
11140 * features/arc/aux-v2.xml: Likewise.
11141 * features/arc/core-arcompact.xml: Likewise.
11142 * features/arc/core-v2.xml: Likewise.
11143 * features/arc/aux-arcompact.c: Generate.
11144 * features/arc/aux-v2.c: Likewise.
11145 * features/arc/core-arcompact.c: Likewise.
11146 * features/arc/core-v2.c: Likewise.
11147 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11148
67430cd0
TT
111492020-03-16 Tom Tromey <tromey@adacore.com>
11150
11151 PR gdb/25663:
11152 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11153 putting value into bcache.
11154
30efb6c7
SM
111552020-03-16 Simon Marchi <simon.marchi@efficios.com>
11156
11157 PR gdb/21500
11158 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11159 to...
11160 (amd64_windows_init_abi_common): ... this. Don't set size of
11161 long type.
11162 (amd64_windows_init_abi): New function.
11163 (amd64_cygwin_init_abi): New function.
11164 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11165 the Cygwin OS ABI.
11166 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11167 comment.
11168
8db52437
SM
111692020-03-16 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11172 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11173 (pe_import_directory_entry): New struct type.
11174 (is_linked_with_cygwin_dll): New function.
11175 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11176 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11177 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11178
5982a56a
SM
111792020-03-16 Simon Marchi <simon.marchi@efficios.com>
11180
11181 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11182 i386_cygwin_core_osabi_sniffer.
11183
7a1998df
SM
111842020-03-16 Simon Marchi <simon.marchi@efficios.com>
11185
11186 * i386-cygwin-tdep.c: Rename to...
11187 * i386-windows-tdep.c: ... this.
11188 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11189 i386-windows-tdep.c.
11190 * configure.tgt: Likewise.
11191
053205cc
SM
111922020-03-16 Simon Marchi <simon.marchi@efficios.com>
11193
11194 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11195 * osabi.c (gdb_osabi_names): Add "Windows".
11196 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11197 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11198 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11199 i386_cygwin_osabi_sniffer.
11200 (_initialize_i386_cygwin_tdep): Register OS ABI
11201 GDB_OSABI_WINDOWS for i386.
11202 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11203 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11204 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11205 for x86-64.
11206 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11207 when the target matches '*-*-mingw*'.
11208
fe4b2ee6
SM
112092020-03-16 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * defs.h (enum gdb_osabi): Move to...
11212 * osabi.h (enum gdb_osabi): ... here.
11213 * gdbarch.sh: Include osabi.h in gdbarch.h.
11214 * gdbarch.h: Re-generate.
11215
cb9b645d
SM
112162020-03-16 Simon Marchi <simon.marchi@efficios.com>
11217
11218 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11219 function.
11220 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11221
3293bbaf
TT
112222020-03-14 Tom Tromey <tom@tromey.com>
11223
11224 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11225 for C++.
11226 (c_type_print_modifier): Likewise. Add "language" parameter.
11227 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11228 (c_type_print_base_1): Update.
11229 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11230 constants.
11231 * type-stack.c (type_stack::insert): Handle tp_atomic and
11232 tp_restrict.
11233 (type_stack::follow_type_instance_flags): Likewise.
11234 (type_stack::follow_types): Likewise. Merge type-following code.
11235 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11236 (space_identifier, cv_with_space_id)
11237 (const_or_volatile_or_space_identifier_noopt)
11238 (const_or_volatile_or_space_identifier): Remove.
11239 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11240 rules.
11241 (ptr_operator, typebase): Update.
11242 (enum token_flag) <FLAG_C>: New constant.
11243 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11244 "_Atomic".
11245 (lex_one_token): Handle FLAG_C.
11246
154151a6
KR
112472020-03-14 Kamil Rytarowski <n54@gmx.com>
11248
11249 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11250 it to the ptrace call.
11251 * m68k-bsd-nat.c (store_registers): Likewise.
11252
bc107784
KR
112532020-03-14 Kamil Rytarowski <n54@gmx.com>
11254
11255 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11256 gdb_byte *.
11257 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11258 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11259 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11260
01a80117
KR
112612020-03-14 Kamil Rytarowski <n54@gmx.com>
11262
11263 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11264 nbsd_nat_target instead of inf_ptrace_target.
11265 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11266 nbsd_nat_target.
11267
f90280ca
KR
112682020-03-14 Kamil Rytarowski <n54@gmx.com>
11269
11270 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11271 register_t.
11272
6def66f1
KR
112732020-03-14 Kamil Rytarowski <n54@gmx.com>
11274
11275 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11276 it to the ptrace call.
11277 * alpha-bsd-nat.c (store_registers): Likewise.
11278
66eaca97
KR
112792020-03-14 Kamil Rytarowski <n54@gmx.com>
11280
11281 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11282 includes.
11283 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11284 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11285 fill_fpregset): Likewise.
11286
4fed520b
KR
112872020-03-14 Kamil Rytarowski <n54@gmx.com>
11288
11289 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11290 nbsd_nat_target instead of inf_ptrace_target.
11291 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11292 nbsd_nat_target.
11293
2190cf06
KR
112942020-03-14 Kamil Rytarowski <n54@gmx.com>
11295
11296 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11297 register_t.
11298
75c56d3d
KR
112992020-03-14 Kamil Rytarowski <n54@gmx.com>
11300
11301 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11302 it to the ptrace call.
11303 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11304 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11305 * arm-nbsd-nat.c (store_register): Likewise.
11306 * arm-nbsd-nat.c (store_regs): Likewise.
11307 * arm-nbsd-nat.c (store_fp_register): Likewise.
11308 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11309
6018d381
KR
113102020-03-14 Kamil Rytarowski <n54@gmx.com>
11311
11312 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11313 nbsd_nat_target instead of inf_ptrace_target.
11314 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11315 nbsd_nat_target.
11316
013f99f0
KR
113172020-03-14 Kamil Rytarowski <n54@gmx.com>
11318
11319 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11320 it to the ptrace call.
11321 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11322
12753073
KR
113232020-03-14 Kamil Rytarowski <n54@gmx.com>
11324
6227b330
KR
11325 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11326 it to the ptrace call.
11327 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11328
113292020-03-14 Kamil Rytarowski <n54@gmx.com>
11330
11331 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11332 gdb_byte *.
12753073
KR
11333 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11334
d5be5fa4
KR
113352020-03-14 Kamil Rytarowski <n54@gmx.com>
11336
11337 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11338 instead of inf_ptrace_target.
11339 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11340 nbsd_nat_target.
11341
8110f842
KR
113422020-03-14 Kamil Rytarowski <n54@gmx.com>
11343
11344 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11345 register_t.
11346
52feded7
KR
113472020-03-14 Kamil Rytarowski <n54@gmx.com>
11348
11349 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11350 register_t.
11351
25567eee
KR
113522020-03-14 Kamil Rytarowski <n54@gmx.com>
11353
11354 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11355 register_t.
11356
426a9c18
TT
113572020-03-13 Tom Tromey <tom@tromey.com>
11358
11359 * value.h (val_print): Don't declare.
11360 * valprint.h (val_print_array_elements)
11361 (val_print_scalar_formatted, generic_val_print): Don't declare.
11362 * valprint.c (generic_val_print_array): Take a struct value.
11363 (generic_val_print_ptr, generic_val_print_memberptr)
11364 (generic_val_print_bool, generic_val_print_int)
11365 (generic_val_print_char, generic_val_print_complex)
11366 (generic_val_print): Remove.
11367 (generic_value_print): Update.
11368 (do_val_print): Remove unused parameters. Don't call
11369 la_val_print.
11370 (val_print): Remove.
11371 (common_val_print): Update. Don't call value_check_printable.
11372 (val_print_scalar_formatted, val_print_array_elements): Remove.
11373 * rust-lang.c (rust_val_print): Remove.
11374 (rust_language_defn): Update.
11375 * p-valprint.c (pascal_val_print): Remove.
11376 (pascal_value_print_inner): Update.
11377 (pascal_object_print_val_fields, pascal_object_print_val):
11378 Remove.
11379 (pascal_object_print_static_field): Update.
11380 * p-lang.h (pascal_val_print): Don't declare.
11381 * p-lang.c (pascal_language_defn): Update.
11382 * opencl-lang.c (opencl_language_defn): Update.
11383 * objc-lang.c (objc_language_defn): Update.
11384 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11385 * m2-lang.h (m2_val_print): Don't declare.
11386 * m2-lang.c (m2_language_defn): Update.
11387 * language.h (struct language_defn) <la_val_print>: Remove.
11388 * language.c (unk_lang_value_print_inner): Rename. Change
11389 argument types.
11390 (unknown_language_defn, auto_language_defn): Update.
11391 * go-valprint.c (go_val_print): Remove.
11392 * go-lang.h (go_val_print): Don't declare.
11393 * go-lang.c (go_language_defn): Update.
11394 * f-valprint.c (f_val_print): Remove.
11395 * f-lang.h (f_value_print): Don't declare.
11396 * f-lang.c (f_language_defn): Update.
11397 * d-valprint.c (d_val_print): Remove.
11398 * d-lang.h (d_value_print): Don't declare.
11399 * d-lang.c (d_language_defn): Update.
11400 * cp-valprint.c (cp_print_value_fields)
11401 (cp_print_value_fields_rtti, cp_print_value): Remove.
11402 (cp_print_static_field): Update.
11403 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11404 (c_val_print_struct, c_val_print_union, c_val_print_int)
11405 (c_val_print_memberptr, c_val_print): Remove.
11406 * c-lang.h (c_val_print_array, cp_print_value_fields)
11407 (cp_print_value_fields_rtti): Don't declare.
11408 * c-lang.c (c_language_defn, cplus_language_defn)
11409 (asm_language_defn, minimal_language_defn): Update.
11410 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11411 (ada_val_print_enum): Take a struct value.
11412 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11413 (ada_val_print): Remove.
11414 (ada_value_print_1): Update.
11415 (printable_val_type): Remove.
11416 * ada-lang.h (ada_val_print): Don't declare.
11417 * ada-lang.c (ada_language_defn): Update.
11418
42331a1e
TT
114192020-03-13 Tom Tromey <tom@tromey.com>
11420
11421 * valprint.c (do_val_print): Update.
11422 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11423 a struct value.
11424 (value_to_value_object_no_release): Declare.
11425 * python/py-value.c (value_to_value_object_no_release): New
11426 function.
11427 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11428 struct value.
11429 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11430 function.
11431 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11432 a struct value.
11433 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11434 Declare.
11435 (gdbscm_apply_val_pretty_printer): Take a struct value.
11436 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11437 value.
11438 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11439 value.
11440 * extension-priv.h (struct extension_language_ops)
11441 <apply_val_pretty_printer>: Take a struct value.
11442 * cp-valprint.c (cp_print_value): Create a struct value.
11443 (cp_print_value): Update.
11444
3a916a97
TT
114452020-03-13 Tom Tromey <tom@tromey.com>
11446
11447 * ada-valprint.c (print_field_values): Call common_val_print.
11448
b59eac37
TT
114492020-03-13 Tom Tromey <tom@tromey.com>
11450
11451 * ada-valprint.c (val_print_packed_array_elements): Remove
11452 bitoffset and val parameters. Call common_val_print.
11453 (ada_val_print_string): Remove offset, address, and original_value
11454 parameters.
11455 (ada_val_print_array): Update.
11456 (ada_value_print_array): New function.
11457 (ada_value_print_1): Call it.
11458
03371129
TT
114592020-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * ada-valprint.c (ada_value_print): Use common_val_print.
11462
2e088f8b
TT
114632020-03-13 Tom Tromey <tom@tromey.com>
11464
11465 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11466
39ef85a8
TT
114672020-03-13 Tom Tromey <tom@tromey.com>
11468
11469 * ada-valprint.c (ada_value_print_num): New function.
11470 (ada_value_print_1): Use it.
11471
b9fa6e07
TT
114722020-03-13 Tom Tromey <tom@tromey.com>
11473
11474 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11475
416595d6
TT
114762020-03-13 Tom Tromey <tom@tromey.com>
11477
11478 * ada-valprint.c (ada_value_print_ptr): New function.
11479 (ada_value_print_1): Use it.
11480
5b5e15ec
TT
114812020-03-13 Tom Tromey <tom@tromey.com>
11482
11483 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11484 call common_val_print.
11485 (ada_val_print_1): Update.
11486 (ada_value_print_1): New function.
11487 (ada_value_print_inner): Rewrite.
11488
fbf54e75
TT
114892020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * cp-valprint.c (cp_print_value_fields): Update.
11492 (cp_print_value): New function.
11493
64b653ca
TT
114942020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * m2-valprint.c (m2_value_print_inner): Use
11497 cp_print_value_fields.
11498 * cp-valprint.c (cp_print_value_fields): New function.
11499 * c-valprint.c (c_value_print_struct): New function.
11500 (c_value_print_inner): Use c_value_print_struct.
11501 * c-lang.h (cp_print_value_fields): Declare.
11502
6999f067
TT
115032020-03-13 Tom Tromey <tom@tromey.com>
11504
11505 * c-valprint.c (c_value_print_array): New function.
11506 (c_value_print_inner): Use it.
11507
ce80b8bd
TT
115082020-03-13 Tom Tromey <tom@tromey.com>
11509
11510 * c-valprint.c (c_value_print_memberptr): New function.
11511 (c_value_print_inner): Use it.
11512
2faac269
TT
115132020-03-13 Tom Tromey <tom@tromey.com>
11514
11515 * c-valprint.c (c_value_print_int): New function.
11516 (c_value_print_inner): Use it.
11517
da3e2c29
TT
115182020-03-13 Tom Tromey <tom@tromey.com>
11519
11520 * c-valprint.c (c_value_print_ptr): New function.
11521 (c_value_print_inner): Use it.
11522
50836231
TT
115232020-03-13 Tom Tromey <tom@tromey.com>
11524
11525 * c-valprint.c (c_value_print_inner): Rewrite.
11526
4f412b6e
TT
115272020-03-13 Tom Tromey <tom@tromey.com>
11528
11529 * valprint.c (generic_value_print_complex): New function.
11530 (generic_value_print): Use it.
11531
f5354008
TT
115322020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * valprint.c (generic_val_print_float): Don't call
11535 val_print_scalar_formatted.
11536 (generic_val_print, generic_value_print): Update.
11537
3eec3b05
TT
115382020-03-13 Tom Tromey <tom@tromey.com>
11539
11540 * valprint.c (generic_value_print_char): New function
11541 (generic_value_print): Use it.
11542
fdddfccb
TT
115432020-03-13 Tom Tromey <tom@tromey.com>
11544
11545 * valprint.c (generic_value_print_int): New function.
11546 (generic_value_print): Use it.
11547
6dde7521
TT
115482020-03-13 Tom Tromey <tom@tromey.com>
11549
11550 * valprint.c (generic_value_print_bool): New function.
11551 (generic_value_print): Use it.
11552
4112d2e6
TT
115532020-03-13 Tom Tromey <tom@tromey.com>
11554
11555 * valprint.c (generic_val_print_func): Simplify.
11556 (generic_val_print, generic_value_print): Update.
11557
65786af6
TT
115582020-03-13 Tom Tromey <tom@tromey.com>
11559
11560 * valprint.c (generic_val_print_flags): Remove.
11561 (generic_val_print, generic_value_print): Update.
11562 (val_print_type_code_flags): Add original_value parameter.
11563
40f3ce18
TT
115642020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * valprint.c (generic_val_print): Update.
11567 (generic_value_print): Update.
11568 * valprint.c (generic_val_print_enum): Don't call
11569 val_print_scalar_formatted.
11570
2a5b130b
TT
115712020-03-13 Tom Tromey <tom@tromey.com>
11572
11573 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11574 * valprint.c (generic_value_print_ptr): New function.
11575
abc66ce9
TT
115762020-03-13 Tom Tromey <tom@tromey.com>
11577
11578 * valprint.c (generic_value_print): Rewrite.
11579
07a32858
TT
115802020-03-13 Tom Tromey <tom@tromey.com>
11581
11582 * p-valprint.c (pascal_object_print_value_fields)
11583 (pascal_object_print_value): New functions.
11584
64d64d3a
TT
115852020-03-13 Tom Tromey <tom@tromey.com>
11586
11587 * p-valprint.c (pascal_value_print_inner): Rewrite.
11588
6a95a1f5
TT
115892020-03-13 Tom Tromey <tom@tromey.com>
11590
11591 * f-valprint.c (f_value_print_innner): Rewrite.
11592
59fcdac6
TT
115932020-03-13 Tom Tromey <tom@tromey.com>
11594
11595 * m2-valprint.c (m2_print_unbounded_array): New overload.
11596 (m2_print_unbounded_array): Update.
11597 (m2_print_array_contents): Take a struct value.
11598 (m2_value_print_inner): Rewrite.
11599
d133c3e1
TT
116002020-03-13 Tom Tromey <tom@tromey.com>
11601
11602 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11603 (d_value_print_inner): New function.
11604 * d-lang.h (d_value_print_inner): Declare.
11605 * d-lang.c (d_language_defn): Use d_value_print_inner.
11606
23b0f06b
TT
116072020-03-13 Tom Tromey <tom@tromey.com>
11608
11609 * go-valprint.c (go_value_print_inner): New function.
11610 * go-lang.h (go_value_print_inner): Declare.
11611 * go-lang.c (go_language_defn): Use go_value_print_inner.
11612
5f56f7cb
TT
116132020-03-13 Tom Tromey <tom@tromey.com>
11614
11615 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11616 API.
11617 (rust_val_print): Rewrite.
11618 (rust_value_print_inner): New function, from rust_val_print.
11619 (rust_language_defn): Use rust_value_print_inner.
11620
26792ee0
TT
116212020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * ada-valprint.c (ada_value_print_inner): New function.
11624 * ada-lang.h (ada_value_print_inner): Declare.
11625 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11626
24051bbe
TT
116272020-03-13 Tom Tromey <tom@tromey.com>
11628
11629 * f-valprint.c (f_value_print_innner): New function.
11630 * f-lang.h (f_value_print_innner): Declare.
11631 * f-lang.c (f_language_defn): Use f_value_print_innner.
11632
c0941be6
TT
116332020-03-13 Tom Tromey <tom@tromey.com>
11634
11635 * p-valprint.c (pascal_value_print_inner): New function.
11636 * p-lang.h (pascal_value_print_inner): Declare.
11637 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11638
62c4663d
TT
116392020-03-13 Tom Tromey <tom@tromey.com>
11640
11641 * m2-valprint.c (m2_value_print_inner): New function.
11642 * m2-lang.h (m2_value_print_inner): Declare.
11643 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11644
62182190
TT
116452020-03-13 Tom Tromey <tom@tromey.com>
11646
11647 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11648 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11649 * c-valprint.c (c_value_print_inner): New function.
11650 * c-lang.h (c_value_print_inner): Declare.
11651 * c-lang.c (c_language_defn, cplus_language_defn)
11652 (asm_language_defn, minimal_language_defn): Use
11653 c_value_print_inner.
11654
1e592a8a
TT
116552020-03-13 Tom Tromey <tom@tromey.com>
11656
11657 * p-valprint.c (pascal_object_print_value_fields): Now static.
11658 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11659
7fe471e9
TT
116602020-03-13 Tom Tromey <tom@tromey.com>
11661
11662 * c-valprint.c (c_val_print_array): Simplify.
11663
d121c6ce
TT
116642020-03-13 Tom Tromey <tom@tromey.com>
11665
11666 * valprint.c (value_print_array_elements): New function.
11667 * valprint.h (value_print_array_elements): Declare.
11668
4dba70ee
TT
116692020-03-13 Tom Tromey <tom@tromey.com>
11670
11671 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11672 * mips-tdep.c (mips_print_register): Use
11673 value_print_scalar_formatted.
11674
4f9ae810
TT
116752020-03-13 Tom Tromey <tom@tromey.com>
11676
11677 * valprint.h (value_print_scalar_formatted): Declare.
11678 * valprint.c (value_print_scalar_formatted): New function.
11679
156bfec9
TT
116802020-03-13 Tom Tromey <tom@tromey.com>
11681
11682 * valprint.h (generic_value_print): Declare.
11683 * valprint.c (generic_value_print): New function.
11684
2b4e573d
TT
116852020-03-13 Tom Tromey <tom@tromey.com>
11686
11687 * valprint.c (do_val_print): Call la_value_print_inner, if
11688 available.
11689 * rust-lang.c (rust_language_defn): Update.
11690 * p-lang.c (pascal_language_defn): Update.
11691 * opencl-lang.c (opencl_language_defn): Update.
11692 * objc-lang.c (objc_language_defn): Update.
11693 * m2-lang.c (m2_language_defn): Update.
11694 * language.h (struct language_defn) <la_value_print_inner>: New
11695 member.
11696 * language.c (unknown_language_defn, auto_language_defn): Update.
11697 * go-lang.c (go_language_defn): Update.
11698 * f-lang.c (f_language_defn): Update.
11699 * d-lang.c (d_language_defn): Update.
11700 * c-lang.c (c_language_defn, cplus_language_defn)
11701 (asm_language_defn, minimal_language_defn): Update.
11702 * ada-lang.c (ada_language_defn): Update.
11703
a1f6a07c
TT
117042020-03-13 Tom Tromey <tom@tromey.com>
11705
11706 * c-valprint.c (c_value_print): Use common_val_print.
11707
410cf315
TT
117082020-03-13 Tom Tromey <tom@tromey.com>
11709
11710 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11711
72a45c93
TT
117122020-03-13 Tom Tromey <tom@tromey.com>
11713
11714 * f-valprint.c (f77_print_array_1, f_val_print): Use
11715 common_val_print.
11716
040f66bd
TT
117172020-03-13 Tom Tromey <tom@tromey.com>
11718
11719 * riscv-tdep.c (riscv_print_one_register_info): Use
11720 common_val_print.
11721
a6e05a6c
TT
117222020-03-13 Tom Tromey <tom@tromey.com>
11723
11724 * mi/mi-main.c (output_register): Use common_val_print.
11725
3444c526
TT
117262020-03-13 Tom Tromey <tom@tromey.com>
11727
11728 * infcmd.c (default_print_one_register_info): Use
11729 common_val_print.
11730
c2a44efe
TT
117312020-03-13 Tom Tromey <tom@tromey.com>
11732
11733 * valprint.h (common_val_print_checked): Declare.
11734 * valprint.c (common_val_print_checked): New function.
11735 * stack.c (print_frame_arg): Use common_val_print_checked.
11736
b0c26e99
TT
117372020-03-13 Tom Tromey <tom@tromey.com>
11738
11739 * valprint.c (do_val_print): New function, from val_print.
11740 (val_print): Use do_val_print.
11741 (common_val_print): Use do_val_print.
11742
ce3acbe9
TT
117432020-03-13 Tom Tromey <tom@tromey.com>
11744
11745 * valprint.c (value_print): Use scoped_value_mark.
11746
96c7f873
TV
117472020-03-13 Tom de Vries <tdevries@suse.de>
11748
11749 PR symtab/25646
11750 * psymtab.c (partial_symtab::partial_symtab): Don't set
11751 globals_offset and statics_offset. Push element onto
11752 current_global_psymbols and current_static_psymbols stacks.
11753 (concat): New function.
11754 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11755 element from current_global_psymbols and current_static_psymbols
11756 stacks. Concat popped elements to global_psymbols and
11757 static_symbols.
11758 (add_psymbol_to_list): Use current_global_psymbols and
11759 current_static_psymbols stacks.
11760 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11761 current_static_psymbols fields.
11762
6ba0a321
CB
117632020-03-12 Christian Biesinger <cbiesinger@google.com>
11764
11765 * corelow.c (sniff_core_bfd): Remove.
11766 (class core_target) <m_core_vec>: Remove.
11767 (core_target::core_target): Update.
11768 (core_file_fns): Remove.
11769 (deprecated_add_core_fns): Remove.
11770 (default_core_sniffer): Remove.
11771 (sniff_core_bfd): Remove.
11772 (default_check_format): Remove.
11773 (gdb_check_format): Remove.
11774 (core_target_open): Update.
11775 (core_target::get_core_register_section): Update.
11776 (get_core_registers_cb): Update.
11777 (core_target::fetch_registers): Update.
11778 * gdbcore.h (struct core_fns): Remove.
11779 (deprecated_add_core_fns): Remove.
11780 (default_core_sniffer): Remove.
11781 (default_check_format): Remove.
11782
227031b2
TT
117832020-03-12 Tom Tromey <tom@tromey.com>
11784
11785 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11786 CORE_ADDR.
11787 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11788
53807e9f
TT
117892020-03-12 Tom Tromey <tom@tromey.com>
11790
11791 * remote.c (remote_target::download_tracepoint)
11792 (remote_target::enable_tracepoint)
11793 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11794 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11795 sprintf_vma.
11796
64f25102
TT
117972020-03-12 Tom Tromey <tom@tromey.com>
11798
11799 * symfile-mem.c: Update CORE_ADDR size assert.
11800
272cd5a3
SM
118012020-03-12 Simon Marchi <simon.marchi@efficios.com>
11802
11803 * selftest.m4: Move to gdbsupport/.
11804 * acinclude.m4: Update path to selftest.m4.
11805
74cd3f9d
SM
118062020-03-12 Simon Marchi <simon.marchi@efficios.com>
11807
11808 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11809 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11810 gdbarch-selfselftests.c and selftest-arch.c.
11811 (SUBDIR_UNITTESTS_OBS): Rename to...
11812 (SELFTESTS_OBS): ... this.
11813 (COMMON_SFILES): Remove disasm-selftests.c and
11814 gdbarch-selftests.c.
11815 * configure.ac: Don't add selftest-arch.{c,o} to
11816 CONFIG_{SRCS,OBS}.
11817 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11818 preprocessor conditions.
11819
db6878ac
SM
118202020-03-12 Simon Marchi <simon.marchi@efficios.com>
11821
11822 * configure.ac: Don't source bfd/development.sh.
11823 * selftest.m4: Modify comment.
11824 * configure: Re-generate.
11825
4d696a5c
SM
118262020-03-12 Simon Marchi <simon.marchi@efficios.com>
11827
11828 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11829 not "true" or "false".
11830 * configure: Re-generate.
11831
8dd8e1c7
CB
118322020-03-12 Christian Biesinger <cbiesinger@google.com>
11833
11834 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11835 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11836 renamed to arm_nbsd_supply_gregset.
11837 (fetch_register): Update to call arm_nbsd_supply_gregset.
11838 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11839 (arm_netbsd_nat_target::fetch_registers): Update.
11840 (fetch_elfcore_registers): Removed.
11841 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11842 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11843 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11844 not require NetBSD system headers.
11845 (arm_nbsd_regset): New struct.
11846 (arm_nbsd_iterate_over_regset_sections): New function.
11847 (arm_netbsd_init_abi_common): Updated to call
11848 set_gdbarch_iterate_over_regset_sections.
11849 * arm-nbsd-tdep.h: New file.
11850
dd69bf7a
KB
118512020-03-11 Kevin Buettner <kevinb@redhat.com>
11852
11853 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11854 recursion.
11855
a0761e34
SM
118562020-03-11 Simon Marchi <simon.marchi@efficios.com>
11857
11858 * configure: Re-generate.
11859
e7a82140
TT
118602020-03-11 Tom Tromey <tromey@adacore.com>
11861
11862 * ada-typeprint.c (print_choices): Fix comment.
11863
dcc050c8
AB
118642020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11865
11866 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11867 previous item in the list, when the list has no items.
11868
1c33af77
TV
118692020-03-11 Tom de Vries <tdevries@suse.de>
11870
11871 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11872 PROP_LOCLIST handling code.
11873
8c95582d
AB
118742020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11875
11876 * buildsym-legacy.c (record_line): Pass extra parameter to
11877 record_line.
11878 * buildsym.c (buildsym_compunit::record_line): Take an extra
11879 parameter, reduce duplication in the line table, and record the
11880 is_stmt flag in the line table.
11881 * buildsym.h (buildsym_compunit::record_line): Add extra
11882 parameter.
11883 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11884 non-statement lines.
11885 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11886 this to the symtab builder.
11887 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11888 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11889 through to dwarf_record_line_1.
11890 * infrun.c (process_event_stop_test): When stepping, don't stop at
11891 a non-statement instruction, and only refresh the step info when
11892 we land in the middle of a line's range. Also add an extra
11893 comment.
11894 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11895 field.
11896 * record-btrace.c (btrace_find_line_range): Only record lines
11897 marked as is-statement.
11898 * stack.c (frame_show_address): Show the frame address if we are
11899 in a non-statement sal.
11900 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11901 (maintenance_print_one_line_table): Print a header for the is_stmt
11902 column, and include is_stmt information in the output.
11903 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11904 preference to non-statements.
11905 (find_pcs_for_symtab_line): Prefer is-statement entries.
11906 (find_line_common): Likewise.
11907 * symtab.h (struct linetable_entry): Add is_stmt field.
11908 (struct symtab_and_line): Likewise.
11909 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11910 arranging the line table.
11911
e4003a34
TV
119122020-03-07 Tom de Vries <tdevries@suse.de>
11913
11914 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11915 DIE.
11916
e8932576
TT
119172020-03-07 Tom Tromey <tom@tromey.com>
11918
11919 * valops.c (value_literal_complex): Remove obsolete comment.
11920 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11921 comment.
11922
29734269
SM
119232020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11924
11925 * infrun.h: Forward-declare thread_info.
11926 (set_step_info): Add thread_info parameter, add doc.
11927 * infrun.c (set_step_info): Add thread_info parameter, move doc
11928 to header.
11929 * infrun.c (process_event_stop_test): Pass thread to
11930 set_step_info call.
11931 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11932 set_step_info.
11933 (prepare_one_step): Add thread_info parameter, pass it to
11934 set_step_frame and prepare_one_step (recursive) call.
11935 (step_1): Pass thread to prepare_one_step call.
11936 (step_command_fsm::should_stop): Pass thread to
11937 prepare_one_step.
11938 (until_next_fsm): Pass thread to set_step_frame call.
11939 (finish_command): Pass thread to set_step_info call.
11940
b7d64b29
HD
119412020-03-06 Hannes Domani <ssbssa@yahoo.de>
11942
11943 * windows-tdep.c (windows_solib_create_inferior_hook):
11944 Check if inferior is running.
11945
09f2921c
TV
119462020-03-06 Tom de Vries <tdevries@suse.de>
11947
11948 * NEWS: Fix "the the".
11949 * ctfread.c: Same.
11950
fd760e79
TV
119512020-03-06 Tom de Vries <tdevries@suse.de>
11952
11953 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11954
20ea4a60
AB
119552020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11956
11957 * .dir-locals.el: Add a comment referencing the other copies of
11958 this file.
11959
0afbabf0
JB
119602020-03-05 John Baldwin <jhb@FreeBSD.org>
11961
11962 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11963 psargs.
11964
842806cb
TBA
119652020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11966
11967 * .gitattributes: New file.
11968
be1e3d3e
TT
119692020-03-04 Tom Tromey <tom@tromey.com>
11970
11971 * symmisc.c (print_symbol_bcache_statistics)
11972 (print_objfile_statistics): Update.
11973 * symfile.c (allocate_symtab): Use intern.
11974 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11975 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11976 macro_cache>: Remove.
11977 <string_cache>: New member.
11978 (struct objfile) <intern>: New methods.
11979 * elfread.c (elf_symtab_read): Use intern.
11980 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11981 (dwarf2_compute_name, dwarf2_physname)
11982 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11983 names.
11984 (guess_partial_die_structure_name): Update.
11985 (partial_die_info::fixup): Intern name.
11986 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11987 name.
11988 (dwarf2_name): Intern name. Update.
11989 * buildsym.c (buildsym_compunit::get_macro_table): Use
11990 string_cache.
11991
4e7625fd
TT
119922020-03-04 Tom Tromey <tom@tromey.com>
11993
11994 * jit.c (bfd_open_from_target_memory): Make "target" const.
11995 * corefile.c (gnutarget): Now const.
11996 * gdbcore.h (gnutarget): Now const.
11997
46f9f931
HD
119982020-03-04 Hannes Domani <ssbssa@yahoo.de>
11999
12000 * NEWS: Mention support for WOW64 processes.
12001 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
12002 (amd64_windows_segment_register_p): Remove static.
12003 (_initialize_amd64_windows_nat): Update.
12004 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
12005 * i386-windows-nat.c (context_offset): Update.
12006 (i386_mappings): Rename and remove static.
12007 (i386_windows_segment_register_p): Remove static.
12008 (_initialize_i386_windows_nat): Update.
12009 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
12010 (STATUS_WX86_SINGLE_STEP): New macro.
12011 (EnumProcessModulesEx): New macro.
12012 (Wow64SuspendThread): New macro.
12013 (Wow64GetThreadContext): New macro.
12014 (Wow64SetThreadContext): New macro.
12015 (Wow64GetThreadSelectorEntry): New macro.
12016 (windows_set_context_register_offsets): Add static.
12017 (windows_set_segment_register_p): Likewise.
12018 (windows_add_thread): Adapt for WOW64 processes.
12019 (windows_fetch_one_register): Likewise.
12020 (windows_nat_target::fetch_registers): Likewise.
12021 (windows_store_one_register): Likewise.
12022 (display_selector): Likewise.
12023 (display_selectors): Likewise.
12024 (handle_exception): Likewise.
12025 (windows_continue): Likewise.
12026 (windows_nat_target::resume): Likewise.
12027 (windows_add_all_dlls): Likewise.
12028 (do_initial_windows_stuff): Likewise.
12029 (windows_nat_target::attach): Likewise.
12030 (windows_get_exec_module_filename): Likewise.
12031 (windows_nat_target::create_inferior): Likewise.
12032 (windows_xfer_siginfo): Likewise.
12033 (_initialize_loadable): Initialize Wow64SuspendThread,
12034 Wow64GetThreadContext, Wow64SetThreadContext,
12035 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
12036 * windows-nat.h (windows_set_context_register_offsets):
12037 Remove declaration.
12038 (windows_set_segment_register_p): Likewise.
12039 (i386_windows_segment_register_p): Add declaration.
12040 (amd64_windows_segment_register_p): Likewise.
12041
440cf44e
LM
120422020-03-04 Luis Machado <luis.machado@linaro.org>
12043
12044 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
12045 in "info registers" for AArch64/ARM.
12046
12047 The change caused "info registers" to not print GPR's.
12048
12049 gdb/ChangeLog:
12050
12051 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12052
12053 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12054 when reg->group is empty and reggroup is not.
12055
1009d92f
TT
120562020-03-03 Tom Tromey <tromey@adacore.com>
12057
12058 * dwarf2/frame.c (struct dwarf2_frame_cache)
12059 <checked_tailcall_bottom, entry_cfa_sp_offset,
12060 entry_cfa_sp_offset_p>: Remove members.
12061 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
12062 (dwarf2_frame_prev_register): Don't call
12063 dwarf2_tailcall_sniffer_first.
12064 (dwarf2_append_unwinders): Don't append tailcall unwinder.
12065 * frame-unwind.c (add_unwinder): New fuction.
12066 (frame_unwind_init): Use it. Add tailcall unwinder.
12067
5e5d66b6
AB
120682020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
12069 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12070
12071 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
12072 value should be printed as true.
12073
584cf46d
HD
120742020-03-03 Hannes Domani <ssbssa@yahoo.de>
12075
12076 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
12077 (windows_init_abi): Set and use windows_so_ops.
12078
7b973adc
SDJ
120792020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
12080
12081 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12082 when verifying if dealing with a convenience variable.
12083
bb7b70ab
LM
120842020-03-03 Luis Machado <luis.machado@linaro.org>
12085
12086 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12087
9822cb57
SM
120882020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12089
12090 * infrun.c (gdbarch_supports_displaced_stepping): New.
12091 (use_displaced_stepping): Break up conditions in smaller pieces.
12092 Use gdbarch_supports_displaced_stepping.
12093 (displaced_step_prepare_throw): Use
12094 gdbarch_supports_displaced_stepping.
12095
63e163f2
AB
120962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12097
12098 * NEWS: Mention new behaviour of the history filename.
12099 * top.c (write_history_p): Add comment.
12100 (show_write_history_p): Add header comment, give a different
12101 message when history writing is on, but the history filename is
12102 empty.
12103 (history_filename): Add comment.
12104 (history_filename_empty): New function.
12105 (show_history_filename): Add header comment, give a different
12106 message when the filename is empty.
12107 (init_history): Compare history_filename against nullptr, and only
12108 read history if the filename is not empty.
12109 (set_history_filename): Add header comment, and only make
12110 non-empty filenames absolute.
12111 (init_main): Make the filename argument to 'set history filename'
12112 optional.
12113
81b86b97
CB
121142020-03-02 Christian Biesinger <cbiesinger@google.com>
12115
12116 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12117 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12118 (fetch_fp_register): Update.
12119 (fetch_fp_regs): Update.
12120 (store_fp_register): Update.
12121 (store_fp_regs): Update.
12122 (arm_netbsd_nat_target::read_description): New function.
12123 (fetch_elfcore_registers): Update.
12124
24ed6739
AB
121252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12126
12127 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12128 general_thread if the stop reply is missing a thread-id.
12129 (remote_target::process_stop_reply): Use the first non-exited
12130 thread if the target didn't pass a thread-id.
12131 * infrun.c (do_target_wait): Move call to
12132 switch_to_inferior_no_thread to ....
12133 (do_target_wait_1): ... here.
12134
a84bb2a0
JT
121352020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12136
12137 * debuginfod-support.c: Include defs.h first.
12138
658dadf0
TV
121392020-02-28 Tom de Vries <tdevries@suse.de>
12140
12141 * symfile.c (set_initial_language): Use default language for lookup.
12142
4ebe4877
SM
121432020-02-28 Simon Marchi <simon.marchi@efficios.com>
12144
12145 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12146 reader variable, pass `this` to read_cutu_die_from_dwo.
12147
e5da1139
AM
121482020-02-27 Aaron Merey <amerey@redhat.com>
12149
12150 * source.c (open_source_file): Check for nullptr when computing
12151 srcpath.
12152
317f7127
TT
121532020-02-27 Tom Tromey <tromey@adacore.com>
12154
12155 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12156 member.
12157 (dwarf2_add_field): Don't update nfields.
12158 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12159
3104d9ee
AB
121602020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12161
12162 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12163 abs.
12164
b83470bf
TT
121652020-02-26 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12168 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12169 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12170 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12171 per_cu_data.
12172
edfe0a0c
TT
121732020-02-26 Tom Tromey <tom@tromey.com>
12174
12175 * dwarf2/index-write.c (psym_index_map): Change type.
12176 (add_address_entry_worker, write_one_signatured_type)
12177 (recursively_count_psymbols, recursively_write_psymbols)
12178 (class debug_names, psyms_seen_size, write_gdbindex)
12179 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12180
0d79cdc4
AM
121812020-02-26 Aaron Merey <amerey@redhat.com>
12182
12183 * Makefile.in: Handle optional debuginfod support.
12184 * NEWS: Update.
12185 * README: Add --with-debuginfod summary.
12186 * config.in: Regenerate.
12187 * configure: Regenerate.
12188 * configure.ac: Handle optional debuginfod support.
12189 * debuginfod-support.c: debuginfod helper functions.
12190 * debuginfod-support.h: Ditto.
12191 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12192 summary.
12193 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12194 when a dwz file cannot be found.
12195 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12196 debuginfo file cannot be found.
12197 * source.c (open_source_file): Query debuginfod servers when a
12198 source file cannot be found.
12199 * top.c (print_gdb_configuration): Include
12200 --{with,without}-debuginfod in the output.
12201
b65ce565
JG
122022020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12203
12204 * thread.c (thr_try_catch_cmd): Print thread name.
12205
d4c9a4f8
SM
122062020-02-26 Simon Marchi <simon.marchi@efficios.com>
12207
12208 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12209 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12210 dwarf2_fetch_die_type_sect_off): Move to...
12211 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12212 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12213 dwarf2_fetch_die_type_sect_off): ... here.
12214 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12215 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12216 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12217
0dce4280
TV
122182020-02-26 Tom de Vries <tdevries@suse.de>
12219
12220 PR gdb/25603
12221 * symfile.c (set_initial_language): Exit-early if
12222 language_mode == language_mode_manual.
12223
450a1bfc
SM
122242020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12225
12226 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12227 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12228 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12229
9e80cfa1
AB
122302020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12231
12232 * gdbtypes.c (create_array_type_with_stride): Handle negative
12233 array strides.
12234 * valarith.c (value_subscripted_rvalue): Likewise.
12235
09624f1f
LM
122362020-02-25 Luis Machado <luis.machado@linaro.org>
12237
12238 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12239
8cb5117c
SM
122402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12241
12242 * loc.h (dwarf2_get_die_type): Move to...
12243 * read.h (dwarf2_get_die_type): ... here.
12244 * read.c (dwarf2_get_die_type): Move doc to header.
12245
c325c44e
JB
122462020-02-25 Joel Brobecker <brobecker@adacore.com>
12247
12248 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12249 'gnulib/Makefile.in' to the list.
12250
4ac93832
TT
122512020-02-24 Tom Tromey <tom@tromey.com>
12252
12253 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12254 Remove.
12255 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12256 XOBNEWVEC.
12257
197400e8
TT
122582020-02-24 Tom Tromey <tom@tromey.com>
12259
12260 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12261 New method.
12262 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12263 (dw2_do_instantiate_symtab, dw2_get_file_names)
12264 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12265
76935768
TT
122662020-02-24 Tom Tromey <tom@tromey.com>
12267
12268 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12269 make_scoped_restore.
12270 (dwarf2_psymtab::read_symtab): Don't clear
12271 reading_partial_symbols.
12272
a88ef40d
TV
122732020-02-24 Tom de Vries <tdevries@suse.de>
12274
12275 PR gdb/25592
12276 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12277
c9af6521
TV
122782020-02-24 Tom de Vries <tdevries@suse.de>
12279
12280 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12281 commands layout next/prev/regs.
12282
5707a07a
TT
122832020-02-22 Tom Tromey <tom@tromey.com>
12284
12285 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12286 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12287
3b0fb49e
TT
122882020-02-22 Tom Tromey <tom@tromey.com>
12289
12290 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12291
283be8bf
TT
122922020-02-22 Tom Tromey <tom@tromey.com>
12293
12294 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12295 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12296 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12297 * tui/tui.c (_initialize_tui): Add usage text.
12298
ca793b96
TT
122992020-02-22 Tom Tromey <tom@tromey.com>
12300
12301 * tui/tui-win.c (tui_set_focus_command)
12302 (tui_set_win_height_command): Use error_no_arg.
12303 (_initialize_tui_win): Update help text.
12304 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12305
432b5c40
TT
123062020-02-22 Tom Tromey <tom@tromey.com>
12307
12308 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12309 * tui/tui-disasm.h (struct tui_disasm_window)
12310 <display_start_addr>: Declare.
12311 * tui/tui-source.h (struct tui_source_window)
12312 <display_start_addr>: Declare.
12313 * tui/tui-winsource.h (struct tui_source_window_base)
12314 <show_source_line, display_start_addr>: New methods.
12315 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12316 Rename and move to protected section.
12317 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12318 (tui_source_window_base::do_erase_source_content): Update.
12319 (tui_source_window_base::show_source_line): Now a method.
12320 (tui_source_window_base::show_source_content)
12321 (tui_source_window_base::tui_source_window_base)
12322 (tui_source_window_base::rerender)
12323 (tui_source_window_base::refill)
12324 (tui_source_window_base::do_scroll_horizontal)
12325 (tui_source_window_base::set_is_exec_point_at)
12326 (tui_source_window_base::update_breakpoint_info)
12327 (tui_source_window_base::update_exec_info): Update.
12328 * tui/tui-source.c (tui_source_window::set_contents)
12329 (tui_source_window::showing_source_p)
12330 (tui_source_window::do_scroll_vertical)
12331 (tui_source_window::location_matches_p)
12332 (tui_source_window::line_is_displayed): Update.
12333 (tui_source_window::display_start_addr): New method.
12334 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12335 (tui_disasm_window::do_scroll_vertical)
12336 (tui_disasm_window::location_matches_p): Update.
12337 (tui_disasm_window::display_start_addr): New method.
12338
01b1af32
TT
123392020-02-22 Tom Tromey <tom@tromey.com>
12340
12341 * NEWS: Add entry for gdb.register_window_type.
12342 * tui/tui-layout.h (window_factory): New typedef.
12343 (tui_register_window): Declare.
12344 * tui/tui-layout.c (saved_tui_windows): New global.
12345 (tui_apply_current_layout): Use it.
12346 (tui_register_window): New function.
12347 * python/python.c (do_start_initialization): Call
12348 gdbpy_initialize_tui.
12349 (python_GdbMethods): Add "register_window_type" function.
12350 * python/python-internal.h (gdbpy_register_tui_window)
12351 (gdbpy_initialize_tui): Declare.
12352 * python/py-tui.c: New file.
12353 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12354
fc96d20b
TT
123552020-02-22 Tom Tromey <tom@tromey.com>
12356
12357 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12358
935c78c0
TT
123592020-02-22 Tom Tromey <tom@tromey.com>
12360
12361 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12362 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12363 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12364 (tui_set_win_focus_to): Move from tui-win.c.
12365
0240c8f1
TT
123662020-02-22 Tom Tromey <tom@tromey.com>
12367
12368 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12369 functions.
12370 (known_window_types): New global.
12371 (tui_get_window_by_name): Reimplement.
12372 (initialize_known_windows): New function.
12373 (validate_window_name): Rewrite.
12374 (_initialize_tui_layout): Call initialize_known_windows.
12375
fdb01f0c
TT
123762020-02-22 Tom Tromey <tom@tromey.com>
12377
12378 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12379 Remove constants.
12380 * tui/tui-winsource.h (struct tui_source_window_base)
12381 <tui_source_window_base>: Remove parameter.
12382 * tui/tui-winsource.c
12383 (tui_source_window_base::tui_source_window_base): Remove
12384 parameter.
12385 (tui_source_window_base::refill): Update.
12386 * tui/tui-stack.h (struct tui_locator_window)
12387 <tui_locator_window>: Update.
12388 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12389 Default the constructor.
12390 * tui/tui-regs.h (struct tui_data_item_window)
12391 <tui_data_item_window>: Default the constructor.
12392 (struct tui_data_window) <tui_data_window>: Likewise.
12393 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12394 Default the constructor.
12395 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12396 Default the constructor.
12397 <type>: Remove.
12398 (struct tui_win_info) <tui_win_info>: Default the constructor.
12399 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12400 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12401 Default the constructor.
12402
865a5aec
TT
124032020-02-22 Tom Tromey <tom@tromey.com>
12404
12405 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12406 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12407 * tui/tui-win.c (tui_resize_all): Don't call
12408 tui_delete_invisible_windows.
12409 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12410 done.
12411 (tui_set_layout): Update.
12412 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12413 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12414 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12415
e098d18c
TT
124162020-02-22 Tom Tromey <tom@tromey.com>
12417
12418 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12419 correctly.
12420
eb9c8874
TT
124212020-02-22 Tom Tromey <tom@tromey.com>
12422
12423 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12424
7eed1a8e
TT
124252020-02-22 Tom Tromey <tom@tromey.com>
12426
12427 * tui/tui-winsource.h (struct tui_source_window_iterator)
12428 <inner_iterator>: New etytypedef.
12429 <tui_source_window_iterator>: Take "end" parameter.
12430 <tui_source_window_iterator>: Take iterator.
12431 <operator*, advance>: Update.
12432 <m_iter>: Change type.
12433 <m_end>: New field.
12434 (struct tui_source_windows) <begin, end>: Update.
12435 * tui/tui-layout.c (tui_windows): New global.
12436 (tui_apply_current_layout): Clear tui_windows.
12437 (tui_layout_window::apply): Update tui_windows.
12438 * tui/tui-data.h (tui_windows): Declare.
12439 (all_tui_windows): Now inline function.
12440 (class tui_window_iterator, struct all_tui_windows): Remove.
12441
7c043ba6
TT
124422020-02-22 Tom Tromey <tom@tromey.com>
12443
12444 PR tui/17850:
12445 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12446 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12447 "height" argument.
12448 (class tui_layout_window) <get_sizes>: Likewise.
12449 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12450 argument.
12451 <get_sizes>: Add "height" argument.
12452 <m_vertical>: New field.
12453 * tui/tui-layout.c (tui_layout_split::clone): Update.
12454 (tui_layout_split::get_sizes): Add "height" argument.
12455 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12456 (tui_new_layout_command): Parse "-horizontal".
12457 (_initialize_tui_layout): Update help string.
12458 (tui_layout_split::specification): Add "-horizontal" when needed.
12459 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12460 argument.
12461 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12462 New methods.
12463
6bc56648
TT
124642020-02-22 Tom Tromey <tom@tromey.com>
12465
12466 * tui/tui-layout.h (enum tui_adjust_result): New.
12467 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12468 (class tui_layout_window) <adjust_size>: Return
12469 tui_adjust_result. Rewrite.
12470 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12471 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12472
c22fef7e
TT
124732020-02-22 Tom Tromey <tom@tromey.com>
12474
12475 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12476 parameter and return types.
12477 (class tui_layout_base) <specification>: Add "depth".
12478 (class tui_layout_window) <specification>: Add "depth".
12479 (class tui_layout_split) <specification>: Add "depth".
12480 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12481 and return types.
12482 (tui_new_layout_command): Parse sub-layouts.
12483 (_initialize_tui_layout): Update help string.
12484 (tui_layout_window::specification): Add "depth".
12485 (add_layout_command): Update.
12486
ee325b61
TT
124872020-02-22 Tom Tromey <tom@tromey.com>
12488
12489 * NEWS: Add "tui new-layout" item.
12490 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12491 Add new-layout command to help text.
12492 (validate_window_name): New function.
12493 (tui_new_layout_command): New function.
12494 (_initialize_tui_layout): Register "new-layout".
12495 (tui_layout_window::specification): New method.
12496 (tui_layout_window::specification): New method.
12497 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12498 method.
12499 (class tui_layout_window) <specification>: New method.
12500 (class tui_layout_split) <specification>: New method.
12501
416eb92d
TT
125022020-02-22 Tom Tromey <tom@tromey.com>
12503
12504 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12505 * tui/tui-win.c (window_name_completer): Update comment.
12506 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12507 Declare method.
12508 (class tui_layout_window) <replace_window>: Likewise.
12509 (class tui_layout_split) <replace_window>: Likewise.
12510 (tui_set_layout): Don't declare.
12511 (tui_set_initial_layout): Declare function.
12512 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12513 (asm_regs_layout): New globals.
12514 (tui_current_layout, show_layout): Remove.
12515 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12516 (find_layout, tui_apply_layout): New function.
12517 (layout_completer): Remove.
12518 (tui_next_layout): Reimplement.
12519 (tui_next_layout_command): New function.
12520 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12521 (tui_regs_layout): Reimplement.
12522 (tui_regs_layout_command): New function.
12523 (extract_display_start_addr): Rewrite.
12524 (next_layout, prev_layout): Remove.
12525 (tui_layout_window::replace_window): New method.
12526 (tui_layout_split::replace_window): New method.
12527 (destroy_layout): New function.
12528 (layout_list): New global.
12529 (add_layout_command): New function.
12530 (initialize_layouts): Update.
12531 (tui_layout_command): New function.
12532 (_initialize_tui_layout): Install "layout" commands.
12533 * tui/tui-data.h (enum tui_layout_type): Remove.
12534 (tui_current_layout): Don't declare.
12535
0dbc2fc7
TT
125362020-02-22 Tom Tromey <tom@tromey.com>
12537
12538 * tui/tui-regs.c (tui_reg_layout): Remove.
12539 (tui_reg_command): Use tui_regs_layout.
12540 * tui/tui-layout.h (tui_reg_command): Declare.
12541 * tui/tui-layout.c (tui_reg_command): New function.
12542
5afe342e
TT
125432020-02-22 Tom Tromey <tom@tromey.com>
12544
12545 * tui/tui.c (tui_rl_delete_other_windows): Call
12546 tui_remove_some_windows.
12547 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12548 Declare method.
12549 (class tui_layout_window) <remove_windows>: New method.
12550 (class tui_layout_split) <remove_windows>: Declare.
12551 (tui_remove_some_windows): Declare.
12552 * tui/tui-layout.c (tui_remove_some_windows): New function.
12553 (tui_layout_split::remove_windows): New method.
12554
427326a8
TT
125552020-02-22 Tom Tromey <tom@tromey.com>
12556
12557 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12558 * tui/tui-layout.h (tui_next_layout): Declare.
12559 * tui/tui-layout.c (tui_next_layout): New function.
12560
3fe12b6d
TT
125612020-02-22 Tom Tromey <tom@tromey.com>
12562
12563 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12564 correct coordinates.
12565
59b8b5d2
TT
125662020-02-22 Tom Tromey <tom@tromey.com>
12567
12568 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12569 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12570 DATA_WIN case.
12571
2a3d458b
TT
125722020-02-22 Tom Tromey <tom@tromey.com>
12573
12574 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12575 TUI_DISASM_WIN, not tui_win_list.
12576
3f0cbb04
TT
125772020-02-22 Tom Tromey <tom@tromey.com>
12578
12579 * valprint.c (generic_val_print_enum_1)
12580 (val_print_type_code_flags): Style member names.
12581 * rust-lang.c (val_print_struct, rust_print_enum)
12582 (rust_print_struct_def, rust_internal_print_type): Style member
12583 names.
12584 * p-valprint.c (pascal_object_print_value_fields): Style member
12585 names. Only call fprintf_symbol_filtered for static members.
12586 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12587 * f-valprint.c (f_val_print): Style member names.
12588 * f-typeprint.c (f_type_print_base): Style member names.
12589 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12590 call fprintf_symbol_filtered for static members.
12591 (cp_print_class_member): Style member names.
12592 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12593 member names.
12594 * ada-valprint.c (ada_print_scalar): Style enum names.
12595 (ada_val_print_enum): Likewise.
12596 * ada-typeprint.c (print_enum_type): Style enum names.
12597
d4d947ae
TT
125982020-02-21 Tom Tromey <tom@tromey.com>
12599
12600 * psympriv.h (struct partial_symtab): Update comment.
12601
e94e944b
TT
126022020-02-21 Tom Tromey <tromey@adacore.com>
12603
12604 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12605 type is CORE_ADDR.
12606
1eb73179
TV
126072020-02-21 Tom de Vries <tdevries@suse.de>
12608
12609 PR gdb/25534
12610 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12611 if dependencies[i]->user != NULL.
12612
4f180d53
AT
126132020-02-21 Ali Tamur <tamur@google.com>
12614
12615 * dwarf2/read.c (dwarf2_name): Add null check.
12616
22b6cd70
TT
126172020-02-20 Tom Tromey <tom@tromey.com>
12618
12619 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12620 ">=", in binary search.
12621 (dwarf2_find_containing_comp_unit): New overload.
12622 (run_test): New self-test.
12623 (_initialize_dwarf2_read): Register new test.
12624
bd0cf5a6
NC
126252020-02-20 Nelson Chu <nelson.chu@sifive.com>
12626
12627 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12628 * riscv-tdep.h: Likewise.
12629 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12630 rv32-only CSR.
12631 * features/riscv/64bit-csr.xml: Regenerated.
12632
3f702acd
SDJ
126332020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12634 Tom Tromey <tom@tromey.com>
12635
12636 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12637 of 'fputc_unfiltered'.
12638 (putchar_unfiltered): Call 'fputc_unfiltered'.
12639 (fputc_unfiltered): Call 'fputs_unfiltered'.
12640
d13c7322
AB
126412020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12642
12643 * config.in: Regenerate.
12644 * configure: Regenerate.
12645 * configure.ac: Add --with-python-libdir option.
12646 * main.c: Use WITH_PYTHON_LIBDIR.
12647
869d8950
TT
126482020-02-19 Tom Tromey <tom@tromey.com>
12649
12650 * symtab.c (general_symbol_info::compute_and_set_names): Use
12651 obstack_strndup. Simplify call to symbol_set_demangled_name.
12652
298e9637
SM
126532020-02-19 Simon Marchi <simon.marchi@efficios.com>
12654
12655 * dwarf2/read.c (allocate_signatured_type_table,
12656 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12657 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12658 Remove objfile parameter, update all callers.
12659
08410482
DE
126602020-02-19 Doug Evans <dje@google.com>
12661
12662 PR rust/25535
12663 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12664 rust_enum_variant calculation.
12665
dfdeeca1
TT
126662020-02-19 Tom Tromey <tromey@adacore.com>
12667
12668 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12669
2ef5453b
TT
126702020-02-19 Tom Tromey <tromey@adacore.com>
12671
12672 * ada-lang.c (cache_symbol): Use obstack_strdup.
12673
9f1528a1
AB
126742020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12675
12676 * configure: Regenerate.
12677
d3c22fa8
TT
126782020-02-19 Tom Tromey <tromey@adacore.com>
12679
12680 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12681 NULL check.
12682
bf84f706
MR
126832020-02-19 Maciej W. Rozycki <macro@wdc.com>
12684
12685 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12686
d1c9b20f
AB
126872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12688
12689 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12690 if GDBSERVER is not defined.
12691 (riscv_tdesc_cache): Likewise, also store const target_desc.
12692 (STATIC_IN_GDB): Define.
12693 (riscv_create_target_description): Update declaration with
12694 STATIC_IN_GDB.
12695 (riscv_lookup_target_description): New function, only define if
12696 GDBSERVER is not defined.
12697 * arch/riscv.h (riscv_create_target_description): Declare only
12698 when GDBSERVER is defined.
12699 (riscv_lookup_target_description): New declaration when GDBSERVER
12700 is not defined.
12701 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12702 (riscv_linux_read_features): ...this, and return
12703 riscv_gdbarch_features instead of target_desc.
12704 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12705 (riscv_linux_read_description): Rename to...
12706 (riscv_linux_read_features): ...this.
12707 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12708 Update to use riscv_gdbarch_features and
12709 riscv_lookup_target_description.
12710 * riscv-tdep.c (riscv_find_default_target_description): Use
12711 riscv_lookup_target_description instead of
12712 riscv_create_target_description.
12713
373d7ac0
SM
127142020-02-18 Simon Marchi <simon.marchi@efficios.com>
12715
12716 * valprint.c (generic_val_print_enum_1): When printing a flag
12717 enum with value 0 and there is no enumerator with value 0, print
12718 just "0" instead of "(unknown: 0x0)".
12719
b29a2df0
SM
127202020-02-18 Simon Marchi <simon.marchi@efficios.com>
12721
12722 * valprint.c (generic_val_print_enum_1): Print unknown part of
12723 flag enum in hex.
12724
6740f0cc
SM
127252020-02-18 Simon Marchi <simon.marchi@efficios.com>
12726
12727 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12728 flag enums to contain duplicate enumerators.
12729 * valprint.c (generic_val_print_enum_1): Update comment.
12730
edd45eb0
SM
127312020-02-18 Simon Marchi <simon.marchi@efficios.com>
12732
12733 * dwarf2/read.c: Include "count-one-bits.h".
12734 (update_enumeration_type_from_children): If an enumerator has
12735 multiple bits set, don't treat the enumeration as a "flag enum".
12736 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12737 of flag enums have 0 or 1 bit set.
12738
6d0cf446
BE
127392020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12740
12741 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12742 conversion.
12743 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12744 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12745 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12746 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12747 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12748
7001c1b7
SM
127492020-02-18 Simon Marchi <simon.marchi@efficios.com>
12750
12751 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12752
fdb61c6c
SM
127532020-02-14 Simon Marchi <simon.marchi@efficios.com>
12754
12755 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12756 displaced_step_closure_up.
12757 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12758 (struct displaced_step_closure_up):
12759 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12760 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12761 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12762 Likewise.
12763 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12764 * gdbarch.c, gdbarch.h: Re-generate.
12765 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12766 displaced_step_closure_up.
12767 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12768 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12769 * infrun.h (displaced_step_closure_up): New type alias.
12770 (struct displaced_step_inferior_state) <step_closure>: Change
12771 type to displaced_step_closure_up.
12772 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12773 displaced_step_closure_up.
12774 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12775
a4a38eb4
TT
127762020-02-14 Tom Tromey <tom@tromey.com>
12777
12778 * minidebug.c (gnu_debug_key): New global.
12779 (find_separate_debug_file_in_section): Use it.
12780
e8217e61
SM
127812020-02-14 Simon Marchi <simon.marchi@efficios.com>
12782
12783 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12784 std::unique_ptr.
12785 * gdbarch.c: Re-generate.
12786 * gdbarch.h: Re-generate.
12787 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12788 change.
12789 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12790 type to std::unique_ptr.
12791 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12792 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12793 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12794 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12795 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12796 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12797 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12798 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12799 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12800
d8d83535
SM
128012020-02-14 Simon Marchi <simon.marchi@efficios.com>
12802
12803 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12804 std::unique_ptr.
12805 (displaced_step_clear): Rename to...
12806 (displaced_step_reset): ... this. Just call displaced->reset ().
12807 (displaced_step_clear_cleanup): Rename to...
12808 (displaced_step_reset_cleanup): ... this.
12809 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12810 (displaced_step_fixup): Likewise.
12811 (resume_1): Likewise.
12812 (handle_inferior_event): Restore child's memory before calling
12813 displaced_step_fixup on the parent.
12814 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12815 to std::unique_ptr.
12816 <step_closure>: Change type to std::unique_ptr.
12817
5f661e03
SM
128182020-02-14 Simon Marchi <simon.marchi@efficios.com>
12819
12820 * arm-tdep.c: Include count-one-bits.h.
12821 (cleanup_block_store_pc): Use count_one_bits.
12822 (cleanup_block_load_pc): Use count_one_bits.
12823 (arm_copy_block_xfer): Use count_one_bits.
12824 (thumb2_copy_block_xfer): Use count_one_bits.
12825 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12826 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12827 (thumb_get_next_pcs_raw): Use count_one_bits.
12828 (arm_get_next_pcs_raw): Use count_one_bits_l.
12829 * arch/arm.c (bitcount): Remove.
12830 * arch/arm.h (bitcount): Remove.
12831
8084e579
TT
128322020-02-14 Tom Tromey <tromey@adacore.com>
12833
12834 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12835 Update.
12836 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12837 * dwarf2/loc.c (call_site_find_chain_1): Return
12838 unique_xmalloc_ptr.
12839 (call_site_find_chain): Likewise.
12840
258bf0ee
RB
128412020-02-14 Richard Biener <rguenther@suse.de>
12842
12843 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12844 on expression with division operators.
12845
f98a8458
AKS
128462020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12847
12848 * MAINTAINERS (Write After Approval): Adding myself.
12849
d1437c0e
TT
128502020-02-12 Tom Tromey <tom@tromey.com>
12851
12852 * event-loop.c (event_data, gdb_event, event_handler_func):
12853 Remove.
12854
3d4560f7
TT
128552020-02-12 Tom Tromey <tom@tromey.com>
12856
12857 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12858 (dwarf2_frame_objfile_data): Add comment.
12859 (find_comp_unit, set_comp_unit): New functions.
12860 (dwarf2_frame_find_fde): Use find_comp_unit.
12861 (dwarf2_build_frame_info): Use set_comp_unit.
12862
21982304
TT
128632020-02-12 Tom Tromey <tom@tromey.com>
12864
12865 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12866 (comp_unit): Don't initialize objfile.
12867 (execute_cfa_program): Add text_offset parameter.
12868 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12869 (dwarf2_frame_cache): Update.
12870 (dwarf2_build_frame_info): Don't set "objfile" member.
12871
4debb237
TT
128722020-02-12 Tom Tromey <tom@tromey.com>
12873
12874 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12875 (decode_frame_entry): Likewise.
12876 (dwarf2_build_frame_info): Update.
12877
0d404d44
TT
128782020-02-12 Tom Tromey <tom@tromey.com>
12879
12880 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12881 (decode_frame_entry_1): Use the comp_unit obstack.
12882
a7a3ae5c
TT
128832020-02-12 Tom Tromey <tom@tromey.com>
12884
12885 * dwarf2/frame.c (struct comp_unit): Add initializers and
12886 constructor.
12887 (dwarf2_frame_objfile_data): Store a comp_unit.
12888 (dwarf2_frame_find_fde): Update.
12889 (dwarf2_build_frame_info): Use "new".
12890
a9d65418
TT
128912020-02-12 Tom Tromey <tom@tromey.com>
12892
12893 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12894 (dwarf2_fde_table): Typedef for std::vector.
12895 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12896 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12897 (decode_frame_entry): Update.
12898 (dwarf2_build_frame_info): Use "new".
12899
7559c217
CB
129002020-02-12 Christian Biesinger <cbiesinger@google.com>
12901
12902 * arm-tdep.c (arm_gdbarch_init): Update.
12903 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12904 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12905 have_neon, is_m>: Change to bool.
12906
aeefc73c
CB
129072020-02-12 Christian Biesinger <cbiesinger@google.com>
12908
12909 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12910
d27b8e5f
TT
129112020-02-12 Tom Tromey <tom@tromey.com>
12912
12913 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12914
cd5900f3
HD
129152020-02-12 Hannes Domani <ssbssa@yahoo.de>
12916
12917 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12918 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12919
f056b22b
TT
129202020-02-11 Tom Tromey <tom@tromey.com>
12921
12922 * psymtab.h: Update comment.
12923
f92ff6b5
TT
129242020-02-11 Tom Tromey <tom@tromey.com>
12925
12926 * gdb_obstack.h (struct auto_obstack): Use
12927 DISABLE_COPY_AND_ASSIGN.
12928
3fd6912b
TT
129292020-02-11 Tom Tromey <tom@tromey.com>
12930
12931 * dwarf2/frame.h (struct objfile): Don't forward declare.
12932
69ed9b74
CB
129332020-02-11 Christian Biesinger <cbiesinger@google.com>
12934
12935 * cris-tdep.c (cris_supply_gregset): Change signature to match
12936 what struct regset expects.
12937 (cris_regset): New struct.
12938 (fetch_core_registers): Remove.
12939 (cris_iterate_over_regset_sections): New function.
12940 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12941 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12942
bda874f6
CB
129432020-02-11 Christian Biesinger <cbiesinger@google.com>
12944
12945 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12946 registers.
12947
754e1564
CB
129482020-02-11 Christian Biesinger <cbiesinger@google.com>
12949
12950 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12951
8ddd8e0e
SM
129522020-02-11 Simon Marchi <simon.marchi@efficios.com>
12953
12954 * configure: Re-generate.
12955
898e7f60
SM
129562020-02-11 Simon Marchi <simon.marchi@efficios.com>
12957
12958 * configure: Re-generate.
12959
58df732b
SM
129602020-02-11 Simon Marchi <simon.marchi@efficios.com>
12961
12962 * acinclude: Update warning.m4 path.
12963 * warning.m4: Move to gdbsupport.
12964
da5bd37e
TT
129652020-02-11 Tom Tromey <tromey@adacore.com>
12966
12967 * remote.c (remote_console_output): Update.
12968 * printcmd.c (printf_command): Update.
12969 * event-loop.c (gdb_wait_for_event): Update.
12970 * linux-nat.c (sigchld_handler): Update.
12971 * remote-sim.c (gdb_os_write_stdout): Update.
12972 (gdb_os_flush_stdout): Update.
12973 (gdb_os_flush_stderr): Update.
12974 (gdb_os_write_stderr): Update.
12975 * exceptions.c (print_exception): Update.
12976 * remote-fileio.c (remote_fileio_func_read): Update.
12977 (remote_fileio_func_write): Update.
12978 * tui/tui.c (tui_enable): Update.
12979 * tui/tui-interp.c (tui_interp::init): Update.
12980 * utils.c (init_page_info): Update.
12981 (putchar_unfiltered, fputc_unfiltered): Update.
12982 (gdb_flush): Update.
12983 (emit_style_escape): Update.
12984 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12985 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12986 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12987 (stderr_file::write): Update.
12988 (stderr_file::puts): Update.
12989 * ui-file.h (ui_file_isatty, ui_file_write)
12990 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12991 (ui_file_puts): Don't declare.
12992
85f0dd3c
TV
129932020-02-10 Tom de Vries <tdevries@suse.de>
12994
12995 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12996 sentinel to char *.
12997
2e927613
TV
129982020-02-09 Tom de Vries <tdevries@suse.de>
12999
13000 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
13001 filename if it matches "<artificial>".
13002
6bafc845
HD
130032020-02-09 Hannes Domani <ssbssa@yahoo.de>
13004
13005 * windows-tdep.c (struct enum_value_name): New struct.
13006 (create_enum): New function.
13007 (windows_get_siginfo_type): Create and use enum types.
13008
7928d571
HD
130092020-02-09 Hannes Domani <ssbssa@yahoo.de>
13010
13011 * NEWS: Mention $_siginfo support for Windows.
13012 * windows-nat.c (handle_exception): Set siginfo_er.
13013 (windows_nat_target::mourn_inferior): Reset siginfo_er.
13014 (windows_xfer_siginfo): New function.
13015 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
13016 * windows-tdep.c (struct windows_gdbarch_data): New struct.
13017 (init_windows_gdbarch_data): New function.
13018 (get_windows_gdbarch_data): New function.
13019 (windows_get_siginfo_type): New function.
13020 (windows_init_abi): Register windows_get_siginfo_type.
13021 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
13022
6751ebae
TT
130232020-02-08 Tom Tromey <tom@tromey.com>
13024
13025 * dwarf2/read.c (class cutu_reader) <cutu_reader,
13026 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
13027 <keep>: Declare method.
13028 <m_keep>: Remove member.
13029 <~cutu_reader>: Remove.
13030 (cutu_reader::init_tu_and_read_dwo_dies): Update.
13031 (cutu_reader::cutu_reader): Update.
13032 (cutu_reader::keep): Rename from ~cutu_reader.
13033 (process_psymtab_comp_unit, build_type_psymtabs_1)
13034 (process_skeletonless_type_unit, load_partial_comp_unit)
13035 (load_full_comp_unit, dwarf2_read_addr_index)
13036 (read_signatured_type): Update.
13037
135f5437
TT
130382020-02-08 Tom Tromey <tom@tromey.com>
13039
13040 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
13041 "want_partial_unit" parameter.
13042 (process_psymtab_comp_unit): Change want_partial_unit to bool.
13043 Inline check for DW_TAG_partial_unit.
13044 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
13045
9f66ff1c
TT
130462020-02-08 Tom Tromey <tom@tromey.com>
13047
13048 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
13049 read.c.
13050 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
13051 read.c.
13052
c8a7a66f
TT
130532020-02-08 Tom Tromey <tom@tromey.com>
13054
13055 * dwarf2/read.c (read_address): Move to comp-unit.c.
13056 (dwarf2_rnglists_process, dwarf2_ranges_process)
13057 (read_attribute_value, dwarf_decode_lines_1)
13058 (var_decode_location, decode_locdesc): Update.
13059 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
13060 read.c. Remove "cu" parameter.
13061 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
13062 method.
13063
8266302d
TT
130642020-02-08 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/read.c (read_attribute_value, read_indirect_string)
13067 (read_indirect_line_string): Update.
13068 * dwarf2/comp-unit.c (read_offset): Remove.
13069 (read_comp_unit_head): Update.
13070 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
13071 method.
13072 (read_offset): Don't declare.
13073
4057dfde
TT
130742020-02-08 Tom Tromey <tom@tromey.com>
13075
13076 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
13077 * dwarf2/read.c (struct comp_unit_head): Move to
13078 dwarf2/comp-unit.h.
13079 (enum class rcuh_kind): Move to comp-unit.h.
13080 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13081 (read_comp_unit_head, error_check_comp_unit_head)
13082 (read_and_check_comp_unit_head): Move to comp-unit.c.
13083 (read_offset, dwarf_unit_type_name): Likewise.
13084 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13085 (cutu_reader::cutu_reader, read_call_site_scope)
13086 (find_partial_die, follow_die_offset): Update.
13087 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13088
24aa364d
TT
130892020-02-08 Tom Tromey <tom@tromey.com>
13090
13091 * dwarf2/read.c (read_offset_1): Move to leb.c.
13092 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13093 (dwarf_decode_macro_bytes): Update.
13094 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13095 * dwarf2/leb.h (read_offset): Declare.
13096
2c7d5afc
TT
130972020-02-08 Tom Tromey <tom@tromey.com>
13098
13099 * dwarf2/read.c (dwarf2_section_size): Remove.
13100 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13101 Update.
13102 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13103
4075cb26
TT
131042020-02-08 Tom Tromey <tom@tromey.com>
13105
13106 * dwarf2/read.c (read_initial_length): Move to leb.c.
13107 * dwarf2/leb.h (read_initial_length): Declare.
13108 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13109 handle_nonstd parameter.
13110 * dwarf2/frame.c (read_initial_length): Remove.
13111 (decode_frame_entry_1): Update.
13112
09ba997f
TT
131132020-02-08 Tom Tromey <tom@tromey.com>
13114
13115 * dwarf2/loc.c (dwarf2_find_location_expression)
13116 (dwarf_evaluate_loc_desc::get_tls_address)
13117 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13118 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13119 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13120 (dwarf2_compile_property_to_c)
13121 (dwarf2_loc_desc_get_symbol_read_needs)
13122 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13123 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13124 (loclist_describe_location, loclist_tracepoint_var_ref)
13125 (loclist_generate_c_location): Update.
13126 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13127 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13128 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13129 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13130 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13131 (dwarf2_per_cu_data::addr_size)
13132 (dwarf2_per_cu_data::ref_addr_size)
13133 (dwarf2_per_cu_data::text_offset)
13134 (dwarf2_per_cu_data::addr_type): Now methods.
13135 (per_cu_header_read_in): Make per_cu "const".
13136 (dwarf2_version): Remove.
13137 (dwarf2_per_cu_data::int_type): Now a method.
13138 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13139 (set_die_type, read_array_type, read_subrange_index_type)
13140 (read_tag_string_type, read_subrange_type): Update.
13141 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13142 offset_size, ref_addr_size, text_offset, addr_type, version,
13143 objfile, int_type, addr_sized_int_type>: Declare methods.
13144
96c738c0
TT
131452020-02-08 Tom Tromey <tom@tromey.com>
13146
13147 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13148 Move earlier.
13149
8fdd972c
TT
131502020-02-08 Tom Tromey <tom@tromey.com>
13151
13152 * dwarf2/read.h (dwarf_line_debug): Declare.
13153 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13154 * dwarf2/read.c: Move line_header code to new files.
13155 (dwarf_line_debug): No longer static.
13156 * dwarf2/line-header.c: New file.
13157 * dwarf2/line-header.h: New file.
13158
03075812
TT
131592020-02-08 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2/read.c (struct line_header) <file_full_name,
13162 file_file_name>: Return unique_xmalloc_ptr.
13163 (line_header::file_file_name): Update.
13164 (line_header::file_full_name): Update.
13165 (dw2_get_file_names_reader): Update.
13166 (macro_start_file): Update.
13167
bb822404
TT
131682020-02-08 Tom Tromey <tom@tromey.com>
13169
13170 * dwarf2/read.c (struct line_header) <file_full_name,
13171 file_file_name>: Declare methods.
13172 (dw2_get_file_names_reader): Update.
13173 (file_file_name): Now a method.
13174 (file_full_name): Likewise.
13175 (macro_start_file): Update.
13176
009b64fc
TT
131772020-02-08 Tom Tromey <tom@tromey.com>
13178
13179 * dwarf2/read.c (dwarf_always_disassemble)
13180 (show_dwarf_always_disassemble): Move to loc.c.
13181 (_initialize_dwarf2_read): Move "always-disassemble" registration
13182 to loc.c.
13183 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13184 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13185 static.
13186 (show_dwarf_always_disassemble): Move from read.c.
13187 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13188
5895093f
TT
131892020-02-08 Tom Tromey <tom@tromey.com>
13190
13191 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13192 (create_quick_file_names_table): Return htab_up.
13193 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13194 Update.
13195 * dwarf2/read.h (struct dwarf2_per_objfile)
13196 <quick_file_names_table>: Now htab_up.
13197
b3b32279
TT
131982020-02-08 Tom Tromey <tom@tromey.com>
13199
13200 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13201
1d33d811
TT
132022020-02-08 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13205 Rewrite.
13206 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13207 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13208 (abbrev_table::abbrev_table): No longer inline.
13209 (ABBREV_HASH_SIZE): Remove.
13210 (abbrev_table::m_abbrevs): Now an htab_up.
13211
86de1d91
TT
132122020-02-08 Tom Tromey <tom@tromey.com>
13213
13214 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13215 (cutu_reader): Update.
13216 (build_type_psymtabs_1): Update.
13217 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13218 (abbrev_table::alloc_abbrev): Update.
13219 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13220 (abbrev_table::read): New static method, renamed from
13221 abbrev_table_read_table.
13222 (abbrev_table::alloc_abbrev)
13223 (abbrev_table::add_abbrev): Now private.
13224 (abbrev_table::abbrev_table): Now private.
13225 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13226
0335378b
TT
132272020-02-08 Tom Tromey <tom@tromey.com>
13228
13229 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13230 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13231 htab_up.
13232
48b490f2
TT
132332020-02-08 Tom Tromey <tom@tromey.com>
13234
13235 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13236 htab_up.
13237 (lookup_dwo_unit_in_dwp): Update.
13238 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13239 on obstack.
13240
bc68fb19
TT
132412020-02-08 Tom Tromey <tom@tromey.com>
13242
13243 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13244 obstack.
13245
d15acc42
TT
132462020-02-08 Tom Tromey <tom@tromey.com>
13247
13248 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13249 line_header_hash.
13250 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13251 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13252 Change type to htab_up.
13253
eaa5fa8b
TT
132542020-02-08 Tom Tromey <tom@tromey.com>
13255
13256 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13257 htab_up. Don't allocate on obstack.
13258 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13259 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13260 Change type to htab_up.
13261
b0b6a987
TT
132622020-02-08 Tom Tromey <tom@tromey.com>
13263
13264 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13265 Change type to htab_up.
13266 * dwarf2/read.c (create_signatured_type_table_from_index)
13267 (create_signatured_type_table_from_debug_names)
13268 (create_all_type_units, add_type_unit)
13269 (lookup_dwo_signatured_type, lookup_signatured_type)
13270 (process_skeletonless_type_unit): Update.
13271 (create_debug_type_hash_table, create_debug_types_hash_table):
13272 Change type of types_htab.
13273 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13274 htab_up. Don't allocate on obstack.
13275 (create_cus_hash_table): Change type of cus_htab parameter.
13276 (struct dwo_file) <cus, tus>: Now htab_up.
13277 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13278 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13279 (queue_and_load_all_dwo_tus): Update.
13280 * dwarf2/index-write.c (write_gdbindex): Update.
13281 (write_debug_names): Update.
13282
39856def
TT
132832020-02-08 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13286 dwarf2/read.c. Remove "next" member. Add constructor ntad
13287 destructor.
13288 (struct dwarf2_per_objfile) <queue>: New member.
13289 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13290 dwarf2/read.h.
13291 (dwarf2_queue, dwarf2_queue_tail): Remove.
13292 (class dwarf2_queue_guard): Add parameter to constructor. Use
13293 DISABLE_COPY_AND_ASSIGN.
13294 <m_per_objfile>: New member.
13295 <~dwarf2_queue_guard>: Rewrite.
13296 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13297 Update.
13298 (~dwarf2_queue_item): New.
13299
3e225074
TT
133002020-02-08 Tom Tromey <tom@tromey.com>
13301
13302 * dwarf2/read.c (struct die_info) <has_children>: New member.
13303 (dw2_get_file_names_reader): Remove has_children.
13304 (dw2_get_file_names): Update.
13305 (read_cutu_die_from_dwo): Remove has_children.
13306 (cutu_reader::init_tu_and_read_dwo_dies)
13307 (cutu_reader::cutu_reader): Update.
13308 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13309 Remove has_children.
13310 (build_type_psymtabs_1, process_skeletonless_type_unit)
13311 (load_partial_comp_unit, load_full_comp_unit): Update.
13312 (create_dwo_cu_reader): Remove has_children.
13313 (create_cus_hash_table, read_die_and_children): Update.
13314 (read_full_die_1,read_full_die): Remove has_children.
13315 (read_signatured_type): Update.
13316 (class cutu_reader) <has_children>: Remove.
13317
82ca8957
TT
133182020-02-08 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2/expr.c: Rename from dwarf2expr.c.
13321 * dwarf2/expr.h: Rename from dwarf2expr.h.
13322 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13323 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13324 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13325 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13326 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13327 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13328 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13329 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13330 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13331 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13332 * dwarf2/loc.c: Rename from dwarf2loc.c.
13333 * dwarf2/loc.h: Rename from dwarf2loc.h.
13334 * dwarf2/read.c: Rename from dwarf2read.c.
13335 * dwarf2/read.h: Rename from dwarf2read.h.
13336 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13337 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13338 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13339 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13340 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13341 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13342 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13343 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13344 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13345 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13346 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13347 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13348 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13349 Update.
13350 * Makefile.in (COMMON_SFILES): Update.
13351 (HFILES_NO_SRCDIR): Update.
13352
9e35d499
TT
133532020-02-08 Tom Tromey <tom@tromey.com>
13354
13355 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13356 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13357
1eba2311
TT
133582020-02-08 Tom Tromey <tom@tromey.com>
13359
13360 * dwarf2read.h (struct die_info): Don't declare.
13361
e41c2da2
TT
133622020-02-08 Tom Tromey <tom@tromey.com>
13363
13364 * dwarf2read.h (die_info_ptr): Remove typedef.
13365
4fc6c0d5
TT
133662020-02-08 Tom Tromey <tom@tromey.com>
13367
13368 * dwarf2read.c (read_call_site_scope)
13369 (handle_data_member_location, dwarf2_add_member_fn)
13370 (mark_common_block_symbol_computed, read_common_block)
13371 (attr_to_dynamic_prop, partial_die_info::read)
13372 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13373 (dwarf2_symbol_mark_computed, set_die_type): Update.
13374 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13375 method.
13376 (attr_form_is_block): Don't declare.
13377 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13378
cd6c91b4
TT
133792020-02-08 Tom Tromey <tom@tromey.com>
13380
13381 * dwarf2read.c (dwarf2_find_base_address, )
13382 (read_call_site_scope, rust_containing_type)
13383 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13384 (handle_data_member_location, dwarf2_add_member_fn)
13385 (get_alignment, read_structure_type, process_structure_scope)
13386 (mark_common_block_symbol_computed, read_common_block)
13387 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13388 (partial_die_info::read, read_attribute_value, new_symbol)
13389 (lookup_die_type, dwarf2_get_ref_die_offset)
13390 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13391 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13392 (dwarf2_symbol_mark_computed): Update.
13393 * dwarf2/attribute.h (struct attribute) <value_as_address,
13394 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13395 methods.
13396 (value_as_address, attr_form_is_section_offset)
13397 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13398 * dwarf2/attribute.c (attribute::value_as_address)
13399 (attribute::form_is_section_offset, attribute::form_is_constant)
13400 (attribute::form_is_ref): Now methods.
13401
162dce55
TT
134022020-02-08 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2read.c (struct attribute, DW_STRING)
13405 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13406 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13407 (attr_form_is_block, attr_form_is_section_offset)
13408 (attr_form_is_constant, attr_form_is_ref): Move.
13409 * dwarf2/attribute.h: New file.
13410 * dwarf2/attribute.c: New file, from dwarf2read.c.
13411 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13412
3054dd54
TT
134132020-02-08 Tom Tromey <tom@tromey.com>
13414
13415 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13416 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13417 Move.
13418 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13419 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13420 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13421 abbrev.c.
13422 * dwarf2/abbrev.h: New file.
13423 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13424 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13425
96b79293
TT
134262020-02-08 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13429 (dwarf2_section_size, dwarf2_get_section_info)
13430 (create_signatured_type_table_from_debug_names)
13431 (create_addrmap_from_aranges, read_debug_names_from_section)
13432 (get_gdb_index_contents_from_section, read_comp_unit_head)
13433 (error_check_comp_unit_head, read_abbrev_offset)
13434 (create_debug_type_hash_table, init_cu_die_reader)
13435 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13436 (read_comp_units_from_section, create_cus_hash_table)
13437 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13438 (create_dwp_v2_section, dwarf2_rnglists_process)
13439 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13440 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13441 (read_indirect_string_from_dwz, read_addr_index_1)
13442 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13443 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13444 (fill_in_loclist_baton): Update.
13445 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13446 get_containing_section, get_bfd_owner, get_bfd_section,
13447 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13448 (dwarf2_read_section, get_section_name, get_section_file_name)
13449 (get_containing_section, get_section_bfd_owner)
13450 (get_section_bfd_section, get_section_name, get_section_file_name)
13451 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13452 declare.
13453 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13454 (dwarf2_section_info::get_bfd_owner)
13455 (dwarf2_section_info::get_bfd_section)
13456 (dwarf2_section_info::get_name)
13457 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13458 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13459 (dwarf2_section_info::read): Now methods.
13460 * dwarf-index-write.c (class debug_names): Update.
13461
2c86cff9
TT
134622020-02-08 Tom Tromey <tom@tromey.com>
13463
13464 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13465 Move to dwarf2/section.h.
13466 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13467 (get_section_bfd_section, get_section_name)
13468 (get_section_file_name, get_section_id, get_section_flags)
13469 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13470 dwarf2/section.c.
13471 * dwarf2/section.h: New file.
13472 * dwarf2/section.c: New file, from dwarf2read.c.
13473 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13474
f4382c45
TT
134752020-02-08 Tom Tromey <tom@tromey.com>
13476
13477 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13478 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13479 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13480 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13481 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13482 * dwarf2/leb.h: New file, from dwarf2read.c.
13483 * dwarf2/leb.c: New file, from dwarf2read.c.
13484 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13485 Remove.
13486 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13487 (COMMON_SFILES): Add dwarf2/leb.c.
13488
01840b7a
JB
134892020-02-08 Joel Brobecker <brobecker@adacore.com>
13490
13491 GDB 9.1 released.
13492
dfcb27e4
IB
134932020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13494
13495 PR gdb/25190:
aac66a4c
SM
13496 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13497 * gdb/remote.c (remote_console_output): Update.
13498 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13499 (ui_file_puts): ...this.
13500 * gdb/ui-file.h (ui_file_puts): Add declaration.
13501 * gdb/utils.c (emit_style_escape): Update.
13502 (flush_wrap_buffer): Update.
13503 (fputs_maybe_filtered): Update.
13504 (fputs_unfiltered): Add function.
dfcb27e4 13505
faa17681
IB
135062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13507
aac66a4c
SM
13508 * gdb/event-loop.c (gdb_wait_for_event): Update.
13509 * gdb/printcmd.c (printf_command): Update.
13510 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13511 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13512 (gdb_os_flush_stderr): Update.
13513 * gdb/remote.c (remote_console_output): Update.
13514 * gdb/ui-file.c (gdb_flush): Rename to...
13515 (ui_file_flush): ...this.
13516 (stderr_file::write): Update.
13517 (stderr_file::puts): Update.
13518 * gdb/ui-file.h (gdb_flush): Rename to...
13519 (ui_file_flush): ...this.
13520 * gdb/utils.c (gdb_flush): Add function.
13521 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13522
5abbbe1d
TT
135232020-02-07 Tom Tromey <tromey@adacore.com>
13524
13525 PR breakpoints/24915:
13526 * source.c (find_and_open_source): Do not check basenames_may_differ.
13527
919adfe8
TT
135282020-02-07 Tom Tromey <tom@tromey.com>
13529
13530 * README: Update gdbserver documentation.
13531 * gdbserver: Move to top level.
13532 * configure.tgt (build_gdbserver): Remove.
13533 * configure.ac: Remove --enable-gdbserver.
13534 * configure: Rebuild.
13535 * Makefile.in (distclean): Don't mention gdbserver.
13536
1d5d29e7
SV
135372020-02-06 Shahab Vahedi <shahab@synopsys.com>
13538
13539 * source-cache.c (source_cache::ensure): Surround
13540 get_plain_source_lines with a try/catch.
13541 (source_cache::get_line_charpos): Get rid of try/catch
13542 and only check for the return value of "ensure".
13543 * tui/tui-source.c (tui_source_window::set_contents):
13544 Simplify "nlines" calculation.
13545
6eb1129c
SV
135462020-02-06 Shahab Vahedi <shahab@synopsys.com>
13547
13548 * MAINTAINERS (Write After Approval): Add myself.
13549
c6a42d11
CB
135502020-02-05 Christian Biesinger <cbiesinger@google.com>
13551
13552 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13553 function call.
13554
c8ecdda6
CB
135552020-02-05 Christian Biesinger <cbiesinger@google.com>
13556
13557 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13558
f6480e70
MR
135592020-02-05 Maciej W. Rozycki <macro@wdc.com>
13560
13561 * nat/riscv-linux-tdesc.h: New file.
13562 * nat/riscv-linux-tdesc.c: New file, taking code from...
13563 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13564 ... here.
13565 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13566 NATDEPFILES.
13567
dcc9fbc6
AB
135682020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13569
13570 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13571 we don't set the fake simulator ptid to the null_ptid.
13572
719546c4
SM
135732020-02-03 Simon Marchi <simon.marchi@efficios.com>
13574
13575 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13576 * gdbthread.h (class thread_info) <resumed>: Likewise.
13577 * infrun.c (resume_1): Likewise.
13578 (proceed): Likewise.
13579 (infrun_thread_stop_requested): Likewise.
13580 (stop_all_threads): Likewise.
13581 (handle_inferior_event): Likewise.
13582 (restart_threads): Likewise.
13583 (finish_step_over): Likewise.
13584 (keep_going_stepped_thread): Likewise.
13585 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13586 (linux_handle_extended_wait): Likewise.
13587 * record-btrace.c (get_thread_current_frame_id): Likewise.
13588 * record-full.c (record_full_wait_1): Likewise.
13589 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13590 * target.c (target_resume): Likewise.
13591 * thread.c (set_running_thread): Likewise.
13592
e409c542
AKS
135932020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13594
13595 * f-valprint.c (f77_print_array_1): Changed datatype of index
13596 variable to LONGEST from int to enable it to contain bound
13597 values correctly.
13598
ee98c0da
MR
135992020-02-03 Maciej W. Rozycki <macro@wdc.com>
13600
13601 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13602 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13603 offsets according to FLEN determined.
13604 (riscv_linux_nat_target::read_description): Determine FLEN
13605 dynamically.
13606 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13607 according to FLEN determined.
13608 (riscv_linux_nat_target::store_registers): Likewise.
13609
aa66aac4
SV
136102020-02-01 Shahab Vahedi <shahab@synopsys.com>
13611
13612 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13613 when reg->group is empty and reggroup is not.
13614
fd9faca8
TT
136152020-01-31 Tom Tromey <tromey@adacore.com>
13616
13617 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13618 Call beneath target's mourn_inferior after unpushing.
13619
42330a68
AB
136202020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13621
13622 PR tui/9765
13623 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13624 have enough lines to fill the screen, still return the lowest
13625 address we found.
13626
7a27a45b
AB
136272020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13628
13629 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13630 '-', '<', and '>' commands.
13631
c47f70e2
PA
136322020-01-29 Pedro Alves <palves@redhat.com>
13633 Sergio Durigan Junior <sergiodj@redhat.com>
13634
13635 * infcmd.c (construct_inferior_arguments): Assert that
13636 'argc' is greater than 0.
13637
5133a315
LM
136382020-01-29 Luis Machado <luis.machado@linaro.org>
13639
13640 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13641 (BRK_INSN_MASK): Define to 0xd4200000.
13642 (aarch64_program_breakpoint_here_p): New function.
13643 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13644 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13645 breakpoint.c.
13646 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13647 breakpoint.h
13648 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13649 call gdbarch_program_breakpoint_here_p.
13650 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13651 default_program_breakpoint_here_p, changed return type to bool and
13652 simplified.
13653 * breakpoint.h (program_breakpoint_here): Moved prototype to
13654 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13655 return type to bool.
13656 * gdbarch.c: Regenerate.
13657 * gdbarch.h: Regenerate.
13658 * gdbarch.sh (program_breakpoint_here_p): New method.
13659 * infrun.c (handle_signal_stop): Call
13660 gdbarch_program_breakpoint_here_p.
13661
168f8c6b
TT
136622020-01-26 Tom Tromey <tom@tromey.com>
13663
13664 * ctfread.c (struct ctf_fp_info): Reindent.
13665 (_initialize_ctfread): Remove.
13666
128a391f
TT
136672020-01-26 Tom Tromey <tom@tromey.com>
13668
13669 * psymtab.c (partial_map_expand_apply)
13670 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13671 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13672 (psym_print_stats, psym_expand_symtabs_for_function)
13673 (psym_map_symbol_filenames, psym_map_matching_symbols)
13674 (psym_expand_symtabs_matching)
13675 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13676 (maintenance_check_psymtabs): Use new methods.
13677 * psympriv.h (struct partial_symtab) <readin_p,
13678 get_compunit_symtab>: New methods.
13679 <readin, compunit_symtab>: Remove members.
13680 (struct standard_psymtab): New.
13681 (struct legacy_psymtab): Derive from standard_psymtab.
13682 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13683 standard_psymtab.
13684 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13685
0494dbec
TT
136862020-01-26 Tom Tromey <tom@tromey.com>
13687
13688 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13689 read_dependencies. Add assert.
13690 * psymtab.c (partial_symtab::read_dependencies): New method.
13691 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13692 method.
13693 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13694 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13695 read_dependencies.
13696 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13697 Add assert.
13698
8566b89b
TT
136992020-01-26 Tom Tromey <tom@tromey.com>
13700
13701 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13702 Call expand_psymtab.
13703 (xcoff_read_symtab): Call expand_psymtab.
13704 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13705 legacy_expand_psymtab.
13706 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13707 method.
13708 (struct legacy_psymtab) <expand_psymtab>: Implement.
13709 <legacy_expand_psymtab>: New member.
13710 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13711 (parse_partial_symbols): Set legacy_expand_psymtab.
13712 (psymtab_to_symtab_1): Change argument order. Call
13713 expand_psymtab.
13714 (new_psymtab): Set legacy_expand_psymtab.
13715 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13716 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13717 expand_psymtab.
13718 (dwarf2_psymtab::expand_psymtab): Rename from
13719 psymtab_to_symtab_1. Call expand_psymtab.
13720 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13721 (dbx_end_psymtab): Likewise.
13722 (dbx_psymtab_to_symtab_1): Change argument order. Call
13723 expand_psymtab.
13724 (dbx_read_symtab): Call expand_psymtab.
13725 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13726 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13727 (ctf_psymtab::read_symtab): Call expand_psymtab.
13728
077cbab2
TT
137292020-01-26 Tom Tromey <tom@tromey.com>
13730
13731 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13732 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13733 messages.
13734 * mdebugread.c (mdebug_read_symtab): Remove prints.
13735 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13736 assert.
13737 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13738
891813be
TT
137392020-01-26 Tom Tromey <tom@tromey.com>
13740
13741 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13742 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13743 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13744 legacy_symtab.
13745 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13746 * psymtab.c (psymtab_to_symtab): Call method.
13747 (dump_psymtab): Update.
13748 * psympriv.h (struct partial_symtab): Add virtual destructor.
13749 <read_symtab>: New method.
13750 (struct legacy_symtab): New.
13751 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13752 (struct pst_map) <pst>: Now a legacy_psymtab.
13753 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13754 (new_psymtab): Use legacy_psymtab.
13755 * dwarf2read.h (struct dwarf2_psymtab): New.
13756 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13757 * dwarf2read.c (dwarf2_create_include_psymtab)
13758 (dwarf2_build_include_psymtabs, create_type_unit_group)
13759 (create_partial_symtab, process_psymtab_comp_unit_reader)
13760 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13761 (set_partial_user): Use dwarf2_psymtab.
13762 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13763 (psymtab_to_symtab_1, process_full_comp_unit)
13764 (process_full_type_unit, dwarf2_ranges_read)
13765 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13766 (dwarf_decode_lines): Use dwarf2_psymtab.
13767 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13768 (add_address_entry_worker, write_one_signatured_type)
13769 (recursively_count_psymbols, recursively_write_psymbols)
13770 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13771 (write_debug_names): Likewise.
13772 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13773 <pst>: Now a legacy_psymtab.
13774 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13775 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13776 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13777 * ctfread.c (struct ctf_psymtab): New.
13778 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13779 ctf_psymtab.
13780 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13781 (create_partial_symtab): Return a ctf_psymtab.
13782 (scan_partial_symbols): Update.
13783
c3693a1d
TT
137842020-01-26 Tom Tromey <tom@tromey.com>
13785
13786 * xcoffread.c (xcoff_start_psymtab): Use new.
13787 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13788 renamed from start_psymtab_common.
13789 * psympriv.h (struct partial_symtab): Add new constructor.
13790 (start_psymtab_common): Don't declare.
13791 * mdebugread.c (parse_partial_symbols): Use new.
13792 * dwarf2read.c (create_partial_symtab): Use new.
13793 * dbxread.c (start_psymtab): Use new.
13794 * ctfread.c (create_partial_symtab): Use new.
13795
32caafd0
TT
137962020-01-26 Tom Tromey <tom@tromey.com>
13797
13798 * xcoffread.c (xcoff_end_psymtab): Use new.
13799 * psymtab.c (start_psymtab_common): Use new.
13800 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13801 Update.
13802 * psympriv.h (struct partial_symtab): Add parameters to
13803 constructor. Don't inline.
13804 (allocate_psymtab): Don't declare.
13805 * mdebugread.c (new_psymtab): Use new.
13806 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13807 * dbxread.c (dbx_end_psymtab): Use new.
13808
abaa2f23
TT
138092020-01-26 Tom Tromey <tom@tromey.com>
13810
13811 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13812 allocate_psymtab. Update documentation.
13813 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13814 allocate_psymtab. Do not use new.
13815 (allocate_psymtab): Use new. Update.
13816
6d94535f
TT
138172020-01-26 Tom Tromey <tom@tromey.com>
13818
13819 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13820 * psymtab.c (psym_print_stats): Update.
13821 * psympriv.h (struct partial_symtab) <readin,
13822 psymtabs_addrmap_supported, anonymous>: Now bool.
13823 * mdebugread.c (psymtab_to_symtab_1): Update.
13824 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13825 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13826 (process_full_comp_unit, process_full_type_unit): Update.
13827 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13828 * ctfread.c (psymtab_to_symtab): Update.
13829
6f17252b
TT
138302020-01-26 Tom Tromey <tom@tromey.com>
13831
13832 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13833 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13834 * psymtab.c (psymtab_storage): Delete psymtabs.
13835 (psymtab_storage::allocate_psymtab): Use new.
13836 (psymtab_storage::discard_psymtab): Use delete.
13837 * psympriv.h (struct partial_symtab): Add constructor and
13838 initializers.
13839
f6f1cebc
TT
138402020-01-26 Tom Tromey <tom@tromey.com>
13841
13842 * machoread.c: Do not include psympriv.h.
13843
e47e48f6
PW
138442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13845
13846 * NEWS: Mention the new option and the set/show commands.
13847
a2fedca9
PW
138482020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13849
13850 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13851 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13852 (validate_exec_file): New variables, enums, functions.
13853 (exec_file_locate_attach, print_section_info): Style the filenames.
13854 (_initialize_exec): Install show_exec_file_mismatch_command and
13855 set_exec_file_mismatch_command.
13856 * gdbcore.h (validate_exec_file): Declare.
13857 * infcmd.c (attach_command): Call validate_exec_file.
13858 * remote.c ( remote_target::remote_add_inferior): Likewise.
13859
7ffa82e1
AB
138602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13861
13862 * frame.c (find_frame_sal): Move call to get_next_frame into more
13863 inner scope.
13864 * inline-frame.c (inilne_state) <inline_state>: Update argument
13865 types.
13866 (inilne_state) <skipped_symbol>: Rename to...
13867 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13868 (skip_inline_frames): Build vector of skipped symbols and use this
13869 to reate the inline_state.
13870 (inline_skipped_symbol): Add a comment and some assertions, fetch
13871 skipped symbol from the list.
13872
3d92a3e3
AB
138732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13874
13875 * buildsym.c (lte_is_less_than): Delete.
13876 (buildsym_compunit::end_symtab_with_blockvector): Create local
13877 lambda function to sort line table entries, and use
13878 std::stable_sort instead of std::sort.
13879 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13880 markers when looking for a previous line.
13881
94a72be7
AB
138822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13883
13884 * dwarf2read.c (lnp_state_machine::record_line): Include
13885 end_sequence parameter in debug print out. Record the line if we
13886 are at an end_sequence marker even if it's not the start of a
13887 statement.
13888 * symmisc.c (maintenance_print_one_line_table): Print end of
13889 sequence markers with 'END' not '0'.
13890
53af73bf
PA
138912020-01-24 Pedro Alves <palves@redhat.com>
13892
13893 PR gdb/25410
13894 * thread.c (scoped_restore_current_thread::restore): Use
13895 switch_to_inferior_no_thread.
13896 * exec.c: Include "progspace-and-thread.h".
13897 (add_target_sections, remove_target_sections):
13898 scoped_restore_current_pspace_and_thread instead of
13899 scoped_restore_current_thread.
13900 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13901 and aspace to the inferior before calling clone_program_space.
13902 Remove stale comment.
13903
3050c6f4
CB
139042020-01-24 Christian Biesinger <cbiesinger@google.com>
13905
13906 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13907 (arm_netbsd_nat_target::fetch_registers): ...this.
13908 (arm_nbsd_nat_target::store_registers): Rename to...
13909 (arm_netbsd_nat_target::store_registers): ...this.
13910
73685c7e
CB
139112020-01-24 Christian Biesinger <cbiesinger@google.com>
13912
13913 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13914 register_t.
13915
89203d40
CB
139162020-01-24 Christian Biesinger <cbiesinger@google.com>
13917
13918 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13919 Update comment.
13920 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13921 Likewise.
13922 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13923 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13924 the correct replacement (iterate_over_regset_sections).
13925 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13926 Update comment.
13927
1ba1ac88
AB
139282020-01-24 Graham Markall <graham.markall@embecosm.com>
13929
13930 PR gdb/23718
13931 * gdb/python/python.c (execute_gdb_command): Call
13932 async_enable_stdin in catch block.
13933
f3364a6d
AB
139342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13935
13936 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13937 SWITCH_THRU_ALL_UIS.
13938
733d0a67
AB
139392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13940
13941 PR tui/9765
13942 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13943 comment, add extra parameter, and update to store previous symbol
13944 when appropriate.
13945 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13946 add extra parameter.
13947 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13948 remove unneeded parameter, add try/catch around gdb_print_insn,
13949 rewrite to add items to asm_lines vector.
13950 (tui_find_backward_disassembly_start_address): New function.
13951 (tui_find_disassembly_address): Updated throughout.
13952 (tui_disasm_window::set_contents): Update for changes to
13953 tui_disassemble.
13954 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13955 number of lines to scroll.
13956
b3b3bada
SM
139572020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13958
13959 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13960 (SECT_OFF_DATA): Likewise.
13961 (SECT_OFF_RODATA): Likewise.
13962 (SECT_OFF_TEXT): Likewise.
13963 (SECT_OFF_BSS): Likewise.
13964 (struct objfile) <text_section_offset, data_section_offset>: New
13965 methods.
13966 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13967 objfile::text_section_offset.
13968 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13969 * coffread.c (coff_symtab_read): Likewise.
13970 (enter_linenos): Likewise.
13971 (process_coff_symbol): Likewise.
13972 * ctfread.c (get_objfile_text_range): Likewise.
13973 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13974 Use objfile::data_section_offset.
13975 * dwarf2-frame.c (execute_cfa_program): Use
13976 objfile::text_section_offset.
13977 (dwarf2_frame_find_fde): Likewise.
13978 * dwarf2read.c (create_addrmap_from_index): Likewise.
13979 (create_addrmap_from_aranges): Likewise.
13980 (dw2_find_pc_sect_compunit_symtab): Likewise.
13981 (process_psymtab_comp_unit_reader): Likewise.
13982 (add_partial_symbol): Likewise.
13983 (add_partial_subprogram): Likewise.
13984 (process_full_comp_unit): Likewise.
13985 (read_file_scope): Likewise.
13986 (read_func_scope): Likewise.
13987 (read_lexical_block_scope): Likewise.
13988 (read_call_site_scope): Likewise.
13989 (dwarf2_rnglists_process): Likewise.
13990 (dwarf2_ranges_process): Likewise.
13991 (dwarf2_ranges_read): Likewise.
13992 (dwarf_decode_lines_1): Likewise.
13993 (new_symbol): Likewise.
13994 (dwarf2_fetch_die_loc_sect_off): Likewise.
13995 (dwarf2_per_cu_text_offset): Likewise.
13996 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13997 * hppa-tdep.c (read_unwind_info): Likewise.
13998 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13999 * psympriv.h (struct partial_symtab): Likewise.
14000 * psymtab.c (find_pc_sect_psymtab): Likewise.
14001 * solib-svr4.c (enable_break): Likewise.
14002 * stap-probe.c (relocate_address): Use
14003 objfile::data_section_offset.
14004 * xcoffread.c (enter_line_range): Use
14005 objfile::text_section_offset.
14006 (read_xcoff_symtab): Likewise.
14007
ab53f382
SM
140082020-01-23 Simon Marchi <simon.marchi@efficios.com>
14009
14010 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
14011 declaration to narrower scopes.
14012
e7eee665
SM
140132020-01-23 Simon Marchi <simon.marchi@efficios.com>
14014
14015 * darwin-nat.h (struct darwin_exception_msg, enum
14016 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
14017 Move up.
14018 (class darwin_nat_target) <wait_1, check_new_threads,
14019 decode_exception_message, decode_message, stop_inferior,
14020 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
14021 * darwin-nat.c (darwin_check_new_threads): Rename to...
14022 (darwin_nat_target::check_new_threads): ... this.
14023 (darwin_suspend_inferior_it): Remove.
14024 (darwin_decode_exception_message): Rename to...
14025 (darwin_nat_target::decode_exception_message): ... this.
14026 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
14027 (darwin_decode_message): Rename to...
14028 (darwin_nat_target::decode_message): ... this.
14029 (cancel_breakpoint): Rename to...
14030 (darwin_nat_target::cancel_breakpoint): ... this.
14031 (darwin_wait): Rename to...
14032 (darwin_nat_target::wait_1): ... this. Use range-based for loop
14033 instead of iterate_over_inferiors.
14034 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
14035 (darwin_stop_inferior): Rename to...
14036 (darwin_nat_target::stop_inferior): ... this.
14037 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
14038 (darwin_init_thread_list): Rename to...
14039 (darwin_nat_target::init_thread_list): ... this.
14040 (darwin_ptrace_him): Rename to...
14041 (darwin_nat_target::ptrace_him): ... this.
14042 (darwin_nat_target::create_inferior): Pass lambda function to
14043 fork_inferior.
14044 (darwin_nat_target::detach): Call stop_inferior instead of
14045 darwin_stop_inferior.
14046 * fork-inferior.h (fork_inferior): Change init_trace_fun
14047 parameter to gdb::function_view.
14048 * fork-inferior.c (fork_inferior): Likewise.
14049
c162ed3e
HD
140502020-01-23 Hannes Domani <ssbssa@yahoo.de>
14051
14052 * i386-cygwin-tdep.c (core_process_module_section): Update.
14053 * windows-nat.c (struct lm_info_windows): Add text_offset.
14054 (windows_xfer_shared_libraries): Update.
14055 * windows-tdep.c (windows_xfer_shared_library):
14056 Add text_offset_cached argument.
14057 * windows-tdep.h (windows_xfer_shared_library): Update.
14058
a1237872
SM
140592020-01-21 Simon Marchi <simon.marchi@efficios.com>
14060
14061 * gdbarch.sh: Add declaration for _initialize_gdbarch.
14062
b3ee6dd9
SM
140632020-01-21 Simon Marchi <simon.marchi@efficios.com>
14064
14065 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
14066 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
14067 replace with range-based for.
14068 (gdbsim_interrupt_inferior): Remove.
14069 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
14070 with a range-based for. Inline code from
14071 gdbsim_interrupt_inferior.
14072
f9fac3c8
SM
140732020-01-21 Simon Marchi <simon.marchi@efficios.com>
14074
14075 * infrun.c (proceed): Fix indentation.
14076
f6474de9
TT
140772020-01-21 Tom Tromey <tromey@adacore.com>
14078
14079 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
14080 * python/python.c (python_extension_ops): Update.
14081 (gdbpy_colorize): New function.
14082 * python/lib/gdb/__init__.py (colorize): New function.
14083 * extension.h (ext_lang_colorize): Declare.
14084 * extension.c (ext_lang_colorize): New function.
14085 * extension-priv.h (struct extension_language_ops) <colorize>: New
14086 member.
14087 * cli/cli-style.c (_initialize_cli_style): Update help text.
14088
f0c702d4
LM
140892020-01-21 Luis Machado <luis.machado@linaro.org>
14090
14091 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14092 <cond>: Change type to bool.
14093 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14094 (aarch64_displaced_step_cb): Likewise.
14095 (aarch64_displaced_step_tb): Likewise.
14096
1ab139e5
LM
140972020-01-21 Luis Machado <luis.machado@linaro.org>
14098
14099 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14100 output.
14101
0c271889
LM
141022020-01-21 Luis Machado <luis.machado@linaro.org>
14103
14104 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14105 <pc_adjust>: Adjust the documentation.
14106 (aarch64_displaced_step_fixup): Check if PC really moved before
14107 adjusting it.
14108
4d89c1c7
TT
141092020-01-19 Tom Tromey <tom@tromey.com>
14110
14111 * disasm.c (~gdb_disassembler): New destructor.
14112 (gdb_buffered_insn_length): Call disassemble_free_target.
14113 * disasm.h (class gdb_disassembler): Declare destructor. Use
14114 DISABLE_COPY_AND_ASSIGN.
14115
c0ab21c2
TT
141162020-01-19 Tom Tromey <tom@tromey.com>
14117
14118 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14119 (die_reader_func_ftype): Remove.
14120 (cutu_reader): New class.
14121 (dw2_get_file_names_reader): Remove "data" parameter.
14122 (dw2_get_file_names): Use cutu_reader.
14123 (create_debug_type_hash_table): Update.
14124 (read_cutu_die_from_dwo): Update comment.
14125 (lookup_dwo_unit): Add dwo_name parameter.
14126 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14127 die_reader_func_ftype and data parameters.
14128 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14129 Remove die_reader_func_ftype and data parameters.
14130 (~cutu_reader): New; from init_cutu_and_read_dies.
14131 (cutu_reader::cutu_reader): Rename from
14132 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14133 and data parameters.
14134 (init_cutu_and_read_dies_simple): Remove.
14135 (struct process_psymtab_comp_unit_data): Remove.
14136 (process_psymtab_comp_unit_reader): Remove data parameter; add
14137 want_partial_unit and pretend_language parameters.
14138 (process_psymtab_comp_unit): Use cutu_reader.
14139 (build_type_psymtabs_reader): Remove data parameter.
14140 (build_type_psymtabs_1): Use cutu_reader.
14141 (process_skeletonless_type_unit): Likewise.
14142 (load_partial_comp_unit_reader): Remove.
14143 (load_partial_comp_unit): Use cutu_reader.
14144 (load_full_comp_unit_reader): Remove.
14145 (load_full_comp_unit): Use cutu_reader.
14146 (struct create_dwo_cu_data): Remove.
14147 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14148 dwo_unit parameters.
14149 (create_cus_hash_table): Use cutu_reader.
14150 (struct dwarf2_read_addr_index_data): Remove.
14151 (dwarf2_read_addr_index_reader): Remove.
14152 (dwarf2_read_addr_index): Use cutu_reader.
14153 (read_signatured_type_reader): Remove.
14154 (read_signatured_type): Use cutu_reader.
14155
45bbae5c
TT
141562020-01-19 Tom Tromey <tom@tromey.com>
14157
14158 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14159 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14160 (tui_wrefresh): Declare.
14161 * tui/tui-wingeneral.c (suppress_output): New global.
14162 (tui_suppress_output, ~tui_suppress_output): New constructor and
14163 destructor.
14164 (tui_wrefresh): New function.
14165 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14166 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14167 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14168 method.
14169 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14170 tui_wrefresh.
14171 (tui_data_window::no_refresh): New method.
14172 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14173 (tui_reg_command): Use tui_suppress_output
14174 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14175 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14176 method.
14177 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14178
4f13c1c0
TT
141792020-01-19 Tom Tromey <tom@tromey.com>
14180
14181 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14182 Handle case where symtab is null.
14183
fa47e446
SM
141842020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14185
14186 * linux-fork.c (one_fork_p): Simplify.
14187
26f42329
SM
141882020-01-17 Simon Marchi <simon.marchi@efficios.com>
14189
14190 * top.c (struct qt_args): Remove.
14191 (kill_or_detach): Change return type to void, replace `void *`
14192 parameter with a proper one.
14193 (print_inferior_quit_action): Likewise.
14194 (quit_confirm): Use range-based for loop to iterate over inferiors.
14195 (quit_force): Likewise.
14196
a9ac81b1
SM
141972020-01-17 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14200 `void *` parameter with proper parameters.
14201 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14202 (print_one_inferior): Change return type to void, replace `void *`
14203 parameter with proper parameters.
14204 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14205 inferiors.
14206 (get_other_inferior): Remove.
14207 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14208 inferiors.
14209
788eca49
SM
142102020-01-17 Simon Marchi <simon.marchi@efficios.com>
14211
14212 * mi/mi-interp.c (report_initial_inferior): Remove.
14213 (mi_interp::init): Use range-based for to iterate over inferiors.
14214
d9bc85b6
SM
142152020-01-17 Simon Marchi <simon.marchi@efficios.com>
14216
14217 * python/py-inferior.c (build_inferior_list): Remove.
14218 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14219
40c94099
CB
142202020-01-16 Christian Biesinger <cbiesinger@google.com>
14221
14222 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14223 (btrace_stitch_trace): Likewise.
14224 * charset.c (intermediate_encoding): Likewise (vaild).
14225 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14226 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14227 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14228
e0cdfe3c
HD
142292020-01-16 Hannes Domani <ssbssa@yahoo.de>
14230
14231 * windows-tdep.c (windows_get_tlb_type):
14232 Add rtl_user_process_parameters type.
14233
790f1718 142342020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14235 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14236
14237 PR build/24805
14238 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14239 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14240 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14241 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14242 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14243 (ps_plog): Redeclare exported functions with default visibility.
14244
3112ed97
NA
142452020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14246
14247 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14248 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14249
8dc3273e
SM
142502020-01-15 Simon Marchi <simon.marchi@efficios.com>
14251
14252 * infcmd.c (post_create_inferior): Use get_thread_regcache
14253 instead of get_current_regcache.
14254
ff47f4f0
TT
142552020-01-14 Tom Tromey <tom@tromey.com>
14256
14257 PR symtab/12535:
14258 * python/python.c (gdbpy_decode_line): Treat empty string the same
14259 as no argument.
14260
975f45b7
TT
142612020-01-14 Tom Tromey <tom@tromey.com>
14262
14263 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14264
25e57356
TT
142652020-01-14 Tom Tromey <tom@tromey.com>
14266
14267 * nat/linux-btrace.c: Don't include <config.h>.
14268 * nat/linux-ptrace.c: Don't include <config.h>.
14269 * nat/x86-linux-dregs.c: Don't include <config.h>.
14270
05ea2a05
TT
142712020-01-14 Tom Tromey <tom@tromey.com>
14272
14273 * configure: Rebuild.
14274 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14275
01027315
TT
142762020-01-14 Tom Tromey <tom@tromey.com>
14277
14278 * nat/x86-linux-dregs.c: Include configh.h.
14279 * nat/linux-ptrace.c: Include configh.h.
14280 * nat/linux-btrace.c: Include configh.h.
14281 * defs.h: Include config.h, bfd.h.
14282 * configure.ac: Don't source common.host.
14283 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14284 * configure: Rebuild.
14285 * acinclude.m4: Update path.
14286 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14287 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14288 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14289 (CLIBS): Add LIBSUPPORT.
14290 (CDEPS): Likewise.
14291 (COMMON_SFILES): Remove gdbsupport files.
14292 (HFILES_NO_SRCDIR): Likewise.
14293 (stamp-version): Update path to create-version.sh.
14294 (ALLDEPFILES): Remove gdbsupport files.
14295
b2ceabe8
TT
142962020-01-14 Tom Tromey <tom@tromey.com>
14297
14298 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14299 USE_WIN32API when needed.
14300 * configure.ac (USE_WIN32API): Don't define.
14301 (WIN32LIBS): Use WIN32APILIBS.
14302 * configure: Rebuild.
14303
25c51f71
TT
143042020-01-14 Tom Tromey <tom@tromey.com>
14305
14306 * configure: Rebuild.
14307 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14308
717c684d
BE
143092020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14310
14311 * skip.c (skip_function_command): Make skip w/o arguments use the
14312 name of the inlined function if pc is inside any inlined function.
14313
7da6a5b9
LM
143142020-01-14 Luis Machado <luis.machado@linaro.org>
14315
14316 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14317 * infrun.c (resume_1): Likewise.
14318 (handle_inferior_event): Remove stale comment.
14319 * linux-nat.c (linux_nat_target::resume): Update comments.
14320 (save_stop_reason): Likewise.
14321 (linux_nat_filter_event): Likewise.
14322 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14323
44e4c775
AB
143242020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14325
14326 * elfread.c (record_minimal_symbol): Set section index to 0 for
14327 non-allocatable sections.
14328
18a8505e
AT
14329
143302020-01-13 Ali Tamur <tamur@google.com>
14331
14332 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14333 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14334 to gdb::optional. Update comments.
14335 (dwo_file): Update comments.
14336 (read_attribute): Update API to take an additional out parameter,
14337 need_reprocess. This is used to mark attributes that need other
14338 attributes (e.g. str_offsets_base) for correct computation which may not
14339 have been read yet.
14340 (read_attribute_reprocess): New function declaration.
14341 (read_addr_index): Likewise.
14342 (read_dwo_str_index): Likewise.
14343 (read_stub_str_index): Likewise.
14344 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14345 (lookup_addr_base): New function definition.
14346 (lookup_ranges_base): Likewise.
14347 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14348 lookup_ranges_base.
14349 (init_cutu_and_read_dies): Update comments.
14350 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14351 unit. This is used to inherit parent's str_offsets_base and addr_base.
14352 Update comments.
14353 (init_cutu_and_read_dies_simple): Reflect API changes.
14354 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14355 (create_cus_hash_table): Change API to take parent compile unit.
14356 Reflect API changes.
14357 (open_and_init_dwo_file): Reflect API changes.
14358 (dwarf2_get_pc_bounds): Update comments.
14359 (dwarf2_record_block_ranges): Likewise.
14360 (read_full_die_1): Change implementation to reprocess attributes that
14361 need str_offsets_base and addr_base.
14362 (partial_die_info::read): Likewise.
14363 (read_attribute_reprocess): New function definition.
14364 (read_attribute_value): Change API to take an additional out parameter,
14365 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14366 when a non-dwo compile unit has index based attributes.
14367 (read_attribute): Reflect API changes.
14368 (read_addr_index_1): Reflect API changes. Update comments.
14369 (dwarf2_read_addr_index_data): Reflect API changes.
14370 (dwarf2_read_addr_index): Likewise.
14371 (read_str_index): Change API and implementation. This becomes a helper
14372 to be used by the new string index related methods. Update error
14373 message and comments.
14374 (read_dwo_str_index): New function definition.
14375 (read_stub_str_index): Likewise.
14376 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14377 * symfile.h (dwarf2_debug_sections): Likewise.
14378 * xcoffread.c (dwarf2_debug_sections): Likewise.
14379
0cac9354
SM
143802020-01-13 Simon Marchi <simon.marchi@efficios.com>
14381
14382 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14383 core_reg_sect type to gdb_byte *.
14384 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14385 * cris-tdep.c (fetch_core_registers): Likewise.
14386 * corelow.c (core_target::get_core_register_section): Change
14387 type of `contents` to gdb::byte_vector.
14388
9a6d629c
AB
143892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14390
14391 * tui/tui-wingeneral.c (box_win): Position the title in the center
14392 of the border.
14393
d8b2f9e3
SM
143942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14395
14396 * corelow.c (core_target::get_core_register_section): Use
14397 std::vector instead of alloca.
14398
bb564c58
SM
143992020-01-13 Simon Marchi <simon.marchi@efficios.com>
14400
14401 * warning.m4: Add -Wmissing-declarations to build_warnings.
14402 * configure: Re-generate.
14403
6b366111
SM
144042020-01-13 Simon Marchi <simon.marchi@efficios.com>
14405
14406 * python/python.c (init__gdb_module): Add declaration.
14407
6c265988
SM
144082020-01-13 Simon Marchi <simon.marchi@efficios.com>
14409
14410 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14411 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14412 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14413 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14414 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14415 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14416 * ada-exp.y (_initialize_ada_exp): Add declaration.
14417 * ada-lang.c (_initialize_ada_language): Add declaration.
14418 * ada-tasks.c (_initialize_tasks): Add declaration.
14419 * agent.c (_initialize_agent): Add declaration.
14420 * aix-thread.c (_initialize_aix_thread): Add declaration.
14421 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14422 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14423 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14424 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14425 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14426 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14427 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14428 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14429 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14430 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14431 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14432 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14433 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14434 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14435 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14436 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14437 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14438 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14439 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14440 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14441 * annotate.c (_initialize_annotate): Add declaration.
14442 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14443 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14444 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14445 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14446 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14447 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14448 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14449 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14450 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14451 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14452 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14453 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14454 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14455 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14456 * auto-load.c (_initialize_auto_load): Add declaration.
14457 * auxv.c (_initialize_auxv): Add declaration.
14458 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14459 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14460 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14461 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14462 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14463 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14464 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14465 * breakpoint.c (_initialize_breakpoint): Add declaration.
14466 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14467 * btrace.c (_initialize_btrace): Add declaration.
14468 * charset.c (_initialize_charset): Add declaration.
14469 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14470 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14471 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14472 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14473 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14474 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14475 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14476 * coffread.c (_initialize_coffread): Add declaration.
14477 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14478 * compile/compile.c (_initialize_compile): Add declaration.
14479 * complaints.c (_initialize_complaints): Add declaration.
14480 * completer.c (_initialize_completer): Add declaration.
14481 * copying.c (_initialize_copying): Add declaration.
14482 * corefile.c (_initialize_core): Add declaration.
14483 * corelow.c (_initialize_corelow): Add declaration.
14484 * cp-abi.c (_initialize_cp_abi): Add declaration.
14485 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14486 * cp-support.c (_initialize_cp_support): Add declaration.
14487 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14488 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14489 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14490 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14491 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14492 * ctfread.c (_initialize_ctfread): Add declaration.
14493 * d-lang.c (_initialize_d_language): Add declaration.
14494 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14495 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14496 * dbxread.c (_initialize_dbxread): Add declaration.
14497 * dcache.c (_initialize_dcache): Add declaration.
14498 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14499 * disasm.c (_initialize_disasm): Add declaration.
14500 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14501 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14502 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14503 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14504 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14505 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14506 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14507 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14508 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14509 * elfread.c (_initialize_elfread): Add declaration.
14510 * exec.c (_initialize_exec): Add declaration.
14511 * extension.c (_initialize_extension): Add declaration.
14512 * f-lang.c (_initialize_f_language): Add declaration.
14513 * f-valprint.c (_initialize_f_valprint): Add declaration.
14514 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14515 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14516 * filesystem.c (_initialize_filesystem): Add declaration.
14517 * findcmd.c (_initialize_mem_search): Add declaration.
14518 * findvar.c (_initialize_findvar): Add declaration.
14519 * fork-child.c (_initialize_fork_child): Add declaration.
14520 * frame-base.c (_initialize_frame_base): Add declaration.
14521 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14522 * frame.c (_initialize_frame): Add declaration.
14523 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14524 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14525 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14526 * gcore.c (_initialize_gcore): Add declaration.
14527 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14528 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14529 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14530 * gdbarch.c (_initialize_gdbarch): Add declaration.
14531 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14532 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14533 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14534 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14535 * go-lang.c (_initialize_go_language): Add declaration.
14536 * go32-nat.c (_initialize_go32_nat): Add declaration.
14537 * guile/guile.c (_initialize_guile): Add declaration.
14538 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14539 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14540 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14541 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14542 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14543 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14544 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14545 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14546 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14547 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14548 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14549 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14550 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14551 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14552 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14553 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14554 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14555 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14556 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14557 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14558 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14559 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14560 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14561 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14562 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14563 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14564 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14565 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14566 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14567 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14568 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14569 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14570 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14571 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14572 * infcall.c (_initialize_infcall): Add declaration.
14573 * infcmd.c (_initialize_infcmd): Add declaration.
14574 * inflow.c (_initialize_inflow): Add declaration.
14575 * infrun.c (_initialize_infrun): Add declaration.
14576 * interps.c (_initialize_interpreter): Add declaration.
14577 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14578 * jit.c (_initialize_jit): Add declaration.
14579 * language.c (_initialize_language): Add declaration.
14580 * linux-fork.c (_initialize_linux_fork): Add declaration.
14581 * linux-nat.c (_initialize_linux_nat): Add declaration.
14582 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14583 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14584 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14585 * m2-lang.c (_initialize_m2_language): Add declaration.
14586 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14587 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14588 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14589 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14590 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14591 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14592 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14593 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14594 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14595 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14596 * machoread.c (_initialize_machoread): Add declaration.
14597 * macrocmd.c (_initialize_macrocmd): Add declaration.
14598 * macroscope.c (_initialize_macroscope): Add declaration.
14599 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14600 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14601 * maint.c (_initialize_maint_cmds): Add declaration.
14602 * mdebugread.c (_initialize_mdebugread): Add declaration.
14603 * memattr.c (_initialize_mem): Add declaration.
14604 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14605 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14606 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14607 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14608 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14609 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14610 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14611 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14612 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14613 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14614 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14615 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14616 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14617 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14618 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14619 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14620 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14621 * mipsread.c (_initialize_mipsread): Add declaration.
14622 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14623 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14624 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14625 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14626 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14627 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14628 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14629 * nto-procfs.c (_initialize_procfs): Add declaration.
14630 * objc-lang.c (_initialize_objc_language): Add declaration.
14631 * observable.c (_initialize_observer): Add declaration.
14632 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14633 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14634 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14635 * osabi.c (_initialize_gdb_osabi): Add declaration.
14636 * osdata.c (_initialize_osdata): Add declaration.
14637 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14638 * parse.c (_initialize_parse): Add declaration.
14639 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14640 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14641 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14642 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14643 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14644 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14645 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14646 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14647 * printcmd.c (_initialize_printcmd): Add declaration.
14648 * probe.c (_initialize_probe): Add declaration.
14649 * proc-api.c (_initialize_proc_api): Add declaration.
14650 * proc-events.c (_initialize_proc_events): Add declaration.
14651 * proc-service.c (_initialize_proc_service): Add declaration.
14652 * procfs.c (_initialize_procfs): Add declaration.
14653 * producer.c (_initialize_producer): Add declaration.
14654 * psymtab.c (_initialize_psymtab): Add declaration.
14655 * python/python.c (_initialize_python): Add declaration.
14656 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14657 * record-btrace.c (_initialize_record_btrace): Add declaration.
14658 * record-full.c (_initialize_record_full): Add declaration.
14659 * record.c (_initialize_record): Add declaration.
14660 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14661 * regcache.c (_initialize_regcache): Add declaration.
14662 * reggroups.c (_initialize_reggroup): Add declaration.
14663 * remote-notif.c (_initialize_notif): Add declaration.
14664 * remote-sim.c (_initialize_remote_sim): Add declaration.
14665 * remote.c (_initialize_remote): Add declaration.
14666 * reverse.c (_initialize_reverse): Add declaration.
14667 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14668 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14669 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14670 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14671 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14672 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14673 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14674 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14675 Add declaration.
14676 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14677 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14678 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14679 * rust-exp.y (_initialize_rust_exp): Add declaration.
14680 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14681 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14682 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14683 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14684 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14685 * score-tdep.c (_initialize_score_tdep): Add declaration.
14686 * ser-go32.c (_initialize_ser_dos): Add declaration.
14687 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14688 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14689 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14690 * ser-uds.c (_initialize_ser_socket): Add declaration.
14691 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14692 * serial.c (_initialize_serial): Add declaration.
14693 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14694 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14695 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14696 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14697 * skip.c (_initialize_step_skip): Add declaration.
14698 * sol-thread.c (_initialize_sol_thread): Add declaration.
14699 * solib-aix.c (_initialize_solib_aix): Add declaration.
14700 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14701 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14702 * solib-frv.c (_initialize_frv_solib): Add declaration.
14703 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14704 * solib-target.c (_initialize_solib_target): Add declaration.
14705 * solib.c (_initialize_solib): Add declaration.
14706 * source-cache.c (_initialize_source_cache): Add declaration.
14707 * source.c (_initialize_source): Add declaration.
14708 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14709 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14710 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14711 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14712 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14713 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14714 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14715 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14716 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14717 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14718 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14719 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14720 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14721 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14722 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14723 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14724 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14725 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14726 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14727 * stabsread.c (_initialize_stabsread): Add declaration.
14728 * stack.c (_initialize_stack): Add declaration.
14729 * stap-probe.c (_initialize_stap_probe): Add declaration.
14730 * std-regs.c (_initialize_frame_reg): Add declaration.
14731 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14732 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14733 * symfile.c (_initialize_symfile): Add declaration.
14734 * symmisc.c (_initialize_symmisc): Add declaration.
14735 * symtab.c (_initialize_symtab): Add declaration.
14736 * target.c (_initialize_target): Add declaration.
14737 * target-connection.c (_initialize_target_connection): Add
14738 declaration.
14739 * target-dcache.c (_initialize_target_dcache): Add declaration.
14740 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14741 * thread.c (_initialize_thread): Add declaration.
14742 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14743 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14744 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14745 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14746 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14747 * tracectf.c (_initialize_ctf): Add declaration.
14748 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14749 * tracefile.c (_initialize_tracefile): Add declaration.
14750 * tracepoint.c (_initialize_tracepoint): Add declaration.
14751 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14752 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14753 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14754 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14755 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14756 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14757 * tui/tui.c (_initialize_tui): Add declaration.
14758 * typeprint.c (_initialize_typeprint): Add declaration.
14759 * ui-style.c (_initialize_ui_style): Add declaration.
14760 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14761 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14762 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14763 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14764 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14765 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14766 * unittests/filtered_iterator-selftests.c
14767 (_initialize_filtered_iterator_selftests): Add declaration.
14768 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14769 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14770 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14771 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14772 * unittests/main-thread-selftests.c
14773 (_initialize_main_thread_selftests): Add declaration.
14774 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14775 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14776 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14777 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14778 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14779 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14780 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14781 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14782 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14783 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14784 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14785 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14786 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14787 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14788 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14789 declaration.
14790 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14791 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14792 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14793 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14794 * user-regs.c (_initialize_user_regs): Add declaration.
14795 * utils.c (_initialize_utils): Add declaration.
14796 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14797 * valops.c (_initialize_valops): Add declaration.
14798 * valprint.c (_initialize_valprint): Add declaration.
14799 * value.c (_initialize_values): Add declaration.
14800 * varobj.c (_initialize_varobj): Add declaration.
14801 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14802 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14803 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14804 * windows-nat.c (_initialize_windows_nat): Add declaration.
14805 (_initialize_check_for_gdb_ini): Add declaration.
14806 (_initialize_loadable): Add declaration.
14807 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14808 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14809 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14810 * xcoffread.c (_initialize_xcoffread): Add declaration.
14811 * xml-support.c (_initialize_xml_support): Add declaration.
14812 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14813 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14814 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14815 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14816
e2de1eec
SM
148172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14818
14819 * regformats/regdat.sh: Generate declaration for init function.
14820
e0037b4c
SM
148212020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14822
14823 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14824 up.
14825 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14826 close_one_inferior>: New methods.
14827 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14828 pass down target to find_inferior_pid.
14829 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14830 Pass down target to find_inferior_ptid.
14831 (gdbsim_target::create_inferior): Pass down target to
14832 add_thread_silent.
14833 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14834 target down to find_inferior_ptid and switch_to_thread.
14835 (gdbsim_target::close): Update to call close_one_inferior.
14836 (struct resume_data): Remove.
14837 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14838 directly, rather than through a void pointer.
14839 (gdbsim_target::resume): Update to call resume_one_inferior.
14840
58920b5b
SM
148412020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14842
14843 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14844
4ec89149
PA
148452020-01-12 Pedro Alves <palves@redhat.com>
14846
14847 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14848 directly for the current inferior instead of
14849 discard_all_inferiors.
14850 (discard_all_inferiors): Delete.
14851
7c392d1d
TT
148522020-01-11 Tom Tromey <tom@tromey.com>
14853
14854 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14855 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14856 deprecated_safe_get_selected_frame.
14857
d9ebdab7
TBA
148582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14859
14860 * inferior.c (print_inferior): Switch inferior before printing it.
14861
f3c469b9
PA
148622020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14863 Pedro Alves <palves@redhat.com>
14864
14865 * progspace-and-thread.c (switch_to_program_space_and_thread):
14866 Assert there's an inferior for PSPACE. Use
14867 switch_to_inferior_no_thread to switch the inferior too.
14868 * progspace.c (program_space::~program_space): Call
14869 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14870 (program_space::free_all_objfiles): Don't call clear_symtab_users
14871 here.
14872 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14873
65c574f6
PA
148742020-01-10 Pedro Alves <palves@redhat.com>
14875
14876 * NEWS: Mention multi-target debugging, "info connections", and
14877 "add-inferior -no-connection".
14878
2f4fcf00
PA
148792020-01-10 Pedro Alves <palves@redhat.com>
14880
14881 * infrun.c: Include "target-connection.h".
14882 (check_multi_target_resumption): New.
14883 (proceed): Call it.
14884 * target-connection.c (make_target_connection_string): Make
14885 extern.
14886 * target-connection.h (make_target_connection_string): Declare.
14887
121b3efd
PA
148882020-01-10 Pedro Alves <palves@redhat.com>
14889
14890 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14891 * inferior.c (uiout_field_connection): New function.
14892 (print_inferior): Add new "connection-id" column.
14893 (add_inferior_command): Show connection number/string of added
14894 inferior.
14895 * process-stratum-target.h
14896 (process_stratum_target::connection_string): New virtual method.
14897 (process_stratum_target::connection_number): New field.
14898 * remote.c (remote_target::connection_string): New override.
14899 * target-connection.c: New file.
14900 * target-connection.h: New file.
14901 * target.c (decref_target): Remove process_stratum targets from
14902 the connection list.
14903 (target_stack::push): Add process_stratum targets to the
14904 connection list.
14905
4f837581
PA
149062020-01-10 Pedro Alves <palves@redhat.com>
14907
14908 Revert:
14909 2016-04-12 Pedro Alves <palves@redhat.com>
14910 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14911 Remove references to name.
14912 * serial.h (struct serial) <name>: Delete.
14913
f4ec508e
PA
149142020-01-10 Pedro Alves <palves@redhat.com>
14915
14916 * gdbarch-selftests.c (register_to_value_test): Remove "target
14917 already pushed" check.
14918
5b6d1e4f
PA
149192020-01-10 Pedro Alves <palves@redhat.com>
14920 John Baldwin <jhb@FreeBSD.org>
14921
14922 * aarch64-linux-nat.c
14923 (aarch64_linux_nat_target::thread_architecture): Adjust.
14924 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14925 (task_command_1): Likewise.
14926 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14927 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14928 (aix_thread_target::store_registers)
14929 (aix_thread_target::thread_alive): Adjust.
14930 * amd64-fbsd-tdep.c: Include "inferior.h".
14931 (amd64fbsd_get_thread_local_address): Pass down target.
14932 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14933 thread's gdbarch instead of target_gdbarch.
14934 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14935 get_last_target_status.
14936 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14937 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14938 inferiors.
14939 (update_inserted_breakpoint_locations): Skip if inferiors with no
14940 execution.
14941 (update_global_location_list): When handling moribund locations,
14942 find representative inferior for location's pspace, and use thread
14943 count of its process_stratum target.
14944 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14945 * bsd-uthread.c (bsd_uthread_target::wait): Use
14946 as_process_stratum_target and adjust thread_change_ptid and
14947 add_thread calls.
14948 (bsd_uthread_target::update_thread_list): Use
14949 as_process_stratum_target and adjust find_thread_ptid,
14950 thread_change_ptid and add_thread calls.
14951 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14952 find_thread_ptid call.
14953 * corelow.c (add_to_thread_list): Adjust add_thread call.
14954 (core_target_open): Adjust add_thread_silent and thread_count
14955 calls.
14956 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14957 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14958 * event-top.c (async_disconnect): Pop targets from all inferiors.
14959 * exec.c (add_target_sections): Push exec target on all inferiors
14960 sharing the program space.
14961 (remove_target_sections): Remove the exec target from all
14962 inferiors sharing the program space.
14963 (exec_on_vfork): New.
14964 * exec.h (exec_on_vfork): Declare.
14965 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14966 Pass it down.
14967 (fbsd_nat_target::update_thread_list): Adjust.
14968 (fbsd_nat_target::resume): Adjust.
14969 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14970 down.
14971 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14972 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14973 get_thread_arch_regcache call.
14974 * fork-child.c (gdb_startup_inferior): Pass target down to
14975 startup_inferior and set_executing.
14976 * gdbthread.h (struct process_stratum_target): Forward declare.
14977 (add_thread, add_thread_silent, add_thread_with_info)
14978 (in_thread_list): Add process_stratum_target parameter.
14979 (find_thread_ptid(inferior*, ptid_t)): New overload.
14980 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14981 parameter.
14982 (all_threads()): Delete overload.
14983 (all_threads, all_non_exited_threads): Add process_stratum_target
14984 parameter.
14985 (all_threads_safe): Use brace initialization.
14986 (thread_count): Add process_stratum_target parameter.
14987 (set_resumed, set_running, set_stop_requested, set_executing)
14988 (threads_are_executing, finish_thread_state): Add
14989 process_stratum_target parameter.
14990 (switch_to_thread): Use is_current_thread.
14991 * i386-fbsd-tdep.c: Include "inferior.h".
14992 (i386fbsd_get_thread_local_address): Pass down target.
14993 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14994 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14995 have_inferiors check.
14996 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14997 (inf_ptrace_target::attach): Adjust.
14998 * infcall.c (run_inferior_call): Adjust.
14999 * infcmd.c (run_command_1): Pass target to
15000 scoped_finish_thread_state.
15001 (proceed_thread_callback): Skip inferiors with no execution.
15002 (continue_command): Rename 'all_threads' local to avoid hiding
15003 'all_threads' function. Adjust get_last_target_status call.
15004 (prepare_one_step): Adjust set_running call.
15005 (signal_command): Use user_visible_resume_target. Compare thread
15006 pointers instead of inferior_ptid.
15007 (info_program_command): Adjust to pass down target.
15008 (attach_command): Mark target's 'thread_executing' flag.
15009 (stop_current_target_threads_ns): New, factored out from ...
15010 (interrupt_target_1): ... this. Switch inferior before making
15011 target calls.
15012 * inferior-iter.h
15013 (struct all_inferiors_iterator, struct all_inferiors_range)
15014 (struct all_inferiors_safe_range)
15015 (struct all_non_exited_inferiors_range): Filter on
15016 process_stratum_target too. Remove explicit.
15017 * inferior.c (inferior::inferior): Push dummy target on target
15018 stack.
15019 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
15020 Add process_stratum_target parameter, and pass it down.
15021 (have_live_inferiors): Adjust.
15022 (switch_to_inferior_and_push_target): New.
15023 (add_inferior_command, clone_inferior_command): Handle
15024 "-no-connection" parameter. Use
15025 switch_to_inferior_and_push_target.
15026 (_initialize_inferior): Mention "-no-connection" option in
15027 the help of "add-inferior" and "clone-inferior" commands.
15028 * inferior.h: Include "process-stratum-target.h".
15029 (interrupt_target_1): Use bool.
15030 (struct inferior) <push_target, unpush_target, target_is_pushed,
15031 find_target_beneath, top_target, process_target, target_at,
15032 m_stack>: New.
15033 (discard_all_inferiors): Delete.
15034 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
15035 (all_inferiors, all_non_exited_inferiors): Add
15036 process_stratum_target parameter.
15037 * infrun.c: Include "gdb_select.h" and <unordered_map>.
15038 (target_last_proc_target): New global.
15039 (follow_fork_inferior): Push target on new inferior. Pass target
15040 to add_thread_silent. Call exec_on_vfork. Handle target's
15041 reference count.
15042 (follow_fork): Adjust get_last_target_status call. Also consider
15043 target.
15044 (follow_exec): Push target on new inferior.
15045 (struct execution_control_state) <target>: New field.
15046 (user_visible_resume_target): New.
15047 (do_target_resume): Call target_async.
15048 (resume_1): Set target's threads_executing flag. Consider resume
15049 target.
15050 (commit_resume_all_targets): New.
15051 (proceed): Also consider resume target. Skip threads of inferiors
15052 with no execution. Commit resumtion in all targets.
15053 (start_remote): Pass current inferior to wait_for_inferior.
15054 (infrun_thread_stop_requested): Consider target as well. Pass
15055 thread_info pointer to clear_inline_frame_state instead of ptid.
15056 (infrun_thread_thread_exit): Consider target as well.
15057 (random_pending_event_thread): New inferior parameter. Use it.
15058 (do_target_wait): Rename to ...
15059 (do_target_wait_1): ... this. Add inferior parameter, and pass it
15060 down.
15061 (threads_are_resumed_pending_p, do_target_wait): New.
15062 (prepare_for_detach): Adjust calls.
15063 (wait_for_inferior): New inferior parameter. Handle it. Use
15064 do_target_wait_1 instead of do_target_wait.
15065 (fetch_inferior_event): Adjust. Switch to representative
15066 inferior. Pass target down.
15067 (set_last_target_status): Add process_stratum_target parameter.
15068 Save target in global.
15069 (get_last_target_status): Add process_stratum_target parameter and
15070 handle it.
15071 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
15072 (context_switch): Check inferior_ptid == null_ptid before calling
15073 inferior_thread().
15074 (get_inferior_stop_soon): Pass down target.
15075 (wait_one): Rename to ...
15076 (poll_one_curr_target): ... this.
15077 (struct wait_one_event): New.
15078 (wait_one): New.
15079 (stop_all_threads): Adjust.
15080 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15081 event's target.
15082 (switch_back_to_stepped_thread): Also consider target.
15083 (print_stop_event): Update.
15084 (normal_stop): Update. Also consider the resume target.
15085 * infrun.h (wait_for_inferior): Remove declaration.
15086 (user_visible_resume_target): New declaration.
15087 (get_last_target_status, set_last_target_status): New
15088 process_stratum_target parameter.
15089 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15090 process_stratum_target parameter, and use it.
15091 (clear_inline_frame_state (thread_info*)): New.
15092 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15093 process_stratum_target parameter.
15094 (clear_inline_frame_state (thread_info*)): Declare.
15095 * linux-fork.c (delete_checkpoint_command): Pass target down to
15096 find_thread_ptid.
15097 (checkpoint_command): Adjust.
15098 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15099 instead of just tweaking inferior_ptid.
15100 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15101 (exit_lwp): Pass target down to find_thread_ptid.
15102 (attach_proc_task_lwp_callback): Pass target down to
15103 add_thread/set_running/set_executing.
15104 (linux_nat_target::attach): Pass target down to
15105 thread_change_ptid.
15106 (get_detach_signal): Pass target down to find_thread_ptid.
15107 Consider last target status's target.
15108 (linux_resume_one_lwp_throw, resume_lwp)
15109 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15110 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15111 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15112 (linux_nat_target::async_wait_fd): New.
15113 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15114 target down.
15115 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15116 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15117 * linux-thread-db.c (struct thread_db_info::process_target): New
15118 field.
15119 (add_thread_db_info): Save target.
15120 (get_thread_db_info): New process_stratum_target parameter. Also
15121 match target.
15122 (delete_thread_db_info): New process_stratum_target parameter.
15123 Also match target.
15124 (thread_from_lwp): Adjust to pass down target.
15125 (thread_db_notice_clone): Pass down target.
15126 (check_thread_db_callback): Pass down target.
15127 (try_thread_db_load_1): Always push the thread_db target.
15128 (try_thread_db_load, record_thread): Pass target down.
15129 (thread_db_target::detach): Pass target down. Always unpush the
15130 thread_db target.
15131 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15132 target down. Always unpush the thread_db target.
15133 (find_new_threads_callback, thread_db_find_new_threads_2)
15134 (thread_db_target::update_thread_list): Pass target down.
15135 (thread_db_target::pid_to_str): Pass current inferior down.
15136 (thread_db_target::get_thread_local_address): Pass target down.
15137 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15138 target down.
15139 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15140 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15141 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15142 (procfs_init_inferior): Rename to ...
15143 (procfs_target::procfs_init_inferior): ... this and adjust.
15144 (procfs_target::create_inferior, procfs_notice_thread)
15145 (procfs_do_thread_registers): Adjust.
15146 * ppc-fbsd-tdep.c: Include "inferior.h".
15147 (ppcfbsd_get_thread_local_address): Pass down target.
15148 * proc-service.c (ps_xfer_memory): Switch current inferior and
15149 program space as well.
15150 (get_ps_regcache): Pass target down.
15151 * process-stratum-target.c
15152 (process_stratum_target::thread_address_space)
15153 (process_stratum_target::thread_architecture): Pass target down.
15154 * process-stratum-target.h
15155 (process_stratum_target::threads_executing): New field.
15156 (as_process_stratum_target): New.
15157 * ravenscar-thread.c
15158 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15159 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15160 down.
15161 * record-btrace.c (record_btrace_target::info_record): Adjust.
15162 (record_btrace_target::record_method)
15163 (record_btrace_target::record_is_replaying)
15164 (record_btrace_target::fetch_registers)
15165 (get_thread_current_frame_id, record_btrace_target::resume)
15166 (record_btrace_target::wait, record_btrace_target::stop): Pass
15167 target down.
15168 * record-full.c (record_full_wait_1): Switch to event thread.
15169 Pass target down.
15170 * regcache.c (regcache::regcache)
15171 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15172 process_stratum_target parameter and handle it.
15173 (current_thread_target): New global.
15174 (get_thread_regcache): Add process_stratum_target parameter and
15175 handle it. Switch inferior before calling target method.
15176 (get_thread_regcache): Pass target down.
15177 (get_thread_regcache_for_ptid): Pass target down.
15178 (registers_changed_ptid): Add process_stratum_target parameter and
15179 handle it.
15180 (registers_changed_thread, registers_changed): Pass target down.
15181 (test_get_thread_arch_aspace_regcache): New.
15182 (current_regcache_test): Define a couple local test_target_ops
15183 instances and use them for testing.
15184 (readwrite_regcache): Pass process_stratum_target parameter.
15185 (cooked_read_test, cooked_write_test): Pass mock_target down.
15186 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15187 (get_thread_arch_aspace_regcache): Add process_stratum_target
15188 parameter.
15189 (regcache::target): New method.
15190 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15191 (regcache::registers_changed_ptid): Add process_stratum_target
15192 parameter.
15193 (regcache::m_target): New field.
15194 (registers_changed_ptid): Add process_stratum_target parameter.
15195 * remote.c (remote_state::supports_vCont_probed): New field.
15196 (remote_target::async_wait_fd): New method.
15197 (remote_unpush_and_throw): Add remote_target parameter.
15198 (get_current_remote_target): Adjust.
15199 (remote_target::remote_add_inferior): Push target.
15200 (remote_target::remote_add_thread)
15201 (remote_target::remote_notice_new_inferior)
15202 (get_remote_thread_info): Pass target down.
15203 (remote_target::update_thread_list): Skip threads of inferiors
15204 bound to other targets. (remote_target::close): Don't discard
15205 inferiors. (remote_target::add_current_inferior_and_thread)
15206 (remote_target::process_initial_stop_replies)
15207 (remote_target::start_remote)
15208 (remote_target::remote_serial_quit_handler): Pass down target.
15209 (remote_target::remote_unpush_target): New remote_target
15210 parameter. Unpush the target from all inferiors.
15211 (remote_target::remote_unpush_and_throw): New remote_target
15212 parameter. Pass it down.
15213 (remote_target::open_1): Check whether the current inferior has
15214 execution instead of checking whether any inferior is live. Pass
15215 target down.
15216 (remote_target::remote_detach_1): Pass down target. Use
15217 remote_unpush_target.
15218 (extended_remote_target::attach): Pass down target.
15219 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15220 (remote_target::append_resumption): Pass down target.
15221 (remote_target::append_pending_thread_resumptions)
15222 (remote_target::remote_resume_with_hc, remote_target::resume)
15223 (remote_target::commit_resume): Pass down target.
15224 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15225 (remote_target::interrupt_query)
15226 (remote_target::remove_new_fork_children)
15227 (remote_target::check_pending_events_prevent_wildcard_vcont)
15228 (remote_target::remote_parse_stop_reply)
15229 (remote_target::process_stop_reply): Pass down target.
15230 (first_remote_resumed_thread): New remote_target parameter. Pass
15231 it down.
15232 (remote_target::wait_as): Pass down target.
15233 (unpush_and_perror): New remote_target parameter. Pass it down.
15234 (remote_target::readchar, remote_target::remote_serial_write)
15235 (remote_target::getpkt_or_notif_sane_1)
15236 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15237 down target.
15238 (remote_target::mourn_inferior): Pass down target. Use
15239 remote_unpush_target.
15240 (remote_target::core_of_thread)
15241 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15242 (remote_target::pid_to_exec_file)
15243 (remote_target::thread_handle_to_thread_info): Pass down target.
15244 (remote_target::async_wait_fd): New.
15245 * riscv-fbsd-tdep.c: Include "inferior.h".
15246 (riscv_fbsd_get_thread_local_address): Pass down target.
15247 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15248 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15249 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15250 Adjust.
15251 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15252 * solib-svr4.c (enable_break): Pass down target.
15253 * spu-multiarch.c (parse_spufs_run): Pass down target.
15254 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15255 * target-delegates.c: Regenerate.
15256 * target.c (g_target_stack): Delete.
15257 (current_top_target): Return the current inferior's top target.
15258 (target_has_execution_1): Refer to the passed-in inferior's top
15259 target.
15260 (target_supports_terminal_ours): Check whether the initial
15261 inferior was already created.
15262 (decref_target): New.
15263 (target_stack::push): Incref/decref the target.
15264 (push_target, push_target, unpush_target): Adjust.
15265 (target_stack::unpush): Defref target.
15266 (target_is_pushed): Return bool. Adjust to refer to the current
15267 inferior's target stack.
15268 (dispose_inferior): Delete, and inline parts ...
15269 (target_preopen): ... here. Only dispose of the current inferior.
15270 (target_detach): Hold strong target reference while detaching.
15271 Pass target down.
15272 (target_thread_name): Add assertion.
15273 (target_resume): Pass down target.
15274 (target_ops::beneath, find_target_at): Adjust to refer to the
15275 current inferior's target stack.
15276 (get_dummy_target): New.
15277 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15278 has a thread running.
15279 (initialize_targets): Rename to ...
15280 (_initialize_target): ... this.
15281 * target.h: Include "gdbsupport/refcounted-object.h".
15282 (struct target_ops): Inherit refcounted_object.
15283 (target_ops::shortname, target_ops::longname): Make const.
15284 (target_ops::async_wait_fd): New method.
15285 (decref_target): Declare.
15286 (struct target_ops_ref_policy): New.
15287 (target_ops_ref): New typedef.
15288 (get_dummy_target): Declare function.
15289 (target_is_pushed): Return bool.
15290 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15291 (all_matching_threads_iterator::all_matching_threads_iterator):
15292 Handle filter target.
15293 * thread-iter.h (struct all_matching_threads_iterator, struct
15294 all_matching_threads_range, class all_non_exited_threads_range):
15295 Filter by target too. Remove explicit.
15296 * thread.c (threads_executing): Delete.
15297 (inferior_thread): Pass down current inferior.
15298 (clear_thread_inferior_resources): Pass down thread pointer
15299 instead of ptid_t.
15300 (add_thread_silent, add_thread_with_info, add_thread): Add
15301 process_stratum_target parameter. Use it for thread and inferior
15302 searches.
15303 (is_current_thread): New.
15304 (thread_info::deletable): Use it.
15305 (find_thread_ptid, thread_count, in_thread_list)
15306 (thread_change_ptid, set_resumed, set_running): New
15307 process_stratum_target parameter. Pass it down.
15308 (set_executing): New process_stratum_target parameter. Pass it
15309 down. Adjust reference to 'threads_executing'.
15310 (threads_are_executing): New process_stratum_target parameter.
15311 Adjust reference to 'threads_executing'.
15312 (set_stop_requested, finish_thread_state): New
15313 process_stratum_target parameter. Pass it down.
15314 (switch_to_thread): Also match inferior.
15315 (switch_to_thread): New process_stratum_target parameter. Pass it
15316 down.
15317 (update_threads_executing): Reimplement.
15318 * top.c (quit_force): Pop targets from all inferior.
15319 (gdb_init): Don't call initialize_targets.
15320 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15321 Declare.
15322 (windows_add_thread, windows_delete_thread): Adjust.
15323 (get_windows_debug_event): Rename to ...
15324 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15325 * tracefile-tfile.c (tfile_target_open): Pass down target.
15326 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15327 Forward declare.
15328 (switch_to_thread): Add process_stratum_target parameter.
15329 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15330 parameter. Use it.
15331 (mi_on_resume): Pass target down.
15332 * nat/fork-inferior.c (startup_inferior): Add
15333 process_stratum_target parameter. Pass it down.
15334 * nat/fork-inferior.h (startup_inferior): Add
15335 process_stratum_target parameter.
15336 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15337
75c6c844
PA
153382020-01-10 Pedro Alves <palves@redhat.com>
15339
15340 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15341 directly. Instead find the first thread in the thread list and
15342 use switch_to_thread.
15343
78f2c40a
PA
153442020-01-10 Pedro Alves <palves@redhat.com>
15345
15346 * remote.c (remote_target::remote_add_inferior): Don't bind a
15347 process to the current inferior if the current inferior is already
15348 bound to a process.
15349
e7af6c70
TBA
153502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15351 Pedro Alves <palves@redhat.com>
15352
15353 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15354 If no process is specified, return null_ptid instead of
15355 inferior_ptid.
15356 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15357 TARGET_WAITKIND_SIGNALLED with no pid.
15358
31ba933e
PA
153592020-01-10 Pedro Alves <palves@redhat.com>
15360
15361 * remote.c (first_remote_resumed_thread): New.
15362 (remote_target::wait_as): Use it as default event_ptid instead of
15363 inferior_ptid.
15364
735fc2ca
PA
153652020-01-10 Pedro Alves <palves@redhat.com>
15366
15367 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15368
c17e02e1
PA
153692020-01-10 Pedro Alves <palves@redhat.com>
15370
15371 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15372 not -1.
15373
ab1ddbcf
PA
153742020-01-10 Pedro Alves <palves@redhat.com>
15375
15376 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15377 ptid to get_last_target_status.
15378 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15379 ptid to get_last_target_status.
15380 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15381 get_last_target_status.
15382 (info_program_command): Don't pass a target_waitstatus to
15383 get_last_target_status.
15384 * infrun.c (init_wait_for_inferior): Use
15385 nullify_last_target_wait_ptid.
15386 (get_last_target_status): Handle nullptr arguments.
15387 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15388 (print_stop_event): Don't pass a ptid to get_last_target_status.
15389 (normal_stop): Don't pass a ptid to get_last_target_status.
15390 * infrun.h (get_last_target_status, set_last_target_status): Move
15391 comments here and update.
15392 (nullify_last_target_wait_ptid): Declare.
15393 * linux-fork.c (fork_load_infrun_state): Remove local extern
15394 declaration of nullify_last_target_wait_ptid.
15395 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15396 to get_last_target_status.
15397
f3f8ece4
PA
153982020-01-10 Pedro Alves <palves@redhat.com>
15399
15400 * gdbthread.h (scoped_restore_current_thread)
15401 <dont_restore, restore, m_dont_restore>: Declare.
15402 * thread.c (thread_alive): Add assertion. Return bool.
15403 (switch_to_thread_if_alive): New.
15404 (prune_threads): Switch inferior/thread.
15405 (print_thread_info_1): Switch thread before calling target methods.
15406 (scoped_restore_current_thread::restore): New, factored out from
15407 ...
15408 (scoped_restore_current_thread::~scoped_restore_current_thread):
15409 ... this.
15410 (scoped_restore_current_thread::scoped_restore_current_thread):
15411 Add assertion.
15412 (thread_apply_all_command, thread_select): Use
15413 switch_to_thread_if_alive.
15414 * infrun.c (proceed, restart_threads, handle_signal_stop)
15415 (switch_back_to_stepped_thread): Switch current thread before
15416 calling target methods.
15417
db2d40f7
PA
154182020-01-10 Pedro Alves <palves@redhat.com>
15419
15420 * inferior.c (switch_to_inferior_no_thread): New function,
15421 factored out from ...
15422 (inferior_command): ... here.
15423 * inferior.h (switch_to_inferior_no_thread): Declare.
15424 * mi/mi-main.c (run_one_inferior): Use
15425 switch_to_inferior_no_thread.
15426
bd420a2d
PA
154272020-01-10 Pedro Alves <palves@redhat.com>
15428
15429 * infcmd.c (kill_command): Remove dead code.
15430
ddf5db90
PA
154312020-01-10 Pedro Alves <palves@redhat.com>
15432
15433 * remote.c (remote_target::mourn_inferior): No longer check
15434 whether the target is running.
15435
5018ce90
PA
154362020-01-10 Pedro Alves <palves@redhat.com>
15437
15438 * corelow.c (core_target::has_execution): Change parameter type to
15439 inferior pointer.
15440 * inferior.c (number_of_live_inferiors): Use
15441 inferior::has_execution instead of target_has_execution_1.
15442 * inferior.h (inferior::has_execution): New.
15443 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15444 inferior::has_execution instead of target_has_execution_1.
15445 * process-stratum-target.c
15446 (process_stratum_target::has_execution): Change parameter type to
15447 inferior pointer. Check the inferior's PID instead of
15448 inferior_ptid.
15449 * process-stratum-target.h
15450 (process_stratum_target::has_execution): Change parameter type to
15451 inferior pointer.
15452 * record-full.c (record_full_core_target::has_execution): Change
15453 parameter type to inferior pointer.
15454 * target.c (target_has_execution_1): Change parameter type to
15455 inferior pointer.
15456 (target_has_execution_current): Adjust.
15457 * target.h (target_ops::has_execution): Change parameter type to
15458 inferior pointer.
15459 (target_has_execution_1): Change parameter type to inferior
15460 pointer. Change return type to bool.
15461 * tracefile.h (tracefile_target::has_execution): Change parameter
15462 type to inferior pointer.
15463
74375d18
PA
154642020-01-10 Pedro Alves <palves@redhat.com>
15465
15466 * exceptions.c (print_flush): Remove current_top_target() check.
15467
acdf84a6
PA
154682020-01-10 Pedro Alves <palves@redhat.com>
15469
15470 * remote.c (show_remote_exec_file): Show the current inferior's
15471 exec-file instead of the command variable's value.
15472
ec506636
PA
154732020-01-10 Pedro Alves <palves@redhat.com>
15474
15475 * record-full.c (record_full_resume_ptid): New global.
15476 (record_full_target::resume): Set it.
15477 (record_full_wait_1): Use record_full_resume_ptid instead of
15478 inferior_ptid.
15479
873657b9
PA
154802020-01-10 Pedro Alves <palves@redhat.com>
15481
15482 * gdbthread.h (scoped_restore_current_thread)
15483 <dont_restore, restore, m_dont_restore>: Declare.
15484 * thread.c (thread_alive): Add assertion. Return bool.
15485 (switch_to_thread_if_alive): New.
15486 (prune_threads): Switch inferior/thread.
15487 (print_thread_info_1): Switch thread before calling target methods.
15488 (scoped_restore_current_thread::restore): New, factored out from
15489 ...
15490 (scoped_restore_current_thread::~scoped_restore_current_thread):
15491 ... this.
15492 (scoped_restore_current_thread::scoped_restore_current_thread):
15493 Add assertion.
15494 (thread_apply_all_command, thread_select): Use
15495 switch_to_thread_if_alive.
15496
7f0ae84c
GB
154972020-01-10 George Barrett <bob@bob131.so>
15498
15499 * stap-probe.c (stap_modify_semaphore): Don't check for null
15500 semaphores.
15501 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15502 for null semaphores.
15503
f5a7c406
AB
155042020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15505
15506 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15507 all source windows, and maintain horizontal scroll status while
15508 doing so.
15509
9ae6bf64
TT
155102020-01-09 Tom Tromey <tom@tromey.com>
15511
15512 PR tui/18932:
15513 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15514 update_source_window, not print_source_lines.
15515
b2efe70c
AB
155162020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15517
15518 * tui/tui.c (tui_enable): Register tui hooks after calling
15519 tui_display_main.
15520
5f23a082
CB
155212020-01-09 Christian Biesinger <cbiesinger@google.com>
15522
15523 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15524
3061113b
SM
155252020-01-08 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * thread.c (print_thread_info_1): Fix indentation.
15528
57d75002
CB
155292020-01-09 Christian Biesinger <cbiesinger@google.com>
15530
15531 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15532 unique_xmalloc_ptr outside the if to always free the demangled name.
15533
6a053cb1
TT
155342020-01-08 Tom Tromey <tromey@adacore.com>
15535
15536 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15537 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15538 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15539 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15540 Remove.
15541 (section_offsets): New typedef.
15542 * symtab.c (fixup_section, get_msymbol_address): Update.
15543 * symmisc.c (dump_msymbols): Update.
15544 * symfile.h (relative_addr_info_to_section_offsets)
15545 (symfile_map_offsets_to_segments): Update.
15546 * symfile.c (build_section_addr_info_from_objfile)
15547 (init_objfile_sect_indices): Update.
15548 (struct place_section_arg): Change type of "offsets".
15549 (place_section): Update.
15550 (relative_addr_info_to_section_offsets): Change type of
15551 "section_offsets". Remove "num_sections" parameter.
15552 (default_symfile_offsets, syms_from_objfile_1)
15553 (set_objfile_default_section_offset): Update.
15554 (reread_symbols): No need to preserve section offsets by hand.
15555 (symfile_map_offsets_to_segments): Change type of "offsets".
15556 * stap-probe.c (relocate_address): Update.
15557 * stabsread.h (process_one_symbol): Update.
15558 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15559 (solib_target_relocate_section_addresses): Update.
15560 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15561 Update.
15562 * solib-frv.c (frv_relocate_main_executable): Update.
15563 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15564 * solib-aix.c (solib_aix_get_section_offsets): Change return
15565 type.
15566 (solib_aix_solib_create_inferior_hook): Update.
15567 * remote.c (remote_target::get_offsets): Update.
15568 * psymtab.c (find_pc_sect_psymtab): Update.
15569 * psympriv.h (struct partial_symbol) <address, text_low,
15570 text_high>: Update.
15571 * objfiles.h (obj_section_offset): Update.
15572 (struct objfile) <section_offsets>: Change type.
15573 <num_sections>: Remove.
15574 (objfile_relocate): Update.
15575 * objfiles.c (entry_point_address_query): Update
15576 (relocate_one_symbol): Change type of "section_offsets".
15577 (objfile_relocate1, objfile_relocate1): Change type of
15578 "new_offsets".
15579 (objfile_rebase1): Update.
15580 * mipsread.c (mipscoff_symfile_read): Update.
15581 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15582 parameter.
15583 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15584 (parse_external, psymtab_to_symtab_1): Update.
15585 * machoread.c (macho_symfile_offsets): Update.
15586 * ia64-tdep.c (ia64_find_unwind_table): Update.
15587 * hppa-tdep.c (read_unwind_info): Update.
15588 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15589 * dwarf2read.c (create_addrmap_from_index)
15590 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15591 (process_psymtab_comp_unit_reader, add_partial_symbol)
15592 (add_partial_subprogram, process_full_comp_unit)
15593 (read_file_scope, read_func_scope, read_lexical_block_scope)
15594 (read_call_site_scope, dwarf2_rnglists_process)
15595 (dwarf2_ranges_process, dwarf2_ranges_read)
15596 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15597 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15598 Update.
15599 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15600 Update.
15601 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15602 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15603 (process_one_symbol): Change type of "section_offsets".
15604 * ctfread.c (get_objfile_text_range): Update.
15605 * coffread.c (coff_symtab_read, enter_linenos)
15606 (process_coff_symbol): Update.
15607 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15608 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15609
456e800a
TT
156102020-01-08 Tom Tromey <tromey@adacore.com>
15611
15612 * dwarf2read.c (parse_macro_definition): Use std::string.
15613 (parse_macro_definition): Likewise.
15614
6dfa2fc2
TT
156152020-01-08 Tom Tromey <tromey@adacore.com>
15616
15617 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15618 (ATTR_ALLOC_CHUNK): Remove.
15619
421d1616
TT
156202020-01-08 Tom Tromey <tromey@adacore.com>
15621
15622 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15623
43816ebc
TT
156242020-01-08 Tom Tromey <tromey@adacore.com>
15625
15626 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15627 (dwarf2_compute_name, open_dwo_file): Likewise.
15628 (process_enumeration_scope): Use std::vector.
15629 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15630 (partial_die_info::fixup, dwarf2_start_subfile)
15631 (guess_full_die_structure_name, dwarf2_name): Likewise.
15632 (determine_prefix): Update.
15633 (guess_full_die_structure_name): Make return type const.
15634 (partial_die_full_name): Return unique_xmalloc_ptr.
15635 (DW_FIELD_ALLOC_CHUNK): Remove.
15636
4212d509
TT
156372020-01-07 Tom Tromey <tromey@adacore.com>
15638
15639 PR build/24937:
15640 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15641
06a6207a
JT
156422020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15643
15644 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15645
153d79c4
AB
156462020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15647
15648 * stack.c (print_frame_info): Move disassemble_next_line code
15649 inside source_print block.
15650
66182876
EZ
156512020-01-06 Eli Zaretskii <eliz@gnu.org>
15652
15653 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15654 gdb/signals.h, as we are now using native signal symbols.
15655
cbfa8581
SV
156562020-01-06 Shahab Vahedi <shahab@synopsys.com>
15657
15658 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15659 overflow by an early check of content vs threshold.
aac66a4c 15660 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15661 Likewise.
15662
3f602821
EZ
156632020-01-06 Eli Zaretskii <eliz@gnu.org>
15664
15665 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15666
a08c904d
JT
156672020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15668
15669 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15670 export table if no section contains it's RVA.
15671
89a65580
EZ
156722020-01-06 Eli Zaretskii <eliz@gnu.org>
15673
15674 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15675
8b7fcda2
HD
156762020-01-06 Hannes Domani <ssbssa@yahoo.de>
15677
15678 * source.c (print_source_lines_base): Set last_line_listed.
15679
a61b4f69
SV
156802020-01-06 Shahab Vahedi <shahab@synopsys.com>
15681
15682 * tui/tui-disasm.c: Remove trailing spaces.
15683
559e7e50
EZ
156842020-01-06 Eli Zaretskii <eliz@gnu.org>
15685 Pedro Alves <palves@redhat.com>
15686
15687 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15688 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15689 (windows_gdb_signal_to_target): New function, uses the above
15690 enumeration to convert GDB internal signal codes to equivalent
15691 Windows codes.
15692 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15693 * windows-nat.c: Include "gdb_wait.h".
15694 (get_windows_debug_event): Extract the fatal exception from the
15695 exit status and convert to the equivalent Posix signal number.
15696 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15697 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15698 * gdbsupport/gdb_wait.c: New file, implements
15699 windows_status_to_termsig.
15700 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15701 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15702
f2302a34
AB
157032020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15704
15705 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15706 show_layout.
15707
6a5206eb
LM
157082020-01-05 Luis Machado <luis.machado@linaro.org>
15709
15710 * aarch64-linux-nat.c
15711 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15712 and bfd_mach_aarch64.
15713
6ec1d75e
PW
157142020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15715
15716 * ui-file.c (stdio_file::can_emit_style_escape)
15717 (tee_file::can_emit_style_escape): Ensure style is used also on
15718 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15719 to gdb_stdout.
15720 * main.c (set_gdb_data_directory): Use file style to output the
15721 warning that the given pathname is not a directory.
15722 * top.c (show_history_filename, gdb_safe_append_history)
15723 (show_gdb_datadir): Use file style.
15724
44f81a76
HD
157252020-01-03 Hannes Domani <ssbssa@yahoo.de>
15726
15727 * solib-target.c (struct lm_info_target):
15728 Change offsets to be a unique_xmalloc_ptr.
15729 (solib_target_relocate_section_addresses): Update.
15730
25057eb0
HD
157312020-01-03 Hannes Domani <ssbssa@yahoo.de>
15732
15733 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15734
6e2118f5
BE
157352020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15736
15737 * MAINTAINERS (Write After Approval): Add myself.
15738
8133c7dc
LM
157392020-01-02 Luis Machado <luis.machado@linaro.org>
15740
15741 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15742 Cell BE architecture.
15743 * target.h (struct target_ops) <thread_architecture>: Likewise.
15744
48189bec
HD
157452020-01-01 Hannes Domani <ssbssa@yahoo.de>
15746
15747 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15748
ead1063b
HD
157492020-01-01 Hannes Domani <ssbssa@yahoo.de>
15750
15751 * MAINTAINERS (Write After Approval): Add myself.
15752
e5d78223
JB
157532020-01-01 Joel Brobecker <brobecker@adacore.com>
15754
15755 * gdbarch.sh: Update copyright year range of generated files.
15756
b811d2c2
JB
157572020-01-01 Joel Brobecker <brobecker@adacore.com>
15758
15759 Update copyright year range in all GDB files.
15760
5f4def5c
JB
157612020-01-01 Joel Brobecker <brobecker@adacore.com>
15762
15763 * copyright.py: Convert to Python 3.
15764
51fd4002
JB
157652020-01-01 Joel Brobecker <brobecker@adacore.com>
15766
15767 * copyright.py: Adapt after move of gnulib directory from gdb
15768 directory to toplevel directory.
15769
5fb651f2
JB
157702020-01-01 Joel Brobecker <brobecker@adacore.com>
15771
15772 * copyright.py (main): Exit if run from the wrong directory.
15773
5dd8bf88
JB
157742020-01-01 Joel Brobecker <brobecker@adacore.com>
15775
15776 * top.c (print_gdb_version): Change copyright year to 2020.
15777
9f71dacb 157782020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15779
9f71dacb 15780 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15781
9f71dacb 15782For older changes see ChangeLog-2019.
c906108c
SS
15783\f
15784Local Variables:
15785mode: change-log
15786left-margin: 8
15787fill-column: 74
15788version-control: never
57da7796 15789coding: utf-8
c906108c 15790End: